:root {
    /* Color Palette */
    --primary-green: #009a47;
    --dark-bg: #050505;
    --dark-section: #0a0a0a;
    --text-white: #ffffff;
    --volt-yellow: #d4e02a;
    --champagne-light: #ffefd1;

    /* Typography */
    --font-heading: 'Zilla Slab', serif;
    --font-body: 'IBM Plex Sans', sans-serif;
    
/*     Logo animation */
    --slide-width: 250px;
    --gap-size: 3px; /* Change this to whatever your gap is */
    --num-images: 10;
}


/* ================================================================
   LOCAL FONTS (INDUSTRIAL LOAD SPEED)
   ================================================================ */

/* ZILLA SLAB (Headings) */
@font-face {
    font-family: 'Zilla Slab';
    src: url('assets/fonts/Zilla_Slab/ZillaSlab-SemiBold.ttf') format('truetype');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}




/* IBM PLEX SANS (Body & Specs) */
@font-face {
    font-family: 'IBM Plex Sans';
    src: url('assets/fonts/IBM_Plex_Sans/static/IBMPlexSans-SemiBold.ttf') format('truetype');
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}





* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
/* Add this to the very top of your CSS file, outside all media queries */
*, *::before, *::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--dark-bg);
    color: var(--text-white);
    font-family: var(--font-body);
    font-weight: 600; /* Body font weight adjusted to 600 */
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

/* Adds 120px of space to the top and bottom of every section */
section {
    padding-top: 120px;
    padding-bottom: 120px;
}

/* Optional: If you want even more space on larger screens */
@media (min-width: 1200px) {
    section {
        padding-top: 160px;
        padding-bottom: 160px;
    }
}

/* --- 1. GENERAL BUTTONS (Does not affect Navbar anymore) --- */
.btn, .card-link {
    display: inline-block;
    padding: 14px 30px;
    background-color: rgba(255, 255, 255, 0.05);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 4px;
    text-decoration: none;
    transition: all 0.4s ease;
}

.btn:hover, .card-link:hover {
    filter: brightness(1.6);
    transform: translateY(-5px);
}




  /*INDUSTRIAL POWER-NAV (Complete & Unified)
   ================================================================ */

.navbar {
    display: flex;
    justify-content: space-between; /* Logo on left, everything else on right */
    align-items: center;
    padding: 0 8%;
    height: 80px;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    box-sizing: border-box;

 /* Navy-charcoal tint with frosted glass */
    background: rgba(16, 18, 16, 0.60); /* RGB for #101210 is (16, 18, 16) */
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);


    /* The "Ground" line of the site */
    border-bottom: 3px solid var(--primary-green);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
    transition: all 0.3s ease;
}

/* 1. LOGO: Pinned to the Left */
.logo {
    display: flex;
    align-items: center;
    flex-shrink: 0;
    transition: transform 0.3s ease;
}

.logo:hover {
    transform: scale(1.02); /* Subtle 'breathing' effect on hover */
}

.logo-img {
    /* Increased from 42px to 55px for a more 'established' presence */
    height: 55px;
    width: auto;
    display: block;

    /* THE SUBTLE WHITE GLOW */
    /* This creates a soft 'halo' that makes the green pop off the dark glass */
    filter: drop-shadow(0 0 12px rgba(255, 255, 255, 0.25));
}

/* 2. NAVIGATION: Pushed to the Right next to button */
.navbar nav {
    display: flex;
    align-items: center;
    margin-left: auto; /* This pushes the links to the right */
}

.navbar nav a {
    color: #ffffff;
    text-decoration: none;
    margin-left: 30px;
    font-size: 13px;
    font-family: var(--font-body);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
}

.navbar nav a:hover {
    color: var(--primary-green);
    text-shadow: 0 0 10px rgba(0, 154, 71, 0.3);
}

/* 3. CONTACT BUTTON: Electric Volt (Synced with Footer) */
.nav-contact-btn {
    margin-left: 40px; /* Space between menu and CTA */
    display: flex;
    align-items: center;
    justify-content: center;

    background-color: var(--primary-green) !important;
    color: #ffffff !important;
    padding: 10px 24px;
    border-radius: 4px;
    font-weight: 800;
    text-decoration: none;
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 1.5px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    white-space: nowrap;
}

/* THE POWER-UP */
.nav-contact-btn:hover {
    background-color: #ffefd1 !important; /* Volt Yellow-Green */
    color:#004d23 !important;           /* Deep contrast text */

    box-shadow: 0 0 25px rgba(212, 224, 42, 0.7);
    transform: translateY(-3px) scale(1.03);
    border-color: #ffffff;
    filter: brightness(1.1);
}

/* 4. TRAVELING LIGHT (The Spark) */
.nav-scan-line {
    position: absolute;
    bottom: -2px; /* Sits perfectly on the green border */
    left: 0;
    width: 100%;
    height: 2px;
    overflow: hidden;
    pointer-events: none;
}

