/* =========================================
   CSS Variables & Design Tokens
   ========================================= */
:root {
    --bg-main: #0B0F19; /* Deep dark blue */
    --bg-alt: #111827; /* Slightly lighter dark */
    --bg-card: rgba(30, 41, 59, 0.5); /* Glassmorphism card */
    --bg-card-hover: rgba(30, 41, 59, 0.8);
    
    --text-primary: #F8FAFC;
    --text-secondary: #94A3B8;
    
    --color-accent-blue: #3B82F6;
    --color-accent-blue-glow: rgba(59, 130, 246, 0.5);
    
    --color-accent-red: #EF4444;
    --color-accent-red-glow: rgba(239, 68, 68, 0.5);
    
    --color-gradient-start: #3B82F6;
    --color-gradient-end: #8B5CF6;

    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
    
    --transition-smooth: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* =========================================
   Global Resets & Base Styles
   ========================================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-main);
    color: var(--text-primary);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4, .logo {
    font-family: var(--font-heading);
    font-weight: 700;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition-smooth);
}

/* =========================================
   Typography & Utilities
   ========================================= */
.text-accent {
    color: var(--color-accent-blue);
}

.text-accent-red {
    color: var(--color-accent-red);
}

.text-gradient {
    background: linear-gradient(135deg, var(--color-gradient-start), var(--color-gradient-end));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.glow-effect {
    box-shadow: 0 0 20px var(--color-accent-blue-glow);
}

.glow-effect:hover {
    box-shadow: 0 0 30px var(--color-accent-blue-glow);
    transform: translateY(-2px);
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    font-weight: 500;
    font-family: var(--font-body);
    cursor: pointer;
    border: none;
    transition: var(--transition-smooth);
}

.btn-primary {
    background-color: var(--color-accent-blue);
    color: #fff;
}

.btn-primary:hover {
    background-color: #2563EB;
}

.btn-secondary {
    background-color: transparent;
    border: 1px solid var(--color-accent-blue);
    color: var(--text-primary);
}

.btn-secondary:hover {
    background-color: rgba(59, 130, 246, 0.1);
}

.btn-large {
    padding: 1rem 2rem;
    font-size: 1.1rem;
}

/* =========================================
   Navigation
   ========================================= */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    padding: 1rem 0;
    background: rgba(11, 15, 25, 0.8);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255,255,255,0.05);
    transition: var(--transition-smooth);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 2rem;
}

.nav-links a {
    font-weight: 500;
    color: var(--text-secondary);
}

.nav-links a:hover {
    color: var(--text-primary);
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
}

/* =========================================
   Hero Section
   ========================================= */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 8rem 2rem 4rem;
    overflow: hidden;
}

.hero-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -2;
    background-color: var(--bg-main);
    overflow: hidden;
}

.hero-background canvas {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}



.hero-content {
    max-width: 800px;
}

