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

/* Base */
html {
    overflow-x: hidden;
    scroll-behavior: smooth;
    scroll-padding-top: 4rem;
}
body {
    font-family: 'Inter', sans-serif;
    background-color: #0a0a0a;
    color: #ffffff;
    overflow-x: hidden;
}

/* Glow Effects */
.glow-text {
    text-shadow: 0 0 10px #00ff9d, 0 0 20px #00ff9d, 0 0 40px #00ff9d;
}

.glow-box {
    box-shadow: 0 0 15px rgba(0, 255, 157, 0.3), 0 0 30px rgba(0, 255, 157, 0.1);
}

/* Dark Backgrounds */
.bg-dark-900 {
    background-color: #0a0a0a;
}

.bg-dark-800 {
    background-color: #111111;
}

.bg-dark-700 {
    background-color: #1a1a1a;
}

.bg-dark-600 {
    background-color: #222222;
}

.bg-dark-500 {
    background-color: #2a2a2a;
}

.text-dark-900 {
    color: #0a0a0a;
}

/* Border Glow */
.glow-border {
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.glow-border:hover {
    border-color: rgba(0, 255, 157, 0.35);
    box-shadow: 0 0 20px rgba(0, 255, 157, 0.12);
}

/* Grid Background */
.grid-bg {
    background-image:
        linear-gradient(rgba(0, 255, 157, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 255, 157, 0.03) 1px, transparent 1px);
    background-size: 50px 50px;
}

/* Hero Gradient */
.hero-gradient {
    background: radial-gradient(ellipse at 50% 0%, rgba(0, 255, 157, 0.15) 0%, transparent 60%);
}

/* Card Hover */
.card-hover {
    transition: all 0.3s ease;
}

.card-hover:hover {
    transform: translateY(-5px);
}

/* Typing Effect */
.typing-text {
    border-right: 2px solid #00ff9d;
    animation: blink 0.7s step-end infinite;
}

@keyframes blink {
    from, to {
        border-color: transparent;
    }
    50% {
        border-color: #00ff9d;
    }
}

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

.float-animation {
    animation: float 6s ease-in-out infinite;
}

/* Pulse Glow Animation */
@keyframes pulse-glow {
    0%, 100% {
        box-shadow: 0 0 5px rgba(0, 255, 157, 0.5);
    }
    50% {
        box-shadow: 0 0 20px rgba(0, 255, 157, 0.8);
    }
}

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

/* Terminal Window */
.terminal-window {
    background: #111111;
    border: 1px solid #333;
    border-radius: 8px;
    overflow: hidden;
}

.terminal-header {
    background: #1a1a1a;
    padding: 8px 12px;
    display: flex;
    align-items: center;
    gap: 6px;
}

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

/* Scroll Fade Animation */
.scroll-fade {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.scroll-fade.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Gradient Text */
.gradient-text {
    background: linear-gradient(135deg, #00ff9d 0%, #00cc7a 50%, #00ff9d 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Navigation Blur */
.nav-blur {
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

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

::-webkit-scrollbar-track {
    background: #0a0a0a;
}

::-webkit-scrollbar-thumb {
    background: #00ff9d;
    border-radius: 4px;
}

@media (max-width: 768px) {
    ::-webkit-scrollbar {
        width: 4px;
    }
}

/* Code Line */
.code-line {
    font-family: 'JetBrains Mono', monospace;
}

/* Matrix Background */
.matrix-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    opacity: 0.03;
}

/* Marquee Animation */
@keyframes marquee {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

.animate-marquee {
    animation: marquee 30s linear infinite;
    will-change: transform;
}

/* Skip link - A11y */
.skip-link {
    position: absolute;
    top: -100%;
    left: 1rem;
    background: #00ff9d;
    color: #0a0a0a;
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    font-weight: 700;
    font-size: 0.875rem;
    z-index: 100;
    text-decoration: none;
}
.skip-link:focus {
    top: 1rem;
}

/* Focus visible - A11y */
:focus-visible {
    outline: 2px solid #00ff9d;
    outline-offset: 2px;
}
a:focus-visible, button:focus-visible {
    outline: 2px solid #00ff9d;
    outline-offset: 2px;
    border-radius: 4px;
}

/* Performance - will-change apenas no hover para economizar GPU */
.card-hover:hover, .scroll-fade.visible {
    will-change: auto;
}
.card-hover:hover {
    will-change: transform;
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }
    .matrix-bg, .animate-marquee, .float-animation {
        display: none !important;
    }
}

/* Matrix desabilitado em mobile para economizar bateria - item 6 */
@media (max-width: 768px) {
    .matrix-bg {
        display: none !important;
    }
}

/* Conteúdo abaixo da dobra - renderização mais rápida */
#servicos, #como-funciona, #beneficios, #precos {
    content-visibility: auto;
    contain-intrinsic-size: 0 800px;
}
