* {
    margin: 0;
    padding: 0;
    transition: all .3s;
}

html {
    scroll-behavior: smooth;
}

:root {
    --font-family: "Lexend Exa", sans-serif;

    --background: linear-gradient(90deg,
    rgb(0, 11, 110) 0%,
    rgb(0, 2, 20) 20%,
    rgb(0, 2, 20) 80%,
    rgb(0, 11, 110) 100%);
    --nav-background: rgb(0, 4, 43);
    --white: #e9e9e9;
    --gray: #a3a3a3;
    --gray-hover: #c7c7c7;
    --blue: #001b46;
    --blue-hover: #006aff;
    --red: #810000;
    --red-hover: #df0000;
    --orange: #814900;
    --orange-hover: #da7b00;
    --yellow: #d8ce41;
    --yellow-hover: #fffb00;

    --lua: #006aff;
    --js: #f7df1e;
    --css: #264de4;
    --html: #e34c26;
    --sql: #f29111;
    --node: #68a063;
    --py: #378aab;
    --react: #61dafb;
    --batch: #000105;
}

body {
    background: var(--background);

    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    background-repeat: no-repeat;
    background-size: cover;
}

/*-----KEYFRAMES-----*/
@keyframes icon-indentifier {
    from {
        transform: translateY(10px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes slide-up {
    0% {
        transform: translateY(100px);
        opacity: 0;
    }
    50% {
        transform: translateY(-20px);
        opacity: 1;
    }
    100% {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes slide-down {
    0% {
        transform: translateY(-100px);
        opacity: 0;
    }
    50% {
        transform: translateY(20px);
        opacity: 1;
    }
    100% {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes slide-right {
    0% {
        transform: translateX(-100px);
        opacity: 0;
    }
    50% {
        transform: translateX(20px);
        opacity: 1;
    }
    100% {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slide-left {
    0% {
        transform: translateX(100px);
        opacity: 0;
    }
    50% {
        transform: translateX(-20px);
        opacity: 1;
    }
    100% {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes opacity {
    50% {
        opacity: 0;
    }
    100% {
        opacity: 1;
    }
}

@keyframes typing {
    to {
        width: 100%;
    }
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}


/*-----RESPONSIVE-----*/
@media (max-width: 1300px) {
    #perfil .perfil img {
        width: 300px;
    }
}
@media (max-width: 1100px) {
    #perfil .perfil img {
        width: 200px;
    }
    #perfil .perfil ul {
        justify-content: center;
        gap: 10px;
    }
}

@media (max-width: 1000px) {
    #perfil, #perfil .perfil {
        flex-direction: column;
        margin: 0;
    }
    #perfil .perfil ul {
        flex-direction: row !important;
        margin: 0;
        height: 10px;
    }
    #perfil .perfil img {
        width: 300px;
        margin: 0;
        margin-bottom: 20px;
    }

    #infos .text {
        margin: 0 !important;
        width: 80% !important;

        display: flex;
        flex-direction: column;
        gap: 10px !important;
    }

    #infos .text h1 {
        font-size: 16px !important;
    }
    #infos .text h2 {
        font-size: 14px !important;
    }
    .box-container .box .showcase-container .languages-container {
        width: 70% !important;
    }
}

@media (max-width: 600px) {
    #nav {
        padding: 15px 20px;
    }

    #nav .logo {
        width: 80px;
    }

    #nav ul {
        gap: 10px;
    }
    #nav ul li a i {
        font-size: 22px;
    }

    #perfil, section, .box-container {
        width: 100%;
    }
    
    #projects .box-container .box, #skills .box-container .box {
        max-width: 420px !important;
    }
}

@media (max-width: 420px) {
    #nav .logo {
        width: 60px;
    }

    #nav ul li a i {
        font-size: 18px;
    }

    #perfil .perfil img {
        width: 200px;
        margin: 0 !important;
        margin-bottom: 20px !important;
    }

    #projects .box-container .box, #skills .box-container .box {
        max-width: 350px !important;
    }
}

