/* --- 1. CORE VARIABLES & RESET --- */
:root {
    /* Palette: Midnight Blue & Electric Cyan */
    --bg-dark: #020617; /* Darker, deeper blue */
    --bg-card: rgba(15, 23, 42, 0.6);
    
    --primary-blue: #3b82f6;
    --neon-cyan: #06b6d4;
    --accent-purple: #8b5cf6;
    
    --glass-surface: rgba(255, 255, 255, 0.03);
    --glass-border: rgba(255, 255, 255, 0.08);
    --glass-highlight: rgba(255, 255, 255, 0.2);
    
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
    
    /* Animation Physics */
    --ease-out-back: cubic-bezier(0.34, 1.56, 0.64, 1);
    --ease-smooth: cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    font-family: 'Outfit', sans-serif; /* Ensure you have the font loaded in HTML */
    overflow-x: hidden;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

/* Custom Scrollbar */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--bg-dark); }
::-webkit-scrollbar-thumb { 
    background: #1e293b; 
    border-radius: 4px; 
}
::-webkit-scrollbar-thumb:hover { background: var(--primary-blue); }


/* --- 2. BACKGROUND ATMOSPHERE (Grid + Blobs) --- */
.background-blobs {
    position: fixed;
    top: 0; left: 0;
    width: 100vw; height: 100vh;
    z-index: -1;
    overflow: hidden;
    background: var(--bg-dark);
}

/* A subtle grid pattern for texture */
.background-blobs::after {
    content: "";
    position: absolute;
    inset: 0;
    background-image: linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 0px 0px;
    mask-image: radial-gradient(circle at center, black 40%, transparent 100%);
    -webkit-mask-image: radial-gradient(circle at center, black 40%, transparent 100%);
    pointer-events: none;
}

.blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.5;
    mix-blend-mode: screen; /* Makes colors blend like light */
    animation: float 20s infinite ease-in-out;
}

.blob-1 {
    width: 50vw; height: 50vw;
    background: radial-gradient(circle, var(--primary-blue), transparent 70%);
    top: -10%; left: -10%;
    animation-delay: 0s;
}

.blob-2 {
    width: 40vw; height: 40vw;
    background: radial-gradient(circle, var(--accent-purple), transparent 70%);
    bottom: -10%; right: -5%;
    animation-delay: -5s;
}

.blob-3 {
    width: 30vw; height: 30vw;
    background: radial-gradient(circle, var(--neon-cyan), transparent 70%);
    top: 40%; left: 30%;
    opacity: 0.3;
    animation-delay: -10s;
}

@keyframes float {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(30px, -50px) scale(1.1); }
    66% { transform: translate(-20px, 20px) scale(0.9); }
}


/* --- 3. GLASSMORPHISM COMPONENTS --- */
.glass-nav {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 1.2rem 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(2, 6, 23, 0.6); /* Slightly darker for readability */
    backdrop-filter: blur(16px) saturate(180%);
    -webkit-backdrop-filter: blur(16px) saturate(180%);
    border-bottom: 1px solid var(--glass-border);
    z-index: 1000;
    transition: all 0.4s var(--ease-smooth);
}

.glass-nav:hover {
    border-bottom-color: var(--glass-highlight);
}

.glass-card {
    background: var(--bg-card);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(12px);
    border-radius: 24px;
    padding: 2.5rem;
    position: relative;
    overflow: hidden;
    transition: all 0.4s var(--ease-out-back);
}

/* The shiny glow effect on card hover */
.glass-card::before {
    content: '';
    position: absolute;
    top: 0; left: -100%;
    width: 100%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.05), transparent);
    transition: 0.5s;
}

.glass-card:hover {
    transform: translateY(-8px) scale(1.02);
    border-color: rgba(6, 182, 212, 0.3); /* Neon Cyan border */
    box-shadow: 0 20px 40px -10px rgba(6, 182, 212, 0.15); /* Blue glow */
}

.glass-card:hover::before {
    left: 100%;
}


/* --- 4. TYPOGRAPHY & GLOW --- */
.logo-text {
    font-size: 1.5rem;
    font-weight: 700;
    color: #fff;
    letter-spacing: -0.5px;
}

.highlight { color: var(--neon-cyan); text-shadow: 0 0 15px var(--neon-cyan); }

h1 {
    font-size: clamp(3rem, 8vw, 5rem); /* Responsive font size */
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, #fff 30%, var(--neon-cyan) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 0 20px rgba(6, 182, 212, 0.2));
}

h2 {
    font-size: 2.5rem;
    color: white;
    margin-bottom: 2rem;
}

