@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@400;500;600;700&family=Unbounded:wght@400;500;600;700;800;900&display=swap');

:root {
    --bg-main: #ffffff;
    --bg-darker: #FFF0C4;
    /* Soft warm cream */
    --bg-card: rgba(255, 255, 255, 0.85);
    --border-color: rgba(62, 7, 3, 0.08);

    /* Vibrant Custom Colors */
    --color-cyan: #8C1007;
    /* Crimson Red */
    --color-purple: #660B05;
    /* Deep Maroon */
    --color-orange: #3E0703;
    /* Deep Maroon-black */
    --color-cream: #FFF0C4;
    /* Cream Accent */

    /* Glows - soft warm crimson-maroon */
    --glow-cyan: rgba(140, 16, 7, 0.12);
    --glow-purple: rgba(102, 11, 5, 0.12);
    --glow-orange: rgba(62, 7, 3, 0.12);

    /* Typography colors */
    --text-white: #3E0703;
    /* Deep Maroon-black for main headers */
    --text-silver: #660B05;
    /* Deep Maroon for secondary text */
    --text-muted: #6e5957;
    /* Warm desaturated cocoa-slate for paragraph copy */

    --transition-smooth: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

/* --- Core Reset & Defaults --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html,
body {
    background-color: var(--bg-main);
    color: var(--text-silver);
    font-family: 'Space Grotesk', sans-serif;
    overflow-x: hidden;
    scroll-behavior: smooth;
    /* Native 60fps hardware-accelerated smooth scrolling */
    -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Unbounded', sans-serif;
    color: var(--text-white);
    letter-spacing: -0.02em;
    /* Tracked-in look for modern bold display headings */
    text-transform: uppercase;
    font-weight: 800;
}

/* --- Custom Scrollbar --- */
::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: var(--bg-main);
}

::-webkit-scrollbar-thumb {
    background: rgba(102, 11, 5, 0.25);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--color-cyan);
}

/* --- Tech Noise Overlay & Grids --- */
.ambient-glow {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    pointer-events: none;
    z-index: 1;
    background:
        radial-gradient(circle at 10% 20%, rgba(102, 11, 5, 0.04) 0%, transparent 40%),
        radial-gradient(circle at 90% 80%, rgba(140, 16, 7, 0.04) 0%, transparent 40%);
}

.grid-bg {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(62, 7, 3, 0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(62, 7, 3, 0.02) 1px, transparent 1px);
    background-size: 50px 50px;
    mask-image: radial-gradient(ellipse at 50% 50%, black 50%, transparent 90%);
    pointer-events: none;
    z-index: 0;
}

/* --- Typography Utilities --- */
.gradient-text {
    background: linear-gradient(135deg, var(--color-orange) 20%, var(--color-purple) 60%, var(--color-cyan) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.subheading-cyber {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(140, 16, 7, 0.05);
    border: 1px solid rgba(140, 16, 7, 0.15);
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    font-weight: 600;
    color: var(--color-cyan);
    margin-bottom: 24px;
    font-family: 'Space Grotesk', sans-serif;
}

.subheading-cyber::before {
    content: '';
    width: 6px;
    height: 6px;
    background-color: var(--color-cyan);
    border-radius: 50%;
    box-shadow: 0 0 8px var(--color-cyan);
    animation: blinkPulse 1.5s infinite;
}

@keyframes blinkPulse {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.4;
    }
}

/* --- Centered Collapsing Header & Navigation --- */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    height: 160px;
    /* Centered layout height */
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border-color);
    transition: var(--transition-smooth);
}

header.scrolled {
    height: 75px;
    /* Collapsed single row height */
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 4px 20px rgba(62, 7, 3, 0.03);
}

/* Centered state styling */
.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    position: absolute;
    left: 50%;
    top: 25px;
    transform: translateX(-50%) scale(1.4);
    transform-origin: top center;
    transition: var(--transition-smooth);
}

.logo-symbol {
    width: 32px;
    height: 32px;
    position: relative;
    border: 1.5px solid var(--color-cyan);
    border-radius: 4px;
    transform: rotate(45deg);
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo-symbol::after {
    content: '';
    width: 10px;
    height: 10px;
    background: var(--color-purple);
    border-radius: 50%;
}

.logo-img {
    width: 45px;
    height: 36px;
    aspect-ratio: 5 / 4;
    object-fit: contain;
    background-color: #ffffff;
    padding: 3px;
    border-radius: 6px;
    border: 1.5px solid rgba(140, 16, 7, 0.15);
    box-shadow: 0 2px 8px rgba(62, 7, 3, 0.05);
    display: block;
    transition: var(--transition-smooth);
}

.logo-img:hover {
    transform: scale(1.05);
    border-color: var(--color-cyan);
    box-shadow: 0 4px 12px rgba(140, 16, 7, 0.12);
}

.logo-text {
    display: flex;
    flex-direction: column;
}

.logo-title {
    font-family: 'Unbounded', sans-serif;
    font-size: 20px;
    font-weight: 700;
    color: var(--text-white);
    letter-spacing: 0.02em;
    line-height: 1;
}

.logo-tag {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 9px;
    letter-spacing: 0.15em;
    color: var(--color-purple);
    text-transform: uppercase;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 32px;
    list-style: none;
    position: absolute;
    left: 50%;
    top: 105px;
    transform: translateX(-50%);
    transition: var(--transition-smooth);
}

.nav-link {
    text-decoration: none;
    color: var(--text-muted);
    font-family: 'Space Grotesk', sans-serif;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    position: relative;
    transition: color 0.3s ease;
    padding: 6px 0;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 1.5px;
    background: linear-gradient(90deg, var(--color-cyan), var(--color-purple));
    transition: width 0.3s ease;
}

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

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

.nav-cta {
    text-decoration: none;
    position: absolute;
    right: 6%;
    top: 40px;
    transition: var(--transition-smooth);
}

/* Collapsed single row scrolled states */
header.scrolled .logo {
    left: 6%;
    top: 50%;
    transform: translateY(-50%) scale(0.95);
    transform-origin: left center;
}

header.scrolled .nav-menu {
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

/* --- Premium Buttons --- */

/* Primary CTA — Bold filled gradient */
.btn-cyber {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 13px 30px;
    background: linear-gradient(135deg, var(--color-cyan) 0%, var(--color-purple) 100%);
    color: #fff !important;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    text-decoration: none;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 18px rgba(140, 16, 7, 0.30);
    transition: transform 0.25s ease, box-shadow 0.25s ease, filter 0.25s ease;
    white-space: nowrap;
}

.btn-cyber::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, #fff1 0%, transparent 60%);
    opacity: 0;
    transition: opacity 0.25s ease;
    border-radius: inherit;
}

.btn-cyber:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 28px rgba(140, 16, 7, 0.45);
    filter: brightness(1.08);
}

