/* ==========================================================================
   ElectroComps - Official Brand Design System
   "Simple Solutions for Complex Connections"
   Clean Modern Light Tech Theme with Logo-Matched Emerald & Forest Green Accents
   ========================================================================== */

:root {
    /* Brand Colors derived from ElectroComps Logo */
    --brand-green-light: #4ade80;
    --brand-green: #22c55e;
    --brand-emerald: #10b981;
    --brand-teal: #059669;
    --brand-forest: #065f46;
    --brand-dark-forest: #044332;

    /* Light Theme Backgrounds & Surfaces */
    --bg-page: #f8fafc;
    --bg-surface: #ffffff;
    --bg-card: #ffffff;
    --bg-muted: #f1f5f9;
    --bg-glass: rgba(255, 255, 255, 0.92);

    /* Borders & Dividers */
    --border-subtle: #e2e8f0;
    --border-focus: #10b981;
    --border-glow: rgba(16, 185, 129, 0.4);

    /* Typography Colors (High contrast, clean & crisp) */
    --text-primary: #0f172a;       /* Deep slate heading text */
    --text-secondary: #475569;     /* Slate-600 body text */
    --text-muted: #64748b;         /* Slate-500 secondary text */
    --text-brand: #059669;         /* Brand green text */

    /* Fonts */
    --font-heading: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-body: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-mono: 'JetBrains Mono', 'Fira Code', monospace;

    /* Radii */
    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 20px;
    --radius-xl: 28px;
    --radius-pill: 9999px;

    /* Shadows */
    --shadow-card: 0 4px 20px -2px rgba(15, 23, 42, 0.06), 0 2px 6px -1px rgba(15, 23, 42, 0.04);
    --shadow-card-hover: 0 20px 35px -5px rgba(16, 185, 129, 0.12), 0 8px 16px -4px rgba(15, 23, 42, 0.06);
    --shadow-button: 0 4px 14px rgba(16, 185, 129, 0.35);
}

/* Global Reset & Page Canvas */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background-color: var(--bg-page);
    color: var(--text-secondary);
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.65;
    overflow-x: hidden;
    position: relative;
    background-image: 
        radial-gradient(circle at 10% 15%, rgba(34, 197, 94, 0.07) 0%, transparent 45%),
        radial-gradient(circle at 90% 25%, rgba(16, 185, 129, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 50% 85%, rgba(6, 95, 70, 0.05) 0%, transparent 55%),
        linear-gradient(to right, rgba(15, 23, 42, 0.02) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(15, 23, 42, 0.02) 1px, transparent 1px);
    background-size: 100% 100%, 100% 100%, 100% 100%, 48px 48px, 48px 48px;
    min-height: 100vh;
}

/* Soft Ambient Lighting */
.cyber-glow-orb {
    position: absolute;
    width: 500px;
    height: 500px;
    border-radius: 50%;
    filter: blur(140px);
    pointer-events: none;
    z-index: 0;
    opacity: 0.35;
}

.glow-orb-cyan {
    background: radial-gradient(circle, var(--brand-green-light) 0%, transparent 70%);
    top: 0%;
    left: -120px;
}

.glow-orb-purple {
    background: radial-gradient(circle, var(--brand-emerald) 0%, transparent 70%);
    top: 40%;
    right: -120px;
}

/* Typography Helpers */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.25;
}

