/* =========================================
   VICTOR BESSELER — GAME DEVELOPER PORTFOLIO
   Theme: Dark Slate / Cyan / Modern Gaming
   ========================================= */

/* =========================================
   1. ROOT VARIABLES & RESET
   ========================================= */

:root {
    --bg-primary: #080c14;
    --bg-secondary: #0c121d;
    --bg-tertiary: #111a28;
    --bg-card: rgba(17, 26, 40, 0.78);
    --bg-card-hover: rgba(22, 34, 51, 0.95);

    --slate-950: #080c14;
    --slate-900: #0c121d;
    --slate-800: #162131;
    --slate-700: #253449;
    --slate-600: #384a61;
    --slate-500: #64758b;
    --slate-400: #94a3b8;
    --slate-300: #bdc8d6;
    --slate-200: #dbe4ee;

    --cyan: #22d3ee;
    --cyan-bright: #67e8f9;
    --cyan-dark: #0891b2;
    --cyan-glow: rgba(34, 211, 238, 0.16);
    --cyan-border: rgba(34, 211, 238, 0.25);

    --text-primary: #f1f5f9;
    --text-secondary: #a3b1c4;
    --text-muted: #718198;

    --border: rgba(148, 163, 184, 0.13);
    --border-hover: rgba(34, 211, 238, 0.35);

    --font-main: "Manrope", sans-serif;
    --font-mono: "DM Mono", monospace;

    --container-width: 1200px;
    --header-height: 84px;

    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 20px;
    --radius-xl: 28px;

    --transition: 220ms ease;
    --transition-slow: 400ms cubic-bezier(0.2, 0.8, 0.2, 1);

    --shadow-card: 0 16px 50px rgba(0, 0, 0, 0.18);
    --shadow-glow: 0 0 40px rgba(34, 211, 238, 0.08);
}

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: 110px;
    overflow-x: clip;
    scrollbar-color: #334155 #080c14;
    scrollbar-width: thin;
}

body {
    min-height: 100vh;
    overflow-x: hidden;
    background: var(--bg-primary);
    color: var(--text-primary);
    font-family: var(--font-main);
    font-size: 15px;
    line-height: 1.8;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

body::selection {
    background: rgba(34, 211, 238, 0.3);
    color: #fff;
}

::selection {
    background: rgba(34, 211, 238, 0.3);
    color: #fff;
}

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

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

button,
input,
textarea {
    font: inherit;
}

button,
a {
    -webkit-tap-highlight-color: transparent;
}

button {
    color: inherit;
}

ul {
    list-style: none;
}

button:focus-visible,
a:focus-visible {
    outline: 2px solid var(--cyan);
    outline-offset: 5px;
}

section {
    position: relative;
}

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

.section-block {
    padding-top: 140px;
}

.muted {
    color: var(--text-muted);
}

.gradient-text,
.highlight {
    background: linear-gradient(
        115deg,
        var(--cyan-bright) 0%,
        var(--cyan) 45%,
        #818cf8 100%
    );
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}


/* =========================================
   2. BACKGROUND AMBIENCE
   ========================================= */

body {
    background-image:
        radial-gradient(
            ellipse at 50% 0%,
            rgba(20, 54, 78, 0.13),
            transparent 50%
        ),
        linear-gradient(
            180deg,
            #080c14 0%,
            #0a101a 45%,
            #080c14 100%
        );
}

.ambient {
    position: fixed;
    z-index: -1;
    width: 500px;
    height: 500px;
    pointer-events: none;
    border-radius: 50%;
    filter: blur(120px);
    opacity: 0.13;
}

.ambient-one {
    top: 100px;
    left: -250px;
    background: #0891b2;
}

.ambient-two {
    top: 500px;
    right: -300px;
    background: #4f46e5;
}


/* =========================================
   3. HEADER & NAVIGATION
   ========================================= */

.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;

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

    width: 100%;
    height: var(--header-height);
    padding-inline: max(40px, calc((100vw - var(--container-width)) / 2));

    background: rgba(8, 12, 20, 0.78);
    border-bottom: 1px solid rgba(148, 163, 184, 0.08);

    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
}

.wordmark {
    display: inline-flex;
    align-items: center;
    gap: 15px;
    flex-shrink: 0;
}

.mark {
    display: inline-flex;
    align-items: center;

    font-size: 27px;
    font-weight: 800;
    letter-spacing: -2px;
    line-height: 1;
}

.mark span {
    color: var(--cyan);
}

.wordmark-label {
    padding-left: 15px;
    border-left: 1px solid var(--slate-700);

    color: var(--slate-400);
    font-family: var(--font-mono);
    font-size: 10px;
    letter-spacing: 1.8px;
}

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

.nav > a {
    position: relative;

    color: var(--text-secondary);
    font-size: 12px;
    font-weight: 700;
    transition: color var(--transition);
}

.nav > a:not(.nav-contact)::after {
    position: absolute;
    right: 0;
    bottom: -7px;
    left: 0;

    height: 1px;
    background: var(--cyan);

    content: "";
    transform: scaleX(0);
    transform-origin: right;
    transition: transform var(--transition);
}

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

.nav > a:hover {
    color: var(--cyan-bright);
}

