:root {
    --neon-cyan: #00f3ff;
    --neon-purple: #b026ff;
    --bg-dark: #050505;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-dark);
    /* Removido o color e overflow daqui, gerido pelo Tailwind no HTML */
}

.font-mono { font-family: 'Fira Code', monospace; }

/* Custom Scrollbar */
::-webkit-scrollbar { width: 6px; } /* Deixei mais fina para mobile */
@media (min-width: 768px) { ::-webkit-scrollbar { width: 8px; } }
::-webkit-scrollbar-track { background: var(--bg-dark); }
::-webkit-scrollbar-thumb { background: #333; border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--neon-cyan); }

/* Tela de Carregamento */
#loader {
    position: fixed;
    inset: 0;
    background: var(--bg-dark);
    z-index: 9999;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: var(--neon-cyan);
}
.loader-bar {
    width: 0%;
    height: 2px;
    background: var(--neon-cyan);
    box-shadow: 0 0 10px var(--neon-cyan), 0 0 20px var(--neon-purple);
    margin-top: 1rem;
}

/* Efeitos de Vidro (Glassmorphism) */
.glass-card {
    background: rgba(255, 255, 255, 0.02);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}
.glass-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 40px -10px rgba(0, 243, 255, 0.2);
    border-color: rgba(0, 243, 255, 0.4);
    background: rgba(255, 255, 255, 0.04);
}

.text-gradient {
    background: linear-gradient(to right, var(--neon-cyan), var(--neon-purple));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Fundo Animado Cyberpunk (Grid) */
.cyber-grid {
    position: fixed;
    top: 0; left: 0; width: 100vw; height: 100vh;
    background-image: 
        linear-gradient(rgba(0, 243, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 243, 255, 0.03) 1px, transparent 1px);
    background-size: 50px 50px;
    z-index: -1;
    transform: perspective(500px) rotateX(60deg) translateY(-100px) translateZ(-200px);
    animation: gridMove 20s linear infinite;
    mask-image: linear-gradient(to bottom, transparent 10%, black 80%);
    -webkit-mask-image: linear-gradient(to bottom, transparent 10%, black 80%);
}

@keyframes gridMove {
    0% { background-position: 0 0; }
    100% { background-position: 0 50px; }
}

/* Animação Terminal */
.cursor-blink { animation: blink 1s step-end infinite; }
@keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: 0; } }

/* Modal Styles */
#project-modal {
    transition: opacity 0.3s ease;
    backdrop-filter: blur(15px);
}
.modal-content {
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}