/* ==========================================================================
   ECOGLOW CORPORATE WEBSITE DESIGN SYSTEM (LIGHT THEME)
   ========================================================================== */

/* GLOBAL RESETS & VARS */
:root {
  /* Brand Color Tokens derived from the official logo */
  --color-pink: #FF2D8D;
  --color-orange: #FF8A00;
  --color-purple: #7B2DFF;
  --color-blue: #2563FF;
  --color-green-accent: #10B981; /* Subtle Emerald Green */
  
  /* Text and BG Tokens */
  --bg-primary: #FFFFFF;
  --bg-secondary: #F8FAFC; /* Slate 50 */
  --text-primary: #0F172A; /* Slate 900 */
  --text-secondary: #475569; /* Slate 600 */
  --text-light: #64748B; /* Slate 500 */
  --border-color: #E2E8F0; /* Slate 200 */
  --border-hover: #CBD5E1; /* Slate 300 */
  
  /* Layout and Spacing */
  --container-max-width: 1280px;
  --border-radius-sm: 8px;
  --border-radius-md: 16px;
  --border-radius-lg: 24px;
  
  /* Transitions */
  --transition-smooth: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-fast: all 0.2s ease-out;
  
  /* Shadows */
  --shadow-sm: 0 2px 8px rgba(15, 23, 42, 0.04);
  --shadow-md: 0 8px 30px rgba(15, 23, 42, 0.06);
  --shadow-lg: 0 16px 48px rgba(15, 23, 42, 0.08);
  --shadow-glow: 0 0 24px rgba(123, 45, 255, 0.1);
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* GLOBAL FOCUS & OUTLINE OVERRIDES (REFINED GLOBAL UI) */
a, button, input, textarea, select, [tabindex] {
  outline: none !important;
}

/* Custom interactive responses on focus replacing accessibility boxes and purple rings */
a:focus-visible, button:focus-visible {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

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

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

.metric-card:focus-visible, .expertise-card:focus-visible, .why-card:focus-visible, .bento-card:focus-visible {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--border-hover);
}

/* TYPOGRAPHY */
h1, h2, h3, h4, h5, h6, .font-outfit {
  font-family: 'Outfit', sans-serif;
  font-weight: 600;
  letter-spacing: -0.02em;
}

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

/* SECTIONS BASE */
section {
  padding: 8rem 0;
  position: relative;
}

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

.text-gradient {
  background: linear-gradient(135deg, var(--color-pink), 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) 0%, var(--color-orange) 30%, var(--color-purple) 70%, var(--color-blue) 100%);
}

.text-green {
  color: var(--color-green-accent);
}

.green-accent {
  background-color: var(--color-green-accent);
}

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

.btn-primary {
  color: #FFFFFF;
  border: none;
  box-shadow: 0 4px 20px rgba(255, 45, 141, 0.15);
}

.primary-gradient-btn {
  background: linear-gradient(135deg, var(--color-pink), var(--color-purple));
  color: #FFFFFF;
  border: none;
}

.primary-gradient-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(123, 45, 255, 0.2);
  background: linear-gradient(135deg, var(--color-pink), var(--color-blue));
}

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

.btn-secondary:hover {
  background-color: var(--bg-secondary);
  border-color: var(--border-hover);
  transform: translateY(-2px);
}

.btn-white-glass {
  background: rgba(255, 255, 255, 0.15);
  color: #FFFFFF;
  border: 1px solid rgba(255, 255, 255, 0.25);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.btn-white-glass:hover {
  background: rgba(255, 255, 255, 0.25);
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(255, 255, 255, 0.1);
}

/* FIXED HEADER & NAVBAR (REFINED: LOGO SIZING AND HEIGHTS INCREASED) */
#main-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 110px; /* Increased from 90px */
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(241, 245, 249, 0.6);
  z-index: 1000;
  transition: var(--transition-smooth);
  display: flex;
  align-items: center;
}

#main-header.shrinked {
  height: 80px; /* Increased from 65px */
  box-shadow: var(--shadow-sm);
  background: rgba(255, 255, 255, 0.9);
}

