/* ============================================
   ULTIMATE SPORTS DJ - Custom Styles
   Arena Nightclub Aesthetic
   ============================================ */

/* ============================================
   CSS Variables
   ============================================ */
:root {
    --accent-red: #e53935;
    --accent-red-bright: #ff6f61;
    --accent-cyan: #00bcd4;
    --accent-cyan-bright: #00e5ff;
    --bg-primary: #0a0a12;
    --bg-surface: #12121f;
}

/* ============================================
   Base Animations
   ============================================ */
@keyframes fade-in-up {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse-slow {
    0%, 100% {
        opacity: 0.5;
        transform: scale(1);
    }
    50% {
        opacity: 0.8;
        transform: scale(1.05);
    }
}

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

@keyframes sweep {
    0% {
        transform: translateX(-100%) rotate(15deg);
        opacity: 0;
    }
    10% {
        opacity: 0.3;
    }
    90% {
        opacity: 0.3;
    }
    100% {
        transform: translateX(200vw) rotate(15deg);
        opacity: 0;
    }
}

@keyframes glow-pulse {
    0%, 100% {
        box-shadow: 0 0 20px rgba(229, 57, 53, 0.3),
                    0 0 40px rgba(229, 57, 53, 0.2),
                    0 0 60px rgba(229, 57, 53, 0.1);
    }
    50% {
        box-shadow: 0 0 30px rgba(229, 57, 53, 0.5),
                    0 0 60px rgba(229, 57, 53, 0.3),
                    0 0 90px rgba(229, 57, 53, 0.2);
    }
}

/* ============================================
   Animation Utilities
   ============================================ */
.animate-fade-in-up {
    animation: fade-in-up 0.8s ease-out forwards;
    opacity: 0;
}

.animate-pulse-slow {
    animation: pulse-slow 8s ease-in-out infinite;
}

.animate-float {
    animation: float 4s ease-in-out infinite;
}

.animate-glow-pulse {
    animation: glow-pulse 2s ease-in-out infinite;
}

/* Animation delays */
.animation-delay-200 { animation-delay: 0.2s; }
.animation-delay-300 { animation-delay: 0.3s; }
.animation-delay-400 { animation-delay: 0.4s; }
.animation-delay-500 { animation-delay: 0.5s; }
.animation-delay-600 { animation-delay: 0.6s; }
.animation-delay-700 { animation-delay: 0.7s; }
.animation-delay-800 { animation-delay: 0.8s; }
.animation-delay-1000 { animation-delay: 1s; }
.animation-delay-2000 { animation-delay: 2s; }

/* ============================================
   Light Beams (Arena Effect)
   ============================================ */
.light-beam {
    position: absolute;
    width: 150px;
    height: 200vh;
    background: linear-gradient(
        to bottom,
        transparent,
        rgba(255, 255, 255, 0.03) 20%,
        rgba(255, 255, 255, 0.05) 50%,
        rgba(255, 255, 255, 0.03) 80%,
        transparent
    );
    transform-origin: top center;
    pointer-events: none;
}

.light-beam-1 {
    left: 10%;
    top: -50%;
    animation: sweep 15s ease-in-out infinite;
    animation-delay: 0s;
}

.light-beam-2 {
    left: 40%;
    top: -50%;
    animation: sweep 18s ease-in-out infinite;
    animation-delay: 5s;
    width: 100px;
    background: linear-gradient(
        to bottom,
        transparent,
        rgba(229, 57, 53, 0.02) 20%,
        rgba(229, 57, 53, 0.04) 50%,
        rgba(229, 57, 53, 0.02) 80%,
        transparent
    );
}

.light-beam-3 {
    left: 70%;
    top: -50%;
    animation: sweep 20s ease-in-out infinite;
    animation-delay: 10s;
    width: 120px;
    background: linear-gradient(
        to bottom,
        transparent,
        rgba(0, 188, 212, 0.02) 20%,
        rgba(0, 188, 212, 0.04) 50%,
        rgba(0, 188, 212, 0.02) 80%,
        transparent
    );
}

/* ============================================
   Background Textures
   ============================================ */
.bg-grid-pattern {
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
    background-size: 50px 50px;
}

.bg-noise {
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
}

/* ============================================
   Buttons
   ============================================ */
.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    background: linear-gradient(135deg, var(--accent-red) 0%, var(--accent-red-bright) 100%);
    color: white;
    font-weight: 600;
    border-radius: 0.75rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.btn-primary::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, var(--accent-red-bright) 0%, var(--accent-red) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 40px rgba(229, 57, 53, 0.4);
}

