/* NAVBAR */
.nav {
    display: flex;
    justify-content: space-between;
    padding: 4rem;
    align-items: flex-start;
}

.nav__left {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav__login,
.mobile__login,
.nav__left-langs li a {
    font-size: 1.2rem;
    line-height: 2rem;
}

.nav__scale {
    transform: scale(6.5);
}

.nav__login,
.mobile__login {
    background-color: var(--color-primary);
    color: var(--color-black);
    padding: 0.7rem 0.9rem;
    min-width: 10.1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 0.5rem;
}

.mobile__login,
.mobile__langs {
    display: none;
}

.nav__left-langs {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.nav__left-langs li a {
    padding: 0.5rem 1.1rem;
    color: var(--color-white);
}

.nav__left-langs li a.active {
    font-weight: 700;
}

.nav__logo {
    display: inline-block;
    width: 11rem;
    transition: var(--transition);
}

.menu {
  width: 11rem;
  position: relative;
}

.nav__menu {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 1.5rem;
    min-width: max-content;
}

.nav__menu.inner {
  position: absolute;
  right: 0;
  top: 1.5rem;
}

.nav__menu-item {
    display: flex;
    align-items: center;
    position: relative;
}

.nav__menu-item span {
    position: absolute;
    display: none;
    left: -50px;
    transition: var(--transition);
}

.nav__menu-item:hover span,
.nav__menu-item.active span {
  display: inline-block;
}

.nav__menu-item a {
  color: var(--color-white);
}

.nav__menu-item.active a,
.nav__menu-item:hover a {
  color: var(--color-primary);
}

.nav__hamburger {
    cursor: pointer;
    display: none;
    align-self: center;
}

.bar1,
.bar2,
.bar3 {
    width: 2.4rem;
    height: 1.5px;
    background-color: var(--color-white);
    transition: var(--transition);
    margin: 5px 0;
}

.bar2 {
    display: none;
}

.nav__hamburger.active .bar1 {
    width: 2rem;
    transform: translate(0, -0.2rem) rotate(-45deg);
}

.nav__hamburger.active .bar3 {
    width: 2rem;
    transform: translate(0, -0.9rem) rotate(45deg);
}

/* SECTION HEADING */
.section__head {
    display: flex;
    justify-content: space-between;
    align-items: end;
    flex-wrap: wrap;
    margin-bottom: 8rem;
    color: var(--color-white);
}

.section__head h3 {
    font-weight: 600;
    font-size: 2.8rem;
    line-height: 3.2rem;
    z-index: 99998;
}

.section__head a {
    color: #a9edd7;
    font-weight: 600;
    font-size: 1.4rem;
    line-height: 2.5rem;
    text-decoration: underline;
}

/* PAGE HEADING */
.page__head {
    margin-bottom: 10rem;
}

.page__head h2 {
  text-transform: capitalize;
}

.page__back {
    display: flex;
    align-items: center;
    gap: 2rem;
    font-weight: 600;
    cursor: pointer;
    color: var(--color-white);
}

.page__back span {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 3.5rem;
    height: 3.5rem;
    border-radius: 100%;
    border: 1px solid var(--color-primary);
}

/* HISTORY SECTION */
.history {
    margin-bottom: 12rem;
    padding: 0 4rem;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(27rem, 1fr));
    gap: 4rem;
    place-items: center;
}

.history__item {
    display: flex;
    align-items: center;
    gap: 5rem;
}

.history__image {
  width: 4rem;
  height: 4rem;
}

.history__image img {
  object-fit: contain;
}

.history__title {
    line-height: 3.8rem;
    font-weight: 300;
    color: var(--color-primary);
}

.history__desc {
    font-size: 3rem;
}

/* FOOTER */
.footer {
    padding: 0 4rem;
}

.footer__top {
    display: flex;
    justify-content: space-between;
    gap: 5rem;

    margin-bottom: 8rem;
}

.footer__desc {
    flex-basis: 46.7rem;
    opacity: 0.6;
}

.footer__actions {
    flex-shrink: 0;
}

.footer__title {
    opacity: 0.6;
    margin-bottom: 2.1rem;
    text-align: right;
}

.footer__socials {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 1rem;
    margin-bottom: 3rem;
}

.footer__socials a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
    border: 0.5px solid #ffffff;
    color: var(--color-white);
}

