/* =====================================================
   Linga's Technologies — Revamped Stylesheet
   Aesthetic: Dark Cyber-Industrial + Crimson Pulse
   Icons: Tabler Icons (via CDN, loaded in header.php)
   Font: Syne (display) + DM Sans (body)
   ===================================================== */

@import url('https://fonts.googleapis.com/css2?family=Syne:wght@400;600;700;800&family=Playfair+Display:ital,wght@0,700;0,800;0,900;1,700;1,800&family=DM+Sans:wght@300;400;500;600&display=swap');

/* ── Variables ─────────────────────────────────────── */
:root {
    --red:          #e63946;
    --red-dark:     #b52d38;
    --red-glow:     rgba(230, 57, 70, 0.35);
    --red-dim:      rgba(230, 57, 70, 0.12);

    --bg-void:      #030508;
    --bg-deep:      #07090f;
    --bg-base:      #0d1120;
    --bg-raised:    #141928;
    --bg-card:      #181e2e;
    --bg-light:     #f4f5f7;
    --bg-white:     #ffffff;

    --text-bright:  #f0f2f8;
    --text-muted:   rgba(240, 242, 248, 0.55);
    --text-dark:    #1a1e2e;
    --text-mid:     #444c6a;

    --border-dark:  rgba(230, 57, 70, 0.18);
    --border-light: #e2e4ea;

    --font-display: 'Syne', sans-serif;
    --font-heading: 'Playfair Display', serif;
    --font-body:    'DM Sans', sans-serif;

    --radius:       10px;
    --radius-lg:    16px;
    --radius-pill:  999px;

    --shadow-card:  0 4px 24px rgba(0,0,0,0.35);
    --shadow-glow:  0 0 30px rgba(230, 57, 70, 0.25);
    --shadow-hover: 0 12px 40px rgba(230, 57, 70, 0.3);
}

/* ── Reset ─────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; width: 100%; overflow-x: hidden; }

body {
    font-family: var(--font-body);
    background:
        radial-gradient(rgba(230,57,70,.09) 1px, transparent 1px),
        var(--bg-void);
    background-size: 32px 32px, auto;
    background-attachment: fixed, fixed;
    color: var(--text-bright);
    line-height: 1.6;
}

/* ── Scroll behaviour ──────────────────────────────── */
html { scroll-behavior: smooth; }

/* ── Content wrapper ───────────────────────────────── */
.content { max-width: 100%; margin: 0; padding: 0; }

/* ── Fade-in ────────────────────────────────────────── */
.fade-in { animation: fadeUp .7s cubic-bezier(.22,.68,0,1.2) both; }
@keyframes fadeUp {
    from { opacity: 0; transform: translateY(20px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* =====================================================
   HEADER
   ===================================================== */
.main-header {
    position: fixed;
    top: 0; left: 0; right: 0;
    background: transparent;
    padding: .5rem 0;
    z-index: 1000;
    transition: transform .3s ease;
}
.main-header.header-hidden { transform: translateY(-100%); }

.header-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 60px;
}

/* Logo */
.logo-section { z-index: 1001; }
.logo-link { text-decoration: none; display: flex; align-items: center; gap: .75rem; }
.logo-image {
    height: 44px;
    width: auto;
    filter: drop-shadow(0 0 8px rgba(192,192,192,.5));
    transition: filter .3s ease;
}
.logo-link:hover .logo-image { filter: drop-shadow(0 0 18px var(--red)); }

/* Nav */
.main-nav { display: flex; }
.nav-list { display: flex; list-style: none; margin: 0; padding: 0; gap: 0; }

.nav-link {
    display: block;
    padding: .5rem 1.1rem;
    color: var(--text-muted);
    text-decoration: none;
    font-family: var(--font-display);
    font-size: .8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .08em;
    position: relative;
    transition: color .25s;
}
.nav-link::after {
    content: '';
    position: absolute;
    bottom: -1px; left: 50%; right: 50%;
    height: 2px;
    background: var(--red);
    transition: left .25s, right .25s;
}
.nav-link:hover, .nav-link.active { color: var(--text-bright); }
.nav-link:hover::after, .nav-link.active::after { left: 1.1rem; right: 1.1rem; }
.nav-link.active { color: var(--red); }

/* Mobile toggle */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 40px; height: 40px;
    background: none;
    border: 1px solid var(--border-dark);
    border-radius: var(--radius);
    cursor: pointer;
    padding: 8px;
}
.hamburger-line {
    display: block;
    width: 100%; height: 2px;
    background: var(--text-bright);
    border-radius: 2px;
    transition: transform .3s, opacity .3s;
}
.mobile-menu-toggle.active .hamburger-line:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.mobile-menu-toggle.active .hamburger-line:nth-child(2) { opacity: 0; }
.mobile-menu-toggle.active .hamburger-line:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile overlay */
.mobile-nav-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(3, 5, 8, .97);
    z-index: 999;
    align-items: center;
    justify-content: center;
}
.mobile-nav-overlay.active { display: flex; }
.mobile-nav-list { list-style: none; text-align: center; padding: 0; margin: 0; }
.mobile-nav-item { margin: 1.25rem 0; }
.mobile-nav-link {
    font-family: var(--font-display);
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--text-muted);
    text-decoration: none;
    letter-spacing: .05em;
    text-transform: uppercase;
    transition: color .2s;
}
.mobile-nav-link:hover, .mobile-nav-link.active { color: var(--red); }

