/* Services Page Specific Styles */

/* Header Section */
.services-header {
  text-align: center;
  margin-bottom: 5rem;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
  padding: 2rem 1rem 0;
  opacity: 0;
  transform: translateY(30px);
  animation: fadeInUp 0.8s ease-out forwards;
}

.services-title {
  font-size: 3rem;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 1.25rem;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1.2;
  letter-spacing: -0.02em;
  text-align: center;
  width: 100%;
}

.services-subtitle {
  font-size: 1.25rem;
  color: var(--text-secondary);
  font-weight: 400;
  margin: 0 auto;
  line-height: 1.6;
  max-width: 700px;
  text-align: center;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2.5rem;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.service-card {
  background: var(--primary-dark);
  border-radius: 1.25rem;
  padding: 3rem 2.5rem;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
  border: 2px solid rgba(255, 255, 255, 0.1);
  position: relative;
  overflow: hidden;
  min-height: 280px;
  text-align: center;
  align-items: center;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s ease;
}

.service-card.visible {
  opacity: 1 !important;
  transform: translateY(0) !important;
}

.service-card:hover {
  transform: translateY(-10px) scale(1.01);
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.3), 0 0 0 1px rgba(255, 107, 53, 0.3);
  border-color: var(--accent);
  background: var(--primary-dark);
}

.service-card:hover::before {
  transform: scaleX(1);
}

.icon-container {
  width: 64px;
  height: 64px;
  border-radius: 1rem;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 107, 53, 0.2));
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  flex-shrink: 0;
  margin: 0 auto;
}

.icon-container::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  opacity: 0.08;
  transform: translate(-50%, -50%);
  transition: width 0.3s ease, height 0.3s ease;
}

.service-card:hover .icon-container::before {
  width: 80px;
  height: 80px;
}

.service-card:hover .icon-container {
  transform: scale(1.08) rotate(5deg);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.15), rgba(255, 107, 53, 0.3));
  box-shadow: 0 4px 12px rgba(255, 107, 53, 0.3);
}

.service-card .icon {
  font-size: 2rem;
  line-height: 1;
  position: relative;
  z-index: 1;
  transition: transform 0.3s ease;
  display: block;
  opacity: 1;
  filter: grayscale(0);
}

.service-card:hover .icon {
  transform: scale(1.1);
  opacity: 1;
}

.service-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  text-align: center;
  align-items: center;
  width: 100%;
}

.service-card h2 {
  font-size: 1.625rem;
  font-weight: 700;
  color: var(--white);
  margin: 0;
  transition: color 0.3s ease;
  line-height: 1.3;
  letter-spacing: -0.01em;
  text-align: center;
  width: 100%;
}

.service-card:hover h2 {
  color: var(--accent);
}

.service-card p {
  color: var(--white);
  line-height: 1.75;
  margin: 0;
  font-size: 1rem;
  letter-spacing: 0.01em;
  text-align: center;
  width: 100%;
  text-justify: none;
  opacity: 0.9;
}

/* CTA Section at Bottom */













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

/* Smooth transitions for better UX */
.service-card,
.service-card * {
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
}

/* Improved focus states for accessibility */
.service-card:focus-within {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
}

@keyframes gradientShift {
  0%, 100% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
}

/* Dark Mode Adjustments */
[data-theme="dark"] .services-title {
  background: linear-gradient(135deg, #ffffff, var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

[data-theme="dark"] body {
  background-color: var(--silver);
}

[data-theme="dark"] .service-card {
  background: var(--primary-dark);
  border-color: rgba(255, 255, 255, 0.12);
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.3), 0 2px 4px -1px rgba(0, 0, 0, 0.2);
}

[data-theme="dark"] .service-card:hover {
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(255, 140, 90, 0.3);
  background: var(--primary-dark);
}

[data-theme="dark"] .icon-container {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 140, 90, 0.2));
}

[data-theme="dark"] .service-card:hover .icon-container {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.15), rgba(255, 140, 90, 0.3));
  box-shadow: 0 4px 12px rgba(255, 140, 90, 0.3);
}

[data-theme="dark"] .service-card h2 {
  color: var(--white);
}

[data-theme="dark"] .service-card:hover h2 {
  color: var(--accent);
}

[data-theme="dark"] .service-card p {
  color: #e5e5e5;
  opacity: 1;
}




/* Mobile Responsive */
@media (max-width: 768px) {
  .services-header {
    margin-bottom: 3.5rem;
    padding: 1.5rem 1rem 0;
  }
  
  .services-title {
    font-size: 2.25rem;
    margin-bottom: 1rem;
  }
  
  .services-subtitle {
    font-size: 1.125rem;
  }
  
  .service-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
    padding: 0 1rem;
  }
  
  .service-card {
    padding: 2.5rem 2rem;
    min-height: auto;
  }
  
  .icon-container {
    width: 56px;
    height: 56px;
  }
  
  .service-card .icon {
    font-size: 1.75rem;
  }
  
  .service-card h2 {
    font-size: 1.5rem;
  }
  
  .service-card p {
    font-size: 0.95rem;
  }
  

@media (max-width: 480px) {
  .services-title {
    font-size: 1.875rem;
  }
  
  .services-subtitle {
    font-size: 1rem;
  }
  
  .service-card {
    padding: 2rem 1.5rem;
    gap: 1.5rem;
  }
  
  .icon-container {
    width: 52px;
    height: 52px;
  }
  
  .service-card .icon {
    font-size: 1.625rem;
  }
  
