body {
  margin: 0;
  font-family: Arial, sans-serif;
}

header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  background: #2F5249;
  color: white;
  padding: 1rem 2rem;
}

.logo {
  font-weight: bold;
  font-size: 1.5rem;
}

nav ul {
  list-style: none;
  display: flex;
  gap: 1.5rem;
  padding-left: 0;
  margin: 0;
}

nav a {
  color: white;
  text-decoration: none;
}

.lang-toggle button {
  background: none;
  border: 1px solid white;
  color: white;
  padding: 0.4rem 0.8rem;
  margin-left: 0.5rem;
  cursor: pointer;
}

.hero {
  padding: 4rem 2rem;
  text-align: center;
  background: #f5f5f5;
}

footer {
  background: #2F5249;
  color: white;
  text-align: center;
  padding: 1rem;
}

.footer-logo {
  margin-top: 0.5rem;
  height: 40px;
  width: auto;
}


.hamburger {
  display: none;
  font-size: 1.8rem;
  cursor: pointer;
  color: white;
  margin-left: auto;
}

@media (max-width: 768px) {
  nav {
    width: 100%;
    display: none;
    flex-direction: column;
    background-color: #2F5249;
  }

  nav.show {
    display: flex;
  }

  nav ul {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
    padding: 1rem;
  }

  .lang-toggle {
    width: 100%;
    display: flex;
    justify-content: center;
    margin: 0.5rem 0;
  }

  .hamburger {
    display: block;
  }
}


/* news part code */
.news-banner img {
  width: 100%;
  height: auto;
  margin: 2rem 0;
}


.news-grid {
  padding: 2rem;
  background: #f9f9f9;
}

.news-grid h2 {
  text-align: center;
  margin-bottom: 1.5rem;
}

.news-cards {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.news-card {
  display: flex;
  gap: 1rem;
  background: white;
  border-radius: 6px;
  box-shadow: 0 0 8px rgba(0,0,0,0.1);
  overflow: hidden;
  align-items: center;
  padding: 1rem;
}

.news-card img {
  width: 200px;
  height: auto;
  border-radius: 4px;
  flex-shrink: 0;
}

.news-card p {
  margin: 0;
  font-size: 1.2rem;
  line-height: 1.4;
  max-width: 100%;
  text-align: right;
}

/* Optional for responsiveness */
@media (max-width: 768px) {
  .news-card {
    flex-direction: column;
    align-items: flex-start;
  }

  .news-card img {
    width: 100%;
    height: auto;
  }

  .news-card p {
    max-width: 100%;
  }
}


/* Navigation Bar Background */
header {
  background: #2F5249;
}

/* Hero Banner */

.hero-carousel {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
}

.hero-slide {
  position: relative;
  flex: 0 0 100%;
  scroll-snap-align: center;
  cursor: pointer;
  /* position: absolute; */
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: none;
}

.hero-slide img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

.overlay-mask {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to right, rgba(100, 100, 100, 0.5), rgba(255, 255, 255, 0));
}

.hero-caption {
  position: absolute;
  top: 50%;
  left: 0;
  transform: translateY(-50%);
  width: 100%;
  height: 100%;
  color: white;
  font-size: calc(100vh / 9 / 3);
  font-weight: bold;
  text-align: center;
  background: linear-gradient(to right, rgba(47,47,47,0.6), rgba(255,255,255,0));
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  text-shadow: 1px 1px 5px rgba(0, 0, 0, 0.4);
}

.hero-slide.active {
  display: block;
}

.carousel-controls {
  position: absolute;
  width: 100%;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  justify-content: space-between;
  padding: 0 1rem;
  pointer-events: none;
}

.carousel-controls button {
  background: rgba(0, 0, 0, 0.3);
  color: white;
  border: none;
  font-size: 2rem;
  cursor: pointer;
  pointer-events: auto;
  padding: 0.5rem 1rem;
  border-radius: 4px;
  /*transition: background 0.3s; I have no idea what this is*/
}

.carousel-controls button:hover {
  background: rgba(0, 0, 0, 0.6);
}

.carousel-dots {
  position: absolute;
  width: 100%;
  bottom: 1rem;
  text-align: center;
}

