/* Definições Globais e Paleta de Cores */
:root {
    --cor-fundo: #000000;
    --cor-fundo-claro: #0d0d0d;
    --cor-texto: #e0e0e0;
    --cor-titulo: #ffffff;
    --cor-referencia: #cd4a38; 
    --fonte-principal: 'Poppins', sans-serif;
    --fonte-destaque: 'Playfair Display', serif;
}

html { 
    scroll-behavior: smooth; 
}

body {
    background-color: var(--cor-fundo);
    color: var(--cor-texto);
    font-family: var(--fonte-principal);
    margin: 0;
    position: relative;
    /* Resetando background para usar pseudo-elemento com desfoque */
    background-image: none;
}

body::before {
    content: '';
    position: fixed;
    /* Margens negativas para esconder as bordas brancas do efeito de desfoque */
    top: -10px;
    left: -10px;
    width: calc(100% + 20px);
    height: calc(100% + 20px);
    background-image: linear-gradient(rgba(0, 0, 0, 0.94), rgba(0, 0, 0, 0.94)), url('assets/site-bg.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    filter: blur(8px); /* Adicionando o desfoque solicitado */
    z-index: -1;
    pointer-events: none;
}

/* --- NAVEGAÇÃO / CABEÇALHO --- */
nav {
    position: fixed;
    background-color: rgba(18, 18, 18, 0.5);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    top: 0;
    left: 0;
    width: 100%;
    padding: 10px 50px;
    box-sizing: border-box; 
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 100;
}
.logo img { height: 40px; width: auto; display: block; }
nav ul { margin: 0; padding: 0; display: flex; list-style: none; gap: 40px; }
nav ul li a { color: var(--cor-texto); text-decoration: none; font-size: 1rem; font-weight: 500; transition: color 0.3s ease; }
nav ul li a:hover { color: var(--cor-referencia); }
.cta-button { 
    color: var(--cor-titulo); 
    text-decoration: none; 
    border: 2px solid var(--cor-referencia); 
    padding: 10px 20px; 
    border-radius: 5px; 
    font-weight: 700; 
    transition: background-color 0.3s ease, color 0.3s ease; 
}
.cta-button:hover { background-color: var(--cor-referencia); color: var(--cor-fundo); }

/* --- HERO SECTION --- */
.hero {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center; /* CENTRALIZADO */
    padding: 0 100px;
    box-sizing: border-box;
    overflow: hidden;
}
.hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* Gradiente multi-stop para um desvanecimento mais suave e natural */
    background: linear-gradient(
        to bottom,
        rgba(0, 0, 0, 0.2) 0%,
        rgba(0, 0, 0, 0.4) 50%,
        rgba(0, 0, 0, 0.7) 80%,
        rgba(0, 0, 0, 1) 100%
    );
    z-index: 1; 
}
.video-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0; 
}
.video-background video { 
    width: 100%; 
    height: 100%; 
    object-fit: cover;
}
.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 800px;
}
.pre-title {
    font-size: 0.9rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--cor-referencia);
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.pre-title::before, .pre-title::after { 
    content: '';
    display: block;
    width: 40px;
    height: 2px;
    background-color: var(--cor-referencia);
}
.pre-title::before { margin-right: 15px; }
.pre-title::after { margin-left: 15px; }

.hero-content h1 {
    font-family: var(--fonte-destaque);
    font-size: 5rem;
    text-transform: uppercase;
    margin: 0;
    line-height: 1.1;
    color: var(--cor-titulo);
    white-space: nowrap;
}
.social-icons {
    margin: 25px 0;
}
.social-icons a {
    color: var(--cor-texto);
    font-size: 1.2rem;
    margin-right: 20px;
    text-decoration: none;
    transition: color 0.3s ease;
}
.social-icons a:hover {
    color: var(--cor-referencia);
}
.description {
    font-size: 1rem;
    line-height: 1.7;
    max-width: 600px;
    margin: 0 auto 30px auto;
    color: var(--cor-texto);
}
.portfolio-button {
    color: var(--cor-titulo);
    text-decoration: none;
    border: 2px solid var(--cor-referencia);
    padding: 12px 25px;
    font-weight: 700;
    transition: background-color 0.3s ease, color 0.3s ease;
}
.portfolio-button:hover {
    background-color: var(--cor-referencia);
    color: var(--cor-fundo);
}

