@import "./reset.css";
@import "./color.css";

.container {
  width: 85%;
  margin: 0 auto;
}

.btn {
  font-family: "Montserrat", sans-serif;
  border-radius: 5px;
  font-weight: 700;
  font-size: 14px;
  padding: 8px 20px;
  cursor: pointer;
  text-align: center;
}

.btn-primary {
  background-color: var(--bright-cyan, #06a3da);
  color: var(--white-text, #eef9ff);
  &:hover {
    color: var(--black-text, #000);
  }
}

.mdu-library__title {
  font-family: "Nunito", sans-serif;
}

/*? Loading-spinner */

.loading-spinner {
  background-color: var(--white-background);
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  bottom: 0;
  display: none;
  font-family: Arial, sans-serif;
  z-index: 100;
}

.loading-spinner.active {
  display: flex;
  justify-content: center;
  align-items: center;
}
.spinner-container {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  position: absolute;
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.spinner {
  border: 4px solid rgba(0, 0, 0, 0.1);
  width: 50px;
  height: 50px;
  border-radius: 50%;
  border-left-color: var(--bright-cyan);
  animation: spin 1s linear infinite;
  margin: 0 auto;
}

.loading-spinner p {
  font-size: 20px;
  color: var(--bright-cyan);
  margin-top: 10px;
  text-align: center;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* ? Page__top-bar -------------------------------------> */

.page-top__bar {
  background-color: var(--deep-blue, #091e3e);
  color: var(--white-text, #eef9ff);
}

.page-top__bar a {
  color: var(--white-text, #eef9ff);
}

.page-top__bar-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.page-top__left-bar {
  display: flex;
  align-items: center;
  gap: 20px;
}

.page-top__left-item {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 14px;
}

.page-top__left-item h1 {
  font-size: 14px;
  font-weight: 400;
}

.page-top__lang-show {
  display: flex;
  align-items: center;
  gap: 5px;
  position: relative;
  cursor: pointer;
}

.page-top__lang-list {
  display: none;
  background-color: var(--deep-blue, #091e3e);
  position: absolute;
  top: 42px;
  border-radius: 0 0 5px 5px;
}

.page-top__lang-list.active {
  display: block;
}

.page-top__lang-item {
  padding: 3px 20px;
  cursor: pointer;
}

.page-top__lang-item:not(:last-child) {
  border-bottom: 1px solid white;
}

.page__social-media {
  display: flex;
  gap: 5px;
  padding: 6px;
}

.page__social-media a {
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: 1px solid var(--white-border, #eef9ff);
  padding: 10px;
  transition: all 0.5s;
}

.page__social-media a:hover {
  background-color: var(--white-background, #eef9ff);
  color: var(--deep-blue, #091e3e);
}

/*? Navbar ----------------------------------------------> */
.navbar {
  display: block;
  background-color: transparent;
  position: absolute;
  top: 42px;
  left: 0;
  right: 0;
  border-bottom: 1px solid
    var(--semi-transparent-white, rgba(255, 255, 255, 0.1));
  z-index: 99;
  box-shadow: 0 0.125rem 0.25rem var(--transparent-black, #00000013);
}

.navbar.sticky {
  top: 0;
  position: fixed;
  background: var(--white, #ffffff);

  & .navbar-link {
    color: var(--deep-blue, #091e3e);
    height: 65px;
    transition: all 0.5s ease-in;
  }

  & .navbar-link.active {
    color: var(--bright-cyan, #06a3da);
  }

  & .navbar-link:hover {
    color: var(--bright-cyan, #06a3da);
  }

  & .navbar-item__list {
    top: 67px;
  }

  & .navbar-link::before {
    bottom: -2.5px;
  }
}

.navbar-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.navbar__burger-icon,
.navbar__user-icon {
  display: none;
}

.navbar__left-side {
  display: flex;
  align-items: center;
  justify-content: center;
}
.navbar__left-side img {
  width: auto;
  height: 70px;
}

/* ! navbar__right-side */

.navbar__right-side {
  display: flex;
  align-items: center;
  gap: 20px;
}

.navbar__right-list {
  display: flex;
  gap: 30px;
}

.navbar__close-icon {
  display: none;
  color: var(--bright-cyan);
}

.navbar-item {
  position: relative;
}

.navbar-link {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  height: 80px;
  font-family: "Nunito", sans-serif;
  font-weight: 600;
  text-align: center;
  font-size: 18px;
  line-height: 27px;
  color: var(--white-text, #eef9ff);
  transition: all 0.3s ease-in;

  &:hover {
    color: var(--bright-cyan, #06a3da);
  }

  &::before {
    position: absolute;
    content: "";
    width: 0;
    height: 2px;
    bottom: -1px;
    left: 50%;
    background: var(--bright-cyan, #06a3da);
    transition: 0.5s;
  }

  &:hover::before {
    width: 100%;
    left: 0;
  }
}

.navbar-link.active {
  color: var(--bright-cyan, #06a3da);
  &::before {
    width: 100%;
    left: 0;
  }
}

.navbar-item__list {
  display: none;
  position: absolute;
  top: 81px;
  left: -40%;
  background-color: var(--white-background, #eef9ff);
  color: var(--deep-blue, #091e3e);
  border-radius: 10px;
}

.navbar-item__link {
  display: block;
  padding: 7px 12px;
  white-space: nowrap;
  color: var(--black-text, #000);
  &:hover {
    background-color: var(--soft-gray, #e9ecef);
  }
}

.navbar-item__list-item:first-child > .navbar-item__link {
  border-radius: 8px 8px 0 0;
}

.navbar-item__list-item:last-child > .navbar-item__link {
  border-radius: 0 0 8px 8px;
}

#button-1:hover > #dropdown-1,
#button-2:hover > #dropdown-2 {
  display: block;
}

/* ? Header ----------------------------------------> */

.header {
  position: relative;
  height: 400px;
  overflow: hidden;
}

.header__background-img {
  width: 100%;
  height: 100%;
}

.header__background-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.header-content {
  left: 0;
  right: 0;
  bottom: 0;
  top: 0;
  position: absolute;
  background-color: rgba(0, 0, 0, 0.5);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding-top: 70px;
}

.header-content__title {
  white-space: nowrap;
  font-weight: 800;
  color: var(--white-text, #eef9ff);
  font-size: 56px;
  line-height: 67px;
  margin-bottom: 8px;
}

.header-content__links a {
  font-family: "Nunito", sans-serif;
  color: var(--white-text, #eef9ff);
  font-weight: 500;
  font-size: 20px;
  line-height: 24px;
  transition: all 0.5s;
  &:hover {
    color: var(--bright-cyan, #06a3da);
  }
}

.header-content__links i {
  color: var(--bright-cyan, #06a3da);
  margin-right: 8px;
}

/*? footer ------------------------------------> */

footer {
  background-color: var(--deep-blue, #091e3e);
  padding: 30px 0;
  font-size: 16px;
  line-height: 24px;
  color: var(--white-text, #eef9ff);
  transition: all 1.5s;
  margin-top: 100px;
}

footer.show {
  transform: scale(1);
}

.footer-main {
  display: flex;
  border-bottom: 1px solid
    var(--semi-transparent-white, rgba(255, 255, 255, 0.1));
  padding-bottom: 30px;
}

.footer-logo {
  width: 30%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.footer-logo__img img {
  width: 200px;
  height: auto;
}

.footer-logo__title {
  font-family: "Nunito", sans-serif;
  font-weight: 700;
  line-height: 29px;
  font-size: 25px;
  text-align: center;
  color: var(--white-text, #eef9ff);
}

.footer-main__container {
  display: flex;
  padding: 20px 40px 20px 0;
  gap: 250px;
}

.footer-main__block-title {
  font-size: 24px;
  font-weight: 700;
  line-height: 28.8px;
  color: var(--white-text, #eef9ff);
  margin-bottom: 20px;
}

.footer-main__block-list {
  display: flex;
  flex-direction: column;
  gap: 10px;

  & i {
    margin-right: 7px;
  }
}

.footer-main__block-link {
  display: block;
  color: var(--white-text, #eef9ff);
  transition: all 0.5s;

  &:hover {
    color: var(--bright-cyan, #06a3da);
  }
}

.footer-bottom__bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 20px;
}

.footer-bottom__left-side {
  display: flex;
  gap: 20px;
}

.footer-bottom__left-side > a {
  color: var(--white-text, #eef9ff);
  transition: all 0.5s;
}

.footer-bottom__left-side > a:hover {
  color: var(--bright-cyan, #06a3da);
}

.footer-bottom__right-side a {
  color: var(--white-text, #eef9ff);
}

/* Media Queris */

@media screen and (max-width: 1200px) {
  /** ----------------- 1200px ---------------------> */

  /* Navbar  */
  .navbar-link {
    font-size: 16px;
  }

  .navbar__right-list {
    gap: 15px;
  }

  /* Footer */

  .footer-main {
    gap: 50px;
  }
  .footer-main__block:first-child {
    display: none;
  }
  .footer-main__container {
    padding: 20px;
    gap: 90px;
  }
}

@media screen and (max-width: 992px) {
  /* Page-top__bar */
  .page-top__bar {
    display: none;
  }

  /* Navbar  */

  .navbar {
    top: 0;
    padding: 5px 0;
  }

  .navbar__right-side {
    gap: 10px;
  }

  .navbar__btn {
    display: none;
  }
  .navbar__user-icon {
    display: block;
    color: var(--bright-cyan, #06a3da);
    cursor: pointer;
    padding: 5px 7px;
    font-size: 27px;
    transition: all 0.5s;
  }
  .navbar__user-icon:hover {
    color: var(--black-text, #000);
  }
}

@media screen and (max-width: 768px) {
  .navbar {
    background: var(--white, #ffffff);
  }

  .navbar.navbar.sticky .navbar-link {
    height: 27px;
  }
  .navbar__right-side {
    display: none;
    flex-direction: column;
    transition: all 1s;
    transform: translate(-100%);
  }

  .navbar__right-side.active {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    width: 100%;
    padding: 40px;
    background-color: white;
    gap: 30px;
    transform: translate(0);
  }
  .navbar__right-side.active > .navbar__right-list {
    flex-direction: column;
    gap: 20px;
    margin-top: 30px;
  }
  .navbar__btn {
    display: block;
    font-size: 18px;
  }

  .navbar__close-icon {
    display: block;
    position: absolute;
    top: 25px;
    right: 25px;
    font-size: 25px;
    text-align: right;
    cursor: pointer;
  }

  .navbar__user-icon {
    display: none;
  }

  .navbar__burger-icon {
    display: block;
    color: var(--bright-cyan, #06a3da);
    cursor: pointer;
    border: 1px solid var(--bright-cyan, #06a3da);
    border-radius: 3px;
    padding: 5px 7px;
    font-size: 27px;
    outline: 3px solid white;
    &:active {
      outline: 3px solid var(--bright-cyan, #06a3da);
      border-radius: 4px;
    }
    &.active {
      outline: 3px solid var(--bright-cyan, #06a3da);
      border-radius: 5px;
    }
  }

  .navbar-link {
    justify-content: flex-start;
    height: fit-content;
    color: #000;
    font-size: 20px;
    &:hover::before {
      width: 0;
    }

    &.active::before {
      width: 0;
    }
  }

  .navbar-item__list {
    position: static;
  }

  /* Header */
  .header-content__title {
    font-weight: 700;
    font-size: 45px;
    line-height: 60px;
  }

  .header-content__links a {
    font-weight: 500;
    font-size: 15px;
    line-height: 20px;
  }

  /* Footer */

  .footer-logo {
    display: none;
    width: 70%;
  }

  .footer-logo__img img {
    width: 250px;
    height: auto;
  }

  .footer-logo__title {
    margin-top: 20px;
    font-size: 30px;
  }

  .footer-main {
    gap: 30px;
    padding-top: 40px;
    flex-wrap: wrap;
    justify-content: center;
    border-bottom: none;
  }
  .footer-main__block:first-child {
    display: block;
  }
  .footer-main__container {
    flex-wrap: wrap;
  }
  .footer-bottom__bar {
    display: none;
  }
}

@media screen and (max-width: 600px) {
  .container {
    width: 90%;
  }
  /* header */
  .header-content__title {
    font-weight: 700;
    font-size: 40px;
    line-height: 50px;
  }
  .header-content__links a {
    font-weight: 500;
    font-size: 20px;
  }
}
