/* Services nadpis a podnadpis */
.services__title {
  font-size: clamp(2.5rem, 6vw, 4rem);
  font-weight: 700;
  color: #ffffff;
  text-align: center;
  margin-bottom: 1.5rem;
  letter-spacing: -0.02em;
  line-height: 1.1;
  opacity: 0;
  transform: translateY(30px);
  animation: fadeInUp 0.8s ease 0.2s forwards;
}

.services__title-main {
  display: block;
  margin-bottom: 0.5rem;
}

.services__title-highlight {
  background: linear-gradient(135deg, #8b5cf6 0%, #ec4899 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  position: relative;
}

.services__title-highlight::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(135deg, #8b5cf6 0%, #ec4899 100%);
  border-radius: 2px;
  opacity: 0.7;
  animation: underlineGrow 1s ease 0.5s forwards;
  transform: scaleX(0);
  transform-origin: left;
}

@keyframes underlineGrow {
  to {
    transform: scaleX(1);
  }
}

.services__subtitle {
  font-size: clamp(1.1rem, 2.5vw, 1.4rem);
  color: #c7d2fe;
  text-align: center;
  margin-bottom: 3rem;
  font-weight: 300;
  line-height: 1.6;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 0.8s ease 0.4s forwards;
}

.services__subtitle-text {
  color: #c7d2fe;
}

.services__subtitle-highlight {
  background: linear-gradient(135deg, #60a5fa 0%, #3b82f6 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  font-weight: 600;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-top: 3rem;
  max-width: 1000px;
  margin-left: auto;
  margin-right: auto;
}

/* Animace při zobrazení */
.service-card {
  opacity: 0;
  transform: translateY(30px);
  animation: fadeInUp 0.6s ease 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 fadeInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.service-card {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 1rem;
  padding: 2rem;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(135deg, #8b5cf6 0%, #ec4899 100%);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.service-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
  border-color: rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.08);
}

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

.service-card__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, #8b5cf6 0%, #ec4899 100%);
  border-radius: 1.5rem;
  margin: 0 auto 2rem auto;
  position: relative;
}

.service-card__icon::before {
  content: '';
  position: absolute;
  top: -2px;
  left: -2px;
  right: -2px;
  bottom: -2px;
  background: linear-gradient(135deg, #8b5cf6 0%, #ec4899 100%);
  border-radius: 1rem;
  z-index: -1;
  opacity: 0.3;
}

.service-icon {
  font-size: 2rem;
  filter: grayscale(0);
}

.service-card__title {
  font-size: 1.5rem;
  font-weight: 600;
  color: #ffffff;
  margin-bottom: 1.25rem;
  line-height: 1.3;
  text-align: center;
}

.service-card__description {
  color: #c7d2fe;
  line-height: 1.7;
  font-size: 1.1rem;
  opacity: 0.9;
  text-align: center;
}

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

@media (max-width: 768px) {
  .services-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
    margin-top: 2rem;
    max-width: 400px;
  }
  
  .service-card {
    padding: 1.5rem;
  }
  
  .service-card__icon {
    width: 70px;
    height: 70px;
    margin-bottom: 1.5rem;
  }
  
  .service-icon {
    font-size: 1.75rem;
  }
  
  .service-card__title {
    font-size: 1.375rem;
  }
  
  .service-card__description {
    font-size: 1rem;
  }
}

@media (max-width: 480px) {
  .services-grid {
    gap: 0.75rem;
    max-width: 350px;
  }
  
  .service-card {
    padding: 1.25rem;
  }
  
  .service-card__icon {
    width: 60px;
    height: 60px;
    margin-bottom: 1.25rem;
  }
  
  .service-icon {
    font-size: 1.5rem;
  }
  
  .service-card__title {
    font-size: 1.25rem;
  }
  
  .service-card__description {
    font-size: 0.95rem;
  }
}