@media (max-width: 900px) {
    .main-nav { display: none; }
    .mobile-menu-toggle { display: flex; }
}

/* =====================================================
   LOADING SCREEN
   ===================================================== */
.loading-screen {
    position: fixed; inset: 0;
    background: var(--bg-void);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: opacity .4s ease;
}
.loading-screen.hidden { opacity: 0; pointer-events: none; }
.spinner {
    width: 44px; height: 44px;
    border: 3px solid rgba(230,57,70,.15);
    border-top-color: var(--red);
    border-radius: 50%;
    animation: spin .75s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* =====================================================
   HEADING TEXT (formerly "glitch" — now a steady, modern look)
   ===================================================== */
.glitch { position: relative; }

/* =====================================================
   CIRCUIT DIVIDER
   ===================================================== */
.circuit-divider {
    width: 100%;
    height: 80px;
    background: linear-gradient(to bottom, var(--bg-base), var(--bg-light));
}
.circuit-divider svg { width: 100%; height: 100%; }

/* =====================================================
   SECTION HEADER
   ===================================================== */
.section-header {
    text-align: center;
    margin-bottom: 3.5rem;
}

.cyber-title {
    font-family: var(--font-heading);
    font-size: 2.6rem;
    font-weight: 800;
    color: var(--text-dark);
    text-transform: uppercase;
    letter-spacing: .04em;
    margin-bottom: .75rem;
    display: inline-block;
    position: relative;
}
.cyber-title::after {
    content: '';
    position: absolute;
    bottom: -8px; left: 0; right: 0;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--red), transparent);
}

/* Dark-background variant */
.section-header.light .cyber-title { color: var(--text-bright); }

.title-line {
    width: 80px; height: 3px;
    background: var(--red);
    margin: 1rem auto 0;
    border-radius: 2px;
    position: relative;
}
.title-line::before, .title-line::after {
    content: '';
    position: absolute;
    width: 7px; height: 7px;
    background: var(--red);
    border-radius: 50%;
    top: 50%; transform: translateY(-50%);
}
.title-line::before { left: -14px; }
.title-line::after  { right: -14px; }

/* =====================================================
   PAGE HERO (inner pages)
   ===================================================== */
.page-hero {
    position: relative;
    padding: 3.5rem 2rem 2.75rem;
    min-height: 460px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-deep) center / cover no-repeat;
    text-align: center;
    overflow: hidden;
}
/* Dark tint over the background photo so heading/text stay legible.
   Previously unstyled — now doing real work now that inner pages use
   photos instead of the animated smoke canvas. */
.hero-overlay {
    position: absolute; inset: 0;
    background: linear-gradient(180deg, rgba(3,5,8,.72) 0%, rgba(3,5,8,.55) 55%, rgba(3,5,8,.75) 100%);
    z-index: 1;
}

/* Subtle vignette so text stays legible over the animated smoke canvas */
.page-hero::before {
    content: '';
    position: absolute; inset: 0;
    background: radial-gradient(ellipse at center, transparent 35%, rgba(3,5,8,.55) 100%);
    pointer-events: none;
    z-index: 1;
}

/* Bottom fade into circuit-divider */
.page-hero::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0; right: 0;
    height: 80px;
    background: linear-gradient(to bottom, transparent, var(--bg-base));
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 760px;
    margin: 0 auto;
}

.hero-content h1 {
    font-family: var(--font-heading);
    font-size: 3.8rem;
    font-weight: 800;
    color: var(--text-bright);
    text-transform: uppercase;
    letter-spacing: .06em;
    margin-bottom: 1.25rem;
    text-shadow: 0 0 40px var(--red-glow);
}

.hero-content p {
    font-size: 1.15rem;
    color: var(--text-muted);
    margin: 0;
    letter-spacing: .02em;
    max-width: 560px;
    margin: 0 auto;
}

/* =====================================================
   HERO CAROUSEL (homepage)
   ===================================================== */
.hero-carousel {
    position: relative;
    width: 100%;
    height: 560px;
    overflow: hidden;
    background: var(--bg-void);
}
.carousel-container { position: relative; width: 100%; height: 100%; }

.carousel-slide {
    position: absolute;
    width: 100%; height: 100%;
    opacity: 0;
    transition: opacity 1s ease-in-out;
}
.carousel-slide.active { opacity: 1; }

