/* SEO & Performance Optimizations - Nuvika Technologies */

/* ============================================
   THEME SYSTEM - Light/Dark Mode
   ============================================ */

:root {
    /* Dark Theme (Default) */
    --bg-primary: #000000;
    --bg-secondary: #0b1320;
    --bg-tertiary: #111827;
    --bg-card: #1f2937;
    --bg-card-hover: #374151;
    
    --text-primary: #ffffff;
    --text-secondary: #d1d5db;
    --text-tertiary: #9ca3af;
    --text-muted: #6b7280;
    
    --border-primary: #374151;
    --border-secondary: #4b5563;
    
    --nuvika-purple: #202E44; /* Primary (dark navy) */
    --nuvika-blue: #A9BBC8;   /* Primary (light blue) */
    --nuvika-orange: #8B734C; /* Accent */
    --nuvika-dark: #1a1a1a;
    --nuvika-gray: #F2F2EB;
    
    /* Gradient overlays */
    --gradient-primary: linear-gradient(135deg, #202E44 0%, #A9BBC8 100%);
    --gradient-hero: linear-gradient(135deg, #202E44 0%, #A9BBC8 50%, #202E44 100%);
    
    /* Shadow colors */
    --shadow-color: rgba(0, 0, 0, 0.5);
    --glow-purple: rgba(32, 46, 68, 0.3);
    --glow-blue: rgba(169, 187, 200, 0.3);

    /* Brand accent fallbacks (used in existing rules) */
    --accent-purple: #202E44; /* brand primary */
    --accent-blue: #A9BBC8;   /* brand secondary */
    --accent-orange: #8B734C; /* brand tertiary */

    /* Semantic status tokens */
    --status-success: #10b981; /* emerald */
    --status-warning: #f59e0b; /* amber */
    --status-danger:  #ef4444; /* red */
    --status-info:    #06b6d4; /* cyan */
}

/* Light Theme */
[data-theme="light"] {
    --bg-primary: #F2F2EB;  /* Neutral background */
    --bg-secondary: #FFFFFF; /* Light surfaces */
    --bg-tertiary: #C7CBAB; /* Secondary neutral */
    --bg-card: #FFFFFF;
    --bg-card-hover: #F2F2EB;
    
    --text-primary: #202E44; /* Primary text/navy */
    --text-secondary: #374151;
    --text-tertiary: #6b7280;
    --text-muted: #9ca3af;
    
    --border-primary: #e5e7eb;
    --border-secondary: #d1d5db;
    
    /* Adjust shadows for light mode */
    --shadow-color: rgba(0, 0, 0, 0.1);
    --glow-purple: rgba(32, 46, 68, 0.15);
    --glow-blue: rgba(169, 187, 200, 0.15);

    /* Light mode palette (from provided image) */
    --palette-dominant:   #202E44; /* Primary navy */
    --palette-accent:     #8B734C; /* Accent */
    --palette-additional: #A9BBC8; /* Primary light blue */
    --palette-neutral:    #F2F2EB; /* Neutral */
    --palette-neutral-2:  #C7CBAB; /* Secondary neutral */
}

/* Theme Transition */
* {
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

/* Disable transitions during theme switching to prevent flash */
.theme-transitioning * {
    transition: none !important;
}

/* Theme Toggle Button */
.theme-toggle {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1000;
    background: var(--bg-card);
    border: 2px solid var(--border-primary);
    border-radius: 50%;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 6px var(--shadow-color);
    transition: all 0.3s ease;
}

.theme-toggle:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 12px var(--shadow-color);
}

.theme-toggle svg {
    width: 20px;
    height: 20px;
    color: var(--text-primary);
}

.theme-toggle .sun-icon {
    display: none;
}

.theme-toggle .moon-icon {
    display: block;
}

[data-theme="light"] .theme-toggle .sun-icon {
    display: block;
}

[data-theme="light"] .theme-toggle .moon-icon {
    display: none;
}

/* Core styles with box-sizing optimization */
body {
    box-sizing: border-box;
    font-display: swap; /* Improve font loading performance */
    background-color: var(--bg-primary);
    color: var(--text-primary);
}

/* Improve accessibility and SEO */
img {
    max-width: 100%;
    height: auto;
}

/* Focus indicators for accessibility */
a:focus,
button:focus {
    outline: 2px solid var(--nuvika-purple);
    outline-offset: 2px;
}

/* Skip to main content for screen readers */
.skip-to-main {
    position: absolute;
    top: -40px;
    left: 6px;
    background: var(--nuvika-purple);
    color: white;
    padding: 8px;
    text-decoration: none;
    z-index: 9999;
}

.skip-to-main:focus {
    top: 6px;
}

/* Carousel Styles */
.carousel-track {
    display: flex;
    transition: transform 0.5s ease-in-out;
}

.carousel-slide {
    width: 100%;
    flex-shrink: 0;
}

.carousel-dot.active {
    background-color: rgba(255, 255, 255, 0.8) !important;
    transform: scale(1.2);
}

.carousel-dot {
    transition: all 0.3s ease;
    cursor: pointer;
}

/*
    TEMPORARY: Disable particle background animation only.
    Lines/diagonal/floating animations are intentionally left enabled.
    If you want to re-enable particles in future, remove or comment out this block.
*/
.particles-container,
.particle {
        display: none !important;
        visibility: hidden !important;
        animation: none !important;
}

.gradient-bg {
    background: var(--gradient-primary);
}

.hero-animation {
    background: var(--gradient-hero);
    background-size: 400% 400%;
    animation: gradientShift 8s ease-in-out infinite;
}

@keyframes gradientShift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

/* Theme-aware logo swapping */
.logo-dark { display: inline-block; }
.logo-light { display: none; }

[data-theme="light"] .logo-dark { display: none !important; }
[data-theme="light"] .logo-light { display: inline-block !important; }

/* ============================================
   LIGHT THEME PALETTE OVERRIDES (experimental)
   Map existing Tailwind brand utilities to the provided palette
   ============================================ */

/* Text color remaps */
[data-theme="light"] .text-nuvika-purple { color: var(--palette-dominant) !important; }
[data-theme="light"] .text-nuvika-blue   { color: var(--palette-accent) !important; }
[data-theme="light"] .text-nuvika-orange { color: var(--palette-additional) !important; }

/* Background color remaps */
[data-theme="light"] .bg-nuvika-purple { background-color: var(--palette-dominant) !important; }
[data-theme="light"] .bg-nuvika-blue   { background-color: var(--palette-accent) !important; }
[data-theme="light"] .bg-nuvika-orange { background-color: var(--palette-additional) !important; }

/* Hover states for primary buttons */
[data-theme="light"] button.bg-nuvika-purple:hover,
[data-theme="light"] a.bg-nuvika-purple:hover { background-color: #0c2238 !important; }
[data-theme="light"] button.bg-nuvika-blue:hover,
[data-theme="light"] a.bg-nuvika-blue:hover { background-color: color-mix(in srgb, var(--palette-accent) 85%, black) !important; }
[data-theme="light"] button.bg-nuvika-orange:hover,
[data-theme="light"] a.bg-nuvika-orange:hover { background-color: color-mix(in srgb, var(--palette-additional) 85%, black) !important; }

/* AI demo and similar gradient sections in light mode to palette */
[data-theme="light"] .ai-demo-section {
    background: linear-gradient(
        90deg,
        color-mix(in srgb, var(--palette-dominant) 8%, transparent),
        color-mix(in srgb, var(--palette-accent) 8%, transparent)
    ) !important;
    border-color: color-mix(in srgb, var(--palette-dominant) 20%, transparent) !important;
}

/* Borders mapped to palette */
[data-theme="light"] .border-nuvika-purple { border-color: var(--palette-dominant) !important; }
[data-theme="light"] .border-nuvika-blue   { border-color: var(--palette-accent) !important; }
[data-theme="light"] .border-nuvika-orange { border-color: var(--palette-additional) !important; }

/* Opacity variants for borders using color-mix */
[data-theme="light"] .border-nuvika-purple\/10 { border-color: color-mix(in srgb, var(--palette-dominant) 10%, transparent) !important; }
[data-theme="light"] .border-nuvika-purple\/20 { border-color: color-mix(in srgb, var(--palette-dominant) 20%, transparent) !important; }
[data-theme="light"] .border-nuvika-purple\/30 { border-color: color-mix(in srgb, var(--palette-dominant) 30%, transparent) !important; }
[data-theme="light"] .border-nuvika-blue\/10   { border-color: color-mix(in srgb, var(--palette-accent) 10%, transparent) !important; }
[data-theme="light"] .border-nuvika-blue\/20   { border-color: color-mix(in srgb, var(--palette-accent) 20%, transparent) !important; }
[data-theme="light"] .border-nuvika-orange\/20 { border-color: color-mix(in srgb, var(--palette-additional) 20%, transparent) !important; }

/* Gradient mappings for common brand combinations */
[data-theme="light"] .bg-gradient-to-r.from-nuvika-purple\/10.to-nuvika-blue\/10,
[data-theme="light"] .bg-gradient-to-br.from-nuvika-purple\/10.to-nuvika-blue\/10 {
    background-image: linear-gradient(to right, 
        color-mix(in srgb, var(--palette-dominant) 10%, transparent),
        color-mix(in srgb, var(--palette-accent) 10%, transparent)
    ) !important;
}

[data-theme="light"] .bg-gradient-to-r.from-nuvika-purple\/20.to-nuvika-blue\/20,
[data-theme="light"] .bg-gradient-to-br.from-nuvika-purple\/20.to-nuvika-blue\/20 {
    background-image: linear-gradient(to right, 
        color-mix(in srgb, var(--palette-dominant) 20%, transparent),
        color-mix(in srgb, var(--palette-accent) 20%, transparent)
    ) !important;
}

/* Utility: palette tokens for quick experimentation
   - To try a new color set, edit the variables under [data-theme="light"]:
     --palette-dominant, --palette-accent, --palette-additional, --palette-neutral
   Everything else will update automatically across the site (text, bg, border, common gradients).
*/

.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease-out;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

.card-hover {
    transition: all 0.3s ease;
}

.card-hover:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(161, 0, 255, 0.15);
}

.floating-element {
    animation: float 6s ease-in-out infinite;
}

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

.pulse-glow {
    animation: pulseGlow 2s ease-in-out infinite alternate;
}

@keyframes pulseGlow {
    from { box-shadow: 0 0 20px rgba(161, 0, 255, 0.3); }
    to { box-shadow: 0 0 30px rgba(161, 0, 255, 0.6); }
}

/* Particle Animation */
.particles-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    pointer-events: none;
}

.particle {
    position: absolute;
    width: 6px;
    height: 12px;
    background: linear-gradient(to top, #ff4500 0%, #ffa500 50%, #ffff00 100%);
    border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%;
    box-shadow: 
        0 0 10px rgba(255, 69, 0, 0.8),
        0 0 20px rgba(255, 165, 0, 0.6),
        0 0 30px rgba(255, 255, 0, 0.4);
    animation: particleFloat 15s linear infinite, flicker 0.5s ease-in-out infinite alternate;
}

.particle:nth-child(2n) {
    background: linear-gradient(to top, #dc143c 0%, #ff6347 50%, #ffd700 100%);
    box-shadow: 
        0 0 10px rgba(220, 20, 60, 0.8),
        0 0 20px rgba(255, 99, 71, 0.6),
        0 0 30px rgba(255, 215, 0, 0.4);
    animation-duration: 18s, 0.7s;
    width: 5px;
    height: 10px;
}

.particle:nth-child(3n) {
    background: linear-gradient(to top, #b22222 0%, #ff4500 50%, #ffa500 100%);
    box-shadow: 
        0 0 10px rgba(178, 34, 34, 0.8),
        0 0 20px rgba(255, 69, 0, 0.6),
        0 0 30px rgba(255, 165, 0, 0.4);
    animation-duration: 22s, 0.6s;
    width: 7px;
    height: 14px;
}

.particle:nth-child(4n) {
    background: linear-gradient(to top, #8b0000 0%, #dc143c 50%, #ff6347 100%);
    box-shadow: 
        0 0 10px rgba(139, 0, 0, 0.8),
        0 0 20px rgba(220, 20, 60, 0.6),
        0 0 30px rgba(255, 99, 71, 0.4);
    animation-duration: 20s, 0.8s;
    width: 4px;
    height: 9px;
}

.particle:nth-child(5n) {
    background: linear-gradient(to top, #ff8c00 0%, #ffd700 50%, #ffff00 100%);
    box-shadow: 
        0 0 10px rgba(255, 140, 0, 0.8),
        0 0 20px rgba(255, 215, 0, 0.6),
        0 0 30px rgba(255, 255, 0, 0.4);
    animation-duration: 25s, 0.4s;
    width: 8px;
    height: 16px;
}

@keyframes flicker {
    0% {
        transform: scaleY(1) scaleX(1);
        opacity: 0.9;
    }
    100% {
        transform: scaleY(1.1) scaleX(0.9);
        opacity: 1;
    }
}

@keyframes particleFloat {
    0% {
        transform: translateY(100vh) translateX(0px);
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    90% {
        opacity: 1;
    }
    100% {
        transform: translateY(-100px) translateX(100px);
        opacity: 0;
    }
}

/* Connected Lines Animation */
.lines-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    pointer-events: none;
}

.line {
    position: absolute;
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(161, 0, 255, 0.8), transparent);
    animation: lineMove 12s linear infinite;
    box-shadow: 0 0 8px rgba(161, 0, 255, 0.6);
}

.line:nth-child(2n) {
    background: linear-gradient(90deg, transparent, rgba(0, 102, 255, 0.8), transparent);
    box-shadow: 0 0 8px rgba(0, 102, 255, 0.6);
    animation-duration: 14s;
}

.line:nth-child(3n) {
    background: linear-gradient(90deg, transparent, rgba(255, 107, 53, 0.8), transparent);
    box-shadow: 0 0 8px rgba(255, 107, 53, 0.6);
    animation-duration: 16s;
}

.line:nth-child(4n) {
    background: linear-gradient(90deg, transparent, rgba(34, 197, 94, 0.8), transparent);
    box-shadow: 0 0 8px rgba(34, 197, 94, 0.6);
    animation-duration: 18s;
}

.line:nth-child(5n) {
    background: linear-gradient(90deg, transparent, rgba(236, 72, 153, 0.8), transparent);
    box-shadow: 0 0 8px rgba(236, 72, 153, 0.6);
    animation-duration: 20s;
}

@keyframes lineMove {
    0% {
        transform: translateX(-100%);
        opacity: 0;
    }
    20% {
        opacity: 1;
    }
    80% {
        opacity: 1;
    }
    100% {
        transform: translateX(100vw);
        opacity: 0;
    }
}

/* Diagonal Lines */
.diagonal-line {
    position: absolute;
    width: 2px;
    height: 200px;
    background: linear-gradient(180deg, transparent, rgba(161, 0, 255, 0.6), transparent);
    animation: diagonalMove 25s linear infinite;
    transform-origin: center;
    transform: rotate(45deg);
}

/* Text Animation Styles */
#optimize-text, #accelerate-text {
    transition: all 0.5s ease-in-out;
}

#cloud-provider {
    transition: all 0.3s ease-in-out;
    min-width: 80px;
    display: inline-block;
}

/* Fix: make native select dropdown options readable on dark backgrounds
   Many browsers have limited styling for <option>, but setting color/background
   here improves legibility where supported. The empty/placeholder option is
   shown slightly muted. */
select, select:focus {
    color: #0b1220 !important; /* dark text for the selected value */
}
select option {
    color: #0b1220 !important; /* option text color */
    background: #ffffff !important; /* option background for legibility */
}
/* muted placeholder (empty value) */
select option[value=""] {
    color: #9ca3af !important;
}

/* Typewriter Animation */
.typewriter {
    border-right: 2px solid #FFFFFF;
    animation: blink 1s infinite;
}

@keyframes blink {
    0%, 50% { border-color: #FFFFFF; }
    51%, 100% { border-color: transparent; }
}

.diagonal-line:nth-child(even) {
    background: linear-gradient(180deg, transparent, rgba(0, 102, 255, 0.6), transparent);
    animation-duration: 30s;
    transform: rotate(-45deg);
}

@keyframes diagonalMove {
    0% {
        transform: translateX(-50vw) translateY(-50vh) rotate(45deg);
        opacity: 0;
    }
    20% {
        opacity: 1;
    }
    80% {
        opacity: 1;
    }
    100% {
        transform: translateX(50vw) translateY(50vh) rotate(45deg);
        opacity: 0;
    }
}

/* AI_Solution.html - extracted styles */
/* Start AI_Solution.html styles */
body {
    box-sizing: border-box;
}

.gradient-bg {
    background: var(--gradient-primary);
}

.hero-animation {
    background: var(--gradient-hero);
    background-size: 400% 400%;
    animation: gradientShift 10s ease-in-out infinite;
}

@keyframes gradientShift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease-out;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

.card-hover {
    transition: all 0.3s ease;
}

.card-hover:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(161, 0, 255, 0.15);
}

.floating-element {
    animation: float 6s ease-in-out infinite;
}

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

.pulse-glow {
    animation: pulseGlow 2s ease-in-out infinite alternate;
}

@keyframes pulseGlow {
    from { box-shadow: 0 0 20px rgba(161, 0, 255, 0.3); }
    to { box-shadow: 0 0 30px rgba(161, 0, 255, 0.6); }
}

/* Typing Animation */
.typing-animation {
    border-right: 2px solid var(--accent-purple);
    animation: blink 1s infinite;
}

@keyframes blink {
    0%, 50% { border-color: transparent; }
    51%, 100% { border-color: var(--accent-purple); }
}

/* Chat Bubble Animation */
.chat-bubble {
    animation: bubbleIn 0.5s ease-out;
}

@keyframes bubbleIn {
    from {
        opacity: 0;
        transform: translateY(20px) scale(0.8);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* AI Brain Animation */
.ai-brain {
    animation: brainPulse 3s ease-in-out infinite;
}

@keyframes brainPulse {
    0%, 100% { transform: scale(1); opacity: 0.8; }
    50% { transform: scale(1.05); opacity: 1; }
}

/* Neural Network Animation */
.neural-node {
    animation: neuralPulse 2s ease-in-out infinite;
}

@keyframes neuralPulse {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 1; }
}

/* Progress Bar Animation */
.progress-bar {
    animation: progressFill 3s ease-out;
}

@keyframes progressFill {
    from { width: 0%; }
    to { width: var(--progress-width); }
}

/* Particle System */
.particles-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    pointer-events: none;
}

.particle {
    position: absolute;
    width: 3px;
    height: 3px;
    background: linear-gradient(45deg, #A100FF, #0066FF);
    border-radius: 50%;
    animation: particleFloat 15s linear infinite;
    opacity: 0.7;
}

@keyframes particleFloat {
    0% {
        transform: translateY(100vh) translateX(0px);
        opacity: 0;
    }
    10% {
        opacity: 0.7;
    }
    90% {
        opacity: 0.7;
    }
    100% {
        transform: translateY(-100px) translateX(50px);
        opacity: 0;
    }
}

/* Interactive Elements */
.interactive-demo {
    cursor: pointer;
    transition: all 0.3s ease;
}

.interactive-demo:hover {
    transform: scale(1.02);
    box-shadow: 0 15px 35px rgba(161, 0, 255, 0.2);
}

/* End AI_Solution.html styles */

/* Workflow_Automation.html - extracted styles */
/* Start Workflow_Automation.html styles */
/* Workflow-specific visual rules */
.workflow-step {
    animation: workflowPulse 3s ease-in-out infinite;
}

@keyframes workflowPulse {
    0%, 100% { transform: scale(1); opacity: 0.8; }
    50% { transform: scale(1.05); opacity: 1; }
}

.progress-flow { animation: flowProgress 4s linear infinite; }
@keyframes flowProgress { 0% { stroke-dashoffset: 100; } 100% { stroke-dashoffset: 0; } }

.data-flow { animation: dataMove 2s ease-in-out infinite; }
@keyframes dataMove { 0%,100% { transform: translateX(0); opacity: 0.5; } 50% { transform: translateX(20px); opacity:1; } }

.status-active { animation: statusBlink 2s ease-in-out infinite; }
@keyframes statusBlink { 0%,100% { opacity:1 } 50% { opacity:0.6 } }

.draggable-element { cursor: grab; transition: all 0.3s ease; }
.draggable-element:hover { transform: scale(1.05); box-shadow: 0 10px 25px rgba(161,0,255,0.2); }
.draggable-element:active { cursor: grabbing; transform: scale(0.95); }

.workflow-canvas { background-image: radial-gradient(circle at 1px 1px, rgba(161,0,255,0.1) 1px, transparent 0); background-size: 20px 20px; }
.connection-line { stroke-dasharray: 5,5; animation: dashMove 2s linear infinite; }
@keyframes dashMove { to { stroke-dashoffset: -10; } }

.metric-counter { animation: countUp 2s ease-out; }
@keyframes countUp { from { transform: scale(0.5); opacity: 0 } to { transform: scale(1); opacity:1 } }

.timeline-item { opacity: 0; transform: translateX(-30px); animation: timelineSlide 0.8s ease-out forwards; }
@keyframes timelineSlide { to { opacity:1; transform: translateX(0); } }

/* End Workflow_Automation.html styles */

/* FinOps_Solution.html - extracted styles */
/* Start FinOps_Solution.html styles */
.chart-bar { transition: all 1s ease-out; transform-origin: bottom; }
.chart-bar.animate { animation: barGrow 2s ease-out forwards; }
@keyframes barGrow { from { transform: scaleY(0); } to { transform: scaleY(1); } }
.progress-ring { transition: stroke-dasharray 2s ease-out; }
.counter { font-variant-numeric: tabular-nums; }
.particles-container { position: absolute; top:0; left:0; width:100%; height:100%; overflow:hidden; pointer-events:none; }
.particle { position:absolute; width:4px; height:4px; background: linear-gradient(45deg,#0066FF,#A100FF); border-radius:50%; animation: particleFloat 20s linear infinite; opacity:0.6; }
@keyframes particleFloat { 0%{ transform: translateY(100vh) translateX(0); opacity:0 } 10%{ opacity:0.6 } 90%{ opacity:0.6 } 100%{ transform: translateY(-100px) translateX(100px); opacity:0 } }
.interactive-card { cursor:pointer; transition:all 0.3s ease; } .interactive-card:hover { transform:scale(1.02); box-shadow:0 10px 30px rgba(0,102,255,0.2); }
.budget-meter { background: linear-gradient(45deg,#10B981,#059669); -webkit-background-clip:text; -webkit-text-fill-color:transparent; background-clip:text; }
/* End FinOps_Solution.html styles */

/* cloud_cost_optimization.html - extracted styles */
/* Start cloud_cost_optimization.html styles */
body { box-sizing: border-box; }
.gradient-bg { background: var(--gradient-primary); }
.hero-animation { background: var(--gradient-hero); background-size: 400% 400%; animation: gradientShift 8s ease-in-out infinite; }
@keyframes gradientShift { 0%, 100% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } }
.fade-in { opacity: 0; transform: translateY(30px); transition: all 0.8s ease-out; }
.fade-in.visible { opacity: 1; transform: translateY(0); }
.card-hover { transition: all 0.3s ease; }
.card-hover:hover { transform: translateY(-8px); box-shadow: 0 20px 40px rgba(161, 0, 255, 0.15); }
.floating-element { animation: float 6s ease-in-out infinite; }
@keyframes float { 0%, 100% { transform: translateY(0px); } 50% { transform: translateY(-20px); } }
.pulse-glow { animation: pulseGlow 2s ease-in-out infinite alternate; }
@keyframes pulseGlow { from { box-shadow: 0 0 20px rgba(161, 0, 255, 0.3); } to { box-shadow: 0 0 30px rgba(161, 0, 255, 0.6); } }
/* Chart Animation */
.chart-bar { transition: all 1s ease-out; transform-origin: bottom; }
.chart-bar.animate { animation: barGrow 2s ease-out forwards; }
@keyframes barGrow { from { transform: scaleY(0); } to { transform: scaleY(1); } }
/* Progress Ring Animation */
.progress-ring { transition: stroke-dasharray 2s ease-out; }
/* Counter Animation */
.counter { font-variant-numeric: tabular-nums; }
/* Particle Animation */
.particles-container { position: absolute; top: 0; left: 0; width: 100%; height: 100%; overflow: hidden; pointer-events: none; }
.particle { position: absolute; width: 4px; height: 4px; background: linear-gradient(45deg, #A100FF, #0066FF); border-radius: 50%; animation: particleFloat 20s linear infinite; opacity: 0.6; }
@keyframes particleFloat { 0% { transform: translateY(100vh) translateX(0px); opacity: 0; } 10% { opacity: 0.6; } 90% { opacity: 0.6; } 100% { transform: translateY(-100px) translateX(100px); opacity: 0; } }
/* Interactive Elements */
.interactive-card { cursor: pointer; transition: all 0.3s ease; }
.interactive-card:hover { transform: scale(1.02); box-shadow: 0 10px 30px rgba(161, 0, 255, 0.2); }
/* Cost Savings Animation */
.savings-counter { background: linear-gradient(45deg, #10B981, #059669); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
/* End cloud_cost_optimization.html styles */

/* Blog_The_Future_of_FinOps.html - extracted styles */
/* Start Blog_The_Future_of_FinOps.html styles */
.blog-content { line-height: 1.8; }
.blog-content h2 { margin-top: 3rem; margin-bottom: 1.5rem; }
.blog-content h3 { margin-top: 2rem; margin-bottom: 1rem; }
.blog-content p { margin-bottom: 1.5rem; }
.blog-content ul { margin-bottom: 1.5rem; padding-left: 1.5rem; }
.blog-content li { margin-bottom: 0.5rem; }
.toc-link { transition: all 0.3s ease; }
.toc-link:hover { color: var(--accent-purple); padding-left: 0.5rem; }
.toc-link.active { color: var(--accent-purple); font-weight: 600; border-left: 3px solid var(--accent-purple); padding-left: 0.75rem; }
.reading-progress { position: fixed; top: 0; left: 0; width: 0%; height: 3px; background: linear-gradient(90deg, #202E44, #A9BBC8); z-index: 1000; transition: width 0.3s ease; }
.code-block { background: var(--bg-card); border: 1px solid var(--border-primary); border-radius: 0.5rem; padding: 1rem; margin: 1.5rem 0; overflow-x: auto; }
.highlight-box {
    background: linear-gradient(
        135deg,
        color-mix(in srgb, var(--accent-purple) 10%, transparent),
        color-mix(in srgb, var(--accent-blue) 10%, transparent)
    );
    border-left: 4px solid var(--accent-purple);
    padding: 1.5rem;
    margin: 2rem 0;
    border-radius: 0.5rem;
}
.ai-dashboard { animation: dashboardPulse 3s ease-in-out infinite; }
@keyframes dashboardPulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.02); } }
.data-flow { animation: dataMove 2s ease-in-out infinite; }
@keyframes dataMove { 0%, 100% { transform: translateX(0); opacity: 0.6; } 50% { transform: translateX(15px); opacity: 1; } }
.workflow-step { animation: stepHighlight 4s ease-in-out infinite; }
@keyframes stepHighlight { 0%, 100% { opacity: 0.7; } 25% { opacity: 1; } }
/* End Blog_The_Future_of_FinOps.html styles */

/* ============================================
   THEME-AWARE COMPONENT STYLES
   ============================================ */

/* Background colors */
.bg-black { background-color: var(--bg-primary) !important; }
.bg-gray-900 { background-color: var(--bg-secondary) !important; }
.bg-gray-800 { background-color: var(--bg-card) !important; }
.bg-gray-700 { background-color: var(--bg-tertiary) !important; }
.bg-nuvika-dark { background-color: var(--bg-secondary) !important; }

/* Text colors */
.text-white { color: var(--text-primary) !important; }
.text-black { color: var(--text-primary) !important; }
.text-gray-200 { color: var(--text-secondary) !important; }
.text-gray-300 { color: var(--text-secondary) !important; }
.text-gray-400 { color: var(--text-tertiary) !important; }
.text-gray-500 { color: var(--text-muted) !important; }
.text-gray-600 { color: var(--text-muted) !important; }

/* Status text colors mapped to semantic tokens */
.text-green-400, .text-green-500, .text-green-600 { color: var(--status-success) !important; }
.text-yellow-400, .text-yellow-500, .text-yellow-600 { color: var(--status-warning) !important; }
.text-red-400, .text-red-500, .text-red-600 { color: var(--status-danger) !important; }

/* Border colors */
.border-gray-800, .border-gray-700, .border-gray-600 { border-color: var(--border-primary) !important; }
.border-gray-500 { border-color: var(--border-secondary) !important; }

/* Card styles with theme support */
.card-hover {
    background-color: var(--bg-card);
    border-color: var(--border-primary);
}

.card-hover:hover {
    background-color: var(--bg-card-hover);
    box-shadow: 0 20px 40px var(--glow-purple);
}

/* Light theme specific adjustments */
[data-theme="light"] .hero-animation {
    background: var(--gradient-hero);
    opacity: 0.05;
}

[data-theme="light"] .particles-container {
    opacity: 0.3;
}

[data-theme="light"] .floating-element {
    opacity: 0.6;
}

[data-theme="light"] .pulse-glow {
    box-shadow: 0 0 20px var(--glow-purple);
}

/* Ensure gradients remain vibrant in light mode */
[data-theme="light"] .gradient-bg,
[data-theme="light"] .bg-gradient-to-r,
[data-theme="light"] .bg-gradient-to-br {
    position: relative;
}

[data-theme="light"] .gradient-bg::before,
[data-theme="light"] .bg-gradient-to-r::before,
[data-theme="light"] .bg-gradient-to-br::before {
    /* Remove the global white overlay in light theme to avoid washing out content */
    content: none !important;
}

/* Explicit: no overlay for AI Demo sections (kept for clarity) */
[data-theme="light"] .ai-demo-section::before { content: none !important; }

/* Navigation theme support */
nav {
    background-color: var(--bg-primary);
    border-bottom-color: var(--border-primary);
}

[data-theme="light"] nav {
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
}

[data-theme="light"] nav a,
[data-theme="light"] nav button {
    color: var(--text-primary);
}

[data-theme="light"] nav a:hover {
    color: var(--palette-accent);
}

/* Footer theme support */
footer {
    background-color: var(--bg-secondary);
}

/* Carousel and form theme support */
[data-theme="light"] .carousel-slide,
[data-theme="light"] .bg-gray-900,
[data-theme="light"] .bg-gray-800 {
    background-color: var(--bg-card) !important;
    border: 1px solid var(--border-primary);
}

[data-theme="light"] .carousel-slide h3,
[data-theme="light"] .carousel-slide p,
[data-theme="light"] .carousel-slide label {
    color: var(--text-primary) !important;
}

[data-theme="light"] .carousel-slide input,
[data-theme="light"] .carousel-slide select,
[data-theme="light"] .carousel-slide textarea {
    background-color: var(--bg-primary) !important;
    color: var(--text-primary) !important;
    border-color: var(--border-primary) !important;
}

/* Why Choose Nuvika section theme support */
[data-theme="light"] #why-choose-nuvika-content section {
    background-color: var(--bg-secondary) !important;
}

[data-theme="light"] #why-choose-nuvika-content h2,
[data-theme="light"] #why-choose-nuvika-content h3,
[data-theme="light"] #why-choose-nuvika-content h4,
[data-theme="light"] #why-choose-nuvika-content p,
[data-theme="light"] #why-choose-nuvika-content li {
    color: var(--text-primary) !important;
}

[data-theme="light"] #why-choose-nuvika-content .bg-gray-800,
[data-theme="light"] #why-choose-nuvika-content .bg-gray-900 {
    background-color: var(--bg-card) !important;
    border: 1px solid var(--border-primary);
}

/* AI Demo Section - Semantic Classes (Dark theme default) */
.ai-demo-heading {
    color: #ffffff;
}

.ai-demo-text {
    color: #d1d5db;
}

.ai-demo-input {
    background-color: #374151;
    border-color: #4b5563;
    color: #ffffff;
}

.ai-demo-input::placeholder {
    color: #9ca3af;
}

.ai-demo-message {
    color: #d1d5db;
}

/* Light theme overrides for AI Demo Section - MAXIMUM SPECIFICITY */
html[data-theme="light"] .ai-demo-heading,
html[data-theme="light"] h4.ai-demo-heading,
[data-theme="light"] .ai-demo-heading,
[data-theme="light"] h4.ai-demo-heading {
    color: #111827 !important;
}

html[data-theme="light"] .ai-demo-text,
html[data-theme="light"] p.ai-demo-text,
[data-theme="light"] .ai-demo-text,
[data-theme="light"] p.ai-demo-text {
    color: #374151 !important;
}

html[data-theme="light"] .ai-demo-input,
html[data-theme="light"] input.ai-demo-input,
[data-theme="light"] .ai-demo-input,
[data-theme="light"] input.ai-demo-input {
    background-color: rgba(255, 255, 255, 0.9) !important;
    border-color: #d1d5db !important;
    color: #111827 !important;
}

html[data-theme="light"] .ai-demo-input::placeholder,
html[data-theme="light"] input.ai-demo-input::placeholder,
[data-theme="light"] .ai-demo-input::placeholder,
[data-theme="light"] input.ai-demo-input::placeholder {
    color: #6b7280 !important;
}

html[data-theme="light"] .ai-demo-message,
html[data-theme="light"] div.ai-demo-message,
[data-theme="light"] .ai-demo-message,
[data-theme="light"] div.ai-demo-message {
    color: #374151 !important;
}

/* AI Products section theme support */
[data-theme="light"] #aiproducts {
    background-color: var(--bg-secondary) !important;
}

[data-theme="light"] #aiproducts h2,
[data-theme="light"] #aiproducts h3,
[data-theme="light"] #aiproducts h4,
[data-theme="light"] #aiproducts p,
[data-theme="light"] #aiproducts li {
    color: var(--text-primary) !important;
}

[data-theme="light"] #aiproducts .text-gray-300 {
    color: var(--text-secondary) !important;
}

[data-theme="light"] #aiproducts input {
    background-color: var(--bg-primary) !important;
    color: var(--text-primary) !important;
    border-color: var(--border-primary) !important;
}

[data-theme="light"] #aiproducts input::placeholder {
    color: var(--text-muted) !important;
}

/* AI Demo Form - "Ready to Meet Your Personal Nuvi?" section */
[data-theme="light"] #aiDemoForm input[type="email"] {
    background-color: rgba(0, 0, 0, 0.05) !important;
    border-color: rgba(0, 0, 0, 0.2) !important;
    color: var(--text-primary) !important;
}

[data-theme="light"] #aiDemoForm input::placeholder {
    color: rgba(0, 0, 0, 0.5) !important;
}

