/* ============================================
   HOLA DOC - Professional Theme CSS
   Version: 2.0 Pro
   Supports: Light Mode & Dark Mode
   ============================================ */

/* ============================================
   CSS VARIABLES - LIGHT MODE (Default)
   ============================================ */
:root {
    /* Primary Colors */
    --hd-primary: #2D9CDB;
    --hd-primary-dark: #2180B9;
    --hd-primary-light: #56CCF2;
    --hd-primary-gradient: linear-gradient(135deg, #2D9CDB 0%, #56CCF2 100%);

    /* Accent Colors */
    --hd-accent: #00B4D8;
    --hd-accent-soft: #E1F5FE;

    /* Background Colors */
    --hd-bg-primary: #FFFFFF;
    --hd-bg-secondary: #F8FBFF;
    --hd-bg-tertiary: #F0F8FF;
    --hd-bg-card: #FFFFFF;

    /* Text Colors */
    --hd-text-primary: #1A1A2E;
    --hd-text-secondary: #4A4A68;
    --hd-text-muted: #8A8AA3;
    --hd-text-inverse: #FFFFFF;

    /* Border & Shadow */
    --hd-border: rgba(45, 156, 219, 0.1);
    --hd-border-hover: rgba(45, 156, 219, 0.3);
    --hd-shadow-sm: 0 2px 10px rgba(0, 0, 0, 0.04);
    --hd-shadow-md: 0 8px 30px rgba(45, 156, 219, 0.1);
    --hd-shadow-lg: 0 20px 60px rgba(45, 156, 219, 0.15);
    --hd-shadow-glow: 0 0 40px rgba(45, 156, 219, 0.2);

    /* Transitions */
    --hd-transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --hd-transition-slow: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);

    /* Radius */
    --hd-radius-sm: 8px;
    --hd-radius-md: 16px;
    --hd-radius-lg: 24px;
    --hd-radius-xl: 32px;
    --hd-radius-full: 100px;
}

/* ============================================
   CSS VARIABLES - DARK MODE
   ============================================ */
[data-theme="dark"],
.dark-mode {
    --hd-primary: #56CCF2;
    --hd-primary-dark: #2D9CDB;
    --hd-primary-light: #7DD8F7;
    --hd-primary-gradient: linear-gradient(135deg, #2D9CDB 0%, #56CCF2 100%);

    --hd-accent: #00D4FF;
    --hd-accent-soft: rgba(45, 156, 219, 0.15);

    --hd-bg-primary: #0D1B2A;
    --hd-bg-secondary: #1B2838;
    --hd-bg-tertiary: #243447;
    --hd-bg-card: #1B2838;

    --hd-text-primary: #FFFFFF;
    --hd-text-secondary: #B8C5D3;
    --hd-text-muted: #6B7C93;
    --hd-text-inverse: #0D1B2A;

    --hd-border: rgba(86, 204, 242, 0.1);
    --hd-border-hover: rgba(86, 204, 242, 0.3);
    --hd-shadow-sm: 0 2px 10px rgba(0, 0, 0, 0.2);
    --hd-shadow-md: 0 8px 30px rgba(0, 0, 0, 0.3);
    --hd-shadow-lg: 0 20px 60px rgba(0, 0, 0, 0.4);
    --hd-shadow-glow: 0 0 60px rgba(86, 204, 242, 0.15);
}

/* ============================================
   BASE STYLES
   ============================================ */
body {
    background-color: var(--hd-bg-primary);
    color: var(--hd-text-secondary);
    font-family: 'Sora', -apple-system, BlinkMacSystemFont, sans-serif;
    transition: var(--hd-transition);
}

h1, h2, h3, h4, h5, h6 {
    color: var(--hd-text-primary);
    font-weight: 700;
}

p {
    color: var(--hd-text-secondary);
    line-height: 1.7;
}

a {
    color: var(--hd-primary);
    transition: var(--hd-transition);
}

a:hover {
    color: var(--hd-primary-dark);
}

/* ============================================
   HEADER / NAVBAR
   ============================================ */
.main-header {
    background: var(--hd-bg-primary);
    border-bottom: 1px solid var(--hd-border);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

.header-sticky {
    background: transparent;
}

.navbar-brand {
    display: flex;
    align-items: center;
    gap: 12px;
}

.navbar-brand .logo-img {
    height: 45px;
    width: auto;
    transition: var(--hd-transition);
}

.navbar-brand:hover .logo-img {
    transform: scale(1.05);
}

.navbar-brand .brand-text {
    font-weight: 800;
    font-size: 22px;
    color: var(--hd-primary) !important;
}

.navbar-brand .brand-subtitle {
    font-weight: 400;
    font-size: 12px;
    color: var(--hd-text-muted);
    margin-left: 8px;
}

.navbar-nav .nav-link {
    color: var(--hd-text-secondary) !important;
    font-weight: 500;
    padding: 10px 20px !important;
    border-radius: var(--hd-radius-sm);
    transition: var(--hd-transition);
}

.navbar-nav .nav-link:hover {
    color: var(--hd-primary) !important;
    background: var(--hd-accent-soft);
}

/* ============================================
   BUTTONS
   ============================================ */
.btn-hd-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: var(--hd-primary-gradient);
    color: var(--hd-text-inverse) !important;
    font-weight: 600;
    font-size: 15px;
    padding: 14px 32px;
    border: none;
    border-radius: var(--hd-radius-full);
    box-shadow: var(--hd-shadow-md);
    transition: var(--hd-transition);
    cursor: pointer;
}

.btn-hd-primary:hover {
    transform: translateY(-3px);
    box-shadow: var(--hd-shadow-lg), var(--hd-shadow-glow);
}

.btn-hd-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: transparent;
    color: var(--hd-primary) !important;
    font-weight: 600;
    font-size: 15px;
    padding: 12px 30px;
    border: 2px solid var(--hd-primary);
    border-radius: var(--hd-radius-full);
    transition: var(--hd-transition);
    cursor: pointer;
}

