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

html {
    scroll-behavior: smooth;
}

:root {
    --nav-height: 80px;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: #e0e0e0;
    background-color: #0a0a0a;
    overflow-x: hidden;
    cursor: none !important;
}

body.mobile-blocked {
    overflow: hidden;
}

/* Hide all page content when mobile blocked */
.mobile-blocked-immediate *:not(.mobile-block-screen):not(.mobile-block-screen *),
body.mobile-blocked *:not(.mobile-block-screen):not(.mobile-block-screen *) {
    display: none !important;
    opacity: 0 !important;
    visibility: hidden !important;
}

.mobile-blocked-immediate main,
.mobile-blocked-immediate header,
.mobile-blocked-immediate footer,
.mobile-blocked-immediate canvas,
.mobile-blocked-immediate .custom-cursor,
.mobile-blocked-immediate .custom-cursor-dot,
.mobile-blocked-immediate .easter-egg-hint,
.mobile-blocked-immediate .back-to-top,
.mobile-blocked-immediate .back-button,
.mobile-blocked-immediate .assistant-app,
body.mobile-blocked main,
body.mobile-blocked header,
body.mobile-blocked footer,
body.mobile-blocked canvas,
body.mobile-blocked .custom-cursor,
body.mobile-blocked .custom-cursor-dot,
body.mobile-blocked .easter-egg-hint,
body.mobile-blocked .back-to-top,
body.mobile-blocked .back-button,
body.mobile-blocked .assistant-app {
    display: none !important;
}

.mobile-blocked-immediate .mobile-block-screen,
body.mobile-blocked .mobile-block-screen {
    display: flex !important;
}

/* Hide vignette on mobile */
.mobile-blocked-immediate body::after,
body.mobile-blocked::after {
    display: none !important;
}

/* Post-Processing Effects - Vignette */
body::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 9998;
    /* Vignette - Subtle */
    background: radial-gradient(ellipse at center, transparent 0%, transparent 50%, rgba(0, 0, 0, 0.3) 90%, rgba(0, 0, 0, 0.5) 100%);
    opacity: 1;
}

*,
*::before,
*::after,
html,
body,
div,
a,
button,
input,
textarea,
select {
    cursor: none !important;
}

a {
    color: #e0e0e0;
    text-decoration: none;
    transition: all 0.3s ease;
}

/* ============================================
   MOBILE BLOCK SCREEN
   ============================================ */

.mobile-block-screen {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    height: 100dvh;
    background: #0a0a0a;
    z-index: 99999;
    overflow: hidden;
}

.mobile-block-screen * {
    cursor: auto !important;
}

.mobile-block-screen.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.mobile-block-content {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-evenly;
    padding: 1.5rem;
    text-align: center;
    gap: 1rem;
    max-width: 500px;
    margin: 0 auto;
}

.mobile-block-content h1 {
    font-size: 1.5rem;
    color: #fff;
    margin: 0;
    flex-shrink: 0;
}

.mobile-block-content > p {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.5;
    margin: 0;
    flex-shrink: 0;
}

.mobile-showreel {
    width: 100%;
    flex-shrink: 1;
    min-height: 0;
}

.mobile-showreel h2 {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 0.75rem;
}

.mobile-video-wrapper {
    width: 100%;
    border-radius: 12px;
    overflow: hidden;
    background: #000;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.mobile-video-wrapper video {
    width: 100%;
    display: block;
    max-height: 40vh;
    object-fit: contain;
}

.mobile-contact {
    width: 100%;
    flex-shrink: 0;
}

.mobile-contact h3 {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 0.75rem;
}

.contact-links {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.contact-links a {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.85rem;
    padding: 0.6rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    transition: all 0.3s ease;
}

.contact-links a:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
    color: #fff;
}

/* Custom Cursor - Metamorphosis Theme */
.custom-cursor {
    position: fixed;
    top: -10px;
    left: -10px;
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255, 255, 255, 0.8);
    border-radius: 50%;
    pointer-events: none;
    z-index: 10000;
    transition: width 0.15s ease, height 0.15s ease, top 0.15s ease, left 0.15s ease;
    will-change: transform;
    opacity: 0;
    display: block;
}

.custom-cursor-dot {
    position: fixed;
    top: -3px;
    left: -3px;
    width: 6px;
    height: 6px;
    background-color: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    pointer-events: none;
    z-index: 10001;
    transition: width 0.1s ease, height 0.1s ease;
    will-change: transform;
    opacity: 0;
    display: block;
}

/* Mouse Trail Particles */
.mouse-particle {
    position: fixed;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    pointer-events: none;
    z-index: 9999;
    transform: translate(-50%, -50%);
    opacity: 0.6;
}

/* Floating Shapes */
.floating-shape {
    position: absolute;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255,255,255,0.03) 0%, rgba(255,255,255,0) 70%);
    pointer-events: none;
    z-index: 0;
    filter: blur(40px);
}

/* Text Scramble Effect */
.dud {
    color: rgba(255, 255, 255, 0.3);
}

.custom-cursor.hover {
    width: 50px;
    height: 50px;
    top: -25px;
    left: -25px;
    border-color: #fff;
    background-color: rgba(255, 255, 255, 0.1);
}

.custom-cursor-dot.hover {
    width: 8px;
    height: 8px;
    top: -4px;
    left: -4px;
}

/* Three.js Shader Background - Hero Only */
#shader-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1;
    cursor: none !important;
}

/* Squares Grid Background - All Other Sections */
#squares-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1;
    pointer-events: auto;
    opacity: 0;
    transition: opacity 0.5s ease;
}

/* Show squares after hero, hide on hero */
body.scrolled #squares-background {
    opacity: 1;
}

.hero {
    position: relative;
    z-index: 1;
}

/* Shader Controls */
.shader-controls {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    z-index: 1000;
}

.shader-control-toggle {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: rgba(0, 0, 0, 0.8);
    border: 2px solid rgba(255, 255, 255, 0.2);
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.shader-control-toggle:hover {
    background-color: rgba(0, 0, 0, 0.95);
    transform: scale(1.05);
    border-color: rgba(255, 255, 255, 0.4);
}

.shader-options {
    position: absolute;
    bottom: 70px;
    right: 0;
    background-color: rgba(0, 0, 0, 0.95);
    border-radius: 12px;
    padding: 1.5rem;
    min-width: 250px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease;
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.shader-controls:hover .shader-options,
.shader-control-toggle:focus + .shader-options {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.shader-options h3 {
    color: #fff;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 1rem;
    font-weight: 600;
}

.shader-buttons {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.shader-btn {
    padding: 0.75rem 1rem;
    background-color: rgba(255, 255, 255, 0.1);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    text-align: left;
    font-weight: 500;
}

.shader-btn:hover {
    background-color: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.4);
    transform: translateX(4px);
}

.shader-btn.active {
    background-color: #fff;
    color: #000;
    border-color: #fff;
}

.shader-btn.active:hover {
    transform: translateX(4px);
}

/* Header and Navigation */
header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background-color: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding: 1.5rem 2rem;
    z-index: 9999;
    transition: all 0.3s ease;
}

header.scrolled {
    padding: 1rem 2rem;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.5);
    border-bottom-color: rgba(255, 255, 255, 0.15);
}

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

.logo a {
    font-size: 1.2rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.logo-image {
    height: 40px;
    width: auto;
    transition: transform 0.3s ease;
}

.logo-text {
    color: #fff;
    font-size: 1.2rem;
    font-weight: 600;
    transition: opacity 0.3s ease;
}

.logo a:hover .logo-image {
    transform: scale(1.05);
}

.logo a:hover .logo-text {
    opacity: 0.8;
}

.nav-links {
    display: flex;
    gap: 2rem;
    list-style: none;
}

.nav-link {
    position: relative;
    font-weight: 500;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: #fff;
    transition: width 0.3s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

/* Main Content */
main {
    padding-top: var(--nav-height);
}

/* Sections */
.section {
    min-height: 100vh;
    padding: 6rem clamp(2rem, 5vw, 4rem);
    width: 100%;
    margin: 0;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-header h2 {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.section-description {
    font-size: 1.2rem;
    color: #666;
    max-width: 600px;
    margin: 0 auto;
}

/* Hero Section - Minimalist & Clean */
.hero {
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding-top: 12rem !important;
}

.hero-content {
    max-width: 900px;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
}

.hero-label {
    display: inline-block;
    margin-bottom: 0.5rem;
}

.hero-label span {
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.5);
    padding: 0.5rem 1rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 100px;
    background: rgba(255, 255, 255, 0.02);
    backdrop-filter: blur(10px);
}

.hero-title {
    margin: 0;
    padding: 0;
}

.hero-name {
    font-size: clamp(3rem, 10vw, 7rem);
    font-weight: 600;
    line-height: 1;
    letter-spacing: -0.02em;
    color: #ffffff;
    display: block;
    transition: filter 0.3s ease;
}

.hero-name:hover {
    filter: drop-shadow(4px 0 0 rgba(255, 0, 0, 0.4)) drop-shadow(-4px 0 0 rgba(0, 255, 255, 0.4));
}

.hero-tagline {
    font-size: clamp(1rem, 2vw, 1.25rem);
    max-width: 600px;
    margin: 0;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.6);
    font-weight: 400;
}

.hero-cta {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 1rem;
}

.cta-button,
.cta-button-outline {
    padding: 0.875rem 2rem;
    font-size: 0.95rem;
    font-weight: 500;
    border-radius: 4px;
    transition: all 0.3s ease;
    display: inline-block;
    position: relative;
    text-decoration: none;
    letter-spacing: 0.02em;
}

.cta-button {
    background-color: #fff;
    color: #000;
    border: 1px solid #fff;
}

.cta-button:hover {
    background-color: rgba(255, 255, 255, 0.9);
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(255, 255, 255, 0.2);
    filter: drop-shadow(3px 0 0 rgba(255, 0, 0, 0.3)) drop-shadow(-3px 0 0 rgba(0, 255, 255, 0.3));
}

.cta-button-outline {
    background-color: transparent;
    color: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.cta-button-outline:hover {
    background-color: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.4);
    color: #fff;
    filter: drop-shadow(3px 0 0 rgba(255, 0, 0, 0.3)) drop-shadow(-3px 0 0 rgba(0, 255, 255, 0.3));
}

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 3rem;
    left: 0;
    right: 0;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    animation: float 2s ease-in-out infinite;
    text-align: center;
    width: fit-content;
}

.scroll-indicator span {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #666;
    text-align: center;
}

.scroll-arrow {
    width: 24px;
    height: 24px;
    border-left: 2px solid #fff;
    border-bottom: 2px solid #fff;
    transform: rotate(-45deg);
}

@keyframes float {
    0%, 100% {
        transform: translateX(-50%) translateY(0);
    }
    50% {
        transform: translateX(-50%) translateY(10px);
    }
}

/* ============================================
   SHOWREEL SECTION - Scroll Expansion
   ============================================ */

.showreel {
    background: #0a0a0a;
    padding: 8rem clamp(2rem, 5vw, 4rem);
    width: 100%;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.showreel .section-header {
    margin-bottom: 4rem;
    padding: 0;
}

.showreel-container {
    width: 100%;
    max-width: 100%;
    padding: 0 clamp(2rem, 5vw, 4rem);
    display: flex;
    justify-content: center;
    align-items: center;
}

.video-wrapper {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    border-radius: 20px;
    overflow: hidden;
    background: #000;
    border: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow:
        0 20px 60px rgba(0, 0, 0, 0.6),
        0 0 0 1px rgba(255, 255, 255, 0.05) inset;
    transform: scale(1);
    opacity: 1;
    transition: box-shadow 0.4s ease;
}

.expansion-scroll-hint {
    position: absolute;
    bottom: 10vh;
    left: 50%;
    transform: translateX(-50%);
    z-index: 5;
    text-align: center;
    pointer-events: none;
}

.expansion-scroll-hint span {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.6);
    text-transform: uppercase;
    letter-spacing: 0.2em;
    display: block;
    animation: pulseHint 2s ease-in-out infinite;
}

@keyframes pulseHint {
    0%, 100% {
        opacity: 0.6;
        transform: translateY(0);
    }
    50% {
        opacity: 1;
        transform: translateY(-5px);
    }
}

.showreel-video {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

.video-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.2);
    opacity: 1;
    transition: all 0.4s ease;
    pointer-events: none;
}

.video-wrapper.playing .video-overlay {
    opacity: 0;
}

.play-button {
    width: 100px;
    height: 100px;
    background: transparent;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    pointer-events: auto;
    display: flex;
    align-items: center;
    justify-content: center;
}

.play-button:hover {
    transform: scale(1.15);
}

.play-button svg {
    filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.5));
    transform: translateX(2px);
}

