/* -------------------------------------------------------------------------- */
/* Fonts                                                                      */
/* -------------------------------------------------------------------------- */

@font-face {
    font-family: 'Open Sans';
    src: url('../assets/fonts/056-OpSns-normal-300-latin.woff2') format('woff2');
    font-weight: 300;
    font-style: normal;
}
@font-face {
    font-family: 'Open Sans';
    src: url('../assets/fonts/064-OpSns-normal-400-latin.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
}
@font-face {
    font-family: 'Open Sans';
    src: url('../assets/fonts/080-OpSns-normal-600-latin.woff2') format('woff2');
    font-weight: 600;
    font-style: normal;
}
@font-face {
    font-family: 'Open Sans';
    src: url('../assets/fonts/088-OpSns-normal-700-latin.woff2') format('woff2');
    font-weight: 700;
    font-style: normal;
}
@font-face {
    font-family: 'Open Sans';
    src: url('../assets/fonts/048-OpSns-italic-800-latin.woff2') format('woff2');
    font-weight: 800;
    font-style: italic;
}

:root {
    /* Color Palette (Default: Original Light) */
    --bg-primary: #F3F1EC;
    --bg-secondary: #15161A;
    --text-primary: #15161A;
    --text-secondary: #F3F1EC;
    --accent: #c09d2a;
    --accent-deep: #a88720;
    --text-muted: #3C434B;
    --text-muted-alt: #8C8A84;
    --hover-bg: #15161A;
    --hover-text: #c09d2a;

    /* Typography */
    --font-display: 'Open Sans', sans-serif;
    --font-body: 'Open Sans', sans-serif;
    --font-mono: 'Open Sans', sans-serif;
    --font-nav: 'Open Sans', sans-serif;
    --font-hero: 'Open Sans', sans-serif;

    /* Spacing & Layout */
    --section-pad: 2rem 0;
    --border-thin: 1px solid var(--text-muted-alt);
}

/* -------------------------------------------------------------------------- */
/* Reset & Base Styles                                                        */
/* -------------------------------------------------------------------------- */

*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: initial; /* Handled by Lenis */
}

body {
    font-family: var(--font-body);
    color: var(--text-primary);
    background-color: var(--bg-primary);
    /* Subtle noise texture for concrete feel */
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)' opacity='0.05'/%3E%3C/svg%3E");
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: clip;
}

a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s ease;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Typography Utilities */
h1, h2, h3, .hero-title, .section-title {
    font-family: var(--font-display);
    text-transform: uppercase;
    font-weight: 800;
    line-height: 0.95;
    margin-bottom: 1rem;
}

.section-title {
    font-size: clamp(2rem, 7vw, 4.5rem); /* Adjusted for wider Open Sans */
    color: var(--text-primary);
    letter-spacing: -0.05em;
    line-height: 1.05;
}

/* Light theme: default text is dark ink */

/* Brutalist Outline Text (Pseudo-element approach for perfect alignment) */
.section-title.has-outline {
    position: relative;
    z-index: 1;
}

.section-title.has-outline::before {
    content: attr(data-text);
    position: absolute;
    left: -15px; /* Offset to the left */
    top: -15px;  /* Offset to the top */
    z-index: -1;
    color: transparent;
    -webkit-text-stroke: 2px var(--text-muted-alt);
    opacity: 0.4;
    pointer-events: none;
}

@media (max-width: 768px) {
    .section-title.has-outline::before {
        left: -8px;
        top: -8px;
    }
}

/* Background Engineering Grid */
.bg-grid {
    position: absolute;
    inset: 0;
    background-size: 50px 50px;
    background-image: 
        linear-gradient(to right, rgba(140, 138, 132, 0.1) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(140, 138, 132, 0.1) 1px, transparent 1px);
    z-index: 0;
    pointer-events: none;
}

.spec-mono {
    font-family: var(--font-mono);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

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

/* Common Layout Utilities */
.section-divider {
    width: 100%;
    height: 1px;
    background-color: var(--text-muted-alt);
    opacity: 0.3;
}

section {
    padding: var(--section-pad);
    position: relative;
}

/* -------------------------------------------------------------------------- */
/* Components                                                                 */
/* -------------------------------------------------------------------------- */

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1rem 2rem;
    font-family: var(--font-mono);
    font-size: 1rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border: 3px solid var(--text-primary); /* Thick border */
    transition: all 0.2s ease;
    border-radius: 0;
    box-shadow: 6px 6px 0 var(--accent); /* Hard brutalist shadow */
    position: relative;
    z-index: 10;
}

.btn-primary {
    background-color: var(--text-primary);
    color: var(--bg-primary);
}

.btn-primary:hover {
    background-color: var(--accent);
    color: var(--text-primary);
    box-shadow: 6px 6px 0 var(--text-primary);
    transform: translate(-2px, -2px);
}

/* Hero-overlay btn-outline: white border/text since it sits on dark overlay */
.hero .btn-outline {
    background-color: transparent;
    color: var(--bg-primary);
    border: 3px solid var(--bg-primary);
    box-shadow: 6px 6px 0 var(--accent);
}

.hero .btn-outline:hover {
    background-color: var(--accent);
    color: var(--text-primary);
    border-color: var(--accent);
    box-shadow: 6px 6px 0 var(--bg-primary);
    transform: translate(-2px, -2px);
}

/* Standard btn-outline for light backgrounds */
.btn-outline {
    background-color: transparent;
    color: var(--text-primary);
    border: 3px solid var(--text-primary);
    box-shadow: 6px 6px 0 var(--accent);
}

.btn-outline:hover {
    background-color: var(--accent);
    color: var(--text-primary);
    border-color: var(--accent);
    box-shadow: 6px 6px 0 var(--text-primary);
    transform: translate(-2px, -2px);
}

/* Magnetic Button Wrapper */
.magnetic-btn {
    position: relative;
    z-index: 1;
}

/* -------------------------------------------------------------------------- */
/* 3.1 Navigation                                                             */
/* -------------------------------------------------------------------------- */

.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 130px;
    z-index: 100;
    background-color: transparent;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), height 0.3s ease, background-color 0.3s ease, border-bottom 0.3s ease;
}

.site-header.scrolled {
    height: 105px;
    background-color: var(--text-primary);
    border-bottom: none;
    box-shadow: 0 8px 40px rgba(0,0,0,0.55);
}

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

.brand-logo {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.brand-logo svg {
    display: block;
}

/* PNG logo sizing */
.brand-logo img.site-logo {
    height: 114px;
    width: auto;
    display: block;
    object-fit: contain;
    transition: opacity 0.3s ease, transform 0.3s ease;
    filter: drop-shadow(0 2px 8px rgba(0,0,0,0.18));
}

.brand-logo img.site-logo:hover {
    opacity: 0.88;
    transform: scale(1.03);
}

.site-header.scrolled .brand-logo img.site-logo {
    height: 95px;
}

.main-nav .nav-link {
    color: var(--text-secondary);
    font-family: var(--font-nav);
    font-size: 0.95rem;
    padding: 0.5rem 0.25rem;
    margin: 0 1.2rem;
    border: none;
    background: transparent;
    position: relative;
    letter-spacing: 0.02em;
    font-weight: 400;
    transition: color 0.25s ease;
}

/* Animated underline bar — slides in from left on hover */
.main-nav .nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--accent);
    transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.main-nav .nav-link:hover,
.main-nav .nav-link.active {
    color: var(--accent);
    background: transparent;
    border: none;
    box-shadow: none;
    transform: none;
}

.main-nav .nav-link:hover::after,
.main-nav .nav-link.active::after {
    width: 100%;
}

/* Contact Pill CTA */
.nav-btn-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.6rem 1.75rem;
    border: 1px solid #fff;
    border-radius: 50px;
    color: #fff !important;
    font-family: var(--font-nav);
    font-size: 0.85rem;
    letter-spacing: 0.05em;
    font-weight: 500;
    text-transform: uppercase;
    transition: background 0.3s ease, color 0.3s ease, transform 0.3s ease;
    background: transparent;
}

.nav-btn-pill:hover {
    background: #fff;
    color: #000 !important;
    transform: translateY(-2px);
}

.site-header.scrolled .nav-btn-pill {
    border-color: var(--text-secondary);
    color: var(--text-secondary) !important;
}

.site-header.scrolled .nav-btn-pill:hover {
    background: var(--text-secondary);
    color: var(--bg-primary) !important;
}

.nav-dropdown {
    position: relative;
    display: flex;
    align-items: center;
}

