/* ==========================================================================
   Shyuzz Studio Design System & Core CSS
   ========================================================================== */

/* Variables & Tokens */
:root {
    --color-bg: #020203; /* Pure brutalist black background */
    --color-text: #fffbf0; /* Warm soft cream */
    --color-text-muted: #a69f98; /* Muted warm grey-cream */
    --color-text-white: #ffffff;
    
    /* Shyuzz Brutalist Brand Palette */
    --color-magenta: #FF66D9; /* Neon Hot Pink */
    --color-green: #00E56D; /* Neon Green */
    --color-yellow: #FEFF00; /* Neon Yellow */
    --color-blue: #73E6F1; /* Neon Cyan */
    --color-cream: #fffbf0;
    --color-red: #FF66D9; /* Map red to neon pink */
    --color-card-bg: #0c0c0e; /* Dark card background */
    --color-grey-light: #161619;
    
    /* Fonts */
    --font-display: 'Syne', sans-serif;
    --font-serif: 'Playfair Display', serif;
    --font-body: 'Outfit', sans-serif;
    
    /* Transitions */
    --transition-smooth: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    --transition-fast: all 0.25s ease;
    
    /* Spacing */
    --container-padding: clamp(2rem, 5vw, 6rem);

    /* Fluid Typography Scale (inspired by Idyllic) */
    --fs-hero: clamp(5.5rem, 16vw, 15rem);
    --fs-h2: clamp(2.5rem, 6.5vw, 5.5rem);       /* Section headings */
    --fs-h3: clamp(1.8rem, 4.5vw, 3.2rem);       /* Sub-headings */
    --fs-body: clamp(1.1rem, 1.8vw, 1.45rem);    /* Readable body */
    --fs-nav: 13.5px;                            /* Navigation links */
    --fs-footer: 13px;
}

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

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
    background-color: var(--color-bg);
}

body {
    background-color: var(--color-bg);
    color: var(--color-text);
    font-family: var(--font-body);
    font-size: var(--fs-body);
    overflow-x: hidden;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    transition: background-color 0.8s cubic-bezier(0.16, 1, 0.3, 1); /* Environmental scroll background smoothing */
}

/* Native Scrollbar Style (Fast & Smooth) */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: var(--color-bg);
}
::-webkit-scrollbar-thumb {
    background: #25252d;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--color-magenta);
}

/* Selection */
::selection {
    background-color: var(--color-magenta);
    color: var(--color-text-white);
}

/* Typographic Defaults */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-display);
    font-weight: 800;
    line-height: 1.1;
    color: var(--color-text);
}

a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition-fast);
}

/* Custom Cursor */
.custom-cursor {
    width: 20px;
    height: 20px;
    background-color: var(--color-magenta);
    border-radius: 50%;
    position: fixed;
    top: 0;
    left: 0;
    transform: translate(-50%, -50%);
    pointer-events: none;
    z-index: 9999;
    mix-blend-mode: difference;
    transition: width 0.3s cubic-bezier(0.16, 1, 0.3, 1), 
                height 0.3s cubic-bezier(0.16, 1, 0.3, 1), 
                background-color 0.3s ease;
}

.custom-cursor.hovered {
    width: 80px;
    height: 80px;
    background-color: var(--color-text-white);
    mix-blend-mode: normal;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cursor-text {
    font-family: var(--font-body);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1px;
    color: var(--color-bg);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
    transform: scale(0);
}

.custom-cursor.hovered .cursor-text {
    opacity: 1;
    transform: scale(1);
}

/* ==========================================================================
   Header & Navigation
   ========================================================================== */
.main-header {
    position: fixed;
    top: 1.5rem;
    left: 5%;
    width: 90%;
    z-index: 1000;
    padding: 0.8rem 2.5rem;
    background-color: rgba(2, 2, 3, 0.75) !important; /* Elegant dark capsule backdrop */
    border: 1px solid rgba(255, 102, 217, 0.25) !important; /* Delicate neon pink border */
    border-radius: 50px !important; /* Floating capsule capsule style */
    backdrop-filter: blur(15px) !important;
    -webkit-backdrop-filter: blur(15px) !important;
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.5s ease;
    will-change: transform, opacity;
}

.main-header.header-hidden {
    transform: translateY(-150%);
    opacity: 0;
    pointer-events: none;
}

.header-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1400px;
    margin: 0 auto;
}

.logo {
    font-family: var(--font-display);
    font-size: 22px;
    font-weight: 800;
    letter-spacing: -0.5px;
    color: #ffffff; /* White logo matching Idyllic */
    text-transform: lowercase;
    position: relative;
}

.logo::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0%;
    height: 3px;
    background-color: var(--color-green);
    transition: var(--transition-smooth);
}

.logo:hover::after {
    width: 100%;
}

.main-nav {
    display: flex;
    gap: 3rem;
}

.nav-link {
    font-size: var(--fs-nav);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    position: relative;
    padding: 0.5rem 0;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 0;
    height: 2px;
    background-color: var(--color-green);
    transition: var(--transition-smooth);
}

.nav-link:hover::after {
    width: 100%;
    left: 0;
}

.social-links {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.social-links a {
    color: var(--color-text);
    opacity: 0.8;
}

.social-links a:hover {
    color: var(--color-magenta);
    transform: translateY(-2px);
    opacity: 1;
}

/* Integrated Mini GIF in Header */
.mini-gif-icon {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border-radius: 50%;
}

.header-mini-gif {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Mobile Menu Button */
.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    flex-direction: column;
    gap: 6px;
    z-index: 1002;
    padding: 8px;
}

.mobile-menu-btn .bar {
    width: 25px;
    height: 2px;
    background-color: var(--color-text);
    transition: var(--transition-smooth);
}

/* Mobile Overlay Menu */
.mobile-menu-overlay {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    height: 100vh;
    background-color: var(--color-bg);
    z-index: 1001;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: right 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.mobile-menu-overlay.active {
    right: 0;
}

.mobile-nav {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2.5rem;
}

.mobile-nav-link {
    font-family: var(--font-display);
    font-size: clamp(2rem, 8vw, 4rem);
    font-weight: 800;
    color: var(--color-text-white);
    transition: var(--transition-smooth);
}

.mobile-nav-link:hover {
    color: var(--color-magenta);
    transform: skewX(-5deg) scale(1.05);
}

/* Hamburger active state */
.mobile-menu-btn.active .bar:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
    background-color: var(--color-text-white);
}

.mobile-menu-btn.active .bar:nth-child(2) {
    transform: rotate(-45deg);
    background-color: var(--color-text-white);
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero-section {
    height: 100vh;
    max-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    padding-top: 80px; /* Offset exactly below the header */
    padding-bottom: 50px; /* Bottom safety margin above the ticker */
    overflow: hidden;
    background-color: #0b0b0d; /* Fallback */
    box-sizing: border-box;
}

.hero-video-bg-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 1;
    pointer-events: none;
}

.hero-video-bg {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.8;
    /* Original colors preserved — no filter */
}

.hero-video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(2, 2, 3, 0.1) 0%, rgba(2, 2, 3, 0.35) 100%);
    z-index: 2;
}

