/* ─── Base ─── */
* { scroll-behavior: smooth; }
html { scrollbar-width: thin; scrollbar-color: #1d50dc #0a0a0a; }
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: #0a0a0a; }
::-webkit-scrollbar-thumb { background: #1d50dc; border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: #3a6ee8; }

/* ─── Keyframes ─── */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeInLeft {
    from { opacity: 0; transform: translateX(-30px); }
    to { opacity: 1; transform: translateX(0); }
}
@keyframes slideIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}
@keyframes pulse-glow {
    0%, 100% { box-shadow: 0 0 0 0 rgba(29, 80, 220, 0.4); }
    50% { box-shadow: 0 0 20px 4px rgba(29, 80, 220, 0.15); }
}
@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}
@keyframes progress-bar {
    from { width: 0%; }
    to { width: var(--progress); }
}

/* ─── Scroll Animation Classes ─── */
.scroll-hidden { opacity: 0; transform: translateY(30px); }
.scroll-visible { animation: fadeInUp 0.6s ease-out forwards; }
.scroll-hidden-left { opacity: 0; transform: translateX(-30px); }
.scroll-visible-left { animation: fadeInLeft 0.6s ease-out forwards; }

/* ─── Hero Gradient Overlay ─── */
.hero-gradient {
    background: radial-gradient(ellipse at 50% 0%, rgba(29, 80, 220, 0.15) 0%, transparent 60%),
                radial-gradient(ellipse at 80% 50%, rgba(29, 80, 220, 0.05) 0%, transparent 50%);
}

/* ─── Gradient Backgrounds ─── */
.gradient-brand { background: linear-gradient(135deg, #1d50dc 0%, #1640b0 100%); }
.gradient-brand-subtle { background: linear-gradient(135deg, rgba(29, 80, 220, 0.1) 0%, rgba(29, 80, 220, 0.02) 100%); }

/* ─── Product Cards ─── */
.product-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.product-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 60px -15px var(--card-color, rgba(29, 80, 220, 0.2));
}
.product-card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    padding: 1px;
    background: linear-gradient(135deg, var(--card-color, #1d50dc), transparent 60%);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.3s ease;
}
.product-card:hover::before { opacity: 1; }

/* ─── Testimonial Cards ─── */
.testimonial-card {
    background: linear-gradient(135deg, rgba(255,255,255,0.03) 0%, rgba(255,255,255,0.01) 100%);
    border: 1px solid rgba(255,255,255,0.06);
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}
.testimonial-card:hover {
    border-color: rgba(29, 80, 220, 0.3);
    box-shadow: 0 8px 32px -8px rgba(29, 80, 220, 0.1);
}

/* ─── Progress Bars ─── */
.progress-bar {
    animation: progress-bar 1.5s ease-out forwards;
    animation-play-state: paused;
}
.progress-bar.animated { animation-play-state: running; }

/* ─── Button Glow ─── */
.btn-glow:hover { animation: pulse-glow 2s ease-in-out infinite; }

/* ─── Float Animation ─── */
.animate-float { animation: float 3s ease-in-out infinite; }

/* ─── Navbar Scroll State ─── */
.nav-scrolled {
    background: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

/* ─── Mobile Menu ─── */
#mobile-menu { animation: slideIn 0.2s ease-out; }

/* ─── Dropdown ─── */
#dropdown-menu { animation: slideIn 0.2s ease-out; }

/* ─── Scrollbar Hide for Sliders ─── */
.scrollbar-hide {
    -ms-overflow-style: none;
    scrollbar-width: none;
}
.scrollbar-hide::-webkit-scrollbar {
    display: none;
}

/* ─── Fade In Animation ─── */
.animate-fade-in-up {
    animation: fadeInUp 0.6s ease-out forwards;
}

/* ─── Snap Scroll ─── */
.snap-start {
    scroll-snap-align: start;
}

/* ─── Section Reveal ─── */
.reveal-on-scroll {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal-on-scroll.revealed {
    opacity: 1;
    transform: translateY(0);
}