.desktop-dropdown-menu {
    position: absolute;
    top: calc(100% + 15px);
    left: 0.5rem;
    background-color: var(--text-primary);
    border: 3px solid var(--text-muted);
    min-width: 280px;
    display: flex;
    flex-direction: column;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.2s ease;
    z-index: 100;
    box-shadow: 8px 8px 0 rgba(0,0,0,0.5);
}

.desktop-dropdown-menu.mega-menu {
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-width: 600px;
    left: 50%;
    transform: translate(-50%, 10px);
}

.nav-dropdown:hover .desktop-dropdown-menu.mega-menu {
    transform: translate(-50%, 0);
}

.nav-dropdown:hover .desktop-dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.desktop-dropdown-link {
    font-family: var(--font-mono);
    font-size: 0.85rem;
    color: var(--text-secondary);
    padding: 1rem 1.5rem;
    border-bottom: 1px solid var(--text-muted);
    transition: all 0.2s ease;
    text-transform: uppercase;
}

.desktop-dropdown-link:last-child {
    border-bottom: none;
}

.desktop-dropdown-link:hover {
    background-color: var(--accent);
    color: var(--text-primary);
    padding-left: 2rem;
}

.lang-toggle {
    border-left: 2px solid var(--text-muted);
    padding-left: 1.5rem !important;
}

/* -------------------------------------------------------------------------- */
/* Mobile Menu Overlay                                                        */
/* -------------------------------------------------------------------------- */

/* Mobile Drawer Backdrop */
.mobile-drawer-backdrop {
    position: fixed;
    top: 130px; /* Below header */
    left: 0;
    width: 100%;
    height: calc(100vh - 130px);
    background-color: rgba(0, 0, 0, 0.4); /* Softer backdrop */
    backdrop-filter: blur(3px);
    z-index: 98;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s ease;
}

.mobile-drawer-backdrop.is-active {
    opacity: 1;
    visibility: visible;
}

/* Mobile Drawer */
.mobile-drawer {
    position: fixed;
    top: 130px; /* Below header */
    right: 0;
    width: 75%; /* EXACTLY 75% OF SCREEN AS REQUESTED */
    max-width: none;
    height: calc(100vh - 130px);
    background-color: var(--bg-primary); /* Light, minimal background */
    z-index: 99;
    overflow-y: auto;
    overflow-x: hidden;
    display: block;
    transform: translateX(100%);
    transition: transform 0.6s cubic-bezier(0.85, 0, 0.15, 1);
    border-left: none; /* Minimal, no border */
    box-shadow: -5px 0 20px rgba(0,0,0,0.05); /* Very soft shadow */
}

.mobile-drawer.is-active {
    transform: translateX(0);
}

.drawer-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: transparent;
    border: none;
    color: var(--accent);
    font-family: var(--font-mono);
    font-size: 1rem;
    cursor: pointer;
    z-index: 100;
}

.mobile-menu-inner {
    position: relative;
    z-index: 2;
    width: 100%;
    padding: 2rem 2rem;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-end; /* Align right */
    text-align: right; /* Align right */
    min-height: 100%;
}

.mobile-nav {
    display: flex;
    flex-direction: column;
    align-items: flex-end; /* Align right */
    gap: 1.5rem;
}

.mobile-nav-link {
    font-family: var(--font-display);
    font-size: 1.8rem; /* Normal size */
    color: var(--text-primary); /* Dark text on light bg */
    line-height: 1;
    text-transform: uppercase;
    text-align: right;
    position: relative;
    z-index: 1;
    transition: all 0.2s ease;
    border-left: 0px solid var(--accent);
}

.mobile-nav-link:active {
    color: var(--accent);
}

button.mobile-nav-link {
    background: transparent;
    border: none;
    border-left: 0px solid var(--accent); /* Override default button border */
    cursor: pointer;
    width: 100%;
}

.mobile-dropdown-menu {
    display: none;
    flex-direction: column;
    padding-left: 1.5rem;
    border-left: 2px solid rgba(0,0,0,0.1); /* Minimal border */
    margin-top: 1rem;
    gap: 1rem;
}

.mobile-dropdown-menu.is-open {
    display: flex;
}

.mobile-sub-link {
    font-family: var(--font-display);
    font-size: clamp(1.2rem, 5vw, 1.8rem);
    color: var(--text-muted);
    text-transform: uppercase;
    transition: all 0.2s ease;
}

.mobile-sub-link:active {
    color: var(--accent);
    padding-left: 1rem;
}

.mobile-menu-footer {
    margin-top: 4rem;
}

.mobile-actions {
    display: flex;
    justify-content: flex-end; /* Align right */
    gap: 1rem;
    margin-bottom: 2rem;
}

.mobile-action-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.85rem 1.5rem;
    font-family: var(--font-mono);
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    background-color: transparent;
    color: var(--text-primary);
    border: 2px solid rgba(0,0,0,0.1);
    transition: all 0.2s ease;
}

.mobile-action-btn.highlight {
    background-color: var(--text-primary);
    color: var(--bg-primary);
    border-color: var(--text-primary);
}

.mobile-action-btn:active {
    transform: translateY(4px);
}

/* Custom Hamburger Toggle */
.mobile-menu-toggle {
    position: relative;
    width: 48px;
    height: 48px;
    background: transparent;
    border: none; /* Minimal */
    cursor: pointer;
    z-index: 101; /* Above mobile menu overlay */
    padding: 0;
}

.mobile-menu-toggle span {
    display: block;
    width: 28px; /* Slightly wider */
    height: 2px; /* Thinner minimal lines */
    background-color: var(--bg-primary); /* Light lines for dark header */
    position: absolute;
    left: 10px;
    transition: all 0.3s ease;
}

.mobile-menu-toggle span:nth-child(1) { top: 18px; }
.mobile-menu-toggle span:nth-child(2) { top: 28px; }

.mobile-menu-toggle.is-active span {
    background-color: var(--bg-primary); /* Keep it light since header is always above */
}

.mobile-menu-toggle.is-active span:nth-child(1) {
    transform: translateY(5px) rotate(45deg);
}
.mobile-menu-toggle.is-active span:nth-child(2) {
    transform: translateY(-5px) rotate(-45deg);
}

.lang-toggle {
    color: var(--text-muted-alt) !important;
}

.nav-phone {
    color: var(--text-secondary);
    margin-right: 2rem;
}

/* -------------------------------------------------------------------------- */
/* 3.2 Hero                                                                   */
/* -------------------------------------------------------------------------- */

.hero {
    width: 100%;
    height: 100vh;
    padding: 0;
    background-color: #000;
    color: var(--bg-primary);
    overflow: hidden;
    position: relative;
}

/* Deep vignette gradient overlay */
.hero-overlay-gradient {
    position: absolute;
    inset: 0;
    background: linear-gradient(to right, rgba(0,0,0,0.6) 0%, rgba(0,0,0,0.25) 45%, rgba(0,0,0,0) 100%),
                  linear-gradient(to top, rgba(0,0,0,0.3) 0%, rgba(0,0,0,0) 30%);
    z-index: 4;
    pointer-events: none;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.8s ease, visibility 0.8s ease;
}

.hero-bg.active {
    opacity: 1;
    visibility: visible;
}

.hero-img {
    width: 100%;
    height: 115%; /* Extra height for parallax */
    object-fit: cover;
    object-position: center;
}

/* New Clean Content Block */
.hero-content-clean {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    max-width: 1100px;
    z-index: 5;
    text-align: center;
    padding: 0 15px;
}

@media (max-width: 768px) {
    .hero-content-clean {
        left: 50%;
        top: 50%;
    }
}

.hero-eyebrow-clean {
    font-family: var(--font-nav);
    font-size: 0.95rem;
    font-weight: 500;
    color: #fff;
    letter-spacing: 0.15em;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
}

.hero-title-clean {
    font-family: var(--font-hero);
    font-size: clamp(2.5rem, 6vw, 4.2rem);
    font-weight: 300;
    color: #ffffff;
    line-height: 1.15;
    margin-bottom: 1.5rem;
    letter-spacing: -0.01em;
}

.hero-desc-clean {
    font-family: var(--font-hero);
    font-size: 1.15rem;
    font-weight: 300;
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.6;
    margin-bottom: 2.5rem;
    max-width: 850px;
    margin-left: auto;
    margin-right: auto;
}

/* White Pill Button */
.btn-pill-white {
    display: inline-flex;
    align-items: center;
    background: #ffffff;
    color: #000000;
    padding: 0.8rem 1.2rem 0.8rem 1.8rem;
    border-radius: 50px;
    font-family: var(--font-nav);
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-decoration: none;
}

.btn-pill-white:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255,255,255,0.15);
    color: #000;
}

