* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
    color: #dbeafe;
    background: radial-gradient(circle at top right, #111c44 0%, #080d1d 45%, #040712 100%);
    line-height: 1.6;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 16px;
}

.site-header {
    background: rgba(3, 7, 18, 0.8);
    color: #fff;
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(59, 130, 246, 0.2);
    position: sticky;
    top: 0;
    z-index: 10;
}

.nav-wrap {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    padding: 12px 0;
}

.brand {
    font-size: 18px;
    margin: 0;
    letter-spacing: 0.6px;
    color: #93c5fd;
}

.nav a {
    color: #bfdbfe;
    text-decoration: none;
    margin-left: 12px;
    font-size: 14px;
    transition: color 0.2s ease, text-shadow 0.2s ease;
}

.nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.menu-toggle {
    display: none;
    width: 44px;
    height: 44px;
    padding: 9px;
    border: 1px solid rgba(125, 211, 252, 0.45);
    border-radius: 10px;
    background: rgba(8, 47, 73, 0.35);
    cursor: pointer;
    flex: 0 0 auto;
    position: relative;
    z-index: 35;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
}

.menu-toggle span {
    display: block;
    width: 100%;
    height: 2px;
    margin: 5px 0;
    background: #dbeafe;
    border-radius: 999px;
}

.nav-overlay {
    display: none;
}

.nav a:hover {
    color: #ffffff;
    text-shadow: 0 0 12px rgba(56, 189, 248, 0.8);
}

.hero {
    padding: 90px 0 70px;
    background: linear-gradient(135deg, rgba(2, 132, 199, 0.2), rgba(59, 130, 246, 0.08) 45%, rgba(6, 182, 212, 0.2));
    border-bottom: 1px solid rgba(96, 165, 250, 0.15);
    scroll-margin-top: 92px;
}

.hero-layout {
    display: grid;
    grid-template-columns: 220px 1fr;
    gap: 26px;
    align-items: center;
}

.avatar-card {
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.84), rgba(15, 23, 42, 0.62));
    border: 1px solid rgba(125, 211, 252, 0.4);
    border-radius: 18px;
    padding: 14px;
    text-align: center;
    box-shadow: 0 10px 28px rgba(2, 6, 23, 0.45);
}

.avatar-image {
    display: block;
    width: 100%;
    aspect-ratio: 1 / 1;
    border-radius: 14px;
    object-fit: cover;
    border: 1px solid rgba(96, 165, 250, 0.45);
}

.avatar-note {
    margin: 10px 0 0;
    font-size: 12px;
    line-height: 1.4;
    color: #93c5fd;
}

.hero h2 {
    margin-top: 0;
    margin-bottom: 8px;
    font-size: 42px;
    line-height: 1.2;
    color: #eff6ff;
    text-shadow: 0 0 24px rgba(59, 130, 246, 0.45);
}

.hero p {
    max-width: 860px;
    color: #cbd5e1;
}

.section {
    padding: 50px 0;
    scroll-margin-top: 92px;
}

.section.alt {
    background: linear-gradient(180deg, rgba(12, 20, 45, 0.7), rgba(11, 18, 36, 0.75));
}

.section h3 {
    margin-top: 0;
    font-size: 30px;
    color: #e0f2fe;
}

.eyebrow {
    display: inline-block;
    margin-bottom: 10px;
    padding: 4px 10px;
    font-size: 12px;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    color: #7dd3fc;
    border: 1px solid rgba(125, 211, 252, 0.45);
    border-radius: 999px;
    background: rgba(14, 116, 144, 0.12);
}

.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 16px;
}

.card, .timeline-item {
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.78), rgba(15, 23, 42, 0.55));
    border-radius: 14px;
    padding: 16px;
    border: 1px solid rgba(96, 165, 250, 0.25);
    box-shadow: 0 8px 28px rgba(2, 6, 23, 0.45);
}

.card h4, .timeline-item h4 {
    margin-top: 0;
    color: #bae6fd;
}

