:root {
    --bg: #030303;
    --text: #e8e8e8;
    --muted: #5e5e5e;
    --accent: #b23eff;
    /* Electric Violet */
    --accent-alt: #00e5ff;
    /* Cyan */
    --font-heading: 'Space Grotesk', sans-serif;
    --font-body: 'Inter', sans-serif;
}



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

body {
    background-color: var(--bg);
    color: var(--text);
    font-family: var(--font-body);
    overflow-x: hidden;
    cursor: none;
    /* We use a custom DOM cursor */
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
}

/* Custom Cursor */
.cursor {
    position: fixed;
    top: 0;
    left: 0;
    width: 8px;
    height: 8px;
    background: var(--text);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
    z-index: 20000;
    mix-blend-mode: difference;
    transition: width 0.1s, height 0.1s;
}

.cursor-follower {
    position: fixed;
    top: 0;
    left: 0;
    width: 40px;
    height: 40px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
    z-index: 19999;
    transition: width 0.3s, height 0.3s, background 0.3s, border-color 0.3s;
}

.cursor-follower.hovering {
    width: 90px;
    height: 90px;
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.8);
}

.cursor-trail {
    position: fixed;
    top: 0;
    left: 0;
    width: 4px;
    height: 4px;
    background: var(--accent);
    border-radius: 50%;
    pointer-events: none;
    z-index: 19998;
    opacity: 0.5;
}


/* Top Navigation Bar */
.top-nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 4rem;
    z-index: 100;
}

.top-nav::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: -1;
    background: linear-gradient(to bottom, rgba(3, 3, 3, 0.6) 0%, rgba(3, 3, 3, 0) 100%);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    -webkit-mask-image: linear-gradient(to bottom, black 20%, transparent 100%);
    mask-image: linear-gradient(to bottom, black 20%, transparent 100%);
}

.logo {
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease;
}

.logo img {
    height: 45px;
    /* Premium sizing for nav bar */
    width: auto;
    object-fit: contain;
    border-radius: 50%;
    /* Just in case it's a solid square, though user said transparent */
}

.logo:hover img {
    transform: scale(1.05);
    /* organic interaction */
}

.nav-links {
    display: flex;
    flex-direction: row;
    gap: 3rem;
}

.nav-links a {
    color: var(--text);
    text-decoration: none;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 3px;
    opacity: 0.5;
    transition: opacity 0.3s;
    white-space: nowrap;
}

.nav-links a:hover {
    opacity: 1;
}

.contact-btn a {
    color: var(--text);
    text-decoration: none;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 3px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 0.75rem 1.5rem;
    border-radius: 40px;
    transition: all 0.3s;
    opacity: 0.8;
}

.contact-btn a:hover {
    background: var(--text);
    color: var(--bg);
    opacity: 1;
}

/* Global Layout & Main Container */
main {
    width: 100%;
    /* NO horizontal padding here — sections handle their own */
}

/* Inner content wrapper used inside each section */
.section-inner {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 clamp(1.5rem, 6vw, 6rem);
}

section {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 15vh 0;
    position: relative;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    overflow: hidden;
}

section:last-child {
    border-bottom: none;
}

/* =============================================
   SCROLL REVEAL — 3D / ARTISTIC ANIMATIONS
   ============================================= */

/* Base hidden state — perspective tilt + fade */
.reveal {
    opacity: 0;
    transform: perspective(900px) rotateX(12deg) translateY(60px);
    transform-origin: center bottom;
    transition:
        opacity 0.9s cubic-bezier(0.215, 0.61, 0.355, 1),
        transform 0.9s cubic-bezier(0.215, 0.61, 0.355, 1);
    will-change: opacity, transform;
}

/* Slide from left with subtle rotate */
.reveal-left {
    opacity: 0;
    transform: perspective(900px) rotateY(-15deg) translateX(-60px);
    transform-origin: right center;
    transition:
        opacity 1s cubic-bezier(0.215, 0.61, 0.355, 1),
        transform 1s cubic-bezier(0.215, 0.61, 0.355, 1);
    will-change: opacity, transform;
}

/* Slide from right with subtle rotate */
.reveal-right {
    opacity: 0;
    transform: perspective(900px) rotateY(15deg) translateX(60px);
    transform-origin: left center;
    transition:
        opacity 1s cubic-bezier(0.215, 0.61, 0.355, 1),
        transform 1s cubic-bezier(0.215, 0.61, 0.355, 1);
    will-change: opacity, transform;
}

/* Stagger delay helpers */
.reveal-delay-1 {
    transition-delay: 0.1s;
}

.reveal-delay-2 {
    transition-delay: 0.22s;
}

.reveal-delay-3 {
    transition-delay: 0.34s;
}

.reveal-delay-4 {
    transition-delay: 0.46s;
}

/* Active / visible state */
.reveal.in-view,
.reveal-left.in-view,
.reveal-right.in-view {
    opacity: 1;
    transform: perspective(900px) rotateX(0deg) rotateY(0deg) translate(0, 0);
}

h1,
h2,
h3,
.project-title,
.huge-contact,
.year {
    font-family: var(--font-heading);
}

.section-label {
    font-size: 0.9rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 4px;
    opacity: 0.4;
    margin-bottom: 2rem;
    font-family: var(--font-body);
}

