:root {
    --primary-gradient: linear-gradient(135deg, #00f2fe 0%, #4facfe 100%);
    --conic-gradient: conic-gradient(from 0deg at 50% 50%, #00f2fe, #f093fb, #f5576c, #4facfe, #00f2fe);
    --accent-color: #4facfe;
    --transition-speed: 0.3s;
    
    /* Product-specific gradients - keep for compatibility */
    --eco-gradient: linear-gradient(135deg, #00b09b 0%, #96c93d 100%);
    --eco-accent: #00b09b;
    --pl-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --pl-accent: #764ba2;
    --pl-glow: rgba(118, 75, 162, 0.5);
    --nbc-gradient: linear-gradient(135deg, #0f2027 0%, #203a43 50%, #2c5364 100%);
    --nbc-accent: #ff6b35;
    --nbc-secondary: #00d2ff;
}

/* Light Mode Variables */
[data-bs-theme="light"] {
    --card-bg: rgba(255, 255, 255, 0.85);
    --card-mask-bg: #ffffff;
    --hero-bg: #f8f9fa;
    --body-bg: #f0f2f5;
    --text-main: #212529;
    --border-color: rgba(0, 0, 0, 0.08);
    --halo-shadow: 0 10px 30px -10px rgba(79, 172, 254, 0.4), 0 10px 20px -10px rgba(240, 147, 251, 0.3);
}

/* Dark Mode Variables */
[data-bs-theme="dark"] {
    --card-bg: rgba(25, 25, 35, 0.96);
    --card-mask-bg: #191923;
    --hero-bg: #0f0f12;
    --body-bg: #0b0b0d;
    --text-main: #f8f9fa;
    --border-color: rgba(255, 255, 255, 0.08);
    --halo-shadow: 0 10px 40px -10px rgba(0, 242, 254, 0.2), 0 10px 30px -10px rgba(245, 87, 108, 0.2);
}

/* Base Styles */
body {
    font-family: 'Inter', sans-serif;
    background-color: var(--body-bg);
    color: var(--text-main);
    transition: background-color var(--transition-speed);
    overflow-x: hidden;
}

/* Navigation */
.navbar {
    backdrop-filter: blur(15px);
    border-bottom: 1px solid var(--border-color);
    padding: 1rem 0;
    background: rgba(var(--body-bg), 0.8);
}

.theme-toggle-btn {
    cursor: pointer;
    padding: 8px;
    border-radius: 50%;
    background: var(--border-color);
    transition: all 0.3s ease;
    width: 40px;
    height: 40px;
}

.dropdown-menu {
    backdrop-filter: blur(10px);
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    padding: 0.5rem;
}

/* Hero Section */
.hero-section {
    padding: 180px 0 120px;
    background: var(--hero-bg);
    position: relative;
    background-image: radial-gradient(circle at 20% 30%, rgba(79, 172, 254, 0.1) 0%, transparent 30%), 
                      radial-gradient(circle at 80% 70%, rgba(245, 87, 108, 0.1) 0%, transparent 30%);
}

.hero-description {
    max-width: 800px;
    margin: 0 auto;
}

.gradient-text {
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 800;
    display: inline-block;
}

/* Gradient text variants for products */
.gradient-text-eco {
    background: var(--eco-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 800;
}

.gradient-text-pl {
    background: var(--pl-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 800;
}

.gradient-text-nbc {
    background: linear-gradient(to right, #00d2ff, #3a7bd5);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 800;
}

/* Glass Cards */
.glass-card {
    position: relative;
    background: var(--card-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--border-color);
    border-radius: 24px;
    padding: 40px;
    height: 100%;
    box-shadow: var(--halo-shadow);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.4s ease;
    overflow: hidden;
    z-index: 1;
}

.glass-card > * {
    position: relative;
    z-index: 10;
}

.glass-card::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 550%;
    height: 550%;
    background: var(--conic-gradient);
    transform: translate(-50%, -50%);
    z-index: -2;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.glass-card::after {
    content: '';
    position: absolute;
    top: 2px;
    left: 2px;
    right: 2px;
    bottom: 2px;
    background: var(--card-mask-bg);
    border-radius: 22px;
    z-index: -1;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.glass-card:hover {
    transform: translateY(-12px);
    box-shadow: 0 30px 60px -15px rgba(0, 242, 254, 0.3), 0 20px 40px -10px rgba(245, 87, 108, 0.3);
    border-color: transparent;
}

.glass-card:hover::before {
    opacity: 1;
    animation: spin-border 4s linear infinite;
}

.glass-card:hover::after {
    opacity: 0.9;
}

@keyframes spin-border {
    from { transform: translate(-50%, -50%) rotate(0deg); }
    to { transform: translate(-50%, -50%) rotate(360deg); }
}

/* Icons and Buttons */
.icon-box {
    width: 64px;
    height: 64px;
    background: var(--primary-gradient);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
    color: white;
    font-size: 1.75rem;
    box-shadow: 0 8px 25px rgba(79, 172, 254, 0.4);
}

.btn-spectra {
    background: var(--primary-gradient);
    border: none;
    color: white !important;
    padding: 14px 36px;
    border-radius: 50px;
    font-weight: 700;
    box-shadow: 0 10px 25px rgba(79, 172, 254, 0.3);
    transition: all 0.3s ease;
}

.btn-spectra:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 35px rgba(79, 172, 254, 0.5);
}

/* Product-specific buttons */
.btn-eco {
    background: var(--eco-gradient);
    border: none;
    color: white !important;
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(0, 176, 155, 0.4);
    transition: transform 0.2s;
}

.btn-eco:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 176, 155, 0.6);
}

.btn-pl {
    background: var(--pl-gradient);
    border: none;
    color: white !important;
    padding: 12px 30px;
    border-radius: 6px;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(118, 75, 162, 0.4);
    transition: all 0.3s ease;
}

.btn-pl:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(118, 75, 162, 0.6);
}

.btn-nbc {
    background: linear-gradient(90deg, #ff6b35, #f83600);
    border: none;
    color: white !important;
    padding: 12px 35px;
    border-radius: 2px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 4px 15px rgba(248, 54, 0, 0.4);
    transition: all 0.3s ease;
}

.btn-nbc:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(248, 54, 0, 0.6);
}

/* Sections */
.section-padding {
    padding: 120px 0;
}

/* Carousel Styles */
#caseStudyCarousel .carousel-item {
    padding-top: 25px;
    padding-bottom: 25px;
}

.carousel-nav-btn {
    width: 50px;
    height: 50px;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    backdrop-filter: blur(5px);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-main);
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.carousel-nav-btn:hover {
    background: var(--primary-gradient);
    color: white;
    transform: scale(1.1);
    border-color: transparent;
}

.carousel-indicators {
    bottom: -50px;
}

.carousel-indicators button {
    background-color: var(--accent-color) !important;
    width: 10px !important;
    height: 10px !important;
    border-radius: 50%;
    margin: 0 5px !important;
}

/* Carousel Backgrounds */
.gradient-blob {
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(79, 172, 254, 0.15) 0%, transparent 70%);
    pointer-events: none;
}

.carousel-image-bg {
    min-height: 300px;
}

.water-bg {
    background: linear-gradient(45deg, rgba(0,242,254,0.1), rgba(79,172,254,0.2));
}

.agriculture-bg {
    background: linear-gradient(45deg, rgba(76, 175, 80, 0.1), rgba(139, 195, 74, 0.2));
}

.energy-bg {
    background: linear-gradient(45deg, rgba(255, 193, 7, 0.1), rgba(255, 152, 0, 0.2));
}

/* Split Card Styles (for future use) */
.split-card {
    padding: 3px !important;
    overflow: hidden !important;
    border-radius: 24px;
    position: relative;
    z-index: 1;
    background: transparent;
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.split-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.3);
}

.split-card::after {
    display: none !important;
}

.split-card-inner {
    background: var(--card-mask-bg);
    width: 100%;
    height: 100%;
    border-radius: 21px;
    overflow: hidden;
    position: relative;
    z-index: 2;
}

/* Tech Cards */
.tech-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.tech-card:hover {
    transform: translateY(-5px);
    border-color: var(--accent-color);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

.tech-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--primary-gradient);
    opacity: 0;
    z-index: 0;
    transition: opacity 0.3s ease;
}

