@import url('https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');

:root {
    --bg-color: #000000;
    --bg-detail: #323232;
    --main-color: #3CFF00;
    --text-color: #fff;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
    text-decoration: none;
}

body {
    overflow-y: scroll;
    background: var(--bg-detail);
}

body::-webkit-scrollbar {
    width: .95rem;
}
  
body::-webkit-scrollbar-track {
    background: var(--bg-detail);
}
  
body::-webkit-scrollbar-thumb {
    background-color: var(--main-color);
    border-radius: .2rem;
    border: 3px solid var(--bg-detail);
}

body, html {
    scroll-snap-type: y mandatory;
}

header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: .8rem 4rem;
    left: 0;
    top: 0;
    color: var(--text-color);
    width: 100%;
    background: var(--bg-color);
    position: fixed;
    transition: all .18s ease-in;
    z-index: 1;
}

.header.sticky {
    box-shadow: 0 .6rem .7rem rgba(0, 0, 0, 0.7);
}

header a {
    font-size: 1.65rem;
    font-weight: 500;
    color: var(--text-color);
}

header a span {
    color: var(--main-color);
}

header nav {
    display: flex;
    gap: 1rem;
}

header nav a {
    font-size: 1.15rem;
    font-weight: 500;
    color: var(--text-color);
    position: relative;
}

header nav a::after {
    content: '';
    width: 0%;
    left: 50%; /* Adicionado para centralizar */
    transform: translateX(-50%);
    height: .16rem;
    border-radius: 1rem;
    background: var(--main-color);
    position: absolute;
    bottom: 0;
    display: flex;
    align-items: center;
    transition: all .25s ease-in;
}

header nav a.active {
    color: var(--main-color);
}

header nav a.active::after {
    content: '';
    width: 70%;
    left: 50%; /* Adicionado para centralizar */
    transform: translateX(-50%);
    height: .15rem;
    background: var(--main-color);
    position: absolute;
    bottom: 0;
    display: flex;
    align-items: center;
    transition: all .25s ease-in;
}

header nav a:hover::after, nav a:hover {
    width: 70%;
    color: var(--main-color);
}

header .btn {
    font-size: 1.05rem;
    font-weight: 500;
    color: var(--text-color);
    background: transparent;
    padding: .3rem 1.5rem;
    border: 3px solid var(--text-color);
    border-radius: .5rem;
    display: flex;
    align-items: center;
    transition: all .15s ease-in;
}

header .btn:hover {
    color: var(--bg-color);
    background: var(--text-color);
}

header .start-sci {
    display: flex;
    align-items: center;
    gap: .4rem;
}

header .start-sci a {
    font-size: 1.7rem;
    color: var(--bg-detail);
    transition: all .15s ease-in;
}


header .start-sci a:hover {
    scale: 1.1;
    color: var(--text-color);
}

section {
    min-height: 100vh;
    padding: 0 4rem;
    position: sticky;
    scroll-snap-align: start;
    color: var(--text-color);
    background: var(--bg-color);
}


.start {
    display: flex;
    align-items: center;
}

.start-content {
    display: flex;
    flex-direction: column;
    width: 35.345rem;
    gap: .25rem;
    margin-top: 6rem;
}

.start-content h1 {
    position: relative;
    font-size: 3.5rem;
    font-weight: 600;
    line-height: .8;
}

.start-content .text-animate {
    position: relative;
}

.start-content .text-animate h3,
.start-content .text-animate h3 span {
    font-size: 2rem;
    font-weight: 600;
    color: var(--main-color);
}


.start-content p {
    position: relative;
    font-size: 1rem;
    font-weight: 500;
    text-align: justify;
    
}

.btn-box {
    display: flex;
    gap: 2rem;
    position: relative;
    margin: 2rem 0;
}

.btn-box a {
    font-size: 1.16rem;
    font-weight: 500;
    padding: .6rem 2rem;
    border-radius: .5rem;
    display: flex;
    align-items: center;
    transition: all .15s ease-in;
}

.btn-box a:nth-child(1) {
    color: var(--bg-color);
    background: var(--main-color);
    border: 3px solid var(--main-color);
}

.btn-box a:nth-child(2) {
    color: var(--text-color);
    background: transparent;
    border: 3px solid var(--text-color);
}

.btn-box a:nth-child(1):hover {
    color: var(--main-color);
    background: transparent;
}

.btn-box a:nth-child(2):hover {
    color: var(--bg-color);
    background: var(--text-color);
}