.btn-pill-white .btn-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    margin-left: 12px;
}

/* Bottom UI Elements */
.hero-bottom-ui {
    position: absolute;
    bottom: 2rem;
    left: 4rem;
    right: 4rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 5;
}

@media (max-width: 768px) {
    .hero-bottom-ui {
        left: 2rem;
        right: 2rem;
        bottom: 1.5rem;
    }
}

.hero-carousel-indicator {
    display: flex;
    align-items: center;
    gap: 8px;
}

.carousel-pill {
    width: 40px;
    height: 3px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 4px;
    transition: background 0.3s ease, width 0.3s ease;
}

.carousel-pill.active {
    background: var(--accent);
}

.carousel-play-pause {
    background: #ffffff;
    border: none;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #000;
    margin-left: 8px;
    cursor: pointer;
    transition: transform 0.2s ease;
}

.carousel-play-pause:hover {
    transform: scale(1.1);
}

.scroll-chevron {
    color: #ffffff;
    opacity: 0.7;
    animation: bounce 2s infinite;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    transition: opacity 0.3s ease;
}

.scroll-chevron:hover {
    opacity: 1;
}

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

/* -------------------------------------------------------------------------- */
/* 3.3 Trust Strip                                                            */
/* -------------------------------------------------------------------------- */

.trust-strip {
    padding: 1.5rem 0;
    background-color: var(--text-primary);
    border-bottom: var(--border-thin);
    overflow: hidden;
    position: relative;
    color: var(--bg-primary);
}

.marquee-wrapper {
    display: flex;
    width: max-content;
}

.marquee-content {
    display: flex;
    align-items: center;
    padding-right: 4rem;
    animation: marquee 30s linear infinite;
}

.trust-strip:hover .marquee-content {
    animation-play-state: paused;
}

.marquee-content span.divider {
    width: 4px;
    height: 4px;
    background-color: var(--accent);
    margin: 0 2rem;
    display: inline-block;
}

@keyframes marquee {
    0% { transform: translateX(0); }
    100% { transform: translateX(-100%); }
}

/* -------------------------------------------------------------------------- */
/* 3.3.5 Pioneering Legacy & Equipment                                        */
/* -------------------------------------------------------------------------- */

.legacy-equipment {
    background-color: var(--bg-primary);
    padding: 6rem 0;
    position: relative;
    overflow: hidden;
}

.legacy-title {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    line-height: 0.9;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.equipment-grid {
    position: relative;
    z-index: 2;
}

.equip-card {
    position: relative;
    background: #ffffff;
    border: 2px solid var(--text-muted);
    padding: 2.5rem;
    height: 100%;
    transition: transform 0.3s ease, border-color 0.3s ease;
    overflow: hidden;
    box-shadow: 4px 4px 0 rgba(0,0,0,0.08);
}

.equip-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background-color: var(--accent);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}

.equip-card:hover {
    transform: translateY(-5px);
    border-color: var(--accent);
}

.equip-card:hover::before {
    transform: scaleX(1);
}

.equip-bg {
    position: absolute;
    bottom: -20px;
    right: -10px;
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 8rem;
    line-height: 1;
    color: rgba(0, 0, 0, 0.04);
    pointer-events: none;
    z-index: 0;
}

.equip-card > * {
    position: relative;
    z-index: 1;
}

/* -------------------------------------------------------------------------- */
/* 3.4 What We Do (Horizontal Scroller)                                       */
/* -------------------------------------------------------------------------- */

.services {
    background-color: var(--bg-primary);
    color: var(--text-primary);
    overflow: hidden;
}

.services .section-title {
    color: var(--text-primary);
}

.services-scroll-container {
    padding-top: 2rem;
    padding-bottom: 3rem;
}

.services-track {
    display: flex;
    gap: 2rem;
    padding: 0 5vw;
    width: max-content;
}

.service-card {
    width: 85vw;
    max-width: 450px; /* Slightly narrower to fit well */
    flex-shrink: 0;
    border: 3px solid var(--text-muted); /* Brutal border */
    background-color: #ffffff;
    box-shadow: 12px 12px 0 rgba(60, 67, 75, 0.15); /* Hard shadow */
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-card:hover {
    transform: translate(-5px, -5px);
    box-shadow: 17px 17px 0 var(--accent);
}

.card-img-wrap {
    width: 100%;
    height: 220px; /* Reduced from 300px so text isn't pushed off-screen */
    overflow: hidden;
    border-bottom: 1px solid var(--text-muted);
}

.card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

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

.card-content {
    padding: 1.5rem; /* Reduced padding */
    flex-grow: 1;
}

.card-head {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.spec-tag {
    color: var(--accent);
    font-size: 1rem;
}

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

.card-title {
    font-size: 1.6rem; /* Scaled down slightly */
    margin-bottom: 0.75rem;
    line-height: 1.1;
}

.card-desc {
    color: var(--text-muted-alt);
    font-size: 0.9rem;
    line-height: 1.4;
}

/* -------------------------------------------------------------------------- */
/* 3.4 Capabilities (Horizontal Scroller)                                     */
/* -------------------------------------------------------------------------- */

.services {
    background-color: var(--bg-primary);
    padding-top: 6rem;
    overflow-x: hidden;
    position: relative;
}

.services-header {
    margin-bottom: 2rem;
}

.services-scroll-container {
    width: 100vw;
    overflow: hidden;
    position: relative;
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.services-scroll-container::-webkit-scrollbar {
    display: none;
}

.services-track {
    display: flex;
    width: max-content;
    padding: 0 15px 4rem 15px;
    gap: 30px;
}

.service-card {
    width: 85vw;
    max-width: 500px;
    background-color: #ffffff;
    border: 3px solid var(--text-muted);
    display: flex;
    flex-direction: column;
    position: relative;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    flex-shrink: 0;
}

.service-card:hover {
    transform: translate(-5px, -5px);
    box-shadow: 17px 17px 0 var(--accent);
}

.card-img-wrap {
    width: 100%;
    height: 220px;
    overflow: hidden;
    border-bottom: 3px solid var(--text-muted);
}

.card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

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

.card-content {
    padding: 1.5rem;
    flex-grow: 1;
}

.card-head {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid rgba(0,0,0,0.12);
}

.spec-tag {
    color: var(--accent);
    font-size: 1rem;
}

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

.card-title {
    font-size: 1.6rem;
    margin-bottom: 0.75rem;
    line-height: 1.1;
    color: var(--text-primary);
}

.card-desc {
    color: var(--text-muted-alt);
    font-size: 1rem;
    line-height: 1.4;
}

/* Fallback for mobile if JS horizontal scroll isn't active */
@media (max-width: 991.98px) {
    .services-track {
        flex-direction: column;
        width: 100%;
        padding: 0 15px;
    }
    .service-card {
        width: 100%;
        max-width: none;
    }
}

/* -------------------------------------------------------------------------- */
/* 3.4.5 Service Directory — 8-Box Card Grid                                  */
/* -------------------------------------------------------------------------- */

.service-directory {
    background-color: var(--bg-primary);
    padding: 8rem 0;
    color: var(--text-primary);
}

/* 4-column grid, 2 rows */
.svc-card-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}

@media (max-width: 1199px) {
    .svc-card-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 991px) {
    .svc-card-grid { grid-template-columns: 1fr; }
}

/* Individual card */
.svc-card {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    height: 380px;
    overflow: hidden;
    cursor: pointer;
    background: #000;
}

/* Image area */
.svc-card-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.svc-card-img::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0.4) 50%, rgba(0,0,0,0) 100%);
    z-index: 2;
}

.svc-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    display: block;
}

.svc-card:hover .svc-card-img img {
    transform: scale(1.08);
}

/* Card body */
.svc-card-body {
    padding: 1.5rem;
    flex-grow: 0;
    position: relative;
    z-index: 3;
    background: transparent;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    transition: padding-bottom 0.4s ease;
}

.svc-card-num {
    display: block;
    font-size: 0.75rem;
    color: var(--accent-deep);
    letter-spacing: 0.12em;
    margin-bottom: 0.5rem;
}

.svc-card-title {
    font-family: var(--font-display);
    font-size: 1.35rem;
    font-weight: 700;
    text-transform: uppercase;
    color: #fff;
    line-height: 1.1;
    margin-bottom: 0.4rem;
    transition: color 0.25s ease;
}

.svc-card-sub {
    font-family: var(--font-body);
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 0.75rem;
    line-height: 1.4;
}