.btn-cyber:hover::before {
    opacity: 1;
}

.btn-cyber:active {
    transform: translateY(0);
    box-shadow: 0 3px 12px rgba(140, 16, 7, 0.30);
}

/* Nav variant — compact so it sits inline with links */
.nav-menu .btn-cyber {
    padding: 9px 22px;
    font-size: 12px;
    border-radius: 5px;
    box-shadow: 0 3px 12px rgba(140, 16, 7, 0.25);
}

/* Secondary Button — bold outlined */
.btn-sec {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 13px 30px;
    background: transparent;
    color: var(--color-cyan);
    font-family: 'Space Grotesk', sans-serif;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    border: 2px solid var(--color-cyan);
    border-radius: 6px;
    cursor: pointer;
    text-decoration: none;
    position: relative;
    overflow: hidden;
    transition: background 0.25s ease, color 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
    white-space: nowrap;
}

.btn-sec::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--color-cyan);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
    z-index: 0;
    border-radius: inherit;
}

.btn-sec span,
.btn-sec {
    position: relative;
    z-index: 1;
}

.btn-sec:hover {
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(140, 16, 7, 0.25);
}

.btn-sec:hover::before {
    transform: scaleX(1);
}

.btn-sec:active {
    transform: translateY(0);
}

/* Disable hover/hero transitions for the Get in Touch button in Hero */
#hero .btn-sec:hover {
    color: var(--color-cyan);
    transform: none;
    box-shadow: none;
    background: transparent;
}

#hero .btn-sec:hover::before {
    transform: scaleX(0);
}


/* =============================================
   HAMBURGER BUTTON (mobile only — hidden on desktop)
   ============================================= */
.hamburger {
    display: none;
    /* hidden on desktop */
    position: fixed;
    top: 0;
    right: 0;
    width: 56px;
    height: 64px;
    z-index: 9999;
    background: none;
    border: none;
    cursor: pointer;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    padding: 0;
}

.hamburger span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--color-cyan);
    border-radius: 2px;
    transition: transform 0.3s ease, opacity 0.3s ease;
    transform-origin: center;
}

/* Bars → X when open */
.hamburger.is-open span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.hamburger.is-open span:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}

.hamburger.is-open span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* =============================================
   MOBILE BACKDROP
   ============================================= */
.mobile-backdrop {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 10000;
    opacity: 0;
    transition: opacity 0.35s ease;
}

.mobile-backdrop.is-open {
    display: block;
    opacity: 1;
}

/* =============================================
   MOBILE DRAWER — slides in from RIGHT
   ============================================= */
.mobile-drawer {
    position: fixed;
    top: 0;
    right: 0;
    width: 300px;
    max-width: 85vw;
    height: 100vh;
    background: #fff;
    z-index: 10001;
    transform: translateX(100%);
    /* hidden off-screen right */
    transition: transform 0.38s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    flex-direction: column;
    box-shadow: -8px 0 40px rgba(62, 7, 3, 0.12);
    overflow-y: auto;
}

.mobile-drawer.is-open {
    transform: translateX(0);
    /* slides into view */
}

/* Drawer header row */
.drawer-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 22px;
    border-bottom: 1px solid rgba(62, 7, 3, 0.08);
    min-height: 64px;
}

.drawer-logo {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

/* Close × button */
.drawer-close {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1.5px solid rgba(62, 7, 3, 0.15);
    background: rgba(62, 7, 3, 0.04);
    color: var(--color-cyan);
    font-size: 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s, border-color 0.2s;
    flex-shrink: 0;
}

.drawer-close:hover {
    background: rgba(140, 16, 7, 0.08);
    border-color: var(--color-cyan);
}

/* Drawer nav links */
.drawer-nav {
    display: flex;
    flex-direction: column;
    padding: 24px 0;
    flex: 1;
}

.drawer-link {
    text-decoration: none;
    font-family: 'Unbounded', sans-serif;
    font-size: 13px;
    font-weight: 700;
    color: var(--text-white);
    padding: 16px 28px;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    border-bottom: 1px solid rgba(62, 7, 3, 0.05);
    transition: color 0.2s, background 0.2s, padding-left 0.25s;
    display: block;
}

.drawer-link:hover {
    color: var(--color-cyan);
    background: rgba(140, 16, 7, 0.03);
    padding-left: 36px;
}

/* Drawer CTA button */
.drawer-footer {
    padding: 24px 28px 40px;
    border-top: 1px solid rgba(62, 7, 3, 0.08);
}

.drawer-cta {
    width: 100%;
    justify-content: center;
    font-size: 13px;
    padding: 14px 20px;
}


/* --- Hero Section & Video Background --- */
#hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    padding: 220px 6% 80px;
    /* Offset for centered tall nav bar */
    overflow: hidden;
}

.video-bg-container {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    overflow: hidden;
}