.slide-content {
    position: relative;
    width: 100%; height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Each slide has its own subtle tinted background via inline or per-nth-child */
.carousel-slide:nth-child(1) .slide-content {
    background: radial-gradient(ellipse at 30% 60%, rgba(230,57,70,.12) 0%, transparent 60%),
                radial-gradient(ellipse at 80% 30%, rgba(0,229,255,.06) 0%, transparent 50%),
                var(--bg-void);
}
.carousel-slide:nth-child(2) .slide-content {
    background: radial-gradient(ellipse at 70% 40%, rgba(230,57,70,.1) 0%, transparent 60%),
                radial-gradient(ellipse at 20% 70%, rgba(0,229,255,.05) 0%, transparent 50%),
                var(--bg-void);
}
.carousel-slide:nth-child(3) .slide-content {
    background: radial-gradient(ellipse at 50% 50%, rgba(230,57,70,.13) 0%, transparent 55%),
                var(--bg-void);
}

/* Grid overlay */
.slide-content::before {
    content: '';
    position: absolute; inset: 0;
    background-image:
        linear-gradient(rgba(230,57,70,.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(230,57,70,.04) 1px, transparent 1px);
    background-size: 40px 40px;
    pointer-events: none;
}

.slide-overlay {
    position: absolute; inset: 0;
    background: radial-gradient(ellipse at center, transparent 30%, rgba(3,5,8,.6) 100%);
}

.slide-text {
    position: relative;
    text-align: center;
    z-index: 2;
    padding: 2rem;
    max-width: 780px;
}

/* Eyebrow label above each slide heading */
.slide-eyebrow {
    display: inline-block;
    font-family: var(--font-display);
    font-size: .75rem;
    font-weight: 600;
    letter-spacing: .15em;
    text-transform: uppercase;
    color: var(--red);
    background: var(--red-dim);
    border: 1px solid rgba(230,57,70,.3);
    border-radius: var(--radius-pill);
    padding: 4px 14px;
    margin-bottom: 1.5rem;
}

.slide-text h1 {
    font-family: var(--font-heading);
    font-size: 3.8rem;
    font-weight: 800;
    color: var(--text-bright);
    margin-bottom: 1.25rem;
    text-transform: uppercase;
    letter-spacing: .05em;
    text-shadow: 0 0 40px var(--red-glow);
    line-height: 1.1;
}

.slide-text p {
    font-size: 1.15rem;
    color: var(--text-muted);
    margin: 0 auto 2rem;
    max-width: 540px;
    letter-spacing: .02em;
}

/* Slide action buttons */
.slide-actions { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

/* Stats strip beneath carousel */
.hero-stats-strip {
    display: flex;
    justify-content: center;
    gap: 0;
    background: var(--bg-base);
    border-top: 1px solid var(--border-dark);
    border-bottom: 1px solid var(--border-dark);
}
.stat-block {
    flex: 1;
    max-width: 220px;
    padding: 1.5rem 1rem;
    text-align: center;
    border-right: 1px solid var(--border-dark);
    position: relative;
}
.stat-block:last-child { border-right: none; }
.stat-num {
    font-family: var(--font-display);
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--red);
    display: block;
    line-height: 1;
}
.stat-label {
    font-size: .75rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: .1em;
    color: var(--text-muted);
    margin-top: .3rem;
    display: block;
}

/* Carousel controls */
.carousel-control {
    position: absolute;
    top: 50%; transform: translateY(-50%);
    background: rgba(230,57,70,.12);
    border: 1px solid rgba(230,57,70,.35);
    color: var(--text-bright);
    width: 46px; height: 46px;
    border-radius: 50%;
    cursor: pointer;
    z-index: 3;
    backdrop-filter: blur(8px);
    transition: background .3s, box-shadow .3s;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.1rem;
}
.carousel-control:hover { background: var(--red); box-shadow: var(--shadow-glow); }
.carousel-control.prev { left: 2rem; }
.carousel-control.next { right: 2rem; }

.carousel-indicators {
    position: absolute;
    bottom: 1.5rem; left: 50%;
    transform: translateX(-50%);
    display: flex; gap: .75rem; z-index: 3;
}
.indicator {
    width: 28px; height: 3px;
    border-radius: 2px;
    background: rgba(230,57,70,.3);
    cursor: pointer;
    transition: background .3s, width .3s;
    border: none;
}
.indicator.active, .indicator:hover { background: var(--red); }

/* =====================================================
   BUTTONS
   ===================================================== */
.btn-cyber {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    padding: .85rem 2rem;
    border-radius: var(--radius);
    font-family: var(--font-display);
    font-size: .82rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .08em;
    text-decoration: none;
    cursor: pointer;
    border: 1.5px solid var(--red);
    transition: transform .25s, box-shadow .25s, background .25s, color .25s;
    position: relative;
    overflow: hidden;
}
.btn-cyber.primary {
    background: var(--red);
    color: #fff;
}
.btn-cyber.primary:hover {
    background: var(--red-dark);
    box-shadow: var(--shadow-hover);
    transform: translateY(-2px);
}
.btn-cyber.secondary {
    background: transparent;
    color: var(--text-bright);
}
.btn-cyber.secondary:hover {
    background: var(--red);
    color: #fff;
    box-shadow: var(--shadow-hover);
    transform: translateY(-2px);
}

/* =====================================================
   VALUE CARDS  (dark bg)
   ===================================================== */
.core-values {
    background: var(--bg-deep);
    padding: 5rem 2rem;
}
.core-values .section-header { margin-bottom: 3.5rem; }
.core-values .cyber-title { color: var(--text-bright); }

.values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.5rem;
    max-width: 1200px;
    margin: 0 auto;
}

.value-card {
    position: relative;
    background: var(--bg-card);
    border: 1px solid var(--border-dark);
    border-radius: var(--radius-lg);
    padding: 2.5rem 2rem;
    text-align: center;
    transition: transform .3s, border-color .3s, box-shadow .3s;
    overflow: hidden;
}

/* Top accent bar */
.value-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--red), rgba(230,57,70,0));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform .35s ease;
}
.value-card:hover::before { transform: scaleX(1); }
.value-card:hover {
    transform: translateY(-6px);
    border-color: rgba(230,57,70,.45);
    box-shadow: var(--shadow-hover);
}

