/* ========================================
   PETER TECH - MODERN CSS STYLES
   ======================================== */

/* CSS Variables for Dark Mode */
:root {
    /* Light Mode Colors */
    --primary-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --secondary-gradient: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    --accent-gradient: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    --success-gradient: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%);
    
    --bg-primary: #ffffff;
    --bg-secondary: #f8f9fa;
    --bg-tertiary: #f1f3f5;
    
    --text-primary: #1a202c;
    --text-secondary: #4a5568;
    --text-tertiary: #718096;
    
    --border-color: #e2e8f0;
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.12);
    --shadow-xl: 0 16px 48px rgba(0, 0, 0, 0.15);
    
    --primary-color: #667eea;
    --secondary-color: #764ba2;
    --accent-color: #4facfe;
    --success-color: #43e97b;
    --warning-color: #f5576c;
}

/* Dark Mode Colors */
[data-theme="dark"] {
    --bg-primary: #1a202c;
    --bg-secondary: #2d3748;
    --bg-tertiary: #4a5568;
    
    --text-primary: #f7fafc;
    --text-secondary: #e2e8f0;
    --text-tertiary: #cbd5e0;
    
    --border-color: #4a5568;
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.5);
    --shadow-xl: 0 16px 48px rgba(0, 0, 0, 0.6);
}

/* Reset & Base Styles */
* {
    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, sans-serif;
    line-height: 1.6;
    color: var(--text-primary);
    background-color: var(--bg-secondary);
    overflow-x: hidden;
    transition: background-color 0.3s ease, color 0.3s ease;
}

::selection {
    background: var(--primary-color);
    color: white;
}

/* Container */
.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
}



/* WhatsApp Float Button */
.whatsapp-float {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 999;
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: linear-gradient(135deg, #25d366 0%, #128c7e 100%);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 24px rgba(37, 211, 102, 0.4);
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    animation: pulse-whatsapp 2s ease-in-out infinite;
}

.whatsapp-float svg {
    width: 32px;
    height: 32px;
}

.whatsapp-float:hover {
    transform: scale(1.15);
    box-shadow: 0 12px 32px rgba(37, 211, 102, 0.6);
}

.online-badge {
    position: absolute;
    top: -8px;
    right: -8px;
    background: #10b981;
    color: white;
    font-size: 11px;
    font-weight: 600;
    padding: 4px 8px;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(16, 185, 129, 0.4);
    animation: pulse-badge 2s ease-in-out infinite;
}

@keyframes pulse-whatsapp {
    0%, 100% { box-shadow: 0 8px 24px rgba(37, 211, 102, 0.4); }
    50% { box-shadow: 0 8px 32px rgba(37, 211, 102, 0.6); }
}

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

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 32px;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    text-align: center;
    font-family: inherit;
    position: relative;
    overflow: hidden;
}

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

.btn:hover::before {
    width: 300px;
    height: 300px;
}

.btn-primary {
    background: var(--primary-gradient);
    color: #ffffff;
    box-shadow: 0 4px 16px rgba(102, 126, 234, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(102, 126, 234, 0.5);
}

.btn-glow {
    animation: glow-pulse 2s ease-in-out infinite;
}

@keyframes glow-pulse {
    0%, 100% { box-shadow: 0 4px 16px rgba(102, 126, 234, 0.3); }
    50% { box-shadow: 0 4px 24px rgba(102, 126, 234, 0.6), 0 0 32px rgba(102, 126, 234, 0.3); }
}

.btn-glass {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--text-primary);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.btn-glass:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.btn-whatsapp {
    background: linear-gradient(135deg, #25d366 0%, #128c7e 100%);
    color: white;
    box-shadow: 0 4px 16px rgba(37, 211, 102, 0.3);
}

.btn-whatsapp:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(37, 211, 102, 0.5);
}

.btn-large {
    padding: 16px 40px;
    font-size: 18px;
}

.btn-full {
    width: 100%;
    justify-content: center;
}

.btn-icon {
    transition: transform 0.3s ease;
}

.btn:hover .btn-icon {
    transform: translateX(4px);
}

.sparkle {
    animation: sparkle 1.5s ease-in-out infinite;
}

@keyframes sparkle {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(1.2) rotate(20deg); }
}

