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

body {
    background: linear-gradient(#000000, #080038, #000000);
    color: #f7f7f7;
    overflow-x: hidden;
    width: 100%;
}



header {
    background-color: #0b0b0b;
    padding: 10px 40px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    
    max-width: 95%;      
    width: 1200px; 
    
    /* REDUZA AQUI: de 20px para 10px para aproximar do topo da tela */
    margin: 10px auto;   
    
    border-radius: 50px;
    border: 1px solid #222;
    position: sticky;   
    top: 10px; /* Alinhado com a nova margem */
    z-index: 1000;      

    backdrop-filter: blur(10px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
}

.header-icons {
    display: flex;
    gap: 15px;
}

.header-icons img {
    width: 18px;
    height: 18px;
    filter: invert(1);
    transition: 0.3s;
}

header h1 {
    color: #fafbfc;
    font-size: 1.5rem; 
    font-family: 'Berkshire Swash', cursive;
}

header .navegacao-primaria {
    display: flex;
    gap: 20px;
}

header .navegacao-primaria li a {
    color: #fff;
    font-size: 0.9rem;
    font-weight: 300;
    transition: 0.3s;
}

header .navegacao-primaria li a:hover {
    color: #0b95f1;
}

.language-switcher button {
    background: none;
    border: none;
    color: #666;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.8rem;
    transition: 0.3s;
}

.language-switcher button.active {
    color: #0b95f1;
}


.section-div {
    display: grid;
    grid-template-columns: 1fr 1fr;
    justify-content: center;
    align-items: center;
    gap: 60px;
    
    /* AJUSTE AQUI: reduza o padding superior de 60px para 10px ou 0 */
    padding: 10px 40px 60px; 
    
    max-width: 1200px;
    
    /* MARGEM NEGATIVA: isso "cola" o conteúdo no header se necessário */
    margin: -20px auto 0; 
    
    min-height: 80vh; /* Garante que a seção ainda ocupe a tela, mas sem buracos no topo */
}

.section-div div {
    display: grid;
    gap: 15px;
}

.section-div h2 {
    font-size: 2.5rem;
    line-height: 1.2;
}

.section-div p {
    color: #707070;
    font-size: 1rem;
    line-height: 1.6;
}

.section-div a {
    justify-self: start;
    color: #fff;
    padding: 10px 30px;
    border-radius: 5px;
    border: 2px solid #fff;
    font-size: 0.9rem;
    transition: 0.4s;
}

.section-div a:hover {
    background-color: #fff;
    color: #000;
}

.section-div img {
    /* Ajuste aqui o tamanho desejado (ex: 400px, 450px, 500px) */
    width: 600px;
    height: 600px;
    
    /* Mantém o círculo perfeito */
    border-radius: 60%;
    
    /* Importante para não achatar o rosto */
    object-fit: cover;
    
    /* Borda e sombra para destaque */
    border: 4px solid #ffffff;
    box-shadow: 0 10px 30px rgba(238, 236, 236, 0.5);

    /* Garante que a foto não ultrapasse a largura da tela no celular */
    max-width: 90%;
}


.sobre {
    background-color: #0c0b0b; 
    width: 100%;               
    margin-top: 60px;
    padding: 100px 0;          
    display: flex;
    justify-content: center;
    overflow: hidden;
}

.sobre_container {
    max-width: 1200px;         
    width: 90%;
    display: flex;
    flex-direction: column;
}

.sobre_titulo {
    text-align: center;
    margin-bottom: 60px;
}

.sobre_titulo h1 {
    font-size: 2.8rem;
    color: #0b95f1;
    margin-bottom: 10px;
    font-family: 'Berkshire Swash', cursive;
}

.sobre_titulo p {
    color: #707070;
    font-size: 1.2rem;
}

.sobre_titulo div.detalhe_pontos {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin-top: 20px;
}

.sobre_titulo span {
    height: 12px;
    width: 12px;
    border-radius: 50%;
    background-color: #0b95f1;
}

.sobre_grid {
    display: grid;
    grid-template-columns: 1fr 1.6fr; 
    gap: 60px;
    align-items: start;
}

.sobre_grid img {
    width: 100%;
    border-radius: 15px;
    transition: 0.5s;
}

.sobre_conteudo {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.sobre_texto h1 {
    font-size: 2.2rem;
    color: #fff;
}

.sobre_texto h1::after {
    content: '';
    display: block;
    background-color: #0b95f1;
    height: 6px;
    width: 60px;
    margin-top: 20px;
    border-radius: 5px;
}

.sobre_texto p {
    font-size: 1.1rem;
    color: #a0a0a0;
    line-height: 1.7;
}

.sobre_info {
    display: grid;
    grid-template-columns: 1fr 1fr; 
    gap: 25px;
    border-top: 1px solid #222;
    padding-top: 30px;
}

.sobre_info p {
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    color: #f7f7f7;
}

.sobre_info i {
    color: #0b95f1;
    width: 35px;
    font-size: 1.3rem;
}


.services {
    background-color: #151515;
    padding: 100px 0;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.my_services {
    width: 100%;
    max-width: 1200px;
    display: flex;
    justify-content: center;
}

.my_services ul {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    justify-content: center;
    padding: 0;
    width: 100%;
}

.my_services ul li {
    cursor: pointer;
    border-radius: 6px;
    position: relative;
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    
    /* QUADRADO PERFEITO */
    width: 320px;  
    height: 320px; 
    
    background-color: #222;
    transition: 0.5s;
    overflow: hidden;
}

.my_services ul li:hover {
    transform: translateY(-10px);
    background-color: #292929;
}

.my_services ul li i {
    font-size: 3.5rem;
    color: #0b95f1;
    margin-bottom: 20px;
}

.my_services ul li h3 {
    color: #fff;
    margin-bottom: 15px;
    font-size: 1.6rem;
    font-weight: 500;
}

.my_services ul li p {
    color: #888;
    font-size: 0.9rem;
    line-height: 1.6;
}

/* EFEITO DE BORDA ANIMADA */
.my_services li::before {
    content: '';
    width: 0px;
    height: 0px;
    position: absolute;
    top: -1px;
    right: -1px;
    border-top: 2px solid transparent;
    border-right: 2px solid transparent;
    transition: 0.5s;
}

.my_services li::after {
    content: '';
    width: 0px;
    height: 0px;
    position: absolute;
    bottom: -1px;
    left: -1px;
    border-bottom: 2px solid transparent;
    border-left: 2px solid transparent;
    transition: 0.5s;
}

.my_services li:hover::before, 
.my_services li:hover::after {
    width: 100%;
    height: 100%;
    border-color: #0b95f1; /* Vermelho padrão */
}


.modal {
    display: none; /* Escondido por padrão */
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(10px); /* Efeito de vidro desfocado */
    align-items: center;
    justify-content: center;
}

.modal-content {
    background-color: #151515;
    padding: 40px;
    border: 1px solid #0b95f1;
    width: 90%;
    max-width: 700px;
    border-radius: 20px;
    position: relative;
    color: #fff;
    box-shadow: 0 0 30px rgba(59, 57, 57, 0.2);
    animation: zoomModal 0.4s ease-out;
}

@keyframes zoomModal {
    from { opacity: 0; transform: scale(0.8); }
    to { opacity: 1; transform: scale(1); }
}

.close-modal {
    position: absolute;
    right: 25px;
    top: 15px;
    font-size: 40px;
    cursor: pointer;
    color: #0b95f1;
    transition: 0.3s;
}

.close-modal:hover {
    transform: rotate(90deg);
}

.modal-body h2 {
    font-family: 'Berkshire Swash', cursive;
    color: #0b95f1;
    margin-bottom: 20px;
    font-size: 2.2rem;
}

.modal-body p {
    color: #ccc;
    line-height: 1.8;
    margin-bottom: 25px;
}

.habilidades-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 15px;
}

.skill-tag {
    background: #222;
    padding: 10px;
    border-radius: 8px;
    border-left: 3px solid #0b95f1;
    font-size: 0.85rem;
    text-align: center;
}


.reveal {
    opacity: 0;
    transform: translateY(50px);
    transition: all 1s ease-out;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

.imagem-lateral {
    opacity: 0;
    transform: translateX(-100px);
    transition: all 1s ease-out;
}

.imagem-lateral.active {
    opacity: 1;
    transform: translateX(0);
}

.digitando::after {
    content: '|';
    margin-left: 5px;
    animation: pisca 0.7s infinite;
}

@keyframes pisca {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

@media (max-width: 900px) {
    .section-div, .sobre_grid, .my_services ul {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .my_services ul li { width: 90%; }
    header .navegacao-primaria { display: none; }
}

.resume_generico{
    padding: 30px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    justify-content: center; 
    gap: 10px;
    align-items: start;
}

.resume_generico h2{
    font-family: 'poppins';
    font-size: 1.5rem;
    background-color: #0b95f1;
    justify-self: start;
    padding: 10px;
    border-radius: 3px;
}

.resume_generico h2 i {
    margin-right: 10px;
}

.education{
    margin-bottom: 30px;
    grid-column: 1;
    grid-row: 1;
}

.experience{
    margin-bottom: 30px;
    grid-column: 2;
    grid-row: 1;
}

.experience_content ul{
    color: #0b95f1;
    gap: 10px;
    display: flex;
    cursor: pointer;
    margin-top: 20px;
    justify-content: center;
}

.resume_generico .experience_content div {
    background-color: #222;
    animation: LadoSecao .5s ease-in-out forwards;
    display: none; /* Esconde todas por padrão conforme o vídeo */
    padding: 40px;
    position: relative;
}

.resume_generico .experience_content div.ativo {
    display: block; 
}

.resume_generico .experience_content div::before {
    content: '';
    border-right: 30px solid transparent;
    border-bottom: 30px solid #222;
    position: absolute;
    top: -20px;
    left: 30px;
    display: inline-block;
}

.resume_generico .experience_content div span {
    color: #ece8e8; /* Vermelho padrão do seu site */
    font-family: "Poppins";
    font-weight: bold;
}

.resume_generico .experience_content div h3 {
    font-family: 'Poppins';
    margin: 10px 0;
}

/* Descrição das Experiências */
.resume_generico .experience_content div p {
    color: #707070;
    font-size: 1.1rem;
}

.resume_generico .education_content div {
    background-color: #222;
    animation: LadoSecao .5s ease-in-out forwards;
    display: none; /* Esconde todas por padrão conforme o vídeo */
    padding: 40px;
    position: relative;
}

.resume_generico .education_content div.ativo {
    display: block; 
}

.education_content ul {
    color: #0b95f1;
    gap: 10px;
    display: flex;
    cursor: pointer;
    margin-top: 20px;
    justify-content: center;
}

.resume_generico .education_content div::before {
    content: '';
    border-right: 30px solid transparent;
    border-bottom: 30px solid #222;
    position: absolute;
    top: -20px;
    left: 30px;
    display: inline-block;
}

.resume_generico .education_content div span {
    color: #ece8e8; 
    font-family: "Poppins";
    font-weight: bold;
}

.resume_generico .education_content div h3 {
    font-family: 'Poppins';
    margin: 10px 0;
}

.resume_generico .education_content div p {
    color: #707070;
    font-size: 1.1rem;
}


.portfolio {
    background-color: #0c0b0b;
    padding: 100px 0;
    width: 100%;
    overflow: hidden;
}

/* Wrapper do Carrossel com Botões */
.carousel-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    margin: 0 auto;
    padding: 0;
    position: relative;
    overflow: visible;
}

/* Botões de Navegação */
.carousel-btn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: #1a1a1a;
    border: 2px solid #333;
    color: #fff;
    font-size: 1.2rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    flex-shrink: 0;
    z-index: 10;
}

.carousel-btn:hover {
    background-color: #0b95f1;
    border-color: #0b95f1;
    transform: scale(1.1);
}

.carousel-btn-prev {
    left: 5%;
    position: absolute;
}

.carousel-btn-next {
    right: 5%;
    position: absolute;
}

/* Container do Carrossel */
.carousel-container {
    width: 100%;
    overflow: hidden;
    perspective: 2000px;
    padding: 60px 0;
}

/* Track do Carrossel com Perspectiva 3D */
.carousel-track {
    display: flex;
    transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    transform-style: preserve-3d;
    will-change: transform;
}

/* Item do Carrossel */
.carousel-item {
    flex-shrink: 0;
    width: 600px; /* Largura fixa para os cards no desktop */
    margin: 0 20px;
    opacity: 0.3;
    transform: scale(0.8) translateZ(-200px);
    transition: all 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    filter: brightness(0.5);
    pointer-events: none;
}

.carousel-item.active {
    opacity: 1;
    transform: scale(1.1) translateZ(0);
    filter: brightness(1);
    z-index: 10;
    pointer-events: auto;
}

.carousel-item.next,
.carousel-item.prev {
    opacity: 0.6;
    transform: scale(0.9) translateZ(-100px);
    filter: brightness(0.8);
    pointer-events: auto;
}

.carousel-item.active {
    opacity: 1;
    transform: scale(1) translateZ(0);
    filter: brightness(1);
    z-index: 10;
}

.carousel-item.next {
    opacity: 0.6;
    transform: scale(0.9) translateZ(-50px);
    filter: brightness(0.85);
}

.carousel-item.prev {
    opacity: 0.6;
    transform: scale(0.9) translateZ(-50px);
    filter: brightness(0.85);
}

/* Card do Projeto no Carrossel */
.project-card-carousel {
    background: #111;
    border-radius: 20px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.4s ease;
    border: 1px solid #222;
    position: relative;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.8);
}

.carousel-item.active .project-card-carousel {
    border-color: #0b95f1;
    box-shadow: 0 30px 80px rgba(43, 40, 40, 0.3);
}

.carousel-item.active .project-card-carousel:hover {
    transform: translateY(-5px);
    box-shadow: 0 40px 100px rgba(220, 53, 69, 0.4);
}

.project-card-carousel img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    opacity: 0.9;
    transition: opacity 0.5s ease;
}

.carousel-item.active .project-card-carousel img {
    opacity: 1;
}

.project-info-carousel {
    padding: 30px;
    background: #111;
}

.project-info-carousel h3 {
    font-size: 1.5rem;
    color: #fff;
    margin-bottom: 8px;
    font-weight: 600;
}

.project-info-carousel p {
    color: #707070;
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 2px;
    margin-bottom: 18px;
    font-weight: 500;
}

/* Tags de tecnologia */
.project-tags-carousel {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.project-tags-carousel span {
    font-size: 0.65rem;
    padding: 6px 14px;
    border: 1px solid #333;
    border-radius: 5px;
    color: #fff;
    font-weight: bold;
    background: rgba(255, 255, 255, 0.05);
    transition: all 0.3s ease;
}

.carousel-item.active .project-tags-carousel span {
    border-color: #0b95f1;
    background: rgba(17, 0, 255, 0.1);
}

/* Responsividade */
@media (max-width: 1000px) {
    .carousel-item {
        width: 80%;
    }
    
    .carousel-btn {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
    
    .project-info-carousel {
        padding: 20px;
    }
    
    .project-info-carousel h3 {
        font-size: 1.2rem;
    }
}

@media (max-width: 768px) {
    .carousel-wrapper {
        gap: 10px;
    }
    
    .carousel-btn {
        width: 35px;
        height: 35px;
        font-size: 0.9rem;
    }
    
    .carousel-btn-prev,
    .carousel-btn-next {
        margin: 0;
    }
    
    .carousel-track {
        gap: 20px;
        padding: 30px 10px;
    }
    
    .project-card-carousel img {
        height: 250px;
    }
}

/* Estilos antigos mantidos para compatibilidade */
.projects-container {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    overflow-x: auto;
    padding: 20px 0 40px;
    scrollbar-width: none;
}

.projects-container::-webkit-scrollbar {
    display: none;
}

.project-track {
    display: flex;
    gap: 30px;
    padding: 0 40px;
}

.project-card-v2 {
    min-width: 450px;
    background: #111;
    border-radius: 20px;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.4s ease, border-color 0.4s;
    border: 1px solid #222;
    position: relative;
}

.project-card-v2:hover {
    transform: scale(1.02);
    border-color: #0b95f1;
}

.project-card-v2 img {
    width: 100%;
    height: 280px;
    object-fit: cover;
    opacity: 0.8;
    transition: 0.5s;
}

.project-card-v2:hover img {
    opacity: 1;
}

.project-info {
    padding: 25px;
    background: #111;
}

.project-info h3 {
    font-size: 1.4rem;
    color: #fff;
    margin-bottom: 5px;
}

.project-info p {
    color: #707070;
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 1.5px;
    margin-bottom: 15px;
}

.project-tags {
    display: flex;
    gap: 10px;
}

.project-tags span {
    font-size: 0.65rem;
    padding: 5px 12px;
    border: 1px solid #333;
    border-radius: 5px;
    color: #fff;
    font-weight: bold;
    background: rgba(255, 255, 255, 0.05);
}

/* Ajuste na modal para suportar o layout de duas colunas */
.modal-body-v2 {
    display: flex;
    gap: 50px;
    align-items: start;
    text-align: left;
}

.project-details-text {
    flex: 1;
}

.project-details-text h2 {
    font-size: 2.5rem;
    color: #0b95f1;
    font-family: 'Berkshire Swash', cursive;
    margin-bottom: 20px;
}

.project-details-text p {
    color: #ccc;
    line-height: 1.8;
    font-size: 1.1rem;
}

.project-details-image {
    flex: 1.4;
}

.project-details-image img {
    width: 100%;
    border-radius: 15px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.8);
    border: 1px solid #333;
}

/* Responsividade para a Modal */
@media (max-width: 1000px) {
    .modal-body-v2 {
        flex-direction: column;
    }
    .project-card-v2 {
        min-width: 320px;
    }
}

/* Re-adicionando sua animação de entrada */
@keyframes LadoSecao {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.stacks-container {
    margin-top: 40px;
    width: 100%;
    max-width: 500px;
}

.stack-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(50px, 1fr));
    gap: 15px;
    justify-content: start;
}

.stack-item {
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
}

.stack-item:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-5px) scale(1.1);
    border-color: rgba(119, 0, 255, 0.5);
    box-shadow: 0 10px 40px rgba(4, 0, 233, 0.2);
}

