/* --- Hero Section --- */
.hero-section {
  position: relative;
  min-height: 650px;
  overflow: hidden;
  display: flex;
  align-items: center;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover !important;
  background-position: center center !important;
  z-index: 0;
  animation: heroZoom 25s ease-in-out infinite alternate;
}

@keyframes heroZoom {
  0% { transform: scale(1); }
  100% { transform: scale(1.08); }
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(135deg, rgba(15, 23, 42, 0.88) 0%, rgba(15, 23, 42, 0.6) 40%, rgba(var(--primary-rgb, 99, 102, 241), 0.35) 100%);
  z-index: 1;
}

/* Animated dot grid on hero */
.hero-overlay::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255,255,255,0.07) 1px, transparent 1px);
  background-size: 30px 30px;
  z-index: 0;
}

.hero-content {
  position: relative;
  z-index: 2;
  padding: 130px 0 100px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: #fff;
  padding: 8px 22px;
  border-radius: 50px;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 28px;
  letter-spacing: 0.5px;
  animation: fadeInUp 0.6s ease both;
  position: relative;
  overflow: hidden;
}

/* Shimmer effect on badge */
.hero-badge::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 60%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
  animation: shimmer 3s ease-in-out infinite;
}

@keyframes shimmer {
  0% { left: -100%; }
  100% { left: 200%; }
}

.hero-badge i {
  font-size: 14px;
  color: #fbbf24;
  animation: starPulse 2s ease-in-out infinite;
}

@keyframes starPulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.3); opacity: 0.7; }
}

.hero-title {
  font-size: 3.5rem;
  font-weight: 800;
  color: #fff;
  line-height: 1.12;
  margin-bottom: 22px;
  letter-spacing: -1.5px;
  animation: fadeInUp 0.6s ease 0.1s both;
  text-shadow: 0 2px 40px rgba(0,0,0,0.3);
}

.hero-title .highlight {
  background: linear-gradient(135deg, var(--primary-light, var(--primary)), #60a5fa);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-description {
  font-size: 17px;
  color: rgba(255, 255, 255, 0.75);
  line-height: 1.8;
  max-width: 520px;
  margin-bottom: 36px;
  animation: fadeInUp 0.6s ease 0.2s both;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  animation: fadeInUp 0.6s ease 0.3s both;
}

/* Primary CTA with glow ring */
.hero-btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--gradient-1);
  color: #fff;
  padding: 15px 34px;
  border-radius: 50px;
  font-size: 15px;
  font-weight: 700;
  font-family: 'Inter', sans-serif;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow:
    0 8px 25px rgba(var(--primary-rgb, 99, 102, 241), 0.4),
    0 0 0 0 rgba(var(--primary-rgb, 99, 102, 241), 0.3);
  position: relative;
  overflow: hidden;
  animation: glowPulse 3s ease-in-out infinite;
}

@keyframes glowPulse {
  0%, 100% { box-shadow: 0 8px 25px rgba(var(--primary-rgb, 99, 102, 241), 0.4), 0 0 0 0 rgba(var(--primary-rgb, 99, 102, 241), 0.2); }
  50% { box-shadow: 0 8px 30px rgba(var(--primary-rgb, 99, 102, 241), 0.5), 0 0 0 8px rgba(var(--primary-rgb, 99, 102, 241), 0); }
}

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

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

.hero-btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 40px rgba(var(--primary-rgb, 99, 102, 241), 0.5);
  color: #fff;
}

.hero-btn-primary i {
  font-size: 14px;
  transition: transform 0.3s ease;
}

.hero-btn-primary:hover i {
  transform: translateX(4px);
}