.hero-video-bg {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(1.0) contrast(1.0) saturate(1.0) opacity(0.75);
    /* Clean loop visible at 75% */
}

.video-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0.4), var(--bg-main) 95%);
}

.hero-layout {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    position: relative;
    z-index: 2;
}

.hero-txt {
    max-width: 860px;
}

.hero-txt h1 {
    font-size: clamp(36px, 5vw, 68px);
    line-height: 1.05;
    margin-bottom: 24px;
    font-weight: 800;
}

.hero-txt p {
    font-size: clamp(16px, 1.2vw, 20px);
    line-height: 1.6;
    color: var(--text-muted);
    margin-bottom: 40px;
}

.hero-ctas {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    margin-bottom: 60px;
}

/* Hero Telemetry */
.hero-telemetry {
    display: flex;
    gap: 48px;
    border-top: 1px solid var(--border-color);
    padding-top: 32px;
    max-width: 600px;
}

.telemetry-item {
    display: flex;
    flex-direction: column;
}

.telemetry-val {
    font-family: 'Unbounded', sans-serif;
    font-size: 32px;
    font-weight: 700;
    color: var(--color-cyan);
    text-shadow: 0 0 8px var(--glow-cyan);
    line-height: 1;
}

.telemetry-lbl {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 11px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-top: 6px;
}

/* Static Hero SVG Topography replacing heavy Three.js */
.hero-graphics-static {
    width: 100%;
    height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.static-network-svg {
    width: 100%;
    height: 100%;
    max-width: 420px;
    opacity: 0.75;
}

/* --- Section Layouts --- */
section {
    padding: 120px 6%;
    position: relative;
    z-index: 2;
}

.section-hdr {
    margin-bottom: 60px;
}

.section-hdr p {
    font-size: 16px;
    color: var(--text-muted);
    line-height: 1.6;
    max-width: 600px;
    margin-top: 16px;
}

/* --- About Section & Visual Mosaic --- */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.about-graphics-column {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.about-image-card {
    position: relative;
    padding: 12px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.35);
    border: 1px solid rgba(140, 16, 7, 0.06);
    box-shadow: 0 10px 30px rgba(62, 7, 3, 0.02), inset 0 0 20px rgba(140, 16, 7, 0.01);
    overflow: hidden;
    height: 240px;
    transition: var(--transition-smooth);
}

.about-image-card:hover {
    border-color: rgba(140, 16, 7, 0.15);
    box-shadow: 0 15px 40px rgba(140, 16, 7, 0.05);
}

.about-tech-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 10px;
    border: 1px solid var(--border-color);
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.6s ease;
}

.about-image-card:hover .about-tech-img {
    border-color: var(--color-cyan);
}

/* Cyber Corners for the graphics card */
.cyber-corner {
    position: absolute;
    width: 12px;
    height: 12px;
    border-color: var(--color-cyan);
    border-style: solid;
    pointer-events: none;
    z-index: 5;
    opacity: 0.65;
}

.cyber-corner-tl {
    top: 0;
    left: 0;
    border-width: 2px 0 0 2px;
}

.cyber-corner-tr {
    top: 0;
    right: 0;
    border-width: 2px 2px 0 0;
}

.cyber-corner-bl {
    bottom: 0;
    left: 0;
    border-width: 0 0 2px 2px;
}

.cyber-corner-br {
    bottom: 0;
    right: 0;
    border-width: 0 2px 2px 0;
}

/* Animated laser scan-line */
.about-scan-line {
    position: absolute;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--color-cyan), transparent);
    box-shadow: 0 0 12px var(--color-cyan), 0 0 4px var(--color-cyan);
    opacity: 0.8;
    z-index: 10;
    pointer-events: none;
    animation: laserScan 4s linear infinite;
}

@keyframes laserScan {
    0% {
        top: 0%;
        opacity: 0;
    }

    5% {
        opacity: 0.8;
    }

    95% {
        opacity: 0.8;
    }

    100% {
        top: 100%;
        opacity: 0;
    }
}

/* HUD telemetry badges */
.hud-badge-cyber {
    position: absolute;
    z-index: 10;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 10px;
    font-weight: 600;
    color: var(--color-cyan);
    letter-spacing: 0.1em;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(140, 16, 7, 0.2);
    padding: 6px 12px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 15px rgba(62, 7, 3, 0.05);
    transition: var(--transition-smooth);
}

.hud-badge-cyber:hover {
    background: var(--color-cyan);
    color: #ffffff;
    border-color: var(--color-cyan);
    box-shadow: 0 6px 20px rgba(140, 16, 7, 0.3);
}

.hud-badge-cyber span.pulse-dot {
    display: inline-block;
    width: 6px;
    height: 6px;
    background: var(--color-cyan);
    border-radius: 50%;
    box-shadow: 0 0 8px var(--color-cyan);
    animation: pulse-ring 2s infinite;
}

.hud-badge-cyber:hover span.pulse-dot {
    background: #ffffff;
    box-shadow: 0 0 8px #ffffff;
}

@keyframes pulse-ring {
    0% {
        transform: scale(0.8);
        box-shadow: 0 0 0 0 rgba(140, 16, 7, 0.5);
    }

    70% {
        transform: scale(1);
        box-shadow: 0 0 0 6px rgba(140, 16, 7, 0);
    }

    100% {
        transform: scale(0.8);
        box-shadow: 0 0 0 0 rgba(140, 16, 7, 0);
    }
}

.about-features {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-top: 30px;
    margin-bottom: 30px;
}

.about-feature-card {
    background: rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(140, 16, 7, 0.08);
    padding: 12px 18px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 14px;
    transition: var(--transition-smooth);
    box-shadow: 0 4px 15px rgba(62, 7, 3, 0.02);
}