.scan-dot {
    position: absolute;
    top: 0;
    width: 400px;
    height: 100%;
    /* Comet effect: White head to Green tail */
    background: linear-gradient(to right, transparent, var(--primary-green), #ffffff);
    box-shadow: 0 0 15px var(--primary-green);
    animation: dataScan 5s linear infinite;
    opacity: 0.8;
}

@keyframes dataScan {
    0% { left: -150px; }
    100% { left: 100%; }
}





/* ================================================================
   HERO SECTION -
/* --- 1. THE HERO MASTER --- */
.hero-container {
    position: relative;
    width: 100%;
    min-height: 100dvh;
/*     height: calc(100vh - 80px); */
    height: auto;
    margin-top: -4vw;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #000;
    overflow: hidden;
}

/* --- 2. THE BACKGROUNDS (Layer 1 & 2) --- */

.hero-overlay {
    position: absolute;
    inset: 0;
    /* RADIAL ELLIPSE:
       - 0% to 35%: Crystal clear center.
       - 100%: Deep 92% black (rgba 0.92) in the far corners.
    */
    background: radial-gradient(
        ellipse at center,
        rgba(255,255,255,0.1) 0%,  /* 1. THE GLOW: Change this for brightness */
        rgba(0,0,0,0) 50%,           /* 2. THE WIDTH: Change this for how far the light reaches */
        rgba(0,0,0,0.92) 100%
    );
    z-index: 2;
    pointer-events: none;
}

/* Optional: If the background feels too bright compared to the new dark corners */
.hero-bg-image {
    position: absolute;
    inset: 0;
    background-image: url('assets/hero-bg-texture.jpg');
    background-size: cover;
    background-position: center;
    opacity: 0.5; /* Slightly lowered to match the darker mood */
    filter: contrast(1.1) brightness(0.8); /* Darkened slightly */
    z-index: 1;
}
/* --- 3. THE MAIN WRAPPER (Layer 10 - Solid) --- */
.hero-main-wrapper {
    position: relative;
    z-index: 10; /* Forces content in front of the gradient */
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 80px;
    width: 95%;
    max-width: 1400px;
}

/* --- 4. VIDEO (No Transparency) --- */
#video-wrapper {
    flex: 0 0 auto;
    position: relative;
    aspect-ratio: 1 / 1;
    width: 100%; /* Or your desired size */
    height: 80vh;
    max-width: 1280px; 
    margin: 0 auto;
}
#fallback-image {
    width: 100%;
    height: auto;
    display: block;
    position: relative; /* Acts as the "base" for the container size */
    z-index: 1;
}

.state-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: auto;
    z-index: 2;
    transition: opacity 0.1s linear;
    object-position: center 25% !important;
    object-fit: cover;
    /* This makes the transition feel like a seamless morph */
/*     transition: opacity 0.1s linear;  */
}



/* --- 5. TEXT (Solid Zilla Slab) --- */
.hero-content {
    flex: 0 1 500px;
    background: transparent !important;
}

.hero-title {
    font-family: var(--font-heading), serif !important;
    font-weight: 700;
    font-size: clamp(2.5rem, 5vw, 4rem);
    color: #ffffff !important; /* Solid White */
    line-height: 0.95;
    text-transform: uppercase;
    margin-bottom: 20px;
}

.hero-title .year {
    display: block;
    font-size: 1.4rem;
    font-weight: 600;
    color: #009a47 !important; /* Solid Green */
    letter-spacing: 2px;
    margin-top: 10px;
}

/* 2. THE DESCRIPTION (Switching to IBM Plex Sans) */
.hero-desc {
    font-family: var(--font-body);
    font-weight: 400;
    font-size: 1.15rem; /* Clean and legible */
    color: #ffffff;
    margin-bottom: 35px;
    line-height: 1.5;
    max-width: 500px;
}

.hero-btns {
    display: flex;
    gap: 20px;
    margin-top: 15px; 
    align-items: center;
/*     overflow: hidden; */
}

/* SHARED BASE STYLES */
.btn-primary-green,
.btn-secondary {
    display: inline-block;
    font-family: var(--font-body);
    color:white;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.85rem;
    padding: 16px 45px; /* Unified padding */
    border-radius: 4px;
    text-decoration: none;
    transition: all 0.4s ease;
    text-align: center;
    box-sizing: border-box; /* Ensures padding + border = total height */
}

/* PRIMARY GREEN */
.hero-container .btn-primary-green {
    background-color: #009a47;
    color: white !important;
    /* We add a transparent 3px border so the height matches the secondary exactly */
    border: 3px solid transparent;
    box-shadow: 0 4px 15px rgba(0, 154, 71, 0.3);
}

