* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    text-decoration: none;
    border: none;
    outline: none;
    scroll-behavior: smooth;
    font-family: "Poppins", sans-serif;
}

:root{
    --second-bg-color: #131313;
    --text-color: rgb(255, 255, 255);
    --main-color: #4e4e4ec4;
}

body, html {
    margin: 50;
    padding: 0;
    width: 100%;
    overflow-x: hidden; 
}

html{
    font-size: 40%;
    overflow-x: hidden;
}

body{
    background: var(--bg-color);
    color: var(--text-color);
    font-family: Arial, sans-serif;
}

.header{
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 4rem 12% 4rem;
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 5;
}

.logo{
    font-size: 3rem;
    color: var(--text-color);
    font-weight: 100;
    cursor: pointer;
    transition: 0.3s ease;
    position: relative;
    left: -20px;
    margin-left: -20px;
}

.logo:hover{
    transform: scale(1.1);
}


.logo span{
    text-shadow: 0 0 25px var(--main-color);
}

.navbar{
    color: white;
    text-decoration: none;
    position: relative;
    padding: 10px;
}

.navbar a{
    font-size: 3.5rem;
    padding: 3rem;
    color: var(--text-color);
    margin-left: 4rem;
    font-weight: 500;
    transition: 0.3s ease;
    border-bottom: 3px solid transparent;
    position: relative;
}

.navbar a.hover,
.navbar a.active{
    color: var(--main-color);
    border-bottom: 3px solid var(--main-color);
}

.navbar a::before{
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0;
    height: 2px;
    background-color: var(--main-color); 
    transition: 0.3s ease;
}

.navbar a:hover::before{
    width: 100%;
}

#menu-icon{
    font-size: 3.6rem;
    color: var(--main-color);
    display: none;
}

section{
    min-height: 100vh;
    padding: 10rem 12% 10rem;
}

.home{
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15rem;
}

.home-content{
    display: flex;
    flex-direction: column;
    align-items: baseline;
    text-align: left;
    justify-content: center;
    margin-top: 3rem;
}

span{
    color: #fab570;
}


.home-content h3{
    margin-bottom: 2rem;
    margin-top: 1rem;
    font-size: 3.5rem;
}

.home-content h1{
    font-size: 7rem;
    font-weight: 700;
    margin-top: 1.5rem;
    line-height: 1;
}

.loader {
    width: 112px;
    height: 112px;
    position: sticky;
}

.box1,
.box2,
.box3 {
    border: 16px solid #f5f5f5;
    box-sizing: border-box;
    position: absolute;
    size: 10rem;
    display: block;
}

.box1 {
    width: 112px;
    height: 48px;
    margin-top: 64px;
    margin-left: 0px;
    animation: abox1 4s 1s forwards ease-in-out infinite;
}

.box2 {
    width: 48px;
    height: 48px;
    margin-top: 0px;
    margin-left: 0px;
    animation: abox2 4s 1s forwards ease-in-out infinite;
}

.box3 {
    width: 48px;
    height: 48px;
    margin-top: 0px;
    margin-left: 64px;
    animation: abox3 4s 1s forwards ease-in-out infinite;
}

@keyframes abox1 {
    0% {
        width: 112px;
        height: 48px;
        margin-top: 64px;
        margin-left: 0px;
    }

    12.5% {
        width: 48px;
        height: 48px;
        margin-top: 64px;
        margin-left: 0px;
    }

    25% {
        width: 48px;
        height: 48px;
        margin-top: 64px;
        margin-left: 0px;
    }

    37.5% {
        width: 48px;
        height: 48px;
        margin-top: 64px;
        margin-left: 0px;
    }

    50% {
        width: 48px;
        height: 48px;
        margin-top: 64px;
        margin-left: 0px;
    }

    62.5% {
        width: 48px;
        height: 48px;
        margin-top: 64px;
        margin-left: 0px;
    }

    75% {
        width: 48px;
        height: 112px;
        margin-top: 0px;
        margin-left: 0px;
    }
  
    87.5% {
      width: 48px;
      height: 48px;
      margin-top: 0px;
      margin-left: 0px;
    }
  
    100% {
      width: 48px;
      height: 48px;
      margin-top: 0px;
      margin-left: 0px;
    }
}

