/* ============================================
   ZEEN XIAO - Personal Website
   Color Palette: Deep navy, warm gold, soft cream
   ============================================ */

:root {
    --navy: #0a1628;
    --navy-light: #132040;
    --navy-medium: #1a2d55;
    --gold: #c9a96e;
    --gold-light: #dfc393;
    --gold-dark: #a8873f;
    --cream: #f5f0e8;
    --cream-dark: #e8e0d0;
    --text-primary: #1a1a2e;
    --text-secondary: #4a4a6a;
    --text-light: #7a7a9a;
    --white: #ffffff;
    --bg-section-alt: #faf8f4;
    --transition: 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    --transition-slow: 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* Reset */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    color: var(--text-primary);
    background: var(--white);
    line-height: 1.7;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

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

/* ============================================
   NAVIGATION
   ============================================ */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    transition: var(--transition);
    padding: 20px 0;
}

.nav.scrolled {
    background: rgba(10, 22, 40, 0.95);
    backdrop-filter: blur(20px);
    padding: 12px 0;
    box-shadow: 0 2px 30px rgba(0, 0, 0, 0.15);
}

.nav-inner {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--gold);
    text-decoration: none;
    letter-spacing: 2px;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 32px;
}

.nav-links a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 400;
    letter-spacing: 0.5px;
    transition: var(--transition);
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--gold);
    transition: var(--transition);
}

.nav-links a:hover {
    color: var(--gold);
}

.nav-links a:hover::after {
    width: 100%;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}

.nav-toggle span {
    width: 24px;
    height: 2px;
    background: var(--gold);
    transition: var(--transition);
}

/* ============================================
   HERO SECTION
   ============================================ */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.hero-gradient {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 40%, var(--navy-medium) 100%);
}

.hero-pattern {
    position: absolute;
    inset: 0;
    opacity: 0.04;
    background-image:
        radial-gradient(circle at 25% 50%, var(--gold) 1px, transparent 1px),
        radial-gradient(circle at 75% 25%, var(--gold) 1px, transparent 1px),
        radial-gradient(circle at 50% 75%, var(--gold) 0.5px, transparent 0.5px);
    background-size: 80px 80px, 60px 60px, 40px 40px;
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    padding: 0 24px;
    max-width: 800px;
}

.hero-greeting {
    font-family: 'Inter', sans-serif;
    font-size: 0.9rem;
    font-weight: 400;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 16px;
}

.hero-name {
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(3rem, 8vw, 5.5rem);
    font-weight: 600;
    color: var(--white);
    line-height: 1.1;
    margin-bottom: 8px;
    letter-spacing: -1px;
}

.hero-subtitle {
    margin-bottom: 28px;
}

.hero-jp {
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    font-weight: 300;
    color: var(--gold-light);
    letter-spacing: 3px;
    text-transform: uppercase;
}

.hero-tagline {
    font-size: 1.1rem;
    font-weight: 300;
    color: rgba(255, 255, 255, 0.75);
    line-height: 1.8;
    max-width: 600px;
    margin: 0 auto 36px;
}

.hero-details {
    display: flex;
    justify-content: center;
    gap: 28px;
    flex-wrap: wrap;
    margin-bottom: 60px;
}

.hero-detail {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.6);
    font-weight: 300;
    letter-spacing: 0.5px;
}

.hero-scroll {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--gold);
    text-decoration: none;
    font-size: 0.85rem;
    letter-spacing: 1px;
    transition: var(--transition);
    animation: float 3s ease-in-out infinite;
}

.hero-scroll:hover {
    color: var(--gold-light);
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(8px); }
}

/* Animations */
.animate-in {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.8s ease forwards;
}

.delay-1 { animation-delay: 0.2s; }
.delay-2 { animation-delay: 0.4s; }
.delay-3 { animation-delay: 0.6s; }
.delay-4 { animation-delay: 0.8s; }
.delay-5 { animation-delay: 1.0s; }

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ============================================
   SECTIONS - COMMON
   ============================================ */
.section {
    padding: 100px 0;
}

.section:nth-child(odd) {
    background: var(--bg-section-alt);
}

.section-header {
    text-align: center;
    margin-bottom: 64px;
}

.section-label {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--gold-dark);
    margin-bottom: 16px;
}

.section-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(2rem, 4vw, 2.8rem);
    font-weight: 600;
    color: var(--navy);
    margin-bottom: 12px;
    line-height: 1.2;
}

.section-subtitle {
    font-size: 1rem;
    color: var(--text-secondary);
    font-weight: 300;
    max-width: 600px;
    margin: 0 auto;
}

.subsection-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--navy);
    margin-bottom: 24px;
}

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

.about-lead {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.3rem;
    font-weight: 500;
    color: var(--navy);
    line-height: 1.7;
    margin-bottom: 20px;
}

