:root {
    /* Colors */
    --bg-dark: #050810;
    --bg-card: rgba(15, 20, 35, 0.6);
    --primary-gold: #D4AF37;
    --light-gold: #F3E5AB;
    --dark-gold: #B5952F;
    --text-light: #F0F4F8;
    --text-muted: #A0AABF;
    
    /* Typography */
    --font-heading: 'Cinzel', serif;
    --font-body: 'Outfit', sans-serif;
    
    /* Glassmorphism */
    --glass-bg: rgba(255, 255, 255, 0.03);
    --glass-border: rgba(212, 175, 55, 0.15);
    --glass-blur: 12px;
    
    /* Animations */
    --transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

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

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-light);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Typography Utilities */
h1, h2, h3, h4 {
    font-family: var(--font-heading);
    font-weight: 600;
    color: var(--primary-gold);
    line-height: 1.2;
}

p {
    margin-bottom: 1rem;
    font-size: 1.1rem;
    color: var(--text-muted);
}

a {
    text-decoration: none;
    color: inherit;
}

.text-gold {
    color: var(--primary-gold);
}

.text-center {
    text-align: center;
}

.mt-4 {
    margin-top: 2rem;
}

/* Layout Containers */
.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

.section {
    padding: 6rem 0;
}

.section-header {
    margin-bottom: 4rem;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    background: linear-gradient(to right, var(--primary-gold), var(--light-gold));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.section-subtitle {
    font-size: 1.2rem;
    max-width: 600px;
    margin: 0 auto;
}

/* Glassmorphism Classes */
.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(var(--glass-blur));
    -webkit-backdrop-filter: blur(var(--glass-blur));
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 1rem 2rem;
    border-radius: 30px;
    font-family: var(--font-body);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: var(--transition);
    font-size: 0.9rem;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-gold), var(--dark-gold));
    color: var(--bg-dark);
    border: none;
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.3);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(212, 175, 55, 0.5);
    background: linear-gradient(135deg, var(--light-gold), var(--primary-gold));
}

.btn-outline {
    background: transparent;
    color: var(--primary-gold);
    border: 1px solid var(--primary-gold);
}

.btn-outline:hover {
    background: rgba(212, 175, 55, 0.1);
    transform: translateY(-2px);
}

.btn-full {
    width: 100%;
    text-align: center;
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 1rem 0;
    z-index: 1000;
    transition: var(--transition);
    background: transparent;
}

.navbar.scrolled {
    background: rgba(5, 8, 16, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(212, 175, 55, 0.1);
    padding: 0.8rem 0;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.logo-astrum {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    color: var(--primary-gold);
    letter-spacing: 2px;
    line-height: 1;
}

.logo-sub {
    font-size: 0.7rem;
    letter-spacing: 4px;
    color: var(--text-light);
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-links a {
    font-size: 0.9rem;
    font-weight: 500;
    transition: var(--transition);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.nav-links a:hover {
    color: var(--primary-gold);
}

.hamburger {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--primary-gold);
}

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

.video-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
}

.hero-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.6;
}

.mobile-video {
    display: none;
}

.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(5,8,16,0.3) 0%, rgba(5,8,16,0.8) 100%);
    z-index: -1;
}

.hero-content {
    max-width: 800px;
    background: rgba(5, 8, 16, 0.55);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    padding: 3rem;
    border-radius: 16px;
    border: 1px solid rgba(212, 175, 55, 0.2);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
    
    /* Configuração para Sincronia de Vídeo */
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s cubic-bezier(0.25, 0.8, 0.25, 1), transform 0.6s cubic-bezier(0.25, 0.8, 0.25, 1);
    pointer-events: none;
}