[data-theme="light"] #aiDemoForm button[type="submit"] {
    background-color: var(--palette-dominant) !important;
    color: #ffffff !important;
}

[data-theme="light"] #aiDemoForm button[type="submit"]:hover {
    background-color: color-mix(in srgb, var(--palette-dominant) 85%, black) !important; /* fallback */
    background-color: #0c2238 !important;
    color: #ffffff !important;
}

[data-theme="light"] #aiDemoMessage {
    color: var(--text-secondary) !important;
}

/* ===============================
   Chat widget theming (light mode)
   =============================== */
[data-theme="light"] #chat-messages .bg-gray-700 {
    background-color: var(--bg-primary) !important;
    border: 1px solid var(--border-primary) !important;
}

[data-theme="light"] #chat-messages .bg-gray-700 p {
    color: var(--text-primary) !important;
}

[data-theme="light"] #chat-messages .bg-gray-600 {
    background-color: var(--palette-dominant) !important;
    color: #ffffff !important;
}

/* Ensure assistant primary message text stays readable on the dominant bubble */
[data-theme="light"] #chat-messages .bg-nuvika-purple p,
[data-theme="light"] #chat-messages .bg-nuvika-purple .text-white {
    color: #ffffff !important;
}

/* Assistant bubble already maps via .bg-nuvika-purple → palette-dominant */
[data-theme="light"] #chat-messages .text-purple-100 {
    color: #f3f4f6 !important; /* light, readable bullets on dominant background */
}

