/* Custom styles for Rollway Beach */

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

/* Navbar transition */
.nav-link {
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: #ff6b3f;
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

/* Amenity card animation */
.amenity-card {
    opacity: 1;
    transform: translateY(0);
    transition: all 0.4s ease;
}

/* Scroll reveal for below-fold sections */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 1;
        transform: translateY(0);
        transition: opacity 0.6s ease, transform 0.6s ease;
    }
}

/* Mobile menu transitions */
#mobileMenu {
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

#mobileMenu.open {
    opacity: 1;
    pointer-events: all;
}

#mobileMenu.closed {
    opacity: 0;
    pointer-events: none;
}

/* Hamburger animation */
#bar1.open {
    transform: translateY(7px) rotate(45deg);
}

#bar2.open {
    opacity: 0;
}

#bar3.open {
    transform: translateY(-7px) rotate(-45deg);
}

/* Form focus styles */
input:focus,
textarea:focus {
    outline: none;
}

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

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

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

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

/* Selection color */
::selection {
    background: #ff6b3f;
    color: white;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}
