/* ==========================================================================
   Services Section - Ghunim-Inspired Smooth Scroll Effect
   Immersive dynamic background, animated typography, and sliding cards track
   ========================================================================== */

.services-scroll-section {
  position: relative;
  width: 100%;
  background-color: var(--bg-deep);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 100px 0 60px 0;
  border-top: 1px solid rgba(201, 155, 83, 0.15);
  border-bottom: 1px solid rgba(201, 155, 83, 0.15);
  box-sizing: border-box;
}

/* Background Crossfading Layers */
.services-bg-layer {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: none;
}

.service-bg-item {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  background-position: center;
  background-size: cover;
  opacity: 0;
  transform: scale(1.06);
  transition: opacity 0.8s cubic-bezier(0.25, 1, 0.5, 1), transform 1s cubic-bezier(0.25, 1, 0.5, 1);
}

.service-bg-item.is-active {
  opacity: 1;
  transform: scale(1);
}

.services-ambient-dimmer {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg,
    rgba(5, 22, 18, 0.94) 0%,
    rgba(7, 30, 24, 0.88) 50%,
    rgba(5, 22, 18, 0.95) 100%);
  z-index: 2;
  pointer-events: none;
}

/* Header inside services */
.services-header-top {
  position: relative;
  z-index: 10;
  text-align: center;
  margin-bottom: 20px;
}

.services-header-top .section-tag {
  color: var(--gold-light);
  letter-spacing: 2px;
  font-size: 0.88rem;
}

.services-header-top .section-title {
  font-size: 2.2rem;
  margin-bottom: 6px;
}

.services-header-top .services-gold-line {
  width: 50px;
  height: 2px;
  background: var(--gold-gradient);
  margin: 8px auto 0 auto;
  border-radius: 2px;
}

/* Main Interactive Split Layout */
.services-interactive-wrapper {
  position: relative;
  z-index: 10;
  width: 100%;
  max-width: 1360px;
  margin-left: auto;
  margin-right: auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  gap: 50px;
  flex: 1;
}

@media (max-width: 1024px) {
  .services-interactive-wrapper {
    flex-direction: column;
    gap: 30px;
  }
}

/* Content Details Side (Text) */
.services-details-pane {
  flex: 1;
  max-width: 520px;
  position: relative;
}

.service-details-card {
  display: none;
  animation: serviceContentSlide 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.service-details-card.is-active {
  display: block;
}

@keyframes serviceContentSlide {
  0% {
    opacity: 0;
    transform: translateX(30px);
  }
  100% {
    opacity: 1;
    transform: translateX(0);
  }
}

.service-category-badge {
  display: inline-block;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--gold-light);
  background: rgba(201, 155, 83, 0.12);
  border: 1px solid var(--gold-border);
  padding: 6px 16px;
  border-radius: var(--radius-full);
  margin-bottom: 16px;
}

.service-title {
  font-family: var(--font-heading) !important;
  font-size: 2.35rem;
  font-weight: 700;
  color: var(--text-white);
  line-height: 1.25;
  margin-bottom: 10px;
}

@media (max-width: 768px) {
  .service-title {
    font-size: 1.9rem;
  }
}

.service-location-tag {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 1rem;
  color: var(--gold-light);
  margin-bottom: 14px;
}

.service-location-tag svg {
  width: 17px;
  height: 17px;
  fill: currentColor;
}

.service-desc-text {
  font-size: 1.02rem;
  color: var(--text-cream);
  line-height: 1.75;
  margin-bottom: 20px;
}

/* Feature Checkpoints */
.service-feature-checklist {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 26px;
}

.service-checklist-item {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.96rem;
  color: var(--text-muted);
}

.service-checklist-item svg {
  width: 17px;
  height: 17px;
  fill: var(--primary-gold);
  flex-shrink: 0;
}

/* Buttons in Service Card */
.service-cta-group {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

/* Cards Carousel Track Side */
.services-cards-pane {
  flex: 1.2;
  width: 100%;
  overflow: hidden;
  position: relative;
  padding: 20px 0;
  direction: rtl;
  padding: 20px;
}

.services-cards-track {
  display: flex;
  gap: 20px;
  transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1);
  will-change: transform;
}

/* Individual Service Visual Card (Ghunim-style portrait) */
.service-card-item {
  position: relative;
  flex-shrink: 0;
  width: 240px;
  height: 350px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  cursor: pointer;
  border: 1px solid rgba(201, 155, 83, 0.25);
  background: var(--bg-surface);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.5);
  opacity: 0.72;
  filter: brightness(0.85);
  transition: all 0.45s cubic-bezier(0.25, 1, 0.5, 1);
  user-select: none;
}