/* "View Calendar" chip inside assistant bubble */
[data-theme="light"] #chat-messages .bg-white\/20 { 
    background-color: rgba(255, 255, 255, 0.15) !important; 
    color: #ffffff !important;
}
[data-theme="light"] #chat-messages .bg-white\/20:hover { 
    background-color: rgba(255, 255, 255, 0.25) !important; 
}

/* AI Demo section - override hardcoded classes with maximum specificity */
html[data-theme="light"] #aiDemoEmail.bg-gray-700,
html[data-theme="light"] input#aiDemoEmail,
[data-theme="light"] #aiDemoEmail.bg-gray-700,
[data-theme="light"] input#aiDemoEmail.text-white {
    background-color: rgba(255, 255, 255, 0.8) !important;
    border-color: rgba(0, 0, 0, 0.3) !important;
    color: #000000 !important;
}

html[data-theme="light"] #aiDemoEmail::placeholder,
[data-theme="light"] #aiDemoEmail::placeholder,
[data-theme="light"] #aiDemoEmail.placeholder-gray-400::placeholder {
    color: rgba(0, 0, 0, 0.6) !important;
}

/* AI Demo section text overrides - MAXIMUM SPECIFICITY */
html[data-theme="light"] div.bg-gradient-to-r h4.text-white.font-bold,
html[data-theme="light"] div.bg-gradient-to-r h4.text-white,
html[data-theme="light"] div.bg-gradient-to-r h4.text-2xl,
html[data-theme="light"] div.bg-gradient-to-r h4.text-3xl,
html[data-theme="light"] div.bg-gradient-to-r.from-nuvika-purple\/10 h4,
[data-theme="light"] div.bg-gradient-to-r h4.text-white.font-bold,
[data-theme="light"] div.bg-gradient-to-r h4.text-white,
[data-theme="light"] div.bg-gradient-to-r h4.text-2xl,
[data-theme="light"] div.bg-gradient-to-r h4 {
    color: #111827 !important;
    opacity: 1 !important;
}