@media (max-width: 350px) {
    #nav .logo {
        width: 50px;
    }

    #nav ul li a i {
        font-size: 12px;
    }
}

/*-----NAV-----*/
header {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;

    position: relative;
    height: 100px;
    z-index: 9999;
}

nav {
    position: fixed;
    padding: 15px 60px;

    margin-top: 20px;

    background-color: var(--nav-background);

    display: flex;
    align-items: center;
    justify-content: space-between;
    border-radius: 20px;

    animation: slide-down .8s forwards;
    overflow: hidden;

    gap: 120px;
}

#nav {
    transition: top 0.5s ease;
    top: 0;
}

#nav.hide {
    top: -100px;
}

nav img.logo {
    width: 80px;

    opacity: 0;
    animation: slide-right .5s ease .4s forwards;
}

nav ul {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 30px;
    list-style-type: none;

    opacity: 0;
    animation: slide-left .5s ease .8s forwards;

    overflow: visible !important;
}

.perfil ul {
    overflow: visible !important;
}
nav ul li a, .perfil ul li a {
    display: flex;
    align-items: center;
    justify-content: center;

    font-family: var(--font-family);
    color: var(--white);
    font-size: 20px;

    padding: 5px 5px;
    border-radius: 5px;

    text-decoration: none;
    transition: all .3s;
}

nav ul li a:hover, .perfil ul li a:hover {
    background-color: var(--blue-hover);
}

nav ul li a::after, .perfil ul li a::after {
    content: attr(data-name);
    font-size: 12px;
    color: var(--white);
    font-family: var(--font-family);

    position: absolute;
    display: none;
    top: -15px;

    opacity: 0;
    animation: icon-indentifier .3s forwards;
}

nav ul li a:hover:after, .perfil ul li a:hover:after {
    display: block;
}

/*-----SECTION-----*/
section {
    display: flex;
    align-items: center;
    flex-direction: column;

    width: 100%;
    padding: 50px 0 50px 0;

    position: relative;
    margin-top: 50px;

    overflow: hidden !important;
}

section .title {
    font-family: var(--font-family);
    color: var(--white);
    font-size: 22px;
    text-align: center;
    position: relative;
    margin-bottom: 50px;

    opacity: 0;
    animation: opacity 1s ease 1s forwards;
}

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

footer {
    position: relative;
    text-align: center;
    margin-top: 50px;
    margin-bottom: 50px;
}

footer p {
    font-family: var(--font-family);
    font-size: 14px;
    font-weight: 400;
}

.hidden {
    opacity: 0;
    transition: all 1s;
}

.visible {
    opacity: 1;
    transition: all 1.5s;
}

/*-----PERFIL-----*/
.perfil {
    width: 600px;
    height: 600px;
    margin: 40px;
    margin-right: 100px;

    display: flex;
    align-items: center;
    justify-content: space-evenly;
    gap: 50px;
    
    overflow: hidden;
    position: relative;
}

.perfil img {
    position: relative;
    width: 400px;
    border-radius: 50%;

    filter: drop-shadow(0px 0 10px var(--blue-hover)) brightness(1.1);

    object-fit: cover;
    aspect-ratio: 1 / 1;

    transition: all .2s;

    opacity: 0;
    animation: opacity 2s ease 1s forwards;
}

.perfil ul {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-direction: column;

    list-style-type: none;

    height: 60%;
}

.perfil ul li {
    opacity: 0;
    animation: slide-right 0.5s ease 1.8s forwards;
}

.perfil ul li:first-child {
    opacity: 0;
    animation: slide-down 0.5s ease 1s forwards;
}

.perfil ul li:last-child {
    opacity: 0;
    animation: slide-up 0.5s ease 1.4s forwards;
}

/*-----INFOS-----*/
#infos .text {
    width: 400px;
    margin: 40px;
    margin-left: 100px;
    
    text-indent: 10px;
    letter-spacing: -1px;

    filter: drop-shadow(0 0 50px var(--blue-hover));
}

