

@font-face {
    font-family: "Pierknife";
    src: url("/fonts/Pierknife.woff2") format("woff2");
    font-display: swap;
}

@font-face {
    font-family: "Chuner";
    src: url("/fonts/Chuner.woff2") format("woff2");
    font-display: swap;
}

@font-face {
    font-family: "Blinko";
    src: url("/fonts/Blinko.woff2") format("woff2");
    font-display: swap;
}

@font-face {
    font-family: "Cardinel";
    src: url("/fonts/Cardinel.woff2") format("woff2");
    font-display: swap;
}

@font-face {
    font-family: "Biotrip";
    src: url("/fonts/Biotrip.woff2") format("woff2");
    font-display: swap;
}

:root {
    --bg: #f7f5ef;
    --bg-soft: #ece8dd;
    --surface: rgba(255, 255, 255, 0.55);
    --surface-raised: rgba(255, 255, 255, 0.78);
    --olive: #6f7f3b;
    --olive-bright: #a3b56b;
    --olive-muted: #747a64;
    --pink: #e8a0b1;
    --pink-deep: #b96f82;
    --pink-bright: #f3bec9;
    --text: #25291b;
    --muted: #59604b;
    --dim: #9aa08c;
    --glass: rgba(111, 127, 59, 0.045);
    --glass-strong: rgba(111, 127, 59, 0.085);
    --border: rgba(111, 127, 59, 0.12);
    --border-bright: rgba(111, 127, 59, 0.28);
    --border-pink: rgba(232, 160, 177, 0.38);
    --pink-soft: rgba(232, 160, 177, 0.14);
    --olive-soft: rgba(111, 127, 59, 0.10);
    --shadow: 0 35px 100px rgba(50, 55, 25, 0.06);
    --shadow-pink: 0 25px 80px rgba(232, 160, 177, 0.12);
    --shadow-olive: 0 25px 80px rgba(111, 127, 59, 0.08);
    --ease: cubic-bezier(.16, 1, .3, 1);
    --font-display: "Pierknife", sans-serif;
    --font-section: "Chuner", sans-serif;
    --font-editorial: "Cardinel", serif;
    --font-accent: "Biotrip", sans-serif;
    --font-mono: "Blinko", monospace;
    --font-body: Inter, sans-serif;
}

*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html { scroll-behavior: smooth; }

body {
    min-height: 100vh;
    background:
        radial-gradient(circle at 5% 5%, rgba(232, 160, 177, 0.05), transparent 35%),
        radial-gradient(circle at 95% 95%, rgba(111, 127, 59, 0.08), transparent 40%),
        var(--bg);
    color: var(--text);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
}

::selection { background: var(--pink); color: var(--olive-bright); }
a { color: inherit; text-decoration: none; }
button { font: inherit; }
img { display: block; max-width: 100%; }

/* Accessibility */
.skip-link {
    position: fixed;
    left: 20px;
    top: 20px;
    z-index: 10001;
    padding: 10px 14px;
    border: 1px solid var(--border);
    border-radius: 10px;
    background: var(--surface);
    transform: translateY(-160%);
    transition: transform .2s ease;
}

.skip-link:focus { transform: translateY(0); }
:focus-visible { outline: 1px solid var(--olive); outline-offset: 5px; }
body.cursor-ready { cursor: none; }

/* Cursor System */
.cursor-system {
    position: fixed;
    inset: 0;
    z-index: 99999;
    pointer-events: none;
    opacity: 0;
    transition: opacity .2s ease;
}

.cursor-core, .cursor-ring {
    position: fixed;
    top: 0;
    left: 0;
    pointer-events: none;
    will-change: transform;
}

.cursor-core {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--olive);
    box-shadow: 0 0 8px var(--olive), 0 0 18px rgba(111, 127, 59, .45);
    z-index: 6;
}

.cursor-ring {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: 1px solid rgba(111, 127, 59, .45);
    z-index: 4;
    transition: width .35s var(--ease), height .35s var(--ease), border-color .35s ease, background .35s ease, box-shadow .35s ease;
}

.cursor-label {
    position: fixed;
    top: 0;
    left: 0;
    min-width: 58px;
    padding: 5px 8px;
    border: 1px solid rgba(111, 127, 59, .28);
    border-radius: 999px;
    background: rgba(241, 245, 249, .82);
    color: var(--olive);
    font-family: var(--font-mono);
    font-size: .52rem;
    line-height: 1;
    font-weight: 500;
    letter-spacing: .12em;
    text-align: center;
    opacity: 0;
    z-index: 7;
    pointer-events: none;
    transform: translate3d(20px, 20px, 0) scale(.8);
    transition: opacity .2s ease, transform .25s var(--ease);
    backdrop-filter: blur(12px);
}

