/* ===========================================
   LUXEONIX THEME - NEW DESIGN SYSTEM
   Based on v0 Design with Sage Green Palette
   =========================================== */

/* ===== LIGHT MODE (Default) ===== */
:root {
    --background: #f9f9f9;
    --foreground: #1a1a1a;
    --card: #ffffff;
    --card-foreground: #1a1a1a;
    --primary: #638c80;
    --primary-foreground: #ffffff;
    --secondary: #a6d79b;
    --secondary-foreground: #1a1a1a;
    --muted: #f0f0f0;
    --muted-foreground: #5a5a5a;
    --accent: #1a3a52;
    --accent-foreground: #ffffff;
    --border: #e0e0e0;
    --ring: #638c80;
    --radius: 0.625rem;
}

/* ===== DARK MODE (Night Theme - Dark Background, White Text) ===== */
html.dark {
    --background: #0a1612;
    --foreground: #ffffff;
    --card: #0f2019;
    --card-foreground: #ffffff;
    --primary: #a6d79b;
    --primary-foreground: #0a1612;
    --secondary: #638c80;
    --secondary-foreground: #ffffff;
    --muted: #132920;
    --muted-foreground: #d0ddd8;
    --accent: #4a7a9e;
    --accent-foreground: #ffffff;
    --border: #1e3a30;
    --ring: #a6d79b;
}

/* Dark mode text - ALL white for visibility on dark backgrounds */
html.dark,
html.dark body,
html.dark h1, html.dark h2, html.dark h3, html.dark h4, html.dark h5, html.dark h6,
html.dark p, html.dark span, html.dark li, html.dark a,
html.dark div, html.dark td, html.dark th,
html.dark .section-title, html.dark .section-subtitle,
html.dark .card-title, html.dark .pricing-amount,
html.dark label, html.dark .nav-link,
html.dark .card, html.dark .card *,
html.dark .pricing-card, html.dark .pricing-card *,
html.dark .feature-item, html.dark .feature-item *,
html.dark .text-muted, html.dark .muted-text,
html.dark .pricing-description, html.dark .pricing-label,
html.dark .pricing-features, html.dark .pricing-features li,
html.dark .package-description, html.dark .package-features,
html.dark small, html.dark strong, html.dark em {
    color: #ffffff !important;
}

html.dark .gradient-text,
html.dark .gradient-text-animated {
    -webkit-text-fill-color: #a6d79b !important;
    color: #a6d79b !important;
}

html.dark .btn-primary-new,
html.dark .btn-cta,
html.dark .btn-primary {
    color: #0a1612 !important;
}

html.dark .badge {
    color: #0a1612 !important;
    background: #a6d79b !important;
}

html.dark .stat-value,
html.dark .stat-label {
    color: #ffffff !important;
}

/* Ensure icons are visible in dark mode */
html.dark i, html.dark .fa, html.dark .fas, html.dark .fab, html.dark .far {
    color: #a6d79b !important;
}

/* CTA section - white text in dark mode */
html.dark .cta-section,
html.dark .cta-section *,
html.dark .cta-section h2,
html.dark .cta-section h3,
html.dark .cta-section p,
html.dark .cta-section span,
html.dark section[style*="cta"] *,
html.dark .section-cta *,
html.dark [class*="cta"] h2,
html.dark [class*="cta"] h3,
html.dark [class*="cta"] p {
    color: #ffffff !important;
}

/* Footer text white in dark mode */
html.dark footer,
html.dark footer *,
html.dark .footer *,
html.dark .site-footer * {
    color: #ffffff !important;
}

/* ===== BASE STYLES ===== */
html {
    scroll-behavior: smooth;
}

body.theme-new {
    background-color: var(--background);
    color: var(--foreground);
    transition: background-color 0.5s ease, color 0.5s ease;
}

/* ===== MAGICAL GRADIENT ANIMATIONS ===== */
@keyframes gradient-flow {
    0% { background-position: 0% 50%; }
    25% { background-position: 50% 100%; }
    50% { background-position: 100% 50%; }
    75% { background-position: 50% 0%; }
    100% { background-position: 0% 50%; }
}

