/* Custom styles for Tommy Hall */

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

/* Navbar scroll effect */
.navbar-scrolled {
    background: rgba(15, 15, 24, 0.95) !important;
    backdrop-filter: blur(20px) !important;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3) !important;
}

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

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

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

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

/* Selection color */
::selection {
    background: #ffc4b0;
    color: #1a1a2e;
}

/* Hero parallax effect */
.hero-bg {
    will-change: transform;
}

/* Subtle gradient overlay for rooms section */
.room-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(26, 26, 46, 0.4) 0%, transparent 50%);
    opacity: 0;
    transition: opacity 0.5s ease;
    border-radius: inherit;
}

.room-card:hover::before {
    opacity: 1;
}

/* Coral accent underline animation */
.text-coral-500 {
    position: relative;
}

/* Fade in animation for scroll sections */
.fade-in-section {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

/* Button hover glow effect */
.btn-glow:hover {
    box-shadow: 0 0 40px rgba(255, 87, 51, 0.4) !important;
}

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

#mobile-menu.open {
    max-height: 400px;
}

/* Image hover zoom with overflow hidden */
img {
    transition: transform 0.7s ease;
}

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

/* Focus visible styles */
:focus-visible {
    outline: 2px solid #ff5733;
    outline-offset: 2px;
}

/* Loading state for buttons */
button:active {
    transform: scale(0.98);
}