html[data-theme="light"] div.bg-gradient-to-r p.text-gray-300,
html[data-theme="light"] div.bg-gradient-to-r p.text-xl,
html[data-theme="light"] div.bg-gradient-to-r.from-nuvika-purple\/10 p,
[data-theme="light"] div.bg-gradient-to-r p.text-gray-300,
[data-theme="light"] div.bg-gradient-to-r p.text-xl,
[data-theme="light"] div.bg-gradient-to-r p {
    color: #374151 !important;
    opacity: 1 !important;
}

html[data-theme="light"] div#aiDemoMessage.text-gray-300,
[data-theme="light"] div#aiDemoMessage.text-gray-300,
[data-theme="light"] div#aiDemoMessage {
    color: #374151 !important;
    opacity: 1 !important;
}

/* Gradient background containers in light theme */
html[data-theme="light"] .bg-gradient-to-r.from-nuvika-purple\/10,
[data-theme="light"] .bg-gradient-to-r.from-nuvika-purple\/10 {
    background: linear-gradient(
        to right,
        color-mix(in srgb, var(--palette-dominant) 8%, transparent),
        color-mix(in srgb, var(--palette-accent) 8%, transparent)
    ) !important;
    border-color: color-mix(in srgb, var(--palette-dominant) 30%, transparent) !important;
}

