/* ===========================================
   MAIN STYLESHEET - Environment Animal Safety Hub
   ===========================================
   Global CSS variables, base styles, components, and responsive design
   =========================================== */

/* ===========================================
   CSS CUSTOM PROPERTIES (VARIABLES)
   =========================================== */

:root {
  /* Primary Colors */
  --primary-color: #2e7d32;
  --primary-dark: #1b5e20;
  --primary-light: #4caf50;

  /* Secondary Colors */
  --secondary-color: #ff9800;
  --secondary-dark: #f57c00;

  /* Accent Colors */
  --accent-color: #00bcd4;

  /* Text Colors */
  --text-light: #ffffff;

  /* Background Colors */
  --bg-dark: #1a1a2e;

  /* Border Colors */
  --border-color: #e0e0e0;
  --border-dark: #2d3748;

  /* Shadow Colors */
  --shadow-color: rgba(0, 0, 0, 0.1);
  --shadow-dark: rgba(0, 0, 0, 0.3);

  /* Border Radius */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-xl: 30px;
  --radius-full: 50%;

  /* Transitions */
  --transition-fast: 0.2s ease;
  --transition-normal: 0.3s ease;
  --transition-slow: 0.5s ease;

  /* Spacing */
  --section-padding: 100px 0;
  --container-padding: 0 20px;

  /* Typography */
  --font-primary: "Poppins", sans-serif;
  --base-font-size: 16px;

  /* Gradients */
  --gradient-primary: linear-gradient(135deg, #2e7d32, #4caf50);
  --gradient-secondary: linear-gradient(135deg, #ff9800, #ff5722);

  /* Shadows */
  --shadow-green: 0 10px 30px rgba(46, 125, 50, 0.2);
  --shadow-md: 0 5px 15px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 15px 35px rgba(0, 0, 0, 0.1);
}

/* Dark Theme Variables */
[data-theme="dark"] {
  --primary-color: #4ade80;
  --primary-dark: #22c55e;
  --primary-light: #86efac;
  --secondary-color: #fbbf24;
  --secondary-dark: #f59e0b;
  --accent-color: #38bdf8;
  --bg-dark: #020617;
  --border-color: #475569;
  --border-dark: #64748b;
  --shadow-color: rgba(0, 0, 0, 0.3);
  --shadow-dark: rgba(0, 0, 0, 0.5);
  --gradient-primary: linear-gradient(135deg, #22c55e, #16a34a);
  --gradient-secondary: linear-gradient(135deg, #f59e0b, #ea580c);
  --shadow-green: 0 10px 30px rgba(34, 197, 94, 0.3);
  --shadow-md: 0 5px 15px rgba(0, 0, 0, 0.3);
  --shadow-lg: 0 15px 35px rgba(0, 0, 0, 0.4);
}

/* ===========================================
   GLOBAL STYLES & RESET
   =========================================== */

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

body {
  font-family: var(--font-primary);
  font-size: var(--base-font-size, 16px);
  line-height: 1.6;
  color: var(--text-color);
  background-color: var(--bg-color);
  overflow-x: hidden;
  transition: background-color 0.4s ease, color 0.4s ease;
  min-height: 100vh;
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition-normal);
}

ul {
  list-style: none;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  outline: none;
  background: none;
}

input,
textarea,
select {
  font-family: inherit;
  font-size: inherit;
}

/* ===========================================
   LAYOUT & CONTAINERS
   =========================================== */

.section-container {
  max-width: 1300px;
  margin: 0 auto;
  padding: var(--container-padding);
}

.section-header {
  text-align: center;
  margin-bottom: 60px;
}

.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 20px;
  background: var(--bg-tertiary);
  color: var(--primary-color);
  border-radius: var(--radius-xl);
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 15px;
  border: 1px solid var(--border-color);
}

.section-tag i {
  font-size: 0.85rem;
}

.section-title {
  font-size: 2.8rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 15px;
  line-height: 1.2;
}

.section-subtitle {
  font-size: 1.1rem;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto;
}

.gradient-text {
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ===========================================
   BUTTON STYLES
   =========================================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 32px;
  font-size: 1rem;
  font-weight: 600;
  border-radius: var(--radius-md);
  transition: var(--transition-normal);
  cursor: pointer;
  border: 2px solid transparent;
  min-height: 44px;
  min-width: 44px;
}

.btn-primary {
  background: var(--gradient-primary);
  color: var(--text-light);
  box-shadow: var(--shadow-green);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 50px rgba(46, 125, 50, 0.4);
}

[data-theme="dark"] .btn-primary:hover {
  box-shadow: 0 15px 50px rgba(34, 197, 94, 0.4);
}

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

.btn-secondary:hover {
  background: var(--primary-color);
  color: var(--text-light);
}

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

.btn-outline:hover {
  background: var(--primary-color);
  color: var(--text-light);
}

.btn-lg {
  padding: 18px 40px;
  font-size: 1.1rem;
}

.btn-block {
  width: 100%;
}

/* ===========================================
   ANIMATIONS & KEYFRAMES
   =========================================== */

@keyframes float {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-20px);
  }
}

@keyframes pulse {

  0%,
  100% {
    transform: scale(1);
    opacity: 1;
  }

  50% {
    transform: scale(1.05);
    opacity: 0.8;
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-50px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(50px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes spin {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(360deg);
  }
}

@keyframes bounce {

  0%,
  20%,
  50%,
  80%,
  100% {
    transform: translateY(0);
  }

  40% {
    transform: translateY(-15px);
  }

  60% {
    transform: translateY(-7px);
  }
}

/* ===========================================
   UTILITY COMPONENTS
   =========================================== */

.back-to-top {
  position: fixed;
  bottom: 90px;
  right: 30px;
  width: 50px;
  height: 50px;
  background: var(--gradient-primary);
  color: var(--text-light);
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  box-shadow: var(--shadow-green);
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: var(--transition-normal);
  z-index: 999;
  border: none;
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 40px rgba(125, 124, 46, 0.5);
}

::selection {
  background: var(--primary-color);
  color: var(--text-light);
}

/* ===========================================
   ECO CARDS COMPONENT
   =========================================== */

.eco-card-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.8rem;
  padding: 2rem;
}

.eco-card {
  background: var(--bg-card);
  border-radius: 18px;
  padding: 1.6rem;
  text-align: center;
  position: relative;
  overflow: hidden;
  box-shadow: 0 8px 18px var(--shadow-color);
  transition: transform 0.35s ease, box-shadow 0.35s ease;
  cursor: pointer;
  border: 1px solid var(--border-color);
}

.eco-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at top, rgba(76, 175, 80, 0.15), transparent 65%);
  opacity: 0;
  transition: opacity 0.35s ease;
}

[data-theme="dark"] .eco-card::before {
  background: radial-gradient(circle at top, rgba(74, 222, 128, 0.2), transparent 65%);
}

.eco-card:hover {
  transform: translateY(-10px) scale(1.02);
  box-shadow: 0 16px 35px var(--shadow-dark);
}

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

.eco-card .eco-icon {
  font-size: 3rem;
  margin-bottom: 0.6rem;
}

.eco-card h3 {
  font-size: 1.3rem;
  color: var(--primary-color);
  margin-bottom: 0.5rem;
  font-weight: 600;
}

.eco-card p {
  font-size: 1rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

@media (prefers-reduced-motion: reduce) {
  .eco-card {
    transition: none;
  }
}

@media (max-width: 480px) {
  .eco-card {
    padding: 1.3rem;
  }

  .eco-card h3 {
    font-size: 1.15rem;
  }

  .eco-card p {
    font-size: 0.95rem;
  }
}

/* ===========================================
   ECO CHALLENGES SECTION
   =========================================== */

/* Eco Challenges Section */
.eco-challenges-section {
  padding: 80px 0;
  background: var(--bg-secondary);
}

/* GRID LAYOUT */
.eco-challenges-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 40px;
}

/* Tablet */
@media (max-width: 1024px) {
  .eco-challenges-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Mobile */
@media (max-width: 600px) {
  .eco-challenges-grid {
    grid-template-columns: 1fr;
  }
}

/* CARD */
.eco-challenge-card {
  background: var(--bg-card);
  border-radius: 16px;
  padding: 30px 24px;
  text-align: center;
  box-shadow: var(--shadow-md);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid var(--border-color);
}

.eco-challenge-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

/* ICON WRAPPER */
.challenge-icon-3d {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 16px;
}

.challenge-icon-3d img {
  width: 56px;
  height: auto;
}

.challenge-icon-3d i {
  font-size: 42px;
  color: var(--primary-color);
}

/* TEXT */
.eco-challenge-card h3 {
  font-size: 20px;
  margin-bottom: 10px;
  color: var(--text-primary);
}

.eco-challenge-card p {
  font-size: 14px;
  color: var(--text-secondary);
  margin-bottom: 20px;
}

/* BUTTON */
.challenge-btn {
  background: var(--primary-color);
  color: var(--text-light);
  border: none;
  padding: 10px 18px;
  border-radius: 20px;
  cursor: pointer;
  font-size: 14px;
  transition: background 0.3s ease, transform 0.2s ease;
  min-height: 44px;
  min-width: 44px;
}

.challenge-btn:hover {
  background: var(--primary-dark);
  transform: scale(1.05);
}

.challenge-btn.completed {
  background: var(--text-muted);
  cursor: default;
}

[data-theme="dark"] .challenge-btn.completed {
  background: #475569;
}

/* ===========================================
   CARBON CALCULATOR SECTION
   =========================================== */

.carbon-section {
  padding: var(--section-padding);
  background: var(--bg-secondary);
  position: relative;
  overflow: hidden;
}

.carbon-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(76, 175, 80, 0.05) 0%, rgba(33, 150, 243, 0.05) 100%);
  pointer-events: none;
}