.stack-item i {
    filter: drop-shadow(0 0 5px rgba(0,0,0,0.5));
}


.stack-item::after {
    content: attr(title);
    position: absolute;
    bottom: -30px;
    left: 50%;
    transform: translateX(-50%);
    background: #0b95f1;
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.7rem;
    opacity: 0;
    pointer-events: none;
    transition: 0.3s;
    white-space: nowrap;
    z-index: 100;
}

.stack-item:hover::after {
    opacity: 1;
    bottom: -35px;
}

@media (max-width: 900px) {
    .stacks-container {
        margin: 40px auto 0;
    }
    .stack-grid {
        justify-content: center;
    }
}


footer {
    background-color: #000;
    padding: 80px 20px 40px;
    text-align: center;
    border-top: 1px solid #111;
    width: 100%;
}

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

.footer_logo {
    font-family: 'Berkshire Swash', cursive;
    color: #0b95f1;
    font-size: 2.8rem;
    margin-bottom: 25px;
}

.footer_text {
    color: #888;
    line-height: 1.8;
    margin-bottom: 40px;
    font-size: 1.1rem;
}

.footer_social {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 50px;
}

.footer_social a {
    width: 55px;
    height: 55px;
    background-color: #1a1a1a; 
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: #fff;
    font-size: 1.3rem;
    transition: all 0.3s ease;
    text-decoration: none;
    border: 1px solid #222;
}

.footer_social a:hover {
    background-color: #0b95f1;
    transform: translateY(-8px);
    box-shadow: 0 10px 20px rgba(87, 0, 248, 0.3);
}

.footer_divider {
    width: 120px;
    height: 4px;
    background-color: #333; 
    margin: 0 auto 40px;
    border-radius: 10px;
}

.footer_copy {
    color: #f7f7f7;
    font-size: 0.95rem;
    letter-spacing: 1px;
    opacity: 0.8;
}

