* {
    --cor1: #2168A6;
    --cor2: #347EBF;
    --cor3: #52A5D9;
    --cor4: #5BB5D9;
    --texto_black: #333;
    --texto_white: white;
    --texto_white2: rgb(207, 207, 207);
    --background_cor1: #22252d;
    --background_cor2: #0f0f16;
    --tittles_size: 40px;
    --text_size: 0.95rem;
    box-sizing: border-box;
    padding: 0;
    margin: 0;

}

/*=============== VARIABLES CSS ===============*/
:root {
    --header-height: 3.5rem;

    /*========== Colors ==========*/
    /*Color mode HSL(hue, saturation, lightness)*/
    --black-color: hsl(220, 24%, 12%);
    --black-color-light: hsl(220, 24%, 15%);
    --black-color-lighten: hsl(220, 20%, 18%);
    --white-color: #fff;
    --body-color: hsl(220, 100%, 97%);

    /*========== Font and typography ==========*/
    /*.5rem = 8px | 1rem = 16px ...*/
    --body-font: "Montserrat", sans-serif;
    --normal-font-size: .938rem;

    /*========== Font weight ==========*/
    --font-regular: 400;
    --font-semi-bold: 600;

    /*========== z index ==========*/
    --z-tooltip: 10;
    --z-fixed: 100;
}

body {
    font-family: "Poppins", "Robotto", Arial, sans-serif;
    margin: 0px;
    padding: 0px;
    background-image: linear-gradient(to bottom, var(--background_cor1), var(--background_cor2));
    color: var(--texto_white);
    font-size: var(--text_size);
    overflow-x: hidden;
}

ul {
    list-style: none;
    /* Color highlighting when pressed on mobile devices */
    /*-webkit-tap-highlight-color: transparent;*/
}

a {
    text-decoration: none;
}

main a{
    opacity: 0.8;
}

main a:hover {
    transform: translateY(-4px);
    opacity: 1;
    color: var(--texto_white);
}

/*=============== REUSABLE CSS CLASSES ===============*/
.container {
    width: 90%;
    margin-inline: 1.5rem;
}

/*=============== HEADER ===============*/
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: var(--z-fixed);
    backdrop-filter: blur(4px);
    background: #22252d9c;
}

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

.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;
    width: 128px;
    height: auto;
}

.nav__logo img {
    width: 100%;
}

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

.nav__burger,
.nav__close {
    position: absolute;
    width: max-content;
    height: max-content;
    inset: 0;
    margin: auto;
    cursor: pointer;
    transition: opacity .1s, transform .4s;
}

.nav__close {
    opacity: 0;
}

/* Navigation for mobile devices */
@media screen and (max-width: 1118px) {
    .nav__menu {
        position: absolute;
        left: 0;
        top: 2.5rem;
        width: 100%;
        height: calc(100vh - 3.5rem);
        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);
        padding-top: 1rem;
    }
}

.nav__link {
    color: var(--white-color);
    padding: 1.25rem 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: 0.3s;

}

.nav__link:hover {
    color: var(--cor4);
}


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

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

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

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

.dropdown__arrow {
    font-size: 1.25rem;
    font-weight: initial;
    transition: transform .4s;
}

.dropdown__link,
.dropdown__sublink {
    padding: 0.25rem 0.25rem 0.25rem 1.5rem;
    color: var(--white-color);
    background-color: var(--black-color-light);
    display: flex;
    align-items: center;
    column-gap: .5rem;
    transition: background-color .3s;
}

.dropdown__icon {
    width: 20px;
    height: 20px;
    margin-right: 8px;
    vertical-align: middle;
}

.dropdown__icon img {
    width: 20px;
    height: 20px;
}

.dropdown__link:hover,
.dropdown__sublink:hover {
    background-color: var(--black-color);
}

.dropdown__menu {
    max-height: 0;
    overflow: hidden;
    transition: max-height .4s ease-out, opacity .3s;
    opacity: 0;
}

/* Mostrar o submenu quando a classe show-dropdown estiver presente */
.show-dropdown {
    max-height: 1000px;
    opacity: 1;
}

/* Rotaciona a seta ao abrir o dropdown */
.rotate-arrow {
    transform: rotate(180deg);
    transition: transform .3s ease;
}

/*=============== DROPDOWN SUBMENU ===============*/
.dropdown__submenu {
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-height .4s ease-out, opacity .3s;
}

.show-dropdown .dropdown__submenu {
    max-height: 1000px;
    opacity: 1;
}

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

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

    .nav__link {
        padding-inline: 1rem;
    }
}

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


    .container {
        margin-inline: auto;
    }

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

    .nav__toggle {
        display: none;
    }

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

    .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;
        left: 0;
        top: 6rem;
        opacity: 0;
        pointer-events: none;
        transition: opacity .3s, top .3s;
    }

    .dropdown__link,
    .dropdown__sublink {
        padding-inline: 1rem 3.5rem;
    }

    .dropdown__subitem .dropdown__link {
        padding-inline: 1rem;
    }

    .dropdown__submenu {
        position: absolute;
        left: 100%;
        top: .5rem;
    }

    /* Show dropdown menu */
    .show-dropdown .dropdown__menu {
        opacity: 1;
        top: 5.5rem;
        pointer-events: initial;
        transition: top .3s;
    }

    /* Show dropdown submenu */
    .show-dropdown .dropdown__submenu {
        opacity: 1;
        top: 0;
        pointer-events: initial;
        transition: top .3s;
    }

    .dropdown__item:hover .dropdown__menu {
        opacity: 1;
        top: 5.5rem;
        /* Ajuste conforme necessário */
        pointer-events: auto;
        transition: top .3s ease, opacity .3s ease;
    }

    .dropdown__item:hover .dropdown__arrow {
        transform: rotate(180deg);
        transition: transform .3s ease;
    }
}

h2 {font-size: 3rem;}
h1 {color: var(--texto_white); font-size: 3rem;}
ul {list-style: none;}
a {text-decoration: none; transition: 0.3s;}
p {color: var(--texto_white2);}
  