/* --- Reset e Estilos Globais --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

html,
body {
    height: 100vh;
    width: 100%;
    display: flex;
    background-color: #f4f7fa;
}

p {
    color: #000000;
}


.container {
    margin-right: auto;
    margin-left: auto;
    padding-right: 100px;
    padding-left: 100px;
    padding-top: 30px;
    padding-bottom: 30px;

}

.header-text h1 span {
    color: #ff004f;
}

.header-text h1 {
    font-size: 30px;
    margin-bottom: 1%;
    color: #ffffff;
}

/* --- Conteúdo Principal (Padrão Mobile) --- */
.main-content {
    width: 100%;
    /* Padrão mobile é 100% */
    height: 100vh;
    overflow-y: auto;
    background-color: #ffffff;
    color: #1a202c;
}

.main-content h1 {
    margin-bottom: 20px;
}

/* --- Seção "Sobre" --- */
#about {
    padding-top: 50px;
    padding-bottom: 20px;
    color: #cfcfcf;
}

.row {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
}

.about-col-1 {
    flex-basis: 35%;
}

.about-col-1 img {
    width: 100%;
    border-radius: 150px;
}

.about-col-2 {
    flex-basis: 100%;
    text-align: justify;
}

.sub-title {
    font-size: 40px;
    margin-bottom: 20px;
    font-weight: 600;
    color: #002b33;
}

.tab-titles {
    display: flex;
    margin: 20px 0 40px;
}

.tab-links {
    margin-right: 50px;
    font-size: 18px;
    font-weight: 500;
    cursor: pointer;
    position: relative;
}

.tab-links::after {
    content: '';
    width: 0;
    height: 3px;
    background: #ff004f;
    position: absolute;
    left: 0;
    bottom: -8px;
    transition: 0.5s;
}

.active-link.active-link::after {
    width: 50%;
}

.tab-contents ul li {
    list-style: none;
    margin: 20px 0;
}

.tab-contents ul li span {
    color: #00accc;
    font-size: 14px;
}

.tab-contents {
    display: none;
}

.tab-contents.active-tab {
    display: block;
}

/* --- Serviços --- */
#services {
    background: #0b0f0f;
}

.services-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    grid-gap: 40px;
    margin-top: 40px;
}

.services-list div {
    background: #002b33;
    padding: 40px;
    font-size: 13PX;
    font-weight: 300px;
    border-radius: 10px;
    transition: background 0.5s, transform 0.5s;
    HEIGHT: 100%;
}

.services-list div h2 {
    font-size: 22px;
    font-weight: 500;
    margin-bottom: 15px;
    color: #00accc;
}

.services-list div p {
    text-align: justify;
    color: #ebebeb;
}

.services-list div:hover {
    background: #ff004f;
    transform: translateY(-10px);
    color: rgba(255, 255, 255, 0.7);
}

/* --- Portifolio / Certificados --- */

.work-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    grid-gap: 40px;
    margin-top: 40px;
}

.work-list-certificados {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    grid-gap: 40px;
    margin-top: 40px;
}

.work {
    border-radius: 10px;
    position: relative;
}

.work img {
    width: 100%;
    border-radius: 10px;
    display: block;
    transition: transform 0.5s;
    cursor: pointer;
    margin: 15px;
    box-shadow: 5px 10px 10px rgba(0, 0, 0, 0.5);

}

.sub-title-type-2 {
    font-size: 40px;
    margin-top: 20px;
    margin-bottom: 20px;
    font-weight: 400;
    color: #002b33;
}

.layer {
    width: 100%;
    height: 0;
    border-radius: 10px;
    position: absolute;
    left: 0;
    bottom: 0;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    padding: 0 40px;
    text-align: center;
    font-size: 14px;
    transition: height 0.5s;
}

.layer a {
    margin-top: 20px;
    color: #002b33;
    text-decoration: none;
    font-size: 18px;
    line-height: 60px;
    background-color: #ffffff;
    width: 60px;
    height: 60px;
    border-radius: 60px;
    height: 60px;
    border-radius: 50%;
    text-align: center;
}

.work:hover img {
    transform: scale(1.1);
}

.work:hover .layer {
    height: 100%;
}

.btn {
    display: block;
    margin: 50px auto;
    width: fit-content;
    border: 1px solid #030303;
    padding: 14px 50px;
    border-radius: 6px;
    text-decoration: none;
    color: #fff;
    transition: background 0.5s;
    background-color: #002b33;
}

.btn:hover {
    background: #ff004f;
}

/* --- Contato --- */
.fa-solid,
.fas {
    color: rgb(0, 0, 0);
}

.social-icons {
    margin-top: 30px;
}

