/* ── Base ── */
html { scroll-behavior: smooth; }

/* ── Hero animations ── */
@keyframes fadeUp {
    from { opacity: 0; transform: translateY(28px); }
    to   { opacity: 1; transform: translateY(0); }
}
@keyframes float {
    0%, 100% { transform: translateY(0); }
    50%       { transform: translateY(-12px); }
}
@keyframes pulse-glow {
    0%, 100% { opacity: 0.6; }
    50%       { opacity: 1; }
}

.hero-reveal { animation: fadeUp 0.7s ease both; }
.hero-d1 { animation-delay: 0.1s; }
.hero-d2 { animation-delay: 0.2s; }
.hero-d3 { animation-delay: 0.35s; }
.hero-d4 { animation-delay: 0.5s; }
.hero-d5 { animation-delay: 0.65s; }
.hero-d6 { animation-delay: 0.8s; }

.hero-image-float { animation: float 6s ease-in-out infinite; }

/* ── Section reveal (Intersection Observer) ── */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ── Service card hover lift ── */
.service-card { transition: transform 0.3s ease, box-shadow 0.3s ease; }
.service-card:hover { transform: translateY(-6px); box-shadow: 0 20px 40px rgba(0,0,0,0.10); }

/* ── Gradient text ── */
.gradient-text {
    background: linear-gradient(135deg, #0ea5e9, #38bdf8, #f59e0b);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ── Stat divider ── */
.stat-item:not(:last-child) { border-right: 1px solid rgba(255,255,255,0.1); }

/* ── Hero grid pattern ── */
.hero-grid-bg {
    background-image:
        linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px);
    background-size: 48px 48px;
}

/* ── CTA glow pulse ── */
@keyframes glow-pulse {
    0%, 100% { box-shadow: 0 0 20px 0px rgba(14,165,233,0.4); }
    50%       { box-shadow: 0 0 36px 6px rgba(14,165,233,0.6); }
}
.cta-primary-glow { animation: glow-pulse 3s ease-in-out infinite; }

/* ── Pulsing live dot ── */
@keyframes live-dot {
    0%, 100% { opacity: 1; transform: scale(1); }
    50%       { opacity: 0.5; transform: scale(0.75); }
}
.live-dot { animation: live-dot 2s ease-in-out infinite; }

/* ── Stat accent bar ── */
.stat-accent {
    display: block;
    width: 24px;
    height: 3px;
    border-radius: 999px;
    margin: 0 auto 8px;
}

/* ── Nav scroll transition ── */
#main-nav { transition: background 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease; }
#main-nav.nav-scrolled {
    background: rgba(255,255,255,0.97) !important;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    box-shadow: 0 1px 0 rgba(0,0,0,0.06), 0 8px 32px rgba(0,0,0,0.08);
    border-color: transparent !important;
}

/* ── Nav: transparent state (over dark hero) ── */
#main-nav:not(.nav-scrolled) .nav-link          { color: rgba(255,255,255,0.78); }
#main-nav:not(.nav-scrolled) .nav-link:hover    { color: #fff !important; background: rgba(255,255,255,0.10) !important; }
#main-nav:not(.nav-scrolled) .nav-services-btn  { color: rgba(255,255,255,0.78); }
#main-nav:not(.nav-scrolled) .nav-services-btn:hover { color: #fff !important; background: rgba(255,255,255,0.10) !important; }
#main-nav:not(.nav-scrolled) .logo-brand        { color: #fff; }
#main-nav:not(.nav-scrolled) .logo-sub          { color: #93c5fd; }
#main-nav:not(.nav-scrolled) .nav-divider       { border-color: rgba(255,255,255,0.15); }
#main-nav:not(.nav-scrolled) .nav-whatsapp-btn  { background: rgba(255,255,255,0.08); border-color: rgba(255,255,255,0.18); color: #fff; }
#main-nav:not(.nav-scrolled) .nav-whatsapp-btn:hover { background: rgba(255,255,255,0.15) !important; }
#main-nav:not(.nav-scrolled) .nav-active        { color: #38bdf8 !important; }
#main-nav:not(.nav-scrolled) .nav-chevron       { color: rgba(255,255,255,0.5); }
#main-nav:not(.nav-scrolled) .nav-logo-img      { filter: brightness(0) invert(1); }

