/* ==========================================================================
   ECOGLOW CORPORATE WEBSITE DESIGN SYSTEM (DARK PREMIUM THEME)
   ========================================================================== */

:root {
  /* Vibrant Neon Brand Colors */
  --color-pink: #FF2D8D;
  --color-orange: #FF8A00;
  --color-purple: #7B2DFF;
  --color-blue: #2563FF;
  --color-green-accent: #10B981;
  
  /* Dark Theme Backgrounds */
  --bg-primary: #030305;
  --bg-secondary: #0A0A0E;
  --bg-tertiary: #12121A;
  
  /* Text Colors */
  --text-primary: #FFFFFF;
  --text-secondary: #A0AEC0;
  --text-light: #718096;
  
  /* Borders and UI */
  --border-color: rgba(255, 255, 255, 0.08);
  --border-hover: rgba(255, 255, 255, 0.15);
  
  /* Spacing */
  --container-max-width: 1200px;
  
  /* Utilities */
  --transition-smooth: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  scroll-behavior: smooth;
  font-size: 16px;
  /* CRITICAL MOBILE FIXES */
  overflow-x: hidden;
  width: 100%;
  max-width: 100vw;
}

body {
  font-family: 'Inter', sans-serif;
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* TYPOGRAPHY */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Outfit', sans-serif;
  font-weight: 600;
  line-height: 1.2;
}

.gradient-text {
  background: linear-gradient(135deg, var(--color-pink), var(--color-orange), var(--color-purple));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.primary-gradient-bg {
  background: linear-gradient(135deg, var(--color-pink), var(--color-purple), var(--color-blue));
}

/* AMBIENT GLOWS — position:fixed to prevent overflow */
.ambient-glow {
  position: fixed;          /* fixed: never affects document layout/scroll */
  border-radius: 50%;
  filter: blur(130px);
  z-index: 0;
  pointer-events: none;
  opacity: 0.12;
  will-change: transform;  /* GPU layer so it doesn't repaint */
}

.glow-1 { width: 500px; height: 500px; background: var(--color-purple); top: -80px; left: -150px; }
.glow-2 { width: 400px; height: 400px; background: var(--color-pink); top: 30%; right: -120px; }
.glow-3 { width: 600px; height: 600px; background: var(--color-blue); bottom: 10%; left: -200px; opacity: 0.08; }

/* COMMON UTILS */
.section-container {
  width: 100%;
  max-width: var(--container-max-width);
  margin: 0 auto;
  padding: 0 2rem;
  position: relative;
  z-index: 2;
}

section {
  padding: 8rem 0;
}

.section-subtitle {
  color: var(--color-orange);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  margin-bottom: 1rem;
}

.section-title {
  font-size: 3.5rem;
  margin-bottom: 2rem;
  line-height: 1.1;
}

.lead-text {
  font-size: 1.25rem;
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 1.5rem;
}
.center-text {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.sub-text {
  font-size: 1.1rem;
  color: var(--text-light);
  line-height: 1.7;
}

.center-align {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* BUTTONS */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 1rem 2.5rem;
  font-family: 'Outfit', sans-serif;
  font-size: 1.05rem;
  border-radius: 4px;
  text-decoration: none;
  transition: var(--transition-smooth);
  border: none;
  cursor: pointer;
}

.btn.primary-gradient-btn {
  color: white;
  background: linear-gradient(135deg, var(--color-pink), var(--color-purple), var(--color-blue));
  background-size: 200% auto;
  box-shadow: 0 4px 15px rgba(255, 45, 141, 0.2);
}

.btn.primary-gradient-btn:hover {
  background-position: right center;
  transform: translateY(-3px);
  box-shadow: 0 10px 30px rgba(123, 45, 255, 0.4);
}

.btn-outline {
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  background: transparent;
}

.btn-outline:hover {
  border-color: var(--color-pink);
  background: rgba(255, 45, 141, 0.05);
  transform: translateY(-3px);
}

.mt-4 { margin-top: 2rem; }
.w-100 { width: 100%; }

/* HEADER */
#main-header {
  position: fixed;
  top: 0;
  width: 100%;
  height: 80px;
  background: rgba(3, 3, 5, 0.75);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  z-index: 1000;
  display: flex;
  align-items: center;
  /* Critical: padding gives the breathing room on both sides */
  padding: 0 3rem;
  transition: var(--transition-smooth);
}

#main-header::before {
  content: '';
  position: absolute;
  top: 0; left: 0; width: 100%; height: 2px;
  background: linear-gradient(90deg, var(--color-pink), var(--color-blue), var(--color-purple));
  opacity: 0.8;
}