.btn-primary:hover::before {
    opacity: 1;
}

.btn-primary span,
.btn-primary svg {
    position: relative;
    z-index: 1;
}

.btn-primary-cyan {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    background: linear-gradient(135deg, var(--accent-cyan) 0%, var(--accent-cyan-bright) 100%);
    color: white;
    font-weight: 600;
    border-radius: 0.75rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.btn-primary-cyan::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, var(--accent-cyan-bright) 0%, var(--accent-cyan) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.btn-primary-cyan:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 40px rgba(0, 188, 212, 0.4);
}

.btn-primary-cyan:hover::before {
    opacity: 1;
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    background: transparent;
    color: #a0a0b0;
    font-weight: 500;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 0.75rem;
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.25);
    color: white;
}

/* ============================================
   Cards
   ============================================ */
.app-card {
    position: relative;
    background: var(--bg-surface);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 1rem;
    overflow: hidden;
    transition: all 0.5s ease;
}

.app-card:hover {
    border-color: rgba(255, 255, 255, 0.15);
    transform: translateY(-4px);
}

.feature-card {
    padding: 2rem;
    background: var(--bg-surface);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 1rem;
    transition: all 0.3s ease;
}

.feature-card:hover {
    border-color: rgba(255, 255, 255, 0.1);
    background: rgba(18, 18, 31, 0.8);
}

.feature-icon {
    width: 4rem;
    height: 4rem;
    border-radius: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.feature-card-large {
    padding: 2rem;
    background: var(--bg-surface);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 1rem;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.feature-card-large::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.02) 0%, transparent 100%);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.feature-card-large:hover {
    border-color: rgba(255, 255, 255, 0.1);
    transform: translateY(-4px);
}

.feature-card-large:hover::before {
    opacity: 1;
}

.feature-icon-large {
    width: 4rem;
    height: 4rem;
    border-radius: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    transition: transform 0.3s ease;
}

.feature-card-large:hover .feature-icon-large {
    transform: scale(1.1);
}

.teaser-card {
    padding: 1.5rem;
    background: var(--bg-surface);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 1rem;
    transition: all 0.3s ease;
}

.teaser-card:hover {
    border-color: rgba(0, 188, 212, 0.2);
    background: rgba(18, 18, 31, 0.8);
}

/* ============================================
   Step Numbers (How It Works)
   ============================================ */
.step-number {
    position: absolute;
    top: -1rem;
    left: 50%;
    transform: translateX(-50%);
    width: 2.5rem;
    height: 2.5rem;
    background: var(--bg-primary);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Bebas Neue', sans-serif;
    font-size: 1.25rem;
    color: white;
    letter-spacing: 0;
}

/* ============================================
   Scroll Reveal (Optional Enhancement)
   ============================================ */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease;
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ============================================
   Mobile Responsive Adjustments
   ============================================ */
@media (max-width: 768px) {
    .light-beam {
        display: none;
    }

    .btn-primary,
    .btn-primary-cyan,
    .btn-secondary {
        width: 100%;
    }
}

/* ============================================
   Selection Styling
   ============================================ */
::selection {
    background: rgba(229, 57, 53, 0.3);
    color: white;
}

/* ============================================
   Scrollbar Styling
   ============================================ */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-primary);
}

::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.2);
}

/* ============================================
   Focus States (Accessibility)
   ============================================ */
a:focus-visible,
button:focus-visible,
input:focus-visible {
    outline: 2px solid var(--accent-cyan);
    outline-offset: 2px;
}

/* ============================================
   Form Inputs
   ============================================ */
input[type="email"]::placeholder {
    opacity: 0.6;
}

input[type="email"]:focus::placeholder {
    opacity: 0.4;
}
