:root {
    --bg-color: #0F0F0F;
    --text-color: #F5F5F7;
    --text-muted: #A1A1AA;
    --accent-color: #FFD700;
    --accent-glow: rgba(255, 215, 0, 0.4);
    --primary-btn: #FFFFFF;
    --primary-btn-text: #000000;
    --secondary-btn-border: #3F3F46;
    --glass-bg: rgba(25, 25, 25, 0.6);
    --glass-border: rgba(255, 255, 255, 0.1);

    --font-heading: 'Unbounded', sans-serif;
    --font-logo: 'Cinzel', serif;
    --font-body: 'Inter', sans-serif;

    --transition-speed: 0.3s;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    /* Bread/Gold Gradient Background */
    background: radial-gradient(circle at 50% 0%, #2a1a0a, #0F0F0F 80%);
    color: var(--text-color);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;

    /* Custom Croissant Cursor */
    cursor: url("../assets/images%20copy/mouse_cursor.webp"), auto;

    /* Prevent horizontal scroll shifting */
    overflow-x: hidden;
    width: 100vw;
    margin: 0;
}

html {
    overflow-x: hidden;
    width: 100vw;
    scroll-behavior: smooth;
}

/* Ensure sections land correctly below fixed header */
#about,
#production,
#catalog,
#contacts {
    scroll-margin-top: 50px;
}

/* --- Preloader --- */
.preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 50% 0%, #2a1a0a, #0F0F0F 80%);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 0.8s ease-out, visibility 0.8s ease-out;
}

.preloader.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.loader-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}

.loader-logo {
    font-family: 'Inter', 'Helvetica Neue', Arial, sans-serif;
    font-size: 3rem;
    display: flex;
    align-items: baseline;
    line-height: 1;
    animation: pulseLogo 2s infinite;
}

.loading-bar-container {
    width: 200px;
    height: 2px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 2px;
    overflow: hidden;
    position: relative;
}

.loading-bar {
    width: 0%;
    height: 100%;
    background: var(--accent-color);
    box-shadow: 0 0 10px var(--accent-glow);
    transition: width 0.3s ease-out;
}

@keyframes pulseLogo {

    0%,
    100% {
        opacity: 1;
        transform: scale(1);
    }

    50% {
        opacity: 0.8;
        transform: scale(0.98);
    }
}

button,
a {
    cursor: url("../assets/images%20copy/mouse_cursor.webp"), pointer;
}

button {
    font-family: var(--font-body);
    border: none;
    background: none;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-color);
}

::-webkit-scrollbar-thumb {
    background: #333;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #555;
}

/* --- Header --- */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    /* Padding handles the vertical sizing */
    padding: 1.5rem 2%;
    display: flex;
    justify-content: center;
    /* Center the main pill container */
    pointer-events: none;
    /* Let clicks pass through empty areas */
    z-index: 1000;
    transition: padding 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.header.scrolled {
    padding: 1rem 2%;
}

/* Branding - Absolute positioned to not affect centering flow */
.branding {
    position: absolute;
    left: 5%;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    z-index: 20;
    pointer-events: auto;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 1;
}

@media (max-width: 767px) {
    .header {
        /* Ensure enough height for the logo + subtext */
        min-height: 85px;
    }

    .branding {
        left: 5%;
        width: auto;
    }

    .branding .logo {
        font-size: 1.4rem !important;
    }

    .subtext {
        font-size: 0.55rem !important;
        margin-top: 2px;
    }
}

.header.scrolled .branding {
    opacity: 0;
    transform: translateY(-50%) translateX(-20px);
    pointer-events: none;
}

.branding .logo {
    font-family: 'Inter', 'Helvetica Neue', Arial, sans-serif;
    font-size: 1.8rem;
    display: flex;
    align-items: baseline;
    line-height: 1;
    margin-bottom: -2px;
    text-decoration: none;
}

.rvk-accent {
    font-weight: 900;
    color: var(--accent-color);
    letter-spacing: 0.05em;
    font-style: normal;
}

.food-muted {
    font-weight: 300;
    color: var(--text-color);
    opacity: 0.7;
    letter-spacing: 0.1em;
    margin-left: 2px;
}

.subtext {
    font-family: monospace;
    font-size: 0.55rem;
    line-height: 1.3;
    color: var(--text-muted);
    margin-top: 0;
    margin-left: 2px;
    text-transform: lowercase;
    opacity: 0.8;
}

/* --- Pill Container (Simple Centered Nav) --- */

.pill-container {
    display: flex;
    justify-content: center;
    align-items: center;
    pointer-events: auto;

    /* Animation props */
    background: transparent;
    border-radius: 4rem;
    padding: 0.6rem 2rem;
    border: 1px solid transparent;

    /* Smooth, slow transition */
    transition:
        background 1.2s ease-out,
        border-color 1.2s ease-out,
        box-shadow 1.2s ease-out,
        padding 1.2s ease-out;
}

/* Navigation - always centered */
.nav {
    display: none;
    white-space: nowrap;
}

@media (min-width: 768px) {
    .nav {
        display: flex;
        gap: 2.5rem;
        align-items: center;
    }
}

/* --- Header CTA Button (Fixed Right Position) --- */
.header-cta {
    position: absolute;
    right: 5%;
    top: 50%;
    transform: translateY(-50%);
    z-index: 20;
    pointer-events: auto;
    /* Inherits .cta styles */
}

/* Hide header CTA on mobile (we have mobile-cta in menu) */
@media (max-width: 767px) {
    .header-cta {
        display: none;
    }
}

/* --- Hamburger Button (Mobile Only) --- */
.hamburger {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    width: 44px;
    height: 44px;
    padding: 10px;
    background: transparent;
    border: none;
    z-index: 100;
    position: absolute;
    right: 5%;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: auto;
    /* Enable clicks (header has pointer-events: none) */
    cursor: pointer;
}

.hamburger-line {
    width: 24px;
    height: 2px;
    background: var(--text-color);
    border-radius: 2px;
    transition: all 0.3s ease;
}

/* Hide hamburger on desktop */
@media (min-width: 768px) {
    .hamburger {
        display: none;
    }
}

/* Hamburger animation when menu is open */
.hamburger.active .hamburger-line:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.active .hamburger-line:nth-child(2) {
    opacity: 0;
}

.hamburger.active .hamburger-line:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* --- Mobile Menu Overlay --- */
.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    /* Simple dark overlay - no heavy blur to prevent mobile freezing */
    background: rgba(0, 0, 0, 0.9);
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    display: flex;
    justify-content: center;
    align-items: center;
}

.mobile-menu-overlay.active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.mobile-menu-container {
    position: relative;
    /* For close button positioning */
    width: 90%;
    max-width: 400px;
    padding: 3rem 2rem;
    border-radius: 2rem;
    text-align: center;
    transform: translateY(20px) scale(0.95);
    transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1);

    /* Enhanced Glassmorphism */
    background: linear-gradient(135deg,
            rgba(255, 255, 255, 0.1) 0%,
            rgba(255, 255, 255, 0.05) 50%,
            rgba(0, 0, 0, 0.2) 100%);
    border: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5);
}

.mobile-menu-overlay.active .mobile-menu-container {
    transform: translateY(0) scale(1);
}

