@import url("https://fonts.googleapis.com/css2?family=Montserrat&display=swap");

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    /* a cada 1rem será considera 10px */
    font-size: 62.5%;
}

body {
    font-family: 'IBM Plex Sans', sans-serif;
    background: var(--bg);
    color: var(--text);
}

ul {
    list-style-type: none;
}

a {
    text-decoration: none;
}

header {
    position: fixed;
    height: 10vh;
    width: 100%;
    display: flex;
    justify-content: center;
    padding: 20px 0;
    color: #333333 ;
    background: transparent;
    z-index: 99;
    align-items: center;
    border-bottom: none;
    box-shadow: none;
}

nav {
    width: 1120px;
    max-width: 1120px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 30px;
    background: var(--nav-bg);
    border-bottom: 0.5px solid var(--border);
    box-shadow: 2px 2px 2px 3px rgba(0,0,0,.15);
    height: 100%;
}

nav h1 {
    z-index: 10;
    color: var(--brand-primary);
    font-size: 3.0rem;
    font-weight: 700;
    letter-spacing: 6px;
}

nav ul {
    display: flex;
}

nav ul li {
    display: flex;
    margin-left: 40px;
}

ul li a {
    color: #007bff ;
    font-size: 2.2rem;
    height: 39px;
    display: flex;
    align-items: center;
    position: relative;
}

ul li a::before {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    background-color: #4c93fb ;
    transition: ease 0.4s;
    height: 1px;
}

ul li a:hover {
    color: #333333 ;
}

ul li a:hover::before {
    width: 100%;
}

.content {
    height: 90vh;
    background-color: #ffffff ;
    display: flex;
    align-items: center;
    justify-content: center;
}


#initial {
    height: 10vh;
    background: #ffffff ;
}

#initial div {
    margin-top: 1px;
    margin-left: 20%;
}

#initial div a {
    font-size: 2.0rem;
    font-weight: 700;
    letter-spacing: 3px;
    max-width: 315px;
    color: #f2f2f2;
    padding: 10px 100px;
    transition: all ease 0.3s;
    background: rgba(0, 0, 0, 1);
    border: solid 1px transparent;
}

#initial div a:hover {
    color: #4c93fb;
    /* background: rgba(110, 119, 133, 0.5); */
    /* border: 1px solid #007bff ; */
}

#initial div a .fa-github {
    font-size: 1.8rem;
    margin-right: 5px;
    animation: none;
}

.apresentacao {
    width: 1120px;
    max-width: 1120px;
    justify-content: space-between;
    display: flex;
    align-items: center;
    padding: 0 50px;
}

.apresentacao h1 {
    color: #000000;
    width: fit-content;
    font-size: 5.0rem;
    opacity: 0;
    animation: opacidade 7s 1s normal both;
}

.apresentacao p {
    color: #000000;
    font-size: 2.4rem;
    font-weight: 500;
}

.typing {
    white-space: nowrap;
    overflow: hidden;
    border-right: 2px solid #333333 ;
    width: 390px;
    font-size: 2.8rem;
    
}

.typing-animation {
    animation: typing 4s steps(45) 2s normal both, blinkCursor 750ms steps(45) 0.7s infinite normal;
    color: #007bff  ;
}

.computer-logo {
    animation: float 6s ease-in-out infinite, slide 5s normal both;
    transform: translateY(-600px);
}

#information {
    height: 60vh;
    background-color: var(--section-1);
    display: flex;
    align-items: center;
    justify-content: center;
}

.person {
    width: 1120px;
    max-width: 1120px;
    display: flex;
    align-items: center;
    text-align: justify;
    padding: 0 50px;
}

.person img{
    object-fit: cover;
    width: 320px;
    height: 320px;
    border-radius: 50%;
    display: block;
}

.informacoes-pessoais {
    margin-left: 5%;
    color: #0000005d;
}

.informacoes-pessoais h3 {
    font-family: 'Poppins', sans-serif;
    font-size: 5.0rem;
    color: #212529 ;
    font-weight: 700;
    letter-spacing: 5px;
}

.informacoes-pessoais p {
    margin-top: 25px;
    font-size: 2.2rem;
    font-weight: 500;
}

.informacoes-pessoais p span {
    color: var(--brand-warning);
}

#projects {
    position: relative;
    height: fit-content;
    background-color: var(--section-2);
    padding: 150px 0 250px 0;
}

