* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'inter', sans-serif;
}

body {
    background: #000000;
    color: #cccccc;
    line-height: 1.6;
}

html {
    scroll-behavior: smooth;
}

a {
    text-decoration: none; /* Remove o sublinhado padrão */
    color: inherit; /* Herda a cor do elemento pai */
}

a:visited {
    color: inherit; /* Remove a cor padrão de links visitados */
}

a:hover {
    color: #ffffff; /* Define uma cor personalizada ao passar o mouse */
    transition: color 0.3s ease; /* Adiciona uma transição suave */
}

a:active {
    color: #ff5733; /* Define uma cor para o estado ativo */
}



/* botão topo */
#scrollTopBtn {
    position: fixed;
    right: 40px;
    bottom: 30px;
    z-index: 999;
    background: #161616;
    color: #a3c91c;
    /* border: none; */
    border-radius: 50%;
    width: 60px;
    height: 60px;
    font-size: 2.7rem;
    cursor: pointer;
    opacity: 0.4;
    transition: opacity 0.2s;
    display: none;
    border-color: #cccccc;
    border-width: 0px;
}
#scrollTopBtn:hover {
    opacity: 1;
}





/* Navigation */

body {
    font-family: Arial, sans-serif;
    /* display: flex; */
    justify-content: center;
    align-items: center;
    height: 100vh;
    background-color: #000000;
    margin: 0;
    color: #ffffff;
}

body a {
    text-decoration: none;
}

html {
    scroll-behavior: smooth;
}

.fab-container {
    position: fixed;
    top: 40px;
    right: 40px;
    z-index: 100;
}

.fab {
    width: 80px;
    height: 80px;
    font-size: 18px;
    border: none;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: transform 0.3s ease, opacity 0.3s ease;
    background-color: #000000;
}

.main-fab {
    width: 60px;
    height: 60px;
    position: relative;
    z-index: 10;
    border-radius: 50%;
    background-color: #a3c91c;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: transform 0.3s ease;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.397);
}

.main-fab .line {
    display: block;
    width: 25px;
    height: 3px;
    background-color: #000000;
    position: absolute;
    left: 50%; /* Centraliza horizontalmente */
    transform: translate(-50%, -50%); /* Centraliza completamente */
    transition: transform 0.3s ease, opacity 0.3s ease;
    border-radius: 1px;
}

.main-fab .line:nth-child(1) {
    top: 40%; /* Linha superior */
}

.main-fab .line:nth-child(2) {
    top: 50%; /* Linha do meio */
}

.main-fab .line:nth-child(3) {
    top: 60%; /* Linha inferior */
}

.fab-container.active .main-fab .line:nth-child(1) {
    transform: translate(-50%, -50%) translateY(5px) rotate(45deg); /* Linha superior gira para formar o "X" */
    width: 30px; /* Aumenta a largura da linha superior */
}

.fab-container.active .main-fab .line:nth-child(2) {
    opacity: 0; /* Linha do meio desaparece */
}

.fab-container.active .main-fab .line:nth-child(3) {
    transform: translate(-50%, -50%) translateY(-7px) rotate(-45deg); /* Linha inferior gira para formar o "X" */
    width: 30px; /* Aumenta a largura da linha superior */
}

.fab-options {
    position: absolute;
    top: 150%; /* Posiciona os fab-options logo abaixo do botão principal */
    left: 50%; /* Centraliza horizontalmente em relação ao botão principal */
    transform: translateX(-60%) translateY(20px) scale(0); /* Começa deslocado para baixo e reduzido */
    display: flex;
    flex-direction: column;
    opacity: 0;
    transition: opacity 0.2s ease, transform 0.3s ease;
    color: #a3c91c;
}

.fab-options .fab {
    font-size: 1.3rem;
    width: 120px;
    font-weight: 400;
}

.fab-container.active .fab-options {
    opacity: 1;
    transform: translateX(-50%) translateY(0) scale(1); /* Move para a posição final e escala normal */
}


/* sections */

.section {
    display: flex;
    justify-content: center; /* Centraliza horizontalmente */
    align-items: center; /* Centraliza verticalmente */
    max-width: 1200px;
    height: 100vh; /* Garante que a altura da seção seja usada para centralização */
}



/* Hero Section */

