:root {

    --bg: #0b0b0b;

    --surface: #111111;
    --surface-2: #171717;
    --surface-3: #1c1c1c;

    --text: #f5f3ee;

    --muted: #969696;
    --muted-2: #626262;

    --line: rgba(255,255,255,0.10);
    --line-light: rgba(255,255,255,0.16);

    --accent: #d7ff4f;

    --danger: #ff8b8b;

    --radius: 28px;

    --container: 1240px;

    --ease: cubic-bezier(0.2,0.8,0.2,1);

}


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


html {
    scroll-behavior: smooth;
    background: var(--bg);
}


body {
    min-height: 100vh;
    background:
        radial-gradient(
            circle at 50% -20%,
            rgba(255,255,255,0.035),
            transparent 30%
        ),
        var(--bg);
    color: var(--text);
    font-family: "DM Sans", sans-serif;
    overflow-x: hidden;
    cursor: none;
}


body.menu-open {
    overflow: hidden;
}


img {
    display: block;
    max-width: 100%;
}


button,
input,
textarea {
    font: inherit;
}


a {
    color: inherit;
    text-decoration: none;
}


button,
a {
    cursor: none;
}


::selection {
    background: var(--accent);
    color: #000;
}


.container {
    width: min(
        calc(100% - 48px),
        var(--container)
    );
    margin-inline: auto;
}


.section {
    position: relative;
    padding: 150px 0;
}


/* CURSOR */

.cursor-dot {
    position: fixed;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--accent);
    pointer-events: none;
    z-index: 99999;
    transform: translate(-50%,-50%);
}


.cursor-ring {
    position: fixed;
    width: 36px;
    height: 36px;
    border: 1px solid rgba(215,255,79,0.45);
    border-radius: 50%;
    pointer-events: none;
    z-index: 99998;
    transform: translate(-50%,-50%);
    transition:
        width .25s var(--ease),
        height .25s var(--ease),
        border-color .25s ease,
        background .25s ease;
}


body.cursor-hover .cursor-ring {
    width: 58px;
    height: 58px;
    background: rgba(215,255,79,0.06);
    border-color: rgba(215,255,79,0.75);
}


/* SCROLL */

.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    z-index: 10000;
    pointer-events: none;
}


.scroll-progress span {
    display: block;
    width: 0;
    height: 100%;
    background: var(--accent);
}


/* NAVBAR */

.navbar {
    position: fixed;
    top: 18px;
    left: 50%;
    width: min(
        calc(100% - 32px),
        1100px
    );
    transform: translateX(-50%);
    z-index: 9000;
    transition: top .4s var(--ease);
}


.navbar.scrolled {
    top: 12px;
}


.nav-inner {
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 8px 10px 8px 18px;
    border: 1px solid rgba(255,255,255,.09);
    border-radius: 999px;
    background: rgba(17,17,17,.72);
    backdrop-filter: blur(22px);
    -webkit-backdrop-filter: blur(22px);
    box-shadow:
        0 18px 50px rgba(0,0,0,.22),
        inset 0 1px 0 rgba(255,255,255,.04);
}


.brand {
    display: flex;
    align-items: center;
    gap: 10px;
    white-space: nowrap;
}


.brand-mark {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--accent);
    color: #080808;
    font-family: "Space Grotesk", sans-serif;
    font-weight: 700;
}


.brand-name {
    font-size: 13px;
    font-weight: 600;
}


.desktop-nav {
    display: flex;
    align-items: center;
    gap: 28px;
}


.desktop-nav a {
    position: relative;
    color: var(--muted);
    font-size: 12px;
    transition: color .25s ease;
}


.desktop-nav a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -7px;
    width: 100%;
    height: 1px;
    background: var(--accent);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform .3s var(--ease);
}


.desktop-nav a:hover {
    color: var(--text);
}


.desktop-nav a:hover::after {
    transform: scaleX(1);
    transform-origin: left;
}


.nav-cta {
    display: flex;
    align-items: center;
    gap: 7px;
    padding: 12px 17px;
    border-radius: 999px;
    background: var(--accent);
    color: #080808;
    font-size: 11px;
    font-weight: 700;
    transition:
        transform .25s var(--ease),
        box-shadow .25s ease;
}


.nav-cta:hover {
    transform: translateY(-2px);
    box-shadow:
        0 8px 24px
        rgba(215,255,79,.16);
}


.nav-cta span {
    font-size: 15px;
}


.menu-toggle {
    display: none;
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 50%;
    background: var(--surface-2);
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 5px;
}


.menu-toggle span {
    width: 17px;
    height: 1px;
    background: var(--text);
    transition: transform .3s ease;
}


.menu-toggle.active span:first-child {
    transform:
        translateY(3px)
        rotate(45deg);
}


.menu-toggle.active span:last-child {
    transform:
        translateY(-3px)
        rotate(-45deg);
}


/* MOBILE MENU */

.mobile-menu {
    position: fixed;
    inset: 0;
    z-index: 8000;
    background: rgba(8,8,8,.96);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    opacity: 0;
    visibility: hidden;
    transition:
        opacity .35s ease,
        visibility .35s ease;
}


.mobile-menu.open {
    opacity: 1;
    visibility: visible;
}


.mobile-menu-inner {
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 18px;
    padding: 100px 30px;
}


.mobile-menu-inner a {
    font-family: "Space Grotesk", sans-serif;
    font-size: clamp(38px,10vw,64px);
    letter-spacing: -.05em;
    transition: color .25s ease;
}


.mobile-menu-inner a:hover {
    color: var(--accent);
}


/* HERO */

.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 150px;
    overflow: hidden;
}


.hero-grid {
    position: absolute;
    inset: 0;
    pointer-events: none;
    opacity: .32;
    background-image:
        linear-gradient(
            rgba(255,255,255,.025) 1px,
            transparent 1px
        ),
        linear-gradient(
            90deg,
            rgba(255,255,255,.025) 1px,
            transparent 1px
        );
    background-size: 70px 70px;
    mask-image:
        linear-gradient(
            to bottom,
            black,
            transparent 85%
        );
}


.hero-glow {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
    filter: blur(80px);
}


.hero-glow-one {
    width: 400px;
    height: 400px;
    top: 10%;
    right: -100px;
    background: rgba(215,255,79,.06);
}


.hero-glow-two {
    width: 300px;
    height: 300px;
    bottom: 5%;
    left: -150px;
    background: rgba(255,255,255,.025);
}


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


.hero-label {
    display: flex;
    align-items: center;
    gap: 9px;
    width: fit-content;
    margin-bottom: 34px;
    color: var(--muted);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: .14em;
    text-transform: uppercase;
}


.status-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--accent);
    box-shadow:
        0 0 0 5px
        rgba(215,255,79,.08);
}


.hero-title {
    max-width: 1150px;
    font-family: "Space Grotesk", sans-serif;
    font-size: clamp(72px,11vw,160px);
    line-height: .83;
    letter-spacing: -.075em;
    font-weight: 500;
}


.hero-line {
    display: block;
    animation:
        heroReveal 1s
        var(--ease)
        both;
}


/*
=========================================================
ONLY CHANGE FOR TEXT ALIGNMENT

Previously digital had:

padding-left: 11vw;

That was causing the second line to shift right.

All three hero lines now use the same left alignment.
=========================================================
*/

.hero-line-indent {
    padding-left: 0;
}


.hero-line:nth-child(1) {
    animation-delay: .05s;
}


.hero-line:nth-child(2) {
    animation-delay: .15s;
}


.hero-line:nth-child(3) {
    animation-delay: .25s;
}


.accent-dot {
    color: var(--accent);
}


@keyframes heroReveal {

    from {
        opacity: 0;
        transform: translateY(100%);
    }

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

}


.hero-bottom {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 60px;
    margin-top: 70px;
}


.hero-description {
    max-width: 510px;
    color: var(--muted);
    font-size: 16px;
    line-height: 1.8;
}


.hero-actions {
    display: flex;
    gap: 12px;
    flex-shrink: 0;
}


.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 15px 20px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
    transition:
        transform .3s var(--ease),
        background .3s ease,
        border-color .3s ease;
}


.button:hover {
    transform: translateY(-3px);
}


.button-primary {
    background: var(--accent);
    color: #080808;
}


.button-secondary {
    border: 1px solid var(--line);
    background: rgba(255,255,255,.02);
}