.header-container {
  width: 100%;
  max-width: var(--container-max-width);
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand-logo {
  height: 78px; /* Increased from 38px (approx. 40px growth) */
  width: auto;
  object-fit: contain;
  transition: var(--transition-smooth);
}

#main-header.shrinked .brand-logo {
  height: 48px; /* Increased from 32px */
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 2.25rem;
}

.nav-item {
  color: var(--text-secondary);
  font-size: 0.95rem;
  font-weight: 500;
  text-decoration: none;
  transition: var(--transition-fast);
  position: relative;
  padding: 0.5rem 0;
}

.nav-item::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--color-pink), var(--color-purple));
  transition: var(--transition-fast);
}

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

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

.nav-btn {
  padding: 0.65rem 1.5rem !important;
  font-size: 0.9rem !important;
  border-radius: var(--border-radius-sm);
  text-decoration: none;
}

/* MOBILE NAV TOGGLE */
.mobile-nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  flex-direction: column;
  gap: 6px;
  padding: 6px;
}

.hamburger-bar {
  display: block;
  width: 24px;
  height: 2px;
  background-color: var(--text-primary);
  transition: var(--transition-fast);
}

/* MOBILE NAV DRAWER */
.mobile-nav-drawer {
  position: fixed;
  top: 110px; /* Adjusted to match larger header */
  left: 0;
  width: 100%;
  height: calc(100vh - 110px);
  background-color: var(--bg-primary);
  z-index: 999;
  transform: translateX(100%);
  transition: var(--transition-smooth);
  border-top: 1px solid var(--border-color);
  padding: 2.5rem 2rem;
  display: flex;
  flex-direction: column;
}

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

#main-header.shrinked + .mobile-nav-drawer {
  top: 80px; /* Adjusted to match larger shrinked header */
  height: calc(100vh - 80px);
}

.mobile-drawer-nav {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.drawer-item {
  color: var(--text-primary);
  font-family: 'Outfit', sans-serif;
  font-size: 1.5rem;
  font-weight: 500;
  text-decoration: none;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--border-color);
  transition: var(--transition-fast);
}

.drawer-item:hover {
  color: var(--color-purple);
  padding-left: 8px;
}

.drawer-cta {
  background: linear-gradient(135deg, var(--color-pink), var(--color-purple));
  color: #FFFFFF;
  text-align: center;
  border-radius: var(--border-radius-sm);
  padding: 1rem;
  border-bottom: none;
  margin-top: 1rem;
}

/* SECTION HEADERS */
.section-subtitle {
  color: var(--color-purple);
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  font-weight: 700;
  margin-bottom: 0.75rem;
}

.section-title {
  font-size: 2.5rem;
  line-height: 1.2;
  color: var(--text-primary);
  margin-bottom: 1.5rem;
}

.section-desc {
  font-size: 1.15rem;
  color: var(--text-secondary);
  max-width: 600px;
  margin-bottom: 1.25rem;
}

.section-desc-sub {
  font-size: 1rem;
  color: var(--text-light);
  max-width: 600px;
}

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

.center-align .section-desc {
  margin-left: auto;
  margin-right: auto;
}

/* GRID SYSTEM */
.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 4rem;
  align-items: center;
}

