/* Custom styles for Moon's Cafe */

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

/* Base font settings */
body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Floating card animations */
.floating-card {
    animation: float 6s ease-in-out infinite;
}

.card-1 {
    animation-delay: 0s;
}

.card-2 {
    animation-delay: -1.5s;
}

.card-3 {
    animation-delay: -3s;
}

.card-4 {
    animation-delay: -4.5s;
}

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

/* Navbar scroll behavior */
.nav-scrolled {
    background: rgba(254, 253, 248, 0.95) !important;
    backdrop-filter: blur(12px);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08), 0 4px 24px rgba(0, 0, 0, 0.04);
}

.nav-scrolled .nav-link {
    color: #28401b;
}

.nav-scrolled .nav-link:hover {
    color: #528033;
}

.nav-scrolled .font-serif {
    color: #28401b;
}

/* Scroll reveal animations */
.reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

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

/* Reduced motion preference */
@media (prefers-reduced-motion: reduce) {
    .floating-card {
        animation: none;
    }
    
    html {
        scroll-behavior: auto;
    }
    
    .reveal {
        opacity: 1;
        transform: none;
    }
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #fdf9ee;
}

::-webkit-scrollbar-thumb {
    background: #c6d9b3;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #9dbe7e;
}

/* Form focus styles */
input:focus,
textarea:focus {
    box-shadow: 0 0 0 3px rgba(82, 128, 51, 0.15);
}

/* Image hover effects */
img {
    transition: transform 0.5s ease;
}

/* Mobile menu transitions */
#mobile-menu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, opacity 0.3s ease;
    opacity: 0;
}

#mobile-menu.open {
    max-height: 500px;
    opacity: 1;
}

/* Card shadow variations */
.shadow-forest-900\/5 {
    box-shadow: 0 4px 24px rgba(33, 52, 22, 0.05);
}

.shadow-forest-900\/10 {
    box-shadow: 0 8px 32px rgba(33, 52, 22, 0.1);
}

.shadow-forest-900\/20 {
    box-shadow: 0 12px 40px rgba(33, 52, 22, 0.2);
}

/* Button press effect */
button:active,
a:active {
    transform: scale(0.98);
}

/* Selection color */
::selection {
    background: #c6d9b3;
    color: #213416;
}
