/*=============== REUSABLE CSS CLASSES ===============*/
.container {
    margin-inline: 1.5rem;
    padding: 0 25px;
}

.no-scroll {
    overflow: hidden;
}

/*=============== HEADER ===============*/
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: var(--black-color-alpha);
    box-shadow: 0 2px 16px hsla(220, 32%, 8%, .3);
    z-index: 100;
    transition: 1s;
}

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

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


li .nav_active {
    color: var(--main-color) !important;
    border-bottom: 2px solid var(--main-color);
    font-weight: 700;
}

.nav_logo,
.nav_burger,
.nav_close {
    color: var(--white-color);
}

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

.nav_logo {
    display: inline-flex;
    align-items: center;
    font-weight: var(--font-semi-bold);
}

.nav_logo h3,
.nav_logo span {
    transition: .5s;
    font-size: 2rem;
}

.nav_logo h3:hover {
    color: var(--main-color);
}

.nav_logo h3:hover span {
    color: var(--white-color);
}

.nav_logo i {
    font-size: 1.25rem;
}

.nav_logo img {
    height: 90px;
    margin-right: -10px;
    transition: 1s;
}

.nav_toggle {
    position: relative;
    color: var(--white-color);
    font-size: 1.25rem;
}

.nav_burger,
.nav_close {
    position: absolute;
    width: max-content;
    height: max-content;
    inset: 0;
    margin: auto;
    font-size: 1.5rem;
    cursor: pointer;
    transition: opacity .1s, transform .4s;
}

.nav_close {
    opacity: 0;
}

/* Navigation for mobile devices */
@media screen and (max-width: 1150px) {
    .nav_menu {
        position: absolute;
        left: 0;
        width: 100%;
        height: calc(100vh - 60px);
        overflow: auto;
        pointer-events: none;
        opacity: 0;
        transition: top .4s, opacity .3s;
    }

    .nav_menu::-webkit-scrollbar {
        width: 0;
    }

    .nav_list {
        background-color: var(--black-color);
    }
}