.btn-hd-secondary:hover {
    background: var(--hd-primary);
    color: var(--hd-text-inverse) !important;
    transform: translateY(-3px);
}

.btn-hd-ghost {
    background: var(--hd-accent-soft);
    color: var(--hd-primary) !important;
    font-weight: 600;
    padding: 12px 28px;
    border: none;
    border-radius: var(--hd-radius-full);
    transition: var(--hd-transition);
}

.btn-hd-ghost:hover {
    background: var(--hd-primary);
    color: var(--hd-text-inverse) !important;
}

/* ============================================
   HERO SECTION
   ============================================ */
.hero-hd {
    position: relative;
    padding: 140px 0 100px;
    background: var(--hd-bg-primary);
    overflow: hidden;
}

.hero-hd::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, var(--hd-accent-soft) 0%, transparent 70%);
    pointer-events: none;
}

.hero-hd::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, var(--hd-accent-soft) 0%, transparent 70%);
    pointer-events: none;
}

.hero-hd .container {
    position: relative;
    z-index: 1;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--hd-accent-soft);
    color: var(--hd-primary);
    font-weight: 600;
    font-size: 14px;
    padding: 8px 20px;
    border-radius: var(--hd-radius-full);
    margin-bottom: 24px;
}

.hero-badge i {
    font-size: 12px;
}

.hero-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 24px;
    color: var(--hd-text-primary);
}

.hero-title .highlight {
    color: var(--hd-primary);
    position: relative;
}

.hero-title .highlight::after {
    content: '';
    position: absolute;
    bottom: 5px;
    left: 0;
    width: 100%;
    height: 12px;
    background: var(--hd-accent-soft);
    z-index: -1;
    border-radius: 4px;
}

.hero-description {
    font-size: 18px;
    line-height: 1.7;
    color: var(--hd-text-secondary);
    max-width: 540px;
    margin-bottom: 36px;
}

.hero-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 48px;
}

.hero-image-wrapper {
    position: relative;
}

.hero-image {
    border-radius: var(--hd-radius-xl);
    box-shadow: var(--hd-shadow-lg);
    transition: var(--hd-transition-slow);
}

.hero-image:hover {
    transform: translateY(-10px);
    box-shadow: var(--hd-shadow-lg), var(--hd-shadow-glow);
}

/* Floating Elements */
.hero-float {
    position: absolute;
    background: var(--hd-bg-card);
    padding: 16px 20px;
    border-radius: var(--hd-radius-md);
    box-shadow: var(--hd-shadow-md);
    display: flex;
    align-items: center;
    gap: 12px;
    animation: float 6s ease-in-out infinite;
}

.hero-float-1 {
    top: 10%;
    right: -10%;
    animation-delay: 0s;
}

.hero-float-2 {
    bottom: 20%;
    left: -5%;
    animation-delay: 2s;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
}

/* ============================================
   SECTIONS
   ============================================ */
.section-hd {
    padding: 100px 0;
    background: var(--hd-bg-primary);
}

.section-hd.bg-alt {
    background: var(--hd-bg-secondary);
}

.section-hd.bg-soft {
    background: var(--hd-bg-tertiary);
}

.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 60px;
}

.section-label {
    display: inline-block;
    color: var(--hd-primary);
    font-weight: 600;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 16px;
}

.section-title {
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--hd-text-primary);
}

.section-title .highlight {
    color: var(--hd-primary);
}

.section-subtitle {
    font-size: 17px;
    color: var(--hd-text-secondary);
    line-height: 1.7;
}