@keyframes gradient-pulse {
    0%, 100% {
        opacity: 0.6;
        filter: blur(60px);
    }
    50% {
        opacity: 0.9;
        filter: blur(80px);
    }
}

@keyframes aurora {
    0% { transform: translateX(-50%) translateY(-50%) rotate(0deg) scale(1); }
    33% { transform: translateX(-45%) translateY(-55%) rotate(120deg) scale(1.1); }
    66% { transform: translateX(-55%) translateY(-45%) rotate(240deg) scale(0.9); }
    100% { transform: translateX(-50%) translateY(-50%) rotate(360deg) scale(1); }
}

.animate-gradient-flow {
    background-size: 300% 300%;
    animation: gradient-flow 15s ease infinite;
}

.animate-gradient-pulse {
    animation: gradient-pulse 8s ease-in-out infinite;
}

.animate-aurora {
    animation: aurora 20s linear infinite;
}

/* ===== FLOATING ANIMATIONS ===== */
@keyframes float-magical {
    0%, 100% { transform: translateY(0px) translateX(0px) rotate(0deg); }
    20% { transform: translateY(-25px) translateX(15px) rotate(3deg); }
    40% { transform: translateY(-15px) translateX(-10px) rotate(-2deg); }
    60% { transform: translateY(-35px) translateX(5px) rotate(2deg); }
    80% { transform: translateY(-20px) translateX(-5px) rotate(-1deg); }
}

@keyframes float-orb {
    0%, 100% { transform: translate(0, 0) scale(1); opacity: 0.5; }
    25% { transform: translate(30px, -50px) scale(1.2); opacity: 0.7; }
    50% { transform: translate(-20px, -80px) scale(0.9); opacity: 0.4; }
    75% { transform: translate(40px, -30px) scale(1.1); opacity: 0.6; }
}

@keyframes float-particle {
    0% { transform: translateY(100vh) translateX(0) rotate(0deg); opacity: 0; }
    10% { opacity: 1; }
    90% { opacity: 1; }
    100% { transform: translateY(-100vh) translateX(100px) rotate(720deg); opacity: 0; }
}

.animate-float-magical {
    animation: float-magical 12s ease-in-out infinite;
}

.animate-float-orb {
    animation: float-orb 15s ease-in-out infinite;
}

.animate-float-particle {
    animation: float-particle 20s linear infinite;
}