@media (max-width: 768px) {
  .service-card-item {
    width: 200px;
    height: 300px;
  }
}

/* Card Number Badge */
.service-card-num-badge {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 5;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(5, 22, 18, 0.85);
  border: 1px solid rgba(201, 155, 83, 0.4);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading) !important;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--gold-light);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.4);
  transition: all 0.35s ease;
}

.service-card-item img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1);
}

.service-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg,
    rgba(5, 22, 18, 0.15) 0%,
    rgba(5, 22, 18, 0.45) 50%,
    rgba(5, 22, 18, 0.95) 100%);
  transition: background 0.3s ease;
}

.service-card-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 20px 18px;
  z-index: 2;
  text-align: right;
}

.service-card-tag {
  display: block;
  font-size: 0.78rem;
  color: var(--gold-light);
  margin-bottom: 5px;
  font-weight: 500;
}

.service-card-title {
  font-family: var(--font-heading) !important;
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--text-white);
  line-height: 1.25;
}

/* Active Service Card Highlight */
.service-card-item:hover {
  opacity: 0.95;
  filter: brightness(0.95);
  transform: translateY(-6px);
  border-color: var(--gold-light);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6), 0 0 25px rgba(201, 155, 83, 0.25);
}

.service-card-item:hover img {
  transform: scale(1.06);
}

.service-card-item.is-active {
  opacity: 1;
  filter: brightness(1);
  border-color: var(--gold-light);
  transform: scale(1.04) translateY(-6px);
  box-shadow: 0 25px 45px rgba(0, 0, 0, 0.7), 0 0 35px rgba(201, 155, 83, 0.4);
}

.service-card-item.is-active .service-card-num-badge {
  background: var(--gold-gradient);
  color: #071f19;
  border-color: transparent;
  box-shadow: var(--shadow-gold);
  transform: scale(1.1);
}

.service-card-item.is-active::after {
  content: '';
  position: absolute;
  inset: 0;
  border: 2px solid var(--gold-light);
  border-radius: var(--radius-lg);
  pointer-events: none;
}

/* Service Navigation Footer & Counter */
.services-footer-bar {
  position: relative;
  z-index: 10;
  width: 100%;
  max-width: 1360px;
  margin-left: auto;
  margin-right: auto;
  margin-top: 35px;
  padding: 30px 24px 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

@media (max-width: 768px) {
  .services-footer-bar {
    flex-direction: column-reverse;
    gap: 20px;
    align-items: center;
  }
}

.services-counter {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-heading) !important;
  font-size: 1.6rem;
  font-weight: 700;
}

.services-counter .current-num {
  color: var(--gold-light);
}

.services-counter .separator {
  color: rgba(255, 255, 255, 0.3);
}

.services-counter .total-num {
  color: var(--text-dim);
}

.services-nav-buttons {
  display: flex;
  align-items: center;
  gap: 14px;
}

.service-nav-btn {
  position: relative;
  width: 48px;
  height: 48px;
  background: var(--gold-gradient);
  clip-path: polygon(25% 0%, 75% 0%, 100% 50%, 75% 100%, 25% 100%, 0% 50%);
  border: none;
  border-radius: 0 !important;
  color: var(--gold-light);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.4));
  transition: var(--transition-smooth);
}

.service-nav-btn::before {
  content: '';
  position: absolute;
  inset: 1.5px;
  background: rgba(13, 48, 39, 0.88);
  clip-path: polygon(25% 0%, 75% 0%, 100% 50%, 75% 100%, 25% 100%, 0% 50%);
  z-index: 1;
  transition: var(--transition-smooth);
}

.service-nav-btn svg {
  position: relative;
  z-index: 2;
  width: 20px;
  height: 20px;
  fill: currentColor;
  transition: var(--transition-smooth);
}

.service-nav-btn:hover::before {
  background: transparent;
}

.service-nav-btn:hover {
  color: #071f19;
  transform: scale(1.08);
  filter: drop-shadow(0 6px 18px rgba(201, 155, 83, 0.6));
}

.services-explore-all-btn {
  font-size: 0.98rem;
  color: var(--gold-light);
  display: flex;
  align-items: center;
  gap: 8px;
  border-bottom: 1px dashed var(--gold-border);
  padding-bottom: 4px;
}

.services-explore-all-btn:hover {
  color: var(--text-white);
  border-bottom-color: var(--text-white);
  transform: translateX(-4px);
}
