/* ============================================
   SHADI FARHAT PORTFOLIO - APPLE STYLE
   Scroll-Controlled Video + Text Transitions
   ============================================ */

/* CSS Variables */
:root {
    --color-bg: #000000;
    --color-bg-secondary: #0a0a0a;
    --color-text: #ffffff;
    --color-text-muted: rgba(255, 255, 255, 0.6);
    --color-text-subtle: rgba(255, 255, 255, 0.4);
    --color-accent: #2997ff;
    --color-accent-secondary: #64d2ff;
    --color-accent-glow: rgba(41, 151, 255, 0.3);

    --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;

    --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
    --ease-out-quart: cubic-bezier(0.25, 1, 0.5, 1);
    --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);

    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 4rem;
    --spacing-xl: 8rem;
}

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

html {
    font-size: 16px;
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Performance Optimizations */
.hero-canvas,
.hero-layers,
#particleCanvas {
    will-change: transform;
}

.services,
.projects,
.blender-work,
.design-work,
.contact,
footer {
    content-visibility: auto;
    contain-intrinsic-size: 0 500px;
}

/* Reduced motion for accessibility and performance */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    html {
        scroll-behavior: auto;
    }
}

/* Smooth scrolling for scroll-jacking sections */
@supports (scroll-behavior: smooth) {
    .hero-wrapper {
        scroll-snap-type: none;
    }
}

body {
    font-family: var(--font-primary);
    background: var(--color-bg);
    color: var(--color-text);
    line-height: 1.5;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body.loading {
    overflow: hidden;
}

a {
    text-decoration: none;
    color: inherit;
}

img, video {
    display: block;
    max-width: 100%;
}

/* Utility Classes */
.text-gradient {
    background: linear-gradient(135deg, var(--color-accent), var(--color-accent-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.text-muted {
    color: var(--color-text-muted);
}

.dot {
    display: inline-block;
    width: 4px;
    height: 4px;
    background: var(--color-text-subtle);
    border-radius: 50%;
    margin: 0 var(--spacing-sm);
    vertical-align: middle;
}

/* ============================================
   PRELOADER - Ultra Modern with Effects
   ============================================ */
.preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #000000;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.preloader.loaded {
    animation: preloaderExit 0.8s ease-in-out forwards;
}

@keyframes preloaderExit {
    0% { opacity: 1; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.02); }
    100% { opacity: 0; transform: scale(1.1); visibility: hidden; pointer-events: none; }
}

/* Particle Canvas */
.particle-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

/* Scanlines Effect */
.scanlines {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: repeating-linear-gradient(
        0deg,
        rgba(0, 0, 0, 0.1) 0px,
        rgba(0, 0, 0, 0.1) 1px,
        transparent 1px,
        transparent 3px
    );
    pointer-events: none;
    z-index: 3;
    opacity: 0.3;
}

.preloader-inner {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 50px;
    z-index: 10;
}

/* ========== LOGO CONTAINER ========== */
.logo-container {
    position: relative;
    width: 220px;
    height: 220px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* SVG Logo Wrapper */
.logo-svg-wrapper {
    position: relative;
    width: 140px;
    height: 80px;
    z-index: 5;
}

.logo-main-svg {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: brightness(0) invert(1) drop-shadow(0 0 20px rgba(41, 151, 255, 0.5));
    animation: logoReveal 1.2s ease-out forwards;
}

@keyframes logoReveal {
    0% {
        opacity: 0;
        transform: scale(0.3) rotateY(180deg);
        filter: brightness(0) invert(1) blur(20px);
    }
    50% {
        opacity: 1;
        filter: brightness(0) invert(1) blur(5px);
    }
    100% {
        opacity: 1;
        transform: scale(1) rotateY(0deg);
        filter: brightness(0) invert(1) drop-shadow(0 0 20px rgba(41, 151, 255, 0.5));
    }
}

.logo-glitch-1,
.logo-glitch-2 {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    opacity: 0;
    pointer-events: none;
}

.logo-glitch-1 {
    filter: brightness(0) saturate(100%) invert(27%) sepia(91%) saturate(5733%) hue-rotate(336deg) brightness(100%) contrast(113%);
    animation: glitch1 4s infinite linear;
    animation-delay: 2s;
}

.logo-glitch-2 {
    filter: brightness(0) saturate(100%) invert(83%) sepia(67%) saturate(5509%) hue-rotate(140deg) brightness(104%) contrast(104%);
    animation: glitch2 4s infinite linear;
    animation-delay: 2s;
}

@keyframes glitch1 {
    0%, 88%, 100% { opacity: 0; transform: translate(0); }
    89% { opacity: 0.7; transform: translate(-4px, 2px); }
    90% { opacity: 0.7; transform: translate(4px, -2px); }
    91% { opacity: 0.7; transform: translate(-2px, 4px); }
    92% { opacity: 0; }
}

@keyframes glitch2 {
    0%, 92%, 100% { opacity: 0; transform: translate(0); }
    93% { opacity: 0.7; transform: translate(4px, 2px); }
    94% { opacity: 0.7; transform: translate(-4px, -2px); }
    95% { opacity: 0.7; transform: translate(2px, -4px); }
    96% { opacity: 0; }
}

/* Rotating Ring */
.logo-ring {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    animation: ringRotate 20s linear infinite;
}

@keyframes ringRotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.logo-ring svg {
    width: 100%;
    height: 100%;
}

.ring-bg {
    fill: none;
    stroke: rgba(255, 255, 255, 0.05);
    stroke-width: 1;
}

.ring-progress {
    fill: none;
    stroke: #2997ff;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-dasharray: 565;
    stroke-dashoffset: 565;
    transition: stroke-dashoffset 0.3s ease-out;
    filter: drop-shadow(0 0 10px rgba(41, 151, 255, 0.5));
}

.ring-inner {
    fill: none;
    stroke: rgba(255, 255, 255, 0.03);
    stroke-width: 1;
    stroke-dasharray: 10 5;
}

/* Orbiting Dots */
.orbit {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 180px;
    height: 180px;
    margin: -90px 0 0 -90px;
    border-radius: 50%;
    animation: orbitSpin 4s linear infinite;
}

.orbit-2 {
    width: 240px;
    height: 240px;
    margin: -120px 0 0 -120px;
    animation: orbitSpin 6s linear infinite reverse;
}

@keyframes orbitSpin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.orbit-dot {
    position: absolute;
    top: 0;
    left: 50%;
    width: 8px;
    height: 8px;
    margin-left: -4px;
    background: #2997ff;
    border-radius: 50%;
    box-shadow: 0 0 15px #2997ff, 0 0 30px rgba(41, 151, 255, 0.5);
}

.orbit-2 .orbit-dot {
    width: 6px;
    height: 6px;
    margin-left: -3px;
    background: #64d2ff;
    box-shadow: 0 0 15px #64d2ff;
}

/* ========== NAME WITH TYPING ========== */
.preloader-name {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 40px;
    font-size: 1.5rem;
    font-weight: 300;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.9);
}

.name-line {
    display: inline-block;
}

.cursor {
    display: inline-block;
    margin-left: 2px;
    animation: blink 0.8s infinite;
    color: #2997ff;
}

@keyframes blink {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0; }
}

/* ========== LOADING STATS ========== */
.loading-stats {
    display: flex;
    align-items: baseline;
    gap: 4px;
}

.stat-value {
    font-size: 4rem;
    font-weight: 200;
    color: #fff;
    line-height: 1;
    font-variant-numeric: tabular-nums;
}

.stat-unit {
    font-size: 1.5rem;
    font-weight: 300;
    color: #2997ff;
}

/* ========== PROGRESS BAR ========== */
.preloader-progress {
    width: 320px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}

.progress-track {
    position: relative;
    width: 100%;
    height: 2px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 2px;
    overflow: hidden;
}

.progress-fill {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, #2997ff, #64d2ff);
    border-radius: 2px;
    transition: width 0.3s ease-out;
}

.progress-glow {
    position: absolute;
    top: -4px;
    left: 0;
    height: 10px;
    width: 60px;
    background: linear-gradient(90deg, transparent, rgba(41, 151, 255, 0.6), transparent);
    animation: progressGlow 2s ease-in-out infinite;
}

@keyframes progressGlow {
    0% { left: -60px; }
    100% { left: 100%; }
}

.progress-label {
    font-size: 0.7rem;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.4);
}

