:root {
  --orange: #ff7b00;
  --orange-light: #ffb800;
  --navy: #0a1628;
  --navy-light: #1e3a5f;
  --cyan: #00d4ff;
  --white: #ffffff;
  --gray-light: #f8f9fa;
  --gray: #6c757d;
}

/* Services Section */
.services-section {
  min-height: 100vh;
  padding: 4rem 2rem;
  position: relative;
  background: linear-gradient(135deg, var(--navy) 0%, #1a2332 100%);
}

/* Background gradient */
.section-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0.05;
  background-image: radial-gradient(
      circle at 20% 50%,
      var(--orange) 0%,
      transparent 50%
    ),
    radial-gradient(circle at 80% 80%, var(--cyan) 0%, transparent 50%);
  pointer-events: none;
}

.container {
  max-width: 1400px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

/* Header with Subtitle */
.section-header {
  text-align: center;
  margin-bottom: 3rem;
}

.section-header h2 {
  font-size: clamp(2.5rem, 4vw, 3.5rem);
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: white;
}

.section-header h2 span {
  background: linear-gradient(135deg, var(--orange), var(--orange-light));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.section-header .subtitle {
  font-size: 1.25rem;
  color: rgba(255, 255, 255, 0.7);
  font-weight: 400;
  margin-top: 0.5rem;
}

/* Service Category Tabs - Journey Style */
.service-tabs {
  display: flex;
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(20px);
  border-radius: 16px;
  padding: 0.5rem;
  max-width: 500px;
  margin: 0 auto 3rem auto;
  position: relative;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.service-tab {
  flex: 1;
  padding: 1rem 1.5rem;
  background: transparent;
  border: none;
  color: rgba(255, 255, 255, 0.6);
  cursor: pointer;
  transition: all 0.3s ease;
  font-weight: 600;
  font-size: 0.95rem;
  border-radius: 12px;
  position: relative;
  z-index: 2;
}

.service-tab:hover {
  color: rgba(255, 255, 255, 0.9);
}

.service-tab.active {
  color: white;
}

.tab-indicator {
  position: absolute;
  height: calc(100% - 1rem);
  background: linear-gradient(135deg, var(--orange), var(--orange-light));
  border-radius: 12px;
  transition: all 0.3s ease;
  top: 0.5rem;
  z-index: 1;
}

/* Category Content */
.category-content {
  display: none;
}

.category-content.active {
  display: block;
  animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Section Intro Text */
.section-intro {
  text-align: center;
  font-size: 1.15rem;
  color: rgba(255, 255, 255, 0.8);
  max-width: 700px;
  margin: 0 auto 2.5rem auto;
  line-height: 1.6;
}

/* Features Layout - 2 column grid */
.features-container {
  display: grid;
  grid-template-columns: 55% 45%;
  gap: 2.5rem;
  height: 450px;
}

/* Left Side - Feature Grid */
.features-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
  align-content: stretch;
  height: 100%;
}

/* Enhanced hover and active states */
.feature-item {
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(10px);
  border-radius: 14px;
  padding: 1rem 1.25rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  cursor: pointer;
  transition: all 0.3s ease;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.feature-item:hover {
  transform: translateX(8px) scale(1.03);
  background: linear-gradient(
    135deg,
    rgba(255, 123, 0, 0.08),
    rgba(255, 184, 0, 0.04)
  );
  border: 2px solid rgba(255, 123, 0, 0.5);
  box-shadow: 0 10px 30px rgba(255, 123, 0, 0.25),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.feature-item.active {
  background: linear-gradient(
    135deg,
    rgba(255, 123, 0, 0.18),
    rgba(255, 184, 0, 0.1)
  );
  border: 2px solid var(--orange);
  box-shadow: 0 0 40px rgba(255, 123, 0, 0.3),
    inset 0 0 20px rgba(255, 123, 0, 0.05);
  animation: gentleGlow 2s ease-in-out infinite;
  transform: translateX(8px) scale(1.03);
}

@keyframes gentleGlow {
  0%,
  100% {
    box-shadow: 0 0 40px rgba(255, 123, 0, 0.3),
      inset 0 0 20px rgba(255, 123, 0, 0.05);
  }
  50% {
    box-shadow: 0 0 50px rgba(255, 123, 0, 0.4),
      inset 0 0 25px rgba(255, 123, 0, 0.08);
  }
}

.feature-item-icon {
  width: 45px;
  height: 45px;
  background: linear-gradient(135deg, var(--orange), var(--orange-light));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.feature-item-icon svg {
  width: 22px;
  height: 22px;
  fill: white;
}

.feature-item-content h4 {
  font-size: 1rem;
  color: white;
  margin-bottom: 0.15rem;
  font-weight: 600;
}

.feature-item-content p {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.85rem;
}

/* Right Side - Detail Panel */
.detail-panel {
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  padding: 2.5rem;
  color: white;
  position: relative;
  overflow: hidden;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.detail-panel::before {
  content: "";
  position: absolute;
  top: -30%;
  right: -20%;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(255, 123, 0, 0.05), transparent);
  border-radius: 50%;
}

.detail-content {
  position: relative;
  z-index: 1;
  opacity: 0;
  transform: scale(0.95);
  animation: detailFadeIn 0.5s ease forwards;
}

@keyframes detailFadeIn {
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.detail-content h4 {
  font-size: 1.75rem;
  margin-bottom: 1rem;
  font-weight: 600;
}

.detail-content .detail-description {
  font-size: 1.1rem;
  margin-bottom: 2rem;
  opacity: 0.95;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.9);
}

.detail-features {
  list-style: none;
}

.detail-features li {
  margin-bottom: 1rem;
  padding-left: 1.75rem;
  position: relative;
  font-size: 1rem;
  opacity: 0.85;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.85);
}

.detail-features li::before {
  content: "→";
  position: absolute;
  left: 0;
  color: var(--orange-light);
  font-weight: bold;
  font-size: 1.2rem;
}

/* Responsive */
@media (max-width: 968px) {
  .features-container {
    grid-template-columns: 1fr;
    max-height: none;
  }

  .detail-panel {
    min-height: 400px;
  }
}
