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

/* ── Navbar ── */
#navbar {
    background: transparent;
    transition: background 0.4s ease, box-shadow 0.4s ease, backdrop-filter 0.4s ease;
}
#navbar.scrolled {
    background: rgba(59, 7, 100, 0.92);
    backdrop-filter: blur(16px);
    box-shadow: 0 4px 30px rgba(0,0,0,0.15);
}
.nav-link { position: relative; }
.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: #fbbf24;
    transition: width 0.3s ease;
}
.nav-link:hover::after { width: 100%; }

/* ── Mobile Menu ── */
#mobile-menu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, padding 0.4s ease;
}
#mobile-menu.open {
    max-height: 400px;
    padding-top: 0;
}
.mobile-link {
    display: block;
    padding: 8px 0;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}
.mobile-link:last-child { border-bottom: none; }

/* ── Hero ── */
.hero-gradient {
    background: linear-gradient(135deg, #3b0764 0%, #7B2D8B 30%, #a855f7 55%, #c084fc 75%, #e9d5ff 100%);
}
.hero-pattern {
    background-image: radial-gradient(circle at 25% 25%, rgba(251,191,36,0.15) 0%, transparent 50%),
                      radial-gradient(circle at 75% 75%, rgba(168,85,247,0.2) 0%, transparent 50%);
}
.hero-orb { pointer-events: none; }

/* ── Scroll Reveal ── */
.scroll-reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}
.scroll-reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

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

/* ── Testimonial Cards ── */
/* Stars are inline SVG, no extra styles needed */

/* ── Form ── */
input:focus, select:focus, textarea:focus {
    border-color: #c084fc !important;
    box-shadow: 0 0 0 4px rgba(192,132,252,0.15) !important;
}

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

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(24px); }
    to { opacity: 1; transform: translateY(0); }
}
.animate-fade-in-up { animation: fadeInUp 0.8s ease forwards; opacity: 0; }

/* ── Utility ── */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }
    html { scroll-behavior: auto; }
    .scroll-reveal { opacity: 1; transform: none; }
}
