/* ==========================================================================
   SERVICES SECTION - DELUXE PREMIUM WOW
   ========================================================================== */

/* ─── Section Background ─── */
.services {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(ellipse at 0% 0%, rgba(255, 154, 46, 0.03) 0%, transparent 60%),
    radial-gradient(ellipse at 100% 100%, rgba(26, 109, 212, 0.03) 0%, transparent 60%);
}

.services-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.services-bg::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 20% 20%, rgba(255, 154, 46, 0.05) 0%, transparent 50%),
    radial-gradient(circle at 80% 80%, rgba(26, 109, 212, 0.05) 0%, transparent 50%),
    radial-gradient(circle at 50% 50%, rgba(255, 106, 0, 0.03) 0%, transparent 60%);
}

.services-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(26, 109, 212, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(26, 109, 212, 0.03) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 70% 70% at 50% 50%, black 30%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse 70% 70% at 50% 50%, black 30%, transparent 70%);
}

.services-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
}

.services-blob-1 {
  top: -15%;
  left: -8%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(255, 154, 46, 0.08) 0%, transparent 70%);
  animation: services-float-1 18s ease-in-out infinite;
}

.services-blob-2 {
  bottom: -20%;
  right: -10%;
  width: 550px;
  height: 550px;
  background: radial-gradient(circle, rgba(26, 109, 212, 0.07) 0%, transparent 70%);
  animation: services-float-2 22s ease-in-out infinite reverse;
}

@keyframes services-float-1 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(30px, -30px) scale(1.05); }
  66% { transform: translate(-15px, 15px) scale(0.97); }
}

@keyframes services-float-2 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(-25px, 20px) scale(1.06); }
  66% { transform: translate(20px, -25px) scale(0.98); }
}

/* ─── Badge ─── */
.services-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--accent-gradient);
  color: #fff;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: 7px 20px;
  border-radius: 20px;
  margin-bottom: 16px;
  box-shadow: 0 4px 14px var(--accent-glow);
  position: relative;
}

.services-badge::before {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: 22px;
  background: linear-gradient(135deg, rgba(255,255,255,0.4), transparent);
  opacity: 0.5;
  pointer-events: none;
}

/* ─── Grid ─── */
.services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  position: relative;
  z-index: 1;
  perspective: 1200px;
}

/* ─── Card ─── */
.service-card {
  border-radius: 24px;
  padding: 0;
  transition: all 0.6s cubic-bezier(0.23, 1, 0.32, 1);
  position: relative;
  overflow: hidden;
  height: 100%;
  transform-style: preserve-3d;
  background: transparent;
}

/* Glass layer */
.service-card-inner {
  position: relative;
  z-index: 1;
  height: 100%;
  display: flex;
  flex-direction: column;
  padding: 36px 28px 32px;
  background: rgba(255, 255, 255, 0.75);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.8);
  border-radius: 24px;
  transition: all 0.6s cubic-bezier(0.23, 1, 0.32, 1);
  box-shadow:
    0 2px 20px rgba(10, 25, 49, 0.04),
    0 1px 4px rgba(10, 25, 49, 0.02);
}

/* Gradient border glow */
.service-card-inner::before {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: 25px;
  background: conic-gradient(
    from 0deg at 50% 50%,
    transparent 0deg,
    rgba(255, 154, 46, 0.3) 90deg,
    rgba(255, 106, 0, 0.15) 180deg,
    rgba(26, 109, 212, 0.25) 270deg,
    transparent 360deg
  );
  opacity: 0;
  transition: opacity 0.6s ease;
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  padding: 1.5px;
  pointer-events: none;
  z-index: -1;
}

.service-card:hover .service-card-inner::before {
  opacity: 1;
}

/* Inner glow overlay */
.service-card-inner::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 24px;
  background: linear-gradient(
    135deg,
    rgba(255, 154, 46, 0.03) 0%,
    rgba(26, 109, 212, 0.03) 50%,
    transparent 100%
  );
  opacity: 0;
  transition: opacity 0.6s ease;
  pointer-events: none;
  z-index: -1;
}

.service-card:hover .service-card-inner {
  transform: translateY(-12px);
  background: rgba(255, 255, 255, 0.95);
  box-shadow:
    0 30px 70px rgba(26, 39, 68, 0.1),
    0 10px 24px rgba(26, 39, 68, 0.05),
    0 0 0 1px rgba(255, 106, 0, 0.1);
}

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

/* ─── Icon ─── */
.service-icon {
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 1), rgba(244, 247, 251, 0.8));
  border: 1px solid rgba(26, 109, 212, 0.08);
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
  transition: all 0.6s cubic-bezier(0.23, 1, 0.32, 1);
  position: relative;
  box-shadow: 0 2px 8px rgba(10, 25, 49, 0.03);
  cursor: pointer;
}

