/* ==========================================================================
   KHEE KHEE - SECTION 02: EVERYTHING YOU NEED (DARK THEME)
   Modular CSS for Section 2: Side-by-Side Content & Options + Parallax & Mobile Carousel
   ========================================================================== */

.everything-section {
  position: relative;
  padding: 165px 0;
  background: linear-gradient(180deg, #07090E 0%, #0B101E 50%, #07090E 100%);
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
  overflow: hidden;
}

/* Ambient Radial Glow */
.everything-section::before {
  content: "";
  position: absolute;
  top: 30%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 900px;
  height: 500px;
  background: radial-gradient(circle, rgba(26, 47, 160, 0.25) 0%, rgba(56, 189, 248, 0.06) 50%, transparent 75%);
  filter: blur(60px);
  pointer-events: none;
  z-index: 0;
}

.everything-container {
  position: relative;
  z-index: 1;
}

/* ==========================================================================
   PART 1: CENTERED SECTION HEADER & 01-06 OPTIONS GRID (DESKTOP)
   ========================================================================== */

.everything-header {
  text-align: center;
  max-width: 820px;
  margin: 0 auto 58px auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.everything-tag {
  font-family: var(--font-heading);
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 6px;
}

.everything-title {
  font-family: var(--font-heading);
  font-size: clamp(2.1rem, 3.5vw, 2.75rem);
  font-weight: 700;
  color: var(--color-text-primary);
  line-height: 1.22;
  letter-spacing: -0.02em;
  text-align: center;
  margin-bottom: 16px;
}

.everything-lead {
  font-family: var(--font-body);
  font-size: 1.1rem;
  font-weight: 500;
  color: #CBD5E1;
  line-height: 1.68;
  text-align: center;
  max-width: 680px;
  margin-bottom: 16px;
}

.everything-body {
  font-family: var(--font-body);
  font-size: 0.98rem;
  color: var(--color-text-secondary);
  line-height: 1.7;
  text-align: center;
  max-width: 780px;
  margin: 0 auto 28px auto;
}

.everything-highlight-banner {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 22px;
  background: rgba(26, 47, 160, 0.22);
  border: 1px solid rgba(56, 189, 248, 0.4);
  border-radius: var(--border-radius-md);
  font-family: var(--font-heading);
  font-size: 0.92rem;
  font-weight: 600;
  color: #BAE6FD;
  box-shadow: 0 4px 20px rgba(26, 47, 160, 0.25);
  margin-bottom: 8px;
}

/* 01 to 06 Options Grid (6 items symmetrically across desktop) */
.everything-options-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 16px;
  max-width: 1160px;
  margin: 0 auto 72px auto;
  width: 100%;
}

.workflow-option-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 18px;
  background: rgba(14, 21, 38, 0.65);
  border: 1px solid var(--color-border);
  border-radius: var(--border-radius-md);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: all var(--transition-normal);
  cursor: default;
  position: relative;
  overflow: hidden;
}

.workflow-option-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 3px;
  height: 100%;
  background: transparent;
  transition: background var(--transition-fast);
}

.workflow-option-card:hover {
  background: rgba(22, 33, 60, 0.85);
  border-color: rgba(56, 189, 248, 0.4);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4), 0 0 16px var(--color-primary-subtle);
}

.workflow-option-card:hover::before {
  background: #38BDF8;
}

.option-num {
  font-family: var(--font-heading);
  font-size: 0.8rem;
  font-weight: 800;
  color: #60A5FA;
  padding: 3px 8px;
  background: rgba(26, 47, 160, 0.35);
  border: 1px solid rgba(56, 189, 248, 0.25);
  border-radius: 6px;
  flex-shrink: 0;
  letter-spacing: 0.02em;
}

.option-title {
  font-family: var(--font-heading);
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--color-text-primary);
  line-height: 1.25;
}

/* ==========================================================================
   PART 2: PRODUCT IMAGE PARALLAX SHOWCASE (DESKTOP)
   ========================================================================== */

.parallax-showcase-wrapper {
  position: relative;
  width: 100%;
  max-width: 1140px;
  margin: 0 auto;
}

.desktop-parallax-view {
  display: block;
  position: relative;
  width: 100%;
  perspective: 1200px;
}

.parallax-main-frame {
  position: relative;
  width: 100%;
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: #090D18;
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.85), 0 0 35px var(--color-primary-glow);
  transform-style: preserve-3d;
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.parallax-main-frame img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