.video-wrapper.playing .play-button {
    display: none;
}

@media (max-width: 768px) {
    .showreel {
        padding: 0;
        min-height: 80vh;
    }

    .showreel .section-header {
        margin-bottom: 2rem;
    }

    .showreel-container {
        padding: 0 1.5rem;
    }

    .video-wrapper {
        border-radius: 16px;
    }

    .play-button {
        width: 70px;
        height: 70px;
    }

    .play-button svg {
        width: 50px;
        height: 50px;
    }

    .expansion-scroll-hint {
        bottom: 8vh;
    }

    .expansion-scroll-hint span {
        font-size: 0.75rem;
    }
}

/* ============================================
   PROJECTS SECTION - Cinematic 3D Carousel
   ============================================ */

.projects {
    background: #000000;
    position: relative;
    max-width: none;
    width: 100%;
    min-height: calc(100vh - var(--nav-height));
    padding: calc(var(--nav-height) + 2rem) clamp(2rem, 4vw, 6rem) clamp(3rem, 6vh, 4rem);
    margin: 0;
    overflow: hidden;
    perspective: 1600px;
    perspective-origin: 50% 50%;
}

/* Ambient lighting gradient */
.projects::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(ellipse at center, rgba(40, 40, 40, 0.3) 0%, transparent 70%);
    pointer-events: none;
    z-index: 1;
}

.projects::after {
    content: '';
    position: absolute;
    top: -12vh;
    left: 0;
    right: 0;
    height: 16vh;
    background: radial-gradient(80% 120% at 50% 0%, rgba(0, 0, 0, 0.85) 0%, transparent 80%);
    pointer-events: none;
    z-index: 0;
}

.projects-wrapper {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    gap: clamp(2rem, 5vh, 4rem);
    height: 100%;
}

/* Header */
.projects-header-fixed {
    position: sticky;
    top: calc(var(--nav-height) + clamp(1rem, 4vh, 2rem));
    z-index: 5;
    display: flex;
    align-items: baseline;
    gap: 2.5rem;
    padding-inline: clamp(0rem, 3vw, 2rem);
}

.projects-title {
    font-size: clamp(2rem, 4vw, 3.5rem);
    font-weight: 700;
    background: linear-gradient(135deg, #ffffff 0%, #888888 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -0.03em;
}

.project-counter {
    font-size: 1rem;
    font-weight: 300;
    display: flex;
    gap: 0.5rem;
    align-items: baseline;
    color: rgba(255, 255, 255, 0.6);
}

.current-project-num {
    font-size: 2rem;
    font-weight: 700;
    line-height: 1;
    color: #ffffff;
}

.counter-divider {
    color: rgba(255, 255, 255, 0.3);
}

.total-projects-num {
    color: rgba(255, 255, 255, 0.4);
}

.projects-stage {
    position: relative;
    flex: 1;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: clamp(1.5rem, 3vh, 2.5rem) clamp(0rem, 3vw, 2rem);
    overflow: visible;
    transform-style: preserve-3d;
}

.projects-stage::before,
.projects-stage::after {
    content: '';
    position: absolute;
    inset: 12%;
    border-radius: 32px;
    background: radial-gradient(circle at 20% 20%, rgba(120, 160, 255, 0.08), transparent 65%);
    filter: blur(40px);
    transform: translateZ(-400px);
    pointer-events: none;
    z-index: 0;
}

.projects-stage::after {
    inset: 10%;
    background: radial-gradient(circle at 80% 30%, rgba(255, 122, 184, 0.06), transparent 60%);
    transform: translateZ(-380px) rotate(8deg);
}

.projects-stage-inner-glow {
    position: absolute;
    inset: 0;
    border-radius: 36px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.06) 0%, rgba(255, 255, 255, 0) 70%);
    pointer-events: none;
    z-index: 1;
}

.projects-container {
    position: relative;
    width: 100%;
    height: 100%;
    transform-style: preserve-3d;
    z-index: 2;
}

/* Project Card - Cinematic 3D */
.project-slide {
    position: absolute;
    top: 50%;
    left: 50%;
    width: clamp(60vw, 68vw, 1040px);
    height: clamp(28rem, 68vh, 780px);
    display: block;
    transition: transform 0.65s cubic-bezier(0.18, 0.82, 0.26, 0.99), opacity 0.45s ease;
    transform-style: preserve-3d;
    will-change: transform, opacity;
    pointer-events: none;
    --tilt-x: 0deg;
    --tilt-y: 0deg;
    --glow-strength: 0.32;
    --emphasis-level: 0;
    --depth-factor: 0;
    --project-primary: #60a5fa;
    --project-secondary: #34d399;
    --project-tertiary: #f472b6;
    contain: layout paint style;
}

.project-content {
    width: 100%;
    height: 100%;
    position: relative;
    display: block;
    text-decoration: none;
    transform-style: preserve-3d;
}

.project-visual {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
    transform-style: preserve-3d;
}

.project-media {
    position: relative;
    width: min(72vw, 880px);
    aspect-ratio: 16 / 9;
    border-radius: 28px;
    overflow: hidden;
    background-image: var(--project-art, linear-gradient(155deg, #161821 0%, #080b12 100%));
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    box-shadow:
        0 48px 120px -24px rgba(0, 0, 0, 0.74),
        0 28px 60px -20px rgba(0, 0, 0, 0.6),
        inset 0 1px 0 rgba(255, 255, 255, 0.08);
    transform: translateZ(calc(-90px + var(--depth-factor) * 60px)) rotateX(var(--tilt-x)) rotateY(var(--tilt-y));
    filter: brightness(calc(0.82 + var(--emphasis-level) * 0.28)) saturate(calc(1 + var(--emphasis-level) * 0.45));
    transition: transform 0.5s ease, filter 0.5s ease, box-shadow 0.5s ease;
    backface-visibility: hidden;
    will-change: transform, filter;
}

.project-slide.theme-chernobyl {
    --project-primary: #f97316;
    --project-secondary: #38bdf8;
    --project-tertiary: #a855f7;
    --project-art:
        linear-gradient(180deg, rgba(4, 7, 15, 0.4), rgba(3, 6, 12, 0.95)),
        radial-gradient(circle at 18% 26%, rgba(249, 115, 22, 0.72), transparent 58%),
        radial-gradient(circle at 78% 18%, rgba(56, 189, 248, 0.55), transparent 60%),
        radial-gradient(circle at 56% 82%, rgba(168, 85, 247, 0.32), transparent 68%),
        linear-gradient(155deg, #04060f 0%, #101a2a 48%, #060a10 100%);
}

.project-slide.theme-race {
    --project-primary: #facc15;
    --project-secondary: #ef4444;
    --project-tertiary: #22d3ee;
    --project-art:
        linear-gradient(195deg, rgba(8, 4, 12, 0.3), rgba(4, 4, 10, 0.9)),
        radial-gradient(circle at 16% 32%, rgba(239, 68, 68, 0.58), transparent 58%),
        radial-gradient(circle at 76% 20%, rgba(250, 204, 21, 0.52), transparent 58%),
        radial-gradient(circle at 48% 78%, rgba(34, 211, 238, 0.32), transparent 68%),
        linear-gradient(165deg, #0a0610 0%, #1a0f1f 50%, #05030a 100%);
}

.project-slide.theme-sahur {
    --project-primary: #22d3ee;
    --project-secondary: #22c55e;
    --project-tertiary: #f472b6;
    --project-art:
        linear-gradient(175deg, rgba(3, 9, 18, 0.35), rgba(6, 12, 18, 0.92)),
        radial-gradient(circle at 20% 26%, rgba(34, 211, 238, 0.55), transparent 60%),
        radial-gradient(circle at 78% 22%, rgba(34, 197, 94, 0.52), transparent 60%),
        radial-gradient(circle at 42% 80%, rgba(244, 114, 182, 0.35), transparent 70%),
        linear-gradient(150deg, #041018 0%, #122636 50%, #050e16 100%);
}

.project-slide.theme-milly {
    --project-primary: #a855f7;
    --project-secondary: #22d3ee;
    --project-tertiary: #f9a8d4;
    --project-art:
        linear-gradient(165deg, rgba(12, 8, 18, 0.35), rgba(10, 12, 20, 0.92)),
        radial-gradient(circle at 18% 24%, rgba(168, 85, 247, 0.6), transparent 58%),
        radial-gradient(circle at 78% 24%, rgba(34, 211, 238, 0.45), transparent 60%),
        radial-gradient(circle at 52% 82%, rgba(249, 168, 212, 0.35), transparent 72%),
        linear-gradient(150deg, #0a0712 0%, #1a1932 52%, #060710 100%);
}

.project-slide.theme-francois {
    --project-primary: #fb7185;
    --project-secondary: #38bdf8;
    --project-tertiary: #facc15;
    --project-art:
        linear-gradient(180deg, rgba(12, 6, 14, 0.35), rgba(8, 6, 10, 0.94)),
        radial-gradient(circle at 24% 28%, rgba(251, 113, 133, 0.62), transparent 58%),
        radial-gradient(circle at 78% 22%, rgba(56, 189, 248, 0.48), transparent 58%),
        radial-gradient(circle at 46% 80%, rgba(250, 204, 21, 0.32), transparent 72%),
        linear-gradient(158deg, #100612 0%, #201023 52%, #0a0410 100%);
}

.project-media::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(145deg, rgba(255, 255, 255, 0.18), rgba(255, 255, 255, 0) 55%),
        repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.06) 0, rgba(255, 255, 255, 0.06) 2px, transparent 2px, transparent 8px),
        linear-gradient(0deg, rgba(0, 0, 0, 0.3), transparent 35%);
    mix-blend-mode: screen;
    opacity: 0.68;
    pointer-events: none;
    z-index: 1;
}

.project-media::after {
    content: '';
    position: absolute;
    inset: -25%;
    background: radial-gradient(circle at 50% 0%, rgba(255, 255, 255, 0.35), rgba(255, 255, 255, 0));
    mix-blend-mode: screen;
    opacity: var(--glow-strength);
    transform: translateZ(40px);
    transition: opacity 0.4s ease;
    pointer-events: none;
}

.project-details {
    position: absolute;
    right: clamp(3vw, 7%, 110px);
    top: 50%;
    width: clamp(260px, 26vw, 380px);
    padding: clamp(2rem, 4vw, 3rem);
    background: linear-gradient(160deg, rgba(8, 8, 14, 0.92), rgba(16, 16, 24, 0.78));
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 22px;
    box-shadow:
        0 30px 70px rgba(0, 0, 0, 0.55),
        inset 0 1px 0 rgba(255, 255, 255, 0.06),
        0 0 45px -14px var(--project-primary);
    transform: translateY(-50%) translateZ(220px);
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
    pointer-events: auto;
    backdrop-filter: blur(22px);
    transition: box-shadow 0.45s ease, transform 0.45s ease;
}

.project-details::before {
    content: '';
    position: absolute;
    inset: -1px;
    border-radius: inherit;
    border: 1px solid rgba(255, 255, 255, 0.12);
    opacity: 0.3;
    pointer-events: none;
}

.project-details::after {
    content: '';
    position: absolute;
    bottom: clamp(1.2rem, 2.6rem, 2rem);
    left: clamp(2rem, 4vw, 2.4rem);
    width: 52px;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--project-primary), transparent);
    opacity: 0.65;
    pointer-events: none;
}

.project-number {
    font-size: clamp(3.2rem, 6vw, 5rem);
    font-weight: 700;
    line-height: 0.9;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.34) 0%, rgba(255, 255, 255, 0.08) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: absolute;
    top: -3.2rem;
    right: clamp(1rem, 3vw, 2.2rem);
}

.project-name {
    font-size: clamp(1.6rem, 3.4vw, 2.4rem);
    font-weight: 700;
    color: #ffffff;
    line-height: 1.18;
    margin: 0;
}

.project-type {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 2.4px;
    color: rgba(255, 255, 255, 0.55);
    font-weight: 500;
    margin: 0;
}

.project-desc {
    font-size: 1rem;
    line-height: 1.65;
    color: rgba(255, 255, 255, 0.74);
    margin: 0.75rem 0 0;
}

.project-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.92rem;
    font-weight: 600;
    color: #ffffff;
    padding: 0.9rem 0 0.3rem;
    border-bottom: 2px solid rgba(255, 255, 255, 0.28);
    width: fit-content;
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.project-cta:hover {
    border-bottom-color: #ffffff;
    transform: translateX(10px);
}

.project-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.02));
    border-radius: 16px;
    min-height: 240px;
    color: rgba(255, 255, 255, 0.55);
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.project-slide.is-active {
    pointer-events: auto;
}