[data-theme="dark"] .carbon-section::before {
  background: linear-gradient(135deg, rgba(74, 222, 128, 0.1) 0%, rgba(56, 189, 248, 0.1) 100%);
}

.carbon-form {
  max-width: 600px;
  margin: 0 auto;
  background: var(--bg-card);
  padding: 40px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  position: relative;
  z-index: 1;
  border: 1px solid var(--border-color);
}

.carbon-form .form-group {
  margin-bottom: 30px;
}

.carbon-form label {
  display: block;
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.carbon-form label i {
  color: var(--primary-color);
  font-size: 1.1rem;
}

.carbon-form select {
  width: 100%;
  padding: 14px 18px;
  border: 2px solid var(--border-color);
  border-radius: var(--radius-md);
  background: var(--bg-input);
  color: var(--text-primary);
  font-size: 1rem;
  transition: var(--transition-normal);
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23666' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6,9 12,15 18,9'%3e%3c/polyline%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right 15px center;
  background-size: 16px;
  padding-right: 45px;
}

[data-theme="dark"] .carbon-form select {
  background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23cbd5e1' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6,9 12,15 18,9'%3e%3c/polyline%3e%3c/svg%3e");
}

.carbon-form select:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(76, 175, 80, 0.1);
}

[data-theme="dark"] .carbon-form select:focus {
  box-shadow: 0 0 0 3px rgba(74, 222, 128, 0.2);
}

.carbon-form select:hover {
  border-color: var(--primary-color);
}

.carbon-form .btn {
  width: 100%;
  padding: 16px 32px;
  font-size: 1.1rem;
  font-weight: 700;
  margin-top: 20px;
  position: relative;
  overflow: hidden;
}

.carbon-form .btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.5s;
}

.carbon-form .btn:hover::before {
  left: 100%;
}

.carbon-result {
  max-width: 600px;
  margin: 40px auto 0;
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  padding: 30px;
  box-shadow: var(--shadow-lg);
  text-align: center;
  position: relative;
  z-index: 1;
  border: 2px solid transparent;
  transition: var(--transition-normal);
}

.carbon-result.success {
  border-color: var(--primary-color);
  background: linear-gradient(135deg, var(--bg-card) 0%, rgba(76, 175, 80, 0.05) 100%);
}

[data-theme="dark"] .carbon-result.success {
  background: linear-gradient(135deg, var(--bg-card) 0%, rgba(74, 222, 128, 0.1) 100%);
}

.carbon-result h3 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.carbon-result h3 i {
  font-size: 1.3rem;
}

.carbon-result p {
  font-size: 1.1rem;
  color: var(--text-primary);
  margin-bottom: 20px;
  font-weight: 500;
}

.carbon-result ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.carbon-result li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--border-color);
  color: var(--text-secondary);
  text-align: left;
}

.carbon-result li:last-child {
  border-bottom: none;
}

.carbon-result li i {
  color: var(--primary-color);
  font-size: 1rem;
  margin-top: 2px;
  flex-shrink: 0;
}

.carbon-result li strong {
  color: var(--text-primary);
  font-weight: 600;
}

/* ===========================================
   MYTH VS FACT SECTION
   =========================================== */

.myth-fact-section {
  padding: 80px 20px;
  background-color: var(--bg-secondary);
  font-family: 'Segoe UI', Tahoma, sans-serif;
}

.myth-fact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 25px;
  padding: 10px;
}

.myth-card-wrapper {
  height: 320px;
  perspective: 1000px;
}

.myth-card {
  width: 100%;
  height: 100%;
  position: relative;
  transform-style: preserve-3d;
  /* Essential for 3D effect */
  transition: transform 0.6s cubic-bezier(0.4, 0.2, 0.2, 1);
  cursor: pointer;
  border-radius: 22px;
  box-shadow: var(--shadow-lg);
}

/* =========================================
   2. THE FLIP ACTION (CRITICAL FIX)
   ========================================= */
.myth-card.flipped {
  /* Only rotate. Do NOT add translateY here. */
  transform: rotateY(180deg);
}

/* =========================================
   3. CARD FACES (CRITICAL FIX)
   ========================================= */
.card-face {
  position: absolute;
  top: 0;
  /* Pins face to top of card */
  left: 0;
  /* Pins face to left of card */
  width: 100%;
  /* Must be 100% to fill the parent */
  height: 100%;
  /* Must be 100% to fill the parent */

  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  border-radius: 22px;

  /* Flexbox for centering content */
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  color: white;
  box-shadow: 0 10px 25px var(--shadow-color);
  overflow: hidden;
}

/* =========================================
   4. FRONT & BACK SPECIFICS
   ========================================= */
.card-front {
  background: linear-gradient(135deg, #e65100 0%, #f57c00 100%);
  z-index: 2;
  /* Ensures front sits on top initially */
}

.card-back {
  background: linear-gradient(135deg, #2e7d32 0%, #66bb6a 100%);
  /* Rotate 180deg so it faces away initially. 
     Do NOT add translateY here. */
  transform: rotateY(180deg);
}

.icon-box {
  font-size: 2.5rem;
  margin-bottom: 15px;
  animation: float 3s ease-in-out infinite;
}

@keyframes float {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-8px);
  }
}

.myth-card h3 {
  font-size: 0.85rem;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 3px;
  font-weight: 800;
  opacity: 0.8;
  margin-bottom: 15px;
  color: rgba(255, 255, 255, 0.9);
}

.myth-card p {
  font-size: 1.1rem;
  font-weight: 700;
  line-height: 1.4;
  margin-bottom: 20px;
  color: white;
}

.action-pill {
  font-size: 0.8rem;
  background: rgba(255, 255, 255, 0.25);
  padding: 8px 16px;
  color: white;
  border-radius: 20px;
  backdrop-filter: blur(4px);
  font-weight: 600;
  transition: 0.3s;
}

.myth-card-wrapper:hover .action-pill {
  background: white;
  color: #2c3e50;
}

.card-shine {
  position: absolute;
  top: 0;

  width: 50%;
  height: 100%;
  background: linear-gradient(to right, transparent, rgba(255, 255, 255, 0.3), transparent);
  transform: skewX(-25deg);
  transition: 0.5s;
}



/* ===========================================
   GARDEN GAME COMPONENT
   =========================================== */

.garden-game {
  background-image: url("https://images.unsplash.com/photo-1601654253194-260e0b6984f9?q=80&w=1999&auto=format&fit=crop&ixlib=rb-4.1.0&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D");
  background-size: cover;
  background-position: center;
  border: 2px solid #000000;
  width: 90%;
  max-width: 1200px;
  border-radius: 30px;
  text-align: center;
  margin: 40px auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 500px;
  overflow: hidden;
}

.garden-game h2 {
  background: rgba(13, 47, 16, 0.4);
  width: fit-content;
  text-align: center;
  padding: 30px 30px;
  font-size: 2.5rem;
  color: rgba(253, 253, 253, 0.9);
  border-radius: 20px;
  border: 2px solid #ffffff;
  text-shadow: 0px 0px 5px rgb(3, 210, 65);
  margin: 20px 0;
}

.garden-game p {
  width: fit-content;
  text-align: center;
  font-size: 1.2rem;
  color: rgba(255, 255, 255, 0.9);
  margin-top: 15px;
  text-shadow: 0px 0px 5px rgb(255, 255, 255);
}

.garden-game-overlay {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 30px;
  width: 100%;
  height: 100%;
  border-radius: 20px;
  background: linear-gradient(135deg, rgba(47, 85, 43, 0.823), rgba(0, 0, 0, 0.692));
}

.oxygen-meter {
  margin: 20px 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  font-size: 1.2rem;
  color: rgba(12, 227, 230, 0.9);
  margin-top: 25px;
  text-shadow: 0px 0px 5px rgb(35, 246, 249);
  width: 80%;
}

.meter-bg {
  height: 30px;
  background: var(--bg-tertiary);
  width: 100%;
  border-radius: 15px;
  overflow: hidden;
  margin-top: 10px;
}

.meter-fill {
  height: 100%;
  width: 0%;
  background: var(--primary-color);
  color: white;
  font-weight: bold;
  text-align: right;
  padding-right: 15px;
  line-height: 30px;
  transition: width 0.5s ease;
}

.plant-palette {
  display: flex;
  justify-content: center;
  gap: 20px;
  font-size: 50px;
  margin: 20px 0;
  text-shadow: 0 0 20px var(--primary-color);
  flex-wrap: wrap;
}

.plant {
  cursor: grab;
  user-select: none;
  transition: transform 0.3s;
}

.plant:hover {
  transform: scale(1.2);
}

.garden-plot {
  min-height: 220px;
  width: 80%;
  max-width: 800px;
  margin: 20px auto;
  font-weight: 700;
  background: rgba(188, 194, 185, 0.43);
  border: 2px dashed var(--primary-color);
  border-radius: 14px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  padding: 20px;
  gap: 15px;
}

.garden-plot p {
  color: var(--text-primary);
  font-size: 20px;
  margin: 0;
}

@keyframes grow {
  from {
    transform: scale(0);
    opacity: 0;
  }

  to {
    transform: scale(1);
    opacity: 1;
  }
}

/* ===========================================
   IMPACT CALCULATOR COMPONENTS
   =========================================== */

.impact-card {
  text-align: center;
  background: var(--bg-card);
  padding: 25px 20px;
  border-radius: 16px;
  min-width: 150px;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border-color);
  transition: transform 0.3s ease;
}

