/* Importar fontes */
@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@400;500;600;700&family=JetBrains+Mono:wght@400;500&display=swap');

/* Reset e variáveis globais */
:root {
  --color-primary: #059669;
  --color-secondary: #047857;
  --color-text: #374151;
  --color-bg: #fafafa;
  --color-accent: #0d9488;
  --color-emerald: #10b981;
  --color-teal: #14b8a6;
  
  --font-heading: 'Space Grotesk', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
  --font-body: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  
  --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --shadow-lg: 0 10px 30px rgba(0, 0, 0, 0.08);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  color: var(--color-text);
  line-height: 1.6;
}

/* Scrollbar ultra discreta */
/* Forçar scrollbar escura no modo dark em todos os contextos */
 ::-webkit-scrollbar-thumb,
 ::-webkit-scrollbar-thumb,
::-webkit-scrollbar-thumb,
::-webkit-scrollbar-thumb,
.dark ::-webkit-scrollbar-thumb,
.dark::-webkit-scrollbar-thumb {
  background: rgba(20,40,30,0.55) !important;
  border-radius: 8px !important;
  border: none !important;
  min-height: 40px;
  transition: background 0.2s;
}

 ::-webkit-scrollbar-thumb:hover,
 ::-webkit-scrollbar-thumb:hover,
::-webkit-scrollbar-thumb:hover,
::-webkit-scrollbar-thumb:hover,
.dark ::-webkit-scrollbar-thumb:hover,
.dark::-webkit-scrollbar-thumb:hover {
  background: rgba(16,185,129,0.18) !important;
}

 ::-webkit-scrollbar-track,
 ::-webkit-scrollbar-track,
::-webkit-scrollbar-track,
::-webkit-scrollbar-track,
.dark ::-webkit-scrollbar-track,
.dark::-webkit-scrollbar-track {
  background: transparent !important;
}

, , .dark {
  scrollbar-color: rgba(20,40,30,0.55) transparent !important;
}
::-webkit-scrollbar {
  width: 8px;
  background: transparent;
}
::-webkit-scrollbar-track {
  background: transparent !important;
}
::-webkit-scrollbar-thumb {
  background: rgba(80,80,80,0.07) !important;
  border-radius: 8px;
  border: none !important;
  min-height: 40px;
  transition: background 0.2s;
}
::-webkit-scrollbar-thumb:hover {
  background: rgba(80,80,80,0.13) !important;
}
html {
  scrollbar-width: thin;
  scrollbar-color: rgba(80,80,80,0.07) transparent;
}
 ::-webkit-scrollbar-thumb,
.dark ::-webkit-scrollbar-thumb {
  background: rgba(20,40,30,0.45) !important;
}
 ::-webkit-scrollbar-thumb:hover,
.dark ::-webkit-scrollbar-thumb:hover {
  background: rgba(16,185,129,0.18) !important;
}
 ::-webkit-scrollbar-track,
.dark ::-webkit-scrollbar-track {
  background: transparent !important;
}
, .dark {
  scrollbar-color: rgba(20,40,30,0.45) transparent !important;
}

/* Tipografia */
.font-heading {
  font-family: var(--font-heading);
}

.font-mono {
  font-family: var(--font-mono);
}