.project-slide.is-active .project-details,
.project-slide.is-hovered .project-details {
    box-shadow:
        0 38px 80px rgba(0, 0, 0, 0.6),
        inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.project-slide.is-active:not(.is-hovered) .project-details {
    transform: translateY(-50%) translateZ(220px);
}

.project-slide.is-hovered .project-details {
    transform: translateY(-52%) translateZ(260px);
}

.project-slide.is-hovered .project-media {
    box-shadow:
        0 52px 120px -18px rgba(0, 0, 0, 0.78),
        0 0 60px -18px var(--project-secondary),
        inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

/* Scroll Progress Indicator */
.scroll-hint {
    position: absolute;
    bottom: 3rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 100;
    color: rgba(255, 255, 255, 0.3);
    font-size: 0.85rem;
    font-weight: 300;
    letter-spacing: 2px;
    text-transform: uppercase;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.scroll-hint::after {
    content: '';
    width: 1px;
    height: 30px;
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0.3), transparent);
    animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {
    0%, 100% {
        opacity: 0.3;
        transform: translateY(0);
    }
    50% {
        opacity: 1;
        transform: translateY(10px);
    }
}

/* Streamline Studios Section */
.streamline-content {
    display: flex;
    flex-direction: column;
    gap: 4rem;
    align-items: center;
    text-align: center;
}

.streamline-info {
    max-width: 900px;
}

.streamline-info h3 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
}

.streamline-info p {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 2rem;
}

.streamline-highlights {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 3rem;
}

.highlight-item h4 {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #666;
    margin-bottom: 0.5rem;
}

.highlight-item p {
    font-size: 1.2rem;
    font-weight: 600;
    margin: 0;
}

.streamline-showcase {
    width: 100%;
}

.streamline-showcase h3 {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    text-align: center;
    color: rgba(255, 255, 255, 0.6);
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 300;
}

/* Infinite Slider */
/* Client Wheel - Scroll-driven vertical rotation */
.client-wheel-container {
    position: relative;
    width: 100%;
    min-height: 120vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4rem 0;
    overflow: visible;
}

.client-wheel {
    display: flex;
    flex-direction: column;
    gap: 3rem;
    width: 100%;
    max-width: 600px;
    padding: 2rem;
}

.wheel-item {
    padding: 1.5rem 2.5rem;
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.8rem;
    font-weight: 600;
    text-align: center;
    white-space: nowrap;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
    transition: opacity 0.2s ease, transform 0.2s ease;
    transform-origin: center;
}

/* About Section */
.about {
    background-color: #0f0f0f;
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 4rem;
    width: 100%;
}

.portrait-placeholder {
    aspect-ratio: 3 / 4;
    background: linear-gradient(135deg, #1a1a1a 0%, #2a2a2a 100%);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    color: #666;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.portrait-image {
    width: 100%;
    aspect-ratio: 3 / 4;
    object-fit: cover;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: block;
}

.about-text {
    display: contents;
}

.bio {
    grid-column: 2;
}

.skills {
    grid-column: 1 / -1;
    display: flex;
    flex-direction: column;
    gap: 2rem;
    align-items: stretch;
    width: 100%;
    margin: 3rem 0 0;
    text-align: center;
}

.bio p {
    font-size: 1.2rem;
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

.skills h3 {
    font-size: 1.8rem;
    margin-bottom: 0;
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    width: 100%;
}

.skill-item {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 2rem;
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
    text-align: left;
    transition: all 0.3s ease;
}

.skill-item:hover {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(255, 255, 255, 0.15);
    transform: translateY(-2px);
}

.skill-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    flex: 0 0 48px;
    color: #fff;
}

.skill-content {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    flex: 1;
}

.skill-item h4 {
    font-size: 1.1rem;
    margin: 0;
    font-weight: 600;
    color: #fff;
}

.skill-item p {
    font-size: 0.95rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.6);
    margin: 0;
}

/* Removed Education and Client sections */
.education-item h4 {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.education-item p {
    font-size: 1.1rem;
    color: #666;
}

/* Clients Section */
.clients {
    margin-top: 3rem;
    padding-top: 3rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.clients h3 {
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
}

.client-list {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.client-tag {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    background: linear-gradient(135deg, rgba(255,255,255,0.1) 0%, rgba(255,255,255,0.05) 100%);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50px;
    font-size: 0.95rem;
    font-weight: 500;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    transform-style: preserve-3d;
    perspective: 1000px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
    cursor: pointer;
}

.client-tag:hover {
    background: linear-gradient(135deg, #ffffff 0%, #e0e0e0 100%);
    color: #000;
    border-color: #fff;
    transform: translateY(-8px) scale(1.05);
    box-shadow: 0 15px 40px rgba(255, 255, 255, 0.3);
}

/* Contact Section */
.contact-content {
    display: flex;
    justify-content: center;
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
}

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

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group label {
    font-weight: 600;
    font-size: 1rem;
}

.form-group input,
.form-group textarea {
    padding: 1rem;
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 4px;
    font-family: inherit;
    font-size: 1rem;
    transition: all 0.3s ease;
    background-color: rgba(255, 255, 255, 0.05);
    color: #e0e0e0;
}

.form-group textarea {
    resize: none;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #fff;
    background-color: rgba(255, 255, 255, 0.08);
}

button[type="submit"] {
    padding: 1rem 2.5rem;
    background-color: #fff;
    color: #000;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1.1rem;
    font-weight: 600;
    align-self: flex-start;
    transition: all 0.3s ease;
}

button[type="submit"]:hover {
    background-color: rgba(255, 255, 255, 0.9);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 255, 255, 0.3);
}

.form-message {
    padding: 1.5rem;
    border-radius: 8px;
    margin-top: 1.5rem;
    text-align: center;
    font-weight: 500;
}

.form-message.success {
    background: rgba(76, 175, 80, 0.1);
    border: 1px solid rgba(76, 175, 80, 0.3);
    color: #4caf50;
}

.form-message.error {
    background: rgba(244, 67, 54, 0.1);
    border: 1px solid rgba(244, 67, 54, 0.3);
    color: #f44336;
}

/* Thank You Modal */
.thank-you-modal {
    display: none !important;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(0, 0, 0, 0.85);
    z-index: 10000;
    backdrop-filter: blur(10px);
    visibility: hidden;
    opacity: 0;
}

.thank-you-modal * {
    cursor: auto !important;
}

.thank-you-modal.active {
    display: flex !important;
    visibility: visible !important;
    opacity: 1 !important;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease;
}

.thank-you-modal-content {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.08) 0%, rgba(255, 255, 255, 0.04) 100%);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 24px;
    padding: 3rem;
    max-width: 500px;
    width: 90%;
    text-align: center;
    position: relative;
    animation: slideUp 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.thank-you-close {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.6);
    font-size: 2rem;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0;
    width: 32px;
    height: 32px;
    line-height: 1;
}

.thank-you-close:hover {
    color: #fff;
    transform: rotate(90deg);
}

.thank-you-modal h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: #fff;
}

.thank-you-modal p {
    font-size: 1.15rem;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.8;
}

.checkmark {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: block;
    stroke-width: 3;
    stroke: #4caf50;
    stroke-miterlimit: 10;
    margin: 0 auto 2rem;
    box-shadow: inset 0px 0px 0px #4caf50;
    animation: fill .4s ease-in-out .4s forwards, scale .3s ease-in-out .9s both;
}

.checkmark-circle {
    stroke-dasharray: 166;
    stroke-dashoffset: 166;
    stroke-width: 3;
    stroke-miterlimit: 10;
    stroke: #4caf50;
    fill: none;
    animation: stroke 0.6s cubic-bezier(0.65, 0, 0.45, 1) forwards;
}

.checkmark-check {
    transform-origin: 50% 50%;
    stroke-dasharray: 48;
    stroke-dashoffset: 48;
    animation: stroke 0.3s cubic-bezier(0.65, 0, 0.45, 1) 0.8s forwards;
}

@keyframes stroke {
    100% {
        stroke-dashoffset: 0;
    }
}

@keyframes scale {
    0%, 100% {
        transform: none;
    }
    50% {
        transform: scale3d(1.1, 1.1, 1);
    }
}

@keyframes fill {
    100% {
        box-shadow: inset 0px 0px 0px 30px rgba(76, 175, 80, 0.1);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.contact-info h3 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
}

.social-links {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.social-link {
    font-size: 1.1rem;
    font-weight: 500;
    padding: 0.75rem 0;
    border-bottom: 2px solid transparent;
    transition: all 0.3s ease;
}

.social-link:hover {
    border-bottom-color: #fff;
    color: #fff;
}

/* Project Modal */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    z-index: 2000;
    overflow-y: auto;
    animation: fadeIn 0.3s ease;
}

.modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.modal-content {
    background-color: #fff;
    width: 100%;
    max-width: 1200px;
    border-radius: 8px;
    position: relative;
    animation: slideUp 0.4s ease;
}

@keyframes slideUp {
    from {
        transform: translateY(50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.modal-close {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    background: none;
    border: none;
    font-size: 2.5rem;
    cursor: pointer;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background-color 0.3s ease;
    z-index: 10;
}

.modal-close:hover {
    background-color: #f0f0f0;
}

.modal-body {
    padding: 3rem;
}

.project-detail-header {
    margin-bottom: 3rem;
}

.project-detail-header h2 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.project-detail-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
}

.main-image-placeholder {
    aspect-ratio: 16 / 10;
    background: linear-gradient(135deg, #f5f5f5 0%, #e0e0e0 100%);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: #999;
    margin-bottom: 1.5rem;
}

.image-gallery {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}

.gallery-placeholder {
    aspect-ratio: 1;
    background: linear-gradient(135deg, #f5f5f5 0%, #e0e0e0 100%);
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    color: #999;
}

.project-description h3 {
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
}

.project-description p {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 2rem;
}

.project-details {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.detail-item h4 {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #666;
    margin-bottom: 0.5rem;
}

.detail-item p {
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0;
}

/* Footer */
.site-footer {
    background-color: #000;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 4rem 0 2rem;
    margin-top: 6rem;
}

.footer-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 clamp(2rem, 5vw, 4rem);
}

.footer-main {
    display: grid;
    grid-template-columns: 1.5fr 2fr;
    gap: 4rem;
    margin-bottom: 3rem;
    padding-bottom: 3rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-logo {
    height: 60px;
    width: auto;
    margin-bottom: 1rem;
}

.footer-brand h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin: 0 0 0.5rem 0;
    color: #fff;
}

.footer-brand p {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.5);
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.footer-column h4 {
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #fff;
    margin: 0 0 1rem 0;
}

.footer-column ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-column li {
    margin-bottom: 0.75rem;
}

.footer-column a {
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    font-size: 0.95rem;
    transition: color 0.3s ease;
}

.footer-column a:hover {
    color: #fff;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-bottom p {
    margin: 0;
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.4);
}

.footer-credit {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.3);
}

@media (max-width: 768px) {
    .site-footer {
        padding: 3rem 0 1.5rem;
    }

    .footer-main {
        grid-template-columns: 1fr;
        gap: 2rem;
        margin-bottom: 2rem;
        padding-bottom: 2rem;
    }

    .footer-links {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 2rem;
    left: 2rem;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: #fff;
    color: #000;
    border: 2px solid #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s ease;
    z-index: 999;
    box-shadow: 0 4px 12px rgba(255, 255, 255, 0.2);
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    background-color: transparent;
    color: #fff;
    transform: translateY(-4px);
    box-shadow: 0 6px 16px rgba(255, 255, 255, 0.3);
}

.back-to-top svg {
    width: 24px;
    height: 24px;
}

/* Project Detail Pages */
.project-page {
    background-color: #0a0a0a;
}

.project-detail-page {
    padding-top: 80px;
    width: 100%;
    overflow-x: hidden;
}

.back-button {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    margin: 2rem;
    font-size: 1rem;
    font-weight: 600;
    color: #fff;
    border: 2px solid #fff;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.back-button:hover {
    background-color: #fff;
    color: #000;
    transform: translateX(-4px);
}

.back-button svg {
    width: 20px;
    height: 20px;
}

.project-hero {
    max-width: 1400px;
    margin: 0 auto;
    padding: 4rem 2rem;
}

.project-title {
    font-size: 4rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.project-subtitle {
    font-size: 1.5rem;
    color: #666;
    margin-bottom: 3rem;
}

.project-meta {
    display: flex;
    gap: 4rem;
    flex-wrap: wrap;
}

.meta-item {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.meta-label {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #666;
    font-weight: 600;
}

.meta-value {
    font-size: 1.2rem;
    font-weight: 500;
}

.project-main-media {
    width: 100%;
    background-color: #0f0f0f;
    padding: 4rem 0;
}

.media-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
}

.media-placeholder {
    aspect-ratio: 16 / 10;
    background: linear-gradient(135deg, #1a1a1a 0%, #2a2a2a 100%);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: #666;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.media-placeholder.large {
    aspect-ratio: 16 / 9;
}

/* ============================================
   MILLY CUSTOM HERO SHOWCASE
   ============================================ */

.milly-hero-showcase {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
    position: relative;
}

@keyframes gradientShift {
    0%, 100% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
}

.milly-hero-showcase > * {
    position: relative;
    z-index: 2;
}

/* Full-width hero device video */
.hero-device-fullwidth {
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
    animation: float 6s ease-in-out infinite;
    position: relative;
}

.hero-device-fullwidth .device-video {
    width: 100%;
    height: auto;
    display: block;
    object-fit: contain;
    filter: drop-shadow(0 30px 60px rgba(0, 0, 0, 0.5));
    border-radius: 12px;
}

/* Legacy styles for backward compatibility */
.hero-device {
    flex: 1;
    max-width: 950px;
    animation: float 6s ease-in-out infinite;
}

.hero-device .device-img,
.hero-device .device-video {
    width: 146%;
    height: auto;
    filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.4));
    transform-origin: center center;
    margin-left: -23%;
    display: block;
    border-radius: 8px;
}

.hero-device .device-video {
    object-fit: contain;
}

.hero-app-mockup {
    flex: 1;
    max-width: 1000px;
    animation: floatDelay1 6s ease-in-out infinite;
}

.hero-app-mockup .app-hero-img {
    width: 146%;
    height: auto;
    filter: drop-shadow(0 15px 35px rgba(0, 0, 0, 0.3));
    transform-origin: center center;
    margin-left: -23%;
}

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

@keyframes floatDelay1 {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-15px);
    }
}

@keyframes floatDelay2 {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-25px);
    }
}

@keyframes floatDelay3 {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-18px);
    }
}

