/* ============================================
   Stardust Coffee Miami Beach — Custom Styles
   ============================================ */

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

/* Selection color */
::selection {
    background-color: #a12144;
    color: #fff8f6;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #fefaf6;
}
::-webkit-scrollbar-thumb {
    background: #f5a8bb;
    border-radius: 999px;
}
::-webkit-scrollbar-thumb:hover {
    background: #c22d54;
}

/* Floating dot animation */
@keyframes float {
    0%, 100% { transform: translateY(0px); opacity: 0.6; }
    50% { transform: translateY(-12px); opacity: 1; }
}

.floating-dot {
    animation: float 3s ease-in-out infinite;
}

/* Floating card animation */
@keyframes floatCard {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-8px); }
}

.floating-card {
    animation: floatCard 4s ease-in-out infinite;
}

/* Reveal animations (progressive enhancement) */
.reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

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

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    .floating-dot,
    .floating-card {
        animation: none;
    }
    html {
        scroll-behavior: auto;
    }
    .reveal {
        transition: none;
    }
}

/* Mobile menu open state */
body.menu-open {
    overflow: hidden;
}

/* Navbar scrolled state */
.navbar-scrolled {
    background: rgba(254, 250, 246, 0.95) !important;
    backdrop-filter: blur(12px);
    box-shadow: 0 1px 20px rgba(161, 33, 68, 0.08);
}

/* Navbar transparent state (over hero) */
.navbar-transparent {
    background: transparent !important;
    backdrop-filter: none;
    box-shadow: none;
}

/* Button hover lift */
a, button {
    -webkit-tap-highlight-color: transparent;
}

/* Image loading placeholder */
img {
    background: linear-gradient(135deg, #fce7eb 0%, #f5ede5 100%);
}

/* Focus styles for accessibility */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
    outline: 2px solid #a12144;
    outline-offset: 2px;
    border-radius: 4px;
}

/* Mobile menu transitions */
#mobile-menu.open {
    opacity: 1;
    pointer-events: all;
}

#mobile-menu.closed {
    opacity: 0;
    pointer-events: none;
}

/* Hamburger animation */
#bar1.open {
    transform: rotate(45deg) translate(5px, 5px);
}
#bar2.open {
    opacity: 0;
}
#bar3.open {
    transform: rotate(-45deg) translate(5px, -5px);
    width: 100%;
}

/* Gallery hover overlay */
.rounded-2xl.overflow-hidden {
    position: relative;
}

.rounded-2xl.overflow-hidden::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(61, 10, 26, 0.2) 0%, transparent 50%);
    opacity: 0;
    transition: opacity 0.4s ease;
    border-radius: 1rem;
}

.rounded-2xl.overflow-hidden:hover::after {
    opacity: 1;
}