/* ===== SCROLL REVEAL ANIMATIONS ===== */
@keyframes reveal-up {
    from { opacity: 0; transform: translateY(80px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes reveal-left {
    from { opacity: 0; transform: translateX(-60px); }
    to { opacity: 1; transform: translateX(0); }
}

@keyframes reveal-right {
    from { opacity: 0; transform: translateX(60px); }
    to { opacity: 1; transform: translateX(0); }
}

@keyframes reveal-scale {
    from { opacity: 0; transform: scale(0.8); }
    to { opacity: 1; transform: scale(1); }
}

.animate-reveal-up {
    animation: reveal-up 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.animate-reveal-left {
    animation: reveal-left 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.animate-reveal-right {
    animation: reveal-right 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.animate-reveal-scale {
    animation: reveal-scale 0.7s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* Elements waiting for reveal */
[data-animate] {
    opacity: 0;
}

[data-animate].is-visible {
    opacity: 1;
}

/* ===== GLOW & SHIMMER EFFECTS ===== */
@keyframes glow-pulse {
    0%, 100% {
        box-shadow: 0 0 20px rgba(99, 140, 128, 0.3), 
                    0 0 40px rgba(99, 140, 128, 0.2), 
                    0 0 60px rgba(166, 215, 155, 0.1);
    }
    50% {
        box-shadow: 0 0 40px rgba(99, 140, 128, 0.5), 
                    0 0 80px rgba(99, 140, 128, 0.3), 
                    0 0 120px rgba(166, 215, 155, 0.2);
    }
}

@keyframes shimmer-sweep {
    0% { transform: translateX(-100%) skewX(-15deg); }
    100% { transform: translateX(200%) skewX(-15deg); }
}

@keyframes text-shimmer {
    0% { background-position: -200% center; }
    100% { background-position: 200% center; }
}

@keyframes border-glow {
    0%, 100% { border-color: rgba(99, 140, 128, 0.3); }
    50% { border-color: rgba(166, 215, 155, 0.8); }
}

.animate-glow-pulse {
    animation: glow-pulse 4s ease-in-out infinite;
}

.animate-shimmer-sweep {
    animation: shimmer-sweep 3s ease-in-out infinite;
}

.animate-text-shimmer {
    background: linear-gradient(120deg, 
        var(--primary) 0%, 
        var(--secondary) 25%, 
        var(--primary) 50%, 
        var(--secondary) 75%, 
        var(--primary) 100%);
    background-size: 200% auto;
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: text-shimmer 4s linear infinite;
}

.animate-border-glow {
    animation: border-glow 3s ease-in-out infinite;
}

/* ===== MORPHING SHAPES ===== */
@keyframes morph {
    0%, 100% { border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%; }
    25% { border-radius: 30% 60% 70% 40% / 50% 60% 30% 60%; }
    50% { border-radius: 50% 60% 30% 60% / 30% 40% 70% 50%; }
    75% { border-radius: 60% 40% 60% 40% / 70% 30% 50% 60%; }
}

.animate-morph {
    animation: morph 15s ease-in-out infinite;
}

/* ===== CARD EFFECTS ===== */
@keyframes card-float {
    0%, 100% { transform: translateY(0) rotateX(0) rotateY(0); }
    50% { transform: translateY(-10px) rotateX(2deg) rotateY(-2deg); }
}

.animate-card-float {
    animation: card-float 6s ease-in-out infinite;
}

/* ===== STAGGER UTILITIES ===== */
.stagger-1 { animation-delay: 0.1s; }
.stagger-2 { animation-delay: 0.2s; }
.stagger-3 { animation-delay: 0.3s; }
.stagger-4 { animation-delay: 0.4s; }
.stagger-5 { animation-delay: 0.5s; }
.stagger-6 { animation-delay: 0.6s; }

/* ===== AURORA BACKGROUND COMPONENT ===== */
.aurora-background {
    position: fixed;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
    z-index: 0;
}

.aurora-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
}

.aurora-orb-1 {
    top: 50%;
    left: 50%;
    width: 800px;
    height: 800px;
    background: linear-gradient(to right, 
        rgba(99, 140, 128, 0.3), 
        rgba(166, 215, 155, 0.2), 
        rgba(26, 58, 82, 0.3));
}

.aurora-orb-2 {
    top: 25%;
    right: 25%;
    width: 600px;
    height: 600px;
    background: linear-gradient(to bottom right, 
        rgba(166, 215, 155, 0.25), 
        rgba(99, 140, 128, 0.15));
    filter: blur(80px);
    animation-delay: -7s;
}

.aurora-orb-3 {
    bottom: 25%;
    left: 33%;
    width: 500px;
    height: 500px;
    background: linear-gradient(to top right, 
        rgba(26, 58, 82, 0.2), 
        rgba(166, 215, 155, 0.25));
    filter: blur(90px);
    animation-delay: -14s;
}

/* ===== FLOATING PARTICLES COMPONENT ===== */
.particles-container {
    position: fixed;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
    z-index: 0;
}

.particle {
    position: absolute;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: rgba(99, 140, 128, 0.2);
}

html.dark .particle {
    background-color: rgba(166, 215, 155, 0.2);
}

/* ===== MORPHING BLOB COMPONENT ===== */
.morphing-blob {
    position: absolute;
    opacity: 0.6;
}

/* ===== GRADIENT TEXT ===== */
.gradient-text {
    background: linear-gradient(to right, var(--primary), var(--secondary));
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.gradient-text-animated {
    background: linear-gradient(120deg, 
        var(--primary) 0%, 
        var(--secondary) 25%, 
        var(--primary) 50%, 
        var(--secondary) 75%, 
        var(--primary) 100%);
    background-size: 200% auto;
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: text-shimmer 4s linear infinite;
}

/* ===== NEW BUTTON STYLES ===== */
.btn-primary-new {
    background: linear-gradient(to right, var(--primary), var(--secondary));
    color: #1a3a52;
    padding: 1rem 2.5rem;
    border-radius: var(--radius);
    font-weight: 600;
    font-size: 1rem;
    border: none;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.btn-primary-new:hover {
    transform: scale(1.05);
    box-shadow: 0 20px 40px rgba(99, 140, 128, 0.3);
}

.btn-primary-new .shimmer {
    position: absolute;
    inset: 0;
    background: linear-gradient(to right, transparent, rgba(255,255,255,0.2), transparent);
    transform: translateX(-100%) skewX(-15deg);
    animation: shimmer-sweep 3s ease-in-out infinite;
}

.btn-outline-new {
    background: transparent;
    color: var(--foreground);
    padding: 1rem 2.5rem;
    border: 2px solid rgba(99, 140, 128, 0.5);
    border-radius: var(--radius);
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    backdrop-filter: blur(4px);
    transition: all 0.3s ease;
}

.btn-outline-new:hover {
    background: rgba(99, 140, 128, 0.1);
    border-color: var(--primary);
    transform: scale(1.05);
}

/* ===== NEW CARD STYLES ===== */
.card-new {
    background: rgba(255, 255, 255, 0.3);
    border: 1px solid rgba(224, 224, 224, 0.5);
    border-radius: var(--radius);
    backdrop-filter: blur(8px);
    transition: all 0.5s ease;
}

html.dark .card-new {
    background: rgba(15, 32, 25, 0.3);
    border-color: rgba(30, 58, 48, 0.5);
}

.card-new:hover {
    border-color: rgba(99, 140, 128, 0.5);
    box-shadow: 0 25px 50px rgba(99, 140, 128, 0.1);
    transform: translateY(-8px);
}

/* ===== NEW NAVIGATION STYLES ===== */
.nav-new {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 50;
    transition: all 0.5s ease;
}

.nav-new.scrolled {
    background-color: rgba(249, 249, 249, 0.8);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
}

html.dark .nav-new.scrolled {
    background-color: rgba(10, 22, 18, 0.8);
}

.nav-link-new {
    color: var(--foreground);
    font-weight: 500;
    font-size: 0.9rem;
    text-decoration: none;
    position: relative;
    transition: color 0.3s ease;
}

.nav-link-new:hover {
    color: var(--primary);
}

.nav-link-new::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(to right, var(--primary), var(--secondary));
    transition: width 0.3s ease;
}

.nav-link-new:hover::after {
    width: 100%;
}

/* ===== HERO SECTION NEW ===== */
.hero-new {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    padding: 5rem 1rem;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    background: rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(224, 224, 224, 0.5);
    border-radius: 9999px;
    padding: 0.75rem 1.5rem;
    margin-bottom: 2.5rem;
}

html.dark .hero-badge {
    background: rgba(15, 32, 25, 0.5);
    border-color: rgba(30, 58, 48, 0.5);
}

.hero-title-new {
    font-size: clamp(2.5rem, 6vw, 4rem);
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 2rem;
}

.hero-subtitle-new {
    font-size: clamp(1.1rem, 2vw, 1.4rem);
    color: var(--muted-foreground);
    max-width: 700px;
    margin: 0 auto 3rem;
    line-height: 1.7;
}

/* ===== SECTION STYLES ===== */
.section-new {
    padding: 8rem 1rem;
    position: relative;
}

.section-tag {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 1rem;
}

.section-title-new {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 700;
    margin-bottom: 1.5rem;
}

/* ===== REDUCED MOTION ===== */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}