.button-secondary:hover {
    border-color: var(--line-light);
    background: rgba(255,255,255,.06);
}


.hero-scroll {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-top: 80px;
    color: var(--muted-2);
    font-size: 10px;
    letter-spacing: .12em;
    text-transform: uppercase;
}


.scroll-line {
    width: 90px;
    height: 1px;
    background: var(--line);
    overflow: hidden;
}


.scroll-line span {
    display: block;
    width: 35%;
    height: 100%;
    background: var(--accent);
    animation:
        scrollLine 2s
        ease-in-out
        infinite;
}


@keyframes scrollLine {

    0%,
    100% {
        transform: translateX(-100%);
    }

    50% {
        transform: translateX(300%);
    }

}


/* MARQUEE */

.marquee-section {
    position: relative;
    padding: 25px 0;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    overflow: hidden;
}


.marquee-track {
    width: max-content;
    animation:
        marquee 30s
        linear
        infinite;
}


.marquee-content {
    display: flex;
    align-items: center;
    gap: 30px;
    white-space: nowrap;
}


.marquee-content span {
    color: var(--muted-2);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: .15em;
}


.marquee-content i {
    color: var(--accent);
    font-style: normal;
}


@keyframes marquee {

    from {
        transform: translateX(0);
    }

    to {
        transform: translateX(-50%);
    }

}


/* SECTION HEADINGS */

.section-heading {
    display: grid;
    grid-template-columns: 1fr .55fr;
    gap: 80px;
    align-items: end;
    margin-bottom: 80px;
}


.eyebrow {
    display: block;
    margin-bottom: 20px;
    color: var(--accent);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .18em;
    text-transform: uppercase;
}


.section-heading h2 {
    font-family: "Space Grotesk", sans-serif;
    font-size: clamp(48px,6vw,88px);
    line-height: .92;
    letter-spacing: -.06em;
    font-weight: 500;
}


.section-heading > p {
    color: var(--muted);
    font-size: 15px;
    line-height: 1.8;
}


/* PROJECT STACK */

.projects-section {
    position: relative;
    overflow: visible;
}


.project-stack {
    position: relative;
    width: 100%;
    overflow: visible;
}


.project-card {
    position: sticky;
    top: 105px;
    width: 100%;
    min-height: 620px;
    margin-bottom: 120px;
    overflow: visible;
    transform: none !important;
}


.project-card-1 {
    z-index: 1;
}


.project-card-2 {
    z-index: 2;
}


.project-card-3 {
    z-index: 3;
}


.project-card-4 {
    z-index: 4;
}


.project-card-5 {
    z-index: 5;
}


/* PROJECT CONTENT */

.project-content {
    position: relative;
    min-height: 620px;
    display: grid;
    grid-template-columns: .8fr 1.2fr;
    gap: 50px;
    padding: 56px;
    border: 1px solid rgba(255,255,255,.10);
    border-radius: 32px;
    overflow: hidden;
    background:
        radial-gradient(
            circle at 85% 15%,
            rgba(215,255,79,.08),
            transparent 32%
        ),
        #111111;
    box-shadow:
        0 30px 80px rgba(0,0,0,.35),
        inset 0 1px 0 rgba(255,255,255,.04);
    transform-style: preserve-3d;
    will-change: transform;
    transition:
        border-color .35s ease,
        box-shadow .35s ease;
}


.project-card:hover .project-content {
    border-color: rgba(215,255,79,.28);
    box-shadow:
        0 40px 100px rgba(0,0,0,.45),
        0 0 50px rgba(215,255,79,.04),
        inset 0 1px 0 rgba(255,255,255,.06);
}


.project-info {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-width: 0;
}


.project-number {
    width: 52px;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    border: 1px solid rgba(255,255,255,.12);
    color: var(--accent);
    font-size: 12px;
    font-weight: 700;
}


.project-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
    margin-top: 40px;
}


.project-meta span {
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(255,255,255,.05);
    border: 1px solid rgba(255,255,255,.08);
    color: var(--muted);
    font-size: 9px;
    font-weight: 700;
    letter-spacing: .12em;
}


.project-info h3 {
    margin-top: 25px;
    font-family: "Space Grotesk", sans-serif;
    font-size: clamp(48px,6vw,90px);
    line-height: .9;
    letter-spacing: -.065em;
    font-weight: 500;
}


.project-info p {
    max-width: 470px;
    margin-top: 30px;
    color: var(--muted);
    font-size: 15px;
    line-height: 1.8;
}


.project-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    width: fit-content;
    margin-top: 38px;
    color: var(--text);
    font-size: 12px;
    font-weight: 700;
    transition:
        color .3s ease,
        gap .3s var(--ease);
}


.project-link span {
    color: var(--accent);
    font-size: 18px;
    transition:
        transform .3s var(--ease);
}


.project-link:hover {
    color: var(--accent);
    gap: 16px;
}


.project-link:hover span {
    transform: translate(3px,-3px);
}


/* PROJECT VISUAL */

.project-visual {
    position: relative;
    min-width: 0;
    min-height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border-radius: 24px;
    background: var(--surface-2);
    border: 1px solid rgba(255,255,255,.08);
}


.project-visual::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
        linear-gradient(
            135deg,
            rgba(255,255,255,.07),
            transparent 30%
        );
}


.project-visual img {
    width: 100%;
    height: 100%;
    min-height: 500px;
    object-fit: cover;
    transition:
        transform .7s var(--ease),
        filter .5s ease;
}


.project-card:hover .project-visual img {
    transform: scale(1.035);
    filter: brightness(1.05);
}


/* EXPERIENCE */

.experience-list {
    border-top: 1px solid var(--line);
}


.experience-item {
    position: relative;
    display: grid;
    grid-template-columns: 70px 1fr 60px;
    gap: 35px;
    padding: 45px 0;
    border-bottom: 1px solid var(--line);
    transition:
        background .35s ease,
        padding-left .35s var(--ease),
        padding-right .35s var(--ease);
}


.experience-item::before {
    content: "";
    position: absolute;
    left: -20px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--accent);
    opacity: 0;
    transform: scaleY(0);
    transform-origin: top;
    transition:
        opacity .35s ease,
        transform .45s var(--ease);
}


.experience-item:hover {
    padding-left: 20px;
    padding-right: 20px;
    background:
        radial-gradient(
            circle at 20% 50%,
            rgba(215,255,79,.06),
            transparent 35%
        );
}


.experience-item:hover::before {
    opacity: 1;
    transform: scaleY(1);
}


.experience-number {
    color: var(--muted-2);
    font-size: 11px;
}


.experience-top {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 30px;
}


.experience-top h3 {
    font-family: "Space Grotesk", sans-serif;
    font-size: clamp(28px,4vw,46px);
    line-height: 1;
    letter-spacing: -.04em;
    font-weight: 500;
    transition:
        color .3s ease,
        transform .35s var(--ease);
}


.experience-item:hover .experience-top h3 {
    color: var(--accent);
    transform: translateX(4px);
}


.experience-top span {
    flex-shrink: 0;
    color: var(--muted-2);
    font-size: 11px;
}


.experience-role {
    margin-top: 12px;
    color: var(--muted);
    font-size: 13px;
}


.experience-description {
    max-width: 700px;
    margin-top: 22px;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.8;
}


.tag-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 24px;
}


.tag-list span {
    padding: 7px 10px;
    border: 1px solid var(--line);
    border-radius: 999px;
    color: var(--muted);
    font-size: 9px;
}


.experience-arrow {
    align-self: center;
    color: var(--muted-2);
    font-size: 22px;
    transition:
        color .3s ease,
        transform .35s var(--ease);
}


.experience-item:hover .experience-arrow {
    color: var(--accent);
    transform: translate(5px,-5px);
}


/* ABOUT */

.about-grid {
    display: grid;
    grid-template-columns: .9fr 1.1fr;
    gap: 100px;
    align-items: start;
}


.about-heading h2 {
    font-family: "Space Grotesk", sans-serif;
    font-size: clamp(48px,6vw,88px);
    line-height: .93;
    letter-spacing: -.06em;
    font-weight: 500;
}


.about-heading h2 span {
    color: var(--muted-2);
}


.about-content {
    padding: 45px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: rgba(255,255,255,.018);
    transition:
        transform .45s var(--ease),
        border-color .35s ease,
        background .35s ease,
        box-shadow .35s ease;
}