@keyframes abox2 {
    0% {
      width: 48px;
      height: 48px;
      margin-top: 0px;
      margin-left: 0px;
    }
  
    12.5% {
      width: 48px;
      height: 48px;
      margin-top: 0px;
      margin-left: 0px;
    }
  
    25% {
      width: 48px;
      height: 48px;
      margin-top: 0px;
      margin-left: 0px;
    }
  
    37.5% {
      width: 48px;
      height: 48px;
      margin-top: 0px;
      margin-left: 0px;
    }
  
    50% {
      width: 112px;
      height: 48px;
      margin-top: 0px;
      margin-left: 0px;
    }
  
    62.5% {
      width: 48px;
      height: 48px;
      margin-top: 0px;
      margin-left: 64px;
    }
  
    75% {
      width: 48px;
      height: 48px;
      margin-top: 0px;
      margin-left: 64px;
    }
  
    87.5% {
      width: 48px;
      height: 48px;
      margin-top: 0px;
      margin-left: 64px;
    }
  
    100% {
      width: 48px;
      height: 48px;
      margin-top: 0px;
      margin-left: 64px;
    }
}

@keyframes abox3 {
    0% {
      width: 48px;
      height: 48px;
      margin-top: 0px;
      margin-left: 64px;
    }
  
    12.5% {
      width: 48px;
      height: 48px;
      margin-top: 0px;
      margin-left: 64px;
    }
  
    25% {
      width: 48px;
      height: 112px;
      margin-top: 0px;
      margin-left: 64px;
    }
  
    37.5% {
      width: 48px;
      height: 48px;
      margin-top: 64px;
      margin-left: 64px;
    }
  
    50% {
      width: 48px;
      height: 48px;
      margin-top: 64px;
      margin-left: 64px;
    }

    62.5% {
        width: 48px;
        height: 48px;
        margin-top: 64px;
        margin-left: 64px;
    }

    75% {
        width: 48px;
        height: 48px;
        margin-top: 64px;
        margin-left: 64px;
    }

    87.5% {
        width: 48px;
        height: 48px;
        margin-top: 64px;
        margin-left: 64px;
    }

    100% {
        width: 112px;
        height: 48px;
        margin-top: 64px;
        margin-left: 0px;
    }
}

.home-content p{
    font-size: 1.5rem;
    font-weight: 500;
    line-height: 1.8;
    max-width: 1000px;
}

.spinner {
    position: relative;
    width: 60px;
    height: 60px;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 50%;
    margin-left: -20px;
}

.spinner span {
    position: absolute;
    top: 50%;
    left: var(--left);
    width: 35px;
    height: 7px;
    background: #ffff;
    animation: dominos 1s ease infinite;
    box-shadow: 2px 2px 3px 0px black;
}

.spinner span:nth-child(1) {
    --left: 70px;
    animation-delay: 0.125s;
}

.spinner span:nth-child(2) {
    --left: 60px;
    animation-delay: 0.3s;
}

.spinner span:nth-child(3) {
    left: 50px;
    animation-delay: 0.425s;
}

.spinner span:nth-child(4) {
    animation-delay: 0.54s;
    left: 40px;
}

.spinner span:nth-child(5) {
    animation-delay: 0.665s;
    left: 30px;
}

.spinner span:nth-child(6) {
    animation-delay: 0.79s;
    left: 20px;
}

.spinner span:nth-child(7) {
    animation-delay: 0.915s;
    left: 10px;
}

.spinner span:nth-child(8) {
    left: 0px;
}

