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

:root {
    --gold: #F1C500;
    --gold-light: #F1C500;
    --gold-dim: #8B7220;
    --brown: #532E1F;
    --brown-mid: #7A5548;
    --dark: #1A0F0A;
    --cream: #FDF6E3;
    --cream-dark: #F5EBCE;
    --white: #FFFFFF;
    --text-muted: #8B7355;
    --border: rgba(212,175,55,0.2);
    --grad-hero: linear-gradient(135deg, #1A0F0A 0%, #2C1810 50%, #3E2318 100%);
}

html { scroll-behavior: smooth; }

body {
    font-family: 'DM Sans', sans-serif;
    background: var(--dark);
    color: var(--cream);
    overflow-x: hidden;
}

/* NOISE TEXTURE */
body::before {
    content: '';
    position: fixed;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.04'/%3E%3C/svg%3E");
    pointer-events: none;
    z-index: 9999;
    opacity: 0.4;
}

::-webkit-scrollbar { width: 4px; }
::-webkit-scrollbar-track { background: var(--dark); }
::-webkit-scrollbar-thumb { background: var(--gold); border-radius: 2px; }

/* NAV */
header {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 1000;
    padding: 1.2rem 0;
    background: rgba(26,15,10,0.85);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border);
}

nav {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}

.logo {
    font-family: 'Playfair Display', serif;
    font-size: 1.4rem;
    font-weight: 900;
    color: var(--gold);
    letter-spacing: -0.02em;
    white-space: nowrap;
    flex-shrink: 0;
}

.logo span { color: var(--cream); }

nav ul {
    list-style: none;
    display: flex;
    gap: 0.25rem;
    flex-wrap: wrap;
    justify-content: flex-end;
}

nav a {
    color: var(--cream);
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    padding: 0.4rem 0.75rem;
    border-radius: 100px;
    transition: all 0.25s;
    white-space: nowrap;
}

nav a:hover { color: var(--gold); background: rgba(212,175,55,0.1); }

.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 4px;
    flex-shrink: 0;
    z-index: 1100;
    position: relative;
}

.menu-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--gold);
    border-radius: 2px;
    transition: all 0.3s;
}

.menu-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle.open span:nth-child(2) { opacity: 0; }
.menu-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* HERO */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--grad-hero);
    position: relative;
    padding: 6rem 2rem 4rem;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    width: 700px;
    height: 700px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(212,175,55,0.12) 0%, transparent 70%);
    top: -200px; right: -200px;
    pointer-events: none;
}

.hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background: repeating-linear-gradient(0deg, transparent, transparent 79px, rgba(212,175,55,0.03) 80px);
    pointer-events: none;
}

.hero-inner {
    max-width: 900px;
    width: 100%;
    position: relative;
    z-index: 1;
}

.hero-eyebrow {
    font-family: 'DM Mono', monospace;
    font-size: 0.8rem;
    color: var(--gold);
    letter-spacing: 0.2em;
    text-transform: uppercase;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    animation: fadeUp 0.8s ease both;
}

.hero-eyebrow::before {
    content: '';
    display: block;
    width: 40px;
    height: 1px;
    background: var(--gold);
}

.hero h1 {
    font-family: 'Playfair Display', serif;
    font-size: clamp(3rem, 8vw, 7rem);
    font-weight: 900;
    line-height: 1.0;
    color: var(--cream);
    margin-bottom: 1rem;
    letter-spacing: -0.03em;
    animation: fadeUp 0.8s 0.1s ease both;
}

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

.hero-sub {
    font-size: clamp(1rem, 2.5vw, 1.3rem);
    color: var(--text-muted);
    max-width: 550px;
    line-height: 1.7;
    margin-bottom: 2.5rem;
    animation: fadeUp 0.8s 0.2s ease both;
}

.hero-ctas {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    animation: fadeUp 0.8s 0.3s ease both;
}

.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.9rem 2rem;
    background: var(--gold);
    color: var(--dark);
    text-decoration: none;
    border-radius: 6px;
    font-weight: 700;
    font-size: 0.95rem;
    letter-spacing: 0.02em;
    transition: all 0.25s;
    white-space: nowrap;
}

