/* ================================================================
   CORE SYSTEMS — Shared Design System (core.css)
   ================================================================
   Extracted from: index.html, sluzby/index.html, sluzby/ai-agenti.html
   Date: 2026-02-07
   
   Design tokens:
     Dark:    #040c0f
     Light:   #fafbfc
     Accent:  #96f0aa
     Font:    Space Grotesk
     Stack:   Bootstrap 5, Vanilla JS
   ================================================================ */


/* ================================================================
   0. MOTION DISABLED (bez pohybu prozatim)
   ================================================================ */

*,
*::before,
*::after {
    animation: none !important;
    transition: none !important;
}

html {
    scroll-behavior: auto !important;
}

.reveal,
.reveal-left,
.reveal-right,
.reveal-scale {
    opacity: 1 !important;
    transform: none !important;
}


/* ================================================================
   1. CSS CUSTOM PROPERTIES (Design Tokens)
   ================================================================ */

:root {
    --cs-primary: #96f0aa;
    --cs-primary-rgb: 150, 240, 170;
    --cs-bg: #040c0f;
    --cs-bg-alt: #0a1e29;
    --cs-surface: #0d2836;
    --cs-border: rgba(150, 240, 170, 0.12);
    --cs-text: #c8d6e0;
    --cs-text-muted: #8aa7ba;
    --cs-white: #ffffff;
    --cs-font: 'Space Grotesk', system-ui, -apple-system, sans-serif;
    --cs-radius: 16px;
    --cs-radius-sm: 8px;
    --cs-transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

[data-bs-theme="light"] {
    --cs-bg: #ffffff;
    --cs-bg-alt: #f8f9fb;
    --cs-surface: #ffffff;
    --cs-border: rgba(0, 0, 0, 0.06);
    --cs-text: #2d2d3a;
    --cs-text-muted: #6b7280;
    --cs-white: #2d2d3a;
    --cs-primary: #0d8a3a;
    --cs-primary-rgb: 13, 138, 58;
}


/* ================================================================
   2. RESET & BASE
   ================================================================ */

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: auto;
}

body {
    font-family: var(--cs-font);
    background: var(--cs-bg);
    color: var(--cs-text);
    line-height: 1.7;
    font-weight: 300;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

::selection {
    background: var(--cs-primary);
    color: var(--cs-bg);
}


/* ================================================================
   3. TYPOGRAPHY
   ================================================================ */

h1, h2, h3, h4, h5, h6 {
    color: var(--cs-white);
    font-weight: 600;
    line-height: 1.2;
}

/* .display-hero has slight variations per page:
   - Homepage: clamp(2.5rem, 6vw, 4.5rem)
   - Subpages: clamp(2.2rem, 5vw, 3.5rem)
   This shared version uses the subpage (smaller) values.
   Homepage overrides the larger size in page-specific CSS. */
.display-hero {
    font-size: clamp(2.2rem, 5vw, 3.5rem);
    font-weight: 700;
    letter-spacing: -0.03em;
    line-height: 1.1;
    overflow-wrap: break-word;
    word-break: break-word;
}

/* .sec-title has slight variations per page:
   - Homepage: clamp(1.8rem, 4vw, 2.8rem)
   - Subpages: clamp(1.6rem, 3.5vw, 2.4rem)
   This shared version uses the subpage (smaller) values.
   Homepage overrides in page-specific CSS. */
.sec-title {
    font-size: clamp(1.6rem, 3.5vw, 2.4rem);
    font-weight: 600;
    letter-spacing: -0.02em;
}

.sub-title {
    display: inline-block;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--cs-primary);
    margin-bottom: 1rem;
}
.sub-title::before {
    content: '_';
    font-family: 'JetBrains Mono', monospace;
    font-weight: 800;
    opacity: 0.7;
    margin-right: -0.1em;
}

.text-gradient {
    background: linear-gradient(135deg, var(--cs-primary) 0%, #2cfed7 50%, #60a5fa 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}


/* ================================================================
   4. NAVBAR
   ================================================================ */

.cs-navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 1rem 0;
    transition: var(--cs-transition);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    background: rgba(4, 12, 15, 0.8);
    border-bottom: 1px solid transparent;
}
.cs-navbar .container > div {
    width: 100%;
    flex-wrap: nowrap;
}

/* Hero illustration fade-in from left */
.hero-illustration {
    mask-image: linear-gradient(to right, transparent 0%, black 15%, black 100%);
    -webkit-mask-image: linear-gradient(to right, transparent 0%, black 15%, black 100%);
}

[data-bs-theme="light"] .cs-navbar {
    background: rgba(250, 251, 252, 0.85);
}

.cs-navbar.scrolled {
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--cs-border);
}

.cs-navbar .nav-link {
    color: var(--cs-text);
    font-weight: 400;
    font-size: 0.9rem;
    padding: 0.5rem 1rem !important;
    transition: var(--cs-transition);
}

.cs-navbar .nav-link:hover {
    color: var(--cs-primary);
}

.cs-logo {
    height: 32px;
    width: auto;
    transition: var(--cs-transition);
}

[data-bs-theme="light"] .cs-logo {
    filter: brightness(0.2) saturate(0.8);
}


/* ================================================================
   5. BUTTONS
   ================================================================ */