@keyframes dominos {
    50% {
        opacity: 0.7;
    }

    75% {
    -webkit-transform: rotate(90deg);
    transform: rotate(90deg);
    }

    80% {
        opacity: 1;
    }
}


.social-icon a{
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 6.5rem;
    height: 6.5rem;
    background: transparent;
    border: 1.5px solid whitesmoke;
    font-size: 4rem;
    border-radius: 10%;
    color: white;
    margin: 3rem 1.5rem 3rem 0;
    transition: 0.3s ease-in-out;
}

.social-icon a:hover{
    color: var(--text-color);
    transform: scale(1.3)translateY(-5px);
    box-shadow: 0 0 25px var(--main-color);
    background-color: var(--main-color);
}

.button {
    --main-focus: #2d8cf0;
    --font-color: #dedede;
    --bg-color-sub: #222;
    --bg-color: #323232;
    --main-color: #dedede;
    position: relative;
    width: 170px;
    height: 40px;
    cursor: pointer;
    display: flex;
    align-items: center;
    border: 2px solid var(--main-color);
    box-shadow: 4px 4px var(--main-color);
    background-color: var(--bg-color);
    border-radius: 10px;
    overflow: hidden;
}

.button, .button__icon, .button__text {
    transition: all 0.3s;
}

.button .button__text {
    transform: translateX(21px);
    color: var(--font-color);
    font-weight: 600;
    font-size: 1.9rem;
}

.button .button__icon {
    position: absolute;
    transform: translateX(120px);
    height: 190%;
    width: 50px;
    background-color: var(--bg-color-sub);
    display: flex;
    align-items: center;
    justify-content: center;
}

.button .svg {
    width: 20px;
    fill: var(--main-color);
}

.button:hover {
    background: var(--bg-color);
}

.button:hover .button__text {
    color: transparent;
}

.button:hover .button__icon {
    width: 170px;
    transform: translateX(0);
}

.button:active {
    transform: translate(3px, 3px);
    box-shadow: 0px 0px var(--main-color);
}

.text-animation{
    font-size: 34px;
    font-weight: 600;
    min-width: 280px;
}

.text-animation span{
    position: relative;
}

.text-animation span::before{
    content: "System Developer";
    color: #fab570;
    animation: words 20s infinite;
}

.text-animation span::after{
    content: "";
    background-color: var(--bg-color);
    position: absolute;
    width: calc(100% + 8px);
    height: 100%;
    border-left: 3px solid var(--bg-color);
    right: -8px;
    animation: cursor 0.6s infinite, typing 20s steps(14) infinite;
}

@keyframes cursor{
    to{
        border-left: 2px solid var(--main-color);
    }
}

@keyframes words{
    0%,
    20%{
        content: " Engenheiro de Software ";
    }
    21%,
    40%{
        content: " Estudante de Analise de Dados :)";
    }
    41%,
    60%{
        content: " Tenho 19 anos ";
    }
    61%,
    80%{
        content: " Um ano na área";
    }
    81%,
    100%{
        content: " Residente de GO / Goiás ";
    }
}

@keyframes typing{
    10%,
    15%,
    30%, 
    35%,
    50%,
    55%,
    70%,
    75%,
    90%,
    95%{
        width: 0;
    }
    5%,
    20%,
    25%,
    40%,
    45%,
    60%,
    65%,
    80%,
    85%{
        width: calc(100% + 8px);
    }
}

.heading {
    font-size: 8rem;
    text-align: center;
    margin: 5rem 0;
}

.education {
    padding: 100px 15px;
    background-color: var(--second-bg-color);
}

.education h2 {
    margin-bottom: 5rem;
}

.timeline-items {
    max-width: 1200px;
    margin: auto;
    display: flex;
    flex-wrap: wrap;
    position: relative;
}

.timeline-items::before {
    content: "";
    position: absolute;
    width: 5px;
    height: 100%;
    background-color: var(--main-color);
    left: 50%;
    transform: translateX(-50%);
}

