:root {
    --primary-magenta: #ff00ff;
    --primary-cyan: #00e5ff;
    --primary-emerald: #00ff88;
    --bg-dark: #030005;
}

body, html {
    margin: 0; padding: 0;
    color: #fff; font-family: 'Inter', sans-serif;
    background-color: var(--bg-dark);
    cursor: none; 
/* Hide native scrollbar but allow scrolling */
    overflow-x: hidden;
    -ms-overflow-style: none;
    scrollbar-width: none;
}
::-webkit-scrollbar {
    display: none;
}

/* Preloader */
#preloader {
    position: fixed; top: 0; left: 0; width: 100vw; height: 100vh;
    background: #030005; z-index: 9999;
    display: flex; justify-content: center; align-items: center;
    transition: transform 1s cubic-bezier(0.19, 1, 0.22, 1), opacity 1s;
}
#preloader.hidden {
    transform: translateY(-100%);
    opacity: 0; pointer-events: none;
}
.preloader-content { 
    text-align: center; 
    color: #fff; 
    display: flex; 
    flex-direction: column; 
    align-items: center; 
    justify-content: flex-start; 
    width: 100%;
    height: 100%; 
    position: relative;
    z-index: 2;
}

#preloader-canvas {
    position: absolute; 
    top: 50%; 
    left: 50%; 
    transform: translate(-50%, -50%);
    width: 100vw; 
    height: 100vh;
    z-index: 1; 
    pointer-events: none;
}
.progress-container {
    width: 200px; 
    height: 2px; 
    background: rgba(255, 255, 255, 0.1); 
    margin-top: 70vh;
    margin-bottom: 10px;
    position: relative; 
    overflow: hidden;
}
#progress-bar {
    position: absolute; top: 0; left: 0; height: 100%; width: 0%;
    background: #00e5ff; box-shadow: 0 0 10px #00e5ff; transition: width 0.1s;
}
#progress-text { 
    font-size: 0.9rem; 
    letter-spacing: 2px; 
    color: rgba(255, 255, 255, 0.5); 
    font-family: 'Inter', monospace;
}

/* Background Layers */
.noise-overlay {
    position: fixed; top: 0; left: 0; width: 100vw; height: 100vh;
    background: url('data:image/svg+xml;utf8,%3Csvg viewBox="0 0 200 200" xmlns="http://www.w3.org/2000/svg"%3E%3Cfilter id="noiseFilter"%3E%3CfeTurbulence type="fractalNoise" baseFrequency="0.9" numOctaves="3" stitchTiles="stitch"/%3E%3C/filter%3E%3Crect width="100%25" height="100%25" filter="url(%23noiseFilter)" opacity="0.08"/%3E%3C/svg%3E');
    z-index: 1; pointer-events: none; mix-blend-mode: overlay;
}

/* Re-introducing the Background Gradient */
.bg-gradient {
    position: fixed; top: 0; left: 0; width: 100vw; height: 100vh;
    z-index: 0; pointer-events: none; overflow: hidden;
    background: radial-gradient(circle at 50% 50%, rgba(255, 0, 255, 0.15) 0%, transparent 60%),
                radial-gradient(circle at 80% 80%, rgba(0, 229, 255, 0.1) 0%, transparent 50%);
    filter: blur(40px);
    transition: filter 0.1s linear; /* For JS hue-rotate */
    opacity: 1;
}

@media(max-width: 1024px) {
    .bg-gradient {
        /* Keep gradient visible on mobile */
        filter: blur(40px);
        opacity: 1;
    }
}

/* Foreground Canvas */
#hero-canvas {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    z-index: 10; pointer-events: none;
    transform: rotate(-15deg);
}