#main-header.shrinked {
  height: 68px;
  background: rgba(3, 3, 5, 0.97);
  box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  gap: 2rem;
}

/* LOGO FIX: Removed white box, added a subtle glowing border-radius directly to the image */
.logo-link {
  display: flex;
  align-items: center;
}

.brand-logo {
  height: 70px;
  transition: var(--transition-smooth);
  display: block;
  border-radius: 6px;
  filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.15));
}

#main-header.shrinked .brand-logo {
  height: 70px; /* Keep logo fixed size on scroll */
}

.desktop-nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 2rem;
  flex: 1;
  margin-left: 3rem;
}

.nav-item {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.9rem;
  transition: var(--transition-smooth);
  position: relative;
  padding: 0.4rem 0;
  white-space: nowrap;
  letter-spacing: 0.02em;
}

.nav-item::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; width: 0; height: 2px;
  background: var(--color-pink);
  transition: var(--transition-smooth);
  box-shadow: 0 0 8px var(--color-pink);
}

.nav-item:hover {
  color: var(--text-primary);
}

.nav-item:hover::after {
  width: 100%;
}

/* Contact Us nav button – proper pill style */
.nav-btn {
  padding: 0.6rem 1.4rem;
  font-size: 0.88rem;
  font-family: 'Outfit', sans-serif;
  font-weight: 600;
  border-radius: 6px;
  text-decoration: none;
  color: white;
  white-space: nowrap;
  letter-spacing: 0.04em;
  /* Override btn base so padding is tight for nav */
  display: inline-flex;
  align-items: center;
}

/* MOBILE NAV */
.mobile-nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  width: 30px;
  height: 20px;
  position: relative;
  margin-left: auto;
}

.mobile-nav-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  background: white;
  position: absolute;
  transition: var(--transition-smooth);
}

.mobile-nav-toggle span:nth-child(1) { top: 0; }
.mobile-nav-toggle span:nth-child(2) { top: 9px; }
.mobile-nav-toggle span:nth-child(3) { top: 18px; }

.mobile-nav-drawer {
  position: fixed;
  top: 68px;
  left: 0;
  width: 100%;
  height: calc(100vh - 68px);
  background: rgba(8, 8, 12, 0.98);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  z-index: 999;
  padding: 1.5rem 1.5rem 2rem;
  transform: translateX(100%);
  transition: var(--transition-smooth);
  border-top: 1px solid var(--border-color);
  overflow-y: auto;
  display: flex;
  flex-direction: column;
}

.mobile-nav-drawer.active {
  transform: translateX(0);
}

.mobile-drawer-nav {
  display: flex;
  flex-direction: column;
  gap: 0;
  flex: 1;
}

.drawer-item {
  font-size: 1rem;
  font-weight: 500;
  color: var(--text-secondary);
  text-decoration: none;
  font-family: 'Inter', sans-serif;
  border-bottom: 1px solid var(--border-color);
  padding: 1rem 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  transition: var(--transition-smooth);
  letter-spacing: 0.01em;
}

.drawer-item:hover,
.drawer-item:focus {
  color: var(--text-primary);
  padding-left: 1rem;
}

/* Contact Us drawer button — different style */
.drawer-item.drawer-cta {
  margin-top: 1.5rem;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 1rem 1.25rem;
  justify-content: center;
  font-family: 'Outfit', sans-serif;
  font-weight: 600;
  font-size: 0.95rem;
  color: white;
  letter-spacing: 0.05em;
  background: linear-gradient(135deg, var(--color-pink), var(--color-purple));
  border-color: transparent;
  text-transform: uppercase;
}

/* HERO SECTION */
/* ============================================================
   HERO — Text-Only Centered Layout
   ============================================================ */
.hero-section {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 100px;
  padding-bottom: 6rem;
  position: relative;
  overflow: hidden;
}

/* Subtle dot-grid overlay for texture/depth */
.hero-noise {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255,255,255,0.04) 1px, transparent 1px);
  background-size: 32px 32px;
  pointer-events: none;
  z-index: 1;
  mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black, transparent);
}

