@import url('https://fonts.googleapis.com/css2?family=Kode+Mono:wght@400..700&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 {
    --primary-color: #5F07BF;
    --primaryB-color: #3C0479;
    --primaryW-color: #8438D7;
    --secondary-color: #0B07D0;
    --secondary-colorB: #03008A;
    --secondary-colorW: #403DD3;
    --red-color: #FF0000;
    --green-color: #38F299;
    --gray-color: #151515;
}

::-webkit-scrollbar {
    width: 8px
}

::-webkit-scrollbar-track {
    background-color: #111
}

::-webkit-scrollbar-thumb {
    background-color: var(--primary-color);
    border-radius: 8px
}


* {
    scroll-behavior: smooth;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
    overflow-x: hidden;
}

.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.3); /* Opacidade*/
    z-index: 0;
}
header, .home, .s-about, .projects, .s-experience, .s-projects, .s-services, .s-contact ,.footer {
    position: relative;
    z-index: 1; /* Posição acima do BG */
}


body {
    background-color: black;
    font-family: Arial, sans-serif;
    overflow: hidden; /* Para evitar scroll*/
    overflow-x: hidden; 
    background: #081b29;
    color: #ffffff;
    overflow: auto;
}

canvas {
    position: absolute;
    top: 0;
    left: 0;
    z-index: -1; /* BG em ultimo */
}

.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 20px 10%;
    background: rgba(0, 0, 0, 0.8); 
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 100;

}
.logo {
    display: flex;
    gap: 10px;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: #ffffff;
    text-decoration: none;
    font-weight: 600;

}
.logo img {
    height: 42px;
    width: 48px;
}
.header a{
    justify-content: center;
    align-items: center;
    color: white;
}
img {
    width: 48px;
    height: 48px;
    padding-right: 5px;
}

.navbar a{
    font-size: 18px;
    color: white;
    text-decoration: none;
    font-weight: 500;
    margin-left: 35px;
    transition: .3s;
}
.navbar a:hover {
    color: var(--primary-color);

}
.navbar a :active{
    color: var(--primary-color);

}
.home {
    height: 100vh;
    display: flex;
    align-items: center;
    padding: 0 10%;
    justify-content: space-between;
    display: flex;
    align-items: center;
    justify-content: space-between; 
    padding: 20px 10%;
    height: 100vh; 

}
.home-logo {
    position: absolute;
    right: -10%;
    top: 60%;
    transform: translateY(-70%);
    mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 1) 0%, rgba(0, 0, 0, 0) 100%);
    opacity: 0.3;
}

.home-logo img {
    width: 600px; 
    height: auto;
    color: #0B07D0;
}

.home-content {
    max-width: 700px;
    flex: 1;
    text-align: left; 
}

.home-content h1 {
    font-size: 56px;
    font-weight: 700;
    line-height: 1.2;
    padding-bottom: 1%;
}
.home-content h3 {
    color: var(--primaryW-color);
    font-size: 28px;
    padding-bottom: 1%;
}
.home-content p{
    color: rgb(190, 190, 190);
    margin: 20px 0 40px;
    font-size: 20px;
    padding-bottom: 1%;
}

.btn-box {
    display: flex;
    justify-content: flex-start;
    gap: 15px; 
    margin: 20px 0;
}

.btn-box {
    display: flex;
    gap: 20px;
}
.btn {
    display: inline-block;
    padding: 0.9rem 1.8rem;
    font-size: 16px;
    font-weight: 700;
    color: var(--primary-color); /* Texto roxo inicial */
    border: 3px solid var(--primary-color); /* Borda roxa */
    border-radius: 12px;
    cursor: pointer;
    position: relative;
    background-color: transparent; /* Fundo transparente */
    text-decoration: none;
    overflow: hidden;
    z-index: 1;
    font-family: inherit;
    transition: color 0.3s ease; /* Transição suave do texto */
}

.btn::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: var(--primary-color); /* Fundo roxo no hover */
    transform: translateY(-100%); /* Inicia fora do botão */
    transition: all 0.3s ease; /* Transição suave */
    z-index: -1;
}

.btn:hover::before {
    transform: translateY(0); /* Preenche de esquerda para direita */
}

