/* ✅ Fixed Mobile-Friendly Enhancements for EcoSigns */

/* Base Styling */
body {
  font-family: 'Poppins', sans-serif;
  margin: 0;
  padding: 0;
  background-color: #fff;
  color: #222;
}

/* Responsive Header */
header {
  background-color: #1a1a1a;
  color: white;
  padding: 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
}

nav a {
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s;
}

nav a:hover {
  color: #34d399;
}
/* === Language & Toggle Container === */
.top-controls {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-left: auto; /* Push to right of header */
}

/* Style the language dropdown */
#languageSwitcher {
  background: #fff;
  color: #333;
  border: 1px solid #ccc;
  border-radius: 8px;
  padding: 0.3rem 0.75rem;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
  font-size: 1rem;
}

/* Style the dark mode toggle */
#dark-toggle {
  cursor: pointer;
  font-size: 1.1rem;
  border: none;
  background-color: #e0e0e0;
  color: #333;
  padding: 0.5rem;
  border-radius: 50%;
  transition: all 0.3s;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

/* Dark mode toggle when dark */
.dark #dark-toggle {
  background-color: #444;
  color: #fff;
}

/* Responsive layout for smaller screens */
@media (max-width: 768px) {
  .top-controls {
    flex-direction: column;
    align-items: flex-end;
    gap: 0.5rem;
    margin-top: 0.5rem;
    margin-right: 1rem;
  }

  #languageSwitcher {
    font-size: 0.95rem;
    padding: 0.25rem 0.6rem;
  }

  #dark-toggle {
    font-size: 1rem;
    padding: 0.4rem;
  }
}


/* Hero Video */
#home {
  position: relative;
  height: 60vh;
  width: 100%;
  overflow: hidden;
}

#home video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -1;
}

/* === Section Base === */
section {
  padding: 4rem 2rem;
  max-width: 1200px;
  margin: auto;
}

.section-title {
  text-align: center;
  font-size: 2rem;
  color: #2e7d32;
  margin-bottom: 2rem;
  font-weight: 700;
}

/* === Product Cards === */
.products {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
}

.product-card {
  background: #fff;
  border: 1px solid #ddd;
  padding: 1rem;
  border-radius: 10px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  text-align: center;
}

.product-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 10px 20px rgba(0,0,0,0.08);
}

.product-card h3 {
  color: #2e7d32;
  font-weight: 600;
}

/* === Footer === */
footer {
  background-color: #2e7d32;
  color: #fff;
  padding: 2rem 1.5rem;
  text-align: center;
}

footer a {
  color: #c8e6c9;
  text-decoration: none;
}

footer a:hover {
  text-decoration: underline;
}

/* === Responsive === */
@media (max-width: 768px) {
  nav ul {
    flex-direction: column;
    gap: 1rem;
  }

  .language-selector {
    margin-top: 1rem;
  }

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

  .certifications {
    justify-content: center;
  }

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