/* ============================================
   FEATURE CARDS
   ============================================ */
.feature-card {
    background: var(--hd-bg-card);
    border: 1px solid var(--hd-border);
    border-radius: var(--hd-radius-lg);
    padding: 36px 28px;
    height: 100%;
    transition: var(--hd-transition);
}

.feature-card:hover {
    border-color: var(--hd-border-hover);
    transform: translateY(-8px);
    box-shadow: var(--hd-shadow-md);
}

.feature-icon {
    width: 64px;
    height: 64px;
    background: var(--hd-accent-soft);
    border-radius: var(--hd-radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
}

.feature-icon img {
    width: 36px;
    height: 36px;
    object-fit: contain;
}

.feature-icon i {
    font-size: 28px;
    color: var(--hd-primary);
}

.feature-card h3 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--hd-text-primary);
}

.feature-card p {
    font-size: 15px;
    color: var(--hd-text-secondary);
    margin: 0;
}

/* ============================================
   STATS / COUNTERS
   ============================================ */
.stats-row {
    display: flex;
    justify-content: center;
    gap: 60px;
    flex-wrap: wrap;
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    font-weight: 800;
    color: var(--hd-primary);
    line-height: 1;
    margin-bottom: 8px;
}

.stat-label {
    font-size: 15px;
    color: var(--hd-text-muted);
    font-weight: 500;
}

/* ============================================
   PROCESS / STEPS
   ============================================ */
.process-step {
    text-align: center;
    padding: 30px;
    position: relative;
}

.process-step::after {
    content: '';
    position: absolute;
    top: 60px;
    right: -50%;
    width: 100%;
    height: 2px;
    background: var(--hd-border);
}

.process-step:last-child::after {
    display: none;
}

.process-icon {
    width: 80px;
    height: 80px;
    background: var(--hd-accent-soft);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
    position: relative;
    z-index: 1;
}

.process-icon img {
    width: 45px;
    height: 45px;
    object-fit: contain;
}

.process-number {
    position: absolute;
    top: -8px;
    right: -8px;
    width: 28px;
    height: 28px;
    background: var(--hd-primary);
    color: var(--hd-text-inverse);
    border-radius: 50%;
    font-size: 14px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
}

.process-step h4 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--hd-text-primary);
}

.process-step p {
    font-size: 14px;
    color: var(--hd-text-muted);
    margin: 0;
}

/* ============================================
   CTA SECTION
   ============================================ */