#projects>h3{
    color: #4caf50 ;
    font-size: 4.5rem;
    letter-spacing: 15px;
    font-family: 'Poppins', sans-serif;
    font-weight: 800;
    margin-left: 10%;
}

.projects-container {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 8%;
    justify-content: space-around;
    margin-right: auto;
    margin-left: auto;
    max-width: 1120px;
}

.card {
    background: var(--surface);
    color: var(--text);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-soft);
    backdrop-filter: blur(0px);
    -webkit-backdrop-filter: blur(0px);
    border-radius: 10px;
    padding: 30px;
    margin-top: 9%;
    text-align: center;
    font-size: 2.0rem;
    font-weight: 700;
    height: 380px;
    transition: all ease 0.3s;
    width: 280px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
}

.card img {
    max-height: 210px;
 
    max-width: 240px;
    width: auto;
}

.card:hover {
    box-shadow: var(--shadow-strong);

}

.card a {
    
    font-size: 1.6rem;
    color: #a07c7c;
    transition: all ease 0.3s;
}

.card a:hover {
    color: #f7cdac9a;
}
.card .links p {
    color: var(--brand-success);

}

.links {
    margin-top: auto;
    display: grid;
    align-items: end;
    line-height: 35px;
}

#knowledge {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    position: relative;
    margin-top: 100px;
}

#knowledge>h3 {
    font-family: 'Poppins', sans-serif;
    font-weight: 800;
    margin-top: 4px;
    font-size: 4.5rem;
    display: flex;
    justify-content: center;
    position: absolute;
    top: 0;
    left: 5%;
    color: var(--brand-tertiary);
    font-size: 4.5rem;
    
}

.dev-span{
    color: var(--logo-color);
}


.knowledge-container {
    max-width: 1120px;
    padding: 40px 0;
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    margin-top: 8%;
}

.knowledge-type {
    display: flex;
    flex-direction: column;
    text-align: center;
    cursor: pointer;
}
.knowledge-type img{
    display: flex;
    width: 75px;
    margin-left: 22px;
  
    
}

.knowledge-type:hover{
    color: #d81b60;
}
.knowledge-type img:hover{
    color: #d81b60;
}


.knowledge-type h3 {
    font-size: 2.2rem;
    color: #212529 ;
    transition: all ease 0.5s;
}

.fa-brands, .fa-solid {
    font-size: 7.5rem;
}

.saida-knowledge {
    width: 600px;
    max-width: 600px;
    height: 150px;
    margin-bottom: 50px;
    background: rgba(0, 0, 0, 1);
    box-shadow: 10px 10px 5px 0 rgba(0, 0, 0, 0.50);
    border-radius: 10px;
    padding: 20px 10px;

}

.saida-text {
    text-align: center;
    color: #ffff;
    font-size: 2.4rem;
}

#contact {
    display: flex;
    position: relative;
    justify-content: center;
    margin-top: 5%;
    background-color: var(--section-3);
    padding-top: 200px;
    padding-bottom: 50px;
}

.titleContact {
    color: var(--title-color);
    position: absolute;
    top: 27%;
    left: 3%;
    font-size: 4.5rem;
    font-weight: 800;
    font-family: 'Poppins', sans-serif;
}

.links-contact {
    display: flex;
    gap: 13%;
    margin-top: 5%;
    flex-direction: column;
    max-width: 1120px;
}

.links-contact i {
    font-size: 2.2rem;

}

.links-contact a {
    display: flex;
    justify-content: flex-start;
    color: var(--bg);
    transition: all ease 0.3s;
    background: var(--accent);
    border: solid 1px transparent;
    padding: 10px 40px;
    width: 350px;
    max-width: 350px;
    margin-top: 5%;
}

.links-contact a span {
    color: var(--bg);
    font-size: 1.6rem;
    font-weight: 700;
    letter-spacing: 2px;
    margin-left: 10px;
}

.links-contact a:hover {
    color: var(--bg);
    background: var(--accent-2);
    border: 1px solid transparent;
}

#back-to-top {
    display: flex;
    justify-content: center;
    flex-direction: column;
    align-items: center;
    padding-bottom: 1%;
    padding-top: 2%;
    background-color: #ffffff;
}

.fa-angles-up {
    cursor: pointer;
    font-size: 2.8rem;
    animation: float2 2s ease-in-out infinite;
}

