/* === Global Styles === */
body {
  font-family: 'Roboto', sans-serif;
  background-color: #ffffff;
  color: #111827;
  line-height: 1.6;
  scroll-behavior: smooth;
}

.dark body {
  background-color: #121212;
  color: #E0E0E0;
}

h1, h2, h3 {
  font-family: 'Montserrat', sans-serif;
  color: #065f46;
  letter-spacing: 0.05em;
}

.dark h1, .dark h2, .dark h3 {
  color: #4ade80;
}

/* =============================
   Links
============================= */
a {
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

/* === Dark Mode Overrides === */
.dark .bg-gray-800 {
  background-color: #1f2937 !important;
}
.dark .bg-gray-700 {
  background-color: #374151 !important;
}
.dark .text-gray-800 {
  color: #e5e7eb !important;
}
.dark .text-gray-300 {
  color: #d1d5db !important;
}
.dark .bg-white {
  background-color: #1e293b !important;
}
.dark .bg-gray-100 {
  background-color: #2d3748 !important;
}

/* === NEW: Enhance Section in Dark Mode === */
.dark .features-section {
  background-color: #1a1f2b;
  padding: 2rem 1.5rem;
  border-radius: 12px;
  margin-top: 2rem;
  box-shadow: 0 0 10px rgba(0,0,0,0.4);
}
.dark .features-section h2,
.dark .features-section h3 {
  color: #34d399;
}
.dark .features-section p {
  color: #d1d5db;
}
.dark .feature-card {
  background-color: #242d3c;
  padding: 1.25rem;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.3);
  margin-bottom: 1.5rem;
}

/* === 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;
  }
}

 


/* === Hero Section === */
section.bg-black {
  background-image: linear-gradient(to bottom right, #000000, #111827);
}

/* === Cards and Articles === */
article.shadow-lg {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
article.shadow-lg:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 20px rgba(0, 0, 0, 0.25);
}

/* === Application Tags Scroll === */
ul.flex.space-x-8 li {
  transition: background 0.3s, transform 0.3s;
}
ul.flex.space-x-8 li:hover {
  transform: scale(1.05);
}

/* === Input + Buttons === */
input[type="email"] {
  outline: none;
  transition: box-shadow 0.3s;
}
input[type="email"]:focus {
  box-shadow: 0 0 0 2px #34d399;
}
button {
  transition: background-color 0.3s ease, transform 0.2s;
}
button:hover {
  transform: scale(1.03);
}

/* === 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;
}
