/* Mills Falls — Custom Styles */

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

/* Writing mode for vertical text */
.writing-mode-vertical {
    writing-mode: vertical-rl;
    text-orientation: mixed;
}

/* Navbar states */
.nav-scrolled {
    background: rgba(13, 17, 23, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(111, 123, 141, 0.1);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

.nav-scrolled .nav-link {
    color: rgba(188, 204, 220, 0.8);
}

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

.menu-open .menu-line:first-child {
    top: 12px;
    transform: rotate(45deg);
}

.menu-open .menu-line:last-child {
    top: 12px;
    transform: rotate(-45deg);
}

/* Scroll reveal animations — progressive enhancement via JS */
.reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

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

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    .reveal {
        opacity: 1;
        transform: none;
        transition: none;
    }
    
    html {
        scroll-behavior: auto;
    }
    
    .room-card:hover img,
    .aspect-square img {
        transform: none;
    }
}

/* Room card hover */
.room-card {
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.room-card:hover {
    transform: translateY(-4px);
}

/* Feature card hover */
.feature-card {
    transition: border-color 0.4s ease, transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.feature-card:hover {
    transform: translateY(-2px);
}

/* Selection color */
::selection {
    background: rgba(79, 211, 167, 0.3);
    color: #e2fbf2;
}

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

::-webkit-scrollbar-track {
    background: #0d1117;
}

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

::-webkit-scrollbar-thumb:hover {
    background: #404e5c;
}

/* Focus styles */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
    outline: 2px solid #4fd3a7;
    outline-offset: 2px;
    border-radius: 4px;
}
