/* ── Base & Utilities ── */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }

/* ── Nav link underline animation ── */
.nav-link { position: relative; }
.nav-link::after {
    content: '';
    position: absolute;
    bottom: 4px;
    left: 50%;
    width: 0;
    height: 2px;
    background: #FBBF24;
    transition: all 0.2s ease;
    transform: translateX(-50%);
}
.nav-link:hover::after { width: 60%; }

/* ── Floating card animations ── */
.floating-card {
    animation: float 4s ease-in-out infinite;
}
.card-1 { animation-delay: 0s; }
.card-2 { animation-delay: -1.3s; }
.card-3 { animation-delay: -2.6s; }

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

/* ── Scroll reveal (progressive enhancement) ── */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(30px);
        transition: opacity 0.6s ease, transform 0.6s ease;
    }
    .reveal.revealed {
        opacity: 1;
        transform: translateY(0);
    }
    .reveal:nth-child(2) { transition-delay: 0.1s; }
    .reveal:nth-child(3) { transition-delay: 0.2s; }
    .reveal:nth-child(4) { transition-delay: 0.3s; }
}

/* ── Service card hover glow ── */
.service-card:hover {
    box-shadow: 0 0 40px rgba(251, 191, 36, 0.08);
}

/* ── Testimonial card hover ── */
.testimonial-card:hover {
    border-color: rgba(251, 191, 36, 0.3);
    transform: translateY(-4px);
    transition: all 0.3s ease;
}

/* ── Gallery item hover ── */
.gallery-item img {
    transition: transform 0.5s ease;
}

/* ── Mobile menu transition ── */
#mobileMenu {
    transition: max-height 0.3s ease, opacity 0.3s ease;
}
#mobileMenu.hidden {
    max-height: 0;
    opacity: 0;
    overflow: hidden;
}
#mobileMenu:not(.hidden) {
    max-height: 500px;
    opacity: 1;
}

/* ── Custom scrollbar ── */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: #1a0f2e; }
::-webkit-scrollbar-thumb { background: #591A66; border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: #811AAF; }

/* ── Selection color ── */
::selection { background: rgba(251, 191, 36, 0.3); color: #fff; }
