/* Ultra-Modern Service Cards - Inspired by Apple Design & Glassmorphism */

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(380px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
  padding: 0 1rem;
}

.service-card {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-radius: 24px;
  padding: 2.5rem;
  border: 1px solid rgba(255, 255, 255, 0.3);
  box-shadow: 
    0 8px 32px rgba(0, 0, 0, 0.06),
    0 2px 16px rgba(0, 0, 0, 0.04),
    inset 0 1px 0 rgba(255, 255, 255, 0.8);
  transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  position: relative;
  overflow: hidden;
  min-height: 420px;
  display: flex;
  flex-direction: column;
  transform: translateY(0);
  will-change: transform, box-shadow;
}

/* Gradient overlay for depth */
.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, 
    rgba(255, 255, 255, 0.4) 0%, 
    rgba(255, 255, 255, 0.1) 50%,
    rgba(255, 76, 96, 0.05) 100%);
  border-radius: 24px;
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
  z-index: 1;
}

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

/* Floating animation on hover */
.service-card:hover {
  transform: translateY(-12px) scale(1.02);
  box-shadow: 
    0 25px 50px rgba(0, 0, 0, 0.15),
    0 8px 24px rgba(255, 76, 96, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
  border-color: rgba(255, 76, 96, 0.3);
}

/* Modern icon design */
.service-icon {
  width: 72px;
  height: 72px;
  background: linear-gradient(135deg, 
    rgba(255, 76, 96, 0.1) 0%, 
    rgba(255, 107, 125, 0.15) 100%);
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  font-size: 28px;
  color: #ff4c60;
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  position: relative;
  z-index: 2;
  border: 1px solid rgba(255, 76, 96, 0.2);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.service-icon::before {
  content: '';
  position: absolute;
  inset: -2px;
  background: linear-gradient(135deg, #ff4c60, #ff6b7d, #ff4c60);
  border-radius: 22px;
  opacity: 0;
  transition: opacity 0.4s ease;
  z-index: -1;
}

.service-card:hover .service-icon {
  transform: translateY(-4px) rotate(5deg) scale(1.1);
  background: rgba(255, 76, 96, 0.15);
  box-shadow: 
    0 8px 24px rgba(255, 76, 96, 0.25),
    0 2px 8px rgba(255, 76, 96, 0.15);
}

.service-card:hover .service-icon::before {
  opacity: 1;
  animation: iconGlow 2s ease-in-out infinite alternate;
}

@keyframes iconGlow {
  0% { opacity: 0.7; transform: scale(1); }
  100% { opacity: 1; transform: scale(1.05); }
}

/* Typography */
.service-card h3 {
  font-size: 1.375rem;
  font-weight: 700;
  color: #1a1a1a;
  margin-bottom: 1rem;
  line-height: 1.3;
  position: relative;
  z-index: 2;
  letter-spacing: -0.02em;
  background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.service-card p {
  color: #666;
  line-height: 1.6;
  margin-bottom: 1.5rem;
  flex-grow: 1;
  position: relative;
  z-index: 2;
  font-size: 0.95rem;
  font-weight: 400;
}

/* Enhanced Modern feature list */
.service-features {
  list-style: none;
  padding: 0;
  margin: 0;
  position: relative;
  z-index: 2;
}

.service-features li {
  padding: 0.875rem 0;
  color: #555;
  font-size: 0.9rem;
  position: relative;
  padding-left: 4.5rem;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  font-weight: 500;
  line-height: 1.5;
}

.service-features li:last-child {
  border-bottom: none;
}

/* Enhanced checkmark container */
.service-features li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%) scale(1);
  width: 20px;
  height: 20px;
  background: linear-gradient(135deg, #ff4c60 0%, #ff6b7d 50%, #ff8a9b 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 
    0 3px 12px rgba(255, 76, 96, 0.25),
    0 1px 4px rgba(255, 76, 96, 0.15),
    inset 0 1px 0 rgba(255, 255, 255, 0.3);
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  border: 2px solid rgba(255, 255, 255, 0.2);
}

/* Enhanced checkmark symbol */
.service-features li::after {
  content: '✓';
  position: absolute;
  left: 6px;
  top: 50%;
  transform: translateY(-50%) scale(1);
  font-size: 11px;
  color: white;
  font-weight: 900;
  z-index: 1;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  font-family: system-ui, -apple-system, sans-serif;
}

/* Hover effects for individual list items - removed to keep text static */
.service-features li:hover {
  color: #333;
  /* Removed transform and padding changes to keep text static */
}

.service-features li:hover::before {
  /* Keep checkmark static on hover */
  transform: translateY(-50%);
}

.service-features li:hover::after {
  /* Keep checkmark icon static */
  transform: translateY(-50%);
}

/* Card hover effects for all checkmarks - animations removed */
.service-card:hover .service-features li {
  color: #333;
}

/* Removed all checkmark animations on card hover to keep everything static */

/* Keyframe animations for checkmarks */
@keyframes checkmarkPulse {
  0% {
    transform: translateY(-50%) scale(1);
  }
  50% {
    transform: translateY(-50%) scale(1.2);
    box-shadow: 
      0 8px 24px rgba(255, 76, 96, 0.5),
      0 3px 12px rgba(255, 76, 96, 0.3),
      inset 0 1px 0 rgba(255, 255, 255, 0.5);
  }
  100% {
    transform: translateY(-50%) scale(1);
  }
}

@keyframes checkmarkBounce {
  0% {
    transform: translateY(-50%) scale(1);
  }
  50% {
    transform: translateY(-50%) scale(1.3);
  }
  100% {
    transform: translateY(-50%) scale(1);
  }
}

/* Add a subtle glow effect for featured cards */
.service-card.featured .service-features li::before {
  background: linear-gradient(135deg, #ff4c60 0%, #ff6b7d 50%, #ff8a9b 100%);
  box-shadow: 
    0 4px 16px rgba(255, 76, 96, 0.35),
    0 2px 6px rgba(255, 76, 96, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.4);
}

/* Enhanced spacing and typography for better readability */
.service-features li {
  letter-spacing: 0.01em;
}

/* Responsive adjustments for checkmarks */
@media (max-width: 768px) {
  .service-features li {
    padding: 0.75rem 0;
    padding-left: 3.5rem;
    font-size: 0.875rem;
  }
  
  .service-features li::before {
    width: 18px;
    height: 18px;
  }
  
  .service-features li::after {
    left: 5px;
    font-size: 10px;
  }
  
  .service-features li:hover {
    /* Keep padding static on mobile */
  }
}

/* Featured card styling */
.service-card.featured {
  background: rgba(255, 76, 96, 0.05);
  border: 2px solid rgba(255, 76, 96, 0.3);
  transform: translateY(-8px);
  position: relative;
}

.service-card.featured::after {
  content: 'POPULAR';
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  background: linear-gradient(135deg, #ff4c60, #ff6b7d);
  color: white;
  padding: 0.25rem 0.75rem;
  border-radius: 12px;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  z-index: 3;
  box-shadow: 0 2px 8px rgba(255, 76, 96, 0.3);
}

.service-card.featured:hover {
  transform: translateY(-16px) scale(1.03);
  box-shadow: 
    0 30px 60px rgba(255, 76, 96, 0.2),
    0 12px 32px rgba(0, 0, 0, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

/* Responsive design */
@media (max-width: 1200px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }
}

@media (max-width: 768px) {
  .services-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    padding: 0 0.5rem;
  }
  
  .service-card {
    padding: 2rem;
    min-height: 380px;
  }
  
  .service-icon {
    width: 64px;
    height: 64px;
    font-size: 24px;
  }
  
  .service-card h3 {
    font-size: 1.25rem;
  }
  
  .service-card.featured::after {
    top: 1rem;
    right: 1rem;
  }
}

@media (max-width: 480px) {
  .service-card {
    padding: 1.5rem;
    border-radius: 20px;
  }
  
  .service-icon {
    width: 56px;
    height: 56px;
    font-size: 22px;
    border-radius: 16px;
  }
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
  .service-card {
    background: rgba(30, 30, 30, 0.95);
    border-color: rgba(255, 255, 255, 0.1);
  }
  
  .service-card h3 {
    background: linear-gradient(135deg, #ffffff 0%, #e0e0e0 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
  }
  
  .service-card p {
    color: #b0b0b0;
  }
  
  .service-features li {
    color: #a0a0a0;
    border-bottom-color: rgba(255, 255, 255, 0.1);
  }
}

/* Smooth entrance animation */
.service-card {
  opacity: 0;
  transform: translateY(30px);
  animation: slideInUp 0.6s ease-out forwards;
}

.service-card:nth-child(1) { animation-delay: 0.1s; }
.service-card:nth-child(2) { animation-delay: 0.2s; }
.service-card:nth-child(3) { animation-delay: 0.3s; }
.service-card:nth-child(4) { animation-delay: 0.4s; }
.service-card:nth-child(5) { animation-delay: 0.5s; }
.service-card:nth-child(6) { animation-delay: 0.6s; }

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