@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@100;200;300;400;500;600&display=swap');

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

html{
    font-size: 62.5%;
}

body{
    width: 100%;
    height: 100vh;
    overflow-x: hidden;
    background-color: black;
    color: white;
}

header{
    position:fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 1rem 9%;
    background-color: transparent;
    filter: drop-shadow(10px);
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 100;
    background-color: #000;
}

.logo{
    font-size: 3rem;
    color: #b74b4b;
    font-weight: 800;
    cursor: pointer;
    transition: 0.5s ease;
}

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


nav a{
    font-size: 1.8rem;
    color: white;
    margin-left: 4rem;
    font-weight: 500;
    transition: 0.5s ease;
    border-bottom: 3px solid transparent;
}

nav a:hover,
nav a.active{
    color: #b74b4b;
    border-bottom: 3px solid #b74b4b;
}

@media(max-width: 995px){
    nav{
        position: absolute;
        display: none;
        top: 0;
        right: 0;
        width: 40%;
        border-left: 3px solid #b74b4b;
        border-bottom: 3px solid #b74b4b;
        border-bottom-left-radius: 2rem;
        padding: 1rem solid;
        background-color: #161616;
        border-top: 0.1rem solid rgba(0,0,0,0.1);
    }

    nav.active{
        display: block;
    }

    nav a{
        display: block;
        font-size: 2rem;
        margin: 3rem 0;
    }

    nav a:hover,
    nav a.active{
        padding: 1rem;
        border-radius: 0.5rem;
        border-bottom: 0.5rem solid #b74b4b;
    }
}

section{
    min-height: 100vh;
    padding: 5rem 9% 5rem;
}

.home{
    display: flex;
    align-items: center;
    align-items: center;
    gap: 8rem;
    background-color: black;
}

.home .home-content h1{
    font-size: 6rem;
    font-weight: 700;
    line-height: 1.3;
}

span{
    color:#b74b4b;
}

.home-content h3{
    font-size: 4rem;
    font-weight: 700;
    margin-bottom: 1rem;   
}

.home-content p{
    font-size: 1.6rem;
}

.home-img{
    border-radius: 50%;
}

.home-img img{
    position: relative;
    width: 20vw;
    box-shadow: 0 0 25px solid #b74b4b;
    cursor: pointer;
    border-radius: 50%;
    transition: 0.2s linear;
}

.home-img img:hover{
    font-size: 1.8rem;
    font-weight: 500;
}   

.social-icons a{
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 4rem;
    height: 4rem;
    background-color: transparent;
    border: 0.2rem solid #b74b4b;
    font-size: 2rem;
    border-radius: 50%;
    margin: 3rem 1.5rem 3rem;
    transition: 0.3s ease;
    color: #b74b4b;
}

.social-icons a:hover{
    background-color: #b74b4b;
    color: black;
    transform: scale(1.3) translateY(-5px);
    box-shadow: 0 0 25px #b74b4b;    
}

.btn{
    display: inline-block;
    padding: 1rem 2.8rem;
    background-color: black;
    border-radius: 4rem;
    font-size: 1.6rem;
    color: #b74b4b;
    letter-spacing: 0.3rem;
    font-weight: 600;
    border: 2px solid #b74b4b;
    transition: 0.3s ease;
    cursor: pointer;
}

.btn:hover{
    transform: scale3d(1.03);
    background-color: #b74b4b;
    color: black;
    box-shadow: 0 0 25px #b74b4b;
}

.typing-text span{
    position:relative;
}

.typing-text span::before{
    content: var(--role, "Engenheiro de Software");
    color:#b74b4b
}

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

@keyframes cursor{
    to{
        border-left: 3px solid transparent;
    }
}

@keyframes words {
  0%, 20% {
    content: "Engenheiro de Software";
  }
  21%, 40% {
    content: "Desenvolvedor Web";
  }
}

@media (max-width: 1000px){
    .home{
        gap: 4rem;
    }
}

@media(max-width: 995px){
    .home{
        flex-direction: column;
        margin: 5rem 4rem;
    }

    .home .home-content h3{
        font-size: 2.5rem;
    }

    .home-content h1{
        font-size: 5rem;
    }

    .home-img img{
        width: 70vw;
        margin-top: 4rem;
    }
}

.education h2{
  font-size: clamp(2rem, 3vw, 2.6rem);
  margin-bottom: .6rem;
}

.edu-box{
  margin-top: .6rem;
  padding: 1.2rem .6rem;
  background: #111;
  color: #fff;
  border: 1px solid #ffffff22;
  border-left: 4px solid #b74b4b;
  border-radius: 14px;
  box-shadow: 0 10px 24px rgba(0,0,0,.25);
}

.edu-box h3{
  font-size: 1.8rem;
  margin: 0 0 .4rem;
  color: #b74b4b;
  display: flex;
  align-items: center;
  gap: .6rem;
}

.edu-box p{
  font-size: 1.45rem;
  line-height: 1.55;
  margin: .3rem 0 .6rem;
}


html { scroll-behavior: smooth; }
#education, #experience { scroll-margin-top: 120px; }


.experience h2{
  font-size: clamp(2rem, 3vw, 2.6rem);
  margin-bottom: 1.2rem;
}

.xp-box{
  margin-top: 1.2rem;
  padding: 1.6rem 2rem;
  background: #111;
  color: #fff;
  border: 1px solid #ffffff22;
  border-left: 4px solid #b74b4b;
  border-radius: 14px;
  box-shadow: 0 10px 24px rgba(0,0,0,.25);
}

.xp-box h3{
  font-size: 1.8rem;
  margin: 0 0 .6rem;
  color: #b74b4b;
  display: flex;
  align-items: center;
  gap: .6rem;
}

.xp-box p{
  font-size: 1.45rem;
  line-height: 1.7;
  margin: .6rem 0 1rem;
}

.xp-list{
  list-style: none;
  margin: .6rem 0 1.2rem;
  padding: 0;
  display: grid;
  gap: .6rem;
}
.xp-list li{
  display: flex;
  gap: .6rem;
  align-items: flex-start;
  font-size: 1.4rem;
  color: #ddd;
}
.xp-list i{
  color: #b74b4b;
  margin-top: .2rem;
}

#education.section,
#experience.section{
  min-height: auto;
}

#education.section{
  padding-bottom: 1.2rem;
}

#experience.section{
  padding-top: 1.2rem;
}

.lang-toggle-btn{
  margin-left: 1.6rem;
  padding: .6rem 1.2rem;
  font-size: 1.3rem;
  border-radius: 999px;
  background: transparent;
  color: #fff;
  border: 1px solid #b74b4b;
  cursor: pointer;
  transition: .2s ease;
}
.lang-toggle-btn:hover{
  background: #b74b4b;
  color: #000;
  box-shadow: 0 0 14px #b74b4b;
}

