/* -----------------------------
   Global Styles
----------------------------- */
body {
  font-family: 'Poppins', sans-serif;
  transition: background-color 0.3s ease, color 0.3s ease;
}

/* -----------------------------
   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
----------------------------- */
.hero {
  height: 70vh;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  justify-content: center;
}

.overlay {
  background-color: rgba(0, 0, 0, 0.6);
  padding: 2rem;
  text-align: center;
  border-radius: 0.5rem;
  color: #fff;
  max-width: 600px;
}

.overlay h1 {
  font-size: 3rem;
  font-weight: 800;
  color: #34d399;
  margin-bottom: 1rem;
}

.overlay p {
  font-size: 1.125rem;
}

/* -----------------------------
   Features Section
----------------------------- */
.features {
  padding: 4rem 1.5rem;
  background-color: #f9fafb;
}

.features h2 {
  font-size: 2rem;
  font-weight: 700;
  color: #065f46;
  margin-bottom: 2rem;
  text-align: center;
}

.features-grid {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.features-grid ul {
  list-style: disc;
  padding-left: 1.5rem;
  color: #374151;
}

.feature-image {
  border-radius: 0.5rem;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

/* -----------------------------
   Applications Section
----------------------------- */
/* ===== Common Applications Section ===== */
.common-applications {
  padding: 100px 20px;
  background-color: #ffffff;
  transition: background-color 0.5s;
}

.common-applications.dark {
  background-color: #111827;
}

.common-applications h2 {
  text-align: center;
  font-size: 2.5rem;
  font-weight: 800;
  color: #047857; /* green-700 */
  margin-bottom: 3rem;
}

.common-applications.dark h2 {
  color: #34d399; /* green-400 */
}

.applications-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  justify-content: center;
  max-width: 1100px;
  margin: 0 auto;
}

@media (min-width: 640px) {
  .applications-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 768px) {
  .applications-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.app-box {
  background-color: #ecfdf5;
  padding: 2.5rem;
  border-radius: 1rem;
  text-align: center;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
  width: 100%;
  max-width: 320px;
  margin: auto;
}

.dark .app-box {
  background-color: #1f2937;
}

.app-box:hover {
  transform: scale(1.05);
}

.app-box img {
  width: 100%;
  height: 150px;
  object-fit: cover;
  border-radius: 0.5rem;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  margin-bottom: 1.5rem;
}

.app-box h3 {
  font-size: 1.5rem;
  font-weight: 600;
  color: #065f46;
  margin-bottom: 0.5rem;
}

.dark .app-box h3 {
  color: #6ee7b7;
}

.app-box p {
  font-size: 1rem;
  color: #374151;
}

.dark .app-box p {
  color: #d1d5db;
}


.swiper-slide {
  background-color: #df4343;
  padding: 2rem;
  border-radius: 0.5rem;
  text-align: center;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
  font-weight: 600;
}

/* -----------------------------
   Technical Specifications
----------------------------- */
.technical-specs {
  background-color: #f9fafb;
  padding: 4rem 1.5rem;
}

.technical-specs .container {
  max-width: 1280px;
  margin: 0 auto;
}

.section-title {
  text-align: center;
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 2rem;
  color: #065f46;
}

.specs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1.5rem;
  text-align: center;
}

.spec-card {
  background-color: #ffffff;
  padding: 1.5rem;
  border-radius: 0.75rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.spec-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.12);
}

.spec-icon {
  height: 48px;
  margin-bottom: 1rem;
  opacity: 0.9;
}

.spec-value {
  font-size: 1.5rem;
  font-weight: 700;
  color: #1f2937;
  margin-bottom: 0.25rem;
}

.spec-label {
  font-size: 0.875rem;
  color: #6b7280;
}

/* -----------------------------
   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;
  }
}
