/* Theme Variables */
:root {
    --bg-dark: #F3F7F4;
    --bg-card: rgba(255, 255, 255, 0.85);
    --bg-card-hover: rgba(255, 255, 255, 0.98);
    --primary: #1E6F4A;
    --primary-glow: rgba(30, 111, 74, 0.15);
    --hero-highlight: #1E6F4A;
    --electric-blue: #1E6F4A;
    --light-blue: #10B981;
    --soft-blue: #E3F5EC;
    --cool-gray: #6B7280;
    --ember: #ff4e29;
    --ember-glow: rgba(255, 78, 41, 0.15);
    --amber: #d97706;
    --emerald: #059669;
    --text-main: #0B291C;
    --text-muted: #6B7280;
    --border-color: rgba(13, 27, 61, 0.10);
    --border-hover: rgba(30, 111, 74, 0.35);
    --transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);

    --hero-overlay: linear-gradient(
        to right,
        rgba(244, 247, 252, 0.95) 0%,
        rgba(244, 247, 252, 0.82) 45%,
        rgba(244, 247, 252, 0.5) 75%,
        rgba(244, 247, 252, 0.28) 100%
    );
    --nav-bg: rgba(244, 247, 252, 0.75);
    --nav-bg-scrolled: rgba(244, 247, 252, 0.95);
    --nav-text: #0B291C;
    --title-color: #0B291C;
    --timeline-line: rgba(30, 111, 74, 0.18);
    --step-num-bg: #E3F5EC;
    --stat-num-grad-start: #0B291C;
    --stat-num-grad-end: #1E6F4A;
    --footer-bg: #E3F5EC;
    --footer-text: #6B7280;
    --modal-bg: #ffffff;
    --modal-border: rgba(13, 27, 61, 0.1);
    --modal-title-color: #0B291C;
    --modal-header-bg: #E3F5EC;
}

/* Dark Mode Overrides */
[data-theme="dark"] {
    --bg-dark: #0B291C;
    --bg-card: rgba(18, 35, 71, 0.65);
    --bg-card-hover: rgba(24, 45, 89, 0.85);
    --primary: #1E6F4A;
    --primary-glow: rgba(30, 111, 74, 0.35);
    --hero-highlight: #6ee7b7;
    --electric-blue: #10B981;
    --ember: #ff4e29;
    --ember-glow: rgba(255, 78, 41, 0.35);
    --amber: #f59e0b;
    --emerald: #10b981;
    --text-main: #EEF7F1;
    --text-muted: #9FB8A9;
    --border-color: rgba(255, 255, 255, 0.10);
    --border-hover: rgba(16, 185, 129, 0.35);

    --hero-overlay: linear-gradient(
        to right,
        rgba(13, 27, 61, 0.94) 0%,
        rgba(13, 27, 61, 0.78) 45%,
        rgba(13, 27, 61, 0.45) 75%,
        rgba(13, 27, 61, 0.22) 100%
    );
    --nav-bg: rgba(13, 27, 61, 0.70);
    --nav-bg-scrolled: rgba(13, 27, 61, 0.90);
    --nav-text: #fff;
    --title-color: #fff;
    --timeline-line: rgba(255, 255, 255, 0.10);
    --step-num-bg: #13291F;
    --stat-num-grad-start: #ffffff;
    --stat-num-grad-end: #10B981;
    --footer-bg: #081712;
    --footer-text: #8FA89A;
    --modal-bg: #13291F;
    --modal-border: rgba(255, 255, 255, 0.12);
    --modal-title-color: #ffffff;
    --modal-header-bg: #1A3626;
}

/* Base Styles */
* { margin: 0; padding: 0; box-sizing: border-box; }

body, .navbar, .feature-card, .step-card, .det-item, .stat-item, .footer, .demo-modal-content, .demo-modal-header, .theme-toggle-btn, .lang-toggle-btn {
    transition: background-color 0.3s ease, border-color 0.3s ease, color 0.3s ease, box-shadow 0.3s ease;
}

/* Custom Scrollbar */
::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--bg-dark); }
::-webkit-scrollbar-thumb { background: #1A3626; border-radius: 5px; border: 2px solid var(--bg-dark); }
::-webkit-scrollbar-thumb:hover { background: var(--primary); }
* { scrollbar-width: thin; scrollbar-color: #1A3626 var(--bg-dark); }

body {
    font-family: 'Plus Jakarta Sans', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: var(--text-main);
    background-color: var(--bg-dark);
    overflow-x: hidden;
    position: relative;
}

/* Deactivate scrolling and completely hide scrollbar while preloader is active */
body.loading {
    overflow: hidden !important;
    height: 100vh !important;
    scrollbar-width: none !important;
    -ms-overflow-style: none !important;
}
body.loading::-webkit-scrollbar {
    display: none !important;
    width: 0 !important;
    height: 0 !important;
}

/* Page Preloader / Spinner with Centered Logo */
.page-loader {
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-dark);
    transition: opacity 0.5s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.5s ease;
}
.page-loader.loaded {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}
.loader-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}
.loader-spinner-wrapper {
    position: relative;
    width: 88px;
    height: 88px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.loader-spinner {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    border: 3px solid rgba(30, 111, 74, 0.12);
    border-top-color: var(--electric-blue);
    border-right-color: var(--electric-blue);
    animation: loaderSpin 1s cubic-bezier(0.55, 0.15, 0.45, 0.85) infinite;
}
.loader-logo-wrap {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: rgba(30, 111, 74, 0.06);
    border: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 18px var(--primary-glow);
}
[data-theme="light"] .loader-logo-wrap {
    background: rgba(255, 255, 255, 0.92);
}
.loader-logo {
    width: 34px;
    height: 34px;
    object-fit: contain;
    filter: drop-shadow(0 2px 8px rgba(30, 111, 74, 0.35));
    animation: loaderPulse 1.8s ease-in-out infinite;
}
.loader-text-stack {
    display: flex;
    align-items: center;
    gap: 6px;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-weight: 800;
    font-size: 15px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}
.loader-text-stack .word-smart,
.loader-text-stack .word-safe {
    color: var(--title-color);
}
.loader-text-stack .word-vision {
    color: var(--electric-blue);
}

@keyframes loaderSpin {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}
@keyframes loaderPulse {
    0%, 100% {
        transform: scale(1);
        opacity: 0.9;
    }
    50% {
        transform: scale(1.08);
        opacity: 1;
    }
}

/* Navigation - Floating */
.navbar {
    top: 20px;
    left: 0;
    right: 0;
    margin: 0 auto;
    width: calc(100% - 48px);
    max-width: 1240px;
    background: var(--nav-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--border-color);
    border-radius: 50px;
    box-shadow: 0 12px 36px rgba(0, 0, 0, 0.08);
    transition: var(--transition);
    padding: 8px 24px;
    z-index: 1030;
}
.navbar.scrolled {
    top: 14px;
    padding: 6px 24px;
    background: var(--nav-bg-scrolled);
    border-color: var(--border-hover);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.14);
}
[data-theme="dark"] .navbar {
    box-shadow: 0 12px 36px rgba(0, 0, 0, 0.4);
}
[data-theme="dark"] .navbar.scrolled {
    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.55), 0 0 25px rgba(30, 111, 74, 0.15);
}
.navbar .container {
    max-width: 100%;
}

.navbar-brand {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-weight: 800;
    font-size: 1.1rem;
    color: var(--nav-text) !important;
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}
.navbar-brand img.brand-logo {
    height: 56px;
    width: auto;
    object-fit: contain;
    filter: drop-shadow(0 4px 12px rgba(30, 111, 74, 0.3));
}
.brand-text-stack {
    display: flex;
    flex-direction: column;
    line-height: 1.08;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-weight: 800;
    text-transform: uppercase;
}
.navbar-brand .brand-text-stack {
    flex-direction: row;
    align-items: center;
    gap: 8px;
}
.navbar-brand .brand-text-stack .word-smart,
.navbar-brand .brand-text-stack .word-safe,
.navbar-brand .brand-text-stack .word-vision {
    font-size: 18px;
}
.brand-text-stack .word-smart,
.brand-text-stack .word-safe {
    color: #0B291C;
    font-size: 17px;
    letter-spacing: 0.06em;
}
[data-theme="dark"] .brand-text-stack .word-smart,
[data-theme="dark"] .brand-text-stack .word-safe {
    color: #ffffff;
}
.brand-text-stack .word-vision {
    color: #10B981;
    font-size: 17px;
    letter-spacing: 0.06em;
}

.navbar-nav .nav-link {
    font-weight: 500;
    font-size: 0.95rem;
    color: var(--text-muted) !important;
    margin: 0 10px;
    position: relative;
    transition: var(--transition);
}
.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active { 
    color: var(--nav-text) !important; 
}

.navbar-nav .nav-link::after {
    content: '';
    position: absolute; bottom: -6px; left: 50%;
    width: 0; height: 2px;
    background: var(--electric-blue);
    box-shadow: 0 0 8px var(--primary-glow);
    transition: var(--transition);
    transform: translateX(-50%);
}
.navbar-nav .nav-link:hover::after,
.navbar-nav .nav-link.active::after { width: 80%; }

