@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@400;500;700&family=Rajdhani:wght@400;500;600&display=swap');

:root {
    --cp-bg: #05070d;
    --cp-bg-soft: #0a1020;
    --cp-panel: rgba(10, 16, 32, 0.72);
    --cp-text: #d6e6ff;
    --cp-text-soft: #9fb4cc;
    --cp-accent: #00e5ff;
    --cp-accent-2: #7b61ff;
    --cp-border: rgba(0, 229, 255, 0.28);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    width: 100%;
    min-height: 100%;
}

body {
    background-color: var(--cp-bg);
    background-image:
        radial-gradient(circle at 18% 20%, rgba(123, 97, 255, 0.2) 0, rgba(123, 97, 255, 0) 42%),
        radial-gradient(circle at 78% 12%, rgba(0, 229, 255, 0.18) 0, rgba(0, 229, 255, 0) 48%),
        linear-gradient(135deg, #04050a 0%, #060912 45%, #070d1d 100%);
    color: var(--cp-text);
    font-family: 'Rajdhani', 'PingFang SC', 'Hiragino Sans GB', sans-serif;
    line-height: 1.7;
    overflow-x: hidden;
}

body::before {
    content: '';
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: -1;
    background-image:
        linear-gradient(rgba(0, 229, 255, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 229, 255, 0.05) 1px, transparent 1px);
    background-size: 34px 34px;
    opacity: 0.3;
}

a {
    color: var(--cp-accent);
    text-decoration: none;
    transition: color 0.25s ease, text-shadow 0.25s ease;
}

a:hover {
    color: #93f7ff;
    text-shadow: 0 0 10px rgba(0, 229, 255, 0.7);
}

.container {
    max-width: 980px;
    margin: 0 auto;
    padding: 40px;
}

.content-page {
    min-height: 100vh;
    padding-top: 80px;
    background: transparent;
}

.section {
    margin-bottom: 60px;
}

.section h2 {
    font-size: 34px;
    font-family: 'Orbitron', sans-serif;
    font-weight: 500;
    margin-bottom: 30px;
    letter-spacing: 0.03em;
    color: var(--cp-accent);
    text-shadow: 0 0 16px rgba(0, 229, 255, 0.45);
}

.section h3 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 15px;
    color: #a8f6ff;
}

.section p {
    font-size: 16px;
    line-height: 1.85;
    color: var(--cp-text-soft);
    margin-bottom: 15px;
}

.divider {
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--cp-accent), var(--cp-accent-2), transparent);
    margin: 42px 0;
    opacity: 0.7;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

.project-card {
    background: var(--cp-panel);
    border: 1px solid var(--cp-border);
    padding: 25px;
    border-radius: 12px;
    transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
    backdrop-filter: blur(12px);
    box-shadow: 0 0 0 1px rgba(123, 97, 255, 0.18) inset;
}

.project-card:hover {
    transform: translateY(-4px);
    border-color: rgba(0, 229, 255, 0.7);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.45), 0 0 24px rgba(0, 229, 255, 0.2);
}

.project-title {
    font-size: 17px;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--cp-accent);
}

.project-desc {
    font-size: 14px;
    color: var(--cp-text-soft);
    margin-bottom: 15px;
}

.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tag {
    display: inline-block;
    background: rgba(123, 97, 255, 0.18);
    color: #ccf8ff;
    padding: 4px 12px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
    border: 1px solid rgba(123, 97, 255, 0.36);
}

.blog-list {
    list-style: none;
}

.blog-item {
    padding: 30px 0;
    border-bottom: 1px solid rgba(0, 229, 255, 0.18);
}

.blog-item:last-child {
    border-bottom: none;
}

.blog-title {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 8px;
    color: #c7f2ff;
}

.blog-date {
    font-size: 13px;
    color: #7f95b3;
    margin-bottom: 10px;
}

.blog-excerpt {
    font-size: 15px;
    color: var(--cp-text-soft);
    line-height: 1.75;
}

.contact-form {
    max-width: 600px;
    margin-top: 30px;
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 8px;
    color: #a8f6ff;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid rgba(0, 229, 255, 0.35);
    border-radius: 8px;
    background: rgba(8, 12, 24, 0.8);
    font-family: inherit;
    color: var(--cp-text);
    font-size: 15px;
    transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--cp-accent);
    box-shadow: 0 0 0 3px rgba(0, 229, 255, 0.14);
}

.form-group textarea {
    resize: vertical;
    min-height: 150px;
}

.submit-btn {
    background: linear-gradient(90deg, var(--cp-accent), #4ff3ff);
    color: #041019;
    padding: 12px 30px;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    box-shadow: 0 0 16px rgba(0, 229, 255, 0.35);
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 24px rgba(0, 229, 255, 0.55);
}

.about-intro {
    font-size: 17px;
    line-height: 1.9;
    margin-bottom: 40px;
    color: #c9d9f8;
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    margin-top: 30px;
}

.skill-category h4 {
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--cp-accent);
}

.skill-category ul {
    list-style: none;
}

.skill-category li {
    font-size: 14px;
    color: var(--cp-text-soft);
    margin-bottom: 8px;
}

@media (max-width: 768px) {
    #navbar {
        flex-direction: column;
        padding: 15px 20px;
    }

    #navbar nav a {
        margin-left: 15px;
        font-size: 12px;
    }

    .container {
        padding: 20px;
    }

    #info-overlay h1 {
        font-size: 32px;
    }

    .section h2 {
        font-size: 24px;
    }

    .skills-grid,
    .projects-grid {
        grid-template-columns: 1fr;
    }
}
