@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;600;700&display=swap');

:root {
    --primary-color: #4f46e5;
    --secondary-color: #7c3aed;
    --dark-bg: #0d1117;
    --light-bg: #161b22;
    --text-color: #f0f6fc;
    --text-muted: #8b949e;
    --border-color: #30363d;
    --success-color: #2ecc71;
}

/* --- Configurações Globais & Fundo Interativo --- */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    font-family: 'Poppins', sans-serif;
    background-color: var(--dark-bg);
    color: var(--text-color);
    overflow-x: hidden;
}
.background-spotlight {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    background: radial-gradient(circle at var(--x) var(--y), rgba(79, 70, 229, 0.15), transparent 30%);
    z-index: -1;
}

/* --- Classes Utilitárias & Animações de Entrada --- */
.container { max-width: 1100px; margin: 0 auto; padding: 0 20px; }
.section { padding: 5rem 0; text-align: center; position: relative; }
.section h2 { font-size: 2.5rem; margin-bottom: 1rem; }
.section-subtitle { margin-bottom: 3rem; color: var(--text-muted); max-width: 600px; margin-left: auto; margin-right: auto; line-height: 1.6; }

.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s cubic-bezier(0.645, 0.045, 0.355, 1), transform 0.8s cubic-bezier(0.645, 0.045, 0.355, 1);
}
.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

.service-card::before {
    pointer-events: none;
}

/* --- Header com Efeito Frosted Glass e Borda Translúcida --- */
header {
    padding: 1.5rem 0;
    position: sticky; top: 0; z-index: 1000;
    transition: all 0.4s ease;
    border-bottom: 1px solid transparent;
}
header.header-scrolled {
    padding: 1rem 0;
    background-color: rgba(13, 17, 23, 0.3);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-bottom: 1px solid rgba(240, 246, 252, 0.1);
}
nav { display: flex; justify-content: space-between; align-items: center; }
.logo { font-size: 1.5rem; font-weight: 700; color: var(--primary-color); text-decoration: none; }
.nav-links { list-style: none; display: flex; gap: 1.5rem; }
.nav-links a { color: var(--text-color); text-decoration: none; font-weight: 600; transition: color 0.3s ease; position: relative; padding: 5px 0; }
.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: width 0.3s ease;
}
.nav-links a:hover::after {
    width: 100%;
}
.nav-links a:hover { color: var(--primary-color); }
.hamburger { display: none; background: none; border: none; color: white; font-size: 1.5rem; cursor: pointer; z-index: 1001; }

/* --- Hero com Fundo Aurora Melhorado --- */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    text-align: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    padding: 0 20px;
}
.hero::before {
    content: '';
    position: absolute;
    top: 50%; left: 50%;
    width: 150%; height: 150%;
    background:
        radial-gradient(circle at 20% 30%, var(--primary-color), transparent 25%),
        radial-gradient(circle at 80% 70%, var(--secondary-color), transparent 25%);
    transform: translate(-50%, -50%);
    filter: blur(100px);
    opacity: 0.3;
    animation: aurora 20s infinite linear;
}
@keyframes aurora {
    0% { transform: translate(-50%, -50%) rotate(0deg) scale(1); }
    50% { transform: translate(-50%, -50%) rotate(180deg) scale(1.1); }
    100% { transform: translate(-50%, -50%) rotate(360deg) scale(1); }
}
.hero-content { position: relative; z-index: 1; }
.hero h1 {
    font-size: 2.8rem;
    font-weight: 700;
    line-height: 1.2;
    text-shadow: 0 0 20px rgba(0,0,0,0.5);
    background: linear-gradient(90deg, var(--secondary-color), var(--primary-color));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}
.hero p { font-size: 1.1rem; color: var(--text-muted); margin: 1.5rem 0 2.5rem; max-width: 600px; margin-left: auto; margin-right: auto; }

/* --- Botões --- */
.cta-button { background: linear-gradient(90deg, var(--primary-color), var(--secondary-color)); color: white; padding: 0.8rem 2rem; border-radius: 8px; text-decoration: none; font-weight: 600; transition: transform 0.3s ease, box-shadow 0.3s ease; display: inline-block; border: none; cursor: pointer; font-family: 'Poppins', sans-serif; font-size: 1rem; }
.cta-button:hover { transform: scale(1.05); box-shadow: 0 10px 20px rgba(79, 70, 229, 0.3); }
.cta-button-outline { background-color: transparent; color: var(--primary-color); padding: 0.8rem 2rem; border-radius: 8px; text-decoration: none; font-weight: 600; border: 2px solid var(--primary-color); transition: all 0.3s ease; }
.cta-button-outline:hover { background-color: var(--primary-color); color: white; box-shadow: 0 0 15px rgba(79, 70, 229, 0.5); }

/* --- Grid de Serviços --- */
.services-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}
@media (min-width: 640px) {
    .services-grid {
        grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    }
}