.hero-btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.22);
  color: #fff;
  padding: 15px 30px;
  border-radius: 50px;
  font-size: 15px;
  font-weight: 600;
  font-family: 'Inter', sans-serif;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.hero-btn-outline:hover {
  background: rgba(255, 255, 255, 0.18);
  border-color: rgba(255, 255, 255, 0.4);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

/* Floating shapes */
.hero-shapes {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  overflow: hidden;
}

.hero-shape {
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.hero-shape-1 {
  width: 400px;
  height: 400px;
  top: -80px;
  right: -80px;
  animation: float 8s ease-in-out infinite;
}

.hero-shape-2 {
  width: 250px;
  height: 250px;
  bottom: -40px;
  left: 8%;
  animation: float 6s ease-in-out infinite reverse;
}

.hero-shape-3 {
  width: 150px;
  height: 150px;
  top: 25%;
  right: 20%;
  animation: float 10s ease-in-out infinite 2s;
  background: rgba(var(--primary-rgb, 99, 102, 241), 0.08);
  border-color: rgba(var(--primary-rgb, 99, 102, 241), 0.12);
}

/* Sparkle particles */
.hero-particle {
  position: absolute;
  width: 4px;
  height: 4px;
  background: rgba(255, 255, 255, 0.6);
  border-radius: 50%;
  animation: particleFloat linear infinite;
}

.hero-particle:nth-child(4) { left: 15%; top: 20%; animation-duration: 12s; animation-delay: 0s; width: 3px; height: 3px; }
.hero-particle:nth-child(5) { left: 70%; top: 40%; animation-duration: 15s; animation-delay: 2s; width: 5px; height: 5px; }
.hero-particle:nth-child(6) { left: 85%; top: 15%; animation-duration: 10s; animation-delay: 4s; }
.hero-particle:nth-child(7) { left: 40%; top: 70%; animation-duration: 18s; animation-delay: 1s; width: 3px; height: 3px; }
.hero-particle:nth-child(8) { left: 55%; top: 25%; animation-duration: 14s; animation-delay: 3s; width: 2px; height: 2px; }
.hero-particle:nth-child(9) { left: 25%; top: 55%; animation-duration: 16s; animation-delay: 5s; }

@keyframes particleFloat {
  0% { transform: translateY(0) translateX(0); opacity: 0; }
  10% { opacity: 1; }
  90% { opacity: 1; }
  100% { transform: translateY(-300px) translateX(40px); opacity: 0; }
}

@keyframes float {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-25px) rotate(5deg); }
}

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

/* Hero trust strip */
.hero-trust {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-top: 40px;
  animation: fadeInUp 0.6s ease 0.5s both;
}

.hero-trust-avatars {
  display: flex;
}

.hero-trust-avatars span {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
  color: #fff;
  margin-left: -10px;
  border: 2px solid rgba(255,255,255,0.3);
}

.hero-trust-avatars span:first-child { margin-left: 0; }