.about-feature-card:hover {
    transform: translateY(-3px);
    background: rgba(255, 240, 196, 0.6);
    border-color: rgba(140, 16, 7, 0.25);
    box-shadow: 0 8px 25px rgba(140, 16, 7, 0.08);
}

.about-feature-icon {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: rgba(140, 16, 7, 0.06);
    color: var(--color-cyan);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    transition: var(--transition-smooth);
}

.about-feature-card:hover .about-feature-icon {
    background: var(--color-cyan);
    color: #ffffff;
    transform: rotate(10deg) scale(1.1);
    box-shadow: 0 0 10px rgba(140, 16, 7, 0.3);
}

.about-feature-card span {
    font-size: 14px;
    color: var(--text-silver);
    font-weight: 600;
    font-family: 'Space Grotesk', sans-serif;
}

/* ISO Certification Callout Card */
.iso-callout-card {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.8) 0%, rgba(255, 240, 196, 0.4) 100%) !important;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(140, 16, 7, 0.15) !important;
    box-shadow: 0 12px 40px rgba(140, 16, 7, 0.04) !important;
    transition: var(--transition-smooth);
}

.iso-callout-card:hover {
    transform: translateY(-4px);
    border-color: rgba(140, 16, 7, 0.4) !important;
    box-shadow: 0 18px 48px rgba(140, 16, 7, 0.08) !important;
}

.iso-badge-wrapper {
    position: relative;
    width: 48px;
    height: 48px;
    flex-shrink: 0;
}

.iso-badge-ring {
    position: absolute;
    inset: -4px;
    border: 1px dashed rgba(140, 16, 7, 0.3);
    border-radius: 50%;
    animation: spin-slow 12s linear infinite;
}

.iso-badge-icon {
    width: 100%;
    height: 100%;
    background: rgba(140, 16, 7, 0.08);
    border: 1.5px solid var(--color-cyan);
    border-radius: 50%;
    color: var(--color-cyan);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    box-shadow: 0 0 15px rgba(140, 16, 7, 0.15);
    transition: var(--transition-smooth);
}

.iso-callout-card:hover .iso-badge-icon {
    background: var(--color-cyan);
    color: #ffffff;
    box-shadow: 0 0 20px rgba(140, 16, 7, 0.4);
    transform: scale(1.05);
}

@keyframes spin-slow {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

/* Director highlights */
.director-panel {
    position: relative;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.75) 0%, rgba(255, 255, 255, 0.9) 100%) !important;
    border: 1px solid rgba(140, 16, 7, 0.1) !important;
    padding: 32px 36px !important;
    border-radius: 16px !important;
    box-shadow: 0 15px 45px rgba(62, 7, 3, 0.02) !important;
    transition: var(--transition-smooth);
}

.director-panel:hover {
    transform: translateY(-5px);
    border-color: rgba(140, 16, 7, 0.25) !important;
    box-shadow: 0 25px 55px rgba(140, 16, 7, 0.05) !important;
}

.director-panel::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(to bottom, var(--color-cyan), var(--color-purple));
}

.director-quote-watermark {
    position: absolute;
    right: 24px;
    bottom: 12px;
    font-size: 80px;
    color: rgba(140, 16, 7, 0.04);
    font-weight: 900;
    pointer-events: none;
    line-height: 1;
    font-family: serif;
}

.director-info h4 {
    font-family: 'Unbounded', sans-serif;
    font-size: 20px;
    font-weight: 800;
    color: var(--text-white);
    margin-bottom: 6px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.director-info h4::after {
    content: '';
    display: inline-block;
    width: 6px;
    height: 6px;
    background: var(--color-cyan);
    border-radius: 50%;
    box-shadow: 0 0 8px var(--color-cyan);
}

.director-info .role {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 11px;
    color: var(--color-cyan);
    text-transform: uppercase;
    letter-spacing: 0.15em;
    margin-bottom: 12px;
}

.director-info p {
    font-size: 14px;
    line-height: 1.6;
    color: var(--text-muted);
}

.director-info p:not(:last-child) {
    margin-bottom: 14px;
}

/* --- Services Grid --- */
.services-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.service-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    padding: 40px 30px;
    border-radius: 8px;
    position: relative;
    overflow: hidden;
    transition: var(--transition-smooth);
    box-shadow: 0 4px 30px rgba(62, 7, 3, 0.02);
}

.service-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2.5px;
    background: linear-gradient(90deg, var(--color-cyan), var(--color-purple));
    transition: width 0.4s ease;
}

.service-card:hover {
    transform: translateY(-8px);
    border-color: rgba(140, 16, 7, 0.25);
    box-shadow: 0 20px 40px rgba(62, 7, 3, 0.04);
}

.service-card:hover::after {
    width: 100%;
}

.service-card-img {
    width: calc(100% + 60px);
    height: 200px;
    overflow: hidden;
    margin: -40px -30px 20px;
    position: relative;
}

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

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

.service-icon-wrap {
    width: 48px;
    height: 48px;
    background: rgba(62, 7, 3, 0.02);
    border: 1.5px solid var(--border-color);
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    margin-bottom: 24px;
    transition: var(--transition-smooth);
    color: var(--color-cyan);
}

.service-card:hover .service-icon-wrap {
    border-color: var(--color-cyan);
    background: rgba(140, 16, 7, 0.05);
    color: var(--color-cyan);
}

.service-card h3 {
    font-size: 22px;
    margin-bottom: 12px;
}

.service-card p {
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.6;
}

/* --- Product Cards - Big Icons Style --- */
#products .service-icon-wrap {
    width: 68px;
    height: 68px;
    font-size: 28px;
    background: rgba(140, 16, 7, 0.03);
    border-color: rgba(140, 16, 7, 0.12);
    box-shadow: 0 4px 15px rgba(140, 16, 7, 0.04);
    margin-bottom: 24px;
    border-radius: 8px;
}