.btn-primary-cs {
    background: var(--cs-primary);
    color: var(--cs-bg);
    font-weight: 600;
    font-size: 0.9rem;
    padding: 0.75rem 2rem;
    border: none;
    border-radius: 100px;
    transition: var(--cs-transition);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-primary-cs:hover {
    background: var(--cs-white);
    color: var(--cs-bg);
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(var(--cs-primary-rgb), 0.3);
}

.btn-outline-cs {
    background: transparent;
    color: var(--cs-text);
    font-weight: 500;
    font-size: 0.9rem;
    padding: 0.75rem 2rem;
    border: 1px solid var(--cs-border);
    border-radius: 100px;
    transition: var(--cs-transition);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-outline-cs:hover {
    border-color: var(--cs-primary);
    color: var(--cs-primary);
    transform: translateY(-2px);
}

.btn-ghost {
    background: transparent;
    border: none;
    color: var(--cs-text-muted);
    font-size: 0.85rem;
    cursor: pointer;
    padding: 0.5rem;
    transition: var(--cs-transition);
}

.btn-ghost:hover {
    color: var(--cs-primary);
}


/* ================================================================
   6. THEME TOGGLE
   ================================================================ */

.theme-toggle {
    background: var(--cs-surface);
    border: 1px solid var(--cs-border);
    color: var(--cs-text);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--cs-transition);
    font-size: 1rem;
}

.theme-toggle:hover {
    border-color: var(--cs-primary);
    color: var(--cs-primary);
}


/* ================================================================
   7. SECTION LAYOUT
   ================================================================ */

.section {
    padding: 6rem 0;
}

.section-lg {
    padding: 8rem 0;
}


/* ================================================================
   8. SUBPAGE HERO (sluzby/index, sluzby/ai-agenti, etc.)
   ================================================================ */

.page-hero {
    padding: 160px 0 80px;
    position: relative;
    overflow: hidden;
}

.page-hero .hero-glow {
    position: absolute;
    width: min(500px, 100vw);
    height: min(500px, 100vw);
    border-radius: 50%;
    filter: blur(120px);
    opacity: 0.1;
    pointer-events: none;
}


/* ================================================================
   9. BREADCRUMB
   ================================================================ */

.breadcrumb-cs {
    font-size: 0.85rem;
    margin-bottom: 2rem;
}

.breadcrumb-cs a {
    color: var(--cs-text-muted);
    text-decoration: none;
}

.breadcrumb-cs a:hover {
    color: var(--cs-primary);
}

.breadcrumb-cs .sep {
    color: var(--cs-text-muted);
    margin: 0 0.5rem;
}

.breadcrumb-cs .current {
    color: var(--cs-text);
}


/* ================================================================
   10. CARD LINK (shared across feature-card, service-card, case-card)
   ================================================================ */

.card-link {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    color: var(--cs-primary);
    font-weight: 500;
    font-size: 0.9rem;
    text-decoration: none;
    transition: var(--cs-transition);
}

.card-link:hover {
    gap: 0.8rem;
}


/* ================================================================
   11. CONTACT FORM
   ================================================================ */

.contact-form .form-control {
    background: var(--cs-surface);
    border: 1px solid var(--cs-border);
    color: var(--cs-white);
    padding: 0.85rem 1.25rem;
    border-radius: var(--cs-radius-sm);
    font-family: var(--cs-font);
    font-size: 0.9rem;
    transition: var(--cs-transition);
}

.contact-form .form-control::placeholder {
    color: var(--cs-text-muted);
}

.contact-form .form-control:focus {
    border-color: var(--cs-primary);
    box-shadow: 0 0 0 3px rgba(var(--cs-primary-rgb), 0.1);
    outline: none;
}


/* ================================================================
   12. FOOTER
   ================================================================ */

.cs-footer {
    background: var(--cs-bg);
    border-top: 1px solid var(--cs-border);
    padding: 4rem 0 2rem;
}

.cs-footer h5 {
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--cs-text-muted);
    margin-bottom: 1.25rem;
}

.cs-footer a {
    color: var(--cs-text-muted);
    text-decoration: none;
    font-size: 0.9rem;
    transition: var(--cs-transition);
    display: block;
    padding: 0.2rem 0;
}

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

.footer-bottom {
    border-top: 1px solid var(--cs-border);
    padding-top: 2rem;
    margin-top: 3rem;
}

.footer-bottom p {
    font-size: 0.8rem;
    color: var(--cs-text-muted);
    margin: 0;
}


/* ================================================================
   13. SCROLL ANIMATIONS — see section 17 for new .reveal system
   ================================================================ */


/* ================================================================
   14. DESKTOP MEGA MENU
   ================================================================ */

.cs-navbar .dropdown-menu {
    background: var(--cs-bg);
    border: 1px solid var(--cs-border);
    border-radius: var(--cs-radius);
    padding: 1.25rem;
    min-width: 540px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    /* No animation — use margin-top for position, Popper handles the rest */
    margin-top: 0.5rem;
    opacity: 0;
    transition: opacity 0.15s ease;
}

.cs-navbar .dropdown-menu.show {
    opacity: 1;
}

[data-bs-theme="light"] .cs-navbar .dropdown-menu {
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.12);
    border-color: rgba(0, 0, 0, 0.1);
}

.cs-navbar .dropdown-menu .mega-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.25rem;
}

.cs-navbar .dropdown-menu .mega-item {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0.75rem;
    border-radius: var(--cs-radius-sm);
    text-decoration: none;
    transition: var(--cs-transition);
    color: var(--cs-text);
}

.cs-navbar .dropdown-menu .mega-item:hover {
    background: rgba(var(--cs-primary-rgb), 0.06);
    color: var(--cs-white);
}

.cs-navbar .dropdown-menu .mega-item .mega-icon {
    width: 36px;
    height: 36px;
    border-radius: var(--cs-radius-sm);
    background: rgba(var(--cs-primary-rgb), 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: var(--cs-primary);
    font-size: 0.9rem;
    transition: var(--cs-transition);
}

.cs-navbar .dropdown-menu .mega-item:hover .mega-icon {
    background: rgba(var(--cs-primary-rgb), 0.15);
}

.cs-navbar .dropdown-menu .mega-item .mega-label {
    font-weight: 500;
    font-size: 0.88rem;
    color: var(--cs-white);
    line-height: 1.2;
}

.cs-navbar .dropdown-menu .mega-item .mega-desc {
    font-size: 0.75rem;
    color: var(--cs-text-muted);
    line-height: 1.4;
    margin-top: 0.15rem;
}

.cs-navbar .dropdown-menu .mega-divider {
    height: 1px;
    background: var(--cs-border);
    margin: 0.5rem 0;
    grid-column: 1 / -1;
}

.cs-navbar .dropdown-menu .mega-footer {
    grid-column: 1 / -1;
    padding-top: 0.5rem;
}

.cs-navbar .dropdown-menu .mega-footer a {
    font-size: 0.8rem;
    color: var(--cs-primary);
    text-decoration: none;
    font-weight: 500;
}

.cs-navbar .dropdown-menu .mega-footer a:hover {
    text-decoration: underline;
}

/* Odvětví dropdown — narrower */
.cs-navbar .dropdown-menu.mega-sm {
    min-width: 320px;
}

.cs-navbar .dropdown-menu.mega-sm .mega-grid {
    grid-template-columns: 1fr;
}


/* ================================================================
   14b. MOBILE OFFCANVAS
   ================================================================ */

.offcanvas {
    background: var(--cs-bg) !important;
    border-left: 1px solid var(--cs-border) !important;
    max-width: 340px;
}

.offcanvas .nav-link {
    color: var(--cs-text) !important;
    font-size: 1rem;
    padding: 0.6rem 0 !important;
    transition: var(--cs-transition);
}

.offcanvas .nav-link:hover {
    color: var(--cs-primary) !important;
}

.offcanvas .mobile-section-label {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--cs-text-muted);
    font-weight: 600;
    padding: 1rem 0 0.4rem;
    border-bottom: 1px solid var(--cs-border);
    margin-bottom: 0.25rem;
}