/* "VIEW SERVICES ↓" cue */
.svc-hover-cue {
    display: inline-block;
    font-size: 0.72rem;
    color: var(--accent);
    letter-spacing: 0.1em;
    border-bottom: 2px solid var(--accent);
    padding-bottom: 1px;
    align-self: flex-start;
    transition: opacity 0.3s ease, max-height 0.3s ease, margin 0.3s ease;
    max-height: 30px;
    overflow: hidden;
}

.svc-card:hover .svc-hover-cue,
.svc-card:focus-within .svc-hover-cue {
    opacity: 0;
    max-height: 0;
    margin-bottom: 0;
    border: none;
}

/* Dropdown panel — expands from bottom on hover */
.svc-dropdown {
    position: relative;
    width: 100%;
    background: transparent;
    padding: 0 1.5rem;
    border-top: none;
    z-index: 10;
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transition: max-height 0.5s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.4s ease, padding 0.4s ease;
}

.svc-card:hover .svc-dropdown,
.svc-card:focus-within .svc-dropdown {
    max-height: 250px;
    opacity: 1;
    padding-bottom: 1.5rem;
}

.svc-dropdown ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.svc-dropdown ul li {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-family: var(--font-mono);
    font-size: 0.82rem;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(255,255,255,0.2);
    transition: color 0.2s ease, padding-left 0.2s ease;
    cursor: pointer;
}

.svc-dropdown ul li:last-child {
    border-bottom: none;
}

.svc-dropdown ul li:hover {
    color: var(--accent);
    padding-left: 0.5rem;
}

.svc-dot {
    display: inline-block;
    width: 5px;
    height: 5px;
    background: var(--accent);
    flex-shrink: 0;
}

/* Hover accent line on card title */
.svc-card:hover .svc-card-title {
    color: #c09d2a;
}

.svc-card:hover .svc-hover-cue {
    color: var(--accent-deep);
    border-color: var(--accent-deep);
}



/* -------------------------------------------------------------------------- */
/* 3.5 Why Softcut (Value Grid) & 3.7 Who We Are                              */
/* -------------------------------------------------------------------------- */

.spec-list {
    border-top: var(--border-thin);
}

.spec-list-item {
    padding: 2rem 1.5rem 2rem 0;
    border-bottom: var(--border-thin);
}

.spec-list-item h4 {
    font-size: 1rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.spec-list-item p {
    color: var(--text-muted);
    font-size: 1rem;
}

.highlight {
    color: var(--accent-deep);
    font-weight: 500;
}

.mission-vision h3 {
    font-family: var(--font-mono);
    font-size: 1rem;
    color: var(--text-muted-alt);
    text-transform: uppercase;
}

.mission-vision .lead {
    font-size: 1.5rem;
    font-weight: 500;
    line-height: 1.4;
}

/* -------------------------------------------------------------------------- */
/* 3.6 Our Impact                                                             */
/* -------------------------------------------------------------------------- */

.impact-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    grid-auto-rows: 300px;
    gap: 1.5rem;
}

.impact-tile {
    position: relative;
    overflow: hidden;
    background-color: var(--text-primary);
}

.impact-tile img {
    width: 100%;
    height: 120%; /* For parallax */
    object-fit: cover;
}

.tile-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    background-color: var(--accent);
    color: var(--text-primary);
    padding: 0.5rem 1rem;
    font-size: 0.75rem;
    font-weight: 500;
}

/* Asymmetric Layout */
.tile-large { grid-column: span 8; grid-row: span 2; }
.tile-tall { grid-column: span 4; grid-row: span 2; }
.tile-wide { grid-column: span 7; grid-row: span 1; }
.tile-small { grid-column: span 5; grid-row: span 1; }

@media (max-width: 991.98px) {
    .tile-large, .tile-tall, .tile-wide, .tile-small {
        grid-column: span 12;
    }
    .tile-large { grid-row: span 2; }
    .tile-tall { grid-row: span 1; }
}

.logo-wall-title {
    color: var(--text-muted-alt);
}

.client-logo-placeholder {
    font-size: 1.25rem;
    color: var(--text-muted);
    opacity: 0.6;
    transition: opacity 0.3s ease;
}

.client-logo-placeholder:hover {
    opacity: 1;
}

/* -------------------------------------------------------------------------- */
/* 3.8 Sustainability                                                         */
/* -------------------------------------------------------------------------- */

.sustain-img-wrapper {
    border: 1px solid var(--text-muted-alt);
    padding: 1rem;
}

.spec-overlay {
    position: absolute;
    top: 2rem;
    right: -1rem;
    background-color: var(--text-primary);
    color: var(--bg-primary);
    padding: 0.5rem 1rem;
    border: 1px solid var(--accent);
    z-index: 2;
    font-size: 0.8rem;
}

/* -------------------------------------------------------------------------- */
/* 3.9 Testimonials                                                           */
/* -------------------------------------------------------------------------- */

.testimonials {
    background-color: var(--bg-primary);
    color: var(--text-primary);
}

.testimonial-card {
    padding: 2rem;
    border: 2px solid rgba(0, 0, 0, 0.12);
    background: #ffffff;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    box-shadow: 6px 6px 0 rgba(0,0,0,0.07);
}

.swiper-slide {
    height: auto; /* Allow Swiper slides to stretch */
}

.quote {
    font-size: 1.5rem;
    line-height: 1.4;
    margin-bottom: 2rem;
    color: var(--text-primary);
}

.author {
    color: var(--accent);
}

.swiper-pagination-bullet {
    background-color: var(--text-muted);
}

.swiper-pagination-bullet-active {
    background-color: var(--accent);
}

/* -------------------------------------------------------------------------- */
/* 3.10 Contact                                                               */
/* -------------------------------------------------------------------------- */

.contact {
    background-color: var(--text-primary);
    color: var(--bg-primary);
}

.contact-title {
    color: var(--bg-primary);
}

.contact-info a {
    color: var(--bg-primary);
}

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

.contact p {
    color: rgba(255,255,255,0.85);
}

/* Contact Section Buttons */
.contact .btn-primary {
    background-color: var(--bg-primary);
    color: var(--text-primary);
}

.contact .btn-primary:hover {
    background-color: var(--accent);
    color: var(--text-primary);
    box-shadow: 6px 6px 0 var(--bg-primary);
    transform: translate(-2px, -2px);
}

.contact .btn-outline {
    background-color: transparent;
    color: var(--bg-primary);
    border: 3px solid var(--bg-primary);
    box-shadow: 6px 6px 0 var(--accent);
}

.contact .btn-outline:hover {
    background-color: var(--accent);
    color: var(--text-primary);
    border-color: var(--accent);
    box-shadow: 6px 6px 0 var(--bg-primary);
    transform: translate(-2px, -2px);
}

.spec-form .form-group {
    margin-bottom: 2rem;
}

.spec-form label {
    display: block;
    color: var(--accent);
    margin-bottom: 0.5rem;
}

.spec-form input,
.spec-form select,
.spec-form textarea {
    width: 100%;
    background: transparent;
    border: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.35);
    color: var(--bg-primary);
    padding: 0.75rem 0;
    font-family: var(--font-body);
    font-size: 1rem;
    border-radius: 0;
}

.spec-form input:focus,
.spec-form select:focus,
.spec-form textarea:focus {
    outline: none;
    border-bottom-color: var(--accent);
}

.spec-form select {
    appearance: none;
    /* Arrow icon in light (off-white) for dark contact bg */
    background-image: url("data:image/svg+xml;charset=US-ASCII,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22292.4%22%20height%3D%22292.4%22%3E%3Cpath%20fill%3D%22%23F3F1EC%22%20d%3D%22M287%2069.4a17.6%2017.6%200%200%200-13-5.4H18.4c-5%200-9.3%201.8-12.9%205.4A17.6%2017.6%200%200%200%200%2082.2c0%205%201.8%209.3%205.4%2012.9l128%20127.9c3.6%203.6%207.8%205.4%2012.8%205.4s9.2-1.8%2012.8-5.4L287%2095c3.5-3.5%205.4-7.8%205.4-12.8%200-5-1.9-9.2-5.5-12.8z%22%2F%3E%3C%2Fsvg%3E");
    background-repeat: no-repeat;
    background-position: right 0.5rem center;
    background-size: 0.65rem auto;
}

/* -------------------------------------------------------------------------- */
/* 3.11 Footer                                                                */
/* -------------------------------------------------------------------------- */

.site-footer {
    background-color: var(--text-primary);
    color: var(--bg-primary);
    padding: 4rem 0 2rem;
    border-top: 4px solid var(--accent);
}

.footer-nav a {
    color: rgba(255,255,255,0.55);
    font-family: var(--font-mono);
    font-size: 0.85rem;
    text-transform: uppercase;
    margin-right: 1.5rem;
}

