/* ===================================
   CYBERPRTABLE - ESTILOS CYBERPUNK MODERNO
   =================================== */

/* Variáveis de Cor - Tema Cyberpunk Avançado */
:root {
    --bg-primary: #0a0a0f;
    --bg-secondary: #0f0f1a;
    --bg-tertiary: #1a1a2e;
    --bg-card: #16213e;
    --bg-card-hover: #0f3460;
    --bg-glass: rgba(22, 33, 62, 0.7);
    
    --border-primary: #2d3561;
    --border-accent: #00ff88;
    --border-glow: rgba(0, 255, 136, 0.5);
    
    --text-primary: #ffffff;
    --text-secondary: #e8e8e8;
    --text-muted: #9ca3af;
    --text-dim: #6b7280;
    
    --accent-primary: #00ff88;
    --accent-secondary: #00d4ff;
    --accent-tertiary: #ff00ff;
    --accent-warning: #ffaa00;
    --accent-danger: #ff3366;
    
    --gradient-primary: linear-gradient(135deg, #00ff88, #00d4ff);
    --gradient-secondary: linear-gradient(135deg, #ff00ff, #00d4ff);
    --gradient-danger: linear-gradient(135deg, #ff3366, #ff6b6b);
    --gradient-warning: linear-gradient(135deg, #ffaa00, #ffcc00);
    
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.15);
    --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.2);
    --shadow-xl: 0 16px 48px rgba(0, 0, 0, 0.3);
    
    --shadow-glow-sm: 0 0 10px rgba(0, 255, 136, 0.3);
    --shadow-glow-md: 0 0 20px rgba(0, 255, 136, 0.4);
    --shadow-glow-lg: 0 0 40px rgba(0, 255, 136, 0.6);
    --shadow-glow-xl: 0 0 60px rgba(0, 255, 136, 0.8);
    
    --shadow-cyber: 0 0 30px rgba(0, 255, 136, 0.4), 
                    0 0 60px rgba(0, 212, 255, 0.2),
                    inset 0 0 20px rgba(0, 255, 136, 0.1);
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    min-height: 100vh;
    position: relative;
}

/* Background Animated */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 20%, rgba(0, 255, 136, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(0, 212, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 50% 50%, rgba(255, 0, 255, 0.05) 0%, transparent 70%);
    z-index: -2;
    animation: background-pulse 20s ease-in-out infinite;
}

@keyframes background-pulse {
    0%, 100% { opacity: 0.5; }
    50% { opacity: 1; }
}

/* Grid Pattern Overlay */
body::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(rgba(0, 255, 136, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 255, 136, 0.03) 1px, transparent 1px);
    background-size: 50px 50px;
    z-index: -1;
    animation: grid-move 30s linear infinite;
}

@keyframes grid-move {
    0% { transform: translate(0, 0); }
    100% { transform: translate(50px, 50px); }
}

/* Scrollbar Personalizada */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

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

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

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

/* Sistema de Idiomas */
html[lang="pt"] .en { 
    display: none !important; 
    visibility: hidden !important;
    opacity: 0 !important;
}
html[lang="en"] .pt { 
    display: none !important; 
    visibility: hidden !important;
    opacity: 0 !important;
}

html[lang="pt"] .pt { 
    display: block !important; 
    visibility: visible !important;
    opacity: 1 !important;
}
html[lang="en"] .en { 
    display: block !important; 
    visibility: visible !important;
    opacity: 1 !important;
}

/* ===================================
   NAVBAR CYBERPUNK
   =================================== */
nav {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    z-index: 9999 !important;
    background: var(--bg-glass) !important;
    backdrop-filter: blur(20px) saturate(180%) !important;
    border-bottom: 1px solid var(--border-primary) !important;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1) !important;
    box-shadow: var(--shadow-md) !important;
}

nav.scrolled {
    background: rgba(10, 10, 15, 0.95) !important;
    box-shadow: var(--shadow-cyber) !important;
    border-bottom: 1px solid var(--border-accent) !important;
}

nav::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: var(--gradient-primary);
    opacity: 0;
    transition: opacity 0.3s ease;
}

nav.scrolled::before {
    opacity: 1;
}

/* Logo Styles */
.logo-img {
    height: auto;
    width: 180px;
    transition: all 0.3s ease;
    filter: drop-shadow(0 0 10px rgba(0, 255, 136, 0.3));
}

.logo-img:hover {
    transform: scale(1.05);
    filter: drop-shadow(0 0 20px rgba(0, 255, 136, 0.6));
}

/* Navigation Links */
nav a {
    color: var(--text-secondary) !important;
    text-decoration: none !important;
    font-weight: 500 !important;
    font-size: 0.95rem !important;
    padding: 0.5rem 1rem !important;
    border-radius: 8px !important;
    transition: all 0.3s ease !important;
    position: relative !important;
    overflow: hidden !important;
}

