/* ========================================
   HOT Dipity Donuts — Custom Styles
   ======================================== */

/* Base */
html {
    scroll-behavior: smooth;
}

body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Floating Donut Animation */
@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    33% { transform: translateY(-18px) rotate(5deg); }
    66% { transform: translateY(8px) rotate(-3deg); }
}

@keyframes float-sprinkle {
    0%, 100% { transform: translateY(0px) scale(1); opacity: 0.4; }
    50% { transform: translateY(-12px) scale(1.1); opacity: 0.7; }
}

.floating-donut {
    animation: float 6s ease-in-out infinite;
}

.sprinkle {
    animation: float-sprinkle 4s ease-in-out infinite;
}

/* Scroll Reveal (progressive enhancement — hidden by default, shown via JS) */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(30px);
        transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1), transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
    }
    
    .reveal.revealed {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Navbar scroll state */
.nav-scrolled {
    background: rgba(255, 253, 247, 0.95) !important;
    backdrop-filter: blur(12px);
    box-shadow: 0 1px 20px rgba(5, 158, 105, 0.1);
}

.nav-scrolled .font-display,
.nav-scrolled a:not(.bg-emerald-600) {
    color: #064E3B !important;
}

/* Mobile menu animation */
#mobileMenu {
    animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

.mobile-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: #10B981;
    transition: width 0.3s ease;
}

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

/* Custom selection color */
::selection {
    background: #A7F3D0;
    color: #064E3B;
}

/* Focus styles */
a:focus-visible,
button:focus-visible {
    outline: 2px solid #10B981;
    outline-offset: 2px;
    border-radius: 4px;
}

/* Smooth image loading */
img {
    opacity: 1;
    transition: opacity 0.3s ease;
}
