/* CSS Variables for Design System */
:root {
    --primary-50: #fef2f2;
    --primary-100: #fee2e2;
    --primary-200: #fecaca;
    --primary-300: #fca5a5;
    --primary-400: #f87171;
    --primary-500: #ef4444;
    --primary-600: #dc2626;
    --primary-700: #b91c1c;
    --primary-800: #991b1b;
    --primary-900: #7f1d1d;
    
    --accent-50: #fef7ee;
    --accent-100: #fdedd3;
    --accent-200: #fbd7a5;
    --accent-300: #f8b86d;
    --accent-400: #f59432;
    --accent-500: #f97316;
    --accent-600: #ea580c;
    --accent-700: #c2410c;
    --accent-800: #9a3412;
    --accent-900: #7c2d12;
    
    --neutral-50: #fafafa;
    --neutral-100: #f5f5f5;
    --neutral-200: #e5e5e5;
    --neutral-300: #d4d4d4;
    --neutral-400: #a3a3a3;
    --neutral-500: #737373;
    --neutral-600: #525252;
    --neutral-700: #404040;
    --neutral-800: #262626;
    --neutral-900: #171717;
    --neutral-950: #0a0a0a;

    /* Theme Variables */
    --bg-primary: #0a0a0a;
    --bg-secondary: #1a1a1a;
    --bg-tertiary: #0f0f0f;
    --text-primary: var(--neutral-100);
    --text-secondary: var(--neutral-300);
    --glass-bg: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.1);
    --gradient-primary: linear-gradient(135deg, var(--primary-500) 0%, var(--primary-600) 100%);
    --gradient-accent: linear-gradient(135deg, var(--primary-400) 0%, var(--accent-400) 50%, var(--primary-600) 100%);
}


/* default Theme (Default) */
[data-theme="default"] {
    --bg-primary: #0a0a0a;
    --bg-secondary: #1a1a1a;
    --bg-tertiary: #0f0f0f;
    --text-primary: var(--neutral-100);
    --text-secondary: var(--neutral-300);
    --glass-bg: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.1);
    --gradient-primary: linear-gradient(135deg, var(--primary-500) 0%, var(--primary-600) 100%);
    --gradient-accent: linear-gradient(135deg, var(--primary-500) 0%, var(--primary-600) 100%);
}

/* Cosmic Theme */
[data-theme="cosmic"] {
    --bg-primary: #0a0a0a;
    --bg-secondary: #1a1a1a;
    --bg-tertiary: #0f0f0f;
    --text-primary: var(--neutral-100);
    --text-secondary: var(--neutral-300);
    --glass-bg: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.1);
    --gradient-primary: linear-gradient(135deg, var(--primary-500) 0%, var(--primary-600) 100%);
    --gradient-accent: linear-gradient(135deg, var(--primary-400) 0%, var(--accent-400) 50%, var(--primary-600) 100%);
}

[data-theme="cosmic"] .animated-bg { display: block !important; }
[data-theme="default"] .animated-bg { display: none !important; }

/* General Styling */
* { margin: 0; padding: 0; box-sizing: border-box; }
body {
    font-family: 'Plus Jakarta Sans', 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: linear-gradient(135deg, var(--bg-primary) 0%, var(--bg-secondary) 50%, var(--bg-tertiary) 100%);
    color: var(--text-primary);
    overflow-x: hidden;
    line-height: 1.6;
    font-weight: 400;
}

/* --- 3D Canvas --- */
#bg-canvas { position: fixed; top: 0; left: 0; width: 100%; height: 100%; z-index: -3; }

/* --- Cosmic Animated Background --- */
.animated-bg {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%; z-index: -2;
    background: 
        radial-gradient(circle at 15% 85%, rgba(255, 0, 150, 0.15) 0%, transparent 60%),
        radial-gradient(circle at 85% 15%, rgba(0, 255, 255, 0.12) 0%, transparent 60%),
        radial-gradient(circle at 50% 20%, rgba(255, 100, 0, 0.18) 0%, transparent 50%),
        radial-gradient(circle at 20% 50%, rgba(150, 0, 255, 0.1) 0%, transparent 50%);
    animation: cosmic-float 25s ease-in-out infinite;
}
@keyframes cosmic-float {
    0%, 100% { transform: translateY(0px); filter: hue-rotate(0deg); }
    50% { transform: translateY(-25px); filter: hue-rotate(180deg); }
}

/* --- Glass Morphism Cards --- */
.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* --- Pill Buttons --- */
.pill-button {
    background: var(--gradient-primary); border: none; border-radius: 50px;
    padding: 12px 32px; color: white; font-weight: 600;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 20px rgba(239, 68, 68, 0.3);
}
.pill-button:hover { transform: translateY(-2px); box-shadow: 0 8px 30px rgba(239, 68, 68, 0.4); }

