/* Base Styles */
::selection {
    background-color: rgba(74, 59, 160, 0.1);
    color: #fff;
}

/* Loading Screen */
.loading-screen {
    animation: fadeOut 0.3s ease-out 1.5s forwards;
}

@keyframes fadeOut {
    to { opacity: 0; visibility: hidden; }
}

.loading-progress {
    animation: loading 1.5s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}

@keyframes loading {
    0% { transform: translateX(-100%); }
    50% { transform: translateX(100%); }
    100% { transform: translateX(-100%); }
}

/* Navigation */
[data-nav] {
    background: rgba(10, 10, 10, 0.8);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

[data-nav].scrolled {
    background: rgba(10, 10, 10, 0.95);
}

[data-menu-overlay].active {
    opacity: 1;
    pointer-events: auto;
}

/* Text Animations */
.clean-text {
    opacity: 0;
    transform: translateY(10px);
    animation: fadeIn 0.6s cubic-bezier(0.2, 0, 0, 1) forwards;
}

.typing-text {
    opacity: 0;
    transform: translateY(5px);
    animation: fadeIn 0.6s cubic-bezier(0.2, 0, 0, 1) 0.2s forwards;
}

@keyframes fadeIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Card Styles */
.clean-card {
    transition: all 0.2s cubic-bezier(0.2, 0, 0, 1);
}

.clean-card:hover {
    transform: translateY(-1px);
}

/* Feature Cards */
.feature-card {
    transition: all 0.2s cubic-bezier(0.2, 0, 0, 1);
}

.feature-card img {
    transition: transform 0.6s cubic-bezier(0.2, 0, 0, 1);
}

.feature-card:hover {
    background-color: rgba(255, 255, 255, 0.03);
}

/* Audio toggle button in the hero */
.audio-toggle {
    position: absolute;
    top: 1rem;
    right: 1rem;
    z-index: 40;
    width: 44px;
    height: 44px;
    border-radius: 9999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(0,0,0,0.5);
    border: 1px solid rgba(255,255,255,0.06);
    color: #FFFFFF;
    font-size: 18px;
    cursor: pointer;
    transition: transform 0.12s ease, background-color 0.12s ease;
}
.audio-toggle:hover { transform: translateY(-3px) scale(1.03); background: rgba(255,255,255,0.03); }

@media (max-width: 640px) {
    .audio-toggle { width:38px; height:38px; font-size:16px; top:0.75rem; right:0.75rem; }
}

/* Vertical audio controls (slider sits vertically over the video, right centered) */
.audio-controls { position: absolute; right: 1.25rem; top: 50%; transform: translateY(-50%); z-index: 40; display: flex; align-items: center; justify-content: center; }
.audio-volume { width: 160px; appearance: none; background: transparent; cursor: pointer; transform: rotate(90deg); }
.audio-volume::-webkit-slider-runnable-track { height: 6px; background: rgba(255,255,255,0.12); border-radius: 9999px; }
.audio-volume::-webkit-slider-thumb { -webkit-appearance: none; width: 14px; height: 14px; background: #fff; border-radius: 50%; margin-top: -4px; box-shadow: 0 2px 6px rgba(0,0,0,0.4);} 
.audio-volume::-moz-range-track { height: 6px; background: rgba(255,255,255,0.12); border-radius: 9999px; }
.audio-volume::-moz-range-thumb { width: 14px; height: 14px; background: #fff; border-radius: 50%; box-shadow: 0 2px 6px rgba(0,0,0,0.4);} 

@media (max-width: 1024px) {
    .audio-volume { width: 120px; }
}
@media (max-width: 640px) {
    .audio-controls { right: 0.75rem; }
    .audio-volume { width: 100px; }
}


/* Scroll Animations */
[data-scroll] {
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.4s cubic-bezier(0.2, 0, 0, 1);
}

[data-scroll].in-view {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive */
@media (max-width: 768px) {
    .clean-text {
        font-size: 2rem;
    }
}





/* Home Section Headline */
#home h2 { 
    color: #451390 !important;
    text-shadow: 0 0 12px rgba(94, 23, 235, 0.35);
}

/* About Section Headline */
#about h2 { 
    color: #451390 !important;
    text-shadow: 0 0 12px rgba(94, 23, 235, 0.35);
}

/* Features Section Headline */
#features h2 { 
    color: #451390 !important;
    text-shadow: 0 0 12px rgba(94, 23, 235, 0.35);
}

/* Team Section Headline */
#team h2 { 
    color: #451390 !important;
    text-shadow: 0 0 12px rgba(94, 23, 235, 0.35);
}
#team h3 { 
    color: #451390 !important;
    text-shadow: 0 0 12px rgba(94, 23, 235, 0.35);
}

/* Rules Section Headline */
#rules h2 { 
    color: #451390 !important;
    text-shadow: 0 0 12px rgba(94, 23, 235, 0.35);
}

/* Stream Section Headline */
#twitch h2 { 
    color: #451390 !important;
    text-shadow: 0 0 12px rgba(94, 23, 235, 0.35);
}

/* Join Section Headline */
#join h2 { 
    color: #451390 !important;
    text-shadow: 0 0 12px rgba(94, 23, 235, 0.35);
}