/* Full-width centered text block */
.hero-text-wrap {
  text-align: center;
  max-width: 900px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

.hero-badge {
  display: inline-block;
  padding: 0.45rem 1.1rem;
  border: 1px solid var(--border-color);
  border-radius: 100px;
  font-size: 0.78rem;
  color: var(--text-secondary);
  margin-bottom: 2rem;
  background: rgba(255,255,255,0.03);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.hero-title {
  font-size: 5.5rem;
  line-height: 1.04;
  margin-bottom: 2rem;
  letter-spacing: -0.03em;
}

.hero-desc {
  font-size: 1.2rem;
  color: var(--text-secondary);
  margin: 0 auto 3rem;
  max-width: 640px;
  line-height: 1.75;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* Gradient divider line */
.hero-divider {
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1), var(--color-pink), rgba(255,255,255,0.1), transparent);
  margin: 5rem 0 4rem;
  position: relative;
  z-index: 2;
}

/* Stats row */
.hero-stats-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  position: relative;
  z-index: 2;
  flex-wrap: wrap;
}

.hero-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  padding: 0 3.5rem;
}

.hero-stat-val {
  font-family: 'Outfit', sans-serif;
  font-size: 2.8rem;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.03em;
}

.hero-stat-lbl {
  font-size: 0.8rem;
  color: var(--text-light);
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

/* Thin vertical separators between stats */
.hero-stat-sep {
  width: 1px;
  height: 50px;
  background: var(--border-color);
  flex-shrink: 0;
}



/* ABOUT SECTION */
.about-section {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border-color);
}

.about-flex {
  display: flex;
  justify-content: space-between;
  gap: 6rem;
}

.about-title-col {
  flex: 0 0 40%;
}

.about-text-col {
  flex: 1;
}

.metrics-list {
  margin-top: 3.5rem;
  display: flex;
  flex-direction: column;
  gap: 3rem;
}

.metric-item {
  position: relative;
  padding-left: 2.5rem;
}

.metric-line {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, var(--color-pink), var(--color-purple));
  box-shadow: 0 0 10px var(--color-pink);
}

.metric-item h4 {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}

.metric-item p {
  color: var(--text-secondary);
  font-size: 1.1rem;
}

/* EXPERTISE SECTION */
.expertise-section {
  background: var(--bg-primary);
}

.expertise-list {
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--border-color);
  margin-top: 4rem;
}

.expertise-row {
  display: grid;
  grid-template-columns: 120px 1fr;
  padding: 4rem 0;
  border-bottom: 1px solid var(--border-color);
  transition: var(--transition-smooth);
}

.expertise-row:hover {
  background: rgba(255,255,255,0.015);
  padding-left: 1.5rem;
}

.exp-num {
  font-family: 'Outfit';
  font-size: 2rem;
  font-weight: 300;
}

.exp-content h4 {
  font-size: 2.2rem;
  margin-bottom: 1rem;
}

.exp-content p {
  color: var(--text-secondary);
  font-size: 1.2rem;
  max-width: 800px;
}

/* PRODUCTS / DINO */
.products-section {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border-color);
}

.flagship-showcase {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6rem;
  align-items: center;
  margin-top: 1.5rem;
}

.product-badge {
  color: var(--color-blue);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  font-weight: 700;
  font-size: 0.85rem;
  display: inline-block;
  margin-bottom: 1rem;
}

.product-logo {
  height: 140px;
  margin-bottom: 1.5rem;
  display: block;
}

.product-desc {
  font-size: 1.25rem;
  color: var(--text-secondary);
  margin-bottom: 2.5rem;
}

.feature-bullets {
  list-style: none;
  margin-bottom: 2.5rem;
}

.feature-bullets li {
  margin-bottom: 1.2rem;
  padding-left: 2rem;
  position: relative;
  font-size: 1.1rem;
  color: var(--text-secondary);
}

.feature-bullets li strong {
  color: var(--text-primary);
}

.feature-bullets li::before {
  content: '→';
  position: absolute;
  left: 0;
  color: var(--color-orange);
  font-weight: bold;
}

.flagship-mockup {
  position: relative;
}

.mockup-frame {
  background: var(--bg-tertiary);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 2rem;
  box-shadow: 0 30px 60px rgba(0,0,0,0.6);
}

