/* ============================================
   Waterbed Depot — Custom Styles
   ============================================ */

/* Base Reset & Smooth Scrolling */
*, *::before, *::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    overflow-x: hidden;
}

/* ============================================
   Water Drop Animations (Hero)
   ============================================ */
.water-drop {
    position: absolute;
    border-radius: 50%;
    background: radial-gradient(circle at 30% 30%, rgba(212, 168, 83, 0.15), rgba(212, 168, 83, 0.03));
    border: 1px solid rgba(212, 168, 83, 0.08);
    animation: float 8s ease-in-out infinite;
}

.drop-1 {
    width: 300px;
    height: 300px;
    top: 10%;
    left: -5%;
    animation-delay: 0s;
    animation-duration: 10s;
}

.drop-2 {
    width: 180px;
    height: 180px;
    top: 60%;
    right: -3%;
    animation-delay: -3s;
    animation-duration: 8s;
}

.drop-3 {
    width: 120px;
    height: 120px;
    bottom: 15%;
    left: 10%;
    animation-delay: -5s;
    animation-duration: 12s;
}

.drop-4 {
    width: 80px;
    height: 80px;
    top: 20%;
    right: 15%;
    animation-delay: -2s;
    animation-duration: 9s;
}

.drop-5 {
    width: 200px;
    height: 200px;
    bottom: 5%;
    right: 25%;
    animation-delay: -7s;
    animation-duration: 11s;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0) scale(1);
    }
    50% {
        transform: translateY(-30px) scale(1.05);
    }
}

/* ============================================
   Mobile Menu
   ============================================ */
.mobile-link {
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.mobile-menu-open .mobile-link {
    opacity: 1;
    transform: translateY(0);
}

.mobile-menu-open .mobile-link:nth-child(1) { transition-delay: 0.05s; }
.mobile-menu-open .mobile-link:nth-child(2) { transition-delay: 0.1s; }
.mobile-menu-open .mobile-link:nth-child(3) { transition-delay: 0.15s; }
.mobile-menu-open .mobile-link:nth-child(4) { transition-delay: 0.2s; }
.mobile-menu-open .mobile-link:nth-child(5) { transition-delay: 0.25s; }

/* ============================================
   Scroll Reveal Animations
   (Progressive enhancement — content visible without JS)
   ============================================ */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 1;
        transform: none;
        transition: opacity 0.6s ease, transform 0.6s ease;
    }

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

/* ============================================
   Form Focus Styles
   ============================================ */
input:focus,
select:focus,
textarea:focus {
    outline: none;
}

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

::-webkit-scrollbar-track {
    background: #0a1628;
}

::-webkit-scrollbar-thumb {
    background: #d4a853;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #e0b86a;
}

/* ============================================
   Selection Color
   ============================================ */
::selection {
    background: rgba(212, 168, 83, 0.3);
    color: #0a1628;
}

/* ============================================
   Product Card Hover Effects
   ============================================ */
.group:hover .group-hover\:scale-110 {
    transform: scale(1.1);
}

/* ============================================
   Button Ripple Effect (subtle)
   ============================================ */
button, a {
    -webkit-tap-highlight-color: transparent;
}

/* ============================================
   Responsive Typography
   ============================================ */
@media (max-width: 640px) {
    .font-serif {
        line-height: 1.1;
    }
}

/* ============================================
   Print Styles
   ============================================ */
@media print {
    nav, #contact, footer, .water-drop {
        display: none;
    }
    
    body {
        color: #000;
        background: #fff;
    }
}
