/* Custom styles for Sunset Hotel */

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

/* Navbar transitions */
.nav-text {
    transition: color 0.4s ease;
}

#navbar.scrolled {
    background: rgba(255, 255, 255, 0.97);
    backdrop-blur-xl;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.08);
}

#navbar.scrolled .nav-text {
    color: #1f2937;
}

#navbar.scrolled .mobile-link {
    color: #374151;
}

/* Scroll indicator animation */
@keyframes scrollBounce {
    0%, 100% { transform: translateY(0) translateX(-50%); opacity: 0.6; }
    50% { transform: translateY(8px) translateX(-50%); opacity: 1; }
}

.scroll-indicator {
    animation: scrollBounce 2s ease-in-out infinite;
}

/* Reveal animations - progressive enhancement */
.reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

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

/* Hero text gradient animation */
@keyframes shimmer {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* Mobile menu */
#mobileMenu {
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Back to top button */
#backToTop {
    transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s ease;
}

#backToTop.visible {
    opacity: 1;
    transform: translateY(0);
}

#backToTop.hidden {
    opacity: 0;
    transform: translateY(10px);
    visibility: hidden;
}

/* Gallery hover effects */
.gallery-item {
    overflow: hidden;
    border-radius: 1rem;
}

.gallery-item img {
    transition: transform 0.7s ease;
}

.gallery-item:hover img {
    transform: scale(1.05);
}

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

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

::-webkit-scrollbar-thumb {
    background: linear-gradient(to bottom, #be185d, #f59e0b);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(to bottom, #9d174d, #d97706);
}

/* Selection color */
::selection {
    background: #fbcfe8;
    color: #831443;
}

/* Focus styles */
a:focus-visible,
button:focus-visible {
    outline: 2px solid #f59e0b;
    outline-offset: 2px;
    border-radius: 0.25rem;
}

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

/* Subtle pattern overlay for sections */
.section-pattern {
    background-image: radial-gradient(circle at 20% 50%, rgba(190, 24, 93, 0.03) 0%, transparent 50%),
                      radial-gradient(circle at 80% 50%, rgba(245, 158, 11, 0.03) 0%, transparent 50%);
}