.impact-card:hover {
  transform: translateY(-5px);
}

.impact-card i {
  font-size: 32px;
  color: var(--primary-color);
  margin-bottom: 15px;
}

.impact-card h4 {
  color: var(--text-primary);
  margin-bottom: 10px;
  font-size: 1.1rem;
}

.impact-card p {
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.5;
}

.impact-bar {
  height: 20px;
  background: var(--primary-light);
  border-radius: 10px;
  margin-top: 10px;
  width: 0%;
  transition: width 0.7s ease;
}

.carbon-progress {
  width: 100%;
  height: 12px;
  background: var(--border-color);
  border-radius: 20px;
  margin-bottom: 25px;
  overflow: hidden;
}

.carbon-progress-bar {
  height: 100%;
  width: 0%;
  background: var(--gradient-primary);
  transition: width 0.4s ease;
}

.carbon-preview {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--bg-tertiary);
  padding: 15px 20px;
  border-radius: var(--radius-md);
  font-weight: 600;
  margin-bottom: 25px;
  color: var(--text-primary);
  border: 1px solid var(--border-color);
}

.carbon-badge {
  display: inline-block;
  padding: 8px 20px;
  border-radius: 25px;
  font-weight: 700;
  margin-bottom: 15px;
  font-size: 0.9rem;
}

.carbon-badge.low {
  background: rgba(76, 175, 80, 0.15);
  color: #2e7d32;
}

[data-theme="dark"] .carbon-badge.low {
  background: rgba(74, 222, 128, 0.2);
  color: #86efac;
}

.carbon-badge.medium {
  background: rgba(255, 152, 0, 0.15);
  color: #ef6c00;
}

[data-theme="dark"] .carbon-badge.medium {
  background: rgba(251, 191, 36, 0.2);
  color: #fbbf24;
}

.carbon-badge.high {
  background: rgba(244, 67, 54, 0.15);
  color: #c62828;
}

[data-theme="dark"] .carbon-badge.high {
  background: rgba(239, 68, 68, 0.2);
  color: #fca5a5;
}

.future-display {
  margin-top: 30px;
  padding: 30px;
  border-radius: 16px;
  font-size: 1.2rem;
  transition: 0.4s ease;
  background: var(--bg-card);
  color: var(--text-primary);
  border: 1px solid var(--border-color);
  text-align: center;
}

.survival-score {
  background: var(--bg-tertiary);
  padding: 50px 20px;
  border-radius: 18px;
  text-align: center;
  margin: 50px auto;
  max-width: 800px;
  border: 1px solid var(--border-color);
}

.score-cards {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
  margin: 30px 0;
}

.score-card {
  background: var(--bg-card);
  padding: 25px;
  border-radius: 14px;
  min-width: 200px;
  flex: 1;
  max-width: 250px;
  border: 1px solid var(--border-color);
}

.score-card span {
  color: var(--text-primary);
  font-weight: 600;
  font-size: 1.1rem;
  display: block;
  margin-bottom: 15px;
}

.bar {
  height: 25px;
  background: var(--border-color);
  border-radius: 12px;
  overflow: hidden;
  margin-top: 10px;
}

.bar div {
  height: 100%;
  width: 0%;
  background: var(--primary-color);
  color: white;
  font-weight: bold;
  font-size: 14px;
  text-align: right;
  padding-right: 10px;
  line-height: 25px;
  transition: width 0.6s ease;
}

.final-score {
  margin-top: 40px;
  padding: 20px;
  background: var(--bg-card);
  border-radius: 15px;
  border: 1px solid var(--border-color);
}

.final-score h3 {
  color: var(--text-primary);
  font-size: 1.8rem;
  margin-bottom: 10px;
}

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

/* ===========================================
   INTERACTIVE COMPONENTS
   =========================================== */

.font-size-controls {
  display: flex;
  gap: 4px;
  margin-right: 8px;
}

.font-size-btn {
  cursor: pointer;
  font-size: 0.9rem;
  padding: 8px 10px;
  border-radius: 50%;
  background: var(--bg-tertiary);
  color: var(--text-primary);
  transition: all 0.3s ease;
  border: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  font-weight: 600;
  min-height: 44px;
  min-width: 44px;
}

.font-size-btn:hover:not(.disabled) {
  background: var(--primary-color);
  color: var(--text-light);
  transform: scale(1.1);
}

.font-size-btn.disabled {
  opacity: 0.5;
  cursor: not-allowed;
  background: var(--border-color);
  color: var(--text-muted);
}

.font-size-btn i {
  font-size: 0.8rem;
}

.font-size-transitioning * {
  transition: font-size 0.3s ease !important;
}

.theme-toggle {
  cursor: pointer;
  font-size: 1.2rem;
  padding: 8px 12px;
  border-radius: 50%;
  background: var(--bg-tertiary);
  color: var(--text-primary);
  transition: all 0.3s ease;
  border: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  min-height: 44px;
  min-width: 44px;
}

.theme-toggle:hover {
  background: var(--primary-color);
  color: var(--text-light);
  transform: rotate(30deg) scale(1.1);
}

.theme-toggle i {
  transition: transform 0.3s ease;
}

[data-theme="dark"] .theme-toggle i {
  transform: rotate(180deg);
}

/* ===========================================
   CHATBOT COMPONENTS
   =========================================== */

.chatbot-container {
  width: 320px;
  position: fixed;
  bottom: 90px;
  right: 30px;
  background: var(--bg-card);
  border-radius: 16px;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  font-family: var(--font-primary);
  z-index: 1000;
  border: 1px solid var(--border-color);
}

.chat-header {
  background: var(--gradient-primary);
  color: var(--text-light);
  padding: 14px;
  text-align: center;
  font-weight: bold;
  font-size: 1rem;
}

.chat-body {
  height: 260px;
  padding: 12px;
  overflow-y: auto;
  background: var(--bg-secondary);
}

.chat-input {
  display: flex;
  padding: 10px;
  gap: 6px;
  border-top: 1px solid var(--border-color);
}

.chat-input input {
  flex: 1;
  padding: 10px 12px;
  border-radius: 8px;
  border: 1px solid var(--border-color);
  background: var(--bg-input);
  color: var(--text-primary);
  font-size: 0.9rem;
}

.chat-input input::placeholder {
  color: var(--text-muted);
}

.chat-input button {
  padding: 10px 16px;
  background: var(--primary-color);
  border: none;
  border-radius: 8px;
  color: var(--text-light);
  cursor: pointer;
  transition: 0.3s;
  font-weight: 600;
  min-height: 44px;
  min-width: 44px;
}

.chat-input button:hover {
  background: var(--primary-dark);
}

.user-message {
  background: var(--primary-color);
  color: var(--text-light);
  padding: 8px 12px;
  border-radius: 12px;
  margin: 6px 0;
  text-align: right;
  max-width: 80%;
  margin-left: auto;
  font-size: 0.9rem;
}

.bot-message {
  background: var(--bg-tertiary);
  padding: 8px 12px;
  border-radius: 12px;
  margin: 6px 0;
  color: var(--text-primary);
  max-width: 80%;
  font-size: 0.9rem;
}

/* ===========================================
   CALCULATOR CTA SECTION
   =========================================== */

.calculator-cta-section {
  display: flex;
  justify-content: center;
  padding: 80px 0;
  background: var(--bg-secondary);
  position: relative;
  overflow: hidden;
}

.calculator-cta-section::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(46, 125, 50, 0.05) 0%, transparent 70%);
  animation: float 20s ease-in-out infinite;
}

[data-theme="dark"] .calculator-cta-section::before {
  background: radial-gradient(circle, rgba(74, 222, 128, 0.1) 0%, transparent 70%);
}

.cta-content {
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

.cta-icon {
  width: 80px;
  height: 80px;
  background: var(--gradient-primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 30px;
  box-shadow: var(--shadow-green);
}

.cta-icon i {
  font-size: 2rem;
  color: white;
}

.cta-content h2 {
  font-size: 2.5rem;
  color: var(--primary-color);
  margin-bottom: 20px;
  font-weight: 700;
}

.cta-content p {
  font-size: 1.2rem;
  color: var(--text-secondary);
  margin-bottom: 40px;
  line-height: 1.6;
}

.cta-features {
  display: flex;
  justify-content: center;
  gap: 40px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}

.cta-feature {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--primary-color);
  font-weight: 600;
  font-size: 1rem;
}

.cta-feature i {
  font-size: 1.2rem;
}

/* ===========================================
   EARTH VISUALIZATION COMPONENT
   =========================================== */

.earth-wrapper {
  text-align: center;
  padding: 60px 20px;
  background: var(--bg-secondary);
  border-radius: 20px;
  margin: 50px auto;
  max-width: 500px;
  border: 1px solid var(--border-color);
}

.earth-wrapper h2 {
  color: var(--text-primary);
  margin-bottom: 20px;
}

#earthText {
  color: var(--text-secondary);
  margin-bottom: 30px;
  font-size: 1.1rem;
}

.earth-container {
  position: relative;
  height: 220px;
  margin: 30px auto;
  width: 220px;
}

.earth {
  font-size: 110px;
  position: relative;
  z-index: 2;
  transition: transform 0.6s ease;
  line-height: 1;
}

.sun-rays {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle, rgba(255, 215, 0, 0.4) 20%, transparent 70%);
  opacity: 0;
  animation: spin 8s linear infinite;
  border-radius: 50%;
}

.rain {
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(transparent, transparent 8px, rgba(0, 0, 255, 0.4) 10px);
  opacity: 0;
  animation: rainFall 0.6s linear infinite;
  border-radius: 50%;
}