.btn-primary:hover {
    background: var(--gold-light);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(212,175,55,0.35);
}

.btn-ghost {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.9rem 2rem;
    background: transparent;
    color: var(--cream);
    text-decoration: none;
    border-radius: 6px;
    font-weight: 600;
    font-size: 0.95rem;
    border: 1px solid rgba(253,246,227,0.2);
    transition: all 0.25s;
    white-space: nowrap;
}

.btn-ghost:hover { border-color: var(--gold); color: var(--gold); transform: translateY(-2px); }

.hero-stats {
    display: flex;
    gap: 2.5rem;
    margin-top: 4rem;
    padding-top: 2.5rem;
    border-top: 1px solid var(--border);
    flex-wrap: wrap;
    animation: fadeUp 0.8s 0.4s ease both;
}

.hero-stat-label {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-family: 'DM Mono', monospace;
    margin-bottom: 0.3rem;
}

.hero-stat-value {
    font-family: 'Playfair Display', serif;
    font-size: 1.8rem;
    color: var(--gold);
    font-weight: 700;
}

/* SECTIONS */
.section {
    max-width: 1200px;
    margin: 0 auto;
    padding: 6rem 2rem;
}

.section-label {
    font-family: 'DM Mono', monospace;
    font-size: 0.75rem;
    color: var(--gold);
    letter-spacing: 0.2em;
    text-transform: uppercase;
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.section-label::before {
    content: '';
    display: block;
    width: 30px;
    height: 1px;
    background: var(--gold);
}

h2.section-title {
    font-family: 'Playfair Display', serif;
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 900;
    color: var(--cream);
    letter-spacing: -0.02em;
    margin-bottom: 3rem;
    line-height: 1.1;
}

h2.section-title span { color: var(--gold); }

.section-divider {
    border: none;
    border-top: 1px solid var(--border);
}

/* ABOUT */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
}

.about-text p {
    color: #C4B49A;
    font-size: 1.05rem;
    line-height: 1.85;
    margin-bottom: 1.25rem;
}

.about-text p strong { color: var(--gold); font-weight: 600; }

.skills-panel { display: flex; flex-direction: column; gap: 2rem; }

.skill-group-label {
    font-family: 'DM Mono', monospace;
    font-size: 0.7rem;
    color: var(--gold-dim);
    text-transform: uppercase;
    letter-spacing: 0.15em;
    margin-bottom: 0.75rem;
}

.skill-chips { display: flex; flex-wrap: wrap; gap: 0.5rem; }

.chip {
    padding: 0.35rem 0.9rem;
    border-radius: 100px;
    font-size: 0.82rem;
    font-weight: 500;
    letter-spacing: 0.02em;
    border: 1px solid;
    transition: all 0.2s;
    cursor: default;
}

.chip-gold {
    background: rgba(212,175,55,0.1);
    border-color: rgba(212,175,55,0.3);
    color: var(--gold);
}

.chip-gold:hover { background: rgba(212,175,55,0.2); border-color: var(--gold); transform: translateY(-1px); }

/* PROJECTS */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 1.5rem;
}

.project-card {
    background: rgba(255,255,255,0.03);
    border: 1px solid var(--border);
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s;
    display: flex;
    flex-direction: column;
}

.project-card:hover {
    border-color: rgba(212,175,55,0.5);
    transform: translateY(-4px);
    box-shadow: 0 16px 40px rgba(0,0,0,0.4), 0 0 0 1px rgba(212,175,55,0.1);
}

.project-header {
    padding: 1.75rem 1.75rem 0;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
}

