@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;600;700&display=swap");

:root {
  --body-color: #f5f7fb;
  --dark-blue: #1f3f91;
  --footer-color: #111827;
  --footer-text-color: #d1d5db;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* TExt Formats */

.h1-formatted {
  font-size: 58px;
  color: var(--dark-blue);
  font-weight: 700;
}

.h2-formatted {
  font-size: 42px;
  color: var(--dark-blue);
  font-weight: 700;
}

.h3-formatted {
  font-size: 36px;
}

.h4-formatted {
  font-size: 22px;
}

.p-formatted {
  font-size: 18px;
}

body {
  font-family: "Inter", sans-serif;
  background-color: var(--body-color);
  color: #333;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 12vh;
}

/* header */

header {
  background-color: #ffffff;
  padding: 0 5vw;
  border-bottom: 1px solid #eeeeee;
  margin-bottom: 6vh;
}

.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 0;
}

.logo-link {
  text-decoration: none;
}

.logo-img {
  height: 40px;
  width: auto;
  user-select: none;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 48px;
}

.mobile {
  display: none;
}

.dropdown-title {
  color: #888;
  font-size: 1.1rem;
  margin-top: 8px;
  margin-bottom: 4px;
  display: block;
  font-weight: 700;
}

.nav-link,
.dropdown-toggle {
  font-weight: 500;
  font-size: 16px;
  position: relative;
  text-decoration: none;
  margin: 0 15px;
  color: #333;
  transition: color 0.3s ease;
  width: fit-content;
}

/* links animation */
.nav-link::after {
  content: "";
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--dark-blue);
  transition: width 0.3s ease;
}

.nav-link:hover {
  color: var(--dark-blue);
}

.nav-link:hover::after {
  width: 100%;
}
/* links animation */

/* dropdown menu */
.nav-item {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.dropdown-toggle {
  background: none;
  border: none;
  cursor: pointer;
}

.arrow {
  font-size: 14px;
}

.dropdown-toggle .arrow {
  margin-left: 0.3rem;
  display: inline-block;
  transition: transform 0.3s ease;
}

.dropdown-toggle.open .arrow {
  transform: rotate(180deg);
}

.dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: fit-content;
  background: #fff;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
  padding: 1rem;
  z-index: 100;
  border-radius: 0.5rem;
}

.dropdown-menu a {
  display: block;
  color: #000;
  text-decoration: none;
  white-space: nowrap;
}

.dropdown-menu.show {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 1.2rem;
}

.dropdown-menu.open-right {
  left: 0;
}

.dropdown-menu.open-left {
  right: 0;
  left: auto;
}

/* dropdown menu */
.partner-button {
  padding: 8px 16px;
  border: 2px solid var(--dark-blue);
  border-radius: 20px;
  background-color: var(--dark-blue);
  color: var(--body-color);
  font-weight: 600;
  cursor: pointer;
  user-select: none;
  transition: transform 0.3s ease;
  overflow: hidden;
}

/* button animation */
.partner-button:hover {
  transform: translateY(-2px);
}

/* end header  */

/* main */

/* hero */
.hero {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 5em;
}

.hero-left-section {
  display: flex;
  flex-direction: column;
  gap: 20px;
  max-width: 35vw;
}

.hero-left-section p {
  color: #666;
  max-width: 80%;
}

.buttons {
  display: flex;
  gap: 2em;
}

.button-get-involved {
  background-color: var(--dark-blue);
  color: #ffffff;
  padding: 12px 24px;
  border-radius: 24px;
  text-decoration: none;
  font-weight: 600;
  user-select: none;
  transition: all 0.3s ease;
}

/* button animation */

.button-get-involved:hover {
  transform: translateY(-3px);
}

.button-learn-more {
  padding: 12px 24px;
  border: 2px solid var(--dark-blue);
  border-radius: 24px;
  text-decoration: none;
  color: var(--dark-blue);
  font-weight: 600;
  user-select: none;
  transition: all 0.3s ease;
}

/* button animation */

.button-learn-more:hover {
  transform: translateY(-3px);
}

.hero-right-image {
  max-width: 40%;
}

.hero-right-image img {
  user-select: none;
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
  height: auto;
  display: block;
}

/* end hero */
/* who we are */
.who-we-are-container {
  display: flex;
  flex-wrap: wrap;
  gap: 5em;
  justify-content: center;
}

.who-text-container {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 20px;
}

.who-text-container p {
  max-width: 34vw;
}

.who-learn-link {
  color: var(--dark-blue);
  font-weight: 600;
  text-decoration: none;
  font-size: 16px;
  transition: color 0.15s ease;
}

/* learn link animation */

.who-learn-link:hover {
  color: #0c2a71;
}

.features-container {
  max-width: 40vw;
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  flex: 1 1 100%;
}

.feature-card {
  flex: 1 1 40%;
  background-color: #ffffff;
  padding: 1.4rem;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* card animation */

.feature-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.icon {
  user-select: none;
  font-size: 32px;
  color: var(--dark-blue);
  margin-bottom: 16px;
}

.feature-card h4 {
  font-weight: 700;
  margin-bottom: 10px;
}

/* who we are end */

/* video */

.video-container {
  width: 100%;
  justify-content: center;
  align-items: center;
  display: flex;
  gap: 5em;
  margin-bottom: 50px;
}

.video-section {
  aspect-ratio: 16 / 9;
  width: 40%;
  position: relative;
}

.video-section iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
  border-radius: 1.5rem;
}