.offcanvas .mobile-nav-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.6rem 0;
    text-decoration: none;
    color: var(--cs-text);
    transition: var(--cs-transition);
}

.offcanvas .mobile-nav-item:hover {
    color: var(--cs-primary);
}

.offcanvas .mobile-nav-icon {
    width: 32px;
    height: 32px;
    border-radius: 6px;
    background: rgba(var(--cs-primary-rgb), 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: var(--cs-primary);
    font-size: 0.8rem;
}

.offcanvas .mobile-nav-item:hover .mobile-nav-icon {
    background: rgba(var(--cs-primary-rgb), 0.15);
}

.offcanvas .btn-close {
    filter: invert(1);
}

[data-bs-theme="light"] .offcanvas .btn-close {
    filter: none;
}


/* ================================================================
   15. VISUAL ENHANCEMENT LAYER
   ================================================================ */

/* --- Hero Gradient Backgrounds --- */
.page-hero {
    background: 
        radial-gradient(ellipse 80% 50% at 20% 40%, rgba(var(--cs-primary-rgb), 0.08) 0%, transparent 70%),
        radial-gradient(ellipse 60% 40% at 80% 20%, rgba(44, 254, 215, 0.06) 0%, transparent 60%),
        radial-gradient(ellipse 50% 60% at 50% 80%, rgba(96, 165, 250, 0.05) 0%, transparent 60%),
        var(--cs-bg);
}

[data-bs-theme="light"] .page-hero {
    background:
        linear-gradient(135deg,
            rgba(13, 122, 42, 0.07) 0%,
            rgba(10, 110, 80, 0.05) 50%,
            rgba(13, 138, 58, 0.03) 100%),
        #ffffff;
}

/* --- Animated Grid Pattern (Hero) --- */
.hero-grid {
    position: absolute;
    inset: 0;
    background-image: 
        linear-gradient(rgba(var(--cs-primary-rgb), 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(var(--cs-primary-rgb), 0.03) 1px, transparent 1px);
    background-size: 60px 60px;
    mask-image: radial-gradient(ellipse 70% 70% at 50% 50%, black 20%, transparent 70%);
    -webkit-mask-image: radial-gradient(ellipse 70% 70% at 50% 50%, black 20%, transparent 70%);
    pointer-events: none;
    z-index: 0;
}

/* Hide hero grid on light mode — Adam nechtěl mřížku na bílém pozadí */
[data-bs-theme="light"] .hero-grid {
    display: none !important;
}

/* --- Floating Orbs (animated glow spots) --- */
.hero-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    pointer-events: none;
    animation: orbFloat 8s ease-in-out infinite;
    z-index: 0;
}

.hero-orb-1 {
    width: 400px;
    height: 400px;
    background: rgba(var(--cs-primary-rgb), 0.12);
    top: -10%;
    right: -5%;
    animation-delay: 0s;
}

.hero-orb-2 {
    width: 300px;
    height: 300px;
    background: rgba(44, 254, 215, 0.08);
    bottom: -15%;
    left: -5%;
    animation-delay: -3s;
}

.hero-orb-3 {
    width: 200px;
    height: 200px;
    background: rgba(96, 165, 250, 0.06);
    top: 30%;
    left: 40%;
    animation-delay: -5s;
}

@keyframes orbFloat {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(20px, -30px) scale(1.05); }
    66% { transform: translate(-15px, 15px) scale(0.95); }
}

[data-bs-theme="light"] .hero-orb-1 { background: rgba(13, 138, 58, 0.08); }
[data-bs-theme="light"] .hero-orb-2 { background: rgba(10, 110, 80, 0.06); }
[data-bs-theme="light"] .hero-orb-3 { background: rgba(13, 122, 42, 0.05); }

/* --- Enhanced Cards --- */
.cs-card {
    background: var(--cs-surface);
    border: 1px solid var(--cs-border);
    border-radius: var(--cs-radius);
    padding: 2rem;
    transition: var(--cs-transition);
    position: relative;
    overflow: hidden;
}

.cs-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--cs-primary), #2cfed7, #60a5fa);
    opacity: 0;
    transition: var(--cs-transition);
}

.cs-card:hover {
    border-color: rgba(var(--cs-primary-rgb), 0.25);
    transform: translateY(-4px);
    box-shadow: 
        0 12px 40px rgba(0, 0, 0, 0.15),
        0 0 0 1px rgba(var(--cs-primary-rgb), 0.1);
}

.cs-card:hover::before {
    opacity: 1;
}

/* --- Glassmorphism Box --- */
.glass-box {
    background: rgba(var(--cs-primary-rgb), 0.04);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(var(--cs-primary-rgb), 0.12);
    border-radius: var(--cs-radius);
    padding: 2rem;
}

[data-bs-theme="light"] .glass-box {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-color: rgba(0, 0, 0, 0.06);
    box-shadow: 0 1px 8px rgba(100, 116, 139, 0.08);
}

/* --- Icon Circles --- */
.cs-icon-circle {
    width: 56px;
    height: 56px;
    border-radius: 16px;
    background: rgba(var(--cs-primary-rgb), 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    color: var(--cs-primary);
    margin-bottom: 1.25rem;
    transition: var(--cs-transition);
}

.cs-card:hover .cs-icon-circle {
    background: rgba(var(--cs-primary-rgb), 0.2);
    transform: scale(1.1);
}

/* --- Number Badge (for steps/processes) --- */
.cs-step-number {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--cs-primary), #2cfed7);
    color: var(--cs-bg);
    font-weight: 700;
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

/* --- Tag Chips --- */
.cs-tag {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 500;
    padding: 0.3rem 0.75rem;
    border-radius: 100px;
    background: rgba(var(--cs-primary-rgb), 0.08);
    color: var(--cs-primary);
    border: 1px solid rgba(var(--cs-primary-rgb), 0.15);
    transition: var(--cs-transition);
}

.cs-tag:hover {
    background: rgba(var(--cs-primary-rgb), 0.15);
}

/* --- Metric/Stat Cards --- */
.cs-metric {
    text-align: center;
    padding: 1.5rem;
}

.cs-metric-value {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    background: linear-gradient(135deg, var(--cs-primary), #2cfed7);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
    margin-bottom: 0.5rem;
}

.cs-metric-label {
    font-size: 0.85rem;
    color: var(--cs-text-muted);
}

/* --- Section Divider --- */
.cs-divider {
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--cs-border), transparent);
    margin: 0;
    border: none;
}

