body {
  font-family: 'Poppins', sans-serif;
  transition: background-color 0.3s ease, color 0.3s ease;
}

/* === Scroll to Top Button === */
button.fixed {
  transition: transform 0.3s ease;
}
button.fixed:hover {
  transform: translateY(-4px);
}

/* === Header === */
header {
  background-color: #ffffff;
  color: #333;
  padding: 1rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 50;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

header img {
  height: 40px;
}

.nav-text-shadow a {
  text-shadow: 0.5px 0.5px #d0f0c0;
}

nav ul {
  list-style: none;
  display: flex;
  gap: 1.5rem;
  margin: 0;
  padding: 0;
}

nav a {
  text-decoration: none;
  color: #fafafa;
  font-weight: 500;
  transition: color 0.3s ease;
}

nav a:hover {
  color: #11a119;
}

/* === 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;
  }
}

/* -----------------------------
   Card Layout
----------------------------- */
.tip-card {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  background-color: #d1fae5;
  padding: 1.5rem;
  border-radius: 0.75rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  color: #065f46;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.tip-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.1);
}

.tip-icon {
  font-size: 2rem;
  margin-top: 4px;
}

.tip-card h2 {
  font-size: 1.25rem;
  font-weight: 700;
  color: #065f46;
  margin-bottom: 0.25rem;
}

.tip-card p {
  font-size: 1rem;
  color: #334155;
}

/* -----------------------------
   Dark Mode Support
----------------------------- */
.dark .tip-card {
  background-color: #1f2937;
  color: #d1d5db;
}

.dark .tip-card h2 {
  color: #6ee7b7;
}

.dark .tip-card p {
  color: #94a3b8;
}

/* -----------------------------
   Footer
----------------------------- */

footer {
  background-color: #2e7d32;
  color: #fff;
  padding: 2rem 1.5rem;
  text-align: center;
}

footer a {
  color: #c8e6c9;
  text-decoration: none;
  transition: color 0.3s ease;
}

footer a:hover {
  color: #a5f3fc;
  text-decoration: underline;
}

footer .fab {
  transition: transform 0.3s ease, color 0.3s ease;
  color: #ffffff;
}

footer .fab:hover {
  color: #86efac;
  transform: scale(1.2);
}

/* === Responsive Adjustments === */
@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;
  }

  footer .flex {
    justify-content: center;
    flex-wrap: wrap;
  }
}

/* === Fix for Language Switcher in Dark Mode === */
.dark #languageSwitcher {
  background: #2e2e2e;
  color: #fff;
  border: 1px solid #555;
}