nav a::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: var(--gradient-primary);
    transition: left 0.3s ease;
    z-index: -1;
}

nav a:hover {
    color: var(--bg-primary) !important;
    transform: translateY(-2px) !important;
}

nav a:hover::before {
    left: 0;
}

/* Language Switch */
.lang-switch {
    background: var(--bg-card) !important;
    border: 2px solid var(--border-primary) !important;
    color: var(--text-primary) !important;
    padding: 0.5rem 1rem !important;
    border-radius: 24px !important;
    cursor: pointer !important;
    font-weight: 600 !important;
    font-size: 0.9rem !important;
    display: flex !important;
    align-items: center !important;
    gap: 0.5rem !important;
    transition: all 0.3s ease !important;
    position: relative !important;
    overflow: hidden !important;
}

.lang-switch::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: var(--gradient-primary);
    transition: left 0.3s ease;
    z-index: -1;
}

.lang-switch:hover {
    border-color: var(--accent-primary) !important;
    color: var(--bg-primary) !important;
    transform: translateY(-2px) !important;
    box-shadow: var(--shadow-glow-md) !important;
}

.lang-switch:hover::before {
    left: 0;
}

/* ===================================
   HERO SECTION CYBERPUNK
   =================================== */
.hero-gradient {
    background: 
        radial-gradient(ellipse at top, rgba(0, 255, 136, 0.15) 0%, transparent 50%),
        radial-gradient(ellipse at bottom, rgba(0, 212, 255, 0.1) 0%, transparent 50%),
        linear-gradient(180deg, var(--bg-primary) 0%, var(--bg-secondary) 100%);
    position: relative;
    overflow: hidden;
}

.hero-gradient::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="cyber-grid" width="20" height="20" patternUnits="userSpaceOnUse"><path d="M 20 0 L 0 0 0 20" fill="none" stroke="%2300ff88" stroke-width="0.2" opacity="0.3"/><circle cx="10" cy="10" r="1" fill="%2300ff88" opacity="0.5"/></pattern></defs><rect width="100" height="100" fill="url(%23cyber-grid)"/></svg>');
    opacity: 0.1;
    animation: grid-move 15s linear infinite;
}

/* Typography Cyberpunk */
.gradient-text {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: transparent;
    text-shadow: 0 0 15px rgba(0, 255, 136, 0.3);
    animation: text-glow 2s ease-in-out infinite alternate;
    position: relative;
    z-index: 1;
}

@keyframes text-glow {
    0% { 
        filter: brightness(1);
        text-shadow: 0 0 15px rgba(0, 255, 136, 0.3);
    }
    100% { 
        filter: brightness(1.1);
        text-shadow: 0 0 20px rgba(0, 255, 136, 0.4);
    }
}

/* ===================================
   CARDS CYBERPUNK
   =================================== */
.card-glow {
    background: var(--bg-glass) !important;
    backdrop-filter: blur(10px) !important;
    border: 1px solid var(--border-primary) !important;
    border-radius: 16px !important;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1) !important;
    position: relative !important;
    overflow: hidden !important;
}

.card-glow::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--gradient-primary);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.card-glow:hover {
    border-color: var(--border-accent) !important;
    box-shadow: var(--shadow-cyber) !important;
    transform: translateY(-8px) scale(1.02) !important;
}

.card-glow:hover::before {
    transform: scaleX(1);
}

/* ===================================
   BUTTONS CYBERPUNK
   =================================== */
.btn-cyber {
    background: var(--gradient-primary) !important;
    color: var(--bg-primary) !important;
    border: none !important;
    padding: 1rem 2rem !important;
    border-radius: 12px !important;
    font-weight: 700 !important;
    font-size: 1rem !important;
    cursor: pointer !important;
    position: relative !important;
    overflow: hidden !important;
    transition: all 0.3s ease !important;
    text-transform: uppercase !important;
    letter-spacing: 1px !important;
    box-shadow: var(--shadow-glow-sm) !important;
}

.btn-cyber::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.6s ease, height 0.6s ease;
    z-index: 0;
}

.btn-cyber span {
    position: relative;
    z-index: 1;
}

.btn-cyber:hover {
    transform: translateY(-3px) scale(1.05) !important;
    box-shadow: var(--shadow-glow-lg) !important;
}

.btn-cyber:hover::before {
    width: 400px;
    height: 400px;
}

.btn-cyber:active {
    transform: translateY(-1px) scale(1.02) !important;
}

/* ===================================
   ANIMATIONS CYBERPUNK
   =================================== */