/* --- Quote/Callout Box --- */
.cs-callout {
    border-left: 3px solid var(--cs-primary);
    padding: 1.5rem 2rem;
    background: rgba(var(--cs-primary-rgb), 0.03);
    border-radius: 0 var(--cs-radius-sm) var(--cs-radius-sm) 0;
    font-style: italic;
    color: var(--cs-text);
}

/* --- Tech Logo Grid --- */
.cs-tech-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    align-items: center;
    justify-content: center;
}

.cs-tech-logo {
    height: 32px;
    width: auto;
    opacity: 0.6;
    filter: grayscale(1);
    transition: var(--cs-transition);
}

.cs-tech-logo:hover {
    opacity: 1;
    filter: grayscale(0);
}

[data-bs-theme="light"] .cs-tech-logo {
    opacity: 0.7;
    filter: grayscale(1) brightness(0.4);
}

/* --- Animated Counter (JS class) --- */
.cs-counter {
    font-variant-numeric: tabular-nums;
}

/* --- Pulse animation for CTA --- */
.pulse-border {
    position: relative;
}

.pulse-border::after {
    content: '';
    position: absolute;
    inset: -4px;
    border-radius: inherit;
    border: 2px solid var(--cs-primary);
    opacity: 0;
    animation: pulseBorder 2s ease-in-out infinite;
}

@keyframes pulseBorder {
    0%, 100% { opacity: 0; transform: scale(1); }
    50% { opacity: 0.3; transform: scale(1.02); }
}

/* --- Hover line animation for links --- */
.cs-hover-line {
    position: relative;
    text-decoration: none;
}

.cs-hover-line::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--cs-primary);
    transition: width 0.3s ease;
}

.cs-hover-line:hover::after {
    width: 100%;
}


/* ================================================================
   16. BELOW-FOLD ENHANCEMENTS — Visual quality uplift
   ================================================================ */

/* --- Enhanced Section Backgrounds --- */
.section-mesh {
    position: relative;
}
.section-mesh::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(rgba(var(--cs-primary-rgb), 0.03) 1px, transparent 1px);
    background-size: 24px 24px;
    pointer-events: none;
}

/* --- Feature Card Enhanced (replaces page-specific feature cards) --- */
.cs-feature-card {
    background: var(--cs-surface);
    border: 1px solid var(--cs-border);
    border-radius: var(--cs-radius);
    padding: 2rem;
    height: 100%;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    position: relative;
    overflow: hidden;
}

.cs-feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--cs-primary), #2cfed7);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.cs-feature-card::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 120px;
    height: 120px;
    background: radial-gradient(circle, rgba(var(--cs-primary-rgb), 0.06), transparent 70%);
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
}

.cs-feature-card:hover {
    border-color: rgba(var(--cs-primary-rgb), 0.3);
    transform: translateY(-6px);
    box-shadow: 
        0 20px 60px rgba(0, 0, 0, 0.2),
        0 0 0 1px rgba(var(--cs-primary-rgb), 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

.cs-feature-card:hover::before,
.cs-feature-card:hover::after {
    opacity: 1;
}

.cs-feature-card h3 {
    font-size: 1.15rem;
    margin-bottom: 0.5rem;
    transition: color 0.3s ease;
}

.cs-feature-card:hover h3 {
    color: var(--cs-primary);
}

.cs-feature-card p {
    font-size: 0.9rem;
    color: var(--cs-text-muted);
    margin: 0;
    line-height: 1.6;
}

/* --- Enhanced Edu/Info Box --- */
.cs-edu-box {
    background: var(--cs-surface);
    border: 1px solid var(--cs-border);
    border-radius: var(--cs-radius);
    padding: 2.5rem;
    border-left: 3px solid var(--cs-primary);
    position: relative;
    overflow: hidden;
}

.cs-edu-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(var(--cs-primary-rgb), 0.03), transparent);
    pointer-events: none;
}

.cs-edu-box .example {
    background: rgba(var(--cs-primary-rgb), 0.06);
    border: 1px solid rgba(var(--cs-primary-rgb), 0.1);
    border-radius: var(--cs-radius-sm);
    padding: 1.25rem 1.5rem;
    margin-top: 1.25rem;
    font-size: 0.9rem;
}

/* --- Enhanced Process/Timeline Steps --- */
.cs-process-step {
    position: relative;
    padding-left: 5rem;
    margin-bottom: 2.5rem;
}

.cs-process-step:last-child {
    margin-bottom: 0;
}

.cs-process-num {
    position: absolute;
    left: 0;
    top: 0;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(var(--cs-primary-rgb), 0.15), rgba(var(--cs-primary-rgb), 0.05));
    border: 2px solid rgba(var(--cs-primary-rgb), 0.25);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1rem;
    color: var(--cs-primary);
    transition: all 0.4s ease;
}

.cs-process-step:hover .cs-process-num {
    background: linear-gradient(135deg, var(--cs-primary), #2cfed7);
    color: var(--cs-bg);
    border-color: var(--cs-primary);
    transform: scale(1.1);
    box-shadow: 0 0 20px rgba(var(--cs-primary-rgb), 0.3);
}

.cs-process-line {
    position: absolute;
    left: 25px;
    top: 56px;
    width: 2px;
    height: calc(100% + 8px);
    background: linear-gradient(to bottom, rgba(var(--cs-primary-rgb), 0.25), rgba(var(--cs-primary-rgb), 0.05));
}

.cs-process-step h4 {
    font-size: 1.1rem;
    margin-bottom: 0.4rem;
    transition: color 0.3s ease;
}

.cs-process-step:hover h4 {
    color: var(--cs-primary);
}

.cs-process-step p {
    font-size: 0.9rem;
    color: var(--cs-text-muted);
    margin: 0;
    line-height: 1.6;
}

/* --- Enhanced Use Case / Compact Cards --- */
.cs-compact-card {
    background: var(--cs-surface);
    border: 1px solid var(--cs-border);
    border-radius: var(--cs-radius-sm);
    padding: 1.75rem;
    height: 100%;
    transition: all 0.35s ease;
    position: relative;
    overflow: hidden;
}

.cs-compact-card::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--cs-primary), #2cfed7);
    transform: scaleX(0);
    transition: transform 0.4s ease;
}