.cursor-label.visible {
    opacity: 1;
    transform: translate3d(20px, 20px, 0) scale(1);
}

.cursor-system.hover .cursor-ring {
    width: 46px;
    height: 46px;
    border-color: var(--pink);
    background: rgba(232, 160, 177, .08);
    box-shadow: 0 0 25px rgba(232, 160, 177, .12);
}

.cursor-system.click .cursor-ring {
    width: 18px;
    height: 18px;
    border-color: var(--olive);
}

.cursor-trail {
    position: fixed;
    inset: 0;
    z-index: 99997;
    pointer-events: none;
}

.cursor-particle {
    position: fixed;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: var(--pink);
    box-shadow: 0 0 12px var(--pink), 0 0 25px rgba(232, 160, 177, .35);
    pointer-events: none;
    transform: translate(-50%, -50%);
    animation: particleFade .65s ease-out forwards;
}

/* Background Effects */
.noise {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 9990;
    opacity: .025;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.8'/%3E%3C/svg%3E");
}

.ambient {
    position: fixed;
    width: 520px;
    height: 520px;
    border-radius: 50%;
    filter: blur(140px);
    pointer-events: none;
    z-index: -3;
    opacity: .7;
}

.ambient-one { top: -280px; left: -220px; background: rgba(232, 160, 177, .13); }
.ambient-two { right: -280px; top: 28%; background: rgba(111, 127, 59, .08); }
.ambient-three { bottom: -320px; left: 38%; background: rgba(232, 160, 177, .065); }

/* Header & Nav */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 15px 5%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    transition: padding .35s ease;
}

.nav {
    max-width: 1000px;
    width: 90%;
    height: 74px;
    margin: auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
    background: rgba(241, 245, 249, .65);
    border: 1px solid var(--border);
    border-radius: 18px;
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    box-shadow: 0 20px 70px rgba(0, 0, 0, .28);
    transition: background .4s ease, border-color .4s ease, box-shadow .4s ease;
}

.header.scrolled .nav {
    background: rgba(241, 245, 249, .85);
    border-color: var(--border-bright);
    box-shadow: 0 20px 70px rgba(0, 0, 0, .42), 0 0 35px rgba(232, 160, 177, .04);
}

.logo {
    font-family: var(--font-display);
    font-size: 1.65rem;
    font-weight: 400;
    letter-spacing: -.04em;
    transition: color .25s ease;
}

.logo span { color: var(--pink); }
.logo:hover { color: var(--olive); }

.nav-links {
    display: flex;
    align-items: center;
    gap: 32px;
}

.nav-link {
    position: relative;
    color: var(--muted);
    font-family: var(--font-mono);
    font-size: .68rem;
    text-transform: uppercase;
    letter-spacing: .12em;
    transition: color .3s ease, transform .3s var(--ease);
}

.nav-link:hover, .nav-link.active { color: var(--olive); }
.nav-link:hover { transform: translateY(-1px); }

.nav-link.active::after {
    content: "";
    position: absolute;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: var(--pink);
    left: 50%;
    bottom: -12px;
    transform: translateX(-50%);
    box-shadow: 0 0 10px var(--pink), 0 0 22px rgba(232, 160, 177, .45);
}

.nav-link-resume { display: none; }

.nav-cta {
    padding: 11px 17px;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: var(--glass);
    font-family: var(--font-mono);
    font-size: .68rem;
    transition: background .3s ease, border-color .3s ease, box-shadow .3s ease;
}

.nav-cta:hover {
    background: var(--pink-soft);
    border-color: var(--border-pink);
    box-shadow: 0 0 25px rgba(232, 160, 177, .08);
}

.nav-cta span { color: var(--pink); }

.menu-toggle {
    display: none;
    position: relative;
    width: 44px;
    height: 44px;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: var(--glass);
    cursor: pointer;
}

.menu-toggle span {
    position: absolute;
    left: 12px;
    width: 18px;
    height: 1px;
    background: var(--olive);
    transition: transform .35s var(--ease), top .35s var(--ease), opacity .25s ease;
}