/* (navbar-toggler is unified with theme-toggle-btn and lang-toggle-btn below) */

.btn-nav-primary {
    background: linear-gradient(135deg, var(--primary), var(--electric-blue));
    border: none; border-radius: 30px;
    padding: 10px 24px; font-weight: 600;
    color: white !important; text-decoration: none;
    font-size: 0.9rem;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    vertical-align: middle;
    line-height: 1;
    box-shadow: 0 4px 15px var(--primary-glow);
}
.btn-nav-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px var(--primary-glow);
    filter: brightness(1.1);
}

.btn-accent {
    background: linear-gradient(135deg, var(--ember), #ff7a59);
    box-shadow: 0 4px 15px var(--ember-glow);
}
.btn-accent:hover {
    box-shadow: 0 8px 25px var(--ember-glow);
}

/* Theme, Language & Navbar Toggler Buttons */
.theme-toggle-btn,
.lang-toggle-btn,
.navbar-toggler {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color) !important;
    color: var(--text-main) !important;
    width: 40px; height: 40px;
    border-radius: 50% !important;
    display: flex !important; align-items: center; justify-content: center;
    cursor: pointer;
    transition: var(--transition);
    outline: none !important;
    box-shadow: none !important;
    text-decoration: none;
    padding: 0 !important;
}
.lang-toggle-btn {
    font-size: 0.95rem;
}
.lang-toggle-btn::after {
    display: none !important;
}
.navbar-toggler i {
    font-size: 0.95rem;
    color: var(--text-main);
    transition: var(--transition);
}
[data-theme="light"] .theme-toggle-btn,
[data-theme="light"] .lang-toggle-btn,
[data-theme="light"] .navbar-toggler {
    background: rgba(15, 23, 42, 0.04) !important;
}
.theme-toggle-btn:hover,
.lang-toggle-btn:hover,
.navbar-toggler:hover,
.navbar-toggler:focus,
.navbar-toggler[aria-expanded="true"],
.lang-dropdown.show .lang-toggle-btn {
    background: rgba(255, 255, 255, 0.12) !important;
    color: var(--electric-blue) !important;
    border-color: var(--border-hover) !important;
    transform: scale(1.05);
    outline: none !important;
    box-shadow: none !important;
}
[data-theme="light"] .theme-toggle-btn:hover,
[data-theme="light"] .lang-toggle-btn:hover,
[data-theme="light"] .navbar-toggler:hover,
[data-theme="light"] .navbar-toggler:focus,
[data-theme="light"] .navbar-toggler[aria-expanded="true"],
[data-theme="light"] .lang-dropdown.show .lang-toggle-btn {
    background: rgba(15, 23, 42, 0.08) !important;
    color: var(--electric-blue) !important;
}
.navbar-toggler:hover i,
.navbar-toggler:focus i,
.navbar-toggler[aria-expanded="true"] i {
    color: var(--electric-blue) !important;
}

/* Mobile Floating Bottom Dock - Hidden on Desktop */
.mobile-bottom-dock {
    display: none;
}

/* Language Dropdown Menu (Scroll list) */
.lang-dropdown {
    position: relative;
}
.lang-dropdown-menu {
    min-width: 150px;
    padding: 8px;
    margin-top: 10px !important;
    background: #ffffff;                 /* fully opaque: the page must never show through the menu */
    border: 1px solid var(--border-color);
    border-radius: 14px;
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.12), 0 4px 12px rgba(0, 0, 0, 0.06);
    list-style: none;
}
[data-theme="dark"] .lang-dropdown-menu {
    background: rgb(18, 35, 71);
    border-color: rgba(255, 255, 255, 0.12);
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.5), 0 0 20px rgba(30, 111, 74, 0.15);
}

.lang-dropdown-menu li {
    list-style: none;
    margin: 0;
}
.lang-dropdown-menu li:not(:last-child) {
    margin-bottom: 6px;
}
.lang-dropdown-menu .lang-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 14px;
    border-radius: 10px;
    color: var(--text-main);
    font-size: 0.88rem;
    font-weight: 600;
    transition: all 0.2s ease;
    cursor: pointer;
    text-decoration: none;
    border: none;
    background: transparent;
}
.lang-dropdown-menu .lang-item:hover {
    background: rgba(30, 111, 74, 0.10);
    color: var(--electric-blue);
    transform: translateX(2px);
}
.lang-dropdown-menu .lang-item.active {
    background: rgba(30, 111, 74, 0.14);
    color: var(--electric-blue);
    font-weight: 700;
}
[data-theme="dark"] .lang-dropdown-menu .lang-item.active {
    background: rgba(16, 185, 129, 0.2);
    color: #ffffff;
}

.lang-dropdown-menu .lang-name {
    flex-grow: 1;
}
.lang-dropdown-menu .lang-check {
    font-size: 0.8rem;
    color: var(--electric-blue);
    opacity: 0;
    transition: opacity 0.2s ease;
}
.lang-dropdown-menu .lang-item.active .lang-check {
    opacity: 1;
}

/* Hero Carousel Section */
.hero {
    min-height: 100vh;
    position: relative;
    overflow: hidden;
    padding: 0;
}
.hero-carousel,
.hero-carousel .carousel-inner,
.hero-carousel .carousel-item {
    min-height: 100vh;
}

/* Smooth Harmonized Carousel Fade Transition (No Flashing / No Opacity Dip) */
.hero-carousel.carousel-fade .carousel-item {
    opacity: 0;
    transition: opacity 0.8s ease-in-out !important;
    transform: none !important;
}
.hero-carousel.carousel-fade .carousel-item.active,
.hero-carousel.carousel-fade .carousel-item-next.carousel-item-start,
.hero-carousel.carousel-fade .carousel-item-prev.carousel-item-end {
    opacity: 1;
    z-index: 1;
}
.hero-carousel.carousel-fade .active.carousel-item-start,
.hero-carousel.carousel-fade .active.carousel-item-end {
    opacity: 0;
    z-index: 0;
    transition: opacity 0s 0.8s !important;
}

.hero-slide {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 130px;
    padding-bottom: 120px;
}
.hero-slide-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: 0;
}
.hero-slide-overlay {
    position: absolute;
    inset: 0;
    background: var(--hero-overlay);
    z-index: 1;
    pointer-events: none;
}
.hero-content {
    position: relative;
    z-index: 2;
}

/* Hero Content */
.hero-badge {
    display: inline-flex; align-items: center; gap: 8px;
    background: rgba(16, 185, 129, 0.08);
    border: 1px solid rgba(16, 185, 129, 0.2);
    color: var(--electric-blue);
    padding: 8px 18px; border-radius: 30px;
    font-size: 0.8rem; font-weight: 600;
    margin-bottom: 24px;
    text-transform: uppercase; letter-spacing: 1px;
    box-shadow: 0 0 15px rgba(16, 185, 129, 0.05);
}
.badge-ember {
    background: rgba(255, 78, 41, 0.1) !important;
    border-color: rgba(255, 78, 41, 0.3) !important;
    color: var(--ember) !important;
    box-shadow: 0 0 15px rgba(255, 78, 41, 0.12) !important;
}
.hero h1 {
    font-family: 'Outfit', sans-serif;
    font-size: 3.8rem; font-weight: 800;
    margin-bottom: 24px; line-height: 1.15;
    color: var(--title-color);
    letter-spacing: -1.5px;
}
.hero h1 span {
    color: var(--hero-highlight);
}
.hero-content > p {
    font-size: 1.18rem; margin-bottom: 36px;
    color: var(--text-muted); max-width: 600px;
    font-weight: 400;
    line-height: 1.7;
}

.hero-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px; 
    margin-top: 45px;
}
.hero-stat { 
    text-align: left;
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.06) 0%, rgba(255, 255, 255, 0.02) 100%), rgba(13, 27, 61, 0.55);
    border: 1px solid rgba(255, 255, 255, 0.10);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 20px;
    padding: 20px 22px;
    transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 10px 30px -5px rgba(0, 0, 0, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

[data-theme="light"] .hero-stat {
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.95) 0%, rgba(248, 250, 255, 0.88) 100%);
    border: 1px solid rgba(226, 232, 240, 0.95);
    box-shadow: 0 12px 30px -6px rgba(15, 23, 42, 0.08), 0 2px 6px -1px rgba(15, 23, 42, 0.04), inset 0 1px 0 rgba(255, 255, 255, 0.95);
}

.hero-stat:hover {
    transform: translateY(-5px);
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.09) 0%, rgba(255, 255, 255, 0.03) 100%), rgba(13, 27, 61, 0.75);
    border-color: rgba(16, 185, 129, 0.4);
    box-shadow: 0 18px 42px -6px rgba(0, 0, 0, 0.38), 0 0 24px rgba(30, 111, 74, 0.15), inset 0 1px 0 rgba(255, 255, 255, 0.2);
}
[data-theme="light"] .hero-stat:hover {
    background: #ffffff;
    border-color: rgba(30, 111, 74, 0.35);
    box-shadow: 0 18px 36px -4px rgba(15, 23, 42, 0.12), 0 0 24px rgba(30, 111, 74, 0.1);
}

