/* Configurações Globais e Variáveis */
:root {
    --primary-color: #e53935; /* Vermelho Fear */
    --secondary-color: #505050; /* Preto Fear (mais suave) */
    --text-color-light: #ffffff; /* Branco */
    --text-color-dark: #333333; /* Cinza Escuro */
    --background-dark: #000000; /* Preto Total */
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    background-color: #ffffff; /* Cor de fundo unificada para branco puro */
    color: var(--text-color-dark);
    /* Solução Sticky Footer */
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

main {
    flex-grow: 1;
}

.container {
    max-width: 1100px;
    margin: auto;
    padding: 0 20px;
    overflow: hidden;
}

/* Header (Cabeçalho) */
header {
    background: var(--background-dark);
    color: var(--text-color-light);
    padding: 1rem 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

header .logo {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary-color);
    text-decoration: none;
    letter-spacing: 1px;
}

header nav ul {
    list-style: none;
    display: flex;
}

header nav ul li {
    margin-left: 20px;
}

header nav a {
    color: var(--text-color-light);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

header nav a:hover {
    color: var(--primary-color);
}

/* Seções Padrão */
section {
    padding: 80px 0;
}

h1, h2, h3 {
    margin-bottom: 20px;
    font-weight: 700;
    color: var(--primary-color);
}

h2 {
    font-size: 2.5rem;
    text-align: center;
}

/* Seção Hero (Página Inicial) */
.hero {
    background: linear-gradient(rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0.8)), url('../Source/capa_story_fear.jpg') no-repeat center center/cover;
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: var(--text-color-light);
    padding-top: 60px; /* Para não ficar atrás do header fixo */
}

.hero-content h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 10px;
    animation: fadeInDown 1s ease;
}

.hero-content p {
    font-size: 1.2rem;
    animation: fadeInUp 1s ease 0.5s;
}

/* Seção "Chamada para Ação" (CTA) */
.cta {
    background: #f9f9f9;
    text-align: center;
    padding: 80px 0;
}

.cta .container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.cta h2 {
    color: var(--secondary-color);
}

.btn {
    display: inline-block;
    padding: 12px 25px;
    background: var(--primary-color);
    color: var(--text-color-light);
    text-decoration: none;
    border-radius: 5px;
    margin-top: 20px;
    transition: background 0.3s ease;
    border: none;
    cursor: pointer;
}

.btn:hover {
    background: #c62828;
}

.btn-primary {
    background: var(--primary-color);
}

.btn-primary:hover {
    background: #c62828;
}

/* Seção "Sobre Nós" */
.about {
    background: #f9f9f9;
    padding: 80px 0;
    text-align: center;
}

.about h2 {
    color: var(--secondary-color);
}

/* Seção de Serviços */
.services {
    background: #f9f9f9;
    text-align: center;
    padding: 80px 0;
}

.services h2 {
    color: var(--secondary-color);
}

.service-list {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 30px;
    margin-top: 40px;
    margin-bottom: 40px; /* Adicionado para garantir espaço inferior */
}

.service-item {
    background: #ffffff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    width: 250px;
    transition: transform 0.3s ease;
}

.service-item:hover {
    transform: translateY(-10px);
}

.service-item h3 {
    color: var(--primary-color);
}

/* Portfólio - Destaques */
.portfolio-page {
    padding-top: 120px;
    background: #ffffff;
}

.portfolio-page h2 {
    color: var(--secondary-color);
}

.portfolio-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 40px;
}

.portfolio-item {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.portfolio-item img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.5s ease;
}

.portfolio-item:hover img {
    transform: scale(1.1);
}

.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    color: var(--text-color-light);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.portfolio-item:hover .overlay {
    opacity: 1;
}

/* Seção: Vídeos Curtos */
.short-videos-gallery {
    background: #f9f9f9;
    text-align: center;
    padding: 80px 0;
}

.short-videos-gallery h2 {
    color: var(--secondary-color);
}

.short-videos {
    /* Layout para vídeos curtos com 4 colunas */
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
}

.short-video-item {
    padding-bottom: 177.77%; /* Força o aspecto vertical de 9:16 */
    position: relative;
}

.short-video-item img {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 100%;
    object-fit: cover;
}

.short-video-item .overlay {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 100%;
}

/* Nova Seção: Mural de Clientes */
.client-mural {
    background: #ffffff;
    text-align: center;
    padding: 80px 0;
}

.client-mural h2 {
    color: var(--secondary-color);
}

