/* Main Colors:
 > Green      - 7CBB2B
 > Dark Blue  - 003366
 > Light Blue - 4DAEFE
*/

body {
  margin: 0;
  font-family: 'Montserrat', sans-serif;
  overflow-x: hidden;
}

/* Navbar */
.navbar {
    background-color: #004d99;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 30px;
    position: relative;
    color: white;
}

/* Logo */
.navbar-logo img {
    height: 40px;
    width: auto;
}

/* Centered title */
.navbar-title {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    font-size: 1.5em;
    font-weight: 600;
    color: white;
    margin: 0;
}

/* Navigation links */
.navbar-links {
    list-style: none;
    display: flex;
    gap: 25px;
    margin: 0;
    padding: 0;
}

.navbar-links li a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
}

.navbar-links li a:hover {
    color: #7CBB2B; /* green hover effect */
}

/* Responsive for small screens */
@media (max-width: 768px) {
    .navbar-links {
        display: none; /* could add hamburger menu later */
    }

    .navbar-title {
        font-size: 1.2em;
    }
}

/* Video & Text */

.mw-hero {
  position: relative;
  height: 50vh;
  overflow: hidden;
}

.mw-video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(60%);
  z-index: 0;
}

.mw-overlay {
  position: absolute;
  top: 50%;
  left: 10%;
  transform: translateY(-50%);
  color: white;
  z-index: 1;
}

.mw-title {
  font-size: clamp(2rem, 6vw, 4rem);
  font-weight: 700;
  margin: 0;
}

.mw-title span {
  color: #7CBB2B;
}

.mw-subtitle {
  margin-top: 10px;
  font-size: clamp(0.9rem, 2.5vw, 1.3rem);
  color: rgba(255, 255, 255, 0.85);
  letter-spacing: 0.5px;
}

/* Section 1 */

.mosquito-section {
  padding: 60px 8%;
  background-color: #fff;
  color: #000;
}

.mosquito-heading {
  text-align: center;
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  font-weight: 700;
  margin-bottom: 40px;
  line-height: 1.2;
}

.mosquito-green {
  color: #7CBB2B; 
}

.mosquito-blue {
  color: #4DAEFE; 
}

.mosquito-flex {
  display: flex;
  align-items: stretch; 
  justify-content: center;
  gap: 40px;
}

.mosquito-image {
  flex: 1 1 400px;
  max-width: 500px;
}

.mosquito-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;        
  object-position: center;  
  border-radius: 10px;
  display: block;
}

.mosquito-text {
  flex: 1 1 400px;
  max-width: 700px;
  font-size: 1rem;
  line-height: 1.6;
}

.mosquito-text p {
  margin-bottom: 20px;
}

/* Responsive tweak for small screens */
@media (max-width: 768px) {
  .mosquito-section {
    padding: 40px 5%;
  }

  .mosquito-flex {
    flex-direction: column;
    align-items: center;
  }

  .mosquito-text {
    text-align: justify;
  }
}

/* Section 2 */

.carousel-section {
  background: #fff;
  padding-bottom: 60px;
  text-align: center;
}

.carousel-heading {
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  font-weight: 700;
  margin-bottom: 40px;
}

.carousel-green { color: #7CBB2B; }
.carousel-blue { color: #4DAEFE; }

.carousel-wrapper {
  width: 100%;
  max-width: 1100px;
  margin-inline: auto;
  overflow: hidden;
  border-radius: 14px;
  position: relative;
}

.carousel-track {
  display: flex;
  gap: 20px;
  /* vvv Adjust Time vvv */
  animation: slide-pingpong 30s ease-in-out infinite alternate;
}

/* Desktop: show 2 images at once */
.carousel-track img {
  flex: 0 0 calc(50% - 10px);
  border-radius: 14px;
  object-fit: contain;
}

/* Mobile: show only 1 */
@media (max-width: 800px) {
  .carousel-track img {
    flex: 0 0 100%;
  }
}

@keyframes slide-pingpong {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(calc(-192% - 60px));
  }
}

/* Section 3 */

.ai-performance {
  background: #fff;
  text-align: center;
  /* padding: 80px 8% 0; */
  color: #000;
}

.ai-text h2 {
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  font-weight: 700;
  margin-bottom: 20px;
}

.ai-green {
  color: #7CBB2B;
}

.ai-text p {
  max-width: 800px;
  margin: 0 auto 40px auto;
  font-size: 1rem;
  color: #333;
  line-height: 1.6;
}

.ai-image {
  width: 100vw;
  height: 100vh;
  overflow: hidden; /* allow full image */
  max-height: none; /* remove height restriction */
}

.ai-image img {
  width: 100%;
  height: auto;
  object-fit: cover;
  display: block;
  margin: 0 auto;
}

/* Mosquito Info -- Table */

.table-section {
    padding: 60px 8%;
}

.table-section h2 {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 25px;
    color: #003366;
}

table {
    width: 100%;
    border-collapse: collapse;
    font-size: 1rem;
}

table th {
    background: #004d99;
    color: white;
    padding: 10px;
    text-align: left;
}

table td {
    padding: 10px;
    border-bottom: 1px solid #ddd;
}

table tr:nth-child(even) {
    background-color: #f5f5f5;
}

table tr:hover {
    background-color: #e8f4ff;
}

td ul {
    padding-left: 18px;
    margin: 0;
}

td ul li {
    margin-bottom: 4px;
    line-height: 1.3;
}

/* Optional: remove bullets */
td ul {
    list-style-type: disc;  /* change to 'none' if you don't want bullets */
}

.even-row {
    background-color: #f3f3f3;
}

.odd-row {
    background-color: #ffffff;
}

/* About -- Images */

.rotate-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 25px;
  padding: 40px 0;
}

/* CAROUSEL CONTAINER */
.carousel-wrapper {
  width: fill;       /* match center image size */
  overflow: hidden;
  border-radius: 12px;
}

/* TRACK that moves */
.carousel-track {
  display: flex;
  gap: 10px;
  animation: slide-left 15s linear infinite;
}

/* Images in carousel */ .carousel-track img, .center-img {
    width: fill;
    height: 75vh;
    object-fit: cover;
    border-radius: 12px; 
  }


/* Different speed for bottom carousel if needed */
.bottom-carousel .carousel-track {
  animation: slide-left 20s linear infinite reverse;
}

/* ANIMATION */
@keyframes slide-left {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-770px); /* (number of original images) * image width + gaps */
  }
}