#infos .text h1 {
    font-family: var(--font-family);
    color: var(--white);
    font-size: 22px;
    text-align: center;
}

#infos .text h2 {
    font-family: var(--font-family);
    color: var(--gray-hover);
    font-size: 18px;
    font-weight: 400;
}

#infos .text p {
    font-family: var(--font-family);
    color: var(--gray);
    font-size: 14px;
    font-weight: 400;
}

.typing::after {
    content: '|';
}

.blink::after {
    content: '|';
    animation: blink 1s infinite;
}

/*-----BOX-CONTAINER-----*/
#projects .box-container, #skills .box-container {
    position: relative;
    width: 100%;

    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    
    gap: 40px;
}

/*-----BOX-----*/
#projects .box-container .box, #skills .box-container .box {
    position: relative;
    max-width: 500px;
    border-radius: 10px;
    overflow: hidden;

    background: var(--blue);

    transition: all .5s;
    opacity: 0;
    animation: opacity 1s forwards;
    overflow: hidden;
}

#projects .box-container .box::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(0, 204, 255, 0.08), rgba(0, 26, 255, 0.08));
    opacity: 0;
    transition: opacity 0.5s;
    pointer-events: none;
    z-index: 1;
}

#projects .box-container .box:hover, #skills .box-container .box:hover {
    transform: scale(1.02);
}

#projects .box-container .box:hover::before {
    opacity: 1;
}

/*-----SHOWCASE-----*/
#projects .box-container .box:hover .showcase-container img {
    filter: blur(2px);
    transform: scale(1.05);
}

#projects .box-container .box:hover .showcase-container .languages-container {
    height: 150px;
    opacity: 1;
}

#projects .box-container .box:hover .showcase-container .languages-container h1, #projects .box-container .box:hover .showcase-container .languages-container ul li {
    display: flex;
}

.box-container .box .showcase-container, .box-container .box .description {
    width: 100%;
    max-height: 400px;

    position: relative;

    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.box-container .box .showcase-container .showcase-img {
  position: absolute;
  width: 100%;
  max-height: 600px;
  opacity: 1;
  transition: opacity 0.5s ease;
}

.box-container .box .showcase-container .showcase-img.fade-out {
  opacity: 0;
}

.box-container .box .showcase-container .languages-container {
    position: relative;
    width: 80%;
    height: 0;
    display: flex;
    flex-direction: column;
    margin: 20px;
    opacity: 0;
    transition: all .5s;
}

.box-container .box .showcase-container .languages-container h1 {
    font-family: var(--font-family);
    font-size: 20px;
    margin-bottom: 10px;

    display: none;
    opacity: 0;
    animation: slide-down .5s ease .3s forwards;
}

.box-container .box .showcase-container .languages-container ul {
    display: flex;
    justify-content: center;
    flex-direction: column;

    list-style: none;
    padding: 0;
    gap: 5px;
    margin-left: 10px;
    width: 100%;
}

.box-container .box .showcase-container .languages-container ul li {
    position: relative;
    padding-left: 25px;

    display: none;
    align-items: center;
    justify-content: space-between;
    width: 100%;

    opacity: 0;
    animation: slide-right .5s ease .5s forwards;
}

.languages-container ul li:nth-child(2) {
    animation-delay: .55s !important;
}

.languages-container ul li:nth-child(3) {
    animation-delay: .6s !important;
}

.languages-container ul li:nth-child(4) {
    animation-delay: .65s !important;
}

.languages-container ul li:nth-child(5) {
    animation-delay: .7s !important;
}

.box-container .box .showcase-container .languages-container ul li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.box-container .box .showcase-container .languages-container ul li h2 {
    font-family: var(--font-family);
    color: var(--white) !important;
    font-size: 14px;
    font-weight: 400;
}

.box-container .box .showcase-container .languages-container ul li p {
    font-family: var(--font-family);
    color: var(--blue-hover);
    font-size: 12px;
    font-weight: 600;
}

/*-----DESCRIPTION-----*/
.box-container .box .description {
    flex-direction: column;
    align-items: start;
}

.box-container .box .description h1, .box-container .box .description h2, .box-container .box .description p {
    font-family: var(--font-family);
    color: var(--white);
    font-size: 18px;
    font-weight: 600;
    margin: 10px;
}

.box-container .box .description h2 {
    color: var(--gray-hover);
    font-size: 14px;
}

.box-container .box .description p {
    color: var(--gray);
    font-size: 12px;
    text-indent: 10px;
    letter-spacing: -1px;
}

/*-----LINKS-----*/
.box-container .box .project-links {
    width: 100%;
    height: 50px;
    margin: 10px;

    display: flex;
    align-items: center;
    justify-content: space-evenly;
}

.box-container .box .project-links a {
    text-decoration: none;
}

.box-container .box .project-links button {
    padding: 10px 10px;
    background: transparent;
    border: none;
    border-bottom: 1px solid var(--blue-hover);

    cursor: pointer;

    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;

    transition: all .3s;
}

.box-container .box .project-links button {
    font-family: var(--font-family);
    font-size: 14px;
    color: var(--white);
}

.box-container .box .project-links button i {
    font-size: 20px;
}

.box-container .box .project-links button:hover {
    background-color: var(--blue-hover);
}

/*-----SKILLS-----*/
#skills .box-container .box {
    width: 250px;
}