.mockup-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 1rem;
  margin-bottom: 1.5rem;
  font-family: 'Outfit';
  font-size: 1.1rem;
}

.status-pulse {
  color: var(--color-green-accent);
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  gap: 8px;
}

.status-pulse::before {
  content: '';
  width: 8px;
  height: 8px;
  background: var(--color-green-accent);
  border-radius: 50%;
  box-shadow: 0 0 12px var(--color-green-accent);
}

.mockup-status-text {
  font-family: monospace;
  color: var(--text-light);
  font-size: 0.9rem;
  margin-bottom: 2rem;
  padding: 1rem;
  background: rgba(255,255,255,0.03);
  border-radius: 4px;
  word-break: break-all;
}

.mockup-body {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

.data-bar {
  height: 24px;
  background: linear-gradient(90deg, var(--color-purple), var(--color-blue));
  border-radius: 4px;
  opacity: 0.9;
}

/* REDESIGNED: PROCESS / ZIG-ZAG TIMELINE */
.timeline-section {
  background: var(--bg-primary);
}

.zigzag-process {
  margin-top: 5rem;
  display: flex;
  flex-direction: column;
  gap: 4rem;
}

.process-step {
  display: grid;
  grid-template-columns: 100px 1fr;
  align-items: center;
  gap: 3rem;
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  padding: 3rem;
  transition: var(--transition-smooth);
}

.process-step:hover {
  transform: translateY(-5px);
  border-color: rgba(255,255,255,0.15);
  box-shadow: 0 20px 40px rgba(0,0,0,0.4);
}

/* Alternate layout for even steps (desktop only) */
@media (min-width: 769px) {
  .process-step:nth-child(even) {
    grid-template-columns: 1fr 100px;
    text-align: right;
  }
  .process-step:nth-child(even) .step-number {
    order: 2; /* Put number on the right */
  }
}

.step-number {
  font-family: 'Outfit';
  font-size: 4.5rem;
  font-weight: 800;
  line-height: 1;
  opacity: 0.8;
}

.step-info h4 {
  font-size: 2rem;
  margin-bottom: 1rem;
  color: var(--text-primary);
}

.step-info p {
  font-size: 1.15rem;
  color: var(--text-secondary);
}

/* WHY ECOGLOW */
.why-us-section {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border-color);
}

.why-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 4rem;
  margin-top: 4rem;
}

.why-item {
  display: flex;
  gap: 1.5rem;
}

.why-icon {
  font-size: 2rem;
  color: var(--color-orange);
  text-shadow: 0 0 20px var(--color-orange);
  line-height: 1;
}

.why-text h4 {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}

.why-text p {
  color: var(--text-secondary);
  font-size: 1.1rem;
}

/* ============================================================
   ECOSYSTEM SECTION — Professional Platform Grid
   ============================================================ */
.ecosystem-section {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border-color);
}

/* Split header: title left, intro text right */
.ecosystem-top {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: end;
  margin-bottom: 5rem;
  padding-bottom: 4rem;
  border-bottom: 1px solid var(--border-color);
}

.ecosystem-intro-text {
  font-size: 1.15rem;
  color: var(--text-secondary);
  line-height: 1.8;
  padding-top: 1rem;
}

/* 3-column grid, each platform is a card-free row item */
.eco-platform-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border-top: 1px solid var(--border-color);
  border-left: 1px solid var(--border-color);
}

.eco-platform {
  padding: 2.5rem;
  border-right: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
  display: flex;
  flex-direction: column;
  gap: 1rem;
  transition: var(--transition-smooth);
  position: relative;
  overflow: hidden;
}

.eco-platform::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(var(--ico-rgb, 255,45,141), 0.05), transparent);
  opacity: 0;
  transition: var(--transition-smooth);
}

.eco-platform:hover::before {
  opacity: 1;
}

.eco-platform:hover {
  background: rgba(255,255,255,0.015);
}

/* Featured platform has a top accent bar */
.eco-platform.featured {
  background: linear-gradient(160deg, rgba(123,45,255,0.07), transparent);
}

.eco-platform.featured::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, var(--color-pink), var(--color-purple));
}

.eco-platform-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.5rem;
}

/* SVG icon box — coloured border, no background */
.eco-icon-wrap {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  border: 1px solid color-mix(in srgb, var(--ico-color) 30%, transparent);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ico-color);
  background: color-mix(in srgb, var(--ico-color) 8%, transparent);
  transition: var(--transition-smooth);
  flex-shrink: 0;
}

