/* SERVICES PAGE CSS */
.pageHeader {
  background-color: var(--primary-color);
  background-image: linear-gradient(135deg, #0b0f19 0%, #2e1065 100%);
  color: white;
  padding: 6rem 0 4rem;
  text-align: center;
  /* margin-top: var(--header-height); */
}

.pageTitle {
  font-size: 3rem;
  margin-bottom: 0.75rem;
  color: white;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.pageSubtitle {
  color: #cbd5e1;
  font-size: 1.25rem;
  max-width: 600px;
  margin: 0 auto;
}

.servicesGrid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
}

@media (min-width: 768px) {
  .servicesGrid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 992px) {
  .servicesGrid {
    grid-template-columns: repeat(3, 1fr);
    /* Exactly 3 cards per row maximum */
  }
}

.serviceCard {
  background-color: var(--surface-color);
  border: 1px solid var(--border-color);
  border-radius: 1.5rem;
  padding: 3rem 2rem;
  text-align: center;
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.serviceCard::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--secondary-color), var(--accent-color));
  opacity: 0;
  transition: opacity 0.3s ease;
}

.serviceCard:hover::before {
  opacity: 1;
}

.serviceCard:hover {
  transform: translateY(-12px) scale(1.02);
  box-shadow: var(--shadow-xl), var(--shadow-glow);
  border-color: var(--secondary-color);
}

.iconWrapper {
  width: 80px;
  height: 80px;
  background-color: rgba(139, 92, 246, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 2rem;
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  border: 1px solid rgba(139, 92, 246, 0.15);
}

.serviceCard:hover .iconWrapper {
  background: linear-gradient(135deg, var(--secondary-color), var(--accent-color));
  box-shadow: 0 0 20px rgba(139, 92, 246, 0.4);
  transform: scale(1.1) rotate(5deg);
  border-color: transparent;
}

.icon {
  color: var(--secondary-color);
  font-size: 2.25rem;
  transition: color 0.4s ease;
}

.serviceCard:hover .icon {
  color: white;
}

/* Service Card Image Thumbnail Styles */
.serviceImageWrapper {
  width: 100%;
  height: 260px;
  border-radius: 1rem;
  overflow: hidden;
  margin-bottom: 2rem;
  box-shadow: var(--shadow-md);
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  border: 1px solid var(--border-color);
  flex-shrink: 0;
}

.serviceCardImage {
  width: 100%;
  height: 260px;
  object-fit: cover;
  transition: transform 0.4s ease;
  display: block;
}

.serviceCard:hover .serviceImageWrapper {
  transform: scale(1.1) rotate(3deg);
  border-color: var(--secondary-color);
  box-shadow: var(--shadow-xl), var(--shadow-glow);
}

.serviceCard:hover .serviceCardImage {
  transform: scale(1.15);
}

.serviceCard h3 {
  font-size: 1.35rem;
  margin-bottom: 1rem;
  font-weight: 700;
  color: var(--text-primary);
}

.serviceCard p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.6;
}


@media (max-width: 767px) {
  .servicesGrid {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 1.5rem;
    padding: 0.5rem 1.5rem 2rem 1.5rem;
    margin: 0 -1.5rem;
    -ms-overflow-style: none;
    scrollbar-width: none;
  }

  .servicesGrid::-webkit-scrollbar {
    display: none;
  }

  .serviceCard {
    flex: 0 0 400px;
    width: 290px;
    scroll-snap-align: center;
    box-sizing: border-box;
    margin: 0;
  }
}