/* Carousel and Contact form styles for light theme */
[data-theme="light"] #carouselConsultationForm input,
[data-theme="light"] #carouselConsultationForm select,
[data-theme="light"] #consultationForm input,
[data-theme="light"] #consultationForm select {
    background-color: rgba(0, 0, 0, 0.05) !important;
    border-color: rgba(0, 0, 0, 0.2) !important;
    color: #000000 !important;
}

[data-theme="light"] #carouselConsultationForm input::placeholder,
[data-theme="light"] #consultationForm input::placeholder {
    color: rgba(0, 0, 0, 0.6) !important;
}

/* Select dropdown text in light theme */
[data-theme="light"] #carouselConsultationForm select,
[data-theme="light"] #consultationForm select {
    color: #000000 !important;
}

[data-theme="light"] #carouselConsultationForm select option,
[data-theme="light"] #consultationForm select option {
    background-color: white !important;
    color: #000000 !important;
}

/* Form text content in light theme */
[data-theme="light"] #carouselConsultationForm .text-white\/80,
[data-theme="light"] #carouselConsultationForm .text-white\/90,
[data-theme="light"] #consultationForm .text-white\/80,
[data-theme="light"] #consultationForm + div .text-white\/80 {
    color: rgba(0, 0, 0, 0.7) !important;
}