#products .service-card:hover .service-icon-wrap {
    background: var(--color-cyan);
    color: #ffffff;
    border-color: var(--color-cyan);
    transform: scale(1.08);
    box-shadow: 0 8px 25px rgba(140, 16, 7, 0.2);
}


/* --- Connectivity / Architecture section --- */
.connectivity-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.connectivity-interactive-panel {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 30px;
    position: relative;
    box-shadow: 0 10px 30px rgba(62, 7, 3, 0.02);
}

.fiber-strand-visualizer {
    width: 100%;
    height: 120px;
    position: relative;
    margin-top: 20px;
    background: rgba(62, 7, 3, 0.02);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    overflow: hidden;
}

.fiber-strand-path {
    position: absolute;
    width: 100%;
    height: 2px;
    top: 50%;
    transform: translateY(-50%);
    background: linear-gradient(90deg, transparent, rgba(140, 16, 7, 0.15), transparent);
}

.fiber-pulse {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 4px;
    background: linear-gradient(90deg, transparent, var(--color-cyan), transparent);
    box-shadow: 0 0 12px var(--color-cyan);
    animation: flowData 2s linear infinite;
}

@keyframes flowData {
    0% {
        left: -10%;
    }

    100% {
        left: 110%;
    }
}

/* --- SCADA / Gauge Telemetry visualizer --- */
.scada-layout {
    display: grid;
    grid-template-columns: 0.8fr 1.2fr;
    gap: 60px;
    align-items: center;
}

.scada-monitor {
    background: #0c0202;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    padding: 24px;
    box-shadow: 0 20px 40px rgba(62, 7, 3, 0.15);
}

.scada-monitor h4 {
    color: #ffffff !important;
}

.monitor-hdr {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding-bottom: 12px;
    margin-bottom: 24px;
}

.monitor-hdr span {
    color: #a38d8b;
    font-family: 'Space Grotesk', sans-serif;
}

.monitor-badge {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 10px;
    background: rgba(140, 16, 7, 0.25);
    color: #fca5a5;
    border: 1px solid rgba(140, 16, 7, 0.4);
    padding: 3px 8px;
    border-radius: 4px;
}

.telemetry-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.telemetry-gauge {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.gauge-circle {
    position: relative;
    width: 90px;
    height: 90px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.gauge-circle svg {
    position: absolute;
    width: 100%;
    height: 100%;
    transform: rotate(-90deg);
}

.gauge-bg {
    fill: none;
    stroke: rgba(255, 255, 255, 0.08);
    stroke-width: 4px;
}

.gauge-fill {
    fill: none;
    stroke: var(--color-cyan);
    stroke-width: 4px;
    stroke-linecap: round;
    transition: stroke-dashoffset 0.8s ease;
}

.gauge-val {
    font-family: 'Unbounded', sans-serif;
    font-size: 18px;
    font-weight: 700;
    color: #ffffff !important;
}

.gauge-lbl {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 11px;
    color: #a38d8b;
    margin-top: 10px;
}

/* --- Projects Showcase (Vertical Card Grid) --- */
#showcase {
    position: relative;
    width: 100%;
    padding: 120px 6%;
}

.projects-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 32px;
    margin-top: 60px;
}

.project-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 30px rgba(62, 7, 3, 0.04);
    transition: var(--transition-smooth);
    display: flex;
    flex-direction: column;
    flex: 0 1 calc((100% - 64px) / 3);
    min-width: 290px;
}

.project-card:hover {
    transform: translateY(-8px);
    border-color: rgba(140, 16, 7, 0.25);
    box-shadow: 0 20px 50px rgba(62, 7, 3, 0.08);
}

.project-card-img {
    width: 100%;
    height: 220px;
    position: relative;
    overflow: hidden;
}

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

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

.project-card-label {
    position: absolute;
    bottom: 12px;
    left: 12px;
    background: rgba(12, 2, 2, 0.82);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #fff;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 10px;
    padding: 5px 10px;
    border-radius: 4px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.project-card-body {
    padding: 28px 28px 32px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.project-card-body h3 {
    font-size: 18px;
    margin-bottom: 12px;
    margin-top: 8px;
    line-height: 1.3;
}

.project-card-body p {
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.65;
}

/* --- Testimonials --- */
.testimonials-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

.testimonial-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    padding: 40px;
    border-radius: 8px;
    position: relative;
    box-shadow: 0 10px 30px rgba(62, 7, 3, 0.02);
}

.testimonial-card p {
    font-size: 16px;
    line-height: 1.7;
    color: var(--text-silver);
    margin-bottom: 30px;
    font-style: italic;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 16px;
}

.author-info h4 {
    font-size: 18px;
    margin-bottom: 2px;
}

.author-info span {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 12px;
    color: var(--color-cyan);
}

/* --- Contact Section --- */
.contact-layout {
    display: grid;
    grid-template-columns: 0.8fr 1.2fr;
    gap: 80px;
}

.contact-info-panel {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.contact-item {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.contact-icon {
    width: 44px;
    height: 44px;
    background: rgba(62, 7, 3, 0.02);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    color: var(--color-cyan);
}

.contact-detail h5 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 14px;
    color: var(--color-cyan);
    margin-bottom: 6px;
}

.contact-detail p {
    font-size: 15px;
    color: var(--text-silver);
    line-height: 1.6;
}

.contact-form-panel {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    padding: 48px;
    border-radius: 8px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(62, 7, 3, 0.03);
}

.contact-form-panel::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 100px;
    height: 2px;
    background: var(--color-cyan);
    box-shadow: 0 0 10px var(--color-cyan);
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    margin-bottom: 24px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-muted);
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.form-group input,
.form-group select,
.form-group textarea {
    background: rgba(255, 255, 255, 0.95);
    border: 1.5px solid var(--border-color);
    border-radius: 4px;
    padding: 14px 18px;
    color: var(--text-white);
    font-family: inherit;
    font-size: 14px;
    outline: none;
    transition: border-color 0.3s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--color-cyan);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

/* --- Footer --- */
footer {
    background: linear-gradient(160deg, #3E0703 0%, #5a0904 45%, #3E0703 100%);
    position: relative;
    overflow: hidden;
}

/* Warm inner glow */
footer::before {
    content: '';
    position: absolute;
    top: -80px;
    left: 30%;
    width: 700px;
    height: 500px;
    background: radial-gradient(ellipse, rgba(255, 240, 196, 0.06) 0%, transparent 65%);
    pointer-events: none;
}

.footer-accent-bar {
    height: 3px;
    background: linear-gradient(90deg,
            #FFF0C4 0%,
            rgba(255, 240, 196, 0.5) 50%,
            transparent 100%);
}

.footer-inner {
    display: grid;
    grid-template-columns: 2.2fr 1.2fr 1.2fr 1fr;
    gap: 48px;
    padding: 80px 6% 60px;
    position: relative;
    z-index: 1;
}

/* Brand Column */
.footer-brand {}

.footer-logo {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    margin-bottom: 20px;
}

.footer-brand-desc {
    font-size: 14px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.75;
    max-width: 340px;
    margin-bottom: 28px;
    font-family: 'Space Grotesk', sans-serif;
}

.footer-contact-pills {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 13px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.82);
    text-decoration: none;
    padding: 8px 14px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.05);
    transition: color 0.25s, border-color 0.25s, background 0.25s;
    width: fit-content;
}