/* --- Hero Space --- */
.hero {
    position: relative;
    overflow: hidden;
    height: 100svh;
    min-height: 550px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 10vh 0 4vh; /* Global baseline padding */
    background:
        linear-gradient(to bottom,
            rgba(3, 3, 3, 0.2) 0%,
            rgba(3, 3, 3, 0.6) 40%,
            rgba(3, 3, 3, 1) 100%),
        linear-gradient(to right,
            rgba(3, 3, 3, 0.4) 0%,
            rgba(3, 3, 3, 0) 50%),
        url('../images/0145.png') center center / cover no-repeat;
}

/* Ensure the CSS shapes blend into the photo with a screen-like blend */
.hero-3d-container {
    position: absolute;
    top: 0;
    right: 0;
    left: 0;
    bottom: 0;
    z-index: 1;
    perspective: 1200px;
    mix-blend-mode: normal; /* Restored to normal so shadows aren't transparent */
    pointer-events: none;
}

/* Progressive Fade-In specifically for the 3D Canvas only */
#scene canvas {
    opacity: 0;
    transition: opacity 1.5s cubic-bezier(0.4, 0, 0.2, 1);
}

#scene.scene-ready canvas {
    opacity: 1;
}

/* --- Premium Loading Ghost (The Pulsing Silhouette) --- */
@keyframes ghost-pulse {
    0% { opacity: 0.15; filter: blur(40px); transform: scale(0.95) translate(50%, -50%); }
    50% { opacity: 0.35; filter: blur(60px); transform: scale(1.05) translate(50%, -50%); }
    100% { opacity: 0.15; filter: blur(40px); transform: scale(0.95) translate(50%, -50%); }
}

.robot-loader-silhouette {
    position: absolute;
    top: 65%; /* Lowered to match the robot's grounded floor position */
    right: 18%; 
    width: 550px;
    height: 850px;
    /* Improved CSS Gradient Shape to match the large humanoid frame */
    background: 
        radial-gradient(ellipse at 50% 15%, rgba(255,255,255,0.6) 0%, transparent 45%), /* Head */
        radial-gradient(ellipse at 50% 45%, rgba(255,255,255,0.4) 0%, transparent 40%), /* Torso */
        radial-gradient(ellipse at 50% 75%, rgba(255,255,255,0.3) 0%, transparent 35%); /* Lower/Legs */
    border-radius: 40% 40% 20% 20%; 
    filter: blur(35px) drop-shadow(0 0 50px rgba(255,255,255,0.4));
    animation: ghost-pulse 2.5s infinite ease-in-out;
    pointer-events: none;
    z-index: 10;
    transition: opacity 1.5s ease-out;
}

/* --- Responsive Scale Alignment (Detailed Sync) --- */
@media (max-width: 1024px) {
    .robot-loader-silhouette {
        right: 28%; 
        width: 380px;
        height: 600px;
        top: 65%;
    }
}

@media (max-width: 768px) {
    .robot-loader-silhouette {
        right: 50%; 
        width: 240px;
        height: 480px;
        top: 60%;
    }
}

/* Hide the ghost once the real 3D model takes over */
.scene-ready .robot-loader-silhouette {
    opacity: 0 !important;
    pointer-events: none;
}

.shape {
    position: absolute;
    border-radius: 50%;
}

.shape-1 {
    width: 45vw;
    height: 45vw;
    top: 10%;
    right: -10%;
    border: 1px solid rgba(0, 229, 255, 0.2);
    box-shadow: 0 0 100px rgba(0, 229, 255, 0.05);
    animation: rotate3d 30s linear infinite;
    transform-style: preserve-3d;
}

.shape-1::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 1px dashed rgba(178, 62, 255, 0.4);
    transform: rotateX(70deg) rotateY(45deg);
}

.shape-2 {
    width: 30vw;
    height: 30vw;
    top: 40%;
    left: 30%;
    background: radial-gradient(circle, rgba(178, 62, 255, 0.1) 0%, transparent 70%);
    filter: blur(40px);
    animation: floatShape 12s ease-in-out infinite alternate;
}

@keyframes rotate3d {
    to {
        transform: rotateY(360deg) rotateZ(360deg);
    }
}

@keyframes floatShape {
    to {
        transform: translateY(-50px) scale(1.1);
    }
}

.hero-content {
    position: relative;
    z-index: 10;
    display: flex;
    flex-direction: column;
    justify-content: center;
    /* Centers name/identity in the space above work indicator */
    flex: 1;
    gap: 4vh;
    /* Tighter gap */
}

/* New Identity Grid inside Hero */
.hero-identity-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    align-items: flex-start;
}

.identity-main {
    max-width: 800px;
}

.identity-main .statement {
    margin-top: 0.5rem;
    margin-bottom: 1rem;
}

.identity-desc {
    font-size: 1.1rem;
    color: var(--muted);
    line-height: 1.8;
    font-weight: 300;
}

.identity-tags {
    display: flex;
    justify-content: flex-start;
}

.massive-text {
    font-size: clamp(3rem, 9vw, 11rem);
    /* Reduced from 15rem max */
    line-height: 0.8;
    letter-spacing: -3px;
    text-transform: uppercase;
    position: relative;
    z-index: 2;
    font-weight: 700;
    white-space: nowrap;
}

.massive-text.name-text {
    font-size: clamp(2.2rem, 6.5vw, 8rem);
    /* Reduced proportionally */
}