.tech-card span, .tech-card small {
    position: relative;
    z-index: 1;
    transition: color 0.3s ease;
}

.tech-card:hover span, .tech-card:hover small {
    color: white !important;
}

.tech-icon-img {
    width: 48px;
    height: 48px;
    object-fit: contain;
    margin-bottom: 15px;
    filter: grayscale(20%);
    transition: all 0.3s ease;
}

.tech-card:hover .tech-icon-img {
    filter: grayscale(0%) drop-shadow(0 0 8px rgba(255, 255, 255, 0.3));
    transform: scale(1.1);
}

/* NBC-specific tech cards */
.tech-card-nbc {
    border-top: 3px solid var(--nbc-accent);
    border-radius: 4px;
}

/* Product-specific visual components */
/* PetMate Styles */
.recycle-visual-container {
    position: relative;
    width: 150px;
    height: 150px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
}

.recycle-ring {
    position: absolute;
    width: 100%;
    height: 100%;
    border: 3px dashed var(--eco-accent);
    border-radius: 50%;
    animation: spin-slow 10s linear infinite;
    opacity: 0.5;
}

.recycle-icon-center {
    font-size: 4rem;
    color: var(--eco-accent);
    z-index: 2;
    text-shadow: 0 0 20px rgba(0, 176, 155, 0.5);
}

