/* ===== SISTEMA DE DESIGN MODERNO - BASE ===== */

/* Reset e Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

:root {
    /* Cores */
    --primary: #00a86b;
    --primary-dark: #008a5a;
    --primary-light: #00d084;
    --secondary: #ff6b35;
    --accent: #00ff9f;
    
    --text-primary: #ffffff;
    --text-secondary: #a0a0a0;
    --text-muted: #666666;
    
    --bg-primary: #000000;
    --bg-secondary: #111111;
    --bg-tertiary: #1a1a1a;
    --bg-card: rgba(255, 255, 255, 0.05);
    --bg-card-hover: rgba(255, 255, 255, 0.08);
    
    --border: rgba(255, 255, 255, 0.1);
    --border-hover: rgba(0, 168, 107, 0.3);
    
    /* Tipografia */
    --font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-size-xs: 0.75rem;
    --font-size-sm: 0.875rem;
    --font-size-base: 1rem;
    --font-size-lg: 1.125rem;
    --font-size-xl: 1.25rem;
    --font-size-2xl: 1.5rem;
    --font-size-3xl: 1.875rem;
    --font-size-4xl: 2.25rem;
    --font-size-5xl: 3rem;
    
    /* Espaçamentos */
    --space-1: 0.25rem;
    --space-2: 0.5rem;
    --space-3: 0.75rem;
    --space-4: 1rem;
    --space-5: 1.25rem;
    --space-6: 1.5rem;
    --space-8: 2rem;
    --space-10: 2.5rem;
    --space-12: 3rem;
    --space-16: 4rem;
    --space-20: 5rem;
    
    /* Bordas */
    --radius-sm: 0.375rem;
    --radius-md: 0.5rem;
    --radius-lg: 0.75rem;
    --radius-xl: 1rem;
    --radius-2xl: 1.5rem;
    
    /* Sombras */
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px rgba(0, 0, 0, 0.1);
    --shadow-glow: 0 0 20px rgba(0, 168, 107, 0.3);
    
    /* Transições */
    --transition-fast: 0.15s ease;
    --transition-base: 0.3s ease;
    --transition-slow: 0.5s ease;
}

body {
    font-family: var(--font-family);
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    width: 100%;
    max-width: 100vw;
    position: relative;
}

* {
    max-width: 100%;
}

img {
    max-width: 100%;
    height: auto;
}

/* ===== ROLAGEM SUAVE E EFEITOS ===== */
html {
    scroll-behavior: smooth;
}

/* Barra de rolagem personalizada */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-secondary);
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    border-radius: 4px;
    transition: all var(--transition-base);
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, var(--primary-light), var(--accent));
    box-shadow: var(--shadow-glow);
}

/* Indicador de progresso da rolagem */
.barra-progresso-rolagem {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: rgba(0, 0, 0, 0.1);
    z-index: 1001;
}

.barra-progresso-rolagem-preenchimento {
    height: 100%;
    background: linear-gradient(90deg, var(--primary), var(--primary-light), var(--accent));
    width: 0%;
    transition: width 0.1s ease;
    box-shadow: var(--shadow-glow);
}

/* Background com camadas de cores profissionais */
.fundo-parallax {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    transform: translateZ(0);
    will-change: transform;
    background: 
        /* Efeito de iluminação - Luz irradiando do topo central */
        radial-gradient(ellipse at 50% 8%, rgba(0, 168, 107, 0.1) 0%, rgba(0, 168, 107, 0.05) 20%, rgba(0, 168, 107, 0.02) 40%, transparent 70%),
        /* Camada 1: Gradiente radial superior esquerdo - Verde sutil */
        radial-gradient(circle at 20% 20%, rgba(0, 168, 107, 0.04) 0%, transparent 50%),
        /* Camada 2: Gradiente radial superior direito - Verde sutil */
        radial-gradient(circle at 80% 15%, rgba(0, 255, 159, 0.03) 0%, transparent 45%),
        /* Camada 3: Gradiente radial centro - Verde sutil */
        radial-gradient(circle at 50% 50%, rgba(0, 200, 120, 0.02) 0%, transparent 60%),
        /* Camada 4: Gradiente radial inferior esquerdo - Verde sutil */
        radial-gradient(circle at 15% 85%, rgba(0, 200, 120, 0.025) 0%, transparent 40%),
        /* Camada 5: Gradiente radial inferior direito - Verde sutil */
        radial-gradient(circle at 85% 90%, rgba(0, 138, 90, 0.035) 0%, transparent 50%),
        /* Camada 6: Gradiente linear diagonal - Sutil */
        linear-gradient(135deg, rgba(0, 168, 107, 0.015) 0%, transparent 50%),
        /* Camada 7: Gradiente linear horizontal - Profundidade preta */
        linear-gradient(180deg, rgba(0, 0, 0, 0.4) 0%, rgba(0, 0, 0, 0.75) 100%),
        /* Base sólida preta */
        #000000;
    background-attachment: fixed;
    background-size: 100% 100%;
}

/* ===== ESTILOS DE FOCO ===== */
*:focus {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

/* ===== UTILITÁRIOS ===== */
.oculto {
    display: none !important;
}

.somente-leitura {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* ===== SUPORTE A MODO ESCURO ===== */
@media (prefers-color-scheme: dark) {
    :root {
        --bg-primary: #000000;
        --bg-secondary: #111111;
        --text-primary: #ffffff;
        --text-secondary: #a0a0a0;
    }
}

/* ===== REDUÇÃO DE MOVIMENTO ===== */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Manter compatibilidade com código antigo (será removido após refatoração completa) */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: rgba(0, 0, 0, 0.1);
    z-index: 1001;
}

.scroll-progress-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--primary), var(--primary-light), var(--accent));
    width: 0%;
    transition: width 0.1s ease;
    box-shadow: var(--shadow-glow);
}

.parallax-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    transform: translateZ(0);
    will-change: transform;
    background: 
        radial-gradient(ellipse at 50% 8%, rgba(0, 168, 107, 0.1) 0%, rgba(0, 168, 107, 0.05) 20%, rgba(0, 168, 107, 0.02) 40%, transparent 70%),
        radial-gradient(circle at 20% 20%, rgba(0, 168, 107, 0.04) 0%, transparent 50%),
        radial-gradient(circle at 80% 15%, rgba(0, 255, 159, 0.03) 0%, transparent 45%),
        radial-gradient(circle at 50% 50%, rgba(0, 200, 120, 0.02) 0%, transparent 60%),
        radial-gradient(circle at 15% 85%, rgba(0, 200, 120, 0.025) 0%, transparent 40%),
        radial-gradient(circle at 85% 90%, rgba(0, 138, 90, 0.035) 0%, transparent 50%),
        linear-gradient(135deg, rgba(0, 168, 107, 0.015) 0%, transparent 50%),
        linear-gradient(180deg, rgba(0, 0, 0, 0.4) 0%, rgba(0, 0, 0, 0.75) 100%),
        #000000;
    background-attachment: fixed;
    background-size: 100% 100%;
}

.hidden {
    display: none !important;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.floating-particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
    overflow: hidden;
}