.mobile-menu-close {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    width: 44px;
    height: 44px;
    display: flex;
    justify-content: center;
    align-items: center;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    color: var(--text-color);
    transition: all 0.3s ease;
}

.mobile-menu-close:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: var(--accent-color);
    color: var(--accent-color);
}

.mobile-nav {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.mobile-nav-link {
    font-size: 1.25rem;
    font-weight: 500;
    color: var(--text-color);
    text-decoration: none;
    padding: 0.5rem 1rem;
    border-radius: 1rem;
    transition: all 0.3s ease;
}

.mobile-nav-link:hover {
    color: var(--accent-color);
    background: rgba(255, 215, 0, 0.1);
    text-shadow: 0 0 15px var(--accent-glow);
}

.mobile-cta {
    width: 100%;
    padding: 1rem 2rem;
    font-size: 1rem;
}

/* --- Scrolled State (The Transformation) --- */

.header.scrolled .pill-container {
    padding: 0.6rem 2rem;

    /* Enhanced Glassmorphism - More transparent and glassy */
    background: linear-gradient(135deg,
            rgba(255, 255, 255, 0.08) 0%,
            rgba(255, 255, 255, 0.03) 50%,
            rgba(0, 0, 0, 0.1) 100%);
    backdrop-filter: blur(30px) saturate(180%);
    -webkit-backdrop-filter: blur(30px) saturate(180%);

    /* Glassy border with top highlight */
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-top: 1px solid rgba(255, 255, 255, 0.25);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);

    /* Soft glow and depth */
    box-shadow:
        0 8px 32px rgba(0, 0, 0, 0.25),
        0 0 0 1px rgba(255, 255, 255, 0.05),
        inset 0 1px 1px rgba(255, 255, 255, 0.1),
        inset 0 -1px 1px rgba(0, 0, 0, 0.05);
}

/* Hide CTA text smoothly when scrolled (optional - keep visible) */
/* .header.scrolled .header-cta { opacity: 1; } */

.nav a {
    text-decoration: none;
    color: var(--text-muted);
    font-size: 0.9rem;
    font-weight: 500;
    transition: color 0.3s ease, text-shadow 0.3s ease;
    display: inline-block;
    white-space: nowrap;
}

.nav a:hover,
.nav .active {
    color: var(--accent-color);
    text-shadow: 0 0 15px var(--accent-glow);
}

.cta {
    /* Unified Glassmorphism Style */
    background: linear-gradient(135deg,
            rgba(255, 255, 255, 0.12) 0%,
            rgba(255, 255, 255, 0.05) 50%,
            rgba(0, 0, 0, 0.05) 100%);
    backdrop-filter: blur(30px) saturate(180%);
    -webkit-backdrop-filter: blur(30px) saturate(180%);

    /* Glassy borders */
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-top: 1px solid rgba(255, 255, 255, 0.35);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);

    color: #fff;
    padding: 0.7rem 2rem;
    border-radius: 4rem;
    font-size: 0.85rem;
    font-weight: 600;
    transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
    text-transform: uppercase;
    letter-spacing: 0.1em;

    /* Depth and glow */
    box-shadow:
        0 4px 20px rgba(0, 0, 0, 0.15),
        0 0 0 1px rgba(255, 255, 255, 0.05),
        inset 0 1px 1px rgba(255, 255, 255, 0.15),
        inset 0 -1px 1px rgba(0, 0, 0, 0.05);
}

.cta:hover {
    /* No movement — only glow */
    background: linear-gradient(135deg,
            rgba(255, 255, 255, 0.2) 0%,
            rgba(255, 255, 255, 0.1) 50%,
            rgba(0, 0, 0, 0.02) 100%);
    border-color: var(--accent-color);

    box-shadow:
        0 4px 25px rgba(0, 0, 0, 0.2),
        0 0 30px var(--accent-glow),
        inset 0 1px 2px rgba(255, 255, 255, 0.2);
}

/* --- Hero --- */
.hero-container {
    display: flex;
    flex-direction: column;
    width: 100%;
}

.video-section {
    height: 100vh;
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
}

.video-wrapper {
    width: 100%;
    max-width: 1000px;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 2rem;
    mix-blend-mode: lighten;
}

.video {
    width: 100%;
    height: auto;
    max-height: 70vh;
    object-fit: contain;
    mask-image: radial-gradient(circle at center, black 60%, transparent 95%);
    -webkit-mask-image: radial-gradient(circle at center, black 60%, transparent 95%);
    transform: scale(1.3) translateZ(0);
    /* GPU acceleration */
    will-change: transform;
    backface-visibility: hidden;
}

.catalog-btn {
    margin-top: -20px;
    z-index: 10;
    padding: 1.1rem 3rem;

    /* Unified Glassmorphism Style */
    background: linear-gradient(135deg,
            rgba(255, 255, 255, 0.12) 0%,
            rgba(255, 255, 255, 0.05) 50%,
            rgba(0, 0, 0, 0.05) 100%);
    backdrop-filter: blur(30px) saturate(180%);
    -webkit-backdrop-filter: blur(30px) saturate(180%);

    /* Glassy borders */
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-top: 1px solid rgba(255, 255, 255, 0.35);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);

    color: #fff;
    font-size: 1.15rem;
    font-weight: 600;
    font-family: var(--font-body);
    border-radius: 4rem;
    transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
    text-transform: uppercase;
    letter-spacing: 0.15em;

    /* Depth and glow */
    box-shadow:
        0 4px 20px rgba(0, 0, 0, 0.15),
        0 0 0 1px rgba(255, 255, 255, 0.05),
        inset 0 1px 1px rgba(255, 255, 255, 0.15),
        inset 0 -1px 1px rgba(0, 0, 0, 0.05);
}

.catalog-btn:hover {
    /* No movement — only glow */
    background: linear-gradient(135deg,
            rgba(255, 255, 255, 0.2) 0%,
            rgba(255, 255, 255, 0.1) 50%,
            rgba(0, 0, 0, 0.02) 100%);
    border-color: var(--accent-color);
    color: #fff;

    box-shadow:
        0 4px 25px rgba(0, 0, 0, 0.2),
        0 0 30px var(--accent-glow),
        inset 0 1px 2px rgba(255, 255, 255, 0.2);
}

/* Info Section */
/* Info Section */
/* Info Section */
.info-section {

    min-height: 100vh;
    padding: 2rem 5%;
    display: block;
    /* Removed split grid layout */
}

/* Hero Badge - Subtle Label */
.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    color: var(--text-muted);
    font-size: 0.75rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    margin-bottom: 1rem;
    opacity: 0.7;
}

.badge-icon {
    font-size: 0.85rem;
    opacity: 0.6;
}

/* New Headline Card Typography */
.area-headline h1 {
    font-family: var(--font-heading);
    /* Restored Unbounded Font */
    font-size: clamp(1.8rem, 4vw, 3.2rem);
    text-transform: uppercase;
    line-height: 1.1;
    margin-bottom: 1rem;
    color: #fff;
}

.highlight {
    color: var(--accent-color);
    text-shadow: 0 0 30px var(--accent-glow);
}

.huge-text {
    font-size: clamp(2rem, 3vw, 3rem);
    line-height: 1;
    color: #fff;
    font-weight: 700;
}