/* Icon Badge */
.hero-stat .stat-icon-wrap {
    width: 44px;
    height: 44px;
    border-radius: 13px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.15rem;
    margin-bottom: 16px;
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.35s ease;
}
.hero-stat:hover .stat-icon-wrap {
    transform: translateY(-2px) scale(1.08);
}

.hero-stat .stat-icon-wrap.blue {
    background: rgba(16, 185, 129, 0.15);
    color: #10b981;
    border: 1px solid rgba(16, 185, 129, 0.3);
    box-shadow: 0 4px 14px rgba(30, 111, 74, 0.15);
}
[data-theme="light"] .hero-stat .stat-icon-wrap.blue {
    background: rgba(30, 111, 74, 0.1);
    color: #1e6f4a;
    border-color: rgba(30, 111, 74, 0.25);
    box-shadow: 0 4px 12px rgba(30, 111, 74, 0.08);
}

.hero-stat .stat-icon-wrap.ember {
    background: rgba(255, 78, 41, 0.15);
    color: #ff5e3a;
    border: 1px solid rgba(255, 78, 41, 0.3);
    box-shadow: 0 4px 14px rgba(255, 78, 41, 0.15);
}
[data-theme="light"] .hero-stat .stat-icon-wrap.ember {
    background: rgba(255, 78, 41, 0.1);
    color: #e03810;
    border-color: rgba(255, 78, 41, 0.25);
    box-shadow: 0 4px 12px rgba(255, 78, 41, 0.08);
}

.hero-stat .stat-icon-wrap.emerald {
    background: rgba(16, 185, 129, 0.15);
    color: #10b981;
    border: 1px solid rgba(16, 185, 129, 0.3);
    box-shadow: 0 4px 14px rgba(16, 185, 129, 0.15);
}
[data-theme="light"] .hero-stat .stat-icon-wrap.emerald {
    background: rgba(16, 185, 129, 0.1);
    color: #059669;
    border-color: rgba(16, 185, 129, 0.25);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.08);
}

.hero-stat .stat-icon-wrap.cyan {
    background: rgba(6, 182, 212, 0.15);
    color: #22d3ee;
    border: 1px solid rgba(6, 182, 212, 0.3);
    box-shadow: 0 4px 14px rgba(6, 182, 212, 0.15);
}
[data-theme="light"] .hero-stat .stat-icon-wrap.cyan {
    background: rgba(6, 182, 212, 0.1);
    color: #0891b2;
    border-color: rgba(6, 182, 212, 0.25);
    box-shadow: 0 4px 12px rgba(6, 182, 212, 0.08);
}

.hero-stat .stat-icon-wrap.amber {
    background: rgba(245, 158, 11, 0.15);
    color: #fbbf24;
    border: 1px solid rgba(245, 158, 11, 0.3);
    box-shadow: 0 4px 14px rgba(245, 158, 11, 0.15);
}
[data-theme="light"] .hero-stat .stat-icon-wrap.amber {
    background: rgba(245, 158, 11, 0.1);
    color: #d97706;
    border-color: rgba(245, 158, 11, 0.25);
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.08);
}

/* Stat Value and Caption */
.hero-stat .stat-value, .hero-stat h3 { 
    font-family: 'Outfit', sans-serif;
    font-size: clamp(2.1rem, 2.5vw, 2.45rem); 
    font-weight: 800; 
    color: var(--title-color); 
    line-height: 1.05; 
    margin-bottom: 6px; 
    letter-spacing: -0.7px;
}
.hero-stat h3 { 
    display: flex; align-items: center; gap: 10px; margin-bottom: 6px; 
}
.hero-stat h3 i {
    font-size: 1.6rem;
    transition: transform 0.3s ease;
}

.hero-stat .stat-caption, .hero-stat p { 
    font-family: 'Inter', sans-serif;
    font-size: 0.85rem; 
    color: var(--text-muted); 
    font-weight: 500;
    line-height: 1.35;
    margin-bottom: 0;
    letter-spacing: -0.1px;
}

/* Modern Carousel Indicators - Centered Small Dots */
.hero-indicators-container {
    position: absolute;
    bottom: 28px;
    left: 0;
    right: 0;
    z-index: 10;
    display: flex;
    justify-content: center;
    pointer-events: none;
}
.hero-indicators-inner {
    pointer-events: auto;
}
.carousel-indicators.hero-indicators {
    position: static;
    margin: 0 auto;
    padding: 8px 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: rgba(13, 27, 61, 0.35);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border: 1px solid var(--border-color);
    border-radius: 30px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}
[data-theme="light"] .carousel-indicators.hero-indicators {
    background: rgba(255, 255, 255, 0.75);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}
.carousel-indicators.hero-indicators [data-bs-target] {
    box-sizing: border-box;
    width: 10px !important;
    height: 10px !important;
    border-radius: 50% !important;
    border: none !important;
    background-color: var(--text-muted) !important;
    opacity: 0.45 !important;
    padding: 0 !important;
    margin: 0 !important;
    text-indent: -9999px !important;
    transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1) !important;
    cursor: pointer;
}
.carousel-indicators.hero-indicators [data-bs-target]:hover {
    opacity: 0.85 !important;
    transform: scale(1.25);
}
.carousel-indicators.hero-indicators [data-bs-target].active {
    width: 26px !important;
    border-radius: 12px !important;
    background-color: var(--electric-blue) !important;
    opacity: 1 !important;
    box-shadow: 0 0 14px var(--primary-glow);
    transform: scale(1);
}

/* Floating Navigation Arrows - Styled exactly like theme-toggle-btn */
.hero-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    border-radius: 50% !important;
    background: rgba(15, 23, 42, 0.45) !important;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.18) !important;
    color: #fff !important;
    font-size: 1rem;
    display: flex !important;
    align-items: center;
    justify-content: center;
    z-index: 10;
    opacity: 1 !important;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25) !important;
    transition: var(--transition);
    cursor: pointer;
    text-decoration: none !important;
    outline: none !important;
    padding: 0 !important;
}
[data-theme="light"] .hero-nav-btn {
    background: rgba(15, 23, 42, 0.45) !important;
}
.hero-nav-btn i {
    color: #fff !important;
    font-size: 0.95rem;
    transition: var(--transition);
}
.hero-nav-btn:hover,
.hero-nav-btn:focus,
.hero-nav-btn:active {
    opacity: 1 !important;
    background: rgba(30, 111, 74, 0.85) !important;
    color: #fff !important;
    border-color: rgba(255, 255, 255, 0.3) !important;
    transform: translateY(-50%) scale(1.08);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3) !important;
    outline: none !important;
}
[data-theme="light"] .hero-nav-btn:hover,
[data-theme="light"] .hero-nav-btn:focus,
[data-theme="light"] .hero-nav-btn:active {
    background: rgba(30, 111, 74, 0.85) !important;
    color: #fff !important;
    border-color: rgba(255, 255, 255, 0.3) !important;
}
.hero-nav-btn:hover i,
.hero-nav-btn:focus i,
.hero-nav-btn:active i {
    color: #fff !important;
    transform: scale(1.08);
}
.hero-nav-btn.carousel-control-prev {
    left: 24px;
    right: auto;
}
.hero-nav-btn.carousel-control-next {
    right: 24px;
    left: auto;
}

.floating-elements {
    position: absolute; width: 100%; height: 100%;
    overflow: hidden; z-index: 1; pointer-events: none;
}
.floating-icon {
    position: absolute;
    color: rgba(255, 255, 255, 0.02);
    animation: float 8s ease-in-out infinite;
}
.floating-icon:nth-child(1) { top: 20%; left: 5%;  font-size: 6rem; animation-delay: 0s; color: rgba(255, 78, 41, 0.03); }
.floating-icon:nth-child(2) { top: 60%; left: 90%; font-size: 5rem; animation-delay: 2s; color: rgba(16, 185, 129, 0.03); }
.floating-icon:nth-child(3) { top: 15%; left: 80%; font-size: 4.5rem; animation-delay: 4s; color: rgba(255, 255, 255, 0.015); }
@keyframes float {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50%       { transform: translateY(-20px) rotate(10deg); }
}

/* Shared Section Styles */
.section-title { text-align: center; margin-bottom: 70px; position: relative; }
.section-title h2 {
    font-family: 'Outfit', sans-serif;
    font-size: 2.8rem; font-weight: 800;
    color: var(--title-color); margin-bottom: 16px;
    letter-spacing: -0.8px;
}
.section-title p {
    font-size: 1.1rem; color: var(--text-muted);
    max-width: 650px; margin: 0 auto;
    line-height: 1.6;
}
.section-title .title-line {
    width: 60px; height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--electric-blue));
    border-radius: 4px; margin: 24px auto 0;
    box-shadow: 0 0 10px var(--primary-glow);
}

