/* ===============================
   THEME TOKENS
================================ */
:root {
  color-scheme: dark;
  --theme-bg: #0f172a;
  --theme-surface: #111827;
  --theme-surface-soft: rgba(17, 24, 39, 0.6);
  --theme-text: #f8fafc;
  --theme-text-muted: #cbd5e1;
  --theme-border: #1f2937;
  --chart-bg: #111827;
  --chart-grid: #374151;
  --chart-label: #9ca3af;
  --hero-bg: #000000;
  --glass-bg: rgba(0, 0, 0, 0.45);
}

[data-theme="light"] {
  color-scheme: light;
  --theme-bg: #f8fafc;
  --theme-surface: #ffffff;
  --theme-surface-soft: rgba(248, 250, 252, 0.7);
  --theme-text: #0f172a;
  --theme-text-muted: #475569;
  --theme-border: #e2e8f0;
  --chart-bg: #f1f5f9;
  --chart-grid: #e2e8f0;
  --chart-label: #64748b;
  --hero-bg: #f8fafc;
  --glass-bg: rgba(255, 255, 255, 0.7);
}

body {
  background-color: var(--theme-bg);
  color: var(--theme-text);
}

[data-theme="light"] body {
  background: var(--theme-bg) !important;
}

[data-theme="light"] body::before {
  background: none !important;
}