.massive-text.outline {
    color: transparent;
    -webkit-text-stroke: 1px var(--text);
    position: relative;
    left: 4vw;
    opacity: 0.8;
}

.hero-sub {
    margin-top: 4rem;
    font-size: 1.25rem;
    font-weight: 300;
    color: var(--muted);
    max-width: 450px;
    margin-left: 0;
    line-height: 1.6;
}

/* --- Skills & Tags --- */
.skills-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: flex-start;
}

.skills-tags span {
    padding: 0.8rem 1.8rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 40px;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--text);
    /* Make text more readable */
    opacity: 0.7;
    background: rgba(255, 255, 255, 0.05);
    /* Suble transparent background */
    backdrop-filter: blur(10px);
    /* Makes it stand out against background noise */
    -webkit-backdrop-filter: blur(10px);
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.skills-tags span:hover {
    opacity: 1;
    color: var(--text);
    border-color: var(--accent);
    background: rgba(178, 62, 255, 0.1);
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
}



.statement {
    font-size: clamp(1.4rem, 2.5vw, 2.4rem);
    /* Significantly reduced */
    line-height: 1.15;
    font-weight: 400;
    max-width: 800px;
    letter-spacing: -1px;
}

.identity-desc {
    font-size: 0.95rem;
    /* Tighter desc */
    color: var(--muted);
    line-height: 1.6;
    margin-top: 1rem;
    max-width: 600px;
}

.statement .highlight {
    font-style: italic;
    color: var(--accent);
}

.skills-tags span:hover {
    color: var(--text);
    border-color: var(--accent);
    background: rgba(178, 62, 255, 0.05);
    transform: translateY(-5px);
}

/* Scroll Indicator */
.scroll-work-indicator {
    position: relative;
    /* Sit in flex flow */
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    text-decoration: none;
    color: var(--text);
    z-index: 100;
    /* Immersive 3D Setup */
    transform-style: preserve-3d;
    transform-origin: center top;
}

.scroll-preview-grid {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
    justify-content: center;
}

.preview-item {
    width: 60px;
    height: 60px;
    border-radius: 8px;
    background-size: cover;
    background-position: center;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: transform 0.4s ease, border-color 0.4s ease;
    animation: heroPreviewReveal 1s cubic-bezier(0.215, 0.61, 0.355, 1) forwards;
    opacity: 0;
}

@keyframes heroPreviewReveal {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

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

.preview-item:hover {
    transform: scale(1.1) translateY(-5px);
    border-color: var(--accent);
}

.scroll-indicator-main {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.scroll-text {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 4px;
    font-weight: 500;
    opacity: 0.6;
}

.scroll-arrow {
    font-size: 1.2rem;
    animation: bounceDown 2s infinite;
}

@keyframes bounceDown {

    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translateY(0);
    }

    40% {
        transform: translateY(-8px);
    }

    60% {
        transform: translateY(-4px);
    }
}

/* --- Back to Top --- */
.back-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: var(--text);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: none;
    /* Keep the custom cursor feel */
    z-index: 1000;
    opacity: 0;
    transform: translateY(20px) scale(0.8);
    transition: all 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
    pointer-events: none;
}

.back-to-top svg {
    width: 20px;
    height: 20px;
    transition: transform 0.4s ease;
}

.back-to-top.visible {
    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: auto;
}

.back-to-top:hover {
    background: var(--text);
    color: var(--bg);
    transform: translateY(-5px);
}

.back-to-top:hover svg {
    transform: translateY(-2px);
}

@media (max-width: 768px) {
    .back-to-top {
        bottom: 1.5rem;
        right: 1.5rem;
        width: 45px;
        height: 45px;
    }
}

/* --- Smart Vertical Responsiveness --- */
@media (max-width: 768px) {
    .clients {
        padding: 5vh 0;
    }
}

/* --- Collaborations Marquee --- */
.clients-marquee {
    width: 100%;
    overflow: hidden;
    position: relative;
    padding: 3rem 0;
    mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
    -webkit-mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
}

.marquee-content {
    display: flex;
    white-space: nowrap;
    width: fit-content;
    animation: marquee-scroll 40s linear infinite;
}

.client-logo {
    font-family: var(--font-heading);
    font-size: clamp(1rem, 2.5vw, 2rem);
    font-weight: 700;
    color: var(--text);
    opacity: 0.15;
    padding: 0 2.5rem;
    letter-spacing: 4px;
    transition: all 0.4s ease;
    cursor: default;
}

.client-logo:hover {
    opacity: 0.6;
    color: var(--accent);
}

