/*
Theme Name: Symbioz IT
Theme URI: https://symbiozit.com
Author: Symbioz IT
Author URI: https://symbiozit.com
Description: Custom premium theme for Symbioz IT — Global Technology Partner
Version: 1.0.5
Text Domain: symbiozit
*/

/* ── Navbar always on top ───────────────────────────────── */
#site-header {
    z-index: 9999 !important;
}

/* Base reset & custom properties */
:root {
    --color-primary: #6366f1;
    --color-primary-light: #818cf8;
    --color-dark: #0a0a0b;
    --color-dark-secondary: #111113;
    --color-dark-tertiary: #1a1a1f;
    --color-border: rgba(255, 255, 255, 0.08);
    --color-text: #f5f5f7;
    --color-text-secondary: #a1a1aa;
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

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

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-sans);
    line-height: 1.6;
    overflow-x: hidden;
    transition: background-color 0.3s ease, color 0.3s ease;
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 6px;
}
::-webkit-scrollbar-track {
    background: var(--color-dark);
}
::-webkit-scrollbar-thumb {
    background: var(--color-border);
    border-radius: 3px;
}

/* Selection */
::selection {
    background: var(--color-primary);
    color: white;
}

/* Links */
a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s ease;
}


/* Case study rich content — paragraph spacing */
.cs-content p          { margin-top: 0; margin-bottom: 0.6rem; }
.cs-content p:last-child { margin-bottom: 0; }
.cs-content ul,
.cs-content ol         { margin: 0.5rem 0 0.6rem 1.2rem; }
.cs-content li         { margin-bottom: 0.2rem; }

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


/* Container */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* Section spacing */
.section {
    padding: 6rem 0;
}

@media (max-width: 768px) {
    .section {
        padding: 4rem 0;
    }
}

/* ══════════════════════════════════════════════════════════════════
   SERVICES SECTION
══════════════════════════════════════════════════════════════════ */

/* Section needs relative + clip so background stays contained */
#services {
    position: relative;
    overflow: hidden;
}

/* Content sits above the background layer */
.svc-content {
    position: relative;
    z-index: 10;
}

/* ── Header ─────────────────────────────────────────────────────── */
.svc-header {
    text-align: center;
    max-width: 660px;
    margin: 0 auto 4rem;
}

