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

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

body {
    min-height: 100vh;
}

img {
    display: block;
    max-width: 100%;
}

::selection {
    background-color: rgba(13, 148, 136, 0.2);
    color: inherit;
}

/* ===== Scrollbar ===== */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #0f172a;
}
::-webkit-scrollbar-thumb {
    background: #115e59;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #0d9488;
}

/* ===== Hero Animations ===== */
.hero-eyebrow {
    animation: slideUp 0.8s ease forwards;
    animation-delay: 0.2s;
    opacity: 0;
    transform: translateY(20px);
}

.hero-title {
    animation: slideUp 0.8s ease forwards;
    animation-delay: 0.4s;
    opacity: 0;
    transform: translateY(30px);
}

.hero-subtitle {
    animation: slideUp 0.8s ease forwards;
    animation-delay: 0.6s;
    opacity: 0;
    transform: translateY(20px);
}

@keyframes slideUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Scroll line animation */
.scroll-line {
    animation: scrollDown 1.5s ease-in-out infinite;
}

@keyframes scrollDown {
    0% { transform: translateY(-100%); }
    50% { transform: translateY(100%); }
    100% { transform: translateY(100%); }
}

/* ===== Section Animations ===== */
.section-eyebrow,
.section-title,
.section-text {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.section-eyebrow.visible,
.section-title.visible,
.section-text.visible {
    opacity: 1;
    transform: translateY(0);
}

.section-eyebrow { transition-delay: 0.1s; }
.section-title { transition-delay: 0.2s; }
.section-text { transition-delay: 0.3s; }

/* Divider */
.divider-line {
    transition: width 1s ease;
}
.divider-line.visible {
    width: 100%;
}

/* ===== Room Cards ===== */
.room-card {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}
.room-card.visible {
    opacity: 1;
    transform: translateY(0);
}
.room-card:nth-child(2) {
    transition-delay: 0.15s;
}

/* ===== Feature Tiles ===== */
.feature-tile {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}
.feature-tile.visible {
    opacity: 1;
    transform: translateY(0);
}
.feature-tile:nth-child(1) { transition-delay: 0.05s; }
.feature-tile:nth-child(2) { transition-delay: 0.1s; }
.feature-tile:nth-child(3) { transition-delay: 0.15s; }
.feature-tile:nth-child(4) { transition-delay: 0.2s; }

/* ===== Mobile Menu ===== */
.mobile-menu-open {
    overflow: hidden;
}

#mobile-menu {
    transition: opacity 0.5s ease, pointer-events 0.5s ease;
}
#mobile-menu.open {
    opacity: 1;
    pointer-events: all;
}

.mobile-link {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.4s ease, transform 0.4s ease;
}
#mobile-menu.open .mobile-link {
    opacity: 1;
    transform: translateY(0);
}
#mobile-menu.open .mobile-link:nth-child(1) { transition-delay: 0.1s; }
#mobile-menu.open .mobile-link:nth-child(2) { transition-delay: 0.2s; }
#mobile-menu.open .mobile-link:nth-child(3) { transition-delay: 0.3s; }
#mobile-menu.open .mobile-link:nth-child(4) { transition-delay: 0.4s; }

/* ===== Navbar ===== */
#navbar.scrolled {
    background: rgba(2, 6, 23, 0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding-top: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(255,255,255,0.06);
}

/* ===== Parallax ===== */
.parallax-bg {
    will-change: transform;
}

/* ===== Mobile Menu Lines ===== */
.menu-line {
    transition: transform 0.3s ease, opacity 0.3s ease, width 0.3s ease;
}
body.menu-open .menu-line:first-child {
    transform: rotate(45deg) translate(4px, 4px);
}
body.menu-open .menu-line:last-child {
    opacity: 0;
    width: 0;
}

/* ===== Focus Styles ===== */
input:focus,
textarea:focus,
button:focus {
    outline: none;
}

/* ===== Responsive Tweaks ===== */
@media (max-width: 768px) {
    .font-serif {
        line-height: 1.05;
    }
}