.cracks {
  position: absolute;
  inset: 0;
  background: url("https://i.imgur.com/JqeuJ6t.png") center/contain no-repeat;
  opacity: 0;
}

.happy {
  filter: drop-shadow(0 0 15px var(--primary-color));
}

.sad {
  animation: shake 0.6s infinite;
  filter: drop-shadow(0 0 12px var(--accent-color));
}

.critical {
  animation: shake 0.4s infinite;
  filter: drop-shadow(0 0 15px #ef4444);
}

@keyframes shake {
  0% {
    transform: translateX(0);
  }

  25% {
    transform: translateX(-6px);
  }

  50% {
    transform: translateX(6px);
  }

  75% {
    transform: translateX(-6px);
  }

  100% {
    transform: translateX(0);
  }
}

@keyframes rainFall {
  from {
    background-position: 0 0;
  }

  to {
    background-position: 0 20px;
  }
}

.demo-controls {
  display: flex;
  gap: 10px;
  justify-content: center;
  margin-top: 30px;
  flex-wrap: wrap;
}

.demo-controls button {
  margin: 5px;
  padding: 10px 20px;
  border-radius: 8px;
  border: none;
  background: var(--primary-color);
  color: white;
  cursor: pointer;
  transition: 0.3s;
  font-weight: 600;
  min-height: 44px;
  min-width: 44px;
}

.demo-controls button:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
}

/* ===========================================
   ECOLIFE CHATBOT
   =========================================== */

.ecolife-chatbot {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 9999;
  font-family: 'Poppins', sans-serif;
}

.ecolife-chatbot .eco-toggle {
  width: 60px;
  height: 60px;
  background: var(--gradient-primary);
  border-radius: 50%;
  color: white;
  font-size: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: var(--shadow-green);
  transition: transform 0.3s ease;
  min-height: 60px;
  min-width: 60px;
}

.ecolife-chatbot .eco-toggle:hover {
  transform: scale(1.1);
}

.ecolife-chatbot .eco-chatbox {
  width: 330px;
  height: 440px;
  background: var(--bg-card);
  border-radius: 16px;
  display: none;
  flex-direction: column;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border-color);
}

.ecolife-chatbot .eco-header {
  background: var(--gradient-primary);
  color: var(--text-light);
  padding: 14px;
  font-weight: 600;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 1rem;
}

.ecolife-chatbot .eco-body {
  flex: 1;
  padding: 12px;
  overflow-y: auto;
  background: var(--bg-secondary);
}

.ecolife-chatbot .eco-bot,
.ecolife-chatbot .eco-user {
  max-width: 80%;
  padding: 10px 14px;
  margin-bottom: 10px;
  border-radius: 14px;
  font-size: 14px;
  animation: fadeIn 0.3s ease;
}

.ecolife-chatbot .eco-bot {
  background: var(--bg-tertiary);
  color: var(--text-primary);
  align-self: flex-start;
}

.ecolife-chatbot .eco-user {
  background: var(--primary-color);
  color: var(--text-light);
  align-self: flex-end;
}

.ecolife-chatbot .eco-input {
  display: flex;
  border-top: 1px solid var(--border-color);
}

.ecolife-chatbot .eco-input input {
  flex: 1;
  padding: 12px;
  background: var(--bg-input);
  color: var(--text-primary);
  border: none;
  outline: none;
  font-size: 0.9rem;
}

.ecolife-chatbot .eco-input input::placeholder {
  color: var(--text-muted);
}

.ecolife-chatbot .eco-input button {
  background: var(--primary-color);
  color: var(--text-light);
  border: none;
  padding: 0 20px;
  cursor: pointer;
  transition: 0.3s;
  font-weight: 600;
  min-height: 44px;
  min-width: 44px;
}

.ecolife-chatbot .eco-input button:hover {
  background: var(--primary-dark);
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(6px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ===========================================
   TEAM CTA SECTION
   =========================================== */

.team-cta-section {
  position: relative;
  background: url('https://images.unsplash.com/photo-1522071820081-009f0129c71c?q=80&w=2070&auto=format&fit=crop') no-repeat center center/cover;
  padding: 100px 20px;
  text-align: center;
  color: white;
  border-radius: 30px;
  margin: 40px 20px;
  overflow: hidden;
  min-height: 400px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cta-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(45deg, rgba(47, 85, 43, 0.8), rgba(0, 0, 0, 0.7));
  z-index: 1;
}

.cta-content {
  position: relative;
  z-index: 2;
  max-width: 700px;
  margin: 0 auto;
  padding: 20px;
}

.cta-tag {
  display: inline-block;
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(5px);
  padding: 8px 20px;
  border-radius: 50px;
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 20px;
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.team-cta-section h2 {
  font-size: 2.5rem;
  margin-bottom: 15px;
  color: rgb(255, 255, 255);
  font-weight: 700;
  text-shadow: 0px 0px 10px rgb(3, 232, 72);
}

.team-cta-section p {
  font-size: 1.2rem;
  margin-bottom: 35px;
  opacity: 0.9;
  color: white;
  line-height: 1.6;
}

.btn-glow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 15px 35px;
  background: white;
  color: #1b5e20;
  font-weight: 700;
  text-decoration: none;
  border-radius: 50px;
  transition: all 0.3s ease;
  box-shadow: 0 0 20px rgba(255, 255, 255, 0.3);
  min-height: 44px;
}

.btn-glow:hover {
  transform: translateY(-5px);
  box-shadow: 0 0 30px rgba(255, 255, 255, 0.6);
  background: #e8f5e9;
}

/* ===========================================
   MUSEUM PREVIEW SECTION
   =========================================== */

.museum-preview {
  padding: 4rem 10%;
  background-color: var(--bg-secondary);
  display: flex;
  justify-content: center;
}

.museum-banner {
  background: linear-gradient(135deg, #1b5e20, #2e7d32);
  width: 100%;
  border-radius: 30px;
  padding: 4rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  color: white;
  animation: museumFloat 8s ease-in-out infinite;
}

@keyframes museumFloat {

  0%,
  100% {
    transform: translateY(0px);
  }

  50% {
    transform: translateY(-10px);
  }
}

.museum-banner::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url("data:image/svg+xml,%3Csvg width='20' height='20' viewBox='0 0 20 20' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%23ffffff' fill-opacity='0.05' fill-rule='evenodd'%3E%3Ccircle cx='3' cy='3' r='3'/%3E%3Ccircle cx='13' cy='13' r='3'/%3E%3C/g%3E%3C/svg%3E");
  opacity: 0.3;
}

.museum-text {
  flex: 1;
  z-index: 2;
  max-width: 500px;
}

.tag {
  background: rgba(255, 255, 255, 0.2);
  padding: 8px 18px;
  border-radius: 25px;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.museum-text h2 {
  font-size: 2.5rem;
  margin: 15px 0;
  font-weight: 800;
  text-shadow: 2px 2px 4px rgba(0, 255, 21, 0.3);
  background: linear-gradient(45deg, #fff, #4ade80, #fff);
  background-size: 200% 200%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: shimmerText 3s ease-in-out infinite;
}

@keyframes shimmerText {
  0% {
    background-position: 0% 50%;
  }

  50% {
    background-position: 100% 50%;
  }

  100% {
    background-position: 0% 50%;
  }
}

.museum-text p {
  font-size: 1.1rem;
  opacity: 0.9;
  margin-bottom: 25px;
  line-height: 1.6;
}

.museum-features {
  display: flex;
  gap: 20px;
  margin-bottom: 30px;
  flex-wrap: wrap;
}

.feature-item {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.1);
  padding: 8px 15px;
  border-radius: 20px;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  font-size: 0.9rem;
  font-weight: 500;
}

.feature-item i {
  color: #4ade80;
}

.explore-btn {
  background: white;
  color: #1b5e20;
  padding: 15px 35px;
  border-radius: 30px;
  text-decoration: none;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
  position: relative;
  overflow: hidden;
  min-height: 44px;
}

.explore-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
  transition: left 0.6s;
}

.explore-btn:hover::before {
  left: 100%;
}

.explore-btn:hover {
  transform: translateY(-5px) scale(1.05);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.25);
  color: #1b5e20;
  background: #f0fdf4;
}

.museum-visuals {
  flex: 1;
  position: relative;
  height: 350px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.floating-card {
  position: absolute;
  width: 180px;
  height: 240px;
  border-radius: 20px;
  overflow: hidden;
  border: 4px solid rgba(255, 255, 255, 0.3);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease;
  cursor: pointer;
}

.floating-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.floating-card:hover img {
  transform: scale(1.1);
}

.card-label {
  position: absolute;
  bottom: 10px;
  left: 10px;
  right: 10px;
  background: rgba(0, 0, 0, 0.7);
  color: white;
  padding: 5px 10px;
  border-radius: 10px;
  font-size: 0.8rem;
  font-weight: 600;
  text-align: center;
  backdrop-filter: blur(10px);
}

.card-1 {
  transform: rotate(-8deg) translate(-40px, 20px);
  z-index: 1;
  animation: float1 6s ease-in-out infinite;
}

.card-2 {
  transform: rotate(5deg) translate(60px, -30px);
  z-index: 2;
  animation: float2 7s ease-in-out infinite;
}

.card-3 {
  transform: rotate(-3deg) translate(10px, 40px);
  z-index: 3;
  animation: float3 8s ease-in-out infinite;
}

@keyframes float1 {

  0%,
  100% {
    transform: rotate(-8deg) translate(-40px, 20px);
  }

  50% {
    transform: rotate(-6deg) translate(-40px, 0px);
  }
}

@keyframes float2 {

  0%,
  100% {
    transform: rotate(5deg) translate(60px, -30px);
  }

  50% {
    transform: rotate(7deg) translate(60px, -10px);
  }
}

@keyframes float3 {

  0%,
  100% {
    transform: rotate(-3deg) translate(10px, 40px);
  }

  50% {
    transform: rotate(-1deg) translate(10px, 20px);
  }
}

/* ===========================================
   DICTIONARY CARDS
   =========================================== */

.dict-card {
  background: var(--bg-card);
  padding: 25px;
  border-radius: 20px;
  box-shadow: var(--shadow-lg);
  transition: transform 0.3s, box-shadow 0.3s;
  cursor: pointer;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 0.6s forwards;
  border: 1px solid var(--border-color);
  min-height: 200px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.dict-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 25px 60px var(--shadow-dark);
}

.dict-card h3 {
  margin-top: 0;
  font-size: 1.3rem;
  color: var(--primary-color);
  margin-bottom: 10px;
}

.dict-card p {
  font-size: 0.95rem;
  color: var(--text-secondary);
  margin: 10px 0 0;
  line-height: 1.5;
  flex-grow: 1;
}

.category-tag {
  display: inline-block;
  padding: 5px 12px;
  background: var(--bg-tertiary);
  color: var(--primary-color);
  font-size: 0.8rem;
  font-weight: 600;
  border-radius: 15px;
  margin-top: 15px;
  border: 1px solid var(--border-color);
  align-self: flex-start;
}

@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ===========================================
   ENVIRONMENTAL ANIMATIONS
   =========================================== */

.eco-sky,
.birds-layer,
.rain-layer,
.leaves-layer,
.sun-glow {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: -1;
}

.cloud {
  position: absolute;
  top: 10%;
  width: 220px;
  height: 80px;
  background: rgba(255, 255, 255, 0.8);
  border-radius: 50px;
  filter: blur(2px);
  animation: moveClouds 80s linear infinite;
}

.cloud::before,
.cloud::after {
  content: '';
  position: absolute;
  background: inherit;
  width: 100px;
  height: 100px;
  border-radius: 50%;
  top: -40px;
}

.cloud::before {
  left: 30px;
}

.cloud::after {
  right: 30px;
}

.cloud1 {
  top: 15%;
  left: -300px;
  animation-duration: 90s;
}

.cloud2 {
  top: 30%;
  left: -400px;
  animation-duration: 110s;
}

.cloud3 {
  top: 45%;
  left: -500px;
  animation-duration: 130s;
}

@keyframes moveClouds {
  to {
    transform: translateX(120vw);
  }
}

.bird {
  position: absolute;
  font-size: 22px;
  animation: flyBird 15s linear forwards;
}

@keyframes flyBird {
  from {
    transform: translateX(-50px) translateY(0);
  }

  to {
    transform: translateX(110vw) translateY(-40px);
  }
}

.rain-drop {
  position: absolute;
  width: 2px;
  height: 18px;
  background: rgba(255, 255, 255, 0.6);
  animation: rainFall 1s linear infinite;
}

@keyframes rainFall {
  from {
    transform: translateY(-100px);
  }

  to {
    transform: translateY(110vh);
  }
}

.leaf {
  position: absolute;
  font-size: 18px;
  animation: leafFloat 12s linear infinite;
}

@keyframes leafFloat {
  0% {
    transform: translateY(-50px) rotate(0deg);
  }

  100% {
    transform: translateY(110vh) rotate(360deg);
  }
}

.sun-glow {
  background: radial-gradient(circle at top right, rgba(255, 223, 128, 0.35), transparent 60%);
  opacity: 0;
  transition: opacity 2s ease;
}

.sun-glow.active {
  opacity: 1;
}

/* ===========================================
   QUIZ SECTION
   =========================================== */

.quiz-section {
  padding: 80px 20px;
  background: var(--bg-secondary);
  display: flex;
  justify-content: center;
}

.quiz-title {
  text-align: center;
  font-size: 2.5rem;
  color: var(--primary-color);
  margin-bottom: 10px;
  font-weight: 800;
}

.quiz-subtitle {
  text-align: center;
  font-size: 1.2rem;
  color: var(--text-secondary);
  margin-bottom: 40px;
}

.quiz-card {
  max-width: 600px;
  margin: 0 auto;
  background: var(--bg-card);
  border-radius: 20px;
  padding: 30px;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border-color);
  width: 100%;
}

.quiz-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 30px;
  font-weight: 600;
  color: var(--text-primary);
  background: var(--bg-tertiary);
  padding: 15px 20px;
  border-radius: 10px;
  flex-wrap: wrap;
  gap: 10px;
}