@media (max-width: 1024px) {
    .milly-hero-showcase {
        padding: 0;
    }

    .hero-device-fullwidth {
        width: 100%;
    }

    .hero-app-mockup {
        max-width: 100%;
    }
}

@media (max-width: 768px) {
    .milly-hero-showcase {
        padding: 0;
    }

    .hero-device-fullwidth {
        max-width: 100%;
    }

    .hero-app-mockup {
        max-width: 500px;
    }
}

/* ============================================
   MILLY PAGE FULL-WIDTH SECTIONS
   ============================================ */

.milly-page .project-main-media,
.milly-page .project-description-section,
.milly-page .project-process,
.milly-page .project-outcome,
.milly-page .project-gallery {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
}

/* ============================================
   CHERNOBYL PROJECT STYLES
   ============================================ */

/* Chernobyl Hero Section */
.chernobyl-hero-showcase {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4rem 2rem;
    min-height: 700px;
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
    position: relative;
    overflow: hidden;
}

.chernobyl-hero-video-wrapper {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    box-shadow:
        0 20px 60px rgba(0, 0, 0, 0.7),
        0 0 100px rgba(0, 150, 50, 0.2); /* Subtle green glow */
}

.chernobyl-page .project-main-media,
.chernobyl-page .project-description-section,
.chernobyl-page .project-process,
.chernobyl-page .project-outcome,
.chernobyl-page .project-gallery {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
}

.chernobyl-hero-video {
    width: 100%;
    height: auto;
    display: block;
    object-fit: contain;
    background: #000;
}

/* Chernobyl themed screenshots */
.chernobyl-screenshot {
    border-radius: 8px;
    box-shadow:
        0 10px 40px rgba(0, 0, 0, 0.6),
        0 0 60px rgba(0, 150, 50, 0.15);
}

@media (max-width: 1024px) {
    .chernobyl-hero-video-wrapper {
        max-width: 95%;
    }
}

@media (max-width: 768px) {
    .chernobyl-hero-showcase {
        padding: 2rem 1rem;
        min-height: auto;
    }
}

/* ============================================
   LOSING THE RACE - HERO VIDEO
   ============================================ */

.race-hero-showcase {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4rem 2rem;
    min-height: 80vh;
    width: 100%;
    margin: 0 auto;
    position: relative;
    overflow: hidden;
    background: #000;
}

.race-hero-video {
    width: 100%;
    height: auto;
    display: block;
    object-fit: contain;
    max-width: 100%;
}

.race-page .project-main-media,
.race-page .project-description-section,
.race-page .project-process,
.race-page .project-outcome,
.race-page .project-videos,
.race-page .project-gallery {
    max-width: 1400px;
    margin-left: auto;
    margin-right: auto;
}

@media (max-width: 768px) {
    .race-hero-showcase {
        padding: 2rem 1rem;
        min-height: auto;
    }
}

/* ============================================
   APP ANIMATION SHOWCASE SECTION
   ============================================ */

.app-showcase-section {
    margin: 4rem 0;
    padding: 0;
}

.app-showcase-section {
    max-width: 1400px;
    margin: 4rem auto;
    padding: 0 2rem;
}

.app-showcase-section h3 {
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    color: #fff;
    font-weight: 600;
}

.app-showcase-section p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.75);
    margin-bottom: 2rem;
}

.app-animation-hero {
    width: 85%;
    max-width: 1600px;
    margin: 2rem auto;
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    background: linear-gradient(135deg, rgba(240, 165, 0, 0.05) 0%, rgba(0, 0, 0, 0.3) 100%);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

.app-showcase-video {
    width: 100%;
    height: auto;
    display: block;
    object-fit: contain;
    filter: drop-shadow(0 10px 30px rgba(0, 0, 0, 0.4));
}

@media (max-width: 1024px) {
    .app-showcase-section {
        padding: 0 1.5rem;
    }

    .app-animation-hero {
        width: 90%;
    }
}

@media (max-width: 768px) {
    .app-showcase-section {
        margin: 2rem auto;
        padding: 0 1rem;
    }

    .app-animation-hero {
        border-radius: 8px;
        width: 95%;
    }
}

/* ============================================
   GALLERY CAROUSEL
   ============================================ */

.carousel-container {
    position: relative;
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
    padding: 4rem 2rem;
}

.carousel-wrapper {
    overflow: hidden;
    border-radius: 12px;
}

.gallery-grid.carousel-container {
    position: relative;
    min-height: 900px;
    display: flex;
    align-items: flex-start;
    justify-content: center;
}

.carousel-slide {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 85%;
    max-width: 1600px;
    opacity: 0;
    transition: opacity 0.8s ease;
    pointer-events: none;
}

.carousel-slide.active {
    opacity: 1;
    pointer-events: auto;
}

.gallery-image {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6);
}