.project-icon {
    width: 48px;
    height: 48px;
    border-radius: 10px;
    background: rgba(212,175,55,0.1);
    border: 1px solid rgba(212,175,55,0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    flex-shrink: 0;
}

.status-badge {
    font-family: 'DM Mono', monospace;
    font-size: 0.65rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    padding: 0.3rem 0.7rem;
    border-radius: 100px;
    white-space: nowrap;
}

.badge-live { background: rgba(16,185,129,0.15); color: #10B981; border: 1px solid rgba(16,185,129,0.3); }
.badge-wip  { background: rgba(59,130,246,0.15); color: #60A5FA; border: 1px solid rgba(59,130,246,0.3); }
.badge-ns   { background: rgba(107,114,128,0.15); color: #9CA3AF; border: 1px solid rgba(107,114,128,0.3); }

.project-body {
    padding: 1.25rem 1.75rem;
    flex: 1;
}

.project-body h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.25rem;
    color: var(--cream);
    margin-bottom: 0.5rem;
    font-weight: 700;
}

.project-body p {
    color: #9A8B77;
    font-size: 0.9rem;
    line-height: 1.7;
    margin-bottom: 1rem;
}

.project-tags { display: flex; flex-wrap: wrap; gap: 0.4rem; }

.ptag {
    font-family: 'DM Mono', monospace;
    font-size: 0.7rem;
    color: var(--gold-dim);
    background: rgba(212,175,55,0.06);
    border: 1px solid rgba(212,175,55,0.12);
    padding: 0.2rem 0.6rem;
    border-radius: 4px;
}

.project-footer {
    padding: 1.25rem 1.75rem;
    border-top: 1px solid var(--border);
    display: flex;
    gap: 1.25rem;
    flex-wrap: wrap;
}

.project-link {
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--text-muted);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.35rem;
    transition: color 0.2s;
}

.project-link:hover { color: var(--gold); }

/* TIMELINE */
.timeline {
    position: relative;
    padding-left: 2rem;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 0;
    top: 8px;
    bottom: 0;
    width: 1px;
    background: linear-gradient(to bottom, var(--gold), transparent);
}

.timeline-item {
    position: relative;
    padding: 0 0 3rem 2rem;
}

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

.timeline-dot {
    position: absolute;
    left: -0.45rem;
    top: 0.4rem;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: var(--gold);
    border: 2px solid var(--dark);
    box-shadow: 0 0 0 2px rgba(212,175,55,0.3);
}

.timeline-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 0.5rem 1rem;
    margin-bottom: 0.3rem;
}

.timeline-role {
    font-family: 'Playfair Display', serif;
    font-size: 1.2rem;
    color: var(--cream);
    font-weight: 700;
}

.timeline-company {
    font-family: 'DM Mono', monospace;
    font-size: 0.78rem;
    color: var(--gold);
    letter-spacing: 0.05em;
}

.timeline-date {
    font-size: 0.78rem;
    color: var(--text-muted);
    font-style: italic;
}

.timeline-body { margin-top: 0.75rem; }

.timeline-body li {
    color: #9A8B77;
    font-size: 0.92rem;
    line-height: 1.75;
    padding-left: 1rem;
    position: relative;
    margin-bottom: 0.35rem;
    list-style: none;
}

.timeline-body li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--gold-dim);
    font-size: 0.75rem;
    top: 0.15rem;
}

/* EDUCATION */
.edu-card {
    background: rgba(255,255,255,0.03);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 2.5rem;
    margin-bottom: 2rem;
}

.edu-card h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.6rem;
    color: var(--cream);
    margin-bottom: 0.4rem;
    font-weight: 700;
}

.edu-meta {
    font-family: 'DM Mono', monospace;
    font-size: 0.78rem;
    color: var(--gold);
    letter-spacing: 0.05em;
    margin-bottom: 0.75rem;
}

.edu-honors {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(212,175,55,0.1);
    border: 1px solid rgba(212,175,55,0.25);
    padding: 0.4rem 1rem;
    border-radius: 100px;
    font-size: 0.82rem;
    color: var(--gold);
    margin-bottom: 1.5rem;
}

.coursework-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 0.5rem;
    margin-top: 1rem;
}

.course-item {
    font-size: 0.82rem;
    color: white;
    padding: 0.4rem 0.75rem;
    background: rgba(212,175,55,0.1);
    border: 1px solid rgba(212,175,55,0.25);
    border-radius: 6px;
}

/* CONTACT */
.contact-layout {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 4rem;
    align-items: start;
}

.contact-aside h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    color: var(--cream);
    margin-bottom: 1rem;
    font-weight: 700;
}

.contact-aside p {
    color: #9A8B77;
    font-size: 0.95rem;
    line-height: 1.75;
    margin-bottom: 2rem;
}