.footer__socials a i {
    font-size: 1.2rem;
}

.footer__privacy {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 1.5rem;
    color: var(--color-white);
    opacity: 0.6;
    margin-bottom: 2.3rem;
}

.footer__copyright {
    text-align: end;
}

.footer__privacy a,
.footer__copyright,
.footer__copyright a {
    color: var(--color-white);
    opacity: 0.6;
}

.footer__logo {
    height: auto;
    padding: 4.5rem 0;
}

/*.footer__logo img {*/
/*    object-fit: contain;*/
/*}*/

.g-modal {
    display: flex; /* Hidden by default */
    align-items: center;
    justify-content: center;
    position: fixed; /* Stay in place */
    z-index: 1; /* Sit on top */
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    max-width: 50.6rem; /* Full width */
    width: 100%;
    height: 30rem;
    overflow: auto; /* Enable scroll if needed */
    background: black; /* Fallback color */
    color: #a9edd7;
}

.g-modal-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
    justify-content: center;
    padding: 6rem 9rem;
}

.g-modal__desc {
    text-align: center;
    text-transform: uppercase;
    color: var(--color-white);
}

.g-modal__back {
    display: flex;
    align-items: center;
    gap: 2rem;
    font-weight: 600;
    cursor: pointer;
    background-color: transparent;
    color: var(--color-white);
}

.g-modal__back span {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 3.5rem;
    height: 3.5rem;
    border-radius: 100%;
    border: 1px solid var(--color-primary);
}

@media screen and (max-width: 768px) {
    .nav {
        padding: 2rem 1rem;
    }

    .nav__left {
        display: none;
    }

    .nav__hamburger {
        display: block;
    }

    .nav__menu {
        display: none;
    }
    .menu {
        position: inherit;
    }
    .nav__menu.active {
        width: 100%;
        height: 100vh;
        z-index: 99;
        padding-left: 1rem;
        display: flex;
        align-items: flex-start;
        position: absolute;
        top: 7rem;
        text-transform: uppercase;
        gap: 0.3rem;
        background: var(--color-black);
        padding-bottom: 3rem;
    }

    .nav__menu-item a {
        font-weight: 600;
        font-size: 2.2rem;
        line-height: 3.8rem;
    }

    .nav__menu-item {
        width: 100%;
    }

    .nav__menu-item span {
        left: auto;
        right: 30px;
    }

    .mobile__login {
        display: flex;
    }

    .mobile__langs {
        display: flex;
        gap: 1rem;
        flex-wrap: wrap;
    }

    .mobile__langs a {
        display: inline-block;
        min-width: 8rem;
        text-align: center;
        color: var(--color-primary);
        padding: 0.4rem 0;
    }

    .mobile__langs a.active {
        font-weight: 700;
    }

    .section__head {
        margin-bottom: 5rem;
    }

    .section__head h3 {
        font-size: 2.4rem;
    }

    .page__head {
        margin-bottom: 5rem;
    }

    .page__head h2 {
        font-size: 2.8rem;
        line-height: 3.9rem;
    }

    .history {
        padding: 0 1rem;
        margin-bottom: 6rem;
    }

    .footer {
        padding: 0 1rem;
    }

    .footer__top {
        flex-direction: column;
        margin-bottom: 3rem;
    }

    .footer__desc {
        flex-basis: auto;
    }

    .footer__title {
        text-align: left;
    }

    .footer__socials {
        justify-content: flex-start;
    }

    .footer__privacy {
        justify-content: flex-start;
    }

    .footer__copyright {
        text-align: start;
    }

    .footer__logo {
        height: auto;
    }

    .g-modal-content {
        padding: 5rem 2rem;
    }

    .g-modal__title {
        font-size: 2.4rem;
        line-height: 3.2rem;
    }
}

@media screen and (max-width: 480px) {
    .section__head a {
        display: none;
    }
}