.badge {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: rgba(59, 130, 246, 0.1);
    color: var(--color-accent-blue);
    border: 1px solid rgba(59, 130, 246, 0.2);
    border-radius: 50px;
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 2rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.hero-title {
    font-size: clamp(2.5rem, 5vw, 5rem);
    line-height: 1.1;
    margin-bottom: 1.5rem;
}

.hero-subtitle {
    font-size: clamp(1rem, 2vw, 1.25rem);
    color: var(--text-secondary);
    margin-bottom: 3rem;
    max-width: 600px;
    margin-inline: auto;
}

.hero-buttons {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* =========================================
   Sections & Cards
   ========================================= */
.section {
    padding: 6rem 2rem;
}

.alt-bg {
    background-color: rgba(17, 24, 39, 0.4);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
}

.section-container {
    max-width: 1200px;
    margin: 0 auto;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.section-description {
    color: var(--text-secondary);
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
}

.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.card {
    background: var(--bg-card);
    border: 1px solid rgba(255,255,255,0.05);
    border-radius: 1rem;
    padding: 2.5rem 2rem;
    transition: var(--transition-smooth);
    position: relative;
}

.card:hover {
    transform: translateY(-5px);
}

.card-icon {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    display: inline-block;
    padding: 1rem;
    border-radius: 0.75rem;
    background: rgba(0,0,0,0.2);
}

.blue-glow { box-shadow: inset 0 0 20px rgba(59, 130, 246, 0.2); }
.red-glow { box-shadow: inset 0 0 20px rgba(239, 68, 68, 0.2); }

.card-title {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.card-text {
    color: var(--text-secondary);
    line-height: 1.7;
}

/* =========================================
   Stats Section
   ========================================= */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    text-align: center;
    padding: 4rem 0;
    border-top: 1px solid rgba(255,255,255,0.05);
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.stat-number {
    font-size: 3.5rem;
    background: linear-gradient(135deg, var(--text-primary), var(--text-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 0.5rem;
}

.stat-label {
    color: var(--text-secondary);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.875rem;
}

/* =========================================
   Call To Action Section
   ========================================= */
.cta-section {
    padding: 8rem 2rem;
    background: linear-gradient(to bottom, transparent, rgba(17, 24, 39, 0.8));
    text-align: center;
}

.cta-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 4rem 2rem;
    background: rgba(30, 41, 59, 0.3);
    border-radius: 2rem;
    border: 1px solid rgba(59, 130, 246, 0.2);
    position: relative;
    overflow: hidden;
}

.cta-container::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: radial-gradient(circle at center, rgba(59, 130, 246, 0.1) 0%, transparent 70%);
    pointer-events: none;
}

.cta-title {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

.cta-text {
    color: var(--text-secondary);
    font-size: 1.2rem;
    margin-bottom: 2.5rem;
}

/* =========================================
   Footer
   ========================================= */
.footer {
    background: rgba(17, 24, 39, 0.8);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 4rem 2rem 2rem;
    border-top: 1px solid rgba(255,255,255,0.05);
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
}

.footer-brand p {
    color: var(--text-secondary);
    margin-top: 0.5rem;
}

.footer-links a {
    color: var(--text-secondary);
    margin: 0 1rem;
}

.footer-links a:hover {
    color: var(--text-primary);
}

.footer-socials {
    color: var(--text-secondary);
    font-size: 0.875rem;
}

/* =========================================
   Spotlight Glow Effect
   ========================================= */
[data-glow] {
    --base: 220;
    --spread: 200;
    --radius: 16;
    --border: 2;
    --backdrop: var(--bg-card);
    --backup-border: rgba(255, 255, 255, 0.05);
    --size: 300;
    --outer: 1;
    --border-size: calc(var(--border, 2) * 1px);
    --spotlight-size: calc(var(--size, 150) * 1px);
    --hue: calc(var(--base) + (var(--xp, 0) * var(--spread, 0)));
    
    background-image: radial-gradient(
        var(--spotlight-size) var(--spotlight-size) at
        calc(var(--x, 0) * 1px) calc(var(--y, 0) * 1px),
        hsl(var(--hue, 210) 100% 70% / 0.1), 
        transparent
    );
    background-color: var(--backdrop, transparent);
    background-size: calc(100% + (2 * var(--border-size))) calc(100% + (2 * var(--border-size)));
    background-position: 50% 50%;
    background-attachment: fixed;
    border: var(--border-size) solid var(--backup-border);
    position: relative;
    border-radius: calc(var(--radius) * 1px);
}

[data-glow]::before,
[data-glow]::after {
    pointer-events: none;
    content: "";
    position: absolute;
    inset: calc(var(--border-size) * -1);
    border: var(--border-size) solid transparent;
    border-radius: calc(var(--radius) * 1px);
    background-attachment: fixed;
    background-size: calc(100% + (2 * var(--border-size))) calc(100% + (2 * var(--border-size)));
    background-repeat: no-repeat;
    background-position: 50% 50%;
    mask: linear-gradient(transparent, transparent), linear-gradient(white, white);
    mask-clip: padding-box, border-box;
    mask-composite: intersect;
    -webkit-mask: linear-gradient(transparent, transparent), linear-gradient(white, white);
    -webkit-mask-clip: padding-box, border-box;
    -webkit-mask-composite: source-in;
}

[data-glow]::before {
    background-image: radial-gradient(
        calc(var(--spotlight-size) * 0.75) calc(var(--spotlight-size) * 0.75) at
        calc(var(--x, 0) * 1px) calc(var(--y, 0) * 1px),
        hsl(var(--hue, 210) 100% 50% / 1), 
        transparent 100%
    );
    filter: brightness(2);
}

[data-glow]::after {
    background-image: radial-gradient(
        calc(var(--spotlight-size) * 0.5) calc(var(--spotlight-size) * 0.5) at
        calc(var(--x, 0) * 1px) calc(var(--y, 0) * 1px),
        rgba(255, 255, 255, 1), 
        transparent 100%
    );
}

[data-glow] > [data-glow] {
    position: absolute;
    inset: 0;
    will-change: filter;
    opacity: var(--outer, 1);
    border-radius: calc(var(--radius) * 1px);
    border-width: calc(var(--border-size) * 20);
    filter: blur(calc(var(--border-size) * 10));
    background: none;
    pointer-events: none;
    border: none;
}

[data-glow] > [data-glow]::before {
    inset: -10px;
    border-width: 10px;
}

/* =========================================
   Animations (Intersection Observer Classes)
   ========================================= */
.fade-in, .slide-in, .fade-in-up {
    opacity: 0;
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-in {
    transform: scale(0.95);
}

.fade-in-up {
    transform: translateY(30px);
}

.slide-in {
    transform: translateY(40px);
}

.visible {
    opacity: 1;
    transform: scale(1) translateY(0);
}

/* =========================================
   Responsive Media Queries
   ========================================= */
@media (max-width: 768px) {
    .nav-links, .nav-cta {
        display: none;
    }
    
    .mobile-menu-btn {
        display: block;
    }
    
    .hero-buttons {
        flex-direction: column;
        width: 100%;
    }
    
    .btn-large {
        width: 100%;
    }
    
    .footer-container {
        flex-direction: column;
        text-align: center;
    }
}
