/*=============== GOOGLE FONTS ===============*/
@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600&display=swap");

/*=============== VARIABLES CSS ===============*/
:root {
  --header-height: 3.5rem;
  /*========== Colors ==========*/
  /*Color mode HSL(hue, saturation, lightness)*/
  --first-color: #011160;
  --first-color-alt: hsl(230, 98%, 27%);
  --first-color-light: hsl(230, 98%, 39%);
  --first-color-lighten: hsl(230, 98%, 90%);
  --second-color: hsl(91, 58%, 53%);
  --title-color: hsl(230, 98%, 19%);
  --text-color: hsl(228, 16%, 30%);
  --text-color-light: hsl(228, 12%, 75%);
  --border-color: hsl(228, 99%, 98%);
  --body-color: #fff;
  --container-color: #fff;

  /*========== Font and typography ==========*/
  /*.5rem = 8px | 1rem = 16px ...*/
  --body-font: "Poppins", sans-serif;
  --normal-font-size: .938rem;
  --small-font-size: .813rem;
  --smaller-font-size: .75rem;
  /*========== Font weight ==========*/
  --font-medium: 500;
  --font-semi-bold: 600;
  /*========== z index ==========*/
  --z-tooltip: 10;
  --z-fixed: 100;
}

@media screen and (min-width: 1024px) {
  :root {
    --normal-font-size: 1rem;
    --small-font-size: .875rem;
    --smaller-font-size: .813rem;
  }
}

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

body {
  font-family: var(--body-font);
  font-size: var(--normal-font-size);
  background-color: var(--body-color);
  color: var(--text-color);
}

ul {
  list-style: none;
}

a {
  text-decoration: none;
}

/*=============== REUSABLE CSS CLASSES ===============*/
.container {
  max-width: 1120px;
  margin-inline: 1.5rem;
}

/*=============== HEADER ===============*/
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  box-shadow: 0 2px 8px hsla(0, 0%, 100%, 0.1);
  background-color: var(--first-color);
  z-index: var(--z-fixed);
}

/*=============== NAV ===============*/
.nav {
  height: var(--header-height);
}