.social-icons a {
    text-decoration: none;
    font-size: 30px;
    margin-right: 15px;
    color: #ababab;
    display: inline-block;
    transition: transform 0.5s;
}

.social-icons a:hover {
    color: #ff004f;
    transform: translateY(-5px);
}

#contact {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    background: #21202e;
}

/* --- Modal --- */
.project-item {
    background-color: #333;
    padding: 20px;
    border-radius: 8px;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.project-item:hover {
    transform: scale(1.03);
}

#modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.8);
    z-index: 1000;
}

#project-modal {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: #0b0f0f;
    color: #f1f1f1;
    padding: 24px;
    border-radius: 8px;
    width: 90%;
    max-width: 800px;
    z-index: 1001;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

#modal-overlay.active,
#project-modal.active {
    display: block;
}

.close-modal {
    position: absolute;
    top: 10px;
    right: 20px;
    font-size: 2.5rem;
    color: #f1f1f1;
    cursor: pointer;
    line-height: 1;
}

.close-modal:hover {
    color: #ab47bc;
}

.modal .miniatura {
    display: flex;
    gap: 20px;
}

.modal .video {
    flex-basis: 50%;
}

.modal .video img {
    width: 100%;
    border-radius: 4px;
}

.modal .info {
    flex-basis: 50%;
    display: flex;
    flex-direction: column;
}

.modal .info h2 {
    color: #00accc;
    margin-top: 0;
}

.modal .info p {
    font-size: 0.9rem;
    line-height: 1.5;
    flex-grow: 1;
    color: white;
}

.modal .info span {
    font-size: 0.8rem;
    color: #999;
}

.modal .links {
    margin-top: 20px;
    display: flex;
    gap: 15px;
}

.sidebar {
    display: block;
}

#galeria {
    padding-bottom: 30px;
    background: #002b33;
}

.modal .links a {
    display: none;
    text-decoration: none;
    padding: 10px 15px;
    border-radius: 5px;
    background-color: #00accc;
    color: #000000;
    font-weight: bold;
    transition: background-color 0.3s;
}

.modal .links a:hover {
    background-color: #8e24aa;
}

.project-item .logo {
    width: 100%;
    object-fit: contain;
}

.project-item h2 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #000000;
    margin-top: 16px;
    margin-bottom: 12px;
}

.project-item p {
    font-size: 1rem;
    line-height: 1.6;
    color: #333333;
    margin: 0;
    flex-grow: 1;
}

/* --- Estilos de Botões Mobile (Padrão) --- */
#menu-toggle-open {
    display: none;
    /* Mostrar por padrão */
    position: fixed;
    top: 20px;
    right: 20px;
    font-size: 2rem;
    color: #333;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 999;
}

#menu-toggle-close {
    display: none;
    top: 30px;
    right: 750px;
    font-size: 2.2rem;
    color: #ffffff;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 1001;
}

.sidebar.sidebar-open {
    right: 0;
    display: inline;
}

.sidebar .sidebar-header {
    display: none;
}