.grid-2-dense {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

/* SECTION 1: HERO (SIMPLIFIED, TYPOGRAPHY-FIRST & WIDE) */
.hero-section {
  padding-top: 15rem;
  padding-bottom: 10rem;
  overflow: hidden;
  background-color: var(--bg-primary);
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-gradient-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: none;
  background: 
    radial-gradient(circle at 50% 50%, rgba(123, 45, 255, 0.03), transparent 60%),
    radial-gradient(circle at 10% 20%, rgba(255, 45, 141, 0.015), transparent 45%),
    radial-gradient(circle at 90% 80%, rgba(37, 99, 255, 0.015), transparent 45%);
}

.hero-centered {
  position: relative;
  z-index: 2;
  width: 100%;
  display: flex;
  justify-content: center;
  text-align: center;
}

.hero-content {
  max-width: 1080px; 
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
}

.hero-title {
  font-size: 5.25rem; 
  line-height: 1.1; 
  margin-bottom: 1.5rem; 
  color: var(--text-primary);
  font-weight: 800;
  letter-spacing: -0.03em;
  text-align: center;
}

.hero-subheadline {
  font-size: 1.35rem;
  color: var(--text-secondary);
  line-height: 1.65;
  margin-bottom: 2.5rem; 
  max-width: 780px; 
  text-align: center;
}

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


/* SECTION 2: WHO WE ARE */
.who-we-are-section {
  background-color: var(--bg-secondary);
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
}

.metric-card {
  background-color: var(--bg-primary);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-md);
  padding: 2.25rem 2rem;
  box-shadow: var(--shadow-sm);
  transition: var(--transition-smooth);
  position: relative;
  overflow: hidden;
}

.metric-icon {
  margin-bottom: 1.25rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.metric-title {
  font-size: 1.2rem;
  color: var(--text-primary);
  margin-bottom: 0.75rem;
}

.metric-desc {
  font-size: 0.95rem;
  color: var(--text-secondary);
}

/* Border reveal overlay effect on cards */
.hover-reveal-border {
  z-index: 1;
}

.hover-reveal-border::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: inherit;
  padding: 1.5px; /* Border thickness */
  background: linear-gradient(135deg, var(--color-pink), var(--color-orange), var(--color-purple), var(--color-blue));
  -webkit-mask: 
     linear-gradient(#fff 0 0) content-box, 
     linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
          mask-composite: exclude;
  pointer-events: none;
  opacity: 0;
  transition: var(--transition-smooth);
}

.hover-reveal-border:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: transparent;
}

.hover-reveal-border:hover::before {
  opacity: 1;
}


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

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

.expertise-card {
  background-color: var(--bg-primary);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-md);
  padding: 2.5rem 2rem;
  box-shadow: var(--shadow-sm);
  transition: var(--transition-smooth);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.card-accent-gradient {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--color-pink), var(--color-orange), var(--color-purple), var(--color-blue));
  opacity: 0.15;
  transition: var(--transition-fast);
}

.expertise-card:hover .card-accent-gradient {
  height: 6px;
  opacity: 1;
}

.expertise-card .card-title {
  font-size: 1.25rem;
  color: var(--text-primary);
  margin-bottom: 1rem;
}

.expertise-card .card-desc {
  font-size: 0.95rem;
  color: var(--text-secondary);
}


/* SECTION 4: OUR PRODUCTS (FLAGSHIP: REFINED FOR STATIC LAYOUT) */
.products-section {
  background-color: var(--bg-secondary);
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
}

.product-showcase-grid {
  display: flex;
  flex-direction: column;
  margin-top: 4.5rem;
}

.flagship-product-card {
  background-color: var(--bg-primary);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-md);
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  overflow: hidden;
}

.showcase-content {
  padding: 4.5rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.product-header {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.product-badge {
  align-self: flex-start;
  color: #FFFFFF;
  font-family: 'Outfit', sans-serif;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  padding: 0.35rem 0.85rem;
  border-radius: 100px;
}

.product-name {
  font-size: 2.5rem;
  color: var(--text-primary);
}

.product-description {
  font-size: 1.1rem;
  color: var(--text-secondary);
  margin-bottom: 2rem;
}

/* Static Partners Details Sizing */
.product-static-partners {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 0.5rem;
}

.partners-label {
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-weight: 700;
  color: var(--color-purple);
  margin-bottom: 0.5rem;
  display: block;
}

.product-features-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.product-features-list li {
  font-size: 0.95rem;
  color: var(--text-secondary);
  position: relative;
  padding-left: 1.5rem;
  line-height: 1.5;
}

.product-features-list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--color-purple);
  font-weight: 700;
}

.product-action-wrapper {
  margin-top: 2rem;
  display: flex;
}

