/* ===================== BASE & RESET ===================== */
*, *::before, *::after {
    box-sizing: border-box;
}

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

body {
    margin: 0;
    overflow-x: hidden;
}

/* ===================== HERO ANIMATIONS ===================== */
@keyframes float-1 {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    33% { transform: translate(30px, -30px) rotate(5deg); }
    66% { transform: translate(-20px, 20px) rotate(-3deg); }
}

@keyframes float-2 {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    33% { transform: translate(-25px, 25px) rotate(-5deg); }
    66% { transform: translate(15px, -15px) rotate(3deg); }
}

@keyframes float-3 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(20px, -20px) scale(1.05); }
}

@keyframes float-4 {
    0%, 100% { transform: translate(0, 0); }
    50% { transform: translate(-15px, 15px); }
}

@keyframes float-5 {
    0%, 100% { transform: translate(0, 0) rotate(45deg); }
    50% { transform: translate(25px, -25px) rotate(60deg); }
}

.hero-shapes {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
}

.shape {
    position: absolute;
    border-radius: 50%;
    opacity: 0.15;
}

.shape-1 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, #ff6b6b, transparent 70%);
    top: -100px;
    right: -100px;
    animation: float-1 12s ease-in-out infinite;
}

.shape-2 {
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, #e8f5f0, transparent 70%);
    bottom: 10%;
    left: -50px;
    animation: float-2 15s ease-in-out infinite;
}

.shape-3 {
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, #f0eef5, transparent 70%);
    top: 30%;
    left: 10%;
    animation: float-3 10s ease-in-out infinite;
}

.shape-4 {
    width: 150px;
    height: 150px;
    background: radial-gradient(circle, #ffe0e0, transparent 70%);
    bottom: 20%;
    right: 15%;
    animation: float-4 13s ease-in-out infinite;
}

.shape-5 {
    width: 100px;
    height: 100px;
    background: radial-gradient(circle, #ffa4a4, transparent 70%);
    top: 20%;
    right: 30%;
    animation: float-5 11s ease-in-out infinite;
}

/* Hero badge */
.hero-badge {
    animation: fadeInDown 0.8s ease-out both;
}

/* ===================== SCROLL REVEAL ANIMATIONS ===================== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-40px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(40px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Default: elements are visible (progressive enhancement) */
.reveal-up,
.reveal-left,
.reveal-right {
    opacity: 1;
    transform: none;
}

/* When JS is enabled and motion is preferred, add animations */
:not(.reduce-motion) .reveal-up {
    animation: fadeInUp 0.7s ease-out both;
}

:not(.reduce-motion) .reveal-left {
    animation: fadeInLeft 0.7s ease-out both;
}

:not(.reduce-motion) .reveal-right {
    animation: fadeInRight 0.7s ease-out both;
}

/* Stagger delays */
.reveal-up:nth-child(2) { animation-delay: 0.1s; }
.reveal-up:nth-child(3) { animation-delay: 0.2s; }
.reveal-up:nth-child(4) { animation-delay: 0.3s; }
.reveal-up:nth-child(5) { animation-delay: 0.4s; }

/* ===================== SCROLL-TRIGGERED ANIMATIONS ===================== */
/* These are applied by JS only — content is visible by default */
.reveal-on-scroll {
    opacity: 1;
    transform: none;
    transition: opacity 0.7s ease-out, transform 0.7s ease-out;
}

.reveal-on-scroll.revealed {
    opacity: 1;
    transform: none;
}

.reveal-on-scroll[data-direction="up"] {
    transform: translateY(30px);
}

.reveal-on-scroll[data-direction="left"] {
    transform: translateX(-30px);
}

.reveal-on-scroll[data-direction="right"] {
    transform: translateX(30px);
}

/* ===================== GALLERY SCROLL ===================== */
@keyframes scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

.animate-scroll {
    animation: scroll 30s linear infinite;
}

@media (prefers-reduced-motion: reduce) {
    .animate-scroll {
        animation: none;
    }
    
    .hero-shapes .shape {
        animation: none;
    }
    
    .reveal-on-scroll {
        transition: none;
    }
}

/* ===================== ROOM CARDS ===================== */
.room-card {
    transition: transform 0.4s ease-out;
}

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

/* ===================== NAVBAR ===================== */
#navbar {
    background: transparent;
    transition: background 0.4s ease, box-shadow 0.4s ease, backdrop-filter 0.4s ease;
}

#navbar.scrolled {
    background: rgba(253, 248, 240, 0.92);
    backdrop-filter: blur(16px);
    box-shadow: 0 1px 0 rgba(0, 0, 0, 0.06);
}

.nav-link {
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: #ee5a5a;
    transition: width 0.3s ease;
    border-radius: 1px;
}

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

/* ===================== MOBILE MENU ===================== */
.mobile-link {
    opacity: 1;
    transform: none;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

#mobileMenu.open {
    opacity: 1;
    pointer-events: all;
}

#mobileMenu.closed {
    opacity: 0;
    pointer-events: none;
}

.menu-line {
    transition: transform 0.3s ease, opacity 0.3s ease;
}

#menuBtn.active .menu-line:nth-child(1) {
    transform: translateY(6px) rotate(45deg);
}

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

#menuBtn.active .menu-line:nth-child(3) {
    transform: translateY(-6px) rotate(-45deg);
}

/* ===================== FEATURE CARDS ===================== */
.feature-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
}

/* ===================== SUBTLE TEXT SELECTION ===================== */
::selection {
    background: #ffc8c8;
    color: #1a1a1a;
}

/* ===================== FOCUS STYLES ===================== */
a:focus-visible,
button:focus-visible {
    outline: 2px solid #ee5a5a;
    outline-offset: 2px;
    border-radius: 4px;
}

/* ===================== RESPONSIVE TWEAKS ===================== */
@media (max-width: 640px) {
    .font-serif {
        line-height: 1.1;
    }
}
