/* Custom Styles for Glacial Goodies */

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

body {
    /* Fallback if Tailwind config fails */
    font-family: 'Lato', sans-serif;
}

h1, h2, h3, h4, .font-serif {
    font-family: 'Playfair Display', serif;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #F9F8F6;
}
::-webkit-scrollbar-thumb {
    background: #d1d5db;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #9ca3af;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translate3d(0, 40px, 0);
    }
    to {
        opacity: 1;
        transform: translate3d(0, 0, 0);
    }
}

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translate3d(-40px, 0, 0);
    }
    to {
        opacity: 1;
        transform: translate3d(0, 0, 0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translate3d(40px, 0, 0);
    }
    to {
        opacity: 1;
        transform: translate3d(0, 0, 0);
    }
}

/* Initial states for animation elements */
.reveal-up,
.reveal-left,
.reveal-right {
    opacity: 0;
    /* We use JS to add the animated class, but defaults are visible for no-JS */
}

/* Animation Classes applied by JS */
.reveal-up.animate {
    animation: fadeInUp 0.8s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}

.reveal-left.animate {
    animation: fadeInLeft 0.8s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}

.reveal-right.animate {
    animation: fadeInRight 0.8s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}

/* Hero Content Animation */
.hero-content {
    opacity: 0;
    animation: fadeInUp 1s cubic-bezier(0.2, 0.8, 0.2, 1) 0.3s forwards;
}

/* Image Zoom Effect */
img {
    display: block;
    max-width: 100%;
    height: auto;
}

/* Mobile Menu Transitions */
#mobile-menu {
    backdrop-filter: blur(10px);
    background-color: rgba(249, 248, 246, 0.95);
}

/* Navbar Glass Effect on Scroll */
.nav-scrolled {
    background-color: rgba(249, 248, 246, 0.95);
    backdrop-filter: blur(8px);
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
}

/* Focus Styles for Accessibility */
a:focus-visible, button:focus-visible {
    outline: 2px solid #4f8250;
    outline-offset: 4px;
    border-radius: 4px;
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    .reveal-up,
    .reveal-left,
    .reveal-right,
    .hero-content {
        opacity: 1;
        animation: none;
    }
    
    img, a, button {
        transition: none;
    }
    
    html {
        scroll-behavior: auto;
    }
}