/* Gradientes */
.gradient-text {
  background: linear-gradient(135deg, #059669 0%, #0d9488 50%, #0891b2 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.gradient-bg {
  background: linear-gradient(180deg, #fafafa 0%, #f5f5f5 50%, #fafafa 100%);
}

.dark .gradient-bg {
  background: linear-gradient(135deg, #000000 0%, #001a0d 50%, #000000 100%) !important;
}

/* Code Card - Modo Claro */
.code-card {
  background: #1e293b;
}

.code-card-header {
  background: #0f172a;
}

.code-card-body {
  color: #e2e8f0;
}

.code-keyword {
  color: #c084fc;
}

.code-variable {
  color: #7dd3fc;
}

.code-operator {
  color: #f8fafc;
}

.code-property {
  color: #7dd3fc;
}

.code-string {
  color: #fbbf24;
}

.code-boolean {
  color: #34d399;
}

/* Efeitos de Card */
.card-hover {
  transition: var(--transition-smooth);
}

.card-hover:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.06);
}

/* Glass Morphism */
.glass-card {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(0, 0, 0, 0.06);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

/* Certificações com Background */
.glass-card[href] {
  min-height: 300px;
}

/* Skill Bars */
.skill-bar {
  animation: skillFill 1.5s ease-out forwards;
}

@keyframes skillFill {
  from {
    width: 0;
  }
}

/* Animações */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-fade-in {
  animation: fadeInUp 0.6s ease-out forwards;
}

.delay-100 { animation-delay: 0.1s; }
.delay-200 { animation-delay: 0.2s; }
.delay-300 { animation-delay: 0.3s; }
.delay-400 { animation-delay: 0.4s; }

/* Navigation Links */
.nav-link {
  position: relative;
  transition: var(--transition-smooth);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, #059669, #0d9488);
  transition: width 0.3s ease;
}

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

/* Projeto Tags */
.projeto-tag {
  background: rgba(5, 150, 105, 0.08);
  border: 1px solid rgba(5, 150, 105, 0.15);
  transition: var(--transition-smooth);
}

.projeto-tag:hover {
  background: rgba(5, 150, 105, 0.12);
  border-color: rgba(5, 150, 105, 0.25);
}

/* Dark Mode */
.dark {
  background: linear-gradient(135deg, #000000 0%, #001a0d 50%, #000000 100%) !important;
}

.dark .glass-card {
  background: rgba(10, 10, 10, 0.8);
  border: 1px solid rgba(0, 255, 136, 0.2);
  box-shadow: 0 4px 20px rgba(0, 255, 136, 0.1);
}

.dark .card-hover:hover {
  box-shadow: 0 20px 40px rgba(0, 255, 136, 0.4), 0 0 20px rgba(0, 255, 136, 0.3);
  border-color: rgba(0, 255, 136, 0.5);
}

/* Scrollbar Dark Mode */
/* Scrollbar Dark Mode - removido para evitar conflito e garantir cor escura discreta */

.dark .text-slate-800,
.dark .text-gray-800 {
  color: #00ff88 !important;
  text-shadow: 0 0 10px rgba(0, 255, 136, 0.3);
}

.dark .text-slate-600,
.dark .text-gray-600 {
  color: #a0ffd4 !important;
}

.dark .text-slate-700,
.dark .text-gray-700 {
  color: #00ffcc !important;
}

.dark .text-slate-500,
.dark .text-gray-500 {
  color: #66ffaa !important;
}

.dark .text-gray-400 {
  color: #55dd99 !important;
}

.dark .bg-slate-200,
.dark .bg-gray-100 {
  background-color: #001a0d !important;
}

.dark .border-slate-200,
.dark .border-gray-200,
.dark .border-gray-300 {
  border-color: rgba(0, 255, 136, 0.3) !important;
}

.dark .nav-link {
  color: #00ffcc;
}

.dark .nav-link:hover {
  color: #00ff88;
  text-shadow: 0 0 10px rgba(0, 255, 136, 0.5);
}

.dark .gradient-text {
  background: linear-gradient(135deg, #00ff88 0%, #00ffcc 50%, #00ff88 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  filter: drop-shadow(0 0 10px rgba(0, 255, 136, 0.5));
}

/* Ícones das categorias no dark mode */
.dark .text-emerald-600,
.dark .text-purple-600,
.dark .text-blue-600,
.dark .text-orange-600,
.dark .text-indigo-600 {
  color: #00ff88 !important;
}

/* Code Card - Dark Mode */
.dark .code-card {
  background: #000000;
  border: 1px solid rgba(0, 255, 136, 0.3);
  box-shadow: 0 0 30px rgba(0, 255, 136, 0.15);
}

.dark .code-card-header {
  background: #000000;
  border-bottom: 1px solid rgba(0, 255, 136, 0.2);
}

.dark .code-card-body {
  color: #a0ffd4;
}

.dark .code-keyword {
  color: #ff79c6;
}

.dark .code-variable {
  color: #00ffcc;
}

.dark .code-property {
  color: #00ffcc;
}

.dark .code-string {
  color: #fbbf24;
}

.dark .code-boolean {
  color: #00ff88;
  text-shadow: 0 0 10px rgba(0, 255, 136, 0.5);
}

/* Hero social icons dark mode */
.dark .hero-social-icon {
  color: #66ffaa !important;
}

.dark .hero-social-icon:hover {
  color: #00ff88 !important;
}

/* Botão currículo dark mode */
.dark .border-emerald-500 {
  border-color: #00ff88 !important;
}

.dark .text-emerald-600 {
  color: #00ff88 !important;
}

.dark .hover\:bg-emerald-500:hover {
  background-color: #00ff88 !important;
  color: #000000 !important;
}

/* Responsivo */
@media (max-width: 768px) {
  .glass-card {
    padding: 1.5rem;
  }
  
  .nav-link {
    font-size: 0.875rem;
  }
}

/* Acessibilidade */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* === Scrollbar Dark Final Override === */
.dark::-webkit-scrollbar-thumb {
  background: rgba(20,40,30,0.55) !important;
}

.dark::-webkit-scrollbar-track {
  background: transparent !important;
}

.dark {
  scrollbar-color: rgba(20,40,30,0.55) transparent !important;
}

/* === Mobile Menu Dark Fix === */

/* Overlay escuro ao abrir menu */
#mobile-overlay {
  background: rgba(0,0,0,0.6);
}

.dark #mobile-overlay {
  background: rgba(0,0,0,0.8);
}

/* Painel lateral do menu */
.mobile-menu-panel {
  background: white;
}

.dark .mobile-menu-panel {
  background: #020617; /* slate-950 */
  border-left: 1px solid rgba(0,255,136,0.2);
}

/* Ícone hambúrguer visível sempre */
#mobile-menu-button {
  background-color: white;
}

.dark #mobile-menu-button {
  background-color: #1e293b; /* slate-800 */
  color: #f8fafc;
  border-color: #334155;
}

/* Garante que o menu mobile fica acima do header */
#mobile-menu {
  z-index: 9999;
}

/* Garante que o header não sobrepõe o menu */
nav {
  z-index: 50;
}

#mobile-menu {
  z-index: 9999;
}

nav {
  z-index: 50;
}