/* ============================================
   NAVIGATION
   ============================================ */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: var(--spacing-sm) 0;
    transition: all 0.4s var(--ease-out-expo);
}

.nav.scrolled {
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

.nav.hidden {
    transform: translateY(-100%);
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 var(--spacing-md);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-logo {
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    position: relative;
}

.nav-logo::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--color-accent);
    transition: width 0.3s var(--ease-out-expo);
}

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

.nav-menu {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
}

.nav-link {
    font-size: 0.875rem;
    font-weight: 400;
    color: var(--color-text-muted);
    transition: color 0.3s ease;
}

.nav-link:hover {
    color: var(--color-text);
}

.nav-link-cta {
    background: var(--color-text);
    color: var(--color-bg) !important;
    padding: 0.6rem 1.25rem;
    border-radius: 100px;
    font-weight: 500;
    transition: transform 0.3s var(--ease-out-expo),
                box-shadow 0.3s var(--ease-out-expo);
}

.nav-link-cta:hover {
    transform: scale(1.05);
    box-shadow: 0 0 30px rgba(255, 255, 255, 0.2);
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 6px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}

.nav-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--color-text);
    transition: all 0.3s var(--ease-out-expo);
}

.nav-toggle.active span:first-child {
    transform: rotate(45deg) translate(5px, 6px);
}

.nav-toggle.active span:last-child {
    transform: rotate(-45deg) translate(5px, -6px);
}

/* Mobile Menu */
.mobile-menu {
    position: fixed;
    inset: 0;
    background: var(--color-bg);
    z-index: 999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.5s var(--ease-out-expo);
}

.mobile-menu.active {
    opacity: 1;
    visibility: visible;
}

.mobile-menu-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--spacing-md);
}

