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

/* ── Custom Scrollbar ── */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: #0A1628; }
::-webkit-scrollbar-thumb { background: #1B3A6E; border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: #C9A84C; }

/* ── Selection ── */
::selection { background: rgba(201, 168, 76, 0.3); color: #F7F0CC; }

/* ── Floating Card Animations ── */
.floating-card {
    animation: float 6s ease-in-out infinite;
}
.floating-card:nth-child(1) { animation-delay: 0s; }
.floating-card:nth-child(2) { animation-delay: -2s; }
.floating-card:nth-child(3) { animation-delay: -4s; }

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-12px); }
}

/* ── Service Cards ── */
.service-card {
    position: relative;
    overflow: hidden;
}
.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, #C9A84C, transparent);
    opacity: 0;
    transition: opacity 0.5s ease;
}
.service-card:hover::before { opacity: 1; }

/* ── Area Cards ── */
.area-card {
    position: relative;
}
.area-card::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 16px;
    border: 1px solid transparent;
    transition: border-color 0.5s ease;
    pointer-events: none;
}
.area-card:hover::after { border-color: rgba(201, 168, 76, 0.3); }

/* ── Testimonial Cards ── */
.testimonial-card {
    transition: transform 0.5s ease, box-shadow 0.5s ease;
}
.testimonial-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

/* ── Scroll Reveal ── */
.reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.8s ease, transform 0.8s ease;
}
.reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(30px);
    }
    .reveal.revealed {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ── Navbar Scroll State ── */
.navbar-scrolled {
    background: rgba(4, 11, 24, 0.95) !important;
    backdrop-filter: blur(20px) !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05) !important;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3) !important;
}

/* ── Mobile Menu ── */
.mobile-menu-open {
    opacity: 1 !important;
    pointer-events: all !important;
}

/* ── Menu Lines Animation ── */
.menu-open .menu-line:nth-child(1) {
    transform: translateY(6px) rotate(45deg);
}
.menu-open .menu-line:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}
.menu-open .menu-line:nth-child(3) {
    transform: translateY(-6px) rotate(-45deg);
}

/* ── Gold Gradient Text (utility) ── */
.text-gold-gradient {
    background: linear-gradient(135deg, #C9A84C, #F0E19A, #C9A84C);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ── Pulse dot ── */
@keyframes pulse-gold {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(1.5); }
}
.animate-pulse { animation: pulse-gold 2s ease-in-out infinite; }

/* ── Responsive adjustments ── */
@media (max-width: 768px) {
    .floating-card { display: none; }
}
