:root {
    --primary: #312e81; /* Indigo-900 */
    --primary-mid: #4338ca; /* Indigo-600 */
    --gold: #d97706; /* Amber-600 */
    --gold-light: #fef3c7; /* Amber-100 */
    --gold-glow: rgba(217, 119, 6, 0.12);
    --bg: #fafaf9; /* Stone-50 */
    --bg-contrast: #f5f5f4; /* Stone-100 */
    --surface: #ffffff;
    --text: #44403c; /* Stone-700 */
    --text-muted: #78716c; /* Stone-500 */
    --text-light: #a8a29e; /* Stone-400 */
    --border: #e7e5e4; /* Stone-200 */
    --radius: 12px;
    --heading-font: 'Cormorant Garamond', serif;
    --body-font: 'Outfit', sans-serif;
    --shadow-sm: 0 1px 2px rgba(0,0,0,0.04);
    --shadow-md: 0 4px 20px rgba(0,0,0,0.05);
    --shadow-lg: 0 10px 36px rgba(0,0,0,0.07);
}

html { scroll-behavior: smooth; }
* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    background-color: var(--bg);
    color: var(--text);
    font-family: var(--body-font);
    line-height: 1.7;
    padding-top: 72px;
    font-size: 16px;
}

h1, h2, h3, h4 {
    font-family: var(--heading-font);
    font-weight: 600;
    line-height: 1.2;
    color: var(--primary);
}

a {
    color: var(--primary-mid);
    text-decoration: none;
    transition: all 0.3s ease;
}

.container {
    max-width: 1060px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ============ NAVBAR ============ */
.navbar {
    position: fixed;
    top: 0; left: 0; width: 100%;
    background: rgba(255,255,255,0.97);
    backdrop-filter: blur(14px);
    z-index: 1000;
    padding: 16px 0;
    border-bottom: 1px solid var(--border);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo {
    font-family: var(--heading-font);
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--primary);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo-letter {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: var(--primary);
    color: var(--gold);
    border-radius: 8px;
    font-family: var(--heading-font);
    font-size: 1.2rem;
    font-weight: 700;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 6px;
}

.nav-link {
    text-decoration: none;
    color: var(--text-muted);
    font-weight: 500;
    font-size: 0.9rem;
    padding: 8px 16px;
    border-radius: 8px;
    transition: all 0.25s ease;
}

.nav-link:hover {
    color: var(--primary);
    background: var(--gold-light);
}

.hamburger {
    display: none;
    cursor: pointer;
    background: none;
    border: none;
}

.bar {
    display: block;
    width: 23px;
    height: 2px;
    margin: 5px auto;
    background: var(--primary);
    border-radius: 2px;
    transition: all 0.3s ease;
}

/* ============ HERO ============ */
.hero {
    position: relative;
    padding: 90px 0 110px;
    background: linear-gradient(160deg, var(--primary) 0%, #1e1b4b 100%);
    color: white;
    overflow: hidden;
}

.hero-accent {
    position: absolute;
    bottom: 0; right: 0;
    width: 45%;
    height: 100%;
    background: linear-gradient(135deg, transparent 40%, rgba(217,119,6,0.08) 100%);
    pointer-events: none;
}

.hero-inner {
    position: relative;
    z-index: 1;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 40px;
}

.hero-content {
    max-width: 620px;
}

.hero-label {
    display: inline-block;
    padding: 6px 18px;
    border: 1px solid rgba(217,119,6,0.4);
    color: var(--gold);
    border-radius: 30px;
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 0.5px;
    margin-bottom: 24px;
}

.hero h1 {
    font-size: 4.2rem;
    color: white;
    margin-bottom: 24px;
    line-height: 1.05;
}

.hero h1 em {
    font-style: italic;
    color: var(--gold);
}

.hero-desc {
    font-size: 1.05rem;
    color: rgba(255,255,255,0.72);
    line-height: 1.8;
    margin-bottom: 36px;
    max-width: 520px;
}

.hero-buttons {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    border-radius: 10px;
    font-weight: 600;
    font-size: 0.92rem;
    font-family: var(--body-font);
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
}

.btn-gold {
    background: var(--gold);
    color: white;
    box-shadow: 0 4px 16px rgba(217,119,6,0.3);
}

.btn-gold:hover {
    background: #b45309;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(217,119,6,0.35);
}

.btn-line {
    background: transparent;
    color: white;
    border: 1.5px solid rgba(255,255,255,0.25);
}

.btn-line:hover {
    border-color: white;
    background: rgba(255,255,255,0.08);
    color: white;
}

.hero-socials {
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex-shrink: 0;
}

.hero-socials a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 8px;
    background: rgba(255,255,255,0.07);
    color: rgba(255,255,255,0.55);
    font-size: 0.9rem;
    text-decoration: none;
    border: 1px solid rgba(255,255,255,0.08);
    transition: all 0.3s ease;
}

.hero-socials a:hover {
    background: var(--gold);
    color: white;
    border-color: var(--gold);
    transform: scale(1.1);
}

/* ============ SECTIONS ============ */
.section {
    padding: 90px 0;
}

.section-contrast {
    background: var(--bg-contrast);
}

.section-heading {
    font-size: 2.4rem;
    margin-bottom: 48px;
    position: relative;
    display: inline-block;
    padding-bottom: 12px;
}

.section-heading::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0;
    width: 56px;
    height: 3px;
    background: var(--gold);
    border-radius: 2px;
}

/* ============ ABOUT ============ */
.about-columns {
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: 48px;
    align-items: start;
}

.about-text p {
    margin-bottom: 18px;
    line-height: 1.85;
    color: var(--text);
}

.about-info {
    display: flex;
    flex-direction: column;
    gap: 0;
    background: var(--surface);
    border-radius: var(--radius);
    border: 1px solid var(--border);
    overflow: hidden;
}

.info-block {
    padding: 20px 28px;
    border-bottom: 1px solid var(--border);
    display: flex;
    flex-direction: column;
}

.info-block:last-child { border-bottom: none; }

.info-label {
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--gold);
    text-transform: uppercase;
    letter-spacing: 1.2px;
    margin-bottom: 4px;
}

