/* ===== Custom Styles for Baby Blue's Shaved Ice ===== */

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

html {
    scroll-behavior: smooth;
}

body {
    overflow-x: hidden;
}

/* Smooth focus outlines */
*:focus-visible {
    outline: 2px solid theme('colors.teal.500');
    outline-offset: 2px;
}

/* ===== Navbar ===== */
#navbar {
    backdrop-filter: blur(0px);
    -webkit-backdrop-filter: blur(0px);
}

#navbar.scrolled {
    background: rgba(10, 15, 26, 0.92);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(45, 212, 191, 0.1);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

/* Menu lines animation */
.menu-line {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

#menuBtn.active .menu-line:first-child {
    transform: rotate(45deg) translate(5px, 5px);
}

#menuBtn.active .menu-line:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}

#menuBtn.active .menu-line:nth-child(3) {
    width: 1.5rem;
    transform: rotate(-45deg) translate(5px, -5px);
}

/* Mobile links */
.mobile-link {
    display: block;
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(51, 65, 85, 0.3);
}

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

/* ===== Scroll Reveal (progressive enhancement) ===== */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(30px);
        transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1), 
                    transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    }
    
    .reveal.revealed {
        opacity: 1;
        transform: translateY(0);
    }
    
    .reveal-delay-1 { transition-delay: 0.1s; }
    .reveal-delay-2 { transition-delay: 0.2s; }
    .reveal-delay-3 { transition-delay: 0.3s; }
    .reveal-delay-4 { transition-delay: 0.4s; }
    .reveal-delay-5 { transition-delay: 0.5s; }
    .reveal-delay-6 { transition-delay: 0.6s; }
}

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

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

::-webkit-scrollbar-thumb {
    background: linear-gradient(to bottom, #0d9488, #1e293b);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(to bottom, #14b8a6, #334155);
}

/* ===== Selection color ===== */
::selection {
    background: rgba(20, 184, 166, 0.3);
    color: #f0fdfa;
}

/* ===== Image aspect ratios ===== */
img {
    max-width: 100%;
    height: auto;
}

/* ===== Hover effects ===== */
a, button {
    -webkit-tap-highlight-color: transparent;
}

/* ===== Gold shimmer on hover ===== */
.group:hover .group-hover\:scale-110 {
    transition-timing-function: cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* ===== Print styles ===== */
@media print {
    nav, #contact, button, form {
        display: none !important;
    }
    
    body {
        background: white !important;
        color: black !important;
    }
    
    .font-display, h1, h2, h3 {
        color: black !important;
    }
}