.mural-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
    margin-top: 40px;
}

.mural-item {
    padding: 10px 20px;
    background: #f0f0f0;
    border-radius: 50px;
    transition: all 0.3s ease;
    /* Alinha a imagem e o nome */
    display: flex;
    align-items: center;
}

.mural-item:hover {
    background: var(--primary-color);
    color: var(--text-color-light);
    transform: translateY(-5px);
}

/* Estilo para a foto do cliente */
.client-photo {
    width: 30px; /* Tamanho pequeno para a foto */
    height: 30px;
    border-radius: 50%; /* Transforma a imagem em um círculo */
    object-fit: cover;
    margin-right: 10px; /* Espaço entre a foto e o nome */
}

.mural-item .client-name {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-color-dark);
}

.mural-item:hover .client-name {
    color: var(--text-color-light);
}

/* Seção de Depoimentos */
.client-testimonials {
    background: #f9f9f9;
    text-align: center;
    padding: 80px 0;
}

.client-testimonials h2 {
    color: var(--secondary-color);
    margin-bottom: 50px;
}

.testimonials-list {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 30px;
    margin-bottom: 40px; /* Adicionado para garantir espaço inferior */
}

.testimonial-item {
    background: #ffffff;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    max-width: 450px;
    text-align: left;
    transition: transform 0.3s ease;
}

.testimonial-item:hover {
    transform: translateY(-10px);
}

/* Nova regra para o cabeçalho do depoimento (foto + nome/avaliação) */
.testimonial-header {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}

.testimonial-photo {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    margin-right: 20px;
}

.rating-info {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.testimonial-item .quote {
    font-size: 1.1rem;
    font-style: italic;
    margin-bottom: 15px;
    color: var(--text-color-dark);
}

.testimonial-item .author {
    font-weight: 600;
    color: var(--primary-color);
    margin: 0;
}

/* Estilos para a avaliação em estrelas */
.star-rating {
    display: block;
    font-size: 1.5rem;
    line-height: 1;
    color: #ccc;
    margin-top: 5px;
}

.star-rating .star {
    margin-right: 2px;
}

.star-rating .star.filled {
    color: #ffc107; /* Cor amarela para estrelas preenchidas */
}


/* Seção de Parceiros (Logos) */
.partner-logos {
    text-align: center;
    padding: 80px 0;
    background: #ffffff;
}

.partner-logos h2 {
    color: var(--secondary-color);
    margin-bottom: 40px;
}

.logos-list {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 40px;
    align-items: center;
}

.logos-list img {
    height: 50px; /* Altura padrão para os logos */
    filter: grayscale(100%);
    opacity: 0.6;
    transition: all 0.3s ease;
}

.logos-list img:hover {
    filter: grayscale(0%);
    opacity: 1;
}

/* Equipe */
.team {
    text-align: center;
    padding-top: 120px;
    background: #ffffff; /* Fundo unificado */
}

.team h2 {
    color: var(--secondary-color);
}

.team-members {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 30px;
    margin-top: 40px;
    margin-bottom: 40px; /* Adicionado para garantir espaço inferior */
}

.member {
    background: #f9f9f9; /* Mantém o fundo levemente acinzentado para o cartão do membro */
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    text-align: center;
    width: 250px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    height: auto;
    min-height: 400px;
    padding-bottom: 25px;
}

.member img {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 15px;
}

.member h3 {
    color: var(--background-dark);
    font-size: 1.5rem;
    margin-bottom: 10px;
}

/* Estilos para os Badges (Apelido e Cargo) */
.member-badges {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 15px;
    gap: 8px;
}

.badge {
    padding: 5px 10px;
    border-radius: 5px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    color: var(--text-color-light);
}

.badge-nickname {
    background-color: var(--secondary-color);
}

.badge-role {
    background-color: var(--primary-color);
}

/* Estilo para a biografia */
.member-bio {
    font-size: 0.95rem;
    color: var(--text-color-dark);
    margin-bottom: 20px;
    flex-grow: 1;
    text-align: justify;
    max-width: 200px;
    align-self: center;
}

.member a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    margin-top: auto;
    display: block;
    transition: color 0.3s ease;
}

.member a:hover {
    color: var(--secondary-color);
}

/* Contato */
.contact-page {
    text-align: center;
    padding-top: 120px;
    background: #ffffff;
}

.contact-methods {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 40px;
    margin-top: 50px;
}