.nav__data {
  height: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav__logo {
  position: absolute;
  left: 0;
  margin-left: 50px;
  background-color: white;
  width: 200px;
  height: 70px;
}


.nav__toggle {
  position: relative;
  width: 32px;
  height: 32px;
}

.nav__toggle-menu,
.nav__toggle-close {
  font-size: 1.25rem;
  color: var(--body-color);
  position: absolute;
  display: grid;
  place-items: center;
  inset: 0;
  cursor: pointer;
  transition: opacity 0.1s, transform 0.4s;
}

.nav__toggle-close {
  opacity: 0;
}

@media screen and (max-width: 1118px) {
  .nav__menu {
    background-color: var(--body-color);
    position: absolute;
    left: 0;
    top: 2.5rem;
    width: 100%;
    height: calc(100vh - 3.5rem);
    overflow: auto;
    padding-block: 1.5rem 4rem;
    pointer-events: none;
    opacity: 0;
    transition: top 0.4s, opacity 0.3s;
  }

  .nav__menu::-webkit-scrollbar {
    width: 0.5rem;
  }

  .nav__menu::-webkit-scrollbar-thumb {
    background-color: hsl(220, 12%, 70%);
  }
}

.nav__link {
  color: var(--first-color);
  font-weight: var(--font-semi-bold);
  padding: 1.25rem 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: background-color 0.3s;
}

.nav__link:hover {
  background-color: var(--first-color-lighten);
}

.nav__list .nav__login {
  height: 40px;
  padding: 10px;
  column-gap: 0.5rem;
  color: var(--first-color);
  font-weight: var(--font-semi-bold);
  transition: all 0.3s ease;
  background-color: var(--body-color);
  position: absolute;
  right: 0;
  margin: 25px 25px 0 0;
  font-size: 1rem;
  border: 3px solid var(--body-color);
}

.nav__list .nav__login i {
  font-size: 1.25rem;
}

.nav__list .nav__login:hover {
  color: var(--body-color);
  background-color: var(--first-color);
  border-color: var(--body-color);
}

/* Show menu */
.show-menu {
  opacity: 1;
  top: 3.5rem;
  pointer-events: initial;
}

/* Show icon */
.show-icon .nav__toggle-menu {
  opacity: 0;
  transform: rotate(90deg);
}

.show-icon .nav__toggle-close {
  opacity: 1;
  transform: rotate(90deg);
}

/*=============== DROPDOWN ===============*/
.dropdown__button {
  cursor: pointer;
}

.dropdown__arrow {
  font-size: 1.5rem;
  font-weight: initial;
  transition: transform 0.4s;
}

.dropdown__content,
.dropdown__group,
.dropdown__list {
  display: grid;
}

.dropdown__container {
  background-color: var(--first-color-lighten);
  height: 0;
  overflow: hidden;
  transition: height 0.4s;
}

.dropdown__content {
  row-gap: 1.75rem;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}

.dropdown__group {
  padding-left: 2.5rem;
  row-gap: 0.5rem;
}

.dropdown__group:hover {
  background-color: var(--first-color-lighten);
}


.dropdown__titles {
  font-size: var(--small-font-size);
  font-weight: var(--font-semi-bold);
  color: var(--title-color);
  margin-top: 1rem;
  display: inline-block;
  text-align: center;
  transition: text-decoration 0.3s;
}
.dropdown__titles:hover {
  text-decoration: underline 3px;
  text-decoration-color: var(--second-color);
}

.dropdown__subtitles {
  font-size: var(--small-font-size);
  font-weight: var(--font-semi-bold);
  color: var(--title-color);
}

.dropdown__list {
  row-gap: 0.25rem;
}

.dropdown__link {
  font-size: var(--smaller-font-size);
  font-weight: var(--font-medium);
  color: var(--text-color);
  transition: color 0.3s;
}

.dropdown__link:hover {
  color: var(--title-color);
}

/* Rotate dropdown icon */
.show-dropdown .dropdown__arrow {
  transform: rotate(180deg);
}


/*=============== FOOTER ===============*/
.footer {
  background-color: var(--first-color);
  padding: 50px 100px;
  color: var(--body-color);
  height: auto;
  width: 100%;
  position: relative;
}
.footer .footer__logo {
  margin-bottom: 1rem;
  display: inline-block;
  background-color: white;
  width: 230px;
  height: 100px;
}

.footer__container {
  width: 100%;
  display: grid;
  grid-template-columns: 2fr 1fr;
  grid-gap: 20px;
}
.footer .container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  grid-gap: 30px;
  margin: auto;
}
.footer .sec h3 {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 15px;
  position: relative;
}

.footer .sec p {
  font-size: 15px;
  color: var(--body-color);
  line-height: 20px;
}

.footer .sci {
  margin-top: 20px;
  display: grid;
  grid-template-columns: repeat(4, 50px);
}

.footer .sci li a {
  display: inline-block;
  height: 36px;
  width: 36px;
  background-color: var(--body-color);
  display: grid;
  align-items: center;
  justify-content: center;
  border-radius: 5px;
  transition: all 0.3s ease;
}

.footer .sci li a i {
  color: var(--first-color);
  font-size: 20px;
}
.footer .sci li a:hover {
  background-color: var(--second-color);
}

.footer .container .quicklinks ul li a {
  color: var(--body-color);
  text-transform: capitalize;
  display: inline-block;
  font-size: 15px;
  margin-bottom: 10px;
  transition: all 0.3s ease;
}

.footer .container .quicklinks ul li a:hover {
  color: var(--second-color);
  margin-left: 10px;
}

.footer .container .contact .info {
  position: relative;
}

.footer .container .contact .info li {
  display: grid;
  grid-template-columns: 30px 1fr;
  margin-bottom: 16px;
}

.footer .container .contact .info li span {
  color: var(--body-color);
  font-size: 15px;
  gap: 10px;
}

