/* === Base Styles === */
body {
  font-family: 'Poppins', sans-serif;
  scroll-behavior: smooth;
  background-color: #0f172a;
  color: #ffffff;
  margin: 0;
  padding: 0;
  transition: background-color 0.4s ease, color 0.4s ease;
}

h1, h2, h3, h4 {
  font-weight: 600;
  color: #9effa3;
}

/* === Section Wrapper === */
.section {
  padding: 3rem 1rem;
  max-width: 1200px;
  margin: auto;
}

/* === About Section === */
.about-section {
  background-color: rgba(0, 0, 0, 0.7);
  padding: 40px;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.6);
  max-width: 1100px;
  margin: 120px auto 60px;
}
.about-section h2 {
  text-align: center;
  margin-bottom: 20px;
  font-size: 2em;
  color: #a4f97f;
}
.about-section p {
  text-align: justify;
  margin-bottom: 15px;
  font-size: 1.05em;
}

/* === Timeline Section === */
.timeline-wrapper {
  max-width: 1100px;
  margin: 0 auto 60px;
  padding: 20px 30px;
  background-color: rgba(0, 0, 0, 0.6);
  border-radius: 12px;
}
.timeline-wrapper h2 {
  text-align: center;
  margin-bottom: 25px;
  color: #a4f97f;
}
.timeline {
  position: relative;
  padding: 20px 0;
}
.timeline::before {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 4px;
  background: #9effa3;
  transform: translateX(-50%);
}
.timeline-item {
  width: 50%;
  padding: 20px 30px;
  position: relative;
}
.timeline-item h3 {
  color: #a4f97f;
  margin-bottom: 8px;
}
.timeline-item:nth-child(odd) {
  left: 0;
  text-align: right;
}
.timeline-item:nth-child(even) {
  left: 50%;
  text-align: left;
}
.timeline-item::before {
  content: '';
  position: absolute;
  top: 25px;
  width: 20px;
  height: 20px;
  background: #9effa3;
  border-radius: 50%;
  z-index: 1;
}
.timeline-item:nth-child(odd)::before {
  right: -10px;
}
.timeline-item:nth-child(even)::before {
  left: -10px;
}

/* === Factory Section === */
.factory-section {
  max-width: 1100px;
  margin: 0 auto 60px;
  padding: 30px;
  background-color: rgba(0, 0, 0, 0.6); /* works nicely in dark mode */
  border-radius: 12px;
}

.factory-section h2 {
  text-align: center;
  margin-bottom: 25px;
  color: #a4f97f;
  font-size: 2rem;
  font-weight: bold;
}

.factory-videos {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 30px;
  margin-top: 20px;
}

.factory-videos video {
  width: 100%;
  max-width: 400px;
  border-radius: 10px;
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.4);
  transition: transform 0.3s ease;
}

.factory-videos video:hover {
  transform: scale(1.03);
}


/* === Language & Theme Controls === */
.language-selector,
.theme-toggle {
  margin: 1rem auto;
  display: flex;
  justify-content: center;
  gap: 1rem;
}
select,
button {
  padding: 0.5rem 1rem;
  background: #1f2937;
  border: 1px solid #9effa3;
  color: #9effa3;
  border-radius: 6px;
  cursor: pointer;
}
select:focus,
button:focus {
  outline: none;
  box-shadow: 0 0 6px #9effa3;
}

/* === 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 Fixes === */
@media (max-width: 768px) {
  .timeline::before {
    left: 8px;
  }
  .timeline-item {
    width: 100%;
    left: 0 !important;
    text-align: left !important;
    padding-left: 30px;
  }
  .timeline-item::before {
    left: 0;
  }
  .about-section,
  .timeline-wrapper,
  .factory-section {
    margin: 60px 20px;
    padding: 25px 20px;
  }
  .factory-videos {
    flex-direction: column;
    align-items: center;
  }
}

/* === Dark Mode Classes === */
.dark {
  background-color: #0f172a;
  color: #ffffff;
}
.dark .about-section,
.dark .timeline-wrapper,
.dark .factory-section {
  background-color: rgba(0, 0, 0, 0.75);
}
.dark h1, .dark h2, .dark h3, .dark h4 {
  color: #9effa3;
}