@keyframes slide-in-up {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slide-in-left {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slide-in-right {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fade-in {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes pulse-cyber {
    0%, 100% { 
        transform: scale(1);
        box-shadow: var(--shadow-glow-sm);
    }
    50% { 
        transform: scale(1.05);
        box-shadow: var(--shadow-glow-lg);
    }
}

@keyframes float-cyber {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    33% { transform: translateY(-10px) rotate(1deg); }
    66% { transform: translateY(-5px) rotate(-1deg); }
}

@keyframes scan-line {
    0% { transform: translateY(-100%); }
    100% { transform: translateY(100%); }
}

@keyframes data-flow {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* Utility Classes */
.slide-in-up { animation: slide-in-up 0.8s ease-out; }
.slide-in-left { animation: slide-in-left 0.8s ease-out; }
.slide-in-right { animation: slide-in-right 0.8s ease-out; }
.fade-in { animation: fade-in 0.6s ease-out; }
.pulse-cyber { animation: pulse-cyber 2s ease-in-out infinite; }
.float-cyber { animation: float-cyber 3s ease-in-out infinite; }

/* ===================================
   RESPONSIVE DESIGN
   =================================== */
@media (max-width: 1024px) {
    .logo-img { width: 150px; }
    nav a { font-size: 0.85rem; padding: 0.4rem 0.8rem; }
    .lang-switch { padding: 0.4rem 0.8rem; font-size: 0.8rem; }
}

@media (max-width: 768px) {
    html { font-size: 14px; }
    
    nav {
        padding: 0.75rem 3% !important;
    }
    
    .logo-img { width: 120px; }
    
    .nav-actions {
        flex-direction: column !important;
        gap: 0.5rem !important;
    }
    
    nav a {
        font-size: 0.8rem !important;
        padding: 0.3rem 0.6rem !important;
    }
    
    .lang-switch {
        padding: 0.3rem 0.6rem !important;
        font-size: 0.75rem !important;
    }
    
    .btn-cyber {
        padding: 0.8rem 1.5rem !important;
        font-size: 0.9rem !important;
    }
}

@media (max-width: 480px) {
    html { font-size: 12px; }
    
    .logo-img { width: 100px; }
    
    nav {
        padding: 0.5rem 2% !important;
    }
    
    .btn-cyber {
        padding: 0.6rem 1.2rem !important;
        font-size: 0.8rem !important;
        width: 100%;
    }
}

/* ===================================
   ACCESSIBILITY & PERFORMANCE
   =================================== */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    body::before, body::after {
        animation: none !important;
    }
}

.btn-cyber:focus,
.lang-switch:focus,
nav a:focus {
    outline: 3px solid var(--accent-primary) !important;
    outline-offset: 2px !important;
}

@media (prefers-contrast: high) {
    :root {
        --border-primary: #ffffff;
        --text-muted: #ffffff;
        --bg-glass: rgba(0, 0, 0, 0.9);
    }
}

/* Performance Optimizations */
.card-glow,
.btn-cyber,
.lang-switch,
nav a {
    backface-visibility: hidden;
    perspective: 1000px;
    transform: translateZ(0);
}

/* ===================================
   SPECIAL EFFECTS
   =================================== */
.cyber-border {
    position: relative;
    background: var(--bg-card);
    border-radius: 12px;
    padding: 2rem;
}

.cyber-border::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: var(--gradient-primary);
    border-radius: 12px;
    z-index: -1;
    animation: pulse-cyber 3s ease-in-out infinite;
}

.cyber-border::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--bg-card);
    border-radius: 10px;
    z-index: -1;
}

/* Loading Animation */
.cyber-loader {
    width: 40px;
    height: 40px;
    border: 3px solid var(--border-primary);
    border-top: 3px solid var(--accent-primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Glitch Effect */
.glitch {
    position: relative;
    color: var(--text-primary);
    font-weight: bold;
}

.glitch::before,
.glitch::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.glitch::before {
    animation: glitch-1 0.3s linear infinite reverse;
    color: var(--accent-secondary);
    z-index: -1;
}

.glitch::after {
    animation: glitch-2 0.3s linear infinite reverse;
    color: var(--accent-danger);
    z-index: -2;
}

@keyframes glitch-1 {
    0%, 100% { clip-path: inset(0 0 0 0); }
    20% { clip-path: inset(20% 0 60% 0); }
    40% { clip-path: inset(50% 0 20% 0); }
    60% { clip-path: inset(10% 0 80% 0); }
    80% { clip-path: inset(80% 0 10% 0); }
}

@keyframes glitch-2 {
    0%, 100% { clip-path: inset(0 0 0 0); }
    15% { clip-path: inset(60% 0 20% 0); }
    35% { clip-path: inset(20% 0 60% 0); }
    55% { clip-path: inset(80% 0 10% 0); }
    75% { clip-path: inset(10% 0 80% 0); }
}