.nav_link,
.nav_link a {
    font-weight: var(--font-semi-bold);
    color: var(--white-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background-color .3s;
}

.nav_link i {
    padding-left: 5px;
}

.nav_li:hover {
    color: var(--main-color);
}

/* Show menu */
.show-menu {
    opacity: 1;
    /* top: var(--header-height); */
    pointer-events: initial;
}

/* Show icon */
.show-icon .nav_burger {
    opacity: 0;
    transform: rotate(180deg);
}

.show-icon .nav_close {
    opacity: 1;
    transform: rotate(180deg);
}

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

.dropdown_link,
.dropdown_sublink {
    padding: 1.25rem 1.25rem 1.25rem 3.5rem;
    background-color: var(--black-color-light);
    display: flex;
    align-items: center;
    font-weight: var(--font-semi-bold);
    transition: background-color .3s;
}

.dropdown_link i,
.dropdown_sublink i {
    font-size: 1.25rem;
    font-weight: var(--font-semi-bold);
}

.dropdown_link:hover,
.dropdown_sublink:hover {
    background-color: var(--black-color);
}

.dropdown_menu,
.dropdown_submenu {
    max-height: 0;
    overflow: hidden;
    transition: max-height .4s ease-out;
}

/* ==========Show dropdown menu & submenu ========== */
.dropdown_item:hover .dropdown_menu,
.dropdown_subitem:hover>.dropdown_submenu {
    max-height: 1200px;
    transition: max-height .4s ease-in;
}

/* ========== DROPDOWN SUBMENU ========== */
.dropdown_add {
    margin-left: auto;
}

.dropdown_sublink {
    background-color: var(--black-color-lighten);
}

/* ========== BREAKPOINTS ========== */
/* For small devices */
@media screen and (max-width: 550px) {
    .container {
        margin-inline: 1rem;
        padding: 0 20px 0 0;
    }

    .nav_link {
        padding-inline: 1rem;
    }

    .nav_logo h3,
    .nav_logo span {
        transition: .5s;
        font-size: 1.5rem;
    }

    .nav_logo {
        margin-left: -10px;
    }
}

@media screen and (max-width: 1150px) {
    .nav_link,
    .nav_link a {
        font-weight: var(--font-semi-bold);
        color: var(--white-color);
        display: flex;
        justify-content: space-between;
        align-items: center;
        transition: background-color .3s;
        padding: 1.25rem 1.5rem;
    }
}

/* For large devices */
@media screen and (min-width: 1150px) {
    .container {
        margin-inline: auto;
    }

    .nav {
        height: var(--header-height);
        display: flex;
        justify-content: space-between;
    }

    .nav_toggle {
        display: none;
    }

    .nav_list {
        height: 100%;
        display: flex;
        column-gap: 2rem;
        margin-right: 50px;
    }

    .nav_link {
        height: 100%;
        padding: 0;
        justify-content: initial;
        column-gap: .25rem;
    }

    .nav_link:hover {
        background-color: transparent;
    }

    .dropdown_item,
    .dropdown_subitem {
        position: relative;
    }

    .dropdown_menu,
    .dropdown_submenu {
        max-height: initial;
        overflow: initial;
        position: absolute;
        min-width: 175px;
        left: 0;
        top: 6rem;
        opacity: 0;
        pointer-events: none;
        transition: opacity .3s, top .3s;
    }

    .dropdown_link,
    .dropdown_sublink {
        padding-inline: 1rem 1.5rem;
    }

    .dropdown_subitem .dropdown_link {
        padding-inline: 1rem;
    }

    .dropdown_submenu {
        position: absolute;
        left: -200px;
        top: .5rem;
    }

    /* Show dropdown menu */
    .dropdown_item:hover .dropdown_menu {
        opacity: 1;
        top: var(--header-height);
        pointer-events: initial;
        transition: 1s;
    }

    /* Show dropdown submenu */
    .dropdown_subitem:hover>.dropdown_submenu {
        opacity: 1;
        top: 0;
        pointer-events: initial;
    }
}




/* ========== Footer ========== */



.social-links {
    display: flex;
    margin-top: 1rem;
}

.social-link {
    margin-right: 1rem;
    height: 35px;
    width: 35px;
    border: 1px solid var(--text-color);
    border-radius: 50%;
    color: var(--text-color);
    background-color: transparent;
    transition: all .5s;
}

.social-link:hover {
    background-color: var(--social-bg-color);
    box-shadow: 0 0px 10px var(--social-bg-color);
    border: 1px solid var(--main-color);
    color: var(--main-color);
    scale: 1.1;
}

.flex-center {
    display: flex;
    justify-content: center;
    align-items: center;
}

.footer {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    grid-template-areas: "main-nav second-nav contact none info";
    gap: 25px;
    padding: 20px;
    margin-bottom: -20px;
    background-image: url(../images/wave2.svg);
    height: 100%;
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
}

.footer>* {
    background-color: transparent;
    border-radius: var(--radius);
    width: 100%;
    min-width: 200px;
    padding: 10px 20px;
    border: 1px solid var(--main-color);

    box-shadow: 0px 0px 7px 3px #eee;
    border: 1px solid #ccc;
    backdrop-filter: blur(8px);
}

.footer .footer-info {
    backdrop-filter: blur(0px);
}

.img-footer {
    margin-right: 1rem;
    width: 18px;
    height: 18px;
    line-height: 1.5;
}

.footer h2,
span {
    transition: .5s;
}

.footer h2:hover {
    color: var(--main-color);
}

.footer h2:hover span {
    color: var(--text-color);
}


/* ========== Nav ========== */


.footer-main-nav {
    grid-area: main-nav;
    display: flex;
    flex-direction: column;
    margin-left: auto;
    margin-right: auto;
}

.footer-second-nav {
    grid-area: second-nav;
    display: flex;
    flex-direction: column;
    margin-left: auto;
    margin-right: auto;
}

.footer-nav-list li {
    margin: .5rem;
    list-style: none;
}

.footer-nav-list li a {
    transition: .3s;
}

.footer-nav-list li a::before {
    content: "➤";
    padding-right: 5px;
}

.footer-nav-list li a:hover {
    color: var(--main-color);
}


/* ========== Contact ========== */


.footer-contact {
    grid-area: contact;
    display: flex;
    flex-direction: column;
    margin-left: auto;
    margin-right: auto;
    min-width: 350px;
}

.footer-contact-item {
    margin: 1rem;
}

.footer-contact-item a {
    word-break: break-all;
}

.footer-contact-item:hover i,
.footer-contact-item:hover a {
    transition: .3s;
    color: var(--main-color);
}

.footer-contact-item {
    display: flex;
    text-overflow: ellipsis;
}

.footer-social {
    margin: 1rem;
    display: flex;
    justify-content: center;
}


/* ========== Info ========== */


.footer-info {
    grid-area: info;
    display: flex;
    flex-direction: column;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
    background-color: transparent;
    gap: 15px;
    box-shadow: none;
}

.footer-info img {
    object-fit: cover;
    width: 100%;
    max-width: 350px;
    margin: auto;
}


/* ========== Responsive ========== */


@media (max-width: 1300px) {
    .footer {
        grid-template-columns: repeat(4, 1fr);
        grid-template-areas: "main-nav second-nav contact info";
    }
}

@media (max-width: 1000px) {
    .footer {
        grid-template-columns: 100%;
        grid-template-rows: repeat(4, auto);
        grid-template-areas: "main-nav" "second-nav" "contact" "info";
        background-image: none;
    }

    .footer>* {
        width: 75%;
    }

    footer img {
        width: 117px;
        height: auto;
    }
}

@media (max-width: 700px) {
    .footer>* {
        width: 95%;
    }

    .footer-contact {
        min-width: 0px;
    }
}