.text-small {
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* Subtext Color Unification & Consistency */
.bento-item p,
.subtitle,
.text-small,
.small-label {
    color: var(--text-muted) !important;
    font-family: var(--font-body) !important;
    font-size: 0.9rem !important;
    line-height: 1.5 !important;
    font-weight: 400 !important;
    margin: 0;
}

.bento-item h3 {
    margin-bottom: 0.5rem;
}

/* Bento Grid Redesign */
.bento-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    grid-auto-flow: dense;
}

@media (min-width: 768px) {
    .bento-grid {
        display: grid;
        /* Custom 7-track grid to handle irregular column splits strictly in pixels */
        /* Logic:
           Line 0: 0px
           Line 1: 282px (Auto End) -> Track 1: 282px
           Line 2: 306px (RnD Start) -> Track 2: 24px (GAP 1)
           Line 3: 375px (Video End) -> Track 3: 69px
           Line 4: 399px (Stds Start) -> Track 4: 24px (GAP 2)
           Line 5: 806px (Scale End) -> Track 5: 407px
           Line 6: 830px (SKU Start) -> Track 6: 24px (GAP 3)
           Line 7: 1200px (End) -> Track 7: 370px
        */
        grid-template-columns: 282px 24px 69px 24px 407px 24px 370px;

        /* Fixed Row Heights */
        /* Row 1: Headline (304) */
        /* Row 2: Auto/RnD (250) */
        /* Row 3: Video/Stds (250) */
        /* Row 4: Scale (200) */
        /* Row 5: Cold (200) */
        grid-template-rows: auto 250px 250px 200px 200px;

        /* Row gap is standard, Col gap is 0 because we use explicit tracks */
        gap: 24px 0;

        max-width: 1200px;
        margin: 0 auto;
    }

    /* Grid Areas & Spans using Track Numbers */

    /* Row 1: Headline (Full Width) */
    .area-headline {
        grid-column: 1 / span 7;
        grid-row: 1;
    }

    /* Row 2: Auto (282 width) | RnD (894 width) */
    .area-auto {
        grid-column: 1 / span 1;
        grid-row: 2;
    }

    .area-rnd {
        grid-column: 3 / span 5;
        /* Spans 69+24+407+24+370 = 894px */
        grid-row: 2;
    }

    /* Row 3: Video (375 width) | Standards (801 width) */
    .area-video {
        grid-column: 1 / span 3;
        /* Spans 282+24+69 = 375px */
        aspect-ratio: auto;
        grid-row: 3;
    }

    .area-standards {
        grid-column: 5 / span 3;
        /* Spans 407+24+370 = 801px */
        grid-row: 3;
    }

    /* Row 4: Scale (806 width) | SKU (370 width) */
    .area-scale {
        grid-column: 1 / span 5;
        /* Spans 282+24+69+24+407 = 806px */
        grid-row: 4;
    }

    /* SKU spans Row 4 + Row 5 (Height: 200 + 24gap + 200 = 424px) */
    .area-sku {
        grid-column: 7 / span 1;
        /* 370px width */
        grid-row: 4 / span 3;
        /* Spans grid rows 4 and 5 (and the gap between them) */
        /* Note: In standard grid, spanning 2 rows covers the gap. grid-row: 4 / 6 covers lines 4 to 6 (row 4 and 5) */
        grid-row: 4 / 6;
    }

    /* Row 5: Cold (806 width) */
    .area-cold {
        grid-column: 1 / span 5;
        /* 806px */
        grid-row: 5;
    }
}

/* Base Item Styles */
.bento-item {
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

/* Updated Glassmorphism Card Style */
.glass-card {
    /* Much darker background as per reference */
    background: linear-gradient(145deg, rgba(20, 20, 20, 0.9), rgba(10, 10, 10, 0.95));
    /* Subtle thin border */
    border: 1px solid rgba(255, 255, 255, 0.08);
    /* Faint grey border */
    border-radius: 1.5rem;
    /* Copied from reference rounded corners */
    padding: 2rem;
    transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);

    /* Soft shadow initially */
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

/* Hover Effect: Glow and Border Highlight */
.glass-card:hover {
    transform: translateY(-4px);
    /* Lighter border on hover */
    border-color: rgba(255, 255, 255, 0.2);
    /* Inner glow or soft accent glow */
    box-shadow:
        0 8px 30px rgba(0, 0, 0, 0.5),
        0 0 15px rgba(255, 215, 0, 0.05),
        /* Very subtle accent glow */
        inset 0 0 20px rgba(255, 255, 255, 0.02);
    /* Inner lighting */
}

/* Typography Overrides to ensure "Previous Font" (Unbounded) */
.glass-card h3,
.huge-text,
.text-accent,
.subtitle,
.highlight-stat,
.standards-logos {
    font-family: var(--font-heading) !important;
}

.no-padding {
    padding: 0 !important;
}

/* Grid Areas & Spans */


/* Typography & Visuals */
.text-accent {
    color: var(--accent-color);
    text-shadow: 0 0 20px rgba(255, 215, 0, 0.15);
    /* More subtle text shadow */
}

.huge-text {
    font-size: 3rem;
    line-height: 1;
    color: #fff;
    font-weight: 700;
}

.subtitle {
    font-size: 1.2rem;
    color: #fff;
    margin-bottom: 0.5rem;
}

/* Specific Block Styling */

/* 1. Standards & 5. R&D - Left Align */
.area-standards,
.area-rnd {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start !important;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start !important;
    text-align: left !important;
    padding-left: 3rem !important;
}

@media (max-width: 767px) {

    .area-standards,
    .area-rnd {
        padding-left: 2rem !important;
        /* Match standard mobile card padding */
        align-items: flex-start !important;
        /* Ensure left alignment */
    }
}

.standards-logos {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: nowrap;
    white-space: nowrap;
    overflow-x: auto;
    /* Allow scroll if still too wide, or just nowrap */
    font-size: 1.5rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.9);
    margin: 1rem 0;
}

@media (max-width: 767px) {
    .standards-logos {
        font-size: 1rem !important;
        gap: 0.25rem 0.5rem !important;
        flex-wrap: wrap !important;
        white-space: normal !important;
        overflow-x: visible !important;
        max-width: 100% !important;
    }
}

/* Removed extra small font media queries as wrapping solves the space issue */

.standards-logos .divider {
    color: var(--accent-color);
    opacity: 0.5;
}

/* 2. SKU & 7. Scale Backgrounds */
.bg-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 1;
    transition: transform 0.6s ease-out;
    opacity: 0.7;
}

.sku-shift {
    top: -15% !important;
    height: 115% !important;
}

.dim-bg {
    opacity: 0.3;
}

.bento-item:hover .bg-image {
    transform: scale(1.05);
}

.bento-item:hover .sku-shift {
    transform: scale(1.05);
}

.content-overlay {
    position: relative;
    z-index: 2;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    padding: 2rem;
}

.bottom-gradient {
    justify-content: flex-end;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9) 10%, rgba(0, 0, 0, 0.4) 60%, transparent);
}

.left-align {
    justify-content: center;
    align-items: flex-start;
    background: linear-gradient(to right, rgba(0, 0, 0, 0.9) 30%, transparent);
}