/* Wavy grid background pattern (Pink with Dark Red/Magenta lines) with organic displacement warping */
.hero-grid-overlay {
    position: absolute;
    top: -10%;
    left: -10%;
    width: 120%; /* Scaled up to cover edges during organic displacement map distortion */
    height: 120%;
    z-index: 2;
    background-color: transparent; /* Transparent to let video background show through */
    background-image: 
        linear-gradient(to right, #d60e5a 1.5px, transparent 1.5px),
        linear-gradient(to bottom, #d60e5a 1.5px, transparent 1.5px);
    background-size: 50px 50px; /* Geometric grid square sizing */
    filter: url(#organicWarp); /* SVG filter that bends the grid organically and animates fluidly */
    pointer-events: none;
}

.hero-container {
    width: 100%;
    height: 100%; /* Fill container height to allow perfect centering */
    max-width: 100%; /* Full bleed layout to let title stretch edge-to-edge without cuts */
    margin: 0;
    padding: 0 var(--container-padding);
    position: relative;
    z-index: 3;
    display: flex;
    flex-direction: column;
    align-items: center; /* Horizontally center contents */
    justify-content: center; /* Vertically center contents */
    text-align: center;
    box-sizing: border-box;
}

.hero-title {
    margin-top: 0; /* Centered vertically via flexbox, preventing overflow against the header */
    margin-bottom: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    will-change: transform;
}

.hero-title-img {
    width: 95vw;
    max-width: 95vw;
    height: auto;
    display: block;
}

.title-line {
    display: inline-block;
    overflow: visible; /* Prevent any vertical/horizontal letter clipping at the boundaries */
    width: 100%;
    text-align: center;
}

/* Block alignment: justifying both lines to match the exact same left/right margins */
.hero-title .title-line:nth-child(1) {
    letter-spacing: 0.025em; /* Slightly widened tracking for 'SHYUZZ' as requested to help align the vertical S */
}

.hero-title .title-line:nth-child(2) {
    letter-spacing: 0.178em; /* Expanded tracking to stretch 'STUDIO' to match the width of 'SHYUZZ' exactly */
    padding-left: 0.178em; /* Offset trailing space to preserve perfect vertical alignment of the starting letter S */
}

/* Custom rotating circular badge with the new tagline, mathematically locked inside the letter 'O' of 'STUDIO' to prevent layout drift */
.hero-rotating-badge {
    position: absolute;
    left: calc(50vw + (1.85 * clamp(3rem, 10vw, 10rem)));
    top: calc(50% + (0.42 * clamp(3rem, 10vw, 10rem)));
    width: calc(2.4 * clamp(3rem, 10vw, 10rem));
    height: calc(2.4 * clamp(3rem, 10vw, 10rem));
    z-index: 3;
    display: flex;
    justify-content: center;
    align-items: center;
    pointer-events: auto;
    background-color: #ffe600; /* Vibrant yellow background sticker */
    border-radius: 50%;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    padding: 0.5vw; /* Safe rotation padding */
}

.badge-svg {
    width: 100%;
    height: 100%;
    animation: spinBadge 25s linear infinite;
    transform-origin: center center;
}

.badge-text {
    font-family: var(--font-display);
    font-size: 7.2px; /* Adjusted font size to fit long tagline */
    font-weight: 700;
    fill: #ffffff; /* White text */
    stroke: #1c060d; /* Dark stroke for readability */
    stroke-width: 0.25px;
    letter-spacing: 0.8px;
    text-transform: uppercase;
}

.badge-center-gif {
    position: absolute;
    width: 50%;
    height: 50%;
    object-fit: contain;
    pointer-events: none;
    z-index: 2;
    border-radius: 50%;
}

.badge-play-icon {
    fill: #1c060d;
}

@keyframes spinBadge {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Orbs */
.floating-graphic {
    position: absolute;
    top: 20%;
    left: 60%;
    z-index: 1;
    pointer-events: none;
}

.neon-orb {
    width: clamp(150px, 30vw, 400px);
    height: clamp(150px, 30vw, 400px);
    background: radial-gradient(circle, rgba(255, 0, 166, 0.2) 0%, rgba(0, 172, 49, 0.08) 50%, rgba(11, 11, 13, 0) 70%);
    filter: blur(45px);
    border-radius: 50%;
    animation: rotateOrb 15s infinite linear;
}

@keyframes rotateOrb {
    0% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(40px, -40px) scale(1.1); }
    100% { transform: translate(0, 0) scale(1); }
}

/* ==========================================================================
   Section 1.5: Story Fixed Scroll Column Layout
   ========================================================================== */
.story-fixed-scroll-section {
    position: relative;
    background-color: transparent; /* Transparent to let environmental scroll background show */
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.story-fixed-scroll-container {
    width: 100%;
    max-width: 100%;
    padding: 0;
}

.story-fixed-scroll-row {
    display: flex;
    position: relative;
    width: 100%;
}

/* Left Column: Fixed / Pinned Media container */
.fixed-media-column {
    width: 50%; /* Perfect half split like Idyllic */
    height: 100vh;
    position: sticky;
    top: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.fixed-media-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
    border-radius: 0; /* Full bleed edge-to-edge layout */
    overflow: hidden;
    background-color: #000;
}

.fixed-media-wrapper .hypnotic-bg {
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: conic-gradient(from 180deg, var(--color-magenta), var(--color-yellow), var(--color-green), var(--color-blue), var(--color-magenta));
    opacity: 0.85;
    filter: blur(25px);
    animation: spinHypnotic 7s linear infinite;
}

@keyframes spinHypnotic {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.fixed-gif-img {
    width: 58%;
    height: auto;
    position: relative;
    z-index: 2;
    filter: drop-shadow(0 15px 30px rgba(0,0,0,0.6));
    transition: var(--transition-smooth);
}

.fixed-media-wrapper:hover .fixed-gif-img {
    transform: scale(1.1) rotate(5deg);
}

/* Right Column: Scrollable text blocks */
.scroll-text-column {
    width: 50%; /* Perfect half split like Idyllic */
    display: flex;
    flex-direction: column;
    padding: 12vh 6vw; /* Generous fluid padding */
    gap: 12vh; /* Spacious block margins */
}

.story-block {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.story-tag {
    font-size: 13px;
    font-weight: 700;
    color: var(--color-green);
    text-transform: uppercase;
    letter-spacing: 1.5px;
}

.story-title-highlight {
    font-size: var(--fs-h2); /* Fluid title scale matching Idyllic */
    line-height: 1.0;
    font-family: var(--font-display);
    font-weight: 800;
    letter-spacing: -2px;
    overflow: hidden;
}

.reveal-paragraph {
    font-size: var(--fs-body); /* Fluid body text size */
    color: var(--color-text-muted);
    line-height: 1.5;
    font-weight: 400;
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

/* ==========================================================================
   Section 1.6: Cut-Out Sliding Image Marquee (Idyllic Style)
   ========================================================================== */
.cutout-marquee-section {
    padding: 5% 0 10% 0; /* Matches Idyllic: var(--ym) var(--xm) calc(var(--ym)*2) */
    background-color: transparent; /* Transparent to let environmental background show */
    overflow: hidden;
    position: relative;
}

.cutout-marquee-header {
    margin-bottom: 5rem;
}

.cutout-header-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 var(--container-padding);
}

.cutout-tag {
    font-size: 13px;
    font-weight: 700;
    color: var(--color-magenta);
    text-transform: uppercase;
    letter-spacing: 1px;
    display: block;
    margin-bottom: 0.5rem;
}

.cutout-heading {
    font-family: var(--font-serif);
    font-style: italic;
    font-weight: 700;
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    overflow: hidden;
}

/* The Marquee track container — matches Idyllic exactly */
.image-marquee {
    width: 100%;
    overflow: hidden;
    position: relative;
    padding: 0 1.5rem; /* Idyllic: padding: 0 var(--font_24) */
}

.image-marquee__track {
    display: flex;
    gap: 1.5rem; /* Idyllic: gap: var(--font_24) = 1.5rem */
    width: max-content;
    padding: 0 1.5rem;
    animation: imageMarqueeScroll 120s linear infinite; /* Idyllic: 120s */
    will-change: transform;
}

@keyframes imageMarqueeScroll {
    0% { transform: translate3d(0, 0, 0); }
    100% { transform: translate3d(-50%, 0, 0); }
}

/* Pause scroll on hover for ease of reading labels */
.image-marquee:hover .image-marquee__track {
    animation-play-state: paused;
}

/* Marquee item — matches Idyllic exactly */
.image-marquee__item {
    display: grid;          /* Stack default + hover in same cell */
    padding: 0;
    margin: 0;
    position: relative;
    flex: 0 0 auto;
    width: auto;
    height: auto;
    overflow: visible;
    transform-origin: center; /* Idyllic: center */
    transition: transform 0.35s ease; /* Idyllic: 0.35s ease */
    cursor: pointer;
    z-index: 1;
}

/* Idyllic: rotate(-4deg) translateY(-6px) */
.image-marquee__item:hover {
    transform: rotate(-4deg) translateY(-6px);
    z-index: 3;
}

/* Idyllic: rotate(4deg) translateY(-6px) for even items */
.image-marquee__item:nth-child(even):hover {
    transform: rotate(4deg) translateY(-6px);
    z-index: 3;
}

/* Cutout real images */
.cutout-img {
    display: block;
    width: auto;
    height: auto;
    max-height: clamp(200px, 28vw, 400px);
    max-width: clamp(180px, 24vw, 360px);
    object-fit: contain;
    transition: opacity 0.35s ease;
    pointer-events: none;
    user-select: none;
}

/* Hover text label */
.cutout-label {
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%) translateY(8px);
    background: var(--color-bg);
    color: var(--color-text);
    font-family: var(--font-display);
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    white-space: nowrap;
    padding: 8px 16px;
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 100px;
    opacity: 0;
    transition: opacity 0.3s ease, transform 0.3s ease;
    pointer-events: none;
    text-align: center;
    line-height: 1.4;
}

.cutout-label span {
    display: block;
    font-weight: 400;
    text-transform: none;
    font-size: 11px;
    opacity: 0.6;
    letter-spacing: 0.5px;
}

/* Reveal label on hover */
.image-marquee__item:hover .cutout-label {
    opacity: 1;
    transform: translateX(-50%) translateY(0px);
}

/* Image styles — matches Idyllic exactly */
.image-marquee__image,
.cutout-img {
    grid-area: 1 / 1;
    position: relative;
    width: auto;
    height: clamp(200px, 26vw, 380px); /* Fixed height — all images same row height */
    max-height: 400px;
    object-fit: contain;
    display: block;
    transition: opacity 0.35s ease;
    pointer-events: none;
    user-select: none;
}

.image-marquee__image--default,
.cutout-img--default {
    opacity: 1;
}

.image-marquee__image--hover,
.cutout-img--hover {
    opacity: 0;
}

.image-marquee__item:hover .image-marquee__image--default,
.image-marquee__item:hover .cutout-img--default {
    opacity: 0;
}

.image-marquee__item:hover .image-marquee__image--hover,
.image-marquee__item:hover .cutout-img--hover {
    opacity: 1;
}


/* ==========================================================================
   Section 1.7: Massive Typography Banner
   ========================================================================== */
.massive-banner-section {
    padding: 140px 0;
    background-color: transparent; /* Transparent to let environmental background show */
    position: relative;
    z-index: 3;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.massive-banner-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 var(--container-padding);
    text-align: center;
}

.massive-text {
    font-size: clamp(2.4rem, 6.2vw, 6.2rem);
    line-height: 1.05;
    text-transform: uppercase;
    font-weight: 900;
    color: var(--color-text);
    letter-spacing: -1px;
}

.massive-text em,
.magnificent-text {
    font-family: 'Mr Dafoe', cursive !important;
    font-style: normal;
    color: var(--color-magenta);
    text-transform: none;
    font-weight: 400;
    display: inline-block;
    overflow: visible;
    font-size: 1.25em; /* Script display pop matching Idyllic's font scale */
    letter-spacing: normal;
}

.char-anim {
    display: inline-block;
    transform-origin: center bottom;
    will-change: transform, opacity;
}

/* ==========================================================================
   Section: Things I'm not so great at (Idyllic Double Marquee Style)
   ========================================================================== */
#notgoodat {
    padding: 120px 0 100px 0;
    background-color: transparent; /* Transparent to let environmental background show */
    overflow: hidden;
    position: relative;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

#notgoodat h3.notgoodat-title {
    color: #ffffff; /* White title */
    text-align: center;
    font-family: var(--font-display);
    font-size: clamp(10px, 3vw, 13px); /* Smaller responsive font-size to fit mobile width */
    font-style: normal;
    font-weight: 700;
    line-height: 100%;
    text-transform: uppercase;
    margin-bottom: 35px; /* Squeezed vertical layout margin */
    letter-spacing: 1.5px; /* Clean letter spacing */
    overflow: hidden;
    white-space: nowrap;
}

#notgoodat .marquee-lane {
    display: flex;
    overflow: visible;
    white-space: nowrap;
    padding: 0.8rem 0;
    width: 100%;
    will-change: transform;
}

#notgoodat .marquee-lane__inner {
    display: flex;
    gap: 0; /* Spacing handled by span padding */
    will-change: transform;
    min-height: 80px; /* Reverted to 80px */
    align-items: center;
}

#notgoodat .marquee-lane.alternating .marquee-lane__inner {
    /* controlled via GSAP */
}

@keyframes marqueeScrollLeft {
    0% { transform: translate3d(0, 0, 0); }
    100% { transform: translate3d(-50%, 0, 0); }
}

@keyframes marqueeScrollRight {
    0% { transform: translate3d(-50%, 0, 0); }
    100% { transform: translate3d(0, 0, 0); }
}

#notgoodat span {
    font-size: clamp(1.9rem, 3.5rem, 3.5rem) !important; /* Reverted to clamp(1.9rem, 3.5rem, 3.5rem) */
    font-weight: 700;
    display: inline-block;
    padding: 0 50px;
    flex-shrink: 0;
    line-height: 100%;
}