.hero-trust-avatars .ta-1 { background: linear-gradient(135deg, #f59e0b, #ef4444); }
.hero-trust-avatars .ta-2 { background: linear-gradient(135deg, #10b981, #06b6d4); }
.hero-trust-avatars .ta-3 { background: linear-gradient(135deg, #8b5cf6, #ec4899); }
.hero-trust-avatars .ta-4 { background: linear-gradient(135deg, var(--primary), var(--primary-light, var(--primary))); font-size: 10px; }

.hero-trust-text {
  font-size: 13px;
  color: rgba(255,255,255,0.7);
  line-height: 1.4;
}

.hero-trust-text strong {
  color: #fff;
  font-weight: 700;
}

/* --- Stats Section --- */
.stats-section {
  margin-top: -60px;
  position: relative;
  z-index: 10;
  margin-bottom: 50px;
}

.stat-card {
  background: #fff;
  border-radius: 16px;
  padding: 24px 22px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.07);
  border: 1px solid rgba(0, 0, 0, 0.04);
  display: flex;
  align-items: center;
  gap: 16px;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  height: 100%;
  position: relative;
  overflow: hidden;
}

/* Colored left accent border */
.stat-card::before {
  content: '';
  position: absolute;
  left: 0;
  top: 15%;
  bottom: 15%;
  width: 4px;
  border-radius: 0 4px 4px 0;
  transition: all 0.3s ease;
}

.stat-card.stat-card-services::before { background: linear-gradient(180deg, #DF2475, #f472b6); }
.stat-card.stat-card-staff::before    { background: linear-gradient(180deg, #716BF1, #a78bfa); }
.stat-card.stat-card-clients::before  { background: linear-gradient(180deg, #FFA42F, #fbbf24); }
.stat-card.stat-card-done::before     { background: linear-gradient(180deg, #6BB04D, #86efac); }

/* Shine sweep on hover */
.stat-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(var(--primary-rgb, 99, 102, 241), 0.04), transparent);
  transition: left 0.6s ease;
}

.stat-card:hover::after {
  left: 100%;
}

.stat-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.12);
}

.stat-card:hover::before {
  top: 0;
  bottom: 0;
  border-radius: 0;
}

.stat-icon {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  z-index: 1;
}

.stat-card:hover .stat-icon {
  transform: scale(1.12) rotate(8deg);
  box-shadow: 0 6px 18px rgba(0,0,0,0.1);
}

.stat-icon img {
  width: 28px;
  height: 28px;
  object-fit: contain;
}

.stat-icon.stat-services { background: linear-gradient(135deg, rgba(223, 36, 117, 0.12), rgba(223, 36, 117, 0.06)); }
.stat-icon.stat-staff    { background: linear-gradient(135deg, rgba(113, 107, 241, 0.12), rgba(113, 107, 241, 0.06)); }
.stat-icon.stat-clients  { background: linear-gradient(135deg, rgba(255, 164, 47, 0.12), rgba(255, 164, 47, 0.06)); }
.stat-icon.stat-done     { background: linear-gradient(135deg, rgba(106, 176, 76, 0.12), rgba(106, 176, 76, 0.06)); }

.stat-info {
  position: relative;
  z-index: 1;
}

.stat-info h3 {
  font-size: 2rem;
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 2px;
}

.stat-info p {
  font-size: 13px;
  color: #64748b;
  margin: 0;
  font-weight: 500;
  line-height: 1.3;
}

.stat-services-text { color: #DF2475; }
.stat-staff-text    { color: #716BF1; }
.stat-clients-text  { color: #FFA42F; }
.stat-done-text     { color: #6BB04D; }

/* Staggered animations */
.stats-section .col-lg-3:nth-child(1) .stat-card { animation: fadeInUp 0.5s ease 0.1s both; }
.stats-section .col-lg-3:nth-child(2) .stat-card { animation: fadeInUp 0.5s ease 0.2s both; }
.stats-section .col-lg-3:nth-child(3) .stat-card { animation: fadeInUp 0.5s ease 0.3s both; }
.stats-section .col-lg-3:nth-child(4) .stat-card { animation: fadeInUp 0.5s ease 0.4s both; }
.stats-section .col-sm-6:nth-child(1) .stat-card { animation: fadeInUp 0.5s ease 0.1s both; }
.stats-section .col-sm-6:nth-child(2) .stat-card { animation: fadeInUp 0.5s ease 0.2s both; }
.stats-section .col-sm-6:nth-child(3) .stat-card { animation: fadeInUp 0.5s ease 0.3s both; }
.stats-section .col-sm-6:nth-child(4) .stat-card { animation: fadeInUp 0.5s ease 0.4s both; }



/* --- Index Page Responsive --- */
@media (max-width: 991px) {
  .hero-title { font-size: 2.4rem; }
  .hero-content { padding: 100px 0 60px; }
  .hero-section { min-height: 500px; }
  .stats-section { margin-top: -50px; }
}

@media (max-width: 767px) {
  .hero-title { font-size: 1.9rem; }
  .hero-description { font-size: 15px; }
  .hero-content { padding: 90px 0 50px; }
  .hero-section { min-height: 450px; }
  .hero-actions { flex-direction: column; align-items: flex-start; }
  .stat-card { padding: 20px 18px; }
  .stat-info h3 { font-size: 1.6rem; }
}