@keyframes marquee-scroll {
    from {
        transform: translateX(0);
    }

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

@media (max-width: 768px) {
    .client-logo {
        font-size: 0.8rem;
        padding: 0 1.25rem;
        letter-spacing: 2px;
    }

    .marquee-content {
        animation-duration: 25s;
    }
}

@media (max-height: 850px) {
    .hero {
        padding: 8vh 0 2vh;
        /* Back to 8vh to clear the top nav safely */
    }

    .hero-content {
        gap: 1.5vh;
    }

    .hero-header {
        margin-bottom: -1vh;
    }

    .massive-text {
        font-size: clamp(1.5rem, 5vw, 3.8rem);
        /* Aggressively scale down to avoid clipping */
        letter-spacing: -1px;
    }

    .massive-text.outline {
        font-size: clamp(1.3rem, 4vw, 3rem);
    }

    .hero-identity-grid {
        gap: 0.8rem;
    }

    /* Add this inside the (max-height: 850px) query! */
    .section-label {
        margin-bottom: 0.8rem;
        /* This will reduce that large gap under "Identity" */
    }

    .statement {
        font-size: 1.2rem;
        /* Tighter leading identity text */
        max-width: 600px;
    }

    .identity-desc {
        font-size: 0.8rem;
        /* Smaller desc text */
        line-height: 1.5;
    }

    .skills-tags span {
        padding: 0.6rem 1.2rem;
        /* Slimmer tags */
        font-size: 0.65rem;
    }

    .preview-item {
        width: 44px;
        height: 44px;
    }

    .scroll-preview-grid {
        margin-top: 0.5rem;
    }
}

@media (max-width: 1024px) {
    .hero-main-row {
        flex-direction: column;
        padding-top: 12vh;
        gap: 2rem;
    }

    .hero-3d-container {
        min-width: 100%;
        height: 40vh;
        order: -1; /* Puts robot at the top on iPad/Mobile if desired, or keep as is */
    }

    .hero {
        min-height: auto;
        padding: 0; 
    }

    .hero-content {
        justify-content: flex-start;
        gap: 3vh;
        width: 100%;
    }

    .hero-identity-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .identity-tags {
        justify-content: flex-start;
    }

    .identity-tags .skills-tags {
        justify-content: flex-start;
    }
}

/* Specific adjustment for very tall screens (like iPad Pro Portrait) */
@media (min-height: 1025px) {
    .hero {
        justify-content: flex-start !important;
        padding-bottom: 4vh !important;
    }

    .hero-content {
        justify-content: flex-start !important;
        flex: 0 0 auto !important;
        padding-top: 40px !important;
        gap: 2vh !important;
    }

    .scroll-work-indicator {
        margin-top: auto !important;
    }
}

/* --- Projects Grid & Bento Layout --- */
.projects-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 6rem;
    /* Increased from 4rem */
    gap: 2rem;
    flex-wrap: wrap;
}

.project-filters {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex: 1;
    /* Help center them */
}

/* Ensure the label doesn't move too far */
.section-label {
    min-width: 250px;
}

.filter-btn {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--muted);
    padding: 0.6rem 1.5rem;
    border-radius: 30px;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    cursor: none;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.filter-btn:hover {
    color: var(--text);
    border-color: rgba(255, 255, 255, 0.3);
}

.filter-btn.active {
    background: var(--text);
    color: var(--bg);
    border-color: var(--text);
}

.project-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-auto-flow: dense;
    gap: 2.5rem;
    position: relative;
    z-index: 2;
    transition: all 0.5s ease;
}

/* Centering solitary results */
.project-grid.solo-mode {
    display: flex;
    justify-content: center;
    padding: 2rem 0;
}

.project-grid.solo-mode .project-card {
    max-width: 450px;
    width: 100%;
}

.project-grid.filtering-active {
    grid-auto-flow: row;
}

.project-card {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    cursor: none;
    transition: opacity 0.6s cubic-bezier(0.165, 0.84, 0.44, 1),
        filter 0.6s ease,
        transform 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
    position: relative;
}

.project-card.filtered-out {
    opacity: 0.15;
    filter: grayscale(1) blur(4px);
    pointer-events: none;
    transform: scale(0.92);
}

.project-card:not(.filtered-out) {
    z-index: 5;
    opacity: 1;
}

.project-link-wrapper {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    width: 100%;
    height: 100%;
    text-decoration: none;
    color: inherit;
    transition: inherit;
    position: relative;
    z-index: 10;
}

.project-link-wrapper:hover {
    text-decoration: none;
    color: inherit;
}

/* Bento Spanning */
.project-card[data-aspect="wide"] {
    grid-column: span 2;
}

.project-card[data-aspect="tall"] {
    grid-column: span 1;
}

/* Filtering States handled globally at bottom of file */
.project-card:hover {
    transform: translateY(-10px);
}

.project-thumb {
    width: 100%;
    overflow: hidden;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    background: rgba(255, 255, 255, 0.02);
}

/* Responsive aspect ratios based on data-aspect */
.project-card[data-aspect="wide"] .project-thumb {
    aspect-ratio: 16/9;
}

.project-card[data-aspect="tall"] .project-thumb {
    aspect-ratio: 4/5;
}

.thumb-inner {
    width: 100%;
    height: 100%;
    transition: transform 0.6s cubic-bezier(0.165, 0.84, 0.44, 1), filter 0.6s ease;
    filter: saturate(0.8) contrast(1.1);
}

.project-card:hover .thumb-inner {
    transform: scale(1.05);
    filter: saturate(1.2) contrast(1.2);
}

.project-info {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.project-type-badge {
    font-size: 0.6rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--accent-alt);
    border: 1px solid var(--accent-alt);
    padding: 0.2rem 0.6rem;
    border-radius: 4px;
    width: fit-content;
    font-weight: 700;
}

.project-title {
    font-size: clamp(1.2rem, 2vw, 1.8rem);
    font-weight: 700;
    text-transform: uppercase;
    color: var(--text);
    letter-spacing: -1px;
    transition: color 0.4s ease;
}

.project-card:hover .project-title {
    color: var(--accent-alt);
}

.project-category {
    font-size: 0.85rem;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 500;
}