#skills .box-container .box .head {
    width: 100%;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

#skills .box-container .box .head h1 {
    font-family: var(--font-family);
    color: var(--white);
    font-size: 12px;
    padding: 2px 5px;
    border-radius: 10px;
    margin-right: 10px;

    font-weight: 500;
}

#skills .box-container .box .head i {
    font-size: 25px;
    padding: 5px 5px;
    border-radius: 5px;
    margin-left: 10px;
}

/*-----CONTACTS-----*/
#contacts main ul {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 100px;
    list-style-type: none;
}

#contacts main ul li:hover i {
    border-color: var(--blue-hover);
}
#contacts main ul li:hover h1, #contacts main ul li:hover i, #contacts main ul li:hover p{
    color: var(--blue-hover);
}

#contacts main ul li {
    opacity: 0;
    animation: slide-right .4s forwards
}

#contacts main ul li, #contacts main ul li a {
    text-decoration: none;

    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 5px;
}

#contacts main ul li i {
    color: var(--white);

    padding: 5px 5px;
    font-size: 24px;
    border: 1px solid var(--white);
    border-radius: 5px;
}

#contacts main ul li h1 {
    font-family: var(--font-family);
    color: var(--white);
    font-size: 14px;
}

#contacts main ul li p {
    font-family: var(--font-family);
    color: var(--white);
    font-size: 10px;
}

/*-----TEXT-COLORS-----*/

.lua::before {
    background-color: #003580; /* Azul escuro */
    filter: drop-shadow(0 0 5px #003580);
}
.js::before {
    background-color: #f7df1e; /* Amarelo JS */
    filter: drop-shadow(0 0 5px #f7df1e);
}
.css::before {
    background-color: #264de4; /* Azul CSS */
    filter: drop-shadow(0 0 5px #264de4);
}
.html::before {
    background-color: #e34c26; /* Laranja HTML */
    filter: drop-shadow(0 0 5px #e34c26);
}
.sql::before {
    background-color: #f29111; /* Laranja mais claro */
    filter: drop-shadow(0 0 5px #f29111);
}
.node::before {
    background-color: #68a063; /* Verde Node.js */
    filter: drop-shadow(0 0 5px #68a063);
}
.py::before {
    background-color: #3760ab; /* Azul Python */
    filter: drop-shadow(0 0 5px #3760ab);
}
.react::before {
    background-color: #61dafb; /* Azul React */
    filter: drop-shadow(0 0 5px #61dafb);
}
.batch::before {
    background-color: #000105; /* Azul React */
    filter: drop-shadow(0 0 5px #a5a5a5);
}

.degrade {
    background: linear-gradient(90deg, var(--blue-hover), #0099ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: transparent;
}