/* --- SEÇÃO PORTFÓLIO --- */
main {
    text-align: center;
}
#portfolio {
    padding: 80px 0;
    text-align: center;
    background-color: transparent;
}
.portfolio-header {
    max-width: 600px;
    margin: 0 auto 50px auto;
}
.portfolio-header h2 {
    font-size: 2.5rem;
    text-transform: uppercase;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--cor-titulo);
}
.portfolio-header p {
    font-size: 1.1rem;
    color: var(--cor-texto);
}
.category-filters {
    width: 100%;
    overflow: hidden;
    margin: 0 auto 50px auto;
    padding: 10px 0;
    position: relative;
    /* Sombras laterais para o efeito de "fade" */
}
.category-filters::before,
.category-filters::after {
    content: "";
    height: 100%;
    position: absolute;
    top: 0;
    width: 100px;
    z-index: 2;
    pointer-events: none;
}
.category-filters::before {
    left: 0;
    background: linear-gradient(to right, rgba(0,0,0,1), rgba(0,0,0,0));
}
.category-filters::after {
    right: 0;
    background: linear-gradient(to left, rgba(0,0,0,1), rgba(0,0,0,0));
}

.scroller-content {
    display: flex;
    width: max-content;
    gap: 20px;
    flex-wrap: nowrap;
    animation: scroll 60s linear infinite;
    padding: 0 20px;
}

.scroller-content:hover {
    animation-play-state: paused;
}

@keyframes scroll {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
}

.scroller-reverse {
    animation-direction: reverse; /* Inverte a direção da animação */
}

@keyframes scroll-reverse {
    from { transform: translateX(-50%); }
    to { transform: translateX(0); }
}
.filter-btn {
    flex-shrink: 0;
    position: relative;
    width: 200px;
    height: 120px;
    border-radius: 12px;
    border: 3px solid transparent;
    background-size: cover;
    background-position: center;
    cursor: pointer;
    overflow: hidden;
    transition: transform 0.3s ease, border-color 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}
.filter-btn:hover {
    transform: scale(1.05);
}
.filter-btn.active {
    border-color: var(--cor-referencia);
}
.filter-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.5);
    transition: background 0.3s ease;
    z-index: 1;
}
.filter-btn:hover::before, .filter-btn.active::before {
    background: rgba(0,0,0,0.3);
}
.filter-btn span {
    position: relative;
    z-index: 2;
    color: var(--cor-titulo);
    font-family: var(--fonte-principal);
    font-size: 1.2rem;
    font-weight: 700;
    pointer-events: none;
}
.portfolio-grid {
    display: none; /* ALTERAÇÃO AQUI: Começa oculto */
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); 
    gap: 30px;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 50px;
    transition: opacity 0.4s ease-in-out;
}

.portfolio-item {
    position: relative;
    display: block;
    text-decoration: none;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 20px rgba(0,0,0,0.4);
    height: 200px; 
    background-color: #000;
    cursor: pointer;
    transition: transform 0.4s ease; /* Transição apenas para o hover */
}

.portfolio-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}
.portfolio-item:hover img {
    transform: scale(1.1);
}