.about-text p {
    color: var(--text-secondary);
    margin-bottom: 16px;
    font-size: 0.95rem;
    line-height: 1.8;
}

.about-highlights {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.highlight-card {
    background: var(--white);
    border: 1px solid var(--cream-dark);
    border-radius: 12px;
    padding: 28px;
    transition: var(--transition);
}

.highlight-card:hover {
    border-color: var(--gold);
    box-shadow: 0 8px 30px rgba(201, 169, 110, 0.1);
    transform: translateY(-2px);
}

.highlight-icon {
    color: var(--gold);
    margin-bottom: 12px;
}

.highlight-card h3 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--navy);
    margin-bottom: 8px;
}

.highlight-card p {
    font-size: 0.88rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* ============================================
   ACADEMICS SECTION
   ============================================ */
.academics-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    margin-bottom: 60px;
}

.course-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.course-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 18px;
    background: var(--white);
    border: 1px solid var(--cream-dark);
    border-radius: 8px;
    transition: var(--transition);
}

.course-item:hover {
    border-color: var(--gold);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04);
}

.course-badge {
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    padding: 3px 10px;
    border-radius: 4px;
    flex-shrink: 0;
}

.course-badge.ap {
    background: var(--navy);
    color: var(--gold);
}

.course-badge.honors {
    background: var(--gold);
    color: var(--navy);
}

.course-badge.core {
    background: var(--cream);
    color: var(--text-secondary);
}

.course-name {
    font-size: 0.92rem;
    font-weight: 500;
    color: var(--text-primary);
}

.score-cards {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.score-card {
    background: var(--navy);
    border-radius: 12px;
    padding: 24px 28px;
    display: flex;
    align-items: center;
    gap: 20px;
    transition: var(--transition);
}

.score-card:hover {
    transform: translateX(4px);
    box-shadow: 0 8px 24px rgba(10, 22, 40, 0.3);
}

.score-label {
    font-size: 0.8rem;
    font-weight: 500;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--gold);
    min-width: 90px;
}

.score-value {
    font-family: 'Cormorant Garamond', serif;
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--white);
    min-width: 70px;
}

.score-note {
    font-size: 0.82rem;
    color: rgba(255, 255, 255, 0.5);
    font-weight: 300;
}

/* Strengths */
.academics-strengths {
    max-width: 700px;
}

.strengths-grid {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.strength-item {
    display: flex;
    align-items: center;
    gap: 16px;
}

.strength-label {
    font-size: 0.88rem;
    color: var(--text-secondary);
    min-width: 240px;
    font-weight: 400;
}

.strength-bar {
    flex: 1;
    height: 6px;
    background: var(--cream-dark);
    border-radius: 3px;
    position: relative;
    overflow: hidden;
}

.strength-bar::after {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 0;
    background: linear-gradient(90deg, var(--gold-dark), var(--gold));
    border-radius: 3px;
    transition: width 1.2s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.strength-bar.animate::after {
    width: var(--bar-width);
}

/* ============================================
   PASSIONS SECTION
   ============================================ */
.passions-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

.passion-card {
    background: var(--white);
    border: 1px solid var(--cream-dark);
    border-radius: 16px;
    padding: 36px;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.passion-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 3px;
    height: 0;
    background: var(--gold);
    transition: height 0.4s ease;
}

.passion-card:hover {
    border-color: var(--gold);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.06);
}

.passion-card:hover::before {
    height: 100%;
}

.passion-featured {
    grid-column: 1 / -1;
    background: var(--navy);
    border-color: var(--navy);
}

.passion-featured .passion-number,
.passion-featured h3 {
    color: var(--gold);
}

.passion-featured p {
    color: rgba(255, 255, 255, 0.75);
}

.passion-number {
    font-family: 'Cormorant Garamond', serif;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--cream-dark);
    line-height: 1;
    margin-bottom: 16px;
}

.passion-card h3 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--navy);
    margin-bottom: 12px;
}

.passion-card p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.7;
}

/* ============================================
   WRITING SECTION
   ============================================ */
.writing-intro {
    max-width: 700px;
    margin: 0 auto 48px;
    text-align: center;
}

.writing-intro p {
    font-size: 1rem;
    color: var(--text-secondary);
    line-height: 1.8;
}

.writing-samples {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-bottom: 48px;
}

.writing-card {
    background: var(--white);
    border: 1px solid var(--cream-dark);
    border-radius: 12px;
    padding: 32px;
    transition: var(--transition);
}

.writing-card:hover {
    border-color: var(--gold);
    transform: translateY(-4px);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.06);
}

.writing-card-header {
    margin-bottom: 16px;
}

.writing-tag {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--gold-dark);
    background: rgba(201, 169, 110, 0.1);
    padding: 4px 12px;
    border-radius: 4px;
    margin-bottom: 12px;
}