/* CRITICAL: Form buttons in light theme - override white background */
[data-theme="light"] #carouselConsultationForm button.bg-white,
[data-theme="light"] #consultationForm button.bg-white,
[data-theme="light"] form button.bg-white {
    background-color: var(--palette-dominant) !important;
    color: #ffffff !important;
}

[data-theme="light"] #carouselConsultationForm button.bg-white:hover,
[data-theme="light"] #consultationForm button.bg-white:hover,
[data-theme="light"] form button.bg-white:hover {
    background-color: color-mix(in srgb, var(--palette-dominant) 85%, black) !important; /* fallback below */
    background-color: #0c2238 !important;
    color: #ffffff !important;
}

/* Form button in light theme - keep purple theme color */
[data-theme="light"] #carouselConsultationForm button[type="submit"],
[data-theme="light"] #consultationForm button[type="submit"] {
    background-color: var(--palette-dominant) !important;
    color: white !important;
}

[data-theme="light"] #carouselConsultationForm button[type="submit"]:hover,
[data-theme="light"] #consultationForm button[type="submit"]:hover {
    background-color: color-mix(in srgb, var(--palette-dominant) 85%, black) !important; /* fallback below */
    background-color: #0c2238 !important;
    color: white !important;
}

/* Success indicators in carousel form */
[data-theme="light"] #carouselConsultationForm ~ div .text-white\/90,
[data-theme="light"] .bg-gradient-to-br .text-white\/90 {
    color: rgba(0, 0, 0, 0.8) !important;
}