.cta-section {
    background: var(--hd-primary-gradient);
    padding: 80px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.cta-section .container {
    position: relative;
    z-index: 1;
}

.cta-title {
    color: #FFFFFF;
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    font-weight: 700;
    margin-bottom: 16px;
}

.cta-subtitle {
    color: rgba(255, 255, 255, 0.9);
    font-size: 17px;
    margin-bottom: 32px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.cta-btn {
    background: #FFFFFF;
    color: var(--hd-primary) !important;
    font-weight: 700;
    padding: 16px 36px;
    border-radius: var(--hd-radius-full);
    transition: var(--hd-transition);
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.cta-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

/* ============================================
   FOOTER
   ============================================ */
.footer-hd {
    background: var(--hd-bg-secondary);
    padding: 60px 0 30px;
    border-top: 1px solid var(--hd-border);
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.footer-brand img {
    height: 40px;
}

.footer-brand span {
    font-size: 20px;
    font-weight: 800;
    color: var(--hd-primary);
}

.footer-text {
    color: var(--hd-text-muted);
    font-size: 14px;
    max-width: 300px;
}

.footer-links h5 {
    color: var(--hd-text-primary);
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 20px;
}

.footer-links ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: var(--hd-text-muted);
    font-size: 14px;
    transition: var(--hd-transition);
}

.footer-links a:hover {
    color: var(--hd-primary);
}

.footer-bottom {
    border-top: 1px solid var(--hd-border);
    padding-top: 24px;
    margin-top: 40px;
    text-align: center;
}

.footer-bottom p {
    color: var(--hd-text-muted);
    font-size: 14px;
    margin: 0;
}

/* ============================================
   DARK MODE TOGGLE
   ============================================ */
.theme-toggle {
    background: var(--hd-accent-soft);
    border: 2px solid var(--hd-border);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--hd-transition);
    margin-left: 16px;
    position: relative;
}

.theme-toggle:hover {
    background: var(--hd-primary);
    border-color: var(--hd-primary);
}

.theme-toggle:hover i {
    color: #FFFFFF;
}

.theme-toggle i {
    font-size: 18px;
    color: var(--hd-primary);
    transition: var(--hd-transition);
}

/* Light mode - show moon (to switch to dark) */
.theme-toggle .fa-moon {
    display: block;
}

.theme-toggle .fa-sun {
    display: none;
}

/* Dark mode - show sun (to switch to light) */
[data-theme="dark"] .theme-toggle,
.dark-mode .theme-toggle {
    background: rgba(86, 204, 242, 0.15);
    border-color: rgba(86, 204, 242, 0.3);
}

[data-theme="dark"] .theme-toggle i,
.dark-mode .theme-toggle i {
    color: #56CCF2;
}

[data-theme="dark"] .theme-toggle:hover,
.dark-mode .theme-toggle:hover {
    background: #56CCF2;
    border-color: #56CCF2;
}

[data-theme="dark"] .theme-toggle:hover i,
.dark-mode .theme-toggle:hover i {
    color: #0D1B2A;
}

[data-theme="dark"] .theme-toggle .fa-moon,
.dark-mode .theme-toggle .fa-moon {
    display: none;
}

[data-theme="dark"] .theme-toggle .fa-sun,
.dark-mode .theme-toggle .fa-sun {
    display: block;
}

/* ============================================
   UTILITIES
   ============================================ */
.text-primary { color: var(--hd-primary) !important; }
.text-muted { color: var(--hd-text-muted) !important; }
.bg-soft { background: var(--hd-accent-soft) !important; }

.mb-0 { margin-bottom: 0 !important; }
.mb-1 { margin-bottom: 8px !important; }
.mb-2 { margin-bottom: 16px !important; }
.mb-3 { margin-bottom: 24px !important; }
.mb-4 { margin-bottom: 32px !important; }
.mb-5 { margin-bottom: 48px !important; }

.mt-0 { margin-top: 0 !important; }
.mt-1 { margin-top: 8px !important; }
.mt-2 { margin-top: 16px !important; }
.mt-3 { margin-top: 24px !important; }
.mt-4 { margin-top: 32px !important; }
.mt-5 { margin-top: 48px !important; }

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 991px) {
    .hero-hd {
        padding: 120px 0 80px;
    }

    .hero-title {
        font-size: 2.2rem;
    }

    .hero-description {
        font-size: 16px;
    }

    .hero-image-wrapper {
        margin-top: 50px;
    }

    .hero-float {
        display: none;
    }

    .stats-row {
        gap: 40px;
    }

    .process-step::after {
        display: none;
    }
}

@media (max-width: 767px) {
    .section-hd {
        padding: 70px 0;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: flex-start;
    }

    .btn-hd-primary,
    .btn-hd-secondary {
        width: 100%;
        justify-content: center;
    }
}

/* ============================================
   ANIMATIONS
   ============================================ */
.fade-up {
    opacity: 0;
    transform: translateY(30px);
    transition: var(--hd-transition-slow);
}

.fade-up.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Pulse animation for CTA */
@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(45, 156, 219, 0.4); }
    70% { box-shadow: 0 0 0 20px rgba(45, 156, 219, 0); }
    100% { box-shadow: 0 0 0 0 rgba(45, 156, 219, 0); }
}

.btn-pulse {
    animation: pulse 2s infinite;
}

/* ============================================
   TESTIMONIAL SLIDER
   ============================================ */
.testimonials-section {
    padding: 100px 0;
    background: var(--hd-bg-secondary);
    overflow: hidden;
}

.testimonial-slider-wrapper {
    position: relative;
    padding: 0 50px;
}

.testimonial-slider {
    overflow: hidden;
}

.testimonial-slide {
    padding: 10px;
}

.testimonial-card {
    background: var(--hd-bg-card);
    border: 1px solid var(--hd-border);
    border-radius: var(--hd-radius-lg);
    padding: 32px;
    height: 100%;
    transition: var(--hd-transition);
}

.testimonial-card:hover {
    border-color: var(--hd-border-hover);
    box-shadow: var(--hd-shadow-md);
}

.testimonial-quote {
    font-size: 17px;
    line-height: 1.7;
    color: var(--hd-text-secondary);
    margin-bottom: 24px;
    font-style: italic;
    position: relative;
    padding-left: 20px;
}

.testimonial-quote::before {
    content: '"';
    position: absolute;
    left: 0;
    top: -10px;
    font-size: 48px;
    color: var(--hd-primary);
    opacity: 0.3;
    font-family: Georgia, serif;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 16px;
}

.testimonial-author img {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--hd-accent-soft);
}

.testimonial-author-info strong {
    display: block;
    color: var(--hd-text-primary);
    font-size: 16px;
    margin-bottom: 4px;
}

.testimonial-author-info span {
    font-size: 14px;
    color: var(--hd-text-muted);
}

/* Swiper Navigation */
.testimonial-slider-wrapper .swiper-button-next,
.testimonial-slider-wrapper .swiper-button-prev {
    width: 48px;
    height: 48px;
    background: var(--hd-bg-card);
    border: 1px solid var(--hd-border);
    border-radius: 50%;
    color: var(--hd-primary);
    transition: var(--hd-transition);
}