/* --- Artistic Expression --- */
.artistic-gallery {
    background: radial-gradient(circle at 70% 30%, rgba(178, 62, 255, 0.05) 0%, transparent 60%);
}

.art-feature {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 6rem;
    align-items: center;
    padding: 4rem 0;
}

.art-visual {
    position: relative;
    aspect-ratio: 16/9;
    background: linear-gradient(135deg, #0a0a0a 0%, #151515 100%);
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 40px 100px rgba(0, 0, 0, 0.5);
}

/* Subtle glow inside the art visual */
.art-visual::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at center, rgba(178, 62, 255, 0.1) 0%, transparent 50%);
    transform: translate(-50%, -50%);
    pointer-events: none;
}

.art-title {
    font-size: clamp(2rem, 5vw, 4rem);
    font-weight: 700;
    margin-bottom: 2.5rem;
    line-height: 1.1;
    color: var(--text);
}

.art-content p {
    font-size: 1.15rem;
    color: var(--muted);
    line-height: 1.8;
    margin-bottom: 3rem;
    max-width: 500px;
}

.art-meta {
    display: flex;
    gap: 1.5rem;
}

.art-meta span {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: var(--accent);
    border-bottom: 1px solid rgba(178, 62, 255, 0.3);
    padding-bottom: 0.5rem;
}

@media (max-width: 1024px) {
    .art-feature {
        grid-template-columns: 1fr;
        gap: 4rem;
    }

    .art-visual {
        order: -1;
    }
}

/* --- Timeline / Experience --- */
.experience {
    padding: 12vh 0;
    /* Fixed: Slightly more room to prevent parallax intersection */
    min-height: auto;
    overflow: visible;
}

.timeline-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2.5rem;
    /* Reduced gap */
}

.timeline-block {
    padding: 2.2rem;
    /* Reduced from 3rem */
    background: rgba(255, 255, 255, 0.015);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    transition: transform 0.4s ease, border-color 0.4s ease, background 0.4s ease;
}

.timeline-block:hover {
    transform: translateY(-10px);
    border-color: rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.03);
}

.timeline-block .year {
    font-size: 2.5rem;
    font-weight: 300;
    color: var(--accent);
    margin-bottom: 1.5rem;
}

.timeline-block .role {
    font-size: 1.25rem;
    font-weight: 500;
    margin-bottom: 2rem;
    color: var(--text);
    text-transform: uppercase;
    letter-spacing: 2px;
}

.timeline-block p {
    color: var(--muted);
    font-weight: 300;
    line-height: 1.7;
    font-size: 1.05rem;
}

/* --- Contact & Footer --- */
#contact {
    min-height: 70vh;
    padding-top: 10vh;
    padding-bottom: 2vh;
    border-bottom: none;
    overflow: visible;
    /* Prevents text clipping during parallax/animations */
    display: flex;
    justify-content: flex-start;
    /* Align to top instead of center to prevent clipping */
}

.huge-contact {
    font-size: clamp(3rem, 10vw, 8.5rem);
    line-height: 1.15;
    letter-spacing: -4px;
    margin-bottom: 1rem;
    padding: 0.5em 0;
}

.huge-contact .outline {
    color: transparent;
    -webkit-text-stroke: 1px var(--text);
    font-style: italic;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 4rem;
    align-items: center;
    margin-bottom: 4rem;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-group {
    width: 100%;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 1.2rem;
    color: var(--text);
    font-family: var(--font-body);
    font-size: 0.9rem;
    letter-spacing: 1px;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.contact-form textarea {
    min-height: 150px;
    resize: none;
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--accent);
    background: rgba(255, 255, 255, 0.05);
}

.submit-btn {
    align-self: flex-start;
    padding: 1rem 2.5rem;
    background: var(--text);
    color: var(--bg);
    border: none;
    border-radius: 40px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    transition: all 0.4s ease;
}

.submit-btn:hover {
    background: var(--accent);
    color: var(--text);
    transform: translateY(-5px);
}

.contact-footer {
    display: flex;
    justify-content: flex-start;
    padding-top: 2rem;
}

.submit-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 1rem;
    gap: 2rem;
}

.submit-row .socials {
    display: flex;
    gap: 1rem;
    margin-top: 0;
    /* Override any previous margin */
}

.submit-row .socials a {
    width: 44px;
    height: 44px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text);
    transition: all 0.4s ease;
}

.submit-row .socials a:hover {
    background: var(--accent);
    border-color: var(--accent);
    color: var(--bg);
}

@media (max-width: 1024px) {
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
}

@media (max-width: 500px) {
    .submit-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 2rem;
    }
}

.site-footer {
    padding: 3rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--muted);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.email-link {
    font-size: clamp(1.5rem, 3vw, 2.5rem);
    font-family: var(--font-heading);
    text-decoration: none;
    color: var(--text);
    transition: color 0.4s ease, transform 0.4s ease;
    display: inline-block;
}

.email-link:hover {
    color: var(--accent);
    transform: translateX(10px);
}