/* SECONDARY (Bigger Border Fix) */
.btn-secondary {
    background-color: rgba(0, 0, 0, 0.4);
    /* Fixed the double hashtag and made it solid */
    border: 3px solid #009a47 !important;
    color: #ffffff !important;
}

/* UNIFIED HOVER */
.hero-container
.btn-secondary:hover {
    background-color: #ffefd1 !important;
    color: #004d23 !important;
    /* Matching the hover border to the champagne glow */
    border-color: #ffffff !important;
    box-shadow: 0 0 30px rgba(255, 239, 209, 0.6) !important;
    transform: translateY(-5px) scale(1.08);
}

/* --- General Content Sections --- */
.info-section {
    padding: 100px 8%;
}

.bg-darker { background: var(--dark-section); }

.container {
    display: flex;
    align-items: center;
    gap: 80px;
    max-width: 1200px;
    margin: 0 auto;
}

.reverse { flex-direction: row-reverse; }

.info-text, .info-image { flex: 1; }

.info-image img {
    width: 100%;
    border-radius: 10px;
    box-shadow: 0 15px 30px rgba(0,0,0,0.5);
}

.accent-title {
    font-family: var(--font-heading);
    color: var(--primary-green);
    font-size: 2.8rem;
    margin-bottom: 25px;
}

.white-title {
    font-family: var(--font-heading);
    color: var(--text-white);
    font-size: 2.8rem;
    margin-bottom: 25px;
}

p {
    font-size: 1.15rem;
    margin-bottom: 30px;
}

/* --- Buttons --- */
.btn-primary {
    display: inline-block;
    background: var(--primary-green);
    color: white;
    padding: 16px 35px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 600;
    transition: 0.3s ease;
}

.btn-secondary {
    display: inline-block;
    border: 2px solid var(--primary-green);
    color: white;
/*     padding: 14px 33px; */
    border-radius: 4px;
    text-decoration: none;
    font-weight: 600;
    transition: 0.3s ease;
}

.btn-primary:hover, .btn-secondary:hover {
    filter: brightness(1.1);
    transform: translateY(-2px);
}

/* --- Global Layered Section Styles --- */
.layered-section {
    padding: 140px 0;
    background-color: #080808;
    background-image: radial-gradient(circle at 2px 2px, rgba(255,255,255,0.02) 1px, transparent 0);
    background-size: 40px 40px; /* Subtle industrial grid */
}

.layered-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 100px;
    align-items: center;
    padding: 0 5%;
}

/* --- The Mirror Logic --- */
/* Standard: Text Left (Order 1), Image Right (Order 2) */
.layered-content { order: 1; 
    text-align: justify;
    text-justify: inter-word;
/*     display: flex; */
    /*justify-content: center; */
    align-items: center;
    position: relative;
    
}
.layered-visual { order: 2; }

/* Flipped: Image Left (Order 1), Text Right (Order 2) */
.flipped .layered-visual { order: 1; }
.flipped .layered-content { order: 2; }

/* --- Visual Styling --- */
.image-frame {
    position: relative;
    z-index: 2;
}

.image-frame img {
    width: 100%;
    height: 500px;
    object-fit: cover;
    border-radius: 4px;
    filter: grayscale(15%) contrast(1.1);
}

/* Corner Accents */
.frame-accent-left, .frame-accent-right {
    position: absolute;
    width: 80px;
    height: 80px;
    z-index: -1;
}

.frame-accent-right {
    bottom: -15px; right: -15px;
    border-bottom: 5px solid var(--primary-green);
    border-right: 5px solid var(--primary-green);
}

.frame-accent-left {
    top: -15px; left: -15px;
    border-top: 5px solid var(--primary-green);
    border-left: 5px solid var(--primary-green);
}

/* --- Typography & Buttons --- */
.section-subtitle {
    display: block;
    color: var(--primary-green);
    text-transform: uppercase;
    letter-spacing: 3px;
    font-size: 0.85rem;
    font-weight: 700;
    margin-bottom: 15px;
}

.section-title {
    font-family: var(--font-heading); /* Zilla Slab */
    font-size: 3.5rem;
    line-height: 1.1;
    color: white;
    margin-bottom: 30px;
}

.text-green { color: var(--primary-green); }

.layered-content p {
    font-size: 1.15rem;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 40px;
    margin-left: 7px;
    margin-right: 7px;
}

/* Services List Styles */
.services-list {
    list-style: none;
    margin-bottom: 40px;
    margin-left: 25px;
}

.services-list li {
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 15px;
    padding-left: 25px;
    position: relative;
    font-weight: 500;
}

.services-list li::before {
    content: "→";
    position: absolute;
    left: 0;
    color: var(--primary-green);
    font-weight: 700;
}

/* --- Green Button Consistency --- */
.btn-primary-green:not(.hero-btns .btn-primary-green) {
    background-color: var(--primary-green);
    text-decoration: none;
    
    box-shadow: 0 4px 15px rgba(0, 154, 71, 0.3);
    position: relative;
    transform-origin: center;
    left: 18%;
}