.nav .nav-contact {
    display: inline-flex;
    align-items: center;
    gap: 12px;

    padding: 10px 17px;
    border: 1px solid var(--cyan-border);
    border-radius: var(--radius-sm);

    background: rgba(34, 211, 238, 0.04);
    color: var(--cyan-bright);

    transition:
        background var(--transition),
        border-color var(--transition),
        transform var(--transition);
}

.nav-contact span {
    font-size: 16px;
    transition: transform var(--transition);
}

.nav .nav-contact:hover {
    border-color: var(--cyan);
    background: rgba(34, 211, 238, 0.1);
    transform: translateY(-2px);
}

.nav-contact:hover span {
    transform: translate(2px, -2px);
}

.menu-toggle {
    display: none;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 6px;

    width: 44px;
    height: 44px;

    border: 1px solid var(--border);
    border-radius: var(--radius-sm);

    background: var(--bg-tertiary);
    cursor: pointer;
}

.menu-toggle span {
    display: block;
    width: 18px;
    height: 2px;

    background: var(--text-primary);
    transition:
        transform var(--transition),
        opacity var(--transition);
}


/* =========================================
   4. HERO SECTION
   ========================================= */

.hero {
    display: grid;
    grid-template-columns: 1.08fr 0.92fr;
    align-items: center;
    gap: 35px;

    min-height: 700px;
    padding-top: 85px;
    padding-bottom: 115px;
}

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

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 12px;

    margin-bottom: 29px;

    color: var(--slate-300);
    font-family: var(--font-mono);
    font-size: 10px;
    letter-spacing: 1.6px;
}

.status-dot {
    position: relative;
    display: inline-block;

    width: 7px;
    height: 7px;
    border-radius: 50%;

    background: #4ade80;
    box-shadow: 0 0 12px rgba(74, 222, 128, 0.55);
}

.status-dot::after {
    position: absolute;
    inset: -4px;

    border: 1px solid rgba(74, 222, 128, 0.4);
    border-radius: 50%;

    content: "";
    animation: status-pulse 2s ease-out infinite;
}

.hero h1 {
    max-width: 700px;

    font-size: clamp(43px, 5.1vw, 69px);
    font-weight: 800;
    letter-spacing: -4px;
    line-height: 1.13;
}

.hero h1 .gradient-text {
    position: relative;
    display: inline-block;
}

.hero-lede {
    max-width: 490px;
    margin-top: 27px;

    color: var(--text-secondary);
    font-size: 15px;
    line-height: 2;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 13px;

    margin-top: 35px;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 15px;

    min-height: 49px;
    padding: 12px 19px;

    border: 1px solid transparent;
    border-radius: 9px;

    font-size: 12px;
    font-weight: 800;

    transition:
        transform var(--transition),
        background var(--transition),
        border-color var(--transition),
        box-shadow var(--transition);
}

.button span {
    font-size: 17px;
    transition: transform var(--transition);
}

.button:hover span {
    transform: translate(3px, -2px);
}

.button-primary {
    border-color: var(--cyan);
    background: var(--cyan);
    color: #06131a;
    box-shadow: 0 4px 24px rgba(34, 211, 238, 0.13);
}

.button-primary:hover {
    background: var(--cyan-bright);
    box-shadow: 0 8px 35px rgba(34, 211, 238, 0.22);
    transform: translateY(-3px);
}

.button-quiet {
    border-color: var(--border);
    background: rgba(255, 255, 255, 0.015);
    color: var(--text-primary);
}

.button-quiet:hover {
    border-color: var(--cyan-border);
    background: rgba(34, 211, 238, 0.05);
    transform: translateY(-3px);
}

.hero-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 20px;

    margin-top: 43px;

    color: var(--text-muted);
    font-size: 11px;
}

.hero-meta b {
    margin-right: 5px;

    color: var(--text-primary);
    font-family: var(--font-mono);
    font-size: 13px;
    font-weight: 500;
}

.meta-divider {
    width: 1px;
    height: 22px;
    background: var(--slate-700);
}


/* =========================================
   5. HERO COMPUTER ARTWORK
   ========================================= */

.hero-art {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;

    min-width: 0;
    min-height: 400px;
}

.hero-computer::before {
    position: absolute;
    z-index: -1;

    width: 80%;
    aspect-ratio: 1;

    border: 1px solid rgba(34, 211, 238, 0.09);
    border-radius: 50%;

    background: radial-gradient(
        circle,
        rgba(34, 211, 238, 0.075) 0%,
        rgba(34, 211, 238, 0.025) 40%,
        transparent 70%
    );

    content: "";
    animation: orbit-glow 8s ease-in-out infinite alternate;
}

.hero-computer::after {
    position: absolute;
    z-index: -1;

    width: 60%;
    height: 60%;

    border-radius: 50%;
    background: rgba(8, 145, 178, 0.12);
    filter: blur(70px);

    content: "";
}

.hero-computer img {
    width: 100%;
    max-width: 540px;
    max-height: 500px;
    object-fit: contain;

    filter: drop-shadow(0 25px 45px rgba(0, 0, 0, 0.35));

    animation: computer-float 6s ease-in-out infinite;
}

.scroll-cue {
    position: absolute;
    bottom: 35px;
    left: 0;

    display: flex;
    align-items: center;
    gap: 13px;

    color: var(--text-muted);
    font-family: var(--font-mono);
    font-size: 9px;
    letter-spacing: 1.8px;

    transition: color var(--transition);
}