#back-to-top span {
    font-family: 'Poppins', sans-serif;
    font-size: 1.2rem;
    font-weight: 700;
}

footer {
    height: 7vh;
    background-color: var(--footer-bg);
    padding: 10px;
    box-shadow: 10px 10px 5px 10px rgba(0, 0, 0, 0.50);
    display: flex;
    align-items: center;
    font-size: 1.2rem;
    color: #f0f0f0;
}

footer p {
    margin-left: 10%;
}

footer a, footer .fa-github {
    text-decoration: none;
    animation: none;
    font-size: 1.2rem;
    color: #d3d3d3;
    transition: all ease 0.3s;
}

footer a:hover {
    color: #ffffff;
}

footer .fa-github {
    margin-left: 10px;
}

.name-footer {
    color: #4c93fb;
    font-weight: 500;
}


@keyframes typing {
    from {
        width: 0;
    }

    to {
        width: 100%;
        transform: translate(-30px);
        color: #4c93fb ;
        ;
    }
}

@keyframes blinkCursor {
    from {
        border-right-color: #fd984b;
    }

    to {
        border-right-color: transparent;
    }
}

@keyframes opacidade {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
        transform: translate(30px);
    }
}

@keyframes float {
    0% {
        transform: translatey(0px);
    }

    50% {
        transform: translatey(-30px);
    }

    100% {
        transform: translatey(0px);
    }
}

@keyframes slide {
    0% {
        transform: translateY(-600px);
    }

    50% {
        transform: translateY(0);
    }
}

@keyframes float2 {
    0% {
        transform: translatey(0px);
    }

    50% {
        transform: translatey(-5px);
    }

    100% {
        transform: translatey(0px);
    }
}
.dark-mode-btn {
    float: right;
}

.dark-mode-btn input[type="checkbox"] {
    opacity: 0;
    position: absolute;
}


.dark-mode-btn label {
    background-color: #111;
    width: 50px;
    height: 26px;
    border-radius: 50px;
    position: relative;
    padding: 5px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.fa-moon {color: #f1c40f;}

.fa-sun {color: #f39c12;}

.dark-mode-btn label:after {
    content: "";
    width: 35px;
    height: 9px;
    position: absolute;
    top: 2px;
    left: 2px;
    background: linear-gradient(180deg, #007bff,#4caf50);
    border-radius: 11px;
    transition: 0.3s;
    box-shadow: 0px 5px 10px rgba(0, 0, 0, 0.50);
    transition: 0.3s;
}

.dark-mode-btn input[type="checkbox"]:checked + label {
    background-color: #222;
}

.dark-mode-btn input[type="checkbox"]:checked + label:after {
    transform: translateX(20px);
}

/* Estilos do modo escuro */

.checkbox {
    position: fixed;
    bottom: 80px; /* Ajuste a posição conforme necessário */
    left: 20px; /* Ajuste a posição conforme necessário */
    opacity: 0;

    position: absolute;
  }
  
  .checkbox-label {
    background-color: rgb(240, 236, 236);
    width: 50px;
    height: 26px;
    border-radius: 50px;
    position: relative;
    padding: 5px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
  }
  
  .fa-moon {color: #141413;}
  
  .fa-sun {color: #f39c12;}
  
  .checkbox-label .ball {
    background-color: var(--brand-primary);
    width: 22px;
    height: 22px;
    position: absolute;
    left: 2px;
    top: 2px;
    border-radius: 50%;
    transition: transform 0.2s linear;
  }
  
  .checkbox:checked + .checkbox-label .ball {
    transform: translateX(24px);
  }

a{ color: var(--accent); }
a:hover{ color: var(--accent-2); }

:focus-visible{
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce){
  *{
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }
}

.skills-marquee{
  width: 100%;
  padding: 18px 0;
}

.skills-marquee__viewport{
  max-width: 1120px;
  margin: 0 auto;
  overflow: hidden;
  mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
  -webkit-mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
}

.skills-marquee__track{
  display: flex;
  flex-wrap: nowrap;
  gap: 20px;
  width: max-content;
  will-change: transform;
  animation: skillsMarquee 18s linear infinite;
}

@keyframes skillsMarquee{
  from{ transform: translateX(0); }
  to{ transform: translateX(-100%); }
}

.skills-marquee .knowledge-type{
  flex: 0 0 auto;
}

@media (prefers-reduced-motion: reduce){
  .skills-marquee__track{ animation: none; }
}