.btn-primary-green:hover {
    /* THE COLOR SHIFT */
    background-color: #ffefd1 !important;

    /* THE TEXT: Dark Green for readability on the light background */
    color: #004d23 !important;

    /* THE GLOW: A champagne-tinted electrical aura */
    box-shadow: 0 0 30px rgba(255, 239, 209, 0.6) !important;

    /* THE MOTION */
    transform: translateY(-5px) scale(1.08);
    border-color: #ffffff !important;

    /* Resetting filters so the specific color shines through */
    filter: brightness(1) !important;
}


/* --- Location Section: Mirror Style --- */
.location-section {
    position: relative;
    width: 100%;
    min-height: 85vh;

    /* Background Image - Path to your location asset */
    background: url('assets/location-bg.jpg') no-repeat center center/cover;
    background-attachment: fixed;

    /* Layout: Card pinned to the LEFT */
    display: flex;
    align-items: center;
    justify-content: flex-start;
    padding: 80px 10%;
    margin-bottom: 80px;
    overflow: hidden;
}

/* Floating Dark Card - Left Side */
.location-card {
    max-width: 520px;
    padding: 60px;

    /* Glassmorphism settings */
    background: rgba(5, 5, 5, 0.7);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);

    border: 1px solid rgba(255, 255, 255, 0.1);
    /* Border-right for symmetry against the Experience section */
    border-right: 5px solid var(--primary-green);
    border-radius: 4px;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.8);
}

.location-card h2 {
    font-family: var(--font-heading);
    font-size: 2.8rem;
    color: var(--text-white);
    margin-bottom: 25px;
    line-height: 1.1;
}

.location-card p {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 20px;
}

.location-invitation {
    font-weight: 500;
    font-style: italic;
    color: rgba(255, 255, 255, 0.7) !important;
    margin-bottom: 40px !important;
}



/* --- Brands Section: Custom Warehouse Background --- */

/* 1. THE POWER HUB (Top of your CSS file) */
:root {
    --num-unique-brands: 10;
    --slide-width: 250px;
    --gap-size: 60px;
    --full-unit: calc(var(--slide-width) + var(--gap-size));
}



.brands-section {
    position: relative;
    padding-top: 80px;    /* <--- ADD THIS to push away from Location */
    padding-bottom: 180px; /* <--- UPDATE THIS for more space before Footer */
    /* Using your provided image */
    margin-bottom: 180px
    background: url('assets/brands-bg.jpg') no-repeat center center;
    background-size: cover;
    background-attachment: fixed; /* Maintains the industrial depth */
    overflow: hidden;
    display: flex;
    
    flex-direction: column;
    align-items: center;
    max-width: 2100;
    margin-left: auto;
    margin-right: auto;
}

/* Dark Tint Overlay to ensure logos are legible over the beams */
.brands-overlay {
    position: absolute;
    inset: 0;
    background: rgba(5, 5, 5, 0.7); /* Adjust opacity if you want the photo brighter */
    z-index: 1;
    pointer-events: none;
    /* Subtle flicker animation to simulate industrial lights turning on */
    animation: turnOnLights 2s steps(1) forwards;
}

.brands-container {
    position: relative;
    z-index: 2;
    width: 100%;
}

.brands-title {
    text-align: center;
    color: var(--text-white);
    font-family: var(--font-heading); /* Zilla Slab */
    font-size: 2.5rem;
    margin-bottom: 50px;
    letter-spacing: 1px;
}

/* --- Infinite Scroll Track (7 Brand Recalculation) --- */
.logo-slider {
    width: 100%;
    overflow: hidden;
    position: relative;
}

/* --- INFINITE SCROLL TRACK --- */
.logo-track {
    display: flex;
    /* This automatically does the math for you! */
    width: calc(var(--full-unit) * (var(--num-unique-brands) * 2));
    gap: var(--gap-size);
    animation: scroll-brands 45s linear infinite;
}

.slide {
    width: 250px;
    height: 120px;
    flex-shrink: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    background: transparent; /* CLEAN: No background plate */
    border: none;
    transition: all 0.4s ease;
}

.slide img {
    max-width: 180px;
    max-height: 80px;

    /* ORIGINAL COLORS: No filters by default */
    filter: none;

    /* Slightly less than 1.0 opacity so they blend into the dark photo */
    opacity: 0.8;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    image-rendering: -webkit-optimize-contrast;
}

/* --- THE WHITE GLOW HOVER --- */

.slide:hover img {
    opacity: 1;
    transform: scale(1.15);

    /* THE EQUALIZER: Boosts the actual pixels of the logo */
    filter:
        brightness(1.2)
        contrast(1.1)
        drop-shadow(0 0 20px rgba(255, 255, 255, 0.8));
}

/* --- LOGIC ANIMATIONS --- */