.contact-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 200px;
    text-align: center;
}

.contact-icon {
    width: 60px;
    height: 60px;
    margin-bottom: 15px;
    transition: transform 0.3s ease;
}

.contact-item:hover .contact-icon {
    transform: scale(1.1);
}

.contact-item h3 {
    font-size: 1.2rem;
    color: var(--primary-color);
    margin-bottom: 5px;
}

.contact-item p, .contact-item a {
    font-size: 1rem;
    color: var(--text-color-dark);
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-item a:hover {
    color: var(--primary-color);
}

/* Seção de FAQ */
.faq-section {
    padding-top: 50px;
    padding-bottom: 80px;
    background: #ffffff;
    max-width: 800px;
}

.faq-section h2 {
    margin-bottom: 40px;
    color: var(--secondary-color);
}

.faq-item {
    margin-bottom: 30px;
    padding: 20px;
    background: #f9f9f9;
    border-radius: 8px;
}

.faq-item h3 {
    color: var(--primary-color);
    font-size: 1.2rem;
    margin-bottom: 10px;
}

.faq-item p {
    color: var(--text-color-dark);
}

/* Modificações para a Seção da Equipe (Team) */
.team {
    text-align: center;
    padding-top: 120px;
    background: #ffffff; /* Fundo unificado */
}

.team h2 {
    color: var(--secondary-color);
}

.team-members {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 30px;
    margin-top: 40px;
    margin-bottom: 40px; /* Adicionado para garantir espaço inferior */
}

.member {
    background: #f9f9f9; /* Mantém o fundo levemente acinzentado para o cartão do membro */
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    text-align: center;
    width: 250px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    height: auto;
    min-height: 400px;
    padding-bottom: 25px;
}

.member img {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 15px;
}

.member h3 {
    color: var(--background-dark);
    font-size: 1.5rem;
    margin-bottom: 10px;
}

/* Estilos para os Badges (Apelido e Cargo) */
.member-badges {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 15px;
    gap: 8px;
}

.badge {
    padding: 5px 10px;
    border-radius: 5px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    color: var(--text-color-light);
}

.badge-nickname {
    background-color: var(--secondary-color);
}

.badge-role {
    background-color: var(--primary-color);
}

/* Estilo para a biografia */
.member-bio {
    font-size: 0.95rem;
    color: var(--text-color-dark);
    margin-bottom: 20px;
    flex-grow: 1;
    text-align: justify;
    max-width: 200px;
    align-self: center;
}

.member a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    margin-top: auto;
    display: block;
    transition: color 0.3s ease;
}

.member a:hover {
    color: var(--secondary-color);
}

/* Contato */
.contact-page {
    text-align: center;
    padding-top: 120px;
    background: #ffffff;
}

.contact-methods {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 40px;
    margin-top: 50px;
}

.contact-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 200px;
    text-align: center;
}

.contact-icon {
    width: 60px;
    height: 60px;
    margin-bottom: 15px;
    transition: transform 0.3s ease;
}

.contact-item:hover .contact-icon {
    transform: scale(1.1);
}

.contact-item h3 {
    font-size: 1.2rem;
    color: var(--primary-color);
    margin-bottom: 5px;
}

.contact-item p, .contact-item a {
    font-size: 1rem;
    color: var(--text-color-dark);
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-item a:hover {
    color: var(--primary-color);
}

/* Seção de FAQ */
.faq-section {
    padding-top: 50px;
    padding-bottom: 80px;
    background: #ffffff;
    max-width: 800px;
}

.faq-section h2 {
    margin-bottom: 40px;
    color: var(--secondary-color);
}

.faq-item {
    margin-bottom: 30px;
    padding: 20px;
    background: #f9f9f9;
    border-radius: 8px;
}

.faq-item h3 {
    color: var(--primary-color);
    font-size: 1.2rem;
    margin-bottom: 10px;
}

.faq-item p {
    color: var(--text-color-dark);
}

/* Modificações para a Seção da Equipe (Team) */
.team {
    text-align: center;
    padding-top: 120px;
    background: #ffffff; /* Fundo unificado */
}

.team h2 {
    color: var(--secondary-color);
}

.team-members {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 30px;
    margin-top: 40px;
    margin-bottom: 40px; /* Adicionado para garantir espaço inferior */
}

.member {
    background: #f9f9f9; /* Mantém o fundo levemente acinzentado para o cartão do membro */
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    text-align: center;
    width: 250px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    height: auto;
    min-height: 400px;
    padding-bottom: 25px;
}

.member img {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 15px;
}

.member h3 {
    color: var(--background-dark);
    font-size: 1.5rem;
    margin-bottom: 10px;
}

/* Estilos para os Badges (Apelido e Cargo) */
.member-badges {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 15px;
    gap: 8px;
}

.badge {
    padding: 5px 10px;
    border-radius: 5px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    color: var(--text-color-light);
}

.badge-nickname {
    background-color: var(--secondary-color);
}

.badge-role {
    background-color: var(--primary-color);
}

/* Estilo para a biografia */
.member-bio {
    font-size: 0.95rem;
    color: var(--text-color-dark);
    margin-bottom: 20px;
    flex-grow: 1;
    text-align: justify;
    max-width: 200px;
    align-self: center;
}

.member a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    margin-top: auto;
    display: block;
    transition: color 0.3s ease;
}

