@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@700&family=Roboto&display=swap');

/* =============================
   Base Typography & Layout
============================= */
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;
}

/* =============================
   Header (Always Dark)
============================= */
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 Image
============================= */
section img {
  box-shadow: 0 15px 40px rgba(74, 222, 128, 0.6);
  border-radius: 1rem;
}

/* =============================
   Cards (Why Choose Us)
============================= */
section article {
  background-color: #f3f4f6;
  transition: box-shadow 0.3s ease;
}

.dark section article {
  background-color: #1f2937;
}

section article:hover {
  box-shadow: 0 8px 30px #8dd1a6cc;
}

/* =============================
   Applications Grid Items
============================= */
section > div.grid > div {
  transition: box-shadow 0.3s ease;
  border-radius: 0.75rem;
  background-color: #f3f4f6;
}

.dark section > div.grid > div {
  background-color: #1f2937;
}

section > div.grid > div:hover {
  box-shadow: 0 10px 35px #b9e2c8cc;
}

/* =============================
   Technical Specifications Bars
============================= */
h2 + div div {
  background-color: #d1fae5;
  border-radius: 9999px;
  overflow: hidden;
}

.dark h2 + div div {
  background-color: #166534;
}

h2 + div div > div {
  background-color: #4ade80;
  height: 1rem;
  border-radius: 9999px;
}

/* =============================
   Call to Action (CTA)
============================= */
#cta {
  box-shadow: 0 12px 50px #22c55eaa;
}



/* =============================
   Scroll to Top Button
============================= */
.scroll-top {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  background-color: #16a34a;
  color: #fff;
  padding: 0.75rem;
  border-radius: 9999px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
  font-size: 1.25rem;
  z-index: 50;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.scroll-top:hover {
  background-color: #15803d;
}

/*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; /* soft green-cyan hover */
  text-decoration: underline;
}

/* Social Media Icon Styling */
footer .fab {
  transition: transform 0.3s ease, color 0.3s ease;
  color: #ffffff;
}

footer .fab:hover {
  color: #86efac; /* hover color */
  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;
  }
}