@keyframes scroll-brands {
    0% { transform: translateX(0); }
    100% { transform: translateX(calc(-1 * var(--num-unique-brands) * var(--full-unit))); }
}

@keyframes turnOnLights {
    0% { opacity: 1; background: rgba(0,0,0,1); } /* Start pitch black */
    10% { background: rgba(5, 5, 5, 0.7); }
    15% { background: rgba(5, 5, 5, 0.9); } /* Flicker */
    20% { background: rgba(5, 5, 5, 0.7); }
    100% { background: rgba(5, 5, 5, 0.7); }
}

/* Pause scroll when looking at a brand */
.logo-track:hover {
    animation-play-state: paused;
}





/* ================================================================
   INDUSTRIAL POWER-IN FOOTER (Complete)
   ================================================================ */

.main-footer {
    position: relative;
    padding: 80px 0 0; /* Top padding reduced slightly to pull it closer */
    color: white;
    overflow: hidden;

    /* THE TOP "LIVE WIRE": Divider from the rest of the site */
    border-top: 3px solid;
    border-image: linear-gradient(to right, transparent, var(--primary-green), #d4e02a, var(--primary-green), transparent) 1;

    /* THE GREEN GLOW: Deep emerald base with top-down energy */
    background:
        radial-gradient(at 50% 0%, rgba(0, 154, 71, 0.7) 0%, transparent 75%),
        radial-gradient(at 100% 100%, rgba(212, 224, 42, 0.1) 0%, transparent 50%),
        #001a0d; /* Deep forest green solid base */
}

/* 1. THE GRID: Logo, Menu, and Cards */
.footer-grid {
    position: relative;
    z-index: 2;
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.2fr 0.8fr 1.2fr;
    gap: 60px;
    padding: 0 5% 40px; /* Reduced bottom padding to tighten flow */
}

/* Col 1: Brand & Socials */
.footer-col-brand .footer-logo {
    max-width: 240px; /* Your big logo preference */
    filter: brightness(0) invert(1);
    margin-bottom: 25px;
}

.footer-social {
    display: flex;
    gap: 20px;
}

.footer-social img {
    width: 22px;
    filter: brightness(0) invert(1);
    opacity: 0.6;
    transition: 0.3s ease;
}

.footer-social img:hover {
    opacity: 1;
    transform: translateY(-4px);
    filter: drop-shadow(0 0 8px var(--primary-green));
}

/* Col 2: Navigation Links */
.footer-links a {
    display: block;
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    font-size: 0.95rem;
    margin-bottom: 12px;
    transition: 0.3s;
}

.footer-links a:hover {
    color: #d4e02a;
    padding-left: 8px;
}

/* Col 3: Contact Cards (All Electrified) */
.footer-col-contact {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.mini-card {
    display: flex;
    align-items: center;
    gap: 15px;
    background: rgba(0, 0, 0, 0.3);
    padding: 18px;
    border-radius: 4px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    /* THE GREEN LIGHT LINE */
    border-left: 4px solid var(--primary-green);
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    cursor: pointer;
}

/* POWER UP: Card goes lighter on hover */
.mini-card:hover {
    background: rgba(255, 255, 255, 0.12);
    border-left-color: #d4e02a; /* Switches to yellow-green glow */
    transform: translateX(-5px);
}

.mini-info span {
    display: block;
    font-size: 0.65rem;
    text-transform: uppercase;
    color: #d4e02a;
    letter-spacing: 1.5px;
    font-weight: 700;
}

.mini-info a, .mini-info p {
    color: white;
    font-size: 0.95rem;
    text-decoration: none;
}

/* 2. THE LEGAL BOTTOM: Centered & Tightened */
.footer-divider {
    height: 1px;
    background: linear-gradient(to right, transparent, rgba(255,255,255,0.1), transparent);
    max-width: 1200px;
    margin: 0 auto;
}

.footer-bottom {
    padding: 25px 0 80px; /* Tight top, generous bottom padding */
    text-align: center;
    width: 100%;
    position: relative;
    z-index: 2;
}

.footer-bottom p {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.7);
    letter-spacing: 2.5px;
    text-transform: uppercase;
    margin: 0;
    text-shadow: 0 0 10px rgba(0, 154, 71, 0.2);
}

/* --- CONTACT BUTTON: PERSISTENT POWER-UP --- */

/* THE BASE */
.nav-contact-btn {
    margin-left: 40px;
    display: flex;  !important; /* Keeps the button shape */
    align-items: center;
    justify-content: center;
    background-color: var(--primary-green) !important;
    color: #ffffff !important;
    padding: 10px 24px;
    border-radius: 4px;
    font-weight: 800;
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 1.5px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    white-space: nowrap;
    position: relative;
    z-index: 100; /* Ensures it stays above the header background */
}

/* THE ACTIVE/HOVER STATE (The Power-Up) */
.nav-contact-btn:hover,
.nav-contact-btn.active {
    background-color: #ffffff !important; /* Pure White as requested */
    color: #004d23 !important;           /* Deep Green for contrast */

    /* Volt Yellow Glow */
    box-shadow: 0 0 25px rgba(212, 224, 42, 0.7);

    /* The Lift (We use a smaller lift to avoid clipping) */
    transform: translateY(-2px) scale(1.02);

    border-color: #ffffff;
    display: flex !important; /* Forces it to stay a button */
    opacity: 1; /* !important;    Guarantees visibility */
    z-index: 1000;
}



/* --- THE NAV-LINK VOLT OVERRIDE --- */

/* 1. The Active Text: Now in Volt Yellow */
header nav a.nav-link.active {
    color: #d4e02a !important; /* Volt Yellow */
    font-weight: 800 !important;
    opacity: 1 !important;
    border-top: none !important; /* Removes any line from the top */
    position: relative;
    text-shadow: 0 0 8px rgba(212, 224, 42, 0.3); /* Subtle glow on text */
}



/* 3. Safety Clean-up: Ensures no pseudo-elements appear above */
header nav a.nav-link.active::before {
    display: none !important;
}




/* Hero RESPONSIVENESS */
@media screen and (max-width: 1250px) {
    .brands-title {
        padding: 9px;
    }
    /* 1. The Main Wrapper: Resetting the layout */
    .hero-container {
        --sidem: 4vw;
/*         height: auto !important; */
        min-height: 108vh;           /* Ensures it still covers the screen */
        padding-bottom: 50px;        /* Adds space so buttons don't touch the very bottom */
        overflow: visible !important;
        margin-top: -9vw;
    }
    .hero-main-wrapper {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: flex-start; /* Aligns items to the top to avoid stretching */
        padding-top: 20px;
        gap: 0; /* Removes the gap between flex children */
    }

    /* 2. The Video Engine Box: Now the Square Container */
    #video-engine-box {
        width: 72vw;
        max-width: 650px;       /* Caps the height/width so it's not too tall */
        aspect-ratio: 1 / 1;    /* Forces it to stay square */
/*         margin: 0 auto 34px;    /* 10px bottom margin to keep it close to the title */ */
        padding: 0;             /* Ensures no internal padding is creating space */
        padding-top: 4vw;
        height: auto;           /* Overrides any fixed heights from desktop */
        overflow: hidden;
    }

    /* 3. Ensuring the wrapper/video fills the box perfectly */
    #video-wrapper {
        width: 100% !important;
        height: 100% !important;
        margin: 0 !important;
    }

    /* 4. Closing the gap from the content side */
    .hero-content {
        margin-top: 0;          /* Pulls the text block up */
        padding-top: 0;
        text-align: center;
    }

    .hero-title {
        margin-top: 0;          /* Removes default browser space above the H1 */
        margin-bottom: 5px;     /* Brings the description closer to the title */
        line-height: 1.1;       /* Tighter line height for stacked layouts */
    }

    .hero-desc {
        margin-top: 0;          /* No gap between title and description */
        margin-left: --sidem;
        margin-right: --sidem;
        padding: 0 15px;
/*         justify-content-text: center; */
        text-align: justify;
        text-justify: inter-word;
        align-items: center;
        position: relative;
        margin: auto;
        
    }
    .hero-btns {
        display: flex;
        flex-wrap: wrap;         /* Allows buttons to stack if they run out of room */
        justify-content: center;
        gap: 15px;               /* Space between the two buttons */
        width: 100%;
        max-width: 100%;
        padding: 0 20px;         /* The left/right padding you requested */
        box-sizing: border-box;  /* Ensures padding doesn't push the width past 100% */
    }
}