.options {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 15px;
  margin: 30px 0;
}

.option {
  padding: 15px;
  border: 2px solid var(--border-color);
  border-radius: 10px;
  background: var(--bg-input);
  color: var(--text-primary);
  cursor: pointer;
  transition: all 0.3s;
  font-size: 1rem;
  font-weight: 500;
  min-height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.option:hover {
  background: var(--bg-tertiary);
  transform: translateY(-2px);
  border-color: var(--primary-color);
}

.option.correct {
  background: var(--primary-color);
  color: var(--text-light);
  border-color: var(--primary-dark);
}

.option.wrong {
  background: #ef4444;
  color: var(--text-light);
  border-color: #dc2626;
}

.ai-status {
  background: var(--bg-tertiary);
  padding: 15px;
  border-radius: 10px;
  margin: 20px 0;
  font-weight: 500;
  color: var(--text-primary);
  text-align: center;
}

.next-btn {
  width: 100%;
  padding: 15px;
  background: var(--gradient-primary);
  color: var(--text-light);
  border: none;
  border-radius: 10px;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s;
  min-height: 44px;
}

.next-btn:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-green);
}

/* ===========================================
   SCROLL COMPONENTS
   =========================================== */

.scroll-to-bottom {
  position: fixed;
  bottom: 90px;
  right: 25px;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  border: none;
  background: var(--gradient-primary);
  color: var(--text-light);
  font-size: 18px;
  cursor: pointer;
  box-shadow: var(--shadow-lg);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 999;
  transition: all 0.4s ease;
  animation: floatBtn 2s infinite;
  min-height: 50px;
  min-width: 50px;
}

.scroll-to-bottom:hover {
  transform: scale(1.1);
  box-shadow: 0 15px 40px var(--shadow-dark);
}

@keyframes floatBtn {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(6px);
  }
}

.scroll-to-bottom.clicked {
  animation: none;
  transform: scale(0.9);
}

/* ===========================================
   MAIN SECTIONS STYLING
   =========================================== */

/* Hero Section */
.hero-section {
  position: relative;
  padding: 120px 20px 80px;
  background: var(--bg-secondary);
  overflow: hidden;
}

.hero-container {
  max-width: 1300px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 60px;
  flex-wrap: wrap;
}

.hero-content {
  flex: 1;
  min-width: 300px;
}

.hero-title {
  font-size: 3.5rem;
  margin: 20px 0;
  color: var(--text-primary);
  line-height: 1.2;
}

.hero-subtitle {
  font-size: 1.2rem;
  color: var(--text-secondary);
  margin-bottom: 30px;
  line-height: 1.6;
}

.hero-cta {
  display: flex;
  gap: 16px;
  margin: 30px 0;
  flex-wrap: wrap;
}

.hero-image {
  flex: 1;
  min-width: 300px;
}

.hero-image-wrapper {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.hero-image-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* About Section */
.about-section {
  padding: var(--section-padding);
  background: var(--bg-primary);
}

.about-content {
  display: flex;
  gap: 60px;
  align-items: center;
  flex-wrap: wrap;
}

.about-images {
  flex: 1;
  min-width: 300px;
  position: relative;
}

.about-img-main {
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  margin-bottom: 20px;
}

.about-img-main img {
  width: 100%;
  height: 400px;
  object-fit: cover;
}

.about-text {
  flex: 1;
  min-width: 300px;
}

/* Services Section */
.services-section {
  padding: var(--section-padding);
  background: var(--bg-secondary);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.service-card {
  background: var(--bg-card);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border-color);
  transition: transform 0.3s ease;
  height: 100%;
}

.service-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-lg);
}

.service-card-front {
  padding: 30px;
  text-align: center;
}

.service-icon {
  font-size: 48px;
  color: var(--primary-color);
  margin-bottom: 20px;
}

/* Cards Section */
.cards-section {
  padding: var(--section-padding);
  background: var(--bg-primary);
}

.cards-section.alt-bg {
  background: var(--bg-secondary);
}

.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.feature-card {
  background: var(--bg-card);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border-color);
  transition: transform 0.3s ease;
  height: 100%;
}

.feature-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-lg);
}

.card-image {
  position: relative;
  height: 200px;
  overflow: hidden;
}

.card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.feature-card:hover .card-image img {
  transform: scale(1.1);
}

.card-overlay {
  position: absolute;
  top: 15px;
  left: 15px;
}

.card-tag {
  background: var(--primary-color);
  color: var(--text-light);
  padding: 5px 15px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
}

.card-content {
  padding: 25px;
}

.card-content h3 {
  font-size: 1.3rem;
  color: var(--text-primary);
  margin-bottom: 10px;
}

.card-content p {
  color: var(--text-secondary);
  margin-bottom: 20px;
  line-height: 1.6;
}

.card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 20px;
}