/* Custom Scrollbar */
.scrollbar-track {
    position: fixed; right: 0; top: 0; width: 8px; height: 100vh;
    background: rgba(255, 255, 255, 0.02); z-index: 9999;
    opacity: 0;
    transition: opacity 0.3s;
}
body.scrollbar-visible .scrollbar-track {
    opacity: 1;
}
.scrollbar-thumb {
    position: absolute; top: 0; left: 0; width: 100%; height: 100px;
    background: linear-gradient(to bottom, var(--primary-cyan), var(--primary-magenta));
    border-radius: 10px;
    cursor: pointer;
}
.scrollbar-thumb:hover {
    width: 12px;
    margin-left: -2px;
}

/* Smooth Scroll Wrapper */
#smooth-wrapper {
    position: fixed; top: 0; left: 0; width: 100vw; height: 100vh;
    overflow: hidden; z-index: 2;
}
#smooth-content {
    will-change: transform;
}

/* Navigation */
.navbar {
    position: fixed; top: 0; width: 100%; padding: 40px 5%;
    display: flex; justify-content: space-between; align-items: center;
    z-index: 100; box-sizing: border-box; mix-blend-mode: difference;
}
.logo { font-family: 'Syne', sans-serif; font-weight: 800; font-size: 1.8rem; letter-spacing: -1px; }
.nav-links a { color: #fff; text-decoration: none; margin-left: 40px; font-weight: 700; font-family: 'Syne', sans-serif; text-transform: uppercase; font-size: 0.9rem; letter-spacing: 1px; transition: color 0.3s; }
.nav-links a:hover { color: var(--primary-cyan); }

/* Panels */
.panel {
    min-height: 100vh; width: 100vw;
    display: flex; justify-content: center; align-items: center; flex-direction: column;
    position: relative; overflow: hidden; padding: 100px 5%;
    box-sizing: border-box;
    background: transparent;
}

/* Typography */
.title-huge {
    font-family: 'Syne', sans-serif; 
    font-size: clamp(2rem, 7vw, 10rem);
    font-weight: 800; 
    line-height: 1.1; 
    margin: 0; 
    text-transform: uppercase;
    letter-spacing: -2px;
    white-space: nowrap;
    max-width: 95vw;
    overflow: hidden;
    text-overflow: ellipsis;
}
.stroke-text {
    -webkit-text-stroke: 2px rgba(255,255,255,0.4); 
    color: transparent;
}

@media(max-width: 768px) {
    .title-huge {
        font-size: clamp(1.8rem, 6vw, 4rem);
        letter-spacing: -1px;
    }
}
@media(max-width: 480px) {
    .title-huge {
        font-size: clamp(1.5rem, 5.5vw, 3rem);
    }
}

/* Reveal Masks (Two-way Animations) */
.reveal-mask {
    overflow: visible; 
    padding-bottom: 5px;
}
.reveal-text {
    transform: translateY(110%); 
    opacity: 0; 
    transition: transform 0.8s cubic-bezier(0.19, 1, 0.22, 1), opacity 0.8s;
}
.reveal-mask.in-view .reveal-text {
    transform: translateY(0); 
    opacity: 1;
}
.reveal-fade {
    opacity: 0; translate: 0 40px; scale: 0.95; 
    transition: opacity 0.8s cubic-bezier(0.19, 1, 0.22, 1), translate 0.8s cubic-bezier(0.19, 1, 0.22, 1), scale 0.8s cubic-bezier(0.19, 1, 0.22, 1);
}
.reveal-fade.in-view {
    opacity: 1; translate: 0 0; scale: 1;
}

/* Liquid Glass Extreme Effect */
.liquid-glass {
    background: rgba(10, 5, 15, 0.1);
    backdrop-filter: blur(30px) saturate(200%) contrast(150%);
    -webkit-backdrop-filter: blur(30px) saturate(200%) contrast(150%);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-top: 1px solid rgba(255, 255, 255, 0.3);
    border-left: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 40px 80px rgba(0,0,0,0.8), inset 0 0 30px rgba(255,255,255,0.05);
}

/* Liquid Glass Lens Effect for Reviews */
.liquid-glass-lens {
    position: relative;
    border-radius: 40px;
    isolation: isolate;
    box-shadow: 0px 0px 21px -8px rgba(255, 255, 255, 0.3);
    cursor: none;
}

.liquid-glass-lens * {
    cursor: none !important;
}

/* Tint and inner shadow layer */
.liquid-glass-lens::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 0;
    border-radius: 40px;
    box-shadow: inset 0 0 10px -6px rgba(255, 255, 255, 0.7);
    background-color: rgba(255, 255, 255, 0);
    pointer-events: none;
}

