/* === 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;
}

::selection {
    background: #7B2D3B;
    color: #F5E6D3;
}

/* === Navbar === */
.nav-logo-text {
    transition: color 0.3s ease;
}

.nav-link {
    position: relative;
}

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

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

#navbar.scrolled {
    background: rgba(255, 252, 248, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 1px 20px rgba(0, 0, 0, 0.06);
}

#navbar.scrolled .nav-logo-text {
    color: #2A2424;
}

/* === Mobile Menu === */
.menu-line {
    transition: all 0.3s ease;
}

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

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

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

#mobile-menu.open {
    transform: translateX(0);
}

.mobile-nav-link {
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.3s ease, transform 0.3s ease, color 0.3s ease;
}

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

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

/* === Hero Geometric Shapes === */
.hero-geo {
    position: absolute;
    pointer-events: none;
}

.shape-circle-1 {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(123, 45, 59, 0.06) 0%, transparent 70%);
    border-radius: 50%;
    top: -100px;
    right: -100px;
}

.shape-circle-2 {
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(245, 230, 211, 0.6) 0%, transparent 70%);
    border-radius: 50%;
    bottom: 10%;
    left: -50px;
}

.shape-rect-1 {
    width: 120px;
    height: 120px;
    background: rgba(123, 45, 59, 0.05);
    border-radius: 24px;
    top: 25%;
    right: 5%;
    transform: rotate(15deg);
}

.shape-triangle {
    width: 0;
    height: 0;
    border-left: 60px solid transparent;
    border-right: 60px solid transparent;
    border-bottom: 100px solid rgba(245, 230, 211, 0.4);
    bottom: 15%;
    left: 8%;
    transform: rotate(-20deg);
}

/* === Room Cards === */
.room-card {
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

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

/* === Feature Cards === */
.feature-card {
    transition: transform 0.4s ease;
}

/* === Gallery === */
.gallery-item {
    cursor: pointer;
    position: relative;
}

.gallery-item::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(123, 45, 59, 0);
    transition: background 0.3s ease;
    border-radius: inherit;
}

.gallery-item:hover::after {
    background: rgba(123, 45, 59, 0.1);
}

/* === Scroll Reveal === */
.reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(30px);
    }
    
    .reveal.revealed {
        opacity: 1;
        transform: translateY(0);
    }
    
    .reveal-delay-1 { transition-delay: 0.1s; }
    .reveal-delay-2 { transition-delay: 0.2s; }
    .reveal-delay-3 { transition-delay: 0.3s; }
    .reveal-delay-4 { transition-delay: 0.4s; }
}

/* === Subtle Animations === */
@keyframes float {
    0%, 100% { transform: translateY(0) rotate(15deg); }
    50% { transform: translateY(-12px) rotate(15deg); }
}

@keyframes float-slow {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

.hero-geo.shape-rect-1 {
    animation: float 6s ease-in-out infinite;
}

.hero-geo.shape-triangle {
    animation: float-slow 8s ease-in-out infinite;
}

/* === Responsive === */
@media (max-width: 768px) {
    .shape-circle-1 {
        width: 300px;
        height: 300px;
    }
    
    .shape-circle-2 {
        width: 180px;
        height: 180px;
    }
    
    .shape-rect-1 {
        width: 70px;
        height: 70px;
    }
    
    .shape-triangle {
        border-left-width: 35px;
        border-right-width: 35px;
        border-bottom-width: 60px;
    }
}