.dot {
  height: 12px;
  width: 12px;
  margin: 0 5px;
  background-color: #ccc;
  border-radius: 50%;
  display: inline-block;
  transition: background-color 0.3s;
  cursor: pointer;
}

.dot.active {
  background-color: #437057;
}

.product-grid h2 {
  text-align: center;
  color: #437057;
}

/* Product Carousel */
.carousel-container {
  display: flex;
  gap: 1rem;
  overflow-x: auto;
  padding: 1rem;
  scroll-snap-type: x mandatory;
}

.product-item {
  position: relative;
  width: 100%;
  max-width: 400px;
  aspect-ratio: 1 / 1; /* Maintain square shape */
  flex-shrink: 0;
  border-radius: 8px;
  overflow: hidden;
  cursor: pointer;
  scroll-snap-align: start;
  background-color: #f0f0f0;
  transition: transform 0.3s ease;
}

.product-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  position: center;
}

/* Caption mask */
.product-caption {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to right, rgba(47, 47, 47, 0.6), rgba(255, 255, 255, 0));
  color: white;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  transition: all 0.3s ease;
  padding: 1rem;
}
.product-name {
  font-size: clamp(1.5rem, 2vw, 2rem);
  font-weight: bold;
  margin-bottom: 0.5rem;
  padding-right: 1rem;
}

.product-desc {
  font-size: clamp(1rem, 1vw, 1rem);
  font-weight: normal;
  color: #f0f0f0;
  opacity: 1;
  transition: opacity 0.3s ease;
  padding-right: 1.5rem;
}

/* Hover effect */
.product-item:hover .product-caption {
  background: white;
  color: #437057;
}

.product-item:hover .product-name {
  color: #437057;
}

.product-item:hover .product-desc {
  opacity: 0;
}

/* News */
.news-grid h2 {
  color: #437057;
}

@media (max-width: 768px) {
  .product-caption {
    font-size: 1.5rem;
  }

  .product-item {
    min-width: 90vw;
    height: auto;
  }

  .product-item .product-caption {
    font-size: 1rem;
  }
}


.product-item:hover .product-caption {
  background: white;
  color: #437057;
}


.bg-innovation {
  background-color: #97B067;
  color: white;
}

.bg-technology {
  background-color: #E3DE61;
  color: white;
}

.bg-innovation .text h3,
.bg-technology .text h3,
.bg-innovation .text p,
.bg-technology .text p {
  color: white;
}

/* Shared layout */
.bg-innovation, .bg-technology {
  display: flex;
  align-items: center;
  gap: 2rem;
  padding: 2rem;
  color: white;
  flex-wrap: wrap;
}

/* Backgrounds */
.bg-innovation {
  background-color: white;
}

.bg-technology {
  background-color: white;
  flex-direction: row-reverse; /* 👈 Flip for text-left, image-right */
}

/* Image sizing */
.bg-innovation img,
.bg-technology img {
  width: 400px;
  height: 400px;
  object-fit: cover;
  object-position: center;
  border-radius: 8px;
  flex-shrink: 0;
}

/* Text styling */
.bg-innovation .text,
.bg-technology .text {
  flex: 1;
  color:#437057;
}

.bg-innovation .text h3,
.bg-technology .text h3,
.bg-innovation .text p,
.bg-technology .text p {
  margin: 0.5rem 0;
  color: #437057;
}

/* Responsive */
@media (max-width: 768px) {
  .bg-innovation,
  .bg-technology {
    flex-direction: column;
    text-align: center;
  }

  .bg-innovation img,
  .bg-technology img {
    width: 100%;
    max-width: 300px;
    height: auto;
    aspect-ratio: 1 / 1;   /* Keeps square aspect */
    object-fit: cover;
  }
}



@media (max-width: 768px) {
  .product-caption {
    font-size: 1.5rem;
  }

  .product-item {
    min-width: 90vw;
    height: auto;
  }

  .product-item .product-caption {
    font-size: 1rem;
  }
}

.logo-container {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.logo-text {
  font-weight: bold;
  font-size: 1.5rem;
  color: white;
}

.logo-img {
  height: 40px;
  width: auto;
}