.about-content:hover {
    transform: translateY(-7px);
    border-color: rgba(215,255,79,.20);
    background:
        radial-gradient(
            circle at 20% 20%,
            rgba(215,255,79,.05),
            transparent 40%
        ),
        rgba(255,255,255,.025);
    box-shadow:
        0 30px 70px
        rgba(0,0,0,.25);
}


.about-lead {
    color: var(--text) !important;
    font-size: 20px !important;
    line-height: 1.6 !important;
}


.about-content > p {
    color: var(--muted);
    font-size: 15px;
    line-height: 1.85;
    margin-bottom: 25px;
}


.about-details {
    display: grid;
    grid-template-columns: repeat(3,1fr);
    gap: 10px;
    margin-top: 40px;
}


.about-details div {
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: rgba(255,255,255,.02);
    transition:
        transform .35s var(--ease),
        border-color .3s ease,
        background .3s ease;
}


.about-details div:hover {
    transform: translateY(-5px);
    border-color: rgba(215,255,79,.20);
    background: rgba(215,255,79,.035);
}


.about-details span {
    display: block;
    margin-bottom: 8px;
    color: var(--muted-2);
    font-size: 9px;
    letter-spacing: .13em;
}


.about-details strong {
    color: var(--text);
    font-size: 12px;
    line-height: 1.4;
}


/* SKILLS */

.skills-grid {
    display: grid;
    grid-template-columns: repeat(4,1fr);
    gap: 12px;
}


.skill-card {
    position: relative;
    min-height: 230px;
    padding: 28px;
    border: 1px solid var(--line);
    border-radius: 22px;
    background: var(--surface);
    overflow: hidden;
    transition:
        transform .45s var(--ease),
        border-color .35s ease,
        background .35s ease,
        box-shadow .35s ease;
}


.skill-card::after {
    content: "";
    position: absolute;
    width: 140px;
    height: 140px;
    right: -70px;
    bottom: -70px;
    border-radius: 50%;
    background: rgba(215,255,79,.07);
    filter: blur(20px);
    opacity: 0;
    transition: opacity .4s ease;
}


.skill-card:hover {
    transform: translateY(-8px);
    border-color: rgba(215,255,79,.20);
    background: var(--surface-2);
    box-shadow:
        0 25px 50px
        rgba(0,0,0,.25);
}


.skill-card:hover::after {
    opacity: 1;
}


.skill-card > span {
    color: var(--muted-2);
    font-size: 10px;
}


.skill-card h3 {
    margin-top: 70px;
    font-family: "Space Grotesk", sans-serif;
    font-size: 23px;
    letter-spacing: -.03em;
    font-weight: 500;
    transition:
        color .3s ease,
        transform .35s var(--ease);
}


.skill-card:hover h3 {
    color: var(--accent);
    transform: translateX(3px);
}


.skill-card p {
    margin-top: 10px;
    color: var(--muted);
    font-size: 12px;
    line-height: 1.65;
}


/* AI */

.ai-section {
    background:
        radial-gradient(
            circle at 80% 40%,
            rgba(215,255,79,.035),
            transparent 35%
        );
}


.ai-grid {
    display: grid;
    grid-template-columns: repeat(3,1fr);
    gap: 12px;
}


.ai-card {
    position: relative;
    min-height: 330px;
    padding: 30px;
    border: 1px solid var(--line);
    border-radius: 24px;
    background: var(--surface);
    overflow: hidden;
    transition:
        transform .45s var(--ease),
        border-color .35s ease,
        background .35s ease,
        box-shadow .35s ease;
}


.ai-card::before {
    content: "";
    position: absolute;
    width: 180px;
    height: 180px;
    top: -90px;
    right: -90px;
    border-radius: 50%;
    background: rgba(215,255,79,.08);
    filter: blur(20px);
    opacity: 0;
    transition: opacity .4s ease;
}


.ai-card:hover {
    transform: translateY(-9px);
    border-color: rgba(215,255,79,.22);
    background: var(--surface-2);
    box-shadow:
        0 30px 70px
        rgba(0,0,0,.28);
}


.ai-card:hover::before {
    opacity: 1;
}


.ai-index {
    color: var(--muted-2);
    font-size: 10px;
}


.ai-icon {
    margin-top: 55px;
    color: var(--accent);
    font-size: 38px;
    transition:
        transform .45s var(--ease);
}


.ai-card:hover .ai-icon {
    transform:
        rotate(12deg)
        scale(1.12);
}


.ai-card h3 {
    margin-top: 25px;
    font-family: "Space Grotesk", sans-serif;
    font-size: 25px;
    font-weight: 500;
    letter-spacing: -.04em;
    transition: color .3s ease;
}


.ai-card:hover h3 {
    color: var(--accent);
}


.ai-card p {
    margin-top: 12px;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.7;
}


/* EDUCATION */

.education-list {
    border-top: 1px solid var(--line);
}


.education-item {
    position: relative;
    display: grid;
    grid-template-columns: 160px 1fr 60px;
    gap: 40px;
    align-items: center;
    padding: 42px 0;
    border-bottom: 1px solid var(--line);
    transition:
        background .35s ease,
        padding-left .35s var(--ease),
        padding-right .35s var(--ease);
}


.education-item:hover {
    padding-left: 20px;
    padding-right: 20px;
    background:
        radial-gradient(
            circle at 20% 50%,
            rgba(215,255,79,.05),
            transparent 35%
        );
}


.education-year {
    color: var(--muted-2);
    font-size: 11px;
}


.education-main h3 {
    font-family: "Space Grotesk", sans-serif;
    font-size: clamp(26px,3vw,42px);
    font-weight: 500;
    letter-spacing: -.04em;
    transition:
        color .3s ease,
        transform .35s var(--ease);
}


.education-item:hover .education-main h3 {
    color: var(--accent);
    transform: translateX(4px);
}


.education-main p {
    margin-top: 10px;
    color: var(--muted);
    font-size: 14px;
}


.education-main span {
    display: block;
    margin-top: 8px;
    color: var(--muted-2);
    font-size: 11px;
}


.education-arrow {
    color: var(--muted-2);
    font-size: 22px;
    transition:
        color .3s ease,
        transform .35s var(--ease);
}


.education-item:hover .education-arrow {
    color: var(--accent);
    transform: translate(5px,-5px);
}


/* CERTIFICATIONS */

.cert-grid {
    display: grid;
    grid-template-columns: repeat(3,1fr);
    gap: 12px;
}


.cert-card {
    min-height: 300px;
    padding: 30px;
    border: 1px solid var(--line);
    border-radius: 22px;
    background: var(--surface);
    transition:
        transform .45s var(--ease),
        border-color .35s ease,
        background .35s ease,
        box-shadow .35s ease;
}


.cert-card:hover {
    transform: translateY(-8px);
    border-color: rgba(215,255,79,.20);
    background: var(--surface-2);
    box-shadow:
        0 30px 60px
        rgba(0,0,0,.25);
}


.cert-card > span {
    color: var(--muted-2);
    font-size: 10px;
}


.cert-card h3 {
    margin-top: 55px;
    font-family: "Space Grotesk", sans-serif;
    font-size: 25px;
    line-height: 1.1;
    letter-spacing: -.04em;
    font-weight: 500;
    transition: color .3s ease;
}


.cert-card:hover h3 {
    color: var(--accent);
}


.cert-card p {
    margin-top: 15px;
    color: var(--muted);
    font-size: 12px;
}


.cert-card > div {
    margin-top: 45px;
    padding-top: 15px;
    border-top: 1px solid var(--line);
    color: var(--muted-2);
    font-size: 10px;
    line-height: 1.6;
}


/* CONTACT */

.contact-section {
    border-top: 1px solid var(--line);
}


.contact-grid {
    display: grid;
    grid-template-columns: .8fr 1.2fr;
    gap: 100px;
}


.contact-intro h2 {
    font-family: "Space Grotesk", sans-serif;
    font-size: clamp(50px,6vw,88px);
    line-height: .92;
    letter-spacing: -.06em;
    font-weight: 500;
}


.contact-intro > p {
    max-width: 450px;
    margin-top: 30px;
    color: var(--muted);
    font-size: 15px;
    line-height: 1.8;
}


.contact-direct {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 13px;
    margin-top: 45px;
}