.writing-card h3 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--navy);
}

.writing-card p {
    font-size: 0.88rem;
    color: var(--text-secondary);
    line-height: 1.7;
}

.writing-quote {
    max-width: 700px;
    margin: 0 auto;
    text-align: center;
    padding: 40px;
    background: var(--navy);
    border-radius: 16px;
}

.writing-quote blockquote {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.3rem;
    font-weight: 500;
    font-style: italic;
    color: var(--cream);
    line-height: 1.7;
    margin-bottom: 16px;
}

.quote-context {
    font-size: 0.82rem;
    color: var(--gold);
    font-weight: 400;
    letter-spacing: 0.5px;
}

/* ============================================
   ATHLETICS SECTION
   ============================================ */
.athletics-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 48px;
}

.sport-card {
    background: var(--white);
    border: 1px solid var(--cream-dark);
    border-radius: 12px;
    padding: 28px;
    text-align: center;
    transition: var(--transition);
}

.sport-card:hover {
    border-color: var(--gold);
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.06);
}

.sport-icon {
    font-size: 2.4rem;
    margin-bottom: 12px;
    line-height: 1;
}

.sport-card h3 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--navy);
    margin-bottom: 4px;
}

.sport-card p {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.sport-detail {
    font-size: 0.75rem;
    color: var(--gold-dark);
    font-weight: 500;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.athletics-philosophy {
    max-width: 700px;
    margin: 0 auto;
    text-align: center;
}

.athletics-philosophy p {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.8;
    font-style: italic;
}

/* ============================================
   TIMELINE / JOURNEY
   ============================================ */
.timeline {
    position: relative;
    max-width: 700px;
    margin: 0 auto;
    padding-left: 40px;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 8px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--cream-dark);
}

.timeline-item {
    position: relative;
    padding-bottom: 40px;
}

.timeline-item:last-child {
    padding-bottom: 0;
}

.timeline-dot {
    position: absolute;
    left: -36px;
    top: 4px;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: var(--white);
    border: 3px solid var(--gold);
    z-index: 1;
}

.timeline-content {
    background: var(--white);
    border: 1px solid var(--cream-dark);
    border-radius: 10px;
    padding: 24px;
    transition: var(--transition);
}

.timeline-content:hover {
    border-color: var(--gold);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
}

.timeline-date {
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--gold-dark);
}

.timeline-content h3 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--navy);
    margin: 6px 0 8px;
}

.timeline-content p {
    font-size: 0.88rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* ============================================
   CONTACT SECTION
   ============================================ */
.contact {
    background: var(--navy) !important;
    text-align: center;
}

.contact-content {
    max-width: 600px;
    margin: 0 auto;
}

.contact-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: 2.5rem;
    font-weight: 600;
    color: var(--white);
    margin-bottom: 20px;
}

.contact-text {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.65);
    line-height: 1.8;
    margin-bottom: 36px;
}

.contact-info {
    margin-bottom: 20px;
}

.contact-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--gold);
    text-decoration: none;
    font-size: 1.05rem;
    font-weight: 400;
    padding: 12px 28px;
    border: 1px solid var(--gold);
    border-radius: 8px;
    transition: var(--transition);
}

.contact-link:hover {
    background: var(--gold);
    color: var(--navy);
}

.contact-location {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: rgba(255, 255, 255, 0.45);
    font-size: 0.88rem;
    margin-top: 16px;
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
    background: var(--navy);
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    padding: 24px 0;
    text-align: center;
}

.footer p {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.3);
}

/* ============================================
   SCROLL REVEAL
   ============================================ */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */
@media (max-width: 768px) {
    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: rgba(10, 22, 40, 0.98);
        flex-direction: column;
        padding: 24px;
        gap: 16px;
        text-align: center;
    }

    .nav-links.active {
        display: flex;
    }

    .nav-toggle {
        display: flex;
    }

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

    .hero-details {
        flex-direction: column;
        gap: 12px;
    }

    .section {
        padding: 64px 0;
    }

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

    .academics-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .passions-grid {
        grid-template-columns: 1fr;
    }

    .writing-samples {
        grid-template-columns: 1fr;
    }

    .athletics-grid {
        grid-template-columns: 1fr 1fr;
    }

    .strength-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .strength-label {
        min-width: unset;
    }

    .strength-bar {
        width: 100%;
    }

    .score-card {
        flex-direction: column;
        text-align: center;
        gap: 8px;
    }
}

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

    .hero-tagline {
        font-size: 0.95rem;
    }

    .athletics-grid {
        grid-template-columns: 1fr;
    }

    .section-title {
        font-size: 1.8rem;
    }

    .passion-card {
        padding: 24px;
    }

    .timeline {
        padding-left: 32px;
    }
}