.hero-content.visible {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.hero-title {
    font-size: 4rem;
    margin-bottom: 1.5rem;
    text-shadow: 0 4px 20px rgba(0,0,0,0.8);
}

.hero-subtitle {
    font-size: 1.5rem;
    color: var(--text-light);
    margin-bottom: 2.5rem;
    text-shadow: 0 2px 10px rgba(0,0,0,0.8);
}

/* Problem vs Solution */
.split-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.mission-box {
    margin-top: 2rem;
    padding: 1.5rem;
    border-left: 3px solid var(--primary-gold);
    background: linear-gradient(90deg, rgba(212,175,55,0.05) 0%, transparent 100%);
}

.mission-box i {
    color: var(--primary-gold);
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.mission-box p {
    color: var(--text-light);
    margin: 0;
}

.image-card {
    padding: 1rem;
}

.image-card img {
    width: 100%;
    border-radius: 8px;
    display: block;
}

/* Portfolio */
.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.portfolio-item {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    height: 300px;
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(0,0,0,0.3);
}

/* Caso a primeira seja o vídeo, ele pode ocupar 2 colunas em telas maiores (opcional) */
@media (min-width: 768px) {
    .video-item {
        grid-column: span 2;
    }
}

.portfolio-media {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.portfolio-item.active .portfolio-media {
    transform: scale(1.05);
}

.portfolio-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(5,8,16,0.4);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    opacity: 1; /* Mostra o overlay inicialmente no video, mas imagens podem ser diferentes. Vamos padronizar. */
    transition: opacity 0.3s ease;
}

/* Mostra o ícone normalmente, esconde quando ativo (reproduzindo/ampliado) */
.portfolio-item.active .portfolio-overlay {
    opacity: 0;
}

.portfolio-overlay i {
    font-size: 3rem;
    color: var(--text-light);
    transition: transform 0.3s ease;
}

.overlay-text {
    color: var(--text-light);
    margin-top: 10px;
    font-weight: 500;
    font-size: 1.1rem;
}

.portfolio-item:not(.active):hover .portfolio-overlay i {
    transform: scale(1.1);
}

.highlight-text {
    font-size: 1.2rem;
    color: var(--primary-gold);
    font-style: italic;
}

/* Diferenciais */
.features-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

.feature-card {
    padding: 2.5rem;
    transition: var(--transition);
}

.feature-card:hover {
    transform: translateY(-5px);
    border-color: rgba(212, 175, 55, 0.4);
}

.feature-icon {
    font-size: 2.5rem;
    color: var(--primary-gold);
    margin-bottom: 1.5rem;
}

.feature-card h3 {
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

/* Equipe e DNA */
.split-content.reverse {
    direction: rtl;
}

.split-content.reverse > * {
    direction: ltr;
}

.dna-list {
    list-style: none;
    margin-top: 1.5rem;
}

.dna-list li {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 1.5rem;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.02);
    border-left: 3px solid var(--primary-gold);
    border-radius: 0 8px 8px 0;
    transition: var(--transition);
}

.dna-list li:hover {
    background: rgba(255, 255, 255, 0.05);
    transform: translateX(10px);
}

.dna-list i {
    font-size: 1.5rem;
    margin-top: 4px;
    width: 30px;
    text-align: center;
}

.dna-list div {
    flex: 1;
}

.dna-list strong {
    color: var(--text-light);
    display: block;
    margin-bottom: 4px;
    font-family: var(--font-heading);
    font-size: 1.1rem;
}

/* Pricing */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    align-items: center;
}

.pricing-card {
    padding: 0;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 100%;
    transition: transform 0.4s ease, border-color 0.4s ease, box-shadow 0.4s ease;
    border: 1px solid var(--glass-border);
}

.pricing-card:hover {
    transform: translateY(-10px);
    border-color: var(--primary-gold);
    box-shadow: 0 15px 50px rgba(212, 175, 55, 0.25);
    z-index: 5;
}

.pricing-card.highlight {
    transform: scale(1.05);
    border-color: var(--primary-gold);
    box-shadow: 0 10px 40px rgba(212, 175, 55, 0.15);
    z-index: 2;
}

.pricing-card.highlight:hover {
    transform: scale(1.05) translateY(-10px);
}

/* Apaga o destaque do card central quando o mouse ilumina os outros */
.pricing-grid:hover .pricing-card.highlight:not(:hover) {
    transform: scale(1) translateY(0);
    border-color: var(--glass-border);
    box-shadow: 0 4px 20px rgba(0,0,0,0.3);
    z-index: 1;
}

.pricing-grid:hover .pricing-card.highlight:not(:hover) .btn-primary {
    background: transparent;
    color: var(--primary-gold);
    border: 1px solid var(--primary-gold);
    box-shadow: none;
}

.pricing-badge {
    position: absolute;
    top: 15px;
    right: -35px;
    background: var(--primary-gold);
    color: var(--bg-dark);
    padding: 5px 40px;
    transform: rotate(45deg);
    font-weight: bold;
    font-size: 0.8rem;
    z-index: 10;
}

.pricing-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
}