.gradient-text-cyan {
    background: linear-gradient(135deg, #0f172a 10%, #059669 60%, #10b981 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.gradient-text-purple {
    background: linear-gradient(135deg, #059669 0%, #10b981 50%, #22c55e 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.text-cyan { color: var(--brand-teal) !important; }
.text-brand { color: var(--brand-emerald) !important; }
.text-muted-custom { color: var(--text-muted) !important; }

/* Top Contact Bar */
.top-contact-bar {
    background: #0f172a;
    color: #cbd5e1;
    font-size: 0.84rem;
}

.top-contact-bar a {
    color: #cbd5e1;
    text-decoration: none;
    transition: color 0.2s ease;
}

.top-contact-bar a:hover {
    color: var(--brand-green-light);
}

/* Modern Sticky Navbar */
.cyber-navbar {
    background: var(--bg-glass);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-subtle);
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
}

.cyber-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}

.cyber-nav-link {
    color: #334155;
    font-weight: 600;
    font-size: 0.95rem;
    padding: 8px 18px;
    border-radius: var(--radius-pill);
    text-decoration: none;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.cyber-nav-link:hover, .cyber-nav-link.active {
    color: var(--brand-teal);
    background: rgba(16, 185, 129, 0.08);
}

.cyber-nav-link.active {
    color: var(--brand-forest);
    border: 1px solid rgba(16, 185, 129, 0.25);
    background: rgba(16, 185, 129, 0.1);
}

/* Brand Buttons */
.btn-cyber-primary {
    background: linear-gradient(135deg, #22c55e 0%, #10b981 50%, #059669 100%);
    color: #ffffff !important;
    font-weight: 700;
    font-size: 0.95rem;
    padding: 12px 28px;
    border-radius: var(--radius-pill);
    border: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    box-shadow: var(--shadow-button);
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    cursor: pointer;
}

.btn-cyber-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(16, 185, 129, 0.45);
    color: #ffffff !important;
}

.btn-cyber-outline {
    background: #ffffff;
    color: var(--brand-forest) !important;
    font-weight: 600;
    font-size: 0.95rem;
    padding: 11px 26px;
    border-radius: var(--radius-pill);
    border: 1.5px solid rgba(16, 185, 129, 0.3);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    transition: all 0.25s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.btn-cyber-outline:hover {
    background: rgba(16, 185, 129, 0.06);
    border-color: var(--brand-emerald);
    color: var(--brand-teal) !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 14px rgba(16, 185, 129, 0.15);
}

/* Slogan Pill Badge */
.cyber-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 7px 16px;
    border-radius: var(--radius-pill);
    font-size: 0.82rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.35);
    color: var(--brand-forest);
    margin-bottom: 16px;
}

.pulse-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: var(--brand-emerald);
    box-shadow: 0 0 10px var(--brand-emerald);
    animation: pulseGlow 1.8s infinite;
}

@keyframes pulseGlow {
    0% { transform: scale(0.9); opacity: 0.7; }
    50% { transform: scale(1.3); opacity: 1; box-shadow: 0 0 12px var(--brand-emerald); }
    100% { transform: scale(0.9); opacity: 0.7; }
}

/* Crisp White Cards & Bento Grid */
.cyber-card {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    padding: 30px;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 100%;
    box-shadow: var(--shadow-card);
}

.cyber-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3.5px;
    background: linear-gradient(90deg, var(--brand-green), var(--brand-emerald), var(--brand-forest));
    opacity: 0.85;
    transition: opacity 0.3s ease;
}

.cyber-card:hover {
    transform: translateY(-6px);
    border-color: rgba(16, 185, 129, 0.35);
    box-shadow: var(--shadow-card-hover);
}

.cyber-icon-badge {
    width: 60px;
    height: 60px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    margin-bottom: 20px;
    position: relative;
    transition: transform 0.3s ease;
}

.cyber-card:hover .cyber-icon-badge {
    transform: scale(1.08) rotate(2deg);
}

/* Service Pill / Tag */
.cyber-tag {
    display: inline-flex;
    align-items: center;
    padding: 5px 12px;
    border-radius: 8px;
    font-size: 0.78rem;
    font-weight: 600;
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
    color: #475569;
}

/* Stat Box */
.cyber-stat-box {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: var(--radius-md);
    padding: 22px;
    text-align: center;
    transition: all 0.25s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.04);
}

.cyber-stat-box:hover {
    border-color: var(--brand-emerald);
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(16, 185, 129, 0.1);
}

.cyber-stat-num {
    font-family: var(--font-heading);
    font-size: 2.2rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 4px;
    color: var(--brand-forest);
}