/*about*/
.about {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    margin-top: .1rem;
    padding-top: 1rem;
    gap: 3rem;
}

.about .title {
    text-align: center;
    margin: 3.95rem;
    max-width: 50rem;
    width: 100%;
}

.about .title h1{
    font-size: 2.7rem;
    font-weight: 500;
    color: var(--main-color);
}

.about .title p {
    font-size: 1rem;
    font-weight: 500;
}


.about-content {
    display: flex;
    justify-content: space-between;
    margin-bottom: 5rem;
    width: 95%;
}

.about-content .about-me {
    display: flex;
    flex-direction: column;
    gap: .5rem;
}

.about-content .about-me h3 {
    font-size: 1.6rem;
    font-weight: 600;
    color: var(--main-color);
}

.about-content .about-me p {
    font-size: 1rem;
    font-weight: 500;
    text-align: justify;
    width: 35rem;
}

.about-content .about-me p a {
    font-size: 1.05rem;
    color: var(--text-color);
    text-decoration: underline;
    transition: all .1s ease-in;
}

.about-content .about-me p a:hover {
    color: var(--main-color);
}

.about-content .about-me .btnCt {
    font-size: 1.15rem;
    font-weight: 500;
    color: var(--main-color);
    background: transparent;
    width: 12rem;
    padding: .5rem 0;
    border: 3px solid var(--main-color);
    border-radius: .5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    top: 1rem;
    transition: all .15s ease-in;
}

.about-content .about-me .btnCt:hover {
    color: var(--bg-color);
    background: var(--main-color);
}