.footer-pill:hover {
    color: #fff;
    border-color: rgba(255, 255, 255, 0.45);
    background: rgba(255, 255, 255, 0.1);
}

/* Link Columns */
.footer-col {
    padding-top: 8px;
}

.footer-col-title {
    font-family: 'Unbounded', sans-serif;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: #ffffff;
    margin-bottom: 28px;
    position: relative;
    padding-bottom: 12px;
}

.footer-col-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 28px;
    height: 2px;
    background: linear-gradient(90deg, #fff, rgba(255, 255, 255, 0.2));
    border-radius: 1px;
}

.footer-col ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.footer-col ul li a {
    text-decoration: none;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 14px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.65);
    transition: color 0.25s ease, padding-left 0.25s ease;
    position: relative;
    padding-left: 0;
    display: inline-block;
}

.footer-col ul li a::before {
    content: '→';
    margin-right: 0;
    opacity: 0;
    transform: translateX(-6px);
    transition: opacity 0.25s, transform 0.25s;
    display: inline-block;
    font-size: 12px;
}

.footer-col ul li a:hover {
    color: #ffffff;
    padding-left: 18px;
}

.footer-col ul li a:hover::before {
    opacity: 1;
    transform: translateX(0);
    position: absolute;
    left: 0;
}

/* Bottom bar */
.footer-bottom {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 24px 6%;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 12px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.5);
    position: relative;
    z-index: 1;
}

.footer-bottom-left {}

.footer-bottom-center {
    display: flex;
    justify-content: center;
}

.footer-integrity-badge {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.1em;
    color: rgba(255, 255, 255, 0.35);
    text-transform: uppercase;
    padding: 6px 14px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 20px;
    white-space: nowrap;
}

.footer-bottom-right {
    text-align: right;
}

.footer-dev-credit {
    text-decoration: none;
    font-weight: 800;
    color: #ffffff;
    background: none;
    -webkit-text-fill-color: #ffffff;
    transition: opacity 0.25s;
    margin-left: 4px;
    letter-spacing: 0.02em;
}

.footer-dev-credit:hover {
    opacity: 0.75;
}

/* =============================================
   RESPONSIVE — TABLET  ≤ 1024px
   ============================================= */
@media (max-width: 1024px) {

    /* Hero: single column, centre-aligned */
    .hero-layout {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-txt {
        max-width: 100%;
    }

    .hero-ctas {
        justify-content: center;
    }

    .hero-telemetry {
        justify-content: center;
    }

    .subheading-cyber {
        margin-left: auto;
        margin-right: auto;
    }

    /* Stacked grids */
    .about-grid,
    .connectivity-grid,
    .scada-layout,
    .contact-layout {
        grid-template-columns: 1fr;
        gap: 48px;
    }

    .footer-inner {
        grid-template-columns: repeat(3, 1fr);
        gap: 32px;
    }

    .footer-brand {
        grid-column: 1 / -1;
        margin-bottom: 16px;
    }

    .services-container {
        grid-template-columns: repeat(2, 1fr);
    }

    .testimonials-grid {
        grid-template-columns: 1fr;
    }

    .projects-grid {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
    }

    .project-card {
        flex: 0 1 calc((100% - 32px) / 2);
    }

    /* Hide desktop nav — drawer takes over */
    .nav-menu {
        display: none !important;
    }

    /* Show hamburger button */
    .hamburger {
        display: flex;
    }

    /* Header height on tablet/mobile */
    header {
        height: 64px;
    }

    /* Logo centered on tablet */
    .logo {
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%) scale(1.0);
    }

    header.scrolled {
        height: 64px;
    }

    header.scrolled .logo {
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%) scale(0.95);
    }

    /* Sections */
    section {
        padding: 80px 6%;
    }

    .about-image-card {
        height: 240px;
    }
}

/* =============================================
   RESPONSIVE — MOBILE  ≤ 768px
   ============================================= */