.card-btn {
  background: var(--primary-color);
  color: var(--text-light);
  padding: 10px 20px;
  border-radius: 8px;
  font-weight: 600;
  transition: background 0.3s ease;
  min-height: 44px;
  min-width: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.card-btn:hover {
  background: var(--primary-dark);
}

.card-stats {
  color: var(--text-muted);
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  gap: 5px;
}

/* How It Works Section */
.how-it-works-section {
  padding: var(--section-padding);
  background: var(--bg-primary);
}

.steps-container {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 40px;
  margin: 60px 0;
  flex-wrap: wrap;
}

.step-card {
  background: var(--bg-card);
  padding: 30px;
  border-radius: 20px;
  text-align: center;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border-color);
  min-width: 250px;
  flex: 1;
  max-width: 300px;
}

.step-number {
  font-size: 3rem;
  font-weight: 800;
  color: var(--primary-color);
  opacity: 0.2;
  margin-bottom: 10px;
}

.step-icon {
  font-size: 48px;
  color: var(--primary-color);
  margin-bottom: 20px;
}

/* Plant Care Section */
.plant-care-section {
  padding: var(--section-padding);
  background: var(--bg-secondary);
}

.plant-care-content {
  display: flex;
  gap: 60px;
  align-items: center;
  flex-wrap: wrap;
}

.plant-care-text {
  flex: 1;
  min-width: 300px;
}

.plant-care-images {
  flex: 1;
  min-width: 300px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.plant-img {
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.plant-img img {
  width: 100%;
  height: 250px;
  object-fit: cover;
}

.plant-img-1 {
  grid-column: 1;
  grid-row: 1;
}

.plant-img-2 {
  grid-column: 2;
  grid-row: 1 / span 2;
  height: 100%;
}

.plant-img-2 img {
  height: 100%;
}

/* Kids Quiz Section */
.kids-quiz-section {
  padding: var(--section-padding);
  background: var(--bg-primary);
  position: relative;
  overflow: hidden;
}

.quiz-content {
  display: flex;
  gap: 60px;
  align-items: center;
  flex-wrap: wrap;
}

.quiz-text {
  flex: 1;
  min-width: 300px;
}

.quiz-image {
  flex: 1;
  min-width: 300px;
}

.quiz-image-wrapper {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.quiz-image-wrapper img {
  width: 100%;
  height: 400px;
  object-fit: cover;
}

/* Testimonials Section */
.testimonials-section {
  padding: var(--section-padding);
  background: var(--bg-secondary);
}

.testimonials-slider {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.testimonial-card {
  background: var(--bg-card);
  padding: 30px;
  border-radius: 20px;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border-color);
}

.testimonial-rating {
  color: #ffc107;
  margin-bottom: 20px;
}

.testimonial-text {
  color: var(--text-secondary);
  font-style: italic;
  margin-bottom: 20px;
  line-height: 1.6;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 15px;
}

.testimonial-author img {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  object-fit: cover;
}

/* Report Section */
.report-section {
  padding: var(--section-padding);
  background: var(--bg-primary);
}

.report-content {
  display: flex;
  gap: 60px;
  flex-wrap: wrap;
}

.report-info {
  flex: 1;
  min-width: 300px;
}

.report-form-wrapper {
  flex: 1;
  min-width: 300px;
}

.report-form {
  background: var(--bg-card);
  padding: 30px;
  border-radius: 20px;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border-color);
}

.form-group {
  margin-bottom: 25px;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  color: var(--text-primary);
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  background: var(--bg-input);
  color: var(--text-primary);
  font-size: 1rem;
}

.form-group textarea {
  resize: vertical;
  min-height: 120px;
}

.file-upload {
  border: 2px dashed var(--border-color);
  border-radius: var(--radius-md);
  padding: 30px;
  text-align: center;
  cursor: pointer;
  transition: border-color 0.3s ease;
}

.file-upload:hover {
  border-color: var(--primary-color);
}

.file-upload-label {
  color: var(--text-muted);
}

/* Partners Section */
.partners-section {
  padding: var(--section-padding);
  background: var(--bg-secondary);
}

.partners-slider {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 40px;
  flex-wrap: wrap;
  margin-top: 40px;
}

.partner-logo {
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.partner-logo img {
  height: 100%;
  width: auto;
  max-width: 150px;
  object-fit: contain;
  filter: grayscale(100%);
  opacity: 0.7;
  transition: filter 0.3s ease, opacity 0.3s ease;
}

.partner-logo:hover img {
  filter: grayscale(0%);
  opacity: 1;
}

/* Daily Quote Section */
.daily-quote-section {
  padding: 40px 20px;
  background: var(--bg-tertiary);
}

.quote-container {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 30px;
  flex-wrap: wrap;
  justify-content: center;
}

.quote-content {
  flex: 1;
  min-width: 300px;
  text-align: center;
}

.quote-text {
  font-size: 1.5rem;
  color: var(--text-primary);
  font-style: italic;
  margin-bottom: 15px;
  line-height: 1.6;
}

.quote-author {
  color: var(--primary-color);
  font-weight: 600;
  font-size: 1.1rem;
}

.quote-icon {
  font-size: 2rem;
  color: var(--primary-color);
  opacity: 0.5;
}

/* Search Container */
.search-container {
  max-width: 400px;
  margin: 40px 0 0 0;
  width: fit-content;
}

.search-form {
  display: flex;
  align-items: stretch;
  background: rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  overflow: hidden;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  width: 100%;
}

.search-form .form-group {
  display: flex;
  align-items: center;
  flex: 1;
  width: 100%;
}

.search-form:focus-within {
  background: rgba(255, 255, 255, 0.18);
  border-color: rgba(255, 255, 255, 0.35);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}

.form-input {
  flex: 1;
  padding: 14px 18px;
  border: none;
  background: transparent;
  color: var(--text-primary);
  font-size: 0.95rem;
  transition: all 0.3s ease;
  font-family: inherit;
  font-weight: 500;
  width: 100%;
}

.form-input::placeholder {
  color: rgba(255, 255, 255, 0.6);
  font-weight: 500;
}

.form-input:focus {
  outline: none;
}

[data-theme="dark"] .form-input::placeholder {
  color: rgba(255, 255, 255, 0.6);
}

.search-btn {
  background: #4CAF50;
  color: #fff;
  padding: 0 20px;
  border: none;
  border-radius: 0;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-weight: 700;
  box-shadow: none;
  margin: 0;
  height: 100%;
  flex-shrink: 0;
}

.search-btn:hover {
  background: #45a049;
  transform: none;
  box-shadow: none;
}

.search-btn:active {
  background: #3d8b40;
}

.search-btn i {
  font-size: 1rem;
  font-weight: 700;
}

/* Search Container Responsive */
@media (max-width: 768px) {
  .search-container {
    max-width: 100%;
    margin: 30px 0 0 0;
  }

  .search-form {
    border-radius: 6px;
  }

  .form-input {
    padding: 12px 16px;
    font-size: 0.9rem;
  }

  .search-btn {
    padding: 12px 18px;
  }

  .search-btn i {
    font-size: 0.95rem;
  }
}

@media (max-width: 480px) {
  .search-container {
    max-width: 100%;
    margin: 25px 0 0 0;
  }

  .search-form {
    border-radius: 6px;
  }

  .form-input {
    padding: 11px 14px;
    font-size: 0.85rem;
  }

  .search-btn {
    padding: 11px 16px;
    font-size: 0.85rem;
  }
}

/* Live Clock */
.live-clock {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--bg-tertiary);
  padding: 10px 20px;
  border-radius: 30px;
  margin: 15px 0;
  color: var(--text-primary);
  font-weight: 600;
}

/* ===========================================
   RESPONSIVE DESIGN
   =========================================== */

html,
body {
  overflow-x: hidden;
}

button,
.btn,
.sim-btn,
.challenge-btn,
.learn-btn,
.filter-btn {
  font-family: var(--font-primary);
  cursor: pointer;
  transition: all 0.3s ease;
  min-height: 44px;
  min-width: 44px;
}

img {
  transition: none;
}

.feature-card,
.service-card,
.eco-challenge-card,
.testimonial-card {
  margin-bottom: 20px;
}

input,
select,
textarea {
  background: var(--bg-input);
  color: var(--text-primary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 10px 15px;
  font-size: 1rem;
  transition: border-color 0.3s ease;
}

input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(76, 175, 80, 0.1);
}

[data-theme="dark"] input:focus,
[data-theme="dark"] select:focus,
[data-theme="dark"] textarea:focus {
  box-shadow: 0 0 0 3px rgba(74, 222, 128, 0.2);
}

.custom-modal-content {
  background: var(--bg-card);
  color: var(--text-primary);
  border: 1px solid var(--border-color);
}

/* ===========================================
   FOOTER – COMPACT UI ENHANCEMENT
   Issue #1863
   =========================================== */

.eco-footer {
  background: var(--bg-secondary);
  color: var(--text-primary);
  border-top: 1px solid var(--border-color);

  /* reduced padding */
  padding: 40px 6% 30px;
}

/* footer grid container */
.eco-footer .footer-container {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 30px; /* reduced column gap */
}

/* footer brand text */
.eco-footer .footer-brand p {
  margin-top: 12px;
  font-size: 14px;
  line-height: 1.5;
  max-width: 260px;
}

/* footer headings */
.eco-footer h4 {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 12px;
}

/* footer links list */
.eco-footer ul {
  padding: 0;
  margin: 0;
}

.eco-footer ul li {
  margin-bottom: 8px; /* reduced vertical spacing */
}

.eco-footer ul li a {
  font-size: 14px;
  opacity: 0.85;
  transition: opacity 0.2s ease;
}

.eco-footer ul li a:hover {
  opacity: 1;
}

/* newsletter input */
.eco-footer .newsletter-input {
  padding: 10px 12px;
  font-size: 14px;
}

/* footer bottom */
.eco-footer .footer-bottom {
  margin-top: 30px;
  padding-top: 15px;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
  font-size: 13px;
  text-align: center;
}

/* =====================
   RESPONSIVE FOOTER
   ===================== */

@media (max-width: 768px) {
  .eco-footer {
    padding: 30px 5% 25px;
  }

  .eco-footer .footer-container {
    grid-template-columns: 1fr 1fr;
    gap: 24px;
  }
}

@media (max-width: 480px) {
  .eco-footer .footer-container {
    grid-template-columns: 1fr;
  }
}


.navbar {
  background: var(--bg-card);
  border-bottom: 1px solid var(--border-color);
}

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

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

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

.hero-title {
  color: var(--text-primary);
}

.hero-subtitle {
  color: var(--text-secondary);
}

.testimonial-card {
  background: var(--bg-card);
  color: var(--text-primary);
  border: 1px solid var(--border-color);
}

.testimonial-text {
  color: var(--text-secondary);
}

.navbar,
.back-to-top,
.scroll-to-bottom,
.chatbot-container,
.ecolife-chatbot {
  z-index: 1000;
}

/* Image fixes */
img {
  max-width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

.card-image img,
.hero-image-wrapper img,
.about-img-main img,
.plant-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Fix for responsive images */
.image-container {
  position: relative;
  overflow: hidden;
}

.image-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.aspect-16-9 {
  aspect-ratio: 16/9;
}

/* ===========================================
   MEDIA QUERIES
   =========================================== */

@media (max-width: 1200px) {
  .section-title {
    font-size: 2.4rem;
  }

  .hero-title {
    font-size: 3rem;
  }
}

@media (max-width: 992px) {
  :root {
    --section-padding: 80px 0;
  }

  .section-title {
    font-size: 2rem;
  }

  .section-header {
    margin-bottom: 40px;
  }

  .hero-title {
    font-size: 2.5rem;
  }

  .hero-container,
  .about-content,
  .plant-care-content,
  .quiz-content,
  .report-content {
    flex-direction: column;
    text-align: center;
  }

  .steps-container {
    flex-direction: column;
  }

  .step-connector {
    display: none;
  }

  .museum-banner {
    flex-direction: column;
    text-align: center;
  }

  .museum-visuals {
    margin-top: 30px;
    height: 200px;
  }
}

@media (max-width: 768px) {
  :root {
    --section-padding: 60px 0;
  }

  .section-title {
    font-size: 1.8rem;
  }

  .section-subtitle {
    font-size: 1rem;
  }

  .btn {
    padding: 12px 24px;
    font-size: 0.95rem;
  }

  .hero-title {
    font-size: 2rem;
  }

  .hero-subtitle {
    font-size: 1rem;
  }

  .cards-grid,
  .services-grid {
    grid-template-columns: 1fr;
  }

  .options {
    grid-template-columns: 1fr;
  }

  .plant-care-images {
    grid-template-columns: 1fr;
  }

  .plant-img-2 {
    grid-column: 1;
    grid-row: 2;
  }

  .theme-toggle {
    width: 36px;
    height: 36px;
    font-size: 1rem;
  }

  .museum-banner {
    padding: 2rem;
  }

  .museum-text h2 {
    font-size: 2rem;
  }

  .floating-card {
    width: 120px;
    height: 160px;
  }

  .team-cta-section h2 {
    font-size: 2rem;
  }

  .quiz-title {
    font-size: 2rem;
  }
}

@media (max-width: 480px) {
  .section-title {
    font-size: 1.5rem;
  }

  .section-tag {
    font-size: 0.8rem;
    padding: 6px 15px;
  }

  .hero-title {
    font-size: 1.8rem;
  }

  .hero-cta {
    flex-direction: column;
    gap: 10px;
  }

  .btn {
    width: 100%;
    justify-content: center;
  }

  .museum-banner {
    padding: 1.5rem;
  }

  .museum-text h2 {
    font-size: 1.5rem;
  }

  .explore-btn {
    padding: 12px 25px;
    font-size: 0.9rem;
  }

  .team-cta-section {
    padding: 40px 15px;
    margin: 20px 10px;
  }

  .team-cta-section h2 {
    font-size: 1.5rem;
  }

  .btn-glow {
    padding: 12px 25px;
    font-size: 0.9rem;
  }

  .scroll-to-bottom {
    width: 45px;
    height: 45px;
    font-size: 16px;
    bottom: 80px;
    right: 20px;
  }

  .back-to-top {
    width: 45px;
    height: 45px;
    font-size: 1rem;
    bottom: 80px;
    right: 20px;
  }

  .chatbot-container {
    width: 280px;
    right: 10px;
  }

  .ecolife-chatbot .eco-chatbox {
    width: 280px;
  }
}

/* ===========================================
   THEME OVERRIDES
   =========================================== */

* {
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.navbar,
.back-to-top,
.scroll-to-bottom,
.chatbot-container,
.ecolife-chatbot {
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

img {
  transition: none;
}

@media (-webkit-touch-callout: none) {
  .theme-toggle {
    -webkit-tap-highlight-color: transparent;
  }

  button,
  .btn {
    -webkit-tap-highlight-color: transparent;
  }
}

/* Accessibility improvements */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Focus states for accessibility */
button:focus,
.btn:focus,
input:focus,
select:focus,
textarea:focus {
  outline: 3px solid var(--primary-color);
  outline-offset: 2px;
}

/* Print styles */
@media print {

  .back-to-top,
  .scroll-to-bottom,
  .theme-toggle,
  .chatbot-container,
  .ecolife-chatbot {
    display: none !important;
  }
}

/* ===========================================
   HERO SECTION SPECIFIC STYLES
   =========================================== */

.hero-section {
  position: relative;
  padding: 120px 20px 80px;
  background: var(--bg-secondary);
  overflow: hidden;
  min-height: 100vh;
  display: flex;
  align-items: center;
}

.hero-container {
  max-width: 1300px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 60px;
  flex-wrap: wrap;
}

.hero-content {
  flex: 1;
  min-width: 300px;
}

.hero-title {
  font-size: 3.5rem;
  margin: 20px 0;
  color: var(--text-primary);
  line-height: 1.2;
}

.hero-subtitle {
  font-size: 1.2rem;
  color: var(--text-secondary);
  margin-bottom: 30px;
  line-height: 1.6;
}

.hero-cta {
  display: flex;
  gap: 20px;
  margin: 30px 0;
  flex-wrap: wrap;
}

.hero-image {
  flex: 1;
  min-width: 300px;
}

.hero-image-wrapper {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  width: 100%;
  height: 400px;
  /* Fixed height for hero image */
}

.hero-image-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Fix for aspect-16-9 class */
.aspect-16-9 {
  aspect-ratio: 16/9;
  height: auto !important;
  /* Override the fixed height for aspect ratio */
}

/* Hero badges and features */
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: var(--bg-tertiary);
  color: var(--primary-color);
  border-radius: 20px;
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 15px;
  margin-right: 10px;
}

.page-view-counter {
  background: var(--accent-color);
  color: var(--text-light);
}

.hero-features {
  display: flex;
  gap: 20px;
  margin-top: 30px;
  flex-wrap: wrap;
}

.hero-feature {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text-secondary);
  font-weight: 500;
}

.hero-feature i {
  color: var(--primary-color);
}

.hero-image-badge {
  position: absolute;
  bottom: 20px;
  left: 20px;
  background: rgba(0, 0, 0, 0.7);
  color: white;
  padding: 8px 15px;
  border-radius: 20px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  font-size: 0.9rem;
}

/* Scroll indicator */
.scroll-indicator {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  color: var(--text-secondary);
  font-size: 0.9rem;
}

.mouse {
  width: 30px;
  height: 50px;
  border: 2px solid var(--text-secondary);
  border-radius: 20px;
  margin-bottom: 10px;
  position: relative;
}

.wheel {
  width: 4px;
  height: 10px;
  background: var(--primary-color);
  border-radius: 2px;
  position: absolute;
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
  animation: scrollWheel 2s infinite;
}

@keyframes scrollWheel {
  0% {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
  }

  100% {
    transform: translateX(-50%) translateY(20px);
    opacity: 0;
  }
}

/* Search bar in hero */
.search-container {
  max-width: 600px;
  margin: 30px 0;
}

.search-form {
  display: flex;
  align-items: center;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.25) 0%, rgba(255, 255, 255, 0.15) 100%);
  border-radius: 50px;
  overflow: hidden;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1.5px solid rgba(255, 255, 255, 0.3);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15), inset 0 1px 1px rgba(255, 255, 255, 0.3);
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  padding: 0 8px;
}