.footer-nav a:hover {
    color: var(--bg-primary);
}

.footer-social a {
    color: var(--bg-primary);
    font-family: var(--font-mono);
    border: 1px solid rgba(255,255,255,0.3);
    padding: 0.5rem;
    margin-left: 0.5rem;
    transition: all 0.3s ease;
}

.footer-social a:hover {
    border-color: var(--accent);
    color: var(--accent);
}

/* -------------------------------------------------------------------------- */
/* Brutalist Enhancements (Cursor, Hazard, HUD)                               */
/* -------------------------------------------------------------------------- */

/* Custom Crosshair Cursor */
.custom-cursor {
    position: fixed;
    top: 0;
    left: 0;
    width: 30px;
    height: 30px;
    border: 2px solid var(--accent);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
    z-index: 9999;
    mix-blend-mode: difference;
    transition: width 0.2s ease, height 0.2s ease, background-color 0.2s ease;
}

.custom-cursor::before,
.custom-cursor::after {
    content: '';
    position: absolute;
    background-color: var(--accent);
}

.custom-cursor::before {
    top: 50%;
    left: -10px;
    right: -10px;
    height: 2px;
    transform: translateY(-50%);
}

.custom-cursor::after {
    left: 50%;
    top: -10px;
    bottom: -10px;
    width: 2px;
    transform: translateX(-50%);
}

.custom-cursor.hovering {
    width: 50px;
    height: 50px;
    background-color: rgba(255, 196, 0, 0.2);
}

/* Hazard Stripes */
.hazard-stripe {
    background-image: repeating-linear-gradient(
        -45deg,
        var(--accent),
        var(--accent) 10px,
        var(--text-primary) 10px,
        var(--text-primary) 20px
    );
}

/* Light background hazard stripe variant */
.legacy-equipment .hazard-stripe,
.services .hazard-stripe,
.value-grid .hazard-stripe {
    background-image: repeating-linear-gradient(
        -45deg,
        var(--accent),
        var(--accent) 10px,
        var(--text-primary) 10px,
        var(--text-primary) 20px
    );
}

.hazard-divider {
    width: 100%;
    height: 8px;
    opacity: 1;
}

/* Hero HUD Overlay */
.hud-overlay {
    position: absolute;
    inset: 20px;
    pointer-events: none;
    z-index: 10;
    border: 2px solid rgba(255, 196, 0, 0.3);
}

.hud-corner {
    position: absolute;
    width: 30px;
    height: 30px;
    border-color: var(--accent);
    border-style: solid;
}

.hud-tl { top: 0; left: 0; border-width: 4px 0 0 4px; }
.hud-tr { top: 0; right: 0; border-width: 4px 4px 0 0; }
.hud-bl { bottom: 0; left: 0; border-width: 0 0 4px 4px; }
.hud-br { bottom: 0; right: 0; border-width: 0 4px 4px 0; }

.hud-text {
    position: absolute;
    color: var(--accent);
    font-family: var(--font-mono);
    font-size: 0.85rem;
    letter-spacing: 0.1em;
}

.hud-text.top-center {
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    background-color: transparent;
    padding: 0 10px;
}

.hud-text.bottom-right {
    bottom: 10px;
    right: 15px;
}

.hud-rec {
    display: inline-block;
    width: 10px;
    height: 10px;
    background-color: red;
    border-radius: 50%;
    margin-right: 5px;
    animation: blink 1s infinite;
}

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

/* -------------------------------------------------------------------------- */
/* Accessibility & Reduces Motion                                             */
/* -------------------------------------------------------------------------- */

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
    .cutting-line {
        display: none;
    }
    .hero-bg {
        opacity: 1;
        visibility: visible;
    }
}

/* -------------------------------------------------------------------------- */
/* Mobile & Tablet Specific Responsive Fixes                                  */
/* -------------------------------------------------------------------------- */

@media (max-width: 768px) {
    /* Reduce HUD clutter on small screens */
    .hud-corner { display: none; }
    .hud-text { font-size: 0.65rem; }
    
    .hero { aspect-ratio: 3 / 4; }
    
    /* Hero Panel Tweaks */
    .spec-panel {
        padding: 1.5rem;
        bottom: 2vh;
    }
    .hero-desc { font-size: 0.9rem; margin-bottom: 1.5rem; }
    .spec-stats {
        gap: 1rem;
        flex-wrap: wrap;
        margin-bottom: 1.5rem;
    }
    .stat-val { font-size: 1rem; }
    
    /* Demo stage resizing */
    .demo-stage { height: 250px; }
    .demo-hud { font-size: 0.65rem; }
    .demo-hud-left { left: 10px; top: 10px; }
    .demo-hud-right { right: 10px; top: 10px; }
    .pulley { width: 30px; height: 30px; }
    
    /* Ensure impact tiles don't overflow */
    .impact-tile { padding: 1.5rem; }
    
    /* Footer tweaks */
    .footer-col { margin-bottom: 2rem; }
}

@media (min-width: 769px) and (max-width: 1199px) {
    .container {
        max-width: 95%;
    }
}

@media (max-width: 991px) {
    .hero { 
        height: auto;
        aspect-ratio: 3 / 4; 
    }
}

/* Light theme: text-paper is now dark ink (inverted to match light BG) */
.text-paper { color: var(--text-primary) !important; }
.text-ink { color: var(--text-primary) !important; }

/* -------------------------------------------------------------------------- */
/* Light Theme Overrides — sections that inherit body light background        */
/* -------------------------------------------------------------------------- */

/* value-grid, who-we-are, sustainability all sit on light --bg-primary */
.value-grid,
.who-we-are,
.sustainability {
    background-color: var(--bg-primary);
    color: var(--text-primary);
}

.value-grid .section-title,
.who-we-are .section-title,
.sustainability .section-title {
    color: var(--text-primary);
}

/* Impact section on light bg */
.impact {
    background-color: var(--bg-primary);
    color: var(--text-primary);
}

.impact .section-title {
    color: var(--text-primary);
}

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

/* spec-mono text readable on light bg */
.hero-eyebrow.spec-mono,
.spec-mono.highlight,
.spec-list-item h4,
.spec-list-item p {
    color: var(--text-primary);
}

/* Service directory eyebrow on light bg */
.service-directory .hero-eyebrow {
    color: var(--accent-deep);
}

/* Spec-form input placeholders on dark contact bg */
.spec-form input::placeholder,
.spec-form textarea::placeholder {
    color: rgba(243, 241, 236, 0.5);
}

/* Who we are — mission/vision text */
.mission-vision .lead {
    color: var(--text-muted);
}

/* Contact section: spec-form label stays accent */
.contact .spec-form label {
    color: var(--accent);
}

/* Sustainability — caption tag on image */
.sustainability .spec-overlay span {
    color: var(--bg-primary);
}

/* Dir row: reset hover bg on light service-directory */
.service-directory .dir-row:hover {
    background-color: var(--text-primary);
}

.hud-corner {
    position: absolute;
    width: 30px;
    height: 30px;
    border-color: var(--accent);
    border-style: solid;
}

.hud-tl { top: 0; left: 0; border-width: 4px 0 0 4px; }
.hud-tr { top: 0; right: 0; border-width: 4px 4px 0 0; }
.hud-bl { bottom: 0; left: 0; border-width: 0 0 4px 4px; }
.hud-br { bottom: 0; right: 0; border-width: 0 4px 4px 0; }

.hud-text {
    position: absolute;
    color: var(--accent);
    font-family: var(--font-mono);
    font-size: 0.85rem;
    letter-spacing: 0.1em;
}

.hud-text.top-center {
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    background-color: transparent;
    padding: 0 10px;
}

.hud-text.bottom-right {
    bottom: 10px;
    right: 15px;
}

.hud-rec {
    display: inline-block;
    width: 10px;
    height: 10px;
    background-color: red;
    border-radius: 50%;
    margin-right: 5px;
    animation: blink 1s infinite;
}

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

/* -------------------------------------------------------------------------- */
/* Accessibility & Reduces Motion                                             */
/* -------------------------------------------------------------------------- */

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
    .cutting-line {
        display: none;
    }
    .hero-bg {
        opacity: 1;
        visibility: visible;
    }
}

/* -------------------------------------------------------------------------- */
/* Mobile & Tablet Specific Responsive Fixes                                  */
/* -------------------------------------------------------------------------- */

