/* 🔹 Navbar styles */
.nav ul {
  margin: 0;
  display: flex;
  padding: 0;
  gap: 30px;
}

.lock {
  overflow: hidden;
}

.nav-btns button:nth-child(1) {
  border: 1px solid black;
  outline: none;
  background-color: transparent;
  padding: 10px 25px;
  border-radius: 10px;
  cursor: pointer;
  font-weight: 500;
}

.nav-btns button:nth-child(2) {
  border: 1px solid black;
  outline: none;
  background-color: transparent;
  padding: 10px 25px;
  border-radius: 10px;
  cursor: pointer;
  font-weight: 500;
}

/* Optional: Hover effect */
.nav-btns button:nth-child(1):hover {
  background-color: #f3f3f3;
}

.nav-btns button:nth-child(2):hover {
  background-color: #f3f3f3;
}

a {
  text-decoration: none;
  color: black;
  display: inline-block;
  margin: 15px 10px;
}

.ham {
  display: none;
}

.overlay {
  display: none;
  width: 100%;
  justify-content: center;
  align-items: center;
}

nav {
  display: flex;
  align-items: center;
  justify-content: space-around;
}

/* 🔹 Dropdown */
.dropdown {
  position: relative;
  display: inline-block;
}

.dropdown-content {
  border-radius: 10px;
  padding: 25px;
  display: none;
  position: absolute;
  background-color: white;
  width: 250px;
  z-index: 1;
  box-shadow: 0px 8px 16px 0px rgba(0, 0, 0, 0.2);
}

.dropdown-content a {
  border-radius: 10px;
  padding: 12px;
  display: flex;
  align-items: center;
  color: black;
}

.dropdown-content img {
  margin-right: 10px;
}

.dropdown-content a:hover {
  background-color: #ddd;
}

/* 🔹 Corrected hover dropdown */
.dropdown:hover .dropdown-content {
  display: block;
}

/* 🔹 Hero section */
h1 {
  font-size: 70px;
  width: 500px;
}

.hero {
  display: grid;
  grid-template-columns: repeat(2, 450px);
  grid-gap: 80px;
  margin: 0 auto;
  max-width: 1200px;
  justify-content: center;
  align-items: center;
}

.img-container img {
  width: 100%;
}

.learn-more {
  background-color: black;
  color: white;
  padding: 12px 25px;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 600;
  transition: 0.3s ease;
}

.learn-more:hover {
  background-color: #333;
}

.logo-section {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 20px;
  margin-top: 30px;
}

.attribution {
  text-align: center;
  margin: 20px 0;
  font-size: 14px;
  color: #555;
}

.attribution a {
  color: #000;
  text-decoration: none;
  font-weight: 600;
}

.attribution a:hover {
  text-decoration: underline;
}

/* ------------------------
   NAVBAR + HAMBURGER
------------------------ */
.nav {
  position: relative;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
}

/* Hamburger icon hidden by default */
.ham {
  display: nonblock;
  cursor: pointer;
}

/* Desktop nav-ul and buttons normal display */
.nav-ul {
  display: flex;
  list-style: none;
  gap: 30px;
}

.nav-btns {
  display: flex;
  gap: 15px;
}

.nav-btns button {
  padding: 10px 20px;
  border-radius: 8px;
  border: 1px solid black;
  background: white;
  cursor: pointer;
}

/* Dropdowns */
.dropdown-content {
  display: none;
  position: absolute;
  background: white;
  box-shadow: 0px 8px 16px rgba(0, 0, 0, 0.2);
  border-radius: 8px;
  padding: 15px 0;
}

.dropdown:hover .dropdown-content {
  display: flex;
  flex-direction: column;
}

/* -------------------------
   MOBILE RESPONSIVE
-------------------------- */
@media (max-width: 900px) {
  /* Show hamburger */
  .ham {
    display: block;
    cursor: pointer;
  }

  /* Hide normal nav items initially */
  .nav-ul,
  .nav-btns {
    display: none;
    align-items: center;
  }

  /* Show menu when hover on nav */
  .nav:hover .nav-ul {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 60px; /* just below hamburger */
    left: 0;
    right: 0;
    background: #fff;
    padding: 20px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    list-style: none;
    z-index: 999;
    text-align: center;
  }

  .nav-ul li {
    margin: 10px 0;
  }

  .dropdown-content {
    display: none; /* hide dropdown inside mobile */
  }

  /* HERO Section */
  .hero {
    display: grid;
    grid-template-columns: 1fr;
    text-align: center;
    margin: 40px auto;
  }

  .hero-text {
    font-size: 32px;
    width: 100%;
    margin-bottom: 20px;
  }

  .img-container img {
    content: url("./images/image-hero-mobile.png");
    max-width: 100%;
  }

  /* Logo Section */
  .logo-section {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    align-items: center;
    gap: 20px;
    margin-top: 30px;
  }

  .logo-section img {
    width: 90px;
    height: auto;
    object-fit: contain;
  }
}