@keyframes spin-slow {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--eco-accent);
}

/* PowerLeads.AI Styles */
.network-grid {
    position: relative;
    width: 200px;
    height: 200px;
    margin: 0 auto;
}

.node {
    position: absolute;
    background: white;
    border-radius: 50%;
    animation: float-node 3s infinite ease-in-out;
    box-shadow: 0 0 10px var(--pl-accent);
}

.n1 { width: 15px; height: 15px; top: 40%; left: 10%; animation-delay: 0s; }
.n2 { width: 25px; height: 25px; top: 20%; left: 50%; animation-delay: 1s; background: var(--pl-accent); }
.n3 { width: 10px; height: 10px; top: 60%; left: 80%; animation-delay: 2s; }
.n4 { width: 18px; height: 18px; top: 80%; left: 40%; animation-delay: 1.5s; }

.connection {
    position: absolute;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--pl-accent), transparent);
    transform-origin: left center;
    opacity: 0.6;
}

.c1 { width: 100px; top: 43%; left: 15%; transform: rotate(-25deg); }
.c2 { width: 120px; top: 30%; left: 55%; transform: rotate(45deg); }
.c3 { width: 90px; top: 85%; left: 45%; transform: rotate(-15deg); }

@keyframes float-node {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.feature-card-saas {
    border-left: 4px solid var(--pl-accent);
}

/* NBC Political OS Styles */
.map-grid-container {
    position: relative;
    width: 250px;
    height: 250px;
    margin: 0 auto;
    perspective: 1000px;
}

.map-plane {
    width: 100%;
    height: 100%;
    background: 
        linear-gradient(rgba(0, 210, 255, 0.1) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 210, 255, 0.1) 1px, transparent 1px);
    background-size: 20px 20px;
    transform: rotateX(60deg) rotateZ(-45deg);
    border: 1px solid rgba(0, 210, 255, 0.3);
    box-shadow: 0 0 30px rgba(0, 210, 255, 0.1);
    position: absolute;
}

.map-pin {
    position: absolute;
    width: 10px;
    height: 10px;
    background: var(--nbc-accent);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--nbc-accent);
    animation: pulse-pin 2s infinite;
}

.p1 { top: 30%; left: 40%; transform: translateZ(20px); }
.p2 { top: 60%; left: 70%; transform: translateZ(10px); animation-delay: 0.5s; }
.p3 { top: 80%; left: 20%; transform: translateZ(15px); animation-delay: 1s; }

