/* === GLOBAL === */
body {
    margin: 0;
    background-color: #040006;
    color: #e0e0e0;
    font-family: 'Poppins', 'Arial', sans-serif;
    overflow-x: hidden;
}
html { scroll-behavior: smooth; }

/* === PARTICLE LAYER FIX === */
#particleCanvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1000 !important; /* ensure particles sit above all backgrounds */
    pointer-events: none;
}

/* make sure your content sits above the particles */
.hero-content,
.content-section,
.cta-section,
.footer {
    position: relative;
    z-index: 1001 !important;
}

/* optional: background sections lower in the stack */
.hero,
.merch-bg,
.cta-section {
    position: relative;
    z-index: 500;
}


/* === HERO SECTION === */
.hero {
    position: relative;
    height: 100vh;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    text-align: center;
    background: radial-gradient(circle at 50% 30%, #0a0012 0%, #000000 100%);
}

#particleCanvas {
    position: absolute;
    width: 100%;
    height: 100%;
    inset: 0;
    background: radial-gradient(circle at 50% 40%, rgba(179,135,255,0.15), transparent 70%);
    z-index: 0;
}

/* Floating glowing orbs */
.floating-lights::before,
.floating-lights::after {
    content: '';
    position: absolute;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(179,135,255,0.3) 0%, transparent 70%);
    filter: blur(100px);
    animation: floatlight 12s ease-in-out infinite alternate;
}
.floating-lights::before {
    top: 10%;
    left: 20%;
    animation-delay: 0s;
}
.floating-lights::after {
    bottom: 10%;
    right: 25%;
    animation-delay: 5s;
}

@keyframes floatlight {
    0% { transform: translateY(0) scale(1); opacity: 0.8; }
    100% { transform: translateY(-60px) scale(1.2); opacity: 0.4; }
}

/* HERO CONTENT */
.hero-content {
    position: relative;
    z-index: 2;
    animation: fadeUp 1.3s ease-out forwards;
    transition: transform 0.3s ease-out;
}

.glow-text {
    font-size: 72px;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: #fff;
    text-shadow: 0 0 25px #b387ff, 0 0 50px rgba(179,135,255,0.8);
    animation: pulseGlow 4s infinite;
}
.glow-text span { color: #b387ff; }

.subtext {
    font-size: 22px;
    color: #bbb;
    margin: 20px 0 40px;
}

.hero-btn {
    background: #b387ff;
    border: none;
    padding: 16px 40px;
    border-radius: 50px;
    color: white;
    font-size: 18px;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.4s ease;
    box-shadow: 0 0 30px rgba(179,135,255,0.4);
}
.hero-btn:hover {
    transform: scale(1.1);
    background: #c6a8ff;
    box-shadow: 0 0 50px rgba(179,135,255,0.7);
}

/* === CONTENT SECTIONS === */
.content-section {
    padding: 140px 20px;
    text-align: center;
    position: relative;
}

.section-title {
    font-size: 42px;
    color: #b387ff;
    margin-bottom: 30px;
    text-shadow: 0 0 15px rgba(179,135,255,0.4);
}
.section-desc {
    color: #ccc;
    font-size: 18px;
    max-width: 700px;
    margin: 0 auto 40px;
}
.video-container iframe {
    width: 90%;
    max-width: 600px;
    height: 320px;
    border: none;
    border-radius: 12px;
    box-shadow: 0 0 30px rgba(179,135,255,0.3);
}

.video-container {
    position: relative;
    z-index: 10000; /* ensures the embed stays above the particles */
}

.video-container iframe {
    width: 90%;
    max-width: 600px;
    height: 320px;
    border: none;
    border-radius: 12px;
    box-shadow: 0 0 30px rgba(179,135,255,0.3);
    position: relative;
    z-index: 10001; /* iframe always visible above all animated layers */
}


/* === MERCH SECTION === */
.merch-bg {
    background: url('../img/merch-bg.jpg') center/cover no-repeat;
    position: relative;
    color: white;
}
.merch-bg .overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.7);
}