/* Features */
.features { padding: 120px 0; position: relative; }

.feature-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 24px;
    padding: 40px 32px; text-align: left;
    padding-top: 50px;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    transition: var(--transition);
    height: 100%;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
}

/* Solid quarter-circle filling the top-right corner */
.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 100px;
    height: 100px;
    border-radius: 0 0 0 100%;
    pointer-events: none;
    z-index: 1;
}

/* Corner colors by card type */
.feature-card:has(.feature-icon.camera)::before     { background: linear-gradient(135deg, #0f5c39, var(--primary)); }
.feature-card:has(.feature-icon.ai)::before         { background: linear-gradient(135deg, #c03a1a, var(--ember)); }
.feature-card:has(.feature-icon.realtime)::before   { background: linear-gradient(135deg, #4338ca, #6366f1); }
.feature-card:has(.feature-icon.history)::before    { background: linear-gradient(135deg, #0e7490, #06b6d4); }
.feature-card:has(.feature-icon.monitoring)::before { background: linear-gradient(135deg, #047857, var(--emerald)); }
.feature-card:has(.feature-icon.storage)::before    { background: linear-gradient(135deg, #be185d, #ec4899); }

.feature-card:hover {
    transform: translateY(-6px);
    background: var(--bg-card-hover);
    border-color: var(--border-hover);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}
[data-theme="dark"] .feature-card:hover {
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4), 0 0 20px rgba(16, 185, 129, 0.05);
}

/* Icon sits inside the corner zone */
.feature-icon {
    width: 40px; height: 40px; border-radius: 0;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.25rem; color: white;
    background: none !important;
    box-shadow: none !important;
    position: absolute;
    top: 22px;
    right: 22px;
    z-index: 2;
    margin: 0;
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.feature-card:hover .feature-icon {
    transform: scale(1.22);
}

.feature-card h4 { 
    font-family: 'Outfit', sans-serif;
    font-size: 1.25rem; font-weight: 700; margin-bottom: 14px; color: var(--title-color);
    position: relative; z-index: 1;
}
.feature-card p  { color: var(--text-muted); line-height: 1.7; font-size: 0.93rem; position: relative; z-index: 1; }

/* Awards & Recognition */
.awards-section { padding: 120px 0; position: relative; }
.awards-grid { margin-top: 20px; }
.award-badge {
    background: var(--bg-card);
    border-radius: 20px;
    padding: 46px 26px 34px;
    text-align: center;
    height: 100%;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    transition: var(--transition);
}
.award-badge::before {
    content: '';
    position: absolute;
    inset: 0;
    padding: 1px;
    border-radius: inherit;
    background: linear-gradient(120deg, transparent 0%, #f59e0b 50%, transparent 100%);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
}
.award-badge:hover {
    transform: translateY(-6px);
    background: var(--bg-card-hover);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}
[data-theme="dark"] .award-badge:hover {
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4), 0 0 24px rgba(245, 158, 11, 0.12);
}
.award-badge-icon {
    width: 76px; height: 76px;
    margin: 0 auto 22px;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.6rem;
    color: #3d2b06;
    background: linear-gradient(145deg, #fde68a, #f59e0b 60%, #d97706);
    box-shadow: 0 8px 20px rgba(245, 158, 11, 0.35), inset 0 2px 4px rgba(255, 255, 255, 0.5);
    border: 3px solid var(--bg-dark);
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.award-badge:hover .award-badge-icon {
    transform: scale(1.1) rotate(-4deg);
}
.award-badge h4 {
    font-family: 'Outfit', sans-serif;
    font-size: 1.1rem; font-weight: 700;
    margin-bottom: 10px; color: var(--title-color);
}
.award-badge p {
    color: var(--text-muted); font-size: 0.9rem; line-height: 1.6;
}

/* Mobile app download */
.app-download { padding: 120px 0; position: relative; }
/* a narrower container keeps the text and the phone close together on wide screens (both sides, also in RTL) */
.app-download .container { max-width: 1040px; }
.app-download h2 {
    font-family: 'Outfit', sans-serif;
    font-size: 2.6rem; font-weight: 800; letter-spacing: -1px;
    margin-bottom: 16px; color: var(--title-color);
}
.app-lead { font-size: 1.1rem; line-height: 1.7; color: var(--text-muted); margin-bottom: 28px; max-width: 560px; }
.app-points { list-style: none; padding: 0; margin: 0 0 34px; display: grid; gap: 18px; max-width: 560px; }
.app-points li { display: flex; align-items: flex-start; gap: 16px; }
.app-point-icon {
    flex: 0 0 auto;
    width: 46px; height: 46px; border-radius: 14px;
    display: flex; align-items: center; justify-content: center;
    background: var(--soft-blue); color: var(--primary); font-size: 1.1rem;
}
[data-theme="dark"] .app-point-icon { background: rgba(16, 185, 129, 0.12); color: var(--electric-blue); }
.app-points h4 {
    font-family: 'Outfit', sans-serif;
    font-size: 1.05rem; font-weight: 700; margin: 0 0 4px; color: var(--title-color);
}
.app-points p { margin: 0; font-size: 0.92rem; line-height: 1.6; color: var(--text-muted); }
.app-download-btn { padding: 16px 36px; }

.app-visual { display: flex; justify-content: center; }
/* Google Pixel style: flat frame, thin even bezel, centred punch-hole camera, power + volume keys on the right */
.app-phone {
    position: relative;
    width: 240px; height: 510px;
    padding: 9px;
    border-radius: 34px;
    background: var(--title-color);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.18), 0 0 0 1px var(--border-color);
}
[data-theme="dark"] .app-phone {
    background: #04140d;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5), 0 0 40px var(--primary-glow), 0 0 0 1px var(--border-color);
}
.app-phone-camera {
    position: absolute; top: 20px; left: 50%;
    width: 12px; height: 12px; margin-left: -6px;
    border-radius: 50%;
    background: #000;
    box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.14);
    z-index: 2;
}
.app-phone-btn {
    position: absolute; right: -3px; width: 3px;
    border-radius: 0 3px 3px 0;
    background: var(--title-color);
}
[data-theme="dark"] .app-phone-btn { background: #04140d; }
.app-phone-btn.is-power { top: 130px; height: 48px; }
.app-phone-btn.is-volume { top: 204px; height: 84px; }
.app-phone-screen {
    height: 100%;
    border-radius: 26px;
    padding: 46px 16px 20px;
    display: flex; flex-direction: column; align-items: center; gap: 14px;
    background: linear-gradient(170deg, var(--bg-dark), var(--soft-blue));
    overflow: hidden;
}
[data-theme="dark"] .app-phone-screen { background: linear-gradient(170deg, #0B291C, #123d2b); }
.app-phone-logo { width: 84px; height: 84px; object-fit: contain; margin: 10px 0 18px; }
.app-phone-alert {
    width: 100%;
    display: flex; align-items: center; gap: 12px;
    padding: 12px 14px; border-radius: 16px;
    background: var(--bg-card-hover);
    border: 1px solid var(--border-color);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.08);
}
[data-theme="dark"] .app-phone-alert { background: rgba(255, 255, 255, 0.07); }
.app-phone-alert-icon {
    flex: 0 0 auto;
    width: 34px; height: 34px; border-radius: 10px;
    display: flex; align-items: center; justify-content: center;
    background: var(--ember); color: #fff; font-size: 0.95rem;
}
.app-phone-alert.is-muted .app-phone-alert-icon { background: var(--primary); }
.app-phone-lines { flex: 1; display: grid; gap: 7px; }
.app-phone-lines i { display: block; height: 7px; border-radius: 4px; background: var(--border-color); }
.app-phone-lines i:first-child { width: 80%; background: var(--cool-gray); opacity: 0.55; }
.app-phone-lines i:last-child { width: 55%; }

@media (max-width: 991px) {
    .app-download { padding: 80px 0; }
    .app-download h2 { font-size: 2.1rem; }
}

/* How It Works */
.how-it-works { padding: 120px 0; position: relative; }

.process-container {
    position: relative;
    max-width: 850px;
    margin: 0 auto;
    padding: 20px 0;
}
/* Vertical center line for desktop */
.process-container::before {
    content: '';
    position: absolute;
    left: 50%; top: 0; bottom: 0;
    width: 2px;
    background: linear-gradient(to bottom, transparent, var(--timeline-line) 10%, var(--timeline-line) 90%, transparent);
    transform: translateX(-50%);
    z-index: 1;
}

.process-step {
    display: flex; align-items: center;
    margin-bottom: 70px; position: relative;
    z-index: 2;
}
.process-step:last-child { margin-bottom: 0; }
.process-step:nth-child(even) { flex-direction: row-reverse; }

.step-number {
    width: 64px; height: 64px; border-radius: 50%;
    background: var(--step-num-bg);
    border: 2px solid rgba(16, 185, 129, 0.25);
    color: var(--electric-blue); 
    display: flex; align-items: center; justify-content: center;
    font-family: 'Outfit', sans-serif;
    font-size: 1.5rem; font-weight: 800;
    margin: 0 40px; flex-shrink: 0;
    box-shadow: 0 0 20px rgba(16, 185, 129, 0.08);
    transition: var(--transition);
}
.process-step:hover .step-number {
    border-color: var(--electric-blue);
    background: var(--electric-blue);
    color: #fff;
    box-shadow: 0 0 25px var(--primary-glow);
    transform: scale(1.05);
}

.step-card {
    flex: 1;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 35px;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}
.step-card .bg-icon {
    position: absolute;
    top: -10px;
    right: -10px;
    font-size: 10rem;
    color: var(--primary);
    opacity: 0.07;
    z-index: 0;
    pointer-events: none;
    transition: transform 0.5s ease, opacity 0.3s ease;
}
[data-theme="dark"] .step-card .bg-icon {
    color: var(--light-blue);
    opacity: 0.08;
}
.process-step:hover .step-card .bg-icon {
    transform: scale(1.1) rotate(5deg);
    opacity: 0.14;
}
.step-card-content {
    position: relative;
    z-index: 1;
}
.process-step:hover .step-card {
    background: var(--bg-card-hover);
    border-color: var(--border-hover);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
}
[data-theme="dark"] .process-step:hover .step-card {
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
}

.step-card h4 { 
    font-family: 'Outfit', sans-serif;
    font-size: 1.35rem; font-weight: 700; margin-bottom: 12px; color: var(--title-color); 
}
.step-card p  { color: var(--text-muted); line-height: 1.7; font-size: 0.95rem; margin-bottom: 0; }
.step-card .step-tag {
    display: inline-block;
    background: rgba(16, 185, 129, 0.08);
    border: 1px solid rgba(16, 185, 129, 0.15);
    color: var(--electric-blue);
    font-size: 0.7rem; font-weight: 700;
    padding: 4px 12px; border-radius: 20px;
    text-transform: uppercase; letter-spacing: 1px;
    margin-bottom: 16px;
}

/* Detection Capabilities */
.detections {
    padding: 120px 0;
    position: relative;
    background: var(--bg-dark);
}
.det-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px; margin-top: 60px;
}
.det-item {
    text-align: left; padding: 45px 35px;
    background: var(--bg-card);
    border-radius: 24px;
    border: 1px solid var(--border-color);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}


.det-item:hover {
    background: var(--bg-card-hover);
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
    border-color: rgba(255, 255, 255, 0.12);
}
[data-theme="dark"] .det-item:hover {
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
}

.det-item > i { font-size: 2.5rem; margin-bottom: 25px; display: block; }
.det-item.fire > i  { color: var(--ember); filter: drop-shadow(0 0 10px rgba(255, 78, 41, 0.3)); }
.det-item.intrus > i, .det-item.custom > i { color: var(--electric-blue); filter: drop-shadow(0 0 10px rgba(16, 185, 129, 0.3)); }
.det-item .det-icon-group { display: flex; align-items: center; gap: 16px; margin-bottom: 25px; }
.det-item .det-icon-group i { font-size: 2.5rem; }
.det-item.smoke .det-icon-group .fa-fire { color: var(--ember); filter: drop-shadow(0 0 10px rgba(255, 78, 41, 0.3)); }
.det-item.smoke .det-icon-group .fa-smog { color: var(--text-muted); filter: drop-shadow(0 0 10px rgba(203, 213, 225, 0.2)); }
[data-theme="light"] .det-item.smoke .det-icon-group .fa-smog { color: #475569; }

.det-item h5 { 
    font-family: 'Outfit', sans-serif;
    font-size: 1.3rem; font-weight: 700; margin-bottom: 14px; color: var(--title-color); 
}
.det-item p  { font-size: 0.95rem; color: var(--text-muted); line-height: 1.6; flex-grow: 1; }

.det-item .det-threshold {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    align-self: center;
    margin: 24px auto 0 auto;
    padding: 6px 14px;
    border-radius: 999px;
    font-family: 'Inter', sans-serif;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.3px;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    cursor: default;
    user-select: none;
}
.det-item .det-threshold i {
    font-size: 0.8rem;
    margin: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.25s ease;
}
.det-item:hover .det-threshold {
    transform: translateY(-2px);
}
.det-item:hover .det-threshold i {
    transform: scale(1.18);
}

/* Fire Tag */
.det-item.fire .det-threshold {
    background: rgba(255, 78, 41, 0.12);
    border: 1px solid rgba(255, 78, 41, 0.32);
    color: #ff6842;
    box-shadow: 0 2px 10px rgba(255, 78, 41, 0.1);
}
.det-item.fire .det-threshold i {
    color: #ff4e29;
}
.det-item.fire:hover .det-threshold {
    background: rgba(255, 78, 41, 0.18);
    border-color: rgba(255, 78, 41, 0.55);
    box-shadow: 0 6px 18px rgba(255, 78, 41, 0.25);
}
[data-theme="light"] .det-item.fire .det-threshold {
    background: rgba(255, 78, 41, 0.08);
    border-color: rgba(255, 78, 41, 0.28);
    color: #df350b;
}

/* Smoke Tag */
.det-item.smoke .det-threshold {
    background: rgba(16, 185, 129, 0.12);
    border: 1px solid rgba(16, 185, 129, 0.32);
    color: #34d399;
    box-shadow: 0 2px 10px rgba(16, 185, 129, 0.1);
}
.det-item.smoke .det-threshold i {
    color: #059669;
}
.det-item.smoke:hover .det-threshold {
    background: rgba(16, 185, 129, 0.18);
    border-color: rgba(16, 185, 129, 0.55);
    box-shadow: 0 6px 18px rgba(16, 185, 129, 0.25);
}
[data-theme="light"] .det-item.smoke .det-threshold {
    background: rgba(30, 111, 74, 0.08);
    border-color: rgba(30, 111, 74, 0.25);
    color: #1e6f4a;
}

/* Custom Detections Tag */
.det-item.custom .det-threshold, .det-item.intrus .det-threshold {
    background: rgba(16, 185, 129, 0.12);
    border: 1px solid rgba(16, 185, 129, 0.32);
    color: #34d399;
    box-shadow: 0 2px 10px rgba(16, 185, 129, 0.1);
}
.det-item.custom .det-threshold i, .det-item.intrus .det-threshold i {
    color: #10b981;
}
.det-item.custom:hover .det-threshold, .det-item.intrus:hover .det-threshold {
    background: rgba(16, 185, 129, 0.18);
    border-color: rgba(16, 185, 129, 0.55);
    box-shadow: 0 6px 18px rgba(16, 185, 129, 0.25);
}
[data-theme="light"] .det-item.custom .det-threshold, [data-theme="light"] .det-item.intrus .det-threshold {
    background: rgba(16, 185, 129, 0.08);
    border-color: rgba(16, 185, 129, 0.28);
    color: #059669;
}

/* Stats Section */
.stats { 
    padding: 100px 0; 
    position: relative; 
    background: radial-gradient(circle at 50% 30%, rgba(30, 111, 74, 0.03) 0%, transparent 70%);
}
[data-theme="dark"] .stats {
    background: radial-gradient(circle at 50% 30%, rgba(30, 111, 74, 0.08) 0%, transparent 70%);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.stat-item {
    text-align: center;
    padding: 42px 26px 36px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 22px;
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    box-shadow: 0 4px 20px -2px rgba(13, 27, 61, 0.04);
}

[data-theme="dark"] .stat-item {
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.25);
}

.stat-item:hover { 
    transform: translateY(-8px); 
    background: var(--bg-card-hover);
}

/* Themed full-border coverage on hover */
.stat-item.blue:hover {
    border-color: #1E6F4A;
    box-shadow: 0 20px 40px -10px rgba(30, 111, 74, 0.25), 0 0 16px rgba(30, 111, 74, 0.15);
}
.stat-item.ember:hover {
    border-color: #ff4e29;
    box-shadow: 0 20px 40px -10px rgba(255, 78, 41, 0.25), 0 0 16px rgba(255, 78, 41, 0.15);
}
.stat-item.cyan:hover {
    border-color: #06b6d4;
    box-shadow: 0 20px 40px -10px rgba(6, 182, 212, 0.25), 0 0 16px rgba(6, 182, 212, 0.15);
}
.stat-item.emerald:hover {
    border-color: #10b981;
    box-shadow: 0 20px 40px -10px rgba(16, 185, 129, 0.25), 0 0 16px rgba(16, 185, 129, 0.15);
}

[data-theme="dark"] .stat-item.blue:hover {
    border-color: #10b981;
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.45), 0 0 25px rgba(30, 111, 74, 0.30);
}
[data-theme="dark"] .stat-item.ember:hover {
    border-color: #ff6842;
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.45), 0 0 25px rgba(255, 78, 41, 0.30);
}
[data-theme="dark"] .stat-item.cyan:hover {
    border-color: #22d3ee;
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.45), 0 0 25px rgba(6, 182, 212, 0.30);
}
[data-theme="dark"] .stat-item.emerald:hover {
    border-color: #34d399;
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.45), 0 0 25px rgba(16, 185, 129, 0.30);
}

/* Background Watermark Icon (like in how-it-works section) */
.stat-item .bg-icon {
    position: absolute;
    top: -10px;
    right: -10px;
    font-size: 8rem;
    z-index: 0;
    pointer-events: none;
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.35s ease;
}

.stat-item.blue .bg-icon    { color: #1E6F4A; opacity: 0.07; }
.stat-item.ember .bg-icon   { color: #ff4e29; opacity: 0.07; }
.stat-item.cyan .bg-icon    { color: #06b6d4; opacity: 0.07; }
.stat-item.emerald .bg-icon { color: #10b981; opacity: 0.07; }

[data-theme="dark"] .stat-item.blue .bg-icon    { color: #10b981; opacity: 0.09; }
[data-theme="dark"] .stat-item.ember .bg-icon   { color: #ff6842; opacity: 0.09; }
[data-theme="dark"] .stat-item.cyan .bg-icon    { color: #22d3ee; opacity: 0.09; }
[data-theme="dark"] .stat-item.emerald .bg-icon { color: #34d399; opacity: 0.09; }

.stat-item:hover .bg-icon {
    transform: scale(1.15) rotate(6deg);
    opacity: 0.15;
}
[data-theme="dark"] .stat-item:hover .bg-icon {
    opacity: 0.20;
}

.stat-item .stat-number,
.stat-item .stat-label,
.stat-item .stat-desc {
    position: relative;
    z-index: 1;
}

/* Metric Number */
.stat-number {
    font-family: 'Outfit', sans-serif;
    font-size: 3rem;
    font-weight: 800;
    color: var(--title-color);
    margin-bottom: 12px;
    display: inline-flex;
    align-items: baseline;
    justify-content: center;
    letter-spacing: -0.03em;
    line-height: 1.1;
    background: linear-gradient(135deg, var(--stat-num-grad-start) 40%, var(--stat-num-grad-end) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    transition: all 0.3s ease;
}
.stat-item.blue:hover .stat-number    { background: linear-gradient(135deg, var(--stat-num-grad-start) 20%, #1E6F4A 100%); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.stat-item.ember:hover .stat-number   { background: linear-gradient(135deg, var(--stat-num-grad-start) 20%, #ff4e29 100%); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.stat-item.cyan:hover .stat-number    { background: linear-gradient(135deg, var(--stat-num-grad-start) 20%, #06b6d4 100%); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.stat-item.emerald:hover .stat-number { background: linear-gradient(135deg, var(--stat-num-grad-start) 20%, #10b981 100%); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.stat-unit {
    font-size: 1.4rem;
    font-weight: 700;
    opacity: 0.85;
    margin-left: 2px;
}

/* Stat Label */
.stat-label {
    font-family: 'Outfit', sans-serif;
    font-size: 1.08rem;
    color: var(--title-color);
    font-weight: 700;
    letter-spacing: -0.01em;
    margin-bottom: 6px;
}

/* Stat Description */
.stat-desc {
    font-family: 'Inter', sans-serif;
    font-size: 0.84rem;
    color: var(--text-muted);
    line-height: 1.45;
    margin: 0;
    max-width: 230px;
}

/* CTA */
.cta {
    padding: 120px 0;
    position: relative;
    background: radial-gradient(circle at center, rgba(26, 111, 219, 0.08) 0%, var(--bg-dark) 70%);
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}
.cta-content { 
    position: relative; z-index: 2; 
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}
.cta h2 { 
    font-family: 'Outfit', sans-serif;
    font-size: 3rem; font-weight: 800; margin-bottom: 20px; color: var(--title-color); 
    letter-spacing: -1px;
}
.cta p  { 
    font-size: 1.2rem; margin-bottom: 45px; color: var(--text-muted); 
    line-height: 1.7;
}

.btn-outline-light {
    border: 1px solid var(--border-color);
    background: rgba(255, 255, 255, 0.03);
    color: var(--text-main); border-radius: 30px;
    padding: 14px 36px; font-weight: 600;
    font-size: 0.95rem; transition: var(--transition);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    vertical-align: middle;
    line-height: 1;
}
[data-theme="light"] .btn-outline-light {
    background: rgba(15, 23, 42, 0.04);
    border-color: rgba(15, 23, 42, 0.15);
}
.btn-outline-light:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--border-hover);
    color: var(--electric-blue);
    transform: translateY(-2px);
}
[data-theme="light"] .btn-outline-light:hover {
    background: rgba(15, 23, 42, 0.08);
    color: var(--primary);
}
.btn-cta-primary {
    background: linear-gradient(135deg, var(--primary), var(--electric-blue));
    color: white !important;
    border: none; border-radius: 30px;
    padding: 16px 40px; font-weight: 600;
    font-size: 1rem; transition: var(--transition);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    vertical-align: middle;
    line-height: 1;
    box-shadow: 0 4px 15px var(--primary-glow);
}
.btn-cta-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 30px var(--primary-glow);
    filter: brightness(1.15);
}

.hero .btn-nav-primary { padding: 14px 36px; font-size: 0.95rem; }
.cta .btn-outline-light { padding: 16px 40px; font-size: 1rem; }

/* Footer */
.footer {
    background: var(--footer-bg);
    color: var(--footer-text);
    padding: 80px 0 40px;
    border-top: 1px solid var(--border-color);
}
.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 40px;
    margin-bottom: 60px;
}
.footer-logo {
    display: flex; align-items: center; gap: 12px;
    font-family: 'Outfit', sans-serif;
    font-size: 1.3rem; font-weight: 800;
    margin-bottom: 20px;
    color: var(--title-color);
}
.footer-logo img {
    height: 32px; width: auto;
    filter: drop-shadow(0 0 5px var(--primary-glow));
}
[data-theme="light"] .footer-logo img { filter: none; }
.footer-section h5 {
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    margin-bottom: 24px; color: var(--title-color);
    text-transform: uppercase; letter-spacing: 1px; font-size: 0.8rem;
}
.footer-section p {
    line-height: 1.7;
    font-size: 0.95rem;
    max-width: 280px;
    color: var(--footer-text);
}
.footer-section a {
    color: var(--footer-text);
    text-decoration: none;
    margin-bottom: 12px; display: block;
    font-size: 0.95rem; transition: var(--transition);
}
.footer-section a:hover { color: var(--electric-blue); }

/* Smart For Green Footer Column & Painted Green Logo */
.footer-creator-section {
    position: relative;
}
.sfg-brand-link {
    text-decoration: none !important;
    display: inline-block;
    margin-bottom: 14px;
    transition: var(--transition);
}
.sfg-logo-img {
    height: 54px;
    width: auto;
    max-width: 210px;
    object-fit: contain;
    display: block;
    transition: var(--transition);
}
.sfg-brand-link:hover .sfg-logo-img {
    transform: translateY(-2px) scale(1.03);
    filter: drop-shadow(0 4px 12px rgba(16, 185, 129, 0.4));
}
[data-theme="dark"] .sfg-logo-img {
    filter: drop-shadow(0 0 8px rgba(16, 185, 129, 0.25));
}
[data-theme="dark"] .sfg-brand-link:hover .sfg-logo-img {
    filter: drop-shadow(0 0 16px rgba(16, 185, 129, 0.6));
}
.sfg-desc {
    font-size: 0.88rem !important;
    line-height: 1.6 !important;
    margin-bottom: 12px !important;
    max-width: 280px !important;
    color: var(--footer-text);
}
.sfg-visit-btn {
    display: inline-flex !important;
    align-items: center;
    gap: 6px;
    font-family: 'Outfit', sans-serif;
    font-weight: 600;
    font-size: 0.85rem !important;
    color: #10b981 !important;
    background: transparent;
    padding: 0;
    border: none;
    text-decoration: none !important;
    transition: var(--transition);
}
.sfg-visit-btn:hover {
    color: #059669 !important;
    transform: translateX(3px);
}
[data-theme="dark"] .sfg-visit-btn:hover {
    color: #34d399 !important;
}

.footer-creator-link {
    color: #10b981;
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
}
.footer-creator-link:hover {
    color: #34d399;
    text-decoration: underline;
}
.footer-bottom {
    border-top: 1px solid var(--border-color);
    padding-top: 30px;
    text-align: center;
    color: var(--text-muted);
    font-size: 0.85rem;
    opacity: 0.6;
}

/* Animations */
.fade-in {
    opacity: 0; transform: translateY(20px);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}
.fade-in.visible { opacity: 1; transform: translateY(0); }

/* Responsive */
@media (max-width: 991.98px) {
    :root {
        --hero-overlay: linear-gradient(
            to bottom,
            rgba(243, 246, 252, 0.95) 0%,
            rgba(243, 246, 252, 0.8) 60%,
            rgba(243, 246, 252, 0.55) 100%
        );
    }
    [data-theme="dark"] {
        --hero-overlay: linear-gradient(
            to bottom,
            rgba(6, 11, 19, 0.94) 0%,
            rgba(6, 11, 19, 0.78) 60%,
            rgba(6, 11, 19, 0.5) 100%
        );
    }
    .hero h1 { font-size: 3.2rem; }
    .det-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-content { grid-template-columns: 1fr 1fr; gap: 30px; }
    .hero-slide {
        padding-top: 110px;
        padding-bottom: 120px;
    }
    .carousel-indicators.hero-indicators {
        padding: 6px 12px;
        gap: 8px;
    }
    .carousel-indicators.hero-indicators [data-bs-target] {
        width: 8px !important;
        height: 8px !important;
    }
    .carousel-indicators.hero-indicators [data-bs-target].active {
        width: 20px !important;
    }

    /* Hide floating arrows on mobile to keep layout clean and prevent interference */
    .hero-nav-btn {
        display: none !important;
    }
    .navbar {
        top: 12px;
        width: calc(100% - 24px);
        padding: 8px 16px;
        border-radius: 20px;
    }
    .navbar.scrolled {
        top: 8px;
        padding: 6px 16px;
    }
    .navbar .container {
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        justify-content: center;
    }
    .navbar-brand {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 10px;
        margin: 0 auto;
    }
    .navbar-brand img.brand-logo {
        height: 42px;
    }
    .navbar-brand .brand-text-stack {
        flex-direction: row;
        align-items: center;
        gap: 6px;
    }
    .navbar-brand .brand-text-stack .word-smart,
    .navbar-brand .brand-text-stack .word-safe,
    .navbar-brand .brand-text-stack .word-vision {
        font-size: 16px;
    }

    /* Floating Dock at the Bottom Center of Screen on Mobile */
    .mobile-bottom-dock {
        position: fixed !important;
        bottom: 24px !important;
        left: 50% !important;
        transform: translateX(-50%) !important;
        z-index: 1050 !important;
        display: flex !important;
        align-items: center;
        justify-content: center;
        gap: 14px;
        padding: 8px 16px;
        border-radius: 999px;
        background: rgba(255, 255, 255, 0.90);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        border: 1px solid var(--border-color);
        box-shadow: 0 14px 40px rgba(0, 0, 0, 0.18), 0 2px 10px rgba(0, 0, 0, 0.06);
    }
    [data-theme="dark"] .mobile-bottom-dock {
        background: rgba(13, 27, 61, 0.88);
        border-color: rgba(255, 255, 255, 0.15);
        box-shadow: 0 18px 45px rgba(0, 0, 0, 0.5), 0 0 25px rgba(30, 111, 74, 0.15);
    }

    .mobile-bottom-dock .theme-toggle-btn,
    .mobile-bottom-dock .lang-toggle-btn,
    .mobile-bottom-dock .navbar-toggler {
        width: 44px;
        height: 44px;
        font-size: 1.05rem;
        flex-shrink: 0;
    }
    .mobile-bottom-dock .navbar-toggler i {
        font-size: 1.05rem;
    }

    /* Language Dropdown opens upward from bottom dock */
    .mobile-bottom-dock .lang-dropdown-menu {
        position: absolute !important;
        bottom: calc(100% + 14px) !important;
        top: auto !important;
        left: 50% !important;
        right: auto !important;
        transform: translateX(-50%) !important;
        margin-top: 0 !important;
        margin-bottom: 0 !important;
        box-shadow: 0 -14px 40px rgba(0, 0, 0, 0.18), 0 -2px 10px rgba(0, 0, 0, 0.06);
    }
    [data-theme="dark"] .mobile-bottom-dock .lang-dropdown-menu {
        box-shadow: 0 -18px 45px rgba(0, 0, 0, 0.5), 0 0 25px rgba(30, 111, 74, 0.15);
    }

    .navbar-collapse {
        background: transparent;
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
        border: none;
        border-top: 1px solid var(--border-color);
        border-radius: 0;
        padding: 16px 0 8px 0;
        margin-top: 12px;
        box-shadow: none;
        flex-basis: 100%;
        width: 100%;
        text-align: center;
    }
    [data-theme="dark"] .navbar-collapse { box-shadow: none; }

    /* Raise hero indicators above floating bottom dock */
    .hero-indicators-container {
        bottom: 88px;
    }

    .footer-content {
        grid-template-columns: 1fr 1fr;
        gap: 30px;
    }
    .footer-section:first-child {
        grid-column: 1 / -1;
    }
}

@media (min-width: 992px) {
    .mobile-bottom-dock {
        display: none !important;
    }
    .navbar-toggler {
        display: none !important;
    }
    .navbar-collapse {
        order: 2;
    }
}

@media (max-width: 400px) {
    .navbar-brand img.brand-logo {
        height: 36px;
    }
    .navbar-brand .brand-text-stack .word-smart,
    .navbar-brand .brand-text-stack .word-safe,
    .navbar-brand .brand-text-stack .word-vision {
        font-size: 14px;
    }
    .mobile-bottom-dock {
        bottom: 16px !important;
        padding: 6px 14px;
        gap: 10px;
    }
    .mobile-bottom-dock .theme-toggle-btn,
    .mobile-bottom-dock .lang-toggle-btn,
    .mobile-bottom-dock .navbar-toggler {
        width: 40px;
        height: 40px;
        font-size: 0.95rem;
    }
    .mobile-bottom-dock .navbar-toggler i {
        font-size: 0.95rem;
    }
    .hero-indicators-container {
        bottom: 78px;
    }
}
@media (max-width: 768px) {
    .features, .how-it-works, .detections, .cta, .stats { padding: 70px 0; }
    .hero { text-align: center; }
    .hero h1 { font-size: 2.5rem; }
    .hero-content > p { margin-left: auto; margin-right: auto; font-size: 1.1rem; }
    .hero-stats { grid-template-columns: repeat(3, 1fr); gap: 12px; text-align: center; }
    .hero-stat { padding: 16px 12px; align-items: center; }
    .hero-stat .stat-icon-wrap { width: 38px; height: 38px; font-size: 0.95rem; }
    .hero-stat .stat-value, .hero-stat h3 { justify-content: center; font-size: 1.6rem; }
    .hero-stat .stat-caption, .hero-stat p { font-size: 0.76rem; }
    .section-title h2 { font-size: 2.2rem; }
    
    .process-container::before { left: 24px; }
    .process-step { padding-left: 55px; margin-bottom: 50px; display: block; }
    .step-number {
        position: absolute; left: 0; top: 0; margin: 0;
        width: 48px; height: 48px; font-size: 1.2rem; z-index: 3;
    }
    .step-card { width: 100%; padding: 24px; }
    
    .det-grid { grid-template-columns: 1fr; }
    .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }
    .stat-item { padding: 25px 15px; }
    .stat-number { font-size: 2.4rem; }
    .cta h2 { font-size: 2.2rem; }
}
@media (max-width: 576px) {
    .hero h1 { font-size: 2.2rem; }
    .hero-stats { gap: 8px; padding-top: 20px; margin-top: 30px; }
    .hero-stat { padding: 12px 8px; border-radius: 16px; }
    .hero-stat .stat-icon-wrap { width: 32px; height: 32px; font-size: 0.85rem; margin-bottom: 8px; }
    .hero-stat .stat-value, .hero-stat h3 { font-size: 1.35rem; gap: 4px; }
    .hero-stat .stat-caption, .hero-stat p { font-size: 0.68rem; }
    .stats-grid { grid-template-columns: 1fr; gap: 16px; }
    .footer-content { grid-template-columns: 1fr; }
    .btn-cta-primary, .btn-outline-light, .hero .btn-nav-primary {
        width: 100%; text-align: center; justify-content: center;
    }
}

/* ==========================================================================
   Modern Modal & Dialog System
   ========================================================================== */
.demo-overlay {
    position: fixed;
    inset: 0;
    z-index: 1055;
    /* Same backdrop as the dashboard popups: plain 50% black, no blur */
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.3s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.3s ease;
}
.demo-overlay.active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.demo-modal-content {
    background: #ffffff; /* fully opaque, like the dashboard popups */
    border: 1px solid var(--border-color);
    border-radius: 24px;
    box-shadow: 0 25px 70px rgba(0, 0, 0, 0.3), 0 0 0 1px rgba(255, 255, 255, 0.05);
    transform: scale(0.93) translateY(20px);
    opacity: 0;
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    overflow: hidden;
    width: 100%;
}
[data-theme="dark"] .demo-modal-content {
    background: #122347;
    border-color: rgba(255, 255, 255, 0.12);
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6), 0 0 40px rgba(30, 111, 74, 0.12);
}
.demo-overlay.active .demo-modal-content {
    transform: scale(1) translateY(0);
    opacity: 1;
}

/* Close Button */
.demo-modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(13, 27, 61, 0.06);
    border: 1px solid var(--border-color);
    color: var(--text-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
    font-size: 0.9rem;
    z-index: 10;
    outline: none;
}
[data-theme="dark"] .demo-modal-close {
    background: rgba(255, 255, 255, 0.08);
}
.demo-modal-close:hover {
    background: var(--primary);
    color: #ffffff;
    border-color: var(--primary);
    transform: rotate(90deg) scale(1.08);
    box-shadow: 0 4px 15px var(--primary-glow);
}

/* Contact Modal Styling */
.contact-modal-card {
    max-width: 530px;
}
.modal-glow-bg {
    position: absolute;
    top: -60px;
    right: -60px;
    width: 240px;
    height: 240px;
    background: radial-gradient(circle, var(--primary-glow) 0%, transparent 70%);
    pointer-events: none;
    z-index: 0;
}
.modal-body-wrapper {
    position: relative;
    z-index: 1;
    padding: 38px 36px 32px;
}
.modal-header-modern {
    margin-bottom: 24px;
    padding-right: 36px;
}
.modal-header-top {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 10px;
}
.modal-icon-badge {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    background: linear-gradient(135deg, rgba(30, 111, 74, 0.15), rgba(16, 185, 129, 0.25));
    border: 1px solid rgba(30, 111, 74, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--electric-blue);
    font-size: 1.25rem;
    flex-shrink: 0;
}
.modal-title-text {
    font-family: 'Outfit', 'Plus Jakarta Sans', sans-serif;
    font-size: 1.55rem;
    font-weight: 700;
    color: var(--title-color);
    margin-bottom: 0;
    line-height: 1.2;
}
.modal-subtitle-text {
    font-size: 0.92rem;
    color: var(--text-muted);
    line-height: 1.5;
    margin-bottom: 0;
}

/* Contact Modal - Direct Contact Channels */
.contact-modal-card {
    max-width: 530px;
}
.contact-cards-container {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-bottom: 22px;
}
.contact-info-card {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 18px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border-color);
    text-decoration: none;
    color: var(--text-main);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    overflow: hidden;
}
[data-theme="light"] .contact-info-card {
    background: #f8fafc;
    border-color: rgba(13, 27, 61, 0.1);
}
.contact-info-card:hover {
    transform: translateY(-2px);
    border-color: var(--primary);
    background: rgba(30, 111, 74, 0.08);
    box-shadow: 0 10px 24px var(--primary-glow);
    color: var(--text-main);
}
[data-theme="light"] .contact-info-card:hover {
    background: #ffffff;
    border-color: var(--primary);
    box-shadow: 0 8px 22px rgba(30, 111, 74, 0.15);
}
.contact-info-icon {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    flex-shrink: 0;
    transition: transform 0.3s ease;
}
.contact-info-card:hover .contact-info-icon {
    transform: scale(1.08);
}
.contact-info-icon.email-icon {
    background: linear-gradient(135deg, rgba(30, 111, 74, 0.2), rgba(0, 212, 255, 0.25));
    border: 1px solid rgba(30, 111, 74, 0.35);
    color: var(--electric-blue);
}
.contact-info-icon.phone-icon {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.2), rgba(5, 150, 105, 0.25));
    border: 1px solid rgba(16, 185, 129, 0.35);
    color: #10b981;
}
.contact-info-text {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-width: 0;
}
.contact-info-label {
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: var(--text-muted);
    margin-bottom: 2px;
}
.contact-info-val {
    font-size: clamp(0.92rem, 3.2vw, 1.08rem);
    font-weight: 700;
    color: var(--title-color);
    font-family: 'Outfit', 'Plus Jakarta Sans', sans-serif;
    letter-spacing: 0.2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.contact-info-desc {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 1px;
}
.contact-info-arrow {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    font-size: 0.8rem;
    flex-shrink: 0;
    transition: all 0.3s ease;
}
[data-theme="light"] .contact-info-arrow {
    background: rgba(13, 27, 61, 0.05);
}
.contact-info-card:hover .contact-info-arrow {
    background: var(--primary);
    color: #ffffff;
    border-color: var(--primary);
    transform: translateX(4px);
}

/* Quick Action Buttons */
.contact-modal-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}
@media (max-width: 480px) {
    .contact-modal-actions {
        grid-template-columns: 1fr;
    }
}
.btn-modal-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 18px;
    border-radius: 12px;
    font-size: 0.95rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.btn-email-action {
    background: linear-gradient(135deg, var(--primary), var(--electric-blue));
    color: #ffffff !important;
    box-shadow: 0 4px 16px var(--primary-glow);
}
.btn-email-action:hover {
    color: #ffffff !important;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px var(--primary-glow);
    filter: brightness(1.08);
}
.btn-phone-action {
    background: rgba(16, 185, 129, 0.14);
    color: #10b981 !important;
    border: 1px solid rgba(16, 185, 129, 0.35);
}
.btn-phone-action:hover {
    background: #10b981;
    color: #ffffff !important;
    border-color: #10b981;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(16, 185, 129, 0.3);
}

/* Demo Video Modal Styling - Unified with Modern Modal Design */
.demo-modal-card {
    max-width: 860px;
}
.demo-live-pill {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 3px 10px;
    border-radius: 20px;
    background: rgba(5, 150, 105, 0.12);
    border: 1px solid rgba(5, 150, 105, 0.3);
    color: #10b981;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.8px;
}
.live-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #10b981;
    box-shadow: 0 0 8px #10b981;
    animation: live-pulse 1.8s infinite;
}
@keyframes live-pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.35; transform: scale(0.85); }
}
.modern-video-container {
    border-radius: 18px;
    overflow: hidden;
    border: 1px solid var(--border-color);
    background: #000000;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.18);
    position: relative;
}
[data-theme="dark"] .modern-video-container {
    border-color: rgba(255, 255, 255, 0.12);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.5), 0 0 30px rgba(30, 111, 74, 0.1);
}
.modern-video-inner {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    width: 100%;
}
.modern-video-inner iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

@media (max-width: 576px) {
    .modal-body-wrapper {
        padding: 24px 18px 20px;
    }
    .modal-header-modern {
        margin-bottom: 18px;
        padding-right: 32px;
    }
    .modal-header-top {
        display: flex;
        align-items: center;
        gap: 12px;
        margin-bottom: 8px;
    }
    .modal-icon-badge {
        width: 42px;
        height: 42px;
        font-size: 1.15rem;
        border-radius: 12px;
        flex-shrink: 0;
    }
    .modal-title-text {
        font-size: 1.35rem;
        margin-bottom: 0;
    }
    .modal-subtitle-text {
        font-size: 0.85rem;
        line-height: 1.45;
    }
    .contact-info-card {
        padding: 13px 14px;
        gap: 12px;
    }
    .contact-info-icon {
        width: 42px;
        height: 42px;
        font-size: 1.15rem;
        border-radius: 12px;
    }
    .contact-info-val {
        font-size: clamp(0.85rem, 3.6vw, 1.02rem);
    }
    .contact-info-arrow {
        width: 30px;
        height: 30px;
        font-size: 0.75rem;
    }
    .footer-content {
        grid-template-columns: 1fr;
        gap: 28px;
    }
}

/* ==========================================================================
   Arabic (RTL) Support
   ========================================================================== */
@media (min-width: 992px) {
    [dir="rtl"] {
        --hero-overlay: linear-gradient(
            to left,
            rgba(244, 247, 252, 0.95) 0%,
            rgba(244, 247, 252, 0.82) 45%,
            rgba(244, 247, 252, 0.5) 75%,
            rgba(244, 247, 252, 0.28) 100%
        );
    }
    [dir="rtl"][data-theme="dark"] {
        --hero-overlay: linear-gradient(
            to left,
            rgba(13, 27, 61, 0.94) 0%,
            rgba(13, 27, 61, 0.78) 45%,
            rgba(13, 27, 61, 0.45) 75%,
            rgba(13, 27, 61, 0.22) 100%
        );
    }
}

html[lang="ar"] *:not(.fa):not(.fas):not(.far):not(.fab) {
    font-family: 'Cairo', sans-serif !important;
}

[dir="rtl"] .hero-stat,
[dir="rtl"] .feature-card,
[dir="rtl"] .det-item {
    text-align: right;
}

[dir="rtl"] .navbar-brand .brand-text-stack,
[dir="rtl"] .loader-content .brand-text-stack {
    direction: ltr;
}

[dir="rtl"] .hero-nav-btn.carousel-control-prev {
    left: auto;
    right: 24px;
}
[dir="rtl"] .hero-nav-btn.carousel-control-next {
    right: auto;
    left: 24px;
}
[dir="rtl"] .hero-nav-btn.carousel-control-prev i::before { content: "\f054"; }
[dir="rtl"] .hero-nav-btn.carousel-control-next i::before { content: "\f053"; }

[dir="rtl"] .feature-card::before {
    right: auto;
    left: 0;
    border-radius: 0 0 100% 0;
}
[dir="rtl"] .feature-icon {
    right: auto;
    left: 22px;
}

/* Cairo font for any Arabic-tagged text, even on non-Arabic pages (e.g. the language switcher's "العربية" label) */
[lang="ar"] {
    font-family: 'Cairo', sans-serif;
}