[data-theme="light"] .bg-gray-900 { background-color: var(--theme-bg) !important; }
[data-theme="light"] .bg-gray-800 { background-color: #f1f5f9 !important; }
[data-theme="light"] .bg-gray-700 { background-color: #e2e8f0 !important; }
[data-theme="light"] .bg-gray-900\/90 { background-color: rgba(248, 250, 252, 0.9) !important; }
[data-theme="light"] .bg-gray-900\/70 { background-color: rgba(248, 250, 252, 0.8) !important; }
[data-theme="light"] .bg-gray-900\/50 { background-color: rgba(248, 250, 252, 0.7) !important; }
[data-theme="light"] .bg-gray-800\/50 { background-color: rgba(241, 245, 249, 0.7) !important; }
[data-theme="light"] .bg-gray-800\/40 { background-color: rgba(226, 232, 240, 0.6) !important; }
[data-theme="light"] .bg-gray-700\/50 { background-color: rgba(226, 232, 240, 0.7) !important; }
[data-theme="light"] .text-white { color: #0f172a !important; }
[data-theme="light"] .text-gray-100 { color: #1f2937 !important; }
[data-theme="light"] .text-gray-200 { color: #334155 !important; }
[data-theme="light"] .text-gray-300 { color: #475569 !important; }
[data-theme="light"] .text-gray-400 { color: #475569 !important; }
[data-theme="light"] .text-gray-500 { color: #334155 !important; }
[data-theme="light"] .text-gray-600 { color: #1f2937 !important; }
[data-theme="light"] .text-gray-700 { color: #0f172a !important; }
[data-theme="light"] .border-gray-800 { border-color: #e2e8f0 !important; }
[data-theme="light"] .border-gray-700 { border-color: #e5e7eb !important; }
[data-theme="light"] .border-gray-700\/50 { border-color: rgba(226, 232, 240, 0.7) !important; }
[data-theme="light"] .shadow-2xl { box-shadow: 0 20px 40px rgba(15, 23, 42, 0.08) !important; }

.hero-section { background: var(--hero-bg); }

[data-theme="light"] .hero-glass {
  background: var(--glass-bg);
  border-color: rgba(15, 23, 42, 0.08);
  box-shadow: 0 30px 80px rgba(15, 23, 42, 0.12);
}

.theme-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  margin-left: 12px;
  border-radius: 999px;
  border: 1px solid var(--theme-border);
  background: var(--theme-surface);
  color: var(--theme-text);
  font-size: 0.875rem;
  font-weight: 600;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.15);
  transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.theme-toggle:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.2);
}

.theme-toggle:focus-visible {
  outline: 2px solid #38bdf8;
  outline-offset: 2px;
}

/* ===============================
   HERO BASE
================================ */
html, body {
  max-width: 100%;
  overflow-x: hidden;
}
@keyframes fade-in {
  from { opacity: 0; transform: scale(0.95); }
  to { opacity: 1; transform: scale(1); }
}

.animate-fade-in {
  animation: fade-in 0.25s ease-out;
}

.hero-section {
  position: relative;
  min-height: 100vh;
  overflow: hidden;
  background:
    radial-gradient(circle at 78% 44%, rgba(56, 189, 248, 0.2), rgba(15, 23, 42, 0) 44%),
    radial-gradient(circle at 22% 12%, rgba(56, 189, 248, 0.09), rgba(15, 23, 42, 0) 36%),
    #020617;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding-top: 80px;
}

/* ===============================
   BACKGROUND LAYERS
================================ */
.hero-bg {
  position: absolute;
  inset: 0;
}

/* Earth image */
.hero-earth {
  position: absolute;
  width: clamp(480px, 52vw, 820px);
  height: clamp(480px, 52vw, 820px);
  right: clamp(-240px, -14vw, -50px);
  top: 50%;
  left: auto;
  border-radius: 50%;
  background-image: url("https://images.unsplash.com/photo-1614730321146-b6fa6a46bcb4?auto=format&fit=crop&w=1800&q=80");
  background-size: cover;
  background-position: center;
  transform: translateY(-50%);
  opacity: 0.9;
  filter: saturate(1.1) brightness(1.04);
  box-shadow:
    0 0 80px rgba(56, 189, 248, 0.38),
    0 0 140px rgba(56, 189, 248, 0.12);
  animation: earthSpin 42s linear infinite;
}

/* Dark vignette */
.hero-vignette {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg,
      rgba(2, 6, 23, 0.97) 0%,
      rgba(2, 6, 23, 0.82) 34%,
      rgba(2, 6, 23, 0.18) 62%,
      rgba(2, 6, 23, 0.86) 100%),
    radial-gradient(circle at 78% 50%, rgba(2, 6, 23, 0.08) 18%, rgba(2, 6, 23, 0.92) 80%);
}

/* Tech grid */
.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.07) 1px, transparent 1px);
  background-size: 80px 80px;
  opacity: 0.15;
}

/* ===============================
   DATA RINGS
================================ */
.hero-rings {
  position: absolute;
  inset: 0;
  pointer-events: none;
  display: none;
}

.ring {
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(56, 189, 248, 0.25);
  right: 20%;
  top: 50%;
  transform: translateY(-50%);
}

.ring-1 {
  width: 520px;
  height: 520px;
  animation: spinSlow 90s linear infinite;
}

.ring-2 {
  width: 680px;
  height: 680px;
  border-color: rgba(168, 85, 247, 0.15);
}

/* ===============================
   PARTICLES
================================ */
.hero-particles::before,
.hero-particles::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(2px 2px at 20% 30%, rgba(255, 255, 255, .4), transparent),
    radial-gradient(2px 2px at 70% 20%, rgba(255, 255, 255, .3), transparent),
    radial-gradient(1.5px 1.5px at 40% 80%, rgba(255, 255, 255, .35), transparent),
    radial-gradient(1.5px 1.5px at 85% 60%, rgba(255, 255, 255, .25), transparent);
  animation: floatUp 35s linear infinite;
}

.hero-particles::after {
  animation-duration: 55s;
  opacity: .6;
}

/* ===============================
   HERO CONTENT
================================ */
.hero-content {
  position: relative;
  z-index: 2;
  max-width: 1280px;
  width: 100%;
  padding: 0 clamp(16px, 4vw, 56px);
  text-align: left;
  display: flex;
  justify-content: flex-start;
}

.hero-glass {
  display: block;
  width: min(700px, 100%);
  margin-left: 0;
  margin-right: auto;
  padding: 48px 52px;
  background: rgba(2, 6, 23, 0.8);
  backdrop-filter: none;
  border-radius: 28px;
  border: 1px solid rgba(148, 163, 184, 0.18);
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.7);
}

/* Headings */
.hero-glass h1 {
  font-size: clamp(2.8rem, 6vw, 4.5rem);
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 24px;
}

.hero-glass h1 span {
  background: linear-gradient(90deg, #38bdf8, #22c55e);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Paragraph */
.hero-glass p {
  font-size: 1.15rem;
  color: #d1d5db;
  max-width: 600px;
  margin: 0 0 32px;
  line-height: 1.65;
}

/* Buttons */
.hero-actions {
  display: flex;
  gap: 16px;
  justify-content: flex-start;
  flex-wrap: wrap;
  margin-bottom: 18px;
}

/* ===============================
   MOBILE FIX (CONFLICT RESOLVED)
================================ */
@media (max-width: 768px) {
  .hero-earth {
    width: 340px;
    height: 340px;
    right: 50%;
    top: 28%;
    transform: translate(50%, -50%);
    opacity: 0.65;
  }
  .hero-content {
    display: block;
    text-align: center;
  }
  .hero-glass {
    text-align: center;
    padding: 32px 20px;
    width: 100%;
  }
  .hero-glass p { margin-left: auto; margin-right: auto; }
  .hero-actions { justify-content: center; }
  .fade-left, .fade-right { transform: translateY(40px); }
  .scroll-reveal.from-left, .scroll-reveal.from-right { transform: translateY(40px); }
}

@keyframes earthSpin {
  from { transform: translateY(-50%) rotate(0deg); }
  to   { transform: translateY(-50%) rotate(360deg); }
}

/* ===============================
   EcoPulse Global Styles


.card {
  background: linear-gradient(180deg, rgba(255,255,255,0.02), rgba(255,255,255,0.01));
  border: 1px solid rgba(255,255,255,0.04);
  border-radius: 18px;
  padding: 1.75rem;
  transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
  backdrop-filter: blur(8px) saturate(120%);
  min-height: 220px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  text-align: center;
}

.ecopulse-card {
  padding: 1.6rem;
}

.card .w-16 {
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 18px rgba(2,6,23,0.6);
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.card h3 {
  font-size: 1.125rem;
  margin-top: 0.5rem;
  margin-bottom: 0.5rem;
  background: linear-gradient(90deg, #38bdf8, #10b981);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.card p {
  color: #cbd5e1;
  line-height: 1.6;
  margin-bottom: 0.75rem;
}

.card:hover {
  transform: translateY(-8px);
  box-shadow: 0 30px 60px rgba(2,6,23,0.55), 0 10px 30px rgba(16,185,129,0.06);
  border-color: rgba(56,189,248,0.12);
}

.card:hover .w-16 {
  transform: translateY(-6px) scale(1.04);
  box-shadow: 0 18px 40px rgba(2,6,23,0.55), 0 6px 14px rgba(59,130,246,0.06);
}

/* CTA inside feature area */
#why-ecopulse .inline-block {
  box-shadow: 0 8px 30px rgba(16,185,129,0.06);
}

@media (max-width: 768px) {
  .card {
    padding: 1rem;
    min-height: unset;
  }
  .card h3 { font-size: 1.0625rem; }
}



/* --- Custom Logo Styles --- */
.gradient-text {
  background: linear-gradient(to right, #ffffff, #9ca3af);
  /* White to Gray-400 */
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Scroll to Top Button Visibility Classes */
#scroll-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

  .hero-glass {
    padding: 32px 20px;
  }

  .hero-glass h1 {
    font-size: clamp(2.2rem, 7vw, 3rem);
  }

/* Range Slider Styling */
input[type=range] {

    -webkit-appearance: none; 
  appearance: none;
    background: transparent; 
}

input[type=range]::-webkit-slider-thumb {
    -webkit-appearance: none;
  appearance: none;
    height: 16px;
    width: 16px;
    border-radius: 50%;
    background: #ef4444; 
    cursor: pointer;
    margin-top: -6px; 
    box-shadow: 0 0 10px rgba(239, 68, 68, 0.5);

  -webkit-appearance: none;
  background: transparent;
}

input[type=range]::-webkit-slider-thumb {
  -webkit-appearance: none;
  height: 16px;
  width: 16px;
  border-radius: 50%;
  background: #ef4444;
  cursor: pointer;
  margin-top: -6px;
  box-shadow: 0 0 10px rgba(239, 68, 68, 0.5);

}

  .scroll-reveal.from-left,
  .scroll-reveal.from-right {
    transform: translateY(40px);
  }
}

/* ===============================
   GLOBAL FIXES (ISSUE #70)
================================ */
section {
  scroll-margin-top: 80px;
}

footer {
  background: linear-gradient(
    to top,
    #020617,
    #020617 60%,
    transparent
  );
}

.reviews-header {
  text-align: center;
  padding: 0 1.5rem 2.5rem;
}

.reviews-header h2 {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
  background: linear-gradient(to right, #38bdf8, #22c55e);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.reviews-header p {
  color: #94a3b8;
  font-size: 1.2rem;
}

/* Review Cards */
.review-card {
  background: rgba(30, 41, 59, 0.8);
  border: 1px solid rgba(56, 189, 248, 0.2);
  border-radius: 1rem;
  padding: 1.5rem;
  margin: 1rem;
  min-width: 300px;
  backdrop-filter: blur(10px);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.review-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  border-color: rgba(56, 189, 248, 0.4);
}

.review-content {
  color: #e2e8f0;
  font-style: italic;
  margin-bottom: 1rem;
  line-height: 1.6;
}

.review-author { display: flex; align-items: center; }
.review-author .author-name { font-weight: 600; color: #38bdf8; }
.review-author .author-title { color: #94a3b8; font-size: 0.9rem; margin-top: 0.25rem; }

/* Scrolling Reviews */
.reviews-track {
  display: flex;
  width: max-content;
  animation: scrollReviews 30s linear infinite;
}

.reviews-track:hover { animation-play-state: paused; }

@keyframes scrollReviews {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.reviews-wrapper {
  display: flex;
  width: 200%;
  /* Double width to create seamless loop */
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .reviews-header h2 { font-size: 2rem; }
  .review-card { min-width: 280px; padding: 1.25rem; }
  .reviews-track { animation: scrollReviews 20s linear infinite; }
}

/* Dashboard Styles */
.dashboard-mode-btn.active {
  background: rgba(56, 189, 248, 0.2) !important;
  border-color: rgba(56, 189, 248, 0.3) !important;
  color: #38bdf8 !important;
}

/* Footer mobile alignment */
@media (max-width: 768px) {
  footer ul {
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  footer ul li,
  footer ul li a {
    display: flex;
    align-items: center;
    justify-content: center;
  }

  footer h3 {
    justify-content: center;
  }
}
/* Final footer mobile centering fix */
@media (max-width: 768px) {
  footer ul {
    align-items: center;
  }

  footer ul li {
    width: fit-content;
    margin-left: auto;
    margin-right: auto;
  }

  footer ul li a {
    justify-content: center;
    text-align: center;
  }
}
.dashboard-card {
  transition: all 0.3s ease;
  border: 1px solid rgba(56, 189, 248, 0.2);
}

.dashboard-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  border-color: rgba(56, 189, 248, 0.4) !important;
}

.chart-time-btn.active {
  background: rgba(56, 189, 248, 0.2) !important;
  color: #38bdf8 !important;
}

.chart-container {
  position: relative;
  width: 100%;
  height: 300px;
}

.map-container { position: relative; }
.hotspot-item { transition: all 0.3s ease; }
.hotspot-item:hover {
  background: rgba(55, 65, 81, 0.7) !important;
  transform: translateX(5px);
}

/* Animation for live indicators */
@keyframes pulse {
  0% { opacity: 1; }
  50% { opacity: 0.5; }
  100% { opacity: 1; }
}

.animate-pulse { animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite; }

/* Loading indicators for dashboard */
.dashboard-loader { display: flex; align-items: center; justify-content: center; }
.chart-loader { display: flex; align-items: center; justify-content: center; }

/* Spin animation for loading indicators */
@keyframes spin { to { transform: rotate(360deg); } }
.animate-spin { animation: spin 1s linear infinite; }

/* Responsive dashboard */
@media (max-width: 1024px) {
  .dashboard-card { min-width: 300px; }
}

@media (max-width: 768px) {
  .dashboard-grid { grid-template-columns: 1fr !important; }
  .map-container { order: 2; }
  .map-info { order: 1; }
}

/* ============================= */
/* EcoPulse - Feature Cards */
/* ============================= */
.ecopulse-card {
  border: 1px solid #374151;
  /* gray-700 */
  border-radius: 0.75rem;
  /* rounded-xl */
  padding: 1.5rem;
  /* p-6 */
  background-color: rgba(17, 24, 39, 0.6);
  /* gray-900 with opacity */
  backdrop-filter: blur(6px);
  transition: all 0.3s ease;
}

.ecopulse-card:hover {
  border-color: #3b82f6;
  /* eco blue */
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
  transform: translateY(-6px);
}
/* ===============================
   MISSING KEYFRAMES
================================ */
@keyframes slowZoom {
  0%   { transform: scale(1);    }
  100% { transform: scale(1.12); }
}

@keyframes floatUp {
  0%   { background-position: 0 0; }
  100% { background-position: 0 -200px; }
}

@keyframes spinSlow {
  from { transform: translateY(-50%) rotate(0deg); }
  to   { transform: translateY(-50%) rotate(360deg); }
}

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

/* ===============================
   HERO ANIMATION CLASSES
================================ */
.hero-load {
  opacity: 0;
  animation: heroFadeUp 0.7s ease forwards;
}
.hero-delay-1 { animation-delay: 0.15s; }
.hero-delay-2 { animation-delay: 0.3s;  }
.hero-delay-3 { animation-delay: 0.45s; }
.hero-delay-4 { animation-delay: 0.6s;  }
.hero-delay-5 { animation-delay: 0.75s; }
.hero-delay-6 { animation-delay: 0.9s;  }

/* Hero scroll indicator */
.hero-scroll {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255,255,255,0.5);
  z-index: 3;
  cursor: pointer;
  transition: opacity 0.3s;
}
.hero-scroll:hover { opacity: 0.75; }

/* Hero tags */
.hero-tags {
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  color: rgba(255,255,255,0.45);
  margin-top: 20px;
  text-transform: uppercase;
}

/* Precaution buttons in hero-bg — hide floating layer */
.precaution-buttons {
  display: none;
}

/* ===============================
   BUTTON STYLES
================================ */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 28px;
  background: linear-gradient(135deg, #10B981, #3B82F6);
  color: #fff;
  font-weight: 700;
  font-size: 1rem;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
  box-shadow: 0 8px 24px rgba(16, 185, 129, 0.35);
  letter-spacing: 0.01em;
}
.btn-primary:hover {
  transform: translateY(-2px) scale(1.03);
  box-shadow: 0 14px 36px rgba(16, 185, 129, 0.5);
  opacity: 0.95;
}

.btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 11px 26px;
  background: transparent;
  color: #e2e8f0;
  font-weight: 600;
  font-size: 1rem;
  border-radius: 999px;
  border: 1.5px solid rgba(255,255,255,0.28);
  cursor: pointer;
  text-decoration: none;
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
  backdrop-filter: blur(6px);
}
.btn-outline:hover {
  background: rgba(255,255,255,0.1);
  border-color: rgba(255,255,255,0.5);
  transform: translateY(-2px);
}

/* AI prediction button */
.btn-ai {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 13px 32px;
  border-radius: 999px;
  background: linear-gradient(135deg, #7C3AED, #4F46E5);
  border: 1px solid rgba(139, 92, 246, 0.5);
  color: #fff;
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  text-decoration: none;
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  box-shadow: 0 8px 28px rgba(124, 58, 237, 0.4);
  letter-spacing: 0.01em;
}
.btn-ai::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.12), transparent);
  opacity: 0;
  transition: opacity 0.3s;
}
.btn-ai:hover::before { opacity: 1; }
.btn-ai:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 16px 40px rgba(124, 58, 237, 0.6);
}
.btn-ai-glow {
  position: absolute;
  inset: -2px;
  border-radius: inherit;
  background: conic-gradient(from 0deg, #7C3AED, #38bdf8, #10B981, #7C3AED);
  opacity: 0;
  transition: opacity 0.35s;
  z-index: -1;
  filter: blur(8px);
}
.btn-ai:hover .btn-ai-glow { opacity: 0.7; }
.btn-ai-text { position: relative; z-index: 1; }

/* ===============================
   SKIP LINK (ACCESSIBILITY)
================================ */
.skip-link {
  position: absolute;
  top: -40px;
  left: 0;
  background: #10B981;
  color: #fff;
  padding: 8px 16px;
  z-index: 10000;
  font-weight: 700;
  transition: top 0.2s;
}
.skip-link:focus { top: 0; }

/* ===============================
   SCROLL TO TOP BUTTON
================================ */
.scroll-to-top {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease;
  z-index: 1000;
  border-radius: 50%;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #10B981, #3B82F6);
  box-shadow: 0 8px 20px rgba(16,185,129,0.4);
  color: #fff;
  border: none;
  cursor: pointer;
}
.scroll-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.scroll-to-top:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 28px rgba(16,185,129,0.55);
}

/* ===============================
   REVIEWS SECTION
================================ */
.reviews-section {
  padding: 5rem 0;
  background: linear-gradient(180deg, #0f172a, #111827);
  overflow: hidden;
  border-top: 1px solid rgba(55,65,81,0.6);
  border-bottom: 1px solid rgba(55,65,81,0.6);
}

.reviews-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 1.5rem;
  overflow: hidden;
}

/* ===============================
   SECTION HEADING GRADIENT
================================ */
.section-heading {
  background: linear-gradient(90deg, #f8fafc, #94a3b8);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ===============================
   STAT ITEM ENHANCEMENT
================================ */
.stat-item {
  position: relative;
  padding: 2rem 1.5rem;
  border-radius: 1.5rem;
  background: rgba(17,24,39,0.5);
  border: 1px solid rgba(55,65,81,0.5);
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
  backdrop-filter: blur(8px);
}
.stat-item:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 40px rgba(0,0,0,0.4);
  border-color: rgba(56,189,248,0.25);
}

/* ===============================
   TOPIC CARD GRID ENHANCEMENT
================================ */
@media (max-width: 640px) {
  .hero-glass { padding: 28px 18px; }
  .hero-glass h1 { font-size: 2.2rem; }
  .btn-primary, .btn-outline, .btn-ai { font-size: 0.9rem; padding: 10px 20px; }
}

/* ===============================
   LIGHT THEME BUTTON OVERRIDES
================================ */
[data-theme="light"] .btn-outline {
  color: #0f172a;
  border-color: rgba(15,23,42,0.3);
}
[data-theme="light"] .btn-outline:hover {
  background: rgba(15,23,42,0.08);
  border-color: rgba(15,23,42,0.5);
}
[data-theme="light"] .hero-tags { color: rgba(15,23,42,0.5); }

/* ===============================
   CURSOR DOT
================================ */
.cursor-dot {
  position: fixed;
  border-radius: 50%;
  pointer-events: none;
  transform: translate(-50%, -50%);
  background-color: #aea4e4;
}

/* Size gradually decreases */
.cursor-dot:nth-child(1) { width: 17px; height: 17px; }
.cursor-dot:nth-child(2) { width: 16px; height: 16px; }
.cursor-dot:nth-child(3) { width: 14px; height: 14px; }
.cursor-dot:nth-child(4) { width: 12px; height: 12px; }
.cursor-dot:nth-child(5) { width: 11px; height: 11px; }
.cursor-dot:nth-child(6) { width: 10px; height: 10px; }
.cursor-dot:nth-child(7) { width: 9px;  height: 9px;  }
.cursor-dot:nth-child(8) { width: 8px;  height: 8px;  }


.explore-link {
  position: relative;
  gap: 6px;
  transition: color 0.3s ease, transform 0.3s ease;
}

.explore-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 0%;
  height: 2px;
  background: currentColor;
  transition: width 0.3s ease;
  opacity: 0.8;
}

.group:hover .explore-link,
.explore-link:focus-visible {
  transform: translateX(6px);
}

.group:hover .explore-link::after,
.explore-link:focus-visible::after {
  width: 100%;
}

.explore-link svg {
  transition: transform 0.3s ease;
}

.group:hover .explore-link svg,
.explore-link:focus-visible svg {
  transform: translateX(4px);
}

.explore-link:focus-visible {
  outline: none;
}

/* ===============================
   Mobile Hero Text Readability
   (Level 1 Enhancement)

@media (max-width: 640px) {
  .hero-glass h1 {
    line-height: 1.25;        /* More breathing space */
    margin-bottom: 28px;      /* Separate heading & text */
  }

  .hero-glass p {
    line-height: 1.75;        /* Improved paragraph readability */
    margin-bottom: 40px;      /* Better spacing before buttons */
    font-size: 1.05rem;       /* Slightly more comfortable size */
  }

  .hero-actions {
    margin-top: 12px;
  }
}
/* --- NEW UI ENHANCEMENTS --- */
@keyframes brand-pulse-glow {
  0% { transform: scale(1); filter: drop-shadow(0 0 0px rgba(56, 189, 248, 0)); }
  50% { transform: scale(1.05); filter: drop-shadow(0 0 10px rgba(56, 189, 248, 0.5)); }
  100% { transform: scale(1); filter: drop-shadow(0 0 0px rgba(56, 189, 248, 0)); }
}

.pulse-element { animation: brand-pulse-glow 2.5s infinite ease-in-out; }

/* Dynamic AQI Border/Background Classes */
.aqi-status-good { border-left: 5px solid #10B981 !important; background: rgba(16, 185, 129, 0.08) !important; }
.aqi-status-moderate { border-left: 5px solid #FBBF24 !important; background: rgba(251, 191, 36, 0.08) !important; }
.aqi-status-unhealthy { border-left: 5px solid #F97316 !important; background: rgba(249, 115, 22, 0.08) !important; }
.aqi-status-hazardous { border-left: 5px solid #8B5CF6 !important; background: rgba(139, 92, 246, 0.08) !important; }

/*Offline Implementation*/

#network-status {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  padding: 10px;
  text-align: center;
  font-size: 14px;
  font-weight: 500;
  z-index: 9999;
  display: none;
}

#network-status.offline {
  background: #dc2626;
  color: white;
  display: block;
}

#network-status.online {
  background: #16a34a;
  color: white;
  display: block;
}

/* Cursor Glow Effect */
#cursor-glow {
  position: fixed;
  top: 0;
  left: 0;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  background: radial-gradient(
    circle,
    rgba(59, 130, 246, 0.35) 0%,
    rgba(16, 185, 129, 0.25) 40%,
    rgba(0, 0, 0, 0) 70%
  );
  transform: translate(-50%, -50%);
  filter: blur(12px);
  opacity: 0;
  transition: opacity 0.2s ease;
}

/* ===============================
   HERO LAYOUT LOCK
================================ */
#home.hero-section {
  min-height: 100svh;
  justify-content: flex-start;
}

#home.hero-section .hero-rings {
  display: none;
}

