/* --- ESTILOS GERAIS --- */
html {
    scroll-behavior: smooth;
}

* { 
    margin: 0; 
    padding: 0; 
    box-sizing: border-box; 
}

body { 
    background-color: #000; 
    overflow-x: hidden; 
    font-family: 'Poppins', sans-serif;
    color: white; 
    line-height: 1.7;
    position: relative;
}

h1, h2, h3, #navbar ul li a, .btn-proposta, .btn-ver-mais, .btn-enviar, .project-title {
    font-family: 'Montserrat', sans-serif;
}

/* --- FUNDO ANIMADO (AURORA EFFECT) --- */
.bg-glow-container {
    position: fixed; 
    top: 0; 
    left: 0; 
    width: 100%; 
    height: 100%; 
    z-index: -1;
    overflow: hidden; 
    background: radial-gradient(circle at 50% 50%, #050505, #000);
}

.blob {
    position: absolute; 
    width: 500px; 
    height: 500px; 
    border-radius: 50%;
    filter: blur(100px); 
    opacity: 0.15; 
    animation: moveBlobs 20s infinite alternate;
}

.blob-1 { background: #00f2ff; top: -10%; left: -10%; animation-duration: 25s; }
.blob-2 { background: #00f2ff; bottom: -10%; right: -10%; animation-duration: 30s; animation-delay: -5s; opacity: 0.1; }
.blob-3 { background: #003cff; top: 40%; left: 30%; animation-duration: 22s; animation-delay: -2s; }

@keyframes moveBlobs {
    0% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(100px, 200px) scale(1.2); }
    66% { transform: translate(-50px, 50px) scale(0.8); }
    100% { transform: translate(0, 0) scale(1); }
}

/* --- NAV BAR --- */
#navbar {
    position: fixed; 
    top: 0; 
    left: 0; 
    width: 100%; 
    display: flex; 
    justify-content: center;
    padding: 25px 0; 
    z-index: 900; 
    background: rgba(0, 0, 0, 0); 
    backdrop-filter: blur(0px);
    border-bottom: 1px solid rgba(0, 242, 255, 0); 
    opacity: 0; 
    transition: all 0.6s ease; 
    visibility: hidden;
}

#navbar.scrolled {
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(15px);
    padding: 15px 0;
    border-bottom: 1px solid rgba(0, 242, 255, 0.1);
}

#navbar ul { 
    display: flex; 
    list-style: none; 
    gap: clamp(10px, 3vw, 40px); 
}

#navbar ul li a { 
    text-decoration: none; 
    color: #fff; 
    font-size: 0.75rem; 
    text-transform: uppercase; 
    letter-spacing: 2px; 
    transition: 0.3s; 
    font-weight: 600;
    cursor: pointer;
}

#navbar ul li a:hover { 
    color: #00f2ff; 
    text-shadow: 0 0 10px rgba(0, 242, 255, 0.5); 
}

/* --- SPLASH SCREEN --- */
#splash-screen { 
    position: fixed; 
    top: 0; 
    left: 0; 
    width: 100%; 
    height: 100%; 
    background: #000; 
    display: flex; 
    justify-content: center; 
    align-items: center; 
    z-index: 1000; 
    transition: 1s; 
}

#splash-screen svg { 
    width: 90%; 
    max-width: 200px; 
}

@media (min-width: 901px) {
    #splash-screen svg { max-width: 450px; }
}

.logo-text { 
    fill: transparent; 
    stroke: #00f2ff; 
    stroke-width: 0.8; 
    stroke-dasharray: 800; 
    stroke-dashoffset: 800; 
    animation: desenharContorno 2s ease-in-out forwards, preencherCor 1.2s ease-in 1.5s forwards; 
}

@keyframes desenharContorno { 
    to { stroke-dashoffset: 0; } 
}

@keyframes preencherCor { 
    to { fill: #00f2ff; stroke: transparent; filter: drop-shadow(0 0 6px #00f2ff); } 
}

.fade-out { 
    opacity: 0 !important; 
    visibility: hidden !important; 
}

/* --- LAYOUT BASE & REVEAL --- */
.container { 
    max-width: 1200px; 
    margin: 0 auto; 
    padding: 0 30px; 
    width: 100%; 
}

.reveal { 
    opacity: 0; 
    transform: translateY(80px) scale(0.85); 
    transition: all 1.2s cubic-bezier(0.175, 0.885, 0.32, 1.275); 
}

.reveal.active { 
    opacity: 1 !important; 
    transform: translateY(0) scale(1) !important; 
}

section { 
    min-height: 100vh; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    padding: 100px 0; 
}

/* --- HERO SECTION --- */
#inicio { 
    text-align: center; 
    flex-direction: column; 
}