.testimonial-slider-wrapper .swiper-button-next:hover,
.testimonial-slider-wrapper .swiper-button-prev:hover {
    background: var(--hd-primary);
    color: var(--hd-text-inverse);
    border-color: var(--hd-primary);
}

.testimonial-slider-wrapper .swiper-button-next::after,
.testimonial-slider-wrapper .swiper-button-prev::after {
    font-size: 18px;
    font-weight: 700;
}

.testimonial-slider-wrapper .swiper-pagination {
    position: relative;
    margin-top: 30px;
}

.testimonial-slider-wrapper .swiper-pagination-bullet {
    width: 10px;
    height: 10px;
    background: var(--hd-text-muted);
    opacity: 0.4;
    transition: var(--hd-transition);
}

.testimonial-slider-wrapper .swiper-pagination-bullet-active {
    background: var(--hd-primary);
    opacity: 1;
    width: 30px;
    border-radius: 10px;
}

/* ============================================
   LIGHT MODE SPECIFIC FIXES
   ============================================ */

/* Feature Cards Dark - Light Mode Override */
[data-theme="light"] .feature-card-dark,
:root:not([data-theme="dark"]) .feature-card-dark {
    background: #FFFFFF !important;
    border: 1px solid rgba(45, 156, 219, 0.15) !important;
    backdrop-filter: none;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
}

[data-theme="light"] .feature-card-dark:hover,
:root:not([data-theme="dark"]) .feature-card-dark:hover {
    border-color: rgba(45, 156, 219, 0.3) !important;
    box-shadow: 0 10px 40px rgba(45, 156, 219, 0.15) !important;
}

[data-theme="light"] .feature-card-dark h3,
:root:not([data-theme="dark"]) .feature-card-dark h3 {
    color: #1A1A2E !important;
}

[data-theme="light"] .feature-card-dark p,
:root:not([data-theme="dark"]) .feature-card-dark p {
    color: #4A4A68 !important;
}

[data-theme="light"] .feature-card-dark .feature-icon,
:root:not([data-theme="dark"]) .feature-card-dark .feature-icon {
    background: rgba(45, 156, 219, 0.1) !important;
    border-color: rgba(45, 156, 219, 0.2) !important;
}

[data-theme="light"] .footer-hd,
:root:not([data-theme="dark"]) .footer-hd {
    background: #F8FBFF;
}

[data-theme="light"] .footer-links h5,
:root:not([data-theme="dark"]) .footer-links h5 {
    color: #1A1A2E;
}

[data-theme="light"] .footer-links a,
:root:not([data-theme="dark"]) .footer-links a {
    color: #4A4A68;
}

[data-theme="light"] .footer-links a:hover,
:root:not([data-theme="dark"]) .footer-links a:hover {
    color: #2D9CDB;
}

[data-theme="light"] .footer-text,
:root:not([data-theme="dark"]) .footer-text {
    color: #4A4A68;
}

[data-theme="light"] .footer-bottom p,
:root:not([data-theme="dark"]) .footer-bottom p {
    color: #4A4A68;
}

[data-theme="light"] .section-title,
:root:not([data-theme="dark"]) .section-title {
    color: #1A1A2E;
}

[data-theme="light"] .section-subtitle,
:root:not([data-theme="dark"]) .section-subtitle {
    color: #4A4A68;
}

[data-theme="light"] .feature-card h3,
:root:not([data-theme="dark"]) .feature-card h3 {
    color: #1A1A2E;
}

[data-theme="light"] .feature-card p,
:root:not([data-theme="dark"]) .feature-card p {
    color: #4A4A68;
}

[data-theme="light"] .stat-label,
:root:not([data-theme="dark"]) .stat-label {
    color: #4A4A68;
}

[data-theme="light"] .testimonial-quote,
:root:not([data-theme="dark"]) .testimonial-quote {
    color: #4A4A68;
}

[data-theme="light"] .testimonial-author-info strong,
:root:not([data-theme="dark"]) .testimonial-author-info strong {
    color: #1A1A2E;
}

[data-theme="light"] .testimonial-author-info span,
:root:not([data-theme="dark"]) .testimonial-author-info span {
    color: #6B7C93;
}

/* Light mode background adjustments */
[data-theme="light"] .section-hd.bg-alt,
:root:not([data-theme="dark"]) .section-hd.bg-alt {
    background: #F8FBFF;
}

[data-theme="light"] .testimonials-section,
:root:not([data-theme="dark"]) .testimonials-section {
    background: #F0F8FF;
}

[data-theme="light"] .testimonial-card,
:root:not([data-theme="dark"]) .testimonial-card {
    background: #FFFFFF;
    border-color: rgba(45, 156, 219, 0.15);
}

