/* Base styles and custom overrides */
html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Nunito', system-ui, sans-serif;
    color: #4A3728;
    background-color: #FDF8F0;
}

.font-display {
    font-family: 'DM Serif Display', Georgia, serif;
}

/* Scroll reveal styles - progressive enhancement */
.scroll-reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

@media (prefers-reduced-motion: no-preference) {
    .scroll-reveal {
        opacity: 0;
        transform: translateY(24px);
    }
    
    .scroll-reveal.revealed {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Hero decorations animation */
@media (prefers-reduced-motion: no-preference) {
    .hero-decoration {
        animation: float 8s ease-in-out infinite;
    }
    
    .hero-decoration:nth-child(2) {
        animation-delay: -2s;
        animation-duration: 10s;
    }
    
    .hero-decoration:nth-child(3) {
        animation-delay: -4s;
        animation-duration: 7s;
    }
    
    .hero-decoration:nth-child(4) {
        animation-delay: -1s;
        animation-duration: 9s;
    }
    
    .hero-circle {
        animation: float 6s ease-in-out infinite;
    }
    
    .hero-circle:nth-child(2) { animation-delay: -1s; }
    .hero-circle:nth-child(3) { animation-delay: -2s; }
    .hero-circle:nth-child(4) { animation-delay: -3s; }
    .hero-circle:nth-child(5) { animation-delay: -4s; }
}

@keyframes float {
    0%, 100% { transform: translateY(0px) scale(1); }
    50% { transform: translateY(-20px) scale(1.05); }
}

/* Navbar styles */
#navbar {
    background: transparent;
    transition: background 0.4s ease, box-shadow 0.4s ease, padding 0.4s ease;
}

#navbar.scrolled {
    background: rgba(253, 248, 240, 0.95);
    backdrop-filter: blur(12px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

#navbar.scrolled .font-display {
    color: #C0603A !important;
}

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

#mobileMenu.open {
    max-height: 400px;
    opacity: 1;
}

/* Image aspect ratios */
.aspect-\[4\/5\] {
    aspect-ratio: 4/5;
}

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

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

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

::-webkit-scrollbar-thumb:hover {
    background: #C0603A;
}

/* Selection color */
::selection {
    background: #F8C4B8;
    color: #5E2C1E;
}