.menu-toggle span:first-child { top: 17px; }
.menu-toggle span:last-child { top: 25px; }
.menu-toggle:hover { border-color: var(--border-pink); }
.menu-toggle[aria-expanded="true"] span:first-child { top: 21px; transform: rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:last-child { top: 21px; transform: rotate(-45deg); }

/* Pacman */
.pacman-strip {
    width: 90%;
    max-width: 1000px;
    height: 26px;
    padding: 0 18px;
    display: flex;
    align-items: center;
    gap: 14px;
    border: 1px solid var(--border);
    border-radius: 999px;
    background: rgba(241, 245, 249, .58);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
}

.pacman-track {
    position: relative;
    flex: 1;
    height: 100%;
}

.pacman-dots {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.pacman-dot {
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: var(--olive-muted);
    opacity: .8;
    cursor: pointer;
    transition: opacity .2s ease, transform .2s ease;
}

.pacman-dot:hover { opacity: 1; transform: scale(1.6); box-shadow: 0 0 8px var(--olive); }
.pacman-dot.eaten { opacity: 0; transform: scale(.2); }

.pacman {
    position: absolute;
    top: 50%;
    left: 0;
    width: 18px;
    height: 18px;
    margin-top: -9px;
    border-radius: 50%;
    background: var(--pink);
    cursor: pointer;
    clip-path: polygon(100% 74%, 44% 51%, 100% 27%, 100% 0, 0 0, 0 100%, 100% 100%);
    animation: pacman-chomp .3s linear infinite;
    transition: background .3s ease, box-shadow .3s ease;
    z-index: 2;
}

.pacman::after {
    content: "";
    position: absolute;
    top: 16%;
    left: 42%;
    width: 2.5px;
    height: 2.5px;
    border-radius: 50%;
    background: var(--bg);
}

.pacman.facing-left { transform: scaleX(-1); }
.pacman.boosted {
    background: var(--olive);
    box-shadow: 0 0 12px var(--olive), 0 0 24px rgba(111, 127, 59, .5);
}

.pacman-score {
    font-family: var(--font-mono);
    font-size: .6rem;
    letter-spacing: .1em;
    color: var(--pink);
    white-space: nowrap;
}

/* Hero */
.hero {
    min-height: 100vh;
    padding: 195px 6% 70px;
    position: relative;
    display: flex;
    align-items: center;
}

.hero-grid {
    max-width: 1400px;
    width: 100%;
    margin: auto;
    display: grid;
    grid-template-columns: 1.1fr .9fr;
    gap: 80px;
    align-items: center;
}

.status {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 8px 12px;
    border: 1px solid rgba(232, 160, 177, .28);
    background: rgba(232, 160, 177, .07);
    border-radius: 100px;
    color: var(--pink);
    font-family: var(--font-mono);
    font-size: .65rem;
    letter-spacing: .08em;
    margin-bottom: 25px;
}

.status-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--pink);
    box-shadow: 0 0 15px var(--pink);
    animation: pulse 2s infinite;
}

.eyebrow {
    color: var(--olive-muted);
    font-family: var(--font-mono);
    font-size: .68rem;
    letter-spacing: .16em;
    margin-bottom: 18px;
}

.hero h1 {
    max-width: 900px;
    font-family: var(--font-display);
    font-size: clamp(5rem, 10vw, 10rem);
    line-height: .78;
    letter-spacing: -.055em;
    font-weight: 400;
}

.hero h1 span {
    display: block;
    color: var(--olive);
    text-shadow: 0 0 35px rgba(111, 127, 59, .08);
}

.hero-description {
    max-width: 600px;
    margin-top: 38px;
    color: var(--muted);
    font-size: 1.05rem;
}

.hero-description strong { color: var(--text); font-weight: 600; }
.hero-actions { display: flex; gap: 14px; margin-top: 35px; }
.hero-meta { display: flex; gap: 60px; margin-top: 70px; }
.hero-meta div { display: flex; flex-direction: column; gap: 5px; }

.hero-meta span {
    color: var(--dim);
    font-family: var(--font-mono);
    font-size: .6rem;
    letter-spacing: .12em;
}

.hero-meta strong { font-size: .7rem; font-weight: 500; }

.button {
    display: inline-flex;
    align-items: center;
    gap: 22px;
    padding: 15px 20px;
    border-radius: 12px;
    font-family: var(--font-mono);
    font-size: .68rem;
    letter-spacing: .08em;
    transition: transform .35s var(--ease), background .35s ease, border-color .35s ease, box-shadow .35s ease;
}

