/* ===== 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 {
    overflow-x: hidden;
}

::selection {
    background: #C9A84C;
    color: #0A1628;
}

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

#navbar.scrolled {
    background: rgba(250, 250, 247, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 1px 0 rgba(10, 22, 40, 0.06);
}

.nav-logo-text {
    transition: color 0.3s ease;
}

#navbar:not(.scrolled) .nav-logo-text {
    color: #0A1628;
}

#navbar.scrolled .nav-logo-text {
    color: #0A1628;
}

/* ===== Mobile Menu ===== */
.mobile-line {
    transition: all 0.3s ease;
}

#mobile-toggle.active .mobile-line:nth-child(1) {
    transform: rotate(45deg) translate(3px, 3px);
}

#mobile-toggle.active .mobile-line:nth-child(2) {
    opacity: 0;
    width: 0;
}

#mobile-toggle.active .mobile-line:nth-child(3) {
    transform: rotate(-45deg) translate(3px, -3px);
}

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

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

.mobile-link {
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

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

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

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

.hero-title {
    animation: slideUp 0.8s ease forwards;
    animation-delay: 0.4s;
    opacity: 0;
}

.hero-title span {
    animation: slideUp 0.8s ease forwards;
    opacity: 0;
}

.hero-title span:nth-child(1) { animation-delay: 0.4s; }
.hero-title span:nth-child(2) { animation-delay: 0.5s; }
.hero-title span:nth-child(3) { animation-delay: 0.6s; }
.hero-title span:nth-child(4) { animation-delay: 0.7s; }

.hero-desc {
    animation: slideUp 0.8s ease forwards;
    animation-delay: 0.8s;
    opacity: 0;
}

.hero-cta,
.hero-cta-contact {
    animation: slideUp 0.8s ease forwards;
    animation-delay: 1s;
    opacity: 0;
}

.hero-img-main {
    animation: fadeIn 1.2s ease forwards;
    animation-delay: 0.5s;
    opacity: 0;
}

.hero-img-accent {
    animation: fadeIn 1.2s ease forwards;
    animation-delay: 0.8s;
    opacity: 0;
}

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

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

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* ===== Scroll Reveal ===== */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal.visible {
    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; }

/* ===== About Section ===== */
.about-img {
    transition: transform 0.8s ease;
}

.about-img-wrap:hover .about-img {
    transform: scale(1.02);
}

.about-label {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.about-title {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease 0.1s, transform 0.6s ease 0.1s;
}

.about-body {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease 0.2s, transform 0.6s ease 0.2s;
}

.about-feature {
    opacity: 0;
    transform: translateY(15px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.about-label.visible,
.about-title.visible,
.about-body.visible,
.about-feature.visible {
    opacity: 1;
    transform: translateY(0);
}

.about-body.visible:nth-of-type(2) { transition-delay: 0.3s; }
.about-feature.visible:nth-of-type(1) { transition-delay: 0.35s; }
.about-feature.visible:nth-of-type(2) { transition-delay: 0.4s; }
.about-feature.visible:nth-of-type(3) { transition-delay: 0.45s; }

/* ===== Sites Section ===== */
.sites-card {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.sites-card.visible {
    opacity: 1;
    transform: translateY(0);
}

.sites-card:nth-child(2) { transition-delay: 0.15s; }

.sites-card-img-inner {
    will-change: transform;
}

/* ===== Amenities ===== */
.amenity-card {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.amenity-card.visible {
    opacity: 1;
    transform: translateY(0);
}

.amenity-card:nth-child(1) { transition-delay: 0s; }
.amenity-card:nth-child(2) { transition-delay: 0.05s; }
.amenity-card:nth-child(3) { transition-delay: 0.1s; }
.amenity-card:nth-child(4) { transition-delay: 0.15s; }
.amenity-card:nth-child(5) { transition-delay: 0.2s; }
.amenity-card:nth-child(6) { transition-delay: 0.25s; }
.amenity-card:nth-child(7) { transition-delay: 0.3s; }
.amenity-card:nth-child(8) { transition-delay: 0.35s; }

/* ===== Gallery ===== */
.gallery-img {
    will-change: transform;
}

/* ===== Contact Form ===== */
.contact-input {
    caret-color: #C9A84C;
}

.contact-input::placeholder {
    color: rgba(250, 250, 247, 0.2);
}

.contact-input:focus {
    border-bottom-color: #C9A84C;
}

.contact-submit:active {
    transform: scale(0.98);
}

/* ===== Utility ===== */
.text-balance {
    text-wrap: balance;
}

/* ===== Responsive ===== */
@media (max-width: 767px) {
    .hero-title {
        font-size: 3rem;
    }
    
    .hero-title span {
        font-size: 3rem;
    }
}

@media (min-width: 768px) and (max-width: 1023px) {
    .hero-title {
        font-size: 4rem;
    }
}

/* ===== Print ===== */
@media print {
    #navbar, #mobile-menu { display: none; }
    body { background: white; }
}