.mobile-link {
    font-size: 2.5rem;
    font-weight: 600;
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.5s var(--ease-out-expo);
}

.mobile-menu.active .mobile-link {
    opacity: 1;
    transform: translateY(0);
}

.mobile-menu.active .mobile-link:nth-child(1) { transition-delay: 0.1s; }
.mobile-menu.active .mobile-link:nth-child(2) { transition-delay: 0.2s; }
.mobile-menu.active .mobile-link:nth-child(3) { transition-delay: 0.3s; }

/* ============================================
   HERO SECTION - SCROLL CONTROLLED
   ============================================ */

/* Wrapper creates the scroll height */
.hero-wrapper {
    position: relative;
    height: 400vh; /* 4 sections = 4x viewport */
}

/* Sticky container holds video + content */
.hero-sticky {
    position: sticky;
    top: 0;
    height: 100vh;
    width: 100%;
    overflow: hidden;
}

/* Canvas Background (Apple Style Image Sequence) */
.hero-canvas-container {
    position: absolute;
    inset: 0;
    z-index: 1;
}

#heroCanvas {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-video-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        rgba(0, 0, 0, 0.2) 0%,
        rgba(0, 0, 0, 0.4) 50%,
        rgba(0, 0, 0, 0.7) 100%
    );
    pointer-events: none;
}

/* Loading Indicator */
.hero-loading {
    position: absolute;
    bottom: 30%;
    left: 50%;
    transform: translateX(-50%);
    z-index: 50;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--spacing-sm);
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.hero-loading.hidden {
    opacity: 0;
    visibility: hidden;
}

.hero-loading-bar {
    width: 150px;
    height: 2px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 2px;
    overflow: hidden;
    position: relative;
}

.hero-loading-bar::after {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 30%;
    background: var(--color-accent);
    border-radius: 2px;
    animation: loadingSlide 1s ease-in-out infinite;
}

@keyframes loadingSlide {
    0% { left: -30%; }
    100% { left: 100%; }
}

.hero-loading span {
    font-size: 0.75rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--color-text-muted);
}

/* Scroll Progress Bar */
.scroll-progress {
    position: absolute;
    right: var(--spacing-md);
    top: 50%;
    transform: translateY(-50%);
    width: 3px;
    height: 200px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
    z-index: 100;
    overflow: hidden;
}

.scroll-progress-bar {
    width: 100%;
    height: 0%;
    background: var(--color-accent);
    border-radius: 3px;
    transition: height 0.1s linear;
}

/* ============================================
   HERO CONTENT LAYERS
   ============================================ */
.hero-content {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 0 var(--spacing-md);
    z-index: 10;
}

/* Layer Transitions */
.hero-layer {
    opacity: 0;
    visibility: hidden;
    transform: translateY(40px);
    transition: opacity 0.6s var(--ease-out-expo),
                visibility 0.6s var(--ease-out-expo),
                transform 0.6s var(--ease-out-expo);
    pointer-events: none;
}

.hero-layer.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
}

.hero-layer.exit-up {
    opacity: 0;
    transform: translateY(-40px);
}

/* Layer 1: Introduction */
.hero-tag {
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-xs);
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    padding: 0.5rem 1rem;
    border-radius: 100px;
    margin-bottom: var(--spacing-md);
}

.hero-tag-dot {
    width: 8px;
    height: 8px;
    background: #30d158;
    border-radius: 50%;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(1.2); }
}

.hero-tag-text {
    font-size: 0.75rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--color-text-muted);
}

.hero-title {
    font-size: clamp(3rem, 12vw, 8rem);
    font-weight: 700;
    line-height: 0.95;
    letter-spacing: -0.03em;
    margin-bottom: var(--spacing-md);
}

.hero-title-line {
    display: block;
}

.hero-subtitle {
    font-size: clamp(0.875rem, 2vw, 1.125rem);
    font-weight: 300;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--color-text-muted);
}

/* Layer 2: Name */
.hero-eyebrow {
    font-size: 0.875rem;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: var(--color-accent);
    margin-bottom: var(--spacing-sm);
}

.hero-title-lg {
    font-size: clamp(4rem, 15vw, 12rem);
    font-weight: 800;
    line-height: 0.9;
    letter-spacing: -0.04em;
    margin-bottom: var(--spacing-md);
}

.hero-desc {
    font-size: clamp(1rem, 2vw, 1.25rem);
    line-height: 1.6;
}

/* Layer 3: Stats */
.hero-stats {
    display: flex;
    gap: var(--spacing-xl);
    margin-bottom: var(--spacing-lg);
}

.hero-stat {
    display: flex;
    flex-direction: column;
}