.socials {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.socials a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: var(--text);
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.socials a svg {
    width: 24px;
    height: 24px;
    transition: transform 0.4s ease;
}

.socials a:hover {
    background: var(--text);
    color: var(--bg);
    transform: translateY(-5px);
}

.socials a:hover svg {
    transform: scale(1.1);
}

/* --- Clients Marquee --- */
.clients {
    padding: 3vh 0;
    /* Very slim padding as requested */
    overflow: hidden;
    position: relative;
    z-index: 2;
    min-height: auto;
}

.clients-marquee {
    margin-top: 1.5rem;
    /* Reduced from 4rem */
    position: relative;
    width: 100%;
}

.marquee-content {
    display: flex;
    gap: 8rem;
    animation: marquee 40s linear infinite;
    width: max-content;
}

.client-logo {
    font-family: var(--font-heading);
    font-size: clamp(2rem, 5vw, 4rem);
    font-weight: 700;
    color: var(--text);
    opacity: 0.1;
    letter-spacing: 5px;
    white-space: nowrap;
    transition: opacity 0.4s ease, filter 0.4s ease, transform 0.4s ease;
}

.client-logo:hover {
    opacity: 0.8;
    filter: drop-shadow(0 0 15px var(--accent));
    transform: scale(1.05);
}

@keyframes marquee {
    0% {
        transform: translateX(0);
    }

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

@media (max-width: 768px) {
    .marquee-content {
        gap: 4rem;
    }

    .client-logo {
        font-size: 2rem;
        letter-spacing: 2px;
    }

    .clients {
        padding: 10vh 0;
    }
}

/* --- Mobile Responsiveness --- */
@media (max-width: 1024px) {
    .nav-links {
        gap: 1.5rem;
    }

    .project-category {
        display: none;
    }
}

@media (max-width: 768px) {
    body {
        cursor: auto;
    }

    .cursor,
    .cursor-follower {
        display: none;
    }

    .top-nav {
        padding: 0.8rem 1.2rem;
        flex-direction: row;
        /* Force single row */
        justify-content: space-between;
        gap: 0;
        background: rgba(3, 3, 3, 0.8);
        backdrop-filter: blur(10px);
    }

    .logo {
        font-size: 1.2rem;
        /* Smaller logo */
        margin-right: auto;
    }

    .nav-links {
        width: auto;
        justify-content: center;
        gap: 1rem;
        /* Tighter links */
        margin: 0 1rem;
    }

    .nav-links a {
        font-size: 0.6rem;
        letter-spacing: 1.5px;
    }

    .contact-btn a {
        padding: 0.4rem 0.8rem;
        font-size: 0.6rem;
        letter-spacing: 1px;
    }

    /* main has no padding — section-inner uses clamp() for all sizes */

    .hero {
        height: 100svh;
        min-height: auto;
        /* Removed 750px constraint to fix short screens like 599px */
        padding-top: 8vh;
        justify-content: flex-start;
    }

    .project-grid {
        gap: 1.5rem;
        /* Reduced gap between boxes on mobile */
    }

    .hero-content {
        flex: 0;
        gap: 2vh;
    }

    .massive-text {
        letter-spacing: -1px;
        font-size: 3rem;
    }

    .massive-text.name-text {
        font-size: 2.2rem;
    }

    .massive-text.outline {
        left: 0;
        margin-top: 5px;
        font-size: 2rem;
    }

    .hero-identity-grid {
        gap: 1rem;
    }

    .statement {
        font-size: 1.3rem;
        margin-bottom: 1.5rem;
    }

    .skills-tags {
        justify-content: flex-start;
        gap: 0.5rem;
        margin-bottom: 2rem;
    }

    .skills-tags span {
        padding: 0.3rem 0.6rem;
        font-size: 0.55rem;
    }

    .preview-item {
        width: 40px;
        height: 40px;
        border-radius: 6px;
    }

    .scroll-preview-grid {
        gap: 0.4rem;
        margin-top: 1rem;
    }

    .scroll-work-indicator {
        margin-top: auto;
        padding-bottom: 3vh;
    }

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

    .statement {
        font-size: 1.3rem;
        margin-bottom: 3rem;
    }

    .projects-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1.5rem;
    }

    .project-filters {
        width: 100vw;
        margin-left: calc(-1 * clamp(1.5rem, 6vw, 6rem));
        padding-left: clamp(1.5rem, 6vw, 6rem);
        padding-right: clamp(1.5rem, 6vw, 6rem);
        overflow-x: auto;
        white-space: nowrap;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        display: flex;
        gap: 0.8rem;
        justify-content: flex-start;
    }

    .project-filters::-webkit-scrollbar {
        display: none;
    }

    /* Hide scrollbar Chrome/Safari */
    .filter-btn {
        padding: 0.5rem 1rem;
        font-size: 0.65rem;
        flex-shrink: 0;
    }

    .project-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
        padding-bottom: 2rem;
    }

    .project-card[data-aspect="wide"] {
        grid-column: span 2;
    }

    .project-card[data-aspect="tall"] {
        grid-column: span 1;
    }

    .project-thumb {
        aspect-ratio: 1/1;
        height: auto;
    }

    .project-card[data-aspect="wide"] .project-thumb {
        aspect-ratio: 16/9;
    }

    .project-title {
        font-size: 1.3rem;
        white-space: normal;
        line-height: 1.2;
        margin-top: 0.5rem;
    }

    .project-card.fallback-thumb {
        grid-column: span 1;
    }
}


/* --- Project Detail Page Styles --- */
.project-page .project-hero {
    min-height: auto;
    /* No longer forcing 80vh */
    padding-top: 15vh;
    padding-bottom: 2vh;
}