/* Tech List Checklist */
.tech-checklist {
    list-style: none;
    padding: 0;
    margin: 20px 0 0 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.tech-checklist li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 0.94rem;
    color: #334155;
}

.tech-checklist li i {
    color: var(--brand-emerald);
    font-size: 1.1rem;
    margin-top: 2px;
    flex-shrink: 0;
}

/* Quote Calculator Widget */
.quote-calculator-box {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: var(--radius-xl);
    padding: 35px;
    box-shadow: 0 15px 40px -10px rgba(0, 0, 0, 0.08);
}

/* Stat Metrics Banner Box */
.stat-metrics-box {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    transition: background 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.stat-sub-label {
    color: #64748b;
    transition: color 0.3s ease;
}

/* Flagship Software Spotlight Section */
.software-spotlight-section {
    background: linear-gradient(180deg, rgba(16, 185, 129, 0.03) 0%, rgba(241, 245, 249, 0.6) 50%, rgba(255, 255, 255, 0.8) 100%);
    border-top: 1px solid var(--border-subtle);
    border-bottom: 1px solid var(--border-subtle);
    transition: background 0.3s ease, color 0.3s ease;
}

.software-product-card {
    background: #ffffff;
    box-shadow: 0 10px 35px -5px rgba(15, 23, 42, 0.08);
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.software-product-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 18px 45px -8px rgba(15, 23, 42, 0.12);
}

.software-tag-pill {
    background: #f1f5f9;
    color: #475569;
    border: 1px solid #e2e8f0;
    transition: all 0.2s ease;
}

.software-metric-strip {
    background: #ffffff;
    border: 1.5px dashed #cbd5e1;
    transition: all 0.3s ease;
}

.software-metric-strip .metric-label {
    color: #64748b;
}

/* Live Demo Banner on Service Detail */
.live-demo-banner {
    background: #ffffff;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.06);
    transition: all 0.3s ease;
}

.form-cyber-input {
    background: #f8fafc;
    border: 1.5px solid #cbd5e1;
    border-radius: var(--radius-md);
    color: #0f172a;
    padding: 12px 18px;
    font-size: 0.95rem;
    width: 100%;
    transition: all 0.2s ease;
}

.form-cyber-input:focus {
    background: #ffffff;
    border-color: var(--brand-emerald);
    outline: none;
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.15);
    color: #0f172a;
}

.form-cyber-select {
    background: #f8fafc url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23059669' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m2 5 6 6 6-6'/%3e%3c/svg%3e") no-repeat right 1rem center/14px 10px;
    border: 1.5px solid #cbd5e1;
    border-radius: var(--radius-md);
    color: #0f172a;
    padding: 12px 18px;
    font-size: 0.95rem;
    width: 100%;
    appearance: none;
    -webkit-appearance: none;
}

.form-cyber-select:focus {
    background-color: #ffffff;
    border-color: var(--brand-emerald);
    outline: none;
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.15);
    color: #0f172a;
}

/* Clean Terminal Window */
.terminal-window {
    background: #0f172a;
    border: 1px solid #334155;
    border-radius: var(--radius-lg);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    overflow: hidden;
    font-family: var(--font-mono);
}

