/* ============================================
   Voodoo Lounge — Custom Styles
   ============================================ */

/* Base */
*, *::before, *::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-tap-highlight-color: transparent;
}

body {
    overflow-x: hidden;
}

/* ============================================
   Floating Card Animations
   ============================================ */
.floating-card {
    animation: float 4s ease-in-out infinite;
}

.floating-card:nth-child(2) {
    animation-delay: -1.3s;
    animation-duration: 4.5s;
}

.floating-card:nth-child(3) {
    animation-delay: -2.6s;
    animation-duration: 5s;
}

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

/* Background blob animations */
.animate-float {
    animation: blobFloat 8s ease-in-out infinite;
}

.animate-float-delay {
    animation: blobFloat 10s ease-in-out infinite;
    animation-delay: -3s;
}

.animate-float-slow {
    animation: blobFloat 12s ease-in-out infinite;
    animation-delay: -6s;
}

@keyframes blobFloat {
    0%, 100% { transform: translate(0, 0) scale(1); }
    25% { transform: translate(20px, -30px) scale(1.05); }
    50% { transform: translate(-10px, 20px) scale(0.95); }
    75% { transform: translate(15px, 10px) scale(1.02); }
}

/* ============================================
   Scroll Reveal
   ============================================ */
.scroll-reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1), transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

.scroll-reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* Reduced motion: disable animations entirely */
@media (prefers-reduced-motion: reduce) {
    .floating-card,
    .animate-float,
    .animate-float-delay,
    .animate-float-slow {
        animation: none;
    }

    .scroll-reveal {
        transition: none;
        opacity: 1;
        transform: none;
    }

    html {
        scroll-behavior: auto;
    }

    img {
        animation: none;
    }
}

/* ============================================
   Navbar
   ============================================ */
#navbar {
    background: rgba(250, 245, 255, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(216, 180, 254, 0.3);
}

#navbar.scrolled {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    box-shadow: 0 4px 30px rgba(124, 58, 237, 0.08);
}

/* ============================================
   Mobile Menu
   ============================================ */
.mobile-link {
    position: relative;
}

.mobile-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(to right, #9333ea, #f59e0b);
    transition: width 0.3s ease;
}

.mobile-link:hover::after {
    width: 100%;
}

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

::-webkit-scrollbar-track {
    background: #faf5ff;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(to bottom, #c084fc, #fbbf24);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(to bottom, #a855f7, #f59e0b);
}

/* ============================================
   Selection
   ============================================ */
::selection {
    background: rgba(168, 85, 247, 0.2);
    color: #581c87;
}

/* ============================================
   Image hover zoom wrapper
   ============================================ */
.group img {
    will-change: transform;
}

/* ============================================
   Form focus styles
   ============================================ */
input:focus,
textarea:focus {
    outline: none;
}

/* ============================================
   Responsive tweaks
   ============================================ */
@media (max-width: 640px) {
    .floating-card {
        display: none;
    }

    #hero {
        min-height: auto;
        padding-top: 80px;
        padding-bottom: 60px;
    }

    .scroll-indicator {
        display: none;
    }
}

/* ============================================
   Print styles
   ============================================ */
@media print {
    nav, #contactForm, button, .floating-card {
        display: none !important;
    }

    body {
        background: white !important;
        color: black !important;
    }

    a {
        color: black !important;
        text-decoration: underline;
    }
}