#inicio h1 { 
    font-size: clamp(2.5rem, 10vw, 7rem); 
    font-weight: 900; 
    letter-spacing: -2px; 
    line-height: 1; 
    margin-bottom: 15px; 
    color: #00f2ff; 
    width: 100%; 
    overflow-wrap: break-word; 
}

#inicio h3 { 
    color: #fff; 
    font-size: clamp(0.9rem, 2.5vw, 1.3rem); 
    text-transform: uppercase; 
    letter-spacing: 6px; 
    margin-bottom: 35px; 
    font-weight: 300; 
}

#inicio .hero-desc { 
    font-size: 1.2rem; 
    color: #aaa; 
    max-width: 800px; 
    margin-bottom: 50px; 
    font-weight: 300; 
}

.btn-proposta, .btn-ver-mais, .btn-enviar { 
    display: inline-block; 
    padding: 12px 30px; 
    border: 2px solid #00f2ff; 
    color: #00f2ff; 
    text-decoration: none; 
    border-radius: 50px; 
    font-weight: 700; 
    text-transform: uppercase; 
    font-size: 0.85rem; 
    letter-spacing: 1px; 
    transition: 0.4s; 
    background: transparent; 
    cursor: pointer;
}

.btn-proposta:hover, .btn-ver-mais:hover, .btn-enviar:hover { 
    background: #00f2ff; 
    color: #000; 
    box-shadow: 0 0 30px rgba(0, 242, 255, 0.4); 
}

/* --- TECH ICONS COM ONDA --- */
.tech-row { 
    display: flex; 
    flex-wrap: wrap; 
    justify-content: center; 
    gap: 20px; 
    margin-top: 40px; 
}

.tech-icon { 
    width: 70px; 
    height: 70px; 
    background: rgba(255,255,255,0.03); 
    border: 1px solid var(--c); 
    border-radius: 15px; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    box-shadow: 0 5px 20px var(--g); 
    animation: floatWave 3s ease-in-out infinite; 
}

.tech-icon img { 
    width: 35px; 
    height: auto; 
}

.tech-row .tech-icon:nth-child(1) { animation-delay: 0s; }
.tech-row .tech-icon:nth-child(2) { animation-delay: 0.2s; }
.tech-row .tech-icon:nth-child(3) { animation-delay: 0.4s; }
.tech-row .tech-icon:nth-child(4) { animation-delay: 0.6s; }
.tech-row .tech-icon:nth-child(5) { animation-delay: 0.8s; }
.tech-row .tech-icon:nth-child(6) { animation-delay: 1s; }

@keyframes floatWave { 
    0%, 100% { transform: translateY(0); } 
    50% { transform: translateY(-15px); } 
}

/* --- SEÇÃO SOBRE --- */
.sobre-content { 
    display: grid; 
    grid-template-columns: 1fr 1.5fr; 
    gap: 80px; 
    align-items: center; 
}

.sobre-img { 
    border: 2px solid rgba(0, 242, 255, 0.2); 
    border-radius: 30px; 
    aspect-ratio: 1/1; 
    background: linear-gradient(45deg, #0a0a0a, #111); 
    box-shadow: 0 25px 50px rgba(0,0,0,0.6); 
}

.sobre-text h2 { 
    font-size: 3rem; 
    font-weight: 800; 
    margin-bottom: 25px; 
    color: #00f2ff; 
}

.sobre-text p { 
    font-size: 1.15rem; 
    color: #bbb; 
    margin-bottom: 25px; 
    font-weight: 300; 
}

.highlight-text { 
    color: #00f2ff; 
    font-weight: 600; 
}

/* --- SEÇÃO SERVIÇOS --- */
#servicos { 
    flex-direction: column; 
    text-align: center; 
}

#servicos h2 { 
    font-size: 3rem; 
    font-weight: 800; 
    margin-bottom: 50px; 
    color: #00f2ff; 
}

.services-grid { 
    display: grid; 
    grid-template-columns: repeat(3, 1fr); 
    gap: 30px; 
    width: 100%; 
}

.service-card { 
    background: rgba(255, 255, 255, 0.03); 
    border: 1px solid rgba(255, 255, 255, 0.1); 
    border-radius: 25px; 
    padding: 40px 30px; 
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1); 
    display: flex; 
    flex-direction: column; 
    align-items: center; 
    text-align: center; 
}

.service-card:hover { 
    transform: translateY(-15px); 
    border-color: #00f2ff; 
    background: rgba(255, 255, 255, 0.05); 
    box-shadow: 0 20px 40px rgba(0, 242, 255, 0.1); 
}

.service-icon { 
    width: 60px; 
    height: 60px; 
    margin-bottom: 25px; 
}