@media (max-width: 768px) {
    /* Reduce HUD clutter on small screens */
    .hud-corner { display: none; }
    .hud-text { font-size: 0.65rem; }
    
    .hero { aspect-ratio: 3 / 4; }
    
    /* Hero Panel Tweaks */
    .spec-panel {
        padding: 1.5rem;
        bottom: 2vh;
    }
    .hero-desc { font-size: 0.9rem; margin-bottom: 1.5rem; }
    .spec-stats {
        gap: 1rem;
        flex-wrap: wrap;
        margin-bottom: 1.5rem;
    }
    .stat-val { font-size: 1rem; }
    
    /* Demo stage resizing */
    .demo-stage { height: 250px; }
    .demo-hud { font-size: 0.65rem; }
    .demo-hud-left { left: 10px; top: 10px; }
    .demo-hud-right { right: 10px; top: 10px; }
    .pulley { width: 30px; height: 30px; }
    
    /* Ensure impact tiles don't overflow */
    .impact-tile { padding: 1.5rem; }
    
    /* Footer tweaks */
    .footer-col { margin-bottom: 2rem; }
}

@media (min-width: 769px) and (max-width: 1199px) {
    .container {
        max-width: 95%;
    }
}

@media (max-width: 991px) {
    .hero { 
        height: auto;
        aspect-ratio: 3 / 4; 
    }
}

/* Light theme: text-paper is now dark ink (inverted to match light BG) */
.text-paper { color: var(--text-primary) !important; }
.text-ink { color: var(--text-primary) !important; }

/* -------------------------------------------------------------------------- */
/* Light Theme Overrides — sections that inherit body light background        */
/* -------------------------------------------------------------------------- */

/* value-grid, who-we-are, sustainability all sit on light --bg-primary */
.value-grid,
.who-we-are,
.sustainability {
    background-color: var(--bg-primary);
    color: var(--text-primary);
}

.value-grid .section-title,
.who-we-are .section-title,
.sustainability .section-title {
    color: var(--text-primary);
}

/* Impact section on light bg */
.impact {
    background-color: var(--bg-primary);
    color: var(--text-primary);
}

.impact .section-title {
    color: var(--text-primary);
}

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

/* spec-mono text readable on light bg */
.hero-eyebrow.spec-mono,
.spec-mono.highlight,
.spec-list-item h4,
.spec-list-item p {
    color: var(--text-primary);
}

/* Service directory eyebrow on light bg */
.service-directory .hero-eyebrow {
    color: var(--accent-deep);
}

/* Spec-form input placeholders on dark contact bg */
.spec-form input::placeholder,
.spec-form textarea::placeholder {
    color: rgba(243, 241, 236, 0.5);
}

/* Who we are — mission/vision text */
.mission-vision .lead {
    color: var(--text-muted);
}

/* Contact section: spec-form label stays accent */
.contact .spec-form label {
    color: var(--accent);
}

/* Sustainability — caption tag on image */
.sustainability .spec-overlay span {
    color: var(--bg-primary);
}

/* Dir row: reset hover bg on light service-directory */
.service-directory .dir-row:hover {
    background-color: var(--text-primary);
    color: var(--bg-primary);
}

.service-directory .dir-row:hover .dir-title,
.service-directory .dir-row:hover .dir-num {
    color: var(--accent);
}

/* -------------------------------------------------------------------------- */
/* OUR CLIENTS SECTION                                                        */
/* -------------------------------------------------------------------------- */

@keyframes shake {
  0%   { transform: rotate(0deg) scale(1); }
  15%  { transform: rotate(-4deg) scale(1.05); }
  30%  { transform: rotate(4deg) scale(1.05); }
  45%  { transform: rotate(-3deg) scale(1.05); }
  60%  { transform: rotate(3deg) scale(1.05); }
  75%  { transform: rotate(-1deg) scale(1.02); }
  100% { transform: rotate(0deg) scale(1); }
}

.our-clients-section {
    padding: 2rem 0 5rem;
    position: relative;
}

.clients-header {
    max-width: 700px;
}

.clients-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-bottom: 4rem;
}

@media (max-width: 991px) {
    .clients-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 576px) {
    .clients-grid { grid-template-columns: 1fr 1fr; gap: 1rem; }
}

.client-card {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    padding: 2.5rem 2rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(200, 185, 150, 0.12);
    cursor: pointer;
    overflow: hidden;
    transition: background 0.3s ease, border-color 0.3s ease, transform 0.3s ease;
}

.client-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(196, 158, 76, 0.06) 0%, transparent 60%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.client-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent);
    transition: width 0.4s ease;
}

.client-card:hover {
    background: rgba(255, 255, 255, 0.07);
    border-color: rgba(196, 158, 76, 0.35);
    transform: translateY(-4px);
}

.client-card:hover::before { opacity: 1; }
.client-card:hover::after  { width: 100%; }

.client-card:hover .client-logo {
    animation: shake 0.5s ease-in-out;
}

.client-logo {
    max-height: 110px;
    max-width: 200px;
    width: 100%;
    object-fit: contain;
    transition: transform 0.3s ease;
    display: block;
}

.client-name {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    letter-spacing: 0.15em;
    color: var(--text-muted-alt);
    text-align: center;
    text-transform: uppercase;
    transition: color 0.3s ease;
}

.client-card:hover .client-name {
    color: var(--accent);
}

/* ---- Stat Bar ---- */
.clients-stat-bar {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    border: 1px solid rgba(200, 185, 150, 0.15);
    overflow: hidden;
}

.stat-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 2rem 1rem;
    gap: 0.4rem;
}

.stat-num {
    font-family: var(--font-display);
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 800;
    color: var(--accent);
    line-height: 1;
}

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

.stat-divider {
    width: 1px;
    height: 80px;
    background: rgba(200, 185, 150, 0.15);
    flex-shrink: 0;
}

@media (max-width: 576px) {
    .clients-stat-bar { flex-direction: column; }
    .stat-divider { width: 80px; height: 1px; }
}

/* -------------------------------------------------------------------------- */
/* CONTACT DRAWER (slide-in from right)                                       */
/* -------------------------------------------------------------------------- */

.contact-drawer-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    z-index: 1100;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease;
}

.contact-drawer-backdrop.is-visible {
    opacity: 1;
    pointer-events: all;
}

.contact-drawer {
    position: fixed;
    top: 0;
    right: 0;
    width: 100%;
    max-width: 560px;
    height: 100%;
    background: #f5f3ef;
    border-left: 3px solid #c49e4c;
    z-index: 1200;
    overflow-y: auto;
    transform: translateX(100%);
    transition: transform 0.5s cubic-bezier(0.77, 0, 0.175, 1);
    will-change: transform;
}

.contact-drawer.is-open {
    transform: translateX(0);
}

.contact-drawer-inner {
    padding: 3rem 2.5rem 4rem;
    display: flex;
    flex-direction: column;
    gap: 2rem;
    min-height: 100%;
}

.contact-drawer-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    padding-bottom: 1.5rem;
    border-bottom: 2px solid rgba(0,0,0,0.08);
}

.contact-drawer-title {
    font-family: var(--font-display);
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    font-weight: 800;
    line-height: 0.95;
    color: #111;
    text-transform: uppercase;
    margin: 0.5rem 0 0;
}

.contact-drawer-close {
    flex-shrink: 0;
    background: none;
    border: 2px solid #111;
    color: #111;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
    margin-top: 0.25rem;
}

.contact-drawer-close:hover {
    background: #c49e4c;
    border-color: #c49e4c;
    color: #fff;
}

/* Form inside drawer — override dark-theme spec-form styles */
.contact-drawer-form label.spec-mono {
    color: #c49e4c;
}

.contact-drawer-form input,
.contact-drawer-form textarea,
.contact-drawer-form select {
    background: transparent;
    border: none;
    border-bottom: 1px solid rgba(0,0,0,0.25);
    color: #111;
    padding: 0.6rem 0;
    width: 100%;
    font-size: 1rem;
    outline: none;
    transition: border-color 0.2s ease;
}

.contact-drawer-form input::placeholder,
.contact-drawer-form textarea::placeholder {
    color: rgba(0,0,0,0.35);
}

.contact-drawer-form input:focus,
.contact-drawer-form textarea:focus,
.contact-drawer-form select:focus {
    border-bottom-color: #c49e4c;
}

.contact-drawer-form select {
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%23111' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.5rem center;
    cursor: pointer;
}

.contact-drawer-form select option {
    background: #f5f3ef;
    color: #111;
}

.contact-drawer-form .btn-outline {
    border: 2px solid #111;
    color: #111;
    background: transparent;
    padding: 1rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    transition: background 0.3s ease, color 0.3s ease;
    margin-top: 1rem;
}

