/* ================= Preloader Animations ================= */
#intro-preloader {
    transition: opacity 0.8s ease-in-out, visibility 0.8s ease-in-out;
}

.fill-logo, .slide-left, .slide-right, .loading-line {
    will-change: transform, opacity, clip-path, width;
}

.fill-logo {
    clip-path: inset(100% 0 0 0);
    animation: fillUp 1.5s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}
@keyframes fillUp {
    to { clip-path: inset(0 0 0 0); }
}

.slide-left {
    opacity: 0;
    transform: translateX(-150px);
    animation: slideInLeft 1s cubic-bezier(0.4, 0, 0.2, 1) 1.5s forwards;
}
@keyframes slideInLeft {
    to { opacity: 1; transform: translateX(0); }
}

.slide-right {
    opacity: 0;
    transform: translateX(150px);
    animation: slideInRight 1s cubic-bezier(0.4, 0, 0.2, 1) 1.5s forwards;
}
@keyframes slideInRight {
    to { opacity: 1; transform: translateX(0); }
}

.loading-line {
    width: 0%;
    animation: fillLine 2s cubic-bezier(0.4, 0, 0.2, 1) 2.5s forwards;
}
@keyframes fillLine {
    to { width: 100%; }
}

/* ================= System Status Overlay (Offline/Error) ================= */
#system-status-overlay {
    transition: opacity 0.5s ease-in-out, visibility 0.5s ease-in-out;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

.glow-text-heavy {
    text-shadow: 
        0 0 20px rgba(255, 255, 255, 0.6),
        0 0 60px rgba(255, 255, 255, 0.4),
        0 0 100px rgba(255, 255, 255, 0.3),
        0 0 150px rgba(255, 255, 255, 0.2);
}

/* ================= Hero Text Animations ================= */
@keyframes fadeUpStagger {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
.animate-fade-up {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeUpStagger 1s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
    will-change: transform, opacity;
}

.stagger-1 { animation-delay: 4.6s; }
.stagger-2 { animation-delay: 4.8s; }
.stagger-3 { animation-delay: 5.0s; }
.stagger-4 { animation-delay: 5.2s; }

/* ================= Luxury Glassmorphism & Animations ================= */
.premium-card {
    background: linear-gradient(145deg, rgba(30, 30, 30, 0.4) 0%, rgba(10, 10, 10, 0.8) 100%);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1), 0 10px 30px rgba(0, 0, 0, 0.5);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.premium-card:hover {
    border-color: rgba(59, 130, 246, 0.4);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2), 0 20px 40px rgba(59, 130, 246, 0.15);
    transform: translateY(-8px);
}

/* Interactive Checkbox Cards for Discord Section */
.discord-checkbox:checked + div {
    border-color: rgba(168, 85, 247, 0.8);
    background-color: rgba(168, 85, 247, 0.15);
    box-shadow: inset 0 0 15px rgba(168, 85, 247, 0.1);
}

/* Custom Select Dropdown Styling */
select {
    appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 1em;
}
select option {
    background-color: #111;
    color: white;
}

/* Waving Hand Animation */
@keyframes wave {
    0% { transform: rotate(0.0deg) }
    10% { transform: rotate(14.0deg) }
    20% { transform: rotate(-8.0deg) }
    30% { transform: rotate(14.0deg) }
    40% { transform: rotate(-4.0deg) }
    50% { transform: rotate(10.0deg) }
    60% { transform: rotate(0.0deg) }
    100% { transform: rotate(0.0deg) }
}
.animate-wave {
    animation: wave 2.5s infinite;
    transform-origin: 70% 70%;
    display: inline-block;
}

/* Skeleton Loading Animation */
.skeleton-box {
    position: relative;
    overflow: hidden;
    background-color: rgba(255, 255, 255, 0.03);
}
.skeleton-box::after {
    content: "";
    position: absolute;
    top: 0; left: -100%;
    width: 50%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.08), transparent);
    animation: loading-shimmer 2s infinite;
}
@keyframes loading-shimmer {
    100% { left: 200%; }
}

/* Breathing Background Glow */
@keyframes breathe {
    0%, 100% { transform: scale(1); opacity: 0.4; }
    50% { transform: scale(1.1); opacity: 0.7; }
}
.breathing-glow { animation: breathe 8s ease-in-out infinite; }

/* Scroll Indicator Bounce */
@keyframes bounce-slow {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(10px); }
}
.animate-bounce-slow { animation: bounce-slow 3s infinite; }

/* Infinite Marquee Animation */
@keyframes infinite-scroll { from { transform: translateX(0); } to { transform: translateX(calc(-50% - 0.5rem)); } }
.animate-infinite-scroll { animation: infinite-scroll 35s linear infinite; width: max-content; }
.animate-infinite-scroll:hover { animation-play-state: paused; }

/* Scroll Reveal Animations */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.8s cubic-bezier(0.5, 0, 0, 1);
    will-change: transform, opacity;
}
.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Split Text Fixes */
.hero-split-text {
    clip-path: polygon(0 0, 100% 0, 100% 100%, 0% 100%);
}

/* Ferrofluid Surface Container */
#ferrofluid-surface {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    width: 100vw; height: 100vh;
    z-index: 0;
    pointer-events: none;
    opacity: 1;
}

/* ================= Fix Scrollbars ================= */
::-webkit-scrollbar {
    width: 0px;
    background: transparent;
    display: none;
}

html, body {
    -ms-overflow-style: none;
    scrollbar-width: none;
    overflow-x: hidden !important;
    max-width: 100%;
}
