/* Custom styles for Daily Dose Coffee */

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

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #FFF8F0;
}
::-webkit-scrollbar-thumb {
    background: #D4C4B4;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #B8A08E;
}

/* Navbar transition states */
#navbar.scrolled {
    background: rgba(255, 252, 248, 0.95);
    backdrop-filter: blur(12px);
    box-shadow: 0 1px 20px rgba(123, 45, 59, 0.08);
}

#navbar.scrolled .nav-link {
    color: #5E4A40;
}

#navbar.scrolled .nav-link:hover {
    color: #7B2D3B;
    background: #FDF2F4;
}

/* Hero badge animation */
.hero-badge {
    animation: fadeInDown 0.8s ease-out both;
}

/* Floating card animations */
@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

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

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

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

/* Reveal animations (progressive enhancement) */
.reveal {
    opacity: 1;
    transform: none;
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

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

/* Mobile menu transitions */
#mobile-menu {
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

#mobile-menu.open {
    transform: translateX(0);
}

#mobile-menu.closed {
    transform: translateX(100%);
}

/* Hamburger animation */
#menu-icon span {
    transition: all 0.3s ease-in-out;
}

#menu-btn[aria-expanded="true"] #menu-icon span:nth-child(1) {
    transform: translateY(3px) rotate(45deg);
}

#menu-btn[aria-expanded="true"] #menu-icon span:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}

#menu-btn[aria-expanded="true"] #menu-icon span:nth-child(3) {
    transform: translateY(-3px) rotate(-45deg);
    width: 1.25rem;
}

/* Form focus states */
input:focus,
textarea:focus {
    box-shadow: 0 0 0 3px rgba(123, 45, 59, 0.1);
}

/* Reduced motion */
@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;
    }

    .animate-float,
    .animate-float-delayed {
        animation: none;
    }
}

/* Mobile menu link hover */
.mobile-link {
    transition: background-color 0.2s ease, transform 0.2s ease;
}

.mobile-link:hover {
    transform: scale(1.02);
}

/* Section divider gradient */
.bg-gradient-divider {
    background: linear-gradient(90deg, transparent, rgba(123, 45, 59, 0.2), transparent);
    height: 1px;
}

/* Image hover overlay */
img {
    transition: transform 0.6s ease;
}