/* Remove labels */
.gallery-label {
    display: none;
}

/* Carousel Navigation Buttons */
.carousel-btn {
    position: absolute;
    top: 40%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 15;
    color: #fff;
}

.carousel-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.4);
    transform: translateY(-50%) scale(1.1);
}

.carousel-prev {
    left: 1rem;
}

.carousel-next {
    right: 1rem;
}

/* Carousel Dots */
.carousel-dots {
    display: flex;
    justify-content: center;
    gap: 0.75rem;
    margin-top: 2rem;
    position: relative;
    z-index: 20;
    padding: 1rem 0;
}

.carousel-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0;
    flex-shrink: 0;
}

.carousel-dot:hover {
    background: rgba(255, 255, 255, 0.5);
    transform: scale(1.2);
}

.carousel-dot.active {
    background: rgba(255, 255, 255, 0.9);
    width: 30px;
    border-radius: 5px;
}

@media (max-width: 1024px) {
    .carousel-slide {
        width: 90%;
    }
}

@media (max-width: 768px) {
    .gallery-grid.carousel-container {
        min-height: 500px;
        padding: 2rem 1rem;
    }

    .carousel-slide {
        width: 100%;
    }

    .carousel-btn {
        width: 40px;
        height: 40px;
    }

    .carousel-prev {
        left: 0.5rem;
    }

    .carousel-next {
        right: 0.5rem;
    }
}

.project-description-section {
    max-width: 900px;
    margin: 0 auto;
    padding: 6rem 2rem;
}

.description-content h2 {
    font-size: 2.5rem;
    margin-bottom: 2rem;
}

.description-content h3 {
    font-size: 1.8rem;
    margin-top: 3rem;
    margin-bottom: 1.5rem;
}

.description-content p {
    font-size: 1.2rem;
    line-height: 1.8;
    margin-bottom: 1.5rem;
    color: #b0b0b0;
}

.description-content ul {
    list-style: none;
    margin: 2rem 0;
}

.description-content li {
    font-size: 1.1rem;
    padding: 0.75rem 0;
    padding-left: 2rem;
    position: relative;
    line-height: 1.6;
}

.description-content li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: #fff;
    font-weight: 600;
}

.project-gallery {
    max-width: 1400px;
    margin: 0 auto;
    padding: 4rem 2rem;
}

.project-gallery h2 {
    font-size: 2.5rem;
    margin-bottom: 3rem;
    text-align: center;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

.gallery-item {
    overflow: hidden;
    border-radius: 8px;
}

.next-project {
    max-width: 1400px;
    margin: 0 auto;
    padding: 6rem 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.next-project h3 {
    font-size: 1.2rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 2rem;
    color: #666;
}

.next-project-link {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
    padding: 2rem;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.next-project-link:hover {
    background-color: #0f0f0f;
    transform: translateY(-4px);
}

.next-project-thumbnail {
    border-radius: 8px;
    overflow: hidden;
}

.next-project-info h4 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.next-project-info p {
    font-size: 1.1rem;
    color: #666;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .hero-content {
        gap: 1.5rem;
    }

    .section-header h2 {
        font-size: 2.5rem;
    }

    .about-content,
    .contact-content,
    .project-detail-content {
        grid-template-columns: 1fr;
    }

    .bio {
        grid-column: 1;
    }

    .streamline-highlights {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

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

    .projects {
        padding: calc(var(--nav-height) + 1.5rem) 2.5rem 3rem;
    }

    .projects-header-fixed {
        top: calc(var(--nav-height) + 1.5rem);
        padding-inline: 0;
    }
}

@media (max-width: 768px) {
    nav {
        flex-direction: column;
        gap: 1rem;
    }

    .nav-links {
        gap: 1rem;
    }

    .hero-content {
        gap: 1.5rem;
    }

    .hero-cta {
        flex-direction: column;
        width: 100%;
        gap: 0.75rem;
    }

    .cta-button,
    .cta-button-outline {
        width: 100%;
        text-align: center;
    }

    .section {
        padding: 4rem 1.5rem;
    }

    .section-header h2 {
        font-size: 2rem;
    }

    .projects {
        padding: calc(var(--nav-height) + 1rem) 1.5rem 2.5rem;
        min-height: auto;
        perspective: none;
    }

    .projects-header-fixed {
        position: static;
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
        padding-inline: 0;
    }

    .projects-stage {
        padding: 0;
    }

    .projects-stage::before,
    .projects-stage::after,
    .projects-stage-inner-glow {
        display: none;
    }

    .projects-title {
        font-size: 1.8rem;
    }

    .project-counter {
        font-size: 0.9rem;
    }

    .current-project-num {
        font-size: 1.5rem;
    }

    .project-slide {
        position: static;
        width: 100%;
        max-width: none;
        height: auto;
        transform: none !important;
        opacity: 1 !important;
        margin: 0 auto;
        pointer-events: auto;
    }

    .project-content {
        display: flex;
        flex-direction: column;
        gap: 1.75rem;
    }

    .project-visual {
        position: relative;
        transform: none;
        pointer-events: auto;
    }

    .project-media {
        width: 100%;
        transform: none !important;
        box-shadow:
            0 24px 60px -18px rgba(0, 0, 0, 0.65),
            inset 0 1px 0 rgba(255, 255, 255, 0.05);
    }

    .project-details {
        position: relative;
        right: auto;
        top: auto;
        width: 100%;
        transform: none !important;
        margin-bottom: 2rem;
    }

    .project-number {
        font-size: 3.2rem;
        top: -2.4rem;
        right: 1.5rem;
    }

    .project-name {
        font-size: 1.45rem;
    }

    .project-type {
        font-size: 0.85rem;
    }

    .project-desc {
        font-size: 0.95rem;
    }

    .scroll-hint {
        bottom: 2rem;
        font-size: 0.75rem;
    }

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

    .modal-body {
        padding: 2rem;
    }

    .image-gallery {
        grid-template-columns: 1fr;
    }

    /* Project Pages Mobile */
    .project-title {
        font-size: 2.5rem;
    }

    .project-subtitle {
        font-size: 1.2rem;
    }

    .project-meta {
        gap: 2rem;
    }

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

    .next-project-link {
        grid-template-columns: 1fr;
    }

    .description-content h2 {
        font-size: 2rem;
    }

    .description-content h3 {
        font-size: 1.5rem;
    }
}

/* ============================================
   ANIMATED EFFECTS & KEYFRAMES
   ============================================ */

/* Shimmer animation for headers */
@keyframes shimmer {
    0%, 100% {
        background-position: 0% center;
    }
    50% {
        background-position: 100% center;
    }
}

.section-header h2 {
    background: linear-gradient(135deg, #ffffff 0%, #888888 50%, #ffffff 100%);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: shimmer 3s ease-in-out infinite;
}

/* Pulse animation for scroll indicator */
@keyframes pulse {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.7;
        transform: scale(1.1);
    }
}

.scroll-indicator {
    animation: pulse 2s ease-in-out infinite;
}

/* Float animation */
@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-20px);
    }
}


/* Ripple effect */
.ripple-effect {
    position: fixed;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255,255,255,0.6) 0%, rgba(255,255,255,0) 70%);
    pointer-events: none;
    z-index: 9998;
    transform: translate(-50%, -50%) scale(0);
    mix-blend-mode: screen;
}


/* ============================================
   WORD CLOUD - VALUES & BELIEFS
   ============================================ */

.word-cloud-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    pointer-events: none;
    z-index: 0;
    opacity: 0.08;
}

.word-cloud {
    position: relative;
    width: 100%;
    height: 100%;
}

.word-item {
    position: absolute;
    font-weight: 400;
    letter-spacing: 2px;
    white-space: nowrap;
    animation: wordFloat linear infinite;
    pointer-events: all;
    cursor: pointer;
    user-select: none;
    text-shadow: 0 0 20px rgba(255, 255, 255, 0.3);
}

@keyframes wordFloat {
    0% {
        transform: translate(0, 0) rotate(0deg);
    }
    25% {
        transform: translate(50px, -30px) rotate(5deg);
    }
    50% {
        transform: translate(-20px, 40px) rotate(-3deg);
    }
    75% {
        transform: translate(30px, 20px) rotate(4deg);
    }
    100% {
        transform: translate(0, 0) rotate(0deg);
    }
}

/* ============================================
   EASTER EGG STYLES
   ============================================ */

.secret-particle {
    position: fixed;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    pointer-events: none;
    z-index: 99999;
    box-shadow: 0 0 10px currentColor;
}

.secret-message {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: linear-gradient(135deg, rgba(20,20,20,0.95), rgba(10,10,10,0.95));
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 16px;
    padding: 3rem 4rem;
    text-align: center;
    z-index: 100000;
    box-shadow: 0 20px 80px rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(30px);
}

.secret-message h1 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    color: #ffffff;
    font-weight: 600;
    letter-spacing: 1px;
}

.secret-message p {
    font-size: 1.1rem;
    margin: 0.75rem 0;
    color: rgba(255, 255, 255, 0.7);
    font-weight: 400;
}

/* ============================================
   SNAKE GAME STYLES
   ============================================ */

.snake-game-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(10, 10, 10, 0.98);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 100000;
    backdrop-filter: blur(20px);
}

.snake-game {
    background: linear-gradient(135deg, rgba(20,20,20,0.95), rgba(10,10,10,0.95));
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 16px;
    padding: 2.5rem;
    box-shadow: 0 20px 80px rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(30px);
}

.game-header {
    text-align: center;
    margin-bottom: 1.5rem;
}

.game-header h2 {
    font-size: 2rem;
    margin-bottom: 0.75rem;
    color: #ffffff;
    font-weight: 600;
    letter-spacing: 1px;
}

.game-header p {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.7);
    margin: 0.25rem 0;
    font-weight: 400;
}

.game-hint {
    font-size: 0.85rem !important;
    color: rgba(255, 255, 255, 0.4) !important;
    margin-top: 0.75rem !important;
    font-family: 'Courier New', monospace;
    letter-spacing: 0.5px;
}

#snake-canvas {
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    background: #0a0a0a;
    display: block;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

#snake-score {
    color: #ffffff;
    font-weight: 600;
    font-size: 1.3rem;
}

/* About section with word cloud */
.about.section {
    position: relative;
}

.about-content {
    position: relative;
    z-index: 1;
}

