/* Intro Animation Styles */
.skip-intro .intro-container {
    display: none !important;
}

.skip-intro .main-content {
    opacity: 1 !important;
    animation: none !important;
}

.main-content {
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

.intro-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: linear-gradient(135deg, #0a0a0f 0%, #1a0b2e 50%, #0f0820 100%);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    animation: fadeOut 1s ease-in-out 4s forwards;
}

.background-animation {
    position: absolute;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.gradient-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(60px);
    opacity: 0.4;
    animation: float 8s ease-in-out infinite;
    will-change: transform;
}

.orb-1 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, #6b2dd8 0%, transparent 70%);
    top: -100px;
    left: -100px;
    animation-delay: 0s;
}

.orb-2 {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, #1e3a8a 0%, transparent 70%);
    bottom: -150px;
    right: -150px;
    animation-delay: 2s;
}

.orb-3 {
    width: 350px;
    height: 350px;
    background: radial-gradient(circle, #4c1d95 0%, transparent 70%);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation-delay: 4s;
}

@keyframes float {
    0%, 100% {
        transform: translate(0, 0) scale(1);
    }
    33% {
        transform: translate(30px, -30px) scale(1.1);
    }
    66% {
        transform: translate(-20px, 20px) scale(0.9);
    }
}

.logo-container {
    position: relative;
    z-index: 2;
    text-align: center;
    animation: scaleIn 1s ease-out;
    transform: translateZ(0);
    backface-visibility: hidden;
}

@keyframes scaleIn {
    0% {
        transform: scale(0.5);
        opacity: 0;
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

.play-icon {
    width: 120px;
    height: 120px;
    margin: 0 auto 30px;
    animation: pulse 2s ease-in-out infinite;
}

.play-triangle {
    fill: none;
    stroke: #a78bfa;
    stroke-width: 3;
    stroke-linecap: round;
    stroke-linejoin: round;
    animation: drawTriangle 1.5s ease-out forwards;
    stroke-dasharray: 200;
    stroke-dashoffset: 200;
    shape-rendering: crispEdges;
}

@keyframes drawTriangle {
    to {
        stroke-dashoffset: 0;
        fill: #a78bfa;
    }
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

.brand-name {
    font-family: 'Orbitron', 'Audiowide', sans-serif;
    font-size: 5rem;
    font-weight: 900;
    letter-spacing: 0.15em;
    margin-bottom: 15px;
    color: #a78bfa;
    position: relative;
    text-shadow: 0 0 20px rgba(167, 139, 250, 0.8),
                 0 0 40px rgba(139, 92, 246, 0.6),
                 0 0 60px rgba(139, 92, 246, 0.4);
    animation: textPulse 3s ease-in-out infinite;
}

@keyframes textPulse {
    0%, 100% {
        text-shadow: 0 0 20px rgba(167, 139, 250, 0.8),
                     0 0 40px rgba(139, 92, 246, 0.6),
                     0 0 60px rgba(139, 92, 246, 0.4);
    }
    50% {
        text-shadow: 0 0 30px rgba(167, 139, 250, 1),
                     0 0 60px rgba(139, 92, 246, 0.8),
                     0 0 90px rgba(139, 92, 246, 0.6);
    }
}

.letter {
    display: inline-block;
    animation: letterPop 0.6s ease-out forwards, letterFloat 3s ease-in-out infinite;
    opacity: 0;
    transform: translateY(20px);
    will-change: transform, opacity;
    position: relative;
}

@keyframes letterFloat {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-8px);
    }
}

.letter:nth-child(1) { animation-delay: 0.5s; animation-duration: 0.6s, 3s; }
.letter:nth-child(2) { animation-delay: 0.6s; animation-duration: 0.6s, 3.2s; }
.letter:nth-child(3) { animation-delay: 0.7s; animation-duration: 0.6s, 2.8s; }
.letter:nth-child(4) { animation-delay: 0.8s; animation-duration: 0.6s, 3.4s; }
.letter:nth-child(5) { animation-delay: 0.9s; animation-duration: 0.6s, 3s; }
.letter:nth-child(6) { animation-delay: 1s; animation-duration: 0.6s, 3.2s; }
.letter:nth-child(7) { animation-delay: 1.1s; animation-duration: 0.6s, 2.9s; }
.letter:nth-child(8) { animation-delay: 1.2s; animation-duration: 0.6s, 3.1s; }
.letter:nth-child(9) { animation-delay: 1.3s; animation-duration: 0.6s, 3.3s; }
.letter:nth-child(10) { animation-delay: 1.4s; animation-duration: 0.6s, 2.8s; }
.letter:nth-child(11) { animation-delay: 1.5s; animation-duration: 0.6s, 3.2s; }

@keyframes letterPop {
    0% {
        opacity: 0;
        transform: translateY(20px) scale(0.8);
    }
    50% {
        transform: translateY(-5px) scale(1.1);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.tagline {
    font-size: 1.2rem;
    background: linear-gradient(90deg, #a78bfa 0%, #ec4899 50%, #a78bfa 100%);
    background-size: 200% 200%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    opacity: 0;
    animation: fadeInUp 1s ease-out 1.8s forwards, gradientShift 3s ease infinite;
    transform: translateZ(0);
    filter: drop-shadow(0 0 10px rgba(167, 139, 250, 0.4));
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.loading-bar {
    position: absolute;
    bottom: 80px;
    width: 300px;
    height: 3px;
    background: rgba(139, 92, 246, 0.2);
    border-radius: 10px;
    overflow: hidden;
    opacity: 0;
    animation: fadeInUp 0.5s ease-out 2s forwards;
}

.loading-progress {
    height: 100%;
    background: linear-gradient(90deg, #8b5cf6, #3b82f6, #6366f1);
    border-radius: 10px;
    animation: loadProgress 2s ease-in-out 2s forwards;
    width: 0;
    box-shadow: 0 0 20px #8b5cf6;
}

@keyframes loadProgress {
    to {
        width: 100%;
    }
}

.start-intro-btn {
    position: absolute;
    bottom: 120px;
    padding: 12px 35px;
    background: rgba(139, 92, 246, 0.1);
    border: 1px solid rgba(139, 92, 246, 0.5);
    color: #a78bfa;
    border-radius: 30px;
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    letter-spacing: 2px;
    cursor: pointer;
    z-index: 10000;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    opacity: 0;
    animation: fadeInUp 0.5s ease-out 0.5s forwards;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.start-intro-btn:hover {
    background: rgba(139, 92, 246, 0.3);
    border-color: #a78bfa;
    transform: translateY(-3px);
    box-shadow: 0 0 20px rgba(139, 92, 246, 0.4);
}

.btn-glow {
    position: absolute;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    top: 0;
    left: -100%;
    transition: 0.5s;
}

.start-intro-btn:hover .btn-glow {
    left: 100%;
}

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

@keyframes fadeInContent {
    to {
        opacity: 1;
    }
}

@media (max-width: 768px) {
    .brand-name {
        font-size: 3.5rem;
    }
    
    .play-icon {
        width: 80px;
        height: 80px;
    }
    
    .tagline {
        font-size: 0.9rem;
    }
    
    .loading-bar {
        width: 200px;
    }
}