.right-section-description {
  max-width: 35%;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.right-section-description h2 {
  margin-bottom: 20px;
  width: fit-content;
}

.right-section-description p {
  max-width: fit-content;
}

/* video end */

/* stay updated */

.stay-updated-container {
  background-color: var(--dark-blue);
  color: white;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 15px;
  padding: 50px 20px;
  align-items: center;
}

.stay-updated-container::selection {
  background-color: #58a6ff;
}

.stay-updated-container h3 {
  font-size: 36px;
}

.subscribe-form {
  display: inline-flex;
  border-radius: 500px;
  overflow: hidden;
  max-width: 400px;
  width: 100%;
  height: 2rem;
  margin-top: 10px;
}

.subscribe-input {
  border: none;
  outline: none;
  padding: 10px 20px;
  font-size: 1rem;
  flex: 1;
  border-radius: 30px 0 0 30px;
  user-select: none;
  transition: border 0.3s ease, box-shadow 0.3s ease;
}

.subscribe-form button {
  background-color: white;
  color: var(--dark-blue);
  border: none;
  padding: 10px 20px;
  display: inline-flex;
  align-items: center;
  font-size: 14px;
  font-weight: bold;
  cursor: pointer;
  border-radius: 0 30px 30px 0;
  user-select: none;
  transition: background-color 0.2s ease;
}

/* input button animation */
.subscribe-form button:hover {
  background-color: #58a6ff;
  color: white;
}
/* end stay updated */

/* footer */

footer {
  background-color: var(--footer-color);
  color: var(--footer-text-color);
  padding: 40px 0;
}

footer h4 {
  color: white;
}

footer p,
footer li {
  font-size: 15px;
}

.footer-description {
  font-size: 16px;
  width: 80%;
}

.footer-container {
  display: flex;
  justify-content: space-around;
  flex-wrap: wrap;
  margin: 0 80px;
}

.footer-section {
  flex: 1 1 12%;
  margin: 20px;
}

.footer-section h4 {
  margin-bottom: 15px;
  color: #ffffff;
}

.footer-section ul {
  list-style: none;
  padding: 0;
}

.footer-section ul li {
  margin-bottom: 10px;
}

.footer-section ul li a,
.footer-register {
  color: #9ca3af;
  text-decoration: none;
}

.footer-section ul li a:hover {
  text-decoration: underline;
}

.footer-bottom {
  text-align: center;
  padding-top: 20px;
  border-top: 1px solid #374151;
  font-size: 14px;
}

.contact {
  word-break: break-word;
}
/* end footer */

/* adaptiveness */

@media (max-width: 1024px) {
  .nav-links {
    gap: 18px;
  }
  .hero-left-section {
    max-width: 80vw;
  }
  .hero-right-image {
    max-width: 80%;
  }

  .video-container {
    flex-direction: column-reverse;
  }

  .right-section-description {
    max-width: 80%;
  }

  .video-section {
    width: 80%;
  }
}

@media (max-width: 768px) {
  .header-inner {
    gap: 5px;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 28px;
  }
  .logo-link {
    order: 1;
  }

  .partner-button {
    order: 2;
    display: none;
  }
  .nav-links {
    gap: 10px;
    order: 3;
    display: none;
  }

  .h1-formatted {
    font-size: 46px;
  }

  .h4-formatted {
    font-size: 18px;
  }

  .p-formatted {
    font-size: 15px;
  }

  .mobile {
    display: flex;
  }
  .nav-link,
  .dropdown-toggle,
  .arrow {
    font-size: 16px;
  }

  .hero-right-image {
    max-width: 80%;
  }

  .who-we-are-container {
    align-items: center;
  }

  .footer-container {
    margin: 0 10px;
  }

  .footer-description {
    font-size: 12px;
    line-height: 1.1;
  }
}

@media (max-width: 425px) {
  .h1-formatted {
    font-size: 40px;
  }

  .h2-formatted {
    font-size: 28px;
  }

  .h3-formatted {
    font-size: 18px;
  }

  .h4-formatted {
    font-size: 16px;
  }

  .p-formatted {
    font-size: 12px;
  }

  .hero {
    padding-bottom: 20px;
  }

  .buttons {
    gap: 17px;
    flex-direction: column;
    align-items: flex-start;
  }

  /* .button-get-involved {
    transform: scale(0.8);
  }
  .button-learn-more {
    transform: scale(0.8);
  } */

  .who-we-are-container {
    padding-top: 20px;
    flex-direction: column;
    gap: 15px;
  }

  .who-text-container p {
    max-width: 80vw;
  }

  .features-container {
    min-width: 80vw;
  }

  .footer-section {
    width: 30%;
  }
}

@media (max-width: 375px) {
  .logo-img {
    height: 30px;
  }
  footer p,
  footer li {
    font-size: 12px;
  }
}

@media (max-width: 320px) {
  .buttons {
    gap: 5px;
  }
  .buttons a {
    font-size: 14px;
  }
}
