/* ==========================================================================
   FutureSeed Earth Foundation - Services Animated Hover Modal
   Prefix: .fs-services-* (Isolated & Non-conflicting)
   Theme: FutureSeed Brand Tokens (#0B2F23, #123D2E, #050706, #22c55e, #F4F1E8)
   ========================================================================== */

:root {
  --fs-srv-bg-primary: #0B2F23;
  --fs-srv-bg-dark: #061B14;
  --fs-srv-bg-card: #0e2e22;
  --fs-srv-forest: #123D2E;
  --fs-srv-emerald: #1bbd36;
  --fs-srv-emerald-light: #22c55e;
  --fs-srv-emerald-bright: #4ade80;
  --fs-srv-gold: #D4AF37;
  --fs-srv-cream: #F4F1E8;
  --fs-srv-text: #FFFFFF;
  --fs-srv-text-muted: rgba(244, 241, 232, 0.72);
  --fs-srv-border: rgba(255, 255, 255, 0.12);
  --fs-srv-border-hover: rgba(74, 222, 128, 0.35);
  --fs-srv-font: 'Poppins', 'Manrope', -apple-system, sans-serif;
  --fs-srv-display: 'Cormorant Garamond', Georgia, serif;
}

/* Services Main Section Container - Brand Forest Green Theme */
.fs-services-section {
  position: relative !important;
  background: radial-gradient(circle at 85% 15%, #144934 0%, #0B2F23 55%, #05140f 100%) !important;
  background-color: #0B2F23 !important;
  color: #FFFFFF !important;
  padding: 6.5rem 0;
  overflow: hidden;
}

.fs-services-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at 15% 85%, rgba(34, 197, 94, 0.08) 0%, transparent 50%);
  pointer-events: none;
  z-index: 0;
}

.fs-services-container {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Section Header */
.fs-services-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 1.5rem;
  margin-bottom: 3.5rem;
  padding-bottom: 2rem;
  border-bottom: 1.5px solid var(--fs-srv-border);
}

.fs-services-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(34, 197, 94, 0.15);
  color: var(--fs-srv-emerald-bright);
  border: 1px solid rgba(74, 222, 128, 0.3);
  border-radius: 50px;
  padding: 6px 16px;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 0.85rem;
}

.fs-services-title {
  font-family: var(--fs-srv-font);
  font-size: clamp(2.2rem, 4.2vw, 3.8rem);
  font-weight: 800;
  color: #FFFFFF;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin: 0;
}

.fs-services-lead {
  font-size: clamp(0.95rem, 1.2vw, 1.1rem);
  line-height: 1.65;
  color: var(--fs-srv-text-muted);
  max-width: 460px;
  margin: 0;
}

/* Services Interactive Rows List */
.fs-services-list {
  display: flex;
  flex-direction: column;
  width: 100%;
}

.fs-service-row {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 2.2rem 1.4rem;
  border-top: 1px solid var(--fs-srv-border);
  text-decoration: none;
  color: var(--fs-srv-text);
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  cursor: pointer;
  outline: none;
}

.fs-service-row:last-child {
  border-bottom: 1px solid var(--fs-srv-border);
}

.fs-service-row::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: var(--fs-srv-emerald-bright);
  transform: scaleY(0);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  border-radius: 0 4px 4px 0;
}

.fs-service-row:hover,
.fs-service-row:focus-visible {
  background: rgba(34, 197, 94, 0.08);
  padding-left: 2.2rem;
  border-color: var(--fs-srv-border-hover);
}

.fs-service-row:hover::before,
.fs-service-row:focus-visible::before {
  transform: scaleY(1);
}

.fs-service-row-left {
  display: flex;
  align-items: center;
  gap: 1.6rem;
}

.fs-service-num {
  font-family: 'Space Mono', monospace, sans-serif;
  font-size: 0.95rem;
  font-weight: 700;
  color: rgba(244, 241, 232, 0.45);
  transition: color 0.3s ease;
}

.fs-service-row:hover .fs-service-num {
  color: var(--fs-srv-emerald-bright);
}

