/* === CSS GLOBAL E COMUM (INDEX) === */

/* === VARIÁVEIS CSS === */
:root {
    --primary-color: #3b82f6;
    --secondary-color: #1e40af;
    --accent-color: #60a5fa;
    --gradient-1: #667eea;
    --gradient-2: #764ba2;
    --text-primary: #1f2937;
    --text-secondary: #6b7280;
    --white: #ffffff;
    --black: #000000;
    --glass-bg: rgba(255, 255, 255, 0.1);
    --glass-border: rgba(255, 255, 255, 0.2);
    --shadow-light: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-medium: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --shadow-heavy: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    --border-radius: 0.75rem;
    --transition-fast: 0.15s;
    --transition-normal: 0.3s;
    --transition-slow: 0.5s;
    
    --primary-red: #dc2626;
    --secondary-red: #ef4444;
    --light-red: #f87171;
    --red-50: #fef2f2;
    --red-100: #fee2e2;
    --red-200: #fecaca;
    --gradient-primary: linear-gradient(135deg, #dc2626, #ef4444, #f87171);
}

/* === RESET E BASE === */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: var(--text-primary);
    overflow-x: hidden;
}

/* === EFEITO DE DIGITAÇÃO === */
.typing-container {
    font-family: 'Courier New', monospace;
    border-right: 2px solid var(--primary-color);
    animation: blink 1s infinite;
    display: inline-block;
    white-space: nowrap;
}

@keyframes blink {
    0%, 50% { 
        border-color: var(--primary-color); 
    }
    51%, 100% { 
        border-color: transparent; 
    }
}

/* Typewriter Effect */
.typewriter-cursor {
    animation: blink 1s infinite;
    color: var(--primary-red);
    font-weight: bold;
}

/* Gradient Text */
.gradient-text-red {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Menu com fundo vermelho e letras brancas */
.navbar-glass {
    background: #FF0000 !important;
    backdrop-filter: none !important;
    border-bottom: 1px solid rgba(255,255,255,0.2);
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.nav-link {
    color: #ffffff !important;
    font-weight: 600;
}

.nav-link:hover {
    color: #f0f0f0 !important;
    text-shadow: 0 0 8px rgba(255,255,255,0.3);
    background: rgba(255,255,255,0.1) !important;
}

.nav-link .absolute {
    background: rgba(255,255,255,0.1) !important;
}

/* Logo text com gradiente vermelho */
.gradient-text-red {
    background: linear-gradient(135deg, #ff4444, #ff6666, #ff8888) !important;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    background-clip: text !important;
    font-weight: bold;
    text-shadow: none; /* Remove text-shadow para não interferir no gradiente */
}

/* Mobile menu com fundo vermelho */
#mobile-menu {
    background: #FF0000 !important;
    border: 1px solid rgba(255,255,255,0.2) !important;
}

.mobile-nav-link {
    color: #ffffff !important;
}

.mobile-nav-link:hover {
    color: #f0f0f0 !important;
    background: rgba(255,255,255,0.1) !important;
}

/* Botão hamburguer em branco */
#mobile-menu-button {
    color: #ffffff !important;
}

#mobile-menu-button:hover {
    color: #f0f0f0 !important;
}

/* Floating Elements */
.floating-element {
    animation: float 6s ease-in-out infinite;
}

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

/* AI Brain Animation */
.ai-brain-container {
    animation: brainPulse 3s ease-in-out infinite;
}

@keyframes brainPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

.animate-spin-slow {
    animation: spin 8s linear infinite;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Estilos para o Service Card */
.service-card {
    background: white;
    border-radius: 1rem;
    padding: 2rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    border: 1px solid var(--red-200);
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    border-color: var(--primary-red);
}

.service-icon {
    width: 4rem;
    height: 4rem;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    box-shadow: 0 10px 15px -3px rgba(220, 38, 38, 0.3);
}

/* === ANIMAÇÕES DE ENTRADA === */
.fade-in {
    opacity: 0;
    animation: fadeIn 1s ease-in-out both;
}

.fade-in-up {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 1s ease-out both;
}

.fade-in-left {
    opacity: 0;
    transform: translateX(-30px);
    animation: fadeInLeft 1s ease-out both;
}

.fade-in-right {
    opacity: 0;
    transform: translateX(30px);
    animation: fadeInRight 1s ease-out both;
}

@keyframes fadeIn {
    to {
        opacity: 1;
    }
}

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

@keyframes fadeInLeft {
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInRight {
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* === DELAYS PARA ANIMAÇÕES === */
.delay-100 { animation-delay: 0.1s; }
.delay-200 { animation-delay: 0.2s; }
.delay-300 { animation-delay: 0.3s; }
.delay-400 { animation-delay: 0.4s; }
.delay-500 { animation-delay: 0.5s; }

/* === MODO ESCURO (PREPARAÇÃO) === */
@media (prefers-color-scheme: dark) {
    :root {
        --text-primary: #f9fafb;
        --text-secondary: #d1d5db;
    }
}

/* === OTIMIZAÇÕES DE PERFORMANCE === */
.gpu-accelerated {
    transform: translateZ(0);
    backface-visibility: hidden;
    perspective: 1000px;
}

/* === SCROLLBAR PERSONALIZADA === */
::-webkit-scrollbar {
    width: 8px;
}

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

::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    border-radius: 4px;
}

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

/* === UTILITÁRIOS === */
.text-shadow {
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.no-select {
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

.full-height {
    min-height: 100vh;
}

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

/* === PRINT STYLES === */
@media print {
    .no-print {
        display: none !important;
    }
    
    .particles-container,
    .scroll-indicator {
        display: none !important;
    }
}

/* Mobile Animations */
@media (max-width: 768px) {
    .animate-fadeIn {
        animation: fadeIn 0.3s ease-out;
    }
    
    @keyframes fadeIn {
        from { opacity: 0; transform: translateY(-10px); }
        to { opacity: 1; transform: translateY(0); }
    }
}

/* Social Icons Hover */
.social-icon {
    position: relative;
}

.social-icon::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: currentColor;
    opacity: 0;
    transform: scale(0);
    transition: all 0.3s ease;
    z-index: -1;
    top: 0;
    left: 0;
}

.social-icon:hover::after {
    opacity: 0.1;
    transform: scale(1.5);
}

/* Destaque branco no título */
.matrix-highlight-white {
    color: #ffffff !important;
    text-shadow: 0 0 15px rgba(255,255,255,0.8), 0 0 8px rgba(255,255,255,0.4);
}

/* Responsividade geral */
@media (max-width: 480px) {
    .scroll-indicator {
        bottom: 1rem;
    }
    
    .service-card {
        padding: 1.5rem;
    }
    
    .stat-item {
        padding: 0.5rem;
    }
}

/* Container responsivo */
.container {
    width: 100%;
    margin-left: auto;
    margin-right: auto;
    padding-left: 1rem;
    padding-right: 1rem;
}

@media (min-width: 640px) {
    .container {
        max-width: 640px;
    }
}

@media (min-width: 768px) {
    .container {
        max-width: 768px;
        padding-left: 1.5rem;
        padding-right: 1.5rem;
    }
}

@media (min-width: 1024px) {
    .container {
        max-width: 1024px;
    }
}

@media (min-width: 1280px) {
    .container {
        max-width: 1280px;
    }
}

@media (min-width: 1536px) {
    .container {
        max-width: 1536px;
    }
}