.hero-stat-number {
    font-size: clamp(4rem, 12vw, 7rem);
    font-weight: 800;
    line-height: 1;
    background: linear-gradient(135deg, var(--color-accent), var(--color-accent-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-stat-label {
    font-size: clamp(1.2rem, 3vw, 1.5rem);
    color: var(--color-text);
    font-weight: 500;
}

.hero-title-md {
    font-size: clamp(2rem, 6vw, 4rem);
    font-weight: 600;
    line-height: 1.2;
}

/* Layer 4: CTA */
.hero-cta {
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-sm);
    background: var(--color-text);
    color: var(--color-bg);
    padding: 1rem 2rem;
    border-radius: 100px;
    font-size: 1rem;
    font-weight: 600;
    margin-top: var(--spacing-md);
    transition: transform 0.3s var(--ease-out-expo),
                box-shadow 0.3s var(--ease-out-expo);
}

.hero-cta:hover {
    transform: scale(1.05);
    box-shadow: 0 0 50px rgba(255, 255, 255, 0.3);
}

.hero-cta svg {
    transition: transform 0.3s var(--ease-out-expo);
}

.hero-cta:hover svg {
    transform: translateX(5px);
}

/* Scroll Hint */
.hero-scroll {
    position: absolute;
    bottom: var(--spacing-lg);
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--spacing-sm);
    z-index: 100;
    opacity: 1;
    transition: opacity 0.5s ease;
}

.hero-scroll.hidden {
    opacity: 0;
    pointer-events: none;
}

.hero-scroll-line {
    width: 1px;
    height: 60px;
    background: linear-gradient(to bottom, var(--color-text), transparent);
    position: relative;
    overflow: hidden;
}

.hero-scroll-line::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 30px;
    background: var(--color-accent);
    animation: scrollLine 2s var(--ease-in-out) infinite;
}

@keyframes scrollLine {
    0% { transform: translateY(-100%); }
    50% { transform: translateY(200%); }
    100% { transform: translateY(200%); }
}

.hero-scroll span {
    font-size: 0.625rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--color-text-subtle);
}

/* Spacer for content after hero */
.section-spacer {
    height: 100vh;
    background: var(--color-bg);
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */

/* Small phones */
@media (max-width: 374px) {
    :root {
        font-size: 14px;
    }

    .hero-stats {
        flex-direction: column;
        gap: var(--spacing-md);
    }

    .scroll-progress {
        display: none;
    }
}

/* Phones */
@media (max-width: 767px) {
    .nav-menu {
        display: none;
    }

    .nav-toggle {
        display: flex;
    }

    .hero-title {
        font-size: clamp(2.5rem, 15vw, 4rem);
    }

    .hero-title-lg {
        font-size: clamp(3rem, 18vw, 6rem);
    }

    .hero-stats {
        gap: var(--spacing-lg);
    }

    .hero-stat-number {
        font-size: clamp(3rem, 15vw, 5rem);
    }

    .hero-stat-label {
        font-size: clamp(1rem, 4vw, 1.2rem);
    }

    .scroll-progress {
        right: var(--spacing-sm);
        height: 100px;
    }

    .hero-scroll {
        bottom: var(--spacing-md);
    }

    .hero-cta {
        padding: 0.875rem 1.5rem;
        font-size: 0.875rem;
    }

    /* Hero canvas mobile fix */
    .hero-canvas-container {
        touch-action: pan-y;
    }

    #heroCanvas {
        touch-action: pan-y;
    }

    .hero-layer {
        padding: 0 var(--spacing-sm);
    }

    .hero-content {
        padding: 0 var(--spacing-sm);
    }
}

/* Tablets */
@media (min-width: 768px) and (max-width: 1023px) {
    .hero-title {
        font-size: clamp(4rem, 10vw, 6rem);
    }

    .hero-title-lg {
        font-size: clamp(5rem, 12vw, 8rem);
    }
}

/* Landscape phones */
@media (max-height: 500px) and (orientation: landscape) {
    .hero-wrapper {
        height: 300vh;
    }

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

    .hero-title-lg {
        font-size: 4rem;
    }

    .hero-stats {
        margin-bottom: var(--spacing-md);
    }

    .hero-stat-number {
        font-size: 3rem;
    }

    .hero-scroll {
        display: none;
    }

    .scroll-progress {
        height: 80px;
    }
}

/* Large screens */
@media (min-width: 1400px) {
    .scroll-progress {
        right: var(--spacing-lg);
    }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    .hero-layer {
        transform: none;
    }
}

/* High contrast mode */
@media (prefers-contrast: high) {
    :root {
        --color-text-muted: rgba(255, 255, 255, 0.8);
        --color-text-subtle: rgba(255, 255, 255, 0.6);
    }

    .hero-video-overlay {
        background: rgba(0, 0, 0, 0.7);
    }
}

/* ============================================
   SECTIONS - SHARED STYLES
   ============================================ */

.section-header {
    text-align: center;
    margin-bottom: var(--spacing-xl);
}

.section-label {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--color-accent);
    margin-bottom: var(--spacing-sm);
}

.section-title {
    font-size: clamp(2.5rem, 6vw, 4rem);
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -0.02em;
}

