/* --- 1. CONFIGURAÇÕES GLOBAIS E VARIÁVEIS --- */
:root {
    --bg-color: #050505;
    --text-color: #EAEAEA;
    --primary-color-start: #A098FF;
    --primary-color-end: #8AF0E8;
    --card-color: #121212;
    --border-color: rgba(255, 255, 255, 0.1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    overflow-x: hidden;
    cursor: auto;
}

h1, h2, h3 {
    font-family: 'Oswald', sans-serif;
    font-weight: 500;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

section {
    padding: 120px 0;
}

.section-title {
    font-size: 2.8rem;
    text-align: center;
    margin-bottom: 60px;
}

/* --- 2. EFEITOS GLOBAIS (CURSOR, BACKGROUND, ANIMAÇÕES) --- */

/* Esfera Seguidora do Cursor */
.cursor-follower {
    position: fixed;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    pointer-events: none;
    z-index: 9999;
    background: linear-gradient(45deg, var(--primary-color-start), #f7a2d2, var(--primary-color-end));
    box-shadow: 0 0 20px var(--primary-color-start);
    transition: transform 0.2s ease-out, width 0.3s ease, height 0.3s ease, background 0.3s ease, backdrop-filter 0.3s ease, box-shadow 0.3s ease;
}

.cursor-follower.grow {
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(5px);
    box-shadow: 0 0 30px #f7a2d2;
}

/* Animação de Aparecer ao Rolar */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.animate-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}


/* --- 3. COMPONENTES (BOTÕES) --- */
.cta-button, .button-primary, .button-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    vertical-align: middle;
    text-decoration: none;
    font-weight: 600;
    border-radius: 50px;
    padding: 12px 30px;
    transition: all 0.3s ease;
}
.cta-button, .button-primary {
    background: linear-gradient(90deg, var(--primary-color-start), var(--primary-color-end));
    color: #000;
}
.cta-button:hover, .button-primary:hover {
    transform: scale(1.05);
}
.button-secondary {
    background-color: transparent;
    color: var(--text-color);
    border: 1px solid var(--border-color);
}
.button-secondary:hover {
    background-color: var(--card-color);
    border-color: var(--primary-color-start);
}

/* Estrutura da Animação de Texto "Onda" */
.stagger-wrapper { display: flex; }
.stagger span { display: inline-block; }

a:hover .stagger span,
button:hover .stagger span {
    animation: wave 0.5s ease-out;
    animation-delay: var(--delay);
}


/* --- 4. HEADER E NAVEGAÇÃO --- */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 20px 0;
    z-index: 1000;
    transition: background-color 0.3s ease, padding 0.3s ease;
}
.header.scrolled {
    background-color: rgba(5, 5, 5, 0.8);
    backdrop-filter: blur(10px);
    padding: 15px 0;
    border-bottom: 1px solid var(--border-color);
}
.header .container { display: flex; justify-content: space-between; align-items: center; }
.logo img { height: 40px; transition: height 0.3s ease; }
.header.scrolled .logo img { height: 35px; }
.nav-menu ul { display: flex; list-style: none; gap: 30px; }
.nav-menu a {
    color: var(--text-color);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
    position: relative;
    padding-bottom: 5px;
}
/* Adicione na seção de Serviços */
.service-card-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

/* Adicione na seção de Header e Navegação */
.nav-menu .dropdown {
    position: relative;
    display: inline-block;
}

.nav-menu .dropdown-content {
    display: none;
    position: absolute;
    background-color: var(--card-color);
    min-width: 220px;
    box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
    z-index: 1;
    border-radius: 5px;
    padding: 10px 0;
}

.nav-menu .dropdown-content a {
    color: var(--text-color);
    padding: 12px 16px;
    text-decoration: none;
    display: block;
    font-size: 0.85rem;
}

.nav-menu .dropdown-content a:hover {
    background-color: var(--border-color);
}

.nav-menu .dropdown:hover .dropdown-content {
    display: block;
}


/* --- 5. SEÇÕES DA PÁGINA --- */

/* Hero Section */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    overflow: hidden;
}