.eco-platform:hover .eco-icon-wrap {
  border-color: var(--ico-color);
  background: color-mix(in srgb, var(--ico-color) 15%, transparent);
  box-shadow: 0 0 20px color-mix(in srgb, var(--ico-color) 30%, transparent);
}

.eco-platform-num {
  font-family: 'Outfit', monospace;
  font-size: 0.8rem;
  color: var(--text-light);
  letter-spacing: 0.1em;
  font-weight: 500;
}

.eco-platform h4 {
  font-size: 1.25rem;
  color: var(--text-primary);
  letter-spacing: -0.01em;
  line-height: 1.3;
}

.eco-platform p {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.7;
  flex: 1;
}

.eco-tags {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.5rem;
}

.eco-tags li {
  font-size: 0.75rem;
  padding: 0.3rem 0.75rem;
  border-radius: 100px;
  border: 1px solid var(--border-color);
  color: var(--text-light);
  background: rgba(255,255,255,0.03);
  letter-spacing: 0.04em;
  font-family: 'Outfit', sans-serif;
  white-space: nowrap;
}


/* GALLERY (Staggered Layout) */
.gallery-section {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border-color);
}

.gallery-masonry {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: 300px;
  gap: 1.5rem;
  margin-top: 4rem;
}

.gallery-item {
  background-color: var(--bg-tertiary);
  border-radius: 12px;
  position: relative;
  overflow: hidden;
  background-size: cover;
  background-position: center;
  box-shadow: 0 10px 30px rgba(0,0,0,0.3);
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.gallery-item::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  border-radius: 12px;
  border: 2px solid transparent;
  transition: all 0.4s ease;
}

.gallery-item:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5), 0 0 20px rgba(124, 58, 237, 0.2);
  z-index: 10;
}

.gallery-item:hover::after {
  border-color: rgba(124, 58, 237, 0.5); /* Purple accent glow */
}

.gallery-overlay {
  position: absolute;
  bottom: 0; left: 0; width: 100%;
  padding: 2.5rem;
  background: linear-gradient(to top, rgba(0,0,0,0.9), transparent);
  transform: translateY(20px);
  opacity: 0;
  transition: all 0.4s ease;
}

.gallery-item:hover .gallery-overlay {
  transform: translateY(0);
  opacity: 1;
}

.gallery-overlay span {
  font-family: 'Outfit';
  font-size: 1.5rem;
  font-weight: 600;
  color: white;
}

/* TESTIMONIALS */
.testimonials-section {
  background: var(--bg-primary);
}

.testimonial-slider {
  max-width: 900px;
  margin: 4rem auto 0;
  text-align: center;
  position: relative;
}

.testimonial-slide {
  display: none;
  animation: fadeIn 0.5s ease-out;
}

.testimonial-slide.active { display: block; }

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

.quote-icon {
  font-size: 8rem;
  color: var(--color-pink);
  line-height: 1;
  font-family: serif;
  opacity: 0.3;
  margin-bottom: -3rem;
}

.testimonial-text {
  font-size: 2rem;
  line-height: 1.5;
  margin-bottom: 3rem;
  font-weight: 300;
  color: var(--text-primary);
}

.testimonial-author {
  display: flex;
  align-items: center;
  justify-content: center;
}

.author-info h4 {
  font-size: 1.25rem;
  margin-bottom: 0.25rem;
}

.author-info span {
  font-size: 1rem;
  color: var(--color-blue);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 600;
}

.testimonial-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  margin-top: 4rem;
}

.slider-btn {
  background: transparent;
  border: 1px solid var(--border-color);
  color: white;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  cursor: pointer;
  transition: var(--transition-smooth);
  font-size: 1.2rem;
  flex-shrink: 0;
}

.slider-btn:hover {
  background: var(--color-pink);
  border-color: var(--color-pink);
}

.slider-dots {
  display: flex;
  gap: 0.5rem;
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--border-color);
  cursor: pointer;
  transition: var(--transition-smooth);
}

.dot.active {
  background: var(--color-pink);
  width: 30px;
  border-radius: 5px;
}

/* CONTACT */
.contact-section {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border-color);
}

.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6rem;
  align-items: center;
}