.section-subtitle {
    font-size: 1.125rem;
    color: var(--color-text-muted);
    margin-top: var(--spacing-md);
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Scroll Animations */
[data-animate] {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s var(--ease-out-expo),
                transform 0.8s var(--ease-out-expo);
}

[data-animate].in-view {
    opacity: 1;
    transform: translateY(0);
}

/* Stagger children */
[data-animate]:nth-child(1) { transition-delay: 0s; }
[data-animate]:nth-child(2) { transition-delay: 0.1s; }
[data-animate]:nth-child(3) { transition-delay: 0.2s; }
[data-animate]:nth-child(4) { transition-delay: 0.3s; }

/* ============================================
   SERVICES SECTION
   ============================================ */

.services {
    padding: var(--spacing-xl) 0;
    background: var(--color-bg);
    position: relative;
}

.services-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--spacing-md);
}

.service-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 24px;
    padding: var(--spacing-lg);
    transition: all 0.4s var(--ease-out-expo);
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(41, 151, 255, 0.1), transparent);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.service-card:hover {
    border-color: rgba(41, 151, 255, 0.3);
    transform: translateY(-5px);
}

.service-card:hover::before {
    opacity: 1;
}

.service-icon {
    width: 48px;
    height: 48px;
    margin-bottom: var(--spacing-md);
    color: var(--color-accent);
}

.service-icon svg {
    width: 100%;
    height: 100%;
}

.service-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: var(--spacing-sm);
}

.service-desc {
    font-size: 0.95rem;
    color: var(--color-text-muted);
    line-height: 1.6;
    margin-bottom: var(--spacing-md);
}

.service-tags {
    display: flex;
    flex-wrap: wrap;
    gap: var(--spacing-xs);
}

.service-tags span {
    font-size: 0.75rem;
    padding: 0.35rem 0.75rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 100px;
    color: var(--color-text-muted);
}

.service-number {
    position: absolute;
    top: var(--spacing-md);
    right: var(--spacing-md);
    font-size: 3rem;
    font-weight: 800;
    color: rgba(255, 255, 255, 0.03);
    line-height: 1;
}

/* Stats Bar */
.stats-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: var(--spacing-xl);
    padding: var(--spacing-lg);
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 24px;
}

.stat-item {
    text-align: center;
    flex: 1;
}

.stat-number {
    display: block;
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    background: linear-gradient(135deg, var(--color-accent), var(--color-accent-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.2;
}

.stat-label {
    font-size: 0.8rem;
    color: var(--color-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

@media (max-width: 767px) {
    .stats-bar {
        flex-wrap: wrap;
        gap: var(--spacing-md);
    }

    .stat-item {
        flex: 1 1 40%;
    }

    .service-number {
        font-size: 2rem;
    }
}

/* ============================================
   FEATURED WORK SECTION
   ============================================ */

.featured {
    padding: var(--spacing-xl) 0;
    background: var(--color-bg-secondary);
}

.featured-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

.projects-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-md);
}

.project-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 24px;
    overflow: hidden;
    transition: all 0.4s var(--ease-out-expo);
    cursor: pointer;
    position: relative;
    z-index: 1;
}

.project-card[data-project] {
    cursor: pointer;
}

.project-card:hover {
    border-color: rgba(255, 255, 255, 0.15);
    transform: translateY(-5px);
    z-index: 10;
}

.project-card-large {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: 1.5fr 1fr;
}

.project-image {
    position: relative;
    overflow: hidden;
}

.project-image-placeholder {
    aspect-ratio: 16/10;
    background: linear-gradient(135deg, rgba(41, 151, 255, 0.2), rgba(100, 210, 255, 0.1));
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-text-muted);
    font-size: 0.875rem;
}

.project-card-large .project-image-placeholder {
    aspect-ratio: auto;
    height: 100%;
    min-height: 300px;
}

.project-info {
    padding: var(--spacing-md);
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.project-category {
    font-size: 0.75rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--color-accent);
    margin-bottom: var(--spacing-xs);
}

.project-badge {
    display: inline-block;
    font-size: 0.65rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    padding: 4px 10px;
    border-radius: 20px;
    margin-bottom: var(--spacing-xs);
    font-weight: 600;
}

.project-badge.private {
    background: rgba(255, 59, 48, 0.15);
    color: #ff6b6b;
    border: 1px solid rgba(255, 59, 48, 0.3);
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    aspect-ratio: 16/10;
    transition: transform 0.6s var(--ease-out-expo);
}

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

.project-card-large .project-image img {
    aspect-ratio: auto;
    min-height: 300px;
}

.project-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: var(--spacing-xs);
}

.project-desc {
    font-size: 0.9rem;
    color: var(--color-text-muted);
    line-height: 1.5;
    margin-bottom: var(--spacing-sm);
}

.project-link {
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-xs);
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--color-text);
    transition: color 0.3s ease;
}

.project-link:hover {
    color: var(--color-accent);
}

.project-link svg {
    transition: transform 0.3s var(--ease-out-expo);
}

.project-link:hover svg {
    transform: translate(3px, -3px);
}

.featured-cta {
    text-align: center;
    margin-top: var(--spacing-lg);
}

.btn-outline {
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-sm);
    padding: 1rem 2rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 100px;
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--color-text);
    transition: all 0.3s var(--ease-out-expo);
}

.btn-outline:hover {
    background: var(--color-text);
    color: var(--color-bg);
    border-color: var(--color-text);
}