/* COLE OS NOVOS ESTILOS AQUI */
#bg-video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    z-index: -2;
    transform: translateX(-50%) translateY(-50%);
    object-fit: cover;
}
.hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(5, 5, 5, 0.5);
    z-index: -1;
}
.hero-content {
    position: relative; 
    z-index: 1;
}
/* FIM DA PARTE COLADA */
.hero-content h1 { font-size: 4rem; margin-bottom: 20px; line-height: 1.2; }
.hero-content p { font-size: 1.2rem; max-width: 600px; margin: 0 auto 30px; font-weight: 300; }
.hero-content h1 .line { display: block; overflow: hidden; }
.hero-content h1 .word { display: block; transform: translateY(110%); animation: revealWord 1.2s cubic-bezier(0.23, 1, 0.32, 1) forwards; }
.hero-content h1 .line:nth-child(2) .word { animation-delay: 0.2s; }
.hero-content h1 .line:nth-child(3) .word { animation-delay: 0.4s; }

/* Services Section */
.services-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 30px; }
.service-card { background-color: var(--card-color); padding: 40px; border: 1px solid var(--border-color); border-radius: 10px; text-align: center; transition: transform 0.3s ease, border-color 0.3s ease; }
.service-card:hover { transform: translateY(-10px); border-color: var(--primary-color-start); }
.service-card i { font-size: 3rem; margin-bottom: 20px; background: linear-gradient(90deg, var(--primary-color-start), var(--primary-color-end)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.service-card h3 { font-size: 1.5rem; margin-bottom: 15px; }
.service-card p { font-size: 0.9rem; line-height: 1.6; font-weight: 300; }

/* Sobre & Portfólio Section */
#sobre { padding-bottom: 0; overflow: hidden; }
.about-wrapper { max-width: 900px; margin: 0 auto 100px auto; text-align: center; }
.about-title { font-size: clamp(2.5rem, 8vw, 5rem); line-height: 1.1; font-weight: 600; }
.about-title-span { background: linear-gradient(90deg, var(--primary-color-start), var(--primary-color-end)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.about-title-right { padding-left: 5vw; }
.about-info { max-width: 700px; margin: 40px auto 0 auto; }
.about-description { font-size: 1.1rem; line-height: 1.8; color: #ccc; margin-bottom: 30px; }
.about-buttons-wrapper { display: flex; justify-content: center; gap: 20px; }

/* Galeria Infinita (Portfólio) */
.infinite-scroll-container { width: 100%; overflow: hidden; padding: 20px 0; -webkit-mask-image: linear-gradient(to right, transparent, #000 10%, #000 90%, transparent); mask-image: linear-gradient(to right, transparent, #000 10%, #000 90%, transparent); }
.scroll-wrapper { display: flex; width: fit-content; animation: scroll 60s linear infinite; }
.scroll-wrapper.reverse { animation-direction: reverse; }
.scroll-wrapper:hover { animation-play-state: paused; }
.scroll-card { height: 300px; margin: 0 15px; border-radius: 10px; overflow: hidden; }
.scroll-card img { height: 100%; width: auto; aspect-ratio: 4 / 3; object-fit: cover; }

/* Contato Section */
#contato {
    text-align: center;
}

.contact-intro {
    max-width: 600px;
    margin: 0 auto 40px auto;
    font-size: 1.1rem;
    line-height: 1.8;
    color: #ccc;
}

.contact-buttons-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap; /* Garante que os botões quebrem a linha em telas pequenas */
}

/* Ajuste nos botões para incluir ícones */
.cta-button i,
.button-secondary i {
    font-size: 1.2rem;
    margin-right: 10px;
}

/* Contato Section */
.contact-form { max-width: 700px; margin: 0 auto; }
.contact-form input, .contact-form textarea { width: 100%; padding: 15px; margin-bottom: 20px; background-color: var(--card-color); border: 1px solid var(--border-color); border-radius: 5px; color: var(--text-color); font-family: 'Poppins', sans-serif; }
.contact-form input:focus, .contact-form textarea:focus { outline: none; border-color: var(--primary-color-start); }
.contact-form textarea { resize: vertical; min-height: 150px; }
.contact-form .cta-button { border: none; cursor: pointer; width: 100%; }
#form-status { margin-top: 25px; text-align: center; min-height: 25px; }
#form-status p { padding: 15px; border-radius: 5px; font-weight: 500; }
.success { background-color: rgba(46, 204, 113, 0.2); color: #2ecc71; border: 1px solid #2ecc71; }
.error { background-color: rgba(231, 76, 60, 0.2); color: #e74c3c; border: 1px solid #e74c3c; }

/* Detalhes do Serviço (Páginas Internas) */
#service-details .container {
    max-width: 800px; /* Deixa o conteúdo mais focado e legível */
    text-align: center;
}

.service-headline {
    font-size: 2.5rem;
    line-height: 1.3;
    margin-bottom: 25px;
    background: linear-gradient(90deg, var(--primary-color-start), var(--primary-color-end));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.service-description {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #ccc;
    margin-bottom: 50px;
}

.service-benefits {
    margin-bottom: 50px;
    text-align: left;
}

.service-benefits h3 {
    text-align: center;
    font-size: 1.8rem;
    margin-bottom: 30px;
}

.service-benefits ul {
    list-style: none;
    padding-left: 0;
}

.service-benefits li {
    display: flex;
    align-items: center;
    font-size: 1.1rem;
    margin-bottom: 20px;
}

.service-benefits li i {
    font-size: 1.5rem;
    color: var(--primary-color-start);
    margin-right: 15px;
}

.service-cta {
    font-size: 1.2rem;
    font-weight: 500;
}

/* Estilos para a Galeria de Projetos Relacionados */
.related-projects { padding: 80px 0; }
.related-projects-title { text-align: center; font-size: 2rem; margin-bottom: 40px; }
.related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}
.related-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 10px;
    transition: transform 0.3s ease;
}
.related-item img:hover {
    transform: scale(1.03);
}

/* Estilos para a Seção de FAQ */
.faq-section { padding-bottom: 80px; }
.faq-list { max-width: 750px; margin: 0 auto; }
.faq-list details {
    background: var(--card-color);
    border: 1px solid var(--border-color);
    border-radius: 5px;
    margin-bottom: 10px;
    padding: 15px 20px;
}
.faq-list summary {
    font-weight: 600;
    cursor: pointer;
    list-style: none; /* Remove o marcador padrão */
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.faq-list summary::-webkit-details-marker { display: none; } /* Remove o marcador no Chrome/Safari */
.faq-list summary::after {
    content: '+';
    font-size: 1.5rem;
    transition: transform 0.2s ease;
}
.faq-list details[open] summary::after {
    transform: rotate(45deg);
}
.faq-list p {
    margin-top: 15px;
    line-height: 1.7;
    color: #ccc;
}

/* --- 6. FOOTER --- */
.footer { padding: 50px 0; border-top: 1px solid var(--border-color); text-align: center; }
.footer-logo img { height: 80px; margin-bottom: 20px; }
.social-icons { margin-bottom: 20px; }
.social-icons a { color: var(--text-color); margin: 0 15px; font-size: 1.5rem; transition: color 0.3s ease; }
.social-icons a:hover { background: linear-gradient(90deg, var(--primary-color-start), var(--primary-color-end)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.copyright { font-size: 0.9rem; color: #aaa; }


/* --- 7. ANIMAÇÕES (KEYFRAMES) --- */
@keyframes revealWord { to { transform: translateY(0); } }
@keyframes wave { 0% { transform: translateY(0); } 50% { transform: translateY(-110%); } 100% { transform: translateY(0); } }
@keyframes scroll { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }


/* --- 8. SCROLLBAR CUSTOMIZADO --- */
::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--card-color); }
::-webkit-scrollbar-thumb { background: linear-gradient(45deg, var(--primary-color-start), #f7a2d2, var(--primary-color-end)); border-radius: 10px; border: 2px solid var(--bg-color); }
::-webkit-scrollbar-thumb:hover { background: linear-gradient(45deg, #b5afff, #f28dc2, #a0f5ec); }
html { scrollbar-width: thin; scrollbar-color: var(--primary-color-start) var(--card-color); }


/* --- 9. MEDIA QUERIES (RESPONSIVIDADE) --- */
@media (max-width: 768px) {
    .cursor-follower {
        display: none; /* Esconde a esfera seguidora em telas pequenas */
    }
    .nav-menu { display: none; }
    .hero-content {margin: 20px;}
    .hero-content h1 { font-size: 2.5rem; }
    .hero-content p { font-size: 1rem; }
    .section-title { font-size: 2rem; }
    section { padding: 80px 0; }
    .about-title { font-size: 2rem; }
}