/* Base Styles */
*, *::before, *::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    overflow-x: hidden;
}

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

::-webkit-scrollbar-track {
    background: #1A222B;
}

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

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

/* Selection */
::selection {
    background: #E07A5F;
    color: #0F1419;
}

/* Hero Background Animation */
.hero-bg {
    animation: heroZoom 20s ease-in-out infinite alternate;
}

@keyframes heroZoom {
    0% { transform: scale(1.05); }
    100% { transform: scale(1.15); }
}

/* Scroll Indicator Animation */
.scroll-dot {
    animation: scrollBounce 2s ease-in-out infinite;
}

@keyframes scrollBounce {
    0%, 100% { top: 0; opacity: 1; }
    50% { top: 16px; opacity: 0.3; }
}

/* Navbar Scroll State */
.nav-scrolled {
    background: rgba(15, 20, 25, 0.95) !important;
    backdrop-filter: blur(20px);
    box-shadow: 0 1px 0 rgba(224, 122, 95, 0.1);
}

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

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

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

/* Hamburger Animation */
#menu-toggle.active .hamburger-line:nth-child(1) {
    top: 50%;
    transform: rotate(45deg);
}

#menu-toggle.active .hamburger-line:nth-child(2) {
    opacity: 0;
}

#menu-toggle.active .hamburger-line:nth-child(3) {
    top: 50%;
    transform: rotate(-45deg);
    background: #E07A5F;
}

/* Reveal Animations */
.reveal-up,
.reveal-left,
.reveal-right {
    opacity: 1;
    transform: none;
    transition: opacity 0.8s ease, transform 0.8s ease;
}

@media (prefers-reduced-motion: no-preference) {
    .reveal-up {
        opacity: 0;
        transform: translateY(40px);
    }
    
    .reveal-left {
        opacity: 0;
        transform: translateX(-40px);
    }
    
    .reveal-right {
        opacity: 0;
        transform: translateX(40px);
    }
    
    .reveal-up.revealed,
    .reveal-left.revealed,
    .reveal-right.revealed {
        opacity: 1;
        transform: none;
    }
}

/* Room Card Hover */
.group:hover .group-hover\:scale-105 {
    transform: scale(1.05);
}

/* Button Focus Styles */
button:focus-visible,
a:focus-visible {
    outline: 2px solid #E07A5F;
    outline-offset: 2px;
}

/* Input Focus Styles */
input:focus,
textarea:focus {
    border-color: #E07A5F !important;
    box-shadow: 0 0 0 3px rgba(224, 122, 95, 0.1) !important;
}

/* Smooth image loading */
img {
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
}

/* Print Styles */
@media print {
    .hero-bg,
    .scroll-dot,
    #navbar {
        display: none !important;
    }
    
    body {
        color: #000;
        background: #fff;
    }
    
    .font-serif {
        color: #1A222B;
    }
}

/* Responsive Adjustments */
@media (max-width: 767px) {
    .hero-bg {
        animation: none;
    }
    
    #hero h1 {
        font-size: 2.5rem;
    }
    
    #hero h1 br {
        display: none;
    }
    
    #hero h1::after {
        content: ' Here';
        display: block;
    }
}

@media (min-width: 768px) {
    #hero h1 br {
        display: block;
    }
    
    #hero h1::after {
        content: '';
    }
}
