/* Base & Reset */
*, *::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: #fafaf5;
}

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

::-webkit-scrollbar-thumb:hover {
    background: #9f1c37;
}

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

/* Navbar Transition */
#navbar {
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

#navbar.scrolled {
    background: rgba(59, 10, 20, 0.95);
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.05);
}

/* Mobile Menu */
#mobile-menu.open {
    opacity: 1;
    pointer-events: all;
}

#mobile-menu.open .mobile-link {
    animation: fadeUp 0.4s ease forwards;
}

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

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(16px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Menu Button */
.menu-btn-active .menu-line:nth-child(1) {
    transform: rotate(45deg) translate(3px, 3px);
}

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

.menu-btn-active .menu-line:nth-child(3) {
    width: 24px;
    margin-left: 0;
}

/* Room Cards */
.room-card {
    position: relative;
}

.room-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: #7f1b32;
    transition: width 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.room-card:hover::after {
    width: 100%;
}

/* Amenity Items */
.amenity-item {
    position: relative;
    overflow: hidden;
}

.amenity-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 3px;
    height: 0;
    background: #b91c4c;
    transition: height 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.amenity-item:hover::before {
    height: 100%;
}

/* Scroll Reveal Animations */
.reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.reveal[data-delay="1"] { transition-delay: 0.1s; }
.reveal[data-delay="2"] { transition-delay: 0.2s; }
.reveal[data-delay="3"] { transition-delay: 0.3s; }
.reveal[data-delay="4"] { transition-delay: 0.4s; }

@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(32px);
    }
    
    .reveal.visible {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Form Focus States */
input:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: #7f1b32 !important;
    box-shadow: 0 0 0 1px #7f1b32 !important;
}

/* Smooth Image Loading */
img {
    opacity: 1;
    transition: opacity 0.3s ease;
}

/* Print Styles */
@media print {
    #navbar, #mobile-menu, .amenity-item::before {
        display: none !important;
    }
    
    body {
        color: #000;
        background: #fff;
    }
}