/* Header */
.header {
    background: var(--bg-primary);
    box-shadow: var(--shadow-md);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 998;
    transition: all 0.3s ease;
}

.header.scrolled {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    box-shadow: var(--shadow-lg);
}

[data-theme="dark"] .header.scrolled {
    background: rgba(26, 32, 44, 0.95);
}

.nav {
    padding: 16px 0;
}

.nav-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 28px;
    font-weight: 800;
    color: var(--text-primary);
}

.nav-logo .logo-icon-svg {
    width: 32px;
    height: 32px;
    animation: computer-pulse 3s ease-in-out infinite;
    filter: drop-shadow(0 0 4px rgba(102, 126, 234, 0.3));
}

@keyframes computer-pulse {
    0%, 100% { 
        transform: scale(1);
        filter: drop-shadow(0 0 4px rgba(102, 126, 234, 0.3));
    }
    50% { 
        transform: scale(1.05);
        filter: drop-shadow(0 0 8px rgba(102, 126, 234, 0.5));
    }
}

.logo-highlight {
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 32px;
}

.nav-link {
    text-decoration: none;
    color: var(--text-secondary);
    font-weight: 500;
    font-size: 15px;
    transition: all 0.3s ease;
    position: relative;
}

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

.nav-link:hover {
    color: var(--primary-color);
}

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

.nav-cta {
    padding: 10px 24px;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.nav-toggle .bar {
    width: 28px;
    height: 3px;
    background: var(--text-primary);
    margin: 4px 0;
    transition: 0.3s;
    border-radius: 3px;
}

/* Hero Section */
.hero {
    padding: 140px 0 100px;
    position: relative;
    overflow: hidden;
    min-height: 90vh;
    display: flex;
    align-items: center;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 0;
    overflow: hidden;
}

/* ========================================
   CÓDIGO BINÁRIO CENDO ANIMADO
   ======================================== */

.binary-stream {
    position: absolute;
    top: -100%;
    left: 0;
    width: 100%;
    height: 200%;
    pointer-events: none;
    overflow: hidden;
}

.binary-column {
    position: absolute;
    top: -100%;
    font-family: 'Courier New', monospace;
    font-size: 14px;
    color: var(--primary-color);
    opacity: 0.1;
    animation: binary-fall 15s linear infinite;
    white-space: nowrap;
    line-height: 1.4;
}

.binary-column-1 {
    left: 10%;
    animation-duration: 12s;
    animation-delay: 0s;
}

.binary-column-2 {
    left: 25%;
    animation-duration: 16s;
    animation-delay: -3s;
}

.binary-column-3 {
    left: 40%;
    animation-duration: 14s;
    animation-delay: -6s;
}

.binary-column-4 {
    left: 55%;
    animation-duration: 18s;
    animation-delay: -9s;
}

.binary-column-5 {
    left: 70%;
    animation-duration: 13s;
    animation-delay: -12s;
}

.binary-column-6 {
    left: 85%;
    animation-duration: 17s;
    animation-delay: -15s;
}

@keyframes binary-fall {
    0% {
        top: -100%;
        opacity: 0;
    }
    5% {
        opacity: 0.1;
    }
    95% {
        opacity: 0.1;
    }
    100% {
        top: 100%;
        opacity: 0;
    }
}

/* ========================================
   PARTÍCULAS DE CIRCUITO
   ======================================== */

.circuit-particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: var(--primary-color);
    border-radius: 50%;
    opacity: 0.6;
    animation: circuit-flow 8s linear infinite;
}

.circuit-particle-1 {
    top: 20%;
    left: 15%;
    animation-delay: 0s;
}

.circuit-particle-2 {
    top: 60%;
    right: 20%;
    animation-delay: -2s;
}

.circuit-particle-3 {
    bottom: 30%;
    left: 25%;
    animation-delay: -4s;
}

.circuit-particle-4 {
    top: 40%;
    left: 50%;
    animation-delay: -6s;
}

