/* Color Palette & Configuration */
:root {
    --primary: #2ecc71;
    --accent: #a2d149;
    --dark-bg: #080c08;
    --bg-gradient: radial-gradient(circle at top right, #1a2f1c, #0f1710, #080c08);
    --text-main: #ffffff;
    --text-muted: rgba(255, 255, 255, 0.6);
    --card-bg: rgba(255, 255, 255, 0.05);
    --border-color: rgba(255, 255, 255, 0.1);
    --hero-gradient-start: #fff;
    --hero-gradient-end: var(--accent);
}

body.light {
    --dark-bg: #f8f9f8;
    --bg-gradient: linear-gradient(135deg, #f0f4f0, #e0e8e0);
    --text-main: #0a2d0d;
    --text-muted: #2d4a2d;
    --card-bg: rgba(255, 255, 255, 0.8);
    --border-color: rgba(0, 0, 0, 0.1);
    --hero-gradient-start: #0a2d0d;
    --hero-gradient-end: #2e7d32;
    --cta-gradient: linear-gradient(135deg, #27ae60, #1a5c32);
}

body.light .text-gray-400 {
    color: #374151 !important;
}

body.light .nav-blur {
    border-color: rgba(0, 0, 0, 0.08) !important;
}

body.light .card-glass {
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}

body.light footer {
    border-color: rgba(0, 0, 0, 0.08);
}

body.light .hero-cta-btn {
    box-shadow: 0 10px 30px rgba(46, 204, 113, 0.2);
}

body.light .disclaimer-banner {
    background: rgba(0, 0, 0, 0.04);
    border-color: rgba(0, 0, 0, 0.08);
    color: #4b5563;
}

body {
    font-family: 'Outfit', sans-serif;
    color: var(--text-main);
    margin: 0;
    background: var(--bg-gradient);
    transition: 0.5s ease, color 0.5s ease;
    min-height: 100vh;
}

.text-primary {
    color: var(--primary);
}

/* Background Blobs */
.blob {
    position: absolute;
    width: 500px;
    height: 500px;
    filter: blur(100px);
    border-radius: 50%;
    z-index: -1;
}

.blob-1 {
    top: -10%;
    right: -5%;
    background: rgba(162, 209, 73, 0.1);
}

.blob-2 {
    bottom: 10%;
    left: -5%;
    background: rgba(46, 204, 113, 0.1);
}

/* Navigation */
.nav-blur {
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

/* Glassmorphism Cards */
.card-glass {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: background 0.5s ease, border-color 0.5s ease;
}

/* Hero Title Gradient */
.hero-title {
    background: linear-gradient(to right, var(--hero-gradient-start), var(--hero-gradient-end));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-cta-btn {
    background: linear-gradient(135deg, #2ecc71, #27ae60);
    box-shadow: 0 10px 30px rgba(46, 204, 113, 0.3);
    transition: all 0.3s ease;
}

.hero-cta-btn:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 40px rgba(46, 204, 113, 0.5);
}

/* Loading Overlay */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--dark-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.5s ease;
}

.loading-overlay.active {
    opacity: 1;
    pointer-events: all;
}

.loading-content {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
}

.tech-spinner {
    width: 120px;
    height: 120px;
    position: relative;
}

.tech-spinner svg {
    width: 100%;
    height: 100%;
    overflow: visible;
}

.base-circle {
    fill: none;
    stroke: var(--border-color);
    stroke-width: 2;
}

.inner-circle {
    fill: none;
    stroke: var(--primary);
    stroke-width: 1;
    stroke-dasharray: 10, 20;
    transform-origin: center;
    animation: rotate 10s linear infinite reverse;
    opacity: 0.5;
}

.orbiting-dot {
    fill: none;
    stroke: var(--primary);
    stroke-width: 6;
    stroke-linecap: round;
    stroke-dasharray: 0.1, 282.6;
    transform-origin: center;
    animation: orbit 2s cubic-bezier(0.4, 0, 0.2, 1) infinite;
    filter: drop-shadow(0 0 8px var(--primary));
}

@keyframes rotate {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

@keyframes orbit {
    0% {
        stroke-dashoffset: 0;
        transform: rotate(0deg);
        stroke: var(--primary);
    }

    50% {
        stroke: var(--accent);
        stroke-width: 8;
    }

    100% {
        stroke-dashoffset: -282.7;
        transform: rotate(360deg);
        stroke: var(--primary);
    }
}

.loading-text {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-main);
    letter-spacing: 3px;
    text-transform: uppercase;
    margin: 0;
}

.loading-subtext {
    font-size: 1rem;
    color: var(--text-muted);
    letter-spacing: 1px;
}

/* CTA Section Gradient (adapts to theme) */
.cta-container {
    background: var(--cta-gradient, linear-gradient(135deg, #27ae60, #0f1710));
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--dark-bg);
}

::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: 10px;
}

/* Mobile nav */
@media (max-width: 480px) {
    nav {
        flex-wrap: wrap;
        gap: 8px;
    }
    nav .flex.items-center.gap-4 {
        gap: 6px;
    }
}

/* Data Disclaimer */
.disclaimer-banner {
    max-width: 700px;
    margin: 0 auto 0;
    padding: 10px 20px;
    font-size: 0.78rem;
    color: #6b7280;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 8px;
    text-align: center;
    line-height: 1.5;
    letter-spacing: 0.2px;
}

.disclaimer-banner i {
    vertical-align: -2px;
    margin-right: 4px;
}