.timeline-item {
    margin-bottom: 40px;
    width: 100%;
    position: relative;
}

.timeline-item:last-child {
    margin-bottom: 0;
}

.timeline-item:nth-child(odd) {
    padding-right: calc(50% + 30px);
    text-align: right;
}

.timeline-item:nth-child(even) {
    padding-left: calc(50% + 30px);
}

.timeline-dot {
    height: 21px;
    width: 21px;
    background-color: var(--main-color);
    box-shadow: 
        0 0 25px var(--main-color),
        0 0 50px var(--main-color);
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    border-radius: 50%;
    top: 10px;
}

.timeline-date {
    font-size: 20px;
    font-weight: 800;
    color: white;
    margin: 6px 0 15px;
}

.timeline-content {
    background-color: var(--bg-color);
    border: 3px solid var(--main-color);
    padding: 30px 50px;
    border-radius: 4rem;
    box-shadow: 0 0 10px var(--main-color);
    cursor: pointer;
    transition: 0.3s ease-in-out;
}

.timeline-content:hover {
    transform: scale(1.05);
    box-shadow: 0 0 25px var(--main-color);
}

.timeline-content h3 {
    font-size: 20px;
    color: white;
    margin: 0 0 10px;
    font-weight: 500;
}

.timeline-content p {
    color: white;
    font-size: 16px;
    font-weight: 300;
    line-height: 22px;
}


::-webkit-scrollbar {
    width: 15px;
}

::-webkit-scrollbar-thumb {
    background-color: var(--main-color);
}

::-webkit-scrollbar-track {
    background-color: var(--bg-color);
    width: 50px;
}

.skills{
    background: var(--bg-color);
    color: white;
    padding: 5rem 2rem;
    text-align: center;
}

.skills h2{
    margin-bottom: 5rem;
    color: white;
}

.skills-container{
    display: grid;
    grid-template-columns: repeat(2,1fr);
    align-items: center;
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.skills-box{
    background-color: var(--main-color);
    height: 300px;
    border-radius: 10px;
    border: 5px solid transparent;
    cursor: pointer;
    padding: 1.5rem;
    transition: 0.4s ease-in-out;
}

.skills-box:hover{
    background: transparent;
    color: white;
    border: 3px solid var(--main-color);
    transform: scale(1.03);
}

.skills-box .skills-info{
    display: flex;
    flex-direction: column;
    text-align: left;
    max-height: 200px;
    justify-content: left;
    align-items: baseline;
    padding: 2rem 2rem;
}

.skills-info h4{
    font-size: 2.2rem;
    font-weight: 800;
    line-height: 2;
    margin-bottom: 1rem;
}

.skills-info p{
    font-size: 2.3rem;
    font-weight: 600;
    max-height: 100px;
    line-height: 1.7;
    margin: auto;
    margin-bottom: 0.8rem;
}

.slider-container {
    width: 100%;
    overflow: hidden;
    position: relative;
}

.slider {
    display: flex;
    transition: transform 1s ease-in-out;
}

.slide {
    min-width: 33.33%; 
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: transparent;
}

.slide img {
    width: 80%;
    object-fit: cover;
    padding: 40px;
}

.contact {
    padding: 4rem 10%;
    text-align: center;
    background: #121212;
    color: white;
    font-family: sans-serif;
}

.contact .heading {
    font-size: 2.5rem;
    font-weight: bold;
    position: relative;
    display: inline-block;
    margin-bottom: 2rem;
}
.contact .heading h2 a{
    font-size: 14rem;
    color: white;
}
.contact .heading span {
    display: block;
    width: 50px;
    height: 4px;
    background: #fab570;
    margin: 0.5rem auto 0;
}

.footer {
    margin-top: 2rem;
    padding: 30rem 0;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
}

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

.footer .social a {
    color: white;
    font-size: 6rem;
    transition: 0.3s;
    padding: 10px;
}

.footer .social a:hover {
    color: #fab570;
}

.footer .list {
    list-style: none;
    padding: 5px;
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 1rem;
}

.footer .list li a {
    text-decoration: none;
    color: white;
    font-size: 5rem;
    transition: 0.3s;
    padding: 30px;
}

.footer .list li a:hover {
    color: #fab570;
}

.footer .copyright {
    font-size: 3rem;
    opacity: 0.7;
    margin-top: 10rem;
}

@media(max-width:1285px){
    html{
        font-size: 50%;
    }

    .skills-container{
        padding-bottom: 7rem;
        grid-template-columns: repeat(2,1fr);
        margin: 0 5rem;
    }
}

@media(max-width:991px){
    header{
        padding: 1.6rem 2%;
    }
    section{
        padding: 10rem 3% 2rem;
    }

    .timeline-item::before{
        left: 7px;
    }

    .timeline-item:nth-child(odd){
        padding-right: 0;
        text-align: left;
    }

    .timeline-item:nth-child(odd),
    .timeline-item:nth-child(even){
        padding-left: 37px;
    }

    .timeline-dot{
        left: 0;
    }

    .skills{
        padding-bottom: 7rem;
    }

    .contact form{
        flex-direction: column;
    }

    .footer{
        padding: 2rem 3%;
    }

}

@media (max-width: 768px) {
    #menu-icon {
        display: block;
        cursor: pointer;
    }

    .navbar {
        display: none;
        position: absolute;
        top: 100%;
        right: 0;
        width: 100%;
        background: rgba(0, 0, 0, 0.8);
        backdrop-filter: blur(10px);
        padding: 1rem 0;
        border-bottom-left-radius: 2rem;
        text-align: center;
    }

    .navbar.active {
        display: block;
    }

    .navbar a {
        display: block;
        padding: 1rem;
        font-size: 2rem;
    }
    
}

