/* ============================================
   SERVICE CARD COMPONENT
   ============================================ */

.service-card {
  padding: 2.5rem;
  background: var(--card-bg-modern);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid var(--card-border-modern);
  border-radius: 2rem;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  isolation: isolate;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08), 0 1px 3px rgba(0, 0, 0, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

/* Dot pattern background */
.service-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(
    circle at 1px 1px,
    rgba(0, 212, 255, 0.15) 1px,
    transparent 0
  );
  background-size: 20px 20px;
  opacity: 0;
  transition: opacity 0.5s ease;
  z-index: -1;
}

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

.service-card:hover {
  transform: translateY(-16px) scale(1.03);
  border-color: rgba(0, 212, 255, 0.3);
  box-shadow: 0 32px 80px rgba(0, 212, 255, 0.15),
    0 16px 40px rgba(0, 0, 0, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

/* Visual */
.service-card__visual {
  height: 140px;
  background: linear-gradient(135deg, #00d4ff 0%, #667eea 50%, #764ba2 100%);
  border-radius: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  color: var(--text-primary);
  position: relative;
  overflow: hidden;
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
  box-shadow: 0 8px 32px rgba(0, 212, 255, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.service-card__visual::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    45deg,
    transparent 30%,
    rgba(255, 255, 255, 0.1) 50%,
    transparent 70%
  );
  transform: translateX(-100%) rotate(45deg);
  transition: transform 0.6s ease;
}

.service-card:hover .service-card__visual::before {
  transform: translateX(100%) rotate(45deg);
}

.service-card:hover .service-card__visual {
  transform: translateY(-8px) scale(1.05);
  box-shadow: 0 16px 48px rgba(0, 212, 255, 0.4), 0 8px 24px rgba(0, 0, 0, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

/* Title & Description */
.service-card__title {
  color: var(--text-primary);
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 0;
  line-height: 1.3;
  letter-spacing: -0.5px;
}

.service-card__description {
  color: rgba(255, 255, 255, 0.85);
  font-size: 1rem;
  line-height: 1.7;
  font-weight: 400;
  margin: 0;
}

/* CTA */
.service-card__cta {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: #00d4ff;
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  position: relative;
  margin-top: auto;
  padding: 0.75rem 0;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  width: fit-content;
}

.service-card__cta-text {
  position: relative;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.service-card__cta-text::after {
  content: "";
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, #00d4ff, #667eea);
  transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.service-card__cta:hover .service-card__cta-text::after {
  width: 100%;
}

.service-card__cta-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  background: rgba(0, 212, 255, 0.1);
  border-radius: 50%;
  border: 1px solid rgba(0, 212, 255, 0.3);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.service-card__cta-icon::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at center, rgba(0, 212, 255, 0.3), transparent);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.service-card__cta:hover .service-card__cta-icon::before {
  opacity: 1;
}

.service-card__cta-icon svg {
  width: 18px;
  height: 18px;
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  z-index: 1;
}

.service-card__cta:hover {
  color: #00d4ff;
  transform: translateX(4px);
}

.service-card__cta:hover .service-card__cta-icon {
  background: rgba(0, 212, 255, 0.2);
  border-color: #00d4ff;
  transform: scale(1.1);
  box-shadow: 0 0 16px rgba(0, 212, 255, 0.4);
}

.service-card__cta:hover .service-card__cta-icon svg {
  transform: translateX(3px);
}

.service-card:hover .service-card__cta {
  color: #00d4ff;
}

.service-card:hover .service-card__cta-icon {
  background: rgba(0, 212, 255, 0.15);
  border-color: rgba(0, 212, 255, 0.5);
}