/* ================================================================
   FOOTER RESPONSIVENESS
   ================================================================ */
@media (max-width: 600px) {
    .footer-grid { grid-template-columns: 1fr; }
    .navbar nav { display: none; } /* Consider adding a hamburger menu here */
}



@media (max-width: 1068px) {
    /* Full stack: Everything in 1 column */
    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 50px;
    }

    .footer-col-brand {
        grid-column: span 1;
        flex-direction: column;
        align-items: center;
        text-align: center;
        margin-bottom: 20px;
    }
    
    .footer-col-brand .footer-logo {
        margin: 0 auto 25px;
    }
    .footer-heading {
        justify-content: center;
        font-size: 1.8em;
        padding-bottom: 2vh;
    }
    
    .footer-social {
        justify-content: center;
    }
    .footer-links {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .footer-links a {
        font-size: 1.1rem; /* Slightly larger for easier tapping on mobile */
        margin-bottom: 15px;
    }

    .footer-col-contact {
        align-items: center;
    }

    .mini-card {
        width: 100%;
        max-width: 400px; /* Prevents cards from getting too wide */
        justify-content: center;
        text-align: left; /* Keep text left-aligned inside the centered card for readability */
    }

    .footer-bottom {
        padding: 20px 5% 60px;
    }

    .footer-bottom p {
        letter-spacing: 1.5px; /* Tighter for small screens */
        font-size: 0.7rem;
    }
}

