/* ── Base & Utilities ── */
html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    overflow-x: hidden;
}

::selection {
    background: #D9C8EF;
    color: #3B0F7A;
}

/* ── Hero Gradient ── */
.hero-gradient {
    background: linear-gradient(135deg, #3B0F7A 0%, #7C3AED 35%, #A78BFA 55%, #D97706 85%, #F59E0B 100%);
}

/* ── CTA Gradient ── */
.cta-gradient {
    background: linear-gradient(135deg, #4C1D95 0%, #7C3AED 50%, #B85A08 100%);
}

/* ── Floating Orbs ── */
@keyframes float {
    0%, 100% { transform: translateY(0px) scale(1); }
    50% { transform: translateY(-30px) scale(1.05); }
}

@keyframes float-delay {
    0%, 100% { transform: translateY(0px) scale(1); }
    50% { transform: translateY(-20px) scale(1.03); }
}

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

.hero-orb-1 { animation: float 8s ease-in-out infinite; }
.hero-orb-2 { animation: float-delay 10s ease-in-out infinite; }
.hero-orb-3 { animation: float-slow 12s ease-in-out infinite; }

/* ── Hero Animations ── */
.hero-badge {
    animation: fadeUp 0.8s ease-out both;
}

.hero-title {
    animation: fadeUp 0.8s ease-out 0.15s both;
}

.hero-subtitle {
    animation: fadeUp 0.8s ease-out 0.3s both;
}

.hero-ctas {
    animation: fadeUp 0.8s ease-out 0.45s both;
}

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

/* ── Buttons ── */
.btn-primary {
    box-shadow: 0 4px 20px rgba(124, 58, 237, 0.15);
}

.btn-primary:hover {
    box-shadow: 0 8px 40px rgba(124, 58, 237, 0.25);
}

.btn-form {
    box-shadow: 0 4px 20px rgba(124, 58, 237, 0.2);
}

.btn-form:hover {
    box-shadow: 0 8px 30px rgba(124, 58, 237, 0.3);
}

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

.scroll-reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

.scroll-reveal.revealed:nth-child(2) { transition-delay: 0.1s; }
.scroll-reveal.revealed:nth-child(3) { transition-delay: 0.2s; }
.scroll-reveal.revealed:nth-child(4) { transition-delay: 0.3s; }
.scroll-reveal.revealed:nth-child(5) { transition-delay: 0.35s; }
.scroll-reveal.revealed:nth-child(6) { transition-delay: 0.4s; }

/* ── Navbar ── */
#navbar {
    background: transparent;
}

#navbar.scrolled {
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 1px 30px rgba(124, 58, 237, 0.08);
}

.nav-logo-text {
    color: #1F2937;
}

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

.nav-link {
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #7C3AED, #D97706);
    border-radius: 1px;
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

#navbar:not(.scrolled) .nav-link {
    color: rgba(255, 255, 255, 0.85);
}

#navbar:not(.scrolled) .nav-link:hover {
    color: #FFFFFF;
}

#navbar.scrolled .nav-link {
    color: #6B7280;
}

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

/* ── 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, #7C3AED, #D97706);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.service-card:hover::before {
    opacity: 1;
}

/* ── Image Hover ── */
.rounded-3xl.overflow-hidden {
    overflow: hidden;
}

/* ── Form Select Arrow ── */
select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%239CA3AF' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    padding-right: 2.5rem;
}

/* ── Responsive ── */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.75rem;
    }

    .hero-title br {
        display: none;
    }

    .hero-title span {
        display: block;
    }

    #contact,
    #services,
    #products,
    #about {
        padding-left: 1rem;
        padding-right: 1rem;
    }
}

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