.contact-drawer-form .btn-outline:hover {
    background: #111;
    color: #f5f3ef;
}

/* Contact info card — at the bottom */
.contact-drawer-info {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
    padding: 1.5rem;
    background: #ece9e2;
    border-top: 2px solid rgba(0,0,0,0.08);
    margin-top: auto;
}

.drawer-info-row {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.drawer-info-row span.spec-mono {
    color: #c49e4c !important;
    font-size: 0.65rem !important;
    letter-spacing: 0.15em;
}

.drawer-info-row p {
    margin: 0;
    font-size: 0.88rem;
    color: #333;
    line-height: 1.6;
}

.drawer-info-row a {
    color: #333;
    text-decoration: none;
    transition: color 0.2s ease;
}

.drawer-info-row a:hover {
    color: #c49e4c;
}

.contact-drawer-form {
    display: flex;
    flex-direction: column;
    gap: 0;
}

@media (max-width: 600px) {
    .contact-drawer {
        max-width: 100%;
    }
    .contact-drawer-inner {
        padding: 2rem 1.5rem 3rem;
    }
}



/* ==========================================================================
   ENHANCED TESTIMONIALS
   ========================================================================== */
.testimonials {
    background-color: var(--bg-primary);
    color: var(--text-primary);
    padding: 4rem 0 2rem; /* Reduced padding */
    position: relative;
    overflow: hidden;
}

.testimonial-card {
    background-color: #ffffff;
    border: 2px solid rgba(0, 0, 0, 0.12);
    box-shadow: 6px 6px 0 rgba(0,0,0,0.07);
    padding: 2rem; /* Changed to 2rem as requested */
    border-radius: 8px;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.testimonial-card:hover {
    transform: translateY(-5px);
    border-color: var(--accent);
}

.testimonial-card .quote {
    font-size: 1.25rem;
    line-height: 1.6;
    color: var(--text-primary);
    margin-bottom: 2rem;
    position: relative;
}

.testimonial-card .quote::before {
    content: '"';
    font-size: 4rem;
    color: var(--accent);
    opacity: 0.2;
    position: absolute;
    top: -20px;
    left: -15px;
    font-family: var(--font-body);
}

.testimonial-card .author {
    border-top: 1px solid rgba(0,0,0,0.1);
    padding-top: 1.5rem;
    font-size: 0.9rem;
    letter-spacing: 0.1em;
    color: var(--accent);
    font-weight: 600;
}

.testimonial-swiper {
    padding-bottom: 2rem; /* Reduced padding */
}

.testimonial-swiper .swiper-pagination-bullet {
    background: var(--text-muted);
    opacity: 0.5;
}

.testimonial-swiper .swiper-pagination-bullet-active {
    background: var(--accent);
    opacity: 1;
}

/* ==========================================================================
   PERFECT FOOTER
   ========================================================================== */
.site-footer {
    background-color: #0a0a0a;
    color: var(--text-secondary);
    padding: 5rem 0 1rem; /* Reduced bottom padding from 2rem */
    border-top: 2px solid rgba(255,255,255,0.05);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1.5fr;
    gap: 3rem;
    margin-bottom: 1.5rem; /* Reduced from 4rem */
}

.footer-col.brand-col .site-logo {
    height: 90px;
    filter: drop-shadow(0 2px 8px rgba(0,0,0,0.5));
}

.footer-desc {
    font-size: 0.95rem;
    line-height: 1.7;
    color: var(--text-muted-alt);
    margin-top: 1rem;
    max-width: 300px;
}

.footer-social {
    display: flex;
    gap: 1rem;
}

.social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: rgba(255,255,255,0.05);
    color: var(--text-secondary); /* Fixed to light text */
    transition: background-color 0.3s ease, color 0.3s ease, transform 0.3s ease;
}

.social-link:hover {
      background-color: var(--accent) !important;
      color: #ffffff !important;
      transform: translateY(-8px) scale(1.2) !important;
}

.footer-heading {
    color: var(--text-secondary); /* Changed from primary to secondary for readability */
    font-size: 1rem; /* Slightly larger */
    letter-spacing: 0.15em;
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 0.75rem;
}

.footer-heading::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 30px;
    height: 2px;
    background-color: var(--accent);
}

[dir="rtl"] .footer-heading::after {
    left: auto;
    right: 0;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 0.75rem;
}

.footer-links a {
    color: var(--text-muted-alt);
    text-decoration: none;
    font-size: 0.95rem;
    transition: color 0.2s ease, padding-left 0.2s ease;
}

.footer-links a:hover {
    color: var(--accent);
    padding-left: 5px;
}

.footer-contact-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-contact-list li {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
    color: var(--text-muted-alt);
    font-size: 0.95rem;
    line-height: 1.5;
}