/* --- On-Scroll Reveal Animation --- */
.reveal { opacity: 0; transform: translateY(40px); transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1); }
.reveal.active { opacity: 1; transform: translateY(0); }

/* --- Gradient Text --- */
.gradient-text { background: var(--gradient-accent); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }

/* --- Modern Typography --- */
.heading-xl { font-size: clamp(3rem, 8vw, 6rem); font-weight: 800; line-height: 1.1; letter-spacing: -0.02em; }
.heading-lg { font-size: clamp(2rem, 5vw, 3.5rem); font-weight: 700; line-height: 1.2; letter-spacing: -0.01em; }
.text-body { font-size: clamp(1rem, 2vw, 1.125rem); line-height: 1.7; color: var(--text-secondary); }

/* --- Glassmorphic Navbar --- */
.glass-navbar {
    position: fixed; top: 1rem; left: 1rem; right: 1rem; z-index: 1000;
    background: rgba(0, 0, 0, 0.3); backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border); border-radius: 50px; transition: all 0.3s ease;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}
.glass-navbar.scrolled { background: rgba(0, 0, 0, 0.5); }

/* --- Bento Grid Styles --- */
.bento-card {
    display: flex; flex-direction: column; justify-content: space-between;
    padding: 1.5rem; transition: transform 0.3s ease;
}
.bento-card:hover { transform: translateY(-4px); }
.bento-header { display: flex; align-items: center; gap: 0.75rem; color: var(--text-secondary); }
.bento-header span { font-size: 0.875rem; font-weight: 500; }
.bento-content .stat-number {
    font-size: clamp(2rem, 5vw, 3rem); font-weight: 700;
    color: var(--text-primary); line-height: 1.2;
}

/* NEW: Styles for the Icon Capsule */
.icon-capsule {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 99px; /* Fully rounded */
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid var(--glass-border);
    flex-shrink: 0; /* Prevents the capsule from shrinking */
}

/* NEW: Styles for the Aura Capsule */
.aura-capsule {
    margin-top: 0.5rem; /* 8px */
    padding: 0.35rem 0.85rem; /* 6px 14px */
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid var(--glass-border);
    border-radius: 99px;
    font-size: 0.9rem; /* 14.4px */
    display: inline-block; /* To make it fit the content */
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
}

.icon-capsule svg {
    width: 16px;
    height: 16px;
    color: var(--text-secondary);
}


/* --- Top Explorers Carousel --- */
.explorers-carousel-container {
    -webkit-mask: linear-gradient(90deg, transparent, white 5%, white 95%, transparent);
    mask: linear-gradient(90deg, transparent, white 5%, white 95%, transparent);
    scrollbar-width: none;
}
.explorers-carousel-container::-webkit-scrollbar { display: none; }
.explorer-card {
    flex: 0 0 250px;
    scroll-snap-align: start;
}
.carousel-arrow {
    width: 44px; height: 44px; border-radius: 99px;
    background: var(--glass-bg); border: 1px solid var(--glass-border);
    color: var(--text-primary); backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}
.carousel-arrow:hover { background: rgba(255, 255, 255, 0.15); border-color: rgba(255, 255, 255, 0.3); transform: scale(1.1); }
.carousel-arrow:disabled { opacity: 0.3; cursor: not-allowed; }


/* --- Top Explorers Carousel --- */
.explorers-carousel-container {
    -webkit-mask: linear-gradient(90deg, transparent, white 5%, white 95%, transparent);
    mask: linear-gradient(90deg, transparent, white 5%, white 95%, transparent);
    scrollbar-width: none;
}
.explorers-carousel-container::-webkit-scrollbar { display: none; }
.explorer-card {
    flex: 0 0 250px;
    scroll-snap-align: start;
}
.carousel-arrow {
    width: 44px; height: 44px; border-radius: 99px;
    background: var(--glass-bg); border: 1px solid var(--glass-border);
    color: var(--text-primary); backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}
.carousel-arrow:hover { background: rgba(255, 255, 255, 0.15); border-color: rgba(255, 255, 255, 0.3); transform: scale(1.1); }
.carousel-arrow:disabled { opacity: 0.3; cursor: not-allowed; }