.contact-direct a {
    color: var(--muted);
    font-size: 13px;
    transition:
        color .25s ease,
        transform .25s var(--ease);
}


.contact-direct a:hover {
    color: var(--accent);
    transform: translateX(5px);
}


/* CONTACT FORM */

.contact-form {
    padding: 42px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--surface);
}


.form-group {
    margin-bottom: 25px;
}


.form-group label {
    display: block;
    margin-bottom: 9px;
    color: var(--muted);
    font-size: 10px;
    font-weight: 600;
    letter-spacing: .12em;
    text-transform: uppercase;
}


.form-group input,
.form-group textarea {
    width: 100%;
    border: 1px solid var(--line);
    border-radius: 14px;
    outline: none;
    padding: 15px 16px;
    background: rgba(255,255,255,.025);
    color: var(--text);
    font-size: 13px;
    resize: vertical;
    transition:
        border-color .3s ease,
        background .3s ease,
        box-shadow .3s ease;
}


.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--muted-2);
}


.form-group input:focus,
.form-group textarea:focus {
    border-color: rgba(215,255,79,.45);
    background: rgba(215,255,79,.025);
    box-shadow:
        0 0 0 3px
        rgba(215,255,79,.05);
}


.submit-button {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 17px 20px;
    border: 0;
    border-radius: 14px;
    background: var(--accent);
    color: #080808;
    font-size: 12px;
    font-weight: 700;
    transition:
        transform .3s var(--ease),
        box-shadow .3s ease;
}


.submit-button:hover {
    transform: translateY(-3px);
    box-shadow:
        0 15px 35px
        rgba(215,255,79,.13);
}


.form-status {
    min-height: 20px;
    margin-top: 14px;
    color: var(--muted);
    font-size: 11px;
}


.form-status.success {
    color: var(--accent);
}


.form-status.error {
    color: var(--danger);
}


/* FOOTER */

.footer {
    padding: 45px 0 30px;
    border-top: 1px solid var(--line);
}


.footer-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
    padding-bottom: 35px;
    border-bottom: 1px solid var(--line);
}


.footer-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 13px;
    font-weight: 600;
}


.footer-brand .brand-mark {
    width: 32px;
    height: 32px;
}


.footer-links {
    display: flex;
    gap: 25px;
}


.footer-links a {
    color: var(--muted);
    font-size: 11px;
    transition: color .25s ease;
}


.footer-links a:hover {
    color: var(--accent);
}


.footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
    padding-top: 25px;
    color: var(--muted-2);
    font-size: 10px;
}


/* REVEAL */

.reveal {
    opacity: 0;
    transform: translateY(35px);
    transition:
        opacity .8s var(--ease),
        transform .8s var(--ease);
}


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


.project-card {
    opacity: 1 !important;
    transform: none !important;
}


/* 1050 */

@media (max-width: 1050px) {

    .desktop-nav {
        gap: 18px;
    }


    .section {
        padding: 120px 0;
    }


    .section-heading {
        grid-template-columns: 1fr;
        gap: 30px;
        margin-bottom: 60px;
    }


    .project-card {
        top: 95px;
        margin-bottom: 100px;
    }


    .project-content {
        grid-template-columns: 1fr;
        min-height: auto;
        padding: 40px;
    }


    .project-info {
        min-height: 430px;
    }


    .project-visual {
        min-height: 480px;
    }


    .project-visual img {
        min-height: 480px;
    }


    .skills-grid {
        grid-template-columns: repeat(2,1fr);
    }


    .ai-grid {
        grid-template-columns: repeat(2,1fr);
    }


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


    .contact-grid {
        grid-template-columns: 1fr;
        gap: 60px;
    }

}


/* 900 */

@media (max-width: 900px) {

    body {
        cursor: auto;
    }


    body a,
    body button {
        cursor: pointer;
    }


    .cursor-dot,
    .cursor-ring {
        display: none;
    }


    .desktop-nav,
    .nav-cta {
        display: none;
    }


    .menu-toggle {
        display: flex;
    }


    .navbar {
        width: calc(100% - 24px);
    }


    .hero {
        padding-top: 130px;
    }


    .hero-bottom {
        align-items: flex-start;
        flex-direction: column;
        gap: 35px;
        margin-top: 55px;
    }


    .hero-actions {
        flex-wrap: wrap;
    }


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


    .education-item {
        grid-template-columns: 120px 1fr 40px;
        gap: 25px;
    }

}


/* 700 */

@media (max-width: 700px) {

    .container {
        width: calc(100% - 32px);
    }


    .section {
        padding: 95px 0;
    }


    .hero {
        min-height: auto;
        padding-top: 150px;
        padding-bottom: 90px;
    }


    .hero-title {
        font-size: clamp(58px,16vw,100px);
    }


    .hero-line-indent {
        padding-left: 0;
    }


    .hero-description {
        font-size: 14px;
    }


    .section-heading h2 {
        font-size: clamp(45px,13vw,70px);
    }


    .project-card {
        top: 78px;
        margin-bottom: 70px;
    }


    .project-content {
        padding: 25px;
        border-radius: 25px;
        gap: 30px;
    }


    .project-info {
        min-height: 380px;
    }


    .project-info h3 {
        font-size: clamp(45px,14vw,70px);
    }


    .project-info p {
        font-size: 13px;
        line-height: 1.7;
    }


    .project-visual {
        min-height: 330px;
        border-radius: 18px;
    }


    .project-visual img {
        min-height: 330px;
    }


    .experience-item {
        grid-template-columns: 40px 1fr;
        gap: 20px;
    }


    .experience-arrow {
        display: none;
    }


    .experience-top {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }


    .about-content {
        padding: 28px;
    }


    .about-details {
        grid-template-columns: 1fr;
    }


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


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


    .education-item {
        grid-template-columns: 1fr;
        gap: 15px;
    }


    .education-arrow {
        display: none;
    }


    .contact-form {
        padding: 28px;
    }


    .footer-top {
        align-items: flex-start;
        flex-direction: column;
    }


    .footer-bottom {
        align-items: flex-start;
        flex-direction: column;
    }

}


/* 520 */

@media (max-width: 520px) {

    .brand-name {
        display: none;
    }


    .hero-actions {
        width: 100%;
        flex-direction: column;
        align-items: stretch;
    }


    .button {
        width: 100%;
    }


    .hero-scroll {
        margin-top: 60px;
    }


    .project-card {
        top: 70px;
        margin-bottom: 55px;
    }


    .project-content {
        padding: 20px;
    }


    .project-number {
        width: 45px;
        height: 45px;
    }


    .project-meta {
        margin-top: 25px;
    }


    .project-meta span {
        font-size: 8px;
    }


    .project-info {
        min-height: 350px;
    }


    .project-visual {
        min-height: 260px;
    }


    .project-visual img {
        min-height: 260px;
    }


    .contact-form {
        padding: 22px;
    }

}


/* TOUCH */

@media (hover: none) {

    body {
        cursor: auto;
    }


    body a,
    body button {
        cursor: pointer;
    }


    .cursor-dot,
    .cursor-ring {
        display: none;
    }


    .project-card:hover .project-visual img {
        transform: none;
        filter: none;
    }

}


/* REDUCED MOTION */

@media (prefers-reduced-motion: reduce) {

    html {
        scroll-behavior: auto;
    }


    *,
    *::before,
    *::after {
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .01ms !important;
    }


    .reveal {
        opacity: 1;
        transform: none;
    }


    .project-content {
        transform: none !important;
    }

}
/* ==========================================================================
   FINAL PORTFOLIO LAYOUT FIX
   ========================================================================== */

/*
   IMPORTANT:
   - Desktop layout stays in the original design.
   - Desktop project cards use the original sticky stack.
   - Mobile project cards return to normal document flow.
   - No JavaScript transform is allowed to break the layout.
*/


/* ==========================================================================
   DESKTOP — 1025px AND ABOVE
   ========================================================================== */

