/* ==========================================================================
   1. CONFIGURAÇÕES GLOBAIS & VARIÁVEIS
   ========================================================================== */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800&display=swap');

:root {
    --primary: #1e3a8a;
    /* Deep Blue */
    --accent: #10b981;
    /* Emerald */
    --accent-light: #6ee7b7;
    --text-main: #1f2937;
    --text-muted: #6b7280;
    --bg-light: #f8fafc;
    --transition-slow: cubic-bezier(0.85, 0, 0.15, 1);
}

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

body {
    font-family: 'Poppins', sans-serif;
    background-color: var(--bg-light);
    color: var(--text-main);
    overflow-x: hidden;
    scroll-behavior: smooth;
}

/* Scrollbar Personalizada (Awwwards Style) */
::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--accent);
}

/* ==========================================================================
   2. NAVEGAÇÃO MODERNA (DESKTOP & MOBILE OVERLAY)
   ========================================================================== */
#main-nav {
    transition: all 0.4s var(--transition-slow);
}

.nav-scrolled {
    background: rgba(0, 0, 0, 0.25);
    backdrop-filter: blur(20px);
    padding: 1rem 0 !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.nav-link {
    position: relative;
    overflow: hidden;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent);
    transition: width 0.3s ease;
}

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

.nav-link.active {
    color: var(--accent) !important;
}

.nav-link.active::after {
    width: 100%;
}

/* Garante que o ícone de hambúrguer se transforma num X */
#menu-toggle.active #bar1 {
    transform: translateY(8px) rotate(45deg);
}

#menu-toggle.active #bar2 {
    opacity: 0;
}

#menu-toggle.active #bar3 {
    transform: translateY(-8px) rotate(-45deg);
}

/* Estado inicial dos links (mais visíveis mas suaves) */
.overlay-link {
    -webkit-text-stroke: 1px rgba(255, 255, 255, 0.2);
    color: rgba(255, 255, 255, 0.1);
    /* Texto levemente visível */
    transition: all 0.6s var(--transition-slow);
    display: inline-block;
    position: relative;
}

/* Quando o overlay ganha a classe .active (através do JS), os links mudam de cor */
#menu-overlay.active .overlay-link {
    color: #1e3a8a;
    /* Cor principal quando o menu abre */
    -webkit-text-stroke: 0px transparent;
}

/* Efeito ao passar o rato (Hover) */
.overlay-link:hover {
    color: var(--accent) !important;
    /* Muda para Esmeralda no hover */
    transform: translateX(20px);
}

/* Menu Overlay Fullscreen */
#menu-overlay {
    clip-path: circle(0% at 100% 0%);
    transition: clip-path 0.8s var(--transition-slow);
}

#menu-overlay.active {
    clip-path: circle(150% at 100% 0%);
}

/* ==========================================================================
   3. HERO & ANIMAÇÕES DE TEXTO
   ========================================================================== */
.hero-bg {
    background: linear-gradient(135deg, #0f172a 0%, #1e3a8a 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
}

.animate-shimmer {
    background: linear-gradient(90deg, #ffffff 0%, #10b981 50%, #ffffff 100%);
    background-size: 200% auto;
    -webkit-background-clip: text;
    background-clip: text;
    animation: shimmer 4s linear infinite;
}

@keyframes shimmer {
    to {
        background-position: 200% center;
    }
}

/* ==========================================================================
   4. COMPONENTES (CARDS & SECTIONS)
   ========================================================================== */
.section {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.8s var(--transition-slow);
}

.section.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Service Cards com Glassmorphism */
.service-card {
    background: white;
    border: 1px solid rgba(0, 0, 0, 0.05);
    border-radius: 24px;
    padding: 40px;
    transition: all 0.4s var(--transition-slow);
}

.service-card:hover {
    transform: translateY(-12px);
    box-shadow: 0 20px 40px rgba(30, 58, 138, 0.1);
    border-color: var(--accent-light);
}

/* Timeline/Milestones Style */
.timeline-item {
    position: relative;
    padding-left: 40px;
    border-left: 2px solid #e2e8f0;
    margin-bottom: 40px;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -9px;
    top: 0;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--accent);
    border: 4px solid white;
    box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.1);
}

/* ==========================================================================
   5. BOTÕES & INTERAÇÕES
   ========================================================================== */
.btn-modern {
    padding: 14px 32px;
    border-radius: 100px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn-modern::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0%;
    height: 100%;
    background: rgba(255, 255, 255, 0.1);
    transition: width 0.3s ease;
    z-index: -1;
}

.btn-modern:hover::before {
    width: 100%;
}

/* Back to Top Button */
#backToTopBtn {
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

/* ==========================================================================
   6. CONTACTO & FOOTER
   ========================================================================== */
input,
textarea {
    background: #f1f5f9 !important;
    border: 2px solid transparent !important;
    border-radius: 12px !important;
    padding: 16px !important;
    transition: all 0.3s ease !important;
}

input:focus,
textarea:focus {
    background: white !important;
    border-color: var(--accent) !important;
    box-shadow: 0 10px 20px rgba(16, 185, 129, 0.05) !important;
    outline: none;
}

footer {
    background: #0f172a;
    position: relative;
}

footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
}

/* ==========================================================================
   7. RESPONSIVIDADE (MOBILE ADJUSTMENTS)
   ========================================================================== */
@media (max-width: 768px) {
    .overlay-link {
        font-size: 3rem !important;
    }

    .section {
        padding: 60px 0;
    }

    h1 {
        font-size: 2.5rem !important;
    }
}

/* Efeito de fade nas bordas do carrossel */
#partners .relative::before,
#partners .relative::after {
    content: "";
    position: absolute;
    top: 0;
    width: 150px;
    height: 100%;
    z-index: 2;
    pointer-events: none;
}

#partners .relative::before {
    left: 0;
    background: linear-gradient(to right, white, transparent);
}

#partners .relative::after {
    right: 0;
    background: linear-gradient(to left, white, transparent);
}

/* Pausa o scroll ao passar o mouse para facilitar a visualização */
.group:hover .animate-infinite-scroll {
    animation-play-state: paused;
}