.project-page .massive-text {
    font-size: clamp(2rem, 5vw, 4.5rem);
    /* Reduced by approx 50% */
    text-align: left;
    white-space: normal;
    line-height: 1.1;
}

.project-page .section-label {
    font-size: 0.7rem;
    /* Smaller labels */
    letter-spacing: 3px;
    margin-bottom: 1.5rem;
}

.project-page section {
    padding: 2.5rem 0;
    /* Globally reduced section padding for detail pages */
    min-height: auto;
    border-bottom: none;
}

.section-label.centered {
    text-align: center;
    width: 100%;
}

.project-details {
    padding: 0;
    /* Tightened further */
}

/* Styleframe & Process Grids */
.styleframe-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    margin: 2rem 0 6rem;
}

.process-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin: 2rem 0;
}

.sf-item,
.process-item {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.02);
    cursor: none;
    transition: all 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.sf-item {
    aspect-ratio: 4/5;
}

.sf-item.vertical {
    aspect-ratio: 3/4;
}

.sf-item.landscape {
    grid-column: 1 / -1;
    aspect-ratio: 21/9;
}

.process-item {
    aspect-ratio: 1/1;
    border-radius: 8px;
}

.sf-item img,
.process-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.sf-item:hover img,
.process-item:hover img {
    transform: scale(1.05);
}

.sf-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5);
}

.product-placeholder:hover {
    transform: scale(1.02);
}

.gradient-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #121212, #1a1a1a);
    z-index: -1;
}

.placeholder-label {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 5px;
    opacity: 0.3;
}

.project-main-feature {
    margin-top: 4rem;
}

.product-placeholder {
    width: 100%;
    aspect-ratio: 16/9;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
    box-shadow: 0 40px 100px rgba(0, 0, 0, 0.5);
    transition: transform 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.process-item {
    aspect-ratio: 16/9;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Meta / Software Tags */
.project-meta {
    padding: 1rem 0;
    /* Minimal padding */
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.meta-cols {
    display: flex;
    gap: 4rem;
    /* Tighter gap between cols */
}

.software-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    /* Tighter gap between tags */
    margin-top: 0.5rem;
}

.software-tags span {
    padding: 0.4rem 1rem;
    /* Smaller tags */
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 30px;
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--muted);
}

/* Image Fullscreen Overlay */
.image-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(3, 3, 3, 0.95);
    /* Deep solid backdrop for focus */
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.5s cubic-bezier(0.165, 0.84, 0.44, 1);
    padding: 2rem;
    cursor: zoom-out;
}