.cs-compact-card:hover {
    border-color: rgba(var(--cs-primary-rgb), 0.25);
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}

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

.cs-compact-card .card-icon {
    color: var(--cs-primary);
    font-size: 1.5rem;
    margin-bottom: 1rem;
    transition: transform 0.3s ease;
}

.cs-compact-card:hover .card-icon {
    transform: scale(1.15);
}

.cs-compact-card h4 {
    font-size: 1.05rem;
    margin-bottom: 0.5rem;
}

.cs-compact-card p {
    font-size: 0.85rem;
    color: var(--cs-text-muted);
    margin: 0;
    line-height: 1.6;
}

/* --- Enhanced FAQ --- */
.cs-faq-item {
    border-bottom: 1px solid var(--cs-border);
    transition: background 0.3s ease;
}

.cs-faq-item:first-child {
    border-top: 1px solid var(--cs-border);
}

.cs-faq-item:hover {
    background: rgba(var(--cs-primary-rgb), 0.02);
}

.cs-faq-question {
    width: 100%;
    background: none;
    border: none;
    color: var(--cs-white);
    font-family: var(--cs-font);
    font-size: 1rem;
    font-weight: 500;
    padding: 1.5rem 0;
    text-align: left;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    transition: color 0.3s ease;
}

.cs-faq-question:hover {
    color: var(--cs-primary);
}

.cs-faq-question i {
    transition: all 0.3s ease;
    font-size: 0.85rem;
    color: var(--cs-text-muted);
    flex-shrink: 0;
}

.cs-faq-question.active i {
    transform: rotate(45deg);
    color: var(--cs-primary);
}

.cs-faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
}

.cs-faq-answer.open {
    max-height: 400px;
}

.cs-faq-answer p {
    padding: 0 0 1.5rem;
    font-size: 0.95rem;
    color: var(--cs-text-muted);
    margin: 0;
    line-height: 1.7;
}

/* --- Enhanced CTA Section --- */
.cs-cta-section {
    background: linear-gradient(135deg, var(--cs-bg-alt) 0%, var(--cs-bg) 100%);
    border-top: 1px solid var(--cs-border);
    position: relative;
    overflow: hidden;
}

.cs-cta-section::before {
    content: '';
    position: absolute;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    background: var(--cs-primary);
    filter: blur(250px);
    opacity: 0.06;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
}

.cs-cta-section::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(rgba(var(--cs-primary-rgb), 0.03) 1px, transparent 1px);
    background-size: 32px 32px;
    pointer-events: none;
}

/* --- Cross-link Cards (related services) --- */
.cs-cross-link {
    display: block;
    background: var(--cs-surface);
    border: 1px solid var(--cs-border);
    border-radius: var(--cs-radius);
    padding: 1.75rem;
    text-decoration: none;
    height: 100%;
    transition: all 0.35s ease;
    position: relative;
    overflow: hidden;
}

.cs-cross-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(var(--cs-primary-rgb), 0.03), transparent);
    transition: left 0.6s ease;
    pointer-events: none;
}

.cs-cross-link:hover {
    border-color: rgba(var(--cs-primary-rgb), 0.3);
    transform: translateY(-3px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.12);
}

.cs-cross-link:hover::before {
    left: 100%;
}

.cs-cross-link h4 {
    font-size: 1.05rem;
    color: var(--cs-white);
    margin-bottom: 0.5rem;
    transition: color 0.3s ease;
}

.cs-cross-link:hover h4 {
    color: var(--cs-primary);
}

.cs-cross-link p {
    font-size: 0.85rem;
    color: var(--cs-text-muted);
    margin: 0;
    line-height: 1.6;
}

/* --- Section Title Decoration --- */
.sec-title-decorated {
    position: relative;
    display: inline-block;
}

.sec-title-decorated::after {
    content: '_';
    position: relative;
    bottom: auto;
    left: auto;
    color: var(--cs-primary);
    font-family: 'JetBrains Mono', monospace;
    font-weight: 800;
    animation: logoBlink 0.7s step-end infinite;
}

.text-center .sec-title-decorated::after {
    left: 50%;
    transform: translateX(-50%);
}

/* ================================================================
   17. SCROLL REVEAL ANIMATIONS
   ================================================================ */

/* Fade-up: default reveal */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
                transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* Fade-left */
