@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap');

:root {
    --primary-purple: #8a3ffc;
    --dark-bg: #0d0d1e;
    --glass-bg: rgba(20, 20, 35, 0.5);
    --glass-border: rgba(255, 255, 255, 0.1);
    --text-light: #f0f0f5;
    --text-medium: #a0a0b0;
    --text-dark: #707080;
}

html {
    scroll-behavior: smooth;
}
body {
    font-family: 'Inter', sans-serif;
    background-color: var(--dark-bg);
    color: var(--text-light);
    overflow-x: hidden;
}

#background-stars {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
}

.star {
    position: absolute;
    background: white;
    border-radius: 50%;
    animation-name: twinkle;
    animation-timing-function: linear;
    animation-iteration-count: infinite;
}

@keyframes twinkle {
    0%, 100% { opacity: 0; transform: scale(0.5); }
    50% { opacity: 1; transform: scale(1); }
}

::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--dark-bg); }
::-webkit-scrollbar-thumb { background-color: var(--primary-purple); border-radius: 10px; border: 2px solid var(--dark-bg); }
::-webkit-scrollbar-thumb:hover { background-color: #a162ff; }

header {
    position: fixed;
    top: 1.5rem;
    left: 50%;
    transform: translateX(-50%);
    width: 95%;
    max-width: 900px;
    z-index: 1000;
    background-color: rgba(13, 13, 30, 0.7);
    backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.3);
}
nav a {
    position: relative;
    color: var(--text-medium);
    font-weight: 500;
    transition: color 0.3s;
    padding: 0.5rem 0;
}
nav a:hover {
    color: var(--text-light);
}
nav a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -4px;
    left: 50%;
    transform: translateX(-50%);
    background-color: var(--primary-purple);
    transition: width 0.3s ease-in-out;
}
nav a:hover::after, nav a.active-link::after {
    width: 50%;
}

.btn {
    padding: 12px 28px;
    border-radius: 8px;
    font-weight: 600;
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}
.btn-primary {
    background: var(--primary-purple);
    color: white;
    box-shadow: 0 0 20px rgba(138, 63, 252, 0.4);
}
.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 0 30px rgba(138, 63, 252, 0.6);
}
.btn-secondary {
    border: 1px solid var(--primary-purple);
    color: var(--primary-purple);
}
    .btn-secondary:hover {
    background: rgba(138, 63, 252, 0.1);
    color: #c49dff;
}

.glass-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    backdrop-filter: blur(10px);
    padding: 2rem;
    position: relative;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.glass-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 16px;
    border: 2px solid transparent;
    background: linear-gradient(135deg, var(--primary-purple), #5a19a8) border-box;
    -webkit-mask:
        linear-gradient(#fff 0 0) padding-box,
        linear-gradient(#fff 0 0);
    -webkit-mask-composite: destination-out;
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.3s ease;
}
.glass-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}
.glass-card:hover::before {
    opacity: 1;
}

/* Animações de Scroll Dinâmicas */
.reveal-on-scroll {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease-out, transform 0.6s ease-out;
    will-change: opacity, transform;
}
.reveal-on-scroll.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Menu Mobile Animado - CORRIGIDO */
#mobile-menu-container {
    z-index: 999; /* Abaixo do header */
    transition: opacity 0.3s ease-out, transform 0.3s ease-out;
    transform: translateY(-1rem) scale(0.98);
    opacity: 0;
    pointer-events: none;
}
#mobile-menu-container.open {
    transform: translateY(0) scale(1);
    opacity: 1;
    pointer-events: auto;
}
#mobile-menu-button .icon-open,
#mobile-menu-button.open .icon-close {
    display: block;
}
#mobile-menu-button .icon-close,
#mobile-menu-button.open .icon-open {
    display: none;
}

.faq-item {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    padding: 0.5rem 1.5rem;
    transition: background-color 0.3s ease;
}
.faq-item:hover {
    background: rgba(25, 25, 45, 0.7);
}
.faq-question {
    cursor: pointer;
}
.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s ease-in-out, padding-top 0.5s ease-in-out;
    padding-top: 0;
}
.faq-item.active .faq-answer {
    max-height: 300px;
    padding-top: 1rem;
}
.faq-arrow {
    transition: transform 0.5s ease;
}
.faq-item.active .faq-arrow {
    transform: rotate(180deg);
}

#contact-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0,0,0,0.7);
    backdrop-filter: blur(5px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s ease, visibility 0.4s;
}
#contact-modal.open {
    opacity: 1;
    visibility: visible;
}
.modal-content {
    transform: scale(0.9);
    opacity: 0;
    transition: transform 0.4s ease, opacity 0.4s ease;
}
#contact-modal.open .modal-content {
    transform: scale(1);
    opacity: 1;
}

/* Linha do Tempo do Processo (Desktop e Mobile) */
.process-timeline {
    position: relative;
}
.process-timeline::before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    background: linear-gradient(to bottom, transparent, var(--primary-purple), transparent);
    width: 2px;
    left: 1rem; /* Alinhado à esquerda no mobile */
    transform: translateX(-50%);
}
@media (min-width: 768px) {
    .process-timeline::before {
        left: 50%; /* Centralizado no desktop */
    }
}