/* Tailwind Config */
tailwind.config = {
    theme: {
        extend: {
            fontFamily: {
                'inter': ['Inter', 'sans-serif'],
            },
            animation: {
                'fade-in-up': 'fadeInUp 0.8s ease-out',
                'fade-in-left': 'fadeInLeft 0.8s ease-out',
                'fade-in-right': 'fadeInRight 0.8s ease-out',
                'scale-in': 'scaleIn 0.6s ease-out',
                'slide-in': 'slideIn 1s ease-out',
                'float': 'float 6s ease-in-out infinite',
                'pulse-slow': 'pulse 3s ease-in-out infinite',
                'bounce-slow': 'bounce 2s infinite',
                'gradient': 'gradient 15s ease infinite',
                'scroll-right': 'scrollRight 20s linear infinite',
            },
            keyframes: {
                fadeInUp: {
                    '0%': { opacity: '0', transform: 'translateY(30px)' },
                    '100%': { opacity: '1', transform: 'translateY(0)' }
                },
                fadeInLeft: {
                    '0%': { opacity: '0', transform: 'translateX(-30px)' },
                    '100%': { opacity: '1', transform: 'translateX(0)' }
                },
                fadeInRight: {
                    '0%': { opacity: '0', transform: 'translateX(30px)' },
                    '100%': { opacity: '1', transform: 'translateX(0)' }
                },
                scaleIn: {
                    '0%': { opacity: '0', transform: 'scale(0.8)' },
                    '100%': { opacity: '1', transform: 'scale(1)' }
                },
                slideIn: {
                    '0%': { opacity: '0', transform: 'translateY(50px)' },
                    '100%': { opacity: '1', transform: 'translateY(0)' }
                },
                float: {
                    '0%, 100%': { transform: 'translateY(0px)' },
                    '50%': { transform: 'translateY(-20px)' }
                },
                gradient: {
                    '0%, 100%': { backgroundPosition: '0% 50%' },
                    '50%': { backgroundPosition: '100% 50%' }
                },
                scrollRight: {
                    '0%': { transform: 'translateX(100%)' },
                    '100%': { transform: 'translateX(-100%)' }
                }
            }
        }
    }
}

/* Custom CSS Styles */
.gradient-bg {
    background: linear-gradient(-45deg, #3B82F6, #60A5FA, #93C5FD, #DBEAFE);
    background-size: 400% 400%;
    animation: gradient 15s ease infinite;
}

/* Scroll Animation */
@keyframes scrollRight {
    0% { transform: translateX(100%); }
    100% { transform: translateX(-100%); }
}

.glass-effect {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.text-gradient {
    background: linear-gradient(135deg, #3B82F6 0%, #8B5CF6 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.parallax {
    transform: translateZ(0);
    will-change: transform;
}

/* Soundwave Animation */
.soundwave {
    width: 12px;
    height: 40px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 6px;
    animation: soundwave-pulse-random 5s ease-in-out infinite;
}

.soundwave:nth-child(1) { animation-delay: 0s; }
.soundwave:nth-child(2) { animation-delay: 0.7s; }
.soundwave:nth-child(3) { animation-delay: 1.3s; }
.soundwave:nth-child(4) { animation-delay: 0.2s; }
.soundwave:nth-child(5) { animation-delay: 2.1s; }
.soundwave:nth-child(6) { animation-delay: 0.4s; }
.soundwave:nth-child(7) { animation-delay: 1.8s; }
.soundwave:nth-child(8) { animation-delay: 0.9s; }
.soundwave:nth-child(9) { animation-delay: 2.5s; }
.soundwave:nth-child(10) { animation-delay: 0.1s; }
.soundwave:nth-child(11) { animation-delay: 1.6s; }
.soundwave:nth-child(12) { animation-delay: 0.5s; }
.soundwave:nth-child(13) { animation-delay: 2.3s; }
.soundwave:nth-child(14) { animation-delay: 0.8s; }
.soundwave:nth-child(15) { animation-delay: 1.9s; }
.soundwave:nth-child(16) { animation-delay: 0.3s; }
.soundwave:nth-child(17) { animation-delay: 2.7s; }
.soundwave:nth-child(18) { animation-delay: 1.1s; }
.soundwave:nth-child(19) { animation-delay: 0.6s; }
.soundwave:nth-child(20) { animation-delay: 2.0s; }
.soundwave:nth-child(21) { animation-delay: 1.4s; }
.soundwave:nth-child(22) { animation-delay: 0.15s; }
.soundwave:nth-child(23) { animation-delay: 2.8s; }
.soundwave:nth-child(24) { animation-delay: 1.7s; }
.soundwave:nth-child(25) { animation-delay: 0.35s; }
.soundwave:nth-child(26) { animation-delay: 2.4s; }
.soundwave:nth-child(27) { animation-delay: 1.2s; }
.soundwave:nth-child(28) { animation-delay: 0.85s; }
.soundwave:nth-child(29) { animation-delay: 2.6s; }
.soundwave:nth-child(30) { animation-delay: 1.5s; }

@keyframes soundwave-pulse-random {
    0% { height: 20px; opacity: 0.3; }
    15% { height: 55px; opacity: 0.7; }
    30% { height: 18px; opacity: 0.4; }
    45% { height: 75px; opacity: 0.9; }
    60% { height: 22px; opacity: 0.5; }
    75% { height: 65px; opacity: 0.8; }
    90% { height: 15px; opacity: 0.3; }
    100% { height: 20px; opacity: 0.3; }
}

.floating-letter {
    position: absolute;
    font-weight: 800;
    font-size: 1.25rem; /* ≈ text-xl */
    color: rgba(255,255,255,0.95);
    text-shadow: 0 2px 10px rgba(0,0,0,0.25);
    animation: float-up-right 6s linear infinite;
    will-change: transform, opacity;
    user-select: none;
}

.floating-letter-mobile {
    position: absolute;
    font-weight: 800;
    font-size: 1.2rem;
    color: rgba(255,255,255,0.95);
    text-shadow: 0 2px 10px rgba(0,0,0,0.25);
    opacity: 0;
    animation: float-down-right 5s linear infinite;
    will-change: transform, opacity;
    user-select: none;
}

@keyframes float-up-right {
    0%   { transform: translate(0,0) scale(1);   opacity: 0; }
    10%  { opacity: 1; }
    60%  { transform: translate(40px,-120px) scale(1.08); }
    100% { transform: translate(80px,-240px) scale(1.15); opacity: 0; }
}

@keyframes float-down-right {
    0%   { transform: translate(0,0) scale(0.95); opacity: 0; }
    10%  { opacity: 1; }
    60%  { transform: translate(40px,200px) scale(1.05); }
    100% { transform: translate(80px,400px) scale(1.12); opacity: 0; }
}


/* Responsive Design */
@media (max-width: 768px) {
    .soundwave {
        width: 8px;
        height: 30px;
    }
    
    .floating-letter {
        font-size: 1.2rem;
    }
}

/* Performance Optimizations */
.parallax {
    transform: translateZ(0);
    will-change: transform;
}

.glass-effect {
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
    .soundwave,
    .floating-letter {
        animation: none;
    }
    
    .gradient-bg {
        animation: none;
        background: #3B82F6;
    }
}