.footer-contact-list li a {
    color: var(--text-muted-alt);
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer-contact-list li a:hover {
    color: var(--accent);
}

.footer-contact-list svg {
    color: var(--accent);
    flex-shrink: 0;
}

.footer-divider {
    height: 1px;
    background-color: rgba(255,255,255,0.05);
    margin-bottom: 0.75rem; /* Reduced from 2rem */
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1.5rem;
}

.footer-certs {
    font-size: 0.8rem;
    color: var(--text-muted-alt);
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-certs .dot {
    color: rgba(255,255,255,0.2);
}

.footer-copyright {
    font-size: 0.8rem;
    color: var(--text-muted-alt);
    margin: 0;
}

.footer-copyright p {
    margin: 0;
}

@media (max-width: 991px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 575px) {
    .footer-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-bottom {
        flex-direction: column;
        justify-content: center;
        text-align: center;
    }
    
    .footer-certs {
        justify-content: center;
    }
}

/* ==========================================================================
   PREQUALIFIED SECTION
   ========================================================================== */
.prequalified-section {
    background-color: var(--bg-primary);
    padding: 6rem 0;
    position: relative;
}
.prequal-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    margin-top: 3rem;
}
.prequal-card {
    background-color: rgba(255,255,255,0.02);
    border: 1px solid rgba(255,255,255,0.05);
    padding: 4rem 2rem;
    border-radius: 4px;
    text-align: center;
    transition: transform 0.3s ease, border-color 0.3s ease, background-color 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
}
.prequal-card:hover {
    transform: translateY(-5px);
    border-color: var(--accent);
    background-color: rgba(255,255,255,0.05);
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}
.prequal-name {
    font-size: 1.4rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    color: var(--text-primary);
    text-transform: uppercase;
}

@media (max-width: 991px) {
    .prequal-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media (max-width: 575px) {
    .prequal-grid {
        grid-template-columns: 1fr;
    }
}

.feature-card h4 {
    transition: color 0.3s ease;
}

.feature-card:hover h4 {
    color: var(--accent) !important;
}

/* Marquee Styles */
.marquee-wrapper {
    overflow: hidden;
    white-space: nowrap;
    position: relative;
    width: 100%;
    padding: 2rem 0;
}
.marquee-wrapper::before, .marquee-wrapper::after {
    content: '';
    position: absolute;
    top: 0;
    width: 150px;
    height: 100%;
    z-index: 2;
    pointer-events: none;
}
.marquee-wrapper::before {
    left: 0;
    background: linear-gradient(to right, var(--bg-primary) 0%, transparent 100%);
}
.marquee-wrapper::after {
    right: 0;
    background: linear-gradient(to left, var(--bg-primary) 0%, transparent 100%);
}
.marquee-content {
    display: inline-flex;
    animation: scrollMarquee 30s linear infinite;
    gap: 3rem;
    align-items: center;
}
.marquee-content:hover {
    animation-play-state: paused;
}
.marquee-content .client-card {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 250px;
    background: rgba(255,255,255,0.02);
    border: 1px solid rgba(255,255,255,0.05);
    padding: 2rem;
    border-radius: 8px;
    transition: transform 0.3s ease;
}
.marquee-content .client-card:hover {
    transform: translateY(-5px);
    border-color: var(--accent);
}
@keyframes scrollMarquee {
    0% { transform: translateX(0); }
    100% { transform: translateX(calc(-50% - 1.5rem)); }
}
@media (max-width: 768px) {
    .marquee-wrapper::before, .marquee-wrapper::after {
        width: 50px;
    }
    .marquee-content .client-card {
        width: 180px;
        padding: 1.5rem;
    }
}

/* -------------------------------------------------------------------------- */
/* Floating WhatsApp Button                                                   */
/* -------------------------------------------------------------------------- */
.floating-wa {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background-color: #25D366;
    color: #FFF;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    z-index: 1000;
    transition: all 0.3s ease;
}

    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1.5rem;
}

.footer-certs {
    font-size: 0.8rem;
    color: var(--text-muted-alt);
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-certs .dot {
    color: rgba(255,255,255,0.2);
}

.footer-copyright {
    font-size: 0.8rem;
    color: var(--text-muted-alt);
    margin: 0;
}

.footer-copyright p {
    margin: 0;
}

@media (max-width: 991px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 575px) {
    .footer-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-bottom {
        flex-direction: column;
        justify-content: center;
        text-align: center;
    }
    
    .footer-certs {
        justify-content: center;
    }
}

/* ==========================================================================
   PREQUALIFIED SECTION
   ========================================================================== */
.prequalified-section {
    background-color: var(--bg-primary);
    padding: 6rem 0;
    position: relative;
}
.prequal-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    margin-top: 3rem;
}
.prequal-card {
    background-color: rgba(255,255,255,0.02);
    border: 1px solid rgba(255,255,255,0.05);
    padding: 4rem 2rem;
    border-radius: 4px;
    text-align: center;
    transition: transform 0.3s ease, border-color 0.3s ease, background-color 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
}
.prequal-card:hover {
    transform: translateY(-5px);
    border-color: var(--accent);
    background-color: rgba(255,255,255,0.05);
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}
.prequal-name {
    font-size: 1.4rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    color: var(--text-primary);
    text-transform: uppercase;
}

@media (max-width: 991px) {
    .prequal-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media (max-width: 575px) {
    .prequal-grid {
        grid-template-columns: 1fr;
    }
}

.feature-card h4 {
    transition: color 0.3s ease;
}

.feature-card:hover h4 {
    color: var(--accent) !important;
}

/* Marquee Styles */
.marquee-wrapper {
    overflow: hidden;
    white-space: nowrap;
    position: relative;
    width: 100%;
    padding: 2rem 0;
}
.marquee-wrapper::before, .marquee-wrapper::after {
    content: '';
    position: absolute;
    top: 0;
    width: 150px;
    height: 100%;
    z-index: 2;
    pointer-events: none;
}
.marquee-wrapper::before {
    left: 0;
    background: linear-gradient(to right, var(--bg-primary) 0%, transparent 100%);
}
.marquee-wrapper::after {
    right: 0;
    background: linear-gradient(to left, var(--bg-primary) 0%, transparent 100%);
}
.marquee-content {
    display: inline-flex;
    animation: scrollMarquee 30s linear infinite;
    gap: 3rem;
    align-items: center;
}
.marquee-content:hover {
    animation-play-state: paused;
}
.marquee-content .client-card {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 250px;
    background: rgba(255,255,255,0.02);
    border: 1px solid rgba(255,255,255,0.05);
    padding: 2rem;
    border-radius: 8px;
    transition: transform 0.3s ease;
}
.marquee-content .client-card:hover {
    transform: translateY(-5px);
    border-color: var(--accent);
}
@keyframes scrollMarquee {
    0% { transform: translateX(0); }
    100% { transform: translateX(calc(-50% - 1.5rem)); }
}
@media (max-width: 768px) {
    .marquee-wrapper::before, .marquee-wrapper::after {
        width: 50px;
    }
    .marquee-content .client-card {
        width: 180px;
        padding: 1.5rem;
    }
}

/* -------------------------------------------------------------------------- */
/* Floating WhatsApp Button                                                   */
/* -------------------------------------------------------------------------- */
.floating-wa {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background-color: #25D366;
    color: #FFF;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    z-index: 1000;
    transition: all 0.3s ease;
}

.floating-wa svg {
    width: 32px;
    height: 32px;
}

.floating-wa:hover {
    transform: scale(1.1);
    background-color: #128C7E;
    color: #FFF;
}

/* -------------------------------------------------------------------------- */
/* Service Pages                                                              */
/* -------------------------------------------------------------------------- */

.service-hero {
    min-height: 70vh;
    display: flex;
    align-items: center;
}

.service-hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    z-index: 0;
}

.service-hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(21, 22, 26, 0.9) 0%, rgba(21, 22, 26, 0.5) 100%);
    z-index: 1;
}


/* Action Media Wrapper */
.action-media-wrapper {
    height: 80vh;
    aspect-ratio: 16 / 9;
    margin: 0 auto;
    max-width: 100%;
}
@media (max-width: 991px) {
    .action-media-wrapper {
        height: auto;
    }
}
.action-media-wrapper video {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover;
}

/* Custom Accordion */
.custom-accordion {
    border-top: 1px solid rgba(0,0,0,0.1);
}

.custom-accordion-item {
    border-bottom: 1px solid rgba(0,0,0,0.1);
}

.custom-accordion-header {
    width: 100%;
    text-align: left;
    padding: 1.5rem 0;
    background: none;
    border: none;
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-primary);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: color 0.3s ease;
}

.custom-accordion-header:hover {
    color: var(--accent);
}

.custom-accordion-item.active .custom-accordion-header {
    color: var(--accent);
}

.custom-accordion-icon {
    width: 24px;
    height: 24px;
    position: relative;
}

.custom-accordion-icon::before,
.custom-accordion-icon::after {
    content: '';
    position: absolute;
    background-color: currentColor;
    transition: transform 0.3s ease;
}

.custom-accordion-icon::before {
    top: 11px;
    left: 0;
    width: 100%;
    height: 2px;
}

.custom-accordion-icon::after {
    top: 0;
    left: 11px;
    width: 2px;
    height: 100%;
}

.custom-accordion-item.active .custom-accordion-icon::after {
    transform: rotate(90deg);
    opacity: 0;
}

.custom-accordion-body {
    padding-bottom: 1.5rem;
    color: var(--text-muted);
    font-size: 1.1rem;
    line-height: 1.6;
}

/* -------------------------------------------------------------------------- */
/* Gallery and Features                                                       */
/* -------------------------------------------------------------------------- */

.feature-image-block {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    height: 100%;
    min-height: 400px;
    transition: box-shadow 0.3s ease;
}

.feature-image-block:hover {
    box-shadow: 0 15px 35px rgba(0,0,0,0.25);
}

.feature-image-block img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
    transition: transform 0.5s ease;
}

.feature-image-block:hover img {
    transform: scale(1.05);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-top: 3rem;
}

.gallery-item {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    aspect-ratio: 4/3;
    transition: box-shadow 0.3s ease;
}

.gallery-item:hover {
    box-shadow: 0 15px 30px rgba(0,0,0,0.2);
}

.gallery-item img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.gallery-item:hover img {
    transform: scale(1.1);
}

/* -------------------------------------------------------------------------- */
/* CTA Custom Button                                                          */
/* -------------------------------------------------------------------------- */

.cta-btn-custom {
    display: block;
    margin: 0 auto;
    width: fit-content;
    background-color: var(--bg-secondary, #15161a);
    color: #fff;
    border: 1px solid var(--bg-secondary, #15161a);
    padding: 14px 36px;
    font-weight: 600;
    letter-spacing: 0.1em;
    font-size: 0.9rem;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
}

.cta-btn-custom:hover {
    background-color: var(--bg-secondary, #15161a);
    color: var(--accent, #c09d2a); /* Yellow text on hover */
}

/* -------------------------------------------------------------------------- */
/* Sub-Service Card Hover Effect                                              */
/* -------------------------------------------------------------------------- */

/* Neo-Brutalist Inquire Button */
.sub-service-card {
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1) !important;
}

.sub-service-card:hover {
    transform: translateY(-10px) !important;
    box-shadow: 0 20px 40px rgba(0,0,0,0.15) !important;
}

.sub-service-card img {
    transition: transform 0.5s cubic-bezier(0.165, 0.84, 0.44, 1) !important;
}

.sub-service-card:hover img {
    transform: scale(1.05) !important;
}

/* Neo-Brutalist Inquire Button */
.btn-neo-brutal {
    background-color: var(--text-primary, #15161a);
    color: #ffffff;
    border: 2px solid var(--text-primary, #15161a);
    border-radius: 0;
    padding: 12px 32px;
    font-weight: 600;
    font-size: 0.95rem;
    letter-spacing: 0.1em;
    position: relative;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: none;
    text-transform: uppercase;
}

.btn-neo-brutal:hover {
    background-color: var(--accent, #c09d2a);
    border-color: var(--accent, #c09d2a);
    color: #ffffff;
}

.btn-neo-brutal:active {
    transform: scale(0.98);
}

/* Force ALL buttons to be square as requested across the entire site */
/* Force ALL buttons to be square as requested across the entire site */
.nav-btn-pill,
.btn-pill-white,
.cta-btn-custom,
button {
    border-radius: 0 !important;
}
