/* ===== RESET & BASE ===== */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --bg-dark: #070a0d;
    --green: #22c55e;
    --green-glow: rgba(34, 197, 94, 0.4);
    --gold: #facc15;
    --gold-glow: rgba(250, 204, 21, 0.4);
    --cyan: #06b6d4;

    --gradient-primary: linear-gradient(135deg, #4ade80, #22c55e, #16a34a);
    --gradient-gold: linear-gradient(135deg, #fef08a, #facc15, #ca8a04);
    --gradient-cyan: linear-gradient(135deg, #67e8f9, #06b6d4, #0891b2);

    --glass-bg: rgba(7, 10, 13, 0.6);
    --glass-border: rgba(255, 255, 255, 0.1);

    --telegram: #2AABEE;
    --insta-bg: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
}

html {
    scroll-behavior: smooth;
    /* Custom scrollbar to force visibility of sections */
    background: var(--bg-dark);
}

body {
    font-family: 'Inter', sans-serif;
    color: #fff;
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3 {
    font-family: 'Outfit', sans-serif;
    font-weight: 800;
}

a {
    text-decoration: none;
    color: inherit;
}

/* ===== PRELOADER ===== */
#preloader {
    position: fixed;
    inset: 0;
    background: #070a0d;
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.6s ease, visibility 0.6s ease;
}
#preloader.loaded {
    opacity: 0;
    visibility: hidden;
}
.preloader-inner { text-align: center; }
.cricket-ball {
    font-size: 80px;
    animation: ballBounce 1.2s ease-in-out infinite;
    filter: drop-shadow(0 0 25px var(--green-glow));
    margin-bottom: 20px;
}
@keyframes ballBounce {
    0%, 100% { transform: translateY(0) rotate(0deg) scale(1); }
    50% { transform: translateY(-30px) rotate(15deg) scale(1.1); }
}
.loader-text {
    font-family: 'Outfit', sans-serif;
    font-size: 32px;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 20px;
}
.loader-bar {
    width: 250px;
    height: 4px;
    background: rgba(255,255,255,0.1);
    border-radius: 4px;
    margin: 0 auto 16px;
    overflow: hidden;
}
.loader-bar-fill {
    width: 0%;
    height: 100%;
    background: var(--gradient-primary);
    animation: loadFill 2s ease-out forwards;
}
@keyframes loadFill {
    to { width: 100%; }
}
.loader-sub { color: #a1a1aa; font-size: 14px; animation: pulse 1.5s infinite; }

/* ===== DYNAMIC BACKGROUNDS ===== */
.bg-container {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
}
.bg-layer {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0;
    transition: opacity 1s cubic-bezier(0.4, 0, 0.2, 1), transform 5s linear;
    transform: scale(1.05); /* Slight zoom for parallax feel */
}
.bg-layer.active {
    opacity: 1;
    transform: scale(1);
}
.bg-overlay {
    position: absolute;
    inset: 0;
    transition: opacity 0.8s ease;
    background: linear-gradient(
        180deg,
        rgba(7, 10, 13, 0.75) 0%,
        rgba(7, 10, 13, 0.85) 50%,
        rgba(7, 10, 13, 0.98) 100%
    );
}

/* PARTICLES */
.hero-particles {
    position: absolute;
    inset: 0;
}
.particle {
    position: absolute;
    border-radius: 50%;
    animation: particleFloat 12s ease-in-out infinite;
}
@keyframes particleFloat {
    0% { transform: translateY(100vh) scale(0); opacity: 0; }
    20% { opacity: 0.8; }
    80% { opacity: 0.8; }
    100% { transform: translateY(-10vh) scale(1); opacity: 0; }
}

/* ===== SCROLLING SECTIONS ===== */
.scroller-wrapper {
    position: relative;
    z-index: 2;
}

.scroll-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    padding: 80px 24px;
}

.content-box {
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
    padding: 40px;
}

.right-aligned {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    text-align: right;
}

.left-aligned {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
}

.center-aligned {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

/* Typography elements */
.brand-icon {
    font-size: 64px;
    filter: drop-shadow(0 0 20px var(--green-glow));
    margin-bottom: 16px;
}
.brand-name {
    font-size: clamp(36px, 6vw, 72px);
    letter-spacing: -2px;
    line-height: 1.1;
    text-shadow: 0 4px 20px rgba(0,0,0,0.5);
    margin-bottom: 16px;
}
.accent {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
.gold-text { background: var(--gradient-gold); -webkit-background-clip: text; }
.cyan-text { background: var(--gradient-cyan); -webkit-background-clip: text; }

.tagline {
    font-size: clamp(18px, 3vw, 24px);
    font-weight: 600;
    color: #e2e8f0;
    margin-bottom: 32px;
}

.section-title {
    font-size: clamp(32px, 5vw, 56px);
    margin-bottom: 24px;
    text-shadow: 0 4px 15px rgba(0,0,0,0.6);
}

.badge {
    display: inline-block;
    padding: 6px 16px;
    background: rgba(250, 204, 21, 0.1);
    border: 1px solid rgba(250, 204, 21, 0.3);
    border-radius: 50px;
    color: var(--gold);
    font-weight: 700;
    font-size: 14px;
    margin-bottom: 16px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Intro Box & Glass Cards */
.intro-box, .glass-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    padding: 32px;
    border-radius: 20px;
    backdrop-filter: blur(12px);
    max-width: 600px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.4);
}

.intro-box h3 {
    font-size: 24px;
    margin-bottom: 20px;
    color: var(--gold);
}

.intro-pointers {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.intro-pointers li {
    font-size: 16px;
    display: flex;
    align-items: center;
    gap: 12px;
}
.intro-pointers li span { font-size: 20px; }
.intro-pointers li strong { color: #fff; }

.small-pointers { margin-top: 20px; }
.small-pointers li { font-weight: 600; font-size: 18px; }

/* Stats */
.stats-row {
    display: flex;
    gap: 32px;
    margin-top: 24px;
    padding-top: 24px;
    border-top: 1px solid var(--glass-border);
}
.right-aligned .stats-row { justify-content: flex-end; }
.stat { display: flex; flex-direction: column; }
.stat-num { font-size: 36px; font-family: 'Outfit'; font-weight: 900; color: var(--gold); }
.stat-label { font-size: 12px; text-transform: uppercase; letter-spacing: 1px; color: #a1a1aa; }

/* Scroll Indicator */
.scroll-down-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 14px;
    font-weight: 600;
    color: #a1a1aa;
    text-transform: uppercase;
    letter-spacing: 2px;
}
@keyframes pulse {
    0%, 100% { opacity: 0.5; transform: translateY(0); }
    50% { opacity: 1; transform: translateY(5px); }
}
.pulse { animation: pulse 2s infinite; }
.brand-icon.pulse { animation: pulse 2s infinite; transform: translateX(0); }

/* ===== CTA ALERTS & BUTTONS ===== */
.floating-cta {
    position: fixed;
    top: 30px;
    right: 30px;
    z-index: 100;
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.social-btn {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 20px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 14px;
    color: #fff;
    cursor: pointer;
    transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 15px rgba(0,0,0,0.4);
    backdrop-filter: blur(8px);
}
.social-btn svg { width: 20px; height: 20px; }

.telegram-btn { background: rgba(42, 171, 238, 0.2); border: 1px solid var(--telegram); }
.telegram-btn:hover { background: var(--telegram); transform: scale(1.05); box-shadow: 0 0 20px var(--telegram); }

.insta-btn { background: rgba(220, 39, 67, 0.2); border: 1px solid #dc2743; }
.insta-btn:hover { background: var(--insta-bg); border-color: transparent; transform: scale(1.05); box-shadow: 0 0 20px #dc2743; }

/* Big CTA section */
.big-cta-links {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    justify-content: center;
    margin-top: 20px;
}
.big-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 18px 36px;
    border-radius: 50px;
    font-family: 'Outfit';
    font-size: 18px;
    font-weight: 800;
    transition: 0.3s;
}
.telegram-bg { background: var(--telegram); color: #fff; box-shadow: 0 10px 30px rgba(42,171,238,0.4); }
.telegram-bg:hover { transform: translateY(-4px); box-shadow: 0 15px 40px rgba(42,171,238,0.6); }

.insta-bg { background: var(--insta-bg); color: #fff; box-shadow: 0 10px 30px rgba(220,39,67,0.4); }
.insta-bg:hover { transform: translateY(-4px); box-shadow: 0 15px 40px rgba(220,39,67,0.6); }

/* ===== FOOTER ===== */
.footer {
    position: absolute;
    bottom: 0;
    width: 100%;
    text-align: center;
    padding: 24px;
    color: #71717a;
    font-size: 13px;
    border-top: 1px solid var(--glass-border);
    margin-top: 100px;
}

/* ===== ANIMATIONS FOR SCROLL ===== */
/* Initial states */
.slide-up {
    opacity: 0;
    transform: translateY(60px);
    transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}
.glow-in {
    opacity: 0;
    transform: scale(0.9);
    filter: blur(10px);
    transition: all 1s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Active states bound by JS */
.in-view .slide-up {
    opacity: 1;
    transform: translateY(0);
}
.in-view .glow-in {
    opacity: 1;
    transform: scale(1);
    filter: blur(0);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
    .floating-cta {
        top: auto;
        bottom: 20px;
        right: 0;
        left: 0;
        flex-direction: row;
        justify-content: center;
        padding: 0 16px;
        background: rgba(7,10,13,0.8);
        padding-top: 16px;
        border-top: 1px solid var(--glass-border);
    }
    .social-btn {
        flex: 1;
        justify-content: center;
        padding: 14px 10px;
    }
    .social-btn span { display: none; }
    
    .content-box {
        padding: 20px;
        text-align: center;
        align-items: center;
    }
    .intro-pointers li { text-align: left; }
    .stats-row { justify-content: center !important; }
    
    .brand-name { font-size: 42px; }
    .section-title { font-size: 32px; }
    .big-btn { width: 100%; justify-content: center; }
}