.contact-form {
  background: var(--bg-tertiary);
  padding: 4rem;
  border-radius: 16px;
  border: 1px solid var(--border-color);
  box-shadow: 0 20px 50px rgba(0,0,0,0.5);
  width: 100%;
}

.form-group { margin-bottom: 1.8rem; }
.form-group label {
  display: block;
  margin-bottom: 0.8rem;
  font-size: 0.95rem;
  color: var(--text-secondary);
}
.form-group input, .form-group textarea {
  width: 100%;
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  padding: 1.2rem;
  border-radius: 8px;
  color: white;
  font-family: inherit;
  font-size: 1rem;
}
.form-group input:focus, .form-group textarea:focus {
  outline: none;
  border-color: var(--color-blue);
  background: rgba(37,99,255,0.05);
}

/* FOOTER */
.footer-section {
  background: #000;
  padding: 6rem 0 3rem;
  border-top: 1px solid var(--border-color);
}

.footer-top {
  display: flex;
  justify-content: space-between;
  border-bottom: 1px solid rgba(255,255,255,0.05);
  padding-bottom: 4rem;
  margin-bottom: 3rem;
  flex-wrap: wrap; /* Prevent overflow */
  gap: 3rem;
}

.footer-brand {
  max-width: 400px;
}

.footer-logo {
  height: 70px;
  margin-bottom: 1.5rem;
}

.footer-bio {
  color: var(--text-secondary);
  margin-top: 1rem;
}

.footer-links-container {
  display: flex;
  gap: 6rem;
  flex-wrap: wrap; /* Prevent overflow */
}

.footer-col h4 {
  color: white;
  margin-bottom: 1.5rem;
  font-size: 1.2rem;
}

.footer-col a {
  display: block;
  color: var(--text-secondary);
  text-decoration: none;
  margin-bottom: 1rem;
  transition: var(--transition-smooth);
}

.footer-col a:hover {
  color: var(--color-pink);
}

.footer-bottom {
  text-align: center;
  color: var(--text-light);
}

/* ==========================================================================
   RESPONSIVE — TABLET & MOBILE (STRICT OVERFLOW PREVENTION)
   ========================================================================== */

/* ── Base overflow guard ── */
*, *::before, *::after {
  min-width: 0;       /* Prevents flex/grid children from overflowing */
}

/* Tablet (Max 1024px) */
@media (max-width: 1024px) {
  .section-title { font-size: 2.8rem; }
  .hero-title { font-size: 3.5rem; }

  /* Stack all multi-column layouts */
  .hero-grid,
  .about-flex,
  .flagship-showcase,
  .contact-layout,
  .why-list {
    grid-template-columns: 1fr;
    flex-direction: column;
    gap: 3rem;
  }

  .about-flex { flex-direction: column; }
  .about-title-col { flex: unset; width: 100%; }

  /* Ecosystem grid: 2-col on tablet */
  .ecosystem-top { grid-template-columns: 1fr; gap: 1.5rem; margin-bottom: 3rem; }
  .eco-platform-grid { grid-template-columns: repeat(2, 1fr); }

  /* Gallery */
  .gallery-masonry {
    grid-template-columns: repeat(2, 1fr);
  }
  .gallery-item.large { grid-column: span 2; grid-row: span 1; }
  .gallery-item.tall { grid-row: span 1; }

  /* Header side padding reduced */
  #main-header { padding: 0 1.5rem; }
}