/* --- SEÇÃO SOBRE MIM --- */
#sobre {
    padding: 100px 50px;
    background-color: transparent;
}
.about-container {
    display: flex;
    align-items: center;
    gap: 60px;
    max-width: 1200px;
    margin: 0 auto;
}
.about-photo {
    flex-basis: 40%;
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 15px 30px rgba(0,0,0,0.5);
}
.about-photo img {
    width: 100%;
    display: block;
    transition: transform 0.4s ease;
}
.photo-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.6);
    color: white;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.4s ease;
}
.about-photo:hover .photo-overlay {
    opacity: 1;
}
.about-photo:hover img {
    transform: scale(1.1);
}
.photo-overlay i {
    font-size: 3rem;
}
.photo-overlay p {
    margin-top: 10px;
    font-size: 1.1rem;
    font-weight: 700;
}
.about-text {
    flex-basis: 60%;
    text-align: left;
}
.about-text h2 {
    font-size: 3rem;
    font-weight: 700;
    margin-top: 0;
    margin-bottom: 20px;
    text-align: left;
    color: var(--cor-titulo);
}
.about-text p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--cor-texto);
    margin-bottom: 20px; 
}
.equipment-list h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--cor-referencia);
    margin-top: 30px;
    margin-bottom: 15px;
}
.equipment-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 15px;
}
.equipment-card {
    background-color: var(--cor-fundo-claro);
    padding: 15px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 5px 10px rgba(0,0,0,0.3);
    transition: transform 0.3s ease, background-color 0.4s ease;
}
.equipment-card:hover {
    transform: translateY(-5px) scale(1.05);
    background-color: var(--cor-referencia);
}
.equipment-card i {
    font-size: 1.5rem;
    color: var(--cor-referencia);
    margin-bottom: 10px;
    transition: color 0.4s ease;
}
.equipment-card p, .equipment-card span {
    transition: color 0.4s ease;
}
.equipment-card:hover i,
.equipment-card:hover p,
.equipment-card:hover span {
    color: var(--cor-titulo);
}
.equipment-card p {
    font-size: 0.9rem;
    line-height: 1.3;
    margin: 0;
    color: var(--cor-texto);
}
.equipment-card span {
    display: block;
    font-weight: 700;
    color: var(--cor-titulo);
    font-size: 1rem;
}

/* --- SEÇÃO PROCESSO --- */
#processo {
    padding: 100px 50px;
    background-color: transparent;
    text-align: center;
}
.process-container {
    max-width: 1200px;
    margin: 0 auto;
}
#processo h2 {
    font-size: 2.5rem;
    text-transform: uppercase;
    font-weight: 700;
    margin-bottom: 60px;
    color: var(--cor-titulo);
}
.process-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
}
.step-card {
    position: relative;
    background-color: var(--cor-fundo-claro);
    padding: 40px 30px;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 10px 20px rgba(0,0,0,0.3);
    transition: transform 0.3s ease, background-color 0.4s ease;
}
.step-card:hover {
    transform: translateY(-10px) scale(1.05);
    background-color: var(--cor-referencia);
}
.step-number {
    position: absolute;
    top: -20px;
    left: 50%;
    transform: translateX(-50%);
    background-color: var(--cor-referencia);
    color: var(--cor-titulo);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    font-weight: 700;
    border: 3px solid var(--cor-fundo-claro);
    transition: background-color 0.4s ease, color 0.4s ease;
}
.step-card:hover .step-number {
    background-color: var(--cor-titulo);
    color: var(--cor-fundo);
}
.step-icon {
    font-size: 2.5rem;
    color: var(--cor-referencia);
    margin-bottom: 20px;
    transition: color 0.4s ease;
}
.step-card h3, .step-card p {
    transition: color 0.4s ease;
}
.step-card:hover .step-icon,
.step-card:hover h3,
.step-card:hover p {
    color: var(--cor-titulo);
}
.step-card h3 {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--cor-titulo);
    margin-bottom: 15px;
}
.step-card p {
    font-size: 1rem;
    line-height: 1.7;
    color: var(--cor-texto);
    margin: 0;
}

/* --- SEÇÃO FAQ --- */
#faq {
    padding: 100px 50px;
    background-color: transparent;
    text-align: center;
}
.faq-container {
    max-width: 900px;
    margin: 0 auto;
}
#faq h2 {
    font-size: 2.5rem;
    text-transform: uppercase;
    font-weight: 700;
    margin-bottom: 50px;
    color: var(--cor-titulo);
}
.accordion {
    text-align: left;
}
.accordion details {
    background-color: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(5px);
    border-radius: 12px;
    margin-bottom: 15px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    overflow: hidden;
    transition: background-color 0.3s ease, border-color 0.3s ease;
}
.accordion details:hover {
    background-color: rgba(255, 255, 255, 0.05);
    border-color: var(--cor-referencia);
}
.accordion summary {
    font-size: 1.2rem;
    font-weight: 700;
    padding: 20px;
    cursor: pointer;
    position: relative;
    outline: none;
    list-style: none;
    color: var(--cor-titulo);
    transition: color 0.3s ease;
}
.accordion summary::-webkit-details-marker {
    display: none;
}
.accordion summary::after {
    content: '+';
    position: absolute;
    right: 25px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.5rem;
    color: var(--cor-referencia);
    transition: transform 0.4s ease;
}
.accordion details[open] summary::after {
    transform: translateY(-50%) rotate(45deg); /* Transição suave do botão */
    color: var(--cor-titulo);
}

