        :root {
            --primary: #0b0b1a;
            --secondary: #170b28;
            --neon-pink: #ff2a6d;
            --neon-blue: #05d9e8;
            --neon-purple: #bd00ff;
            --text: #ffffff;
        }

        html {
            scroll-behavior: smooth;
        }

        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
            font-family: 'Orbitron', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
        }

        @font-face {
            font-family: 'Orbitron';
            src: url('https://fonts.googleapis.com/css2?family=Orbitron:wght@400;500;700&display=swap');
        }

        body {
            background-color: var(--primary);
            color: var(--text);
            line-height: 1.6;
            overflow-x: hidden;
            min-height: 100vh;
            position: relative;
        }

        .grid-container {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            perspective: 1000px;
            z-index: 1;
            overflow: hidden;
        }

        .grid {
            position: absolute;
            width: 200%;
            height: 200%;
            bottom: -50%;
            left: -50%;
            background-image: 
                linear-gradient(to right, rgba(255, 42, 109, 0.15) 1px, transparent 1px),
                linear-gradient(to bottom, rgba(255, 42, 109, 0.15) 1px, transparent 1px);
            background-size: 50px 50px;
            transform: rotateX(60deg);
            transform-origin: center;
            transform-style: preserve-3d;
            z-index: -1;
        }

        .sun {
            position: absolute;
            width: 300px;
            height: 300px;
            background: linear-gradient(to top, var(--neon-pink), #ff9e7a);
            border-radius: 50%;
            bottom: -150px;
            left: calc(50% - 150px);
            z-index: -2;
            box-shadow: 0 0 100px rgba(255, 42, 109, 0.8);
        }

        .content {
            position: relative;
            z-index: 10;
            padding: 4rem 2rem;
            padding-bottom: 8rem;
            max-width: 1100px;
            margin: 0 auto;
            min-height: 100vh;
            display: flex;
            flex-direction: column;
            justify-content: center;
            align-items: center;
            text-align: center;
        }

        /* Scroll indicator */
        .scroll-indicator {
            position: absolute;
            bottom: 3rem;
            left: 50%;
            transform: translateX(-50%);
            display: flex;
            flex-direction: column;
            align-items: center;
            gap: 0.5rem;
            color: rgba(255, 255, 255, 0.5);
            font-size: 0.75rem;
            text-transform: uppercase;
            letter-spacing: 2px;
            animation: bounce 2s ease-in-out infinite;
            cursor: pointer;
            z-index: 20;
        }

        .scroll-indicator svg {
            width: 24px;
            height: 24px;
            opacity: 0.6;
        }

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

        .logo {
            font-size: 4rem;
            font-weight: 700;
            margin-bottom: 0.5rem;
            text-transform: uppercase;
            letter-spacing: 5px;
            color: var(--text);
            text-shadow: 
                0 0 10px var(--neon-blue),
                0 0 20px var(--neon-blue),
                0 0 40px var(--neon-blue);
            animation: pulsate 2s infinite alternate;
        }

        .tagline {
            font-size: 1.5rem;
            font-weight: 300;
            margin-bottom: 2rem;
            color: var(--neon-pink);
            text-shadow: 0 0 5px var(--neon-pink);
        }

        .description {
            max-width: 600px;
            margin-bottom: 3rem;
            font-size: 1.1rem;
            line-height: 1.8;
        }

        .hero-nav {
            display: flex;
            flex-direction: column;
            align-items: center;
            gap: 0.5rem;
            margin-bottom: 2rem;
            z-index: 20;
        }
        
        @media (max-width: 768px) {
            .hero-nav {
                gap: 0.4rem;
                margin-bottom: 1rem;
            }
        }

        .nav-link {
            color: var(--neon-blue);
            text-decoration: none;
            font-size: 1.2rem;
            font-weight: 500;
            text-transform: uppercase;
            letter-spacing: 2px;
            padding: 0.75rem 2rem;
            border: 1px solid transparent;
            transition: all 0.3s ease;
            position: relative;
            text-shadow: 0 0 5px rgba(5, 217, 232, 0.5);
            text-align: center;
            min-width: 200px;
        }

        .nav-link:hover {
            color: var(--neon-pink);
            text-shadow: 0 0 10px var(--neon-pink);
            transform: translateY(-2px);
        }

        .nav-link::after {
            content: '';
            position: absolute;
            bottom: 0;
            left: 50%;
            width: 0;
            height: 2px;
            background: var(--neon-pink);
            transition: all 0.3s ease;
            box-shadow: 0 0 5px var(--neon-pink);
            transform: translateX(-50%);
        }

        .nav-link:hover::after {
            width: 80%;
        }

        .email-link {
            color: var(--neon-blue);
            text-decoration: none;
            font-size: 0.75rem;
            font-weight: 400;
            letter-spacing: 0.5px;
            margin-top: -0.5rem;
            margin-bottom: 2rem;
            transition: all 0.3s ease;
            text-shadow: 0 0 5px rgba(5, 217, 232, 0.5);
            display: inline-block;
        }

        .email-link:hover {
            color: var(--neon-pink);
            text-shadow: 0 0 10px var(--neon-pink);
            transform: translateY(-2px);
        }

        @media (max-width: 768px) {
            .email-link {
                font-size: 0.65rem;
                margin-bottom: 1.5rem;
            }
        }

        .app-container {
            display: flex;
            flex-wrap: wrap;
            justify-content: center;
            gap: 2rem;
            width: 100%;
            max-width: 1100px;
        }
        
        .app-highlight {
            background: rgba(11, 11, 26, 0.7);
            border: 1px solid var(--neon-purple);
            border-radius: 8px;
            padding: 2rem;
            box-shadow: 0 0 20px rgba(189, 0, 255, 0.3);
            backdrop-filter: blur(5px);
            max-width: 350px;
            width: 100%;
        }
        
        .app-coming-soon {
            border: 1px dashed var(--neon-pink);
            box-shadow: 0 0 20px rgba(255, 42, 109, 0.3);
        }
        
        .app-status {
            display: inline-block;
            background-color: rgba(255, 42, 109, 0.2);
            color: var(--neon-pink);
            padding: 0.25rem 0.75rem;
            border-radius: 9999px;
            font-size: 0.75rem;
            font-weight: 500;
            margin-bottom: 1rem;
            border: 1px solid rgba(255, 42, 109, 0.3);
            text-transform: uppercase;
            letter-spacing: 1px;
        }

        .app-title {
            font-size: 1.5rem;
            color: var(--neon-blue);
            margin-bottom: 1rem;
            text-shadow: 0 0 5px var(--neon-blue);
        }

        footer {
            position: relative;
            text-align: center;
            padding: 3rem 2rem;
            font-size: 0.9rem;
            color: rgba(255, 255, 255, 0.7);
            z-index: 10;
            background: linear-gradient(to bottom, transparent, rgba(11, 11, 26, 0.95));
            text-shadow: 0 0 5px rgba(0, 0, 0, 0.5);
        }

        .cursor-follower {
            position: fixed;
            width: 300px;
            height: 300px;
            border-radius: 50%;
            background: radial-gradient(
                circle,
                rgba(5, 217, 232, 0.2) 0%,
                rgba(189, 0, 255, 0.1) 50%,
                transparent 70%
            );
            pointer-events: none;
            z-index: 0; /* keep under cards */
            mix-blend-mode: normal; /* prevent bleed-through on overlays */
            transform: translate(-50%, -50%);
        }
        
        /* Hide cursor follower when hovering over hero section */
        .glass-hero-image-wrapper:hover ~ .cursor-follower,
        .glass-hero-content-wrapper:hover ~ .cursor-follower,
        body:has(.glass-hero-image-wrapper:hover) .cursor-follower,
        body:has(.glass-hero-content-wrapper:hover) .cursor-follower {
            display: none !important;
        }

        .cursor-trail {
            position: fixed;
            width: 10px;
            height: 10px;
            border-radius: 50%;
            background-color: var(--neon-blue);
            pointer-events: none;
            z-index: 0; /* stay beneath cards */
            opacity: 0.7;
            box-shadow: 0 0 10px var(--neon-blue);
            transform: translate(-50%, -50%);
        }
        
        /* Hide cursor trail when hovering over hero section */
        body:has(.glass-hero-image-wrapper:hover) .cursor-trail,
        body:has(.glass-hero-content-wrapper:hover) .cursor-trail {
            display: none !important;
        }

        @keyframes pulsate {
            0% {
                text-shadow: 
                    0 0 10px var(--neon-blue),
                    0 0 20px var(--neon-blue);
            }
            100% {
                text-shadow: 
                    0 0 15px var(--neon-blue),
                    0 0 30px var(--neon-blue),
                    0 0 45px var(--neon-blue);
            }
        }

        @media (max-width: 768px) {
            .content {
                padding: 2rem 1.5rem;
                justify-content: flex-start;
                padding-top: 4rem;
            }
            
            .logo {
                font-size: 2.5rem;
            }
            
            .tagline {
                font-size: 1.2rem;
            }
            
            .description {
                font-size: 1rem;
                margin-bottom: 2rem;
            }
            
            .grid {
                background-size: 30px 30px;
            }
            
            .app-container {
                margin-top: 1rem;
            }
        }
        
        @media (max-width: 480px) {
            .content {
                padding: 1.5rem 1rem;
                padding-top: 3rem;
            }
            
            .logo {
                font-size: 2rem;
                margin-bottom: 0.5rem;
            }
            
            .tagline {
                font-size: 1rem;
                margin-bottom: 1.5rem;
            }
            
            .app-highlight {
                padding: 1.5rem;
            }
            
            .app-title {
                font-size: 1.2rem;
            }
            
            .app-store-link {
                padding: 0.5rem 1rem;
                font-size: 0.8rem;
            }
            
            footer {
                padding: 0.75rem 1.5rem;
                font-size: 0.8rem;
            }
        }
        
        @media (max-height: 600px) {
            .content {
                padding-top: 2rem;
                justify-content: flex-start;
            }
            
            .description {
                margin-bottom: 1.5rem;
            }
            
            .app-container {
                margin-top: 0.5rem;
            }
        }

        .app-store-link {
            display: inline-flex;
            align-items: center;
            margin-top: 1.5rem;
            padding: 0.6rem 1.2rem;
            background: rgba(5, 217, 232, 0.1);
            border: 1px solid var(--neon-blue);
            border-radius: 4px;
            color: var(--neon-blue);
            text-decoration: none;
            font-size: 0.9rem;
            font-weight: 500;
            transition: all 0.3s ease;
            box-shadow: 0 0 10px rgba(5, 217, 232, 0.3);
            text-shadow: 0 0 5px var(--neon-blue);
        }
        
        .app-store-link:hover {
            background: rgba(5, 217, 232, 0.2);
            box-shadow: 0 0 15px rgba(5, 217, 232, 0.5);
            transform: translateY(-2px);
        }
        
        .app-store-icon {
            display: inline-flex;
            margin-right: 0.5rem;
        }

        .app-icon {
            display: flex;
            justify-content: center;
            margin-bottom: 1.5rem;
        }

        .app-icon img,
        .app-icon svg {
            width: 64px;
            height: 64px;
            object-fit: contain;
            filter: drop-shadow(0 0 8px var(--neon-blue));
        }

        .app-icon-coffee img,
        .app-icon-coffee svg {
             filter: drop-shadow(0 0 8px var(--neon-blue));
        }

        .app-icon-rounded img,
        .app-icon-rounded svg {
            border-radius: 12px;
        }

        .app-clickable-area {
            text-decoration: none;
            color: inherit;
            display: block;
            transition: transform 0.3s ease;
        }

        .app-clickable-area:hover {
            transform: translateY(-5px);
        }
        
        /* Tech Overlay Styles */
        .tech-trigger {
            position: absolute;
            top: 10px;
            right: 10px;
            width: 24px;
            height: 24px;
            cursor: pointer;
            opacity: 0.5;
            transition: opacity 0.3s;
            z-index: 20;
        }
        
        .tech-trigger:hover {
            opacity: 1;
        }
        
        .tech-overlay {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(11, 11, 26, 0.95);
            backdrop-filter: blur(10px);
            padding: 1.5rem;
            border-radius: 8px;
            opacity: 0;
            pointer-events: none;
            transition: opacity 0.3s ease;
            display: flex;
            flex-direction: column;
            justify-content: center;
            text-align: left;
            border: 1px solid var(--neon-blue);
            z-index: 30;
        }
        
        .tech-trigger:hover + .tech-overlay,
        .tech-overlay:hover {
            opacity: 1;
            pointer-events: auto;
        }
        
        .tech-content {
            font-family: 'Courier New', Courier, monospace;
            font-size: 0.75rem;
            color: var(--neon-blue);
        }
        
        .tech-header {
            font-weight: bold;
            margin-bottom: 1rem;
            border-bottom: 1px solid var(--neon-pink);
            padding-bottom: 0.5rem;
            color: var(--neon-pink);
            text-transform: uppercase;
            letter-spacing: 1px;
        }
        
        .tech-item {
            margin-bottom: 0.5rem;
            line-height: 1.4;
        }
        
        .tech-label {
            color: var(--neon-purple);
            font-weight: bold;
        }

        .app-highlight {
            position: relative;
            overflow: hidden;
        }

        /* ========================================
           OIL PHYSICS CURSOR
           Dynamic sloshing oil effect
           ======================================== */
        
        .oil-cursor-canvas {
            position: fixed;
            pointer-events: none;
            z-index: 10000;
            opacity: 0;
            transition: opacity 0.15s ease;
            image-rendering: -webkit-optimize-contrast;
            image-rendering: crisp-edges;
        }
        
        /* Hide default cursor in hero area only (not gallery) */
        .glass-hero-image-wrapper,
        .glass-hero-image-wrapper *,
        .glass-hero-image-wrapper *::before,
        .glass-hero-image-wrapper *::after,
        .glass-hero-content-wrapper,
        .glass-hero-content-wrapper *,
        .glass-hero-content-wrapper *::before,
        .glass-hero-content-wrapper *::after {
            cursor: none !important;
        }
        
        /* Ensure interactive elements in hero also hide cursor */
        .glass-hero-image-wrapper a,
        .glass-hero-image-wrapper button,
        .glass-hero-content-wrapper a,
        .glass-hero-content-wrapper button,
        .glass-hero-letter {
            cursor: none !important;
        }

        /* ========================================
           STAINED GLASS GALLERY SECTION
           Apple-inspired scroll animations
           ======================================== */
        
        .glass-section {
            position: relative;
            z-index: 10;
            min-height: 100vh;
            padding: 2rem 2rem 6rem 2rem;
            overflow: hidden;
        }
        
        .glass-section * {
            /* cursor inherited from parent */
        }

        /* Removed gradient overlay */

        .glass-header {
            text-align: center;
            margin-bottom: 4rem;
            opacity: 0;
            transform: translateY(60px);
            transition: all 1.2s cubic-bezier(0.16, 1, 0.3, 1);
        }

        .glass-header.animate-in {
            opacity: 1;
            transform: translateY(0);
        }

        .glass-title {
            font-size: 3.5rem;
            font-weight: 700;
            background: linear-gradient(135deg, var(--neon-pink), var(--neon-purple), var(--neon-blue));
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            background-clip: text;
            margin-bottom: 1rem;
            text-transform: uppercase;
            letter-spacing: 3px;
        }

        .glass-subtitle {
            font-size: 1.2rem;
            color: rgba(255, 255, 255, 0.7);
            max-width: 600px;
            margin: 0 auto;
            line-height: 1.8;
        }

        /* Parallax container */
        .glass-parallax-wrapper {
            position: relative;
            perspective: 1000px;
        }

        /* Gallery Grid */
        .glass-gallery {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
            gap: 3rem;
            max-width: 1400px;
            margin: 0 auto;
            padding: 2rem;
        }

        /* Individual Glass Piece */
        .glass-piece {
            position: relative;
            background: rgba(11, 11, 26, 0.6);
            border-radius: 16px;
            overflow: hidden;
            opacity: 0;
            transform: translateY(100px) scale(0.9);
            transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
            border: 1px solid rgba(189, 0, 255, 0.2);
            /* Allow tap/scroll, disable double-tap zoom on cards */
            touch-action: manipulation;
            z-index: 5; /* ensure cards sit above cursor glow */
        }

        .glass-piece.animate-in {
            opacity: 1;
            transform: translateY(0) scale(1);
        }

        /* Stagger animation delays */
        .glass-piece:nth-child(1) { transition-delay: 0s; }
        .glass-piece:nth-child(2) { transition-delay: 0.15s; }
        .glass-piece:nth-child(3) { transition-delay: 0.3s; }
        .glass-piece:nth-child(4) { transition-delay: 0.45s; }
        .glass-piece:nth-child(5) { transition-delay: 0.6s; }
        .glass-piece:nth-child(6) { transition-delay: 0.75s; }

        /* Image container with light effect */
        .glass-image-container {
            position: relative;
            aspect-ratio: 4/5;
            overflow: hidden;
            background: linear-gradient(135deg, rgba(189, 0, 255, 0.1), rgba(5, 217, 232, 0.1));
            /* Allow tap/scroll, disable double-tap zoom on cards */
            touch-action: manipulation;
        }

        .glass-image {
            width: 100%;
            height: 100%;
            object-fit: cover;
            opacity: 1;
            transition: opacity 0.35s ease, transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
            /* Allow tap/scroll, disable double-tap zoom on card images */
            touch-action: manipulation;
        }

        /* Fade state used when swapping inline card photos */
        .glass-image.card-image-fading {
            opacity: 0;
        }

        .glass-image,
        .carousel-slide img,
        .carousel-thumb img {
            image-orientation: from-image;
        }

        /* Light simulation overlay - always visible */
        .glass-light-overlay {
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: radial-gradient(
                ellipse at 30% 20%,
                rgba(255, 255, 255, 0.15) 0%,
                transparent 50%
            );
            pointer-events: none;
            opacity: 1;
        }

        .glass-piece:hover .glass-light-overlay {
            /* Animation removed */
        }

        /* Shimmer keyframes removed */

        /* Glow border effect */
        .glass-glow {
            position: absolute;
            top: -2px;
            left: -2px;
            right: -2px;
            bottom: -2px;
            border-radius: 18px;
            background: linear-gradient(135deg, var(--neon-pink), var(--neon-purple), var(--neon-blue), var(--neon-pink));
            background-size: 400% 400%;
            z-index: -1;
            opacity: 0;
            filter: blur(8px);
            transition: opacity 0.4s ease;
        }

        .glass-piece:hover .glass-glow {
            opacity: 0.6;
            animation: glow-rotate 3s linear infinite;
        }

        @keyframes glow-rotate {
            0% { background-position: 0% 50%; }
            50% { background-position: 100% 50%; }
            100% { background-position: 0% 50%; }
        }

        /* Piece info */
        .glass-info {
            padding: 1.5rem;
            position: relative;
        }

        .glass-name {
            display: none;
        }

        .glass-description {
            font-size: 0.9rem;
            color: rgba(255, 255, 255, 0.6);
            line-height: 1.6;
        }

        .glass-meta {
            display: flex;
            align-items: center;
            gap: 1rem;
            margin-top: 1rem;
            font-size: 0.75rem;
            color: var(--neon-blue);
            text-transform: uppercase;
            letter-spacing: 1px;
        }

        .glass-meta span {
            display: flex;
            align-items: center;
            gap: 0.3rem;
        }

        .glass-share {
            margin-left: auto;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            width: 34px;
            height: 34px;
            padding: 0;
            border-radius: 50%;
            border: 1px solid rgba(5, 217, 232, 0.5);
            background: rgba(5, 217, 232, 0.12);
            color: var(--neon-blue);
            cursor: pointer;
            transition: all 0.2s ease;
        }

        .glass-share:hover {
            background: rgba(5, 217, 232, 0.2);
            box-shadow: 0 0 12px rgba(5, 217, 232, 0.3);
            transform: translateY(-1px);
        }

        .glass-share:active {
            transform: translateY(0);
        }

        .glass-share svg {
            width: 16px;
            height: 16px;
            stroke: currentColor;
        }

        /* Placeholder for no image */
        .glass-placeholder {
            width: 100%;
            height: 100%;
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            background: linear-gradient(135deg, 
                rgba(189, 0, 255, 0.15) 0%, 
                rgba(5, 217, 232, 0.1) 50%,
                rgba(255, 42, 109, 0.15) 100%);
            color: rgba(255, 255, 255, 0.4);
            font-size: 0.9rem;
            text-transform: uppercase;
            letter-spacing: 2px;
        }

        .glass-placeholder svg {
            width: 48px;
            height: 48px;
            margin-bottom: 1rem;
            opacity: 0.5;
        }

        /* Featured piece - larger */
        .glass-piece.featured {
            grid-column: span 2;
        }

        .glass-piece.featured .glass-image-container {
            aspect-ratio: 16/9;
        }

        /* ========================================
           EXPANDABLE PROJECT GALLERY
           ======================================== */
        
        .glass-piece,
        .glass-piece * {
            cursor: pointer;
        }

        .glass-piece .expand-icon {
            position: absolute;
            bottom: 1rem;
            right: 1rem;
            width: 32px;
            height: 32px;
            background: rgba(11, 11, 26, 0.8);
            border: 1px solid var(--neon-blue);
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            opacity: 0;
            transition: all 0.3s ease;
            z-index: 5;
        }

        .glass-piece:hover .expand-icon {
            opacity: 1;
        }

        .glass-piece .expand-icon svg {
            width: 16px;
            height: 16px;
            stroke: var(--neon-blue);
        }

        .glass-piece .photo-count {
            position: absolute;
            top: 1rem;
            right: 1rem;
            background: rgba(11, 11, 26, 0.8);
            border: 1px solid var(--neon-purple);
            border-radius: 20px;
            padding: 0.3rem 0.8rem;
            font-size: 0.7rem;
            color: var(--neon-purple);
            letter-spacing: 1px;
            z-index: 5;
        }

        /* Inline card navigation arrows */
        .card-nav {
            position: absolute;
            top: 50%;
            transform: translateY(-50%);
            width: 40px;
            height: 40px;
            border-radius: 50%;
            border: 1px solid rgba(255, 255, 255, 0.15);
            background: rgba(11, 11, 26, 0.75);
            box-shadow: 0 0 20px rgba(0, 0, 0, 0.4);
            backdrop-filter: blur(6px);
            display: flex;
            align-items: center;
            justify-content: center;
            color: var(--text);
            cursor: pointer;
            opacity: 0;
            transition: all 0.25s ease;
            z-index: 6;
        }

        .card-nav svg {
            width: 18px;
            height: 18px;
            stroke: var(--neon-blue);
        }

        .glass-piece:hover .card-nav,
        .glass-piece:focus-within .card-nav {
            opacity: 1;
        }

        .card-nav.prev {
            left: 10px;
        }

        .card-nav.next {
            right: 10px;
        }

        .card-nav:active {
            transform: translateY(-50%) scale(0.96);
        }

        .card-nav:focus-visible {
            outline: 2px solid var(--neon-blue);
            outline-offset: 2px;
            opacity: 1;
        }

        .card-nav.disabled {
            opacity: 0;
            pointer-events: none;
        }

        /* Keep disabled arrows hidden even on hover/focus states */
        .glass-piece:hover .card-nav.disabled,
        .glass-piece:focus-within .card-nav.disabled {
            opacity: 0;
            pointer-events: none;
        }

        /* ========================================
           CINEMATIC FULL-SCREEN CAROUSEL
           Immersive photo viewing experience
           ======================================== */
        
        .project-modal {
            position: fixed;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: rgba(5, 5, 15, 0.98);
            backdrop-filter: blur(8px);
            -webkit-backdrop-filter: blur(8px);
            z-index: 1000;
            display: flex;
            flex-direction: column;
            opacity: 0;
            pointer-events: none;
            transition: opacity 0.5s cubic-bezier(0.16, 1, 0.3, 1);
            /* Prevent background page from scrolling when modal is open */
            overscroll-behavior: contain;
        }

        .project-modal.active {
            opacity: 1;
            pointer-events: auto;
        }

        /* Minimal header bar */
        .project-modal-header {
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            display: grid;
            grid-template-columns: 1fr auto 1fr;
            align-items: center;
            padding: 1.5rem 2rem;
            z-index: 20;
            background: linear-gradient(to bottom, rgba(5, 5, 15, 0.9), transparent);
        }

        .project-modal-title {
            display: none;
        }

        .project-modal-counter {
            font-size: 0.85rem;
            color: rgba(255, 255, 255, 0.6);
            font-family: 'Courier New', monospace;
            letter-spacing: 1px;
            justify-self: center;
            text-align: center;
        }

        .project-modal-counter .current {
            color: var(--neon-blue);
            text-shadow: 0 0 10px var(--neon-blue);
        }

        .project-modal-close {
            position: absolute;
            top: 16px;
            right: 16px;
            width: 44px;
            height: 44px;
            background: rgba(255, 255, 255, 0.05);
            border: 1px solid rgba(255, 255, 255, 0.1);
            border-radius: 50%;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            transition: all 0.3s ease;
        }

        .project-modal-close:hover {
            background: rgba(255, 42, 109, 0.2);
            border-color: var(--neon-pink);
            box-shadow: 0 0 20px rgba(255, 42, 109, 0.4);
            transform: scale(1.05);
        }

        .project-modal-close svg {
            width: 20px;
            height: 20px;
            stroke: rgba(255, 255, 255, 0.8);
            transition: stroke 0.3s ease;
        }

        .project-modal-close:hover svg {
            stroke: var(--neon-pink);
        }

        /* Main carousel stage */
        .carousel-stage {
            flex: 1;
            position: relative;
            display: flex;
            align-items: center;
            justify-content: center;
            overflow: hidden;
            padding: 40px 40px 180px;
            box-sizing: border-box;
            /* Allow pinch-zoom on images within stage */
            touch-action: pinch-zoom pan-x pan-y;
        }

        /* Individual slides */
        .carousel-slide {
            position: absolute;
            width: 100%;
            height: 100%;
            display: flex;
            align-items: center;
            justify-content: center;
            opacity: 0;
            transform: scale(0.95);
            transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
            pointer-events: none;
    overflow: hidden; /* contain zoomed image */
        }

        .carousel-slide.active {
            opacity: 1;
            transform: scale(1);
            pointer-events: auto;
        }

        .carousel-slide.prev {
            opacity: 0;
            transform: translateX(-100px) scale(0.9);
        }

        .carousel-slide.next {
            opacity: 0;
            transform: translateX(100px) scale(0.9);
        }

        .carousel-slide picture,
        .carousel-slide img {
            max-width: calc(100vw - 120px);
            max-height: calc(100vh - 220px);
            object-fit: contain;
            /* Allow pinch-zoom on images - GPU optimizations prevent crash */
            touch-action: pinch-zoom pan-x pan-y;
            border-radius: 8px;
            box-shadow: 
                0 18px 50px rgba(0, 0, 0, 0.5),
                0 0 1px rgba(255, 255, 255, 0.08);
        }

        @keyframes subtleZoom {
            0% { transform: scale(1); }
            100% { transform: scale(1.03); }
        }

        .carousel-slide .slide-label {
            position: absolute;
            bottom: 20px;
            left: 50%;
            transform: translateX(-50%);
            background: rgba(11, 11, 26, 0.8);
            border: 1px solid rgba(189, 0, 255, 0.3);
            border-radius: 20px;
            padding: 0.5rem 1.2rem;
            font-size: 0.75rem;
            color: var(--neon-purple);
            letter-spacing: 2px;
            text-transform: uppercase;
            backdrop-filter: blur(10px);
        }

        /* Navigation arrows */
        .carousel-nav {
            position: absolute;
            top: 50%;
            transform: translateY(-50%);
            width: 56px;
            height: 56px;
            background: rgba(255, 255, 255, 0.03);
            border: 1px solid rgba(255, 255, 255, 0.1);
            border-radius: 50%;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            transition: all 0.3s ease;
            z-index: 15;
        }

        .carousel-nav:hover {
            background: rgba(5, 217, 232, 0.1);
            border-color: var(--neon-blue);
            box-shadow: 0 0 30px rgba(5, 217, 232, 0.3);
            transform: translateY(-50%) scale(1.1);
        }

        .carousel-nav:active {
            transform: translateY(-50%) scale(0.95);
        }

        .carousel-nav svg {
            width: 24px;
            height: 24px;
            stroke: rgba(255, 255, 255, 0.6);
            transition: stroke 0.3s ease;
        }

        .carousel-nav:hover svg {
            stroke: var(--neon-blue);
        }

        .carousel-nav.prev {
            left: 20px;
        }

        .carousel-nav.next {
            right: 20px;
        }

        .carousel-nav.disabled {
            opacity: 0.2;
            pointer-events: none;
        }

        /* Thumbnail strip */
        .carousel-thumbnails {
            position: absolute;
            bottom: 0;
            left: 0;
            right: 0;
            padding: 1.5rem 2rem 2rem;
            background: linear-gradient(to top, rgba(5, 5, 15, 0.95), transparent);
            z-index: 15;
        }

        .carousel-thumbnails-track {
            display: flex;
            justify-content: center;
            gap: 12px;
            overflow-x: auto;
            padding: 8px 0;
            scrollbar-width: none;
            -ms-overflow-style: none;
        }

        .carousel-thumbnails-track::-webkit-scrollbar {
            display: none;
        }

        .carousel-thumb {
            flex-shrink: 0;
            width: 70px;
            height: 70px;
            border-radius: 8px;
            overflow: hidden;
            cursor: pointer;
            border: 2px solid transparent;
            opacity: 0.5;
            transition: all 0.3s ease;
            position: relative;
        }

        .carousel-thumb::after {
            content: '';
            position: absolute;
            inset: 0;
            background: linear-gradient(135deg, transparent, rgba(5, 217, 232, 0.2));
            opacity: 0;
            transition: opacity 0.3s ease;
        }

        .carousel-thumb:hover {
            opacity: 0.8;
            transform: translateY(-3px);
        }

        .carousel-thumb:hover::after {
            opacity: 1;
        }

        .carousel-thumb.active {
            opacity: 1;
            border-color: var(--neon-blue);
            box-shadow: 0 0 20px rgba(5, 217, 232, 0.4);
            transform: translateY(-3px);
        }

        .carousel-thumb img {
            width: 100%;
            height: 100%;
            object-fit: cover;
        }

        /* Progress bar */
        .carousel-progress {
            position: absolute;
            bottom: 110px;
            left: 50%;
            transform: translateX(-50%);
            display: flex;
            gap: 8px;
            z-index: 15;
        }

        .carousel-progress-dot {
            width: 8px;
            height: 8px;
            border-radius: 50%;
            background: rgba(255, 255, 255, 0.2);
            cursor: pointer;
            transition: all 0.3s ease;
        }

        .carousel-progress-dot:hover {
            background: rgba(255, 255, 255, 0.4);
        }

        .carousel-progress-dot.active {
            background: var(--neon-blue);
            box-shadow: 0 0 12px var(--neon-blue);
            transform: scale(1.3);
        }

        /* Keyboard hint */
        .carousel-hint {
            position: absolute;
            bottom: 115px;
            right: 2rem;
            display: flex;
            align-items: center;
            gap: 0.5rem;
            font-size: 0.7rem;
            color: rgba(255, 255, 255, 0.3);
            letter-spacing: 1px;
            z-index: 15;
        }

        .carousel-hint kbd {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            min-width: 24px;
            height: 24px;
            padding: 0 6px;
            background: rgba(255, 255, 255, 0.05);
            border: 1px solid rgba(255, 255, 255, 0.1);
            border-radius: 4px;
            font-family: inherit;
            font-size: 0.65rem;
        }

        /* Mobile responsive */
        @media (max-width: 768px) {
            .carousel-stage {
                padding: 70px 10px 130px;
            }

            /* Disable heavy blur on mobile to avoid iOS/Safari GPU crashes when pinch-zooming */
            .project-modal {
                backdrop-filter: none;
                -webkit-backdrop-filter: none;
                background: rgba(5, 5, 15, 0.98);
            }

            /* Lighten slide rendering on mobile to reduce GPU pressure during zoom */
            .carousel-slide {
                /* Simpler transitions that won't compete with browser zoom */
                transition: opacity 0.3s ease;
            }

            .carousel-slide picture,
            .carousel-slide img {
                box-shadow: none;
                max-width: 94vw;
                max-height: 70vh;
                border-radius: 6px;
                /* Allow full pinch-zoom on mobile images */
                touch-action: pinch-zoom pan-x pan-y;
                /* Hint to GPU this element will be transformed */
                will-change: transform;
            }

            .carousel-nav {
                width: 44px;
                height: 44px;
            }

            .carousel-nav.prev { left: 10px; }
            .carousel-nav.next { right: 10px; }

            .carousel-nav svg {
                width: 20px;
                height: 20px;
            }

            .carousel-thumb {
                width: 56px;
                height: 56px;
            }

            .carousel-thumbnails {
                padding: 1rem;
            }

            .project-modal-header {
                padding: 1rem;
            }

            .project-modal-close {
                justify-self: end;
            }

            .project-modal-title {
                font-size: 1rem;
            }

            .carousel-hint {
                display: none;
            }

            .carousel-progress {
                bottom: 100px;
            }
        }

        @media (max-width: 480px) {
            .carousel-thumb {
                width: 48px;
                height: 48px;
            }

            .carousel-thumbnails-track {
                gap: 8px;
            }
        }

        /* Scroll progress indicator */
        .glass-progress {
            position: fixed;
            bottom: 30px;
            left: 50%;
            transform: translateX(-50%);
            display: flex;
            gap: 8px;
            z-index: 100;
            padding: 12px 20px;
            background: rgba(11, 11, 26, 0.8);
            backdrop-filter: blur(10px);
            border-radius: 30px;
            border: 1px solid rgba(189, 0, 255, 0.3);
            opacity: 0;
            transition: opacity 0.3s ease;
        }

        .glass-progress.visible {
            opacity: 1;
        }

        .glass-progress-dot {
            width: 10px;
            height: 10px;
            border-radius: 50%;
            background: rgba(255, 255, 255, 0.2);
            transition: all 0.3s ease;
        }

        .glass-progress-dot.active {
            background: var(--neon-blue);
            box-shadow: 0 0 10px var(--neon-blue);
            transform: scale(1.2);
        }

        /* ========================================
           IMMERSIVE HERO IMAGE SECTION
           Apple-style full-bleed scroll-past
           ======================================== */
        
        .glass-hero-image-wrapper {
            position: relative;
            height: 100vh;
            width: 100%;
            overflow: hidden;
            margin-bottom: 0;
        }
        
        /* Hide cursor follower and trail in hero section */
        .glass-hero-image-wrapper .cursor-follower,
        .glass-hero-image-wrapper ~ * .cursor-follower {
            display: none !important;
        }
        
        .glass-hero-image-wrapper .cursor-trail,
        .glass-hero-image-wrapper ~ * .cursor-trail {
            display: none !important;
        }

        .glass-hero-image-container {
            position: sticky;
            top: 0;
            height: 100vh;
            width: 100%;
            overflow: hidden;
            z-index: 15;
        }

        .glass-hero-image {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 120%;
            object-fit: cover;
            object-position: center;
            will-change: transform;
            transition: transform 0.1s linear;
        }

        /* Hide synthwave elements behind hero */
        .glass-hero-image-wrapper {
            background: var(--primary);
        }

        .glass-hero-image-container {
            background: var(--primary);
        }

        /* Dark overlay for text readability */
        .glass-hero-overlay {
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: linear-gradient(
                to bottom,
                rgba(11, 11, 26, 0.7) 0%,
                rgba(11, 11, 26, 0.5) 30%,
                rgba(11, 11, 26, 0.5) 70%,
                rgba(11, 11, 26, 0.9) 100%
            );
            z-index: 2;
        }

        /* Vignette effect */
        .glass-hero-vignette {
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            box-shadow: inset 0 0 150px 50px rgba(11, 11, 26, 0.5);
            z-index: 3;
            pointer-events: none;
        }

        /* Hero content overlay */
        .glass-hero-content-wrapper {
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            z-index: 10;
            padding: 2rem;
        }
        
        /* Hide cursor follower and trail when hovering over hero content */
        .glass-hero-content-wrapper:hover ~ * .cursor-follower,
        .glass-hero-content-wrapper .cursor-follower {
            display: none !important;
        }
        
        .glass-hero-content-wrapper:hover ~ * .cursor-trail,
        .glass-hero-content-wrapper .cursor-trail {
            display: none !important;
        }

        .glass-hero-content {
            text-align: center;
            opacity: 0;
            transform: translateY(60px) scale(0.95);
            transition: all 1.2s cubic-bezier(0.16, 1, 0.3, 1);
        }

        .glass-hero-content.animate-in {
            opacity: 1;
            transform: translateY(0) scale(1);
        }

        .glass-hero-title {
            font-size: clamp(2rem, 6vw, 4rem);
            font-weight: 400;
            letter-spacing: 0.2em;
            text-transform: uppercase;
            margin-bottom: 1rem;
            display: flex;
            align-items: center;
            justify-content: center;
            flex-wrap: wrap;
            gap: 0.1em;
            font-family: 'Courier New', Courier, monospace;
            opacity: 0;
            transform: translateY(20px);
            transition: all 1s cubic-bezier(0.16, 1, 0.3, 1) 0.3s;
            max-width: 90vw;
            text-align: center;
        }

        .mobile-break {
            display: none;
            flex-basis: 100%;
            height: 0;
        }
        
        .desktop-break {
            display: none;
            flex-basis: 100%;
            height: 0;
        }
        
        @media (max-width: 768px) {
            .mobile-break {
                display: block;
            }
        }
        
        @media (min-width: 769px) {
            .desktop-break {
                display: block;
            }
        }

        .glass-hero-content.animate-in .glass-hero-title {
            opacity: 1;
            transform: translateY(0);
        }

        /* Interactive letter styles */
        .glass-hero-letter {
            display: inline-block;
            color: var(--text);
            transition: all 1s cubic-bezier(0.175, 0.885, 0.32, 1.275);
            position: relative;
            padding: 0 2px;
            will-change: transform, color, text-shadow, font-family;
            font-weight: 600;
            text-shadow: 
                3px 3px 0px #000000,
                -1px -1px 0 #000,  
                1px -1px 0 #000,
                -1px 1px 0 #000,
                1px 1px 0 #000,
                0 0 30px rgba(0,0,0,0.9);
        }

        .glass-hero-letter.space {
            width: 0.5em;
        }

        .glass-hero-letter:hover {
            transform: scale(2) translateY(-10px) rotate(5deg);
            font-weight: bold;
            text-shadow: 0 0 30px currentColor, 0 0 10px rgba(0,0,0,0.8);
            z-index: 100;
            animation: pulse-hover 1.5s infinite alternate ease-in-out;
        }

        @keyframes pulse-hover {
            0% {
                transform: scale(2) translateY(-10px) rotate(5deg);
                filter: brightness(1);
            }
            100% {
                transform: scale(2.2) translateY(-15px) rotate(2deg);
                filter: brightness(1.3);
                text-shadow: 0 0 50px currentColor, 0 0 20px white, 0 0 10px rgba(0,0,0,0.8);
            }
        }

        .glass-hero-subtitle {
            font-size: clamp(0.8rem, 1.5vw, 1rem);
            color: rgba(255, 255, 255, 0.9);
            font-weight: 500;
            letter-spacing: 6px;
            text-transform: uppercase;
            opacity: 0;
            transform: translateY(20px);
            transition: all 1s cubic-bezier(0.16, 1, 0.3, 1) 0.6s;
            text-shadow: 
                -1px -1px 0 rgba(0, 0, 0, 0.8),
                1px -1px 0 rgba(0, 0, 0, 0.8),
                -1px 1px 0 rgba(0, 0, 0, 0.8),
                1px 1px 0 rgba(0, 0, 0, 0.8),
                0 0 20px rgba(0, 0, 0, 0.9);
            font-family: 'Courier New', Courier, monospace;
        }

        .glass-hero-content.animate-in .glass-hero-subtitle {
            opacity: 1;
            transform: translateY(0);
        }

        .glass-hero-statement {
            font-size: clamp(0.95rem, 2vw, 1.15rem);
            color: rgba(255, 255, 255, 0.85);
            font-weight: 400;
            line-height: 1.7;
            max-width: 700px;
            margin: 2rem auto 0;
            padding: 0 2rem;
            opacity: 0;
            transform: translateY(20px);
            transition: all 1s cubic-bezier(0.16, 1, 0.3, 1) 0.9s;
            text-shadow: 
                -1px -1px 0 rgba(0, 0, 0, 0.8),
                1px -1px 0 rgba(0, 0, 0, 0.8),
                -1px 1px 0 rgba(0, 0, 0, 0.8),
                1px 1px 0 rgba(0, 0, 0, 0.8),
                0 0 15px rgba(0, 0, 0, 0.7);
            font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
            letter-spacing: 0.3px;
        }

        .glass-hero-content.animate-in .glass-hero-statement {
            opacity: 1;
            transform: translateY(0);
        }

        /* Scroll hint at bottom */
        .glass-hero-scroll-hint {
            position: absolute;
            bottom: 3rem;
            left: 50%;
            transform: translateX(-50%);
            display: flex;
            flex-direction: column;
            align-items: center;
            gap: 0.5rem;
            color: rgba(255, 255, 255, 0.6);
            font-size: 0.7rem;
            text-transform: uppercase;
            letter-spacing: 3px;
            z-index: 10;
            opacity: 0;
            animation: fadeInUp 1s ease 1.5s forwards;
        }

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

        @keyframes fadeInUp {
            to {
                opacity: 1;
            }
        }

        @keyframes scrollPulse {
            0%, 100% { 
                opacity: 0.6;
                transform: scaleY(1);
            }
            50% { 
                opacity: 1;
                transform: scaleY(1.2);
            }
        }

        /* Responsive */
        @media (max-width: 768px) {
            .glass-hero-image-wrapper {
                height: 120vh;
            }
            
            .glass-hero-title {
                font-size: clamp(1.5rem, 8vw, 2.5rem);
                letter-spacing: 0.05em;
            }

            .glass-hero-subtitle {
                font-size: 0.9rem;
                letter-spacing: 2px;
            }

            .glass-hero-statement {
                font-size: clamp(0.85rem, 3vw, 1rem);
                padding: 0 1.5rem;
                margin-top: 1.5rem;
            }
        }

        /* Responsive */
        @media (max-width: 768px) {
            .glass-section {
                padding: 4rem 1rem;
            }

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

            .glass-gallery {
                grid-template-columns: 1fr;
                gap: 2rem;
                padding: 1rem;
            }

            .glass-piece.featured {
                grid-column: span 1;
            }

            .glass-piece.featured .glass-image-container {
                aspect-ratio: 4/5;
            }

            .glass-hero-title {
                font-size: clamp(1.5rem, 8vw, 2.5rem);
                letter-spacing: 0.05em;
                padding: 0 10px;
            }

            .glass-progress {
                bottom: 20px;
                padding: 8px 15px;
            }

            .glass-progress-dot {
                width: 8px;
                height: 8px;
            }

            /* Mobile GPU optimization - reduce effects that strain GPU during zoom */
            .glass-glow {
                /* Disable animated glow border on mobile */
                display: none;
            }

            .card-nav {
                /* Remove backdrop-filter on mobile navigation */
                backdrop-filter: none;
                -webkit-backdrop-filter: none;
            }
        }

        @media (max-width: 480px) {
            .glass-hero-title {
                font-size: clamp(1.2rem, 8vw, 2rem);
                letter-spacing: 0;
            }

            .glass-title {
                font-size: 1.8rem;
                letter-spacing: 1px;
            }

            .glass-subtitle {
                font-size: 1rem;
            }

            .glass-name {
                font-size: 1.1rem;
            }

            .glass-hero-statement {
                font-size: 0.9rem;
                padding: 0 1rem;
                margin-top: 1rem;
            }
        }

        /* Share toast */
        #glass-toast {
            position: fixed;
            bottom: 24px;
            right: 24px;
            background: rgba(11, 11, 26, 0.9);
            border: 1px solid rgba(5, 217, 232, 0.5);
            box-shadow: 0 0 20px rgba(5, 217, 232, 0.25);
            color: var(--text);
            padding: 0.75rem 1rem;
            border-radius: 12px;
            font-size: 0.9rem;
            letter-spacing: 0.5px;
            opacity: 0;
            transform: translateY(10px);
            pointer-events: none;
            transition: all 0.25s ease;
            z-index: 1200;
        }

        #glass-toast.visible {
            opacity: 1;
            transform: translateY(0);
        }

        @media (max-width: 600px) {
            #glass-toast {
                left: 50%;
                right: auto;
                bottom: 16px;
                transform: translate(-50%, 10px);
                text-align: center;
                max-width: calc(100vw - 40px);
            }

            #glass-toast.visible {
                transform: translate(-50%, 0);
            }
        }

