/* ============================================
   SISTERS LIQUOR STORE — Custom Styles
   ============================================ */

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Base transitions */
*, *::before, *::after {
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
}

/* Selection color */
::selection {
    background-color: rgba(240, 96, 48, 0.2);
    color: inherit;
}

/* ============================================
   HERO ANIMATIONS
   ============================================ */

/* Orb floating animations */
@keyframes float-slow {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(30px, -20px) scale(1.05); }
    66% { transform: translate(-20px, 15px) scale(0.95); }
}

@keyframes float-medium {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(-25px, 25px) scale(1.08); }
}

@keyframes float-fast {
    0%, 100% { transform: translate(-50%, -50%) scale(1); }
    50% { transform: translate(-45%, -55%) scale(1.1); }
}

.orb-1 {
    animation: float-slow 12s ease-in-out infinite;
}

.orb-2 {
    animation: float-medium 15s ease-in-out infinite;
}

.orb-3 {
    animation: float-fast 10s ease-in-out infinite;
}

/* Hero element staggered reveal */
.hero-elem {
    opacity: 0;
    transform: translateY(30px);
    animation: heroReveal 0.8s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.hero-elem:nth-child(1) { animation-delay: 0.2s; }
.hero-elem:nth-child(2) { animation-delay: 0.4s; }
.hero-elem:nth-child(3) { animation-delay: 0.6s; }
.hero-elem:nth-child(4) { animation-delay: 0.8s; }
.hero-elem:nth-child(5) { animation-delay: 1.0s; }

@keyframes heroReveal {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ============================================
   SCROLL REVEAL ANIMATIONS
   ============================================ */

.reveal-up,
.reveal-left,
.reveal-right {
    opacity: 0;
    transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1),
                transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal-up {
    transform: translateY(40px);
}

.reveal-left {
    transform: translateX(-40px);
}

.reveal-right {
    transform: translateX(40px);
}

.reveal-up.visible,
.reveal-left.visible,
.reveal-right.visible {
    opacity: 1;
    transform: translate(0, 0);
}

/* ============================================
   NAVBAR
   ============================================ */

#navbar {
    background: transparent;
}

#navbar.scrolled {
    background: rgba(18, 18, 24, 0.92);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.05);
}

#navbar.scrolled .font-serif,
#navbar.scrolled .text-white {
    color: white !important;
}

/* ============================================
   MOBILE MENU
   ============================================ */

.mobile-link {
    display: block;
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.mobile-link:last-child {
    border-bottom: none;
}

/* ============================================
   PRODUCT CARDS
   ============================================ */

.group:hover .group-hover\:bg-coral-500 {
    background-color: rgb(240, 96, 48);
}

/* ============================================
   BUTTON HOVER GLOW
   ============================================ */

button[type="submit"]:hover {
    box-shadow: 0 10px 40px -10px rgba(30, 30, 40, 0.4);
}

/* ============================================
   FOCUS STYLES
   ============================================ */

input:focus,
textarea:focus {
    box-shadow: 0 0 0 3px rgba(240, 96, 48, 0.1);
}

/* ============================================
   RESPONSIVE ADJUSTMENTS
   ============================================ */

@media (max-width: 640px) {
    .font-serif.text-5xl {
        font-size: 2.5rem;
    }
}

@media (min-width: 641px) and (max-width: 768px) {
    .font-serif.text-6xl {
        font-size: 3.5rem;
    }
}

/* ============================================
   REDUCED MOTION
   ============================================ */

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    html {
        scroll-behavior: auto;
    }

    .reveal-up,
    .reveal-left,
    .reveal-right {
        opacity: 1;
        transform: none;
    }
}