.hero {
    position: relative;
    overflow: hidden;
    min-height: 100vh;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-bg-video {
    position: absolute;
    top: 0; left: 0;
    width: 100vw;
    height: 100vh;
    object-fit: cover;
    z-index: 0;
    pointer-events: none;
}


.hero-content {
    position: absolute;
    bottom: 40px; /* distância do fundo da seção */
    left: 0;
    width: 100%;
    text-align: center;
    z-index: 1;
}

.hero h1 {
    margin: auto;
    max-width: 1200px;
    font-size: 2rem;
    font-weight: 1200;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    font-kerning: 1px;
    color: rgb(0, 0, 0);
    text-align: center;
    background-color: #a3c91c ;
}

.hero h1 a {
        text-transform: capitalize;

}


.hero h1 a:hover {
    color: #00233f;
}


.hero h5 {
    margin: auto;
    max-width: 800px;
    font-size: 1.5rem;
    font-weight: 600;
    color: rgb(0, 0, 0);
    text-align: center;
    background-color: #a3c91c;
    padding-bottom: 1%;
    transition: transform 0.3s ease, color 0.3s ease;
}

.hero h5:hover {
    transform: scale(1.001); /* Aumenta o tamanho em 10% */
    color: #940505; /* Altera a cor para destaque */
    cursor: pointer;
}


/* Works Section */



.works {
    padding: 100px 20px;
    min-height: 100vh;
    max-width: 1200px;
    margin: 0 auto;

}

/* .works h2 {
    font-size: 2.5rem;
    margin-bottom: 30px;
    color: #333;
} */

.works-container {

    display: grid;
    grid-template-columns: repeat(3, 1fr); /* 3 colunas de tamanhos iguais */
    gap: 30px; /* Espaçamento entre os cartões */
    row-gap: 10vh;
    justify-content: center; /* Centraliza o grid horizontalmente */
}

.work-card {
    width: 300px; /* O cartão se ajusta automaticamente ao tamanho da coluna */
    height: 300px;
    background-size: cover;
    background-position: center;
    border-radius: 1px;
    overflow: hidden;
    position: relative;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
}

.work-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0); /* Inicialmente transparente */
    filter: blur(0px);
    transition: filter 0.3s ease, background-color 0.3s ease;
    z-index: 1; /* Certifique-se de que está abaixo do texto */
}

.work-card:hover::before {
    background: rgba(0, 0, 0, 0.822);
    width: 100%; /* Adiciona a sobreposição preta */
    height: 100%; /* Garante que cobre todo o cartão */
    filter: blur(12px); /* Adiciona um leve desfoque */
}

.card-content {
    position: absolute;
    /* bottom: 20px;s
    left: 20px; */
    color: rgb(209, 209, 209);
    z-index: 2; /* Garante que o texto fique acima da imagem */
    opacity: 0; /* Inicialmente invisível */
    transition: opacity 0.3s ease, transform 0.3s ease;
    transform: translateY(20px); /* Move o texto para baixo inicialmente */
    /* background-color: #00000083; */
    padding: 1rem;
}

.work-card:hover .card-content {
    opacity: 1; /* Torna o texto visível */
    transform: translateY(0); /* Move o texto para sua posição original */
}

.work-card:nth-child(1) {
    background-image: url('imgs/logo-RBS_300x300.jpg');
}

.work-card:nth-child(2) {
    background-image: url('imgs/PICSIX_logo_300x300.jpg'); 
}

.work-card:nth-child(3) {
    background-image: url('imgs/Mutant_300x300.jpg'); 
}

.work-card:nth-child(4) {
    background-image: url('imgs/ludus_pro/Ludus_300x300.jpg'); 
}

.work-card:nth-child(5) {
    background-image: url('imgs/Hasson/Logo-animated-300x300.gif'); 

}

.work-card:nth-child(6) {
    background-image: url('imgs/RedeMassa/Rde_massa_300x300.jpg'); 
}

.work-card:nth-child(7) {
    background-image: url('imgs/VitóriaRégia/VR_Logo_300x300.jpg'); 
}

.work-card:nth-child(8) {
    background-image: url('imgs/RedeMassa/Rede_massa_300x600.jpg'); 
}

.work-card:nth-child(9) {
    background-image: url('imgs/RedeMassa/Rede_massa_300x600.jpg'); 
}

.work-card:hover {
    transform: translateY(-12px); /* Sobe levemente o cartão */
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
}



/* Resume Section */
.resume {
    padding: 100px 20px;
    min-height: 100vh;
    max-width: 1200px;
    margin: 0 auto;
    background-color: #141414;
    position: relative;
    z-index: 1;
}

/* Garante que a cor de fundo da seção resume ocupe toda a largura da tela */
.resume::before {
    content: "";
    position: absolute;
    top: 0; left: 50%;
    transform: translateX(-50%);
    width: 100vw;
    height: 100%;
    background: #141414;
    z-index: -1;
}

.resume-grid {
    display: grid;
    grid-template-columns: 2fr 2fr;
    gap: 50px;
    margin-top: 5rem;
}

.resume-section {
    margin-bottom: 7rem;
}

.resume-right-column {
    display: flex;
    flex-direction: column;
    justify-content: center;
    width: 400px;
    background-color: #ff5733;

}


h2 {
    font-size: 2.5rem;
    font-weight: 300;
    margin-bottom: 40px;
    text-transform: uppercase;
}