.about-content .hard-skills {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.about-content .hard-skills h3 {
    font-size: 1.6rem;
    font-weight: 600;
    color: var(--main-color);
}

.about-content .hard-skills .gp {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    width: 35rem;    
}

.about-content .hard-skills .gp p {
    font-size: 1rem;
    font-weight: 500;
    background: var(--bg-detail);
    padding: .5rem 1.5rem;
    border-radius: .5rem;
    transition: all .15s ease-in;
}


.about-content .hard-skills .gp p:hover {
    scale: 1.1;
}

/*Project*/
.project {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    margin-top: .1rem;
    padding-top: 1rem;
    padding-bottom: 5rem;
    gap: 3rem;
}

.project .title {
    text-align: center;
    margin-top: 3.95rem;
    max-width: 50rem;
    width: 100%;
}

.project .title h1{
    font-size: 2.7rem;
    font-weight: 500;
    color: var(--main-color);
}

.project .title p {
    font-size: 1rem;
    font-weight: 500;
}


.slide-container{
    max-width: 85rem;
    width: 100%;
    padding: 3rem 0;
    display: flex;
}
  
.slide-content{
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 40px;
    overflow: hidden;
    border-radius: 1rem;
}

.card-container {
    display: flex;
}

.project .card {
    display: flex;
    align-items: center;
    padding: 2rem;
    border-radius: .5rem;
    gap: 4rem;
}

.project .card .card-img {
    position: relative;
    perspective: 1000px;
}

.project .card .card-img img {
    height: 20rem;
    transition: transform 0.95s ease, opacity .9s ease;
    backface-visibility: hidden;
}

.project .card .card-img img.hover-image {
    position: absolute;
    top: 0;
    left: 0;
    opacity: 0;
    transform: rotateY(180deg);
}

.project .card .card-img:hover img.initial-image {
    transform: rotateY(-180deg);
    opacity: 0;
}

.project .card .card-img:hover img.hover-image {
    opacity: 1;
    transition: transform 1.2s ease, opacity 0.95s ease;
    transform: rotateY(0deg);
}

.project .card .card-describe {
    display: flex;
    flex-direction: column;
}

.project .card .card-describe h1 {
    font-size: 1.8rem;
    font-weight: 500;
    color: var(--main-color);
    width: fit-content;
}

.project .card .card-describe p {
    font-size: 1rem;
    font-weight: 400;
    text-align: justify;
    max-width: 30rem;
    width: 100%;
}

.project .card .academic p::before {
    content: "AcademicFire é um site dinâmico e atraente. Este site é a vitrine virtual da AcademicFire, onde os visitantes podem obter informações detalhadas sobre a academia, seus planos de treinamento e como entrar em contato.";
}

.project .card .housekey p::before {
    content: "HouseKey é um site dinâmico e atraente. Este site é uma verdadeira vitrine da imobiliária HouseKey, onde os compradores podem obter informações detalhadas sobre cada imóvel, localização e como entrar em contato.";
}

.project .card .educational p::before {
    content: "EducationalGames é um site dinâmico, divertido e atraente, com jogos educativos de matemática e inglês. Projetados para crianças aprenderem enquanto se divertem jogando.";
}


.project .card .card-btn {
    display: flex;
    gap: 2rem;
}

.project .card .card-btn a {
    font-size: 1.1rem;
    font-weight: 500;
    padding: .4rem 2rem;
    margin-top: 1rem;
    border-radius: .5rem;
    display: flex;
    align-items: center;
    transition: all .15s ease-in;
}


.project .card .card-btn a:nth-child(1) {
    color: var(--main-color);
    border: 3px solid var(--main-color);
}


.project .card .card-btn a:nth-child(1):hover {
    color: var(--bg-color);
    background: var(--main-color);
}

.project .card .card-btn a:nth-child(2) {
    color: var(--bg-color);
    background: var(--text-color);
    border: 3px solid var(--text-color);
}


.project .card .card-btn a:nth-child(2):hover {
    color: var(--text-color);
    background: var(--bg-color);
}

.project .last {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
}

.project .last a {
    font-size: 1.2rem;
    font-weight: 500;
    color: var(--main-color);
    padding: .6rem 2rem;
    border: 3px solid var(--main-color);
    border-radius: .5rem;
    display: flex;
    align-items: center;
    transition: all .15s ease-in;
}

.project .last a:hover {
    color: var(--bg-color);
    background: var(--main-color);
}

.swiper-navBtn{
    color: var(--bg-detail);
    transition: color .15s ease-in;
}
  
.swiper-navBtn:hover{
    color: var(--main-color);
    transition: color .2s ease;
}
  
.swiper-button-next{
    right: 0;
}
  
.swiper-button-prev{
    left: 0;
}
  
.swiper-pagination-bullet{
    background-color: var(--bg-detail);
    opacity: 1;
}
  
.swiper-pagination-bullet-active{
    background-color: var(--main-color);
}


/*Contact*/
.contact {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    margin-top: .1rem;
    padding-top: 1rem;
    padding-bottom: 5rem;
}

.contact .title {
    text-align: center;
    margin: 3.95rem 0 2.5rem 0;
}

.contact .title h1 {
    font-size: 2.7rem;
    font-weight: 500;
    color: var(--main-color);
}

.contact form {
    max-width: 45rem;
}

.contact form .input-box {
    position: relative;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
}

.contact form .input-box .input-field {
    margin: .8rem 0;
    width: 20rem;
}

.contact form .input-box .input-field input,
.contact form .textarea-field textarea {
    width: 100%;
    height: 3rem;
    padding-left:  .5rem;
    font-size: 1rem;
    color: var(--text-color);
    background: transparent;
    border-radius: .6rem;
    border: 1px solid var(--text-color);
}

.contact form .input-box .input-field input::placeholder,
.contact form .textarea-field textarea::placeholder {
    color: var(--bg-detail);
}

.contact form .textarea-field {
    position: relative;
    margin: .8rem 0 2.7rem;
    display: flex;
}

textarea {
    resize: none;
}

.contact form .input-box .input-field input[type="number"]::-webkit-inner-spin-button,
.contact form .input-box .input-field input[type="number"]::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

#mensagem-resultado {
    position: fixed;
    width: 100%;
    height: 100vh;
    top: 0;
    left: 0;
    margin-top: 3rem;
    background: rgba(0, 0, 0, 0.35);
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1;
}

#mensagem-resultado h1{
    font-size: 1.3rem;
    font-weight: 400;
    margin-bottom: 4rem;
}


.btn-contact {
    display: flex;
    justify-content: center;
    text-align: center;
    margin-bottom: 4rem;
}

.btn-contact .btn {
    font-size: 1.16rem;
    font-weight: 500;
    color: var(--main-color);
    background: transparent;
    padding: .6rem 4rem;
    border: 3px solid var(--main-color);
    border-radius: .5rem;
    cursor: pointer;
    transition: all .15s ease-in;
}

.btn-contact .btn:hover {
    color: var(--bg-color);
    background: var(--main-color);
}


.contact footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: .9rem 4rem;
    position: absolute;
    background: var(--bg-color);
    border-top: .1rem solid var(--bg-detail);
    bottom: 0;
    width: 100%;
}