.service-icon::after {
  content: '';
  position: absolute;
  inset: -3px;
  border-radius: 22px;
  background: var(--accent-gradient);
  opacity: 0;
  transition: opacity 0.5s ease;
  z-index: -1;
  filter: blur(4px);
}

.service-card:hover .service-icon {
  background: #ffffff;
  border-color: transparent;
  transform: translateY(-6px) scale(1.08);
  box-shadow: 0 16px 40px rgba(255, 106, 0, 0.18);
}

.service-card:hover .service-icon::after {
  opacity: 0.6;
}

.service-icon img {
  width: 38px;
  height: auto;
  transition: all 0.6s cubic-bezier(0.23, 1, 0.32, 1);
  position: relative;
  z-index: 1;
}

.service-card:hover .service-icon img {
  filter: drop-shadow(0 4px 12px rgba(255, 106, 0, 0.3));
  transform: scale(1.15) rotate(-3deg);
}

/* ─── Content ─── */
.service-card-inner h3 {
  font-size: 1.85rem;
  margin-bottom: 12px;
  font-weight: 800;
  line-height: 1.3;
  transition: all 0.4s ease;
  position: relative;
}

.service-card:hover .service-card-inner h3 {
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  transform: translateX(4px);
}

.service-card-inner p {
  color: var(--text-secondary);
  font-size: 1.4rem;
  margin-bottom: 20px;
  line-height: 1.7;
  flex: 1;
  transition: all 0.4s ease;
}

.service-card:hover .service-card-inner p {
  color: var(--text-primary);
}

/* ─── Link ─── */
.service-link {
  font-family: var(--font-title);
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--text-primary);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 0;
  position: relative;
  width: fit-content;
  overflow: hidden;
}

.service-link::before {
  content: '';
  position: absolute;
  bottom: 5px;
  left: 0;
  width: 100%;
  height: 2px;
  background: rgba(26, 109, 212, 0.08);
  transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
}

.service-link::after {
  content: '';
  position: absolute;
  bottom: 5px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent-gradient);
  transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
}

.service-card:hover .service-link::after {
  width: 100%;
}

.service-link span {
  transition: all 0.3s ease;
}

.service-card:hover .service-link span {
  color: var(--accent);
  transform: translateX(4px);
}

.service-link i {
  font-size: 1rem;
  transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
  color: var(--text-muted);
}

.service-card:hover .service-link i {
  transform: translateX(10px) scale(1.25);
  color: var(--accent);
}

/* ─── Floating particles ─── */
.services-particle {
  position: absolute;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  opacity: 0.15;
  pointer-events: none;
  animation: particle-float 8s ease-in-out infinite;
}

.services-particle:nth-child(1) { top: 10%; left: 5%; width: 4px; height: 4px; animation-delay: 0s; }
.services-particle:nth-child(2) { top: 20%; left: 90%; width: 6px; height: 6px; animation-delay: 1.5s; opacity: 0.1; background: var(--accent-blue); }
.services-particle:nth-child(3) { top: 70%; left: 15%; width: 5px; height: 5px; animation-delay: 3s; }
.services-particle:nth-child(4) { top: 80%; left: 80%; width: 7px; height: 7px; animation-delay: 4.5s; opacity: 0.12; background: var(--accent-blue); }
.services-particle:nth-child(5) { top: 40%; left: 95%; width: 3px; height: 3px; animation-delay: 2s; }
.services-particle:nth-child(6) { top: 50%; left: 2%; width: 5px; height: 5px; animation-delay: 6s; opacity: 0.1; background: var(--accent-blue); }

@keyframes particle-float {
  0%, 100% { transform: translateY(0) scale(1); opacity: 0.15; }
  50% { transform: translateY(-40px) scale(1.5); opacity: 0.3; }
}

/* ─── Responsive ─── */
@media (max-width: 991px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }

  .service-card-inner {
    padding: 28px 22px 26px;
  }

  .service-num {
    font-size: 4rem;
    top: 12px;
    right: 16px;
  }

  .service-icon {
    width: 72px;
    height: 72px;
    border-radius: 18px;
  }

  .service-icon img {
    width: 34px;
  }
}

@media (max-width: 575px) {
  .services-grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .service-icon {
    width: 68px;
    height: 68px;
  }

  .service-icon img {
    width: 32px;
  }

  .service-card-inner h3 {
    font-size: 1.7rem;
  }

  .services-badge {
    font-size: 0.95rem;
  }
}