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

/* Scrollbar */
::-webkit-scrollbar {
    width: 6px;
}
::-webkit-scrollbar-track {
    background: #0a1525;
}
::-webkit-scrollbar-thumb {
    background: #45a872;
    border-radius: 3px;
}

/* Divider Line */
.divider-line {
    height: 1px;
    background: linear-gradient(90deg, transparent, #a3dcb8, transparent);
    max-width: 200px;
    margin: 0 auto;
}

/* Button Styles */
.btn-resort {
    background: #45a872;
    color: #0a1525;
    border: 1px solid #45a872;
    padding: 0.75rem 2rem;
    font-family: 'Inter', system-ui, sans-serif;
    font-size: 0.75rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    text-decoration: none;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 400;
}

.btn-resort:hover {
    background: #6fc792;
    border-color: #6fc792;
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(69, 168, 114, 0.25);
}

.btn-outline-resort {
    background: transparent;
    color: #a3dcb8;
    border: 1px solid rgba(163, 220, 184, 0.4);
    padding: 0.75rem 2rem;
    font-family: 'Inter', system-ui, sans-serif;
    font-size: 0.75rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    text-decoration: none;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 400;
}

.btn-outline-resort:hover {
    background: rgba(163, 220, 184, 0.1);
    border-color: #a3dcb8;
    transform: translateY(-2px);
}

/* Navbar */
.nav-link {
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    position: relative;
}

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

.nav-link:hover {
    color: rgba(255, 255, 255, 0.95);
}

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

.navbar-scrolled .nav-link {
    color: rgba(10, 21, 37, 0.6);
}

.navbar-scrolled .nav-link:hover {
    color: rgba(10, 21, 37, 0.95);
}

.navbar-scrolled .btn-resort {
    background: #45a872;
    color: #0a1525;
}

/* Hero Animations */
.hero-subtitle {
    animation: fadeUp 0.8s ease forwards;
    animation-delay: 0.3s;
    opacity: 0;
}

.hero-headline {
    animation: fadeUp 0.8s ease forwards;
    animation-delay: 0.5s;
    opacity: 0;
}

.hero-body {
    animation: fadeUp 0.8s ease forwards;
    animation-delay: 0.7s;
    opacity: 0;
}

.hero-cta {
    animation: fadeUp 0.8s ease forwards;
    animation-delay: 0.9s;
    opacity: 0;
}

.hero-scroll {
    animation: fadeUp 0.8s ease forwards;
    animation-delay: 1.1s;
    opacity: 0;
}

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Scroll Reveal */
.reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1), transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

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

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

/* Room Cards */
.room-card {
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

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

/* Amenity Items */
.amenity-item {
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Mobile Menu */
.mobile-link {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.4s ease, transform 0.4s ease;
}

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

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

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

#mobile-menu.menu-closed .mobile-link {
    opacity: 0;
    transform: translateY(20px);
}

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

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

#menu-btn.active .menu-line:first-child {
    transform: rotate(45deg) translate(3px, 3px);
}

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

/* Navbar transition */
.navbar-light {
    background: rgba(255, 255, 255, 0.95) !important;
    backdrop-filter: blur(20px);
    box-shadow: 0 1px 0 rgba(0, 0, 0, 0.06);
}

.navbar-light .nav-link {
    color: rgba(10, 21, 37, 0.6);
}

.navbar-light .nav-link:hover {
    color: rgba(10, 21, 37, 0.95);
}

.navbar-light .btn-resort {
    background: #45a872;
    color: #0a1525;
}

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