.contact-social-links { display: flex; flex-direction: column; gap: 0.75rem; }

.social-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.85rem 1.25rem;
    background: rgba(255,255,255,0.03);
    border: 1px solid var(--border);
    border-radius: 10px;
    text-decoration: none;
    color: var(--cream);
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.25s;
}

.social-link:hover {
    border-color: var(--gold);
    background: rgba(212,175,55,0.06);
    color: var(--gold);
    transform: translateX(4px);
}

.social-icon {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    background: rgba(212,175,55,0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    flex-shrink: 0;
}

.contact-form {
    background: rgba(255,255,255,0.03);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 2.5rem;
}

.form-group { margin-bottom: 1.25rem; }

.form-group label {
    display: block;
    font-size: 0.78rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-muted);
    font-family: 'DM Mono', monospace;
    margin-bottom: 0.5rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.85rem 1rem;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 8px;
    color: var(--cream);
    font-family: 'DM Sans', sans-serif;
    font-size: 0.95rem;
    transition: all 0.25s;
}

.form-group input::placeholder,
.form-group textarea::placeholder { color: rgba(253,246,227,0.2); }

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: rgba(212,175,55,0.4);
    background: rgba(212,175,55,0.04);
    box-shadow: 0 0 0 3px rgba(212,175,55,0.08);
}

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

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }

.submit-btn {
    width: 100%;
    padding: 1rem;
    background: var(--gold);
    color: var(--dark);
    border: none;
    border-radius: 8px;
    font-family: 'DM Sans', sans-serif;
    font-size: 0.95rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    cursor: pointer;
    transition: all 0.25s;
    margin-top: 0.5rem;
}

.submit-btn:hover {
    background: var(--gold-light);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(212,175,55,0.3);
}

/* FOOTER */
footer {
    background: #0D0705;
    border-top: 1px solid var(--border);
    padding: 2rem;
}

.footer-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-logo {
    font-family: 'Playfair Display', serif;
    font-weight: 900;
    color: var(--gold);
    font-size: 1.1rem;
}

footer p { color: var(--text-muted); font-size: 0.82rem; }
footer a { color: var(--gold); text-decoration: none; }

/* ANIMATIONS */
@keyframes fadeUp {
    from { opacity: 0; transform: translateY(24px); }
    to   { opacity: 1; transform: translateY(0); }
}

.reveal {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

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

/* MOBILE */
@media (max-width: 768px) {
    .menu-toggle { display: flex; }

    nav ul {
        display: none;
        position: absolute;
        top: 100%;
        left: 0; right: 0;
        background: #1A0F0A;
        backdrop-filter: blur(16px);
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        z-index: 1050;
        padding: 0.5rem 2rem;
        border-bottom: 1px solid var(--border);
    }

    nav ul.open { display: flex; }

    nav a {
        font-size: 1.2rem;
        padding: 0.6rem 1rem;
        width: 100%;
        text-align: center;
        border-radius: 6px;
        overflow: hidden;
    }

    nav li { overflow: hidden; }

    .hero { padding: 7rem 1.5rem 4rem; }
    .hero-stats { gap: 1.5rem; }
    .hero-ctas { flex-direction: column; }
    .btn-primary, .btn-ghost { justify-content: center; }

    .section { padding: 4rem 1.5rem; }

    .about-grid { grid-template-columns: 1fr; gap: 2.5rem; }

    .form-row { grid-template-columns: 1fr; }

    .contact-layout { grid-template-columns: 1fr; gap: 2.5rem; }

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

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

    .timeline { padding-left: 1.25rem; }
    .timeline-item { padding-left: 1.5rem; }

    .footer-inner { flex-direction: column; text-align: center; }

    .diploma-viewer { height: 300px; }

    .hero-stat-value { font-size: 1.4rem; }
}

@media (max-width: 480px) {
    .hero h1 { font-size: 2.5rem; }
    .coursework-grid { grid-template-columns: 1fr; }
    .contact-form { padding: 1.5rem; }
    .edu-card { padding: 1.5rem; }
    .hero-stats { gap: 1rem; }
}