.service-card h3 { 
    font-size: 1.5rem; 
    margin-bottom: 15px; 
    color: #fff; 
}

.service-card p { 
    font-size: 0.95rem; 
    color: #aaa; 
    line-height: 1.6; 
}

/* --- SEÇÃO PROJETOS --- */
#projetos { 
    flex-direction: column; 
    text-align: center; 
}

#projetos h2 { 
    font-size: 3rem; 
    font-weight: 800; 
    margin-bottom: 50px; 
}

.projects-grid { 
    display: grid; 
    grid-template-columns: repeat(3, 1fr); 
    gap: 30px; 
    width: 100%; 
    margin-bottom: 50px; 
}

.project-card { 
    background: rgba(255, 255, 255, 0.03); 
    border: 1px solid rgba(255, 255, 255, 0.1); 
    border-radius: 20px; 
    overflow: hidden; 
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1); 
    cursor: pointer; 
    text-align: left; 
    position: relative; 
}

.project-card:hover { 
    transform: translateY(-15px) scale(1.02); 
    border-color: #00f2ff; 
    box-shadow: 0 20px 40px rgba(0, 242, 255, 0.15), 0 0 20px rgba(0, 242, 255, 0.05); 
}

.project-img { 
    width: 100%; 
    aspect-ratio: 16/9; 
    background-color: #111; 
    background-size: cover; 
    background-position: center; 
}

.project-info { 
    padding: 25px; 
}

.project-techs { 
    display: flex; 
    flex-wrap: wrap; 
    gap: 10px; 
    align-items: center; 
    margin-top: 10px; 
    padding-top: 15px; 
    border-top: 1px solid rgba(255,255,255,0.05); 
}

.project-techs img, .project-techs svg { 
    width: 22px; 
    height: 22px; 
    object-fit: contain; 
    opacity: 0.9; 
    filter: drop-shadow(0 0 5px rgba(0, 242, 255, 0.3)); 
}

/* --- SEÇÃO CONTATO --- */
#contato { 
    flex-direction: column; 
    text-align: center; 
}

#contato h2 { 
    font-size: 3rem; 
    font-weight: 800; 
    margin-bottom: 20px; 
    color: #00f2ff; 
}

.contact-wrapper { 
    width: 100%; 
    max-width: 600px; 
    margin-top: 30px; 
}

.contact-form { 
    display: flex; 
    flex-direction: column; 
    gap: 20px; 
}

.form-group { 
    display: flex; 
    flex-direction: column; 
    text-align: left; 
}

.form-group label { 
    font-size: 0.8rem; 
    text-transform: uppercase; 
    letter-spacing: 2px; 
    margin-bottom: 8px; 
    color: #00f2ff; 
    font-weight: 600; 
}

.form-control { 
    background: rgba(255, 255, 255, 0.03); 
    border: 1px solid rgba(255, 255, 255, 0.1); 
    border-radius: 12px; 
    padding: 15px; 
    color: #fff; 
    font-family: 'Poppins'; 
    font-size: 1rem; 
    transition: 0.3s; 
    outline: none; 
}

.form-control:focus { 
    border-color: #00f2ff; 
    background: rgba(255, 255, 255, 0.05); 
    box-shadow: 0 0 15px rgba(0, 242, 255, 0.1); 
}

.social-row { 
    display: flex; 
    justify-content: center; 
    gap: 30px; 
    margin-top: 50px; 
}

.social-icon { 
    width: 50px; 
    height: 50px; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    background: rgba(255, 255, 255, 0.03); 
    border: 1px solid rgba(255, 255, 255, 0.1); 
    border-radius: 50%; 
    transition: 0.4s; 
    cursor: pointer; 
    text-decoration: none; 
}

.social-icon:hover { 
    transform: translateY(-10px); 
    border-color: #00f2ff; 
    box-shadow: 0 0 20px rgba(0, 242, 255, 0.3); 
}

.social-icon svg { 
    width: 25px; 
    height: 25px; 
    fill: #fff; 
    transition: 0.3s; 
}

.social-icon:hover svg { 
    fill: #00f2ff; 
}

/* --- SEÇÃO PERGUNTAS (ACORDEÃO FIXADO) --- */
#perguntas { 
    flex-direction: column; 
    text-align: center; 
}

#perguntas h2 { 
    font-size: 3rem; 
    font-weight: 800; 
    margin-bottom: 50px; 
    color: #00f2ff; 
}

.faq-accordion { 
    width: 100%; 
    display: flex; 
    flex-direction: column; 
    gap: 15px; 
    text-align: left; 
}

.faq-item { 
    background: rgba(255, 255, 255, 0.02); 
    border: 1px solid rgba(255, 255, 255, 0.05); 
    border-radius: 15px; 
    overflow: hidden; 
    transition: border-color 0.3s; 
    position: relative; 
}

