/* ===== RESET & BASE ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body { overflow-x: hidden; }

/* ===== SCROLLBAR ===== */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: #072A1E; }
::-webkit-scrollbar-thumb { background: #C9A84C; border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: #E8D5A3; }

/* ===== NAV LINKS ===== */
.nav-link { position: relative; }
.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1px;
    background: #C9A84C;
    transition: width 0.3s ease;
}
.nav-link:hover::after { width: 100%; }

/* ===== MOBILE LINKS ===== */
.mobile-link { opacity: 0; transform: translateY(20px); transition: all 0.3s ease; }
#mobileMenu.open .mobile-link { opacity: 1; transform: translateY(0); }
#mobileMenu.open .mobile-link:nth-child(1) { transition-delay: 0.05s; }
#mobileMenu.open .mobile-link:nth-child(2) { transition-delay: 0.1s; }
#mobileMenu.open .mobile-link:nth-child(3) { transition-delay: 0.15s; }
#mobileMenu.open .mobile-link:nth-child(4) { transition-delay: 0.2s; }
#mobileMenu.open .mobile-link:nth-child(5) { transition-delay: 0.25s; }
#mobileMenu.open .mobile-link:nth-child(6) { transition-delay: 0.3s; }

/* ===== HEADER SCROLLED ===== */
#header.scrolled {
    background: rgba(7, 42, 30, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(201, 168, 76, 0.1);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}
#header.scrolled .nav-link { color: rgba(250, 248, 244, 0.9); }

/* ===== FLOAT ANIMATION ===== */
@keyframes float {
    0%, 100% { transform: translateY(0) scale(1); }
    50% { transform: translateY(-20px) scale(1.05); }
}
.animate-float { animation: float 6s ease-in-out infinite; }

/* ===== SCROLL LINE ===== */
@keyframes scroll-line {
    0% { opacity: 0; transform: scaleY(0); transform-origin: top; }
    50% { opacity: 1; transform: scaleY(1); transform-origin: top; }
    51% { transform-origin: bottom; }
    100% { opacity: 0; transform: scaleY(0); transform-origin: bottom; }
}
.animate-scroll-line { animation: scroll-line 2s ease-in-out infinite; }

/* ===== SCROLL REVEAL ===== */
.scroll-reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}
.scroll-reveal.visible {
    opacity: 1;
    transform: translateY(0);
}
.scroll-reveal.visible:nth-child(2) { transition-delay: 0.1s; }
.scroll-reveal.visible:nth-child(3) { transition-delay: 0.2s; }
.scroll-reveal.visible:nth-child(4) { transition-delay: 0.3s; }

/* ===== GOLD GLOW ON HOVER ===== */
.group:hover .group-hover\:from-gold-400\/30 {
    box-shadow: 0 0 20px rgba(201, 168, 76, 0.15);
}

/* ===== PROPERTY CARD SHINE ===== */
.group:hover { box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4); }

/* ===== FORM FOCUS ===== */
input:focus, textarea:focus, select:focus {
    background: rgba(7, 42, 30, 0.8);
}

/* ===== SELECTION ===== */
::selection { background: rgba(201, 168, 76, 0.3); color: #FAF8F4; }

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    html { scroll-padding-top: 73px; }
}
