body, html {
  margin: 0;
  padding: 0;
  color: #1b0419;
  font-family: Arial, sans-serif;
  background-color: #3d0f1e;
  scroll-behavior: smooth;
}
nav {
  position: fixed;
  color: #f97e05;
  top: 0;
  width: 100%;
  height: 37px;
  background-color: #3d0f1e;
  padding: 10px;
  z-index: 1000;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: top 0.5s ease;
}

nav p {
  margin: 7px;
}

#switch-language-btn {
  background: none;
  border: none;
  margin-right: -20px;
  cursor: pointer;
}

#flag-img {
  width: 30px;
}

section {
  height: 100vh;
  padding: 50px;
  box-sizing: border-box;
}

section h1 {
  position: relative;
  display: inline-block;
  padding: 55px 20px 10px;
  background-color: #3d0f1e;
  color: #f97e05;
  top: -50px;
  margin: 0;
  border-radius: 0 0 10px 10px;
}

#welcome {
    height: fit-content;
    background-color: #f9d6ac;
}
#our-product { background-color: #f4b983; }
#our-news {
  height: fit-content;
  background-color: #e78e44;
}
#contact { background-color: #d97f2b; }

footer {
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
  color: #f97e05;
  background-color: #3d0f1e;
  font-size: 16px;
  padding: 40px 20px 20px;
  gap: 20px;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 20px;
}

.footer-left {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-right {
  text-align: right;
  font-size: 18px;
}

.funding-acknowledgment {
  text-align: right;
  font-size: 14px;
  line-height: 1.5;
  color: #f97e05;
  margin-bottom: 15px;
}

.funding-logos {
  display: flex;
  align-items: center;
  gap: 15px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.logo {
  height: 90px;
  max-width: 120px;
  object-fit: contain;
}

.col-container {
  display: flex;
  justify-content: space-around;
  align-items: center;
  gap: 15px;
  height: 100%;
}

nav .col-container {
  padding-right: 20px;
}

#our-product .col-container {
  margin-top: -50px;
}

#contact .col-container {
  gap: 0;
}

.col-item {
  text-align: center;
  transition: transform 0.3s ease;
}
.col-item img {
  max-width: 100%; 
  height: auto; 
  transition: transform 0.3s ease;
}
.col-item i {
  font-size: 4em;
  margin-bottom: 10px;
  transition: transform 0.3s ease;
}
.col-item p {
  transition: transform 0.3s ease;
}
.col-item a {
  color: inherit;
  text-decoration: none;
}
#donateButton:hover,
#contact .col-item:hover i,
#contact .col-item:hover p {
  transform: scale(1.2);
}

.menu-btn {
  --s: 30px;
  --c: #f97e05;
  display: none;

  height: var(--s);
  aspect-ratio: 1;
  border: none;
  padding: 0;
  border-inline: calc(var(--s)/2) solid #0000;
  box-sizing: content-box;
  --_g1: linear-gradient(var(--c) 20%,#0000 0 80%,var(--c) 0)
         no-repeat content-box border-box;
  --_g2: radial-gradient(circle closest-side at 50% 12.5%,var(--c) 95%,#0000)
         repeat-y content-box border-box;
  background:
    var(--_g2) left  var(--_p,0px) top,
    var(--_g1) left  calc(var(--s)/10 + var(--_p,0px)) top,
    var(--_g2) right var(--_p,0px) top,
    var(--_g1) right calc(var(--s)/10 + var(--_p,0px)) top;
  background-size:
    20% 80%,
    40% 100%;
  position: relative;
  clip-path: inset(0 25%);
  -webkit-mask: linear-gradient(90deg,#0000,#000 25% 75%,#0000);
  cursor: pointer;
  transition:
    background-position .3s var(--_s,.3s),
    clip-path 0s var(--_s,.6s);
  -webkit-appearance:none;
  -moz-appearance:none;
  appearance:none;
}
.menu-btn:before,
.menu-btn:after {
  display: block;
  content:"";
  position: absolute;
  border-radius: var(--s);
  inset: 40% 0;
  background: var(--c);
  transition: transform .3s calc(.3s - var(--_s,.3s));
}

.menu-btn:checked {
  clip-path: inset(0);
  --_p: calc(-1*var(--s));
  --_s: 0s;
}
.menu-btn:checked:before {
  transform: rotate(45deg);
}
.menu-btn:checked:after {
  transform: rotate(-45deg);
}
.menu-btn:focus-visible {
  display: block;
  clip-path: none;
  -webkit-mask: none;
  border: none;
  outline: 2px solid var(--c);
  outline-offset: 5px;
}

.menu {
  position: fixed;
  display: flex;
  justify-content: center;
  height: 100%;
  background-color: #ecc09a;
  top: 57px;
  right: -120%;
  transition: right 0.6s ease;
  z-index: 999;
}

.menu.open {
  right: 0;
}

.menu ul {
  list-style-type: none;
  padding: 0;
  text-align: center;
  margin-top: 20px;
}

.menu ul li {
  margin-bottom: 20px;
}

.menu ul li a {
  display: block;
  color: #3d0f1e;
  text-decoration: none;
  font-size: 24px;
  padding: 10px;
  transition: color 0.3s ease, transform 0.3s ease;
}

.menu ul li a:hover {
  color: black;
  transform: scale(1.1);
}

.menu-links { transition: color 0.3s ease; }
.menu-links:hover { color: orange; }

.welcome-content {
  display: flex;
  margin-top: -50px;
  flex-direction: column;
  align-items: center;
}

#logo {
  width: 200px;
  height: auto;
}

#productName {
  font-size: 2em;
  margin: 10px 0;
}

#slogan {
  font-size: 1.2em;
  color: #772b1b;
}