.footer .container .contact .info li a {
  color: var(--body-color);
  font-size: 15px;
  transition: all 0.3s ease;
  text-decoration: none;
}

.footer .container .contact .info li a:hover {
  color: var(--second-color);
}

.footer__info,
.footer__byte {
  display: flex;

}

.footer__info {
  padding-top: 1rem;
  padding-bottom: 1rem;
  margin-top: 2.5rem;
  flex-direction: column;
  text-align: center;
  row-gap: 1.5rem;
  background-color: var(--first-color-alt);
  border-radius: 20px;
  font-size: 20px;
}

.footer__info img {
  height: 40px;
  border-radius: 5px;
}

.footer__copy,
.footer__byte a {
  font-size: var(--h3-font-size);
  font-weight: var(--font-medium);
  color: white;
  transition: .5s;
}
.footer__copy {
  display: flex;
align-items: center;
gap: 0.5rem;
}

.footer__byte {
  justify-content: center;
  column-gap: 1.25rem;
  align-items: center;
}

.footer__byte a:hover span {
  color: #ffbc36;
}
.footer__byte a:hover {
  text-decoration: underline 2px;
  text-decoration-color: #ffbc36;
}

/*=============== SCROLL BAR ===============*/
::-webkit-scrollbar {
  width: .6rem;
  border-radius: .5rem;
  background-color: hsl(228, 8%, 76%);
}

::-webkit-scrollbar-thumb {
  background-color: var(--first-color);
  border-radius: .5rem;
}

/*=============== BREAKPOINTS ===============*/
/* For small devices */
@media screen and (max-width: 300px) {
  .dropdown__group {
    padding-left: 1.5rem;
  }
}

/* For large devices */
@media screen and (min-width: 1118px) {

  /* Nav */
  .nav {
    height: calc(var(--header-height) + 2rem);
    display: flex;
    justify-content: center;
  }

  .nav__toggle {
    display: none;
  }

  .nav__list {
    display: flex;
    column-gap: 3rem;
    height: 100%;
            font-size: 18px;
    
  }

  .nav li {
    display: flex;
  }

  .nav__link {
    padding: 0;
    color: var(--body-color);
  }

  .nav__link:hover {
    background-color: initial;
  }

  /* Dropdown */
  .dropdown__button {
    column-gap: 0.25rem;
    pointer-events: none;
  }

  .dropdown__container {
    height: max-content;
    position: absolute;
    left: 0;
    right: 0;
    top: 6.5rem;
    background-color: var(--body-color);
    box-shadow: 0 6px 8px hsla(220, 68%, 12%, 0.05);
    pointer-events: none;
    opacity: 0;
    transition: top 0.4s, opacity 0.3s;
    width: max-content;
    margin: auto;
    padding: 0 40px 0 40px;
    border-radius: 10px;
  }

  .dropdown__content {
    display: flex;
    justify-content: center;
    column-gap: 4rem;
    margin-inline: auto;
  }

  .dropdown__group {
    padding: 2rem 2em;
    align-content: baseline;
    row-gap: 1.25rem;
    border-radius: 10px;
  }

  .dropdown__list {
    row-gap: 0.75rem;
  }

  .dropdown__subtitles {
    font-size: var(--normal-font-size);
  }
  .dropdown__titles {
    width: 100%;
    font-size: 1.5rem;
    margin-bottom: 1rem;
  }

  .dropdown__link {
    font-size: var(--small-font-size);
  }

  .dropdown__link:hover {
    color: var(--first-color);
  }

  .dropdown__item {
    cursor: pointer;
  }

  .dropdown__item:hover .dropdown__arrow {
    transform: rotate(180deg);
  }

  .dropdown__item:hover>.dropdown__container {
    top: 5.5rem;
    opacity: 1;
    pointer-events: initial;
    cursor: initial;
  }
  .footer__info {
    flex-direction: row;
    justify-content: space-between;

    padding: 0;
  }

  .footer__byte,
  .footer__copy {
    padding: 30px;
  }
}

@media screen and (min-width: 1152px) {
  .container {
    margin-inline: auto;
  }
}