/* ============================================
   Services Page - savage.design
   ============================================ */

/* Removed global blur overlay */

/* Services Component Container */
.services-component {
  max-width: 1200px;
  margin: 0 auto;
  min-height: 100vh;
  height: 100vh;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  flex-direction: column;
  padding: 80px 2rem 2rem;
  overflow-y: auto;
  overflow-x: hidden;
  /* Hide scrollbar while keeping scroll functionality */
  scrollbar-width: none;
  -ms-overflow-style: none;
  /* Ensure services sit above the fullscreen canvas (z-index: 2) */
  z-index: 20;
}

.services-component::-webkit-scrollbar {
  display: none;
}

.services-list {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  flex: 1;
  justify-content: center;
  position: relative;
  z-index: 21;
}

/* Service Item */
.service-item {
  width: 100%;
  text-align: center;
  cursor: none;
  margin-bottom: 2rem;
  position: relative;
  opacity: 1;
  visibility: visible;
  z-index: 22;
}

/* Service Title Container */
.service-title-container {
  position: relative;
  display: inline-block;
  z-index: 5;
  pointer-events: auto;
  will-change: transform, opacity, filter;
}

.service-title {
  font-size: var(--h3-size);
  font-family: var(--font-primary);
  font-weight: 800;
  color: var(--color-white);
  letter-spacing: -0.02em;
  margin: 0.5rem 0;
  transition: font-size 0.3s ease, letter-spacing 0.3s ease;
}

/* Hover Indicators (Side Squares) */
.hover-indicator {
  position: absolute;
  width: 12px;
  height: 12px;
  background-color: var(--color-accent);
  top: 50%;
  transform: translateY(-50%);
  opacity: 0;
  pointer-events: none;
  z-index: 100;
  will-change: width, opacity;
}

.hover-indicator.left {
  left: -28px;
}

.hover-indicator.right {
  right: -28px;
}

/* Service Content (Hidden by default) */
.service-content {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  padding: 0 1rem;
  margin: 0;
  pointer-events: none;
  gap: 2rem;
}

/* Service Details (Side Labels) */
.service-details {
  width: 20%;
  min-width: 140px;
  text-align: left;
  font-family: var(--font-secondary);
  font-size: var(--p-sm-size);
  font-weight: 300;
  letter-spacing: 0.05em;
  color: var(--color-white);
}

.service-details .line-wrapper {
  overflow: hidden;
  margin-bottom: 0.5rem;
}

.service-details.right {
  text-align: right;
}

.detail-label {
  margin-bottom: 0.5rem;
  opacity: 0.7;
}

/* Service Description (Center) */
.service-description {
  width: 50%;
  max-width: 600px;
  text-align: center;
}

.service-description p {
  font-family: var(--font-secondary);
  font-size: var(--p-size);
  font-weight: 300;
  line-height: var(--p-line-height);
  color: var(--color-white);
  opacity: 0.9;
}

/* ============================================
   Responsive - Tablet (800-1279px)
   ============================================ */
@media (min-width: 800px) and (max-width: 1279px) {
  .services-component {
    padding: 70px 1.5rem 1.5rem;
  }

  .service-item {
    margin-bottom: 1.5rem;
  }

  .service-content {
    gap: 1.5rem;
  }

  .service-details {
    width: 22%;
    min-width: 120px;
  }

  .service-description {
    width: 56%;
  }

  .hover-indicator.left {
    left: -24px;
  }

  .hover-indicator.right {
    right: -24px;
  }
}

/* ============================================
   Responsive - Mobile (1-799px)
   ============================================ */
@media (max-width: 799px) {
  .services-component {
    padding: 60px 1rem 1rem;
  }

  .service-item {
    margin-bottom: 1rem;
  }

  .service-content {
    flex-direction: column;
    gap: 1.5rem;
    align-items: center;
  }

  .service-details {
    width: 100%;
    text-align: center;
    margin-bottom: 0.5rem;
  }

  .service-details.right {
    text-align: center;
    margin-top: 0.5rem;
    margin-bottom: 0;
  }

  .service-description {
    width: 100%;
    max-width: 100%;
  }

  .service-description p {
    text-align: left;
  }

  .hover-indicator {
    width: 8px;
    height: 8px;
  }

  .hover-indicator.left {
    left: -20px;
  }

  .hover-indicator.right {
    right: -20px;
  }
}

/* ============================================
   Active States & Animations
   ============================================ */

/* Service expanded state */
.service-item.active .service-title {
  font-size: calc(var(--h2-size) * 1.1);
  letter-spacing: 0.01em;
}

/* Ensure proper z-index stacking */
.service-item {
  z-index: 1;
}

.service-item.active {
  z-index: 10;
}