#introduction {
  width: 600px;
}

.video-container {
  position: relative;
  width: 600px;
  padding-bottom: 338px;
  height: 0;
  overflow: hidden;
}

.video-container iframe,
.video-container video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

#hollowLoader {
  position: relative;
  top: 50%;
  left: 50%;
  width: 3em;
  height: 3em;
  animation: loaderAnim 1.25s infinite ease-in-out;
  outline: 1px solid transparent;
  .largeBox {
    height: 3em;
    width: 3em;
    background-color: #3d0f1e;
    outline: 1px solid transparent;
  }
  .smallBox {
    height: 3em;
    width: 3em;
    background-color: #f97e05;
    z-index: 1;
    outline: 1px solid transparent;
    animation: smallBoxAnim 1.25s alternate infinite ease-in-out;
  }
}

@keyframes smallBoxAnim {
  0% {transform: scale(0.2);}
  100% {transform: scale(0.75);}
}

@keyframes loaderAnim {
  0% {transform: rotate(0deg);}
  100% {transform: rotate(90deg);}
}

#product-text {
  flex-basis: 55%;
}

#prototype {
  flex-basis: 45%;
  width: 100%;
  height: 100%;
}

.carousel {
  position: relative;
  width: 100%;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 20px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.carousel-inner {
  display: flex;
  transition: transform 0.5s ease-in-out;
  height: 100%;
  min-height: 400px;
  width: 100%;
}

.carousel-inner.no-transition {
  transition: none;
}

.carousel-item {
  min-width: 100%;
  flex: 0 0 100%;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
}

article {
  background: #f9d6ac;
  padding: 40px;
  border-radius: 10px;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 400px;
}

article h2 {
  font-size: 2.5rem;
  margin-bottom: 20px;
  font-weight: 700;
  color: #333;
  opacity: 0;
  transform: translateY(30px);
  animation: slideInUp 0.8s ease forwards;
  animation-delay: 0.2s;
}

.carousel-item img {
  width: 100%;
  max-width: 650px;
  height: auto;
  border-radius: 8px;
  margin: 20px auto;
  display: block;
  opacity: 0;
  transform: translateY(30px);
  animation: slideInUp 0.8s ease forwards;
  animation-delay: 0.3s;
}

#news-date, #news-date1, #news-date2, #news-date3, #news-date4 {
  color: #772b1b;
  font-size: 0.9em;
  margin-bottom: 10px;
  opacity: 0;
  transform: translateY(30px);
  animation: slideInUp 0.8s ease forwards;
  animation-delay: 0.4s;
}

#Newscon-text, #Newscon-text1, #Newscon-text2, #Newscon-text3, #Newscon-text4 {
  font-size: 1.2rem;
  line-height: 1.6;
  color: #333;
  opacity: 0;
  transform: translateY(30px);
  animation: slideInUp 0.8s ease forwards;
  animation-delay: 0.5s;
  word-wrap: break-word;
  overflow-wrap: break-word;
  hyphens: auto;
}

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

.controls button {
  background: rgba(61, 15, 30, 0.6);
  color: #f97e05;
  border: none;
  padding: 15px 20px;
  cursor: pointer;
  border-radius: 5px;
  font-size: 24px;
  transition: all 0.3s ease;
  pointer-events: all;
  min-width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.controls button:hover {
  background: rgba(61, 15, 30, 0.8);
  transform: scale(1.1);
}

.controls button:active {
  transform: scale(0.95);
}

.carousel-indicators {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
  z-index: 10;
}

.indicator {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(119, 43, 27, 0.4);
  cursor: pointer;
  transition: all 0.3s ease;
}

.indicator.active {
  background: #772b1b;
  transform: scale(1.2);
}

@keyframes slideInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 625px) {
  #our-product .col-container,
  #contact .col-container {
    flex-direction: column-reverse;
    height: auto;
    margin-top: 0;
    gap: 0;
  }
  #our-product, #contact { height: fit-content; }
  .menu-links { display: none; }
  #menu-btn { display: block; }

  nav .col-container { 
    gap: 0; 
    padding-right: 0;
  }

  #switch-language-btn { margin-right: 0; }
  #introduction { width: auto; }
  .video-container {
    width: 100%;
    padding-bottom: 56.32%
  }

  footer {
    font-size: 14px;
    padding: 30px 15px 15px;
  }

  .footer-content {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .footer-right {
    text-align: center;
  }

  .funding-logos {
    justify-content: center;
  }

  .funding-acknowledgment {
    text-align: center;
  }
}

@media (max-height: 600px) {
  #our-product, #contact { height: fit-content; }
}

@media (max-width: 480px) {
  .carousel-inner {
    min-height: 320px;
  }

  article {
    padding: 20px 15px;
    min-height: 320px;
    overflow: hidden;
  }

  article h2 {
    font-size: 1.4rem;
    margin-bottom: 10px;
    word-wrap: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
    line-height: 1.3;
  }

  .carousel-item img {
    max-width: 180px;
    margin: 10px auto;
    display: block;
  }

  #news-date, #news-date1, #news-date2, #news-date3, #news-date4 {
    font-size: 0.8em;
    margin-bottom: 8px;
  }

  #Newscon-text, #Newscon-text1, #Newscon-text2, #Newscon-text3, #Newscon-text4 {
    font-size: 0.85rem;
    line-height: 1.4;
    word-wrap: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
    text-align: left;
    max-width: 100%;
  }

  .controls {
    padding: 0 10px;
  }

  .controls button {
    width: 40px;
    height: 40px;
    font-size: 18px;
    padding: 8px;
  }

  .indicator {
    width: 10px;
    height: 10px;
  }
}