/* style.css - Identidade Pixel no Led (Versão Final Completa) */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@300;400;700;800&display=swap');

:root {
    color-scheme: dark;        /* Força inputs/selects escuros */
    --bg-color: #0a0a0a;       /* Preto quase absoluto */
    --text-color: #e0e0e0;     /* Branco suave */
    --accent-color: #ffffff;   /* Branco puro para destaques */
    --gray-dark: #1a1a1a;
}

/* [CORREÇÃO] Garante que o fundo do navegador seja preto, evitando barra branca no final */
html {
    background-color: var(--bg-color);
    height: 100%;
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: 'Montserrat', sans-serif;
    margin: 0;
    padding: 0;
    line-height: 1.6;
}

/* =========================================
   MENU / HEADER
   ========================================= */
header {
    padding: 20px 50px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: fixed;
    width: 100%;
    top: 0;
    background: rgba(10, 10, 10, 0.9);
    backdrop-filter: blur(5px);
    z-index: 1000;
    box-sizing: border-box;
    border-bottom: 1px solid #222;
}

.logo img {
    max-height: 40px;
    width: auto;
    display: block;
    transition: opacity 0.3s ease;
}

.logo:hover img { opacity: 0.8; }

nav a {
    color: var(--text-color);
    text-decoration: none;
    margin-left: 30px;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: color 0.3s;
}

nav a:hover {
    color: var(--accent-color);
    border-bottom: 1px solid var(--accent-color);
}

/* --- AJUSTE MOBILE DO MENU --- */
@media (max-width: 768px) {
    header {
        flex-direction: column;
        padding: 15px 20px;
        gap: 15px;
    }

    nav {
        display: flex;
        justify-content: center;
        flex-wrap: wrap;
        gap: 15px;
        width: 100%;
    }

    nav a {
        margin: 0;
        font-size: 0.8rem;
        padding: 5px;
    }
}

/* =========================================
   ESTRUTURA GERAL
   ========================================= */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 120px 20px 50px;
    min-height: 80vh;
}

/* =========================================
   HERO SECTION (BANNER HOME)
   ========================================= */
.hero {
    height: 100vh;
    width: 100%;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    overflow: hidden;
    margin-top: 0;
}

.overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(to bottom, rgba(0,0,0,0.3), rgba(0,0,0,0.8));
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 3;
    text-align: center;
    max-width: 900px;
    padding: 0 20px;
}

.hero-content h1 {
    font-size: 4rem;
    font-weight: 700;
    margin-bottom: 20px;
    letter-spacing: -2px;
    text-transform: uppercase;
    line-height: 1.1;
    text-shadow: 0 4px 30px rgba(0,0,0,0.5);
}

.hero-content p {
    font-size: 1.5rem;
    font-weight: 300;
    color: #cccccc;
    max-width: 600px;
    margin: 0 auto;
}

/* Seta Animada */
.scroll-down {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    color: #ffffff !important;
    text-decoration: none !important;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 3px;
    opacity: 0.7;
    transition: all 0.3s ease;
    z-index: 10;
    cursor: pointer;
}

.scroll-down:hover {
    opacity: 1;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.6);
    transform: translateX(-50%) translateY(-5px);
}

.scroll-down svg {
    margin-top: 10px;
    width: 24px;
    height: 24px;
    stroke: #ffffff;
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {transform: translateY(0);}
    40% {transform: translateY(-8px);}
    60% {transform: translateY(-4px);}
}

/* Animações Fade In */
.fade-in-up {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 1s forwards ease-out;
}
.delay-1 { animation-delay: 0.3s; }
.delay-2 { animation-delay: 0.8s; }

@keyframes fadeInUp {
    to { opacity: 1; transform: translateY(0); }
}

.scroll-down.fade-in-up { animation-name: fadeInUpCentered; }
@keyframes fadeInUpCentered {
    from { opacity: 0; transform: translate(-50%, 30px); }
    to { opacity: 1; transform: translate(-50%, 0); }
}

/* =========================================
   HOME: LISTA DE PROJETOS E FILTROS
   ========================================= */
.section-header {
    display: flex;
    align-items: center;
    margin-bottom: 40px;
    padding-left: 20px;
}