/* ── Nav: scrolled state ── */
#main-nav.nav-scrolled .nav-link          { color: #374151; }
#main-nav.nav-scrolled .nav-link:hover    { color: #0284c7 !important; background: #f0f9ff !important; }
#main-nav.nav-scrolled .nav-services-btn  { color: #374151; }
#main-nav.nav-scrolled .nav-services-btn:hover { color: #0284c7 !important; background: #f0f9ff !important; }
#main-nav.nav-scrolled .logo-brand        { color: #111827; }
#main-nav.nav-scrolled .logo-sub          { color: #0369a1; }
#main-nav.nav-scrolled .nav-divider       { border-color: #e5e7eb; }
#main-nav.nav-scrolled .nav-active        { color: #0284c7 !important; font-weight: 600; }
#main-nav.nav-scrolled .nav-chevron       { color: #9ca3af; }

/* ── Services dropdown ── */
.services-dropdown {
    position: absolute;
    top: calc(100% + 10px);
    left: 50%;
    transform: translateX(-50%) translateY(-6px);
    width: 700px;
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.04), 0 24px 64px rgba(0,0,0,0.12), 0 0 0 1px rgba(0,0,0,0.05);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.22s ease, transform 0.22s ease;
    z-index: 200;
}
.services-dropdown.dropdown-open {
    opacity: 1;
    pointer-events: all;
    transform: translateX(-50%) translateY(0);
}
.dropdown-service-item { transition: background 0.15s ease, transform 0.15s ease; }
.dropdown-service-item:hover { background: #f0f9ff; transform: translateY(-1px); }
.dropdown-service-item:hover .dropdown-icon { background: #0ea5e9; color: #fff; }
.dropdown-icon { transition: background 0.15s ease, color 0.15s ease; }

/* ── Mobile menu ── */
#mobile-menu {
    display: block;
    overflow: hidden;
    max-height: 0;
    opacity: 0;
    transition: max-height 0.4s cubic-bezier(0.4,0,0.2,1), opacity 0.3s ease;
}
#mobile-menu.menu-open { max-height: 800px; opacity: 1; }

/* ── Mobile services accordion ── */
#mobile-services-list {
    overflow: hidden;
    max-height: 0;
    transition: max-height 0.35s ease, opacity 0.3s ease;
    opacity: 0;
}
#mobile-services-list.accordion-open { max-height: 500px; opacity: 1; }
#mobile-services-chevron { transition: transform 0.3s ease; }
#mobile-services-chevron.rotated { transform: rotate(180deg); }

/* ── Active nav link ── */
.nav-active { font-weight: 600; }

/* ── Scroll-to-top button ── */
#scrollToTop { transition: opacity 0.3s, transform 0.3s; }
#scrollToTop.hidden { opacity: 0; pointer-events: none; transform: translateY(10px); }

/* ── Form focus ring ── */
.form-input:focus { outline: none; border-color: #0ea5e9; box-shadow: 0 0 0 3px rgba(14,165,233,0.2); }

/* ── WhatsApp FAB ── */
.whatsapp-fab { animation: pulse-glow 3s ease-in-out infinite; }

/* ── Clients marquee ── */
@keyframes marquee-rtl {
    from { transform: translateX(0); }
    to   { transform: translateX(-50%); }
}
@keyframes marquee-ltr {
    from { transform: translateX(-50%); }
    to   { transform: translateX(0); }
}
.marquee-track-rtl { animation: marquee-rtl 42s linear infinite; display: flex; width: max-content; }
.marquee-track-ltr { animation: marquee-ltr 50s linear infinite; display: flex; width: max-content; }
.marquee-outer:hover .marquee-track-rtl,
.marquee-outer:hover .marquee-track-ltr { animation-play-state: paused; }
.logo-inner { transition: opacity 0.3s ease, filter 0.3s ease; opacity: 0.48; filter: grayscale(1); }
.logo-card:hover .logo-inner { opacity: 1; filter: grayscale(0); }