@media (min-width: 1025px) {

    /* ---------- NAVBAR ---------- */

    .navbar {
        position: fixed;
        top: 18px;
        left: 50%;
        width: min(
            calc(100% - 32px),
            1100px
        );
        max-width: 100%;
        transform: translateX(-50%);
        z-index: 9000;
    }

    .nav-inner {
        width: 100%;
        height: 64px;

        display: flex;
        align-items: center;
        justify-content: space-between;

        flex-wrap: nowrap;

        gap: 20px;

        padding: 8px 10px 8px 18px;

        border-radius: 999px;
    }

    .brand {
        display: flex;
        align-items: center;

        flex: 0 0 auto;

        min-width: 0;
    }

    .desktop-nav {
        display: flex;
        align-items: center;
        justify-content: center;

        flex: 1 1 auto;

        min-width: 0;

        gap: 26px;
    }

    .nav-cta {
        display: inline-flex;

        flex: 0 0 auto;
    }

    .menu-toggle {
        display: none !important;
    }


    /* ---------- HERO ---------- */

    .hero {
        position: relative;

        min-height: 100vh;

        display: flex;
        align-items: center;

        padding-top: 140px;
        padding-bottom: 70px;

        overflow: hidden;
    }

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

        width: min(
            calc(100% - 48px),
            var(--container)
        );

        margin-inline: auto;
    }

    .hero-title {
        max-width: 1150px;

        font-size: clamp(
            64px,
            9.5vw,
            150px
        );

        line-height: .86;
        letter-spacing: -.07em;
    }

    .hero-line {
        display: block;
    }

    .hero-bottom {
        display: flex;

        align-items: flex-end;
        justify-content: space-between;

        flex-direction: row;

        gap: 60px;
    }

    .hero-actions {
        display: flex;

        flex-direction: row;

        width: auto;
    }


    /* ---------- ALL SECTIONS ---------- */

    .section {
        position: relative;

        width: 100%;

        padding-top: var(--section-pad);
        padding-bottom: var(--section-pad);
    }

    .container {
        width: min(
            calc(100% - 48px),
            var(--container)
        );

        max-width: 100%;

        margin-inline: auto;
    }


    /* ---------- PROJECT SECTION ---------- */

    .projects-section {
        position: relative;

        width: 100%;

        overflow: visible;

        padding-bottom: 45px;
    }

    .project-stack {
        position: relative;

        width: 100%;

        display: block;

        margin-top: 0;

        overflow: visible;

        perspective: none;
    }

    /*
       Desktop sticky stack.
       Each card remains part of normal document flow.
    */

    .project-stack .project-card,
    .project-card {
        position: sticky;

        top: 100px;

        width: 100%;

        min-height: 580px;

        margin-bottom: var(--card-stack-gap);

        transform: none !important;

        opacity: 1 !important;

        overflow: visible;

        will-change: auto;
    }

    .project-card:last-child {
        margin-bottom: 0 !important;
    }

    .project-card-1 {
        z-index: 1;
    }

    .project-card-2 {
        z-index: 2;
    }

    .project-card-3 {
        z-index: 3;
    }

    .project-card-4 {
        z-index: 4;
    }

    .project-card-5 {
        z-index: 5;
    }


    /* ---------- PROJECT CONTENT ---------- */

    .project-content {
        position: relative;

        width: 100%;

        min-height: 580px;

        display: grid;

        grid-template-columns:
            .82fr
            1.18fr;

        gap: 48px;

        padding: 48px;

        border-radius: 32px;

        overflow: hidden;

        transform: none;

        transform-style: preserve-3d;
    }


    /* ---------- PROJECT VISUAL ---------- */

    .project-visual {
        position: relative;

        width: 100%;

        min-width: 0;

        min-height: 480px;

        height: auto;

        display: flex;

        align-items: center;
        justify-content: center;

        overflow: hidden;

        border-radius: 24px;
    }

    .project-visual img {
        width: 100%;

        height: 100%;

        min-height: 480px;

        object-fit: cover;

        transform: none;
    }


    /* ---------- EXPERIENCE ---------- */

    .experience-section {
        position: relative;

        width: 100%;

        padding-top: 55px;
    }


    /* ---------- ABOUT ---------- */

    .about-grid {
        display: grid;

        grid-template-columns:
            .8fr
            1.2fr;

        gap: 90px;
    }


    /* ---------- CONTACT ---------- */

    .contact-grid {
        display: grid;

        grid-template-columns:
            .8fr
            1.2fr;

        gap: 90px;
    }
}


/* ==========================================================================
   TABLET — 768px TO 1024px
   ========================================================================== */

@media (min-width: 768px) and (max-width: 1024px) {

    .navbar {
        width: calc(100% - 24px);
    }

    .desktop-nav {
        display: none !important;
    }

    .menu-toggle {
        display: flex;
    }

    .nav-cta {
        display: inline-flex !important;
        margin-left: auto;
    }


    .project-stack {
        display: block;

        width: 100%;

        margin-top: 0;

        perspective: none;
    }

    .project-card {
        position: sticky;

        top: 88px;

        width: 100%;

        min-height: auto;

        margin-bottom: 40px;

        transform: none !important;

        opacity: 1 !important;
    }

    .project-card:last-child {
        margin-bottom: 0 !important;
    }

    .project-content {
        display: grid;

        grid-template-columns: 1fr;

        min-height: auto;

        gap: 30px;

        padding: 34px;

        border-radius: 26px;
    }

    .project-visual {
        min-height: 340px;

        height: 340px;

        order: -1;

        border-radius: 20px;
    }

    .project-visual img {
        min-height: 340px;

        height: 100%;
    }
}


/* ==========================================================================
   MOBILE — BELOW 768px
   ========================================================================== */

@media (max-width: 767px) {

    html,
    body {
        width: 100%;

        max-width: 100%;

        overflow-x: hidden;
    }


    /* ---------- CONTAINER ---------- */

    .container {
        width: calc(100% - 32px);

        max-width: 100%;

        margin-inline: auto;
    }


    /* ---------- NAVBAR ---------- */

    .navbar {
        width: calc(100% - 24px);

        top: 12px;
    }

    .nav-inner {
        display: flex;

        align-items: center;
        justify-content: space-between;

        flex-wrap: nowrap;

        height: 54px;
    }

    .desktop-nav {
        display: none !important;
    }

    .nav-cta {
        display: inline-flex !important;

        margin-left: auto;
    }

    .menu-toggle {
        display: flex;
    }


    /* ---------- HERO ---------- */

    .hero {
        min-height: auto;

        padding-top: 105px;
        padding-bottom: 50px;
    }

    .hero-container {
        width: 100%;
    }

    .hero-title {
        max-width: 100%;
    }

    .hero-bottom {
        display: flex;

        flex-direction: column;

        align-items: flex-start;

        gap: 32px;
    }

    .hero-actions {
        display: flex;

        flex-wrap: wrap;

        width: 100%;
    }


    /* ================================================================
       PROJECTS — CRITICAL MOBILE FIX
       ================================================================ */

    .projects-section {
        position: relative;

        width: 100%;

        overflow: visible;

        padding-bottom: 25px;
    }

    .project-stack {
        position: relative;

        display: block;

        width: 100%;

        margin-top: 0;

        gap: 0;

        perspective: none;

        overflow: visible;
    }


    /*
       THIS IS THE IMPORTANT FIX.

       Mobile cards must NOT be sticky.

       Previously:
           position: sticky;
           top: 72px;

       That creates the large vertical spacing / overlap problem.
    */

    .project-card,
    .project-stack .project-card {
        position: relative !important;

        top: auto !important;

        left: auto !important;

        right: auto !important;

        width: 100%;

        min-height: auto !important;

        height: auto;

        margin: 0 0 24px;

        transform: none !important;

        opacity: 1 !important;

        will-change: auto;

        overflow: visible;
    }

    .project-card:last-child {
        margin-bottom: 0 !important;
    }


    /* ---------- PROJECT CONTENT ---------- */

    .project-content,
    .project-stack .project-content {
        position: relative;

        width: 100%;

        min-height: auto;

        display: flex;

        flex-direction: column;

        gap: 22px;

        padding: 22px;

        border-radius: 22px;

        transform: none !important;

        transform-style: flat;

        overflow: hidden;
    }


    /* ---------- PROJECT INFO ---------- */

    .project-info {
        width: 100%;

        min-height: auto;
    }

    .project-info h3 {
        max-width: 100%;

        overflow-wrap: anywhere;
    }


    /* ---------- PROJECT IMAGE ---------- */

    .project-visual,
    .project-stack .project-visual {
        position: relative;

        width: 100%;

        min-width: 0;

        min-height: 220px;

        height: 220px;

        order: -1;

        transform: none;

        border-radius: 16px;

        overflow: hidden;
    }

    .project-visual img,
    .project-stack .project-visual img {
        width: 100%;

        height: 100%;

        min-height: 220px;

        object-fit: cover;

        transform: none !important;

        filter: none !important;
    }


    /* ---------- EXPERIENCE ---------- */

    .experience-section {
        position: relative;

        padding-top: 35px;
    }

    .experience-item {
        grid-template-columns: 1fr;

        gap: 10px;

        padding: 26px 0;
    }

    .experience-arrow {
        display: none;
    }


    /* ---------- ABOUT ---------- */

    .about-grid {
        grid-template-columns: 1fr;

        gap: 35px;
    }


    /* ---------- AI ---------- */

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


    /* ---------- EDUCATION ---------- */

    .education-item {
        grid-template-columns: 1fr;

        gap: 8px;
    }

    .education-arrow {
        display: none;
    }


    /* ---------- CERTIFICATIONS ---------- */

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


    /* ---------- CONTACT ---------- */

    .contact-grid {
        grid-template-columns: 1fr;

        gap: 45px;
    }

    .contact-form {
        width: 100%;
    }
}


