/* ========================================
   A&K Icecream — Custom Styles
   ======================================== */

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

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

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 10px;
}
::-webkit-scrollbar-track {
    background: #f0f7f0;
}
::-webkit-scrollbar-thumb {
    background: #166534;
    border-radius: 5px;
}
::-webkit-scrollbar-thumb:hover {
    background: #14532d;
}

/* ========================================
   Navbar
   ======================================== */
#navbar {
    background: transparent;
    transition: background 0.3s ease, box-shadow 0.3s ease;
}

#navbar.scrolled {
    background: rgba(253, 252, 248, 0.95);
    backdrop-filter: blur(12px);
    box-shadow: 0 1px 20px rgba(22, 101, 52, 0.1);
}

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

#navbar.scrolled .nav-logo-text {
    color: #14532d;
}

/* ========================================
   Mobile Menu
   ======================================== */
.mobile-nav-link {
    display: block;
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(22, 101, 52, 0.1);
}

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

/* Menu Animation */
#mobile-menu.open .menu-line:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}
#mobile-menu.open .menu-line:nth-child(2) {
    opacity: 0;
}
#mobile-menu.open .menu-line:nth-child(3) {
    width: 1.5rem;
    transform: rotate(-45deg) translate(5px, -5px);
}

/* ========================================
   Flavor Cards
   ======================================== */
.flavor-card {
    will-change: transform;
}

/* ========================================
   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);
    }
    
    .reveal.from-bottom {
        transform: translateY(30px);
    }
    
    .reveal.from-left {
        transform: translateX(-30px);
    }
    
    .reveal.from-right {
        transform: translateX(30px);
    }
    
    .reveal.scale-in {
        transform: scale(0.95);
    }
}

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

@keyframes float-delayed {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-15px); }
}

@keyframes float-slow {
    0%, 100% { transform: translateY(0px) rotate(45deg); }
    50% { transform: translateY(-10px) rotate(45deg); }
}

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

.animate-float-delayed {
    animation: float-delayed 5s ease-in-out infinite 1s;
}

.animate-float-slow {
    animation: float-slow 7s ease-in-out infinite 0.5s;
}

/* ========================================
   Hover Effects
   ======================================== */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
    outline: 2px solid #166534;
    outline-offset: 2px;
}

/* ========================================
   Selection Color
   ======================================== */
::selection {
    background: #d9edda;
    color: #062311;
}

/* ========================================
   Form Focus States
   ======================================== */
input:focus,
textarea:focus {
    border-color: #166534 !important;
}

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