.search-form:focus-within {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.35) 0%, rgba(255, 255, 255, 0.25) 100%);
  border-color: rgba(255, 255, 255, 0.5);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.2), inset 0 1px 2px rgba(255, 255, 255, 0.4);
  transform: translateY(-2px);
}

.form-input {
  flex: 1;
  padding: 16px 20px;
  border: none;
  background: transparent;
  color: var(--text-primary);
  font-size: 1rem;
  transition: all 0.3s ease;
  font-family: inherit;
  font-weight: 500;
}

.form-input::placeholder {
  color: rgba(0, 0, 0, 0.45);
  font-weight: 400;
}

.form-input:focus {
  outline: none;
}

[data-theme="dark"] .form-input::placeholder {
  color: rgba(255, 255, 255, 0.55);
}

.search-btn {
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
  color: var(--text-light);
  padding: 12px 24px;
  border: none;
  border-radius: 50px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  min-height: auto;
  min-width: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-weight: 600;
  box-shadow: 0 4px 15px rgba(46, 125, 50, 0.3);
  margin-right: 4px;
}

.search-btn:hover {
  background: linear-gradient(135deg, var(--primary-dark) 0%, #1b5e20 100%);
  transform: translateY(-3px);
  box-shadow: 0 6px 25px rgba(46, 125, 50, 0.4);
}

.search-btn:active {
  transform: translateY(-1px);
}

.search-btn i {
  font-size: 1.15rem;
}

/* Search Container Responsive */
@media (max-width: 768px) {
  .search-container {
    max-width: 100%;
    margin: 25px 0;
  }

  .search-form {
    flex-direction: row;
    border-radius: 45px;
  }

  .form-input {
    padding: 14px 18px;
    font-size: 0.95rem;
  }

  .search-btn {
    padding: 11px 20px;
    min-width: auto;
  }

  .search-btn i {
    font-size: 1rem;
  }
}

@media (max-width: 480px) {
  .search-container {
    max-width: 100%;
    margin: 20px 0;
  }

  .search-form {
    border-radius: 40px;
    padding: 0 6px;
  }

  .form-input {
    padding: 13px 16px;
    font-size: 0.9rem;
  }

  .search-btn {
    padding: 10px 18px;
    min-width: auto;
    font-size: 0.9rem;
  }
}

/* Live clock */
.live-clock {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--bg-tertiary);
  padding: 10px 20px;
  border-radius: 30px;
  margin: 15px 0;
  color: var(--text-primary);
  font-weight: 600;
}