.button:hover { transform: translateY(-3px); }
.button-primary { background: var(--olive); color: var(--bg); }
.button-primary:hover { background: var(--olive-bright); box-shadow: 0 15px 45px rgba(111, 127, 59, .12); }
.button-glass { border: 1px solid var(--border); background: var(--glass); }
.button-glass:hover { background: var(--pink-soft); border-color: var(--border-pink); }
.button span { color: var(--pink); }

/* Hero Visual */
.hero-visual { position: relative; min-height: 620px; display: grid; place-items: center; }

.profile-glass {
    width: min(390px, 80%);
    padding: 12px;
    position: relative;
    z-index: 3;
    background: linear-gradient(145deg, rgba(111, 127, 59, .09), rgba(232, 160, 177, .035));
    border: 1px solid var(--border);
    border-radius: 28px;
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    box-shadow: var(--shadow);
    transform: rotate(2deg);
    transition: transform .7s var(--ease), border-color .4s ease, box-shadow .6s var(--ease);
}

.profile-glass:hover {
    transform: rotate(0deg) translateY(-10px);
    border-color: var(--border-pink);
    box-shadow: var(--shadow), var(--shadow-pink);
}

.profile-top, .profile-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 10px;
    font-family: var(--font-mono);
    font-size: .58rem;
    color: var(--dim);
    letter-spacing: .08em;
}

.profile-image {
    height: 480px;
    overflow: hidden;
    border-radius: 20px;
    position: relative;
    background: var(--bg-soft);
}

.profile-image::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 45%, rgba(241, 245, 249, .72)), linear-gradient(90deg, rgba(232, 160, 177, .12), transparent 60%);
    pointer-events: none;
}

.profile-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: saturate(.88) contrast(1.05);
}

.image-scan {
    position: absolute;
    left: 0;
    right: 0;
    top: -15%;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--olive), transparent);
    box-shadow: 0 0 18px rgba(111, 127, 59, .45);
    opacity: .55;
    animation: scan 5s linear infinite;
}

.profile-bottom strong { display: block; color: var(--text); font-size: .63rem; }

.profile-symbol {
    width: 40px;
    height: 40px;
    display: grid;
    place-items: center;
    border: 1px solid var(--border);
    border-radius: 50%;
    color: var(--pink);
    background: rgba(232, 160, 177, .04);
}

.floating-card {
    position: absolute;
    z-index: 5;
    padding: 15px 18px;
    min-width: 130px;
    background: rgba(241, 245, 249, .78);
    border: 1px solid var(--border);
    border-radius: 15px;
    backdrop-filter: blur(20px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, .05);
    transition: border-color .35s ease, box-shadow .35s ease, transform .4s var(--ease);
}

.floating-card:hover {
    transform: translateY(-5px);
    border-color: var(--border-pink);
    box-shadow: 0 20px 60px rgba(0, 0, 0, .08), 0 0 25px rgba(232, 160, 177, .06);
}

.floating-card span, .floating-card small {
    display: block;
    color: var(--dim);
    font-family: var(--font-mono);
    font-size: .55rem;
}

.floating-card strong { font-size: 1.2rem; }
.card-top { top: 110px; left: 0; }
.card-bottom { right: 0; bottom: 115px; }

.glass-orbit {
    position: absolute;
    border: 1px solid rgba(111, 127, 59, .10);
    border-radius: 50%;
    transform: rotate(-25deg);
    pointer-events: none;
}

.orbit-one { width: 580px; height: 260px; }
.orbit-two { width: 500px; height: 500px; border-color: rgba(232, 160, 177, .08); }

.hero-scroll {
    position: absolute;
    bottom: 35px;
    left: 6%;
    display: flex;
    align-items: center;
    gap: 15px;
    color: var(--dim);
    font-family: var(--font-mono);
    font-size: .58rem;
}

.hero-scroll div {
    width: 60px;
    height: 1px;
    background: linear-gradient(90deg, var(--dim), transparent);
}

/* Sections */
.section {
    max-width: 1400px;
    margin: auto;
    padding: 150px 6%;
}

.section-heading {
    display: flex;
    justify-content: space-between;
    align-items: end;
    gap: 60px;
    margin-bottom: 70px;
}

.section-heading h2 {
    font-family: var(--font-section);
    font-size: clamp(3.5rem, 7vw, 7rem);
    line-height: .82;
    letter-spacing: -.045em;
    font-weight: 400;
}

.section-heading h2 span { color: var(--pink); }

.section-heading > p {
    max-width: 360px;
    color: var(--muted);
    font-size: .95rem;
}

