/* --- GLOBAL RESET & VARIABLES --- */
:root {
    /* Updated color palette */
    --blue1: #48e3fb;
    --blue2: #00b6ff;
    --blue3: #00a3fe;
    --blue4: #0480ff;
    --blue5: #0057fe;

    --purple1: #643efe;
    --purple2: #5e50ff;
    --purple3: #5765ff;
    --purple4: #5177fe;
    --purple5: #5081ff;
    --purple6: #479afe;
    --purple7: #2929d6;

    /* Glass effect colors */
    --glass-bg: rgba(20, 22, 40, 0.6);
    --glass-border: rgba(255, 255, 255, 0.1);
    --glass-highlight: rgba(255, 255, 255, 0.05);
    --glass-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.3);

    /* Text colors */
    --main-dark: #0f111a;
    --text-main: #ffffff;
    --text-sub: #e1e3eb;
    --text-muted: #9ba1b9;

    --text-highlight: linear-gradient(45deg, var(--blue2), var(--purple1));

    /* Gradients */
    --btn-primary: linear-gradient(135deg, var(--blue2), var(--purple1));
    --btn-secondary: linear-gradient(135deg, var(--purple2), var(--purple7));
    --btn-instagram: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
    --btn-youtube: linear-gradient(45deg, #ff0000, #c31414);

    --hero-gradient: radial-gradient(circle at 50% 50%, rgba(100, 62, 254, 0.15) 0%, rgba(15, 17, 26, 0) 70%);
}

html,
body {
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    overflow-y: auto;
    /* Enable native scrolling */
    background-color: #0f111a;
    font-family: 'Inter', sans-serif;
    color: var(--text-main);
    scroll-behavior: smooth;
}

/* --- CANVAS --- */
canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    pointer-events: none;
    z-index: 0;
}

/* --- HERO SECTION --- */
.hero-section {
    position: relative;
    width: 100%;
    height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: var(--hero-gradient), #0f111a;
    z-index: 10;
    text-align: center;
    padding: 2rem;
    box-sizing: border-box;
}

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

.hero-logo {
    width: 120px;
    height: 120px;
    margin-bottom: 1.5rem;
    filter: drop-shadow(0 0 20px rgba(100, 62, 254, 0.4));
}

.hero-title {
    font-size: clamp(3rem, 8vw, 5rem);
    font-weight: 800;
    margin: 0 0 1rem 0;
    letter-spacing: -0.02em;
    line-height: 1.1;
}

.gradient-text {
    background: linear-gradient(to right, var(--blue1), var(--purple1));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-fill-color: transparent;
}

.hero-tagline {
    font-size: clamp(1.2rem, 3vw, 1.8rem);
    color: var(--text-sub);
    margin-bottom: 2.5rem;
    font-weight: 300;
}

.hero-cta-group {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.hero-btn {
    padding: 1rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    font-size: 1.1rem;
}

.hero-btn.primary {
    background: var(--btn-primary);
    color: #fff;
    box-shadow: 0 4px 15px rgba(100, 62, 254, 0.3);
}

.hero-btn.secondary {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(5px);
}

.hero-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(100, 62, 254, 0.4);
}

.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    color: var(--text-muted);
    font-size: 0.9rem;
    animation: bounce 2s infinite;
    opacity: 0.7;
}

@keyframes bounce {

    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translateY(0);
    }

    40% {
        transform: translateY(-10px);
    }

    60% {
        transform: translateY(-5px);
    }
}

/* --- MAIN CONTENT & CHECKPOINTS --- */
.main-content {
    position: relative;
    z-index: 5;
    background: transparent;
    /* Let canvas show through */
}

.timeline {
    width: 100%;
}

.checkpoint {
    min-height: 100vh;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 4rem 2rem;
    box-sizing: border-box;
    z-index: 2;
}

.content-wrapper {
    width: 100%;
    max-width: 1200px;
    display: flex;
    justify-content: flex-start;
    /* Default left align */
    align-items: center;
}