.sidebar-nav {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.sidebar-nav ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.sidebar-nav a {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: white;
    font-size: 2rem;
    font-weight: bold;
    font-family: Arial, Helvetica, sans-serif;
    padding: 0;
    border-radius: 0;
    transition: none;
}

.sidebar-nav a i {
    display: none;
}

.sidebar-nav a:hover {
    background-color: transparent;
    color: #f0f0f0;
}

.sidebar {
    position: static;
    width: 15%;
    min-width: 240px;
    height: 100vh;
    background-color: #111418;
    padding: 24px;
    box-shadow: none;
    transition: none;
    display: inline-grid;
}

/* Container Geral */
.experience-container {
    display: flex;
    flex-direction: column;
    gap: 35px;
    /* Espaço entre os projetos */
    margin-top: 30px;
}

/* Item Individual */
.experience-item {
    display: flex;
    gap: 20px;
}

/* Coluna da Data (Esquerda) */
.exp-date {
    flex-basis: 100px;
    flex-shrink: 0;
    text-align: right;
    font-size: 14px;
    color: #fff;
    /* Data em branco para destaque */
    font-weight: 600;
    display: flex;
    flex-direction: column;
    line-height: 1.5;
}

.exp-date span:nth-child(2) {
    color: #ff004f;
    /* Cor do traço separador da data */
}

/* Coluna do Conteúdo (Direita) */
.exp-content {
    flex-grow: 1;
    border-left: 2px solid #333;
    /* Linha vertical */
    padding-left: 25px;
    position: relative;
}

/* Bolinha decorativa na linha do tempo */
.exp-content::before {
    content: '';
    position: absolute;
    left: -6px;
    top: 0;
    width: 10px;
    height: 10px;
    background: #ff004f;
    border-radius: 50%;
}

/* Título do Projeto */
.exp-content h3 {
    font-size: 18px;
    font-weight: 600;
    color: #fff;
    margin-bottom: 5px;
    margin-top: -4px;
    /* Ajuste fino para alinhar com o topo da data */
}

/* Subtítulo / Cargo com Logo */
.exp-content .exp-role {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: #cfcfcf;
    margin-bottom: 12px;
    font-weight: 500;
}

.exp-content .exp-role img {
    width: 18px;
    height: auto;
    border-radius: 2px;
}

/* Descrição */
.exp-content p {
    font-size: 14px;
    color: #000000;
    line-height: 1.6;
    max-width: 90%;
    text-align: justify;
}

/* Container Geral */
.experience-container {
    display: flex;
    flex-direction: column;
    gap: 35px;
    /* Espaço entre os projetos */
    margin-top: 30px;
}

/* Item Individual */
.experience-item {
    display: flex;
    gap: 20px;
}

/* Coluna da Data (Esquerda) */
.exp-date {
    flex-basis: 100px;
    flex-shrink: 0;
    text-align: right;
    font-size: 14px;
    color: #000000;
    /* Data em branco para destaque */
    font-weight: 600;
    display: flex;
    flex-direction: column;
    line-height: 1.5;
}

/* Coluna do Conteúdo (Direita) */
.exp-content {
    flex-grow: 1;
    border-left: 2px solid #333;
    /* Linha vertical */
    padding-left: 25px;
    position: relative;
}

/* Bolinha decorativa na linha do tempo */
.exp-content::before {
    content: '';
    position: absolute;
    left: -6px;
    top: 0;
    width: 10px;
    height: 10px;
    background: #ff004f;
    border-radius: 50%;
}

/* Título do Projeto */
.exp-content h3 {
    font-size: 18px;
    font-weight: 600;
    color: #000000;
    margin-bottom: 5px;
    margin-top: -4px;
    /* Ajuste fino para alinhar com o topo da data */
}

/* Subtítulo / Cargo com Logo */
.exp-content .exp-role {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: #000000;
    margin-bottom: 12px;
    font-weight: 500;
}

.exp-content .exp-role img {
    width: 18px;
    height: auto;
    border-radius: 2px;
}

/* --- ESTILOS PARA A ABA DE HABILIDADES (SKILLS) --- */

.skills-grid-container {
    display: grid;
    /* 4 colunas em telas maiores */
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    padding: 30px 0;
}

.skill-card {
    background-color: #002b33;
    /* Fundo do cartão */
    border-radius: 10px;
    padding: 20px;
    text-align: center;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s, background-color 0.3s;
}

.skill-card:hover {
    transform: translateY(-5px);
    background-color: #00accc;
    /* Sua cor de destaque no hover */
}

.skill-card img {
    width: 40px;
    height: 40px;
    object-fit: contain;
    margin-bottom: 10px;
    filter: drop-shadow(0 0 5px rgba(255, 255, 255, 0.4));
}

.skill-card h4 {
    font-size: 1.1rem;
    font-weight: 600;
    color: #fff;
    margin-bottom: 5px;
}

.skill-card p {
    font-size: 0.85rem;
    color: #cfcfcf;
    /* Certifica que a cor do parágrafo é clara, sobrepondo o p global */
}
   h2 {
        margin-top:25px;
         font-size: 18px;
    }

/* Responsividade Mobile */
@media only screen and (max-width: 600px) {
    .experience-item {
        flex-direction: column;
        gap: 10px;
    }



    .exp-date {
        flex-direction: row;
        gap: 8px;
        text-align: left;
    }

    .exp-content {
        border-left: none;
        padding-left: 0;
        border-top: 1px solid #333;
        padding-top: 15px;
    }

    .exp-content::before {
        display: none;
    }
}

/* --- Layout Desktop (Media Query) --- */
@media only screen and (max-width: 2532px) and (min-height: 1170px),
only screen and (max-width: 2340px) and (min-height: 1080px) {

    body {
        display: flex;
        /* Ativa layout desktop */
        overflow: hidden;
    }

    .skills-grid-container {
        display: inline-block;
    }

    .modal .miniatura {
        display: flow-root;
    }

    .modal .info p {
        font-size: 26px;
        margin: 10px;
    }

    .exp-content p {
        font-size: 24px;
    }

    .exp-date {
        font-size: 24px;
    }

    .btn {
        font-size: 30px;
    }

    .modal .info h2 {
        font-size: 32px;
        margin: 10px;
    }

    .exp-content .exp-role {
        font-size: 22px;
    }

    .exp-content h3 {
        font-size: 24px;
    }

    .tab-links {
        margin-right: 50px;
        font-size: 28px;
    }

    .services-list div h2 {
        font-size: 26px;
    }

    .services-list div p {
        font-size: 28px;
    }

    .modal .links a {
        font-size: 28px;
        margin: 10px;
    }

    .services-list div {

        margin-bottom: 60px;
    }

    .services-list {
        display: inline-block;
        margin-top: 0px;
    }

    .work-list-certificados {
        display: list-item;
    }

    .work {
        margin-bottom: 60px;
    }

    .work-list {
        display: inline-block;
    }

    .skill-card {
        margin-bottom: 40px;
    }

    .skills-grid-container {
        display: inline-block;
        width: 100%;
    }

    .sobre {
        margin-top: 50px;
    }

    h2 {
        margin-top: 35px;
        font-size: 32px;
    }

    .main-content {
        width: 100%;
    }

    /* Restaura Sidebar Desktop */
    .sidebar {
        position: static;
        display: none;
        right: auto;
        width: 15%;
        min-width: 240px;
        height: 100vh;
        background-color: #2d3748;
        /* Cor desktop */
        box-shadow: none;
        transition: none;
    }

    #menu-toggle-open {
        font-size: 60px;

        display: block;
    }

    .sidebar .sidebar-header {
        display: block;
    }

    .sidebar-nav {
        margin-top: 0;
        /* Reseta */
    }

    .sidebar-nav ul {
        gap: 0;
        /* Reseta */
    }

    .sidebar-nav a {
        color: #cbd5e0;
        /* Cor desktop */
        padding: 14px 10px;
        border-radius: 6px;
        transition: background-color 0.3s, color 0.3s;
        font-size: 1rem;
        /* Fonte desktop */
        font-weight: normal;
        font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    }

    .sidebar-nav a i {
        display: inline-block;
        /* Mostra ícones */
        width: 20px;
        font-size: 1.1rem;
        text-align: center;
    }

    .sidebar-nav a:hover {
        background-color: #4a5568;
        color: #ffffff;
    }

    #menu-toggle-close {
        display: block;
    }
}