/* Floating Satellite Layer 1: Briefing Modal */
.parallax-layer-briefing {
  position: absolute;
  top: -20px;
  right: -16px;
  width: 45%;
  max-width: 460px;
  border-radius: var(--border-radius-md);
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: #0D1424;
  box-shadow: 0 24px 50px rgba(0, 0, 0, 0.85), 0 0 25px rgba(56, 189, 248, 0.25);
  z-index: 3;
  overflow: hidden;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.parallax-layer-briefing img {
  width: 100%;
  height: auto;
  display: block;
}

/* Floating Satellite Layer 2: Settings Modal */
.parallax-layer-settings {
  position: absolute;
  bottom: -24px;
  left: -16px;
  width: 44%;
  max-width: 440px;
  border-radius: var(--border-radius-md);
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: #0D1424;
  box-shadow: 0 24px 50px rgba(0, 0, 0, 0.85), 0 0 25px rgba(16, 185, 129, 0.2);
  z-index: 3;
  overflow: hidden;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.parallax-layer-settings img {
  width: 100%;
  height: auto;
  display: block;
}

/* Overlapping Text Badges */
.parallax-overlap-badge {
  position: absolute;
  z-index: 5;
  display: inline-flex;
  align-items: center;
  padding: 10px 18px;
  background: rgba(10, 15, 28, 0.92);
  border: 1px solid rgba(56, 189, 248, 0.45);
  border-radius: var(--border-radius-md);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.7), 0 0 25px var(--color-primary-subtle);
  transition: transform 0.25s ease;
}

.overlap-badge-top-left {
  top: 28px;
  left: 24px;
}

.overlap-badge-bottom-right {
  bottom: 28px;
  right: 28px;
  border-color: rgba(16, 185, 129, 0.45);
}

.overlap-badge-title {
  font-family: var(--font-heading);
  font-size: 0.875rem;
  font-weight: 700;
  color: #FFFFFF;
}

/* ==========================================================================
   PART 3: MOBILE CAROUSEL CONTAINER (HIDDEN ON DESKTOP)
   ========================================================================== */

.mobile-carousel-container {
  display: none;
  width: 100%;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.carousel-viewport {
  width: 100%;
  aspect-ratio: 1024 / 461;
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: #090D18;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.75), 0 0 25px var(--color-primary-glow);
  position: relative;
}

.carousel-track {
  display: flex;
  width: 100%;
  height: 100%;
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: transform;
}

.carousel-slide {
  flex: 0 0 100%;
  width: 100%;
  min-width: 100%;
  max-width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #090D18;
  box-sizing: border-box;
}

.carousel-slide img {
  width: 100%;
  height: 100%;
  max-width: 100%;
  display: block;
  object-fit: contain;
  border-radius: calc(var(--border-radius-lg) - 1px);
}

/* Carousel Next / Prev Controls */
.carousel-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  width: 100%;
  padding-top: 6px;
}

.carousel-nav-btn {
  padding: 8px 16px;
  border-radius: 999px;
  background: rgba(26, 47, 160, 0.4);
  border: 1px solid rgba(56, 189, 248, 0.4);
  color: #FFFFFF;
  font-family: var(--font-heading);
  font-size: 0.8125rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  transition: all var(--transition-fast);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.4);
  user-select: none;
  -webkit-user-select: none;
}

.carousel-nav-btn:hover,
.carousel-nav-btn:active {
  background: var(--color-primary);
  border-color: #38BDF8;
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(26, 47, 160, 0.5);
}

.carousel-dots {
  display: flex;
  align-items: center;
  gap: 8px;
}

.carousel-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.25);
  border: none;
  padding: 0;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.carousel-dot.is-active {
  background: #38BDF8;
  width: 22px;
  border-radius: 999px;
  box-shadow: 0 0 10px rgba(56, 189, 248, 0.5);
}

.mobile-overlap-badge {
  display: inline-flex;
  align-items: center;
  padding: 8px 16px;
  background: rgba(14, 21, 38, 0.85);
  border: 1px solid rgba(56, 189, 248, 0.35);
  border-radius: var(--border-radius-md);
  font-family: var(--font-heading);
  font-size: 0.8125rem;
  font-weight: 600;
  color: #BAE6FD;
  text-align: center;
  margin-top: 4px;
}

/* ==========================================================================
   RESPONSIVE LAYOUT FOR MOBILE / TABLET (<= 991px)
   ========================================================================== */

@media (max-width: 991px) {
  .everything-section {
    padding: 120px 0;
  }

  .everything-header {
    margin-bottom: 48px;
  }

  .everything-options-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
    margin-bottom: 56px;
  }

  /* Switch to Carousel on Mobile */
  .desktop-parallax-view {
    display: none;
  }

  .mobile-carousel-container {
    display: flex;
    margin-bottom: 8px;
  }
}

@media (max-width: 640px) {
  .everything-section {
    padding: 95px 0;
  }

  .everything-header {
    margin-bottom: 38px;
  }

  .everything-title {
    font-size: 1.65rem;
    margin-bottom: 10px;
  }

  .everything-lead {
    font-size: 1rem;
    margin-bottom: 12px;
  }

  .everything-body {
    font-size: 0.9rem;
    margin-bottom: 18px;
  }

  .everything-highlight-banner {
    width: 100%;
    font-size: 0.85rem;
    padding: 8px 14px;
    justify-content: center;
    margin-bottom: 4px;
  }

  .everything-options-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
    margin-bottom: 36px;
  }

  .workflow-option-card {
    padding: 10px 10px;
    gap: 8px;
  }

  .option-num {
    font-size: 0.75rem;
    padding: 2px 6px;
  }

  .option-title {
    font-size: 0.82rem;
  }
}
