/* ===== VARIÁVEIS E BASE (DARK GALAXY THEME) ===== */
:root {
    --primary: #3b82f6; /* Azul vibrante */
    --primary-light: #60a5fa;
    --primary-dark: #1d4ed8;
    --secondary: #f8fafc; /* Branco para títulos */
    --bg-main: #020617; /* Fundo escuro (espaço) */
    --bg-card: rgba(15, 23, 42, 0.6); /* Cards translúcidos */
    --text-main: #cbd5e1; /* Texto claro */
    --text-light: #94a3b8; /* Texto secundário */
    --transition-fast: 0.2s ease;
    --transition-smooth: 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
    scroll-behavior: smooth;
    font-family: 'Plus Jakarta Sans', sans-serif;
    color: var(--text-main);
    background-color: var(--bg-main);
}

body {
    overflow-x: hidden;
}

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

ul {
    list-style: none;
}

/* ===== FUNDO PARTÍCULAS ===== */
#particles-js {
    position: fixed;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: -1;
    background-color: var(--bg-main);
}

/* ===== TIPOGRAFIA E UTILITÁRIOS ===== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 5%;
}

.section-padding {
    padding: 6rem 0;
}

.bg-light {
    background-color: rgba(15, 23, 42, 0.3);
    backdrop-filter: blur(5px);
}

h1, h2, h3 {
    color: var(--secondary);
    line-height: 1.2;
}

.highlight {
    color: var(--primary);
    text-shadow: 0 0 20px rgba(59, 130, 246, 0.4);
}

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

/* ===== BOTÕES ===== */
.btn-primary, .btn-secondary, .btn-primary-outline, .btn-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.8rem 1.8rem;
    border-radius: 8px;
    font-weight: 600;
    transition: var(--transition-smooth);
    cursor: pointer;
}

.btn-primary {
    background: var(--primary);
    color: white;
    border: 2px solid var(--primary);
    box-shadow: 0 0 15px rgba(59, 130, 246, 0.3);
}

.btn-primary:hover {
    background: var(--primary-light);
    border-color: var(--primary-light);
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(96, 165, 250, 0.4);
}

.btn-secondary {
    background: transparent;
    color: var(--text-main);
    border: 2px solid rgba(255,255,255,0.2);
}

.btn-secondary:hover {
    color: var(--primary-light);
    border-color: var(--primary-light);
}

.btn-primary-outline {
    background: transparent;
    color: var(--primary-light);
    border: 2px solid var(--primary-light);
    padding: 0.5rem 1.2rem;
}

.btn-primary-outline:hover {
    background: var(--primary-light);
    color: white;
}

.btn-link {
    padding: 0;
    color: var(--primary-light);
    font-weight: 700;
}

.btn-link i {
    transition: transform var(--transition-fast);
}

.btn-link:hover i {
    transform: translateX(4px) translateY(-4px);
}

/* ===== NAVEGAÇÃO ===== */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(2, 6, 23, 0.8);
    backdrop-filter: blur(15px);
    z-index: 1000;
    padding: 1rem 0;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    transition: var(--transition-smooth);
}

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

.logo {
    font-size: 1.6rem;
    font-weight: 800;
    font-family: 'Nunito', sans-serif;
    color: var(--secondary);
    letter-spacing: -0.5px;
}

.logo span {
    color: var(--primary);
}

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

.nav-links a {
    font-weight: 600;
    color: var(--text-main);
    transition: var(--transition-fast);
    position: relative;
}

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

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0%;
    height: 2px;
    background: var(--primary-light);
    transition: var(--transition-smooth);
}

.nav-links a:hover::after {
    width: 100%;
}

/* ===== HERO SECTION ===== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 80px;
    position: relative;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.badge {
    display: inline-block;
    padding: 0.4rem 1rem;
    background: rgba(59, 130, 246, 0.15);
    color: var(--primary-light);
    font-size: 0.85rem;
    font-weight: 700;
    border-radius: 50px;
    margin-bottom: 1.5rem;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    border: 1px solid rgba(59, 130, 246, 0.3);
}

.hero h1 {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    letter-spacing: -1px;
}

.hero p {
    font-size: 1.2rem;
    color: var(--text-light);
    margin-bottom: 2rem;
    line-height: 1.6;
    max-width: 90%;
}

.hero-actions {
    display: flex;
    gap: 1rem;
}

/* Abstract visual elements for Hero */
.hero-visual {
    position: relative;
    height: 400px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.abstract-shape {
    width: 300px;
    height: 300px;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.4), rgba(29, 78, 216, 0.2));
    border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    animation: morph 8s ease-in-out infinite;
    position: relative;
    box-shadow: 0 0 50px rgba(59, 130, 246, 0.3);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.1);
}

