/* ========================================
   The Blend Smoothie Bar — Custom Styles
   ======================================== */

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

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

body {
    margin: 0;
    overflow-x: hidden;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 10px;
}
::-webkit-scrollbar-track {
    background: #f8f9fa;
}
::-webkit-scrollbar-thumb {
    background: #ff9494;
    border-radius: 999px;
}
::-webkit-scrollbar-thumb:hover {
    background: #ff5c5c;
}

/* Selection */
::selection {
    background: #ffc2c2;
    color: #1f232b;
}

/* ========================================
   Navbar
   ======================================== */
#navbar {
    transition: background-color 0.4s ease, box-shadow 0.4s ease, backdrop-filter 0.4s ease;
}

#navbar.scrolled {
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.08);
}

.nav-logo-text {
    transition: color 0.3s ease;
}

#navbar:not(.scrolled) .nav-logo-text {
    color: #1f232b;
}

#navbar.scrolled .nav-logo-text {
    color: #1f232b;
}

/* ========================================
   Hero Animations
   ======================================== */
@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(5deg); }
}

@keyframes float-reverse {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(20px) rotate(-5deg); }
}

@keyframes pulse-soft {
    0%, 100% { transform: scale(1); opacity: 0.15; }
    50% { transform: scale(1.08); opacity: 0.22; }
}

.hero-float-1 { animation: float 6s ease-in-out infinite; }
.hero-float-2 { animation: float-reverse 7s ease-in-out infinite; }
.hero-float-3 { animation: float 5.5s ease-in-out infinite; }
.hero-float-4 { animation: float-reverse 8s ease-in-out infinite; }
.hero-float-5 { animation: float 6.5s ease-in-out infinite; }

.hero-circle-1 { animation: pulse-soft 8s ease-in-out infinite; }
.hero-circle-2 { animation: pulse-soft 10s ease-in-out infinite reverse; }
.hero-circle-3 { animation: pulse-soft 7s ease-in-out infinite; }
.hero-circle-4 { animation: pulse-soft 9s ease-in-out infinite reverse; }

/* Hero content entrance */
.hero-content {
    opacity: 1;
    transform: translateY(0);
    animation: heroEntrance 1s ease-out 0.2s both;
}

@keyframes heroEntrance {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Scroll indicator */
.hero-scroll-indicator {
    animation: scrollBounce 2s ease-in-out infinite;
}

@keyframes scrollBounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(8px); }
}

/* ========================================
   Scroll Reveal (progressive enhancement)
   ======================================== */
@media (prefers-reduced-motion: no-preference) {
    .scroll-reveal {
        opacity: 1;
        transform: translateY(0);
        transition: opacity 0.7s ease-out, transform 0.7s ease-out;
    }

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

/* ========================================
   Menu Cards
   ======================================== */
.menu-card {
    opacity: 1;
}

.menu-card:hover .menu-card-icon {
    transform: scale(1.1) rotate(3deg);
}

/* ========================================
   Buttons
   ======================================== */
button, a[type="submit"] {
    cursor: pointer;
}

button:focus-visible, a:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible {
    outline: 2px solid #ff5c5c;
    outline-offset: 2px;
}

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

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

.mobile-menu-link {
    display: block;
    padding: 0.5rem 0;
    border-bottom: 1px solid #f0f1f3;
}

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

/* ========================================
   Responsive adjustments
   ======================================== */
@media (max-width: 767px) {
    #hero h1 {
        font-size: 2.75rem;
    }

    .hero-float-1, .hero-float-2, .hero-float-3, .hero-float-4, .hero-float-5 {
        display: none;
    }
}

@media (min-width: 768px) and (max-width: 1023px) {
    .hero-float-1, .hero-float-2, .hero-float-3, .hero-float-4, .hero-float-5 {
        display: none;
    }
}

/* ========================================
   Focus & Accessibility
   ======================================== */
@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;
    }

    .scroll-reveal {
        opacity: 1;
        transform: none;
    }
}