@keyframes circuit-flow {
    0%, 100% {
        opacity: 0.2;
        transform: scale(0.8);
    }
    50% {
        opacity: 0.8;
        transform: scale(1.2);
    }
}

/* ========================================
   ELEMENTOS TECNOLÓGICOS ANIMADOS
   ======================================== */

.tech-particles {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
}

/* Ícones Tecnológicos Flutuantes */
.tech-icon {
    position: absolute;
    font-size: 48px;
    opacity: 0.15;
    animation: float-tech 15s ease-in-out infinite;
    filter: drop-shadow(0 0 20px rgba(102, 126, 234, 0.3));
    transition: all 0.3s ease;
}

.tech-icon:hover {
    opacity: 0.4;
    transform: scale(1.2) rotate(10deg);
    filter: drop-shadow(0 0 30px rgba(102, 126, 234, 0.6));
}

.tech-icon-1 { top: 10%; left: 15%; animation-delay: 0s; }
.tech-icon-2 { top: 20%; right: 20%; animation-delay: -2s; }
.tech-icon-3 { top: 60%; left: 10%; animation-delay: -4s; }
.tech-icon-4 { bottom: 15%; right: 15%; animation-delay: -6s; }
.tech-icon-5 { top: 40%; right: 10%; animation-delay: -8s; }
.tech-icon-6 { bottom: 30%; left: 20%; animation-delay: -10s; }
.tech-icon-7 { top: 30%; left: 50%; animation-delay: -12s; }
.tech-icon-8 { bottom: 20%; right: 40%; animation-delay: -14s; }

@keyframes float-tech {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
        opacity: 0.15;
    }
    25% {
        transform: translateY(-30px) rotate(90deg);
        opacity: 0.25;
    }
    50% {
        transform: translateY(-15px) rotate(180deg);
        opacity: 0.15;
    }
    75% {
        transform: translateY(-40px) rotate(270deg);
        opacity: 0.2;
    }
}

/* Código Binário Animado */
.binary-code {
    position: absolute;
    font-family: 'Courier New', monospace;
    font-size: 20px;
    color: var(--primary-color);
    opacity: 0.1;
    font-weight: bold;
    animation: scroll-code 20s linear infinite;
}

.code-1 { top: 5%; left: 30%; animation-delay: 0s; }
.code-2 { top: 25%; right: 25%; animation-delay: -5s; }
.code-3 { bottom: 25%; left: 35%; animation-delay: -10s; }
.code-4 { bottom: 10%; right: 30%; animation-delay: -15s; }

@keyframes scroll-code {
    0% {
        transform: translateY(0) translateX(0);
        opacity: 0;
    }
    10% {
        opacity: 0.1;
    }
    90% {
        opacity: 0.1;
    }
    100% {
        transform: translateY(100vh) translateX(20px);
        opacity: 0;
    }
}

/* Linhas de Circuito */
.circuit-line {
    position: absolute;
    height: 2px;
    background: linear-gradient(90deg, 
        transparent 0%, 
        var(--primary-color) 50%, 
        transparent 100%);
    opacity: 0.15;
    animation: circuit-flow 8s linear infinite;
}

.line-1 {
    top: 30%;
    left: 0;
    width: 40%;
    animation-delay: 0s;
}

.line-2 {
    top: 60%;
    right: 0;
    width: 35%;
    animation-delay: -3s;
}

.line-3 {
    top: 75%;
    left: 20%;
    width: 50%;
    animation-delay: -6s;
}

@keyframes circuit-flow {
    0% {
        transform: translateX(-100%);
        opacity: 0;
    }
    50% {
        opacity: 0.15;
    }
    100% {
        transform: translateX(100%);
        opacity: 0;
    }
}

/* Ajustar opacidade dos orbs */
.gradient-orb {
    opacity: 0.3;
    z-index: -1;
}

.hero-content {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: center;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 20px;
    background: rgba(102, 126, 234, 0.1);
    border: 1px solid rgba(102, 126, 234, 0.2);
    border-radius: 24px;
    font-size: 14px;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 24px;
    backdrop-filter: blur(10px);
}

.badge-dot {
    width: 8px;
    height: 8px;
    background: var(--success-color);
    border-radius: 50%;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(1.2); }
}