.scroll-cue:hover {
    color: var(--cyan);
}

.scroll-line {
    display: inline-block;
    width: 37px;
    height: 1px;
    background: var(--cyan-dark);
}


/* =========================================
   6. SECTION HEADINGS
   ========================================= */

.section-kicker {
    display: flex;
    align-items: center;
    gap: 12px;

    color: var(--cyan);
    font-family: var(--font-mono);
    font-size: 10px;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.section-kicker::before {
    display: inline-block;
    width: 24px;
    height: 1px;
    background: var(--cyan);

    content: "";
}

.section-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 30px;

    margin-bottom: 47px;
}

.section-heading h2,
.about-content h2 {
    margin-top: 15px;

    font-size: clamp(30px, 4vw, 43px);
    font-weight: 800;
    letter-spacing: -2px;
    line-height: 1.3;
}

.heading-note {
    display: inline-flex;
    align-items: center;
    gap: 12px;

    padding-bottom: 8px;

    color: var(--text-muted);
    font-size: 11px;
}

.heading-note span {
    color: var(--cyan);
    font-size: 17px;
}


/* =========================================
   7. ABOUT SECTION
   ========================================= */

.about {
    padding-bottom: 30px;
    border-top: 1px solid var(--border);
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 0.82fr;
    align-items: start;
    gap: 90px;

    margin-top: 32px;
}

.about-content h2 {
    margin-top: 0;
    font-size: clamp(32px, 4vw, 46px);
    line-height: 1.35;
}

.about-text {
    padding-top: 4px;
}

.about-text p {
    margin-bottom: 18px;

    color: var(--text-secondary);
    font-size: 13px;
    line-height: 2.05;
}

.text-link {
    display: inline-flex;
    align-items: center;
    gap: 12px;

    margin-top: 7px;
    padding-bottom: 5px;

    border-bottom: 1px solid var(--cyan-border);

    color: var(--cyan-bright);
    font-size: 12px;
    font-weight: 800;

    transition:
        gap var(--transition),
        border-color var(--transition);
}

.text-link span {
    font-size: 16px;
}

.text-link:hover {
    gap: 18px;
    border-color: var(--cyan);
}

.principles {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;

    margin-top: 75px;
}

.principles > div {
    position: relative;
    overflow: hidden;

    min-height: 175px;
    padding: 23px 20px;

    border: 1px solid var(--border);
    border-radius: var(--radius-md);

    background: linear-gradient(
        145deg,
        rgba(17, 26, 40, 0.8),
        rgba(12, 18, 29, 0.7)
    );

    transition:
        border-color var(--transition),
        background var(--transition),
        transform var(--transition);
}

.principles > div::after {
    position: absolute;
    top: 0;
    left: 0;

    width: 0;
    height: 2px;

    background: var(--cyan);

    content: "";
    transition: width var(--transition-slow);
}

.principles > div:hover {
    border-color: var(--border-hover);
    background: var(--bg-card-hover);
    transform: translateY(-5px);
}

.principles > div:hover::after {
    width: 100%;
}

.principle-number {
    color: var(--cyan);
    font-family: var(--font-mono);
    font-size: 10px;
}

.principles h3 {
    margin-top: 20px;

    font-size: 13px;
    font-weight: 800;
    letter-spacing: -0.3px;
}

.principles p {
    margin-top: 8px;

    color: var(--text-muted);
    font-size: 11px;
    line-height: 1.8;
}


/* =========================================
   8. PROJECT GRID
   ========================================= */

.projects {
    padding-bottom: 20px;
}

.project-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: stretch;
    gap: 25px;
}

.project-card {
    display: flex;
    flex-direction: column;
    min-width: 0;
    overflow: hidden;

    border: 1px solid var(--border);
    border-radius: var(--radius-lg);

    background: var(--bg-card);
    box-shadow: var(--shadow-card);

    transition:
        transform var(--transition-slow),
        border-color var(--transition),
        box-shadow var(--transition);
}

.project-card:hover {
    border-color: var(--border-hover);
    box-shadow:
        var(--shadow-card),
        var(--shadow-glow);

    transform: translateY(-6px);
}

.project-featured {
    grid-column: 1 / -1;
}

.project-visual {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;

    min-height: 225px;
    overflow: hidden;
    isolation: isolate;

    border-bottom: 1px solid var(--border);
}

.project-featured .project-visual {
    min-height: 270px;
}

.project-visual::after {
    position: absolute;
    inset: 0;
    z-index: -1;

    background: linear-gradient(
        180deg,
        transparent 45%,
        rgba(8, 12, 20, 0.7) 100%
    );

    content: "";
}

.visual-caption {
    position: absolute;
    bottom: 19px;
    left: 23px;

    color: rgba(226, 232, 240, 0.72);
    font-family: var(--font-mono);
    font-size: 9px;
    letter-spacing: 1.8px;
}

.visual-index {
    position: absolute;
    top: 17px;
    right: 20px;

    color: rgba(226, 232, 240, 0.55);
    font-family: var(--font-mono);
    font-size: 11px;
}


/* =========================================
   9. PROJECT VISUAL — REVOLUTION
   ========================================= */