/* Icon — Tabler icon in a hex-ish shape */
.value-icon {
    width: 72px; height: 72px;
    margin: 0 auto 1.5rem;
    background: var(--red-dim);
    border: 1.5px solid rgba(230,57,70,.35);
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;      /* font-awesome fallback */
    color: var(--red);
    transition: background .3s, color .3s, transform .3s;
    position: relative;
    z-index: 2;
}
/* Tabler icon size */
.value-icon svg { width: 36px; height: 36px; stroke: var(--red); stroke-width: 1.5; transition: stroke .3s; }
.value-card:hover .value-icon { background: var(--red); transform: scale(1.08) rotate(3deg); }
.value-card:hover .value-icon svg { stroke: #fff; }
.value-card:hover .value-icon i { color: #fff; }

.value-card h3 {
    font-family: var(--font-display);
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text-bright);
    margin: 0 0 .75rem;
    text-transform: uppercase;
    letter-spacing: .05em;
    position: relative; z-index: 2;
}

.value-card p {
    font-size: .9rem;
    color: var(--text-muted);
    margin: 0;
    line-height: 1.65;
    position: relative; z-index: 2;
}

/* Light bg variant (used on about, services alt-bg) */
.value-card.light {
    background: var(--bg-white);
    border-color: var(--border-light);
}
.value-card.light h3 { color: var(--text-dark); }
.value-card.light p  { color: var(--text-mid); }

/* =====================================================
   SUPPLY / ACTIVITY CARDS (light bg sections)
   ===================================================== */
.it-supplies {
    background: var(--bg-light);
    padding: 5rem 0;
}
.it-supplies .section-header,
.it-supplies .supplies-grid {
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    padding: 0 2rem;
}
.it-supplies .cyber-title { color: var(--text-dark); }

.supplies-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

.supply-card {
    position: relative;
    background: var(--bg-white);
    border: 1.5px solid var(--border-light);
    border-radius: var(--radius-lg);
    padding: 2.5rem 2rem;
    text-align: center;
    transition: transform .3s, border-color .3s, box-shadow .3s;
    overflow: hidden;
}

/* Sweep shimmer */
.supply-card::after {
    content: '';
    position: absolute;
    top: 0; left: -100%; width: 60%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(230,57,70,.06), transparent);
    transition: left .55s ease;
}
.supply-card:hover::after { left: 140%; }
.supply-card:hover {
    transform: translateY(-5px);
    border-color: rgba(230,57,70,.4);
    box-shadow: 0 10px 32px rgba(230,57,70,.12);
}