.info-data {
    font-weight: 500;
    color: var(--primary);
}

/* ============ CAREER ============ */
.career-list {
    display: flex;
    flex-direction: column;
    gap: 0;
    max-width: 760px;
}

.career-item {
    display: grid;
    grid-template-columns: 180px 1fr;
    gap: 32px;
    padding: 36px 0;
    border-bottom: 1px solid var(--border);
    align-items: start;
}

.career-item:first-child { padding-top: 0; }
.career-item:last-child { border-bottom: none; }

.career-year {
    font-family: var(--heading-font);
    font-size: 1rem;
    font-weight: 600;
    color: var(--gold);
    padding-top: 2px;
}

.career-body h3 {
    font-size: 1.3rem;
    margin-bottom: 8px;
}

.career-body p {
    color: var(--text-muted);
    line-height: 1.75;
}

/* ============ EDUCATION ============ */
.edu-block {
    display: flex;
    gap: 32px;
    align-items: flex-start;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 44px;
    max-width: 700px;
    transition: transform 0.3s ease;
}

.edu-block:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.edu-emblem {
    flex-shrink: 0;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--gold));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    color: white;
}

.edu-block h3 {
    font-size: 1.3rem;
    margin-bottom: 4px;
}

.edu-sub {
    color: var(--gold);
    font-weight: 600;
    font-size: 0.95rem;
    margin-bottom: 4px;
}

.edu-school {
    color: var(--text);
    font-weight: 500;
    margin-bottom: 4px;
}

.edu-years {
    color: var(--text-light);
    font-size: 0.9rem;
    margin-bottom: 14px;
}

.edu-note {
    color: var(--text-muted);
    line-height: 1.75;
}

/* ============ SKILLS MOSAIC ============ */
.skills-mosaic {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.mosaic-tile {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 28px 24px;
    display: flex;
    align-items: center;
    gap: 16px;
    transition: all 0.3s ease;
}

.mosaic-tile:hover {
    border-color: var(--gold);
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.mosaic-tile i {
    font-size: 1.3rem;
    color: var(--gold);
    flex-shrink: 0;
    width: 28px;
    text-align: center;
}

.mosaic-tile span {
    font-weight: 500;
    font-size: 0.92rem;
    color: var(--primary);
    line-height: 1.4;
}

/* ============ CONTACT ============ */
.contact-card {
    text-align: center;
    max-width: 520px;
    margin: 0 auto;
    background: var(--surface);
    padding: 52px;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-md);
}

.contact-card p {
    font-size: 1.1rem;
    color: var(--text);
    margin-bottom: 28px;
    line-height: 1.75;
}

/* ============ FOOTER ============ */
footer {
    text-align: center;
    padding: 40px 0;
    background: var(--primary);
    color: rgba(255,255,255,0.5);
    font-size: 0.88rem;
}

/* ============ SCROLL TOP ============ */
#scrollTopBtn {
    display: none;
    position: fixed;
    bottom: 28px; right: 28px;
    z-index: 99;
    border: none; outline: none;
    background: var(--primary);
    color: var(--gold);
    cursor: pointer;
    width: 46px; height: 46px;
    border-radius: 12px;
    font-size: 16px;
    box-shadow: 0 4px 14px rgba(49,46,129,0.2);
    transition: all 0.3s ease;
    align-items: center;
    justify-content: center;
}

#scrollTopBtn[style*="display: flex"],
#scrollTopBtn[style*="display: block"] {
    display: flex !important;
}

#scrollTopBtn:hover {
    background: var(--gold);
    color: white;
    transform: translateY(-4px);
}

/* ============ ANIMATIONS ============ */
.anim-in {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.anim-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ============ RESPONSIVE ============ */
@media (max-width: 768px) {
    .hamburger { display: block; }

    .hamburger.active .bar:nth-child(2) { opacity: 0; }
    .hamburger.active .bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
    .hamburger.active .bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

    .nav-menu {
        position: fixed;
        left: -100%; top: 64px;
        flex-direction: column;
        background: rgba(255,255,255,0.99);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 30px rgba(0,0,0,0.06);
        padding: 20px 0;
        gap: 4px;
    }

    .nav-menu.active { left: 0; }

    .hero h1 { font-size: 2.8rem; }

    .hero-inner {
        flex-direction: column;
        align-items: flex-start;
    }

    .hero-socials {
        flex-direction: row;
        flex-wrap: wrap;
    }

    .about-columns {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .career-item {
        grid-template-columns: 1fr;
        gap: 8px;
    }

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

    .edu-block {
        flex-direction: column;
        padding: 32px;
    }

    .section { padding: 70px 0; }
    .contact-card { padding: 32px; }
}

@media (max-width: 480px) {
    .hero h1 { font-size: 2.2rem; }

    .hero-buttons {
        flex-direction: column;
    }

    .btn {
        text-align: center;
        justify-content: center;
    }
}