@media (max-width: 768px) {

    /* Header */
    header {
        height: 64px;
    }

    .logo {
        top: 50%;
        left: 6%;
        transform: translateY(-50%) scale(1.0);
    }

    header.scrolled .logo {
        left: 6%;
        top: 50%;
        transform: translateY(-50%) scale(0.95);
    }

    /* Sections */
    section {
        padding: 64px 5%;
    }

    /* Hero */
    #hero {
        padding-top: 100px;
        padding-bottom: 60px;
        text-align: center;
        min-height: auto;
    }


    .hero-txt h1 {
        font-size: clamp(26px, 8vw, 42px);
    }

    .hero-txt p {
        font-size: 15px;
    }

    .hero-ctas {
        flex-direction: column;
        align-items: center;
        gap: 14px;
        margin-bottom: 40px;
    }

    .hero-ctas .btn-cyber,
    .hero-ctas .btn-sec {
        width: 100%;
        max-width: 320px;
        justify-content: center;
    }

    .hero-telemetry {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
        gap: 24px 40px;
    }

    .telemetry-val {
        font-size: 24px;
    }

    /* Services */
    .services-container {
        grid-template-columns: 1fr;
    }

    .service-card {
        padding: 28px 24px;
    }

    /* Projects grid */
    .projects-grid {
        display: flex;
        flex-direction: column;
        gap: 20px;
    }

    .project-card {
        flex: 0 1 100%;
    }

    /* About mosaic */
    .about-image-card {
        height: 200px;
    }

    /* Testimonials */
    .testimonials-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    /* Contact */
    .form-grid {
        grid-template-columns: 1fr;
    }

    .contact-form-panel {
        padding: 28px 20px;
    }

    /* Connectivity panel */
    .fiber-strand-visualizer {
        height: 80px;
    }

    /* SCADA */
    .scada-layout {
        grid-template-columns: 1fr;
    }

    .scada-monitor {
        padding: 20px;
    }

    .telemetry-row {
        gap: 20px;
    }

    /* Footer */
    .footer-inner {
        grid-template-columns: 1fr;
        gap: 36px;
        padding: 48px 5% 40px;
        text-align: center;
    }

    .footer-brand {
        grid-column: auto;
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .footer-logo {
        justify-content: center;
    }

    .footer-brand-desc {
        max-width: 100%;
        margin-left: auto;
        margin-right: auto;
    }

    .footer-contact-pills {
        align-items: center;
        width: 100%;
    }

    .footer-pill {
        width: 100%;
        max-width: 320px;
        justify-content: center;
    }

    .footer-col {
        text-align: center;
    }

    .footer-col-title::after {
        left: 50%;
        transform: translateX(-50%);
    }

    .footer-col ul li a:hover {
        padding-left: 0;
    }

    .footer-col ul li a:hover::before {
        display: none;
    }

    .footer-bottom {
        grid-template-columns: 1fr;
        gap: 10px;
        text-align: center;
        padding: 20px 5%;
    }

    .footer-bottom-right {
        text-align: center;
    }

    .footer-integrity-badge {
        display: none;
    }

    /* Headings */
    h2 {
        font-size: clamp(22px, 6vw, 36px);
    }

    h3 {
        font-size: clamp(16px, 4vw, 22px);
    }

    /* Section header */
    .section-hdr {
        margin-bottom: 40px;
    }
}

/* =============================================
   RESPONSIVE — SMALL PHONES  ≤ 420px
   ============================================= */
@media (max-width: 420px) {

    section {
        padding: 52px 4%;
    }

    #hero {
        padding-top: 100px;
    }

    .hero-txt h1 {
        font-size: clamp(22px, 9vw, 34px);
        letter-spacing: -0.01em;
    }

    .hero-telemetry {
        gap: 16px 28px;
    }

    .telemetry-val {
        font-size: 20px;
    }

    .project-card-img {
        height: 180px;
    }

    .project-card-body {
        padding: 20px 18px 24px;
    }

    .contact-form-panel {
        padding: 20px 16px;
    }

    .director-panel {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .testimonial-card {
        padding: 24px 18px;
    }
}

/* --- Scroll Reveal Animation --- */
.reveal {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.65s ease, transform 0.65s ease;
}

.reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Stagger project cards */
.project-card.reveal:nth-child(2) {
    transition-delay: 0.08s;
}

.project-card.reveal:nth-child(3) {
    transition-delay: 0.16s;
}

.project-card.reveal:nth-child(4) {
    transition-delay: 0.24s;
}

.project-card.reveal:nth-child(5) {
    transition-delay: 0.32s;
}

.project-card.reveal:nth-child(6) {
    transition-delay: 0.40s;
}

/* --- Logo Marquee (Associates & Clients) --- */
.logo-marquee-section {
    padding: 120px 0;
    position: relative;
    overflow: hidden;
    background-color: var(--bg-main);
    border-bottom: 1px solid var(--border-color);
}

.logo-marquee-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 50% 50%, rgba(140, 16, 7, 0.02) 0%, transparent 80%);
    pointer-events: none;
}

.logo-marquee-header {
    padding: 0 6%;
}

.logo-marquee-rows-wrapper {
    position: relative;
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 24px;
    padding: 20px 0;
}

/* Gradient fade on left and right for seamless look spanning all rows */
.logo-marquee-rows-wrapper::before,
.logo-marquee-rows-wrapper::after {
    content: "";
    height: 100%;
    width: 150px;
    position: absolute;
    top: 0;
    z-index: 5;
    pointer-events: none;
}

.logo-marquee-rows-wrapper::before {
    left: 0;
    background: linear-gradient(to right, var(--bg-main) 0%, transparent 100%);
}

.logo-marquee-rows-wrapper::after {
    right: 0;
    background: linear-gradient(to left, var(--bg-main) 0%, transparent 100%);
}

/* For client section which has a different background color, we need matching gradient overlays */
.logo-marquee-section-cream {
    background-color: var(--bg-darker) !important;
}

.logo-marquee-section-cream .logo-marquee-rows-wrapper::before {
    background: linear-gradient(to right, var(--bg-darker) 0%, transparent 100%);
}

.logo-marquee-section-cream .logo-marquee-rows-wrapper::after {
    background: linear-gradient(to left, var(--bg-darker) 0%, transparent 100%);
}