#home.hero-section .hero-bg {
  background:
    radial-gradient(circle at 78% 44%, rgba(56, 189, 248, 0.2), rgba(15, 23, 42, 0) 44%),
    radial-gradient(circle at 22% 12%, rgba(56, 189, 248, 0.09), rgba(15, 23, 42, 0) 36%),
    #020617;
}

#home.hero-section .hero-earth {
  position: absolute;
  width: clamp(520px, 54vw, 860px);
  height: clamp(520px, 54vw, 860px);
  top: 50%;
  right: clamp(-230px, -12vw, -40px);
  bottom: auto;
  left: auto;
  border-radius: 50%;
  background-image: url("https://images.unsplash.com/photo-1614730321146-b6fa6a46bcb4?auto=format&fit=crop&w=1800&q=80");
  background-size: cover;
  background-position: center;
  transform: translateY(-50%);
  opacity: 0.9;
  filter: saturate(1.1) brightness(1.04);
  box-shadow: 0 0 84px rgba(56, 189, 248, 0.4), 0 28px 80px rgba(2, 6, 23, 0.78);
  animation: earthRotateLocked 42s linear infinite;
}

#home.hero-section .hero-vignette {
  background:
    linear-gradient(90deg, rgba(2, 6, 23, 0.97) 0%, rgba(2, 6, 23, 0.8) 37%, rgba(2, 6, 23, 0.2) 66%, rgba(2, 6, 23, 0.88) 100%),
    radial-gradient(circle at 80% 50%, rgba(2, 6, 23, 0.1) 15%, rgba(2, 6, 23, 0.9) 82%);
}