/* Easter Egg Hint Button */
.easter-egg-hint {
    position: fixed;
    bottom: 100px;
    right: 30px;
    padding: 0.75rem 1.25rem;
    background: linear-gradient(135deg, rgba(10,10,10,0.95), rgba(30,30,30,0.95));
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 1000;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    backdrop-filter: blur(20px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

.hint-text {
    font-family: 'Courier New', monospace;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 2px;
    color: rgba(255, 255, 255, 0.4);
    transition: all 0.4s ease;
}

.easter-egg-hint:hover {
    transform: translateY(-4px);
    border-color: rgba(255, 255, 255, 0.4);
    box-shadow: 0 8px 30px rgba(255, 255, 255, 0.1);
}

.easter-egg-hint:hover .hint-text {
    color: rgba(255, 255, 255, 0.9);
    letter-spacing: 3px;
}

/* ============================================
   ASSISTANT MODAL - Phone Mockup Dark Mode
   ============================================ */
.assistant-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
}

.assistant-modal.active {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding-right: 60px;
}

.assistant-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(2px);
    cursor: none !important;
    animation: assistantOverlayFadeIn 400ms ease;
}

@keyframes assistantOverlayFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Phone Mockup Container */
.assistant-modal-container {
    position: relative;
    width: 400px;
    height: 820px;
    background: #000000;
    border-radius: 50px;
    padding: 16px;
    box-shadow:
        0 0 0 8px #1a1a1a,
        0 0 0 10px #000000,
        0 40px 100px rgba(0, 0, 0, 0.8),
        inset 0 0 2px rgba(255, 255, 255, 0.1);
    animation: assistantSlideInRight 600ms cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 1;
}

@keyframes assistantSlideInRight {
    from {
        opacity: 0;
        transform: translateX(500px) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translateX(0) scale(1);
    }
}

.assistant-modal:not(.active) .assistant-modal-container {
    animation: assistantSlideOutRight 400ms cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes assistantSlideOutRight {
    from {
        opacity: 1;
        transform: translateX(0) scale(1);
    }
    to {
        opacity: 0;
        transform: translateX(500px) scale(0.9);
    }
}

/* Phone notch */
.assistant-modal-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 140px;
    height: 32px;
    background: #000000;
    border-radius: 0 0 20px 20px;
    z-index: 10;
    pointer-events: none;
}

/* Phone screen - no pointer events blocker */
.assistant-modal-container::after {
    content: '';
    position: absolute;
    top: 16px;
    left: 16px;
    right: 16px;
    bottom: 16px;
    border-radius: 36px;
    background: #0a0a0a;
    pointer-events: none;
    z-index: -1;
}

/* Assistant App Styles (namespaced) - Dark Mode */
.assistant-app {
    position: relative;
    display: flex;
    flex-direction: column;
    height: 100%;
    background: #0a0a0a;
    border-radius: 36px;
    overflow: hidden;
    z-index: 1;
    isolation: isolate;
}

.assistant-header {
    position: relative;
    flex-shrink: 0;
    background: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding: 48px 20px 16px 20px;
    z-index: 1;
}

.assistant-header-inner {
    position: relative;
    display: flex;
    align-items: center;
    gap: 12px;
    z-index: 1;
}

.assistant-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: linear-gradient(135deg, #1a1a1a 0%, #2a2a2a 100%);
    border: 1px solid rgba(255, 255, 255, 0.1);
    flex-shrink: 0;
}

.assistant-info {
    flex: 1;
    min-width: 0;
}

.assistant-title {
    font-size: 16px;
    font-weight: 600;
    margin: 0;
    line-height: 1.3;
    color: #ffffff;
}

.assistant-status {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 2px;
}

.assistant-status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #22c55e;
    box-shadow: 0 0 8px rgba(34, 197, 94, 0.4);
    transition: background 200ms ease;
}

.assistant-status-dot.typing {
    background: #f59e0b;
    box-shadow: 0 0 8px rgba(245, 158, 11, 0.4);
}

.assistant-status-text {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.5);
    transition: color 200ms ease;
}

.assistant-close-btn {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: #ffffff;
    cursor: none !important;
    transition: background 200ms ease, transform 200ms ease, border-color 200ms ease;
    flex-shrink: 0;
}

.assistant-close-btn:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.2);
}

.assistant-close-btn:active {
    transform: scale(0.96);
}

.assistant-thread-wrapper {
    flex: 1;
    overflow-y: auto;
    overflow-x: visible;
    -webkit-overflow-scrolling: touch;
    padding: 0 16px;
    background: #0a0a0a;
}

.assistant-thread-wrapper::-webkit-scrollbar {
    width: 6px;
}

.assistant-thread-wrapper::-webkit-scrollbar-track {
    background: transparent;
}

.assistant-thread-wrapper::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
}

.assistant-thread-wrapper::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.15);
}

.assistant-thread {
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding: 20px 0 24px 0;
    min-height: 100%;
}

.assistant-message {
    display: flex;
    flex-direction: column;
    gap: 6px;
    max-width: 80%;
    animation: assistantMessageFadeIn 250ms ease;
}

@keyframes assistantMessageFadeIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.assistant-message.user {
    align-self: flex-end;
    align-items: flex-end;
}

.assistant-message.david {
    align-self: flex-start;
}

.assistant-bubble {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 18px;
    padding: 12px 16px;
    font-size: 15px;
    line-height: 1.5;
    color: #e0e0e0;
    word-wrap: break-word;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(10px);
}

.assistant-message.user .assistant-bubble {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.12);
}

.assistant-message.david .assistant-bubble {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.05) 100%);
    border-color: rgba(255, 255, 255, 0.15);
}

.assistant-timestamp {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.3);
    padding: 0 6px;
}

.assistant-read-ticks {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.3);
    user-select: none;
}

.assistant-typing {
    align-self: flex-start;
    width: 100%;
    max-width: none;
    padding: 12px 16px;
    overflow: visible;
}

.assistant-typing-text {
    color: rgba(255, 255, 255, 0.6);
    font-size: 13px;
    font-style: italic;
    line-height: 1.4;
    white-space: nowrap;
    display: inline-block;
    opacity: 1;
    width: auto;
    max-width: none;
}

.assistant-typing-dot:nth-child(1) { animation-delay: 0s; }
.assistant-typing-dot:nth-child(2) { animation-delay: 0.2s; }
.assistant-typing-dot:nth-child(3) { animation-delay: 0.4s; }

@keyframes assistantTypingBounce {
    0%, 60%, 100% { transform: translateY(0); opacity: 0.4; }
    30% { transform: translateY(-6px); opacity: 1; }
}

.assistant-citations {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.4);
    padding: 0 6px;
}

.assistant-citation-link {
    color: rgba(255, 255, 255, 0.6);
    text-decoration: underline;
    text-decoration-color: rgba(255, 255, 255, 0.2);
    transition: color 200ms ease, text-decoration-color 200ms ease;
}

.assistant-citation-link:hover {
    color: rgba(255, 255, 255, 0.9);
    text-decoration-color: rgba(255, 255, 255, 0.5);
}

.assistant-project-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 14px;
    margin-top: 10px;
    max-width: 280px;
    transition: transform 200ms ease, background 200ms ease, border-color 200ms ease;
}

.assistant-project-card:hover {
    transform: translateY(-2px);
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.2);
}

.assistant-project-card-title {
    font-size: 14px;
    font-weight: 600;
    margin: 0 0 6px 0;
    color: #ffffff;
}

.assistant-project-card-meta {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.4);
    margin-bottom: 10px;
}

.assistant-project-card-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 12px;
}

.assistant-project-tag {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.7);
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 3px 10px;
    border-radius: 6px;
}

.assistant-project-card-link {
    display: inline-block;
    font-size: 13px;
    color: #ffffff;
    text-decoration: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
    transition: border-color 200ms ease;
}

.assistant-project-card-link:hover {
    border-color: rgba(255, 255, 255, 0.8);
}

.assistant-error {
    align-self: center;
    max-width: 90%;
}

.assistant-error .assistant-bubble {
    background: rgba(220, 38, 38, 0.1);
    border-color: rgba(220, 38, 38, 0.3);
    color: #fca5a5;
    text-align: center;
}

.assistant-retry-btn {
    margin-top: 8px;
    font-size: 13px;
    padding: 6px 14px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: #ffffff;
    cursor: none !important;
    transition: background 200ms ease, border-color 200ms ease;
}

.assistant-retry-btn:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.2);
}

.assistant-chips-wrapper {
    padding: 0 16px 12px 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(20px);
    flex-shrink: 0;
}

.assistant-chips {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding: 12px 0 0 0;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

.assistant-chips::-webkit-scrollbar {
    display: none;
}

.assistant-chip {
    flex-shrink: 0;
    font-size: 12px;
    padding: 8px 14px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    color: rgba(255, 255, 255, 0.8);
    cursor: none !important;
    transition: all 200ms ease;
    white-space: nowrap;
    font-weight: 500;
}

.assistant-chip:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
    color: #ffffff;
}

.assistant-chip:active {
    transform: scale(0.96);
}

.assistant-input-bar {
    background: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(20px);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding: 12px 16px 16px 16px;
    flex-shrink: 0;
}

.assistant-input-form {
    display: flex;
    gap: 8px;
    align-items: center;
}

.assistant-input {
    flex: 1;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 15px;
    line-height: 1.4;
    padding: 12px 16px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.05);
    color: #ffffff;
    outline: none;
    transition: border-color 200ms ease, background 200ms ease;
}

.assistant-input:focus {
    border-color: rgba(255, 255, 255, 0.3);
    background: rgba(255, 255, 255, 0.08);
}

.assistant-input::placeholder {
    color: rgba(255, 255, 255, 0.3);
}

.assistant-send-btn {
    flex-shrink: 0;
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #ffffff 0%, #e0e0e0 100%);
    color: #000000;
    border: none;
    border-radius: 50%;
    cursor: none !important;
    transition: transform 200ms ease, opacity 200ms ease, box-shadow 200ms ease;
    box-shadow: 0 2px 8px rgba(255, 255, 255, 0.1);
}

.assistant-send-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed !important;
}

.assistant-send-btn:not(:disabled):hover {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(255, 255, 255, 0.2);
}

.assistant-send-btn:not(:disabled):active {
    transform: scale(0.95);
}

/* Mobile Responsive */
@media (max-width: 640px) {
    .assistant-modal-container {
        width: 100%;
        height: 100%;
        border-radius: 0;
        padding: 0;
        box-shadow: none;
    }

    .assistant-modal-container::before,
    .assistant-modal-container::after {
        display: none;
    }

    .assistant-app {
        border-radius: 0;
    }

    .assistant-header {
        padding: 20px 16px 16px 16px;
    }

    .assistant-thread {
        padding: 16px 0;
    }

    .assistant-message {
        max-width: 85%;
    }

    .assistant-typing {
        max-width: none !important;
        width: 100%;
    }

    .assistant-bubble {
        font-size: 14px;
        padding: 10px 14px;
    }

    .assistant-input {
        font-size: 16px;
    }
}

/* ==================================================
   COMPREHENSIVE PROJECT PAGE STYLES
   ================================================== */

/* Description Section */
.project-description-section {
    max-width: 1400px;
    margin: 0 auto;
    padding: 6rem 2rem;
}

.description-content {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-bottom: 4rem;
}