/* Redesigned Showcase Visual: Stats and Mockup Layout */
.flagship-visual {
  background: linear-gradient(135deg, rgba(255, 45, 141, 0.015), rgba(37, 99, 255, 0.015));
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 4.5rem;
  border-left: 1px solid var(--border-color);
  gap: 2.5rem;
}

.flagship-stats-container {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  width: 100%;
}

.flagship-stat-box {
  background-color: var(--bg-primary);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-md);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  transition: var(--transition-smooth);
}

.flagship-stat-box:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  border-color: var(--border-hover);
}

.stat-number {
  font-family: 'Outfit', sans-serif;
  font-size: 2.25rem;
  font-weight: 800;
  line-height: 1;
  margin-bottom: 0.25rem;
}

.stat-label {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-light);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.dino-mockup-screen {
  background-color: var(--bg-primary);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-md);
  box-shadow: var(--shadow-md);
  width: 100%;
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.mockup-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 0.75rem;
}

.mockup-logo {
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  font-size: 0.95rem;
}

.mockup-status {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  background-color: rgba(16, 185, 129, 0.1);
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
}

.mockup-chart {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  height: 60px;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 0.5rem;
}

.mockup-chart-bar {
  width: 12%;
  background: linear-gradient(180deg, var(--color-purple), var(--color-blue));
  border-radius: 4px 4px 0 0;
  animation: height-growth 1.5s ease-out forwards;
}

@keyframes height-growth {
  from { height: 0; }
}

.mockup-device-status {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background-color: var(--bg-secondary);
  padding: 0.75rem;
  border-radius: var(--border-radius-sm);
  border: 1px solid var(--border-color);
}

.status-indicator-circle {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.animated-pulse-green {
  background-color: var(--color-green-accent);
  position: relative;
}

.animated-pulse-green::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background-color: inherit;
  animation: pulse-ring 1.5s infinite;
}

.status-device-text {
  font-size: 0.75rem;
  color: var(--text-secondary);
  line-height: 1.3;
}


/* SECTION 5: HOW WE CREATE IMPACT */
.timeline-section {
  background-color: var(--bg-primary);
}

.timeline-container {
  margin-top: 4.5rem;
}

.timeline-nav {
  display: flex;
  position: relative;
  margin-bottom: 3.5rem;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  gap: 1.5rem;
  scroll-snap-type: x mandatory;
  padding-bottom: 0.5rem;
}

.timeline-nav::-webkit-scrollbar {
  display: none;
}

.timeline-nav-btn {
  background: none;
  border: none;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  z-index: 2;
  padding-bottom: 1.5rem;
  transition: var(--transition-smooth);
  flex: 1 0 auto;
  min-width: 140px;
  scroll-snap-align: start;
}

.step-num {
  font-family: 'Outfit', sans-serif;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-light);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background-color: var(--bg-secondary);
  border: 2px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-smooth);
}

.step-name {
  font-family: 'Outfit', sans-serif;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-secondary);
  transition: var(--transition-fast);
}

.timeline-nav-btn.active .step-num {
  background-color: var(--color-purple);
  color: #FFFFFF;
  border-color: var(--color-purple);
  box-shadow: 0 0 15px rgba(123, 45, 255, 0.3);
}

.timeline-nav-btn.active .step-name {
  color: var(--text-primary);
}

/* Stepper horizontal lines */
.timeline-indicator-line {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: var(--border-color);
  z-index: 1;
}

.timeline-progress-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--color-pink), var(--color-purple));
  transition: var(--transition-smooth);
}

/* Timeline detail content slides */
.timeline-details-card {
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-sm);
  padding: 4rem;
  min-height: 320px;
  overflow: hidden;
  position: relative;
}