.pricing-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.pricing-card:hover .pricing-image img {
    transform: scale(1.08);
}

.pricing-card:hover .btn-outline {
    background: linear-gradient(135deg, var(--primary-gold), var(--dark-gold));
    color: var(--bg-dark);
    border-color: transparent;
}

.pricing-content {
    padding: 2rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.pricing-content h3 {
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
    text-align: center;
}

.pricing-desc {
    text-align: center;
    font-size: 0.9rem;
    margin-bottom: 2rem;
    height: 40px;
}

.pricing-features {
    list-style: none;
    margin-bottom: 2.5rem;
    flex-grow: 1;
}

.pricing-features li {
    margin-bottom: 1rem;
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.pricing-features i {
    margin-top: 5px;
    font-size: 0.9rem;
}

/* Como Funciona - Timeline */
.timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.timeline::after {
    content: '';
    position: absolute;
    width: 2px;
    background: rgba(212, 175, 55, 0.3);
    top: 0;
    bottom: 0;
    left: 50%;
    margin-left: -1px;
}

.timeline-item {
    padding: 10px 40px;
    position: relative;
    background-color: inherit;
    width: 50%;
    margin-bottom: 2rem;
}

.timeline-item:nth-child(odd) {
    left: 0;
}

.timeline-item:nth-child(even) {
    left: 50%;
}

.timeline-number {
    position: absolute;
    width: 40px;
    height: 40px;
    right: -20px;
    background-color: var(--bg-dark);
    border: 2px solid var(--primary-gold);
    top: 15px;
    border-radius: 50%;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-heading);
    color: var(--primary-gold);
    font-weight: bold;
    font-size: 1.2rem;
}

.timeline-item:nth-child(even) .timeline-number {
    left: -20px;
}

.timeline-content {
    padding: 2rem;
    position: relative;
}

/* FAQ */
.faq-container {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    margin-bottom: 1rem;
    border: 1px solid var(--glass-border);
    border-radius: 8px;
    background: var(--glass-bg);
    overflow: hidden;
}

.faq-question {
    padding: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    font-family: var(--font-heading);
    font-size: 1.1rem;
    color: var(--primary-gold);
    transition: var(--transition);
}

.faq-question:hover {
    background: rgba(212, 175, 55, 0.05);
}

.faq-question i {
    transition: var(--transition);
}

.faq-item.active .faq-question i {
    transform: rotate(180deg);
}

.faq-answer {
    padding: 0 1.5rem;
    max-height: 0;
    overflow: hidden;
    transition: var(--transition);
}

.faq-item.active .faq-answer {
    padding: 0 1.5rem 1.5rem 1.5rem;
    max-height: 300px; /* arbitrary large value */
}

/* Footer */
.footer {
    border-top: 1px solid var(--glass-border);
    padding: 4rem 0 2rem;
    background: #020408;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 2rem;
    margin-bottom: 3rem;
}

.footer-brand {
    max-width: 300px;
}

.footer-brand .logo {
    align-items: flex-start;
    margin-bottom: 1rem;
}

.footer-links h4 {
    margin-bottom: 1.5rem;
    color: var(--text-light);
}

.footer-links p {
    margin-bottom: 0.8rem;
}

.footer-links i {
    color: var(--primary-gold);
    margin-right: 10px;
    width: 20px;
    text-align: center;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255,255,255,0.05);
    font-size: 0.9rem;
}

