* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "IBM Plex Sans Arabic", sans-serif;
}

html {
  scroll-behavior: smooth;
}

body {
  overflow-x: hidden;
}

/* Navbar dropdowns */
.dropdown-menu {
  opacity: 0;
  transform: translateY(-10px);
  visibility: hidden;
  transition: all 0.3s ease;
}

.nav-item:hover .dropdown-menu {
  opacity: 1;
  transform: translateY(0);
  visibility: visible;
}

.mobile-menu {
  transition: transform 0.3s ease-in-out;
}

.mobile-menu.hidden {
  transform: translateX(100%);
}

/* Gradient text */
.gradient-text {
  background: linear-gradient(135deg, #0074d9, #0066c0);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Floating animation */
@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-12px); }
}

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

.animate-float-delay {
  animation: float 6s ease-in-out 1s infinite;
}

.animate-float-delay-2 {
  animation: float 6s ease-in-out 2s infinite;
}

/* Pulse glow */
@keyframes pulseGlow {
  0%, 100% { box-shadow: 0 0 0 0 rgba(0, 116, 217, 0.3); }
  50% { box-shadow: 0 0 20px 10px rgba(0, 116, 217, 0.1); }
}

.pulse-glow {
  animation: pulseGlow 3s ease-in-out infinite;
}

/* Stats counter animation */
@keyframes countUp {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.stat-card {
  animation: countUp 0.6s ease-out forwards;
}

/* Card hover */
.feature-card {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.feature-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.15);
}

/* Partnership badge shine */
@keyframes shine {
  0% { background-position: -200% center; }
  100% { background-position: 200% center; }
}

.shine-badge {
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
  background-size: 200% auto;
  animation: shine 3s linear infinite;
}

/* Scroll indicator */
@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(8px); }
}

.scroll-indicator {
  animation: bounce 2s ease-in-out infinite;
}

/* Hero stagger animation */
.hero-animate {
  opacity: 0;
  transform: translateY(32px);
  animation: heroFadeIn 0.8s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.hero-animate:nth-child(1) { animation-delay: 0.1s; }
.hero-animate:nth-child(2) { animation-delay: 0.25s; }
.hero-animate:nth-child(3) { animation-delay: 0.4s; }

@keyframes heroFadeIn {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Filter button styles for hero card */
.filter-btn {
  color: rgba(55, 65, 81, 0.6);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  position: relative;
  overflow: hidden;
  cursor: pointer;
}

.filter-btn.active {
  color: white;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.filter-btn:not(.active) {
  color: rgba(55, 65, 81, 0.7);
}

.filter-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
  transition: left 0.5s;
}

.filter-btn:hover::before {
  left: 100%;
}

#cursor-bg {
  height: 40px;
  box-shadow: 0 4px 20px rgba(59, 130, 246, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.filter-btn.active {
  box-shadow: 0 0 20px rgba(59, 130, 246, 0.2);
}

.filter-btn:hover {
  transform: translateX(2px);
  backdrop-filter: blur(15px);
}

@keyframes gradientShift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

#cursor-bg.animated {
  background-size: 200% 200%;
  animation: gradientShift 3s ease infinite;
}

#mouse-cursor {
  filter: drop-shadow(2px 2px 4px rgba(0, 0, 0, 0.3));
}

#mouse-cursor svg {
  transition: transform 0.1s ease;
}

@keyframes clickPulse {
  0% { transform: scale(0); opacity: 0; }
  50% { transform: scale(2); opacity: 0.8; }
  100% { transform: scale(3); opacity: 0; }
}

.click-animation {
  animation: clickPulse 0.4s ease-out;
}

/* Minimal custom animations only - rest is Tailwind */
@keyframes float-slow {
  0%, 100% { transform: translateY(0px) rotate(0deg); }
  50% { transform: translateY(-8px) rotate(1deg); }
}

@keyframes draw-line {
  from { stroke-dashoffset: 1000; }
  to { stroke-dashoffset: 0; }
}