.supply-icon {
    width: 68px; height: 68px;
    margin: 0 auto 1.5rem;
    background: var(--red-dim);
    border: 1.5px solid rgba(230,57,70,.3);
    border-radius: 16px;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.8rem;
    color: var(--red);
    transition: background .3s, color .3s, transform .3s;
}
.supply-icon svg { width: 34px; height: 34px; stroke: var(--red); stroke-width: 1.5; transition: stroke .3s; }
.supply-card:hover .supply-icon { background: var(--red); color: #fff; transform: rotateY(180deg); }
.supply-card:hover .supply-icon svg { stroke: #fff; }
.supply-card:hover .supply-icon i { color: #fff; }

.supply-card h3 {
    font-family: var(--font-display);
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text-dark);
    margin: 0 0 .75rem;
    text-transform: uppercase;
    letter-spacing: .04em;
}
.supply-card p {
    font-size: .88rem;
    color: var(--text-mid);
    line-height: 1.6;
    margin: 0 0 1rem;
}

.supply-line {
    width: 48px; height: 2px;
    background: var(--red);
    margin: 0 auto;
    border-radius: 2px;
    position: relative;
}
.supply-line::before, .supply-line::after {
    content: '';
    position: absolute;
    width: 5px; height: 5px;
    background: var(--red);
    border-radius: 50%;
    top: 50%; transform: translateY(-50%);
}
.supply-line::before { left: -9px; }
.supply-line::after  { right: -9px; }

/* =====================================================
   CTA SECTION
   ===================================================== */
.cta-section-cyber {
    position: relative;
    background: var(--bg-void);
    padding: 3.5rem 2rem;
    text-align: center;
    overflow: hidden;
    width: 100%;
}

/* Animated background grid */
.cta-section-cyber::before {
    content: '';
    position: absolute; inset: 0;
    background-image:
        linear-gradient(rgba(230,57,70,.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(230,57,70,.05) 1px, transparent 1px);
    background-size: 48px 48px;
    pointer-events: none;
    animation: gridDrift 20s linear infinite;
}
@keyframes gridDrift {
    from { background-position: 0 0; }
    to   { background-position: 48px 48px; }
}

/* Red glow blob */
.cta-section-cyber::after {
    content: '';
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    width: 600px; height: 300px;
    background: radial-gradient(ellipse, rgba(230,57,70,.12) 0%, transparent 70%);
    pointer-events: none;
}

.cta-circuit-bg { position: absolute; inset: 0; opacity: .2; pointer-events: none; }

.cta-content {
    position: relative;
    z-index: 2;
    max-width: 720px;
    margin: 0 auto;
    padding: 0 2rem;
}
.cta-content h2 {
    font-family: var(--font-display);
    font-size: 3rem;
    font-weight: 800;
    color: var(--text-bright);
    margin-bottom: 1.25rem;
    text-transform: uppercase;
    letter-spacing: .04em;
    text-shadow: 0 0 30px var(--red-glow);
}
.cta-content p {
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-bottom: 2.75rem;
}
.cta-actions { display: flex; gap: 1.25rem; justify-content: center; flex-wrap: wrap; }

/* =====================================================
   ABOUT — STORY SECTION
   ===================================================== */
.about-story {
    max-width: 100%;
    margin: 0;
    padding: 5rem 2rem;
    background: var(--bg-white);
}
.about-story .section-header { max-width: 900px; margin-left: auto; margin-right: auto; }
.story-content {
    max-width: 900px;
    margin: 0 auto;
    line-height: 1.85;
}
.story-content p { color: #333; font-size: 1.05rem; margin-bottom: 1.5rem; }
.story-content p:last-child { margin-bottom: 0; }

/* =====================================================
   SERVICES — alternating image/text rows
   ===================================================== */
.service-row-wrap { width: 100%; background: var(--bg-white); }
.service-row-wrap.alt { background: var(--bg-light); }

.service-row {
    display: flex;
    align-items: center;
    gap: 3.5rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 3.5rem 2rem;
}
.service-row.reverse { flex-direction: row-reverse; }

.service-row-media {
    flex: 1 1 44%;
    aspect-ratio: 4 / 3;
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: var(--red-dim);
    position: relative;
}
.service-row-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.service-row-media-fallback {
    position: absolute; inset: 0;
    align-items: center; justify-content: center;
    font-size: 3rem; color: var(--red);
}

.service-row-body { flex: 1 1 56%; }
.service-row-icon {
    width: 54px; height: 54px;
    border-radius: 12px;
    background: var(--red-dim);
    color: var(--red);
    display: flex; align-items: center; justify-content: center;
    font-size: 1.4rem;
    margin-bottom: 1.25rem;
}
.service-row-body .cyber-title { font-size: 1.7rem; margin-bottom: 1rem; }
.service-row-body > p { color: var(--text-mid); line-height: 1.7; margin-bottom: 1.5rem; }

.service-row-list { list-style: none; margin: 0; padding: 0; display: grid; gap: .8rem; }
.service-row-list li {
    display: flex; align-items: flex-start; gap: .6rem;
    color: var(--text-mid); font-size: .92rem; line-height: 1.55;
}
.service-row-list li i { color: var(--red); margin-top: .2rem; flex-shrink: 0; }
.service-row-list li strong { color: var(--text-dark); }

@media (max-width: 900px) {
    .service-row, .service-row.reverse { flex-direction: column; gap: 1.75rem; padding: 2.75rem 1.5rem; }
    .service-row-media { width: 100%; aspect-ratio: 16 / 9; }
}

/* =====================================================
   SERVICE DETAIL SECTIONS (legacy — no longer used by
   services.php, kept only in case older markup references it)
   ===================================================== */
.service-detail {
    max-width: 1200px;
    margin: 5rem auto;
    padding: 0 2rem;
}
.service-detail.alt-bg {
    max-width: 100%;
    margin: 0;
    padding: 5rem 2rem;
    background: var(--bg-light);
}
.service-detail.alt-bg .section-header,
.service-detail.alt-bg .detail-content {
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}
.service-detail.alt-bg .cyber-title { color: var(--text-dark); }
.service-detail .cyber-title { color: var(--text-dark); }

.detail-content > p {
    text-align: center;
    color: var(--text-mid);
    font-size: 1.05rem;
    margin-bottom: 2.5rem;
    line-height: 1.7;
}

/* Services overview grid — 3 cols */
.services-overview-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-top: 2rem;
}

/* =====================================================
   PROJECTS
   ===================================================== */
.projects-section {
    width: 100%;
    padding: 5rem 2rem;
    background: var(--bg-white);
}
.projects-section .cyber-title { color: var(--text-dark); }
.projects-grid { max-width: 1200px; margin-left: auto; margin-right: auto; }

.project-stats {
    padding: 5rem 2rem;
    background: var(--bg-light);
}
.project-stats .section-header,
.project-stats .values-grid {
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}
.project-stats .cyber-title { color: var(--text-dark); }
.stat-card h3 { font-family: var(--font-display); font-size: 2.8rem; color: var(--red); margin: 1rem 0 .4rem; font-weight: 800; }
.stat-card p  { color: var(--text-mid); font-size: 1rem; font-weight: 500; }

/* =====================================================
   FORM VALIDATION
   ===================================================== */
.form-group.error input,
.form-group.error textarea,
.form-group.error select { border-color: var(--red) !important; }
.form-group.valid input,
.form-group.valid textarea,
.form-group.valid select { border-color: #28a745 !important; }
.error-message { display: block; font-size: .8rem; color: var(--red); margin-top: .25rem; }

/* ── Global text-overflow safety net ─────────────────────────────── */
/* overflow-wrap alone only breaks a word if it truly has nowhere else
   to go (last resort) — word-break:break-word was too aggressive here
   and was splitting words like "CYBERSECURITY" mid-word instead of
   just wrapping the whole word to the next line. */
h1, h2, h3, h4, p, .nav-link, .project-body h3, .value-card h3, .supply-card h3 {
    overflow-wrap: break-word;
}

/* =====================================================
   RESPONSIVE
   ===================================================== */
@media (max-width: 1024px) {
    .services-overview-grid { grid-template-columns: repeat(2,1fr); }
}
@media (max-width: 768px) {
    .hero-carousel { height: 460px; }
    .slide-text h1 { font-size: 2.4rem; }
    .hero-content h1 { font-size: 2.4rem; }
    .cyber-title { font-size: 1.9rem; }
    .values-grid, .supplies-grid { grid-template-columns: 1fr; }
    .core-values, .it-supplies { padding: 3rem 1rem; }
    .cta-section-cyber { padding: 5rem 1rem; }
    .cta-content h2 { font-size: 2rem; }
    .cta-actions { flex-direction: column; align-items: center; }
    .btn-cyber { width: 100%; max-width: 300px; justify-content: center; }
    .story-content { padding: 2rem; }
    .service-detail { margin: 3rem auto; }
    .service-detail.alt-bg { padding: 3rem 1rem; }
    .services-overview-grid { grid-template-columns: 1fr; }
    .hero-stats-strip { flex-wrap: wrap; }
    .stat-block { min-width: 120px; border-right: none; border-bottom: 1px solid var(--border-dark); }
    .stat-block:last-child { border-bottom: none; }
    .header-container { padding: 0 1rem; }

    /* Project cards: stop fighting for horizontal space, stack instead */
    .project-card-inner { flex-direction: column; text-align: center; gap: 1rem; padding: 1.5rem; }
    .project-body { text-align: center; width: 100%; }
    .project-link { width: 100%; justify-content: center; }

    /* Page hero (About/Services/Contact/Projects/Terms/Privacy) */
    .page-hero { padding: 2.75rem 1.25rem 2.25rem; min-height: 340px; }
    .hero-content { max-width: 100%; }
    .hero-content p { font-size: 1rem; }

    /* Legal pages */
    .legal-section { margin: 2.5rem auto; padding: 0 1.25rem; }
    .legal-content h2 { font-size: 1.05rem; }

    /* Project detail page */
    .project-detail-card { padding: 2rem 1.5rem; }
    .project-detail-actions { flex-direction: column; align-items: stretch; }
    .project-detail-actions a { justify-content: center; }

    /* Contact form card */
    .form-card-header { flex-wrap: wrap; }
    .contact-method { flex-wrap: wrap; }
}
@media (max-width: 480px) {
    .hero-carousel { height: 400px; }
    .slide-text h1 { font-size: 1.9rem; letter-spacing: .02em; }
    .hero-content h1 { font-size: 1.9rem; letter-spacing: .02em; }
    .cyber-title { font-size: 1.5rem; }
    .slide-eyebrow, .hero-content > p:first-of-type { font-size: .7rem; }
    .cta-content h2 { font-size: 1.6rem; }

    /* Business/project cards */
    .project-favicon { width: 60px; height: 60px; }
    .value-card, .supply-card { padding: 1.5rem 1.25rem; }

    /* Footer logo/columns tighten on very small phones */
    .cookie-banner { padding: .85rem 1rem; }
}

/* Extra-small phones (older/budget devices, ~360px and under) */
@media (max-width: 380px) {
    .hero-content h1, .slide-text h1 { font-size: 1.55rem; }
    .cyber-title { font-size: 1.3rem; }
    .page-hero { padding: 2.25rem 1rem 2rem; min-height: 260px; }
    .btn-cyber, .card-btn { font-size: .7rem; padding: .75rem 1rem; }
    .project-card-inner { padding: 1.25rem; }
    .form-card-header { padding: 1rem 1.25rem; }
    .contact-form { padding: 1.25rem; }
}

/* =====================================================
   ACCESSIBILITY
   ===================================================== */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}


/* =====================================================
   IMAGE CAROUSEL — additional styles for photo slides
   ===================================================== */
.hero-carousel {
    position: relative;
    width: 100%;
    height: 580px;
    overflow: hidden;
    background: var(--bg-void);
}
/* Very subtle glass sheen — barely-there, not a plastic shine */
.hero-carousel::after {
    content: '';
    position: absolute; inset: 0;
    background: linear-gradient(115deg,
        rgba(255,255,255,.04) 0%,
        transparent 30%,
        transparent 100%);
    mix-blend-mode: overlay;
    pointer-events: none;
    z-index: 2;
}
.carousel-track { position: relative; width: 100%; height: 100%; }

/* Slide is now a background-image div */
.carousel-slide {
    position: absolute; inset: 0;
    opacity: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    transition: opacity 1.1s ease-in-out;
    display: flex; align-items: center; justify-content: center;
}
.carousel-slide.active { opacity: 1; }

/* Dark gradient overlay so text is readable over the animated smoke canvas + photo */
.slide-overlay {
    position: absolute; inset: 0;
    background: linear-gradient(
        135deg,
        rgba(3, 5, 8, 0.80) 0%,
        rgba(3, 5, 8, 0.45) 55%,
        rgba(3, 5, 8, 0.70) 100%
    );
    z-index: 1;
}

/* Subtle dot grid on top of overlay */
.slide-grid {
    position: absolute; inset: 0;
    background-image:
        linear-gradient(rgba(230,57,70,.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(230,57,70,.04) 1px, transparent 1px);
    background-size: 40px 40px;
    pointer-events: none;
}

/* Circuit SVG layer sits above grid */
.slide-circuits {
    position: absolute; inset: 0;
    width: 100%; height: 100%;
    pointer-events: none;
    opacity: .4;
    z-index: 1;
}

/* Slide text sits above all layers */
.slide-text {
    position: relative;
    z-index: 3;
    text-align: center;
    padding: 2rem;
    max-width: 800px;
}

/* =====================================================
   SECTION CIRCUIT TRACES (between light-bg sections)
   ===================================================== */
.section-circuits {
    width: 100%;
    height: 30px;
    overflow: hidden;
}
.section-circuits svg { width: 100%; height: 100%; }

/* CTA SVG circuits layer */
.cta-circuits {
    position: absolute; inset: 0;
    width: 100%; height: 100%;
    pointer-events: none;
}

/* =====================================================
   PROJECTS — new card layout
   ===================================================== */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.75rem;
}
@media (max-width: 700px) {
    .projects-grid { grid-template-columns: 1fr; }
}
.project-card {
    border-radius: 14px;
    overflow: hidden;
    border: 1.5px solid var(--border-light);
    background: var(--bg-white);
    transition: transform .3s, border-color .3s, box-shadow .3s;
}
.project-card:hover {
    transform: translateY(-6px);
    border-color: rgba(230,57,70,.4);
    box-shadow: 0 12px 36px rgba(230,57,70,.12);
}
.project-card-inner {
    padding: 1.75rem 2rem;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 1.5rem;
}
.project-favicon {
    width: 72px; height: 72px;
    border-radius: 14px;
    background: var(--red-dim);
    border: 1.5px solid rgba(230,57,70,.22);
    display: flex; align-items: center; justify-content: center;
    overflow: hidden; flex-shrink: 0;
    padding: 6px;
    box-sizing: border-box;
}
.project-favicon img { width: 100%; height: 100%; object-fit: contain; }
.project-favicon i { font-size: 1.8rem; color: var(--red); }
.project-body { flex: 1; min-width: 0; text-align: left; }
.project-body h3 {
    font-family: var(--font-display);
    font-size: 1rem; font-weight: 700;
    color: var(--text-dark); margin: 0 0 .75rem;
    text-transform: uppercase; letter-spacing: .03em;
}
.project-body p { font-size: .88rem; color: var(--text-mid); line-height: 1.65; margin: 0; }
.project-link {
    display: inline-flex; align-items: center; gap: .5rem;
    padding: .6rem 1.3rem;
    background: var(--red); color: #fff;
    text-decoration: none; border-radius: 8px;
    font-family: var(--font-display); font-size: .75rem;
    font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
    transition: background .25s, transform .25s, box-shadow .25s;
}
.project-link i { font-size: .95rem; }
.project-link:hover {
    background: var(--red-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(230,57,70,.35);
}

/* =====================================================
   EMPTY STATE
   ===================================================== */
.empty-state {
    text-align: center; padding: 5rem 2rem;
    max-width: 460px; margin: 0 auto;
}
.empty-icon {
    width: 80px; height: 80px;
    margin: 0 auto 1.5rem;
    background: var(--red-dim);
    border: 1.5px solid rgba(230,57,70,.2);
    border-radius: 20px;
    display: flex; align-items: center; justify-content: center;
}
.empty-icon i { font-size: 2.2rem; color: var(--red); }
.empty-state h3 {
    font-family: var(--font-display); font-size: 1.4rem;
    font-weight: 700; color: var(--text-dark); margin-bottom: .75rem;
}
.empty-state p { color: var(--text-mid); font-size: .95rem; line-height: 1.7; margin-bottom: 2rem; }

/* =====================================================
   CONTACT — redesigned layout
   ===================================================== */
.contact-main { max-width: 1200px; margin: 5rem auto; padding: 0 2rem; }
.contact-container {
    display: grid;
    grid-template-columns: 1fr 1.3fr;
    gap: 3.5rem; align-items: start;
}
.contact-info-col {
    background: var(--bg-base);
    border: 1px solid var(--border-dark);
    border-radius: 16px; padding: 2.5rem;
}
.contact-col-title {
    font-family: var(--font-display);
    font-size: 1.5rem; font-weight: 700;
    color: var(--text-bright); margin: 0 0 .75rem;
    text-transform: uppercase; letter-spacing: .04em;
}
.contact-col-sub { color: var(--text-muted); font-size: .9rem; line-height: 1.7; margin: 0 0 2rem; }
.contact-methods { display: flex; flex-direction: column; gap: 1rem; }
.contact-method {
    display: flex; align-items: flex-start; gap: 1.25rem;
    padding: 1.25rem;
    background: rgba(230,57,70,.06);
    border: 1px solid var(--border-dark);
    border-radius: 10px;
    transition: border-color .3s, transform .3s, box-shadow .3s;
}
.contact-method:hover {
    border-color: rgba(230,57,70,.4);
    transform: translateX(4px);
    box-shadow: 0 4px 20px rgba(230,57,70,.15);
}
.method-icon {
    width: 44px; height: 44px;
    background: var(--red); border-radius: 10px;
    display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.method-icon i { font-size: 1.2rem; color: #fff; }
.method-details { display: flex; flex-direction: column; gap: .2rem; min-width: 0; flex: 1; }
.method-details h4 { color: var(--red); font-size: .8rem; font-weight: 700; margin: 0; text-transform: uppercase; letter-spacing: .05em; }
.method-details a, .method-details span { color: var(--text-bright); font-size: .9rem; font-weight: 500; text-decoration: none; transition: color .2s; overflow-wrap: break-word; word-break: break-word; }
.method-details a:hover { color: var(--red); }
.method-details small { color: var(--text-muted); font-size: .75rem; }
.contact-form-col { position: relative; }
.form-card { background: var(--bg-white); border: 1.5px solid var(--border-light); border-radius: 16px; overflow: hidden; box-shadow: 0 8px 40px rgba(0,0,0,.08); }
.form-card-header { display: flex; align-items: center; gap: 1rem; padding: 1.5rem 2rem; background: var(--bg-light); border-bottom: 1.5px solid var(--border-light); }
.form-card-icon { width: 44px; height: 44px; background: var(--red-dim); border: 1.5px solid rgba(230,57,70,.25); border-radius: 10px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.form-card-icon i { font-size: 1.3rem; color: var(--red); }
.form-card-header h3 { font-family: var(--font-display); font-size: 1.05rem; font-weight: 700; color: var(--text-dark); margin: 0 0 .2rem; }
.form-card-header p { font-size: .8rem; color: var(--text-mid); margin: 0; }
.form-status { margin: 1.5rem 2rem 0; padding: 1rem 1.25rem; border-radius: 8px; font-size: .88rem; line-height: 1.6; font-weight: 500; }
.form-status.success { background: #d4edda; border: 1px solid #c3e6cb; color: #155724; }
.form-status.error   { background: #f8d7da; border: 1px solid #f5c6cb; color: #721c24; }
.contact-form { padding: 2rem; display: flex; flex-direction: column; gap: 1.25rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; }
.form-group { display: flex; flex-direction: column; gap: .4rem; }
.form-group.full-width { grid-column: 1/-1; }
.form-group label { font-size: .75rem; font-weight: 600; color: var(--text-mid); text-transform: uppercase; letter-spacing: .06em; }
.form-group input, .form-group select, .form-group textarea { padding: .85rem 1rem; background: #f8f9fa; border: 1.5px solid var(--border-light); border-radius: 8px; color: var(--text-dark); font-size: .95rem; font-family: var(--font-body); outline: none; transition: border-color .2s, box-shadow .2s, background .2s; }
.form-group input:focus, .form-group select:focus, .form-group textarea:focus { border-color: var(--red); box-shadow: 0 0 0 3px rgba(230,57,70,.1); background: #fff; }
.form-group input.invalid, .form-group select.invalid, .form-group textarea.invalid { border-color: var(--red) !important; }
.form-group textarea { resize: vertical; min-height: 130px; }
.field-error { display: block; font-size: .75rem; color: var(--red); margin-top: .25rem; }
.submit-btn { display: flex; align-items: center; justify-content: center; gap: .6rem; width: 100%; padding: 1.1rem; background: linear-gradient(135deg, var(--red), var(--red-dark)); border: none; border-radius: 8px; color: #fff; font-family: var(--font-display); font-size: .85rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; cursor: pointer; transition: transform .25s, box-shadow .25s, opacity .25s; }
.submit-btn i { font-size: 1rem; }
.submit-btn:hover:not(:disabled) { transform: translateY(-2px); box-shadow: 0 8px 28px rgba(230,57,70,.4); }
.submit-btn:disabled { opacity: .6; cursor: not-allowed; transform: none !important; }
.why-choose-us { background: var(--bg-light); padding: 5rem 2rem; }
.why-choose-us .section-header, .why-choose-us .values-grid { max-width: 1200px; margin-left: auto; margin-right: auto; }
.why-choose-us .cyber-title { color: var(--text-dark); }

/* =====================================================
   VALUE CARD — Tabler icon i element support
   (adds to existing .value-icon rules)
   ===================================================== */
.value-icon i { font-size: 2rem; color: var(--red); transition: color .3s; }
.value-card:hover .value-icon i { color: #fff; }
.supply-icon i { font-size: 1.9rem; color: var(--red); transition: color .3s, transform .3s; }
.supply-card:hover .supply-icon i { color: #fff; transform: scale(1.1); }

/* =====================================================
   STAT CARD numbers
   ===================================================== */
.stat-card .stat-num-big {
    font-family: var(--font-display);
    font-size: 2.8rem; font-weight: 800;
    color: var(--red); margin: .75rem 0 .25rem; display: block;
}
.stat-card p { color: var(--text-mid); font-size: .95rem; font-weight: 500; }

/* =====================================================
   CONTACT RESPONSIVE ADDITIONS
   ===================================================== */
@media (max-width: 1024px) { .contact-container { grid-template-columns: 1fr; } }
@media (max-width: 640px) {
    .contact-main { margin: 3rem auto; }
    .form-row { grid-template-columns: 1fr; }
    .contact-form { padding: 1.5rem; }
    .contact-info-col { padding: 1.75rem; }
    .form-card-header { padding: 1.25rem 1.5rem; }
    .projects-grid { grid-template-columns: 1fr; }
}

/* =====================================================
   ANIMATED SMOKE CANVAS (WebGL) — sits behind the dark
   overlay/vignette and text on every hero section
   ===================================================== */
.hero-smoke-canvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    display: block;
    z-index: 0;
    pointer-events: none;
}
.slide-video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
    pointer-events: none;
}
/* Inner pages (About, Services, Contact, Projects, Privacy, Terms) get a much
   fainter smoke — this leaves visual room for background photos to be added
   later without the smoke competing with them. Homepage carousel is untouched. */
.page-hero .hero-smoke-canvas {
    opacity: .25;
}