.visual-revolution {
    background:
        radial-gradient(
            ellipse at 50% 48%,
            rgba(34, 211, 238, 0.14),
            transparent 37%
        ),
        radial-gradient(
            ellipse at 80% 20%,
            rgba(99, 102, 241, 0.12),
            transparent 45%
        ),
        linear-gradient(
            135deg,
            #101c2e 0%,
            #0b1321 50%,
            #111629 100%
        );
}

.visual-stars {
    position: absolute;
    inset: 0;

    background-image:
        radial-gradient(circle, rgba(103, 232, 249, 0.8) 1px, transparent 1.5px),
        radial-gradient(circle, rgba(148, 163, 184, 0.6) 1px, transparent 1.5px);

    background-position:
        10px 15px,
        50px 70px;

    background-size:
        73px 73px,
        109px 109px;

    opacity: 0.4;
}

.visual-sigil {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;

    width: 112px;
    height: 112px;

    border: 1px solid rgba(103, 232, 249, 0.45);
    border-radius: 28px;

    background: linear-gradient(
        145deg,
        rgba(34, 211, 238, 0.12),
        rgba(99, 102, 241, 0.1)
    );

    box-shadow:
        0 0 50px rgba(34, 211, 238, 0.09),
        inset 0 0 30px rgba(34, 211, 238, 0.05);

    color: #e0faff;
    font-size: 68px;
    font-weight: 800;
    letter-spacing: -8px;

    transform: rotate(-5deg);
    transition: transform var(--transition-slow);
}

.project-card:hover .visual-sigil {
    transform: rotate(0deg) scale(1.05);
}

.visual-sigil span {
    position: absolute;
    top: -15px;
    right: -13px;

    color: var(--cyan);
    font-size: 26px;
    letter-spacing: 0;
}


/* =========================================
   10. PROJECT VISUAL — TERAGARD
   ========================================= */

.visual-teragard {
    background:
        radial-gradient(
            ellipse at 70% 20%,
            rgba(103, 232, 249, 0.08),
            transparent 35%
        ),
        linear-gradient(
            180deg,
            #101a2c 0%,
            #182b3d 58%,
            #0b1621 100%
        );
}

.moon {
    position: absolute;
    top: 35px;
    right: 19%;

    width: 54px;
    height: 54px;

    border: 1px solid rgba(103, 232, 249, 0.3);
    border-radius: 50%;

    background: linear-gradient(
        145deg,
        #d7f7ff,
        #76d8e9 65%,
        #3c9eb7
    );

    box-shadow: 0 0 45px rgba(34, 211, 238, 0.15);
}

.terrain {
    position: absolute;
    right: -5%;
    bottom: -10px;
    left: -5%;

    height: 100px;

    background: #102a39;
    clip-path: polygon(
        0 100%,
        0 65%,
        12% 48%,
        25% 63%,
        38% 20%,
        52% 50%,
        68% 12%,
        82% 47%,
        100% 30%,
        100% 100%
    );
}

.terrain-back {
    bottom: 35px;
    background: #1b4052;
    opacity: 0.65;
    transform: scaleX(1.1);
}

.terrain-front {
    height: 90px;
    background: #0b1a27;
}


/* =========================================
   11. PROJECT VISUAL — TOOLING
   ========================================= */

.visual-tooling {
    background:
        radial-gradient(
            ellipse at 50% 50%,
            rgba(34, 211, 238, 0.08),
            transparent 55%
        ),
        linear-gradient(
            135deg,
            #111a29,
            #0b1320
        );
}

.code-window {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 10px;

    width: 210px;
    padding: 38px 20px 24px;

    border: 1px solid rgba(103, 232, 249, 0.2);
    border-radius: 10px;

    background: rgba(8, 12, 20, 0.8);
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.25);

    transform: perspective(600px) rotateY(-7deg) rotateX(3deg);
    transition: transform var(--transition-slow);
}

.project-card:hover .code-window {
    transform: perspective(600px) rotateY(0) rotateX(0) translateY(-3px);
}

.code-dots {
    position: absolute;
    top: 13px;
    left: 16px;

    display: flex;
    gap: 5px;
}

.code-dots i {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--slate-600);
}

.code-dots i:first-child {
    background: #fb7185;
}

.code-dots i:nth-child(2) {
    background: #fbbf24;
}

.code-dots i:nth-child(3) {
    background: #4ade80;
}

.code-line {
    display: block;
    height: 5px;
    border-radius: 5px;
    background: var(--slate-700);
}

.line-one {
    width: 55%;
    background: var(--cyan-dark);
}

.line-two {
    width: 80%;
    margin-left: 13px;
}

.line-three {
    width: 63%;
    margin-left: 13px;
    background: #6366f1;
}

.line-four {
    width: 72%;
}

.line-five {
    width: 43%;
    margin-left: 13px;
    background: #0e7490;
}


/* =========================================
   12. PROJECT INFORMATION
   ========================================= */

.project-info {
    display: flex;
    flex: 1;
    flex-direction: column;
    align-items: flex-start;

    padding: 26px;
}

.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;

    margin-bottom: 18px;
}