h3 {
    font-size: 1.5rem;
    color: var(--text-main);
    margin-bottom: 0.5rem;
}

p {
    font-size: 1.125rem;
    color: var(--text-muted);
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 2.5rem;
}

.nav-item {
    text-decoration: none;
    color: var(--text-muted);
    font-weight: 500;
    font-size: 0.95rem;
    transition: color 0.3s ease;
    position: relative;
}

.nav-item:hover { color: #fff; text-shadow: 0 0 10px rgba(255,255,255,0.5); }

/* Underline animation for nav items */
.nav-item::after {
    content: '';
    position: absolute;
    width: 0; height: 2px;
    bottom: -5px; left: 0;
    background-color: var(--neon-cyan);
    transition: width 0.3s ease;
}
.nav-item:hover::after { width: 100%; }


/* --- 5. BUTTONS & ACTIONS --- */
.cta-btn, .nav-btn {
    display: inline-block;
    padding: 1rem 2.5rem;
    background: var(--text-main);
    color: var(--bg-dark);
    font-weight: 700;
    border-radius: 50px;
    text-decoration: none;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 0 0 rgba(255,255,255,0);
}

.nav-btn {
    padding: 0.6rem 1.5rem;
    font-size: 0.9rem;
}

.cta-btn:hover, .nav-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 0 30px rgba(255, 255, 255, 0.4);
}

/* Secondary Button Style (Transparent) */
.secondary-btn {
    padding: 1rem 2.5rem;
    border: 1px solid var(--glass-border);
    color: #fff;
    border-radius: 50px;
    text-decoration: none;
    margin-left: 1rem;
    transition: 0.3s;
}
.secondary-btn:hover {
    background: rgba(255,255,255,0.1);
    border-color: #fff;
}


/* --- 6. LAYOUT & SECTIONS --- */
section {
    padding: 8rem 10%;
    position: relative;
    z-index: 1;
}

.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding-top: 100px;
}

.hero p {
    max-width: 600px;
    margin: 0 auto 2.5rem auto;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    perspective: 1000px; /* Setup for 3D effects */
}

/* --- 7. ANIMATIONS (Scroll Reveal) --- */
.hidden {
    opacity: 0;
    filter: blur(5px);
    transform: translateY(40px) scale(0.95);
    transition: all 1s var(--ease-out-back);
}

.show {
    opacity: 1;
    filter: blur(0);
    transform: translateY(0) scale(1);
}

/* --- 8. FOOTER --- */
.glass-footer {
    background: rgba(2, 6, 23, 0.8);
    backdrop-filter: blur(20px);
    border-top: 1px solid var(--glass-border);
    padding: 5rem 10% 2rem;
    margin-top: auto;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 3rem;
    padding-bottom: 3rem;
    border-bottom: 1px solid var(--glass-border);
}

.footer-brand h2 { font-size: 1.8rem; margin-bottom: 0.5rem; }
.footer-links h4, .footer-socials h4 { color: #fff; margin-bottom: 1.5rem; font-size: 1.1rem; }

.footer-links a, .footer-socials a {
    display: block;
    color: var(--text-muted);
    text-decoration: none;
    margin-bottom: 0.8rem;
    transition: 0.3s;
}
.footer-links a:hover { color: var(--neon-cyan); transform: translateX(5px); }

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    color: var(--glass-highlight);
    font-size: 0.9rem;
}


/* --- 9. MOBILE RESPONSIVENESS --- */
.burger {
    display: none;
    cursor: pointer;
    z-index: 2000;
}

.burger div {
    width: 25px;
    height: 2px;
    background-color: #fff;
    margin: 6px;
    transition: all 0.3s ease;
}

@media screen and (max-width: 768px) {
    .nav-links {
        position: fixed;
        right: 0;
        top: 0;
        height: 100vh;
        width: 100%;
        background: rgba(2, 6, 23, 0.95);
        backdrop-filter: blur(20px);
        flex-direction: column;
        align-items: center;
        justify-content: center;
        transform: translateX(100%);
        transition: transform 0.4s var(--ease-out-back);
        z-index: 999;
    }

    .nav-links.nav-active {
        transform: translateX(0%);
    }

    .nav-item { font-size: 1.5rem; }
    
    .burger { display: block; }
    
    /* Burger X Animation */
    .toggle .line1 { transform: rotate(-45deg) translate(-5px, 6px); background: var(--neon-cyan); }
    .toggle .line2 { opacity: 0; }
    .toggle .line3 { transform: rotate(45deg) translate(-5px, -6px); background: var(--neon-cyan); }
}