/* Custom styles for The Glancy's */

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

/* Navbar scroll effect */
#navbar {
    transition: background-color 0.4s ease, box-shadow 0.4s ease, padding 0.4s ease;
}

#navbar.scrolled {
    background-color: rgba(254, 253, 248, 0.97);
    backdrop-filter: blur(12px);
    box-shadow: 0 1px 20px rgba(0, 0, 0, 0.08);
}

/* Nav links */
.nav-link::after {
    content: '';
    display: block;
    width: 0;
    height: 2px;
    background: #14532d;
    transition: width 0.3s ease;
    margin-top: 2px;
}

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

/* Mobile nav links */
.mobile-nav-link {
    position: relative;
}

.mobile-nav-link::after {
    content: '';
    display: block;
    width: 0;
    height: 2px;
    background: #14532d;
    transition: width 0.3s ease;
    margin-top: 2px;
}

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

/* Hero floating cards animation */
@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(2deg); }
    50% { transform: translateY(-10px) rotate(2deg); }
}

@keyframes float2 {
    0%, 100% { transform: translateY(0px) rotate(-1deg); }
    50% { transform: translateY(-8px) rotate(-1deg); }
}

@keyframes float3 {
    0%, 100% { transform: translateY(0px) rotate(1deg); }
    50% { transform: translateY(-6px) rotate(1deg); }
}

/* Intersection Observer animations */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

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

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

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

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

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

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

/* Selection color */
::selection {
    background: #14532d;
    color: #fefdf8;
}

/* Image hover zoom for room cards */
.group:hover .group-hover\:scale-105 {
    transform: scale(1.05);
}

/* Focus styles */
input:focus,
select:focus,
textarea:focus {
    border-color: #14532d !important;
    box-shadow: 0 0 0 3px rgba(20, 83, 45, 0.1) !important;
}

/* Button hover lift effect */
button:hover,
a:hover {
    transition: all 0.3s ease;
}

/* Parallax-like subtle effect on hero */
#hero {
    background-attachment: fixed;
}

@media (max-width: 1023px) {
    #hero {
        background-attachment: scroll;
    }
}

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

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

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

#backToTop.visible {
    opacity: 1;
    visibility: visible;
}

#backToTop:not(.visible) {
    transform: translateY(10px);
}

/* Amenity card shimmer */
.group:hover .group-hover\:scale-110 {
    transform: scale(1.1);
}

/* Decorative line animation */
@keyframes lineExpand {
    from { width: 0; }
    to { width: 2rem; }
}

/* Subtle gradient border on cards */
.bg-white {
    border: 1px solid rgba(245, 233, 184, 0.5);
}