.image-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.overlay-content {
    position: relative;
    max-width: 90%;
    max-height: 90%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.image-overlay img {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
    transition: transform 0.1s ease-out, opacity 0.4s;
    cursor: grab;
    transform: scale(1);
    transform-origin: center center;
}

.image-overlay.zoomed img {
    max-width: none !important;
    max-height: none !important;
    cursor: grabbing;
}

.zoom-controls {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 1rem;
    z-index: 10002;
    background: rgba(255, 255, 255, 0.12);
    /* Brighter for visibility */
    backdrop-filter: blur(10px);
    padding: 10px;
    border-radius: 50px;
    border: 1px solid rgba(255, 255, 255, 0.35);
    /* Subtle white rim */
    opacity: 0;
    pointer-events: none;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.zoom-controls.visible {
    opacity: 1;
    pointer-events: auto;
}

.reset-btn {
    width: 40px;
    height: 40px;
    background: transparent;
    color: var(--text);
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: none;
    transition: all 0.3s;
}

.reset-btn svg {
    width: 20px;
    height: 20px;
}

.reset-btn:hover {
    background: var(--accent);
    box-shadow: 0 10px 30px rgba(178, 62, 255, 0.3);
}

.image-overlay.active img {
    transform: scale(1);
}

.overlay-loader {
    position: absolute;
    width: 40px;
    height: 40px;
    border: 3px solid rgba(255, 255, 255, 0.1);
    border-top-color: var(--accent);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    display: none;
    z-index: 10001;
}

.image-overlay.loading .overlay-loader {
    display: block;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.overlay-close {
    position: absolute;
    top: 40px;
    right: 40px;
    font-family: var(--font-heading);
    font-size: 1rem;
    cursor: none;
    opacity: 0.6;
    transition: opacity 0.3s;
}

.overlay-close:hover {
    opacity: 1;
}

@media (max-width: 768px) {
    .styleframe-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.8rem;
        grid-auto-flow: dense;
        /* Magically fills empty gaps */
    }

    .sf-item.landscape {
        grid-column: span 2;
        aspect-ratio: 16/9;
        margin: 1rem 0;
    }

    .process-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.8rem;
        grid-auto-flow: dense;
    }

    .meta-cols {
        flex-direction: column;
        gap: 2rem;
    }

    .project-hero {
        padding-top: 15vh;
        /* Reduced for better mobile alignment */
    }

    .massive-text {
        font-size: clamp(2.5rem, 10vw, 4rem) !important;
        /* Forces a readable scale */
        white-space: normal !important;
        /* Allow wrapping on small phones */
        line-height: 1.1;
    }

    .next-project {
        padding: 15vh 0;
        /* Tighter padding for mobile */
    }

    .next-proj-link .massive-text {
        font-size: clamp(2.5rem, 12vw, 5rem) !important;
    }

    /* Ensure visibility for the bridge */
    .next-project .reveal {
        opacity: 1 !important;
        transform: none !important;
    }

    /* --- Filtering Logic Mobile --- */
    .project-grid.filtering-active {
        grid-auto-flow: row;
    }

    .project-card.solo-match,
    .project-grid.solo-mode .project-card {
        grid-column: span 2 !important;
        align-items: center;
        text-align: center;
        padding: 1rem 0;
    }

    .project-card.solo-match .project-thumb,
    .project-grid.solo-mode .project-thumb {
        width: 100%;
        max-width: 280px;
        margin: 0 auto;
    }

    .project-card.solo-match .project-info {
        align-items: center;
        width: 100%;
    }

    .contact-info {
        flex-direction: column;
        align-items: flex-start;
        gap: 2rem;
    }
}

/* Tablet / Small Laptop Specific Fix: 768px - 1024px */
/* Prevents massive headlines from disappearing behind the top nav links */
@media (min-width: 769px) and (max-width: 1024px) {
    .hero {
        padding-top: 15vh !important;
        /* Shove the whole content block down */
    }

    .massive-text {
        font-size: clamp(3rem, 12vw, 5.5rem) !important;
        line-height: 1.0;
    }

    .hero-content {
        gap: 2rem !important;
    }

    .logo img {
        height: 38px !important;
    }
}

/* Specific Fix for Very Short Mobile Screens (like 599px high) */
@media (max-width: 769px) and (max-height: 680px) {
    .hero {
        padding-top: 15vh !important;
        /* Shifts the top part down to show the name */
        justify-content: flex-start !important;
        height: 100svh !important;
    }

    /* Scaled down to be visible but still massive */
    .massive-text {
        font-size: 3.6rem !important;
        opacity: 1 !important;
        visibility: visible !important;
    }

    .massive-text.name-text {
        font-size: 2.8rem !important;
    }

    .massive-text.outline {
        font-size: 2.2rem !important;
        margin-top: -0.5rem !important;
    }

    .hero-content {
        gap: 1.5vh !important;
        flex: 0 0 auto !important;
    }

    .statement {
        font-size: 1.15rem !important;
        margin-bottom: 0.8rem !important;
    }

    .identity-desc {
        /*  display: none !important;
        /* Hidden to stop pushing things off screen */
    }

    /* Hide description on tiny heights to save the thumbnails */
    .skills-tags {
        margin-bottom: 0.5rem !important;
        gap: 0.3rem !important;
    }

    .skills-tags span {
        padding: 0.2rem 0.5rem !important;
    }

    /* This anchors the work previews to the bottom without stretching the whole layout */
    .scroll-work-indicator {
        margin-top: auto !important;
        padding-bottom: 3vh !important;
    }

    .preview-item {
        width: 34px !important;
        height: 34px !important;
    }

    .scroll-preview-grid {
        margin-top: 0.2rem !important;
    }
}

/* Next Project Bridge */
.next-project {
    padding: 25vh 0;
    /* Massively increased space for cinematic feel */
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    text-align: center;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Dimmed Background Container */
.next-project-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background-size: cover;
    background-position: center;
    opacity: 0.25;
    /* Dimmed by default */
    filter: blur(4px) grayscale(20%);
    transition: transform 1.2s cubic-bezier(0.165, 0.84, 0.44, 1), opacity 0.6s ease;
}

.next-project:hover .next-project-bg {
    transform: scale(1.1);
    /* Subtle zoom simulation */
    opacity: 0.4;
    /* Lights up slightly on hover */
}

.small-label {
    display: block;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 5px;
    color: var(--accent-alt);
    /* Cyan for visibility */
    margin-bottom: 2rem;
    font-weight: 600;
}

.next-proj-link {
    text-decoration: none;
    display: block;
    width: 100%;
    position: relative;
    z-index: 2;
    text-align: center;
}

.next-proj-link .massive-text {
    transition: all 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.next-proj-link:hover .massive-text {
    color: var(--text);
    -webkit-text-stroke: 0px transparent;
    /* Swaps from outline to solid */
    transform: translateY(-10px);
}

.next-proj-link .massive-text {
    font-size: clamp(2rem, 8vw, 15rem);
    /* Cinematic scale */
    white-space: nowrap;
    line-height: 1;
    text-align: center;
    /* Explicit center */
    width: 100%;
}

/* Reset the global offset for the bridge specifically */
.next-project .massive-text.outline {
    left: 0;
}

.next-project .section-inner {
    max-width: none;
    /* Allow massive text to breathe */
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* --- Mobile Navigation Fixes (Samsung Galaxy / Small Widths) --- */
@media (max-width: 600px) {
    .top-nav {
        padding: 0.8rem 1.2rem !important;
        background: linear-gradient(to bottom, rgba(3,3,3,0.85) 0%, transparent 100%);
    }

    .logo img {
        height: 34px !important; /* Slightly smaller to save vertical space */
    }

    .nav-links {
        gap: 1.2rem !important; /* Tighter links */
    }

    .nav-links a {
        font-size: 0.65rem !important;
        letter-spacing: 2px !important;
    }

    .contact-btn a {
        padding: 0.45rem 1rem !important; /* Slimmer button */
        font-size: 0.65rem !important;
        letter-spacing: 1.5px !important;
        white-space: nowrap !important; /* Forces one-line "LET'S TALK" */
    }

    /* Move the headline further down away from the header on small portrait phones */
    .hero {
        padding-top: 12vh !important;
    }
}