#home.hero-section .hero-content {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 clamp(16px, 4vw, 56px);
  display: flex;
  justify-content: flex-start;
}

#home.hero-section .hero-glass {
  position: relative;
  width: min(740px, 100%);
  margin-left: 0;
  margin-right: auto;
  text-align: left;
  padding: 44px 52px 40px;
  background: transparent;
  border: none;
  border-left: 3px solid rgba(52, 211, 153, 0.45);
  border-radius: 0;
  box-shadow: none;
  backdrop-filter: none;
  overflow: visible;
  padding-left: 36px;
}

#home.hero-section .hero-glass::before {
  display: none;
}

.hero-live-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 14px;
  margin-bottom: 20px;
  border-radius: 999px;
  border: 1px solid rgba(52, 211, 153, 0.35);
  background: rgba(52, 211, 153, 0.09);
  color: #6ee7b7;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.hero-live-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #34d399;
  box-shadow: 0 0 0 0 rgba(52, 211, 153, 0.6);
  animation: livePulse 2s ease-in-out infinite;
}

@keyframes livePulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(52, 211, 153, 0.6); }
  50%       { box-shadow: 0 0 0 5px rgba(52, 211, 153, 0); }
}

.hero-stats-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin: 20px 0 24px;
  max-width: 580px;
}