.btn:hover {
    color: white; /* Muda a cor do texto para branco no hover */
}
.home-sci{
    position: absolute;
    bottom: 40px;
    width: 250px;
    
    display: flex;
    justify-content: space-between;
}
.home-sci a{

    position: relative;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    background: transparent;
    border: 2px solid var(--primary-color);
    border-radius: 50%;
    font-size: 20px;
    color: var(--primary-color);
    text-decoration: none;
    z-index: 1;
    overflow: hidden;
    transition: .5s;
}

.home-sci a::before{
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0%;
    height: 100%;
    background: var(--primary-color);
    z-index: -1;
    transition: .5s;
}

.home-sci a:hover::before{
    width: 100%;
}

.home-sci a:nth-child(1):hover{
    color: var(--primaryB-color);
}

.home-sci a:nth-child(2):hover{
    color: var(--primaryB-color);
}

.home-sci a:nth-child(3):hover{
    color: var(--primaryB-color);
}

.home-sci a:nth-child(4):hover{
    color: var(--primaryB-color);
}

/* Mouse Scrol*/
.mouse {
    width: 25px;
    height: 40px;
    border: 2px solid #eee;
    border-radius: 60px;
    overflow: hidden;
    position: absolute; 
    bottom: 20px; 
    left: 50%; 

}

.mouse::before {
    content: '';
    width: 5px;
    height: 5px;
    position: absolute;
    top: 7px;
    left: 50%;
    transform: translateX(-50%);
    background-color: #eee;
    border-radius: 50%;
    opacity: 1;
    animation: wheel 1.3s infinite;
    -webkit-animation: wheel 1.3s infinite
}


/* SECTION ABOUT */

.s-about {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh; 
    padding: 20px;
    background-color: transparent;
    z-index: 3;
}

.about-container {
    background-color: #151515;
    border-radius: 10px;
    border: 1px solid #1F1F1F;
    padding: 40px;
    box-shadow: 0px 0px 15px rgba(0, 0, 0, 0.2);
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    max-width: 1400px;
}

.about-content {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap; /* Permite que os elementos se reorganizem em telas menores */
}