@media (max-width: 1024px) {
    .skills-container {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
    
    .skills-box {
        padding: 2rem;
    }

    .skills-info h4 {
        font-size: 2.0rem;
    }

    .skills-info p {
        font-size: 1.4rem;
    }
}

@media (max-width: 768px) {
    .skills-container {
        grid-template-columns: 1fr; 
        gap: 1.2rem;
    }

    .skills-box {
        padding: 1.5rem;
    }

    .skills-info h4 {
        font-size: 1.8rem;
    }

    .skills-info p {
        font-size: 1.4rem;
    }

    .skills-info i {
        width: 30px;
        height: 30px;
    }
}

@media (max-width: 480px) {
    .skills-container {
        grid-template-columns: 1fr; 
        gap: 1rem;
    }

    .skills-box {
        padding: 1rem;
    }

    .skills-info h4 {
        font-size: 2rem;
    }

    .skills-info p {
        font-size: 1.9rem;
    }

    .skills-info i {
        width: 25px;
        height: 25px;
    }
}

@media (max-width: 768px) {
    .footer .social {
        gap: 1rem;
    }

    .footer .social a {
        font-size: 2rem;
    }

    .footer .list {
        flex-direction: column;
        gap: 1rem;
    }

    .footer .list li a {
        font-size: 1.6rem;
    }

    .copyright {
        font-size: 1.2rem;
    }
}

@media (max-width: 768px) {
    .slide {
        min-width: 50%; 
    }
}

@media (max-width: 480px) {
    .slide {
        min-width: 100%;
    }
}

@media only screen and (max-width: 768px) and (-webkit-min-device-pixel-ratio: 1.5) {
    .loader {
        width: 80px;
        height: 80px;
    }

    .box1,
    .box2,
    .box3 {
        border-width: 12px;
    }

    .box1 {
        width: 80px;
        height: 32px;
        margin-top: 48px;
    }

    .box2,
    .box3 {
        width: 32px;
        height: 32px;
    }

    .box3 {
        margin-left: 48px;
    }
}