.hero-stat-chip {
  padding: 10px 12px;
  border-radius: 14px;
  background: rgba(15, 23, 42, 0.38);
  border: 1px solid rgba(148, 163, 184, 0.13);
  transition: border-color 0.25s, background 0.25s;
}
.hero-stat-chip:hover {
  background: rgba(15, 23, 42, 0.6);
  border-color: rgba(52, 211, 153, 0.3);
}
.hero-stat-chip strong {
  display: block;
  font-size: 1.3rem;
  font-weight: 800;
  background: linear-gradient(90deg, #34d399, #38bdf8);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-stat-chip span {
  display: block;
  font-size: 0.78rem;
  color: #94a3b8;
  margin-top: 2px;
}

.hero-divider {
  height: 1px;
  background: linear-gradient(90deg, rgba(52, 211, 153, 0.3), rgba(56, 189, 248, 0.2), rgba(148, 163, 184, 0.08));
  margin: 4px 0 24px;
  border: none;
}

@media (max-width: 768px) {
  .hero-stats-strip { grid-template-columns: repeat(3, 1fr); gap: 8px; }
  .hero-stat-chip { padding: 8px 10px; }
  .hero-stat-chip strong { font-size: 1.1rem; }
  #home.hero-section .hero-glass {
    padding: 32px 0 28px;
    border-left: 3px solid rgba(52, 211, 153, 0.4);
    padding-left: 22px;
  }
}