/* === CTA SECTION === */
.cta-section {
    background: linear-gradient(145deg, #0a0012 0%, #000000 100%);
    text-align: center;
    padding: 140px 20px;
}
.cta-section h2 {
    color: #b387ff;
    font-size: 38px;
    margin-bottom: 15px;
    text-shadow: 0 0 25px rgba(179,135,255,0.7);
}
.cta-section p {
    font-size: 18px;
    color: #bbb;
    margin-bottom: 40px;
}
.cta-buttons {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 20px;
}

/* Buttons */
.btn, .btn-outline {
    padding: 14px 32px;
    border-radius: 50px;
    font-size: 18px;
    text-decoration: none;
    text-align: center;
    transition: all 0.3s ease;
}
.btn {
    background: #b387ff;
    color: white;
    box-shadow: 0 0 20px rgba(179,135,255,0.4);
}
.btn:hover {
    transform: scale(1.08);
    box-shadow: 0 0 40px rgba(179,135,255,0.7);
}
.btn-outline {
    border: 2px solid #b387ff;
    color: #b387ff;
}
.btn-outline:hover {
    background: #b387ff;
    color: white;
}

/* === FOOTER === */
.footer {
    position: relative;
    background: #000;
    padding: 80px 20px 30px;
    text-align: center;
    color: #aaa;
    overflow: hidden;
    z-index: 3;
}

.footer-glow {
    position: absolute;
    top: 0;
    left: 50%;
    width: 120%;
    height: 2px;
    background: linear-gradient(90deg, transparent, #b387ff, transparent);
    animation: lineflow 4s linear infinite;
    transform: translateX(-50%);
    opacity: 0.7;
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 25px;
    position: relative;
    z-index: 2;
}

.footer-logo h2 {
    font-size: 28px;
    color: #b387ff;
    letter-spacing: 2px;
    text-shadow: 0 0 15px rgba(179,135,255,0.6);
    margin-bottom: 5px;
}
.footer-logo p {
    font-size: 14px;
    color: #bbb;
    letter-spacing: 1px;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 25px;
    margin: 20px 0;
}
.footer-links a {
    color: #b387ff;
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
}
.footer-links a::after {
    content: "";
    position: absolute;
    bottom: -3px;
    left: 0;
    width: 0;
    height: 2px;
    background: #b387ff;
    transition: width 0.3s ease;
}
.footer-links a:hover {
    color: #c6a8ff;
}
.footer-links a:hover::after {
    width: 100%;
}

.footer-socials {
    display: flex;
    justify-content: center;
    gap: 20px;
}
.footer-socials a {
    font-size: 22px;
    text-decoration: none;
    transition: transform 0.3s ease, color 0.3s ease;
    color: #b387ff;
    filter: drop-shadow(0 0 6px rgba(179,135,255,0.5));
}
.footer-socials a:hover {
    transform: scale(1.2);
    color: #c6a8ff;
}

.footer-bottom {
    margin-top: 40px;
    font-size: 14px;
    color: #777;
}

/* === FOOTER ANIMATIONS === */
@keyframes lineflow {
    0% { transform: translateX(-50%) translateY(0); opacity: 0.6; }
    50% { opacity: 1; }
    100% { transform: translateX(-50%) translateY(0); opacity: 0.6; }
}

/* === RESPONSIVE === */
@media (max-width: 768px) {
    .footer-content {
        gap: 15px;
    }
    .footer-logo h2 {
        font-size: 24px;
    }
    .footer-links {
        gap: 15px;
    }
}

/* === ANIMATIONS === */
@keyframes pulseGlow {
    0%, 100% { text-shadow: 0 0 25px #b387ff, 0 0 40px rgba(179,135,255,0.6); }
    50% { text-shadow: 0 0 45px #c6a8ff, 0 0 80px rgba(179,135,255,0.9); }
}
@keyframes fadeUp {
    from { opacity: 0; transform: translateY(40px); }
    to { opacity: 1; transform: translateY(0); }
}
.fade-in { opacity: 0; transform: translateY(40px); transition: all 1s ease-out; }
.fade-in.visible { opacity: 1; transform: translateY(0); }

/* === RESPONSIVE === */
@media (max-width: 768px) {
    .glow-text { font-size: 48px; }
    .subtext { font-size: 16px; }
    .video-container iframe { height: 250px; }
}


/* === GLOBAL LAYERING FIX FOR PARTICLES === */

/* Particles always on top of all backgrounds */
#particleCanvas {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 9998 !important;
    pointer-events: none;
}

/* Ensure all section backgrounds and overlays are below particles */
.hero,
.merch-bg,
.merch-bg::before,
.merch-bg .overlay,
.cta-section,
.cta-section::before,
.cta-section::after,
.content-section {
    position: relative;
    z-index: 1 !important;
}

/* Ensure text, buttons, and UI sit above particles */
.hero-content,
.section-title,
.section-desc,
.btn,
.btn-outline,
.cta-buttons,
.footer,
.footer * {
    position: relative;
    z-index: 9999 !important;
}

/* Optional: keep floating lights and glows in mid layer so they blend nicely */
.floating-lights::before,
.floating-lights::after {
    z-index: 500 !important;
}