.hero-title {
    font-size: 64px;
    font-weight: 800;
    line-height: 1.1;
    color: var(--text-primary);
    margin-bottom: 24px;
}

.gradient-text {
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
    display: inline-block;
}

.hero-subtitle {
    font-size: 20px;
    color: var(--text-secondary);
    margin-bottom: 40px;
    line-height: 1.6;
}

.hero-features {
    display: flex;
    gap: 16px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.feature {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 24px;
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
    font-weight: 600;
    font-size: 15px;
    transition: all 0.3s ease;
}

.feature:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.feature-icon {
    font-size: 20px;
}

.hero-cta {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 48px;
}

.hero-trust {
    display: flex;
    gap: 32px;
    padding-top: 32px;
    border-top: 1px solid var(--border-color);
}

.trust-item {
    display: flex;
    flex-direction: column;
}

.trust-number {
    font-size: 28px;
    font-weight: 700;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.trust-label {
    font-size: 14px;
    color: var(--text-tertiary);
    font-weight: 500;
}

/* Hero Illustration */
.hero-illustration {
    position: relative;
    height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.floating-card {
    position: absolute;
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 20px;
    box-shadow: var(--shadow-lg);
    display: flex;
    align-items: center;
    gap: 12px;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.floating-card:hover {
    transform: translateY(-8px) scale(1.05);
    box-shadow: var(--shadow-xl);
}

.card-1 {
    top: 10%;
    left: 10%;
    animation: float 6s ease-in-out infinite;
}

.card-2 {
    top: 50%;
    right: 5%;
    animation: float 6s ease-in-out infinite;
    animation-delay: -2s;
}

.card-3 {
    bottom: 15%;
    left: 20%;
    animation: float 6s ease-in-out infinite;
    animation-delay: -4s;
}

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

.card-icon {
    font-size: 32px;
}

.card-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
}

.card-subtitle {
    font-size: 12px;
    color: var(--text-tertiary);
}

.tech-visual {
    position: relative;
    width: 300px;
    height: 300px;
}

/* ========================================
   LINHAS DE CÓDIGO ANIMADAS
   ======================================== */

.code-line {
    position: absolute;
    font-family: 'Courier New', monospace;
    font-size: 12px;
    color: var(--primary-color);
    opacity: 0.1;
    white-space: nowrap;
    animation: code-appear 20s linear infinite;
}

.code-line-1 {
    top: 15%;
    left: 10%;
    animation-duration: 18s;
}

.code-line-2 {
    top: 35%;
    right: 15%;
    animation-duration: 22s;
    animation-delay: -5s;
}

.code-line-3 {
    top: 65%;
    left: 20%;
    animation-duration: 20s;
    animation-delay: -10s;
}

.code-line-4 {
    bottom: 25%;
    right: 25%;
    animation-duration: 24s;
    animation-delay: -15s;
}

@keyframes code-appear {
    0%, 5% {
        opacity: 0;
        transform: translateX(-20px);
    }
    10%, 90% {
        opacity: 0.1;
        transform: translateX(0);
    }
    95%, 100% {
        opacity: 0;
        transform: translateX(20px);
    }
}

/* ========================================
   TERMINAL DE CÓDIGO
   ======================================== */

.code-terminal {
    position: absolute;
    top: 20%;
    right: 15%;
    width: 300px;
    background: rgba(0, 0, 0, 0.9);
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    font-family: 'Courier New', monospace;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.terminal-header {
    background: rgba(255, 255, 255, 0.1);
    padding: 8px 12px;
    display: flex;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.terminal-buttons {
    display: flex;
    gap: 6px;
    margin-right: 12px;
}

.terminal-btn {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.terminal-btn.close { background: #ff5f56; }
.terminal-btn.minimize { background: #ffbd2e; }
.terminal-btn.maximize { background: #27ca3f; }

.terminal-title {
    color: rgba(255, 255, 255, 0.8);
    font-size: 12px;
}

.terminal-content {
    padding: 12px;
    font-size: 11px;
    line-height: 1.4;
}

.terminal-line {
    margin-bottom: 4px;
}

.terminal-prompt {
    color: #00ff00;
}

.terminal-command {
    color: rgba(255, 255, 255, 0.8);
}

.terminal-output {
    color: rgba(255, 255, 255, 0.6);
    margin: 8px 0;
}

.terminal-cursor {
    color: #00ff00;
    animation: blink 1s infinite;
}

@keyframes blink {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0; }
}

/* ========================================
   GRID DE PROCESSAMENTO
   ======================================== */

.processing-grid {
    position: absolute;
    bottom: 20%;
    left: 15%;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    width: 150px;
    height: 150px;
}

.grid-cell {
    background: var(--primary-gradient);
    border-radius: 4px;
    opacity: 0.1;
    animation: grid-pulse 3s ease-in-out infinite;
}

.cell-1 { animation-delay: 0s; }
.cell-2 { animation-delay: 0.2s; }
.cell-3 { animation-delay: 0.4s; }
.cell-4 { animation-delay: 0.6s; }
.cell-5 { animation-delay: 0.8s; }
.cell-6 { animation-delay: 1s; }
.cell-7 { animation-delay: 1.2s; }
.cell-8 { animation-delay: 1.4s; }
.cell-9 { animation-delay: 1.6s; }

@keyframes grid-pulse {
    0%, 100% {
        opacity: 0.1;
        transform: scale(1);
    }
    50% {
        opacity: 0.3;
        transform: scale(1.1);
    }
}

/* ========================================
   MATRIZ DE DADOS (efeito Matrix)
   ======================================== */

.matrix-rain {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    opacity: 0.05;
}

.matrix-column {
    position: absolute;
    top: -100px;
    font-family: 'Courier New', monospace;
    font-size: 16px;
    color: var(--primary-color);
    animation: matrix-fall 10s linear infinite;
}

.matrix-col-1 { left: 5%; animation-duration: 8s; }
.matrix-col-2 { left: 15%; animation-duration: 12s; animation-delay: -2s; }
.matrix-col-3 { left: 30%; animation-duration: 10s; animation-delay: -4s; }
.matrix-col-4 { left: 45%; animation-duration: 14s; animation-delay: -6s; }
.matrix-col-5 { left: 60%; animation-duration: 9s; animation-delay: -8s; }
.matrix-col-6 { left: 75%; animation-duration: 13s; animation-delay: -10s; }
.matrix-col-7 { left: 90%; animation-duration: 11s; animation-delay: -12s; }

@keyframes matrix-fall {
    0% {
        transform: translateY(-100px);
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    90% {
        opacity: 1;
    }
    100% {
        transform: translateY(calc(100vh + 100px));
        opacity: 0;
    }
}

.tech-particles span {
    position: absolute;
    width: 12px;
    height: 12px;
    background: var(--primary-gradient);
    border-radius: 50%;
    animation: particles 4s ease-in-out infinite;
}

.tech-particles span:nth-child(1) { top: 20%; left: 20%; animation-delay: 0s; }
.tech-particles span:nth-child(2) { top: 20%; right: 20%; animation-delay: -0.8s; }
.tech-particles span:nth-child(3) { bottom: 20%; left: 20%; animation-delay: -1.6s; }
.tech-particles span:nth-child(4) { bottom: 20%; right: 20%; animation-delay: -2.4s; }
.tech-particles span:nth-child(5) { top: 50%; left: 10%; animation-delay: -3.2s; }

@keyframes particles {
    0%, 100% { transform: translateY(0px); opacity: 0.3; }
    50% { transform: translateY(-20px); opacity: 1; }
}

/* Section Styles */
.section-header {
    text-align: center;
    margin-bottom: 64px;
}

.section-badge {
    display: inline-block;
    padding: 8px 20px;
    background: rgba(102, 126, 234, 0.1);
    border: 1px solid rgba(102, 126, 234, 0.2);
    border-radius: 24px;
    font-size: 14px;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 16px;
}

.section-title {
    font-size: 48px;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 16px;
    line-height: 1.2;
}

.section-subtitle {
    font-size: 20px;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

/* Services Section */
.services {
    padding: 100px 0;
    background: var(--bg-primary);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
    gap: 32px;
}

.service-card {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 40px;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
}

.service-glow {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--primary-gradient);
    transform: scaleX(0);
    transition: transform 0.4s ease;
}

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

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
    border-color: var(--primary-color);
}

.service-card.featured {
    background: var(--bg-primary);
    border: 2px solid var(--primary-color);
    box-shadow: var(--shadow-lg);
}

.service-card.featured .service-glow {
    transform: scaleX(1);
}

.featured-badge {
    position: absolute;
    top: -12px;
    right: 32px;
    background: var(--primary-gradient);
    color: white;
    padding: 8px 20px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 6px;
    box-shadow: var(--shadow-md);
}

.badge-icon {
    font-size: 16px;
}

.service-header {
    margin-bottom: 20px;
}

.service-icon {
    width: 64px;
    height: 64px;
    background: var(--primary-gradient);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    box-shadow: 0 8px 16px rgba(102, 126, 234, 0.3);
}

.service-emoji {
    font-size: 32px;
    filter: brightness(0) invert(1);
}

.service-title {
    font-size: 24px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 12px;
}

.service-description {
    color: var(--text-secondary);
    margin-bottom: 24px;
    line-height: 1.6;
    font-size: 15px;
}

.service-features {
    list-style: none;
    margin-bottom: 24px;
}

.service-features li {
    color: var(--text-secondary);
    font-weight: 500;
    margin-bottom: 10px;
    font-size: 14px;
    padding-left: 8px;
}

.service-price {
    font-size: 18px;
    font-weight: 700;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
}

/* About Section */
.about {
    padding: 100px 0;
    background: var(--bg-secondary);
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: start;
}

.about-description {
    font-size: 18px;
    color: var(--text-secondary);
    margin-bottom: 40px;
    line-height: 1.7;
}

.about-features {
    display: flex;
    flex-direction: column;
    gap: 28px;
}

.about-feature {
    display: flex;
    gap: 20px;
    align-items: flex-start;
    padding: 24px;
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    transition: all 0.3s ease;
}

.about-feature:hover {
    transform: translateX(8px);
    box-shadow: var(--shadow-md);
}

.feature-icon-large {
    font-size: 36px;
    min-width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--primary-gradient);
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.feature-content h4 {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.feature-content p {
    color: var(--text-secondary);
    line-height: 1.6;
    font-size: 15px;
}

.about-stats {
    background: var(--bg-primary);
    padding: 40px;
    border-radius: 20px;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border-color);
}

.stats-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

.stat-card {
    text-align: center;
    padding: 28px;
    background: var(--bg-secondary);
    border-radius: 16px;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.stat-icon {
    font-size: 40px;
    margin-bottom: 12px;
}

.stat-number {
    font-size: 32px;
    font-weight: 800;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 4px;
}

.stat-label {
    font-size: 14px;
    color: var(--text-tertiary);
    font-weight: 600;
}

/* Testimonials Section */
.testimonials {
    padding: 100px 0;
    background: var(--bg-primary);
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: 32px;
}

.testimonial-card {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 32px;
    transition: all 0.3s ease;
    position: relative;
}

.testimonial-card::before {
    content: '"';
    position: absolute;
    top: 20px;
    left: 20px;
    font-size: 80px;
    color: var(--primary-color);
    opacity: 0.1;
    font-family: Georgia, serif;
    line-height: 1;
}

.testimonial-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
}

.testimonial-rating {
    font-size: 18px;
    margin-bottom: 16px;
}

.testimonial-text {
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 24px;
    font-size: 15px;
    position: relative;
    z-index: 1;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 16px;
    padding-top: 24px;
    border-top: 1px solid var(--border-color);
}

.author-avatar {
    width: 48px;
    height: 48px;
    background: var(--primary-gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    flex-shrink: 0;
}

.author-name {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
}

.author-role {
    font-size: 13px;
    color: var(--text-tertiary);
}

/* FAQ Section */
.faq {
    padding: 100px 0;
    background: var(--bg-secondary);
}

.faq-container {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    margin-bottom: 16px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.faq-item:hover {
    box-shadow: var(--shadow-md);
}

.faq-question {
    width: 100%;
    padding: 24px;
    background: transparent;
    border: none;
    text-align: left;
    font-size: 17px;
    font-weight: 600;
    color: var(--text-primary);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    font-family: inherit;
    transition: all 0.3s ease;
}

.faq-question:hover {
    color: var(--primary-color);
}

.faq-icon {
    font-size: 24px;
    font-weight: 300;
    transition: transform 0.3s ease;
    flex-shrink: 0;
}

.faq-item.active .faq-icon {
    transform: rotate(45deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.faq-item.active .faq-answer {
    max-height: 300px;
}

.faq-answer p {
    padding: 0 24px 24px;
    color: var(--text-secondary);
    line-height: 1.7;
    font-size: 15px;
}

/* Contact Section */
.contact {
    padding: 100px 0;
    background: var(--bg-primary);
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
}

.contact-info h3 {
    font-size: 28px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 16px;
}

.contact-intro {
    color: var(--text-secondary);
    margin-bottom: 32px;
    line-height: 1.6;
}

.contact-item {
    display: flex;
    gap: 20px;
    margin-bottom: 24px;
    padding: 24px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    transition: all 0.3s ease;
}

.contact-item:hover {
    transform: translateX(8px);
    box-shadow: var(--shadow-md);
}

.contact-icon {
    font-size: 28px;
    min-width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.contact-details h4 {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 6px;
}

.contact-link {
    color: var(--primary-color);
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
}

.contact-link:hover {
    text-decoration: underline;
}

.contact-details p {
    color: var(--text-secondary);
    font-size: 14px;
    line-height: 1.5;
}

.contact-tip {
    font-size: 13px !important;
    color: var(--text-tertiary) !important;
    margin-top: 4px;
}

.contact-cta-box {
    background: var(--primary-gradient);
    padding: 32px;
    border-radius: 20px;
    color: white;
    margin-top: 32px;
}

.contact-cta-box h4 {
    font-size: 20px;
    margin-bottom: 12px;
}

.contact-cta-box p {
    margin-bottom: 20px;
    opacity: 0.95;
    font-size: 15px;
}

/* Contact Form */
.contact-form {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    padding: 40px;
    border-radius: 20px;
    box-shadow: var(--shadow-md);
}

.contact-form h3 {
    font-size: 28px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 12px;
}

.form-intro {
    color: var(--text-secondary);
    margin-bottom: 32px;
    font-size: 15px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.form-group {
    margin-bottom: 24px;
}

.form-group label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    font-size: 15px;
    font-family: inherit;
    background: var(--bg-primary);
    color: var(--text-primary);
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.form-note {
    font-size: 13px;
    color: var(--text-tertiary);
    margin-top: 16px;
    text-align: center;
}

/* WhatsApp Form Styles */
.whatsapp-form {
    position: relative;
}

.whatsapp-form .form-group textarea {
    min-height: 80px;
}

.btn-whatsapp {
    background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
    border: none;
    color: white;
    font-weight: 600;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-whatsapp:hover {
    background: linear-gradient(135deg, #128C7E 0%, #25D366 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(37, 211, 102, 0.3);
}

.btn-whatsapp svg {
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}

.btn-whatsapp .btn-icon {
    transition: transform 0.3s ease;
}

.btn-whatsapp:hover .btn-icon {
    transform: translateX(4px);
}

/* Contract Form Styles */
.contract-form {
    background: rgba(37, 211, 102, 0.1);
    border: 1px solid rgba(37, 211, 102, 0.3);
    border-radius: 12px;
    padding: 24px;
    margin-top: 16px;
}

.contract-form .form-group {
    margin-bottom: 20px;
}

.contract-form .form-group label {
    color: var(--text-primary);
    font-weight: 600;
    margin-bottom: 8px;
    display: block;
}

.contract-form .form-group input {
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 12px 16px;
    font-size: 15px;
    color: var(--text-primary);
    transition: all 0.3s ease;
    width: 100%;
}

.contract-form .form-group input:focus {
    outline: none;
    border-color: #25D366;
    box-shadow: 0 0 0 3px rgba(37, 211, 102, 0.1);
}

.btn-full {
    width: 100%;
    justify-content: center;
}

/* Footer */
.footer {
    background: var(--text-primary);
    color: #e2e8f0;
    padding: 64px 0 32px;
}

[data-theme="dark"] .footer {
    background: #0f1419;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 48px;
    margin-bottom: 48px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 28px;
    font-weight: 800;
    color: white;
    margin-bottom: 16px;
}

.logo-icon-svg {
    width: 40px;
    height: 40px;
    animation: logo-pulse 4s ease-in-out infinite;
    filter: drop-shadow(0 0 6px rgba(102, 126, 234, 0.4));
}

.logo-text-inline {
    display: inline-block;
    margin: 0;
    padding: 0;
    font-size: 24px;
    font-weight: 700;
    line-height: 1;
    color: #e2e8f0;
    white-space: nowrap;
    vertical-align: middle;
}

.logo-text-inline .logo-highlight {
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

@keyframes logo-pulse {
    0%, 100% {
        transform: scale(1);
        filter: drop-shadow(0 0 8px rgba(102, 126, 234, 0.5));
    }
    50% {
        transform: scale(1.05);
        filter: drop-shadow(0 0 15px rgba(102, 126, 234, 0.8));
    }
}

.footer-description {
    line-height: 1.6;
    color: #cbd5e0;
    margin-bottom: 24px;
    font-size: 15px;
}

.footer-social {
    display: flex;
    gap: 12px;
}

.social-link {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    transition: all 0.3s ease;
}

.social-link:hover {
    background: var(--primary-gradient);
    transform: translateY(-4px);
}

.social-link svg {
    width: 20px;
    height: 20px;
}

.footer-section h4 {
    color: white;
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 20px;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: #cbd5e0;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 15px;
}

.footer-links a:hover {
    color: white;
    padding-left: 8px;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 32px;
    text-align: center;
    color: #a0aec0;
}

.footer-bottom p {
    margin-bottom: 8px;
    font-size: 14px;
}

.footer-dev {
    font-size: 13px !important;
}

/* Back to Top */
.back-to-top {
    position: fixed;
    bottom: 100px;
    right: 24px;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--primary-gradient);
    color: white;
    border: none;
    box-shadow: var(--shadow-lg);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 997;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-xl);
}

.back-to-top svg {
    width: 24px;
    height: 24px;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .hero-content,
    .about-content,
    .contact-content {
        grid-template-columns: 1fr;
        gap: 48px;
    }
    
    .hero-illustration {
        order: -1;
        height: 400px;
    }
    
    .services-grid {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    }
    
    .stats-grid {
        grid-template-columns: 1fr 1fr;
    }
    
    .footer-content {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 73px;
        flex-direction: column;
        background: var(--bg-primary);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: var(--shadow-lg);
        padding: 32px 0;
        max-height: calc(100vh - 73px);
        overflow-y: auto;
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .nav-toggle {
        display: flex;
    }
    
    .hero {
        padding: 120px 0 64px;
        min-height: auto;
    }
    
    /* Ajustar elementos tech para mobile */
    .tech-icon {
        font-size: 32px;
    }
    
    .binary-code {
        font-size: 14px;
    }
    
    .circuit-line {
        display: none;
    }
    
    .hero-title {
        font-size: 42px;
    }
    
    .hero-trust {
        flex-wrap: wrap;
        gap: 24px;
    }
    
    .section-title {
        font-size: 36px;
    }
    
    .services-grid,
    .testimonials-grid {
        grid-template-columns: 1fr;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .footer-social {
        justify-content: center;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    

    
    .whatsapp-float {
        bottom: 16px;
        right: 16px;
        width: 56px;
        height: 56px;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 32px;
    }
    
    .hero-subtitle {
        font-size: 16px;
    }
    
    .section-title {
        font-size: 28px;
    }
    
    .btn-large {
        padding: 14px 28px;
        font-size: 16px;
    }
    
    .container {
        padding: 0 16px;
    }
    
    .hero-features {
        flex-direction: column;
    }
    
    .service-card,
    .contact-form {
        padding: 28px;
    }
}