/* ========== BASE STYLES ========== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ========== NAVBAR STYLES ========== */
#navbar {
  background: rgba(255, 255, 255, 1);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.dark #navbar {
  background: rgba(10, 22, 40, 1);
}

#navbar.scrolled {
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

.dark #navbar.scrolled {
  background: rgba(10, 22, 40, 0.95);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

/* Solid navbar on mobile to prevent transparency */
@media (max-width: 1023px) {
  #navbar {
    background: rgba(255, 255, 255, 1);
  }
  .dark #navbar {
    background: rgba(10, 22, 40, 1);
  }
  #navbar.scrolled {
    background: rgba(255, 255, 255, 1);
  }
  .dark #navbar.scrolled {
    background: rgba(10, 22, 40, 1);
  }
}

/* ========== HERO BACKGROUND ========== */
.hero-bg {
  background-image:
    radial-gradient(circle at 20% 50%, rgba(59, 130, 246, 0.08) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(20, 184, 166, 0.06) 0%, transparent 50%),
    radial-gradient(circle at 50% 80%, rgba(99, 102, 241, 0.05) 0%, transparent 50%);
}

.dark .hero-bg {
  background-image:
    radial-gradient(circle at 20% 50%, rgba(59, 130, 246, 0.15) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(20, 184, 166, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 50% 80%, rgba(99, 102, 241, 0.08) 0%, transparent 50%);
}

/* Grid pattern overlay for hero */
.hero-bg::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(148, 163, 184, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(148, 163, 184, 0.05) 1px, transparent 1px);
  background-size: 40px 40px;
}

.dark .hero-bg::before {
  background-image:
    linear-gradient(rgba(148, 163, 184, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(148, 163, 184, 0.03) 1px, transparent 1px);
}

/* ========== SCROLL ANIMATIONS ========== */
.fade-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Staggered delay for children */
.fade-up:nth-child(1) { transition-delay: 0s; }
.fade-up:nth-child(2) { transition-delay: 0.1s; }
.fade-up:nth-child(3) { transition-delay: 0.2s; }
.fade-up:nth-child(4) { transition-delay: 0.3s; }
.fade-up:nth-child(5) { transition-delay: 0.4s; }

/* ========== STAT CARD HOVER ========== */
.stat-card {
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.3s ease, border-color 0.3s ease;
}

.stat-card:hover {
  transform: translateY(-6px) scale(1.02);
  box-shadow: 0 15px 35px rgba(59, 130, 246, 0.15);
  border-color: rgba(59, 130, 246, 0.3);
}

.dark .stat-card:hover {
  box-shadow: 0 15px 35px rgba(59, 130, 246, 0.2);
  border-color: rgba(59, 130, 246, 0.4);
}

.stat-card .counter {
  transition: transform 0.3s ease;
}

.stat-card:hover .counter {
  transform: scale(1.08);
}

/* ========== DOMAIN / ABOUT CARDS ========== */
.domain-card {
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.3s ease, border-color 0.3s ease;
}

.domain-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 30px rgba(59, 130, 246, 0.1);
}

.dark .domain-card:hover {
  box-shadow: 0 12px 30px rgba(59, 130, 246, 0.15);
}

.domain-card .domain-icon {
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.3s ease;
}

.domain-card:hover .domain-icon {
  transform: scale(1.1) rotate(-5deg);
  box-shadow: 0 6px 20px rgba(59, 130, 246, 0.25);
}

/* ========== SERVICE CARDS ========== */
.service-card {
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.3s ease, border-color 0.3s ease;
  position: relative;
  overflow: hidden;
}

.service-card::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 1rem;
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
  background: radial-gradient(circle at var(--mouse-x, 50%) var(--mouse-y, 50%), rgba(59, 130, 246, 0.06) 0%, transparent 60%);
}

.dark .service-card::after {
  background: radial-gradient(circle at var(--mouse-x, 50%) var(--mouse-y, 50%), rgba(59, 130, 246, 0.12) 0%, transparent 60%);
}

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

.service-card:hover {
  transform: translateY(-4px);
}