/* --- Cards de Serviço --- */
.service-card {
    background-color: var(--light-bg);
    padding: 2rem;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
    text-align: left;
}
.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}
.service-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    border-radius: 12px;
    border: 2px solid transparent;
    background: conic-gradient(from 180deg at 50% 50%, var(--secondary-color), var(--primary-color), var(--secondary-color)) border-box;
    -webkit-mask:
        linear-gradient(#fff 0 0) content-box,
        linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.4s ease;
}
.service-card:hover::before { opacity: 1; }
.service-card h3 {
    font-size: 1.4rem;
    color: var(--text-color);
    margin-bottom: 0.5rem;
}
.price-wrapper {
    margin-bottom: 1.5rem;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 1.5rem;
}
.price {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
    line-height: 1.1;
}
.price-clarification {
    font-size: 0.9rem;
    color: var(--text-muted);
}
.service-card ul {
    list-style: none;
    margin-bottom: 2rem;
    flex-grow: 1;
}
.service-card ul li {
    margin-bottom: 1rem;
    padding-left: 1.7rem;
    position: relative;
    font-size: 1rem;
    color: var(--text-muted);
}
.service-card ul li::before {
    content: '✓';
    color: var(--primary-color);
    position: absolute;
    left: 0;
    font-size: 1.2rem;
}
.service-card .cta-button,
.service-card .cta-button-outline {
    width: 100%;
    text-align: center;
}
.service-card.featured {
    border-color: var(--primary-color);
    box-shadow: 0 0 25px rgba(79, 70, 229, 0.2);
}
.featured-badge {
    position: absolute;
    top: -1px;
    right: 20px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    color: white; padding: 0.3rem 0.8rem;
    font-size: 0.8rem; font-weight: 600;
    border-radius: 0 0 8px 8px;
}
.service-card:hover .cta-button-outline {
    background-color: var(--primary-color);
    color: white;
}

/* --- Formulários --- */
form { max-width: 700px; margin: 0 auto; display: flex; flex-direction: column; gap: 1.5rem; text-align: left; }
form input, form textarea {
    width: 100%; padding: 1rem; border-radius: 8px; border: 1px solid var(--border-color);
    background-color: var(--dark-bg); color: var(--text-color); font-family: 'Poppins', sans-serif; font-size: 1rem;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}
form input:focus, form textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.3);
}
::placeholder { color: var(--text-muted); }

.form-status {
    text-align: center;
    margin-top: 1rem;
    font-weight: 600;
    color: var(--success-color);
    opacity: 0;
    transition: opacity 0.3s ease;
}

/* --- Outras Seções --- */
#sobre p { max-width: 800px; margin: 0 auto; line-height: 1.8; color: var(--text-muted); }
footer { padding: 3rem 0; text-align: center; border-top: 1px solid var(--border-color); color: var(--text-muted); background-color: var(--dark-bg); }

/* --- Seção FAQ (Accordion) --- */
.faq-container {
    max-width: 800px;
    margin: 0 auto;
    text-align: left;
    border-top: 1px solid var(--border-color);
}
.faq-item {
    border-bottom: 1px solid var(--border-color);
}
.faq-question {
    width: 100%;
    background: none;
    border: none;
    color: var(--text-color);
    padding: 1.5rem 0;
    font-size: 1.1rem;
    font-weight: 600;
    font-family: 'Poppins', sans-serif;
    text-align: left;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    transition: color 0.3s ease;
}
.faq-question:hover {
    color: var(--primary-color);
}
.faq-question i {
    font-size: 1rem;
    flex-shrink: 0;
}
.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s cubic-bezier(0.645, 0.045, 0.355, 1), padding 0.5s ease;
}
.faq-answer p {
    color: var(--text-muted);
    line-height: 1.7;
    padding-bottom: 1.5rem;
}
.faq-item.active .faq-question {
    color: var(--primary-color);
}

/* --- Responsividade (Desktop) --- */
@media (min-width: 768px) {
    .section { padding: 6rem 0; }
    .section h2 { font-size: 2.8rem; }
    .hero h1 { font-size: 3.8rem; }
    .hero p { font-size: 1.2rem; }
    .faq-question { font-size: 1.2rem; }
    .cta-button, .cta-button-outline { padding: 1rem 2.5rem; }
}

/* --- Responsividade (Mobile) --- */
@media (max-width: 768px) {
    .nav-links {
        position: fixed; top: 0; right: -100%; width: 80%; max-width: 300px; height: 100vh;
        background-color: rgba(22, 27, 34, 0.95);
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
        flex-direction: column; align-items: center; justify-content: center;
        gap: 2rem;
        transition: right 0.5s cubic-bezier(0.77, 0, 0.175, 1);
    }
    .nav-links.active { right: 0; }
    .hamburger { display: block; }

    .section { padding: 4rem 0; }
    .hero h1 { font-size: 2.2rem; }
    .section h2 { font-size: 2rem; }
    .services-grid { gap: 1.5rem; }
    .service-card { padding: 1.5rem; }
}