@keyframes pulse-pin {
    0% { transform: scale(1); opacity: 1; }
    50% { transform: scale(2); opacity: 0; }
    100% { transform: scale(1); opacity: 0; }
}

/* Mobile Responsive */
@media (max-width: 991px) {
    .split-card-inner .row > div[class*="col-"] {
        min-height: 200px !important;
    }
}

/* Spinner border fix for smaller screens */
@media (max-width: 768px) {
    .glass-card::before {
        width: 300%;
        height: 300%;
    }
}
/* Glassmorphism dropdown - Updated for new products */
.dropdown-menu {
    border-radius: 16px !important;
    background: var(--card-bg) !important;
	/* background: rgba(20, 20, 35, 0.8) !important; /* 80% opacity */ */
    backdrop-filter: blur(15px) !important;
    border: 1px solid var(--border-color) !important;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15) !important;
    padding: 8px !important;
    min-width: 280px !important;
}

.dropdown-item {
    border-radius: 12px !important;
    margin: 4px 0 !important;
    padding: 12px 16px !important;
    transition: all 0.3s ease !important;
    border: 1px solid transparent !important;
    position: relative;
}

.dropdown-item:hover {
    background: rgba(118, 75, 162, 0.15) !important;
    border-color: rgba(118, 75, 162, 0.3) !important;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(118, 75, 162, 0.1);
    padding-left: 20px !important;
}

.dropdown-item:active {
    background: rgba(118, 75, 162, 0.25) !important;
}

/* Product-specific colors on hover */
.dropdown-item[href="products.html"]:hover {
    background: rgba(220, 53, 69, 0.15) !important;
    border-color: rgba(220, 53, 69, 0.3) !important;
}

.dropdown-item[href="petmate.html"]:hover {
    background: rgba(25, 135, 84, 0.15) !important;
    border-color: rgba(25, 135, 84, 0.3) !important;
}

.dropdown-item[href="powerleads.html"]:hover {
    background: rgba(13, 110, 253, 0.15) !important;
    border-color: rgba(13, 110, 253, 0.3) !important;
}

/* New Product Hover Effects */
.dropdown-item[href="ayeauto.html"]:hover {
    background: rgba(255, 107, 53, 0.15) !important;
    border-color: rgba(255, 107, 53, 0.3) !important;
}

.dropdown-item[href="political.html"]:hover {
    background: rgba(139, 92, 246, 0.15) !important;
    border-color: rgba(139, 92, 246, 0.3) !important;
}

.dropdown-item[href="all-products.html"]:hover {
    background: rgba(108, 117, 125, 0.15) !important;
    border-color: rgba(108, 117, 125, 0.3) !important;
}

/* Icon colors - New Products */
.dropdown-item[href="ayeauto.html"] i {
    color: #FF6B35 !important;
    filter: drop-shadow(0 2px 4px rgba(255, 107, 53, 0.3));
}

.dropdown-item[href="political.html"] i {
    color: #8B5CF6 !important;
    filter: drop-shadow(0 2px 4px rgba(139, 92, 246, 0.3));
}

/* Badge styles for new/beta tags */
.dropdown-item .badge {
    font-size: 0.65rem;
    padding: 3px 8px;
    font-weight: 700;
    letter-spacing: 0.5px;
    margin-left: auto;
    transition: all 0.3s ease;
}

.dropdown-item:hover .badge {
    transform: scale(1.1);
}

/* Divider styling */
.dropdown-divider {
    border-color: var(--border-color) !important;
    opacity: 0.5;
    margin: 8px 0 !important;
}

/* Active state indicator */
.dropdown-item.active {
    background: linear-gradient(135deg, rgba(118, 75, 162, 0.2), rgba(102, 126, 234, 0.2)) !important;
    border-color: var(--pl-accent) !important;
    position: relative;
}

.dropdown-item.active::after {
    content: '';
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    width: 8px;
    height: 8px;
    background: var(--pl-accent);
    border-radius: 50%;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(118, 75, 162, 0.7);
    }
    70% {
        box-shadow: 0 0 0 6px rgba(118, 75, 162, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(118, 75, 162, 0);
    }
}