.member a:hover {
    color: var(--secondary-color);
}

/* Responsividade */
@media (max-width: 1200px) {
    .short-videos {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 900px) {
    .short-videos {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    header .container, footer .container {
        flex-direction: column;
        text-align: center;
    }
    header nav ul {
        margin-top: 15px;
        flex-direction: column;
    }
    header nav ul li {
        margin: 5px 0;
    }
    h1 {
        font-size: 2.5rem;
    }
    .hero-content p {
        font-size: 1rem;
    }
    .service-list, .team-members, .portfolio-gallery {
        grid-template-columns: 1fr;
    }
    .team-members .member {
        width: 100%;
    }
    .cta .btn {
        display: block;
        margin: 20px auto 0;
    }
    .contact-form {
        margin: 20px auto;
    }
    .short-videos {
        grid-template-columns: 1fr;
    }
}
/* Estilos para o alternador de idioma (Toggle Switch com Bandeiras) */
.language-switcher {
    display: flex;
    align-items: center;
    margin-left: 20px; /* Ajuste conforme necessário para o espaçamento */
}

.toggle-switch {
    width: 80px; /* Largura total do switch */
    height: 34px; /* Altura total do switch */
    background-color: #333; /* Fundo do switch */
    border-radius: 17px; /* Bordas arredondadas */
    position: relative;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 5px; /* Espaçamento para as bandeiras */
    box-shadow: inset 0 0 5px rgba(0, 0, 0, 0.2);
}

.flag {
    width: 24px; /* Tamanho da bandeira */
    height: 24px; /* Tamanho da bandeira */
    background-size: cover;
    background-position: center;
    border-radius: 50%; /* Para bandeiras circulares */
    position: relative;
    z-index: 1; /* Para garantir que as bandeiras fiquem por baixo do botão */
    opacity: 0.5; /* Bandeiras não ativas mais opacas */
    transition: opacity 0.3s ease;
}

.pt-flag {
    background-image: url('https://flagicons.lipis.dev/flags/4x3/br.svg'); /* Bandeira do Brasil para PT */
}

.en-flag {
    background-image: url('https://flagicons.lipis.dev/flags/4x3/us.svg'); /* Bandeira dos EUA para EN */
}

.switch-button {
    width: 30px; /* Tamanho do círculo do switch */
    height: 30px; /* Tamanho do círculo do switch */
    background-color: #fff; /* Cor do círculo */
    border-radius: 50%;
    position: absolute;
    top: 2px; /* Ajuste para centralizar verticalmente */
    left: 2px; /* Posição inicial (PT) */
    transition: transform 0.3s ease-in-out, background-color 0.3s ease;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    z-index: 2; /* Acima das bandeiras */
}

/* Estado Ativo (para a bandeira e o botão quando EN está selecionado) */
.toggle-switch.active .switch-button {
    transform: translateX(46px); /* Move o botão para a direita (80px - 30px - 2*2px = 46px) */
    background-color: #fff; /* Mantém branco, ou mude se quiser outra cor */
}

.toggle-switch.active .en-flag {
    opacity: 1; /* Bandeira EN totalmente visível */
}

.toggle-switch.active .pt-flag {
    opacity: 0.5; /* Bandeira PT mais opaca */
}

/* Estado Inicial (quando PT está selecionado) */
.toggle-switch:not(.active) .pt-flag {
    opacity: 1; /* Bandeira PT totalmente visível */
}

.toggle-switch:not(.active) .en-flag {
    opacity: 0.5; /* Bandeira EN mais opaca */
}