.glass-card {
    position: absolute;
    background: rgba(15, 23, 42, 0.7);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255,255,255,0.15);
    padding: 1rem 1.5rem;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 1rem;
    font-weight: 700;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    top: -20px;
    left: -40px;
    animation: float 4s ease-in-out infinite;
    color: white;
}

.glass-card i {
    font-size: 1.5rem;
    color: var(--primary-light);
}

.glass-card.float-delayed {
    top: auto;
    bottom: -10px;
    left: auto;
    right: -40px;
    animation-delay: 2s;
}

@keyframes morph {
    0% { border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%; }
    50% { border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%; transform: translateY(-10px); }
    100% { border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%; }
}

@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-15px); }
    100% { transform: translateY(0px); }
}

/* ===== HEADERS DAS SEÇÕES ===== */
.section-header {
    margin-bottom: 4rem;
    max-width: 600px;
}

.section-header h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.section-header .subtitle {
    font-size: 1.1rem;
    color: var(--text-light);
}

/* ===== SOBRE ===== */
.sobre-content {
    display: grid;
    grid-template-columns: 3fr 2fr;
    gap: 4rem;
    align-items: center;
}

.sobre-text p {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    line-height: 1.7;
}

.stats-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.stat-card {
    background: var(--bg-card);
    padding: 2rem;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    border: 1px solid rgba(255,255,255,0.05);
    backdrop-filter: blur(10px);
    text-align: center;
    transition: var(--transition-smooth);
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(59, 130, 246, 0.15);
    border-color: rgba(59, 130, 246, 0.3);
}

.stat-card h3 {
    font-size: 3rem;
    color: var(--primary-light);
    margin-bottom: 0.5rem;
    text-shadow: 0 0 15px rgba(59, 130, 246, 0.3);
}

.stat-card span {
    font-weight: 600;
    color: var(--text-main);
}

/* ===== SOLUÇÕES ===== */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.solution-card {
    background: var(--bg-card);
    backdrop-filter: blur(10px);
    padding: 2.5rem 2rem;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    transition: var(--transition-smooth);
    border-top: 4px solid rgba(255,255,255,0.05);
    border-left: 1px solid rgba(255,255,255,0.05);
    border-right: 1px solid rgba(255,255,255,0.05);
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.solution-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 50px rgba(59, 130, 246, 0.15);
    border-top-color: var(--primary-light);
}

.card-icon {
    width: 60px;
    height: 60px;
    background: rgba(59, 130, 246, 0.15);
    border-radius: 12px;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 1.5rem;
    border: 1px solid rgba(59, 130, 246, 0.3);
}

.card-icon i {
    font-size: 2rem;
    color: var(--primary-light);
}

.solution-card h3 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: white;
}

.solution-card p {
    color: var(--text-light);
    line-height: 1.6;
}

/* ===== CASES ===== */
.case-study {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.case-study.reversed {
    grid-template-columns: 1fr 1fr;
    direction: rtl; 
}
.case-study.reversed > * {
    direction: ltr;
}

.case-info .tag {
    display: inline-block;
    color: var(--primary-light);
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 1px;
    margin-bottom: 1rem;
    padding: 0.3rem 0.8rem;
    background: rgba(59, 130, 246, 0.15);
    border-radius: 50px;
}

.case-info h3 {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: white;
}

.case-info p {
    color: var(--text-light);
    line-height: 1.7;
    margin-bottom: 2rem;
}

.case-techs {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 2rem;
}

.case-techs span {
    padding: 0.4rem 1rem;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-main);
}

.case-image {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0,0,0,0.5);
    aspect-ratio: 16/10;
    border: 1px solid rgba(255,255,255,0.05);
}

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

.case-image img.dashboard-img {
    object-position: top center; /* Ajuste para não cortar o topo do painel */
}

.image-placeholder {
    width: 100%;
    height: 100%;
    background: #0f172a;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.bg-pattern {
    background: linear-gradient(135deg, rgba(255,255,255,0.03) 25%, transparent 25%) -50px 0,
                linear-gradient(225deg, rgba(255,255,255,0.03) 25%, transparent 25%) -50px 0,
                linear-gradient(315deg, rgba(255,255,255,0.03) 25%, transparent 25%),
                linear-gradient(45deg, rgba(255,255,255,0.03) 25%, transparent 25%);
    background-size: 100px 100px;
    background-color: #0f172a;
}