/* Mapped color classes from Idyllic */
.red { color: #ff3b30; }
.blue-light { color: #00e5ff; }
.pink { color: var(--color-magenta); }
.orange { color: #ff9500; }
.purple { color: #af52de; }
.green-dark { color: var(--color-green); }
.green-light { color: #34c759; }
.yellow { color: #ffe600; }
.white { color: #f5f2eb; }

/* Mapped font classes from Idyllic */
.denton {
    font-family: var(--font-serif);
    font-style: italic;
    font-weight: 400;
    text-transform: none;
}

.kafka {
    font-family: var(--font-display);
    font-weight: 300; /* Delicate & Thin */
    text-transform: none; /* No Caps */
    font-size: 0.93em !important; /* Visual height balance */
    letter-spacing: -0.5px;
}

.marthi {
    font-family: var(--font-display);
    font-weight: 300; /* Delicate & Thin */
    text-transform: none; /* No Caps */
    font-size: 0.93em !important; /* Visual height balance */
    letter-spacing: -0.2px;
}

/* ==========================================================================
   Work / Portfolio Section
   ========================================================================== */
.work-section {
    padding: 150px 0;
    background-color: transparent; /* Transparent to let environmental background show */
    position: relative;
    z-index: 3;
}

.work-container,
.work-header-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 var(--container-padding);
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 6rem;
    flex-wrap: wrap;
    gap: 2rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding-bottom: 2rem;
}

.section-title {
    font-family: var(--font-serif);
    font-style: italic;
    font-weight: 700;
    font-size: var(--fs-h2); /* Fluid headings */
    overflow: hidden;
}

.reveal-text {
    display: inline-block;
    transform: translateY(105%);
    will-change: transform;
}

.filter-bar {
    display: flex;
    gap: 0.8rem;
    flex-wrap: wrap;
}

.filter-btn {
    background: none;
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--color-text-muted);
    padding: 0.5rem 1.4rem;
    font-family: var(--font-body);
    font-size: 14px;
    font-weight: 700;
    border-radius: 30px;
    cursor: pointer;
    transition: var(--transition-fast);
}

.filter-btn:hover {
    border-color: var(--color-green);
    color: var(--color-green);
}

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

/* Work Editorial Layout */
.work-editorial {
    display: flex;
    flex-direction: column;
    gap: 10rem;
}

.project-block {
    display: flex;
    flex-direction: column;
    gap: 1.8rem;
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1), 
                transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.project-block.hide {
    opacity: 0;
    transform: translateY(30px);
    pointer-events: none;
    position: absolute;
    width: 0;
    height: 0;
    overflow: hidden;
    margin: 0;
    padding: 0;
}

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

.project-block.full-width .project-media {
    aspect-ratio: 21 / 10;
}

.project-block.col-left .project-media,
.project-block.col-right .project-media {
    aspect-ratio: 1 / 1;
}

.project-img {
    width: 100%;
    height: 130%;
    object-fit: cover;
    display: block;
    position: absolute;
    top: -15%;
    left: 0;
    will-change: transform;
    transition: transform 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.project-block:hover .project-img {
    transform: scale(1.05);
}

.project-details-layout {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 2rem;
    width: 100%;
}

.project-block.full-width .project-details-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
}

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

.project-tag {
    font-size: 13px;
    font-weight: 700;
    color: var(--color-green);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.project-title {
    font-size: clamp(24px, 3.2vw, 38px);
    font-weight: 800;
    line-height: 1.1;
    font-family: var(--font-display);
}

.project-desc-wrapper {
    display: flex;
    align-items: flex-start;
}

.project-desc {
    font-size: clamp(15px, 1.8vw, 17px);
    color: var(--color-text-muted);
    font-weight: 400;
    line-height: 1.6;
}

/* Fixed Background Typography 'Work' — Idyllic exact values */
.work-background-text {
    font-size: calc(100px + 30vw); /* Idyllic: calc(100px + 30vw) */
    line-height: calc(100px + 14vw); /* Idyllic: calc(100px + 14vw) */
    text-align: center;
    width: 100vw;
    position: fixed; /* FIXED — stays locked at bottom of viewport */
    left: 0;
    bottom: 10vw; /* Idyllic: bottom: 10vw */
    font-family: 'Playfair Display', serif;
    color: var(--color-magenta); /* Brand neon hot pink */
    font-weight: 800;
    opacity: 1;
    pointer-events: none;
    z-index: 1;
    display: none; /* Hidden by default, shown by JS when #work is in viewport */
}

/* Portsection & Panelc Layout (Idyllic Style) */
.portsection {
    position: relative;
    width: 100vw;
    overflow-x: hidden;
    min-height: 100vh; /* Idyllic: min-height: 100vh */
    z-index: 99; /* Idyllic: z-index: 99 — ABOVE the fixed Work text */
    margin-top: 20vw; /* Idyllic: margin-top: 20vw */
}

.portsection .row {
    display: flex;
    flex-wrap: wrap;
    width: 100%;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

.portsection .col-md-6 {
    flex: 0 0 50%;
    max-width: 50%;
    box-sizing: border-box;
}

/* Offsets matching Idyllic columns */
.portsection .offset-md-6 {
    margin-left: 50%;
}

.portsection .offset-md-5 {
    margin-left: 41.666667%; /* 5/12 of 100% */
}

.portsection .offset-md-3 {
    margin-left: 25%; /* 3/12 of 100% */
}

.panelc {
    width: 100vw; /* Idyllic: width: 100vw */
    position: relative;
}

.panelc.hide {
    display: none !important;
}

.panelc:has(.project-block.hide) {
    display: none !important;
}

/* Extra projects state */
.extra-project {
    display: none;
    opacity: 0;
    transition: opacity 0.5s ease;
}

/* Gallery Sizing & Staggering */
.gallery-wrap {
    transform: scale(1);
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: transform;
}

.gallery {
    width: 35vw; /* Idyllic: width: 35vw */
    margin: 0 auto;
    margin-top: -12vw; /* Idyllic: margin-top: -12vw — creates vertical overlap */
    position: relative;
    aspect-ratio: 1 / 1; /* Perfect 1:1 squares */
    border-radius: 0px; /* Sharp brutalist corners */
    overflow: hidden;
}

.gallery img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

/* Hover Zoom interaction on the project squares */
.gallery-wrap:hover {
    cursor: pointer;
    transform: scale(1.04);
}

.panelc .project-block {
    display: flex;
    flex-direction: column;
    width: 35vw; /* Idyllic: width: 35vw */
}

/* Custom blue ribbon VIEW ALL button */
.view-more-btn-container {
    text-align: center;
    padding-top: 10vw;
    position: relative;
    z-index: 9;
}

.view-more-custom-btn {
    background: transparent !important;
    border: none !important;
    padding: 0 !important;
    width: 360px; /* Much larger — visible and prominent */
    height: 80px;
    cursor: pointer;
    display: inline-block;
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: none !important;
}

.view-more-custom-btn:hover {
    transform: scale(1.08) translateX(6px);
}

.ribbon-arrow-svg {
    width: 100%;
    height: 100%;
    display: block;
}

.ribbon-path {
    transition: fill 0.3s ease, filter 0.3s ease;
}

.view-more-custom-btn:hover .ribbon-path {
    fill: var(--color-magenta);
    filter: drop-shadow(0 0 12px rgba(255, 102, 217, 0.5));
}

/* Testimonials / Kind Words Section & Swimming Duck */
.kind-words-section {
    height: 350px;
    background-color: transparent;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    margin-top: 5vh;
    margin-bottom: 5vh;
}

.kind-words-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('assets/Kind.gif');
    background-repeat: repeat-x;
    background-size: contain;
    background-position: center;
    opacity: 0.12; /* Subtle branding match */
    pointer-events: none;
}

.kind-words-section .duck {
    position: absolute;
    left: -200px; /* Start off-screen left */
    top: 30%;
    z-index: 2;
    width: 150px;
    height: auto;
    pointer-events: none;
    will-change: transform;
}

.kind-words-section .duck img {
    width: 100%;
    height: auto;
    display: block;
}

/* ==========================================================================
   About Section
   ========================================================================== */
.about-section {
    padding: 150px 0;
    background-color: transparent; /* Transparent to let environmental background show */
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.about-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 var(--container-padding);
}

.about-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 6rem;
    align-items: center;
}

.about-text-content {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.about-badge {
    font-size: 14px;
    font-weight: 700;
    color: var(--color-green);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.about-title {
    font-size: var(--fs-h2); /* Fluid headings */
    margin-bottom: 1rem;
    position: relative;
    overflow: hidden;
}

/* Integrated Bubble Shay GIF in About Title */
.inline-gif-bubble {
    display: inline-block;
    vertical-align: middle;
    width: 65px;
    height: 65px;
    margin-left: 10px;
    transform: rotate(-10deg);
}

.inline-gif-bubble img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.about-p {
    font-size: clamp(16px, 2vw, 18px);
    color: var(--color-text-muted);
    font-weight: 400;
}

.skills-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    margin-top: 1.5rem;
}

.skill-chip {
    background-color: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: var(--color-text);
    padding: 0.5rem 1.2rem;
    border-radius: 30px;
    font-size: 14px;
    font-weight: 500;
    transition: var(--transition-fast);
}

.skill-chip:hover {
    background-color: var(--color-magenta);
    border-color: var(--color-magenta);
    transform: translateY(-2px);
}

/* About Visual Card */
.about-image-wrapper {
    position: relative;
    width: 100%;
    aspect-ratio: 4 / 5;
    background-color: var(--color-grey-light);
    border-radius: 8px;
}

.about-image-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--color-magenta) 0%, var(--color-green) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    position: relative;
    overflow: hidden;
}

.placeholder-text {
    font-family: var(--font-display);
    font-size: 32px;
    font-weight: 800;
    color: var(--color-text-white);
    transform: rotate(-5deg);
}

.about-frame-sticker {
    position: absolute;
    bottom: -15px;
    left: -15px;
    background-color: var(--color-text-white);
    color: var(--color-bg);
    padding: 0.8rem 1.5rem;
    font-weight: 700;
    font-size: 14px;
    border-radius: 4px;
    transform: rotate(-3deg);
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}

/* ==========================================================================
   Contact & Footer Section
   ========================================================================== */
.contact-section {
    padding: 100px 0 0 0;
    background-color: transparent; /* Transparent to let environmental background show */
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    overflow: hidden;
}

/* Infinite Marquee */
.marquee-wrapper {
    background-color: var(--color-magenta);
    color: var(--color-text-white);
    padding: 2rem 0;
    display: flex;
    overflow: hidden;
    user-select: none;
    transform: rotate(-1.5deg) translateY(-20px);
    width: 110%;
    margin-left: -5%;
}

.marquee-content {
    display: flex;
    gap: 4rem;
    flex-shrink: 0;
    min-width: 100%;
    justify-content: space-around;
    animation: marqueeAnim 30s linear infinite;
}

.marquee-content span {
    font-family: var(--font-display);
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 800;
    white-space: nowrap;
    text-transform: uppercase;
}

@keyframes marqueeAnim {
    0% { transform: translate3d(0, 0, 0); }
    100% { transform: translate3d(-100%, 0, 0); }
}

/* Contact Layout */
.contact-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 80px var(--container-padding) 40px var(--container-padding);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6rem;
    margin-bottom: 6rem;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    position: relative;
}

.contact-heading {
    font-family: var(--font-serif);
    font-style: italic;
    font-size: clamp(2.2rem, 4.5vw, 3.5rem);
}

.contact-p {
    font-size: 16px;
    color: var(--color-text-muted);
}

.contact-items {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-top: 1rem;
}

.contact-item {
    display: flex;
    flex-direction: column;
}

.contact-label {
    font-size: 12px;
    font-weight: 700;
    color: var(--color-green);
    text-transform: uppercase;
}

.contact-link {
    font-size: 22px;
    font-weight: 700;
    color: var(--color-text);
}

.contact-link:hover {
    color: var(--color-magenta);
}

/* Integrated Cheeky GIF in Contact Section */
.contact-cheeky-gif {
    margin-top: 2rem;
    width: 90px;
    height: 90px;
    border-radius: 8px;
    overflow: hidden;
}

.mini-fuck-gif {
    width: 100%;
    height: auto;
}

/* Form Styles */
.contact-form {
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
}

.form-group {
    position: relative;
    width: 100%;
}

.form-input {
    width: 100%;
    background: transparent;
    border: none;
    border-bottom: 2px solid rgba(255, 255, 255, 0.1);
    padding: 10px 0;
    font-family: var(--font-body);
    font-size: 16px;
    color: var(--color-text);
    outline: none;
    transition: border-color 0.3s ease;
}

.form-input:focus {
    border-color: var(--color-green);
}

.form-label {
    position: absolute;
    left: 0;
    top: 10px;
    font-family: var(--font-body);
    font-size: 16px;
    color: var(--color-text-muted);
    pointer-events: none;
    transition: transform 0.3s ease, font-size 0.3s ease, color 0.3s ease;
    transform-origin: left top;
}

/* Floating Label Animation */
.form-input:focus ~ .form-label,
.form-input:not(:placeholder-shown) ~ .form-label {
    transform: translateY(-24px);
    font-size: 12px;
    color: var(--color-green);
    font-weight: 700;
}

.submit-btn {
    align-self: flex-start;
    background-color: var(--color-green);
    color: var(--color-text-white);
    border: none;
    padding: 1rem 2.2rem;
    font-family: var(--font-body);
    font-size: 16px;
    font-weight: 700;
    border-radius: 4px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: var(--transition-smooth);
}

.submit-btn:hover {
    background-color: var(--color-magenta);
    transform: scale(1.03);
}

/* Footer Copyright */
.main-footer {
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 2rem;
    display: flex;
    justify-content: center;
}

.footer-copy {
    font-size: 13px;
    color: var(--color-text-muted);
}

/* ==========================================================================
   Case Study Fullscreen Modal (Popup Detail View)
   ========================================================================== */
.project-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: var(--color-bg);
    z-index: 2000;
    display: none;
    opacity: 0;
    overflow: hidden;
}

.modal-close-btn {
    position: fixed;
    top: 2rem;
    right: 2rem;
    background: none;
    border: none;
    color: var(--color-text);
    cursor: pointer;
    z-index: 2002;
    padding: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-fast);
}

.modal-close-btn:hover {
    color: var(--color-magenta);
    transform: rotate(90deg);
}

.modal-scroll-container {
    width: 100%;
    height: 100%;
    overflow-y: auto;
    padding: 8rem var(--container-padding) 6rem var(--container-padding);
}

.modal-header {
    max-width: 1000px;
    margin: 0 auto 5rem auto;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding-bottom: 3rem;
}

.modal-tag {
    font-size: 14px;
    font-weight: 700;
    color: var(--color-green);
    text-transform: uppercase;
    letter-spacing: 1px;
    display: block;
    margin-bottom: 1rem;
}

.modal-title {
    font-size: clamp(2rem, 5vw, 4rem);
    margin-bottom: 2rem;
    font-family: var(--font-display);
}

.modal-desc-container {
    max-width: 800px;
}

.modal-desc {
    font-size: 17px;
    color: var(--color-text-muted);
    line-height: 1.6;
}

.modal-gallery {
    display: flex;
    flex-direction: column;
    gap: 4rem;
    max-width: 1000px;
    margin: 0 auto;
}

.modal-gallery img,
.modal-gallery video {
    width: 100%;
    height: auto;
    border-radius: 8px;
    display: block;
    object-fit: cover;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

/* ==========================================================================
   Section 1.3: Top Red Marquee Ticker
   ========================================================================== */
.top-marquee-section {
    background-color: #b31c2c; /* Premium bold red to match Idyllic's marquee */
    color: var(--color-text); /* Warm soft cream */
    padding: 1.2rem 0;
    overflow: hidden;
    position: relative;
    z-index: 3;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.top-marquee-container {
    display: flex;
    white-space: nowrap;
    width: 100%;
}

.top-marquee-inner {
    display: flex;
    animation: marqueeScrollLeft 35s linear infinite;
    will-change: transform;
}

.top-marquee-inner span {
    font-family: var(--font-display); /* Outfit */
    font-size: clamp(1.1rem, 2.2vw, 1.6rem);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    padding: 0 40px;
    display: inline-block;
    flex-shrink: 0;
}

/* ==========================================================================
   Responsive Breakpoints
   ========================================================================== */
@media (max-width: 1024px) {
    .story-gif-grid {
        grid-template-columns: 1fr;
        gap: 4rem;
    }
    
    .cutout-collage-wrapper {
        height: 500px;
    }
    
    .cutout-item.item-1 { width: 45%; }
    .cutout-item.item-2 { width: 40%; top: 35%; }
    .cutout-item.item-3 { width: 38%; left: 30%; bottom: 2%; }

    .portsection {
        margin-top: 6vw;
    }
    .panelc {
        margin-bottom: 12vh;
    }
    .gallery {
        width: 45vw !important;
    }
    .panelc .project-block {
        width: 45vw !important;
    }
    
    .about-grid, .contact-grid {
        grid-template-columns: 1fr;
        gap: 4rem;
    }
    
    .about-visual {
        max-width: 500px;
        width: 100%;
        margin: 0 auto;
    }
    
    .hero-brand-sticker {
        position: relative;
        right: 0;
        top: 0;
        transform: none !important;
        margin-top: 3rem;
        width: 180px;
        animation: none;
        align-self: flex-start;
    }
}

@media (max-width: 768px) {
    .story-gif-grid {
        gap: 3rem;
    }
    
    .cutout-collage-wrapper {
        height: 420px;
    }
    
    .cutout-item.item-1 { width: 50%; left: 2%; }
    .cutout-item.item-2 { width: 45%; right: 2%; top: 30%; }
    .cutout-item.item-3 { width: 42%; left: 25%; bottom: 0; }

    .main-nav, .social-links {
        display: none;
    }
    
    .mobile-menu-btn {
        display: flex;
    }
    
    .main-header {
        padding: 0.6rem 1.5rem !important;
        top: 1rem !important;
        left: 4% !important;
        width: 92% !important;
    }
    
    .hero-container {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        text-align: center;
    }

    .hero-title {
        transform: none !important; /* Disable vertical scaleY stretch on mobile */
        line-height: 1.15 !important; /* Prevent text overlap/letter clipping */
        font-size: clamp(2.6rem, 10vw, 5rem) !important;
        margin-bottom: 1.5rem;
    }

    .hero-rotating-badge {
        position: relative !important;
        left: auto !important;
        top: auto !important;
        transform: none !important;
        margin: 3rem auto 0 auto !important;
        width: 280px !important;
        height: 280px !important;
        display: flex !important;
    }

    .hero-section {
        padding-top: 150px;
        height: auto !important;
        min-height: 100vh;
        max-height: none !important;
    }
    
    .work-editorial {
        gap: 4rem;
    }
    
    .project-block.full-width .project-media {
        aspect-ratio: 16 / 10;
    }
    
    .section-header {
        flex-direction: column;
        align-items: flex-start;
        margin-bottom: 3rem;
    }
    
    .filter-bar {
        width: 100%;
    }
    
    .custom-cursor {
        display: none; /* Hide custom cursor on mobile touch devices */
    }

    .work-background-text {
        display: none !important;
    }
    .portsection {
        margin-top: 4rem;
    }
    .panelc {
        width: 100% !important;
        margin-bottom: 6rem;
    }
    .gallery {
        width: 100% !important;
        margin-top: 0 !important; /* Reset vertical overlap on mobile */
    }
    .panelc .project-block {
        width: 100% !important;
    }
    .portsection .col-md-6 {
        flex: 0 0 100% !important;
        max-width: 100% !important;
    }
    .portsection .offset-md-6,
    .portsection .offset-md-5,
    .portsection .offset-md-3 {
        margin-left: 0 !important;
    }
    .kind-words-section {
        height: 220px;
    }
    .kind-words-section .duck {
        width: 100px;
        left: -120px;
    }

    /* Case Study Modal responsive enhancements */
    .modal-scroll-container {
        padding: 6rem 1.5rem 4rem 1.5rem !important;
        -webkit-overflow-scrolling: touch;
    }
    .modal-close-btn {
        background-color: rgba(2, 2, 3, 0.75) !important;
        border: 1px solid rgba(255, 102, 217, 0.3) !important;
        border-radius: 50% !important;
        width: 46px !important;
        height: 46px !important;
        top: 1rem !important;
        right: 1rem !important;
        backdrop-filter: blur(12px) !important;
        -webkit-backdrop-filter: blur(12px) !important;
    }
    .modal-close-btn svg {
        width: 20px !important;
        height: 20px !important;
    }
    .modal-header {
        margin-bottom: 3.5rem !important;
        padding-bottom: 2rem !important;
    }
    .modal-gallery {
        gap: 2.5rem !important;
    }

    /* Always show name/tags on mobile touchscreens (hover replacement) */
    .grid-item span.name {
        opacity: 1 !important;
        transform: translateY(0) !important;
        background: linear-gradient(180deg, rgba(2, 2, 3, 0) 30%, rgba(2, 2, 3, 0.85) 90%) !important;
        padding: 20px 15px !important;
        font-size: 1.3rem !important;
    }
    .grid-item span.name .tags {
        font-size: 0.8rem !important;
        margin-top: 5px !important;
    }

    /* Portfolio Grid page header mobile size adjustment */
    .portfolio-heading {
        font-size: clamp(2.8rem, 10vw, 4.5rem) !important;
        transform: none !important;
        line-height: 1.1 !important;
    }
    .portfolio-grid-header {
        padding-top: 60px !important;
    }
}

/* ==========================================================================
   Brutalist Dark Mode Overrides (Vibrant Neon Accents on Pure Black)
   ========================================================================== */
.scroll-color-panel[data-bg-color="#020203"] {
    background-color: #020203 !important;
    color: var(--color-cream);
}

/* 1. Header & Navigation (Pink Logo, White links, Pink hover) */
.logo {
    color: var(--color-magenta) !important; /* Pink logo as requested */
}
.nav-link {
    color: #ffffff !important;
    transition: var(--transition-fast) !important;
}
.nav-link:hover {
    color: var(--color-magenta) !important; /* Pink hover text */
}
.nav-link::after {
    background-color: var(--color-magenta) !important;
}
.social-link svg {
    fill: #ffffff !important;
}

/* 2. Hero Section (Pure Black background, Green grid/wave lines, Pink title) */
.hero-grid-overlay {
    background-color: transparent !important; /* Transparent so video background shows through */
    background-image: 
        linear-gradient(to right, rgba(0, 229, 109, 0.22) 1.5px, transparent 1.5px),
        linear-gradient(to bottom, rgba(0, 229, 109, 0.22) 1.5px, transparent 1.5px) !important; /* Neon Green grid lines */
}

.hero-title {
    color: var(--color-magenta) !important; /* Neon Pink title */
}

.hero-rotating-badge {
    background-color: #ffe600 !important; /* Vibrant yellow background */
    border-radius: 50%;
    box-shadow: 0 10px 30px rgba(255, 230, 0, 0.3) !important;
}
.badge-text {
    fill: #ffffff !important; /* White text on yellow background */
    stroke: #020203 !important; /* Dark outline for readability */
    stroke-width: 0.25px !important;
    font-weight: 800;
}

/* 2.1 Top Marquee */
.top-marquee-section {
    background: #020203 !important;
    border-top: 2px solid var(--color-magenta) !important;
    border-bottom: 2px solid var(--color-magenta) !important;
}
.top-marquee-inner {
    color: var(--color-yellow) !important; /* Neon yellow marquee text */
    font-weight: 800;
}

/* 3. Story & Manifesto Section */
.story-fixed-scroll-section {
    border-bottom: 2px solid rgba(255, 102, 217, 0.15) !important;
}
.story-tag {
    color: var(--color-blue) !important; /* Neon Cyan tag */
}
.story-title-highlight {
    color: var(--color-yellow) !important; /* Neon Yellow heading */
}
.reveal-paragraph {
    color: rgba(255, 255, 255, 0.85) !important; /* White body paragraphs */
}
.massive-text {
    color: #ffffff !important;
}
.magnificent-text {
    color: var(--color-magenta) !important; /* Neon Pink serif emphasis */
}

/* 4. Projects Showcase (Work) Section */
.work-section {
    background-color: #020203 !important;
}
.work-section .section-title {
    color: var(--color-blue) !important; /* Neon Cyan */
}
.work-section .filter-btn {
    color: #ffffff !important;
    border-color: rgba(255, 255, 255, 0.2) !important;
    background: transparent !important;
}
.work-section .filter-btn.active {
    background-color: var(--color-magenta) !important; /* Neon Pink background */
    color: #020203 !important; /* Black text */
    border-color: var(--color-magenta) !important;
    font-weight: 800;
}
.project-block {
    background-color: #0c0c0e !important; /* Deepest grey card */
    border: 1px solid rgba(255, 102, 217, 0.1) !important;
}
.project-tag {
    color: var(--color-green) !important; /* Neon Green project tag */
}
.project-title {
    color: #ffffff !important;
}
.project-desc {
    color: #a69f98 !important;
}
.project-details-layout {
    border-top: 1px solid rgba(255, 255, 255, 0.08) !important;
}

/* 5. About Section */
.about-badge {
    color: var(--color-blue) !important; /* Cyan badge */
    background-color: rgba(115, 230, 241, 0.1) !important;
}
.about-title {
    color: var(--color-magenta) !important; /* Neon Pink */
}
.about-p {
    color: rgba(255, 255, 255, 0.9) !important;
}
.about-stat-number {
    color: var(--color-yellow) !important; /* Neon Yellow stats */
}
.about-stat-label {
    color: #a69f98 !important;
}
.about-frame-sticker {
    background-color: var(--color-yellow) !important; /* Neon Yellow sticker */
    color: #020203 !important; /* Black text */
    font-weight: 800;
}

/* 6. Contact & Footer Section */
.contact-section {
    background-color: #020203 !important;
}
.contact-section .marquee-wrapper {
    background-color: #020203 !important;
    border-top: 2px solid var(--color-green) !important;
    border-bottom: 2px solid var(--color-green) !important;
}
.contact-section .marquee-content span {
    color: var(--color-green) !important; /* Neon Green contact marquee */
    font-weight: 800;
}
.contact-heading {
    color: var(--color-blue) !important; /* Neon Cyan contact heading */
}
.contact-p {
    color: #a69f98 !important;
}
.contact-label {
    color: var(--color-magenta) !important; /* Neon Pink label */
}
.contact-link {
    color: #ffffff !important;
}
.contact-link::after {
    background-color: var(--color-magenta) !important;
}
.form-label {
    color: #a69f98 !important;
}
.form-input {
    color: #ffffff !important;
    border-bottom: 2px solid rgba(255, 255, 255, 0.1) !important;
    background: transparent !important;
}
.form-input:focus {
    border-bottom: 2px solid var(--color-blue) !important; /* Cyan input focus line */
}
.form-input:focus ~ .form-label,
.form-input:not(:placeholder-shown) ~ .form-label {
    color: var(--color-blue) !important;
}
.submit-btn {
    background-color: var(--color-yellow) !important; /* Neon Yellow submit button */
    color: #020203 !important; /* Black text */
    font-weight: 800;
}
.submit-btn:hover {
    background-color: var(--color-green) !important;
    color: #020203 !important;
}
.footer-copy {
    color: #a69f98 !important;
    opacity: 0.5;
}
.main-footer {
    border-top: 1px solid rgba(255, 255, 255, 0.05) !important;
}

/* ==========================================================================
   Portfolio Grid Page (work.html) Styles
   ========================================================================== */
.portfolio-grid-section {
    padding: 100px 0;
    min-height: 100vh;
    background-color: #020203;
    position: relative;
    z-index: 2;
}

.portfolio-grid-header {
    text-align: center;
    padding-top: 100px;
    margin-bottom: 2rem;
}

.portfolio-subheading {
    font-family: 'Outfit', sans-serif;
    font-size: 1.1rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 4px;
    color: var(--color-green);
    display: block;
    margin-bottom: 1rem;
}

.portfolio-heading {
    font-family: 'Syne', sans-serif;
    font-size: clamp(3.5rem, 8vw, 7.5rem);
    font-weight: 800;
    text-transform: uppercase;
    color: var(--color-text-white);
    line-height: 0.8;
    margin: 0;
    transform: scaleY(1.3);
    transform-origin: center center;
}

.portfolio-filters {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin: 4rem 0 6rem 0;
    padding: 0 20px;
}

.filter-group {
    position: relative;
    width: 280px;
}

.filter-select {
    width: 100%;
    height: 60px;
    background: transparent;
    border: 2px solid var(--color-magenta);
    color: var(--color-text-white);
    font-family: 'Outfit', sans-serif;
    font-size: 1.1rem;
    font-weight: 500;
    padding: 0 25px;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    outline: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    transition: all 0.3s ease;
    border-radius: 0;
}

.filter-group:nth-child(2) .filter-select {
    border-color: var(--color-green);
}

.filter-group::after {
    content: '';
    position: absolute;
    right: 25px;
    top: 50%;
    transform: translateY(-50%);
    width: 12px;
    height: 8px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 6' fill='none'%3E%3Cpath d='M1 1L5 5L9 1' stroke='%23FF66D9' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-size: contain;
    background-repeat: no-repeat;
    pointer-events: none;
    transition: transform 0.3s ease;
}

.filter-group:nth-child(2)::after {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 6' fill='none'%3E%3Cpath d='M1 1L5 5L9 1' stroke='%2300E56D' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}

.filter-select:focus {
    box-shadow: 0 0 15px rgba(255, 102, 217, 0.3);
}

.filter-group:nth-child(2) .filter-select:focus {
    box-shadow: 0 0 15px rgba(0, 229, 109, 0.3);
}

/* Styled options for dark theme */
.filter-select option {
    background-color: #121214;
    color: #ffffff;
    padding: 15px;
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 var(--container-padding) 100px var(--container-padding);
}

.grid-item {
    position: relative;
    overflow: hidden;
    background-color: #121214;
    aspect-ratio: 1/1;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: border-color 0.3s ease;
}

.grid-item.hide {
    display: none !important;
}

.grid-item:hover {
    border-color: var(--color-magenta);
}

.grid-item a {
    display: block;
    width: 100%;
    height: 100%;
    position: relative;
    overflow: hidden;
}

.grid-item img,
.grid-item video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.grid-item:hover img,
.grid-item:hover video {
    transform: scale(1.08);
}

.grid-item span.name {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.4s ease, transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 10;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: center;
    background: linear-gradient(180deg, rgba(2, 2, 3, 0) 30%, rgba(2, 2, 3, 0.95) 90%);
    color: var(--color-text-white);
    font-family: 'Syne', sans-serif;
    font-size: 1.6rem;
    font-weight: 700;
    text-transform: uppercase;
    text-align: center;
    padding: 30px;
    line-height: 1.1;
    box-sizing: border-box;
}

.grid-item:hover span.name {
    opacity: 1;
    transform: translateY(0);
}

.grid-item span.name .tags {
    font-family: 'Outfit', sans-serif;
    text-transform: uppercase;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--color-magenta);
    letter-spacing: 1px;
    margin-top: 10px;
}

/* Responsiveness */
@media (max-width: 1024px) {
    .portfolio-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media (max-width: 768px) {
    .portfolio-grid {
        grid-template-columns: 1fr;
    }
    .portfolio-filters {
        flex-direction: column;
        align-items: center;
        gap: 15px;
    }
    .filter-group {
        width: 100%;
        max-width: 320px;
    }
}