/* ================================================================
   INDUSTRIAL MOBILE NAVIGATION
   ================================================================ */

/* 1. THE TOGGLE ICON (Hamburger) */
.menu-toggle {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 30px; /*7 4 vw*/
    height: 21px;
    cursor: pointer;
    z-index: 2000;
    transition: transform 0.3s ease;
    pointer-events: none;
    visibility: hidden;
}

.bar {
    width: 100%;
    height: 3px;
    background-color: #ffffff;
    border-radius: 2px;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}


/* Ensure links are visible when active */
.nav-links.active a {
    opacity: 1 !important; /* Force visibility */
/*     transform: translateY(0) !important; */
    transition-delay: 0.1s; /* Shorter delay for testing */
}
.menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100dvh;
    background: rgba(0, 0, 0, 0.5); /* Dimmed background */
    backdrop-filter: blur(4px);
    z-index: 999; /* Just below the nav-links (9999) */
    
    /* Initially hidden */
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease;
}

/* Show when menu is active */
body.menu-open .menu-overlay {
    opacity: 1;
    pointer-events: auto;
}
.nav-hidden {
    visibility: visible; /*To show up on desktop*/
    pointer-events: auto;
}
/* THE HIDDEN STATE (Triggered by JS) */
.navbar.nav-hidden {
    /* Moves the header up by its own height */
    transform: translateY(-100%);
}


/* Mobile: Center for UX */
@media (max-width: 968px) {
    .location-section {
        justify-content: center;
        padding: 40px 20px;
    }
    .btn-primary-green.btn-location {
/*         left: -10%; */
        left: 7% !important;
        
    }
}
/* --- Responsive Layout --- */
@media (max-width: 968px) {
    .layered-container {
        grid-template-columns: 1fr;
        gap: 60px;
    }
    .layered-content, .layered-visual { 
        /*order: unset !important; */
        
    }
    /* Flipped: Image Left (Order 1), Text Right (Order 2) */
    .flipped .layered-visual { order: 2; }
    .flipped .layered-content { order: 1; }
}

/* 2. THE MOBILE MENU CONTAINER */
@media (max-width: 968px) {
    .navbar {
        padding: 0 5%;
        height: 70px;
    }
    .logo-img {
        height: 35px;
    }
    .blur-on {
        pointer-events: none;
        visibility: visible;
        opacity: 1;
    }

    .nav-contact-btn {
        margin-left: auto;
        padding: 8px 16px;
        font-size: 0.75rem;
    }
    .menu-toggle {
/*         display: flex; */
        pointer-events: auto;
        visibility: visible;
        z-index: 2999;
    }
    /* 5. ICON ANIMATION (X Transformation) */

    .menu-toggle.is-active .bar:nth-child(1) {
        transform: translateY(9px) rotate(45deg);
        background-color: var(--primary-green);
    }

    .menu-toggle.is-active .bar:nth-child(2) {
        opacity: 0;
        transform: translateX(20px);
    }

    .menu-toggle.is-active .bar:nth-child(3) {
        transform: translateY(-9px) rotate(-45deg);
        background-color: var(--primary-green);
    }

    .is-active {
        visibility: visible;
        pointer-events: auto;
        
    }
    /* THE CONTAINER (The "PopupPanel") */
    .nav-links {
        /* Remove display: none; */
        display: flex !important; /* Keep it as a flex container always */
        position: fixed;
        top: 0;
        right: 0;
        width: 70%; 
        height: 100vh;
        background: rgba(5, 5, 5, 0.98);
        z-index: 1999;
        
        flex-direction: column !important; 
        align-items: center;
/*         justify-content: flex-start; */
        padding-top: 12vh;
        padding-bottom: 12vh;
        padding-right: 5vw;
        justify-content: space-evenly;
        align-items: center;
        gap: 20px;

        /* THE STARTING STATE (Hidden off-screen to the right) */
        transform: translateX(100%); 
        transition: transform 0.5s cubic-bezier(0.77, 0, 0.175, 1);
        
        /* Optional: prevent interaction when closed */
        /*pointer-events: none; 
        visibility: visible;*/
    }

    /* THE ACTIVE STATE */
    .nav-links.active {
        transform: translateX(0); /* Slide into view */
        pointer-events: auto;
        visibility: visible;
    }

    /* THE LINKS STAGGER */
    .nav-links a {
        width: 80%;
        padding: 20px 0;
        text-align: center;
        text-decoration: none;
        font-size: 1.1rem;
        display: block;
        opacity: 0;
        
        border-bottom: 1px solid rgba(255,255,255,0.14);
        
        transform: translateY(20px);
        transition: all 0.4s ease;
    }

    .nav-links.active a {
        opacity: 1;
        transform: translateY(0);
        /* Staggered delay: like a Sequence in a Godot Tween */
        transition-delay: 0.3s; 
    }

}