/* Glass Card */
.glass-card {
    position: relative;
    background: linear-gradient(135deg, rgba(111, 127, 59, .065), rgba(232, 160, 177, .025) 48%, rgba(0, 0, 0, .12));
    border: 1px solid var(--border);
    border-radius: 24px;
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    box-shadow: var(--shadow);
    transition: transform .6s var(--ease), border-color .4s ease, box-shadow .6s var(--ease);
}

.glass-card::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: linear-gradient(115deg, transparent 15%, rgba(111, 127, 59, .08) 45%, transparent 60%);
    transform: translateX(-100%);
    transition: transform 1s var(--ease);
    pointer-events: none;
}

.glass-card:hover {
    transform: translateY(-6px);
    border-color: var(--border-pink);
    box-shadow: var(--shadow), var(--shadow-pink);
}

.glass-card:hover::before { transform: translateX(100%); }

/* Projects */
.projects {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
}

.project {
    overflow: hidden;
    border-radius: 24px;
    transition: transform .65s var(--ease), border-color .4s ease, box-shadow .6s var(--ease);
}

.project:hover {
    transform: translateY(-8px);
    border-color: var(--border-pink);
    box-shadow: 0 40px 100px rgba(0, 0, 0, .48), 0 0 50px rgba(232, 160, 177, .06);
}

.project-featured {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
}

.project-featured .project-image {
    height: 100%;
    min-height: 420px;
}

.project-featured .project-body {
    padding: 38px 42px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.project-image {
    height: 380px;
    position: relative;
    overflow: hidden;
}

.project-image::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 40%, rgba(253, 250, 246, .82));
    pointer-events: none;
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .8s var(--ease), filter .8s ease;
}

.project:hover .project-image img { transform: scale(1.06); filter: saturate(1.08); }

.image-glare {
    position: absolute;
    inset: -30%;
    background: linear-gradient(115deg, transparent 42%, rgba(111, 127, 59, .10) 50%, transparent 58%);
    transform: translateX(-80%) rotate(4deg);
    transition: transform 1s var(--ease);
    pointer-events: none;
    z-index: 2;
}

.project:hover .image-glare { transform: translateX(80%) rotate(4deg); }

.project-number {
    position: absolute;
    top: 20px;
    left: 20px;
    z-index: 3;
    font-family: var(--font-mono);
    font-size: .7rem;
    color: var(--olive);
}

.project-view {
    position: absolute;
    right: 20px;
    bottom: 20px;
    z-index: 3;
    padding: 9px 13px;
    border: 1px solid rgba(111, 127, 59, .2);
    border-radius: 100px;
    background: rgba(241, 245, 249, .45);
    backdrop-filter: blur(10px);
    font-family: var(--font-mono);
    font-size: .6rem;
    color: var(--olive);
}

.project-body { padding: 30px; }

.project-label {
    color: var(--pink);
    font-family: var(--font-mono);
    font-size: .6rem;
    letter-spacing: .12em;
    margin-bottom: 20px;
}

.project h3 {
    font-family: var(--font-editorial);
    font-size: clamp(2rem, 3vw, 3rem);
    line-height: .95;
    letter-spacing: -.035em;
    font-weight: 400;
}

.project h3 span { color: var(--olive); }
.project-body > p { color: var(--muted); margin: 20px 0; font-size: .88rem; }


.project-problem-solution {
    margin: 18px 0 22px;
    padding: 18px 20px;
    background: rgba(111, 127, 59, 0.04);
    border-left: 3px solid var(--pink);
    border-radius: 8px;
}

.project-problem-solution p {
    margin: 6px 0;
    font-size: 0.88rem;
    line-height: 1.6;
    color: var(--muted);
}

.project-problem-solution strong {
    color: var(--olive);
    font-weight: 600;
}

.project-problem-solution p:first-child {
    margin-top: 0;
}

.project-problem-solution p:last-child {
    margin-bottom: 0;
}

/* Enhanced Project Link */
.project-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 30px;
    padding: 12px 20px;
    border: 1px solid var(--border);
    border-radius: 10px;
    background: var(--glass);
    color: var(--olive);
    font-family: var(--font-mono);
    font-size: 0.68rem;
    letter-spacing: 0.05em;
    transition: all 0.3s ease;
}

.project-link:hover {
    background: var(--pink-soft);
    border-color: var(--border-pink);
    transform: translateX(4px);
}

.project-link span {
    transition: transform 0.3s ease;
}