.project-tags span,
.experience-tags span {
    display: inline-flex;
    align-items: center;

    padding: 5px 8px;

    border: 1px solid rgba(148, 163, 184, 0.13);
    border-radius: 5px;

    background: rgba(148, 163, 184, 0.04);
    color: var(--slate-300);

    font-family: var(--font-mono);
    font-size: 9px;
    letter-spacing: 0.4px;
}

.project-info h3 {
    font-size: 23px;
    font-weight: 800;
    letter-spacing: -0.8px;
    line-height: 1.4;
}

.project-info > p {
    max-width: 600px;
    margin-top: 12px;

    color: var(--text-secondary);
    font-size: 12px;
    line-height: 2;
}

.contribution-heading {
    margin-top: 27px;
    margin-bottom: 14px;

    color: var(--slate-300);
    font-family: var(--font-mono);
    font-size: 10px;
    font-weight: 500;
    letter-spacing: 1.4px;
}

.project-contributions {
    display: grid;
    gap: 11px;

    width: 100%;
}

.project-contributions li {
    position: relative;
    padding-left: 20px;

    color: var(--text-secondary);
    font-size: 11px;
    line-height: 1.9;
}

.project-contributions li::before {
    position: absolute;
    top: 9px;
    left: 0;

    width: 6px;
    height: 6px;

    border: 1px solid var(--cyan);
    border-radius: 2px;

    background: rgba(34, 211, 238, 0.1);
    content: "";
    transform: rotate(45deg);
}

.project-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;

    width: 100%;
    margin-top: auto;
    padding-top: 28px;
}

.project-status {
    display: inline-flex;
    align-items: center;
    gap: 9px;

    color: var(--text-muted);
    font-size: 10px;
}

.project-status i {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #4ade80;
    box-shadow: 0 0 8px rgba(74, 222, 128, 0.25);
}

.project-button {
    display: inline-flex;
    align-items: center;
    gap: 10px;

    padding: 10px 13px;

    border: 1px solid var(--border);
    border-radius: 7px;

    background: rgba(255, 255, 255, 0.02);
    color: var(--text-primary);

    font-size: 11px;
    font-weight: 800;

    transition:
        border-color var(--transition),
        color var(--transition),
        background var(--transition);
}

.project-button span {
    color: var(--cyan);
    font-size: 15px;
    transition: transform var(--transition);
}

.project-button:hover {
    border-color: var(--cyan-border);
    background: var(--cyan-glow);
    color: var(--cyan-bright);
}

.project-button:hover span {
    transform: translate(2px, -2px);
}

.projects-note {
    margin-top: 30px;

    color: var(--text-muted);
    font-size: 11px;
    text-align: center;
}


/* =========================================
   13. EXPERIENCE SECTION
   ========================================= */

.experience {
    padding-bottom: 10px;
}

.experience-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
}

.experience-card {
    position: relative;
    overflow: hidden;

    padding: 30px;

    border: 1px solid var(--border);
    border-radius: var(--radius-lg);

    background: linear-gradient(
        145deg,
        rgba(17, 26, 40, 0.86),
        rgba(10, 16, 26, 0.92)
    );

    transition:
        border-color var(--transition),
        transform var(--transition-slow),
        box-shadow var(--transition);
}

.experience-card::before {
    position: absolute;
    top: 0;
    left: 0;

    width: 45px;
    height: 2px;

    background: var(--cyan);
    opacity: 0.75;

    content: "";
    transition: width var(--transition-slow);
}

.experience-card:hover {
    border-color: var(--border-hover);
    box-shadow: var(--shadow-glow);
    transform: translateY(-5px);
}

.experience-card:hover::before {
    width: 100%;
}

.experience-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;

    margin-bottom: 25px;
}

.experience-icon {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 49px;
    height: 49px;

    border: 1px solid var(--cyan-border);
    border-radius: 12px;

    background: rgba(34, 211, 238, 0.06);
    color: var(--cyan-bright);

    font-family: var(--font-mono);
    font-size: 17px;
    font-weight: 500;

    transition:
        background var(--transition),
        transform var(--transition);
}

.experience-card:hover .experience-icon {
    background: rgba(34, 211, 238, 0.12);
    transform: scale(1.04);
}

.experience-period {
    color: var(--text-muted);
    font-family: var(--font-mono);
    font-size: 10px;
    letter-spacing: 0.5px;
}

.experience-card h3 {
    font-size: 20px;
    font-weight: 800;
    letter-spacing: -0.6px;
    line-height: 1.5;
}

.experience-role {
    margin-top: 5px;

    color: var(--cyan);
    font-size: 12px;
    font-weight: 700;
}

.experience-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;

    margin-top: 20px;
}

.experience-divider {
    width: 100%;
    height: 1px;
    margin-block: 24px;

    background: var(--border);
}

.experience-description {
    color: var(--text-secondary);
    font-size: 12px;
    line-height: 2;
}


/* =========================================
   14. SKILLS SECTION
   ========================================= */

.skills-section {
    position: relative;
    margin-top: 140px;
    padding: 100px 0 115px;

    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);

    background:
        radial-gradient(
            ellipse at 50% 0%,
            rgba(34, 211, 238, 0.055),
            transparent 55%
        ),
        rgba(10, 16, 26, 0.5);
}

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

.skills-section .section-heading {
    display: block;
    max-width: 700px;
    margin-bottom: 45px;
}