.card p, .timeline-item p {
    color: #cbd5e1;
}

.chip-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 18px;
}

.chip {
    padding: 6px 12px;
    border-radius: 999px;
    font-size: 13px;
    border: 1px solid rgba(56, 189, 248, 0.5);
    background: rgba(8, 47, 73, 0.5);
    color: #bae6fd;
}

.contact-form {
    display: grid;
    gap: 12px;
    max-width: 600px;
    width: 100%;
    margin: 0 auto;
}

#contact .container {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

#contact .contact-form,
#contact .success {
    text-align: left;
}

#contact .success {
    width: 100%;
    max-width: 600px;
}

input, textarea, button:not(.menu-toggle) {
    width: 100%;
    font-size: 14px;
    padding: 10px;
    border: 1px solid rgba(125, 211, 252, 0.35);
    border-radius: 6px;
    background: rgba(15, 23, 42, 0.8);
    color: #e2e8f0;
}

label {
    color: #bae6fd;
}

button:not(.menu-toggle) {
    background: linear-gradient(90deg, #0284c7, #2563eb);
    color: white;
    border: 0;
    cursor: pointer;
    font-weight: 600;
}

button:not(.menu-toggle):hover {
    filter: brightness(1.12);
}

.success {
    color: #d1fae5;
    background: rgba(6, 78, 59, 0.65);
    border: 1px solid rgba(16, 185, 129, 0.6);
    border-radius: 6px;
    padding: 10px;
}

.site-footer {
    background: rgba(2, 6, 23, 0.9);
    color: #cbd5e1;
    padding: 20px 0;
    border-top: 1px solid rgba(59, 130, 246, 0.2);
}

@media (max-width: 900px) {
    .container {
        padding: 0 14px;
    }

    .nav-wrap {
        align-items: center;
    }

    .menu-toggle {
        display: block;
        margin-left: auto;
    }

    .nav {
        position: fixed;
        top: 0;
        right: 0;
        width: min(320px, 85vw);
        height: 100vh;
        flex-direction: column;
        justify-content: flex-start;
        flex-wrap: nowrap;
        gap: 0;
        padding: 84px 18px 24px;
        background: #020617;
        border-left: 1px solid rgba(96, 165, 250, 0.28);
        box-shadow: -14px 0 32px rgba(2, 6, 23, 0.5);
        transform: translateX(105%);
        transition: transform 0.25s ease;
        z-index: 30;
        overscroll-behavior: contain;
    }

    .nav a {
        display: block;
        margin: 0;
        padding: 12px 10px;
        font-size: 15px;
        border-bottom: 1px solid rgba(96, 165, 250, 0.2);
    }

    .nav-overlay {
        position: fixed;
        inset: 0;
        background: transparent;
        z-index: 25;
        opacity: 0;
        pointer-events: none;
        transition: opacity 0.25s ease;
    }

    body.menu-open {
        overflow: hidden;
    }

    /* Header wraps fixed nav; must sit above overlay (z-index 25) or overlay steals all taps */
    body.menu-open .site-header {
        z-index: 40;
    }

    body.menu-open .nav {
        transform: translateX(0);
    }

    body.menu-open .nav-overlay {
        display: block;
        opacity: 1;
        pointer-events: auto;
    }

    .hero h2 {
        font-size: 32px;
    }

    .hero-layout {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .avatar-card {
        max-width: 220px;
        margin: 0 auto;
    }
}

@media (max-width: 600px) {
    .brand {
        max-width: calc(100% - 64px);
        font-size: 16px;
    }

    .hero {
        padding: 64px 0 50px;
    }

    .hero h2 {
        font-size: 28px;
    }

    .section {
        padding: 38px 0;
    }

    .section h3 {
        font-size: 24px;
    }

    .card-grid {
        grid-template-columns: 1fr;
    }

    .card, .timeline-item {
        padding: 14px;
    }

    .chip {
        font-size: 12px;
        padding: 6px 10px;
    }

    input, textarea, button {
        font-size: 16px;
    }
}
