/* Services page specific styles */

/* --- Services Page --- */
.services-section {
  background: linear-gradient(180deg, var(--surface) 0%, var(--bg) 40%, var(--surface-muted) 100%);
  position: relative;
  padding: 80px 0;
  overflow-x: clip;
  overflow-y: visible;
}

.services-section .section-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.04;
  pointer-events: none;
}

.services-inner {
  position: relative;
  z-index: 2;
}

.services-section-title {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: 36px;
  color: var(--dark);
  text-align: center;
  margin-bottom: 12px;
}

.services-section-subtitle {
  font-size: 16px;
  color: var(--gray-700);
  text-align: center;
  margin-bottom: 48px;
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
}

/* wide horizontal card scroller */
.services-grid-full {
  display: flex;
  gap: 24px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  padding: 12px 0 24px;
  scrollbar-width: thin;
  scrollbar-color: var(--primary) var(--surface);
}

.services-grid-full::-webkit-scrollbar {
  height: 8px;
}

.services-grid-full::-webkit-scrollbar-track {
  background: var(--surface) !important;
  border-radius: 4px;
}

.services-grid-full::-webkit-scrollbar-thumb {
  background: var(--primary) !important;
  border-radius: 4px;
}

.services-grid-full::-webkit-scrollbar-thumb:hover {
  background: #5bb8e8 !important;
}

.services-grid-full .service-card {
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(74, 156, 194, 0.18);
  border-radius: var(--radius-md);
  padding: 40px 28px 36px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94),
    background 0.4s ease,
    border-color 0.4s ease,
    box-shadow 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  overflow: visible;
  min-width: 320px;
  max-width: 360px;
  flex-shrink: 0;
  scroll-snap-align: start;
  position: relative;
}

/* Top accent line */
.services-grid-full .service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(74, 156, 194, 0.8), transparent);
  transition: width 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94), left 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* Bottom glow */
/* .services-grid-full .service-card::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 20%;
  right: 20%;
  height: 40%;
  background: radial-gradient(ellipse at bottom, rgba(74, 156, 194, 0.18), transparent);
  opacity: 0;
  transition: opacity 0.5s ease;
  pointer-events: none;
  border-radius: 0 0 var(--radius-md) var(--radius-md);
} */

.services-grid-full .service-card:hover {
  background: rgba(255, 255, 255, 1);
  border-color: rgba(74, 156, 194, 0.35);
  transform: translateY(-8px);
  box-shadow:
    0 20px 60px rgba(74, 156, 194, 0.12),
    0 0 30px rgba(74, 156, 194, 0.08);
}

.services-grid-full .service-card:hover::before {
  width: 100%;
  left: 0;
}

.services-grid-full .service-card:hover::after {
  opacity: 1;
}

.services-card-icon {
  width: 52px;
  height: 52px;
  margin-bottom: 24px;
  opacity: 0.8;
  filter: none;
  transition: opacity 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94),
    transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  transform: scale(1);
}

.services-grid-full .service-card:hover .services-card-icon {
  opacity: 1;
  transform: scale(1.15);
}

.services-card-title {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: 20px;
  color: var(--dark);
  margin-bottom: 12px;
  line-height: 1.3;
  transition: color 0.4s ease;
}

.services-grid-full .service-card:hover .services-card-title {
  color: var(--primary-dark);
}

.card-body-text {
  font-size: 14px;
  line-height: 1.7;
  color: var(--gray-700);
  margin-bottom: 24px;
  flex: 1;
  transition: color 0.4s ease;
}

.services-grid-full .service-card:hover .card-body-text {
  color: var(--dark);
}

.card-explore {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 0.8px;
  transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  position: relative;
}

.card-explore::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--primary);
  transition: width 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.services-grid-full .service-card:hover .card-explore {
  color: var(--primary-dark);
  gap: 12px;
}

.services-grid-full .service-card:hover .card-explore::after {
  width: 100%;
}

.card-explore .arrow-icon {
  font-size: 11px;
  transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.services-grid-full .service-card:hover .card-explore .arrow-icon {
  transform: translateX(4px);
}

/* responsive tweaks for this page */
@media (max-width: 992px) {
  .services-grid-full {
    min-width: 0;
  }
}