.skills-section .section-heading h2 {
    margin-top: 0;
    font-size: clamp(32px, 4vw, 43px);
    letter-spacing: -2px;
}

.section-description {
    max-width: 610px;
    margin-top: 17px;

    color: var(--text-secondary);
    font-size: 13px;
    line-height: 2;
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.skill-card {
    position: relative;
    overflow: hidden;

    min-width: 0;
    min-height: 210px;
    padding: 25px;

    border: 1px solid var(--border);
    border-radius: var(--radius-md);

    background: rgba(17, 26, 40, 0.65);

    transition:
        border-color var(--transition),
        background var(--transition),
        transform var(--transition-slow);
}

.skill-card::before {
    position: absolute;
    top: 0;
    left: 0;

    width: 35px;
    height: 1px;

    background: var(--cyan);
    opacity: 0.7;

    content: "";
    transition: width var(--transition-slow);
}

.skill-card:hover {
    border-color: var(--border-hover);
    background: rgba(17, 30, 45, 0.9);
    transform: translateY(-4px);
}

.skill-card:hover::before {
    width: 100%;
}

.skill-card-header {
    display: flex;
    align-items: center;
    gap: 13px;

    margin-bottom: 23px;
}

.skill-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    flex-shrink: 0;
    width: 39px;
    height: 39px;

    border: 1px solid var(--cyan-border);
    border-radius: 10px;

    background: rgba(34, 211, 238, 0.055);
    color: var(--cyan-bright);

    font-family: var(--font-mono);
    font-size: 13px;
}

.skill-card-header h3 {
    font-size: 14px;
    font-weight: 800;
    letter-spacing: -0.3px;
}

.skill-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.skill-tags span {
    display: inline-flex;
    align-items: center;

    padding: 6px 10px;

    border: 1px solid rgba(148, 163, 184, 0.12);
    border-radius: 6px;

    background: rgba(148, 163, 184, 0.045);
    color: var(--slate-300);

    font-size: 10px;
    font-weight: 600;
    line-height: 1.6;

    transition:
        color var(--transition),
        background var(--transition),
        border-color var(--transition);
}

.skill-tags span:hover {
    border-color: var(--cyan-border);
    background: rgba(34, 211, 238, 0.07);
    color: var(--cyan-bright);
}


/* =========================================
   15. FOOTER
   ========================================= */

.site-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 25px;

    min-height: 120px;
    padding-block: 30px;

    color: var(--text-muted);
    font-size: 10px;
}

.footer-mark .mark {
    font-size: 24px;
}

.site-footer > span:nth-of-type(1) {
    color: var(--slate-400);
}

.site-footer > span:nth-of-type(2) {
    font-family: var(--font-mono);
    font-size: 10px;
}

.back-top {
    display: inline-flex;
    align-items: center;
    gap: 8px;

    color: var(--slate-300);
    font-family: var(--font-mono);
    font-size: 9px;
    letter-spacing: 1px;

    transition: color var(--transition);
}

.back-top:hover {
    color: var(--cyan-bright);
}


/* =========================================
   16. ANIMATIONS
   ========================================= */

@keyframes status-pulse {
    0% {
        transform: scale(0.8);
        opacity: 0.9;
    }

    100% {
        transform: scale(1.8);
        opacity: 0;
    }
}

