/* Custom styles for Tweety's Diamond Inn */

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

/* Reveal animation for below-fold content */
.reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

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

/* Hero reveal animations (above the fold - always visible) */
.hero-reveal {
    opacity: 1;
    transform: translateY(0);
    animation: heroFadeIn 0.8s ease-out forwards;
}

.hero-reveal:nth-child(2) {
    animation-delay: 0.2s;
}

.hero-reveal:nth-child(3) {
    animation-delay: 0.4s;
}

.hero-reveal:nth-child(4) {
    animation-delay: 0.6s;
}

@keyframes heroFadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

::-webkit-scrollbar-track {
    background: #1a1a1a;
}

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

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

/* Focus styles */
a:focus-visible,
button:focus-visible {
    outline: 2px solid #FF6B6B;
    outline-offset: 2px;
}

/* Mobile menu transitions */
#mobile-menu {
    transition: opacity 0.3s ease;
}

#mobile-menu:not(.hidden) {
    opacity: 1;
}

/* Image loading placeholder */
img {
    background: linear-gradient(90deg, #2d2d2d 25%, #3d3d3d 50%, #2d2d2d 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
}

img.loaded {
    animation: none;
    background: none;
}

@keyframes shimmer {
    0% {
        background-position: -200% 0;
    }
    100% {
        background-position: 200% 0;
    }
}