/* ============================================
   DARK MODE SPECIFIC STYLES
   ============================================ */

/* Header Dark Mode */
[data-theme="dark"] .main-header,
.dark-mode .main-header {
    background: rgba(13, 27, 42, 0.95) !important;
    border-bottom-color: rgba(86, 204, 242, 0.1) !important;
}

[data-theme="dark"] .header-sticky,
.dark-mode .header-sticky {
    background: transparent !important;
}

[data-theme="dark"] .navbar-nav .nav-link,
.dark-mode .navbar-nav .nav-link {
    color: #B8C5D3 !important;
}

[data-theme="dark"] .navbar-nav .nav-link:hover,
.dark-mode .navbar-nav .nav-link:hover {
    color: #56CCF2 !important;
    background: rgba(86, 204, 242, 0.1) !important;
}

[data-theme="dark"] .feature-card-dark,
.dark-mode .feature-card-dark {
    background: rgba(27, 40, 56, 0.6);
    border: 1px solid rgba(86, 204, 242, 0.1);
    backdrop-filter: blur(10px);
}

[data-theme="dark"] .feature-card-dark:hover,
.dark-mode .feature-card-dark:hover {
    border-color: rgba(86, 204, 242, 0.3);
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

[data-theme="dark"] .testimonial-card,
.dark-mode .testimonial-card {
    background: rgba(27, 40, 56, 0.6);
    border: 1px solid rgba(86, 204, 242, 0.1);
    backdrop-filter: blur(10px);
}

[data-theme="dark"] .footer-hd,
.dark-mode .footer-hd {
    background: #1B2838;
}

/* ============================================
   PRICING PREVIEW (Light Mode Fix)
   ============================================ */
[data-theme="light"] .pricing-preview,
:root:not([data-theme="dark"]) .pricing-preview {
    background: linear-gradient(135deg, rgba(45, 156, 219, 0.08) 0%, rgba(86, 204, 242, 0.05) 100%);
    border-color: rgba(45, 156, 219, 0.2);
}

[data-theme="light"] .pricing-preview .price,
:root:not([data-theme="dark"]) .pricing-preview .price {
    color: #2D9CDB;
}

[data-theme="light"] .pricing-preview .features-list li,
:root:not([data-theme="dark"]) .pricing-preview .features-list li {
    color: #4A4A68;
    border-color: rgba(0, 0, 0, 0.05);
}

/* ============================================
   FLOATING BADGES (Light Mode Fix)
   ============================================ */
[data-theme="light"] .floating-badge,
:root:not([data-theme="dark"]) .floating-badge {
    background: #FFFFFF;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
}

[data-theme="light"] .floating-badge span,
:root:not([data-theme="dark"]) .floating-badge span {
    color: #1A1A2E !important;
}

/* ============================================
   HERO CENTERED (Light Mode Fix)
   ============================================ */
[data-theme="light"] .hero-centered,
:root:not([data-theme="dark"]) .hero-centered {
    background: linear-gradient(135deg, #FFFFFF 0%, #F0F8FF 100%);
}

[data-theme="light"] .glow-orb,
:root:not([data-theme="dark"]) .glow-orb {
    opacity: 0.15;
}

/* ============================================
   HIDE TEMPLATE MAGIC CURSOR/ROBOT
   ============================================ */
.cb-cursor,
.magic-cursor,
#magic-cursor,
.cursor-effect,
canvas.flowmap,
.flowmap-effect canvas {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
}

/* Ensure header stays on top */
.main-header {
    z-index: 9999 !important;
}

/* Reposition template background robots - move down to not overlap header */
.hero-content::before {
    top: 80px !important;
    right: -100px !important;
}

.hero-content::after {
    bottom: -100px !important;
    left: -150px !important;
}

/* ============================================
   RESPONSIVE SLIDER
   ============================================ */
@media (max-width: 991px) {
    .testimonial-slider-wrapper {
        padding: 0 20px;
    }

    .testimonial-slider-wrapper .swiper-button-next,
    .testimonial-slider-wrapper .swiper-button-prev {
        display: none;
    }
}

@media (max-width: 767px) {
    .testimonial-card {
        padding: 24px;
    }

    .testimonial-quote {
        font-size: 15px;
    }
}

/* ============================================
   RESPONSIVE FOOTER
   ============================================ */

/* Desktop footer - columns layout */
@media (min-width: 992px) {
    .footer-hd .row {
        text-align: left;
    }

    .footer-brand {
        justify-content: flex-start;
    }

    .footer-links ul {
        display: block;
    }

    .footer-links li {
        margin-bottom: 12px;
    }
}

/* Hide floating badges on tablet/mobile */
@media (max-width: 991px) {
    .floating-badge,
    .floating-badge-1,
    .floating-badge-2,
    .floating-badge-3 {
        display: none !important;
    }
}

/* Tablet footer */
@media (max-width: 991px) {
    .footer-hd {
        padding: 50px 0 25px;
    }

    .footer-hd .row {
        text-align: center;
    }

    .footer-brand {
        justify-content: center;
        margin-bottom: 20px;
    }

    .footer-text {
        max-width: 100%;
        margin: 0 auto 30px;
    }

    .footer-social {
        justify-content: center;
        margin-bottom: 30px;
    }

    .footer-links {
        margin-bottom: 30px;
    }

    .footer-links h5 {
        margin-bottom: 15px;
    }

    .footer-links ul {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 8px 20px;
    }

    .footer-links li {
        margin-bottom: 8px;
    }
}

/* Mobile footer */
@media (max-width: 575px) {
    .footer-hd {
        padding: 40px 20px 20px;
    }

    .footer-brand {
        flex-direction: column;
        gap: 10px;
    }

    .footer-brand img {
        height: 60px;
    }

    .footer-brand span {
        font-size: 24px;
    }

    .footer-text {
        font-size: 14px;
        padding: 0 10px;
    }

    .footer-social a {
        width: 40px;
        height: 40px;
        font-size: 16px;
    }

    .footer-links h5 {
        font-size: 15px;
        color: var(--hd-primary);
        border-bottom: 1px solid var(--hd-border);
        padding-bottom: 10px;
        margin-bottom: 12px;
    }

    .footer-links ul {
        gap: 6px 15px;
    }

    .footer-links a {
        font-size: 13px;
    }

    .footer-bottom {
        margin-top: 25px;
        padding-top: 20px;
    }

    .footer-bottom p {
        font-size: 12px;
        line-height: 1.6;
    }
}

/* ============================================
   V6 - HERO THREE COLUMN LAYOUT
   ============================================ */

.hero-v6 {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 120px 0 80px;
    background: var(--hd-bg-primary);
    overflow: hidden;
}

/* Background glow effects */
.hero-v6::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, var(--hd-accent-soft) 0%, transparent 70%);
    pointer-events: none;
    z-index: 0;
}