@keyframes computer-float {
    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

@keyframes orbit-glow {
    0% {
        transform: scale(0.96);
        opacity: 0.65;
    }

    100% {
        transform: scale(1.04);
        opacity: 1;
    }
}


/* =========================================
   17. RESPONSIVE — LARGE TABLETS
   ========================================= */

@media (max-width: 1100px) {
    :root {
        --container-width: 960px;
    }

    .section-wrap,
    .section-container {
        width: calc(100% - 64px);
    }

    .site-header {
        padding-inline: 32px;
    }

    .hero {
        grid-template-columns: 1fr 0.85fr;
        gap: 20px;
        min-height: 650px;
    }

    .hero h1 {
        font-size: clamp(42px, 5vw, 57px);
        letter-spacing: -3px;
    }

    .hero-art {
        min-height: 330px;
    }

    .about-content {
        gap: 55px;
    }

    .principles {
        gap: 12px;
    }

    .principles > div {
        padding: 20px 16px;
    }

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

    .project-info {
        padding: 23px;
    }
}


/* =========================================
   18. RESPONSIVE — TABLETS & MOBILE NAV
   ========================================= */

@media (max-width: 760px) {
    :root {
        --header-height: 72px;
    }

    .section-wrap,
    .section-container {
        width: calc(100% - 40px);
    }

    .section-block {
        padding-top: 95px;
    }

    .site-header {
        padding-inline: 20px;
    }

    .wordmark-label {
        font-size: 9px;
        letter-spacing: 1.3px;
    }

    .menu-toggle {
        display: flex;
    }

    .nav {
        position: absolute;
        top: calc(100% + 1px);
        right: 0;
        left: 0;

        display: flex;
        align-items: stretch;
        flex-direction: column;
        gap: 0;

        padding: 10px 20px 20px;

        border-bottom: 1px solid var(--border);

        background: rgba(8, 12, 20, 0.97);

        backdrop-filter: blur(24px);
        -webkit-backdrop-filter: blur(24px);

        opacity: 0;
        visibility: hidden;
        pointer-events: none;

        transform: translateY(-8px);

        transition:
            opacity var(--transition),
            visibility var(--transition),
            transform var(--transition);
    }

    .nav.active {
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
        transform: translateY(0);
    }

    .nav > a {
        padding: 14px 8px;
        border-bottom: 1px solid rgba(148, 163, 184, 0.08);
    }

    .nav > a:not(.nav-contact)::after {
        display: none;
    }

    .nav .nav-contact {
        justify-content: center;
        margin-top: 13px;
        padding: 12px;
    }

    .menu-toggle[aria-expanded="true"] span:first-child {
        transform: translateY(4px) rotate(45deg);
    }

    .menu-toggle[aria-expanded="true"] span:last-child {
        transform: translateY(-4px) rotate(-45deg);
    }

    .hero {
        grid-template-columns: 1fr;
        gap: 20px;

        min-height: auto;
        padding-top: 80px;
        padding-bottom: 105px;
    }

    .hero-copy {
        max-width: 620px;
        margin-inline: auto;
        text-align: center;
    }

    .hero h1 {
        margin-inline: auto;
        font-size: clamp(42px, 8vw, 62px);
        letter-spacing: -2.8px;
    }

    .hero .eyebrow {
        justify-content: center;
    }

    .hero-lede {
        max-width: 540px;
        margin-inline: auto;
        font-size: 14px;
    }

    .hero-actions,
    .hero-meta {
        justify-content: center;
    }

    .hero-art {
        min-height: 0;
        margin-top: 10px;
    }

    .hero-computer img {
        width: 85%;
        max-height: 380px;
    }

    .hero-computer::before {
        width: 70%;
    }

    .scroll-cue {
        left: 50%;
        bottom: 35px;
        white-space: nowrap;
        transform: translateX(-50%);
    }

    .section-heading {
        align-items: center;
        flex-direction: column;
        gap: 10px;
        margin-bottom: 32px;
        text-align: center;
    }

    .section-heading h2,
    .about-content h2 {
        font-size: clamp(30px, 6vw, 39px);
    }

    .heading-note {
        padding-bottom: 0;
    }

    .about-content {
        grid-template-columns: 1fr;
        gap: 30px;
        text-align: center;
    }

    .about-text {
        max-width: 600px;
        margin-inline: auto;
    }

    .section-kicker {
        justify-content: center;
    }

    .principles {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 12px;
        margin-top: 45px;
    }

    .principles > div {
        min-height: 180px;
        padding: 17px 13px;
        text-align: center;
    }

    .principles h3 {
        font-size: 12px;
    }

    .principles p {
        font-size: 10px;
    }

    .project-grid {
        grid-template-columns: 1fr;
        gap: 22px;
    }

    .project-featured {
        grid-column: auto;
    }

    .project-featured .project-visual,
    .project-visual {
        min-height: 220px;
    }

    .project-info {
        padding: 24px;
        text-align: center;
    }

    .project-tags,
    .project-footer {
        justify-content: center;
    }

    .project-contributions {
        text-align: left;
    }

    .project-info h3 {
        font-size: 21px;
    }

    .experience-grid {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .experience-card {
        padding: 25px;
        text-align: center;
    }

    .experience-top,
    .experience-tags {
        justify-content: center;
    }

    .skills-section {
        margin-top: 95px;
        padding-block: 80px;
    }

    .skills-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 14px;
    }

    .skill-card {
        padding: 21px 18px;
        text-align: center;
    }

    .skill-card-header {
        align-items: center;
        flex-direction: column;
        justify-content: center;
        gap: 12px;
    }

    .skill-tags {
        justify-content: center;
    }

    .section-description {
        margin-inline: auto;
        text-align: center;
    }

    .site-footer {
        flex-wrap: wrap;
        justify-content: center;
        gap: 20px;
        padding-block: 28px;
        text-align: center;
    }

    .site-footer > span:nth-of-type(1) {
        flex: 0 1 auto;
    }

    .site-footer > span:nth-of-type(2) {
        order: 3;
        width: 100%;
    }
}


/* =========================================
   19. RESPONSIVE — SMALL MOBILE
   ========================================= */

@media (max-width: 480px) {
    .section-wrap,
    .section-container {
        width: calc(100% - 36px);
    }

    .section-block {
        padding-top: 80px;
    }

    .site-header {
        padding-inline: 18px;
    }

    .wordmark {
        gap: 11px;
    }

    .mark {
        font-size: 25px;
    }

    .wordmark-label {
        padding-left: 11px;
        font-size: 8px;
        letter-spacing: 1px;
    }

    .hero {
        padding-top: 65px;
        padding-bottom: 100px;
    }

    .eyebrow {
        gap: 9px;
        margin-bottom: 23px;
        font-size: 9px;
        letter-spacing: 1px;
    }

    .hero h1 {
        font-size: clamp(34px, 10vw, 44px);
        letter-spacing: -2.4px;
        line-height: 1.18;
    }

    .hero-lede {
        margin-top: 21px;
        font-size: 13px;
        line-height: 1.95;
    }

    .hero-actions {
        align-items: stretch;
        flex-direction: column;
        gap: 11px;
        margin-top: 27px;
    }

    .button {
        width: 100%;
        min-height: 48px;
    }

    .hero-meta {
        gap: 13px;
        margin-top: 30px;
        font-size: 10px;
    }

    .hero-meta b {
        font-size: 12px;
    }

    .hero-art {
        margin-top: 15px;
    }

    .hero-computer img {
        width: 100%;
        max-height: 300px;
    }

    .scroll-cue {
        font-size: 8px;
        letter-spacing: 1.4px;
    }

    .section-kicker {
        font-size: 9px;
        letter-spacing: 1.4px;
    }

    .heading-note {
        justify-content: center;
        text-align: center;
    }

    .section-heading h2,
    .about-content h2,
    .skills-section .section-heading h2 {
        font-size: 31px;
        letter-spacing: -1.5px;
    }

    .about-content {
        margin-top: 27px;
    }

    .about-text p {
        font-size: 12px;
    }

    .principles {
        grid-template-columns: 1fr;
        gap: 12px;
        margin-top: 35px;
    }

    .principles > div {
        min-height: auto;
        padding: 20px;
    }

    .principles h3 {
        margin-top: 12px;
        font-size: 13px;
    }

    .principles p {
        font-size: 11px;
    }

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

    .project-info {
        padding: 21px 18px;
    }

    .project-tags {
        gap: 6px;
    }

    .project-tags span,
    .experience-tags span {
        padding: 5px 7px;
        font-size: 8px;
    }

    .project-info h3 {
        font-size: 20px;
    }

    .project-info > p {
        font-size: 11px;
    }

    .project-contributions li {
        font-size: 11px;
    }

    .project-footer {
        align-items: flex-start;
        flex-wrap: wrap;
        padding-top: 23px;
    }

    .experience-card {
        padding: 22px 19px;
    }

    .experience-card h3 {
        font-size: 18px;
    }

    .experience-description {
        font-size: 11px;
    }

    .skills-section {
        margin-top: 80px;
        padding-block: 70px;
    }

    .skills-section .section-heading {
        margin-bottom: 30px;
    }

    .section-description {
        font-size: 12px;
    }

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

    .skill-card {
        min-height: auto;
        padding: 22px;
    }

    .skill-card-header {
        align-items: center;
        flex-direction: row;
        gap: 13px;
        margin-bottom: 19px;
    }

    .skill-card-header h3 {
        font-size: 14px;
    }

    .skill-tags span {
        font-size: 10px;
    }

    .site-footer {
        gap: 17px;
    }

    .site-footer > span:nth-of-type(1) {
        font-size: 9px;
    }

    .back-top {
        font-size: 8px;
    }
}


/* =========================================
   20. ACCESSIBILITY & MOTION PREFERENCES
   ========================================= */

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


/* =========================================
   21. EXTRA LAYOUT SAFEGUARDS
   ========================================= */

.project-card,
.experience-card,
.skill-card,
.principles > div {
    overflow-wrap: anywhere;
}

.project-visual,
.hero-art {
    isolation: isolate;
}

@media (min-width: 1400px) {
    .hero {
        min-height: 760px;
    }

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

    .hero-computer img {
        max-width: 570px;
    }
}

/* =========================================
   UPDATES: PROJECT GRID & SECTION HEADINGS
   ========================================= */

/* 1. Display all three project cards in one row on desktop */

@media (min-width: 1000px) {
    .project-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        align-items: stretch;
        gap: 22px;
    }

    .project-featured {
        grid-column: auto;
    }

    .project-visual,
    .project-featured .project-visual {
        min-height: 210px;
    }

    .project-info {
        padding: 23px 20px;
    }

    .project-info h3 {
        font-size: 20px;
    }

    .project-tags {
        gap: 6px;
    }

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

    .project-contributions li {
        font-size: 11px;
    }
}