.contact footer p{
    font-size: 1rem;
    font-weight: 400;
    color: var(--text-color);
}

.contact footer a{
    font-size: 1.5rem;
    color: var(--bg-color);
    background: var(--main-color);
    border: 3px solid var(--main-color);
    border-radius: .4rem;
    display: flex;
    align-items: center;
    padding: .3rem;
    transition: all .15s ease-in;
}

.contact footer a:hover{
    color: var(--main-color);
    background: transparent;
}


/*Resposividade*/
@media (max-width: 1400px) {
    html {
        font-size: 90%;
    }
}

@media (max-width: 1250px) {
    html {
        font-size: 85%;
    }
}

@media (max-width: 1150px) {
    html {
        font-size: 82%;
    }

    header {
        padding: .8rem 2rem;
    }

    section {
        padding: 0 2rem;
    }
    
    .about-content {
        gap: 3rem;
    }
}

@media (max-width: 1052px) {
    .project .card .card-btn {
        gap: 1rem;
    }
    .project .card .card-btn a {
        font-size: 1.05rem;
        padding: .4rem 1rem;
    }
}

@media (max-width: 1010px) {
    html {
        font-size: 85%;
    }

    header {
        padding: .8rem 2.5rem;
    }

    section {
        padding: 0 2.5rem;
    }
    
    .about {
        gap: 1rem;
    }

    .about .title {
        width: 100%;
    }

    .about-content {
        flex-direction: column;
        gap: 5rem;
    }
    
    .about-content .about-me p {
        width: 100%;
    }
    
    .about-content .hard-skills .gp {
        width: 100%;
    }

    .slide-container{
        padding: 4rem 0 3rem 0;
    }
      
    .slide-content{
        margin: 0 30px;
    }

    .project .card {
        gap: 2rem;
    }
    
    .project .card .card-img img{
        height: 19rem;
    }
}

@media (max-width: 980px) {
    html {
        font-size: 82%;
    }
}

@media (max-width: 925px) {
    html {
        font-size: 83%;
    }
    
    .project .card .card-img img{
        height: 17rem;
    }
}