.content-wrapper.reverse {
    justify-content: flex-end;
    /* Right align for alternate sections */
}

.text-block {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    padding: 3rem;
    border-radius: 24px;
    max-width: 500px;
    box-shadow: var(--glass-shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    opacity: 0;
    /* Animated in via JS */
    transform: translateY(30px);
}

.text-block.visible {
    opacity: 1;
    transform: translateY(0);
}

.text-block:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
    border-color: rgba(255, 255, 255, 0.2);
}

.text-block h2 {
    font-size: 2.5rem;
    margin-top: 0;
    margin-bottom: 1.5rem;
    background: linear-gradient(to right, #fff, #a5b4fc);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-fill-color: transparent;
}

.text-block p {
    font-size: 1.1rem;
    line-height: 1.7;
    color: var(--text-sub);
    margin-bottom: 2rem;
}

.btn-group {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.pill-btn {
    display: inline-block;
    padding: 0.8rem 1.8rem;
    background: var(--btn-primary);
    color: #fff;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.pill-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 5px 15px rgba(100, 62, 254, 0.4);
}

.pill-btn.youtube {
    background: var(--btn-youtube);
}

.pill-btn.instagram {
    background: var(--btn-instagram);
}

/* --- FOOTER --- */
.site-footer {
    background: #0a0c12;
    padding: 4rem 2rem;
    text-align: center;
    position: relative;
    z-index: 10;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-logo {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: #fff;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.footer-links a {
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.2s;
}

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

.copyright {
    color: rgba(255, 255, 255, 0.3);
    font-size: 0.9rem;
}

/* --- ABOUT SECTION (Slide-in) --- */
.about-section {
    position: fixed;
    top: 0;
    right: 0;
    width: 100vw;
    max-width: 600px;
    min-width: 0;
    height: 100vh;
    background: rgba(24, 26, 48, 0.98);
    box-shadow: -8px 0 32px 0 rgba(31, 38, 135, 0.18);
    z-index: 2000;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    padding: 3.5rem 2.5rem 2rem 2.5rem;
    transform: translateX(100%);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.4s cubic-bezier(0.22, 1, 0.36, 1);
    box-sizing: border-box;
    border-top-left-radius: 2rem;
    border-bottom-left-radius: 2rem;
    overflow-y: auto;
}

.about-section.active {
    transform: translateX(0);
    opacity: 1;
    pointer-events: auto;
}

.about-blur-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 1500;
    background: rgba(30, 32, 60, 0.18);
    backdrop-filter: blur(8px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

.about-blur-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.about-back-btn {
    background: none;
    border: none;
    outline: none;
    padding: 0.35rem;
    margin: 0;
    border-radius: 50%;
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    top: 1.5rem;
    left: 1.5rem;
    transition: background 0.18s;
}

.about-back-btn:hover {
    background: rgba(80, 130, 255, 0.13);
}

.about-back-btn .material-icons {
    font-size: 2rem;
    color: #fff;
}

.about-content {
    margin-top: 2.5rem;
    margin-left: 1rem;
    color: #f3f4f6;
    width: 98%;
}

.about-content h2 {
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 1.2rem;
    background: linear-gradient(to right, var(--blue1), var(--purple1));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-fill-color: transparent;
}

.about-content p {
    font-size: 1.15rem;
    color: #e0e7ef;
    margin-bottom: 1.2rem;
    line-height: 1.7;
}

/* --- RESPONSIVE --- */
@media (max-width: 768px) {

    .content-wrapper,
    .content-wrapper.reverse {
        justify-content: center;
    }

    .text-block {
        padding: 2rem;
        text-align: center;
        width: 100%;
        margin: 0 1rem;
    }

    .hero-title {
        font-size: 3rem;
    }

    .about-section {
        max-width: 100vw;
        border-radius: 0;
    }
}