.reveal-left {
    opacity: 0;
    transform: translateX(-40px);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
                transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-left.revealed {
    opacity: 1;
    transform: translateX(0);
}

/* Fade-right */
.reveal-right {
    opacity: 0;
    transform: translateX(40px);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
                transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-right.revealed {
    opacity: 1;
    transform: translateX(0);
}

/* Scale-up */
.reveal-scale {
    opacity: 0;
    transform: scale(0.9);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
                transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-scale.revealed {
    opacity: 1;
    transform: scale(1);
}

/* Stagger children — add .stagger to parent, .reveal to children */
.stagger > .reveal:nth-child(1) { transition-delay: 0s; }
.stagger > .reveal:nth-child(2) { transition-delay: 0.1s; }
.stagger > .reveal:nth-child(3) { transition-delay: 0.2s; }
.stagger > .reveal:nth-child(4) { transition-delay: 0.3s; }
.stagger > .reveal:nth-child(5) { transition-delay: 0.4s; }
.stagger > .reveal:nth-child(6) { transition-delay: 0.5s; }
.stagger > .reveal:nth-child(7) { transition-delay: 0.6s; }
.stagger > .reveal:nth-child(8) { transition-delay: 0.7s; }

/* Respect prefers-reduced-motion */
@media (prefers-reduced-motion: reduce) {
    .reveal, .reveal-left, .reveal-right, .reveal-scale {
        opacity: 1 !important;
        transform: none !important;
        transition: none !important;
    }
}


/* ================================================================
   17b. LIGHT MODE — COMPREHENSIVE OVERRIDES
   Clean Frost + Gradient Flow (approved by Adam)
   ================================================================ */

/* --- NAVBAR --- */
[data-bs-theme="light"] .cs-navbar {
    background: rgba(248, 249, 251, 0.95);
    border-bottom-color: rgba(0, 0, 0, 0.06);
}

[data-bs-theme="light"] .cs-navbar.scrolled {
    box-shadow: 0 1px 12px rgba(100, 116, 139, 0.1);
}

[data-bs-theme="light"] .cs-navbar .nav-link {
    color: #2d2d3a;
}

[data-bs-theme="light"] .cs-navbar .nav-link:hover {
    color: #0d8a3a;
}

/* Dropdown mega-menu */
[data-bs-theme="light"] .cs-navbar .dropdown-menu {
    background: #ffffff;
    box-shadow: 0 12px 40px rgba(100, 116, 139, 0.12);
    border-color: rgba(0, 0, 0, 0.06);
}

[data-bs-theme="light"] .cs-navbar .dropdown-menu .mega-item .mega-label {
    color: #2d2d3a;
}

[data-bs-theme="light"] .cs-navbar .dropdown-menu .mega-item .mega-desc {
    color: #6b7280;
}

[data-bs-theme="light"] .cs-navbar .dropdown-menu .mega-item:hover {
    background: rgba(13, 138, 58, 0.06);
}

[data-bs-theme="light"] .cs-navbar .dropdown-menu .mega-item:hover .mega-label {
    color: #0d8a3a;
}

/* --- LOGO SVG --- */
[data-bs-theme="light"] .cs-logo {
    filter: none;
}

[data-bs-theme="light"] .cs-logo .cls-2 {
    fill: #0d8a3a;
}

[data-bs-theme="light"] .cs-logo .cls-1 {
    fill: #2d2d3a;
}

/* Fallback: filter-based approach for external SVG (img src) */
[data-bs-theme="light"] img.cs-logo {
    filter: brightness(0.2) saturate(0.8);
}

/* --- HEADINGS — dark grey, NEVER pure black --- */
[data-bs-theme="light"] .display-hero,
[data-bs-theme="light"] .sec-title,
[data-bs-theme="light"] h1, [data-bs-theme="light"] h2,
[data-bs-theme="light"] h3, [data-bs-theme="light"] h4,
[data-bs-theme="light"] h5, [data-bs-theme="light"] h6 {
    color: #2d2d3a;
}

/* --- TEXT GRADIENT — green/teal only, no rainbow --- */
[data-bs-theme="light"] .text-gradient {
    background: linear-gradient(135deg, #065a1e 0%, #0a6e50 50%, #0d8a3a 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* --- BUTTONS --- */
[data-bs-theme="light"] .btn-primary-cs {
    background: linear-gradient(135deg, #065a1e, #0d7a2a, #0a6e50);
    color: #ffffff;
    border: none;
}

[data-bs-theme="light"] .btn-primary-cs:hover {
    background: linear-gradient(135deg, #054a18, #0b6a24, #085e44);
    color: #ffffff;
    box-shadow: 0 8px 30px rgba(13, 122, 42, 0.25);
}

[data-bs-theme="light"] .btn-outline-cs {
    border-color: rgba(0, 0, 0, 0.12);
    color: #2d2d3a;
}

[data-bs-theme="light"] .btn-outline-cs:hover {
    border-color: #0d8a3a;
    color: #0d8a3a;
}

/* --- CARDS — white with subtle shadow --- */
[data-bs-theme="light"] .cs-card {
    background: #ffffff;
    border-color: rgba(0, 0, 0, 0.06);
    box-shadow: 0 1px 8px rgba(100, 116, 139, 0.08);
}

[data-bs-theme="light"] .cs-card:hover {
    box-shadow: 0 8px 30px rgba(100, 116, 139, 0.12);
    border-color: rgba(13, 138, 58, 0.2);
}

[data-bs-theme="light"] .cs-feature-card {
    background: #ffffff;
    border-color: rgba(0, 0, 0, 0.06);
    box-shadow: 0 1px 8px rgba(100, 116, 139, 0.08);
}

[data-bs-theme="light"] .cs-feature-card:hover {
    box-shadow: 0 12px 40px rgba(100, 116, 139, 0.12);
    border-color: rgba(13, 138, 58, 0.2);
}

[data-bs-theme="light"] .cs-compact-card {
    background: #ffffff;
    border-color: rgba(0, 0, 0, 0.06);
    box-shadow: 0 1px 8px rgba(100, 116, 139, 0.08);
}

[data-bs-theme="light"] .cs-compact-card:hover {
    box-shadow: 0 12px 40px rgba(100, 116, 139, 0.12);
    border-color: rgba(13, 138, 58, 0.2);
}

/* --- ICON CIRCLES --- */
[data-bs-theme="light"] .cs-icon-circle {
    background: rgba(13, 138, 58, 0.08);
    color: #0d8a3a;
}

[data-bs-theme="light"] .cs-card:hover .cs-icon-circle,
[data-bs-theme="light"] .cs-feature-card:hover .cs-icon-circle {
    background: rgba(13, 138, 58, 0.15);
}

/* --- HERO SECTION --- */
/* Hero background with gradient flow */
[data-bs-theme="light"] .page-hero {
    background:
        linear-gradient(135deg,
            rgba(13, 122, 42, 0.07) 0%,
            rgba(10, 110, 80, 0.05) 50%,
            rgba(13, 138, 58, 0.03) 100%),
        #ffffff;
}

/* Hero grid — HIDE on light (Adam nechtěl grid na bílé) */
[data-bs-theme="light"] .hero-grid,
[data-bs-theme="light"] .hero-grid-bg {
    opacity: 0 !important;
    display: none;
}

/* Orbs — visible but subtle on white */
[data-bs-theme="light"] .hero-orb-1 { background: rgba(13, 138, 58, 0.08); }
[data-bs-theme="light"] .hero-orb-2 { background: rgba(10, 110, 80, 0.06); }
[data-bs-theme="light"] .hero-orb-3 { background: rgba(13, 122, 42, 0.05); }

[data-bs-theme="light"] .hero-glow-1 { background: rgba(13, 138, 58, 0.12); opacity: 0.12; }
[data-bs-theme="light"] .hero-glow-2 { background: rgba(10, 110, 80, 0.08); opacity: 0.08; }

/* --- SVG ILLUSTRATIONS — darker strokes for light bg --- */
[data-bs-theme="light"] .hero-illustration svg,
[data-bs-theme="light"] img[src*="illustrations/"] {
    filter: hue-rotate(-10deg) saturate(1.8) brightness(0.45);
}

/* --- TECH LOGOS — darker on white bg --- */
[data-bs-theme="light"] .cs-tech-logo {
    opacity: 0.7;
    filter: grayscale(1) brightness(0.4);
}

[data-bs-theme="light"] .cs-tech-logo:hover {
    opacity: 1;
    filter: none;
}

/* --- SUB-TITLE --- */
[data-bs-theme="light"] .sub-title {
    color: #0d8a3a;
    font-weight: 700;
}

/* --- GLASS BOXES — white glassmorphism --- */
[data-bs-theme="light"] .glass-box {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-color: rgba(0, 0, 0, 0.06);
    box-shadow: 0 1px 8px rgba(100, 116, 139, 0.08);
}

/* --- SECTION BACKGROUNDS --- */
[data-bs-theme="light"] .section-mesh::before {
    background-image: radial-gradient(rgba(13, 138, 58, 0.03) 1px, transparent 1px);
}

/* Alternate sections — very subtle bg shift */
[data-bs-theme="light"] [style*="background: var(--cs-bg-alt)"],
[data-bs-theme="light"] [style*="background:var(--cs-bg-alt)"] {
    background: #f8f9fb !important;
}

/* --- EDU BOX --- */
[data-bs-theme="light"] .cs-edu-box {
    background: #ffffff;
    border-color: rgba(0, 0, 0, 0.06);
    border-left-color: #0d8a3a;
    box-shadow: 0 1px 8px rgba(100, 116, 139, 0.08);
}

[data-bs-theme="light"] .cs-edu-box .example {
    background: rgba(13, 138, 58, 0.04);
    border-color: rgba(13, 138, 58, 0.08);
}

/* --- PROCESS STEPS --- */
[data-bs-theme="light"] .cs-process-num {
    background: linear-gradient(135deg, rgba(13, 138, 58, 0.12), rgba(13, 138, 58, 0.04));
    border-color: rgba(13, 138, 58, 0.2);
    color: #0d8a3a;
}

[data-bs-theme="light"] .cs-process-step:hover .cs-process-num {
    background: linear-gradient(135deg, #065a1e, #0d7a2a);
    color: #ffffff;
    border-color: #0d8a3a;
    box-shadow: 0 0 20px rgba(13, 138, 58, 0.25);
}

[data-bs-theme="light"] .cs-process-line {
    background: linear-gradient(to bottom, rgba(13, 138, 58, 0.2), rgba(13, 138, 58, 0.05));
}

/* --- METRIC/KPI --- */
[data-bs-theme="light"] .cs-metric-value {
    background: linear-gradient(135deg, #065a1e, #0d7a2a, #0a6e50);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* --- STEP NUMBER --- */
[data-bs-theme="light"] .cs-step-number {
    background: linear-gradient(135deg, #065a1e, #0d7a2a);
    color: #ffffff;
}

/* --- TAGS --- */
[data-bs-theme="light"] .cs-tag {
    background: rgba(13, 138, 58, 0.06);
    color: #0d8a3a;
    border-color: rgba(13, 138, 58, 0.12);
}

[data-bs-theme="light"] .cs-tag:hover {
    background: rgba(13, 138, 58, 0.12);
}

/* --- CALLOUT --- */
[data-bs-theme="light"] .cs-callout {
    border-left-color: #0d8a3a;
    background: rgba(13, 138, 58, 0.03);
    color: #2d2d3a;
}

/* --- DIVIDER --- */
[data-bs-theme="light"] .cs-divider {
    background: linear-gradient(90deg, transparent, rgba(0, 0, 0, 0.06), transparent);
}

/* --- CTA SECTION --- */
[data-bs-theme="light"] .cs-cta-section {
    background: linear-gradient(135deg, #f8f9fb 0%, #ffffff 100%);
    border-top-color: rgba(0, 0, 0, 0.06);
}

[data-bs-theme="light"] .cs-cta-section::before {
    background: #0d8a3a;
    opacity: 0.04;
}

[data-bs-theme="light"] .cs-cta-section::after {
    background-image: radial-gradient(rgba(13, 138, 58, 0.03) 1px, transparent 1px);
}

/* --- CROSS-LINK CARDS --- */
[data-bs-theme="light"] .cs-cross-link {
    background: #ffffff;
    border-color: rgba(0, 0, 0, 0.06);
    box-shadow: 0 1px 8px rgba(100, 116, 139, 0.08);
}

[data-bs-theme="light"] .cs-cross-link:hover {
    box-shadow: 0 12px 40px rgba(100, 116, 139, 0.12);
    border-color: rgba(13, 138, 58, 0.2);
}

[data-bs-theme="light"] .cs-cross-link:hover h4 {
    color: #0d8a3a;
}

/* --- FAQ --- */
[data-bs-theme="light"] .cs-faq-item {
    border-bottom-color: rgba(0, 0, 0, 0.06);
}

[data-bs-theme="light"] .cs-faq-item:first-child {
    border-top-color: rgba(0, 0, 0, 0.06);
}

[data-bs-theme="light"] .cs-faq-item:hover {
    background: rgba(13, 138, 58, 0.02);
}

[data-bs-theme="light"] .cs-faq-question {
    color: #2d2d3a;
}

[data-bs-theme="light"] .cs-faq-question:hover {
    color: #0d8a3a;
}

[data-bs-theme="light"] .cs-faq-question.active i {
    color: #0d8a3a;
}

/* --- CONTACT FORM --- */
[data-bs-theme="light"] .contact-form .form-control {
    background: #f8f9fb;
    border-color: rgba(0, 0, 0, 0.08);
    color: #2d2d3a;
}

[data-bs-theme="light"] .contact-form .form-control::placeholder {
    color: #6b7280;
}

[data-bs-theme="light"] .contact-form .form-control:focus {
    border-color: #0d8a3a;
    box-shadow: 0 0 0 3px rgba(13, 138, 58, 0.1);
    background: #ffffff;
}

/* --- FOOTER --- */
[data-bs-theme="light"] .cs-footer {
    background: #f8f9fb;
    border-top-color: rgba(0, 0, 0, 0.06);
}

[data-bs-theme="light"] .cs-footer h5 {
    color: #6b7280;
}

[data-bs-theme="light"] .cs-footer a {
    color: #6b7280;
}

[data-bs-theme="light"] .cs-footer a:hover {
    color: #0d8a3a;
}

[data-bs-theme="light"] .footer-bottom {
    border-top-color: rgba(0, 0, 0, 0.06);
}

[data-bs-theme="light"] .footer-bottom p {
    color: #6b7280;
}

/* --- THEME TOGGLE --- */
[data-bs-theme="light"] .theme-toggle {
    background: #f8f9fb;
    border-color: rgba(0, 0, 0, 0.08);
    color: #6b7280;
}

[data-bs-theme="light"] .theme-toggle:hover {
    color: #0d8a3a;
    border-color: #0d8a3a;
}

/* --- OFFCANVAS / MOBILE MENU --- */
[data-bs-theme="light"] .offcanvas {
    background: #ffffff !important;
    border-left-color: rgba(0, 0, 0, 0.06) !important;
}

[data-bs-theme="light"] .offcanvas .nav-link {
    color: #2d2d3a !important;
}

[data-bs-theme="light"] .offcanvas .mobile-section-label {
    color: #6b7280;
    border-bottom-color: rgba(0, 0, 0, 0.06);
}

[data-bs-theme="light"] .offcanvas .mobile-nav-item {
    color: #2d2d3a;
}

[data-bs-theme="light"] .offcanvas .mobile-nav-item:hover {
    color: #0d8a3a;
}

[data-bs-theme="light"] .offcanvas .mobile-nav-icon {
    background: rgba(13, 138, 58, 0.08);
    color: #0d8a3a;
}

/* --- CARD TOP LINE (gradient bars) --- */
[data-bs-theme="light"] .cs-card::before,
[data-bs-theme="light"] .cs-feature-card::before {
    background: linear-gradient(90deg, #065a1e, #0d7a2a, #0a6e50);
}

/* --- BREADCRUMB --- */
[data-bs-theme="light"] .breadcrumb-cs a {
    color: #6b7280;
}

[data-bs-theme="light"] .breadcrumb-cs a:hover {
    color: #0d8a3a;
}

[data-bs-theme="light"] .breadcrumb-cs .current {
    color: #2d2d3a;
}

/* --- SELECTION --- */
[data-bs-theme="light"] ::selection {
    background: #0d8a3a;
    color: #ffffff;
}

/* --- SCROLL TOP BUTTON --- */
[data-bs-theme="light"] .scroll-top-btn {
    background: linear-gradient(135deg, #065a1e, #0d7a2a);
    color: #ffffff;
}

[data-bs-theme="light"] .scroll-top-btn:hover {
    box-shadow: 0 8px 25px rgba(13, 122, 42, 0.35);
}

/* --- CARD LINK (arrow links) --- */
[data-bs-theme="light"] .card-link {
    color: #0d8a3a;
}

[data-bs-theme="light"] .card-link:hover {
    color: #065a1e;
}

/* --- PULSE BORDER on CTA --- */
[data-bs-theme="light"] .pulse-border::after {
    border-color: #0d8a3a;
}

/* --- HOVER LINE LINKS --- */
[data-bs-theme="light"] .cs-hover-line::after {
    background: #0d8a3a;
}

/* --- SEC-TITLE DECORATION --- */
[data-bs-theme="light"] .sec-title-decorated::after {
    background: linear-gradient(90deg, #065a1e, #0d7a2a, #0a6e50);
}


/* ================================================================
   18. RESPONSIVE — SHARED BREAKPOINTS
   ================================================================ */

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

    .section-lg {
        padding: 5rem 0;
    }
}

/* Hero illustration animations */
@keyframes floatY {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}

/* Hero illustrations — sizing & placement (no cropping) */
.hero-illustration {
  display: block;
  max-width: 100%;
  height: auto;
  object-fit: contain;
}

/* Right-align hero images on desktop */
.page-hero .hero-illustration {
  margin-left: auto;
}

/* Never crop raster images (PNG/JPG) by default */
img.hero-illustration:not(.hero-feather) {
  object-fit: contain;
  mix-blend-mode: normal;
  mask-image: none;
  -webkit-mask-image: none;
}

/* Hero image wrapper (used across pages) */
.hero-img-wrap {
  position: relative;
  margin-left: auto;
  display: block;
  max-width: 520px;
}

/* Feathered edges for transparent hero renders (directional: fade to the left) */
.hero-feather {
  -webkit-mask-image:
    radial-gradient(closest-side at 66% 52%, #000 58%, transparent 100%),
    linear-gradient(90deg, transparent 0%, #000 26%, #000 100%);
  mask-image:
    radial-gradient(closest-side at 66% 52%, #000 58%, transparent 100%),
    linear-gradient(90deg, transparent 0%, #000 26%, #000 100%);
  -webkit-mask-size: 100% 100%;
  mask-size: 100% 100%;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
}

/* Optional blend/mask effects only for SVG hero artwork */
svg.hero-illustration {
  mix-blend-mode: lighten;
  mask-image: radial-gradient(ellipse 85% 75% at center, black 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 85% 75% at center, black 30%, transparent 75%);
  opacity: 0.9;
}
[data-bs-theme="light"] svg.hero-illustration {
  mix-blend-mode: multiply;
  filter: brightness(1.5) saturate(0.6);
  opacity: 0.4 !important;
}

/* ── Unified _CORE text logo ── */
.cs-logo-text {
  font-family: 'JetBrains Mono', monospace;
  font-weight: 800;
  font-size: 1.8rem;
  letter-spacing: -0.02em;
  text-decoration: none;
  color: #e8e8e8;
}
.cs-logo-text .cs-logo-prefix {
  color: #96f0aa !important;
}
[data-bs-theme="light"] .cs-logo-text {
  color: #2d2d3a;
}
[data-bs-theme="light"] .cs-logo-text .cs-logo-prefix {
  color: #0d8a3a !important;
}
a.cs-logo-link,
a.cs-logo-link:hover,
a.cs-logo-link:focus,
a.cs-logo-link:visited {
  text-decoration: none !important;
  color: inherit !important;
}