.section-header .line {
    width: 60px;
    height: 3px;
    background-color: var(--accent-color);
    margin-right: 20px;
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

.section-title {
    margin: 0;
    font-size: 2rem;
    font-weight: 700;
    border: none;
    padding: 0;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #fff;
}

/* Filtros */
.portfolio-filters {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 40px;
}

.filter-btn {
    background: transparent;
    border: 1px solid #333;
    color: #888;
    padding: 8px 20px;
    border-radius: 20px;
    cursor: pointer;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
}

.filter-btn:hover { border-color: #fff; color: #fff; }
.filter-btn.active { background: #fff; color: #000; border-color: #fff; font-weight: bold; }

/* Grid/Carrossel de Projetos (CORRIGIDO PARA TAMANHO IGUAL) */
.home-projects-slider .swiper-slide {
    height: auto; /* Permite que o Flexbox controle a altura */
    display: flex;
}

.project-card {
    background-color: #1a1a1a;
    transition: transform 0.3s ease;
    cursor: pointer;
    border-radius: 4px;
    overflow: hidden;
    /* Correções de altura */
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.card-link { text-decoration: none; color: inherit; display: block; flex-grow: 1; }
.project-card:hover { transform: translateY(-5px); box-shadow: 0 10px 20px rgba(0,0,0,0.5); }

.card-image { position: relative; height: 250px; overflow: hidden; }
.card-image img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.project-card:hover .card-image img { transform: scale(1.05); }

.card-info { 
    padding: 20px; 
    flex-grow: 1; 
    display: flex;
    flex-direction: column;
    justify-content: flex-end; /* Alinha conteúdo no fim se sobrar espaço */
}
.card-info h3 {
    margin: 0;
    font-size: 1.2rem;
    color: #fff;
    /* --- O SEGREDO DO ALINHAMENTO --- */
    line-height: 1.3;     /* Altura de cada linha de texto */
    height: 3.2rem;       /* Força altura fixa para caber exatamente 2 linhas */
    display: -webkit-box;
    -webkit-line-clamp: 2; /* Corta o texto se tiver mais de 2 linhas */
    -webkit-box-orient: vertical;
    overflow: hidden;
    /* -------------------------------- */
}
.client-name { color: #888; font-size: 0.9rem; margin-top: 5px; }

.card-category {
    position: absolute; bottom: 10px; left: 10px;
    background: rgba(255, 255, 255, 0.9);
    color: #000;
    padding: 5px 12px;
    font-size: 0.7rem; font-weight: 800;
    text-transform: uppercase; letter-spacing: 1px;
}

/* =========================================
   PÁGINA DE DETALHES DO PROJETO
   ========================================= */
.project-header {
    background: linear-gradient(to bottom, #141414 0%, #0a0a0a 100%);
    border-bottom: none;
    padding: 160px 0 60px;
    text-align: left;
}

.category-tag {
    display: inline-block;
    color: var(--accent-color);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 4px;
    margin-bottom: 15px;
    opacity: 0.7;
    border-left: 2px solid #fff;
    padding-left: 10px;
}

.project-header h1 {
    font-family: 'Montserrat', sans-serif;
    font-size: 4.5rem;
    font-weight: 800;
    text-transform: uppercase;
    line-height: 1;
    margin: 0 0 10px 0;
    color: #fff;
    letter-spacing: -2px;
}

.client-sub {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.5rem;
    font-weight: 300;
    color: #999;
    margin: 0;
    letter-spacing: 1px;
}

/* Correções de Espaçamento */
.project-header .container,
.project-content.container {
    min-height: auto !important; 
    padding-top: 0 !important;
}

.project-content {
    margin-top: -40px; 
    position: relative;
    z-index: 2;
    padding-bottom: 50px;
}

/* Galeria Swiper Detalhes */
.photo-gallery { margin-top: 50px; display: block !important; }
.project-gallery-slider { width: 100%; min-height: auto; padding-bottom: 40px; }
.project-gallery-slider .swiper-slide img {
    width: 100%; height: auto; max-height: 80vh;
    object-fit: contain; border-radius: 4px;
}
.swiper-slide { display: flex; justify-content: center; align-items: center; }

/* [NOVO] Estilos para Legenda da Foto */
.slide-content {
    position: relative;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* --- NOVA LEGENDA ESTILOSA --- */
/* --- LEGENDA EMBAIXO DA FOTO --- */
.photo-caption {
    margin-top: 15px;      /* Espaço entre a foto e o texto */
    margin-bottom: 30px;   /* Espaço para o próximo item */
    position: static;      /* Remove a flutuação sobre a imagem */
    
    color: #ccc;           /* Cinza claro para não cansar a vista */
    font-size: 0.9rem;
    text-align: center;    /* Centralizado fica mais bonito em galerias */
    font-style: italic;    /* Um leve itálico para dar estilo */
    
    /* Removemos o fundo e bordas antigas */
    background: transparent;
    border: none;
    padding: 0;
    width: 100%;
}

@keyframes fadeIn { to { opacity: 1; } }

/* Setas Swiper */
.swiper-button-next, .swiper-button-prev {
    color: var(--accent-color) !important;
    width: 40px; height: 40px;
    background: rgba(0,0,0,0.5); border-radius: 50%;
}
.swiper-button-next:hover, .swiper-button-prev:hover { background: rgba(255,255,255,0.2); }
.swiper-button-next:after, .swiper-button-prev:after { font-size: 1.2rem !important; font-weight: bold; }
.swiper-pagination-bullet-active { background: var(--accent-color); opacity: 1; }

/* Textos do Projeto */
.project-info-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 50px;
    margin: 80px 0;
}

.description h3, .video-gallery h3, .photo-gallery h3 {
    font-size: 1.5rem; margin-bottom: 20px;
    text-transform: uppercase; letter-spacing: 1px;
    border-bottom: 1px solid #333; padding-bottom: 10px;
    display: inline-block;
}
.description p { font-size: 1.1rem; color: #ccc; line-height: 1.8; }

.meta-item { margin-bottom: 30px; }
.meta-item strong {
    display: block; color: #fff;
    text-transform: uppercase; margin-bottom: 5px; font-size: 0.9rem;
}
.meta-item p { color: #888; margin: 0; }

/* Vídeo */
.video-gallery { margin-top: 60px; margin-bottom: 60px; }
.video-container {
    position: relative; width: 100%; padding-bottom: 56.25%;
    height: 0; overflow: hidden; background: #000;
    border-radius: 8px; box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}
.video-container iframe { position: absolute; top: 0; left: 0; width: 100%; height: 100%; border: 0; }

/* Link Voltar */
.back-link { margin-top: 80px; text-align: center; }
.back-link a {
    color: #fff; text-decoration: none; font-weight: bold;
    border: 1px solid #fff; padding: 10px 20px; transition: all 0.3s;
}
.back-link a:hover { background: #fff; color: #000; }

/* Ajuste Mobile Detalhes */
@media (max-width: 768px) {
    .project-header h1 { font-size: 2.5rem; }
    .client-sub { font-size: 1.1rem; }
    .project-info-grid { grid-template-columns: 1fr; }
}

/* =========================================
   PÁGINA SOBRE
   ========================================= */
.about-section {
    padding: 120px 0 100px;
    background: radial-gradient(circle at top right, #1a1a1a 0%, #0a0a0a 60%);
    min-height: 100vh;
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: start;
}

/* Foto Sobre */
.about-image {
    position: sticky;
    top: 120px;
    height: fit-content;
    z-index: 10;
}

.about-image img {
    width: 100%;
    max-width: 500px;
    border-radius: 8px;
    box-shadow: -20px 20px 0px var(--gray-dark), -20px 20px 0px 2px #333;
    transition: all 0.5s ease;
    display: block;
}

.about-image img:hover { transform: translateY(-5px); }

/* Texto Sobre */
.about-text h1 { font-size: 3rem; margin-bottom: 30px; line-height: 1.1; }
.bio-content { font-size: 1.1rem; color: #ccc; margin-bottom: 40px; line-height: 1.8; }

.about-links { display: flex; align-items: center; gap: 30px; }

.btn-primary {
    background-color: #fff; color: #000; padding: 12px 30px;
    text-decoration: none; font-weight: bold; text-transform: uppercase;
    letter-spacing: 1px; border-radius: 4px; transition: background 0.3s;
}
.btn-primary:hover { background-color: #ccc; }

.social-icons a {
    color: #fff; margin-right: 20px; text-decoration: none; font-size: 0.9rem;
    border-bottom: 1px solid transparent; transition: border 0.3s;
}
.social-icons a:hover { border-bottom: 1px solid #fff; }

/* AJUSTES MOBILE SOBRE (Foto Estática e Ordem) */
@media (max-width: 768px) {
    .about-grid {
        display: flex;
        flex-direction: column;
        gap: 50px;
    }
    
    .about-image {
        position: static !important;
        order: -1; 
        width: 100%;
        margin-bottom: 40px;
        text-align: center;
    }
    
    .about-image img { max-width: 80%; margin: 0 auto; }
}

/* =========================================
   PÁGINA CONTATO
   ========================================= */
.contact-section {
    padding: 180px 0 100px;
    min-height: 90vh;
    background: #0a0a0a;
}

.contact-header { margin-bottom: 80px; }
.contact-header h1 { font-size: 4rem; margin-top: 20px; line-height: 1.1; }

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 80px;
}

.contact-info p {
    font-size: 1.2rem; color: #ccc;
    margin-bottom: 50px; max-width: 300px;
}

.info-item { margin-bottom: 40px; }
.info-item strong {
    display: block; color: #666; text-transform: uppercase;
    font-size: 0.8rem; margin-bottom: 10px; letter-spacing: 1px;
}

.contact-link {
    color: #fff; font-size: 1.5rem; text-decoration: none;
    border-bottom: 1px solid rgba(255,255,255,0.2);
    padding-bottom: 5px; transition: all 0.3s;
}
.contact-link:hover { border-bottom: 1px solid #fff; }

.social-links-contact a {
    display: inline-block; color: #fff; margin-right: 20px;
    text-decoration: none; font-size: 1.1rem; transition: opacity 0.3s;
}
.social-links-contact a:hover { opacity: 0.7; }

/* Formulário */
.contact-form {
    background: #141414; padding: 50px; border-radius: 8px;
}
.form-group { margin-bottom: 30px; }
.form-group label {
    display: block; color: #888; margin-bottom: 10px; font-size: 0.9rem;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
    width: 100%; background: transparent; border: none;
    border-bottom: 1px solid #333; color: #fff;
    font-family: 'Montserrat', sans-serif; font-size: 1.1rem;
    padding: 10px 0; outline: none; transition: border-color 0.3s;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus { border-bottom-color: #fff; }

/* CORREÇÃO DO SELECT (Dropdown) */
.contact-form select option {
    background-color: #1a1a1a;
    color: #fff;
    padding: 10px;
}
.contact-form select {
    appearance: none; -webkit-appearance: none; cursor: pointer;
    background-image: url("data:image/svg+xml;charset=US-ASCII,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22292.4%22%20height%3D%22292.4%22%3E%3Cpath%20fill%3D%22%23FFFFFF%22%20d%3D%22M287%2069.4a17.6%2017.6%200%200%200-13-5.4H18.4c-5%200-9.3%201.8-12.9%205.4A17.6%2017.6%200%200%200%200%2082.2c0%205%201.8%209.3%205.4%2012.9l128%20127.9c3.6%203.6%207.8%205.4%2012.8%205.4s9.2-1.8%2012.8-5.4L287%2095c3.5-3.5%205.4-7.8%205.4-12.8%200-5-1.9-9.2-5.5-12.8z%22%2F%3E%3C%2Fsvg%3E");
    background-repeat: no-repeat;
    background-position: right 0 top 50%;
    background-size: 12px auto;
}

.btn-submit {
    background: #fff; color: #000; border: none; padding: 15px 40px;
    font-size: 1rem; font-weight: bold; text-transform: uppercase;
    letter-spacing: 1px; cursor: pointer; margin-top: 20px; transition: background 0.3s;
}
.btn-submit:hover { background: #ccc; }

/* Ajuste Mobile Contato */
@media (max-width: 768px) {
    .contact-grid { grid-template-columns: 1fr; gap: 50px; }
    .contact-header h1 { font-size: 2.5rem; }
    .contact-form { padding: 30px; }
}

/* =========================================
   FOOTER
   ========================================= */
footer {
    text-align: center; padding: 40px;
    background-color: var(--gray-dark);
    font-size: 0.8rem; color: #666; margin-top: 0;
}


/* =========================================
   PÁGINA DE PACOTES
   ========================================= */
.packages-section {
    /* Ajustado o padding-top para 90px conforme sua preferência */
    padding: 90px 0 100px;
    background-color: var(--bg-color);
    min-height: 100vh;
}

/* Título e Subtítulo Centralizados */
.center-header {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center;
    text-align: center;
    margin-bottom: 60px;
    padding-left: 0 !important;
}

.center-header h1 {
    font-size: 3.5rem;
    margin-bottom: 15px;
    line-height: 1.1;
}

.center-header p {
    color: #888;
    font-size: 1.2rem;
    font-weight: 300;
    margin: 0;
    opacity: 0.9;
}

/* Grid de Pacotes */
.packages-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
}

/* [CORRIGIDO] Cards do Pacote com mesma altura */
.package-card {
    background: #141414;
    border: 1px solid #222;
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.3s, border-color 0.3s;
    /* Ajustes para alinhar altura */
    display: flex;
    flex-direction: column;
    height: 100%; 
}

.package-card:hover {
    transform: translateY(-5px);
    border-color: #444;
}

/* Mídia */
.package-media {
    width: 100%;
    background: #000;
}
/* [NOVO] Estilos para o Swiper de Pacotes */
.package-swiper {
    width: 100%;
    height: 250px;
}
.package-swiper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
/* Reutiliza a classe video-container mas com altura fixa */
.package-media .video-container {
    padding-bottom: 56.25%; 
    border-radius: 0;
}

/* Conteúdo */
.package-content {
    padding: 30px;
    display: flex;
    flex-direction: column;
    flex-grow: 1; /* Força ocupar espaço restante */
}

/* Títulos Padronizados (Máximo 2 linhas) */
.package-content h2 {
    font-size: 1.5rem;
    margin: 0 0 15px 0;
    color: #fff;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    height: 3rem; 
}

/* Preço */
.price-tag {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--accent-color);
    margin-bottom: 25px; 
}

/* Descrição com Scroll */
.package-desc {
    color: #d0d0d0;
    font-size: 1rem;
    line-height: 1.7;
    margin-bottom: 30px;
    flex-grow: 1;
    min-height: 120px; 
    max-height: 180px; 
    overflow-y: auto;  
    padding-right: 10px;
    scrollbar-width: thin;
    scrollbar-color: #555 #1a1a1a;
}
.package-desc::-webkit-scrollbar { width: 6px; }
.package-desc::-webkit-scrollbar-track { background: #1a1a1a; }
.package-desc::-webkit-scrollbar-thumb { background-color: #555; border-radius: 10px; }

/* Botão do Pacote */
.btn-package {
    display: block;
    width: 100%;
    padding: 15px 0;
    background: transparent;
    border: 1px solid #fff;
    color: #fff;
    text-align: center;
    text-decoration: none;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s;
    border-radius: 4px;
}
.btn-package:hover { background: #fff; color: #000; }

/* Ajustes Mobile Pacotes */
@media (max-width: 768px) {
    .packages-grid { grid-template-columns: 1fr; }
    .center-header h1 { font-size: 2.5rem; }
}


/* =========================================
   NOVAS ADIÇÕES (MOBILE & THUMBS)
   ========================================= */

/* --- 1. MINIATURAS NOS DETALHES --- */
.thumbs-gallery {
    height: 80px;
    box-sizing: border-box;
    padding: 10px 0;
    margin-top: 5px;
}

.thumbs-gallery .swiper-slide {
    width: 25%;
    height: 100%;
    opacity: 0.4;
    cursor: pointer;
    border-radius: 4px;
    overflow: hidden;
}

.thumbs-gallery .swiper-slide-thumb-active {
    opacity: 1;
    border: 2px solid var(--accent-color);
}

.thumbs-gallery .swiper-slide img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* --- 2. HOME MOBILE: UM PROJETO EMBAIXO DO OUTRO --- */
@media (max-width: 768px) {
    /* Quando o JS desativar o Swiper, isso arruma o layout */
    .home-projects-slider .swiper-wrapper {
        display: flex;
        flex-direction: column; /* Pilha vertical */
        gap: 40px; /* Espaço entre projetos */
    }
    
    .home-projects-slider .swiper-slide {
        width: 100% !important;
        margin-right: 0 !important;
        height: auto !important;
        display: block !important;
    }

    /* Esconde as setas no mobile (já que vamos rolar a tela) */
    .home-projects-slider .swiper-button-next,
    .home-projects-slider .swiper-button-prev {
        display: none;
    }
}