.project-link:hover span {
    transform: translateX(4px);
}

.project-links {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 26px;
}

.project-links .project-link {
    margin-top: 0;
}

.project-link-primary {
    background: var(--olive);
    color: #ffffff;
    border-color: var(--olive);
    font-weight: 500;
}

.project-link-primary:hover {
    background: var(--olive-bright);
    color: #ffffff;
    border-color: var(--olive-bright);
    box-shadow: 0 10px 24px rgba(111, 127, 59, 0.28);
    transform: translateX(4px);
}

/* Improved Tags Styling */
.tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 16px 0 4px;
}

.tags span {
    padding: 6px 14px;
    border: 1px solid var(--border);
    border-radius: 20px;
    color: var(--olive-muted);
    font-size: 0.62rem;
    font-weight: 500;
    letter-spacing: 0.03em;
    background: rgba(111, 127, 59, 0.03);
    transition: all 0.3s ease;
}

.tags span:hover {
    color: var(--olive);
    border-color: var(--border-pink);
    background: var(--pink-soft);
    transform: translateY(-2px);
}

.github-row {
    display: flex;
    justify-content: space-between;
    margin-top: 35px;
    padding-top: 25px;
    border-top: 1px solid var(--border);
    font-family: var(--font-mono);
    font-size: .6rem;
    color: var(--dim);
}

.github-row a { color: var(--text); transition: color .25s ease; }
.github-row a:hover { color: var(--pink); }

/* About */
.about-grid {
    display: grid;
    grid-template-columns: 1.4fr .6fr;
    gap: 25px;
}

.about-main {
    padding: 55px;
    border-radius: 26px;
    position: relative;
    overflow: hidden;
}

.quote-mark {
    position: absolute;
    right: 35px;
    top: 15px;
    color: rgba(232, 160, 177, .08);
    font-family: var(--font-editorial);
    font-size: 12rem;
    line-height: 1;
    pointer-events: none;
}

.about-large {
    position: relative;
    max-width: 800px;
    font-family: var(--font-editorial);
    font-size: clamp(2.3rem, 4.5vw, 4.8rem);
    line-height: .98;
    letter-spacing: -.04em;
}

.about-large strong {
    font-family: var(--font-accent);
    color: var(--pink);
    font-weight: 400;
}

.about-copy {
    position: relative;
    max-width: 650px;
    margin-top: 45px;
    color: var(--muted);
}

.about-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}

.stat {
    min-height: 190px;
    padding: 22px;
    border-radius: 20px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: border-color .35s ease, box-shadow .35s ease, transform .35s var(--ease);
}

.stat:hover {
    transform: translateY(-4px);
    border-color: var(--border-pink);
    box-shadow: var(--shadow-pink);
}

.stat span {
    font-family: var(--font-mono);
    color: var(--dim);
    font-size: .6rem;
    letter-spacing: .1em;
}

.stat strong {
    font-family: var(--font-section);
    font-size: 2.3rem;
    letter-spacing: -.06em;
    font-weight: 400;
    color: var(--olive);
    line-height: 1;
}

.stat small {
    color: var(--muted);
    font-family: var(--font-mono);
    font-size: .55rem;
    letter-spacing: .08em;
}

/* Skills */
.skill-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
}

.skill {
    min-height: 240px;
    padding: 28px;
    border-radius: 22px;
    transition: border-color .35s ease, box-shadow .35s ease, transform .4s var(--ease);
}

.skill:hover {
    transform: translateY(-5px);
    border-color: var(--border-pink);
    box-shadow: var(--shadow-pink);
}

.skill-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
}

.skill-top span {
    color: var(--dim);
    font-family: var(--font-mono);
    font-size: .6rem;
}

.skill-top img {
    width: 38px;
    height: 38px;
    object-fit: contain;
    transition: transform .35s var(--ease), filter .35s ease;
}

.skill:hover .skill-top img {
    transform: translateY(-3px) scale(1.08);
    filter: drop-shadow(0 8px 18px rgba(111, 127, 59, .18));
}

.skill h3 {
    margin-top: 70px;
    font-family: var(--font-editorial);
    font-size: 1.8rem;
    font-weight: 400;
}

.skill p {
    margin-top: 8px;
    color: var(--muted);
    font-size: .75rem;
}

/* Education */
.education-card {
    display: grid;
    grid-template-columns: 180px 1fr;
    gap: 50px;
    padding: 45px;
    border-radius: 25px;
    margin-bottom: 15px;
    transition: all 0.4s var(--ease);
}

