/* Custom styles for Coco Fruit Coffee */

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

/* Navbar scroll effect */
nav.scrolled {
    background: rgba(254, 253, 251, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 1px 20px rgba(140, 32, 32, 0.08);
}

nav.scrolled .font-serif {
    color: #8c2020 !important;
}

/* Menu card hover animation */
.menu-card {
    transform: translateY(0);
    transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94), box-shadow 0.5s ease;
}

.menu-card:hover {
    transform: translateY(-6px);
}

/* Hero image fade-in */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

#hero .order-2 > * {
    animation: fadeInUp 0.8s ease forwards;
    opacity: 0;
}

#hero .order-2 > *:nth-child(1) { animation-delay: 0.1s; }
#hero .order-2 > *:nth-child(2) { animation-delay: 0.2s; }
#hero .order-2 > *:nth-child(3) { animation-delay: 0.3s; }
#hero .order-2 > *:nth-child(4) { animation-delay: 0.4s; }
#hero .order-2 > *:nth-child(5) { animation-delay: 0.5s; }

#hero .order-1 {
    animation: fadeInUp 0.8s ease 0.2s forwards;
    opacity: 0;
}

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

.absolute.-bottom-6.-left-6 {
    animation: float 4s ease-in-out infinite;
}

.absolute.-top-4.-right-4 {
    animation: float 5s ease-in-out 1s infinite;
}

/* Mobile link animation */
.mobile-link {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.4s ease, transform 0.4s ease;
}

#mobileMenu.open .mobile-link {
    opacity: 1;
    transform: translateY(0);
}

#mobileMenu.open .mobile-link:nth-child(1) { transition-delay: 0.1s; }
#mobileMenu.open .mobile-link:nth-child(2) { transition-delay: 0.15s; }
#mobileMenu.open .mobile-link:nth-child(3) { transition-delay: 0.2s; }
#mobileMenu.open .mobile-link:nth-child(4) { transition-delay: 0.25s; }
#mobileMenu.open .mobile-link:nth-child(5) { transition-delay: 0.3s; }

/* Scroll reveal animations */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    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.visible {
    opacity: 1;
    transform: translateY(0);
}

.reveal.delay-100 { transition-delay: 0.1s; }
.reveal.delay-200 { transition-delay: 0.2s; }
.reveal.delay-300 { transition-delay: 0.3s; }

/* Custom selection color */
::selection {
    background: #f9e4e4;
    color: #8c2020;
}

/* Focus visible styles */
:focus-visible {
    outline: 2px solid #c04040;
    outline-offset: 2px;
}

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

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

/* Subtle pattern overlay for sections */
.bg-pattern {
    background-image: radial-gradient(circle at 1px 1px, rgba(192, 64, 64, 0.03) 1px, transparent 0);
    background-size: 24px 24px;
}
