.services-intro {
  text-align: center;
  padding: 60px 20px 40px;
  position: relative;
}

.services-intro::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(ellipse at center top, rgba(255, 107, 107, 0.04) 0%, transparent 80%);
  pointer-events: none;
  z-index: -1;
}

.pop-in-section {
  opacity: 0;
  transform: translateY(50px) scale(0.95);
  transition: all 1.6s cubic-bezier(0.19, 1, 0.22, 1);
}
.pop-in-section.visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.services-intro h2 {
  font-size: 3.5rem;
  margin-bottom: 10px;
  background: linear-gradient(135deg, #ff6b6b, #4ecdc4, #45b7d1);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: glow-pulse 8s ease-in-out infinite, float-y 10s ease-in-out infinite;
}
@keyframes glow-pulse {
  0%, 100% { text-shadow: 0 0 12px rgba(255,107,107,0.25); }
  50% { text-shadow: 0 0 30px rgba(78,205,196,0.45); }
}
@keyframes float-y {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

.underline-animation {
  width: 80px;
  height: 4px;
  margin: 0 auto;
  background: linear-gradient(90deg, #ff6b6b, #4ecdc4, #45b7d1);
  border-radius: 2px;
  position: relative;
  overflow: hidden;
  animation: underline-glow 5s ease-in-out infinite;
}
.underline-animation::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: inherit;
  animation: underline-sweep 4s infinite linear;
}
@keyframes underline-sweep {
  0% { left: -100%; }
  50% { left: 100%; }
  100% { left: -100%; }
}
@keyframes underline-glow {
  0%, 100% { box-shadow: 0 0 6px rgba(255,107,107,0.4); }
  50% { box-shadow: 0 0 20px rgba(69,183,209,0.6); }
}

.intro-subtitle {
  font-family: "Dancing Script", cursive;
  font-size: 1.8rem;
  color: #d0d0d0;
  font-weight: 500;
  animation: fade-in-subtitle 2s ease forwards 1.2s;
  opacity: 0;
}
@keyframes fade-in-subtitle {
  to { opacity: 1; transform: translateY(0); }
  from { opacity: 0; transform: translateY(20px); }
}

.services {
  padding: 40px 20px 80px;
  position: relative;
}
.services::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(ellipse at 20% 30%, rgba(78, 205, 196, 0.03) 0%, transparent 70%),
              radial-gradient(ellipse at 80% 70%, rgba(255, 107, 107, 0.03) 0%, transparent 70%);
  pointer-events: none;
  z-index: -1;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 40px;
  max-width: 1200px;
  margin: 0 auto;
}

.service-card {
  background: rgba(255, 255, 255, 0.02);
  border-radius: 20px;
  overflow: hidden;
  transition: all 0.8s cubic-bezier(0.19, 1, 0.22, 1);
  border: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(10px);
  position: relative;
  animation: card-fade-in 1.5s ease forwards;
  opacity: 0;
}
.service-card:nth-child(1) { animation-delay: 0.3s; }
.service-card:nth-child(2) { animation-delay: 0.6s; }
.service-card:nth-child(3) { animation-delay: 0.9s; }
@keyframes card-fade-in {
  from { opacity: 0; transform: translateY(40px) scale(0.95); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
.service-card:hover {
  transform: translateY(-12px) rotate3d(1, 1, 0, 3deg) scale(1.02);
  box-shadow: 0 25px 80px rgba(255, 107, 107, 0.15),
              0 0 60px rgba(78, 205, 196, 0.12),
              0 0 100px rgba(69, 183, 209, 0.08);
  border: 1px solid rgba(255, 107, 107, 0.25);
}
.service-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent 30%, rgba(255,255,255,0.06) 50%, transparent 70%);
  opacity: 0;
  transform: translateX(-100%);
  transition: all 0.9s ease;
}
.service-card:hover::before {
  opacity: 1;
  transform: translateX(100%);
}

.service-image {
  height: 300px;
  overflow: hidden;
  position: relative;
}
.service-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  transition: transform 0.8s ease;
  background-color: #000; /* Optional: avoids transparency issues */
}
.service-card:hover .service-image img {
  transform: scale(1.15) rotate(1.5deg);
}

.service-content {
  padding: 40px;
  animation: fade-in-content 1.8s ease forwards;
  opacity: 0;
}
@keyframes fade-in-content {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}
.service-content h3 {
  font-size: 1.8rem;
  margin-bottom: 15px;
  background: linear-gradient(135deg, #feca57, #ff9ff3);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: text-glow 7s ease-in-out infinite;
}
@keyframes text-glow {
  0%, 100% { text-shadow: 0 0 8px rgba(255,159,243,0.3); }
  50% { text-shadow: 0 0 22px rgba(254,202,87,0.5); }
}
.service-content p {
  color: #d0d0d0;
  line-height: 1.6;
  font-size: 1.1rem;
  animation: fade-up 2s ease forwards 1s;
  opacity: 0;
}
@keyframes fade-up {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 768px) {
  .services-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .services-intro h2 {
    font-size: 2.5rem;
  }

  .intro-subtitle {
    font-size: 1.5rem;
  }

  .service-content h3 {
    font-size: 1.6rem;
  }

  .service-image {
    height: 250px;
  }
}