.overview-section {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.04) 0%, rgba(255, 255, 255, 0.01) 100%);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 24px;
    padding: 3rem;
    position: relative;
    overflow: hidden;
    /* Scroll animation initial state */
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.overview-section.animate-in {
    opacity: 1;
    transform: translateY(0);
}

.overview-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 0;
    background: linear-gradient(180deg, #fff 0%, rgba(255, 255, 255, 0.5) 100%);
    transition: height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.overview-section:hover {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.06) 0%, rgba(255, 255, 255, 0.02) 100%);
    border-color: rgba(255, 255, 255, 0.15);
    transform: translateY(-4px);
    box-shadow:
        0 20px 60px rgba(0, 0, 0, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.overview-section:hover::before {
    height: 100%;
}

.overview-section h2 {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    color: rgba(255, 255, 255, 0.6);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    position: relative;
    padding-bottom: 1rem;
}

.overview-section h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background: linear-gradient(90deg, #fff 0%, transparent 100%);
}

.lead-text {
    font-size: 1.15rem;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 400;
}

.description-main h2 {
    font-size: 2.5rem;
    margin-bottom: 2rem;
}

.description-main p {
    font-size: 1.15rem;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 1.5rem;
}

.tools-box {
    margin-bottom: 4rem;
}

.tools-box h3 {
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    margin-bottom: 1.5rem;
    color: rgba(255, 255, 255, 0.5);
}

.tools-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
}

.tools-list li {
    padding: 0.75rem 1rem;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.8);
    font-weight: 500;
    text-align: left;
}

/* Process Section */
.project-process {
    max-width: 1400px;
    margin: 0 auto;
    padding: 6rem 2rem;
    background: rgba(255, 255, 255, 0.01);
    position: relative;
}

.project-process::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60%;
    height: 1px;
    background: linear-gradient(90deg, transparent 0%, #9333ea 25%, #3b82f6 50%, #ec4899 75%, transparent 100%);
    opacity: 0.5;
}

.project-process h2 {
    font-size: 2.5rem;
    margin-bottom: 3rem;
    text-align: center;
}

.process-steps {
    display: flex;
    flex-direction: column;
    gap: 3rem;
}

.process-step {
    padding: 0;
    /* Scroll animation initial state */
    opacity: 0;
    transform: translateY(30px);
    transition: all 1s cubic-bezier(0.16, 1, 0.3, 1);
}

.process-step.animate-in {
    opacity: 1;
    transform: translateY(0);
}

.process-step h3 {
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    color: #fff;
    font-weight: 600;
}

.process-step p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.75);
    margin-bottom: 1.5rem;
}

.process-step ul {
    margin: 1.5rem 0;
    padding-left: 1.5rem;
}

.process-step li {
    font-size: 1.05rem;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.75);
    margin-bottom: 0.75rem;
}

/* Gallery Section */
.project-gallery {
    max-width: 1400px;
    margin: 0 auto;
    padding: 6rem 2rem;
}

.project-gallery h2 {
    font-size: 2.5rem;
    margin-bottom: 3rem;
    text-align: center;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 2rem;
}

.gallery-item {
    aspect-ratio: 16 / 10;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.gallery-item .media-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #1a1a1a 0%, #2a2a2a 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    color: #666;
    transition: all 0.3s ease;
}

.gallery-item:hover .media-placeholder {
    background: linear-gradient(135deg, #2a2a2a 0%, #3a3a3a 100%);
}

/* ========================================
   DEFAULT HERO STYLES
   ======================================== */

.default-hero-showcase {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
}

.hero-thumbnail {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

/* ========================================
   GAME PROJECT STYLES - TUNG TUNG SAHUR
   ======================================== */

/* Character Showcase Section */
.character-showcase-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    margin-top: 2rem;
}

.character-animation-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 3rem;
}

.character-animation-card h4 {
    font-size: 1.8rem;
    font-weight: 600;
    margin: 0 0 2rem 0;
    color: #ffffff;
    text-align: center;
}

/* Animation Display Grid */
.animation-display-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
}

.animation-display-grid.single-animation {
    grid-template-columns: 1fr;
    max-width: 400px;
    margin: 0 auto;
}

.animation-item {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

/* Sprite Animation Container */
.sprite-animation-container {
    background: #000000;
    border: 2px solid rgba(255, 255, 255, 0.15);
    border-radius: 12px;
    padding: 3rem;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 300px;
    transition: all 0.3s ease;
}

.sprite-animation-container:hover {
    border-color: rgba(255, 255, 255, 0.3);
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

.sprite-animation-container.enemy-sprite {
    min-height: 400px;
}

.sprite-frame {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    image-rendering: crisp-edges;
    image-rendering: -moz-crisp-edges;
    image-rendering: pixelated;
}

.animation-label {
    text-align: center;
    font-size: 0.95rem;
    font-weight: 500;
    color: #999;
    margin: 0;
}

/* Environment Assets */
.environment-asset {
    position: relative;
}

.environment-asset .process-image {
    background: #0a0a0a;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 2rem;
}

/* Gameplay Screenshots */
.gameplay-screenshots {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    margin-top: 2rem;
}

.game-screenshot {
    width: 100%;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Responsive Design for Game Project */
@media (max-width: 1024px) {
    .animation-display-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .character-animation-card {
        padding: 2rem;
    }
}

@media (max-width: 768px) {
    .animation-display-grid {
        grid-template-columns: 1fr;
    }

    .character-showcase-grid {
        gap: 2rem;
    }

    .character-animation-card {
        padding: 1.5rem;
    }

    .sprite-animation-container {
        padding: 2rem;
        min-height: 250px;
    }
}

/* ========================================
   MUSIC VIDEO PROJECT STYLES
   ======================================== */

.music-video-stills {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    margin-top: 2rem;
}

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

@media (max-width: 1024px) {
    .image-grid-3 {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .image-grid-3 {
        grid-template-columns: 1fr;
    }
}

/* Outcome Section */
.project-outcome {
    max-width: 1400px;
    margin: 0 auto;
    padding: 6rem 2rem;
    background: rgba(255, 255, 255, 0.01);
    position: relative;
}

.project-outcome::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60%;
    height: 1px;
    background: linear-gradient(90deg, transparent 0%, #9333ea 25%, #3b82f6 50%, #ec4899 75%, transparent 100%);
    opacity: 0.5;
}

.project-outcome h2 {
    font-size: 2.5rem;
    margin-bottom: 3rem;
    text-align: center;
}

.project-outcome h3 {
    font-size: 2rem;
    margin: 3rem 0 1.5rem;
    color: #fff;
    font-weight: 600;
}

.outcome-content {
    font-size: 1.15rem;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.8);
}

.outcome-content p {
    margin-bottom: 1.5rem;
}

.outcome-content ul {
    margin: 2rem 0;
    padding-left: 2rem;
}

.outcome-content li {
    margin-bottom: 1rem;
    color: rgba(255, 255, 255, 0.75);
    line-height: 1.7;
}

.outcome-content strong {
    color: #fff;
    font-weight: 600;
}

/* Project Navigation */
.project-nav {
    max-width: 1400px;
    margin: 0 auto;
    padding: 4rem 2rem 6rem;
    text-align: center;
}

.nav-link-back {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
    font-weight: 600;
    color: #fff;
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 100px;
    transition: all 0.3s ease;
    text-decoration: none;
}

.nav-link-back:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.4);
    transform: translateX(-4px);
}

/* Responsive Design for Project Pages */
@media (max-width: 1024px) {
    .gallery-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .project-hero {
        padding: 3rem 1.5rem;
    }

    .project-title {
        font-size: 2.5rem;
    }

    .project-subtitle {
        font-size: 1.2rem;
    }

    .project-meta {
        gap: 2rem;
    }

    .description-main h2,
    .project-process h2,
    .project-gallery h2,
    .project-outcome h2 {
        font-size: 2rem;
    }

    .description-main p {
        font-size: 1.05rem;
    }

    .process-step {
        padding: 1.5rem;
    }

    .project-description-section,
    .project-process,
    .project-gallery,
    .project-outcome {
        padding: 4rem 1.5rem;
    }

    .back-button {
        margin: 1.5rem;
        padding: 0.875rem 1.5rem;
        font-size: 0.95rem;
    }
}

/* ============================================
   PROJECT VIDEOS SECTION
   ============================================ */

.project-videos {
    max-width: 1400px;
    margin: 0 auto;
    padding: 6rem 2rem;
}

.project-videos h2 {
    font-size: 2.5rem;
    margin-bottom: 3rem;
    text-align: center;
}

.videos-grid {
    display: flex;
    flex-direction: column;
    gap: 5rem;
    max-width: 1600px;
    margin: 0 auto;
    width: 100%;
}

.video-item {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    width: 100%;
}

.video-item video {
    position: relative;
    width: 100%;
    min-height: 800px;
    border-radius: 20px;
    overflow: hidden;
    background: #000;
    box-shadow:
        0 25px 70px rgba(0, 0, 0, 0.6),
        0 10px 30px rgba(0, 0, 0, 0.4),
        inset 0 0 0 1px rgba(255, 255, 255, 0.05);
    z-index: 100;
    isolation: isolate;
    display: block;
}

.video-item video::-webkit-media-controls-panel {
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9), transparent);
}

.video-item video::-webkit-media-controls-play-button {
    background-color: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
}

.video-item video::-webkit-media-controls-timeline {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 4px;
    margin: 0 12px;
}

.video-item video::-webkit-media-controls-current-time-display,
.video-item video::-webkit-media-controls-time-remaining-display {
    color: rgba(255, 255, 255, 0.9);
}

.video-info {
    padding: 0 0.5rem;
    text-align: center;
}

.video-info h3 {
    font-size: 1.8rem;
    margin-bottom: 0.75rem;
    color: #fff;
}

.video-info p {
    font-size: 1.1rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.5);
    font-style: italic;
}

/* ============================================
   EMBEDDED VIDEOS IN CONTENT
   ============================================ */

.embedded-video {
    margin: 2rem auto;
    position: relative;
    width: 100%;
    min-height: 500px;
    border-radius: 20px;
    overflow: hidden;
    box-shadow:
        0 25px 70px rgba(0, 0, 0, 0.6),
        0 10px 30px rgba(0, 0, 0, 0.4),
        inset 0 0 0 1px rgba(255, 255, 255, 0.05);
    margin-bottom: 1.5rem;
    z-index: 100;
    isolation: isolate;
}

.embedded-video video {
    width: 100%;
    height: auto;
    min-height: 500px;
    display: block;
}

.embedded-video video::-webkit-media-controls-play-button {
    background-color: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
}

.embedded-video video::-webkit-media-controls-timeline {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 4px;
    margin: 0 12px;
}

.embedded-video video::-webkit-media-controls-current-time-display,
.embedded-video video::-webkit-media-controls-time-remaining-display {
    color: rgba(255, 255, 255, 0.9);
}

.video-caption {
    text-align: center;
    font-size: 1.05rem;
    color: rgba(255, 255, 255, 0.5);
    font-style: italic;
    margin-top: 1rem;
    letter-spacing: 0.01em;
}

/* ============================================
   PERSONA CARDS
   ============================================ */

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