/* --- ANIMAÇÃO DE ABERTURA --- */
.faq-content {
    display: grid;
    grid-template-rows: 0fr;
    transition: grid-template-rows 0.4s ease-out, padding 0.4s ease-out;
    padding: 0 20px;
}

details[open] .faq-content {
    grid-template-rows: 1fr;
    padding-bottom: 20px;
}

.faq-content p {
    overflow: hidden;
    margin: 0;
    font-size: 1rem;
    line-height: 1.7;
    color: var(--cor-texto);
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.4s ease-out 0.1s, transform 0.4s ease-out 0.1s;
}

details[open] .faq-content p {
    opacity: 1;
    transform: translateY(0);
}

/* --- SEÇÃO DE SERVIÇOS --- */
#servicos {
    padding: 100px 50px;
    background-color: transparent;
    text-align: center;
}
.services-container {
    max-width: 1200px;
    margin: 0 auto;
}
#servicos h2 {
    font-size: 2.5rem;
    text-transform: uppercase;
    font-weight: 700;
    margin-bottom: 50px;
    color: var(--cor-titulo);
}
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
}
.service-card {
    background-color: var(--cor-fundo-claro);
    padding: 30px;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 10px 20px rgba(0,0,0,0.3);
    transition: transform 0.3s ease, background-color 0.4s ease;
}
.service-card:hover {
    transform: translateY(-10px);
    background-color: var(--cor-referencia);
}
.service-card i {
    font-size: 2.5rem;
    color: var(--cor-referencia);
    margin-bottom: 20px;
    transition: color 0.4s ease;
}
.service-card h3, .service-card p {
    transition: color 0.4s ease;
}
.service-card:hover i,
.service-card:hover h3,
.service-card:hover p {
    color: var(--cor-titulo);
}
.service-card h3 {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--cor-titulo);
    margin-bottom: 10px;
}
.service-card p {
    font-size: 1rem;
    line-height: 1.7;
    color: var(--cor-texto);
    margin: 0;
}