.svc-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-family: 'DM Sans', sans-serif;
    font-size: 0.65rem;
    font-weight: 500;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: #3796bb;
    margin-bottom: 1.5rem;
}
.svc-eyebrow::before,
.svc-eyebrow::after {
    content: '';
    display: block;
    width: 24px;
    height: 1px;
    background: rgba(55, 150, 187, 0.4);
}
html.dark .svc-eyebrow { color: #60b8d4; }

.svc-heading {
    font-family: 'DM Sans', sans-serif;
    font-size: clamp(1.9rem, 4vw, 3rem);
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -0.03em;
    color: #0a1c28;
    margin-bottom: 1.1rem;
}
html.dark .svc-heading { color: #f0f0f2; }

.svc-heading em {
    font-style: italic;
    color: #3796bb;
}
html.dark .svc-heading em { color: #60b8d4; }

.svc-intro {
    font-family: 'DM Sans', sans-serif;
    font-size: 1rem;
    font-weight: 300;
    line-height: 1.8;
    color: #5a7888;
    margin: 0;
}
html.dark .svc-intro { color: #8aadbd; }

/* ── Grid ───────────────────────────────────────────────────────── */
/* Mobile: horizontal scroll */
.svc-grid {
    display: flex;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    scroll-snap-type: x mandatory;
    gap: 14px;
    padding-bottom: 12px;
    margin-left: -24px;
    margin-right: -24px;
    padding-left: 24px;
    padding-right: 24px;
}
.svc-grid::-webkit-scrollbar { display: none; }

/* Tablet (640px+): 2-col, featured spans full width */
@media (min-width: 640px) {
    .svc-grid {
        display: grid;
        grid-template-columns: 1fr 1fr;
        overflow-x: visible;
        margin-left: 0;
        margin-right: 0;
        padding-left: 0;
        padding-right: 0;
        gap: 16px;
    }
    .svc-card--featured { grid-column: 1 / 3; }
}

/* Desktop (1024px+): asymmetric — featured left spanning 2 rows */
@media (min-width: 1024px) {
    .svc-grid {
        grid-template-columns: 1.15fr 1fr 1fr;
        grid-template-rows: 1fr 1fr;
        gap: 16px;
        align-items: stretch;
    }
    .svc-card--featured {
        grid-column: 1;
        grid-row: 1 / 3;
    }
}

/* ── Card base ──────────────────────────────────────────────────── */
.svc-card {
    position: relative;
    flex-shrink: 0;
    min-width: 260px;
    scroll-snap-align: start;

    display: flex;
    flex-direction: column;
    gap: 0;

    font-family: 'DM Sans', sans-serif;
    padding: 24px 22px;
    border-radius: 16px;
    border: 1px solid #dde8ee;
    overflow: hidden;

    /* Mouse spotlight + static color tint (JS writes --mouse-x / --mouse-y) */
    --mouse-x: -200%;
    --mouse-y: -200%;
    background:
        radial-gradient(
            380px circle at var(--mouse-x) var(--mouse-y),
            rgba(var(--svc-rgb, 55, 150, 187), 0.12),
            transparent 65%
        ),
        linear-gradient(145deg, var(--svc-bg, #eaf4fb) 0%, #ffffff 60%);

    transition: transform 0.35s cubic-bezier(.22,.68,0,1.2),
                box-shadow 0.35s ease,
                border-color 0.35s ease;
}
html.dark .svc-card {
    background:
        radial-gradient(
            380px circle at var(--mouse-x) var(--mouse-y),
            rgba(var(--svc-rgb, 55, 150, 187), 0.15),
            transparent 65%
        ),
        linear-gradient(145deg, rgba(var(--svc-rgb, 55, 150, 187), 0.13) 0%, #1e2a32 60%);
    border-color: rgba(255, 255, 255, 0.08);
}

@media (min-width: 640px) { .svc-card { min-width: 0; } }

.svc-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 24px 56px rgba(55, 150, 187, 0.12);
    border-color: rgba(55, 150, 187, 0.3);
}
html.dark .svc-card:hover {
    box-shadow: 0 24px 56px rgba(0, 0, 0, 0.4);
    border-color: rgba(55, 150, 187, 0.25);
}

/* ── Top accent line (scaleX on hover) ──────────────────────────── */
.svc-card::after {
    content: '';
    position: absolute;
    top: 0; left: 28px; right: 28px;
    height: 2px;
    border-radius: 0 0 3px 3px;
    background: var(--svc-color);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.45s ease;
}
.svc-card:hover::after { transform: scaleX(1); }

/* ── SVG watermark (bottom-right, per card) ─────────────────────── */
.svc-card-wm {
    position: absolute;
    bottom: -28px;
    right: -28px;
    width: 140px;
    height: 140px;
    opacity: 0.055;
    pointer-events: none;
}
html.dark .svc-card-wm { opacity: 0.08; }

/* ── Card top row: number + icon ────────────────────────────────── */
.svc-card-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: 0;
}

.svc-card-num {
    font-family: 'DM Sans', sans-serif;
    font-size: 0.58rem;
    font-weight: 700;
    letter-spacing: 0.2em;
    color: #b0c8d4;
    padding-top: 4px;
}

/* ── Icon badge ─────────────────────────────────────────────────── */
.svc-icon-badge {
    width: 48px;
    height: 48px;
    flex-shrink: 0;
    border-radius: 14px;
    background: var(--svc-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease;
}
.svc-card:hover .svc-icon-badge { transform: scale(1.08); }

/* ── Title ──────────────────────────────────────────────────────── */
.svc-card-title {
    font-family: 'Syne', sans-serif !important;
    font-size: 1rem !important;
    font-weight: 700 !important;
    line-height: 1.15 !important;
    color: #0a1c28;
    margin: 18px 0 0 !important;
}
.svc-card--featured .svc-card-title {
    font-size: 1.25rem !important;
}
html.dark .svc-card-title { color: #eef2f5; }

/* ── Punch / tagline ────────────────────────────────────────────── */
.svc-card-punch {
    display: block;
    font-family: 'DM Sans', sans-serif;
    font-size: 0.88rem;
    font-style: italic;
    font-weight: 500;
    line-height: 1.4;
    color: var(--svc-color);
    margin-top: 8px;
}
.svc-card--compact .svc-card-punch { font-size: 0.82rem; }

/* ── Description ────────────────────────────────────────────────── */
.svc-card-desc {
    font-family: 'DM Sans', sans-serif;
    font-size: 0.875rem !important;
    font-weight: 300;
    line-height: 1.8;
    color: #5a7888;
    flex: 1;
    margin: 14px 0 0 !important;
}
html.dark .svc-card-desc { color: #8aadbd; }

.svc-card--compact .svc-card-desc {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    flex: none;
}

/* ── Tags / pills (featured card) ───────────────────────────────── */
.svc-card-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 16px;
}

.svc-card-tag {
    display: inline-block;
    font-family: 'DM Sans', sans-serif;
    font-size: 0.7rem !important;
    font-weight: 600;
    letter-spacing: 0.02em;
    padding: 4px 14px;
    border-radius: 50px;
    border: 1px solid #dde8ee;
    background: #f4f7f9;
    color: #0a1c28;
    line-height: 1.6;
    transition: border-color 0.2s ease, color 0.2s ease;
    cursor: default;
}
.svc-card-tag:hover {
    border-color: var(--svc-color);
    color: var(--svc-color);
}
html.dark .svc-card-tag {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.12);
    color: #c8dce6;
}

/* ── Explore CTA ─────────────────────────────────────────────────── */
.svc-card-cta {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 16px;
    font-family: 'DM Sans', sans-serif;
    font-size: 0.82rem;
    font-weight: 700;
    color: #0a1c28;
    text-decoration: none;
    transition: gap 0.25s ease, color 0.25s ease;
}
.svc-card-cta:hover { color: var(--svc-color); gap: 12px; }
html.dark .svc-card-cta { color: #c8dce6; }
html.dark .svc-card-cta:hover { color: var(--svc-color); }

.svc-card-cta-arrow {
    display: inline-block;
    transition: transform 0.25s ease;
}
.svc-card:hover .svc-card-cta-arrow { transform: translateX(4px); }

/* Compact cards: CTA hidden until hover (slides up) */
.svc-card--compact .svc-card-cta {
    opacity: 0;
    transform: translateY(6px);
    transition: opacity 0.25s ease,
                transform 0.25s ease,
                gap 0.25s ease,
                color 0.25s ease;
}
.svc-card--compact:hover .svc-card-cta {
    opacity: 1;
    transform: translateY(0);
}

/* ════════════════════════════════════
   SECTION BACKGROUND LAYER
════════════════════════════════════ */

.svc-bg {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

/* Dot grid */
.svc-dot-grid {
    position: absolute;
    inset: 0;
    background-image: radial-gradient(circle, rgba(55,150,187,0.13) 1px, transparent 1px);
    background-size: 40px 40px;
}

/* Floating Symbioz marks */
.svc-sy-field,
.svc-tech-field {
    position: absolute;
    inset: 0;
    overflow: hidden;
}

.svc-sy-mark {
    position: absolute;
    animation: svcSyFloat linear infinite;
    will-change: transform, opacity;
}
@keyframes svcSyFloat {
    0%   { opacity: 0;    transform: translateY(18px) scale(0.92) rotate(0deg); }
    12%  { opacity: 0.22; }
    88%  { opacity: 0.22; }
    100% { opacity: 0;    transform: translateY(-18px) scale(1.06) rotate(3deg); }
}

/* Floating tech icons */
.svc-tech-icon {
    position: absolute;
    animation: svcTechDrift ease-in-out infinite;
    will-change: transform, opacity;
}
@keyframes svcTechDrift {
    0%   { opacity: 0;    transform: translate(0,  10px); }
    14%  { opacity: 0.28; }
    86%  { opacity: 0.28; }
    100% { opacity: 0;    transform: translate(0, -10px); }
}

/* Orbit systems */
.svc-sys { position: absolute; }
.svc-sys-a { top: -140px; right: -200px; width: 860px; height: 860px; }
.svc-sys-b { bottom: -150px; left: -220px; width: 760px; height: 760px; }

.svc-ring {
    position: absolute;
    border-radius: 50%;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
}
.svc-sys-a .svc-ring-1 { width: 380px; height: 380px; border: 1.5px solid rgba(55,150,187,.13); }
.svc-sys-a .svc-ring-2 { width: 620px; height: 620px; border: 1px dashed rgba(55,150,187,.08); }
.svc-sys-b .svc-ring-1 { width: 340px; height: 340px; border: 1.5px solid rgba(55,150,187,.10); }
.svc-sys-b .svc-ring-2 { width: 560px; height: 560px; border: 1px dashed rgba(55,150,187,.06); }

.svc-arm {
    position: absolute;
    top: 50%; left: 50%;
    transform-origin: 0 0;
}

/* Arm rotation */
.svc-sys-a .svc-a1 { animation: svcCw  72s linear infinite; }
.svc-sys-a .svc-a2 { animation: svcCw  72s linear infinite; animation-delay: -24s; }
.svc-sys-a .svc-a3 { animation: svcCw  72s linear infinite; animation-delay: -48s; }
.svc-sys-a .svc-b1 { animation: svcCw 110s linear infinite; }
.svc-sys-a .svc-b2 { animation: svcCw 110s linear infinite; animation-delay: -36.6s; }
.svc-sys-a .svc-b3 { animation: svcCw 110s linear infinite; animation-delay: -73.3s; }
.svc-sys-b .svc-a1 { animation: svcCcw  62s linear infinite; }
.svc-sys-b .svc-a2 { animation: svcCcw  62s linear infinite; animation-delay: -20.6s; }
.svc-sys-b .svc-a3 { animation: svcCcw  62s linear infinite; animation-delay: -41.3s; }
.svc-sys-b .svc-b1 { animation: svcCcw  95s linear infinite; }
.svc-sys-b .svc-b2 { animation: svcCcw  95s linear infinite; animation-delay: -31.6s; }
.svc-sys-b .svc-b3 { animation: svcCcw  95s linear infinite; animation-delay: -63.3s; }

@keyframes svcCw  { to { transform: rotate( 360deg); } }
@keyframes svcCcw { to { transform: rotate(-360deg); } }

/* Counter-rotate shapes so they stay upright */
.svc-shape {
    position: absolute;
    transform-origin: center center;
    display: block;
}
.svc-sys-a .svc-a1 .svc-shape,
.svc-sys-a .svc-a2 .svc-shape,
.svc-sys-a .svc-a3 .svc-shape { animation: svcCcw  72s linear infinite; }
.svc-sys-a .svc-a2 .svc-shape { animation-delay: -24s; }
.svc-sys-a .svc-a3 .svc-shape { animation-delay: -48s; }
.svc-sys-a .svc-b1 .svc-shape,
.svc-sys-a .svc-b2 .svc-shape,
.svc-sys-a .svc-b3 .svc-shape { animation: svcCcw 110s linear infinite; }
.svc-sys-a .svc-b2 .svc-shape { animation-delay: -36.6s; }
.svc-sys-a .svc-b3 .svc-shape { animation-delay: -73.3s; }
.svc-sys-b .svc-a1 .svc-shape,
.svc-sys-b .svc-a2 .svc-shape,
.svc-sys-b .svc-a3 .svc-shape { animation: svcCw  62s linear infinite; }
.svc-sys-b .svc-a2 .svc-shape { animation-delay: -20.6s; }
.svc-sys-b .svc-a3 .svc-shape { animation-delay: -41.3s; }
.svc-sys-b .svc-b1 .svc-shape,
.svc-sys-b .svc-b2 .svc-shape,
.svc-sys-b .svc-b3 .svc-shape { animation: svcCw  95s linear infinite; }
.svc-sys-b .svc-b2 .svc-shape { animation-delay: -31.6s; }
.svc-sys-b .svc-b3 .svc-shape { animation-delay: -63.3s; }

/* Orbit radii (shape offset from centre) */
.svc-ra-190 { margin-left: -190px; }
.svc-ra-310 { margin-left: -310px; }
.svc-rb-170 { margin-left: -170px; }
.svc-rb-280 { margin-left: -280px; }

/* Shape sizes */
.svc-sz-lg { width: 115px; height: 115px; margin-top: -57px; margin-left: -57px; opacity: 0.4; }
.svc-sz-md { width:  85px; height:  85px; margin-top: -42px; margin-left: -42px; opacity: 0.25; }
.svc-sz-sm { width:  65px; height:  65px; margin-top: -32px; margin-left: -32px; opacity: 0.15; }


/* ─── Theme toggle button ──────────────────────────────────── */
.theme-toggle {
    position: relative;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    border: none;
    background: transparent;
    cursor: pointer;
    color: #a1a1aa;
    transition: color 0.2s, background-color 0.2s;
}
.theme-toggle:hover {
    background: rgba(255, 255, 255, 0.08);
    color: #f5f5f7;
}
html:not(.dark) .theme-toggle {
    color: #6b6c70;
}
html:not(.dark) .theme-toggle:hover {
    background: rgba(0, 0, 0, 0.06);
    color: #2d2e32;
}
.theme-toggle .icon-sun,
.theme-toggle .icon-moon {
    position: absolute;
    transition: opacity 0.3s, transform 0.3s;
}
/* Light mode: show moon (to switch to dark) */
.theme-toggle .icon-moon {
    opacity: 1;
    transform: rotate(0deg);
}
.theme-toggle .icon-sun {
    opacity: 0;
    transform: rotate(-90deg);
}
/* Dark mode: show sun (to switch to light) */
.dark .theme-toggle .icon-moon {
    opacity: 0;
    transform: rotate(90deg);
}
.dark .theme-toggle .icon-sun {
    opacity: 1;
    transform: rotate(0deg);
}

/* ─── Morph / Blur text transition ────────────────────────── */
.morph-wrapper {
    display: inline-block;
    min-height: 1.2em;
    position: relative;
}

.morph-text {
    display: inline-block;
    transition: filter 0.6s cubic-bezier(0.4, 0, 0.2, 1),
                opacity 0.6s cubic-bezier(0.4, 0, 0.2, 1),
                transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    filter: blur(0px);
    opacity: 1;
    transform: translateY(0) scale(1);
}

.morph-text.morph-out {
    filter: blur(12px);
    opacity: 0;
    transform: translateY(4px) scale(0.98);
}

.morph-text.morph-in {
    animation: morph-enter 0.6s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

@keyframes morph-enter {
    0% {
        filter: blur(12px);
        opacity: 0;
        transform: translateY(-4px) scale(0.98);
    }
    100% {
        filter: blur(0px);
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* ─── Logical margin/padding helpers (replaces ml-/mr-) ───── */
/* Tailwind CDN doesn't ship ms-* / me-* by default; define them */
.ms-1 { margin-inline-start: 0.25rem; }
.ms-2 { margin-inline-start: 0.5rem; }
.me-1 { margin-inline-end: 0.25rem; }
.me-2 { margin-inline-end: 0.5rem; }

/* ─── RTL — Arabic layout overrides ──────────────────────── */
[dir="rtl"] {
    /* Use Tajawal for Arabic text */
    font-family: 'Tajawal', 'Inter', system-ui, sans-serif;
}

/* Flip arrow icons in RTL */
[dir="rtl"] .rtl-flip {
    transform: scaleX(-1);
}

/* Mobile menu: slide from left in RTL */
[dir="rtl"] #mobile-menu {
    transform: translateX(-100%);
}
[dir="rtl"] #mobile-menu.translate-x-0 {
    transform: translateX(0);
}
[dir="rtl"] #mobile-menu.translate-x-full {
    transform: translateX(-100%);
}

/* Hero: force-LTR section — the text block gets dir="rtl" directly, so apply
   Tajawal font + right-aligned text inside it for Arabic */
#hero .hero-text-block[dir="rtl"] {
    font-family: 'Tajawal', 'Inter', system-ui, sans-serif;
    text-align: right;
}
/* Heading & paragraph inherit the right-alignment */
#hero .hero-text-block[dir="rtl"] h1,
#hero .hero-text-block[dir="rtl"] p {
    text-align: right;
}
/* CTAs row: keep natural LTR order but right-justify the row */
#hero .hero-text-block[dir="rtl"] .flex.flex-wrap {
    justify-content: flex-end;
}

/* Ensure flex rows respect RTL */
[dir="rtl"] .flex.items-center.gap-8,
[dir="rtl"] .flex.items-center.gap-3,
[dir="rtl"] .flex.items-center.gap-2 {
    flex-direction: row-reverse;
}

/* Footer columns keep natural order in RTL */
[dir="rtl"] .lg\:grid-cols-4 {
    direction: rtl;
}

/* Form inputs: text direction */
[dir="rtl"] input,
[dir="rtl"] textarea {
    text-align: right;
}

/* ============================================================
   STATEMENT BAND — Typewriter + Side Accent + CTA
   Concept C (typewriter) × Concept D (editorial left border)
   ============================================================ */
.stmt-band {
    background: #f4f4f5;
    border-top:    1px solid rgba(55,150,187,0.15);
    border-bottom: 1px solid rgba(55,150,187,0.15);
    padding: 18px 0;
}

.stmt-block {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    min-height: 52px;
}

/* Thick teal left accent (Concept D) */
.stmt-accent {
    width: 4px;
    height: 44px;
    background: linear-gradient(180deg, #3796bb 0%, #2a7fa3 100%);
    border-radius: 2px;
    flex-shrink: 0;
}

.stmt-body {
    display: flex;
    align-items: center;
    gap: 180px;
}

/* Sentence text */
.stmt-text {
    font-family: 'DM Sans', sans-serif;
    font-size: clamp(0.95rem, 1.8vw, 1.15rem);
    font-weight: 600;
    color: #0a1c28;
    letter-spacing: -0.02em;
    line-height: 1.3;
    white-space: nowrap;
}

/* Blinking cursor (Concept C) */
.stmt-cursor {
    display: inline-block;
    color: #3796bb;
    font-weight: 300;
    margin-left: 1px;
    animation: stmtBlink 0.75s step-end infinite;
}

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

/* Fade out while clearing for next sentence */
.stmt-typed.is-clearing {
    opacity: 0;
    transition: opacity 0.3s ease;
}

/* CTA — hidden until sentence completes */
.stmt-cta {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-family: 'DM Sans', sans-serif;
    font-size: 0.875rem;
    font-weight: 600;
    color: #3796bb;
    text-decoration: none;
    white-space: nowrap;
    flex-shrink: 0;
    border-bottom: 1.5px solid transparent;
    padding-bottom: 1px;
    opacity: 0;
    transform: translateX(-8px);
    transition: opacity 0.4s ease, transform 0.4s ease, color 0.2s, border-color 0.2s;
}

.stmt-cta.is-visible {
    opacity: 1;
    transform: translateX(0);
}

.stmt-cta:hover {
    color: #2a7fa3;
    border-bottom-color: #3796bb;
}

.stmt-cta-arrow {
    display: inline-block;
    transition: transform 0.2s ease;
}

.stmt-cta:hover .stmt-cta-arrow {
    transform: translateX(4px);
}

/* Dark mode */
html.dark .stmt-band  { background: #111113; border-color: rgba(55,150,187,0.2); }
html.dark .stmt-text  { color: #e2eef4; }
html.dark .stmt-cta   { color: #60b8d4; }
html.dark .stmt-cta:hover { color: #3796bb; border-bottom-color: #60b8d4; }

/* Mobile: stack text above CTA */
@media (max-width: 600px) {
    .stmt-body      { flex-direction: column; align-items: flex-start; gap: 8px; }
    .stmt-text      { font-size: 0.9rem; }
    .stmt-cta       { font-size: 0.8rem; }
}

/* ============================================================
   STACK SECTION
   Technologies grouped by category with devicon logos.
   ============================================================ */

/* ── Section background ─────────────────────────────────── */
.stk-section {
    position: relative;
    background: #f4f7f9;
    overflow: hidden;
    padding: 3rem 0;
}

.stk-section::before,
.stk-section::after {
    content: '';
    position: absolute;
    background-image: url('img/sy.svg');
    background-repeat: no-repeat;
    background-size: contain;
    pointer-events: none;
    z-index: 0;
}

/* Top-right — large */
.stk-section::before {
    width: 260px;
    height: 260px;
    top: -40px;
    right: -40px;
    opacity: 0.1;
    transform: rotate(15deg);
}

/* Bottom-left — slightly smaller */
.stk-section::after {
    width: 180px;
    height: 180px;
    bottom: -20px;
    left: -20px;
    opacity: 0.07;
    transform: rotate(-10deg);
}

.stk-section .max-w-container {
    position: relative;
    z-index: 1;
}

html.dark .stk-section {
    background: #111113;
}

html.dark .stk-section::before {
    opacity: 0.05;
}

/* ── Floating background logos ──────────────────────────── */
.stk-float-logo {
    position: absolute;
    object-fit: contain;
    opacity: 0.12;
    filter: grayscale(0.3);
    animation: stkFloat linear infinite alternate;
    pointer-events: none;
    z-index: 0;
}

@keyframes stkFloat {
    0%   { transform: translateY(0px)   rotate(-4deg); opacity: 0.08; }
    50%  { opacity: 0.15; }
    100% { transform: translateY(-18px) rotate(4deg);  opacity: 0.08; }
}

/* ── Header ─────────────────────────────────────────────── */
.stk-header {
    text-align: center;
    margin-bottom: 48px;
}

.stk-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-family: 'DM Sans', sans-serif;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #3796bb;
    margin-bottom: 14px;
}

.stk-eyebrow::before,
.stk-eyebrow::after {
    content: '';
    display: block;
    width: 32px;
    height: 1.5px;
    background: rgba(55,150,187,0.4);
    border-radius: 1px;
}

.stk-heading {
    font-family: 'DM Sans', sans-serif;
    font-size: clamp(1.9rem, 4vw, 3rem);
    font-weight: 700;
    color: #0a1c28;
    letter-spacing: -0.03em;
    line-height: 1.1;
}

.stk-heading em {
    font-style: italic;
    color: #3796bb;
}

/* ── Infinite auto-scroll row ───────────────────────────── */
.stk-row {
    overflow: hidden;
    padding: 8px 0 16px;
    /* fade edges */
    -webkit-mask-image: linear-gradient(to right, transparent 0%, black 8%, black 92%, transparent 100%);
    mask-image:         linear-gradient(to right, transparent 0%, black 8%, black 92%, transparent 100%);
}

.stk-track {
    display: inline-flex;
    align-items: center;
    gap: 40px;
    animation: stkScroll 35s linear infinite;
    will-change: transform;
}

.stk-row:hover .stk-track {
    animation-play-state: paused;
}

@keyframes stkScroll {
    from { transform: translateX(0); }
    to   { transform: translateX(-50%); }
}

.stk-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
    transition: transform 0.25s cubic-bezier(.22,.68,0,1.2);
}

.stk-item img {
    width: 38px;
    height: 38px;
    object-fit: contain;
    display: block;
}

.stk-name {
    font-family: 'DM Sans', sans-serif;
    font-size: 0.65rem;
    font-weight: 500;
    color: #7a9aaa;
    white-space: nowrap;
    transition: color 0.2s;
}

.stk-item:hover { transform: translateY(-4px) scale(1.1); }
.stk-item:hover .stk-name { color: #3796bb; }

/* ── Dark mode ──────────────────────────────────────────── */
html.dark .stk-heading    { color: #e2eef4; }
html.dark .stk-item img   { filter: brightness(0.85); }
html.dark .stk-name       { color: #5a8090; }
html.dark .stk-item:hover .stk-name { color: #60b8d4; }