.timeline-details-slide {
  display: none;
  grid-template-columns: 1.3fr 0.7fr;
  gap: 4rem;
  align-items: center;
  animation: slideFadeIn 0.5s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.timeline-details-slide.active {
  display: grid;
}

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

.slide-title {
  font-size: 1.75rem;
  color: var(--text-primary);
  margin-bottom: 1.25rem;
}

.slide-desc {
  font-size: 1.05rem;
  color: var(--text-secondary);
  margin-bottom: 2rem;
}

.slide-bullets {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 1.5rem;
}

.slide-bullets span {
  font-family: 'Outfit', sans-serif;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-primary);
  background: var(--bg-primary);
  border: 1px solid var(--border-color);
  padding: 0.5rem 1rem;
  border-radius: 100px;
  box-shadow: var(--shadow-sm);
}

.slide-visual {
  display: flex;
  align-items: center;
  justify-content: center;
}

.process-svg {
  width: 100%;
  max-width: 160px;
  height: auto;
}

/* Timeline Custom Visual Animations */
.speedometer-hand {
  transform-origin: 100px 100px;
  animation: sweep 4s ease-in-out infinite alternate;
}

@keyframes sweep {
  0% { transform: rotate(-60deg); }
  100% { transform: rotate(60deg); }
}

.rotating-star {
  transform-origin: 100px 100px;
  animation: rotate-star 10s linear infinite;
}

@keyframes rotate-star {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

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

.why-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.5rem;
  margin-top: 4.5rem;
}

.why-card {
  background-color: var(--bg-primary);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-md);
  padding: 3rem 2.25rem;
  box-shadow: var(--shadow-sm);
  transition: var(--transition-smooth);
}

.why-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--border-hover);
}

.why-icon-box {
  width: 56px;
  height: 56px;
  background-color: var(--bg-secondary);
  border-radius: var(--border-radius-sm);
  border: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.75rem;
  transition: var(--transition-fast);
}

.why-card:hover .why-icon-box {
  background-color: var(--bg-primary);
  border-color: var(--color-purple);
  box-shadow: 0 0 12px rgba(123, 45, 255, 0.1);
}

.why-title {
  font-size: 1.3rem;
  color: var(--text-primary);
  margin-bottom: 0.85rem;
}

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


/* SECTION 7: TECHNOLOGY ECOSYSTEM (BENTO GRID) */
.ecosystem-section {
  background-color: var(--bg-primary);
}

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

.bento-card {
  background-color: var(--bg-primary);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-md);
  padding: 2.5rem;
  box-shadow: var(--shadow-sm);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: var(--transition-smooth);
  min-height: 220px;
}

.bento-card.span-1 {
  grid-column: span 1;
}

.bento-card.span-2 {
  grid-column: span 2;
}

.bento-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.bento-card-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.bento-card-header svg {
  flex-shrink: 0;
}

.bento-title {
  font-size: 1.35rem;
  color: var(--text-primary);
  font-weight: 600;
}

.bento-desc {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.6;
}


/* SECTION 8: VISION */
.vision-section {
  padding: 10rem 0;
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
  background-color: var(--bg-secondary);
  overflow: hidden;
}

/* Soft light-mesh gradient animations */
.animate-light-mesh {
  background: 
    radial-gradient(circle at 10% 20%, rgba(255, 45, 141, 0.02) 0%, transparent 40%),
    radial-gradient(circle at 90% 80%, rgba(37, 99, 255, 0.02) 0%, transparent 40%),
    var(--bg-secondary);
  animation: mesh-shift 12s ease-in-out infinite alternate;
}

@keyframes mesh-shift {
  0% { background-position: 0% 0%; }
  100% { background-position: 100% 100%; }
}

.vision-title {
  font-size: 3rem;
  line-height: 1.2;
  font-weight: 800;
  margin-bottom: 2rem;
}

.vision-desc {
  font-size: 1.35rem;
  color: var(--text-secondary);
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.7;
}


/* SECTION 9: CTA & CONTACT */
.cta-section {
  background-color: var(--bg-primary);
}

.cta-banner {
  border-radius: var(--border-radius-lg);
  padding: 4.5rem;
  color: #FFFFFF;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 3rem;
  margin-bottom: 6rem;
  box-shadow: var(--shadow-lg);
}

.cta-banner-title {
  font-size: 2.5rem;
  line-height: 1.2;
  margin-bottom: 1rem;
}