/* Variáveis para fácil ajuste */
:root {
    --logo-height: 48px;
    /* Altura de todas as imagens */
    --logo-gap: 32px;
    /* Espaçamento entre os logos */
    --scroll-duration: 40s;
    /* Duração da rolagem completa */
    --scroll-distance: 0px;
    /* Distância de rolagem, definida pelo JS */
}

body {
    background-color: #0b0b0b;
    /* Fundo escuro como na imagem */
    margin: 0;
    padding: 0;
    font-family: sans-serif;
}

/* 1. Contêiner de Visualização (Recorta o conteúdo) */
.logoloop-track {
    width: 100%;
    overflow: hidden;
    /* **Obrigatório** para esconder a parte que não está na tela */
    white-space: nowrap;
    /* Impede que os itens quebrem linha */
    padding: 20px 0;
    box-sizing: border-box;
    /* Ajuste para que as imagens brancas apareçam em fundo escuro */
    filter: invert(1);
}

/* 2. Contêiner Interno (Será animado) */
.logoloop-inner {
    display: flex;
    width: max-content;
    /* Permite que o conteúdo se estenda horizontalmente */
    will-change: transform;

    /* Aplica a animação: nome, duração, linear, infinito */
    animation: scroll-x var(--scroll-duration) linear infinite;

    /* Pausar animação quando o mouse passar por cima do track */
    .logoloop-track:hover & {
        animation-play-state: paused;
    }
}

/* 3. Estilo da Lista de Logos e Itens */
.logoloop-list {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    align-items: center;
}

.logoloop-item {
    margin-right: var(--logo-gap);
    height: var(--logo-height);
    display: flex;
    /* Para centralizar verticalmente a imagem */
    align-items: center;
    transition: transform 0.3s ease-in-out;
}

.logoloop-item:hover {
    transform: scale(1.1);
    /* Efeito de zoom ao passar o mouse */
}

.logoloop-item img {
    height: 100%;
    width: auto;
    object-fit: contain;
    /* Adicionando o cursor pointer para simular um link/botão */
    cursor: pointer;
}

/* 4. A Animação de Rolagem */
@keyframes scroll-x {
    from {
        /* Posição inicial: 0 */
        transform: translate3d(0, 0, 0);
    }

    to {
        /* Posição final: Rola para a esquerda exatamente o tamanho de uma lista */
        transform: translate3d(calc(-1 * var(--scroll-distance)), 0, 0);
    }
}