/* Floating WhatsApp */
.floating-whatsapp {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background-color: #25D366;
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
    z-index: 1000;
    transition: var(--transition);
}

.floating-whatsapp:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.6);
}

/* Animations */
.reveal-text {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 1s forwards;
}

.delay-1 { animation-delay: 0.2s; }
.delay-2 { animation-delay: 0.4s; }

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

.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-in.appear {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive */
@media (max-width: 992px) {
    .hero-title { font-size: 3rem; }
    .split-content { grid-template-columns: 1fr; gap: 3rem; text-align: center; }
    .mission-box { text-align: left; }
    .pricing-grid { grid-template-columns: 1fr; max-width: 500px; margin: 0 auto; }
    .pricing-card.highlight { transform: scale(1); }
    
    .timeline::after { left: 31px; }
    .timeline-item { width: 100%; padding-left: 70px; padding-right: 0; }
    .timeline-item:nth-child(even) { left: 0%; }
    .timeline-number { left: 11px !important; }
}

@media (max-width: 768px) {
    .desktop-video { display: none; }
    .mobile-video { display: block; }
    .nav-links { display: none; }
    .nav-btn { display: none; }
    
    .nav-links.active {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: rgba(10, 10, 10, 0.95);
        padding: 2rem;
        gap: 1.5rem;
        border-bottom: 1px solid var(--gold-primary);
        z-index: 1000;
        text-align: center;
        backdrop-filter: blur(10px);
    }
    .hamburger { display: block; }
    .hero-title { font-size: 2.5rem; }
    .hero-subtitle { font-size: 1.2rem; }
    .portfolio-grid { grid-template-columns: repeat(2, 1fr); }
    .features-grid { grid-template-columns: 1fr; }
    .footer-content { flex-direction: column; }
}

@media (max-width: 480px) {
    .portfolio-grid { grid-template-columns: 1fr; }
}

/* Lightbox Modal */
.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(5, 8, 16, 0.95);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.lightbox.active {
    opacity: 1;
    pointer-events: auto;
}

.lightbox-content {
    max-width: 90%;
    max-height: 90vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox-content img, .lightbox-content video {
    max-width: 100%;
    max-height: 90vh;
    border-radius: 8px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.5);
    object-fit: contain;
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 30px;
    font-size: 2.5rem;
    color: var(--text-light);
    cursor: pointer;
    z-index: 10000;
    transition: color 0.3s ease;
}

.lightbox-close:hover {
    color: var(--primary-gold);
}

.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0,0,0,0.5);
    color: var(--text-light);
    border: none;
    font-size: 2rem;
    padding: 15px 20px;
    cursor: pointer;
    z-index: 10000;
    border-radius: 50%;
    transition: background 0.3s ease, color 0.3s;
}

.lightbox-nav:hover {
    background: var(--primary-gold);
    color: #000;
}

.lightbox-prev {
    left: 20px;
}

.lightbox-next {
    right: 20px;
}

/* --- MOBILE FIXES (Colors and Zoom) --- */
@media (max-width: 768px) {
    .section-title {
        background: none !important;
        -webkit-background-clip: unset !important;
        -webkit-text-fill-color: unset !important;
        color: var(--primary-gold) !important;
        text-shadow: 0 2px 4px rgba(0,0,0,0.5);
    }
    
    .portfolio-item, .pricing-image {
        height: auto !important;
        background-color: transparent !important;
    }
    
    .portfolio-media, .pricing-image img {
        height: auto !important;
        object-fit: contain !important;
        display: block;
    }
}