.cta-banner-desc {
  font-size: 1.15rem;
  opacity: 0.9;
  max-width: 620px;
}

.cta-banner-actions {
  flex-shrink: 0;
}

/* Contact layout form design */
.contact-info {
  display: flex;
  flex-direction: column;
}

.contact-info-title {
  font-size: 2rem;
  color: var(--text-primary);
  margin-bottom: 1.25rem;
}

.contact-info-desc {
  font-size: 1.05rem;
  color: var(--text-secondary);
  margin-bottom: 3rem;
  max-width: 480px;
}

.contact-channels {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.channel {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.channel-icon {
  width: 44px;
  height: 44px;
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
}

.channel-text {
  display: flex;
  flex-direction: column;
}

.ch-label {
  font-size: 0.75rem;
  color: var(--text-light);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.ch-val {
  font-size: 1rem;
  font-weight: 500;
  color: var(--text-primary);
}

/* Contact Form Specifics */
.contact-form {
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-md);
  padding: 3rem;
  box-shadow: var(--shadow-sm);
  position: relative;
}

.form-row {
  margin-bottom: 1.5rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
  position: relative;
}

.form-group label {
  font-family: 'Outfit', sans-serif;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-secondary);
}

.form-group input, 
.form-group textarea {
  font-family: inherit;
  font-size: 0.95rem;
  padding: 0.85rem 1rem;
  border-radius: var(--border-radius-sm);
  border: 1px solid var(--border-color);
  background-color: var(--bg-primary);
  color: var(--text-primary);
  outline: none;
  transition: var(--transition-fast);
  width: 100%;
}

.form-group input:focus, 
.form-group textarea:focus {
  border-color: var(--text-light);
  box-shadow: 0 0 0 3px rgba(100, 116, 139, 0.08);
}

/* Form Validation Errors */
.error-msg {
  display: none;
  font-size: 0.75rem;
  color: var(--color-pink);
  margin-top: 0.25rem;
}

.form-group.invalid input,
.form-group.invalid textarea {
  border-color: var(--color-pink);
  background-color: rgba(255, 45, 141, 0.01);
}

.form-group.invalid .error-msg {
  display: block;
}

.form-actions {
  display: flex;
  margin-top: 2rem;
}

.form-actions .btn {
  width: 100%;
  padding: 1.15rem 2rem;
}

/* Form Success State */
.form-success-alert {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: var(--bg-secondary);
  border-radius: inherit;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  padding: 3rem;
  text-align: center;
  opacity: 0;
  pointer-events: none;
  transition: var(--transition-smooth);
}

.form-success-alert.active {
  opacity: 1;
  pointer-events: auto;
}

.alert-icon-check {
  width: 56px;
  height: 56px;
  background-color: rgba(16, 185, 129, 0.1);
  border-radius: 50%;
  color: var(--color-green-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
  font-weight: bold;
}

.alert-content {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.alert-content strong {
  font-family: 'Outfit', sans-serif;
  font-size: 1.35rem;
  color: var(--text-primary);
}

.alert-content span {
  font-size: 0.95rem;
  color: var(--text-secondary);
}

/* SECTION 10: FOOTER */
.footer-section {
  background-color: var(--bg-secondary);
  border-top: 1px solid var(--border-color);
  padding: 5rem 0 3rem 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr repeat(3, 0.9fr);
  gap: 4rem;
  padding-bottom: 4rem;
  border-bottom: 1px solid var(--border-color);
}

.footer-brand {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.footer-logo {
  height: 38px;
  width: auto;
  object-fit: contain;
  margin-bottom: 1rem;
}

.footer-tagline {
  font-family: 'Outfit', sans-serif;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 1rem;
  position: relative;
}

/* Subtle accent green line in the footer as requested */
.footer-tagline::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 35px;
  height: 2px;
  background-color: var(--color-green-accent);
}

.footer-bio {
  font-size: 0.9rem;
  color: var(--text-light);
  line-height: 1.5;
  margin-top: 0.5rem;
}

.footer-links-col {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.footer-col-title {
  font-size: 1rem;
  color: var(--text-primary);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.5rem;
}

.footer-link {
  color: var(--text-secondary);
  font-size: 0.95rem;
  text-decoration: none;
  transition: var(--transition-fast);
  align-self: flex-start;
}

.footer-link:hover {
  color: var(--color-purple);
  transform: translateX(4px);
}

.footer-bottom {
  padding-top: 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.copyright-text {
  font-size: 0.85rem;
  color: var(--text-light);
}

/* SCROLL REVEAL CLASSIFICATION */
.reveal-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
  pointer-events: none;
}

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

/* RESPONSIVE MEDIA QUERIES */

@media (max-width: 1024px) {
  html {
    font-size: 15px;
  }
  
  .hero-section {
    padding-top: 13rem;
    padding-bottom: 10rem;
  }
  
  .hero-title {
    font-size: 4.25rem; 
  }
  
  .expertise-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .why-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .product-showcase-card {
    grid-template-columns: 1fr;
  }
  
  .showcase-visual {
    border-left: none;
    border-top: 1px solid var(--border-color);
    padding: 4rem;
  }
  
  .flagship-visual {
    border-left: none;
    border-top: 1px solid var(--border-color);
    padding: 4rem;
  }
  
  .timeline-nav {
    border-bottom: none;
  }
  
  .timeline-indicator-line {
    display: none;
  }
  
  .timeline-nav-btn {
    border-bottom: 2px solid var(--border-color);
  }
  
  .timeline-nav-btn.active {
    border-bottom-color: var(--color-purple);
  }
  
  .timeline-details-card {
    padding: 3rem;
  }

  .timeline-details-slide {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  
  .slide-visual {
    order: -1;
  }

  .showcase-content {
    padding: 3rem;
  }

  /* Bento Grid reflow to 2 columns on tablet size */
  .bento-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  section {
    padding: 5rem 0;
  }
  
  .grid-2 {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  
  .grid-2-dense {
    grid-template-columns: 1fr;
  }

  .expertise-grid {
    grid-template-columns: 1fr;
  }
  
  .why-grid {
    grid-template-columns: 1fr;
  }
  
  .bento-grid {
    grid-template-columns: 1fr;
  }
  
  .bento-card.span-2 {
    grid-column: span 1;
  }
  
  .hero-title {
    font-size: 3.4rem; 
  }
  
  .mobile-nav-toggle {
    display: flex;
  }
  
  .desktop-nav {
    display: none;
  }
  
  .hamburger-bar {
    background-color: var(--text-primary);
  }
  
  /* Active Menu Hamburger States */
  #main-header.menu-active .hamburger-bar:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
  }
  
  #main-header.menu-active .hamburger-bar:nth-child(2) {
    opacity: 0;
  }
  
  #main-header.menu-active .hamburger-bar:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
  }

  .showcase-content {
    padding: 2rem;
  }

  .timeline-details-card {
    padding: 2rem;
  }
  
  .timeline-details-slide {
    gap: 2rem;
  }
  
  .cta-banner {
    flex-direction: column;
    padding: 3rem;
    gap: 2rem;
    text-align: center;
  }
  
  .cta-banner-actions {
    width: 100%;
  }
  
  .cta-banner-actions .btn {
    width: 100%;
  }
  
  .contact-form {
    padding: 2rem;
  }
  
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  
  .footer-bottom {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }
}

@media (max-width: 485px) {
  .hero-title {
    font-size: 2.8rem; 
  }
  
  .hero-subheadline {
    font-size: 1.2rem;
  }
  
  .hero-actions {
    flex-direction: column;
    width: 100%;
    gap: 1rem;
  }
  
  .hero-actions .btn {
    width: 100%;
  }


  
  .showcase-visual {
    padding: 1.5rem;
  }
  
  .flagship-visual {
    padding: 1.5rem;
  }

  .showcase-content {
    padding: 1.5rem;
  }

  .timeline-details-card {
    padding: 1.5rem;
  }
  
  .section-container {
    padding: 0 1.25rem;
  }
}
