/* ===== RESET & BASE ===== */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
    --bg-body:       #0b1210;
    --bg-section:    #101816;
    --bg-card:       #141f1c;
    --bg-card-hover: #1a2823;
    --border:        #243530;
    --border-light:  #314840;
    --gold:          #6fbf9a;
    --gold-hover:    #8ad4b0;
    --gold-dim:      rgba(111, 191, 154, 0.12);
    --gold-glow:     rgba(111, 191, 154, 0.08);
    --white:         #eef3f0;
    --gray:          #93a89e;
    --muted:         #5d7368;
    --nav-bg:        rgba(11, 18, 16, 0.9);
    --radius:        6px;
    --speed:         0.25s;
}

html { scroll-behavior: smooth; scroll-padding-top: 80px; }

body {
    font-family: 'DM Sans', system-ui, sans-serif;
    background: var(--bg-body);
    color: var(--white);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

::selection { background: var(--gold); color: var(--bg-body); }
::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: var(--bg-body); }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--gold); }

.container { max-width: 880px; margin: 0 auto; padding: 0 2rem; }

a { color: var(--gold); text-decoration: none; transition: color var(--speed); }
a:hover { color: var(--gold-hover); }


/* ===== NAVBAR ===== */
.navbar {
    position: fixed; top: 0; left: 0; right: 0; z-index: 100;
    background: transparent;
    transition: background var(--speed), box-shadow var(--speed), backdrop-filter var(--speed);
}
.navbar.scrolled {
    background: var(--nav-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    box-shadow: 0 1px 0 var(--border);
}
.nav-container {
    max-width: 880px; margin: 0 auto; padding: 0 2rem;
    display: flex; align-items: center; justify-content: space-between;
    height: 64px;
}
.nav-brand {
    font-family: 'Instrument Serif', Georgia, serif;
    font-size: 1.25rem; font-weight: 400; color: var(--white);
    letter-spacing: 0.01em;
}
.nav-brand:hover { color: var(--gold-hover); }
.nav-menu { display: flex; align-items: center; gap: 2rem; }
.nav-link {
    font-size: 0.82rem; font-weight: 500; color: var(--gray);
    letter-spacing: 0.02em; transition: color var(--speed);
}
.nav-link:hover { color: var(--white); }
.nav-cta {
    color: var(--gold); border: 1px solid var(--gold);
    padding: 0.35rem 1rem; border-radius: 4px;
    transition: background var(--speed), color var(--speed);
}
.nav-cta:hover { background: var(--gold); color: var(--bg-body); }

.nav-toggle { display: none; background: none; border: none; cursor: pointer; padding: 4px; }
.nav-toggle span {
    display: block; width: 22px; height: 2px; background: var(--gray);
    margin: 5px 0; transition: all 0.3s ease; border-radius: 1px;
}
.nav-toggle.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.nav-toggle.active span:nth-child(2) { opacity: 0; }
.nav-toggle.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }


/* ===== HERO ===== */
.hero {
    min-height: 100vh; display: flex; align-items: center; justify-content: center;
    position: relative; overflow: hidden;
    background:
        radial-gradient(ellipse 80% 50% at 50% -10%, rgba(111, 191, 154, 0.14), transparent 55%),
        linear-gradient(170deg, #121c18 0%, var(--bg-body) 55%, #0a100e 100%);
}
.hero-glow {
    position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
    width: 700px; height: 500px; border-radius: 50%;
    background: radial-gradient(ellipse, var(--gold-glow) 0%, transparent 70%);
    pointer-events: none;
}
.hero-inner { text-align: center; position: relative; z-index: 1; }
.hero-name {
    font-family: 'Instrument Serif', Georgia, serif;
    font-size: clamp(3.2rem, 8vw, 5.25rem); font-weight: 400; letter-spacing: -0.02em;
    line-height: 1.05; color: var(--white); margin-bottom: 1rem;
}
.hero-tagline {
    font-size: 1.05rem; font-weight: 500; color: var(--gold);
    letter-spacing: 0.02em; margin-bottom: 0.85rem;
}
.hero-bio {
    font-size: 0.98rem; color: var(--gray); margin: 0 auto 2rem;
    max-width: 34rem; line-height: 1.55;
}
.hero-socials { display: flex; justify-content: center; gap: 1.5rem; }
.hero-socials a {
    width: 42px; height: 42px; border-radius: 50%;
    border: 1px solid var(--border); display: flex; align-items: center; justify-content: center;
    color: var(--gray); font-size: 1rem;
    transition: all var(--speed);
}
.hero-socials a:hover {
    border-color: var(--gold); color: var(--gold);
    box-shadow: 0 0 20px var(--gold-dim);
}

.scroll-hint {
    position: absolute; bottom: 2.5rem; left: 50%; transform: translateX(-50%);
    display: flex; flex-direction: column; align-items: center; gap: 0.5rem;
}
.scroll-hint span {
    font-size: 0.65rem; text-transform: uppercase; letter-spacing: 0.15em;
    color: var(--muted); font-weight: 500;
}
.scroll-line {
    width: 1px; height: 40px; background: linear-gradient(to bottom, var(--gold), transparent);
    animation: scrollPulse 2s ease-in-out infinite;
}
@keyframes scrollPulse {
    0%, 100% { opacity: 0.3; transform: scaleY(0.7); }
    50% { opacity: 1; transform: scaleY(1); }
}


/* ===== SECTIONS ===== */
.section { padding: 5.5rem 0; }
.section:nth-child(even) { background: var(--bg-section); }

.section-head { margin-bottom: 2.5rem; }
.section-label {
    font-size: 0.7rem; font-weight: 600; text-transform: uppercase;
    letter-spacing: 0.18em; color: var(--gold); display: block; margin-bottom: 0.5rem;
}
.section-head h2 {
    font-size: 1.75rem; font-weight: 700; color: var(--white);
    letter-spacing: -0.01em;
}


/* ===== PROJECTS ===== */
.projects-list { display: flex; flex-direction: column; gap: 0; }
.project-row {
    display: flex; justify-content: space-between; align-items: baseline; gap: 1.5rem;
    padding: 1.25rem 0; border-top: 1px solid var(--border);
    color: inherit; text-decoration: none;
    transition: padding-left var(--speed), border-color var(--speed);
}
.project-row:last-child { border-bottom: 1px solid var(--border); }
.project-row:hover { padding-left: 0.35rem; border-color: var(--border-light); color: inherit; }
.project-text h3 {
    font-family: 'Instrument Serif', Georgia, serif;
    font-size: 1.35rem; font-weight: 400; color: var(--white); margin-bottom: 0.25rem;
}
.project-text p { font-size: 0.9rem; color: var(--gray); max-width: 36rem; }
.project-meta {
    font-size: 0.75rem; color: var(--muted); white-space: nowrap; letter-spacing: 0.04em;
    text-transform: uppercase; font-weight: 600;
}

/* ===== TIMELINE / EXPERIENCE ===== */
.timeline { position: relative; padding-left: 28px; }
.timeline::before {
    content: ''; position: absolute; left: 5px; top: 8px; bottom: 8px;
    width: 1px; background: var(--border);
}
.tl-item { position: relative; margin-bottom: 0.75rem; }
.tl-item:last-child { margin-bottom: 0; }
.tl-dot {
    position: absolute; left: -28px; top: 1.35rem; width: 11px; height: 11px;
    border-radius: 50%; background: var(--bg-body); border: 2px solid var(--gold);
    z-index: 1;
}
.tl-card {
    background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius);
    padding: 1.15rem 1.5rem;
    transition: border-color var(--speed), background var(--speed), box-shadow var(--speed);
}
.tl-card:hover {
    border-color: var(--border-light); background: var(--bg-card-hover);
    box-shadow: 0 4px 20px rgba(0,0,0,0.25);
}
.tl-row {
    display: flex; justify-content: space-between; align-items: baseline;
    gap: 1rem;
}
.tl-row + .tl-row { margin-top: 0.2rem; }
.tl-row h3 { font-size: 1.05rem; font-weight: 600; color: var(--white); }
.tl-date {
    font-size: 0.78rem; color: var(--muted); white-space: nowrap; font-weight: 400;
}
.tl-role { font-size: 0.875rem; color: var(--gold); font-weight: 500; }
.tl-loc {
    font-size: 0.78rem; color: var(--muted); white-space: nowrap; font-weight: 400;
}