.service-card .service-icon {
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.3s ease;
}

.service-card:hover .service-icon {
  transform: scale(1.1) rotate(-3deg);
}

.service-card .service-check {
  transition: transform 0.3s ease, color 0.3s ease;
}

.service-card:hover .service-check {
  transform: scale(1.15);
}

.service-card .service-pill {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-card:hover .service-pill {
  transform: translateY(-1px);
}

/* ========== WHY CHOOSE US CARDS ========== */
.why-card {
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.3s ease, border-color 0.3s ease;
}

.why-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.dark .why-card:hover {
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.why-card .why-icon {
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.3s ease;
}

.why-card:hover .why-icon {
  transform: scale(1.12) rotate(-5deg);
}

/* ========== PROCESS TIMELINE STEPS ========== */
.process-step .step-circle {
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.3s ease;
}

.process-step:hover .step-circle {
  transform: scale(1.15);
  box-shadow: 0 8px 25px rgba(59, 130, 246, 0.4);
}

.process-step .step-content {
  transition: transform 0.3s ease;
}

.process-step:hover .step-content {
  transform: translateX(4px);
}

.process-step:nth-child(odd):hover .step-content {
  transform: translateX(-4px);
}

/* ========== APPROACH STRIP MINI CARDS ========== */
.approach-card {
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.3s ease, border-color 0.3s ease, background-color 0.3s ease;
}

.approach-card:hover {
  transform: translateY(-3px);
  border-color: rgba(59, 130, 246, 0.3);
  box-shadow: 0 8px 20px rgba(59, 130, 246, 0.08);
}

.dark .approach-card:hover {
  border-color: rgba(59, 130, 246, 0.4);
  box-shadow: 0 8px 20px rgba(59, 130, 246, 0.12);
}

.approach-card .approach-icon {
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.approach-card:hover .approach-icon {
  transform: scale(1.2) rotate(-8deg);
}

/* ========== CONTACT INFO ITEMS ========== */
.contact-item {
  transition: transform 0.3s ease;
}

.contact-item:hover {
  transform: translateX(6px);
}

.contact-item .contact-icon-box {
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.3s ease;
}

.contact-item:hover .contact-icon-box {
  transform: scale(1.08);
  box-shadow: 0 4px 15px rgba(59, 130, 246, 0.2);
}

/* ========== VISION CARD ========== */
.vision-card {
  transition: transform 0.4s ease, box-shadow 0.3s ease;
}

.vision-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 35px rgba(59, 130, 246, 0.1);
}

.dark .vision-card:hover {
  box-shadow: 0 15px 35px rgba(59, 130, 246, 0.15);
}

/* ========== COUNTER ANIMATION ========== */
.counter {
  font-variant-numeric: tabular-nums;
}

/* ========== FORM STYLES ========== */
input:focus,
textarea:focus {
  border-color: transparent !important;
}

/* ========== MOBILE MENU ========== */
#mobile-drawer.open {
  transform: translateX(0);
}

/* ========== WHATSAPP FAB PULSE ========== */
@keyframes fabPulse {
  0%, 100% {
    box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.4);
  }
  50% {
    box-shadow: 0 0 0 12px rgba(34, 197, 94, 0);
  }
}

#whatsapp-fab {
  animation: fabPulse 2.5s ease-in-out infinite;
}

#whatsapp-fab:hover {
  animation: none;
}

/* ========== SELECTION COLOR ========== */
::selection {
  background-color: rgba(59, 130, 246, 0.2);
  color: inherit;
}

/* ========== SCROLLBAR (Webkit) ========== */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: #f1f5f9;
}

.dark ::-webkit-scrollbar-track {
  background: #0f172a;
}

::-webkit-scrollbar-thumb {
  background: #94a3b8;
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: #64748b;
}

.dark ::-webkit-scrollbar-thumb {
  background: #334155;
}

.dark ::-webkit-scrollbar-thumb:hover {
  background: #475569;
}

/* ========== RESPONSIVE TWEAKS ========== */
@media (max-width: 640px) {
  .fade-up {
    transform: translateY(20px);
  }
}