/* 3. Video Block */
.bg-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 1;
    opacity: 0.8;
}

/* Mobile Video Height Fix */
@media (max-width: 767px) {
    .area-video {
        min-height: 250px;
    }
}

/* 4. Cold Chain - Flex Row Layout */
/* 4. Cold Chain - Flex Row Layout */
.area-cold {
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    justify-content: center !important;
    padding: 1.5rem !important;
    height: auto !important;
    /* Allow growing */
    min-height: 250px;
}

@media (min-width: 768px) {
    .area-cold {
        flex-direction: row !important;
        align-items: center !important;
        justify-content: space-between !important;
        padding: 0 3rem !important;
        height: 100% !important;
        min-height: 0 !important;
        /* Reset to grid height */
    }
}

.area-cold h3 {
    white-space: normal;
    /* Allow wrapping */
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
    /* Ensure it fits */
}

.cold-text-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    text-align: left;
    z-index: 2;
    padding-right: 0;
    width: 100%;
}

.cold-image-wrapper {
    flex: 0 0 40%;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%;
}

.contain-image {
    max-width: 100%;
    max-height: 160px;
    width: auto;
    object-fit: contain;
}

/* 5. R&D */
.highlight-stat {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    line-height: 1.3;
    color: #fff;
    margin: 1rem 0;
    border-left: 3px solid var(--accent-color);
    padding-left: 1rem;
}

/* 6. Automation */
.centered-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.gear-animation {
    font-size: 4rem;
    margin-bottom: 0.5rem;
    animation: spin 10s linear infinite;
    display: inline-block;
    filter: drop-shadow(0 0 10px var(--accent-glow));
}

.small-label {
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 0.1em;
    color: var(--text-muted);
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

/* --- Products Section --- */
.products-section {
    position: relative;
    padding: 4rem 5%;
    /* Gradient transition from previous section (transparent/body bg) to deeper dark */
    background: linear-gradient(180deg, rgba(15, 15, 15, 0) 0%, #050505 100%);
    min-height: 100vh;
}

.products-container {
    max-width: 1200px;
    margin: 0 auto;
}

.section-title {
    font-family: var(--font-heading);
    font-size: clamp(2rem, 4vw, 3rem);
    color: #fff;
    margin-bottom: 3rem;
    text-align: center;
    text-transform: uppercase;
    text-shadow: 0 0 20px rgba(255, 215, 0, 0.2);
}

.products-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

@media (min-width: 768px) {
    .products-grid {
        /* 2 Columns, 3 Rows Layout */
        grid-template-columns: repeat(2, 1fr);
        gap: 2.5rem;
    }
}

.product-card {
    position: relative;
    border-radius: 1.5rem;
    overflow: hidden;
    height: 450px;
    /* Taller for better visual */
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.5s cubic-bezier(0.25, 1, 0.5, 1);
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.6);
    border-color: rgba(255, 215, 0, 0.3);
}

/* Full Image Background */
.product-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.7s ease;
    z-index: 0;
}

.product-card:hover .product-bg {
    transform: scale(1.1);
}

/* Gradient Overlay */
.product-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.95) 0%, rgba(0, 0, 0, 0.6) 40%, transparent 100%);
    z-index: 1;
    opacity: 0.8;
    transition: opacity 0.5s ease;
}

.product-card:hover .product-overlay {
    opacity: 1;
    background: linear-gradient(to top, rgba(0, 0, 0, 1) 0%, rgba(0, 0, 0, 0.7) 50%, rgba(0, 0, 0, 0.2) 100%);
}

/* Content Container with Keyframe Animation Support */
.product-content {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 2rem;
    z-index: 2;
    transform: translateY(0);
    transition: transform 0.5s cubic-bezier(0.25, 1, 0.5, 1);
    display: flex;
    flex-direction: row;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1rem;
}

.product-text-wrap {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
    flex: 1;
}

.product-content h3 {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    color: #fff;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
    transition: transform 0.5s ease;
}

/* Hidden elements revealed on hover */
.product-desc {
    font-size: 0.95rem;
    color: var(--text-muted);
    margin-bottom: 0;
    opacity: 0.8;
    /* Slightly visible always? No, keep it clean */
    /* Let's try partial visibility or fully hidden */
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.5s ease;
}

.product-card:hover .product-desc {
    opacity: 1;
    /* Fully visible on hover */
    transform: translateY(0);
    max-height: 100px;
    margin-top: 0.5rem;
    /* Add margin only when visible */
}

