/* Custom Styles for Moose Creek Lodge */

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

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #040d18;
}
::-webkit-scrollbar-thumb {
    background: #1a3a66;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #2da865;
}

/* Logo animations */
@keyframes logoSpin {
    0%, 100% { transform: rotate(0deg); }
    50% { transform: rotate(3deg); }
}

.logo-star {
    animation: logoSpin 4s ease-in-out infinite;
    transform-origin: center;
}

/* Hero parallax effect */
#hero img {
    will-change: transform;
}

/* Room card hover effects */
.room-card {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.room-card.visible {
    opacity: 1;
    transform: translateY(0);
}

.room-card:hover img {
    transform: scale(1.05);
}

/* Feature item animations */
.feature-item {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.feature-item.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Navigation styles */
.nav-link {
    position: relative;
}

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

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

/* Mobile menu animations */
#mobileMenu {
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

.mobile-link {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.4s ease, transform 0.4s ease;
}

#mobileMenu.open .mobile-link {
    opacity: 1;
    transform: translateY(0);
}

#mobileMenu.open .mobile-link:nth-child(1) { transition-delay: 0.1s; }
#mobileMenu.open .mobile-link:nth-child(2) { transition-delay: 0.15s; }
#mobileMenu.open .mobile-link:nth-child(3) { transition-delay: 0.2s; }
#mobileMenu.open .mobile-link:nth-child(4) { transition-delay: 0.25s; }

/* Menu button animations */
.menu-line {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

#menuBtn.active .menu-line:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

#menuBtn.active .menu-line:nth-child(2) {
    opacity: 0;
    transform: translateX(-10px);
}

#menuBtn.active .menu-line:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
    width: 24px;
}

/* Form focus styles */
input:focus,
textarea:focus {
    box-shadow: 0 0 0 1px rgba(45, 168, 101, 0.2);
}

/* Button hover glow */
button:hover,
a:hover {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Section fade-in animations */
section {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

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

/* Decorative line animations */
.h-px.bg-gradient-to-r {
    transition: opacity 0.5s ease;
}

/* Responsive typography */
@media (max-width: 640px) {
    .font-serif {
        line-height: 1.1;
    }
}

/* Print styles */
@media print {
    #navbar,
    #menuBtn,
    button {
        display: none;
    }
    
    body {
        background: white;
        color: black;
    }
}