.terminal-header {
    background: #1e293b;
    padding: 12px 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.terminal-dots {
    display: flex;
    gap: 8px;
}

.terminal-dot {
    width: 11px;
    height: 11px;
    border-radius: 50%;
}

.dot-red { background: #ef4444; }
.dot-yellow { background: #f59e0b; }
.dot-green { background: #10b981; }

.terminal-body {
    padding: 24px;
    color: #f1f5f9;
    font-size: 0.92rem;
    line-height: 1.7;
}

/* Footer Styling (Dark Anchor Footer for visual balance) */
.cyber-footer {
    background: #0b1320;
    border-top: 3px solid var(--brand-emerald);
    padding: 70px 0 30px;
    margin-top: 100px;
    position: relative;
    color: #cbd5e1;
}

.cyber-footer-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.cyber-footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.cyber-footer-links a {
    color: #94a3b8;
    text-decoration: none;
    font-size: 0.94rem;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.cyber-footer-links a:hover {
    color: var(--brand-green-light);
    transform: translateX(4px);
}

.footer-social-btn {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    text-decoration: none;
    transition: all 0.2s ease;
}

.footer-social-btn:hover {
    background: var(--brand-emerald);
    color: #ffffff;
    box-shadow: 0 0 15px rgba(16, 185, 129, 0.4);
    transform: translateY(-2px);
}

/* Responsive adjustments */
@media (max-width: 991px) {
    .quote-calculator-box {
        padding: 24px;
    }
}

/* 1-Line Auto-Scrollable Services Track */
.services-horizontal-track {
    display: flex;
    flex-wrap: nowrap;
    gap: 1.25rem;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-behavior: smooth;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 0.75rem;
    padding-top: 0.5rem;
    padding-left: 2px;
    padding-right: 2px;
    align-items: stretch;
    scrollbar-width: thin;
    scrollbar-color: var(--brand-emerald) #e2e8f0;
}

.services-horizontal-track::-webkit-scrollbar {
    height: 7px;
}

.services-horizontal-track::-webkit-scrollbar-track {
    background: #e2e8f0;
    border-radius: 10px;
}

.services-horizontal-track::-webkit-scrollbar-thumb {
    background: var(--brand-emerald);
    border-radius: 10px;
}

.services-horizontal-track::-webkit-scrollbar-thumb:hover {
    background: var(--brand-forest);
}

/* Service Slide - Exact 1, 2, 3 or 4 cards per row (NO HALF CARDS) */
.service-card-slide {
    flex: 0 0 100%;
    width: 100%;
    scroll-snap-align: start;
    display: flex;
    box-sizing: border-box;
}

/* Tablet (>= 768px): Exactly 2 Cards */
@media (min-width: 768px) {
    .service-card-slide {
        flex: 0 0 calc((100% - 1.25rem) / 2);
        width: calc((100% - 1.25rem) / 2);
    }
}

/* Desktop (>= 992px): Exactly 3 Cards */
@media (min-width: 992px) {
    .service-card-slide {
        flex: 0 0 calc((100% - 2 * 1.25rem) / 3);
        width: calc((100% - 2 * 1.25rem) / 3);
    }
}

/* Large Screens (>= 1200px): Exactly 4 Cards */
@media (min-width: 1200px) {
    .service-card-slide {
        flex: 0 0 calc((100% - 3 * 1.25rem) / 4);
        width: calc((100% - 3 * 1.25rem) / 4);
    }
}

/* Compact padding inside slider cards */
.service-card-slide .cyber-card {
    padding: 24px 20px;
}

.service-card-slide .cyber-card h4 {
    font-size: 1.15rem;
    min-height: 2.7rem;
    line-height: 1.35;
}

.service-card-slide .cyber-icon-badge {
    width: 52px;
    height: 52px;
    font-size: 1.4rem;
    margin-bottom: 14px;
}

.service-card-slide .tech-checklist li {
    font-size: 0.83rem;
    margin-bottom: 0.35rem;
}

/* Carousel Pagination Dots */
.service-dot {
    width: 9px;
    height: 9px;
    border-radius: 20px;
    border: none;
    background: #cbd5e1;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    cursor: pointer;
    padding: 0;
}

.service-dot:hover {
    background: var(--brand-emerald);
}

.service-dot.active {
    width: 28px;
    background: var(--brand-emerald);
    box-shadow: 0 0 10px rgba(16, 185, 129, 0.4);
}

/* ==========================================================================
   1. Cyber Dark Mode (Theme Switcher)
   ========================================================================== */
[data-theme="dark"] {
    --bg-page: #0b1120;
    --bg-surface: #0f172a;
    --bg-card: #1e293b;
    --bg-muted: #1e293b;
    --bg-glass: rgba(15, 23, 42, 0.94);
    --border-subtle: #334155;
    --text-primary: #f8fafc;
    --text-secondary: #cbd5e1;
    --text-muted: #94a3b8;
    --text-brand: #34d399;
    --shadow-card: 0 4px 25px -2px rgba(0, 0, 0, 0.45);
    --shadow-card-hover: 0 20px 40px -5px rgba(16, 185, 129, 0.25);
}

[data-theme="dark"] body {
    background-color: var(--bg-page);
    color: var(--text-secondary);
    background-image: 
        radial-gradient(circle at 10% 15%, rgba(16, 185, 129, 0.12) 0%, transparent 45%),
        radial-gradient(circle at 90% 25%, rgba(52, 211, 153, 0.09) 0%, transparent 50%),
        radial-gradient(circle at 50% 85%, rgba(6, 95, 70, 0.15) 0%, transparent 55%),
        linear-gradient(to right, rgba(255, 255, 255, 0.03) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
}

[data-theme="dark"] h1, 
[data-theme="dark"] h2, 
[data-theme="dark"] h3, 
[data-theme="dark"] h4, 
[data-theme="dark"] h5, 
[data-theme="dark"] h6,
[data-theme="dark"] .text-dark {
    color: #f8fafc !important;
}

[data-theme="dark"] .cyber-navbar {
    background: rgba(15, 23, 42, 0.94);
    border-bottom-color: #334155;
}

[data-theme="dark"] .cyber-nav-link {
    color: #cbd5e1;
}

[data-theme="dark"] .cyber-nav-link:hover,
[data-theme="dark"] .cyber-nav-link.active {
    color: #34d399;
}

[data-theme="dark"] .cyber-card {
    background: #1e293b;
    border-color: #334155;
    color: #cbd5e1;
}

[data-theme="dark"] .dropdown-menu {
    background: #1e293b !important;
    border: 1px solid #334155 !important;
}

[data-theme="dark"] .dropdown-item {
    color: #e2e8f0 !important;
}

[data-theme="dark"] .dropdown-item:hover {
    background: #0f172a !important;
    color: #34d399 !important;
}

[data-theme="dark"] .btn-cyber-outline {
    border-color: #334155;
    color: #e2e8f0;
    background: #1e293b;
}

[data-theme="dark"] .btn-cyber-outline:hover {
    border-color: var(--brand-emerald);
    color: #34d399;
}

[data-theme="dark"] .quote-calculator-box {
    background: #1e293b !important;
    color: #f8fafc !important;
    border-color: #334155 !important;
}

[data-theme="dark"] .stat-metrics-box {
    background: rgba(15, 23, 42, 0.75) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    backdrop-filter: blur(8px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3) !important;
}

[data-theme="dark"] .stat-sub-label {
    color: #94a3b8 !important;
}

[data-theme="dark"] .software-spotlight-section {
    background: linear-gradient(180deg, #0b1120 0%, #111827 50%, #0f172a 100%) !important;
    border-top-color: #334155 !important;
    border-bottom-color: #334155 !important;
    color: #f8fafc !important;
}

[data-theme="dark"] .software-product-card {
    background: rgba(30, 41, 59, 0.7) !important;
    backdrop-filter: blur(12px);
    box-shadow: 0 15px 40px -10px rgba(0, 0, 0, 0.5) !important;
}

[data-theme="dark"] .software-tag-pill {
    background: rgba(15, 23, 42, 0.6) !important;
    color: #cbd5e1 !important;
    border-color: rgba(255, 255, 255, 0.1) !important;
}

[data-theme="dark"] .software-metric-strip {
    background: rgba(15, 23, 42, 0.6) !important;
    border-color: rgba(255, 255, 255, 0.12) !important;
}

[data-theme="dark"] .software-metric-strip .metric-label {
    color: #94a3b8 !important;
}

[data-theme="dark"] .live-demo-banner {
    background: linear-gradient(135deg, #0f172a, #1e293b) !important;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4) !important;
}

[data-theme="dark"] .form-cyber-input,
[data-theme="dark"] .form-cyber-select {
    background: #0f172a !important;
    border-color: #334155 !important;
    color: #f8fafc !important;
}

[data-theme="dark"] .modal-content {
    background: #1e293b !important;
    color: #f8fafc !important;
}

/* Theme Toggle Button */
.theme-toggle-btn {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    border: 1.5px solid var(--border-subtle);
    background: #ffffff;
    color: #0f172a;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

[data-theme="dark"] .theme-toggle-btn {
    background: #1e293b;
    border-color: #334155;
    color: #facc15;
}

.theme-toggle-btn:hover {
    transform: scale(1.08);
    border-color: var(--brand-emerald);
}

/* ==========================================================================
   2. Interactive Project Cost & Quotation Calculator
   ========================================================================== */
.calc-card-container {
    background: #ffffff;
    border: 1.5px solid #e2e8f0;
    border-radius: 24px;
    padding: 2.2rem;
    box-shadow: 0 10px 35px -5px rgba(15, 23, 42, 0.08);
    position: relative;
    overflow: hidden;
}

[data-theme="dark"] .calc-card-container {
    background: #1e293b;
    border-color: #334155;
    box-shadow: 0 10px 35px -5px rgba(0, 0, 0, 0.4);
}

.calc-tab-nav {
    display: flex;
    gap: 0.5rem;
    overflow-x: auto;
    padding-bottom: 0.5rem;
    scrollbar-width: none;
}

.calc-tab-nav::-webkit-scrollbar {
    display: none;
}

.calc-tab-btn {
    border: 1.5px solid #e2e8f0;
    background: #f8fafc;
    color: #475569;
    padding: 0.65rem 1.15rem;
    border-radius: 12px;
    font-weight: 700;
    font-size: 0.88rem;
    transition: all 0.18s ease;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    white-space: nowrap;
}

[data-theme="dark"] .calc-tab-btn {
    background: #0f172a;
    border-color: #334155;
    color: #cbd5e1;
}

.calc-tab-btn:hover {
    border-color: var(--brand-emerald);
    color: var(--brand-teal);
}

.calc-tab-btn.active {
    background: #0f172a;
    color: #ffffff;
    border-color: #0f172a;
    box-shadow: 0 4px 14px rgba(15, 23, 42, 0.2);
}

[data-theme="dark"] .calc-tab-btn.active {
    background: var(--brand-emerald);
    color: #0f172a;
    border-color: var(--brand-emerald);
    box-shadow: 0 4px 16px rgba(16, 185, 129, 0.4);
}

.calc-option-chip {
    padding: 0.65rem 0.95rem;
    border-radius: 12px;
    border: 1.5px solid #e2e8f0;
    background: #ffffff;
    color: #334155;
    font-weight: 600;
    font-size: 0.86rem;
    cursor: pointer;
    transition: all 0.16s ease;
    user-select: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
}

[data-theme="dark"] .calc-option-chip {
    background: #0f172a;
    border-color: #334155;
    color: #cbd5e1;
}

.calc-option-chip:hover {
    border-color: #94a3b8;
}

.calc-option-chip.selected {
    border-color: var(--brand-emerald);
    background: #ecfdf5;
    color: #065f46;
    font-weight: 700;
}

[data-theme="dark"] .calc-option-chip.selected {
    background: rgba(16, 185, 129, 0.18);
    border-color: var(--brand-emerald);
    color: #34d399;
}

.calc-estimate-result-box {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    border-radius: 20px;
    padding: 1.8rem;
    color: #ffffff;
    position: relative;
    overflow: hidden;
    box-shadow: 0 8px 25px -4px rgba(15, 23, 42, 0.35);
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.calc-price-display {
    font-size: clamp(1.8rem, 3.2vw, 2.5rem);
    font-weight: 900;
    letter-spacing: -0.04em;
    color: #34d399;
    line-height: 1.1;
    margin: 0.4rem 0 0.8rem;
}

/* ==========================================================================
   3. Live Electronic Components Search & RFQ Engine
   ========================================================================== */
.comp-search-bar {
    background: #ffffff;
    border: 2px solid #e2e8f0;
    border-radius: 16px;
    padding: 0.65rem 1.2rem;
    box-shadow: 0 4px 18px rgba(15, 23, 42, 0.05);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    transition: all 0.2s ease;
}

[data-theme="dark"] .comp-search-bar {
    background: #1e293b;
    border-color: #334155;
}

.comp-search-bar:focus-within {
    border-color: var(--brand-emerald);
    box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.15);
}

.comp-search-bar input {
    border: none;
    outline: none;
    width: 100%;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-primary);
    background: transparent;
}

.comp-filter-chip {
    padding: 0.45rem 0.95rem;
    border-radius: 9999px;
    border: 1px solid #e2e8f0;
    background: #ffffff;
    color: #475569;
    font-size: 0.82rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.15s ease;
    white-space: nowrap;
}

[data-theme="dark"] .comp-filter-chip {
    background: #1e293b;
    border-color: #334155;
    color: #cbd5e1;
}

.comp-filter-chip:hover,
.comp-filter-chip.active {
    background: #0f172a;
    color: #ffffff;
    border-color: #0f172a;
}

[data-theme="dark"] .comp-filter-chip:hover,
[data-theme="dark"] .comp-filter-chip.active {
    background: var(--brand-emerald);
    color: #0f172a;
    border-color: var(--brand-emerald);
}

.comp-card-item {
    background: #ffffff;
    border: 1.5px solid #e2e8f0;
    border-radius: 18px;
    padding: 1.25rem 1.35rem;
    transition: all 0.18s cubic-bezier(0.16, 1, 0.3, 1);
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

[data-theme="dark"] .comp-card-item {
    background: #1e293b;
    border-color: #334155;
}

.comp-card-item:hover {
    transform: translateY(-3px);
    border-color: var(--brand-emerald);
    box-shadow: 0 12px 28px -4px rgba(16, 185, 129, 0.16);
}

/* ==========================================================================
   4. Enterprise Case Studies Showcase
   ========================================================================== */
.case-study-card {
    background: #ffffff;
    border: 1.5px solid #e2e8f0;
    border-radius: 20px;
    padding: 1.8rem;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
    overflow: hidden;
}

[data-theme="dark"] .case-study-card {
    background: #1e293b;
    border-color: #334155;
}

.case-study-card:hover {
    transform: translateY(-4px);
    border-color: #cbd5e1;
    box-shadow: 0 16px 36px -6px rgba(15, 23, 42, 0.12);
}

[data-theme="dark"] .case-study-card:hover {
    border-color: var(--brand-emerald);
    box-shadow: 0 16px 36px -6px rgba(16, 185, 129, 0.18);
}

/* ==========================================================================
   5. Smart AI / WhatsApp Floating Assistant Widget
   ========================================================================== */
.ec-floating-launcher {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 99999;
    display: flex;
    align-items: center;
    gap: 10px;
}

.ec-launcher-btn {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: #ffffff;
    border: none;
    box-shadow: 0 10px 25px rgba(16, 185, 129, 0.45);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
}

.ec-launcher-btn:hover {
    transform: scale(1.08) rotate(5deg);
    box-shadow: 0 14px 30px rgba(16, 185, 129, 0.55);
}

.ec-launcher-pulse {
    position: absolute;
    top: 2px;
    right: 2px;
    width: 14px;
    height: 14px;
    background: #22c55e;
    border: 2px solid #ffffff;
    border-radius: 50%;
    box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.3);
}

.ec-chat-popup {
    position: fixed;
    bottom: 96px;
    right: 24px;
    width: min(380px, calc(100vw - 32px));
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 20px;
    box-shadow: 0 20px 45px -8px rgba(15, 23, 42, 0.22);
    z-index: 99999;
    display: none;
    flex-direction: column;
    overflow: hidden;
    animation: popupSlide 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

[data-theme="dark"] .ec-chat-popup {
    background: #1e293b;
    border-color: #334155;
    box-shadow: 0 20px 45px -8px rgba(0, 0, 0, 0.55);
}

@keyframes popupSlide {
    from { opacity: 0; transform: translateY(12px) scale(0.96); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

.ec-chat-popup.active {
    display: flex;
}