.btn-outline svg {
    transition: transform 0.3s var(--ease-out-expo);
}

.btn-outline:hover svg {
    transform: translateX(5px);
}

/* ============================================
   3D BLENDER WORK SECTION
   ============================================ */

.blender-work {
    padding: var(--spacing-xl) 0;
    background: var(--color-bg);
    position: relative;
}

.blender-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

.blender-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--spacing-md);
}

.blender-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 24px;
    overflow: hidden;
    transition: all 0.4s var(--ease-out-expo);
    cursor: pointer;
}

.blender-card:hover {
    border-color: rgba(41, 151, 255, 0.3);
    transform: translateY(-5px);
}

.blender-image {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16/10;
}

.blender-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.6s var(--ease-out-expo);
}

.blender-card:hover .blender-image img {
    transform: scale(1.05);
}

.blender-info {
    padding: var(--spacing-md);
}

.blender-category {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--color-accent);
    margin-bottom: var(--spacing-xs);
}

.blender-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: var(--spacing-sm);
    color: var(--color-text);
}

.blender-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--color-text-muted);
    transition: color 0.3s ease;
}

.blender-card:hover .blender-link {
    color: var(--color-accent);
}

.blender-link svg {
    transition: transform 0.3s ease;
}

.blender-card:hover .blender-link svg {
    transform: translate(3px, -3px);
}

/* ============================================
   DESIGN WORK SECTION
   ============================================ */

.design-work {
    padding: var(--spacing-xl) 0;
    background: var(--color-bg-secondary);
    position: relative;
}

.design-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

.design-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--spacing-md);
}

.design-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 24px;
    overflow: hidden;
    transition: all 0.4s var(--ease-out-expo);
    cursor: pointer;
}

.design-card:hover {
    border-color: rgba(41, 151, 255, 0.3);
    transform: translateY(-5px);
}

.design-image {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16/10;
}

.design-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.6s var(--ease-out-expo);
}

.design-card:hover .design-image img {
    transform: scale(1.05);
}

.design-info {
    padding: var(--spacing-md);
}

.design-category {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--color-accent);
    margin-bottom: var(--spacing-xs);
}

.design-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: var(--spacing-sm);
    color: var(--color-text);
}

.design-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--color-text-muted);
    transition: color 0.3s ease;
}

.design-card:hover .design-link {
    color: var(--color-accent);
}

.design-link svg {
    transition: transform 0.3s ease;
}

.design-card:hover .design-link svg {
    transform: translate(3px, -3px);
}

/* Responsive: 3D & Design Sections */
@media (max-width: 767px) {
    .blender-work,
    .design-work {
        padding: var(--spacing-lg) 0;
    }

    .blender-container,
    .design-container {
        padding: 0 var(--spacing-sm);
    }

    .blender-grid,
    .design-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-sm);
    }

    .blender-card,
    .design-card {
        border-radius: 16px;
    }

    .blender-info,
    .design-info {
        padding: var(--spacing-sm);
    }

    .blender-title,
    .design-title {
        font-size: 1.1rem;
    }

    .blender-category,
    .design-category {
        font-size: 0.7rem;
    }

    .section-header {
        margin-bottom: var(--spacing-md);
    }

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

    .section-label {
        font-size: 0.7rem;
    }
}

/* Extra small phones */
@media (max-width: 400px) {
    .blender-container,
    .design-container {
        padding: 0 0.75rem;
    }
}

/* ============================================
   CONTACT SECTION
   ============================================ */

.contact {
    padding: var(--spacing-xl) 0;
    background: var(--color-bg);
    min-height: 80vh;
    display: flex;
    align-items: center;
}

.contact-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 var(--spacing-md);
    text-align: center;
}

.contact-title {
    font-size: clamp(3rem, 8vw, 5rem);
    font-weight: 700;
    line-height: 1.05;
    letter-spacing: -0.03em;
    margin-bottom: var(--spacing-md);
}

.contact-desc {
    font-size: 1.125rem;
    color: var(--color-text-muted);
    margin-bottom: var(--spacing-lg);
}

.contact-email {
    display: inline-block;
    font-size: clamp(1.25rem, 4vw, 2rem);
    font-weight: 500;
    color: var(--color-text);
    padding-bottom: 4px;
    border-bottom: 2px solid var(--color-accent);
    transition: all 0.3s ease;
}

.contact-email:hover {
    color: var(--color-accent);
}

.contact-socials {
    display: flex;
    justify-content: center;
    gap: var(--spacing-md);
    margin-top: var(--spacing-xl);
}

.social-link {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 50%;
    color: var(--color-text-muted);
    transition: all 0.3s var(--ease-out-expo);
}

.social-link svg {
    width: 20px;
    height: 20px;
}

.social-link:hover {
    background: var(--color-text);
    color: var(--color-bg);
    border-color: var(--color-text);
    transform: translateY(-3px);
}

/* ============================================
   FOOTER
   ============================================ */

.footer {
    padding: var(--spacing-lg) 0;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-md);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer p {
    font-size: 0.875rem;
    color: var(--color-text-muted);
}

.footer-location {
    font-size: 0.75rem !important;
}