.education-card:hover {
    transform: translateY(-4px);
    border-color: var(--border-pink);
    box-shadow: var(--shadow-pink);
}

.education-year {
    color: var(--pink);
    font-family: var(--font-mono);
    font-size: 0.75rem;
    line-height: 1.8;
    white-space: pre-line;
}

.education-content > p {
    color: var(--dim);
    font-family: var(--font-mono);
    font-size: 0.6rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.education-content h3 {
    margin: 12px 0 5px;
    font-family: var(--font-editorial);
    font-size: 2.2rem;
    letter-spacing: -0.04em;
    font-weight: 400;
}

.education-content h4 {
    color: var(--muted);
    font-weight: 400;
    font-size: 1rem;
}

.education-bottom {
    display: flex;
    gap: 20px;
    align-items: center;
    margin-top: 25px;
    padding-top: 20px;
    border-top: 1px solid var(--border);
}

.education-bottom span {
    color: var(--dim);
    font-family: var(--font-mono);
    font-size: 0.6rem;
    letter-spacing: 0.08em;
}

.education-bottom strong {
    color: var(--olive);
    font-size: 1.1rem;
}

/* Contact */
.contact { padding-bottom: 100px; }

.contact-glass {
    padding: 70px;
    border-radius: 30px;
    background:
        radial-gradient(circle at 85% 20%, rgba(111, 127, 59, .10), transparent 25%),
        radial-gradient(circle at 15% 80%, rgba(232, 160, 177, .10), transparent 25%),
        rgba(255, 255, 255, .025);
    border: 1px solid var(--border);
    backdrop-filter: blur(25px);
    box-shadow: var(--shadow);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr .8fr;
    gap: 80px;
}

.contact h2 {
    font-family: var(--font-display);
    font-size: clamp(4rem, 9vw, 9rem);
    line-height: .78;
    letter-spacing: -.055em;
    font-weight: 400;
}

.contact h2 span { color: var(--olive); }
.contact-right { align-self: end; }

.contact-right p {
    max-width: 400px;
    color: var(--muted);
    margin-bottom: 30px;
}

.email-link {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 14px 24px;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: var(--glass);
    color: var(--olive);
    font-family: var(--font-mono);
    font-size: 0.72rem;
    transition: all 0.3s ease;
    text-decoration: none;
}

.email-link:hover {
    background: var(--pink-soft);
    border-color: var(--border-pink);
    transform: translateX(4px);
}

.email-link span:last-child {
    color: var(--pink);
    transition: transform 0.3s ease;
}

.email-link:hover span:last-child {
    transform: translateX(4px);
}

/* Social Icons */
.socials {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-top: 70px;
    padding-top: 25px;
    border-top: 1px solid var(--border);
}

.social-icon {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--border);
    border-radius: 50%;
    background: var(--glass);
    color: var(--olive-muted);
    transition: all 0.3s ease;
    text-decoration: none;
}

.social-icon:hover {
    color: var(--pink);
    border-color: var(--border-pink);
    background: var(--pink-soft);
    transform: translateY(-4px) scale(1.05);
    box-shadow: 0 8px 25px rgba(232, 160, 177, 0.2);
}

.social-icon svg,
.social-icon img {
    width: 20px;
    height: 20px;
    transition: transform 0.3s ease;
}

.social-icon:hover svg,
.social-icon:hover img {
    transform: scale(1.15);
}

/* Footer */
.footer {
    max-width: 1400px;
    margin: auto;
    padding: 30px 6% 50px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid var(--border);
    color: var(--dim);
    font-family: var(--font-mono);
    font-size: .6rem;
}

.footer div {
    display: flex;
    gap: 15px;
    align-items: center;
}

.footer strong {
    color: var(--text);
    font-family: var(--font-display);
    font-size: 1rem;
    font-weight: 400;
}

.footer a {
    color: var(--muted);
    transition: color .25s ease;
}

.footer a:hover { color: var(--pink); }

/* Animations */
.reveal {
    opacity: 1 !important;
    transform: translateY(0) !important;
}

@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: .45; transform: scale(.7); }
}

@keyframes scan {
    0% { top: -15%; }
    100% { top: 115%; }
}

@keyframes particleFade {
    0% { opacity: .8; transform: translate(-50%, -50%) scale(1); }
    100% { opacity: 0; transform: translate(-50%, -50%) scale(.1); }
}