/* Subtle hover glow effect */
/* .dropdown-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, 
        transparent, 
        rgba(255, 255, 255, 0.1), 
        transparent);
    transition: left 0.6s ease;
}
 */
.dropdown-item:hover::before {
    left: 100%;
}

/* Mobile responsiveness */
@media (max-width: 768px) {
    .dropdown-menu {
        min-width: 250px !important;
        margin-top: 8px !important;
    }
    
    .dropdown-item {
        padding: 10px 14px !important;
    }
    
    .dropdown-item .badge {
        font-size: 0.6rem;
        padding: 2px 6px;
    }
}


/* ==========================================
   UPDATED MODAL CSS (With Theme-Colored Halo)
   ========================================== */

:root {
    /* --- EXISTING VARIABLES --- */
    --glass-bg: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.1);
    --glass-blur: 16px;
    --modal-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    --accent-color: #6366f1; /* Indigo - Your Theme Color */
    --text-color: #ffffff;
    
    /* --- NEW: HALO GLOW COLOR (40% Opacity of your accent color) --- */
    /* IMPORTANT: If you change --accent-color, update the RGB values here too */
    --accent-color-glow: rgba(99, 102, 241, 0.4); 
}

/* 1. The Backdrop */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease-in-out;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

/* Active State */
.modal-overlay.is-visible {
    opacity: 1;
    visibility: visible;
}

/* 2. The Glass Window (Now with Halo!) */
.modal-window {
    position: relative;
    width: 100%;
    max-width: 480px;
    background: var(--glass-bg);
    backdrop-filter: blur(var(--glass-blur));
    -webkit-backdrop-filter: blur(var(--glass-blur));
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    padding: 40px;
    transform: translateY(20px) scale(0.95);
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    color: var(--text-color);
    
    /* --- THE NEW HALO EFFECT --- */
    box-shadow: 
        /* Layer 1: Subtle inner shadow for depth */
        0 0 20px rgba(0,0,0,0.1),
        /* Layer 2: Soft, theme-colored glow */
        0 0 40px var(--accent-color-glow),
        /* Layer 3: Wider, fainter glow for the "halo" */
        0 0 80px var(--accent-color-glow);
        
    /* --- Optional: Make it subtly pulse --- */
    animation: pulse-halo 3s infinite alternate ease-in-out;
}

/* Animation for the opening state */
.modal-overlay.is-visible .modal-window {
    transform: translateY(0) scale(1);
}

/* --- HALO PULSE ANIMATION KEYFRAMES --- */
@keyframes pulse-halo {
    0% {
        box-shadow: 
            0 0 20px rgba(0,0,0,0.1),
            0 0 40px var(--accent-color-glow),
            0 0 80px var(--accent-color-glow);
    }
    100% {
        box-shadow: 
            0 0 25px rgba(0,0,0,0.2),
            0 0 50px var(--accent-color-glow),
            0 0 100px var(--accent-color-glow);
    }
}


/* 3. Close Button */
.modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: none;
    border: none;
    color: rgba(255,255,255,0.6);
    font-size: 24px;
    cursor: pointer;
    transition: color 0.2s;
    z-index: 10;
}
.modal-close:hover { color: #fff; }

/* 4. Input Fields Styling */
.input-group { margin-bottom: 1.25rem; width: 100%; }

.modal-input {
    width: 100%;
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 14px 16px;
    color: #fff;
    font-size: 1rem;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
}
.modal-input:focus {
    border-color: var(--accent-color);
    background: rgba(0, 0, 0, 0.3);
    /* Added a subtle glow to the input on focus as well */
    box-shadow: 0 0 15px var(--accent-color-glow);
}

/* 5. Button Styling */
.modal-btn {
    width: 100%;
    padding: 14px;
    border-radius: 12px;
    border: none;
    background: var(--accent-color);
    color: white;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    margin-top: 10px;
}
.modal-btn:hover {
    transform: translateY(-2px);
    /* The button's shadow also uses the theme glow */
    box-shadow: 0 10px 25px -5px var(--accent-color-glow);
}