/* Permanent Action Icon */
.card-action-icon {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    display: flex;
    justify-content: center;
    align-items: center;
    color: #fff;
    transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

.card-action-icon svg {
    width: 20px;
    height: 20px;
    transition: transform 0.4s ease;
}

.product-card:hover .card-action-icon {
    background: var(--accent-color);
    border-color: var(--accent-color);
    color: #000;
    transform: scale(1.1);
    box-shadow: 0 0 20px var(--accent-glow);
}

.product-card:hover .card-action-icon svg {
    transform: translate(2px, -2px);
    /* Diagonal movement */
}


/* Custom Order Special Card */
.custom-order-card {
    background: #000;
}

.custom-bg-animation {
    position: absolute;
    inset: 0;
    background: linear-gradient(45deg, #1a1a1a, #000, #2a1a0a);
    background-size: 400% 400%;
    animation: gradientBG 10s ease infinite;
    z-index: 0;
}

.custom-order-card .product-content {
    /* For custom card, center content vertically and horizontally */
    align-items: center;
    justify-content: center;
    height: 100%;
    top: 0;
    bottom: auto;
}

/* Specific centered wrap for custom card */
.centered-wrap {
    align-items: center !important;
    text-align: center !important;
    justify-content: center;
}

.custom-order-card .card-action-icon {
    /* Hide the standard corner icon for custom card, or position it absolutely at bottom right */
    position: absolute;
    bottom: 2rem;
    right: 2rem;
    z-index: 5;
}

@media (max-width: 767px) {
    .custom-order-card .card-action-icon {
        bottom: 1.5rem;
        right: 1.5rem;
    }

    .custom-order-card .product-content {
        padding-bottom: 7rem;
        /* Increased from 5rem to avoid overlap */
    }
}

.custom-order-card .product-desc {
    opacity: 1;
    /* Always visible for custom card */
    transform: none;
    max-height: none;
    margin-top: 1rem;
}

.custom-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
    filter: drop-shadow(0 0 0 rgba(255, 215, 0, 0));
    /* No shadow initially */
    animation: pulse-star 5s ease-in-out infinite;
    /* Slower and smoother */
    transform-origin: center center;
}

@keyframes gradientBG {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

@keyframes pulse-star {
    0% {
        transform: scale(0.9);
        filter: drop-shadow(0 0 0 rgba(255, 215, 0, 0));
        opacity: 0.5;
    }

    50% {
        transform: scale(1.4);
        filter: drop-shadow(0 0 25px rgba(255, 215, 0, 0.8));
        opacity: 1;
    }

    50% {
        transform: scale(1.4);
        filter: drop-shadow(0 0 25px rgba(255, 215, 0, 0.8));
        opacity: 1;
    }

    100% {
        transform: scale(0.9);
        filter: drop-shadow(0 0 0 rgba(255, 215, 0, 0));
        opacity: 0.5;
    }
}

/* Mobile specific tweaks for Star */
@media (max-width: 767px) {
    .custom-icon {
        margin-top: 8px !important;
        /* Move star down slightly */
    }
}

/* --- Partners --- */
.partners-section {
    padding: 4rem 5%;
    background: transparent;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.partners-container {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

.partners-label {
    font-family: var(--font-body);
    font-size: 0.9rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 3rem;
}

.partners-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 3rem;
    align-items: center;
}

.logo-placeholder {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.3);
    transition: all 0.3s ease;
    cursor: default;
}

.logo-placeholder:hover {
    color: var(--accent-color);
    text-shadow: 0 0 15px var(--accent-glow);
    transform: scale(1.05);
}


/* --- Contacts Section --- */
.contacts-section {

    padding: 0 5% 6rem;
    background: linear-gradient(180deg, #000000 0%, #050505 100%);
    position: relative;
    z-index: 10;
}

.contacts-container {
    max-width: 1000px;
    margin: 0 auto;
}

.contacts-section .section-title {
    margin-bottom: 3rem;
}

.contacts-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
}


@media (min-width: 768px) {
    .contacts-grid {
        grid-template-columns: 1fr 1fr;
    }
}

.contact-card {
    display: flex;
    flex-direction: column;
    /* Reset alignment for map layout */
    align-items: stretch;
    justify-content: space-between;
    text-align: center;
    padding: 0;
    /* Remove padding to let map hit edges */
    min-height: 400px;
    overflow: hidden;
}

.contact-details {
    padding: 3rem 2rem;
    flex: 0 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.card-icon-large {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    filter: drop-shadow(0 0 15px rgba(255, 215, 0, 0.2));
    transition: transform 0.4s ease;
}

.contact-card:hover .card-icon-large {
    transform: scale(1.1) rotate(5deg);
    filter: drop-shadow(0 0 25px rgba(255, 215, 0, 0.5));
}

.contact-category {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    color: var(--accent-color);
    margin-bottom: 1rem;
    letter-spacing: 0.1em;
}

.contact-address {
    font-size: 1.15rem;
    color: #fff;
    line-height: 1.6;
    font-weight: 300;
}

.map-wrapper {
    width: 100%;
    flex: 1;
    min-height: 250px;
    background: #222;
    position: relative;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.map-wrapper iframe {
    filter: invert(90%) hue-rotate(180deg) contrast(90%);
    /* Dark mode approximate map hack or just neutral */
    /* Often standard maps look too bright. Yandex dark mode requires API parameter theme=dark usually only in paid or js api. 
           We can try CSS filter to dim it. */
    opacity: 0.8;
    transition: all 0.5s ease;
}

.contact-card:hover .map-wrapper iframe {
    opacity: 1;
    filter: invert(0%);
    /* Reveal true colors on hover */
}

/* Info Bar */
.info-bar {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-around;
    padding: 2rem;
    gap: 2rem;
}

@media (min-width: 768px) {
    .info-bar {
        flex-direction: row;
        padding: 3rem 1rem;
    }
}

.info-group {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    flex: 1;
}

.info-label {
    font-size: 0.8rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.2em;
    margin-bottom: 0.8rem;
}

.info-value {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    color: #fff;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.hover-accent:hover {
    color: var(--accent-color);
    text-shadow: 0 0 20px var(--accent-glow);
    transform: scale(1.05);
}

.vertical-divider {
    display: none;
}

@media (min-width: 768px) {
    .vertical-divider {
        display: block;
        width: 1px;
        height: 60px;
        background: linear-gradient(to bottom, transparent, rgba(255, 255, 255, 0.2), transparent);
    }
}

/* Contacts CTA */
.contacts-cta {
    margin-top: 5rem;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}

.cta-title {
    font-family: var(--font-heading);
    font-size: clamp(1.8rem, 3vw, 2.5rem);
    color: #fff;
    text-shadow: 0 0 30px rgba(255, 215, 0, 0.1);
}

.cta-subtitle {
    font-size: 1.1rem;
    color: var(--text-muted);
    max-width: 600px;
    margin-bottom: 1rem;
}

.cta-pulse-btn {
    background: var(--accent-color);
    color: #000;
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 700;
    padding: 1.2rem 3.5rem;
    border-radius: 4rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    cursor: pointer;
    box-shadow: 0 0 0 rgba(255, 215, 0, 0.7);
    animation: pulse-gold 2s infinite;
    transition: all 0.3s ease;
}

.cta-pulse-btn:hover {
    transform: scale(1.05);
    background: #fff;
    color: #000;
    box-shadow: 0 0 40px var(--accent-glow);
}

@keyframes pulse-gold {
    0% {
        box-shadow: 0 0 0 0 rgba(255, 215, 0, 0.7);
    }

    70% {
        box-shadow: 0 0 0 20px rgba(255, 215, 0, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(255, 215, 0, 0);
    }
}

/* --- Footer --- */
.footer {
    background: #050505;
    padding: 5rem 5% 2rem;
    border-top: 1px solid var(--glass-border);
    margin-top: auto;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    margin-bottom: 4rem;
}

@media (min-width: 768px) {
    .footer-container {
        grid-template-columns: 2fr 1fr 1fr 1.5fr;
    }
}

.footer-column {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.footer-logo {
    font-family: var(--font-logo);
    font-size: 1.5rem;
    color: var(--text-color);
    margin-bottom: 0.5rem;
}

.footer-description {
    color: var(--text-muted);
    font-size: 0.9rem;
    max-width: 300px;
}

.footer-column h4 {
    color: #fff;
    font-size: 1rem;
    margin-bottom: 0.5rem;
    font-family: var(--font-heading);
}

.footer-column a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.2s;
}

.footer-column a:hover {
    color: var(--accent-color);
}

.footer-address {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.footer-bottom {
    max-width: 1200px;
    margin: 0 auto;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: center;
    color: var(--text-muted);
    font-size: 0.8rem;
}

@media (min-width: 768px) {
    .footer-bottom {
        flex-direction: row;
        justify-content: space-between;
    }
}

.footer-socials {
    display: flex;
    gap: 1rem;
}

.social-icon {
    cursor: pointer;
    transition: color 0.2s;
}

.social-icon:hover {
    color: #fff;
}

/* --- Product Modal --- */
.modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 2000;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
    padding: 20px;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal-wrapper {
    width: 100%;
    max-width: 1100px;
    max-height: 90vh;
    display: flex;
    justify-content: center;
}

.modal-container {
    width: 100%;
    background: #111;
    /* Fallback */
    background: linear-gradient(135deg, rgba(20, 20, 20, 0.95), rgba(10, 10, 10, 0.98));
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 1.5rem;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.7);
    transform: scale(0.95);
    transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

.modal-overlay.active .modal-container {
    transform: scale(1);
}

@media (max-width: 767px) {
    .modal-container {
        padding: 1.5rem !important;
        /* Reduce container padding on mobile */
    }

    .modal-form-section {
        padding: 1.5rem !important;
        /* Reduce inner form padding */
    }

    .modal-body {
        padding: 0 !important;
    }

    /* Specific override for the inline style in HTML of order-modal if possible, 
       but inline styles are hard to override without !important */
    #order-modal .modal-body {
        padding: 1rem 0 !important;
    }
}

.modal-close-btn {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    z-index: 10;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    cursor: pointer;
    transition: background 0.3s ease;
}

.modal-close-btn:hover {
    background: rgba(255, 215, 0, 0.2);
    color: var(--accent-color);
}

.modal-body {
    display: flex;
    flex-direction: column;
    /* Allow body to take height but enable scrolling ONLY if needed conceptually, 
       but standard mobile pattern is: header scroll + body scroll OR whole modal scrolls.
       Current structure: Header (fixed inside container) + Body (Image + Info).
       We need the *whole* modal content to be scrollable if it exceeds screen.
       BUT .modal-container has max-height: 95vh.
       So .modal-body needs overflow-y: auto for mobile. 
    */
    overflow-y: auto;
    flex: 1;
    /* Take remaining space */
    min-height: 0;
    /* Crucial for nested flex scrolling */
}

@media (min-width: 900px) {
    .modal-body {
        flex-direction: row;
        overflow: hidden;
        /* Desktop: internal scrolling in columns */
    }
}

/* Modal Header Section (New) */
.modal-header-section {
    padding: 2rem 3rem 0;
    text-align: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    /* Optional subtle divider */
}

.modal-title-center {
    font-family: var(--font-heading);
    font-size: clamp(1.5rem, 3vw, 2.2rem);
    color: #fff;
    margin-bottom: 0.5rem;
    line-height: 1.1;
    text-transform: uppercase;
}

.modal-desc-center {
    color: var(--text-muted);
    font-size: 1rem;
    line-height: 1.6;
    max-width: 800px;
    margin: 0 auto 1.5rem auto;
}

/* Modal Left: Image */
.modal-image-col {
    position: relative;
    width: 100%;
    /* Mobile: constrained height, but square preference where possible */
    height: auto;
    aspect-ratio: 1;
    flex-shrink: 0;
    padding: 2rem;
    display: flex;
    justify-content: center;
    align-items: center;
    background: radial-gradient(circle at center, rgba(255, 255, 255, 0.03), transparent 70%);
}

@media (min-width: 900px) {

    /* Adjust body flex to account for header taking vertical space */
    .modal-body {
        /* If header is *above* modal-body, modal-body now needs to take remaining height */
        /* However, modal-body is flex-row. We might want a wrapper?
           Actually, the structure is:
           .modal-container (column) -> .modal-header -> .modal-body (row)
        */
        height: auto;
        flex: 1;
        /* Body takes remaining space */
        min-height: 0;
        /* Important for scrolling to work inside flex item */
    }

    .modal-image-col {
        width: 45%;
        height: 100%;
        /* Fill the body height */
        aspect-ratio: auto;
        border-right: 1px solid rgba(255, 255, 255, 0.05);
    }
}

.modal-product-img {
    width: 100%;
    max-width: 500px;
    aspect-ratio: 1;
    object-fit: cover;
    border-radius: 2rem;
    /* More rounded */
    box-shadow:
        0 20px 50px rgba(0, 0, 0, 0.5),
        0 0 0 1px rgba(255, 255, 255, 0.1);
    transition: transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1), opacity 0.4s ease, filter 0.4s ease;
    will-change: transform, opacity, filter;
    transform: translateZ(0);
    /* Hardware accelerate */
}

.modal-product-img.blur-transition {
    opacity: 0.4;
    filter: blur(8px);
    transform: scale(0.98) translateZ(0);
}

.modal-container {
    /* Ensure container flows well */
    max-height: 95vh;
}

.modal-badge {
    position: absolute;
    top: 1.5rem;
    left: 1.5rem;
    background: var(--accent-color);
    color: #000;
    font-weight: 700;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    font-size: 0.8rem;
    letter-spacing: 0.1em;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

/* Modal Right: Scrollable Info */
/* Modal Right: Scrollable Info */
.modal-info-col {
    flex: 1;
    position: relative;
    scrollbar-width: thin;
    scrollbar-color: #333 transparent;
}

@media (min-width: 900px) {
    .modal-info-col {
        overflow-y: auto;
    }
}

.modal-scroll-content {
    padding: 2rem;
}

@media (max-width: 767px) {
    .modal-scroll-content {
        padding: 1rem !important;
        /* Reduce padding for wider content on mobile */
    }
}

@media (min-width: 900px) {
    .modal-scroll-content {
        padding: 3rem;
    }
}

/* Typography in Modal */
.modal-title {
    font-family: var(--font-heading);
    font-size: clamp(1.8rem, 3vw, 2.5rem);
    color: #fff;
    margin-bottom: 0.5rem;
    line-height: 1.1;
    text-transform: uppercase;
}

.modal-description {
    color: var(--text-muted);
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 2rem;
}

.modal-section {
    margin-bottom: 2rem;
}

.modal-subtitle {
    font-family: var(--font-body);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 0.05em;
    color: #fff;
    margin-bottom: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 0.5rem;
    display: inline-block;
}

/* Features List */
.modal-features-list {
    list-style: none;
    padding: 0;
}

.modal-features-list li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 0.8rem;
    color: #dedede;
    font-size: 0.95rem;
}

.modal-features-list li::before {
    content: "•";
    color: var(--accent-color);
    font-size: 1.5rem;
    position: absolute;
    left: 0;
    top: -0.2rem;
    line-height: 1;
}

/* Specs Grid */
.modal-specs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.spec-item {
    background: rgba(255, 255, 255, 0.03);
    padding: 1rem;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.spec-label {
    display: block;
    font-size: 0.75rem;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 0.3rem;
}

.spec-value {
    color: #fff;
    font-weight: 500;
}

/* Variants Grid */
.modal-variants-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
}

.variant-card {
    border: 1px solid var(--accent-color);
    border-radius: 8px;
    padding: 0.8rem 1.2rem;
    text-align: center;
    background: rgba(255, 215, 0, 0.05);
    flex: 1;
    min-width: 100px;
}

.variant-weight {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--accent-color);
    display: block;
    margin-bottom: 0.2rem;
}

.variant-qt {
    font-size: 0.8rem;
    color: #ccc;
    display: block;
}

.modal-divider {
    height: 1px;
    background: rgba(255, 255, 255, 0.1);
    margin: 2rem 0;
    width: 100%;
}

/* Contact Form */
.modal-form-section {
    background: rgba(255, 255, 255, 0.02);
    padding: 2rem;
    border-radius: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.form-title {
    font-size: 1.5rem;
    margin-bottom: 0.3rem;
    font-family: var(--font-heading);
    text-transform: uppercase;
}

.form-desc {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
}

.product-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.form-row {
    display: flex;
    gap: 1rem;
}

.form-input {
    width: 100%;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 0.8rem 1rem;
    border-radius: 8px;
    color: #fff;
    font-family: var(--font-body);
    font-size: 0.95rem;
    transition: border-color 0.3s ease;
}

.form-input:focus {
    outline: none;
    border-color: var(--accent-color);
    background: rgba(0, 0, 0, 0.5);
}

.form-textarea {
    min-height: 100px;
    resize: vertical;
}

.form-submit-btn {
    width: 100%;
    margin-top: 0.5rem;
}

@media (max-width: 600px) {
    .form-row {
        flex-direction: column;
        gap: 1rem;
    }
}

/* --- Modal Gallery --- */
.modal-gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin-top: 1rem;
}

.gallery-thumb {
    width: 100%;
    aspect-ratio: 1;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
    position: relative;
}

.gallery-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
    filter: brightness(0.8);
}

.gallery-thumb:hover {
    transform: translateY(-2px);
    border-color: rgba(255, 255, 255, 0.2);
    box-shadow:
        0 8px 20px rgba(0, 0, 0, 0.4),
        0 0 15px rgba(255, 215, 0, 0.05),
        inset 0 0 20px rgba(255, 255, 255, 0.02);
}

.gallery-thumb:hover img {
    transform: scale(1.05);
    /* slightly less aggressive zoom */
    filter: brightness(1);
}

.gallery-thumb.active-thumb {
    border-color: rgba(255, 255, 255, 0.3);
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.5);
}

.gallery-thumb.active-thumb img {
    filter: brightness(1);
}

/* Optimized blur transition (replaces/updates previous definition) */
.modal-product-img.blur-transition {
    opacity: 0.4;
    filter: blur(8px);
    transform: scale(0.98) translateZ(0);
}

.modal-variant-info-img {
    display: block;
    width: auto;
    max-width: 100%;
    max-height: 280px;
    /* Fits image in viewport */
    margin: 1.5rem 0 0;
    /* Reduced padding/margin, removed borders */
}



.form-textarea {
    min-height: 100px;
    resize: vertical;
}

.form-submit-btn {
    width: 100%;
    margin-top: 0.5rem;
}

@media (max-width: 600px) {
    .form-row {
        flex-direction: column;
        gap: 1rem;
    }
}

/* --- Production Gallery Section --- */
/* --- Production Gallery Section --- */
.production-section {
    padding: 4rem 0 8rem 0;
    /* Seamless Gradient: Starts exactly at #050505 to match products-section end */
    background: linear-gradient(180deg, #050505 0%, #000000 30%, #000000 100%);
    overflow: hidden;
    position: relative;
    z-index: 10;
    border-top: none;
}

.production-section .section-title {
    margin-top: 0;
    margin-bottom: 3rem;
    text-align: center;
    position: relative;
    z-index: 2;
}

/* Strategic Partner Block */
.strategic-partner-container {
    padding: 0 5%;
    max-width: 1200px;
    margin: 0 auto 5rem auto;
}

.partner-card {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #000;
    border: 1px solid rgba(255, 255, 255, 0.08);
    /* Subtle border */
    border-radius: 1.5rem;
    padding: 1.5rem 3rem;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
    transform: translateZ(0);
}

/* "Individual TZ" Style Animation Background */
.partner-card::before {
    content: '';
    position: absolute;
    inset: 0;
    /* Copied from .custom-bg-animation */
    background: linear-gradient(45deg, #1a1a1a, #000, #2a1a0a);
    background-size: 400% 400%;
    animation: gradientBG 10s ease infinite;
    z-index: 0;
}

/* Ensure content is above the background */
.partner-content,
.partner-visual {
    position: relative;
    z-index: 1;
}

@keyframes shimmer-sweep {
    0% {
        left: -150%;
    }

    50%,
    100% {
        left: 150%;
    }
}

.partner-content {
    max-width: 60%;
    z-index: 2;
}

.partner-label {
    text-transform: uppercase;
    color: var(--text-muted);
    font-size: 0.9rem;
    letter-spacing: 0.2em;
    margin-bottom: 1rem;
}

.partner-title {
    font-family: var(--font-heading);
    font-size: 2.2rem;
    color: #fff;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.partner-desc {
    font-size: 1.1rem;
    color: var(--text-muted);
    line-height: 1.6;
}

.partner-visual {
    display: flex;
    justify-content: center;
    align-items: center;
}

.x5-logo-styled {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border: 2px solid rgba(255, 255, 255, 0.1);
    padding: 1.5rem 3rem;
    border-radius: 1rem;
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(10px);
    transition: all 0.4s ease;
}

.partner-card:hover .x5-logo-styled {
    border-color: var(--accent-color);
    background: rgba(255, 215, 0, 0.05);
    transform: scale(1.05);
}

.x5-text {
    font-family: 'Unbounded', sans-serif;
    font-size: 4rem;
    font-weight: 800;
    color: #fff;
    line-height: 1;
    letter-spacing: -2px;
}

.group-text {
    font-family: 'Inter', sans-serif;
    font-size: 1.2rem;
    font-weight: 400;
    letter-spacing: 0.4em;
    color: var(--text-muted);
    margin-top: 5px;
}

@media (max-width: 768px) {
    .partner-card {
        flex-direction: column;
        padding: 2rem;
        text-align: center;
    }

    .partner-card::before {
        width: 100%;
        height: 4px;
    }

    .partner-content {
        max-width: 100%;
        margin-bottom: 2rem;
    }

    .partner-title {
        font-size: 1.5rem;
        /* Reduced from 1.8rem */
        line-height: 1.2;
    }

    .x5-text {
        font-size: 2.5rem;
    }

    .partner-desc {
        font-size: 0.9rem !important;
    }
}

/* Production Features Grid */
.production-features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto 2rem auto;
    /* Changed from 4rem to 2rem to match gap */
    padding: 0 5%;
}

.prod-feature-card {
    /* Glassmorphism Card Style (Matching Bento Grid) */
    background: linear-gradient(145deg, rgba(20, 20, 20, 0.9), rgba(10, 10, 10, 0.95));
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 1.5rem;
    padding: 2rem;
    text-align: center;
    transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
    position: relative;
    overflow: hidden;
}

.prod-feature-card:hover {
    transform: translateY(-4px);
    border-color: rgba(255, 255, 255, 0.2);
    box-shadow:
        0 8px 30px rgba(0, 0, 0, 0.5),
        0 0 15px rgba(255, 215, 0, 0.05),
        inset 0 0 20px rgba(255, 255, 255, 0.02);
}

.feature-icon {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 64px;
    height: 64px;
    background: rgba(255, 215, 0, 0.1);
    border-radius: 50%;
    margin-bottom: 1.5rem;
    color: var(--accent-color);
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.1);
}

.feature-icon svg {
    width: 32px;
    height: 32px;
}

.prod-feature-card h3 {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    color: #fff;
    margin-bottom: 1rem;
    letter-spacing: 0.05em;
}

.prod-feature-card p {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.6;
}

.marquee-wrapper {
    width: 100%;
    overflow: hidden;
    position: relative;
    padding: 1rem 0;
    /* Mask/Gradient edges to fade out */
    mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
    -webkit-mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
}

.marquee-track {
    display: flex;
    width: max-content;
    animation: scroll 40s linear infinite;
    /* GPU acceleration for smooth animation */
    will-change: transform;
    transform: translateZ(0);
}

/* Hover to pause for detailed view - Desktop Only */
@media (hover: hover) {
    .marquee-track:hover {
        animation-play-state: paused;
    }
}

.marquee-item {
    flex: 0 0 auto;
    width: 450px;
    /* Large, generous width */
    height: 300px;
    margin-right: 2rem;
    /* Gap replacement */
    border-radius: 1.5rem;
    overflow: hidden;
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.marquee-item:hover {
    transform: scale(1.02);
    border-color: var(--accent-color);
    box-shadow: 0 15px 50px rgba(255, 215, 0, 0.15);
    z-index: 2;
    cursor: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='32' height='32' viewBox='0 0 32 32' style='font-size: 24px'><text y='28'>✨</text></svg>"), auto;
}

.marquee-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(100%) contrast(110%);
    transition: filter 0.5s ease, transform 0.5s ease;
}

.marquee-item:hover img {
    filter: grayscale(0%) contrast(100%);
    transform: scale(1.05);
}

@keyframes scroll {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

@media (max-width: 768px) {
    .marquee-item {
        width: 300px;
        height: 200px;
        margin-right: 1rem;
    }

    .production-section {
        padding: 4rem 0;
    }

    .production-features-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    /* Keep auto-scroll on mobile with slower speed */
    .marquee-track {
        animation: scroll 60s linear infinite;
    }

    /* Simpler hover effect on mobile */
    .marquee-item img {
        filter: none;
    }
}

/* Utility */
.mb-3 {
    margin-bottom: 3rem;
}

/* --- Footer --- */
.footer {
    background: linear-gradient(180deg, #050505 0%, #0a0a0a 100%);
    padding: 4rem 5% 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr repeat(3, 1fr);
    gap: 3rem;
}

.footer-brand-col {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.footer-branding {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.footer-logo {
    font-family: 'Inter', 'Helvetica Neue', Arial, sans-serif;
    font-size: 1.8rem;
    display: flex;
    align-items: baseline;
    line-height: 1;
    margin-bottom: -2px;
}

.footer-subtext {
    font-family: monospace;
    font-size: 0.55rem;
    line-height: 1.3;
    color: var(--text-muted);
    margin-top: 0;
    margin-left: 2px;
    text-transform: lowercase;
    opacity: 0.8;
}

.footer-subtext div {
    line-height: 1.3;
}

.footer-description {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.6;
    margin-top: 0.5rem;
}

.footer-legal-info {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    font-size: 0.75rem;
    color: var(--text-muted);
    opacity: 0.6;
    margin-top: 0.5rem;
}

.footer-column {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.footer-column h4 {
    font-family: var(--font-heading);
    font-size: 0.9rem;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 0.5rem;
}

.footer-column a {
    text-decoration: none;
    color: var(--text-muted);
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.footer-column a:hover {
    color: var(--accent-color);
    text-shadow: 0 0 10px var(--accent-glow);
}

.footer-address {
    font-size: 0.9rem;
    color: var(--text-muted);
}

.footer-bottom {
    max-width: 1200px;
    margin: 3rem auto 0;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-bottom-left {
    display: flex;
    align-items: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.footer-bottom-left span {
    font-size: 0.85rem;
    color: var(--text-muted);
    opacity: 0.7;
}

.privacy-link {
    font-size: 0.85rem;
    color: var(--text-muted);
    text-decoration: none;
    opacity: 0.7;
    transition: all 0.3s ease;
}

.privacy-link:hover {
    color: var(--accent-color);
    opacity: 1;
}

.footer-developer {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.7rem;
    opacity: 0.35;
    transition: opacity 0.3s ease;
}

.footer-developer:hover {
    opacity: 0.7;
}

.footer-developer span {
    color: var(--text-muted);
}

.developer-link {
    color: var(--text-muted);
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
}

.developer-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--accent-color);
    transition: width 0.3s ease;
}

.developer-link:hover {
    color: var(--accent-color);
}

.developer-link:hover::after {
    width: 100%;
}

/* Footer Responsive */
@media (max-width: 768px) {
    .footer-container {
        grid-template-columns: 1fr 1fr;
        gap: 2rem;
    }

    .footer-brand-col {
        grid-column: span 2;
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
        gap: 1.5rem;
    }

    .footer-bottom-left {
        flex-direction: column;
        gap: 0.5rem;
    }
}

@media (max-width: 480px) {
    .footer-container {
        grid-template-columns: 1fr;
    }

    .footer-brand-col {
        grid-column: span 1;
    }
}

/* ========================================
   MOBILE OPTIMIZATIONS
   ======================================== */

@media (max-width: 767px) {

    /* --- Header Mobile --- */
    .header {
        padding: 1rem 0;
    }

    .branding .logo {
        font-size: 1.4rem;
    }

    .subtext {
        font-size: 0.45rem;
    }

    /* Hide pill-container on mobile (it's empty without nav) */
    .pill-container {
        display: none;
    }

    /* --- Hero Mobile --- */
    .video-section {
        height: auto;
        min-height: 80vh;
        padding: 80px 1rem 2rem;
    }

    .video-wrapper {
        width: 100%;
        max-width: none;
    }

    .video {
        transform: scale(1.1);
    }

    .catalog-btn {
        padding: 0.9rem 2rem;
        font-size: 0.95rem;
    }

    /* --- Bento Grid Mobile --- */
    .info-section {
        padding: 2rem 1rem;
    }

    .bento-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .bento-item {
        grid-column: span 1 !important;
        grid-row: span 1 !important;
    }

    .area-headline h1 {
        font-size: 1.5rem;
        line-height: 1.3;
    }

    .huge-text {
        font-size: 2rem;
    }

    /* --- Products Grid Mobile --- */
    .products-section {
        padding: 3rem 1rem;
    }

    .products-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .product-card {
        height: 280px;
    }

    .product-card h3 {
        font-size: 1.1rem;
    }

    /* --- Production Section Mobile --- */
    .production-section {
        padding: 3rem 1rem;
    }

    .production-features-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    /* --- Contacts Mobile --- */
    .contacts-section {
        padding: 3rem 1rem;
    }

    .contacts-grid {
        grid-template-columns: 1fr;
    }

    .info-bar {
        flex-direction: column;
        gap: 1rem;
        padding: 1.5rem;
    }

    .vertical-divider {
        display: none;
    }

    .info-group {
        text-align: center;
    }

    .cta-title {
        font-size: 1.3rem;
    }

    /* --- Section Titles Mobile --- */
    .section-title {
        font-size: 1.5rem;
        margin-bottom: 2rem;
    }
}

/* Extra small devices */
@media (max-width: 400px) {
    .branding .logo {
        font-size: 1.2rem;
    }

    .area-headline h1 {
        font-size: 1.2rem;
    }

    .catalog-btn {
        padding: 0.8rem 1.5rem;
        font-size: 0.85rem;
    }
}

/* Footer Industry Label */
.footer-industry {
    display: block;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-muted);
    opacity: 0.6;
    margin-bottom: 0.3rem;
}

/* Partner Title Mobile Fix */
.partner-title {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    line-height: 1.2;
    margin-bottom: 0.5rem;
    color: #fff;
    word-break: normal;
    overflow-wrap: normal;
}

@media (max-width: 480px) {
    .partner-title {
        font-size: 1.0rem;
        /* Adjusted for mobile */
    }
}

@media (max-width: 380px) {
    .partner-title {
        font-size: 0.85rem;
        /* Fit long words on tiny screens */
    }
}