h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 15px;
    color: #a3c91c;
}

h4 {
    font-size: 1.2rem;
    font-weight: 400;
    margin-bottom: 10px;
    color: #666;
}




h6 {
    font-size: 1.6rem;
    font-weight: 300;
    margin-bottom: 10px;
    color: #ffffff;
    font-weight: 600;
}

.divider {
    height: 1px;
}


/* ludus_pres */

.slides-hero {
    height: 90vh;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    margin-top: 5vh;
}

.slides-container {
    width: 100vw;
    height: 100vh;
    min-height: 100vh;
    max-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.slide {
    width: 100vw;
    height: 100vh;
    object-fit: contain;
    object-position: center center;
    position: absolute;
    top: 0; left: 0;
    opacity: 0;
    transition: opacity 0.5s;
    z-index: 1;
    display: block;
}

.slide.active {
    opacity: 1;
    z-index: 2;
}

.slide-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0,0,0,0.5);
    color: #fff;
    border: none;
    font-size: 2.5rem;
    padding: 0 16px;
    cursor: pointer;
    z-index: 3;
    border-radius: 50%;
}

.slide-arrow.left { left: 30px; }
.slide-arrow.right { right: 30px; }

.slide-dots {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 4;
}

.dot {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: #fff;
    opacity: 0.5;
    cursor: pointer;
    transition: opacity 0.3s;
}

.dot.active {
    opacity: 1;
    background: #00bfff;
}

.video-play-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    pointer-events: auto;
}




/* Contact section */
.contact {
    padding: 100px 20px;
    min-height: 100vh;
    max-width: 1200px;
    margin: 0 auto;
}


.contact-form {
    max-width: 800px;
    margin: 50px auto 0 auto;
    display: flex;
    flex-direction: column;
    gap: 18px;
    background: #000000;
    padding: 32px 24px;
    border-radius: 12px;
    box-shadow: 0 2px 16px rgba(0,0,0,0.08);
}
.form-group label {
    color: #fff;
    font-weight: 500;
    margin-bottom: 6px;
    display: block;
}
.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 10px 12px;
    border-radius: 6px;
    border: 0px solid #333;
    background: #222;
    color: #fff;
    font-size: 1rem;
    margin-top: 4px;
    resize: vertical;
}
.contact-form input:focus,
.contact-form textarea:focus {
    outline: 1px solid #474747;
    border-color: #aeebff;
}
.contact-btn {
    background: #858585;
    color: #000000;
    border: none;
    border-radius: 6px;
    padding: 12px 0;
    font-size: 1.1rem;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.2s;
}
.contact-btn:hover {
    background: #a3c91c;
    color: #000000;
}



.social-media {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 150px;
    margin-top: 50px;
    margin-bottom: 24px;
}


.socialmedia a img {
    width: 120px;
    height: auto;
    object-fit: contain;
    display: inline-block;
}


.social-media img {
    width: 60px;
    height: auto;
    transition: transform 0.3s cubic-bezier(.4,1.5,.5,1); /* transição suave */

}

.social-media a:hover img {
    transform: translateY(-6px); /* sobe suavemente ao passar o mouse */

}




/* --- RESPONSIVO PARA MOBILE E TABLET --- */
@media (max-width: 1024px) {
    .works-container {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
        row-gap: 6vh;
        justify-items: center;
    }
    .work-card {
        height: 300px;
    }
    .resume-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    .slides-hero,
    .slides-container,
    .slide {
        height: 60vh;
        min-height: 60vh;
        max-height: 60vh;
    }
}

@media (max-width: 700px) {
    .works-container {
        grid-template-columns: 1fr;
        gap: 12px;
        row-gap: 4vh;
    }
    .work-card {
        height: 260px;
    }
    .hero h1 {
        font-size: 2.2rem;
    }
    .hero-content {
        padding: 0 10px;
    }
    .resume-grid {
        grid-template-columns: 1fr;
        gap: 18px;
        margin-top: 2rem;
    }
    .resume-section {
        margin-bottom: 2.5rem;
    }
    .contact-form {
        max-width: 98vw;
        padding: 18px 6px;
    }
    .slides-hero,
    .slides-container,
    .slide {
        height: 38vh;
        min-height: 38vh;
        max-height: 38vh;
    }
    .slide-arrow {
        font-size: 1.5rem;
        padding: 0 8px;
    }
    .slide-dots {
        bottom: 10px;
        gap: 6px;
    }
    .dot {
        width: 10px;
        height: 10px;
    }
    .social-media {
        gap: 30px;
        margin-top: 18px;
        margin-bottom: 12px;
    }
    .social-media img {
        width: 36px;
    }
    #scrollTopBtn {
        right: 18px;
        bottom: 18px;
        width: 40px;
        height: 40px;
        font-size: 1.3rem;
    }
}
