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

:root {
    --primary-color: #2563eb;
    --secondary-color: #1e40af;
    --text-dark: #1f2937;
    --text-light: #6b7280;
    --bg-light: #f9fafb;
    --white: #ffffff;
    --border-color: #e5e7eb;
}
    @import url('https://fonts.googleapis.com/css2?family=DM+Mono:wght@400;500&family=Space+Grotesk:wght@400;500;600;700&display=swap');

    :root {
        --ink: #17191d;
        --paper: #f4f1eb;
        --muted: #777b7b;
        --line: #d2cec4;
        --lime: #b99bea;
        --green: #c8ed62;
        --coral: #ff694d;
        --blue: #a8d5ff;
        --white: #fffdf8;
    }

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

    html { scroll-behavior: smooth; }

    body {
        background: var(--paper);
        color: var(--ink);
        font-family: 'Space Grotesk', sans-serif;
        line-height: 1.5;
        overflow-x: hidden;
    }

    body::before {
        content: '';
        position: fixed;
        inset: 0;
        pointer-events: none;
        opacity: .3;
        background-image: radial-gradient(#aaa69b 0.55px, transparent 0.55px);
        background-size: 7px 7px;
        z-index: -1;
    }

    a { color: inherit; }
    .container { width: min(1180px, calc(100% - 64px)); margin: 0 auto; }

    .navbar {
        position: sticky;
        top: 0;
        z-index: 100;
        background: rgba(244, 241, 235, .9);
        backdrop-filter: blur(12px);
        border-bottom: 1px solid var(--line);
    }

    .navbar .container { min-height: 76px; display: flex; justify-content: space-between; align-items: center; }
    .logo { font-size: 1.15rem; font-weight: 700; letter-spacing: -.04em; text-transform: uppercase; }
    .logo::before { content: '●'; color: var(--coral); margin-right: 8px; font-size: .8rem; }
    .nav-links { display: flex; gap: 24px; list-style: none; }
    .nav-links a { color: var(--muted); font-family: 'DM Mono', monospace; font-size: .7rem; text-decoration: none; text-transform: uppercase; transition: color .2s ease; }
    .nav-links a:hover, .nav-links a.active { color: var(--ink); }
    .nav-links a.active::after { content: ' ↗'; color: var(--coral); }
    .hamburger { display: none; cursor: pointer; }
    .hamburger span { display: block; width: 26px; height: 2px; margin: 5px 0; background: var(--ink); transition: transform .2s ease, opacity .2s ease; }
    .hamburger.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
    .hamburger.active span:nth-child(2) { opacity: 0; }
    .hamburger.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

    .hero {
        min-height: min(720px, calc(100vh - 76px));
        display: flex;
        align-items: center;
        position: relative;
        overflow: hidden;
        background: var(--ink);
        color: var(--paper);
        padding: 100px 0 120px;
    }
    .hero::before, .hero::after { content: ''; position: absolute; border: 1px solid rgba(244, 241, 235, .16); border-radius: 50%; pointer-events: none; }
    .hero::before { width: 62vw; height: 62vw; right: -15vw; top: -25vw; }
    .hero::after { width: 36vw; height: 36vw; left: -18vw; bottom: -20vw; }
    .hero .container { position: relative; z-index: 1; }
    .hero h1 { max-width: 920px; font-size: clamp(4rem, 10vw, 9.5rem); font-weight: 500; line-height: .88; letter-spacing: -.09em; animation: rise .8s both cubic-bezier(.2,.8,.2,1); }
    .hero h1::after { content: ''; display: inline-block; width: clamp(20px, 4vw, 64px); height: clamp(20px, 4vw, 64px); margin-left: 14px; background: var(--lime); border-radius: 50%; vertical-align: 12%; }
    .hero p { max-width: 510px; margin: 44px 0 28px; color: #babbb5; font-family: 'DM Mono', monospace; font-size: .85rem; text-transform: uppercase; animation: rise .8s .12s both cubic-bezier(.2,.8,.2,1); }
    .hero-buttons { animation: rise .8s .2s both cubic-bezier(.2,.8,.2,1); }
    .cta-button { display: inline-flex; align-items: center; gap: 18px; padding: 14px 20px; border: 1px solid var(--lime); background: var(--lime); color: var(--ink); font-family: 'DM Mono', monospace; font-size: .72rem; text-decoration: none; text-transform: uppercase; transition: background .2s, color .2s, transform .2s; }
    .cta-button::after { content: '↗'; font-size: 1rem; }
    .cta-button:hover { background: transparent; color: var(--lime); transform: translateY(-3px); }
    .hero::marker { display: none; }
    .hero .container::after { content: 'SCROLL TO EXPLORE ↓'; position: absolute; right: 0; bottom: -84px; color: #777b7b; font-family: 'DM Mono', monospace; font-size: .65rem; letter-spacing: .08em; writing-mode: vertical-rl; }

    section { padding: 120px 0; border-bottom: 1px solid var(--line); }
    section h2 { margin-bottom: 55px; font-size: clamp(2.6rem, 6vw, 5.5rem); font-weight: 500; line-height: .95; letter-spacing: -.08em; }
    section h2::before { content: '↘'; display: block; margin-bottom: 18px; color: var(--coral); font-family: 'DM Mono', monospace; font-size: 1rem; letter-spacing: 0; }
    .about { background: var(--paper); }
    .about p { max-width: 790px; margin-left: auto; color: var(--muted); font-size: clamp(1.15rem, 2.5vw, 2rem); line-height: 1.25; letter-spacing: -.04em; }
    .about p + p { margin-top: 28px; font-size: 1rem; line-height: 1.6; letter-spacing: 0; }

    .experience { background: var(--blue); }
    .experience-timeline { max-width: 900px; margin-left: auto; border-top: 1px solid var(--ink); }
    .timeline-item { position: relative; padding: 28px 0 36px; border-bottom: 1px solid rgba(23,25,29,.35); }
    .timeline-marker { display: none; }
    .timeline-content { display: grid; grid-template-columns: 1.1fr 1fr 1.5fr; gap: 24px; }
    .timeline-content h3 { font-size: 1.35rem; font-weight: 600; }
    .timeline-content .company { color: var(--coral); font-family: 'DM Mono', monospace; font-size: .75rem; text-transform: uppercase; }
    .timeline-content .date { grid-column: 1; color: var(--muted); font-family: 'DM Mono', monospace; font-size: .72rem; }
    .timeline-content p:last-child { grid-column: 3; color: #454a4a; font-size: .95rem; }

    .volunteering, .education { background: var(--paper); }
    .volunteering-items, .education-items { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--ink); border: 1px solid var(--ink); }
    .volunteering-item, .education-item { min-height: 260px; padding: 28px; background: var(--paper); border: 0; border-radius: 0; box-shadow: none; }
    .volunteering-item h3, .education-item h3 { margin-bottom: 20px; font-size: 1.2rem; line-height: 1.1; }
    .organization, .institution { color: var(--coral) !important; font-family: 'DM Mono', monospace; font-size: .72rem !important; text-transform: uppercase; }
    .date, .details { color: var(--muted) !important; font-family: 'DM Mono', monospace; font-size: .7rem !important; }
    .volunteering-item p:last-child, .education-item p:last-child { margin-top: 32px; color: var(--muted); font-size: .85rem; }
    .education-items { grid-template-columns: repeat(3, 1fr); }
    .education-item .grade { color: var(--ink) !important; font-weight: 600; }

    .projects { background: var(--coral); }
    .projects-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--ink); border: 1px solid var(--ink); }
    .project-card { min-height: 390px; display: flex; flex-direction: column; padding: 28px; border: 0; border-radius: 0; background: var(--paper); transition: transform .25s ease, background .25s ease; }
    .project-card:nth-child(2) { background: var(--lime); }
    .project-card:nth-child(3) { background: var(--blue); }
    .project-card:hover { transform: translateY(-10px); }
    .project-card h3 { margin: 0 0 24px; font-size: 1.5rem; font-weight: 500; line-height: 1; letter-spacing: -.06em; }
    .project-card p { color: var(--muted); font-size: .9rem; }
    .project-link { margin-top: auto; color: var(--ink); font-family: 'DM Mono', monospace; font-size: .7rem; text-decoration: none; text-transform: uppercase; }
    .project-link:hover { text-decoration: underline; }

    .languages { background: var(--ink); color: var(--paper); }
    .languages h2 { color: var(--paper); }
    .languages-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 38px; }
    .language-item h3 { font-size: 1.5rem; font-weight: 500; }
    .language-item .level { color: var(--lime); font-family: 'DM Mono', monospace; font-size: .7rem; text-transform: uppercase; }
    .proficiency-bar { height: 5px; margin: 20px 0 10px; background: #3b3e3d; border-radius: 0; }
    .proficiency-fill { background: var(--lime); border-radius: 0; }
    .language-item .details { color: #969a94 !important; }

    .skills { background: var(--lime); }
    .skills-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 18px; }
    .skill-item h3 { min-height: 48px; margin-bottom: 14px; font-size: 1.05rem; font-weight: 600; line-height: 1.05; }
    .skill-item ul { list-style: none; border-top: 1px solid var(--ink); }
    .skill-item li { padding: 9px 0; border-bottom: 1px solid rgba(23,25,29,.2); color: #4c5148; font-family: 'DM Mono', monospace; font-size: .65rem; }
    .skill-item li::before { content: '+ '; color: var(--coral); font-weight: 500; }

    .contact { background: var(--paper); text-align: left; }
    .contact h2 { max-width: 700px; }
    .contact > .container > p { max-width: 400px; margin: -25px 0 38px; color: var(--muted); }
    .contact-links { display: flex; gap: 12px; flex-wrap: wrap; }
    .contact-link { padding: 13px 16px; border: 1px solid var(--ink); color: var(--ink); font-family: 'DM Mono', monospace; font-size: .7rem; text-decoration: none; text-transform: uppercase; transition: background .2s, color .2s; }
    .contact-link:hover { background: var(--ink); color: var(--lime); }
    .footer { padding: 26px 0; background: var(--ink); color: #969a94; font-family: 'DM Mono', monospace; font-size: .65rem; text-transform: uppercase; }

    @keyframes rise { from { opacity: 0; transform: translateY(28px); } to { opacity: 1; transform: translateY(0); } }

    @media (max-width: 900px) {
        .nav-links { gap: 12px; }
        .skills-grid { grid-template-columns: repeat(3, 1fr); }
        .timeline-content { grid-template-columns: 1fr 1fr; }
        .timeline-content p:last-child { grid-column: 1 / -1; }
    }

    @media (max-width: 680px) {
        .container { width: min(100% - 40px, 560px); }
        .navbar .container { min-height: 68px; }
        .hamburger { display: block; }
        .nav-links { position: absolute; top: 68px; left: 0; right: 0; display: block; padding: 14px 20px; background: var(--paper); border-bottom: 1px solid var(--line); transform: translateY(-140%); transition: transform .25s ease; }
        .nav-links.active { transform: translateY(0); }
        .nav-links li { padding: 9px 0; }
        .hero { min-height: 620px; padding: 80px 0; }
        .hero h1 { font-size: clamp(3.5rem, 17vw, 6rem); }
        .hero .container::after { right: 4px; bottom: -55px; }
        section { padding: 80px 0; }
        .timeline-content, .volunteering-items, .education-items, .projects-grid, .languages-grid { grid-template-columns: 1fr; }
        .volunteering-item, .education-item { min-height: auto; }
        .project-card { min-height: 300px; }
        .skills-grid { grid-template-columns: repeat(2, 1fr); gap: 28px 14px; }
        .skill-item h3 { min-height: auto; }
    }

    @media (prefers-reduced-motion: reduce) {
        *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; transition-duration: .01ms !important; }
    }

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen',
        'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue', sans-serif;
    color: var(--text-dark);
    line-height: 1.6;
    background-color: var(--white);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Navigation */
.navbar {
    background-color: var(--white);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
    z-index: 100;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background-color: var(--text-dark);
    border-radius: 2px;
    transition: all 0.3s ease;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(10px, 10px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

.logo {
    font-size: 24px;
    font-weight: bold;
    color: var(--primary-color);
}

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

.nav-links a {
    text-decoration: none;
    color: var(--text-dark);
    transition: color 0.3s ease;
}

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

/* Hero Section */
.hero {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 25%, #f093fb 50%, #4facfe 75%, #00f2fe 100%);
    background-size: 400% 400%;
    animation: gradientShift 15s ease infinite;
    color: var(--white);
    padding: 120px 20px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 120"><path d="M0,50 Q300,0 600,50 T1200,50 L1200,120 L0,120 Z" fill="rgba(255,255,255,0.1)"></path></svg>');
    background-repeat: repeat-x;
    background-size: 600px 120px;
    animation: wave 15s linear infinite;
}

.hero .container {
    position: relative;
    z-index: 2;
}

@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

@keyframes wave {
    0% { background-position: 0 0; }
    100% { background-position: 600px 0; }
}

.hero h1 {
    font-size: 48px;
    margin-bottom: 20px;
    animation: fadeInUp 0.8s ease;
}

.hero p {
    font-size: 20px;
    margin-bottom: 30px;
    opacity: 0.9;
}

.cta-button {
    display: inline-block;
    background-color: var(--white);
    color: var(--primary-color);
    padding: 12px 30px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 600;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.cta-button.secondary {
    background-color: transparent;
    border: 2px solid var(--white);
}

.cta-button.secondary:hover {
    background-color: var(--white);
}

.hero-buttons {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    justify-content: center;
    margin-top: 20px;
}

/* About Section */
.about {
    padding: 80px 20px;
    background-color: var(--bg-light);
}

.about h2,
.projects h2,
.skills h2,
.contact h2 {
    font-size: 36px;
    margin-bottom: 40px;
    text-align: center;
}

.about p {
    font-size: 16px;
    color: var(--text-light);
    max-width: 800px;
    margin: 0 auto 20px;
    line-height: 1.8;
}

/* Volunteering Section */
.volunteering {
    padding: 80px 20px;
    background-color: var(--bg-light);
}

.volunteering-items {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    max-width: 1000px;
    margin: 0 auto;
}

.volunteering-item {
    background-color: var(--white);
    padding: 30px;
    border-radius: 8px;
    border-left: 4px solid var(--primary-color);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    margin-bottom: 25px;
}

.volunteering-item h3 {
    font-size: 18px;
    margin-bottom: 8px;
    margin-top: 0;
    color: var(--text-dark);
}

.volunteering-item .organization {
    font-size: 16px;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 5px;
}

.volunteering-item .date {
    font-size: 14px;
    color: var(--text-light);
    margin-bottom: 15px;
}

.volunteering-item p {
    color: var(--text-light);
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 0;
}

/* Projects Section */
.projects {
    padding: 80px 20px;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.project-card {
    background-color: var(--white);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    padding: 30px;
}

.project-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.project-image {
    display: none;
}

.project-card h3 {
    font-size: 20px;
    margin-bottom: 15px;
    margin-top: 0;
}

.project-card p {
    color: var(--text-light);
    margin: 0 0 20px 0;
    font-size: 14px;
}

.project-link {
    display: inline-block;
    margin: 0;
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

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

/* Experience Section */
.experience {
    padding: 80px 20px;
}

.experience-timeline {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
}

.experience-timeline::before {
    content: '';
    position: absolute;
    left: 30px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--primary-color);
}

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

.timeline-marker {
    position: absolute;
    left: 0;
    top: 5px;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--primary-color);
    border: 4px solid var(--white);
    box-shadow: 0 0 0 4px var(--primary-color);
}

.timeline-content h3 {
    font-size: 20px;
    margin-bottom: 5px;
    color: var(--text-dark);
}

.timeline-content .company {
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 3px;
}

.timeline-content .date {
    color: var(--text-light);
    font-size: 14px;
    margin-bottom: 10px;
}

.timeline-content p {
    color: var(--text-light);
    line-height: 1.6;
}

/* Languages Section */
.languages {
    padding: 80px 20px;
}

.languages-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    max-width: 900px;
    margin: 0 auto;
}

.language-item {
    text-align: center;
}

.language-item h3 {
    font-size: 18px;
    margin-bottom: 8px;
    color: var(--text-dark);
}

.language-item .level {
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 15px;
}

.proficiency-bar {
    width: 100%;
    height: 8px;
    background-color: var(--border-color);
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 10px;
}

.proficiency-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    border-radius: 10px;
    transition: width 0.6s ease;
}

.language-item .details {
    font-size: 12px;
    color: var(--text-light);
}

/* Education Section */
.education {
    padding: 80px 20px;
    background-color: var(--bg-light);
}

.education-items {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    max-width: 1000px;
    margin: 0 auto;
}

.education-item {
    background-color: var(--white);
    padding: 30px;
    border-radius: 8px;
    border-left: 4px solid var(--primary-color);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    margin-bottom: 25px;
}

.education-item h3 {
    font-size: 18px;
    margin-bottom: 8px;
    color: var(--text-dark);
}

.education-item .institution {
    font-size: 16px;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 5px;
}

.education-item .details {
    font-size: 14px;
    color: var(--text-light);
    margin-bottom: 5px;
}

.education-item .grade {
    font-size: 14px;
    font-weight: 600;
    color: var(--secondary-color);
    margin-bottom: 10px;
}

.education-item p {
    color: var(--text-light);
    font-size: 14px;
    line-height: 1.6;
}

/* Skills Section */
.skills {
    padding: 80px 20px;
    background-color: var(--bg-light);
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    max-width: 900px;
    margin: 0 auto;
}

.skill-item h3 {
    font-size: 20px;
    margin-bottom: 20px;
    color: var(--primary-color);
}

.skill-item ul {
    list-style: none;
}

.skill-item li {
    padding: 8px 0;
    color: var(--text-light);
}

.skill-item li:before {
    content: "→ ";
    color: var(--primary-color);
    font-weight: bold;
    margin-right: 10px;
}

/* Contact Section */
.contact {
    padding: 80px 20px;
    text-align: center;
}

.contact p {
    font-size: 16px;
    color: var(--text-light);
    margin-bottom: 40px;
}

.contact-links {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
}

.contact-link {
    display: inline-block;
    padding: 12px 24px;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    text-decoration: none;
    border-radius: 5px;
    transition: all 0.3s ease;
}

.contact-link:hover {
    background-color: var(--primary-color);
    color: var(--white);
}

/* Footer */
.footer {
    background-color: var(--text-dark);
    color: var(--white);
    padding: 30px 20px;
    text-align: center;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }

    .nav-links {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background-color: var(--white);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 27px rgba(0, 0, 0, 0.05);
        gap: 0;
        padding: 20px 0;
        z-index: 99;
    }

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

    .nav-links li {
        padding: 15px 0;
    }

    .hero h1 {
        font-size: 36px;
    }

    .hero p {
        font-size: 16px;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }

    .cta-button {
        width: 100%;
        max-width: 300px;
        text-align: center;
    }

    .about h2,
    .projects h2,
    .skills h2,
    .languages h2,
    .experience h2,
    .education h2,
    .volunteering h2,
    .contact h2 {
        font-size: 28px;
    }

    .contact-links {
        gap: 15px;
    }

    .experience-timeline::before {
        left: 20px;
    }

    .timeline-marker {
        width: 40px;
        height: 40px;
        left: 0;
        box-shadow: 0 0 0 3px var(--primary-color);
    }

    .timeline-item {
        padding-left: 70px;
    }
}

@media (max-width: 480px) {
    .nav-links {
        flex-direction: column;
        gap: 10px;
    }

    .hero h1 {
        font-size: 28px;
    }

    .hero {
        padding: 60px 20px;
    }
}

/* Portfolio art direction */
html { scroll-behavior: smooth; }
body { background: var(--paper); color: var(--ink); font-family: 'Space Grotesk', sans-serif; overflow-x: hidden; }
body::before { content: ''; position: fixed; inset: 0; pointer-events: none; opacity: .3; background-image: radial-gradient(#aaa69b .55px, transparent .55px); background-size: 7px 7px; z-index: -1; }
.container { width: min(1180px, calc(100% - 64px)); padding: 0; }
.navbar { background: rgba(244,241,235,.9); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); box-shadow: none; }
.navbar .container { min-height: 76px; }
.logo { color: var(--ink); font-size: 1.15rem; letter-spacing: -.04em; text-transform: uppercase; }
.logo::before { content: '●'; color: var(--coral); margin-right: 8px; font-size: .8rem; }
.nav-links { gap: 24px; }
.nav-links a { color: var(--muted); font-family: 'DM Mono', monospace; font-size: .7rem; text-transform: uppercase; }
.nav-links a:hover, .nav-links a.active { color: var(--ink); }
.nav-links a.active::after { content: ' ↗'; color: var(--coral); }
.hamburger span { background: var(--ink); border-radius: 0; }
.hero { min-height: min(720px, calc(100vh - 76px)); display: flex; align-items: center; background: var(--ink); color: var(--paper); padding: 100px 0 120px; }
.hero::before, .hero::after { content: ''; position: absolute; border: 1px solid rgba(244,241,235,.16); border-radius: 50%; pointer-events: none; background: none; }
.hero::before { width: 62vw; height: 62vw; right: -15vw; top: -25vw; }
.hero::after { width: 36vw; height: 36vw; left: -18vw; bottom: -20vw; }
.hero h1 { max-width: 920px; font-size: clamp(4rem, 10vw, 9.5rem); font-weight: 500; line-height: .88; letter-spacing: -.09em; animation: rise .8s both cubic-bezier(.2,.8,.2,1); }
.hero h1::after { content: ''; display: inline-block; width: clamp(20px,4vw,64px); height: clamp(20px,4vw,64px); margin-left: 14px; background: var(--lime); border-radius: 50%; vertical-align: 12%; }
.hero p { max-width: 510px; margin: 44px 0 28px; color: #babbb5; font-family: 'DM Mono', monospace; font-size: .85rem; text-transform: uppercase; }
.hero-buttons { margin-top: 0; }
.cta-button { display: inline-flex; align-items: center; gap: 18px; padding: 14px 20px; border: 1px solid var(--lime); border-radius: 0; background: var(--lime); color: var(--ink); font-family: 'DM Mono', monospace; font-size: .72rem; text-transform: uppercase; }
.cta-button::after { content: '↗'; font-size: 1rem; }
.cta-button:hover { background: transparent; color: var(--lime); }
.hero .container::after { content: 'SCROLL TO EXPLORE ↓'; position: absolute; right: 0; bottom: -84px; color: #777b7b; font-family: 'DM Mono', monospace; font-size: .65rem; writing-mode: vertical-rl; }
section { padding: 120px 0; border-bottom: 1px solid var(--line); }
section h2 { margin-bottom: 55px; font-size: clamp(2.6rem,6vw,5.5rem); font-weight: 500; line-height: .95; letter-spacing: -.08em; }
section h2::before { content: '↘'; display: block; margin-bottom: 18px; color: var(--coral); font-family: 'DM Mono', monospace; font-size: 1rem; }
.about { background: var(--paper); }
.about p { max-width: 790px; margin-left: auto; color: var(--muted); font-size: clamp(1.15rem,2.5vw,2rem); line-height: 1.25; letter-spacing: -.04em; }
.about p + p { margin-top: 28px; font-size: 1rem; line-height: 1.6; letter-spacing: 0; }
.experience { background: var(--blue); }
.experience-timeline { max-width: 900px; margin-left: auto; border-top: 1px solid var(--ink); }
.timeline-item { padding: 28px 0 36px; border-bottom: 1px solid rgba(23,25,29,.35); }
.timeline-marker { display: none; }
.timeline-content { display: grid; grid-template-columns: 1.1fr 1fr 1.5fr; gap: 24px; }
.timeline-content h3 { font-size: 1.35rem; }
.timeline-content .company { color: var(--coral); font-family: 'DM Mono', monospace; font-size: .75rem; text-transform: uppercase; }
.timeline-content .date { grid-column: 1; font-family: 'DM Mono', monospace; font-size: .72rem; }
.timeline-content p:last-child { grid-column: 3; color: #454a4a; font-size: .95rem; }
.volunteering, .education { background: var(--paper); }
.volunteering-items, .education-items, .projects-grid { display: grid; gap: 1px; background: var(--ink); border: 1px solid var(--ink); }
.volunteering-items, .education-items { grid-template-columns: repeat(3,1fr); }
.volunteering-item, .education-item { min-height: 260px; padding: 28px; background: var(--paper); border: 0; border-radius: 0; box-shadow: none; }
.volunteering-item h3, .education-item h3 { margin-bottom: 20px; font-size: 1.2rem; line-height: 1.1; }
.organization, .institution { color: var(--coral) !important; font-family: 'DM Mono', monospace; font-size: .72rem !important; text-transform: uppercase; }
.date, .details { color: var(--muted) !important; font-family: 'DM Mono', monospace; font-size: .7rem !important; }
.projects { background: var(--coral); }
.projects-grid { grid-template-columns: repeat(3,1fr); }
.project-card { min-height: 390px; display: flex; flex-direction: column; padding: 28px; border: 0; border-radius: 0; background: var(--paper); }
.project-card:nth-child(2) { background: var(--lime); }
.project-card:nth-child(3) { background: var(--blue); }
.project-card:hover { transform: translateY(-10px); }
.project-card h3 { margin: 0 0 24px; font-size: 1.5rem; font-weight: 500; line-height: 1; letter-spacing: -.06em; }
.project-card p { color: var(--muted); font-size: .9rem; }
.project-link { margin-top: auto; color: var(--ink); font-family: 'DM Mono', monospace; font-size: .7rem; text-transform: uppercase; }
.languages { background: var(--ink); color: var(--paper); }
.languages h2 { color: var(--paper); }
.languages-grid { grid-template-columns: repeat(3,1fr); gap: 38px; }
.language-item h3 { font-size: 1.5rem; font-weight: 500; }
.language-item .level { color: var(--lime); font-family: 'DM Mono', monospace; font-size: .7rem; text-transform: uppercase; }
.proficiency-bar { height: 5px; margin: 20px 0 10px; background: #3b3e3d; border-radius: 0; }
.proficiency-fill { background: var(--lime); border-radius: 0; }
.skills { background: var(--lime); }
.skills-grid { grid-template-columns: repeat(5,1fr); gap: 18px; }
.skill-item h3 { min-height: 48px; margin-bottom: 14px; font-size: 1.05rem; line-height: 1.05; }
.skill-item li { padding: 9px 0; border-bottom: 1px solid rgba(23,25,29,.2); color: #4c5148; font-family: 'DM Mono', monospace; font-size: .65rem; }
.skill-item li::before { content: '+ '; color: var(--coral); }
.contact { background: var(--paper); text-align: left; }
.contact > .container > p { max-width: 400px; margin: -25px 0 38px; color: var(--muted); }
.contact-link { padding: 13px 16px; border: 1px solid var(--ink); border-radius: 0; color: var(--ink); font-family: 'DM Mono', monospace; font-size: .7rem; text-transform: uppercase; }
.contact-link:hover { background: var(--ink); color: var(--lime); }
.footer { padding: 26px 0; background: var(--ink); color: #969a94; font-family: 'DM Mono', monospace; font-size: .65rem; text-transform: uppercase; }

@keyframes rise { from { opacity: 0; transform: translateY(28px); } to { opacity: 1; transform: translateY(0); } }

@media (max-width: 900px) {
    .nav-links { gap: 12px; }
    .skills-grid { grid-template-columns: repeat(3,1fr); }
    .timeline-content { grid-template-columns: 1fr 1fr; }
    .timeline-content p:last-child { grid-column: 1 / -1; }
}
@media (max-width: 680px) {
    .container { width: min(100% - 40px, 560px); }
    .navbar .container { min-height: 68px; }
    .hamburger { display: block; }
    .nav-links { position: absolute; top: 68px; left: 0; right: 0; display: block; padding: 14px 20px; background: var(--paper); border-bottom: 1px solid var(--line); transform: translateY(-140%); transition: transform .25s ease; }
    .nav-links.active { transform: translateY(0); }
    .nav-links li { padding: 9px 0; }
    .hero { min-height: 620px; padding: 80px 0; }
    .hero h1 { font-size: clamp(3.5rem,17vw,6rem); }
    .hero .container::after { right: 4px; bottom: -55px; }
    section { padding: 80px 0; }
    .timeline-content, .volunteering-items, .education-items, .projects-grid, .languages-grid { grid-template-columns: 1fr; }
    .volunteering-item, .education-item { min-height: auto; }
    .project-card { min-height: 300px; }
    .skills-grid { grid-template-columns: repeat(2,1fr); gap: 28px 14px; }
    .skill-item h3 { min-height: auto; }
}

/* Requested controls and section refinements */
.site-controls { display: flex; align-items: center; gap: 10px; margin-left: auto; margin-right: 28px; }
.language-toggle { display: flex; border: 1px solid var(--ink); }
.language-button, .theme-toggle { border: 0; background: transparent; color: var(--ink); cursor: pointer; font-family: 'DM Mono', monospace; font-size: .65rem; }
.language-button { min-width: 32px; padding: 7px 6px; }
.language-button.active { background: var(--ink); color: var(--paper); }
.theme-toggle { width: 30px; height: 30px; border: 1px solid var(--ink); font-size: 1rem; line-height: 1; }
.theme-toggle:hover { background: var(--ink); color: var(--lime); }
.experience-timeline::before { display: none; }
.volunteering-items { max-width: 760px; margin: 0 auto; grid-template-columns: 1fr; }
.volunteering-item { min-height: 0; }
.contact { text-align: center; }
.contact > .container > p { margin: -25px auto 38px; }
.contact-links { justify-content: center; }
.languages .language-item h3 { color: var(--paper); }
.languages .language-item .details { color: var(--paper) !important; }

[data-theme='dark'] {
    --ink: #f4f1eb;
    --paper: #151719;
    --muted: #aeb2ab;
    --line: #3b3f3e;
    --white: #202321;
}
[data-theme='dark'] body::before { opacity: .14; }
[data-theme='dark'] .navbar { background: rgba(21,23,25,.9); }
[data-theme='dark'] .nav-links { background: var(--paper); }
[data-theme='dark'] .hero { background: #080909; }
[data-theme='dark'] .experience { background: #294254; }
[data-theme='dark'] .projects { background: #8f3c2e; }
[data-theme='dark'] .skills { background: #718d35; }
[data-theme='dark'] .volunteering-item, [data-theme='dark'] .education-item, [data-theme='dark'] .project-card { background: #202321; }
[data-theme='dark'] .project-card:nth-child(2) { background: #8064af; color: #f4f1eb; }
[data-theme='dark'] .project-card:nth-child(3) { background: #567994; }
[data-theme='dark'] .timeline-content p:last-child { color: #e2e2d9; }
[data-theme='dark'] .contact-link:hover { background: var(--ink); color: var(--paper); }

@media (max-width: 680px) {
    .site-controls { gap: 6px; margin-right: 12px; }
    .language-button { min-width: 28px; padding: 7px 4px; }
    .theme-toggle { width: 28px; height: 28px; }
    .navbar .container { width: calc(100% - 32px); }
}

/* Final palette and contrast adjustments */
.nav-links { gap: 30px; }
.education-item:first-child { background: var(--green); }
[data-theme='dark'] .hero h1, [data-theme='dark'] .hero p { color: #f4f1eb; }
[data-theme='dark'] .languages .language-item .level { color: #d7c2ff; }
[data-theme='dark'] .languages .proficiency-fill { background: #d7c2ff; }
[data-theme='dark'] .project-card:nth-child(2) .project-link { color: #fffdf8; }

@media (max-width: 900px) {
    .nav-links { gap: 18px; }
}

@media (max-width: 680px) {
    .nav-links { gap: 10px; }
}

/* Stable header controls and section color treatment */
.navbar .container { display: grid; grid-template-columns: auto auto minmax(0, 1fr); align-items: center; column-gap: 28px; }
.site-controls { position: static; transform: none; margin: 0; }
.nav-links { justify-self: end; margin-left: 0; }
.skills { background: var(--green); }
.timeline-content h3, .volunteering-item h3 { color: var(--ink); }
.education-item:nth-child(2) { background: #d9c8fa; }
.education-item:nth-child(3) { background: #f4b08d; }
[data-theme='dark'] .timeline-content h3, [data-theme='dark'] .volunteering-item h3 { color: #ffffff; }
[data-theme='dark'] .education-item:nth-child(2) { background: #66508b; }
[data-theme='dark'] .education-item:nth-child(3) { background: #95533d; }

@media (max-width: 900px) {
    .navbar .container { grid-template-columns: auto 1fr auto; }
    .nav-links { margin-left: 0; }
}

@media (max-width: 680px) {
    .site-controls { position: static; transform: none; margin: 0 12px 0 auto; }
    .navbar .container { width: calc(100% - 32px); }
    .nav-links { margin-left: 0; }
}

/* High-contrast dark sections */
[data-theme='dark'] .skills { color: #ffffff; }
[data-theme='dark'] .skills h2 { color: #ffffff; }
[data-theme='dark'] .skills .skill-item h3 { color: #d7c2ff; }
[data-theme='dark'] .skills .skill-item li { color: #f0f3d9; border-color: rgba(255,255,255,.32); }
[data-theme='dark'] .skills .skill-item li::before { color: #e4ff85; }
[data-theme='dark'] .projects h2 { color: #ffffff; }
[data-theme='dark'] .projects .project-card { color: #ffffff; }
[data-theme='dark'] .projects .project-card p { color: #f2eefa; }
[data-theme='dark'] .projects .project-card:nth-child(2) p { color: #fff8ff; }
[data-theme='dark'] .education h2 { color: #ffffff; }
[data-theme='dark'] .education-item h3 { color: #17191d; }
[data-theme='dark'] .education-item:first-child { background: #718d35; }
[data-theme='dark'] .education-item p:not(.institution):not(.details):not(.grade) { color: #ffffff !important; }
[data-theme='dark'] .education-item .institution { color: #5b2f7c !important; }

.skills .skill-item h3 { color: var(--coral); }
.skills .skill-item:nth-child(2) h3 { color: #7046a8; }
.skills .skill-item:nth-child(3) h3 { color: #365f8a; }
.skills .skill-item:nth-child(4) h3 { color: #a44730; }
.skills .skill-item:nth-child(5) h3 { color: #5c3c7b; }

[data-theme='dark'] .skills .skill-item:nth-child(2) h3,
[data-theme='dark'] .skills .skill-item:nth-child(5) h3 { color: #e0cfff; }
[data-theme='dark'] .skills .skill-item:nth-child(3) h3 { color: #b9dcff; }
[data-theme='dark'] .skills .skill-item:nth-child(4) h3 { color: #ffc0ae; }