/* --- RODAPÉ / SEÇÃO DE CONTATO --- */
footer { 
    padding: 100px 50px; 
    background-color: #000; 
    text-align: center;
}
.contact-container {
    max-width: 800px;
    margin: 0 auto 80px auto;
}
.contact-container h2 {
    font-family: var(--fonte-destaque);
    font-size: 3rem;
    margin-top: 0;
    margin-bottom: 15px;
    color: var(--cor-titulo);
}
.contact-container p {
    font-size: 1.1rem;
    line-height: 1.7;
    margin-bottom: 40px;
}
.contact-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}
.contact-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.1rem;
    border: none;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.contact-btn:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 10px 20px rgba(0,0,0,0.4);
}
.whatsapp-btn { background-color: #25D366; color: white; }
.email-btn { background-color: #333; color: white; }

#servicos-detalhados {
    padding: 0 50px;
}
.detailed-services-container {
    display: flex;
    justify-content: space-between;
    max-width: 1200px;
    margin: 0 auto;
    flex-wrap: wrap;
    gap: 40px;
    background-color: var(--cor-fundo-claro);
    padding: 40px;
    border-radius: 15px;
}
.company-info { flex-basis: 40%; text-align: left; }
.company-info h3 { font-size: 2rem; color: var(--cor-titulo); margin-bottom: 10px; }
.company-info p { font-size: 1rem; line-height: 1.7; }
.services-list { flex-basis: 55%; text-align: left; }
.services-list h4 { font-size: 1.5rem; color: var(--cor-titulo); margin-bottom: 20px; }
.services-list ul { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 15px; }
.services-list li { position: relative; padding-left: 25px; }
.services-list li::before { content: '✓'; color: var(--cor-referencia); position: absolute; left: 0; }

/* --- MODAL (Pop-up para Vídeo) --- */
.modal { display: none; position: fixed; z-index: 1000; left: 0; top: 0; width: 100%; height: 100%; background-color: rgba(0,0,0,0.9); justify-content: center; align-items: center; }
.modal-content { position: relative; background-color: var(--cor-fundo-claro); padding: 20px; border-radius: 10px; max-width: 90%; width: 800px; box-shadow: 0 10px 20px rgba(0,0,0,0.8); }
.close-btn { color: var(--cor-titulo); float: right; font-size: 30px; font-weight: bold; cursor: pointer; position: absolute; top: 5px; right: 15px; z-index: 1010; transition: color 0.2s; }
.close-btn:hover, .close-btn:focus { color: var(--cor-referencia); }
.video-container { position: relative; padding-bottom: 56.25%; height: 0; overflow: hidden; margin-top: 20px; }
.video-container iframe { position: absolute; top: 0; left: 0; width: 100%; height: 100%; }

/* --- RESPONSIVIDADE (Ajustes para Mobile e Tablet) --- */

/* Ajuste para telas menores que 992px (tablets e celulares) */
@media (max-width: 992px) {
    /* Ajustes Gerais */
    nav {
        padding: 10px 20px;
    }
    nav ul {
        display: none; /* Oculta o menu principal no mobile, idealmente substituído por um menu hambúrguer */
    }
    .hero {
        padding: 0 20px;
    }
    .hero-content h1 {
        font-size: 3rem; /* Reduz o tamanho do título principal */
        white-space: normal;
    }
    
    /* Correção da seção SOBRE MIM */
    #sobre {
        padding: 50px 20px; /* Reduz o padding da seção */
    }
    .about-container {
        flex-direction: column; /* Altera o layout de duas colunas para uma coluna */
        gap: 40px;
        text-align: center;
    }
    .about-photo,
    .about-text {
        flex-basis: 100%; /* Ocupa a largura total */
    }
    .about-photo {
        max-width: 300px; /* Limita o tamanho da imagem */
        margin: 0 auto; /* Centraliza a imagem */
    }
    .about-text h2 {
        text-align: center; /* Centraliza o título do texto */
        font-size: 2.5rem;
    }
    .about-text p {
        text-align: justify; /* Melhora a leitura do parágrafo */
    }
    
    /* Ajuste na lista de equipamentos */
    .equipment-list h3 {
        text-align: center;
        font-size: 1.3rem;
    }

    /* Correção na grade de equipamentos para telas menores */
    .equipment-grid {
        grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); /* Adapta a grade de equipamentos */
    }
}

/* Ajuste adicional para telas menores que 768px (smartphones) */
@media (max-width: 768px) {
    .hero-content h1 {
        font-size: 2.5rem;
    }
    
    /* Ajuste para botões de filtro na seção Portfólio */
    .scroller-content {
        flex-wrap: nowrap; /* Mantém os botões na mesma linha para que o scroller funcione */
        overflow-x: auto; /* Permite a rolagem horizontal */
        justify-content: flex-start;
    }

    /* Ajuste na seção Contato */
    .contact-container h2 {
        font-size: 2rem;
    }
    .detailed-services-container {
        flex-direction: column;
    }
    .company-info, .services-list {
        flex-basis: 100%;
        text-align: center;
    }
    .services-list ul {
        grid-template-columns: 1fr;
        padding-left: 20px; /* Adiciona padding para os itens da lista */
    }
    .services-list h4 {
        text-align: center;
    }
    .services-list li {
        text-align: left;
    }
}

/* Ajuste para telas menores que 480px (smartphones menores) */
@media (max-width: 480px) {
    .hero-content h1 {
        font-size: 2rem;
    }
    .portfolio-grid {
        padding: 0 20px;
        gap: 20px;
    }
    /* Ajuste a largura do item para ocupar quase toda a tela em grade de 1 coluna (implícito pelo auto-fit) */
    .portfolio-item {
        height: 180px;
    }
    .contact-container h2 {
        font-size: 1.5rem;
    }
    .contact-btn {
        width: 100%;
    }
    /* NOVO: Ajuste para os nomes dos equipamentos */
    .equipment-card p {
        font-size: 0.8rem; /* Reduz o tamanho da fonte do texto "Pós-Edição:" */
    }
    .equipment-card span {
        font-size: 0.85rem; /* Reduz o tamanho da fonte do nome do equipamento, e.g., "Adobe After Effects" */
        line-height: 1.2; /* Ajusta a altura da linha para que as palavras fiquem mais próximas */
    }
}
