@import url('https://fonts.googleapis.com/css2?family=Roboto:ital,wght@0,100..900;1,100..900&display=swap');

/* CONFIGURAÇÕES GERAIS */
* {
    margin: 0;
    padding: 0;
    outline: 0;
    text-decoration: none;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth; /* Deixa a rolagem macia ao clicar no menu */
}

body {
    font-family: 'Roboto', sans-serif;
    background-color: #000;
}

/* HEADER */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
}

.nav {
    background-color: rgba(24, 24, 24, 0.8);
    backdrop-filter: blur(10px);
    height: 80px;
    width: 100%;
    display: flex;
    justify-content: flex-end;
    position: relative;
    box-shadow: 0 2px 10px rgba(0,0,0,0.5);
}

.nav-list {
    display: flex;
    align-items: center;
    list-style: none;
    margin-right: 30px;
}

.nav-list a {
    color: #ddd;
    padding: 20px;
    transition: 0.3s;
}

.nav-list a:hover {
    color: #fff;
}

/* MAIN HERO */
.main {
    margin-top: 80px;
    position: relative;
    width: 100%;
    min-height: calc(100vh - 80px);
    display: flex;
    align-items: center;
    padding-left: 10%;
    overflow: hidden;
    background: linear-gradient(rgba(0, 0, 0, 0.75), rgba(0, 0, 0, 0.75)), 
                url("../img/banner.jpg");
    background-size: cover;
    background-position: center;
}

#tsparticles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.content-wrapper {
    position: relative;
    z-index: 2;
    pointer-events: none;
}

.main h1 {
    color: #fff;
    font-size: 54px;
    line-height: 1.1;
}

.main p {
    font-size: 24px;
    font-style: italic;
    color: #1e96fc;
    margin-top: 10px;
    margin-bottom: 35px;
}

.call-to-action {
    pointer-events: all;
    cursor: pointer;
    background-color: #fff;
    border: 0;
    padding: 14px 28px;
    border-radius: 4px;
    font-size: 18px;
    font-weight: 600;
    transition: transform 0.5s, background-color 0.5s;
}

.call-to-action:hover {
    background-color: #1e96fc;
    color: #fff;
    transform: scale(1.05);
}

/* SECTION SOBRE MIM */
.about-me {
    background-color: #ddd;
    width: 100%;
    padding: 80px 10%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative; 
    z-index: 5;
}
.about-me h3{
    margin-top: 10px;
    margin-bottom: 10px;
}
.about-me div {
    max-width: 70%;
    padding-right: 40px;
}

.about-me img {
    max-width: 300px;
    border-radius: 50%; /* Sênior tip: 50% deixa redondo perfeito */
}

.about-me div h2 {
    font-size: 32px;
    margin-bottom: 15px;
}

.about-me div p {
    text-align: justify;
    font-weight: 400;
    margin-bottom: 10px;
}

.cv-button-container {
    margin-top: 40px;
    display: flex;
}

.btn-cv {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 32px;
    border: 2px solid #1e96fc;
    color: #181818;
    font-weight: 600;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.btn-cv:hover {
    background-color: #1e96fc;
    color: #ddd;
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(30, 150, 252, 0.3);
}
.experience li{
    margin-left: 50px;
}
/*FIM DA SESSÃO DE SOBRE MIM*/

/* SECTION PROJETOS */
#projetos {
    padding: 100px 10%;
    background-color: #0b0e14;
    color: #fff;
    position: relative;
    z-index: 10;
}

.projetos-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 50px;
}

.projeto-card {
    background-color: #181818;
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.3s ease;
    border: 1px solid #333;
}

.projeto-card:hover {
    transform: translateY(-10px);
    border-color: #1e96fc;
}

/* NOVAS REGRAS: VÍDEO INTERATIVO */
.video-container {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    background-color: #000;
    cursor: pointer;
}

.video-container video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0; /* Invisível até o hover */
    transition: opacity 0.3s ease;
}

.video-container:hover .video-overlay {
    opacity: 1;
}

.btn-expandir {
    background-color: #1e96fc;
    color: #fff;
    border: none;
    padding: 8px 16px;
    border-radius: 20px;
    font-weight: bold;
    cursor: pointer;
}

/* INFORMAÇÕES DO PROJETO */
.projeto-info {
    padding: 20px;
}

.projeto-info h3 {
    color: #1e96fc;
    margin-bottom: 10px;
}

.projeto-info p {
    font-size: 14px;
    color: #ccc;
    height: 60px;
}

.tags {
    margin: 15px 0;
}

.tags span {
    background: #333;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 12px;
    margin-right: 5px;
}

.repo-link {
    display: inline-block;
    color: #fff;
    font-weight: 600;
    text-decoration: underline;
}

.categoria-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-top: 50px;
    margin-bottom: 25px;
}

.categoria-header h3 {
    font-size: 22px;
    color: #fff;
    font-weight: 500;
    letter-spacing: 1px;
}

.divisor-projetos {
    margin: 60px 0;
    border: 0;
    border-top: 1px solid #333;
    width: 100%;
}

/* Container para as imagens de WordPress */
.img-container {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
}

.img-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

/* Efeito de zoom na imagem ao passar o mouse */
.projeto-card:hover .img-container img {
    transform: scale(1.1);
}

/* Espaçamento extra para separar as seções de QA e WordPress */
.wordpress-section {
    margin-top: 60px;
    border-top: 1px solid #333;
    padding-top: 60px;
}


/* ESTRUTURA DO MODAL (TELA CHEIA) */
.modal {
    display: none; /* Controlado pelo JS */
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.95);
    align-items: center;
    justify-content: center;
}

.modal-content {
    width: 90%;
    max-width: 1100px;
    position: relative;
}

.modal-content video {
    width: 100%;
    border: 2px solid #1e96fc;
}

.modal-close {
    position: absolute;
    top: -50px;
    right: 0;
    color: #fff;
    font-size: 40px;
    cursor: pointer;
}

/* RESPONSIVIDADE */
@media (max-width: 900px) {
    .about-me {
        flex-direction: column;
        text-align: center;
    }
    .about-me div {
        max-width: 100%;
        padding-right: 0;
        margin-bottom: 30px;
    }
    .projetos-grid {
        grid-template-columns: 1fr;
    }
}

/*INICIO FOOTER*/
footer {
    background-color: #181818;
    color: #fff;
    padding: 40px 10%;
    border-top: 2px solid #1e96fc;
    position: relative;
    z-index: 10;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.social-links {
    display: flex;
    gap: 20px;
}

.social-links a {
    color: #ddd;
    font-weight: 500;
    transition: 0.3s;
}

.social-links a:hover {
    color: #1e96fc;
}

.whatsapp-link {
    color: #25d366 !important; /* Verde do WhatsApp */
}

/* Ajuste para telas pequenas */
@media (max-width: 600px) {
    .footer-content {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }
}