.hero-v6-content {
    position: relative;
    z-index: 1;
}

/* Three column grid */
.hero-three-col {
    display: grid;
    grid-template-columns: 1fr 1.2fr 1fr;
    gap: 40px;
    align-items: center;
    max-width: 1400px;
    margin: 0 auto;
}

/* Side floating images */
.hero-side-left,
.hero-side-right {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.hero-side-left {
    align-items: flex-end;
    padding-right: 20px;
}

.hero-side-right {
    align-items: flex-start;
    padding-left: 20px;
}

/* Floating image containers */
.floating-image {
    position: relative;
    max-width: 280px;
    border-radius: var(--hd-radius-lg);
    overflow: hidden;
    box-shadow: var(--hd-shadow-lg);
    animation: float 6s ease-in-out infinite;
    transition: var(--hd-transition);
}

.floating-image:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: var(--hd-shadow-lg), var(--hd-shadow-glow);
}

.floating-image img {
    width: 100%;
    height: auto;
    display: block;
}

.floating-image-1 {
    animation-delay: 0s;
}

.floating-image-2 {
    animation-delay: 3s;
}

/* Side badges */
.side-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: var(--hd-bg-card);
    padding: 14px 22px;
    border-radius: var(--hd-radius-full);
    box-shadow: var(--hd-shadow-md);
    border: 1px solid var(--hd-border);
    font-size: 14px;
    font-weight: 600;
    animation: float 5s ease-in-out infinite;
}

.side-badge i {
    color: var(--hd-primary);
    font-size: 18px;
}

.side-badge span {
    color: var(--hd-text-primary);
}

.side-badge-1 {
    animation-delay: 1s;
}

.side-badge-2 {
    animation-delay: 2s;
}

.side-badge-3 {
    animation-delay: 0.5s;
}

.side-badge-4 {
    animation-delay: 1.5s;
}

/* Center column */
.hero-center {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.hero-center .hero-badge {
    margin-bottom: 20px;
}

.hero-center .hero-title {
    font-size: clamp(2.2rem, 4vw, 3.2rem);
    margin-bottom: 20px;
    max-width: 600px;
}

.hero-center .hero-description {
    max-width: 500px;
    margin: 0 auto 30px;
    text-align: center;
}

.hero-center .hero-buttons {
    justify-content: center;
    margin-bottom: 40px;
}

/* Robot showcase */
.robot-showcase {
    position: relative;
    margin-top: 20px;
}

.robot-showcase img {
    max-height: 380px;
    width: auto;
    filter: drop-shadow(0 0 40px rgba(45, 156, 219, 0.25));
    transition: var(--hd-transition-slow);
    animation: float 8s ease-in-out infinite;
}

.robot-showcase:hover img {
    filter: drop-shadow(0 0 60px rgba(45, 156, 219, 0.4));
    transform: scale(1.03);
}

/* Robot glow ring */
.robot-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 320px;
    height: 320px;
    border-radius: 50%;
    background: radial-gradient(circle, var(--hd-accent-soft) 0%, transparent 70%);
    z-index: -1;
    animation: pulse-glow 4s ease-in-out infinite;
}