/* ==========================================================================
   SMALL MOBILE — BELOW 480px
   ========================================================================== */

@media (max-width: 480px) {

    .container {
        width: calc(100% - 24px);
    }

    .navbar {
        width: calc(100% - 20px);
    }


    .project-card,
    .project-stack .project-card {
        margin-bottom: 20px;
    }

    .project-content,
    .project-stack .project-content {
        padding: 18px;

        border-radius: 18px;

        gap: 18px;
    }

    .project-visual,
    .project-stack .project-visual {
        min-height: 190px;

        height: 190px;

        border-radius: 14px;
    }

    .project-visual img,
    .project-stack .project-visual img {
        min-height: 190px;
    }


    .hero-actions {
        width: 100%;

        flex-direction: column;

        align-items: stretch;

        gap: 10px;
    }

    .hero-actions .button {
        width: 100%;
    }
}


/* ==========================================================================
   VERY SMALL MOBILE — BELOW 360px
   ========================================================================== */

@media (max-width: 360px) {

    .container {
        width: calc(100% - 20px);
    }

    .project-card,
    .project-stack .project-card {
        margin-bottom: 18px;
    }

    .project-content,
    .project-stack .project-content {
        padding: 14px;

        border-radius: 16px;

        gap: 14px;
    }

    .project-visual,
    .project-stack .project-visual {
        min-height: 160px;

        height: 160px;

        border-radius: 12px;
    }

    .project-visual img,
    .project-stack .project-visual img {
        min-height: 160px;
    }
}


/* ==========================================================================
   FINAL SAFETY
   ========================================================================== */

img {
    max-width: 100%;
}

.project-content,
.project-visual,
.project-card,
.project-stack,
.container {
    max-width: 100%;
}

@media (prefers-reduced-motion: reduce) {

    .project-card,
    .project-content,
    .project-visual img {
        transform: none !important;
    }
}

/* ==========================================================================
   SECTION SPACING FIX
   ========================================================================== */

/* Add breathing room between major sections */
@media (min-width: 1025px) {

    .projects-section {
        padding-bottom: 120px !important;
    }

    .experience-section {
        padding-top: 120px !important;
        padding-bottom: 120px !important;
    }

    .about-section {
        padding-top: 120px !important;
        padding-bottom: 120px !important;
    }

    .ai-section {
        padding-top: 120px !important;
        padding-bottom: 120px !important;
    }

    .education-section {
        padding-top: 120px !important;
        padding-bottom: 120px !important;
    }

    .certifications-section {
        padding-top: 120px !important;
        padding-bottom: 120px !important;
    }

    .contact-section {
        padding-top: 120px !important;
    }
}


/* Tablet */
@media (min-width: 768px) and (max-width: 1024px) {

    .projects-section {
        padding-bottom: 90px !important;
    }

    .experience-section,
    .about-section,
    .ai-section,
    .education-section,
    .certifications-section {
        padding-top: 90px !important;
        padding-bottom: 90px !important;
    }

    .contact-section {
        padding-top: 90px !important;
    }
}


/* Mobile */
@media (max-width: 767px) {

    .projects-section {
        padding-bottom: 55px !important;
    }

    .experience-section,
    .about-section,
    .ai-section,
    .education-section,
    .certifications-section {
        padding-top: 65px !important;
        padding-bottom: 65px !important;
    }

    .contact-section {
        padding-top: 65px !important;
    }
}

/* ==========================================================================
   DESKTOP SECTION BREATHING SPACE
   ========================================================================== */

@media (min-width: 1025px) {

    /* Space after the hero before the scrolling expertise strip */
    .hero {
        padding-bottom: 100px !important;
    }

    /* Space between expertise strip and Selected Work */
    .marquee-section {
        margin-bottom: 90px !important;
    }

    /* Space before Selected Work content */
    .projects-section {
        padding-top: 0 !important;
        margin-top: 0 !important;
    }

    /* Space after Projects before Experience */
    .projects-section + .experience-section {
        padding-top: 140px !important;
    }

    /* Space between all other major sections */
    .experience-section {
        padding-bottom: 120px !important;
    }

    .about-section {
        padding-top: 120px !important;
        padding-bottom: 120px !important;
    }

    .ai-section {
        padding-top: 120px !important;
        padding-bottom: 120px !important;
    }

    .education-section {
        padding-top: 120px !important;
        padding-bottom: 120px !important;
    }

    .certifications-section {
        padding-top: 120px !important;
        padding-bottom: 120px !important;
    }

    .contact-section {
        padding-top: 120px !important;
    }
}


/* ==========================================================================
   TABLET
   ========================================================================== */

@media (min-width: 768px) and (max-width: 1024px) {

    .marquee-section {
        margin-bottom: 60px !important;
    }

    .projects-section + .experience-section {
        padding-top: 90px !important;
    }
}


/* ==========================================================================
   MOBILE
   ========================================================================== */

@media (max-width: 767px) {

    .marquee-section {
        margin-bottom: 45px !important;
    }

    .projects-section + .experience-section {
        padding-top: 65px !important;
    }
}
/* ==========================================================================
   DESKTOP NAVBAR / HERO CLEARANCE FIX
   ========================================================================== */

/* ==========================================================================
   FINAL DESKTOP NAVBAR / HERO OVERLAP FIX
   ========================================================================== */

/* ==========================================================================
   FINAL DESKTOP SPACING + NAVBAR CLEARANCE
   ========================================================================== */

@media (min-width: 1025px) {

    /* --------------------------------------------------------------
       HERO
       -------------------------------------------------------------- */

    .hero-container {
        transform: translateY(118px) !important;
    }


    /* --------------------------------------------------------------
       KEEP HERO CONTENT BELOW NAVBAR
       -------------------------------------------------------------- */

    .hero-label,
    .hero-title,
    .hero-bottom,
    .hero-scroll {
        position: relative;
        z-index: 2;
    }


    /* --------------------------------------------------------------
       CONTACT SECTION
       -------------------------------------------------------------- */

    /*
       The navbar is fixed, so the first part of the contact
       section needs enough top clearance when the user arrives
       at the bottom of the page.
    */

    .contact-section {
        padding-top: 155px !important;
        padding-bottom: 115px !important;
    }


    /* --------------------------------------------------------------
       CONTACT CONTENT
       -------------------------------------------------------------- */

    .contact-section .container {
        position: relative;
        z-index: 1;
    }

    .contact-grid {
        position: relative;
        z-index: 1;
    }


    /* --------------------------------------------------------------
       FOOTER
       -------------------------------------------------------------- */

    .footer {
        position: relative;

        margin-top: 35px;

        padding-top: 50px !important;
        padding-bottom: 32px !important;

        border-top: 1px solid var(--line);
    }

    .footer-top {
        padding-bottom: 32px !important;
    }

    .footer-bottom {
        padding-top: 24px !important;
    }
}


/* ==========================================================================
   TABLET
   ========================================================================== */

@media (min-width: 768px) and (max-width: 1024px) {

    .contact-section {
        padding-top: 110px !important;
        padding-bottom: 90px !important;
    }

    .footer {
        margin-top: 25px;

        padding-top: 42px !important;
    }
}


/* ==========================================================================
   MOBILE
   ========================================================================== */

