/* RESET + BASE */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: Arial, sans-serif;
  background-color: #f5f5f5;
  color: #333;
}

body {
  opacity: 0;
  transition: opacity 0.6s ease-in-out;
}

body.fade-in {
  opacity: 1;
}

/* HEADER + NAVIGATION */
.top-header {
  background-color: white;
  padding: 20px 0;
  border-bottom: 1px solid #eaeaea;
}

.navbar-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  position: relative;
}

.logo-container {
  padding: 10px;
}

.logo-img {
  width: 300px;
  max-width: 100%;
}

/* MENU */
.main-navbar {
  display: flex;
  align-items: center;
}

.nav-menu {
  display: flex;
  gap: 40px;
  list-style: none;
}

.nav-menu li a {
  color: #264D3B;
  font-weight: bold;
  text-decoration: none;
  font-size: 18px;
}

.nav-menu li a:hover {
  color: #00b5ff;
}

/* Hamburger icon for mobile */
.menu-toggle {
  display: none;
  font-size: 28px;
  cursor: pointer;
  color: #264D3B;
  background: none;
  border: none;
}

/* CAROUSEL */
.carousel-container {
  width: 100%;
  max-width: 1200px;
  height: 500px;
  margin: 20px auto;
  position: relative;
  overflow: hidden;
}

.carousel-slide img {
  max-width: 100%;
  height: auto;
}

.carousel-slide {
  display: flex;
  width: 100%;
  height: 100%;
  position: absolute;
  opacity: 0;
  transition: opacity 1s ease;
}

.carousel-slide.active {
  opacity: 1;
  z-index: 2;
}

.carousel-image {
  width: 60%;
  height: 100%;
  overflow: hidden;
}

.carousel-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.carousel-text {
  width: 40%;
  background-color: #002E5D;
  color: white;
  padding: 80px 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.carousel-text h2 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.carousel-text span {
  color: #00b5ff;
}

.carousel-text p {
  font-size: 1.2rem;
  line-height: 1.6;
}

.carousel-controls {
  position: absolute;
  top: 50%;
  width: 100%;
  z-index: 3;
  display: flex;
  justify-content: space-between;
  transform: translateY(-50%);
}

.carousel-controls button {
  background: rgba(255, 255, 255, 0.6);
  border: none;
  padding: 10px 20px;
  font-size: 30px;
  cursor: pointer;
}

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

.carousel-dots {
  position: absolute;
  bottom: 20px;
  width: 100%;
  display: flex;
  justify-content: center;
  gap: 10px;
  z-index: 3;
}

.carousel-dots .dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: white;
  opacity: 0.5;
  cursor: pointer;
}

.carousel-dots .dot.active {
  opacity: 1;
  background: #00b5ff;
}

/* BUTTON */
.cta-button {
  display: inline-block;
  margin: 20px auto;
  padding: 14px 28px;
  font-size: 1.1rem;
  background-color: #264D3B;
  color: white;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  transition: background 0.3s ease;
}
.cta-button:hover {
  background-color: #1e3b2f;
}

/* VIDEO */
.video-container {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  margin: 1rem 0;
}

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

/* FOOTER */
footer {
  background-color: #eee;
  text-align: center;
  padding: 1em;
  margin-top: 40px;
}

/* RESPONSIVE NAVIGATION */
@media (max-width: 768px) {
  .menu-toggle {
    display: block;
  }

  .nav-menu {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 100%;
    right: 20px;
    background: white;
    padding: 1em;
    width: 200px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
    border-radius: 8px;
  }

  .nav-menu.active {
    display: flex;
  }

  .carousel-container {
    height: auto;
  }

  .carousel-slide {
    flex-direction: column;
  }

  .carousel-image,
  .carousel-text {
    width: 100%;
    height: auto;
  }

  .carousel-text {
    padding: 40px 20px;
  }
}

.nav-menu {
  display: flex;
  gap: 1.5rem;
  list-style: none;
}

.menu-toggle {
  display: none;
  font-size: 28px;
  cursor: pointer;
}

.nav-menu li {
  margin: 15px 0;
}

/* Desktop navigation menu font size */
.nav-menu li a {
  font-size: 1.2rem; /* Try 1.2rem to 1.5rem depending on your preference */
  font-weight: 500;
}

/* Mobile navigation menu font size */
@media (max-width: 768px) {
  .nav-menu li a {
    font-size: 1.4rem; /* Slightly larger for better tap accessibility */
    font-weight: 600;
  }
}

@media (max-width: 768px) {
  .nav-menu {
    display: none;
    flex-direction: column;
    background-color: white;
    position: absolute;
    top: 80px; /* below header */
    left: 0;
    width: 100%;
    padding: 1rem;
    z-index: 1000;
  }

  .nav-menu.active {
    display: flex;
  }

  .menu-toggle {
    display: block;
  }
  
}

/* Hide menu by default on small screens */
/* --- Base nav-menu style --- */
.nav-menu {
  display: flex;
  gap: 1.5em;
  list-style: none;
  margin: 0;
  padding: 0;
}

/* --- Mobile Styles --- */
@media (max-width: 768px) {
  .nav-menu {
    flex-direction: column;
    align-items: center;
    background-color: white;
    position: absolute;
    top: 70px;
    left: 0;
    width: 100%;
    overflow: hidden;
    max-height: 0;
    opacity: 0;
    transition: max-height 0.5s ease, opacity 0.3s ease;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    z-index: 1000;
  }

  .nav-menu.active {
    max-height: 500px; /* adjust this value if needed */
    opacity: 1;
  }

  .nav-menu li {
    margin: 12px 0;
  }

  .menu-toggle {
    display: block;
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 2rem;
    cursor: pointer;
    z-index: 1100;
  }
}

/* --- Desktop Only --- */
@media (min-width: 769px) {
  .menu-toggle {
    display: none;
  }
}