.about-content img {
    max-width: 450px; 
    max-height: 400px;
    width: 100%;
    height: auto;
    border-radius: 10px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.about-content img:hover {
    transform: scale(1.05); /* Zoom leve na imagem ao passar o mouse */
}

.about-text {
    max-width: 600px;
    flex: 1;
    text-align: left;
}

.about-text h4 {
    font-size: 20px;
    color: var(--primary-color);
    margin-bottom: 5px;
}

.about-text h2 {
    font-size: 36px;
    margin: 5px 0;
    color: white;
}

.about-text h3 {
    font-weight: 400;
    font-size: 18px;
    color: white;
    margin-bottom: 15px;
}

.about-text p {
    font-size: 16px;
    color: gray;
    line-height: 1.6;
    margin-bottom: 20px;
}

.social-buttons {
    padding-top: 2%;
    display: flex;
    gap: 10px;
    flex-wrap: wrap; /* Organiza os botões em múltiplas linhas, se necessário */
    justify-content: flex-start; /* Alinhamento inicial */
    overflow: hidden;
}
.social-buttons a{
    overflow: hidden;
}
.social-btn {
    display: inline-block;
    width: 50px;
    height: 50px;
    border-radius: 10px;
    color: #fff;
    text-decoration: none;
    font-size: 24px;
    text-align: center;
    line-height: 50px;
    transition: background-color 0.3s, transform 0.3s;
    background-color: #111;
    border: 2px solid #1f1f1f;
}

.social-btn i {
    vertical-align: middle;
}

.social-btn:hover {
    color: var(--primary-color);
    transform: scale(1.1);
    border-color: var(--primary-color);
}

/* RESPONSIVIDADE */

/* Telas médias (tablets) */
@media (max-width: 992px) {
    .about-container {
        padding: 30px;
    }

    .about-content {
        flex-direction: column; /* Elementos empilhados verticalmente */
        gap: 30px;
        text-align: center; /* Centraliza o texto */
    }

    .about-text {
        max-width: 100%;
    }

    .about-text h2 {
        font-size: 32px;
    }

    .about-text h3 {
        font-size: 16px;
    }

    .about-text p {
        font-size: 15px;
    }

    .social-buttons {
        justify-content: center; /* Alinha os botões ao centro */
    }
}

/* Telas pequenas (celulares) */
@media (max-width: 576px) {
    .about-container {
        padding: 20px;
    }

    .about-text h2 {
        font-size: 28px; /* Título menor */
    }

    .about-text h3 {
        font-size: 14px;
    }

    .about-text p {
        font-size: 14px;
        line-height: 1.4;
    }

    .social-btn {
        width: 45px;
        height: 45px;
        font-size: 20px; /* Ícone um pouco menor */
        line-height: 45px;
    }

    .social-buttons {
        gap: 8px;
    }
}


/* SECTION Projetos  */
.projects {
    
    z-index: 2;
    align-items: center;
    padding: 0 10%;
    justify-content: center;
}
.projects h2 {
    padding-top: 10px;
    
}

@keyframes wheel {
    to {
        opacity: 0;
        top: 27px
    }
}

/* Experience */
.s-experience {
    padding: 5% 20px;
    background-color: #151515;
    color: white;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section-title {
    font-size: 32px;
    margin-bottom: 20px;
    text-align: center;
}

.experience-grid {
    display: flex;
    gap: 20px;
}

.company-list {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 10px;
    background-color: black;
    border-radius: 2%;
}

.company {
    padding: 15px;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.company:hover {
    color: var(--primary-color);
    border-left: solid 4px var(--primary-color);
}

.experience-details {
    flex: 2;
    border-radius: 5px;
    padding: 20px;
}

.text-experience div {
    color: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.titleExperience {
    font-size: 18px;
    margin-bottom: 5px;
}

.dateExperience {
    font-size: 14px;
    color: #777;
    margin-bottom: 15px;
}

.companyExperience {
    color: var(--primaryW-color);
    font-size: 16px;
    margin-bottom: 10px;
}

.changeExperience {
    font-size: 14px;
    color: white;
    line-height: 1.6;
}

/* RESPONSIVIDADE */

/* Telas médias (tablets) */
@media (max-width: 992px) {
    .experience-grid {
        flex-direction: column; /* Empilha os itens na vertical */
    }

    .company-list {
        flex-direction: row; /* Lista horizontal para tablets */
        gap: 5px;
        justify-content: space-around;
    }

    .company {
        flex: 1;
        text-align: center;
        border-left: none; /* Remove o destaque na esquerda */
    }

    .experience-details {
        padding: 15px;
    }

    .titleExperience {
        font-size: 16px;
    }

    .dateExperience {
        font-size: 12px;
    }

    .companyExperience {
        font-size: 14px;
    }

    .changeExperience {
        font-size: 13px;
    }
}

/* Telas pequenas (celulares) */
@media (max-width: 576px) {
    .s-experience {
        padding: 5% 10px; /* Reduz o padding para caber em telas menores */
    }

    .section-title {
        font-size: 24px; /* Reduz o tamanho do título */
    }

    .company-list {
        flex-direction: column; /* Lista vertical */
        gap: 10px;
        justify-content: flex-start;
    }

    .company {
        padding: 10px;
        font-size: 14px;
        text-align: left;
    }

    .experience-details {
        padding: 10px;
    }

    .titleExperience {
        font-size: 16px; /* Ajusta o título */
    }

    .dateExperience {
        font-size: 12px; /* Ajusta a data */
    }

    .companyExperience {
        font-size: 14px;
    }

    .changeExperience {
        font-size: 12px;
        line-height: 1.4; /* Reduz o espaçamento entre linhas */
    }
}


/* PROJECTS */
.s-projects {
    padding: 60px 10%;
    text-align: center;
}

.s-projects h2 {
    font-size: 32px;
    margin-bottom: 40px;
    color: #ffffff;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr); /* 4 colunas no padrão */
    gap: 20px;
}

.project-card {
    background-color: var(--gray-color);
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0px 0px 15px rgba(0, 0, 0, 0.1);
    text-align: left;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.project-card:hover {
    transform: translateY(-10px);
    box-shadow: 0px 0px 20px rgba(73, 73, 73, 0.2);
}

.project-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 10px;
    margin-bottom: 15px;
}

.project-card h3 {
    font-size: 20px;
    color: #ffffff;
    margin-bottom: 10px;
}

.project-card p {
    font-size: 14px;
    color: #ffffff;
    margin-bottom: 15px;
}

.tags {
    margin-bottom: 15px;
}

.tags span {
    display: inline-block;
    color: #ffffff;
    border: 1px solid var(--green-color);
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 12px;
    margin-right: 5px;
    margin-bottom: 5px;
}

/* Especificação das cores por tags */
.tags .span-html {
    border: 1px solid rgb(255, 81, 0);
}
.tags .span-css {
    border: 1px solid rgb(0, 195, 255);
}
.tags .span-javascript {
    border: 1px solid rgb(255, 251, 0);
}
.tags .span-arduino {
    border: 1px solid #009297;
}
.tags .span-python {
    border: 1px solid #33638B;
}
.tags .span-game {
    border: 1px solid #ff0202;
}
.tags .span-ui {
    border: 1px solid var(--primary-color);
}
.tags .span-figma {
    border: 1px solid orangered;
}

.buttons {
    display: flex;
    gap: 4%;
}

.project-btn {
    font-size: 16px;
    color: #aaaaaa;
    font-family: 'Poppins', sans-serif;
    font-weight: 800;
    cursor: pointer;
    position: relative;
    border: none;
    background: none;
    text-transform: uppercase;
    transition: color 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    overflow: hidden;
    text-decoration: none;
}

.project-btn:after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.project-btn:hover {
    color: #fff;
}

.project-btn:hover:after {
    width: 100%;
    left: 0;
}

/* RESPONSIVIDADE */

/* Telas médias (tablets) */
@media (max-width: 992px) {
    .projects-grid {
        grid-template-columns: repeat(2, 1fr); /* 2 colunas em tablets */
        gap: 15px;
    }

    .project-card img {
        height: 180px; /* Reduz a altura da imagem */
    }

    .project-card h3 {
        font-size: 18px; /* Tamanho menor para o título */
    }

    .project-card p {
        font-size: 13px; /* Texto menor */
    }

    .project-btn {
        font-size: 14px; /* Botões menores */
    }
}

/* Telas pequenas (celulares) */
@media (max-width: 576px) {
    .projects-grid {
        grid-template-columns: 1fr; /* 1 coluna em celulares */
        gap: 10px;
    }

    .s-projects {
        padding: 40px 5%; /* Reduz o padding */
    }

    .s-projects h2 {
        font-size: 24px; /* Título menor */
    }

    .project-card {
        padding: 15px; /* Reduz padding do card */
    }

    .project-card img {
        height: 150px; /* Imagens menores */
    }

    .project-card h3 {
        font-size: 16px; /* Título reduzido */
    }

    .project-card p {
        font-size: 12px; /* Texto reduzido */
    }

    .tags span {
        font-size: 10px; /* Tags menores */
    }

    .project-btn {
        font-size: 12px; /* Botões mais compactos */
    }
}



/* Services */
.s-services {
    padding: 60px 10%;
    text-align: center;
    background-color: var(--gray-color);
}

.s-services h2 {
    font-size: 32px;
    margin-bottom: 40px;
    color: white;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* 3 colunas no padrão */
    gap: 20px;
}

.service-card {
    background-color: #111;
    border: 1px solid #1f1f1f;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0px 0px 15px rgba(0, 0, 0, 0.1);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex; 
    flex-direction: column; 
    align-items: center; 
    justify-content: center; 
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0px 0px 20px rgba(0, 0, 0, 0.2);
}

.service-card .icon {
    font-size: 48px; 
    color: white; 
    margin-bottom: 15px; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
}

.service-card h3 {
    font-size: 16px; 
    color: white; 
    margin-bottom: 15px; 
}

.service-card p {
    font-size: 14px; 
    color: white; 
    line-height: 1.6; 
}

/* RESPONSIVIDADE */

/* Telas médias (tablets) */
@media (max-width: 992px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr); /* 2 colunas */
        gap: 15px; /* Reduz o espaçamento */
    }

    .s-services h2 {
        font-size: 28px; /* Reduz o tamanho do título */
    }

    .service-card h3 {
        font-size: 15px; /* Reduz o tamanho do subtítulo */
    }

    .service-card p {
        font-size: 13px; /* Reduz o tamanho do texto */
    }
}

/* Telas pequenas (celulares) */
@media (max-width: 576px) {
    .services-grid {
        grid-template-columns: 1fr; /* 1 coluna */
        gap: 10px; /* Ainda menos espaçamento */
    }

    .s-services {
        padding: 40px 5%; /* Reduz o padding para caber na tela */
    }

    .s-services h2 {
        font-size: 24px; /* Título menor */
    }

    .service-card {
        padding: 15px; /* Reduz o padding interno */
    }

    .service-card .icon {
        font-size: 36px; /* Ícones menores */
    }

    .service-card h3 {
        font-size: 14px; /* Subtítulo menor */
    }

    .service-card p {
        font-size: 12px; /* Texto menor */
    }
}


/*Contact*/
.s-contact {
    background: linear-gradient(to right, rgba(75, 3, 153, 0.8), rgba(86, 5, 172, 0.8)),url(../assets/image/svg/common-bg.svg);
    background-size: cover;
    background-position: center;
    padding: 60px 10%;
    
    color: #fff;
    text-align: center;
}

.contact-container {
    max-width: 800px;
    margin: 0 auto;
}

.s-contact h2 {
    font-size: 32px;
    margin-bottom: 20px;
}

.s-contact p {
    font-size: 18px;
    margin-bottom: 40px;
}

.contact-form {
    background: #fff;
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.1);
    color: #333;
    text-align: left;
}

.form-group {
    position: relative;
    margin-bottom: 30px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 10px;
    border: 2px solid #ddd;
    border-radius: 5px;
    background: transparent;
    color: #333;
    font-size: 16px;
}
.input-style {
    padding: 10px;
    border: 2px solid #ccc;
    border-radius: 5px;
    font-size: 16px;
    color: #555;
    outline: none;
}
.input-style:focus {
    border-color: var(--primary-color);
}
.form-group label {
    position: absolute;
    top: 50%;
    left: 10px;
    transform: translateY(-50%);
    background: #fff;
    padding: 0 5px;
    color: #999;
    pointer-events: none;
    transition: all 0.3s ease;
}

.form-group input:focus + label,
.form-group input:not(:placeholder-shown) + label,
.form-group textarea:focus + label,
.form-group textarea:not(:placeholder-shown) + label {
    top: -10px;
    left: 10px;
    color: #5F07BF;
    font-size: 14px;
    background: #fff;
}

.btn-submit {
    background: #5F07BF;
    color: #fff;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
    transition: background 0.3s ease;
}

.btn-submit:hover {
    background: #8438D7;
}


@media (max-width: 768px) {
    .contact-form {
        padding: 30px;
    }
}


/* FOOTER */
footer {
    background-color: #151515; 
    color: #ffffff; 
    padding: 25px 15%; 
    text-align: center; 
}

.grid-layout {
    display: flex;
    justify-content: space-between; 
    align-items: center;
    flex-wrap: wrap; 
    gap: 15px; /* Espaçamento entre itens quando quebrados */
}

footer p {
    margin: 0; 
    font-size: 16px; 
}

footer a {
    color: var(--primary-color); 
    text-decoration: none; 
    padding-right: 4px;
}

footer a:hover {
    text-decoration: underline; 
}

.powered-by {
    display: flex;
    align-items: center;
    justify-content: flex-start; 
    text-align: left; 
}

.powered-by p {
    margin-right: 10px; 
}

.powered-by img {
    width: 42px; 
    height: auto; 
    margin-left: 10px; 
}

/* RESPONSIVIDADE */
@media (max-width: 768px) {
    footer {
        padding: 20px 10%; 
    }

    .grid-layout {
        flex-direction: column; 
        text-align: center; 
    }

    .powered-by {
        flex-direction: column; 
        justify-content: center; 
        text-align: center; 
        gap: 5px; 
    }

    footer p {
        font-size: 14px; 
    }

    .powered-by img {
        width: 36px; 
    }
}

@media (max-width: 480px) {
    footer {
        padding: 15px 5%; 
    }

    footer p {
        font-size: 12px; 
    }

    .powered-by img {
        width: 32px; 
        
    }
}
