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

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

body {
    overflow-x: hidden;
}

::selection {
    background: rgba(201, 169, 110, 0.3);
    color: #F4F0E8;
}

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

.animate-fadeUp {
    animation: fadeUp 0.8s ease-out forwards;
}

/* === Scroll Reveal === */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease, transform 0.8s 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; }

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

#navbar.scrolled {
    background: rgba(8, 15, 10, 0.92);
    backdrop-filter: blur(20px);
    box-shadow: 0 1px 0 rgba(201, 169, 110, 0.1);
}

.nav-link {
    position: relative;
}

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

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

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

/* === Mobile Menu === */
.mobile-link {
    font-family: 'Cormorant Garamond', Georgia, serif;
}

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

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

.menu-line {
    transition: all 0.3s ease;
}

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

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

/* === Room Cards === */
.room-card {
    position: relative;
}

.room-card::before {
    content: '';
    position: absolute;
    inset: 0;
    border: 1px solid transparent;
    transition: border-color 0.4s ease;
    z-index: 10;
    pointer-events: none;
    border-radius: inherit;
}

.room-card:hover::before {
    border-color: rgba(201, 169, 110, 0.3);
}

/* === Feature Cards === */
.feature-card {
    padding: 2rem 1.5rem;
    border: 1px solid rgba(244, 240, 232, 0.06);
    transition: border-color 0.4s ease, background 0.4s ease;
}

.feature-card:hover {
    border-color: rgba(201, 169, 110, 0.2);
    background: rgba(201, 169, 110, 0.03);
}

/* === Form Styles === */
input:focus,
textarea:focus,
select:focus {
    border-color: rgba(201, 169, 110, 0.6) !important;
    box-shadow: 0 0 0 3px rgba(201, 169, 110, 0.08);
}

input::placeholder,
textarea::placeholder {
    color: rgba(244, 240, 232, 0.15);
}

/* === Custom Scrollbar === */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #080F0A;
}

::-webkit-scrollbar-thumb {
    background: rgba(201, 169, 110, 0.3);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(201, 169, 110, 0.5);
}

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

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