#home.hero-section .hero-glass p,
#home.hero-section .hero-tags,
#home.hero-section .hero-actions,
#home.hero-section .hero-load.hero-delay-5.mt-5 {
  justify-content: flex-start;
  text-align: left;
}

@keyframes earthRotateLocked {
  from {
    transform: translateY(-50%) rotate(0deg);
  }
  to {
    transform: translateY(-50%) rotate(360deg);
  }
}

@media (max-width: 768px) {
  #home.hero-section {
    justify-content: center;
  }

  #home.hero-section .hero-earth {
    width: 360px;
    height: 360px;
    right: 50%;
    top: 26%;
    transform: translate(50%, -50%);
    opacity: 0.72;
    animation: earthRotateLockedMobile 42s linear infinite;
  }

  #home.hero-section .hero-content {
    display: block;
  }

  #home.hero-section .hero-glass {
    text-align: center;
    padding: 28px 18px;
  }

  #home.hero-section .hero-glass p,
  #home.hero-section .hero-tags,
  #home.hero-section .hero-actions,
  #home.hero-section .hero-load.hero-delay-5.mt-5 {
    justify-content: center;
    text-align: center;
  }
}

@keyframes earthRotateLockedMobile {
  from {
    transform: translate(50%, -50%) rotate(0deg);
  }
  to {
    transform: translate(50%, -50%) rotate(360deg);
  }
}