.faq-question { 
    padding: 25px; 
    cursor: pointer; 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
    font-weight: 600; 
    color: #fff; 
    transition: background 0.3s; 
}

.faq-question:hover { 
    background: rgba(0, 242, 255, 0.05); 
}

.faq-icon { 
    width: 20px; 
    height: 20px; 
    transition: transform 0.4s ease; 
    stroke: #fff; 
}

.faq-answer { 
    max-height: 0; 
    overflow: hidden; 
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1); 
    background: rgba(0, 0, 0, 0.2); 
}

.faq-answer p { 
    padding: 0 25px 25px 25px; 
    color: #aaa; 
    font-size: 0.95rem; 
    line-height: 1.6; 
}

/* Classe exclusiva para abrir a pergunta */
.faq-open { 
    border-color: #00f2ff !important; 
    box-shadow: 0 0 20px rgba(0, 242, 255, 0.05); 
}

.faq-open .faq-icon { 
    transform: rotate(180deg); 
    stroke: #00f2ff; 
}

.faq-open .faq-answer { 
    max-height: 300px; 
}

/* --- DIVIRTA-SE --- */
#interativo { 
    flex-direction: column; 
    text-align: center; 
}

#three-container { 
    width: 100%; 
    height: 400px; 
    background: rgba(255, 255, 255, 0.01); 
    border: 1px solid rgba(0, 242, 255, 0.1); 
    border-radius: 30px; 
    margin-top: 30px; 
    cursor: grab; 
    overflow: hidden; 
}

/* --- MODAIS DE PROJETO --- */
.modal { 
    position: fixed; 
    top: 0; 
    left: 0; 
    width: 100%; 
    height: 100%; 
    background: rgba(0, 0, 0, 0.95); 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    z-index: 2000; 
    opacity: 0; 
    visibility: hidden; 
    transition: 0.4s; 
    backdrop-filter: blur(10px); 
}

.modal.active { 
    opacity: 1; 
    visibility: visible; 
}

.modal-content { 
    background: #0a0a0a; 
    width: 95%; 
    max-width: 1000px; 
    max-height: 85vh; 
    border-radius: 30px; 
    border: 1px solid #00f2ff; 
    overflow: hidden; 
    position: relative; 
    display: grid; 
    grid-template-columns: 1.3fr 1fr; 
    align-items: center; 
}

.modal-left { 
    position: relative; 
    background: #000; 
    overflow: hidden; 
    height: 100%; 
    display: flex; 
    align-items: center; 
}

.slider-track { 
    display: flex; 
    transition: transform 0.5s ease; 
    width: 100%; 
    height: 100%; 
}

.slider-track img { 
    min-width: 100%; 
    height: 100%; 
    object-fit: contain; 
}

.slider-arrow { 
    position: absolute; 
    top: 50%; 
    transform: translateY(-50%); 
    background: rgba(0, 242, 255, 0.2); 
    border: none; 
    color: #fff; 
    width: 40px; 
    height: 40px; 
    cursor: pointer; 
    z-index: 10; 
    border-radius: 50%; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
}

.arrow-prev { left: 15px; } 
.arrow-next { right: 15px; }

.modal-right { 
    padding: 40px; 
    display: flex; 
    flex-direction: column; 
    gap: 20px; 
}

.modal-right h2 { 
    font-size: 2rem; 
    color: #00f2ff; 
}

.close-modal { 
    position: absolute; 
    top: 20px; 
    right: 25px; 
    background: none; 
    border: none; 
    color: #fff; 
    font-size: 2.5rem; 
    cursor: pointer; 
    z-index: 20; 
}

/* --- MODAL SUCESSO E-MAIL --- */
#email-modal { 
    position: fixed; 
    top: 0; 
    left: 0; 
    width: 100%; 
    height: 100%; 
    background: rgba(0, 0, 0, 0.8); 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    z-index: 3000; 
    opacity: 0; 
    visibility: hidden; 
    transition: 0.4s; 
}

#email-modal.active { 
    opacity: 1; 
    visibility: visible; 
}

.email-modal-content { 
    background: #0a0a0a; 
    border: 2px solid #00f2ff; 
    padding: 40px; 
    border-radius: 30px; 
    text-align: center; 
    box-shadow: 0 0 50px rgba(0, 242, 255, 0.2); 
}

/* --- RESPONSIVIDADE --- */
@media (max-width: 900px) {
    #inicio { padding-top: 180px; }
    .services-grid, .projects-grid { grid-template-columns: 1fr; max-width: 450px; margin: 0 auto; }
    .modal-content { grid-template-columns: 1fr; max-height: 90vh; overflow-y: auto; }
    .modal-left { height: 300px; }
}