@keyframes pulse-glow {
    0%, 100% { opacity: 0.4; transform: translate(-50%, -50%) scale(1); }
    50% { opacity: 0.7; transform: translate(-50%, -50%) scale(1.1); }
}

/* V6 Responsive */
@media (max-width: 1199px) {
    .hero-three-col {
        grid-template-columns: 1fr 1.5fr 1fr;
        gap: 30px;
    }

    .floating-image {
        max-width: 220px;
    }

    .robot-showcase img {
        max-height: 300px;
    }
}

@media (max-width: 991px) {
    .hero-v6 {
        padding: 100px 0 60px;
        min-height: auto;
    }

    .hero-three-col {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }

    .hero-side-left,
    .hero-side-right {
        display: none;
    }

    .hero-center {
        order: 1;
    }

    .hero-center .hero-title {
        font-size: 2rem;
    }

    .robot-showcase img {
        max-height: 280px;
    }
}

@media (max-width: 575px) {
    .hero-v6 {
        padding: 90px 0 50px;
    }

    .hero-center .hero-title {
        font-size: 1.8rem;
    }

    .hero-center .hero-description {
        font-size: 15px;
    }

    .robot-showcase img {
        max-height: 220px;
    }

    .hero-center .hero-buttons {
        flex-direction: column;
        width: 100%;
    }

    .hero-center .btn-hd-primary,
    .hero-center .btn-hd-secondary {
        width: 100%;
    }
}

/* ============================================
   SYSTEM THEME DETECTION
   ============================================ */

/* When no theme is set, respect system preference */
@media (prefers-color-scheme: dark) {
    html:not([data-theme]) {
        --hd-primary: #56CCF2;
        --hd-primary-dark: #2D9CDB;
        --hd-primary-light: #7DD8F7;
        --hd-primary-gradient: linear-gradient(135deg, #2D9CDB 0%, #56CCF2 100%);
        --hd-accent: #00D4FF;
        --hd-accent-soft: rgba(45, 156, 219, 0.15);
        --hd-bg-primary: #0D1B2A;
        --hd-bg-secondary: #1B2838;
        --hd-bg-tertiary: #243447;
        --hd-bg-card: #1B2838;
        --hd-text-primary: #FFFFFF;
        --hd-text-secondary: #B8C5D3;
        --hd-text-muted: #6B7C93;
        --hd-text-inverse: #0D1B2A;
        --hd-border: rgba(86, 204, 242, 0.1);
        --hd-border-hover: rgba(86, 204, 242, 0.3);
        --hd-shadow-sm: 0 2px 10px rgba(0, 0, 0, 0.2);
        --hd-shadow-md: 0 8px 30px rgba(0, 0, 0, 0.3);
        --hd-shadow-lg: 0 20px 60px rgba(0, 0, 0, 0.4);
        --hd-shadow-glow: 0 0 60px rgba(86, 204, 242, 0.15);
    }
}

/* Dark mode specific for V6 elements */
[data-theme="dark"] .floating-image,
.dark-mode .floating-image {
    border: 1px solid rgba(86, 204, 242, 0.15);
}

[data-theme="dark"] .side-badge,
.dark-mode .side-badge {
    background: rgba(27, 40, 56, 0.9);
    border-color: rgba(86, 204, 242, 0.2);
}

[data-theme="dark"] .robot-showcase img,
.dark-mode .robot-showcase img {
    filter: drop-shadow(0 0 50px rgba(86, 204, 242, 0.3));
}

[data-theme="dark"] .hero-v6::before,
.dark-mode .hero-v6::before {
    background: radial-gradient(circle, rgba(86, 204, 242, 0.08) 0%, transparent 70%);
}

/* Light mode specific for V6 elements */
[data-theme="light"] .floating-image {
    border: 1px solid rgba(45, 156, 219, 0.1);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.08);
}

[data-theme="light"] .side-badge {
    background: #FFFFFF;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.06);
}

[data-theme="light"] .robot-showcase img {
    filter: drop-shadow(0 0 30px rgba(45, 156, 219, 0.2));
}

[data-theme="light"] .hero-v6 {
    background: linear-gradient(180deg, #FFFFFF 0%, #F0F8FF 100%);
}