/* Hero background elements */
.hero-bg-elements {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
}

.floating-element {
  position: absolute;
  font-size: 24px;
  color: var(--primary-color);
  opacity: 0.3;
  animation: floatElement 15s ease-in-out infinite;
}

@keyframes floatElement {

  0%,
  100% {
    transform: translateY(0) rotate(0deg);
  }

  50% {
    transform: translateY(-20px) rotate(10deg);
  }
}

/* Position floating elements */
.leaf1 {
  top: 10%;
  left: 10%;
  animation-delay: 0s;
}

.leaf2 {
  top: 20%;
  right: 15%;
  animation-delay: 2s;
}

.paw1 {
  top: 30%;
  left: 15%;
  animation-delay: 1s;
}

.paw2 {
  bottom: 20%;
  right: 10%;
  animation-delay: 3s;
}

.tree1 {
  bottom: 10%;
  left: 20%;
  animation-delay: 4s;
}

.globe {
  top: 15%;
  left: 50%;
  animation-delay: 1.5s;
}

.heart {
  top: 40%;
  right: 20%;
  animation-delay: 2.5s;
}

.recycle {
  bottom: 30%;
  left: 10%;
  animation-delay: 3.5s;
}

/* Particle effect */
.particles {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
}

/* ===========================================
   HERO IMAGE FIXES
   =========================================== */

/* Ensure hero image container is visible */
.hero-image {
  flex: 1;
  min-width: 300px;
  display: block !important;
  /* Force display */
  visibility: visible !important;
  /* Force visibility */
  opacity: 1 !important;
  /* Ensure opacity */
}

.hero-image-wrapper {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  display: block !important;
  width: 100%;
  height: auto;
  min-height: 300px;
}

/* Force the image to display */
.hero-image-wrapper img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
  position: relative;
  z-index: 1;
}

/* Override any hiding classes */
.aspect-16-9 {
  aspect-ratio: 16/9;
  display: block !important;
  visibility: visible !important;
}

.image-container {
  display: block !important;
  visibility: visible !important;
}

/* Hero badge positioning fix */
.hero-image-badge {
  position: absolute;
  bottom: 20px;
  left: 20px;
  background: rgba(0, 0, 0, 0.7);
  color: white;
  padding: 8px 15px;
  border-radius: 20px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  font-size: 0.9rem;
  z-index: 2;
}

/* Mobile-specific fixes */
@media (max-width: 768px) {
  .hero-image {
    order: 1;
    /* If using flex column, ensure proper order */
    margin-top: 30px;
    width: 100%;
  }

  .hero-image-wrapper {
    height: 250px;
    /* Fixed height for mobile */
  }

  .hero-image-wrapper img {
    min-height: 250px;
  }
}

/* Desktop-specific fixes */
@media (min-width: 769px) {
  .hero-image-wrapper {
    height: 500px;
    /* Fixed height for desktop */
  }
}

/* ===========================================
   HERO TEXT COLOR FIXES FOR LIGHT THEME
   =========================================== */

/* Fix for hero subtitle text in light theme */
.hero-subtitle {
  color: var(--text-secondary);
  font-size: 1.2rem;
  margin-bottom: 30px;
  line-height: 1.6;
}

/* Ensure hero subtitle has enough contrast in light theme */
[data-theme="light"] .hero-subtitle,
[data-theme="light"] .hero-subtitle,
:root:not([data-theme="dark"]) .hero-subtitle {
  color: #444444;
  /* Darker gray for better visibility */
  opacity: 0.9;
}

/* Fix for search placeholder text in light theme */
.form-input::placeholder {
  color: var(--text-muted);
}

[data-theme="light"] .form-input::placeholder,
:root:not([data-theme="dark"]) .form-input::placeholder {
  color: #666666;
  /* Darker placeholder text */
}

/* Fix for search help text in light theme */
#search-help {
  color: var(--text-muted);
}

[data-theme="light"] #search-help,
:root:not([data-theme="dark"]) #search-help {
  color: #555555;
  /* Darker help text */
}

/* Fix for button text descriptions */
#get-started-desc,
#learn-more-desc {
  color: var(--text-secondary);
}

[data-theme="light"] #get-started-desc,
[data-theme="light"] #learn-more-desc,
:root:not([data-theme="dark"]) #get-started-desc,
:root:not([data-theme="dark"]) #learn-more-desc {
  color: #444444;
  /* Darker description text */
}

/* Fix for hero features text */
.hero-feature span {
  color: var(--text-secondary);
}

[data-theme="light"] .hero-feature span,
:root:not([data-theme="dark"]) .hero-feature span {
  color: #333333;
  /* Much darker text for better contrast */
  font-weight: 600;
  /* Make it bolder */
}

/* Fix for live clock text */
.live-clock {
  color: var(--text-primary);
  background: var(--bg-tertiary);
}

[data-theme="light"] .live-clock,
:root:not([data-theme="dark"]) .live-clock {
  color: #222222;
  /* Very dark text */
  background: rgba(0, 0, 0, 0.05);
  /* Light background */
}

/* Fix for hero badge text */
.hero-badge {
  color: var(--primary-color);
  background: var(--bg-tertiary);
}

[data-theme="light"] .hero-badge,
:root:not([data-theme="dark"]) .hero-badge {
  color: #1b5e20;
  /* Darker green */
  background: rgba(46, 125, 50, 0.1);
  /* Light green background */
  border: 1px solid rgba(46, 125, 50, 0.2);
}

/* Special fix for page view counter badge */
.page-view-counter {
  color: var(--text-light);
  background: var(--accent-color);
}

[data-theme="light"] .page-view-counter,
:root:not([data-theme="dark"]) .page-view-counter {
  color: white !important;
  /* Keep white text on colored background */
  background: #00bcd4;
  /* Specific blue color */
}

/* Fix for form error/success messages */
.error-message {
  color: #d32f2f;
}

.success-message {
  color: #388e3c;
}

/* Ensure all text has proper contrast in light theme */
[data-theme="light"] .text-muted,
:root:not([data-theme="dark"]) .text-muted {
  color: #555555 !important;
}

[data-theme="light"] .text-secondary,
:root:not([data-theme="dark"]) .text-secondary {
  color: #333333 !important;
}

/* Override for any white text that might be blending in */
[data-theme="light"] .sr-only,
:root:not([data-theme="dark"]) .sr-only {
  color: transparent !important;
  /* Screen readers only */
}

/* Fix for the specific issue with light theme text blending */
body:not([data-theme="dark"]) .hero-content *:not(.btn):not(.btn *):not(.hero-image-badge):not(.hero-image-badge *) {
  color: #222222 !important;
}

/* More targeted fix */
:root:not([data-theme="dark"]) .hero-content p,
:root:not([data-theme="dark"]) .hero-content span:not(.gradient-text),
:root:not([data-theme="dark"]) .hero-content div:not(.btn) {
  color: #333333 !important;
  opacity: 1 !important;
}

/* Fix for gradient text - ensure it's visible */
.gradient-text {
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

[data-theme="light"] .gradient-text,
:root:not([data-theme="dark"]) .gradient-text {
  background: linear-gradient(135deg, #1b5e20, #2e7d32);
  /* Darker green gradient for light theme */
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Fix for hero features specifically */
.hero-feature {
  display: flex;
  align-items: center;
  gap: 8px;
}

.hero-feature i {
  color: var(--primary-color);
}

.hero-feature span {
  font-weight: 500;
}

[data-theme="light"] .hero-feature,
:root:not([data-theme="dark"]) .hero-feature {
  background: rgba(46, 125, 50, 0.08);
  padding: 8px 16px;
  border-radius: 20px;
  border: 1px solid rgba(46, 125, 50, 0.15);
}

[data-theme="light"] .hero-feature span,
:root:not([data-theme="dark"]) .hero-feature span {
  color: #1b5e20 !important;
  font-weight: 600;
}

/* Fix for the entire hero section text contrast */
[data-theme="light"] .hero-content,
:root:not([data-theme="dark"]) .hero-content {
  --text-primary: #111111;
  --text-secondary: #333333;
  --text-muted: #555555;
}


/* FORCE HERO CTA LEFT ALIGNMENT */
.hero-content {
  text-align: left;
}

.hero-cta {
  display: flex;
  width: 100%;
  justify-content: flex-start;
}