.logo-marquee-container {
    overflow: hidden;
    width: 100%;
    display: flex;
    align-items: center;
}

.logo-marquee-track-left {
    display: flex;
    width: max-content;
    gap: 40px;
    animation: marquee-scroll-left 40s linear infinite;
    align-items: center;
}

.logo-marquee-track-right {
    display: flex;
    width: max-content;
    gap: 40px;
    animation: marquee-scroll-right 40s linear infinite;
    align-items: center;
}

/* Stagger speeds for rows to create organic, premium movement */
.logo-marquee-row-1 {
    animation-duration: 38s;
}

.logo-marquee-row-2 {
    animation-duration: 46s;
}

.logo-marquee-row-3 {
    animation-duration: 42s;
}

/* Pause scroll when hovering over container */
.logo-marquee-rows-wrapper:hover .logo-marquee-track-left,
.logo-marquee-rows-wrapper:hover .logo-marquee-track-right {
    animation-play-state: paused;
}

.logo-marquee-item {
    flex-shrink: 0;
    width: 220px;
    height: 110px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 14px;
    background: #ffffff;
    border: 1px solid rgba(140, 16, 7, 0.08);
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(62, 7, 3, 0.02);
    transition: var(--transition-smooth);
}

.logo-marquee-item:hover {
    transform: translateY(-4px) scale(1.03);
    background: #ffffff;
    border-color: rgba(140, 16, 7, 0.3);
    box-shadow: 0 12px 28px rgba(140, 16, 7, 0.08);
}

.logo-marquee-item img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    filter: none;
    opacity: 0.9;
    transition: var(--transition-smooth);
}

.logo-marquee-item:hover img {
    opacity: 1;
}

/* Unique Logo Highlight and Enlarge */
.logo-marquee-item.logo-highlight-unique {
    border: 1.5px solid var(--color-cyan) !important;
    background: #ffffff !important;
    box-shadow: 0 4px 18px rgba(140, 16, 7, 0.12) !important;
    padding: 8px !important;
}

.logo-marquee-item.logo-highlight-unique img {
    transform: scale(1.15);
    opacity: 1 !important;
}

.logo-marquee-item.logo-highlight-unique:hover img {
    transform: scale(1.22);
}


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

    100% {
        transform: translateX(-50%);
    }
}

@keyframes marquee-scroll-right {
    0% {
        transform: translateX(-50%);
    }

    100% {
        transform: translateX(0);
    }
}

/* Adjust animation speeds and responsiveness */
@media (max-width: 768px) {
    .logo-marquee-section {
        padding: 80px 0;
    }

    .logo-marquee-rows-wrapper {
        gap: 16px;
    }

    .logo-marquee-item {
        width: 160px;
        height: 80px;
        padding: 10px;
    }

    .logo-marquee-track-left,
    .logo-marquee-track-right {
        gap: 20px;
    }

    .logo-marquee-row-1 {
        animation-duration: 25s;
    }

    .logo-marquee-row-2 {
        animation-duration: 32s;
    }

    .logo-marquee-row-3 {
        animation-duration: 28s;
    }

    .logo-marquee-rows-wrapper::before,
    .logo-marquee-rows-wrapper::after {
        width: 80px;
    }
}

/* --- Success Modal (Green, Clean & Professional) --- */
.modal-overlay {
    position: fixed;
    inset: 0;
    background-color: rgba(10, 12, 11, 0.93);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 1000000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.modal-overlay.is-active {
    opacity: 1;
    pointer-events: all;
}

.modal-card {
    background: rgba(15, 25, 20, 0.95);
    border: 1.5px solid rgba(46, 184, 114, 0.35);
    box-shadow: 0 0 40px rgba(46, 184, 114, 0.15);
    border-radius: 16px;
    padding: 40px 30px;
    max-width: 460px;
    width: 90%;
    text-align: center;
    position: relative;
    transform: scale(0.9);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.modal-overlay.is-active .modal-card {
    transform: scale(1);
}

.modal-close {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 28px;
    font-weight: 300;
    color: var(--text-muted);
    cursor: pointer;
    transition: color 0.2s;
    line-height: 1;
}

.modal-close:hover {
    color: #ffffff;
}

.success-icon-wrap {
    width: 76px;
    height: 76px;
    background: rgba(46, 184, 114, 0.1);
    border: 2px solid #2ecc71;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
    font-size: 38px;
    color: #2ecc71;
    box-shadow: 0 0 20px rgba(46, 184, 114, 0.2);
    animation: successPulse 2s infinite alternate;
}

@keyframes successPulse {
    0% {
        transform: scale(1);
        box-shadow: 0 0 15px rgba(46, 184, 114, 0.2);
    }
    100% {
        transform: scale(1.06);
        box-shadow: 0 0 25px rgba(46, 184, 114, 0.4);
    }
}

.modal-card h2 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 16px;
    color: #2ecc71;
    letter-spacing: -0.5px;
}

.modal-card p {
    font-size: 15px;
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 24px;
}

/* Professional Green Button */
.btn-green-modal {
    background-color: #2ecc71;
    color: #ffffff;
    border: none;
    border-radius: 8px;
    padding: 12px 24px;
    font-size: 15px;
    font-weight: 600;
    font-family: 'Space Grotesk', sans-serif;
    cursor: pointer;
    transition: background-color 0.2s, transform 0.2s, box-shadow 0.2s;
    box-shadow: 0 4px 15px rgba(46, 184, 114, 0.25);
    margin-top: 20px;
    width: 100%;
}

.btn-green-modal:hover {
    background-color: #27ae60;
    box-shadow: 0 6px 20px rgba(46, 184, 114, 0.4);
    transform: translateY(-1px);
}

.btn-green-modal:active {
    transform: translateY(0);
}