@media (max-width: 767px) {

    /*
       Mobile navbar is smaller, so we don't need the large
       desktop clearance.
    */

    .contact-section {
        padding-top: 75px !important;
        padding-bottom: 70px !important;
    }

    .footer {
        margin-top: 20px;

        padding-top: 36px !important;
        padding-bottom: 28px !important;
    }

    .footer-top {
        padding-bottom: 24px !important;
    }

    .footer-bottom {
        padding-top: 18px !important;
    }
}

/* =========================================================
   FINAL PROJECT STACK + 3D TILT + MOBILE MENU
   SAFE OVERRIDE LAYER
========================================================= */


/* =========================================================
   PROJECT 3D TILT
========================================================= */

.project-content[data-project-tilt] {
    transform-style: preserve-3d;
    will-change: transform;
    transform:
        perspective(1200px)
        rotateX(var(--tilt-x, 0deg))
        rotateY(var(--tilt-y, 0deg))
        translateZ(0);
    transition:
        transform .18s cubic-bezier(.16,1,.3,1),
        box-shadow .35s ease;
}

.project-content[data-project-tilt] .project-info,
.project-content[data-project-tilt] .project-visual {
    transform: translateZ(18px);
}


/* =========================================================
   MOBILE PROJECT STACK
   Keep cards sticky instead of normal flow
========================================================= */

@media (max-width: 767px) {

    .project-stack {
        display: block !important;
        overflow: visible !important;
        perspective: 1200px;
    }

    .project-card,
    .project-stack .project-card {
        position: sticky !important;
        top: 72px !important;

        width: 100%;
        min-height: auto !important;

        margin-bottom: 30px !important;

        transform: none !important;
        opacity: 1 !important;

        overflow: visible;
    }

    .project-card-1 {
        z-index: 1;
    }

    .project-card-2 {
        z-index: 2;
    }

    .project-card-3 {
        z-index: 3;
    }

    .project-card-4 {
        z-index: 4;
    }

    .project-card-5 {
        z-index: 5;
    }

    .project-content,
    .project-stack .project-content {
        transform-style: preserve-3d;
        overflow: hidden;
    }

    /*
       Disable mouse tilt on touch devices.
       Stacking remains active.
    */
    .project-content[data-project-tilt] {
        transform:
            perspective(1200px)
            rotateX(0deg)
            rotateY(0deg)
            translateZ(0);
    }

}


/* =========================================================
   VERY SMALL MOBILE STACK POSITION
========================================================= */

@media (max-width: 480px) {

    .project-card,
    .project-stack .project-card {
        top: 66px !important;
        margin-bottom: 24px !important;
    }

}


@media (max-width: 360px) {

    .project-card,
    .project-stack .project-card {
        top: 58px !important;
        margin-bottom: 20px !important;
    }

}


/* =========================================================
   MOBILE MENU
========================================================= */

@media (max-width: 767px) {

    .mobile-menu {
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }

    .mobile-menu-inner {
        min-height: 100%;
        justify-content: flex-start;
        padding:
            105px 24px 40px;
        gap: 0;
    }

    .mobile-menu-header {
        width: 100%;
        margin-bottom: 35px;
    }

    /*
       Navigation items
    */

    .mobile-menu-inner > a {
        position: relative;

        display: flex;
        align-items: center;

        width: 100%;

        padding: 17px 0;

        border-bottom:
            1px solid rgba(255,255,255,.10);

        color: var(--text);

        font-family:
            "Space Grotesk",
            sans-serif;

        font-size:
            clamp(28px, 8vw, 42px);

        font-weight: 500;

        letter-spacing: -.04em;

        transition:
            color .25s ease,
            padding-left .25s ease;
    }

    /*
       Hover / touch feedback
    */

    .mobile-menu-inner > a:hover {
        color: var(--accent);
        padding-left: 8px;
    }

    /*
       Small number styling
    */

    .mobile-menu-inner > a small {
        min-width: 28px;

        margin-right: 8px;

        color: var(--accent);

        font-family:
            "DM Sans",
            sans-serif;

        font-size: 10px;
        font-weight: 600;
        letter-spacing: .12em;
    }

    /*
       Mobile Let's Talk CTA
    */

    .mobile-menu-cta {
        display: flex;
        align-items: center;
        justify-content: space-between;

        width: 100%;

        margin-top: 28px;

        padding: 17px 19px;

        border:
            1px solid rgba(215,255,79,.25);

        border-radius: 16px;

        background:
            var(--accent);

        color: #080808;

        font-family:
            "DM Sans",
            sans-serif;

        font-size: 13px;

        font-weight: 700;

        transition:
            transform .25s var(--ease),
            box-shadow .25s ease,
            background .25s ease;
    }

    .mobile-menu-cta:hover {
        transform: translateY(-2px);

        box-shadow:
            0 12px 30px
            rgba(215,255,79,.16);
    }

    .mobile-menu-cta span:last-child {
        font-size: 18px;

        transition:
            transform .25s var(--ease);
    }

    .mobile-menu-cta:hover span:last-child {
        transform:
            translate(3px,-3px);
    }

    /*
       Hamburger → X
    */

    .menu-toggle.active {
        background:
            var(--accent);

        border-color:
            var(--accent);
    }

    .menu-toggle.active span {
        background:
            #080808;
    }

}
/* =========================================================
   FINAL MOBILE PROJECT STACK + TOUCH 3D + NAVBAR FIX
========================================================= */

.nav-cta {
    display: none !important;
}

.menu-toggle,
.menu-toggle:hover,
.menu-toggle:active,
.menu-toggle:focus,
.menu-toggle:focus-visible {
    -webkit-tap-highlight-color: transparent !important;
    appearance: none !important;
    -webkit-appearance: none !important;
    background: var(--surface-2) !important;
    color: var(--text) !important;
    outline: none !important;
    box-shadow: none !important;
}

@media (max-width: 767px) {

    .project-stack {
        display: block !important;
        position: relative !important;
        overflow: visible !important;
        perspective: 1200px !important;
        isolation: isolate;
    }

    .project-stack .project-card {
        position: sticky !important;
        top: 72px !important;
        width: 100% !important;
        min-height: auto !important;
        margin-bottom: 30px !important;
        transform: none !important;
        opacity: 1 !important;
        z-index: var(--stack-z, 1) !important;
    }

    .project-stack .project-card:nth-child(1) {
        z-index: 1 !important;
    }

    .project-stack .project-card:nth-child(2) {
        z-index: 2 !important;
    }

    .project-stack .project-card:nth-child(3) {
        z-index: 3 !important;
    }

    .project-stack .project-card:nth-child(4) {
        z-index: 4 !important;
    }

    .project-stack .project-card:nth-child(5) {
        z-index: 5 !important;
    }

    .project-stack .project-content[data-project-tilt] {
        transform-style: preserve-3d !important;
        backface-visibility: hidden;
        will-change: transform;

        transform:
            perspective(1200px)
            rotateX(var(--tilt-x, 0deg))
            rotateY(var(--tilt-y, 0deg))
            translateZ(0) !important;

        transition:
            transform .18s cubic-bezier(.16,1,.3,1),
            box-shadow .35s ease !important;
    }

    .project-stack .project-content[data-project-tilt] .project-info,
    .project-stack .project-content[data-project-tilt] .project-visual {
        transform: translateZ(18px);
    }

    .project-stack .project-visual img {
        transform:
            translate3d(
                var(--image-x, 0px),
                var(--image-y, 0px),
                0
            )
            scale(1.015) !important;
    }
}

@media (max-width: 480px) {
    .project-stack .project-card {
        top: 66px !important;
        margin-bottom: 24px !important;
    }
}

@media (max-width: 360px) {
    .project-stack .project-card {
        top: 58px !important;
        margin-bottom: 20px !important;
    }
}
/* =========================================================
   FINAL NAVBAR + GLOBAL CONTENT SPACING FIX
========================================================= */

/* Desktop: keep Let's Talk in navbar */
@media (min-width: 901px) {
    .nav-cta {
        display: inline-flex !important;
    }
}

/* Tablet + Mobile: remove navbar CTA.
   The mobile menu already contains Let's Talk. */
@media (max-width: 900px) {
    .nav-cta {
        display: none !important;
    }
}
/* =========================================================
   GLOBAL CONTENT SIDE SPACING
========================================================= */