/* ============================================
   RESPONSIVE - NEW SECTIONS
   ============================================ */

@media (max-width: 767px) {
    /* Global container padding reduction */
    .services-container,
    .featured-container,
    .contact-container {
        padding: 0 var(--spacing-sm);
    }

    /* Reduce section padding */
    .services,
    .featured,
    .contact {
        padding: var(--spacing-lg) 0;
    }

    .services-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-sm);
    }

    .service-card {
        padding: var(--spacing-sm);
        border-radius: 16px;
    }

    .projects-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-sm);
    }

    .project-card {
        border-radius: 16px;
    }

    .project-card-large {
        grid-template-columns: 1fr;
    }

    .project-card-large .project-image-placeholder {
        min-height: 200px;
    }

    .project-info {
        padding: var(--spacing-sm);
    }

    .contact-socials {
        gap: var(--spacing-sm);
    }

    .social-link {
        width: 44px;
        height: 44px;
    }

    .footer-container {
        flex-direction: column;
        gap: var(--spacing-sm);
        text-align: center;
    }
}

/* Extra small phones - even tighter */
@media (max-width: 400px) {
    .services-container,
    .featured-container,
    .contact-container {
        padding: 0 0.75rem;
    }
}

@media (min-width: 768px) and (max-width: 1023px) {
    .services-grid {
        gap: var(--spacing-sm);
    }

    .service-card {
        padding: var(--spacing-md);
    }
}

/* ============================================
   PARALLAX EFFECTS
   ============================================ */

[data-parallax] {
    will-change: transform;
}

[data-parallax-img] {
    overflow: hidden;
}

[data-parallax-img] > * {
    transition: transform 0.1s linear;
    will-change: transform;
}

/* Service cards parallax tilt on hover */
.service-card {
    transform-style: preserve-3d;
    perspective: 1000px;
}

/* ============================================
   PROJECT MODAL
   ============================================ */

.modal {
    position: fixed;
    inset: 0;
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s var(--ease-out-expo);
}

.modal.active {
    opacity: 1;
    visibility: visible;
}

.modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

.modal-container {
    position: relative;
    width: 90%;
    max-width: 1000px;
    max-height: 90vh;
    background: var(--color-bg-secondary);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 24px;
    overflow: hidden;
    transform: scale(0.9) translateY(30px);
    transition: transform 0.5s var(--ease-out-expo);
}

.modal.active .modal-container {
    transform: scale(1) translateY(0);
}

.modal-close {
    position: absolute;
    top: var(--spacing-md);
    right: var(--spacing-md);
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    border-radius: 50%;
    color: var(--color-text);
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s var(--ease-out-expo);
}

.modal-close:hover {
    background: var(--color-text);
    color: var(--color-bg);
    transform: rotate(90deg);
}

.modal-content {
    max-height: 90vh;
    overflow-y: auto;
    padding: var(--spacing-lg);
}

/* Custom scrollbar for modal */
.modal-content::-webkit-scrollbar {
    width: 6px;
}

.modal-content::-webkit-scrollbar-track {
    background: transparent;
}

.modal-content::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 3px;
}

.modal-header {
    margin-bottom: var(--spacing-lg);
}

.modal-category {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--color-accent);
    margin-bottom: var(--spacing-xs);
}

.modal-title {
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -0.02em;
}

.modal-gallery {
    margin-bottom: var(--spacing-lg);
    border-radius: 16px;
    overflow: hidden;
}

.modal-image-main {
    width: 100%;
}

.modal-image-main .project-image-placeholder {
    aspect-ratio: 16/9;
    min-height: 300px;
}

.modal-details {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: var(--spacing-lg);
    margin-bottom: var(--spacing-lg);
}

.modal-description h3 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: var(--spacing-sm);
    color: var(--color-text-muted);
}

.modal-description p {
    font-size: 1.1rem;
    line-height: 1.7;
    color: var(--color-text);
}

.modal-info {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
}

.modal-info-item {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-xs);
}

.modal-info-label {
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--color-text-muted);
}

.modal-info-value {
    font-size: 1rem;
    font-weight: 500;
}

.modal-tags {
    display: flex;
    flex-wrap: wrap;
    gap: var(--spacing-xs);
}

.modal-tags span {
    font-size: 0.75rem;
    padding: 0.35rem 0.75rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 100px;
    color: var(--color-text-muted);
}

.modal-cta {
    padding-top: var(--spacing-md);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-sm);
    padding: 1rem 2rem;
    background: var(--color-accent);
    border-radius: 100px;
    font-size: 1rem;
    font-weight: 600;
    color: var(--color-text);
    transition: all 0.3s var(--ease-out-expo);
}

.btn-primary:hover {
    background: #1a82e6;
    transform: translateY(-2px);
    box-shadow: 0 10px 40px rgba(41, 151, 255, 0.3);
}

.btn-primary svg {
    transition: transform 0.3s var(--ease-out-expo);
}

.btn-primary:hover svg {
    transform: translate(3px, -3px);
}

/* Project link button style */
.project-link {
    background: none;
    border: none;
    cursor: pointer;
    font-family: inherit;
}