.bg-pattern i {
    font-size: 4rem;
    color: rgba(255,255,255,0.1);
}

.overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(2, 6, 23, 0.85);
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity var(--transition-smooth);
}

.overlay .btn-link {
    color: white;
    font-size: 1.2rem;
    text-shadow: 0 0 10px rgba(255,255,255,0.5);
}

.case-image:hover img {
    transform: scale(1.05);
}

.case-image:hover .overlay {
    opacity: 1;
}

/* ===== ARSENAL TÉCNICO ===== */
.tecnologias .section-header {
    margin: 0 auto 4rem auto;
}

.tech-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    max-width: 800px;
    margin: 0 auto;
}

.tech-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    padding: 2rem;
    background: var(--bg-card);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    border: 1px solid rgba(255,255,255,0.05);
    transition: var(--transition-smooth);
}

.tech-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(59, 130, 246, 0.2);
    border-color: rgba(59, 130, 246, 0.3);
    color: white;
}

.tech-item i {
    font-size: 2.5rem;
    color: var(--primary-light);
    filter: drop-shadow(0 0 10px rgba(59, 130, 246, 0.4));
}

.tech-item span {
    font-weight: 700;
}

/* ===== FOOTER & CTA ===== */
.footer {
    background: rgba(2, 6, 23, 0.9);
    backdrop-filter: blur(20px);
    color: white;
    padding-bottom: 2rem;
    position: relative;
    border-top: 1px solid rgba(255,255,255,0.05);
}

.cta-box {
    background: linear-gradient(135deg, rgba(29, 78, 216, 0.8), rgba(15, 23, 42, 0.9));
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255,255,255,0.1);
    padding: 5rem 3rem;
    border-radius: 24px;
    text-align: center;
    margin-top: -10rem; 
    margin-bottom: 4rem;
    box-shadow: 0 30px 60px rgba(0,0,0,0.6);
}

.cta-box h2 {
    color: white;
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.cta-box p {
    color: rgba(255,255,255,0.8);
    font-size: 1.2rem;
    max-width: 600px;
    margin: 0 auto 2rem auto;
}

.cta-btn {
    background: white;
    color: var(--bg-main);
    font-size: 1.1rem;
    padding: 1rem 2.5rem;
    border: none;
    box-shadow: 0 0 20px rgba(255,255,255,0.2);
}

.cta-btn:hover {
    background: var(--text-main);
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(255,255,255,0.3);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255,255,255,0.1);
}

.footer-bottom p {
    color: rgba(255,255,255,0.5);
}

.social-links {
    display: flex;
    gap: 1.5rem;
}

.social-links a {
    color: white;
    font-size: 1.5rem;
    transition: var(--transition-fast);
    opacity: 0.7;
}

.social-links a:hover {
    color: var(--primary-light);
    transform: translateY(-2px);
    opacity: 1;
}

/* ===== BOTÃO WHATSAPP FLUTUANTE ===== */
.fab-whatsapp {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: #25D366;
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 2rem;
    box-shadow: 0 10px 30px rgba(37, 211, 102, 0.4);
    z-index: 1000;
    transition: var(--transition-smooth);
    animation: pulse 2s infinite;
}

.fab-whatsapp:hover {
    transform: scale(1.1) translateY(-5px);
    background: #20bd5a;
}

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.6); }
    70% { box-shadow: 0 0 0 20px rgba(37, 211, 102, 0); }
    100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}

/* ===== ANIMAÇÕES DE SCROLL (REVEAL) ===== */
.reveal-up {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-left {
    opacity: 0;
    transform: translateX(-40px);
    transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-right {
    opacity: 0;
    transform: translateX(40px);
    transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-up.active, .reveal-left.active, .reveal-right.active {
    opacity: 1;
    transform: translate(0);
}

/* ===== RESPONSIVIDADE ===== */
@media (max-width: 992px) {
    .hero-content, .sobre-content, .case-study, .case-study.reversed {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .hero {
        padding-top: 120px;
        text-align: center;
    }
    
    .hero h1 {
        font-size: 2.8rem;
    }
    
    .hero p {
        margin: 0 auto 2rem auto;
    }
    
    .hero-actions {
        justify-content: center;
    }
    
    .cards-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .tech-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }
    
    .cards-grid, .tech-grid, .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
}