@media (max-width: 895px) {
    html {
        font-size: 85%;
    }

    .slide-container{
        padding: 1rem 0 4rem 0;
    }
      
    .slide-content{
        margin: 0;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .project .card {
        flex-direction: column;
        gap: 1rem;
    }

    
    .project .card .card-describe {
        display: flex;
        align-items: center;
        justify-content: center;
    }

    
    .project .card .card-describe p {
        text-align: center;
    }

    .project .card .card-describe p::before {
        text-align: center;
    }

    .project .card .academic p::before {
        content: "AcademicFire é um site dinâmico e atraente. Este site é a vitrine virtual da AcademicFire, onde os visitantes podem...";
    }

    .project .card .housekey p::before {
        content: "HouseKey é um site dinâmico e atraente. Este site é uma verdadeira vitrine da imobiliária HouseKey, onde os compradores...";
    }
    
    .project .card .educational p::before {
        content: "EducationalGames é um site dinâmico, divertido e atraente, com jogos educativos de matemática e inglês. Projetados para...";
    }
    
    .project .card .card-img img{
        height: 17.5rem;
    }

    .project .card {
        gap: .5rem;
    }

    .project .card .card-btn a {
        font-size: 1.1rem;
        padding: .4rem 2rem;
    }

    .swiper-button-next{
        display: none;
    }
      
    .swiper-button-prev{
        display: none;
    }
}

@media (max-width: 680px) {
    header nav {
        display: none;
    }
    
    html {
        font-size: 80%;
    }

    .contact footer {
        padding: .9rem 3rem;
    }
    
    .contact footer p{
        font-size: .9rem;
    }
    
    .contact footer a{
        font-size: 1.4rem;
    }
}


@media (max-width: 589px) {
    .contact form .input-box .input-field {
        margin: .8rem 0;
        width: 16rem;
    }
    
} 

@media (max-width: 570px) {
    .start {
        display: flex;
        justify-content: center;
        align-items: center;
    }

    .start-content h1 {
        text-align: center;
        line-height: 1.1;
    }

    .start-content .text-animate {
        position: relative;
    }

    .start-content .text-animate h3,
    .start-content .text-animate h3 span {
        text-align: center;
    }

    .start-content p {
        position: relative;
        font-size: .97rem;
        font-weight: 500;
        text-align: justify;
        
    }

    .btn-box {
        align-items: center;
        justify-content: center;
        gap: 1rem;
        margin: 2rem 0;
    }
    
    .about .title p,
    .project .title p  {
        font-size: .9rem;
    }

    .project .card .card-describe p::before {
        text-align: center;
    }

    
    .project .card .academic p::before {
        content: "AcademicFire é um site dinâmico e atraente. Este site é a vitrine virtual da AcademicFire, onde os visitantes...";
    }

    .project .card .housekey p::before {
        content: "HouseKey é um site dinâmico e atraente. Este site é uma verdadeira vitrine da imobiliária HouseKey, onde os...";
    }
    
    .project .card .educational p::before {
        content: "EducationalGames é um site dinâmico, divertido e atraente, com jogos educativos de matemática e inglês...";
    }
    
    .project .card .card-img img{
        height: 16rem;
    }

    .project .card .card-btn {
        display: flex;
        align-items: center;
        justify-content: center;
        flex-direction: column;
        margin: 1rem 0;
        gap: 0rem;
    }
}

@media (max-width: 486px) {
    
    .contact form .input-box {
        gap: 0rem;
    }
    .contact form .input-box .input-field {
        margin: .7rem 0;
        width: 100%;
    }
    
} 

@media (max-width: 425px) {
    header .start-sci a {
        font-size: 1.85rem;
        color: var(--bg-detail);
        transition: all .15s ease-in;
    }    

    .start-content {
        margin-top: 8rem;    
    }
    .start-content h1 {
        font-size: 3.25rem;
        text-align: center;
        line-height: 1.1;
    }

    .start-content .text-animate {
        position: relative;
    }

    .start-content .text-animate h3,
    .start-content .text-animate h3 span {
        font-size: 1.9rem;
        text-align: center;
    }

    .start-content p {
        font-size: .93rem;
    }

    .btn-box {
        flex-direction: column;
        position: relative;
        top: 3rem;
        gap: 1.2rem
    }

    .project .card {
        padding: 0;
    }

    .slide-container{
        padding: 2rem 0 5rem 0;
    }

    .project .card .card-describe p {
        max-width: 25rem;
        width: 100%;
    }

    .project .card .card-img img{
        height: 15rem;
    }

    .contact footer {
        padding: .9rem 2rem;
    }

    .contact footer a{
        display: none;
    }
}

@media (max-width: 410px) {
    .contact footer {
        padding: .9rem 2rem;
    }
    
    .contact footer p{
        font-size: .9rem;
    }
}

@media (max-width: 390px) {
    header {
        padding: .8rem 1.5rem;
    }

    section {
        padding: 0 1.5rem;
    }

    .start-content {
        margin-top: 9rem;    
    }
    .start-content h1 {
        font-size: 3.1rem;
    }

    .start-content .text-animate h3,
    .start-content .text-animate h3 span {
        font-size: 1.8rem;
    }

    .start-content p {
        font-size: .93rem;
    }

    .project .card .card-img img{
        height: 14.5rem;
    }

    .contact footer {
        padding: .9rem 1.5rem;
    }
}

@media (max-width: 345px) {
    header {
        padding: .8rem 1rem;
    }
    section {
        padding: 0 1rem;
    }

    .start-content {
        margin-top: 9rem;    
    }
    .start-content h1 {
        font-size: 3rem;
    }

    .start-content .text-animate h3,
    .start-content .text-animate h3 span {
        font-size: 1.7rem;
    }

    .start-content p {
        font-size: .92rem;
    }

    .contact footer {
        padding: .9rem 1rem;
    }
    
    .contact footer p{
        font-size: .78rem;
    }
    
    .contact footer a{
        font-size: 1.18rem;
    }
}

@media (max-width: 316px) {
    .start-content {
        margin-top: 9rem;    
    }
    .start-content h1 {
        font-size: 2.9rem;
    }

    .start-content .text-animate h3,
    .start-content .text-animate h3 span {
        font-size: 1.6rem;
    }

    .project .card .card-img img{
        height: 13rem;
    }
}

@media (max-width: 298px) {
    html {
        font-size: 78%;
    }

    header {
        padding: .8rem .85rem;
    }

    section {
        padding: 0 .85rem;
    }

    .start-content {
        margin-top: 9rem;    
    }
    .start-content h1 {
        font-size: 2.9rem;
    }

    .start-content .text-animate h3,
    .start-content .text-animate h3 span {
        font-size: 1.55rem;
    }
}