/* 4k RESPONSIVENESS */
/* Targeting Ultra-Wide Screens */
@media (min-width: 2560px) {
    :root {
        --gap-size: 360px; /* Larger gap for huge screens */
    }
  .brands-carousel {
    /* Scale up the logos or increase the gap */
  }
  .logo-track {
    gap: var(--gap-size); 
      
}
  
  .slide {
    height: 400px; /* Make logos slightly larger so they don't look like ants */
  }
}
/* Specifically target mobile phones in landscape mode */
@media screen and (max-width: 950px) and (orientation: landscape) {
    .hero-containner{
        margin-top: 4vw;
    }
    .hero-main-wrapper {
        display: flex;
        flex-direction: row;      /* Go back to side-by-side! */
        align-items: center;
        width: 100%;
        max-width: 100vw;
        overflow: hidden;
        padding: 20px;
        gap: 20px;
        margin: auto;
    }

    #video-engine-box {
        width: 30vw;             /* Make video small so text fits next to it */
        max-width: 200px;
        aspect-ratio: 1 / 1;
        margin: 0;
    }
    
    .hero-content { 
        flex: 1;       /* Take up remaining space */
        min-width: 0;  /* "The Magic Fix": Allows flex items to shrink below content size */
    }
    
    .hero-title {
        font-size: 1.4rem;       /* Shrink text so it doesn't overflow */
    }

    .hero-desc {
        display: none;           /* Pro-tip: Hide description in landscape to save space */
    }
    
    .hero-btns {
        gap: 8px;
        margin-top: 20px;
        margin-left: 10vw;
        margin-right:auto;
        padding: 0;
        justify-content: flex-start;
    }
    .btn-primary-green, 
    .btn-secondary {
        /* 1. Scale down the font */
        font-size: 0.85rem;      
        
        /* 2. Tighten the 'air' inside the button */
        padding: 0.5em 1.2em;    
        
        /* 3. Kill any fixed widths from the portrait/desktop view */
        min-width: auto;         
        width: auto;             
        
        /* 4. Ensure they stay on one line if possible */
        white-space: nowrap;     
    }
    .menu-toggle {
        margin-right: 5vw;
    }
    /* 1. THE CONTAINER (The "ScrollContainer") */
    .nav-links {
        
        padding-top: 16vh; 
        padding-bottom: 5vh;
        
        /* Ensure the menu scrolls if the links overflow the short screen */
        overflow-y: auto; 
        justify-content: flex-start; /* Switch from 'evenly' to start to allow scrolling */
        gap: 5px; /* Tighter separation */
        height: 100dvh;
        box-sizing: border-box;
    }

    /* 2. THE LINKS (The "Buttons") */
    .nav-links a {
        padding: 10px 0;    /* Reduce vertical 'air' inside buttons */
        font-size: 1rem;    /* Scale down text */
        width: 90%;         /* Slightly wider for easier horizontal tapping */
        
        /* Ensure separators aren't too bulky */
        border-bottom: 1px solid rgba(255,255,255,0.14);
    }

    /* 3. THE CONTACT BUTTON (Landscape Tweaks) */
    .nav-links .nav-contact-btn {
        margin-top: 10px !important;
        padding: 12px !important;
        width: 70% !important;
        font-size: 0.9rem !important;
    }
    
    .layered-container {
        /* 1. THE LAYOUT */
        display: grid;
        grid-template-columns: 1fr 1fr; /* Keep the 2-column VBox/HBox mix */
        
        /* 2. THE HEIGHT FIX */
        /* Use 100dvh to fill the visible screen exactly */
        height: 100dvh; 
        width: 100%;
        
        /* 3. THE "MARGINCONTAINER" INSET */
        /* Using padding + border-box keeps the container 100% tall 
           but squishes the 'grid cells' inside away from the edges. */
        box-sizing: border-box;
        padding: 7dvh 5vw; /* 7% top/bottom gap, 5% side gap */
        
        /* Remove the problematic margins from the original CSS */
        margin: 0; 
        
        /* 4. GRID REFINEMENT */
        /* Reduce the gap—60px is a lot of vertical 'real estate' in landscape */
        gap: 20px; 
        
        /* Centers the grid items if they don't fill the whole 100dvh */
        align-content: center;
    }
    .layout-content {
/*         height: 50vw; */
/*         font-size: 0.3rem; */
    }
    .layout-content section-title {
/*         font-size: 0.5rem; */
    }
    .layout-content p {
        font-size: 0.2rem;
    }
    .flipped .layered-visual { order: 1; }
    .flipped .layered-content { order: 2; }
}