@keyframes fade-up-stagger {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.animate-float-slow {
  animation: float-slow 6s ease-in-out infinite;
}

.animate-float-slow-delay {
  animation: float-slow 6s ease-in-out 1.5s infinite;
}

.animate-float-slow-delay-2 {
  animation: float-slow 6s ease-in-out 3s infinite;
}

.animate-draw-line {
  stroke-dasharray: 1000;
  animation: draw-line 2s ease-out forwards;
}

.step-card-animate:nth-child(1) { animation: fade-up-stagger 0.6s ease-out 0.1s both; }
.step-card-animate:nth-child(2) { animation: fade-up-stagger 0.6s ease-out 0.2s both; }
.step-card-animate:nth-child(3) { animation: fade-up-stagger 0.6s ease-out 0.3s both; }
.step-card-animate:nth-child(4) { animation: fade-up-stagger 0.6s ease-out 0.4s both; }

/* ── Features cards ── */
.feat-card {
  position: relative;
  padding: 2rem 1.75rem;
  border-radius: 18px;
  border: 1px solid transparent;
  background: linear-gradient(#fff, #fff) padding-box,
              linear-gradient(135deg, rgba(0,116,217,.08), rgba(0,180,216,.04)) border-box;
  overflow: hidden;
  transition: transform .5s cubic-bezier(.22,1,.36,1),
              box-shadow .5s cubic-bezier(.22,1,.36,1);
  will-change: transform;
}
.feat-card::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(circle at var(--mx, 50%) var(--my, 50%), rgba(0,116,217,.06) 0%, transparent 60%);
  opacity: 0;
  transition: opacity .4s ease;
  pointer-events: none;
}
.feat-card:hover::before { opacity: 1; }
.feat-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 50px -15px rgba(0,116,217,.14), 0 8px 20px -8px rgba(0,0,0,.04);
}
.feat-icon-wrap {
  width: 48px; height: 48px;
  border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 1.25rem;
  position: relative;
  transition: transform .4s cubic-bezier(.22,1,.36,1);
}
.feat-card:hover .feat-icon-wrap {
  transform: scale(1.1) rotate(-2deg);
}
.feat-icon-wrap .feat-ring {
  position: absolute; inset: -5px;
  border-radius: 18px;
  border: 2px dashed rgba(0,116,217,.15);
  opacity: 0;
  transition: opacity .4s ease, transform .6s ease;
  transform: rotate(0deg);
}
.feat-card:hover .feat-icon-wrap .feat-ring {
  opacity: 1;
  transform: rotate(90deg);
}
.feat-counter {
  position: absolute;
  top: 1.5rem; right: 1.75rem;
  font-size: 4rem;
  font-weight: 800;
  line-height: 1;
  color: rgba(0,116,217,.04);
  pointer-events: none;
  transition: color .4s ease;
}
.feat-card:hover .feat-counter { color: rgba(0,116,217,.08); }

/* ── How It Works – ── */
.hiw-card {
  position: relative;
  background: #fff;
  border-radius: 20px;
  padding: 2.5rem 2rem 2rem;
  border: 1px solid rgba(0,0,0,.06);
  transition: transform .45s cubic-bezier(.25,.46,.45,.94),
              box-shadow .45s cubic-bezier(.25,.46,.45,.94),
              border-color .3s ease;
  will-change: transform;
}
.hiw-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 25px 60px -12px rgba(0,116,217,.12), 0 8px 24px -8px rgba(0,0,0,.06);
  border-color: rgba(0,116,217,.15);
}
.hiw-icon-wrap {
  width: 56px; height: 56px;
  border-radius: 16px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 1.5rem;
  position: relative;
  transition: transform .4s cubic-bezier(.25,.46,.45,.94);
}
.hiw-card:hover .hiw-icon-wrap { transform: scale(1.08); }
.hiw-icon-wrap::after {
  content: '';
  position: absolute; inset: -4px;
  border-radius: 20px;
  opacity: 0;
  transition: opacity .4s ease;
}
.hiw-card:hover .hiw-icon-wrap::after { opacity: 1; }
.hiw-step-num {
  font-variant-numeric: tabular-nums;
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  margin-bottom: .5rem;
  display: block;
}

/* connector line (desktop) */
.hiw-connector {
  position: absolute;
  top: 52px;
  left: calc(50% + 28px);
  width: calc(100% - 56px);
  height: 2px;
  overflow: hidden;
}
.hiw-connector::after {
  content: '';
  display: block;
  height: 100%;
  background: linear-gradient(90deg, #0074d9, #00b4d8);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 1.2s cubic-bezier(.22,1,.36,1);
}
.hiw-connector.animate-line::after {
  transform: scaleX(1);
}

/* pulse ring on icon */
@keyframes hiw-pulse {
  0%   { transform: scale(1);   opacity: .5; }
  100% { transform: scale(1.8); opacity: 0;  }
}
.hiw-card:hover .hiw-pulse-ring {
  animation: hiw-pulse .8s ease-out;
}

/* gradient text helper */
.hiw-gradient-text {
  background: linear-gradient(135deg, #0074d9 0%, #00b4d8 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Typing indicator animation */
@keyframes typing-bounce {
  0%, 60%, 100% { transform: translateY(0); }
  30% { transform: translateY(-4px); }
}

.typing-dot-1 { animation: typing-bounce 1.4s ease-in-out infinite; }
.typing-dot-2 { animation: typing-bounce 1.4s ease-in-out 0.2s infinite; }
.typing-dot-3 { animation: typing-bounce 1.4s ease-in-out 0.4s infinite; }