/* 2. Use white and cyan for ALL section headings */

/* Main section headings */
.section-heading h2,
.about-content h2,
.skills-section .section-heading h2 {
    color: #f1f5f9;
}

/* Highlighted parts of headings */
.section-heading h2 .muted,
.about-content h2 .muted {
    color: #22d3ee;
}

/* Skills heading accent */
.section-heading h2 .highlight,
.skills-section .section-heading h2 .highlight {
    color: #22d3ee;
    background: none;
    -webkit-text-fill-color: #22d3ee;
}

/* Consistent heading colors across the portfolio */
.project-info h3,
.experience-card h3,
.principles h3,
.skill-card-header h3 {
    color: #f1f5f9;
}

/* Cyan accent for numbered section labels */
.section-kicker {
    color: #22d3ee;
}

/* About section heading */
.about-content h2 {
    color: #f1f5f9;
}

/* Hero heading keeps its existing cyan gradient */
.hero h1 {
    color: #f1f5f9;
}

.hero h1 .gradient-text {
    background: linear-gradient(
        115deg,
        #67e8f9 0%,
        #22d3ee 55%,
        #0891b2 100%
    );
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* 3. Tablet layout: two project cards per row */

@media (min-width: 600px) and (max-width: 999px) {
    .project-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .project-featured {
        grid-column: 1 / -1;
    }
}

/* 4. Mobile layout: one project card per row */

@media (max-width: 599px) {
    .project-grid {
        grid-template-columns: 1fr;
    }

    .project-featured {
        grid-column: auto;
    }
}