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

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

body {
    overflow-x: hidden;
}

::selection {
    background: #0d9488;
    color: white;
}

/* ===== PRELOADER ===== */
.preloader {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: #07101a;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.preloader.hidden {
    opacity: 0;
    visibility: hidden;
}

.preloader-logo svg {
    animation: preloaderPulse 1.2s ease-in-out infinite;
}

@keyframes preloaderPulse {
    0%, 100% { opacity: 0.4; transform: scale(0.95); }
    50% { opacity: 1; transform: scale(1.05); }
}

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

.navbar.scrolled {
    background: rgba(7, 16, 26, 0.95);
    backdrop-filter: blur(20px);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

.nav-link {
    position: relative;
    font-weight: 500;
    letter-spacing: 0.01em;
}

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

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

.nav-link:hover {
    color: #2dd4bf !important;
}

.mobile-link {
    font-size: 1.1rem;
    font-weight: 500;
    transition: color 0.2s ease;
}

/* ===== BUTTONS ===== */
.btn-primary {
    display: inline-flex;
    align-items: center;
    background: #0d9488;
    color: white;
    font-weight: 600;
    padding: 14px 28px;
    border-radius: 12px;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 2px solid #0d9488;
}

.btn-primary:hover {
    background: #0f766e;
    border-color: #0f766e;
    transform: translateY(-2px);
    box-shadow: 0 12px 40px rgba(13, 148, 136, 0.35);
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    background: transparent;
    color: white;
    font-weight: 600;
    padding: 14px 28px;
    border-radius: 12px;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.btn-secondary:hover {
    border-color: rgba(255, 255, 255, 0.7);
    background: rgba(255, 255, 255, 0.08);
    transform: translateY(-2px);
}

/* ===== TAGS ===== */
.tag {
    display: inline-flex;
    align-items: center;
    background: #ccfbf1;
    color: #0f766e;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 8px 16px;
    border-radius: 50px;
}

.tag-light {
    background: rgba(45, 212, 191, 0.15);
    color: #5eead4;
}

/* ===== CHIPS ===== */
.chip {
    display: inline-block;
    background: #f0fdfa;
    color: #0f766e;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 6px;
    border: 1px solid #ccfbf1;
}

/* ===== STAT CARDS (HERO) ===== */
.stat-card {
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 16px;
    padding: 20px 24px;
    min-width: 180px;
    animation: floatCard 6s ease-in-out infinite;
}

.stat-card.card-1 { animation-delay: 0s; }
.stat-card.card-2 { animation-delay: 1s; }
.stat-card.card-3 { animation-delay: 2s; }

@keyframes floatCard {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.stat-number {
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    font-weight: 800;
    color: #2dd4bf;
    line-height: 1;
    margin-bottom: 6px;
}

.stat-label {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.6);
    font-weight: 500;
    letter-spacing: 0.02em;
}

/* ===== HERO GRID LINES ===== */
.hero-grid-line {
    position: absolute;
    background: rgba(255, 255, 255, 0.04);
}

.line-1 { top: 20%; left: 0; right: 0; height: 1px; }
.line-2 { top: 40%; left: 0; right: 0; height: 1px; }
.line-3 { top: 60%; left: 0; right: 0; height: 1px; }
.line-4 { top: 80%; left: 0; right: 0; height: 1px; }
.line-5 { top: 100%; left: 0; right: 0; height: 1px; }

/* ===== SCROLL INDICATOR ===== */
.scroll-indicator {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    animation: scrollBounce 2s ease-in-out infinite;
    text-decoration: none;
}

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

/* ===== ROOM CARDS ===== */
.room-card {
    background: white;
    border-radius: 20px;
    padding: 8px;
    transition: all 0.4s ease;
    border: 1px solid #e2e8f0;
}

.room-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 25px 60px rgba(15, 37, 56, 0.12);
    border-color: #ccfbf1;
}

.room-image-wrapper {
    position: relative;
    overflow: hidden;
    border-radius: 16px;
}

.room-image {
    transition: transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

.room-card:hover .room-image {
    transform: scale(1.08);
}

/* ===== EXPERIENCE ITEMS ===== */
.experience-item {
    padding: 4px 0;
}

/* ===== AMENITY CARDS ===== */
.amenity-card {
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 20px;
    transition: all 0.4s ease;
}

.amenity-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 50px rgba(15, 37, 56, 0.1);
    border-color: #ccfbf1;
}

.amenity-icon {
    width: 56px;
    height: 56px;
    background: #f0fdfa;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.amenity-card:hover .amenity-icon {
    background: #ccfbf1;
    transform: scale(1.1);
}

/* ===== SCROLL REVEAL ===== */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.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; }
.reveal-delay-5 { transition-delay: 0.5s; }
.reveal-delay-6 { transition-delay: 0.6s; }
.reveal-delay-7 { transition-delay: 0.7s; }
.reveal-delay-8 { transition-delay: 0.8s; }

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .stat-card { display: none; }
    
    .font-serif {
        font-size: clamp(2rem, 8vw, 3.5rem);
    }
    
    .container {
        padding-left: 1.5rem;
        padding-right: 1.5rem;
    }
}

@media (max-width: 640px) {
    .btn-primary, .btn-secondary {
        width: 100%;
        justify-content: center;
        padding: 16px 24px;
    }
}

/* ===== REDUCED MOTION ===== */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    html {
        scroll-behavior: auto;
    }
    
    .reveal {
        opacity: 1;
        transform: none;
    }
    
    .stat-card {
        animation: none;
    }
}