@keyframes pacman-chomp {
    0%, 100% { clip-path: polygon(100% 74%, 44% 51%, 100% 27%, 100% 0, 0 0, 0 100%, 100% 100%); }
    50% { clip-path: polygon(100% 50%, 100% 50%, 100% 50%, 100% 0, 0 0, 0 100%, 100% 100%); }
}


@media (max-width: 1000px) {
    .nav-links { gap: 18px; }
    .hero-grid { grid-template-columns: 1fr; }
    .hero-content { text-align: center; }
    .status, .hero-actions { justify-content: center; }
    .hero-description { margin-left: auto; margin-right: auto; }
    .hero-meta { justify-content: center; }
    .hero-visual { min-height: 600px; }
    .projects { grid-template-columns: repeat(2, 1fr); }
    .skill-grid { grid-template-columns: repeat(2, 1fr); }
    .about-grid { grid-template-columns: 1fr; }
    .contact-grid { grid-template-columns: 1fr; }

    .project-featured {
        grid-template-columns: 1fr;
    }

    .project-featured .project-image {
        min-height: 320px;
        height: 320px;
    }

    .project-featured .project-body {
        padding: 35px;
    }

    .project-problem-solution {
        padding: 16px 18px;
    }
}

@media (max-width: 700px) {
    body, body.cursor-ready { cursor: auto; }
    .cursor-system, .cursor-trail { display: none; }

    .header { padding: 12px 4%; }
    .nav { height: 62px; }

    .nav-links {
        position: absolute;
        top: 75px;
        left: 0;
        right: 0;
        margin: 0 4%;
        padding: 20px;
        flex-direction: column;
        align-items: flex-start;
        background: rgba(241, 245, 249, .95);
        border: 1px solid var(--border);
        border-radius: 18px;
        backdrop-filter: blur(25px);
        opacity: 0;
        pointer-events: none;
        transform: translateY(-10px);
        transition: opacity .3s ease, transform .3s ease;
    }

    .nav-links.open {
        opacity: 1;
        pointer-events: auto;
        transform: translateY(0);
    }

    .nav-link.active::after { display: none; }
    .nav-link { padding: 8px 2px; }
    .nav-link-resume {
        display: block;
        color: var(--pink);
        font-weight: 500;
    }
    .nav-cta { display: none; }
    .menu-toggle { display: block; }
    .pacman-strip { display: none; }

    .hero { padding: 130px 5% 70px; }
    .hero h1 { font-size: clamp(3.8rem, 17vw, 6rem); }
    .hero-description { font-size: .95rem; }
    .hero-meta { gap: 25px; justify-content: space-between; text-align: left; }
    .hero-visual { min-height: 520px; }
    .profile-glass { width: 75%; }
    .profile-image { height: 400px; }
    .card-top { left: 0; top: 80px; }
    .card-bottom { right: 0; bottom: 70px; }

    .section { padding: 100px 5%; }
    .section-heading { display: block; }
    .section-heading > p { margin-top: 25px; }
    .projects { grid-template-columns: 1fr; }
    .skill-grid { grid-template-columns: 1fr; }
    .project-image { height: 280px; }
    .project-featured .project-body { padding: 25px; }
    .project-featured .project-image { min-height: 280px; }
    .project-body { padding: 25px; }

    .project-problem-solution {
        padding: 14px 16px;
        margin: 14px 0 18px;
    }

    .project-problem-solution p {
        font-size: 0.82rem;
    }

    .project-links {
        width: 100%;
        flex-direction: column;
        gap: 10px;
    }

    .project-link {
        width: 100%;
        justify-content: center;
    }
    .about-main { padding: 30px; }
    .about-stats { grid-template-columns: repeat(2, 1fr); }
    .stat { min-height: 150px; }

    .education-card {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 30px;
    }

    .education-content h3 {
        font-size: 1.7rem;
    }

    .education-content h4 {
        font-size: 0.9rem;
    }

    .contact-glass { padding: 30px 20px; }
    .contact-grid { gap: 40px; }

    .email-link {
        width: 100%;
        justify-content: center;
        font-size: 0.65rem;
        padding: 12px 18px;
    }

    .socials {
        justify-content: center;
        gap: 12px;
        margin-top: 40px;
    }

    .social-icon {
        width: 44px;
        height: 44px;
    }

    .social-icon svg,
    .social-icon img {
        width: 18px;
        height: 18px;
    }

    .footer {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }
}


@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after {
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .01ms !important;
    }
    body { cursor: auto; }
    .cursor-system, .cursor-trail { display: none; }
}