/* Backdrop blur and distortion layer */
.liquid-glass-lens::after {
    content: '';
    position: absolute;
    inset: 0;
    z-index: -1;
    border-radius: 40px;
    backdrop-filter: blur(0px);
    -webkit-backdrop-filter: blur(0px);
    filter: url(#glass-distortion);
    -webkit-filter: url(#glass-distortion);
    isolation: isolate;
    pointer-events: none;
}

/* Smooth scroll animation for background */
@keyframes smoothScroll {
    0% { background-position: center 0%; }
    100% { background-position: center 100%; }
}

/* Hero specific */
.hero-content { 
    position: relative; 
    z-index: 3; 
    max-width: min(1400px, 95vw); 
    width: 100%; 
    pointer-events: auto;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
    margin: 0 auto;
}
.hero-subtext { font-size: 1.3rem; color: rgba(255,255,255,0.7); max-width: 500px; margin-top: 40px; margin-bottom: 40px; line-height: 1.6; }

/* Glass Panels (Expertise & Minecraft) */
.glass-panel { align-items: center; }
.panel-inner {
    display: flex; justify-content: space-between; align-items: stretch;
    width: 100%; max-width: 1400px; min-height: 70vh;
    padding: 80px; box-sizing: border-box; position: relative; overflow: hidden;
    border-radius: 40px;
}
.panel-content-left { width: 50%; display: flex; flex-direction: column; justify-content: center; z-index: 3; }
.panel-number { font-family: 'Syne', sans-serif; font-size: 1.5rem; color: rgba(255,255,255,0.4); margin-bottom: 20px; font-weight: 800; }
.panel-title { font-family: 'Syne', sans-serif; font-size: clamp(2.5rem, 4vw, 5rem); margin: 0 0 30px 0; line-height: 0.9; text-transform: uppercase; letter-spacing: -1px; }
.panel-desc p { font-size: 1.2rem; color: rgba(255,255,255,0.8); line-height: 1.6; max-width: 550px; font-weight: 300; }

/* Orbs under glass */
.panel-visual { position: absolute; right: -10%; top: -20%; width: 60%; height: 140%; z-index: 1; pointer-events: none; }
.lens-orb {
    width: 100%; height: 100%; border-radius: 50%; filter: blur(60px); mix-blend-mode: screen;
}
.color-magenta { background: radial-gradient(circle, var(--primary-magenta) 0%, transparent 60%); }
.color-cyan { background: radial-gradient(circle, var(--primary-cyan) 0%, transparent 60%); }
.color-emerald { background: radial-gradient(circle, var(--primary-emerald) 0%, transparent 60%); }
.color-dark-blue { background: radial-gradient(circle, #0044ff 0%, transparent 60%); }

/* Cases Grid */
.works-panel { padding-top: 50px; }
.cases-grid {
    display: grid; grid-template-columns: repeat(2, 1fr); gap: 40px;
    max-width: 1400px; width: 100%; z-index: 3;
}
.case-card {
    border-radius: 30px; overflow: hidden; position: relative; min-height: 400px;
    display: flex; flex-direction: column; justify-content: flex-end; padding: 40px;
    transition: transform 0.4s;
    opacity: 0; 
    translate: 0 40px; 
    scale: 0.95; 
    transition: opacity 0.8s cubic-bezier(0.19, 1, 0.22, 1), translate 0.8s cubic-bezier(0.19, 1, 0.22, 1), scale 0.8s cubic-bezier(0.19, 1, 0.22, 1), transform 0.4s;
}
.case-card.in-view {
    opacity: 1; 
    translate: 0 0; 
    scale: 1;
}
.case-card:hover { transform: translateY(-10px); }
.case-img {
    position: absolute; top: -50%; left: -50%; width: 200%; height: 200%;
    filter: blur(80px); opacity: 0.5; z-index: 0; pointer-events: none;
}
.case-info { position: relative; z-index: 2; }
.case-info h3 { font-family: 'Syne', sans-serif; font-size: 2rem; margin: 0 0 15px 0; line-height: 1; }
.case-info p { font-size: 1rem; color: rgba(255,255,255,0.7); line-height: 1.5; margin: 0; }

/* Reviews Slider */
.reviews-slider {
    width: 100%; max-width: 1000px; position: relative; padding: 20px 0;
    /* overflow hidden removed to fix clipping right edge */
}
.slider-track {
    display: flex; transition: transform 0.6s cubic-bezier(0.19, 1, 0.22, 1);
}
.slider-card {
    min-width: 100%; 
    box-sizing: border-box; 
    padding: 60px;
    border-radius: 30px; 
    opacity: 0.3; 
    transform: scale(0.9); 
    transition: 0.6s; 
    margin: 0 10px;
    position: relative;
    overflow: visible;
    isolation: isolate;
    box-shadow: 0px 0px 21px -8px rgba(255, 255, 255, 0.3);
    background: transparent;
    border: none;
}

/* Tint and inner shadow layer for review cards */
.slider-card::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 0;
    border-radius: 30px;
    box-shadow: inset 0 0 5px -8px rgba(255, 255, 255, 0.7);
    background-color: rgba(255, 255, 255, 0);
    pointer-events: none;
}

/* Backdrop blur and distortion layer for review cards */
.slider-card::after {
    content: '';
    position: absolute;
    inset: 0;
    z-index: -1;
    border-radius: 30px;
    backdrop-filter: blur(7px);
    -webkit-backdrop-filter: blur(7px);
    filter: url(#glass-distortion-subtle);
    -webkit-filter: url(#glass-distortion-subtle);
    isolation: isolate;
    pointer-events: none;
}

.slider-card.active { 
    opacity: 1; 
    transform: scale(1);
}

.review-text, .review-author {
    position: relative;
    z-index: 10;
}
.review-text { font-size: 1.5rem; font-style: italic; line-height: 1.6; margin-bottom: 30px; }
.review-author { font-family: 'Syne', sans-serif; color: var(--primary-cyan); font-size: 1.2rem; margin: 0; text-transform: uppercase; }
.slider-controls { display: flex; justify-content: center; gap: 20px; margin-top: 40px; }
.slider-btn { 
    background: transparent; 
    border: 1px solid rgba(255,255,255,0.3); 
    color: #fff; 
    width: 60px; 
    height: 60px; 
    border-radius: 50%; 
    font-size: 1.5rem; 
    cursor: none !important; 
    transition: 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    line-height: 1;
}
.slider-btn:hover { background: #fff; color: #000; }

/* Footer */
.footer-panel { 
    min-height: 100vh; 
    justify-content: center; 
    padding: 100px 5% 50px; 
    background: #010002; 
    position: relative;
    overflow: hidden;
}
.footer-content { 
    text-align: center; 
    position: relative; 
    z-index: 3; 
    max-width: 1400px;
    width: 100%;
}
.footer-sphere-canvas {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
    opacity: 0.5;
}
.footer-main-section {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 100px;
    gap: 60px;
}
.footer-left {
    flex: 1;
    text-align: left;
}
.footer-logo {
    font-family: 'Syne', sans-serif;
    font-size: clamp(3rem, 8vw, 6rem);
    font-weight: 800;
    letter-spacing: -2px;
    margin-bottom: 30px;
    color: #fff;
    line-height: 0.9;
}
.footer-tagline {
    font-size: 1.2rem;
    color: rgba(255,255,255,0.5);
    max-width: 400px;
    line-height: 1.6;
    margin-bottom: 40px;
}
.footer-cta {
    display: inline-block;
}
.footer-right {
    display: flex;
    gap: 80px;
}
.footer-col {
    text-align: left;
}
.footer-col h3 { 
    font-family: 'Syne', sans-serif; 
    color: rgba(255,255,255,0.4); 
    font-size: 0.75rem; 
    letter-spacing: 3px; 
    margin-bottom: 25px;
    text-transform: uppercase;
    font-weight: 700;
}
.footer-col p, .footer-col a { 
    color: rgba(255,255,255,0.7); 
    text-decoration: none; 
    display: block; 
    margin-bottom: 12px; 
    font-size: 1rem;
    transition: color 0.3s, transform 0.3s;
}
.footer-col a:hover { 
    color: var(--primary-cyan); 
    transform: translateX(5px);
}
.footer-divider {
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1) 50%, transparent);
    margin: 60px 0 40px;
}
.footer-bottom { 
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: rgba(255,255,255,0.3); 
    font-size: 0.85rem;
}
.footer-bottom-left {
    display: flex;
    gap: 30px;
}
.footer-bottom a {
    color: rgba(255,255,255,0.3);
    text-decoration: none;
    transition: color 0.3s;
}
.footer-bottom a:hover {
    color: rgba(255,255,255,0.6);
}

/* Liquid Buttons */
.liquid-btn {
    padding: 20px 40px; font-size: 1.1rem; font-family: 'Syne', sans-serif; font-weight: 800;
    color: #fff; background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255,255,255,0.3); border-radius: 50px;
    cursor: none; transition: 0.4s cubic-bezier(0.19, 1, 0.22, 1); position: relative; overflow: hidden;
    backdrop-filter: blur(10px); display: inline-block;
}
.liquid-btn::before {
    content: ''; position: absolute; top: 0; left: -100%; width: 100%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    transition: 0.6s cubic-bezier(0.19, 1, 0.22, 1);
}
.liquid-btn:hover::before { left: 100%; }
.liquid-btn:hover { background: rgba(255,255,255,0.1); border-color: #fff; box-shadow: 0 10px 30px rgba(255,255,255,0.1); transform: scale(1.05); }

/* Custom Cursor */
.custom-cursor {
    position: fixed; 
    width: 20px; 
    height: 20px; 
    background: #fff; 
    border-radius: 50%;
    pointer-events: none; 
    z-index: 10000; 
    mix-blend-mode: difference;
    transform: translate(-50%, -50%); 
    transition: width 0.2s, height 0.2s;
}
.custom-cursor.hovering { 
    width: 24px; 
    height: 24px;
}
.custom-cursor-trail {
    position: fixed;
    width: 40px;
    height: 40px;
    border: 2px solid rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9999;
    transform: translate(-50%, -50%);
    transition: width 0.3s, height 0.3s, opacity 0.3s;
    mix-blend-mode: difference;
}
.custom-cursor.hovering + .custom-cursor-trail {
    width: 60px;
    height: 60px;
    opacity: 0.8;
}

/* Audio Player */
.audio-player {
    position: fixed; bottom: 40px; right: 40px; display: flex; align-items: center; gap: 15px;
    z-index: 50; mix-blend-mode: difference;
}
.player-icon {
    width: 40px; height: 40px; border-radius: 50%; border: 1px solid #fff;
    display: flex; justify-content: center; align-items: center; cursor: none; transition: 0.3s;
}
.player-icon svg { width: 15px; height: 15px; fill: #fff; stroke: none; transition: 0.3s; }
.track-name { font-size: 0.7rem; font-weight: 700; text-transform: uppercase; letter-spacing: 2px; }
.track-progress { width: 100px; height: 2px; background: rgba(255,255,255,0.2); margin-top: 5px; }
.progress-bar { width: 0%; height: 100%; background: #fff; }

/* Modal */
.modal-overlay {
    position: fixed; top: 0; left: 0; width: 100vw; height: 100vh;
    background: transparent; display: flex; justify-content: center; align-items: center;
    z-index: 200; opacity: 0; pointer-events: none; transition: 0.5s;
}
.modal-overlay.active { opacity: 1; pointer-events: auto; }
.modal-content {
    border-radius: 30px; padding: 60px; width: 90%; max-width: 500px; position: relative;
    transform: translateY(100px) scale(0.9); transition: 0.6s cubic-bezier(0.19, 1, 0.22, 1); border: 1px solid rgba(255,0,255,0.3); box-shadow: 0 0 50px rgba(255,0,255,0.1);
}
.modal-overlay.active .modal-content { transform: translateY(0) scale(1); }
.close-btn { position: absolute; top: 30px; right: 30px; background: none; border: none; color: #fff; font-size: 2rem; cursor: none; }
.form-input {
    width: 100%; padding: 20px 0; margin-bottom: 20px; background: transparent; border: none;
    border-bottom: 1px solid rgba(255,255,255,0.3); color: #fff; font-family: 'Inter', sans-serif; font-size: 1.1rem; outline: none; transition: 0.3s;
}
.form-input:focus { border-color: var(--primary-cyan); }

@media(max-width: 1024px) {
    .cases-grid { grid-template-columns: 1fr; }
    .footer-main-section { gap: 50px; }
    .footer-right { gap: 60px; }
    .navbar { padding: 30px 5%; }
    .nav-links a { margin-left: 20px; font-size: 0.8rem; }
    /* Hide custom cursor on tablets */
    .custom-cursor, .custom-cursor-trail { display: none; }
    /* Disable smooth scroll on mobile for performance */
    #smooth-wrapper { position: static; height: auto; overflow: visible; }
    #smooth-content { transform: none !important; }
    body { height: auto !important; }
}
@media(max-width: 768px) {
    .panel-inner { flex-direction: column; padding: 40px; height: auto; min-height: 50vh; }
    .panel-content-left { width: 100% !important; margin-bottom: 40px; }
    .panel-visual { 
        position: relative; 
        width: 100%; 
        height: 200px; 
        right: 0; 
        top: 0;
    }
    .lens-orb {
        width: 100%; 
        height: 100%; 
        border-radius: 50%; 
        filter: blur(40px); 
        mix-blend-mode: screen;
    }
    .color-magenta { 
        background: radial-gradient(circle, var(--primary-magenta) 0%, var(--primary-cyan) 50%, transparent 70%); 
    }
    .color-cyan { 
        background: radial-gradient(circle, var(--primary-cyan) 0%, var(--primary-emerald) 50%, transparent 70%); 
    }
    .color-emerald { 
        background: radial-gradient(circle, var(--primary-emerald) 0%, var(--primary-magenta) 50%, transparent 70%); 
    }
    .color-dark-blue { 
        background: radial-gradient(circle, #0044ff 0%, var(--primary-cyan) 50%, transparent 70%); 
    }
    
    /* Works section mobile - sticky cards like expertise panels */
    .works-panel { 
        padding-top: 100px; 
        padding-bottom: 50px;
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    .works-panel .hero-content { 
        margin-bottom: 60px;
        position: sticky;
        top: 100px;
        z-index: 5;
    }
    
    .cases-grid { 
        display: flex !important;
        flex-direction: column !important;
        gap: 0 !important;
        padding: 0 5% !important;
        width: 100%;
        max-width: 600px;
        align-items: center;
    }
    .case-card { 
        position: sticky;
        top: 120px;
        width: 100%;
        min-height: 85vh;
        padding: 50px 35px;
        border-radius: 30px;
        margin-bottom: -70vh;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: flex-start;
        text-align: left;
    }
    .case-card:nth-child(1) { z-index: 1; }
    .case-card:nth-child(2) { z-index: 2; }
    .case-card:nth-child(3) { z-index: 3; }
    .case-card:nth-child(4) { z-index: 4; margin-bottom: 0; }
    .case-info {
        display: flex;
        flex-direction: column;
        gap: 20px;
        width: 100%;
    }
    .case-info h3 { 
        font-size: 2.2rem; 
        margin: 0;
        line-height: 1.1;
    }
    .case-info p { 
        font-size: 1.1rem; 
        line-height: 1.6;
        margin: 0 0 25px 0 !important;
    }
    .case-info .liquid-btn {
        align-self: flex-start;
    }
    .case-img { 
        filter: blur(80px); 
        opacity: 0.4;
    }
    
    /* Reviews slider mobile optimization */
    .reviews-slider { 
        max-width: 100%; 
        padding: 10px 0;
        overflow: hidden;
    }
    .slider-card { 
        padding: 40px 30px; 
        min-width: 100%;
        margin: 0;
    }
    .review-text { 
        font-size: 1.1rem; 
        line-height: 1.5;
        margin-bottom: 20px;
    }
    .review-author { font-size: 1rem; }
    .slider-controls { 
        margin-top: 30px; 
        gap: 15px;
    }
    .slider-btn { 
        width: 50px; 
        height: 50px; 
        font-size: 1.2rem;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .footer-main-section { flex-direction: column; gap: 50px; }
    .footer-right { flex-direction: column; gap: 40px; }
    .footer-bottom { flex-direction: column; gap: 20px; text-align: center; }
    .footer-bottom-left { flex-direction: column; gap: 15px; }
    .title-huge { font-size: clamp(3rem, 10vw, 4rem); }
    .hero-subtext { font-size: 1rem; }
    .panel-title { font-size: clamp(2rem, 6vw, 3rem); }
    .panel-desc p { font-size: 1rem; }
    .navbar { padding: 20px 5%; flex-direction: column; gap: 20px; }
    .nav-links { display: flex; gap: 15px; flex-wrap: wrap; justify-content: center; }
    .nav-links a { margin-left: 0; font-size: 0.75rem; }
    .logo { font-size: 1.5rem; }
    .audio-player { bottom: 20px; right: 20px; scale: 0.8; }
    
    /* Hide custom cursor on mobile */
    .custom-cursor, .custom-cursor-trail { display: none; }
}
@media(max-width: 480px) {
    .panel { padding: 80px 5%; }
    .panel-inner { padding: 30px; }
    .works-panel { padding-top: 80px; }
    .works-panel .hero-content { 
        margin-bottom: 40px;
        top: 80px;
    }
    .case-card { 
        padding: 40px 25px; 
        min-height: 80vh;
        top: 100px;
        margin-bottom: -65vh;
    }
    .case-card:nth-child(4) { margin-bottom: 0; }
    .case-info h3 { font-size: 1.8rem; }
    .case-info p { font-size: 1rem; }
    .liquid-btn { padding: 15px 30px; font-size: 0.9rem; }
    .modal-content { padding: 40px 30px; }
    .slider-card { padding: 30px 20px; }
    .review-text { font-size: 1rem; }
    .slider-btn { width: 45px; height: 45px; }
    .footer-logo { font-size: clamp(2.5rem, 12vw, 4rem); }
    .footer-tagline { font-size: 1rem; }
}

/* iOS Safari specific fixes for FEATURED WORKS to match EXPERTISE cards */
@supports (-webkit-touch-callout: none) {
    @media (max-width: 768px) {
        .works-panel .hero-content {
            position: relative !important;
            top: auto !important;
            margin-bottom: 40px !important;
        }
        .cases-grid {
            gap: 40px !important;
        }
        .case-card {
            position: relative !important;
            top: auto !important;
            margin-bottom: 0 !important;
            min-height: auto !important;
            padding: 40px !important;
            justify-content: flex-start !important;
            transform: none !important;
        }
        .case-card:nth-child(1),
        .case-card:nth-child(2),
        .case-card:nth-child(3),
        .case-card:nth-child(4) {
            margin-bottom: 0 !important;
        }
    }
    @media (max-width: 480px) {
        .case-card {
            padding: 30px !important;
        }
    }
}