/* Desktop */
@media (min-width: 1025px) {
    .container,
    .hero-container {
        width: min(
            calc(100% - 96px),
            1240px
        ) !important;

        max-width: 100% !important;
        margin-inline: auto !important;
    }
}

/* Tablet */
@media (min-width: 768px) and (max-width: 1024px) {
    .container,
    .hero-container {
        width: calc(100% - 64px) !important;
        max-width: 100% !important;
        margin-inline: auto !important;
    }
}

/* Mobile */
@media (max-width: 767px) {
    .container,
    .hero-container {
        width: calc(100% - 40px) !important;
        max-width: 100% !important;
        margin-inline: auto !important;
    }
}

/* Very small phones */
@media (max-width: 360px) {
    .container,
    .hero-container {
        width: calc(100% - 28px) !important;
    }
}
/* =========================================================
   HERO CTA PLACEMENT
========================================================= */

@media (min-width: 1025px) {

    .hero-bottom {
        display: flex !important;
        align-items: flex-end !important;
        justify-content: space-between !important;
        gap: 70px !important;
        margin-top: 55px !important;
    }

    .hero-description {
        max-width: 610px !important;
        margin: 0 !important;
    }

    .hero-actions {
        display: flex !important;
        align-items: center !important;
        justify-content: flex-end !important;
        gap: 12px !important;
        flex-shrink: 0 !important;
        margin-left: auto !important;
    }

    .hero-actions .button {
        white-space: nowrap;
    }
}
/* =========================================================
   MOBILE HERO CTA
========================================================= */

@media (max-width: 767px) {

    .hero {
        padding-top: 120px !important;
        padding-bottom: 70px !important;
    }

    .hero-bottom {
        margin-top: 38px !important;
        gap: 28px !important;
    }

    .hero-description {
        max-width: 100% !important;
    }

    .hero-actions {
        width: 100% !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 10px !important;
    }

    .hero-actions .button {
        width: 100% !important;
        justify-content: center !important;
    }
}
/* =========================================================
   MOBILE MENU BUTTON — REMOVE BLUE FOCUS
========================================================= */

.menu-toggle,
.menu-toggle:hover,
.menu-toggle:active,
.menu-toggle:focus,
.menu-toggle:focus-visible {
    -webkit-tap-highlight-color: transparent !important;
    background: var(--surface-2) !important;
    color: var(--text) !important;
    outline: none !important;
    box-shadow: none !important;
}

.menu-toggle:focus-visible {
    border-color: rgba(215,255,79,.35) !important;
    box-shadow: 0 0 0 2px rgba(215,255,79,.10) !important;
}
/* =========================================================
   FINAL MYFOLIO MOBILE / NAVBAR FIX
========================================================= */


/* =========================================================
   1. NAVBAR CTA
   Desktop  -> SHOW
   Tablet   -> HIDE
   Mobile   -> HIDE
   Mobile menu -> CTA remains
========================================================= */

@media (min-width: 901px) {
    .nav-cta {
        display: inline-flex !important;
    }
}

@media (max-width: 900px) {
    .nav-cta {
        display: none !important;
    }
}


/* =========================================================
   2. MOBILE MENU CTA
   No broken arrow / icon
========================================================= */

@media (max-width: 900px) {

    .mobile-menu-cta {
        display: flex !important;
        align-items: center !important;
        justify-content: flex-start !important;

        width: 100% !important;
        box-sizing: border-box !important;

        margin-top: 28px !important;
        padding: 17px 19px !important;

        border: 1px solid rgba(215,255,79,.25) !important;
        border-radius: 16px !important;

        background: var(--accent) !important;
        color: #080808 !important;

        font-family: "DM Sans", sans-serif !important;
        font-size: 13px !important;
        font-weight: 700 !important;

        text-decoration: none !important;
    }

    .mobile-menu-cta span {
        display: block !important;
    }

    .mobile-menu-cta span + span {
        display: none !important;
    }
}


/* =========================================================
   3. MOBILE MENU CLOSE BUTTON
   White X
========================================================= */

.mobile-close,
.mobile-close:hover,
.mobile-close:active,
.mobile-close:focus,
.mobile-close:focus-visible {
    color: #ffffff !important;
    background: transparent !important;
    border-color: transparent !important;
    outline: none !important;
    box-shadow: none !important;

    -webkit-tap-highlight-color: transparent !important;
}

.mobile-close span,
.mobile-close span::before,
.mobile-close span::after {
    background: #ffffff !important;
    color: #ffffff !important;
}


/* =========================================================
   4. MENU TOGGLE
   No blue hover/focus background
========================================================= */

.menu-toggle,
.menu-toggle:hover,
.menu-toggle:active,
.menu-toggle:focus,
.menu-toggle:focus-visible {
    -webkit-tap-highlight-color: transparent !important;

    background: var(--surface-2) !important;
    color: #ffffff !important;

    outline: none !important;
    box-shadow: none !important;
}

.menu-toggle.active {
    background: var(--surface-2) !important;
}

.menu-toggle.active span,
.menu-toggle.active:hover span,
.menu-toggle.active:focus span {
    background: #ffffff !important;
}


/* =========================================================
   5. MOBILE PROJECT STACK
========================================================= */

@media (max-width: 767px) {

    html,
    body {
        width: 100%;
        max-width: 100%;
        overflow-x: clip !important;
    }


    /* IMPORTANT:
       Do not use perspective on the stack container.
       It can interfere with sticky behavior.
    */

    .project-stack {
        display: block !important;

        position: relative !important;

        width: 100% !important;

        margin-top: 45px !important;

        overflow: visible !important;

        perspective: none !important;

        transform: none !important;

        isolation: isolate;
    }


    /*
       Every card sticks at the same position.
       Later cards have higher z-index and therefore
       slide over the previous card.
    */

    .project-stack .project-card {
        position: sticky !important;

        top: 78px !important;

        width: 100% !important;

        min-height: auto !important;

        margin: 0 0 34px 0 !important;

        display: block !important;

        opacity: 1 !important;

        transform: none !important;

        z-index: 1 !important;

        will-change: auto !important;

        align-self: flex-start !important;
    }


    .project-stack .project-card:nth-child(1) {
        z-index: 1 !important;
    }

    .project-stack .project-card:nth-child(2) {
        z-index: 2 !important;
    }

    .project-stack .project-card:nth-child(3) {
        z-index: 3 !important;
    }

    .project-stack .project-card:nth-child(4) {
        z-index: 4 !important;
    }

    .project-stack .project-card:nth-child(5) {
        z-index: 5 !important;
    }


    /*
       Keep the actual card stable.
    */

    .project-stack .project-content {
        position: relative !important;

        width: 100% !important;

        transform-style: preserve-3d !important;

        backface-visibility: hidden !important;

        will-change: transform !important;

        overflow: hidden !important;
    }


    /*
       Mobile 3D tilt.
    */

    .project-stack
    .project-content[data-project-tilt] {

        transform:
            perspective(1100px)
            rotateX(var(--tilt-x, 0deg))
            rotateY(var(--tilt-y, 0deg))
            translateZ(0) !important;

        transition:
            transform .16s cubic-bezier(.16,1,.3,1),
            box-shadow .3s ease !important;
    }


    .project-stack
    .project-content[data-project-tilt].is-tilting {

        transform:
            perspective(1100px)
            rotateX(var(--tilt-x, 0deg))
            rotateY(var(--tilt-y, 0deg))
            translateZ(0) !important;
    }


    /*
       Create a little 3D depth inside the card.
    */

    .project-stack
    .project-content[data-project-tilt]
    .project-info,

    .project-stack
    .project-content[data-project-tilt]
    .project-visual {

        transform: translateZ(16px);
    }


    /*
       Keep image movement subtle.
    */

    .project-stack
    .project-visual img {

        transform:
            translate3d(
                var(--image-x, 0px),
                var(--image-y, 0px),
                0
            )
            scale(1.015) !important;
    }
}


/* =========================================================
   6. SMALL PHONES
========================================================= */

@media (max-width: 480px) {

    .project-stack .project-card {
        top: 70px !important;
        margin-bottom: 28px !important;
    }
}


/* =========================================================
   7. VERY SMALL PHONES
========================================================= */

@media (max-width: 360px) {

    .project-stack .project-card {
        top: 60px !important;
        margin-bottom: 22px !important;
    }
}