/* NEW: Styles for Team Avatars */
.team-avatar {
    width: 80px;
    height: 80px;
    border-radius: 99px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.team-avatar svg {
    width: 40px;
    height: 40px;
}

/* NEW: Styles for the Aura Capsule */
.aura-capsule {
    margin-top: 0.5rem; /* 8px */
    padding: 0.35rem 0.85rem; /* 6px 14px */
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid var(--glass-border);
    border-radius: 99px;
    font-size: 0.9rem; /* 14.4px */
    display: inline-block; /* To make it fit the content */
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
}

/* NEW: Styles for Award Icon Tablets */
.award-icon-tablet {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    margin-bottom: 1rem;
    border-radius: 16px; /* Squarish tablet shape */
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid var(--glass-border);
}
.award-icon-tablet svg {
    width: 32px;
    height: 32px;
    color: var(--primary-400);
}


/* --- Gallery Styles --- */
.gallery-container {
    -webkit-mask: linear-gradient(90deg, transparent, white 5%, white 95%, transparent);
    mask: linear-gradient(90deg, transparent, white 5%, white 95%, transparent);
    scrollbar-width: none;
}
.gallery-container::-webkit-scrollbar { display: none; }
.gallery-card { flex-shrink: 0; width: 280px; height: 380px; border-radius: 16px; overflow: hidden; transition: transform 0.3s ease; }
.gallery-card:hover { transform: scale(1.03); }

/* --- Responsive & Scrollbar --- */
@media (max-width: 768px) {
    .glass-card { backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
}
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--neutral-900); }
::-webkit-scrollbar-thumb { background: var(--primary-500); border-radius: 4px; }


/* --- Responsive & Scrollbar --- */
@media (max-width: 768px) {
    .glass-card { 
        backdrop-filter: blur(10px); 
        -webkit-backdrop-filter: blur(10px); 
    }
    
    /* Mobile-specific styles for the Bento Grid */
    .bento-grid {
        gap: 0.75rem; /* 12px, reduced gap for mobile */
    }
    .bento-card {
        padding: 1rem; /* 16px, reduced padding */
        gap: 1rem;
    }
    .bento-header span {
        font-size: 0.75rem; /* 12px, smaller header text */
    }
    .bento-content .stat-number {
        font-size: clamp(1.75rem, 6vw, 2.25rem); /* Smaller font for stats */
    }
    .bento-content .stat-number.text-2xl {
        font-size: 1.25rem !important; /* Smaller font for text stats */
        line-height: 1.4;
    }
}

::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--neutral-900); }
::-webkit-scrollbar-thumb { background: var(--primary-500); border-radius: 4px; }


/* --- Styles for "What's Next" Feature Cards --- */
.feature-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    margin-top: 2rem;
}
@media (min-width: 768px) {
    .feature-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}
.feature-card {
    background: rgba(255, 255, 255, 0.05);
    padding: 1.5rem;
    border-radius: 16px;
    border: 1px solid var(--glass-border);
    text-align: center;
    transition: all 0.3s ease;
}
.feature-card:hover {
    transform: translateY(-4px);
    background: rgba(255, 255, 255, 0.1);
}
.feature-card-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 99px;
    background: var(--gradient-primary);
    color: white;
    margin-bottom: 1rem;
}
.feature-card-icon svg {
    width: 24px;
    height: 24px;
}

/* --- Styles for Final Tagline --- */
.tagline-container {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 2rem 1.5rem;
    border-radius: 24px;
    display: inline-block; /* Fit content width */
}
.tagline-icon {
    color: var(--primary-300);
    opacity: 0.8;
    margin-bottom: 1rem;
}

/* --- Styles for Final Alpona Tagline --- */
.final-tagline-section {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 4rem 1.5rem;
    min-height: 300px;
}

/* NEW: Generative Moving Alpona Background */
.alpona-generative-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* Increased the opacity within the gradients for better visibility */
    background: radial-gradient(circle at 10% 20%, rgba(255, 255, 255, 0.12) 0%, transparent 15%),
                radial-gradient(circle at 90% 80%, rgba(255, 255, 255, 0.12) 0%, transparent 15%),
                radial-gradient(circle at 30% 70%, rgba(255, 255, 255, 0.08) 0%, transparent 10%),
                radial-gradient(circle at 70% 30%, rgba(255, 255, 255, 0.09) 0%, transparent 12%);
    background-size: 80% 80%, 70% 70%, 60% 60%, 50% 50%;
    background-position: 0% 0%, 100% 100%, 50% 50%, 25% 75%;
    animation: moveAlpona 40s linear infinite alternate;
    z-index: 0;
}

@keyframes moveAlpona {
    0% {
        background-position: 0% 0%, 100% 100%, 50% 50%, 25% 75%;
    }
    100% {
        background-position: 100% 100%, 0% 0%, 25% 25%, 75% 25%;
    }
}

.final-tagline-text {
    position: relative; /* Ensure text is on top */
    z-index: 1;
    text-align: center;
}

.final-tagline-text h2 {
    font-size: clamp(2rem, 6vw, 3.5rem); /* Responsive font size */
    line-height: 1.2;
}

.final-tagline-subtext {
    font-size: clamp(1rem, 2vw, 1.125rem);
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
}