.persona-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 2.5rem;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    /* Scroll animation initial state */
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.9s cubic-bezier(0.16, 1, 0.3, 1);
}

.persona-card.animate-in {
    opacity: 1;
    transform: translateY(0);
}

.persona-card.animate-in:hover {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(255, 255, 255, 0.15);
    transform: translateY(-4px);
    transition: all 0.3s ease;
}

.persona-card h4 {
    font-size: 1.25rem;
    margin-bottom: 1.5rem;
    color: #fff;
    font-weight: 600;
}

.persona-card p {
    font-size: 1rem;
    line-height: 1.7;
    margin-bottom: 0.75rem;
    color: rgba(255, 255, 255, 0.7);
    text-align: left;
    width: 100%;
}

.persona-card p strong {
    color: rgba(255, 255, 255, 0.9);
    font-weight: 600;
}

.persona-image {
    width: 180px;
    height: 180px;
    object-fit: cover;
    border-radius: 50%;
    margin-bottom: 1.5rem;
    border: 3px solid rgba(240, 165, 0, 0.3);
}

/* ============================================
   PROCESS IMAGES
   ============================================ */

.process-image {
    width: 100%;
    height: auto;
    border-radius: 8px;
    margin-top: 1.5rem;
    margin-bottom: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.02);
}

.image-grid-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 3rem;
    margin-top: 3rem;
    margin-bottom: 1rem;
    align-items: end;
}

.image-grid-2 .process-image {
    margin-top: 0;
    margin-bottom: 0;
}

/* Early Development Renders */
.early-dev-renders {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 4rem;
    margin-top: 5rem;
    margin-bottom: 3rem;
    max-width: 85%;
    margin-left: auto;
    margin-right: auto;
}

.early-dev-image {
    width: 100%;
    height: auto;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.02);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.early-dev-image:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.3);
}

.image-grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.image-grid-3 .process-image {
    margin-top: 0;
    margin-bottom: 0;
}

/* App UI Grid */
.app-ui-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin-top: 3rem;
    margin-bottom: 1rem;
    max-width: 1600px;
    margin-left: auto;
    margin-right: auto;
}

.app-ui-item {
    text-align: center;
    /* Scroll animation initial state */
    opacity: 0;
    transform: translateX(30px);
    transition: all 1s cubic-bezier(0.16, 1, 0.3, 1);
}

.app-ui-item.animate-in {
    opacity: 1;
    transform: translateX(0);
}

.app-ui-item h4 {
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 1.25rem;
    letter-spacing: 0.01em;
}

.app-ui-item .process-image {
    margin-top: 0;
    margin-bottom: 0;
    width: 160%;
    margin-left: -30%;
    height: 800px;
    object-fit: cover;
    object-position: center 45%;
    border: none !important;
    background: transparent !important;
    border-radius: 0;
}

/* SCAMP Images - Losing the Race */
.scamp-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
    margin-bottom: 2rem;
    max-width: 1100px;
    margin-left: auto;
    margin-right: auto;
}

.scamp-image {
    text-align: center;
}

.scamp-image .process-image {
    background: #ffffff;
    padding: 2rem;
    border: 1px solid rgba(255, 255, 255, 0.15);
    margin-top: 0;
    margin-bottom: 0.5rem;
}

.scamp-image .image-caption {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.6);
    margin-top: 0.75rem;
    font-style: italic;
}

/* Site CTA Button in Outcome Section */
.site-cta-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin: 3rem 0;
    padding: 2rem;
}

.site-cta-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    padding: 1.25rem 3rem;
    font-size: 1.1rem;
    font-weight: 600;
    background-color: #fff;
    color: #000;
    border: 2px solid #fff;
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.3s ease;
    letter-spacing: 0.02em;
    cursor: pointer;
}

.site-cta-button:hover {
    background-color: rgba(255, 255, 255, 0.9);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 255, 255, 0.25);
    filter: drop-shadow(3px 0 0 rgba(255, 0, 0, 0.4)) drop-shadow(-3px 0 0 rgba(0, 255, 255, 0.4));
}

.site-cta-button .cta-arrow {
    font-size: 1.5rem;
    transition: transform 0.3s ease;
}

.site-cta-button:hover .cta-arrow {
    transform: translateX(5px);
}

.site-cta-container .cta-caption {
    margin-top: 1rem;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.6);
    font-style: italic;
}

/* ============================================
   LOSING THE RACE - FULL-WIDTH LAYOUT
   ============================================ */

/* Overview - Full width with proper centering */
.race-page .project-description-section {
    padding: 6rem 4rem;
}

.race-page .description-content {
    display: block;
    max-width: 100%;
    padding: 0;
}

.race-overview-container {
    max-width: 100%;
    width: 100%;
}

.centered,
.centered-content {
    text-align: center;
}

.race-page .overview-section {
    margin-bottom: 3rem;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.race-page .overview-section h2 {
    text-align: center;
    font-size: 1.8rem;
    margin-bottom: 2rem;
}

.race-page .overview-section h2::after {
    left: 50%;
    transform: translateX(-50%);
}

.centered p,
.race-page .overview-section p {
    text-align: center;
    margin-left: auto;
    margin-right: auto;
    max-width: 900px;
}

.centered .lead-text {
    font-size: 1.5rem;
    font-weight: 500;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    color: rgba(255, 255, 255, 0.95);
}

/* Process Steps - Full width */
.race-page .project-process {
    padding: 6rem 4rem;
}

.race-page .process-content {
    max-width: 100%;
    padding: 0;
}

.process-step {
    margin-bottom: 5rem;
    max-width: 1400px;
    margin-left: auto;
    margin-right: auto;
}

.process-step h3 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
    text-align: center;
}

.step-description {
    font-size: 1.1rem;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 3rem;
    text-align: center;
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
}

/* Videos - Fix alignment and make full width */
.race-page .embedded-video {
    margin: 3rem 0;
    max-width: 1400px;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
}

.race-page .video-caption {
    text-align: center;
    margin-top: 1.5rem;
}

/* Outcome - Center CTA */
.race-page .project-outcome {
    max-width: 100%;
    padding: 6rem 4rem;
}

.race-page .site-cta-container {
    margin: 0 auto;
    max-width: 1400px;
}

/* SCAMP Grids - Full width responsive */
.race-page .scamp-grid {
    max-width: 1400px;
    margin-left: auto;
    margin-right: auto;
}

/* Gallery - Full width */
.race-page .project-gallery {
    padding: 6rem 4rem;
}

.race-page .gallery-grid {
    max-width: 1400px;
    margin-left: auto;
    margin-right: auto;
}

/* Responsive adjustments */
@media (max-width: 1400px) {
    .race-page .project-description-section,
    .race-page .project-process,
    .race-page .project-outcome,
    .race-page .project-gallery {
        padding: 6rem 3rem;
    }
}

@media (max-width: 768px) {
    .race-page .project-description-section,
    .race-page .project-process,
    .race-page .project-outcome,
    .race-page .project-gallery {
        padding: 4rem 2rem;
    }

    .process-step h3 {
        font-size: 1.6rem;
    }

    .step-description {
        font-size: 1rem;
    }

    .centered .lead-text {
        font-size: 1.2rem;
    }
}

/* Render images fly-in animations */
.render-fly-left,
.render-fly-right {
    border: none !important;
    background: transparent !important;
    opacity: 0;
    transition: all 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.render-fly-left {
    transform: translateX(calc(-50vw - 100%)) translateY(-50px) scale(1.1);
}

.render-fly-right {
    transform: translateX(calc(50vw + 100%));
}

.render-fly-left.fly-in {
    opacity: 1;
    transform: translateX(0) translateY(-50px) scale(1.1);
}

.render-fly-right.fly-in {
    opacity: 1;
    transform: translateX(0);
}

/* ============================================
   SCROLL-BASED ANIMATIONS - MILLY PROJECT
   ============================================ */

/* Hero elements - initial load animation */
.hero-device,
.hero-device-fullwidth,
.hero-app-mockup,
.chernobyl-hero-video-wrapper {
    opacity: 0;
    transform: scale(0.95) translateY(20px);
    transition: all 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.hero-device.animate-in,
.hero-device-fullwidth.animate-in,
.hero-app-mockup.animate-in,
.chernobyl-hero-video-wrapper.animate-in {
    opacity: 1;
    transform: scale(1) translateY(0);
}

/* Chernobyl screenshots animation */
.chernobyl-screenshot {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.chernobyl-screenshot.animate-in {
    opacity: 1;
    transform: translateY(0);
}

/* ============================================
   VIDEO SCROLL INTEGRATION - SEAMLESS PLAYBACK
   ============================================ */

/* Video containers - subtle scale and fade on scroll */
.embedded-video.video-animate-ready,
.video-item.video-animate-ready {
    opacity: 0;
    transform: scale(0.96);
    transition: all 1s cubic-bezier(0.16, 1, 0.3, 1);
}

.embedded-video.video-in-view,
.video-item.video-in-view {
    opacity: 1;
    transform: scale(1);
}

/* Better video styling - less generic browser controls */
.embedded-video video,
.video-item video {
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
    cursor: pointer;
    position: relative;
}

/* Custom mute indicator - appears when unmuted */
.embedded-video.video-unmuted::after,
.video-item.video-unmuted::after {
    content: '🔊 Sound On';
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 500;
    z-index: 10;
    pointer-events: none;
    animation: fadeInOut 2s ease-in-out;
}

@keyframes fadeInOut {
    0%, 100% { opacity: 0; }
    10%, 90% { opacity: 1; }
}

/* Video hover effect - subtle lift */
.embedded-video video:hover,
.video-item video:hover {
    transform: scale(1.01);
    box-shadow: 0 12px 48px rgba(0, 0, 0, 0.5);
    transition: all 0.3s ease;
}

/* Video caption styling enhancement */
.video-caption {
    margin-top: 1.5rem;
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.6);
    font-style: italic;
    text-align: center;
}

/* Responsive adjustments for videos and personas */
@media (max-width: 768px) {
    .persona-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .persona-image {
        width: 150px;
        height: 150px;
    }

    .description-content {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .overview-section {
        padding: 2rem;
    }

    .image-grid-2,
    .image-grid-3,
    .app-ui-grid,
    .early-dev-renders {
        grid-template-columns: 1fr;
        gap: 1rem;
        max-width: 100%;
    }

    .project-videos {
        padding: 4rem 1.5rem;
    }

    .project-videos h2 {
        font-size: 2rem;
    }

    .videos-grid {
        gap: 4rem;
    }

    .video-info h3 {
        font-size: 1.5rem;
    }

    .video-info p {
        font-size: 1rem;
    }

    .embedded-video {
        margin: 2rem auto 1.5rem;
        border-radius: 16px;
        min-height: 350px;
    }

    .embedded-video video,
    .video-item video {
        min-height: 350px;
    }

    .video-caption {
        font-size: 1rem;
    }
}

/* Tablet breakpoint */
@media (min-width: 769px) and (max-width: 1024px) {
    .description-content {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }

    .overview-section:last-child {
        grid-column: 1 / -1;
    }
}