/* ===== SKILLS ===== */
.skills-grid-wrap {
    display: grid; grid-template-columns: 1fr 1fr;
    gap: 1.25rem;
}
.skill-group {
    background: var(--bg-card); border: 1px solid var(--border);
    border-radius: var(--radius); padding: 1.15rem 1.35rem;
    transition: border-color var(--speed), background var(--speed);
}
.skill-group:hover {
    border-color: var(--border-light); background: var(--bg-card-hover);
}
.skill-group h3 {
    font-size: 0.72rem; font-weight: 600; text-transform: uppercase;
    letter-spacing: 0.08em; color: var(--gold); margin-bottom: 0.75rem;
}
.tags { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.tag {
    font-size: 0.78rem; font-weight: 500; color: var(--gray);
    background: rgba(255,255,255,0.04); border: 1px solid var(--border);
    padding: 0.28rem 0.65rem; border-radius: 4px;
    transition: border-color var(--speed), color var(--speed);
}
.tag:hover { border-color: var(--border-light); color: var(--white); }


/* ===== EDUCATION ===== */
.edu-card {
    background: var(--bg-card); border: 1px solid var(--border);
    border-radius: var(--radius); padding: 1.5rem 1.75rem;
    transition: border-color var(--speed), background var(--speed);
}
.edu-card:hover { border-color: var(--border-light); background: var(--bg-card-hover); }
.edu-top {
    display: flex; justify-content: space-between; align-items: baseline;
    gap: 1rem; margin-bottom: 0.35rem;
}
.edu-top h3 { font-size: 1.1rem; font-weight: 600; color: var(--white); }
.edu-date { font-size: 0.8rem; color: var(--muted); white-space: nowrap; }
.edu-college {
    font-size: 0.85rem; color: var(--gold); font-weight: 500; margin-bottom: 0.6rem;
}
.edu-degrees {
    font-size: 0.9rem; color: var(--white); font-weight: 400;
    line-height: 1.6; margin-bottom: 0.4rem;
}
.edu-minor { font-size: 0.82rem; color: var(--gray); margin-bottom: 0.25rem; }
.edu-gpa { font-size: 0.82rem; color: var(--gold); font-weight: 600; }


/* ===== FOOTER ===== */
.footer {
    padding: 2.5rem 0; border-top: 1px solid var(--border);
    background: var(--bg-body);
}
.footer-inner {
    display: flex; justify-content: space-between; align-items: center;
}
.footer-copy { font-size: 0.75rem; color: var(--muted); }
.footer-links { display: flex; gap: 1.5rem; }
.footer-links a { font-size: 0.75rem; color: var(--gray); }
.footer-links a:hover { color: var(--gold); }


/* ===== SCROLL ANIMATIONS ===== */
.reveal {
    opacity: 0; transform: translateY(24px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.visible { opacity: 1; transform: translateY(0); }


/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .hero-name { font-size: 3.1rem; }
    .hero-tagline { font-size: 0.95rem; }
    .project-row { flex-direction: column; gap: 0.35rem; align-items: flex-start; }
    .nav-toggle { display: block; }
    .nav-menu {
        display: none; position: absolute; top: 64px; left: 0; right: 0;
        background: var(--nav-bg); backdrop-filter: blur(16px);
        -webkit-backdrop-filter: blur(16px);
        flex-direction: column; padding: 1rem 2rem 1.5rem; gap: 0.5rem;
        border-bottom: 1px solid var(--border);
    }
    .nav-menu.open { display: flex; }
    .nav-link { padding: 0.5rem 0; font-size: 0.9rem; }
    .nav-cta { text-align: center; margin-top: 0.5rem; }

    .section { padding: 3.5rem 0; }
    .container { padding: 0 1.25rem; }
    .skills-grid-wrap { grid-template-columns: 1fr; }
    .tl-row { flex-direction: column; gap: 0.15rem; }
    .tl-date, .tl-loc { text-align: left; }
    .edu-top { flex-direction: column; gap: 0.2rem; }
    .footer-inner { flex-direction: column; gap: 1rem; text-align: center; }
    .footer-links { justify-content: center; }
}

@media (max-width: 480px) {
    .hero-name { font-size: 2.4rem; }
    .hero-overline { font-size: 0.65rem; }
    .hero-socials a { width: 38px; height: 38px; font-size: 0.9rem; }
    .container { padding: 0 1rem; }
}