/* Mobile (Max 768px) */
@media (max-width: 768px) {
  /* ── Global resets ── */
  section { padding: 3.5rem 0; }
  .section-container { padding: 0 1.25rem; }

  /* Scale down ALL text across the board */
  .section-subtitle { font-size: 0.75rem; letter-spacing: 0.15em; }
  .section-title { font-size: 1.9rem !important; margin-bottom: 1.25rem; }
  .lead-text { font-size: 1rem; }
  .sub-text { font-size: 0.95rem; }

  /* ── Header ── */
  #main-header { height: 68px; padding: 0 1.25rem; }
  #main-header.shrinked { height: 60px; }
  .desktop-nav { display: none; }
  .mobile-nav-toggle { display: flex; }
  .brand-logo { height: 60px; }
  #main-header.shrinked .brand-logo { height: 60px; } /* Lock logo size on mobile scroll */


  /* ── Hero ── */
  .hero-section { padding-top: 90px; min-height: auto; padding-bottom: 3rem; }
  .hero-title { font-size: 2.2rem !important; margin-bottom: 1.2rem; }
  .hero-desc { font-size: 0.95rem; margin-bottom: 2rem; }
  .hero-badge { font-size: 0.68rem; letter-spacing: 0.08em; }
  .hero-actions { flex-direction: column; width: 100%; gap: 0.75rem; }
  .hero-actions .btn { width: 100%; justify-content: center; }
  .hero-divider { margin: 3rem 0 2.5rem; }
  .hero-stats-row { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem 1rem; }
  .hero-stat { padding: 0; }
  .hero-stat-val { font-size: 2rem; }
  .hero-stat-lbl { font-size: 0.72rem; }
  .hero-stat-sep { display: none; }

  /* ── About ── */
  .about-flex { flex-direction: column; gap: 2rem; }
  .about-title-col { flex: unset; }
  .metrics-list { gap: 2rem; margin-top: 2rem; }
  .metric-item h4 { font-size: 1.2rem; }
  .metric-item p { font-size: 0.95rem; }

  /* ── Expertise ── */
  .expertise-row { grid-template-columns: 1fr; gap: 0.75rem; padding: 2rem 0; }
  .exp-num { font-size: 1.4rem; }
  .exp-content h4 { font-size: 1.35rem; }
  .exp-content p { font-size: 0.95rem; }

  /* ── Products ── */
  .flagship-showcase { grid-template-columns: 1fr; gap: 2.5rem; }
  .product-logo { height: 120px; }
  .product-desc { font-size: 1rem; }
  .feature-bullets li { font-size: 0.95rem; }

  /* ── Process / Zig-Zag ── */
  .process-step {
    grid-template-columns: 1fr;
    gap: 1rem;
    padding: 1.75rem;
    text-align: left !important;
  }
  .process-step:nth-child(even) { grid-template-columns: 1fr; text-align: left !important; }
  .process-step:nth-child(even) .step-number { order: unset; }
  .step-number { font-size: 3rem; }
  .step-info h4 { font-size: 1.35rem; }
  .step-info p { font-size: 0.95rem; }

  /* ── Why Us ── */
  .why-list { grid-template-columns: 1fr; gap: 2rem; }
  .why-text h4 { font-size: 1.2rem; }
  .why-text p { font-size: 0.95rem; }

  /* ── Ecosystem Platform Grid ── */
  .ecosystem-top { grid-template-columns: 1fr; gap: 1.5rem; margin-bottom: 2.5rem; padding-bottom: 2.5rem; }
  .eco-platform-grid { grid-template-columns: 1fr; }
  .eco-platform { padding: 1.75rem 1.25rem; }
  .eco-platform h4 { font-size: 1.1rem; }
  .eco-platform p { font-size: 0.9rem; }
  .eco-icon-wrap { width: 44px; height: 44px; }

  /* ── Gallery ── */
  .gallery-masonry {
    grid-template-columns: 1fr;
    grid-auto-rows: 220px;
    gap: 1rem;
  }
  .gallery-item.large, .gallery-item.tall {
    grid-column: span 1;
    grid-row: span 1;
  }

  /* ── Testimonials ── */
  .testimonial-text { font-size: 1.15rem; }
  .quote-icon { font-size: 5rem; }
  .testimonial-controls { gap: 0.75rem; }
  .slider-btn { width: 38px; height: 38px; font-size: 0.9rem; }

  /* ── Contact ── */
  .contact-layout { grid-template-columns: 1fr; gap: 2.5rem; }
  .contact-form { padding: 1.75rem 1.25rem; }

  /* ── Footer ── */
  .footer-top { flex-direction: column; gap: 2.5rem; }
  .footer-brand { max-width: 100%; }
  .footer-links-container { flex-direction: column; gap: 2rem; }
  .footer-logo { height: 60px; }
}

/* Extra small (Max 480px) */
@media (max-width: 480px) {
  .section-title { font-size: 1.65rem !important; }
  .hero-title { font-size: 1.9rem !important; }
  .section-container { padding: 0 1.5rem; }
  #main-header { padding: 0 1rem; }
}

/* ANIMATION UTILS */
.reveal-on-scroll {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.reveal-on-scroll.revealed {
  opacity: 1;
  transform: translateY(0);
}