/* Form elements in light theme */
[data-theme="light"] input,
[data-theme="light"] textarea,
[data-theme="light"] select {
    background-color: var(--bg-primary);
    color: var(--text-primary);
    border-color: color-mix(in srgb, var(--palette-dominant) 25%, transparent);
}

[data-theme="light"] input:focus,
[data-theme="light"] textarea:focus,
[data-theme="light"] select:focus {
    border-color: var(--palette-accent);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--palette-accent) 35%, transparent);
}

/* Branded buttons keep their colors in both themes */
[data-theme="light"] .bg-nuvika-blue,
[data-theme="light"] .bg-nuvika-purple,
[data-theme="light"] .bg-nuvika-orange {
    color: white !important;
}

/* Ensure purple buttons stay purple with white text in light theme */
html[data-theme="light"] button.bg-nuvika-purple,
html[data-theme="light"] .bg-nuvika-purple.text-white,
[data-theme="light"] button.bg-nuvika-purple {
    background-color: var(--palette-dominant) !important;
    color: #ffffff !important;
}

html[data-theme="light"] button.bg-nuvika-purple:hover,
[data-theme="light"] button.bg-nuvika-purple:hover {
    background-color: color-mix(in srgb, var(--palette-dominant) 85%, black) !important; /* fallback */
    background-color: #0c2238 !important;
    color: #ffffff !important;
}

/* White background buttons in light theme - convert to purple */
[data-theme="light"] button.bg-white,
[data-theme="light"] a.bg-white {
    background-color: var(--palette-dominant) !important;
    color: white !important;
}

[data-theme="light"] button.bg-white:hover,
[data-theme="light"] a.bg-white:hover {
    background-color: color-mix(in srgb, var(--palette-dominant) 85%, black) !important; /* fallback */
    background-color: #0c2238 !important;
    color: white !important;
}

/* Override text-nuvika-purple on buttons with bg-white in light theme */
[data-theme="light"] button.bg-white.text-nuvika-purple,
[data-theme="light"] button.bg-white,
[data-theme="light"] form button.bg-white.text-nuvika-purple {
    background-color: var(--palette-dominant) !important;
    color: #ffffff !important;
}

[data-theme="light"] button.bg-white.text-nuvika-purple:hover,
[data-theme="light"] button.bg-white:hover,
[data-theme="light"] form button.bg-white.text-nuvika-purple:hover {
    background-color: color-mix(in srgb, var(--palette-dominant) 85%, black) !important; /* fallback */
    background-color: #0c2238 !important;
    color: #ffffff !important;
}

/* Extremely specific override for carousel form button */
[data-theme="light"] .bg-gradient-to-br button[type="submit"].bg-white,
[data-theme="light"] form#carouselConsultationForm button[type="submit"],
[data-theme="light"] form#consultationForm button[type="submit"] {
    background-color: var(--palette-dominant) !important;
    color: #ffffff !important;
}

[data-theme="light"] .bg-gradient-to-br button[type="submit"].bg-white:hover,
[data-theme="light"] form#carouselConsultationForm button[type="submit"]:hover,
[data-theme="light"] form#consultationForm button[type="submit"]:hover {
    background-color: color-mix(in srgb, var(--palette-dominant) 85%, black) !important; /* fallback */
    background-color: #0c2238 !important;
    color: #ffffff !important;
}

/* Nuclear option - override ALL white background buttons in light theme */
html[data-theme="light"] button.bg-white,
html[data-theme="light"] button.text-nuvika-purple.bg-white,
body[data-theme="light"] button.bg-white {
    background-color: var(--palette-dominant) !important;
    color: #ffffff !important;
}