.fs-service-name {
  font-family: var(--fs-srv-font);
  font-size: clamp(1.3rem, 2.4vw, 2.2rem);
  font-weight: 700;
  color: #FFFFFF;
  margin: 0;
  line-height: 1.2;
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), color 0.3s ease;
}

.fs-service-row:hover .fs-service-name {
  transform: translateX(8px);
  color: var(--fs-srv-emerald-bright);
}

.fs-service-row-right {
  display: flex;
  align-items: center;
  gap: 1.6rem;
}

.fs-service-subtitle {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--fs-srv-text-muted);
  margin: 0;
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), color 0.3s ease;
}

.fs-service-row:hover .fs-service-subtitle {
  transform: translateX(4px);
  color: #FFFFFF;
}

.fs-service-arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1.5px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.05);
  color: #FFFFFF;
  font-size: 1rem;
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.fs-service-row:hover .fs-service-arrow {
  background: var(--fs-srv-emerald-light);
  border-color: var(--fs-srv-emerald-light);
  color: #0B2F23;
  font-weight: 700;
  transform: scale(1.15) rotate(-45deg);
  box-shadow: 0 0 16px rgba(34, 197, 94, 0.5);
}

/* Mobile Inline Thumbnail Preview */
.fs-service-mobile-thumb {
  display: none;
  width: 100%;
  height: 180px;
  border-radius: 14px;
  overflow: hidden;
  margin-top: 1rem;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(74, 222, 128, 0.2);
}

.fs-service-mobile-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ==========================================================================
   Floating Animated Image Modal & View Pill Cursor (Fixed Viewport Follower)
   ========================================================================== */

.fs-services-modal-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 400px;
  height: 300px;
  border-radius: 20px;
  overflow: hidden;
  pointer-events: none;
  z-index: 9990;
  transform: translate(-50%, -50%) scale(0);
  opacity: 0;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.75),
              0 0 35px rgba(34, 197, 94, 0.25);
  border: 1.5px solid rgba(74, 222, 128, 0.35);
  background: var(--fs-srv-bg-dark);
  will-change: transform, left, top;
}

.fs-services-modal-slider {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  transition: top 0.55s cubic-bezier(0.76, 0, 0.24, 1);
}

.fs-services-modal-slide {
  position: relative;
  width: 100%;
  height: 300px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.fs-services-modal-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.fs-services-modal-slide-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(11, 47, 35, 0.1) 0%, rgba(5, 7, 6, 0.45) 100%);
  pointer-events: none;
}

/* Round Floating "View" Cursor */
.fs-services-cursor {
  position: fixed;
  top: 0;
  left: 0;
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: var(--fs-srv-emerald-light);
  color: #0B2F23;
  font-family: var(--fs-srv-font);
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  z-index: 9995;
  transform: translate(-50%, -50%) scale(0);
  opacity: 0;
  box-shadow: 0 0 25px rgba(34, 197, 94, 0.6);
  will-change: transform, left, top;
}

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

@media (max-width: 991px) {
  .fs-service-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 1.8rem 1rem;
  }

  .fs-service-row-right {
    width: 100%;
    justify-content: space-between;
  }

  .fs-service-mobile-thumb {
    display: block;
  }

  /* Disable cursor and floating modal on tablet/mobile */
  .fs-services-modal-container,
  .fs-services-cursor {
    display: none !important;
  }
}

@media (max-width: 576px) {
  .fs-services-section {
    padding: 4.5rem 0;
  }

  .fs-services-header {
    margin-bottom: 2.5rem;
  }

  .fs-services-name {
    font-size: 1.35rem;
  }

  .fs-service-subtitle {
    font-size: 0.88rem;
  }
}

/* Accessibility: Reduced Motion */
@media (prefers-reduced-motion: reduce) {
  .fs-service-row,
  .fs-service-name,
  .fs-service-subtitle,
  .fs-service-arrow,
  .fs-services-modal-slider {
    transition: none !important;
  }
}
