/* ============================================
   Our Services Section — Lanka Tour Driver
   ============================================ */

/* --- Keyframes --- */
@keyframes svcFadeInUp {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* --- Section --- */
.services-section {
  background: #FDFAF5;
  padding: 70px 0 65px;
  position: relative;
  overflow: hidden;
}

.services-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(0, 139, 139, 0.15), transparent);
}

/* Decorative ambient circles */
.services-section__bg-teal {
  position: absolute;
  top: -80px;
  right: -100px;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background: rgba(0, 139, 139, 0.03);
  filter: blur(60px);
  pointer-events: none;
}

.services-section__bg-coral {
  position: absolute;
  bottom: -60px;
  left: -80px;
  width: 200px;
  height: 200px;
  border-radius: 50%;
  background: rgba(255, 127, 80, 0.03);
  filter: blur(50px);
  pointer-events: none;
}

/* --- Container --- */
.services-section__container {
  max-width: 1300px;
  margin: 0 auto;
  padding: 0 50px;
  position: relative;
  z-index: 1;
}

/* --- Header --- */
.services-section__header {
  text-align: center;
  margin-bottom: 40px;
}

.services-section__label {
  display: block;
  font-family: 'DM Sans', sans-serif;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: #008B8B;
  margin-bottom: 12px;
  opacity: 0;
  animation: svcFadeInUp 0.6s cubic-bezier(0.4, 0, 0.2, 1) 0s forwards;
}

.services-section__title {
  font-family: 'Playfair Display', serif;
  font-size: 34px;
  font-weight: 700;
  color: #1A3A52;
  line-height: 1.25;
  margin: 0 0 12px;
  opacity: 0;
  animation: svcFadeInUp 0.6s cubic-bezier(0.4, 0, 0.2, 1) 0.1s forwards;
}

.services-section__title em {
  color: #008B8B;
  font-style: italic;
}

.services-section__subtitle {
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  font-weight: 400;
  color: rgba(74, 106, 122, 0.75);
  line-height: 1.7;
  max-width: 520px;
  margin: 0 auto;
  opacity: 0;
  animation: svcFadeInUp 0.6s cubic-bezier(0.4, 0, 0.2, 1) 0.15s forwards;
}

/* --- Grid --- */
.services-section__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

/* --- Service Item --- */
.services-section__item {
  background: #FFFFFF;
  border-radius: 16px;
  border: 1px solid rgba(0, 0, 0, 0.04);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.02);
  padding: 24px 20px;
  text-align: left;
  position: relative;
  overflow: hidden;
  opacity: 0;
  animation: svcFadeInUp 0.6s cubic-bezier(0.4, 0, 0.2, 1) forwards;
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1),
              box-shadow 0.4s cubic-bezier(0.4, 0, 0.2, 1),
              border-color 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Left border accents — teal for odd, coral for even */
.services-section__item:nth-child(odd) {
  border-left: 3px solid rgba(0, 139, 139, 0.15);
}

.services-section__item:nth-child(even) {
  border-left: 3px solid rgba(255, 127, 80, 0.15);
}

.services-section__item:nth-child(odd):hover {
  border-left-color: rgba(0, 139, 139, 0.6);
}

.services-section__item:nth-child(even):hover {
  border-left-color: rgba(255, 127, 80, 0.6);
}

/* Staggered animation delays */
.services-section__item:nth-child(1) { animation-delay: 0.06s; }
.services-section__item:nth-child(2) { animation-delay: 0.12s; }
.services-section__item:nth-child(3) { animation-delay: 0.18s; }
.services-section__item:nth-child(4) { animation-delay: 0.24s; }
.services-section__item:nth-child(5) { animation-delay: 0.30s; }
.services-section__item:nth-child(6) { animation-delay: 0.36s; }
.services-section__item:nth-child(7) { animation-delay: 0.42s; }
.services-section__item:nth-child(8) { animation-delay: 0.48s; }

/* Top accent bar — hidden by default, reveals on hover */
.services-section__item::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(135deg, #008B8B, #20B2AA);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.services-section__item:hover::after {
  transform: scaleX(1);
}

.services-section__item:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 28px rgba(0, 139, 139, 0.06);
  border-color: rgba(0, 139, 139, 0.08);
}

.services-section__item:hover .services-section__icon {
  transform: scale(1.08);
}

/* --- Icon Container --- */
.services-section__icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 0 14px;
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.services-section__icon--teal {
  background: rgba(0, 139, 139, 0.06);
  color: #008B8B;
}

.services-section__icon--coral {
  background: rgba(255, 127, 80, 0.06);
  color: #FF7F50;
}

.services-section__icon svg {
  width: 22px;
  height: 22px;
}

/* --- Item Title --- */
.services-section__item-title {
  font-family: 'DM Sans', sans-serif;
  font-size: 13.5px;
  font-weight: 600;
  color: #1A3A52;
  line-height: 1.4;
  margin: 0;
}

/* --- Item Description --- */
.services-section__item-desc {
  font-family: 'DM Sans', sans-serif;
  font-size: 12px;
  font-weight: 400;
  color: rgba(74, 106, 122, 0.6);
  line-height: 1.5;
  margin: 6px 0 0;
}

/* ============================================
   Responsive
   ============================================ */

@media (max-width: 1100px) {
  .services-section__container {
    padding: 0 40px;
  }

  .services-section__grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .services-section__item {
    padding: 22px 18px;
  }
}

@media (max-width: 768px) {
  .services-section {
    padding: 55px 0;
  }

  .services-section__grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
  }
}

@media (max-width: 480px) {
  .services-section {
    padding: 45px 0;
  }

  .services-section__container {
    padding: 0 20px;
  }

  .services-section__title {
    font-size: 26px;
  }

  .services-section__item {
    padding: 18px 14px;
  }

  .services-section__icon {
    width: 42px;
    height: 42px;
  }

  .services-section__icon svg {
    width: 18px;
    height: 18px;
  }

  .services-section__item-title {
    font-size: 12.5px;
  }

  .services-section__item-desc {
    font-size: 11px;
  }
}