/* Modal Responsive */
@media (max-width: 767px) {
    .modal-container {
        width: 100%;
        height: 100%;
        max-width: 100%;
        max-height: 100%;
        border-radius: 0;
        margin: 0;
    }

    .modal-content {
        padding: 20px;
        padding-top: 60px;
    }

    .modal-close {
        top: 12px;
        right: 12px;
        width: 44px;
        height: 44px;
        background: rgba(255, 255, 255, 0.1);
        border-radius: 50%;
    }

    .modal-header {
        margin-bottom: 20px;
    }

    .modal-title {
        font-size: 1.5rem;
    }

    .modal-gallery {
        margin-bottom: 24px;
    }

    .modal-image-main .project-image-placeholder {
        min-height: 180px;
    }

    .modal-details {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .modal-description h3 {
        font-size: 1rem;
        margin-bottom: 12px;
    }

    .modal-description p {
        font-size: 0.9rem;
        line-height: 1.6;
    }

    .modal-info {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 16px;
    }

    .modal-info-item {
        padding: 12px;
        background: rgba(255, 255, 255, 0.03);
        border-radius: 12px;
    }

    .modal-info-label {
        font-size: 0.7rem;
    }

    .modal-info-value {
        font-size: 0.85rem;
    }

    .modal-tags {
        gap: 8px;
    }

    .modal-tags span {
        font-size: 0.7rem;
        padding: 4px 10px;
    }

    .modal-cta {
        margin-top: 24px;
        padding-top: 24px;
    }

    .modal-cta .btn-primary {
        width: 100%;
        justify-content: center;
        padding: 16px 24px;
        font-size: 1rem;
    }
}

/* Preloader Responsive */
@media (max-width: 767px) {
    .logo-container {
        width: 180px;
        height: 180px;
    }

    .logo-svg-wrapper {
        width: 110px;
        height: 65px;
    }

    .orbit {
        width: 150px;
        height: 150px;
        margin: -75px 0 0 -75px;
    }

    .orbit-2 {
        width: 200px;
        height: 200px;
        margin: -100px 0 0 -100px;
    }

    .preloader-name {
        font-size: 1.1rem;
        letter-spacing: 0.15em;
    }

    .stat-value {
        font-size: 3rem;
    }

    .stat-unit {
        font-size: 1.2rem;
    }

    .preloader-progress {
        width: 260px;
    }

    .preloader-inner {
        gap: 35px;
    }
}

@media (max-width: 374px) {
    .logo-container {
        width: 150px;
        height: 150px;
    }

    .logo-svg-wrapper {
        width: 90px;
        height: 55px;
    }

    .orbit {
        width: 120px;
        height: 120px;
        margin: -60px 0 0 -60px;
    }

    .orbit-2 {
        width: 160px;
        height: 160px;
        margin: -80px 0 0 -80px;
    }

    .preloader-name {
        font-size: 0.9rem;
    }

    .stat-value {
        font-size: 2.5rem;
    }

    .preloader-progress {
        width: 220px;
    }

    .modal-info {
        grid-template-columns: 1fr;
    }
}

/* Body lock when modal open */
body.modal-open {
    overflow: hidden;
}

/* ============================================
   MODAL SLIDESHOW
   ============================================ */
.modal-slideshow {
    position: relative;
    width: 100%;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 16px;
    overflow: hidden;
    margin-bottom: var(--spacing-md);
}

.slideshow-container {
    width: 100%;
    aspect-ratio: 16/9;
    position: relative;
}

/* Loading spinner for slideshow */
.slideshow-loader {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 50px;
    height: 50px;
    border: 3px solid rgba(255, 255, 255, 0.1);
    border-top-color: var(--color-accent);
    border-radius: 50%;
    animation: slideshow-spin 0.8s linear infinite;
    z-index: 5;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
}

.slideshow-loader.visible {
    opacity: 1;
}

@keyframes slideshow-spin {
    to { transform: translate(-50%, -50%) rotate(360deg); }
}

.slideshow-container img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.slideshow-container img.active {
    opacity: 1;
}

.slideshow-container img.loading {
    opacity: 0;
}

.slideshow-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 48px;
    height: 48px;
    background: rgba(0, 0, 0, 0.6);
    border: none;
    border-radius: 50%;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 10;
}

.slideshow-btn:hover {
    background: var(--color-accent);
    transform: translateY(-50%) scale(1.1);
}

.slideshow-prev {
    left: 15px;
}

.slideshow-next {
    right: 15px;
}

.slideshow-dots {
    position: absolute;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 10;
}

.slideshow-dot {
    width: 10px;
    height: 10px;
    background: rgba(255, 255, 255, 0.4);
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
}

.slideshow-dot.active {
    background: var(--color-accent);
    transform: scale(1.2);
}

.slideshow-counter {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(0, 0, 0, 0.6);
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    color: white;
    z-index: 10;
}

@media (max-width: 768px) {
    .slideshow-btn {
        width: 40px;
        height: 40px;
    }

    .slideshow-prev {
        left: 10px;
    }

    .slideshow-next {
        right: 10px;
    }
}