html[data-theme="light"] button.bg-white:hover,
html[data-theme="light"] button.text-nuvika-purple.bg-white:hover,
body[data-theme="light"] button.bg-white:hover {
    background-color: color-mix(in srgb, var(--palette-dominant) 85%, black) !important; /* fallback */
    background-color: #0c2238 !important;
    color: #ffffff !important;
}

/* Text color for non-button elements with text-nuvika-purple class */
[data-theme="light"] .text-nuvika-purple:not(button) { color: var(--palette-dominant) !important; }
[data-theme="light"] .text-nuvika-blue { color: var(--palette-accent) !important; }

/* Shadow adjustments for light theme */
[data-theme="light"] .shadow,
[data-theme="light"] .shadow-lg {
    box-shadow: 0 4px 6px var(--shadow-color);
}

/* Particle visibility in light mode */
[data-theme="light"] .particle {
    opacity: 0.2;
}

[data-theme="light"] .line {
    opacity: 0.3;
}

[data-theme="light"] .diagonal-line {
    opacity: 0.2;
}

/* Global section backgrounds in light mode */
[data-theme="light"] section.bg-black,
[data-theme="light"] section.bg-gray-900 {
    background-color: var(--palette-neutral) !important;
}

[data-theme="light"] section.bg-gray-800 {
    background-color: var(--bg-card) !important;
}

[data-theme="light"] section.bg-gradient-to-b {
    background: linear-gradient(to bottom, var(--bg-primary), var(--bg-secondary)) !important;
}

/* All headings in light mode */
[data-theme="light"] h1,
[data-theme="light"] h2,
[data-theme="light"] h3,
[data-theme="light"] h4,
[data-theme="light"] h5,
[data-theme="light"] h6 {
    color: var(--text-primary) !important;
}

/* All paragraphs in light mode */
[data-theme="light"] p {
    color: var(--text-secondary) !important;
}

/* All list items in light mode */
[data-theme="light"] li {
    color: var(--text-secondary) !important;
}

/* Text color utilities in light mode */
[data-theme="light"] .text-white {
    color: var(--text-primary) !important;
}

[data-theme="light"] .text-gray-300 {
    color: var(--text-secondary) !important;
}

[data-theme="light"] .text-gray-400 {
    color: var(--text-tertiary) !important;
}

[data-theme="light"] .text-gray-500 {
    color: var(--text-muted) !important;
}

/* Background utilities in light mode */
[data-theme="light"] .bg-black {
    background-color: var(--bg-primary) !important;
}

[data-theme="light"] .bg-gray-900 {
    background-color: var(--bg-secondary) !important;
}

[data-theme="light"] .bg-gray-800 {
    background-color: var(--bg-card) !important;
}

[data-theme="light"] .bg-gray-700 {
    background-color: var(--bg-primary) !important;
}

/* Light theme: gradient utility remaps to palette */
[data-theme="light"] .to-purple-600 { --tw-gradient-to: color-mix(in srgb, var(--palette-dominant) 60%, transparent) !important; }
[data-theme="light"] .from-purple-500 { --tw-gradient-from: color-mix(in srgb, var(--palette-dominant) 80%, transparent) !important; }
[data-theme="light"] .from-purple-600 { --tw-gradient-from: color-mix(in srgb, var(--palette-dominant) 85%, transparent) !important; }

/* Light theme: tinted backgrounds for status chips */
[data-theme="light"] .bg-green-500\/20 { background-color: color-mix(in srgb, var(--status-success) 20%, transparent) !important; }
[data-theme="light"] .bg-yellow-500\/20 { background-color: color-mix(in srgb, var(--status-warning) 20%, transparent) !important; }
[data-theme="light"] .bg-red-500\/20 { background-color: color-mix(in srgb, var(--status-danger) 20%, transparent) !important; }

/* Light theme: overlays */
[data-theme="light"] .bg-black\/50 { background-color: rgba(0, 0, 0, 0.25) !important; }
[data-theme="light"] .hover\:bg-black\/70:hover { background-color: rgba(0, 0, 0, 0.35) !important; }
[data-theme="light"] .border-white\/30 { border-color: color-mix(in srgb, var(--text-primary) 20%, transparent) !important; }

/* Border utilities in light mode */
[data-theme="light"] .border-gray-800,
[data-theme="light"] .border-gray-700,
[data-theme="light"] .border-gray-600 {
    border-color: var(--border-primary) !important;
}

/* About page specific styles */
[data-theme="light"] .bg-gradient-to-br {
    background: var(--bg-card) !important;
}

[data-theme="light"] .border-nuvika-purple\/20,
[data-theme="light"] .border-nuvika-blue\/20 {
    border-color: var(--border-primary) !important;
}

/* FINAL OVERRIDE - AI Demo Section Light Theme (Ultra High Specificity) */
html[data-theme="light"] body .ai-demo-section,
html[data-theme="light"] .ai-demo-section {
    background: linear-gradient(
        to right,
        color-mix(in srgb, var(--palette-dominant) 8%, transparent),
        color-mix(in srgb, var(--palette-accent) 8%, transparent)
    ) !important;
    border-color: color-mix(in srgb, var(--palette-dominant) 20%, transparent) !important;
}

html[data-theme="light"] body .ai-demo-section .ai-demo-heading,
html[data-theme="light"] body .ai-demo-section h4.ai-demo-heading {
    color: #000000 !important;
    opacity: 1 !important;
}

html[data-theme="light"] body .ai-demo-section .ai-demo-text,
html[data-theme="light"] body .ai-demo-section p.ai-demo-text {
    color: #1f2937 !important;
    opacity: 1 !important;
}

html[data-theme="light"] body .ai-demo-section .ai-demo-input,
html[data-theme="light"] body .ai-demo-section input.ai-demo-input {
    background-color: #ffffff !important;
    border-color: #9ca3af !important;
    color: #000000 !important;
}

html[data-theme="light"] body .ai-demo-section .ai-demo-input::placeholder,
html[data-theme="light"] body .ai-demo-section input.ai-demo-input::placeholder {
    color: #6b7280 !important;
}

html[data-theme="light"] body .ai-demo-section .ai-demo-message,
html[data-theme="light"] body .ai-demo-section div.ai-demo-message {
    color: #1f2937 !important;
    opacity: 1 !important;
}

/* Light theme - The Nuvika Difference block */
[data-theme="light"] .nuvika-difference {
    /* Replace dark gray gradient with subtle light tint from palette */
    background: linear-gradient(
        to right,
        color-mix(in srgb, var(--palette-dominant) 3%, transparent),
        color-mix(in srgb, var(--palette-additional) 3%, transparent)
    ) !important;
    border-color: var(--border-primary) !important;
}

