@import url('https://fonts.googleapis.com/css2?family=JetBrains+Mono:wght@400;500;700&family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&display=swap');

/* ==========================================
   CSS VARIABLES & DESIGN TOKENS
   ========================================== */
:root {
  --bg-dark: #07090e;
  --bg-darker: #05060a;
  --bg-card: #0e1320;
  --bg-card-hover: #141b2d;
  --primary: #00f2fe;
  --primary-rgb: 0, 242, 254;
  --secondary: #9b51e0;
  --secondary-rgb: 155, 81, 224;
  --accent: #10b981;
  --accent-rgb: 16, 185, 129;
  --warning: #f59e0b;
  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --border-color: rgba(255, 255, 255, 0.06);
  --border-color-hover: rgba(0, 242, 254, 0.3);

  --glow-cyan: 0 0 20px rgba(0, 242, 254, 0.25);
  --glow-purple: 0 0 20px rgba(155, 81, 224, 0.25);
  --glow-green: 0 0 20px rgba(16, 185, 129, 0.25);

  --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-normal: 0.4s cubic-bezier(0.4, 0, 0.2, 1);

  --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
}

/* ==========================================
   BASE & RESET STYLES
   ========================================== */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

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

body {
  background-color: var(--bg-dark);
  color: var(--text-main);
  font-family: var(--font-sans);
  line-height: 1.6;
  overflow-x: hidden;
  position: relative;
  -webkit-font-smoothing: antialiased;
}

/* Custom Selection */
::selection {
  background-color: rgba(0, 242, 254, 0.2);
  color: var(--primary);
}

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

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

::-webkit-scrollbar-thumb {
  background: #1b2336;
  border-radius: 5px;
  border: 2px solid var(--bg-darker);
}

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

/* Background grid effect */
.grid-bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.015) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.015) 1px, transparent 1px);
  background-size: 50px 50px;
  pointer-events: none;
  z-index: 0;
}

.grid-bg::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at 50% 50%, transparent 20%, var(--bg-dark) 85%);
  pointer-events: none;
}

/* Glow highlights */
.ambient-glow-1 {
  position: absolute;
  top: 15%;
  right: 10%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(0, 242, 254, 0.08) 0%, transparent 70%);
  z-index: 0;
  pointer-events: none;
}

.ambient-glow-2 {
  position: absolute;
  top: 60%;
  left: 5%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(155, 81, 224, 0.06) 0%, transparent 70%);
  z-index: 0;
  pointer-events: none;
}

/* ==========================================
   TYPOGRAPHY & UTILITIES
   ========================================== */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

a {
  color: inherit;
  text-decoration: none;
  transition: var(--transition-fast);
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  position: relative;
  z-index: 1;
}

.section {
  padding: 7rem 0;
  position: relative;
}

.section-title {
  font-size: 2.5rem;
  margin-bottom: 3.5rem;
  position: relative;
  display: inline-block;
  color: var(--text-main);
  background: linear-gradient(135deg, #fff 30%, var(--text-muted) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.section-title::after {
  content: "";
  position: absolute;
  bottom: -10px;
  left: 0;
  width: 60px;
  height: 4px;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  border-radius: 2px;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.8rem 1.6rem;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: var(--transition-normal);
  border: 1px solid transparent;
  position: relative;
  overflow: hidden;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: var(--bg-darker);
  box-shadow: var(--glow-cyan);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 25px rgba(0, 242, 254, 0.45);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.03);
  border-color: var(--border-color);
  color: var(--text-main);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.07);
  border-color: var(--primary);
  color: var(--primary);
  transform: translateY(-2px);
}

/* Badge styles */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
  background: rgba(0, 242, 254, 0.08);
  border: 1px solid rgba(0, 242, 254, 0.15);
  color: var(--primary);
}

.badge-purple {
  background: rgba(155, 81, 224, 0.08);
  border: 1px solid rgba(155, 81, 224, 0.15);
  color: var(--secondary);
}

/* ==========================================
   HEADER / NAVBAR
   ========================================== */
header.navbar-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  background: rgba(7, 9, 14, 0.75);
  border-bottom: 1px solid var(--border-color);
  transition: var(--transition-normal);
}

header.navbar-container.scrolled {
  padding: 0.5rem 0;
  background: rgba(5, 6, 10, 0.9);
}

.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 4.5rem;
}

.logo {
  font-family: var(--font-mono);
  font-size: 1.3rem;
  font-weight: 700;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.logo-ext {
  font-weight: 400;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2.5rem;
  list-style: none;
}

.nav-links a {
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--text-muted);
  position: relative;
  padding: 0.5rem 0;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--primary);
}

.nav-links a::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--primary);
  transition: var(--transition-fast);
}

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

/* Sound Controller Switch */
.audio-switch {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-color);
  color: var(--text-muted);
  padding: 0.5rem;
  border-radius: 8px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.3rem;
  height: 2.3rem;
  transition: var(--transition-fast);
}

.audio-switch:hover {
  color: var(--primary);
  border-color: var(--primary);
  background: rgba(0, 242, 254, 0.05);
}

.audio-switch.playing {
  animation: pulse-audio 1.5s infinite;
  color: var(--primary);
}

@keyframes pulse-audio {
  0% {
    box-shadow: 0 0 0 0 rgba(0, 242, 254, 0.4);
  }

  70% {
    box-shadow: 0 0 0 6px rgba(0, 242, 254, 0);
  }

  100% {
    box-shadow: 0 0 0 0 rgba(0, 242, 254, 0);
  }
}

.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  color: var(--text-main);
  font-size: 1.5rem;
  cursor: pointer;
}

/* ==========================================
   HERO SECTION
   ========================================== */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 6rem;
  position: relative;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 3rem;
  align-items: center;
  width: 100%;
}

.hero-content {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.hero-pretitle {
  font-family: var(--font-mono);
  color: var(--primary);
  font-size: 1rem;
  letter-spacing: 0.1em;
}

.hero-title {
  font-size: 3.5rem;
  font-weight: 800;
  line-height: 1.1;
  background: linear-gradient(135deg, var(--text-main) 40%, rgba(255, 255, 255, 0.7) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-title span {
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-subtitle-container {
  height: 2.5rem;
  display: flex;
  align-items: center;
}

.hero-subtitle {
  font-size: 1.3rem;
  color: var(--text-muted);
  font-weight: 500;
}

.typed-cursor {
  font-size: 1.4rem;
  color: var(--primary);
  animation: blink-cursor 0.8s infinite;
  margin-left: 3px;
}

@keyframes blink-cursor {

  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: 0;
  }
}

.hero-desc {
  color: var(--text-muted);
  font-size: 1.1rem;
  max-width: 540px;
  text-align: justify;
}

.hero-buttons {
  display: flex;
  gap: 1.2rem;
  margin-top: 1rem;
}

/* Terminal Mockup */
.hero-visual {
  position: relative;
}

.terminal-mockup {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4), var(--glow-cyan);
  transition: var(--transition-normal);
  position: relative;
}

.terminal-mockup:hover {
  transform: translateY(-5px);
  border-color: var(--border-color-hover);
}

.terminal-header {
  background: #090c15;
  padding: 0.75rem 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--border-color);
}

.terminal-dots {
  display: flex;
  gap: 0.4rem;
}

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

.dot-red {
  background: #ff5f56;
}

.dot-yellow {
  background: #ffbd2e;
}

.dot-green {
  background: #27c93f;
}

.terminal-title {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-muted);
}

.terminal-body {
  padding: 1.5rem;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: #c9d1d9;
  line-height: 1.6;
}

.terminal-line {
  margin-bottom: 0.75rem;
  display: flex;
  gap: 0.5rem;
}

.terminal-prompt {
  color: var(--primary);
  user-select: none;
}

.terminal-command {
  color: var(--text-main);
}

.terminal-output {
  color: var(--text-muted);
  padding-left: 1rem;
  border-left: 2px solid rgba(255, 255, 255, 0.05);
}

.terminal-keyword {
  color: #ff7b72;
}

.terminal-string {
  color: #a5d6ff;
}

.terminal-function {
  color: #d2a8ff;
}

.terminal-variable {
  color: #ffa657;
}

.terminal-number {
  color: #79c0ff;
}

.terminal-success {
  color: var(--accent);
}

/* ==========================================
   SOBRE MIM SECTION
   ========================================== */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.about-text {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

.about-p {
  color: var(--text-muted);
  font-size: 1.05rem;
  text-align: justify;
}

.about-highlight {
  color: var(--text-main);
  font-weight: 600;
}

/* Stats Cards */
.about-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

.stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  padding: 1.8rem;
  border-radius: 12px;
  text-align: center;
  transition: var(--transition-normal);
  position: relative;
  overflow: hidden;
}

.stat-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  opacity: 0;
  transition: var(--transition-fast);
}

.stat-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-color-hover);
  background: var(--bg-card-hover);
}

.stat-card:hover::before {
  opacity: 1;
}

.stat-number {
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 0.5rem;
  display: block;
}

.stat-label {
  font-size: 0.9rem;
  color: var(--text-muted);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* ==========================================
   DASHBOARD DE HABILIDADES
   ========================================== */
.skills-dashboard-wrapper {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 2.5rem;
  position: relative;
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
}

.dashboard-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 1.5rem;
  margin-bottom: 2rem;
  flex-wrap: wrap;
  gap: 1rem;
}

.dashboard-tab-info {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.dashboard-pulse-dot {
  width: 8px;
  height: 8px;
  background-color: var(--accent);
  border-radius: 50%;
  animation: pulse-dot 1.5s infinite;
}

@keyframes pulse-dot {
  0% {
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
  }

  70% {
    box-shadow: 0 0 0 8px rgba(16, 185, 129, 0);
  }

  100% {
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0);
  }
}

.dashboard-tab-info span {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--text-muted);
}

.skills-tabs {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.tab-btn {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-color);
  color: var(--text-muted);
  padding: 0.6rem 1.2rem;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 600;
  font-size: 0.9rem;
  font-family: var(--font-sans);
  transition: var(--transition-fast);
}

.tab-btn:hover {
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-main);
  border-color: var(--primary);
}

.tab-btn.active {
  background: rgba(0, 242, 254, 0.08);
  border-color: var(--primary);
  color: var(--primary);
  box-shadow: var(--glow-cyan);
}

.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
  transition: opacity 0.3s ease;
}

.skill-card {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-color);
  padding: 1.8rem;
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
  position: relative;
  transition: var(--transition-normal);
}

.skill-card:hover {
  transform: translateY(-3px);
  border-color: var(--border-color-hover);
  background: rgba(255, 255, 255, 0.04);
}

.skill-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.skill-icon {
  font-size: 1.8rem;
}

.skill-percentage {
  font-family: var(--font-mono);
  font-weight: 700;
  color: var(--primary);
  font-size: 0.95rem;
}

.skill-card-body h3 {
  font-size: 1.15rem;
  margin-bottom: 0.5rem;
}

.skill-card-body p {
  font-size: 0.85rem;
  color: var(--text-muted);
  text-align: justify;
}

.skill-bar-container {
  height: 6px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 3px;
  overflow: hidden;
  position: relative;
}

.skill-bar-fill {
  height: 100%;
  width: 0;
  /* Animated via JS */
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  border-radius: 3px;
  transition: width 1.2s cubic-bezier(0.1, 0.8, 0.3, 1);
}

/* ==========================================
   MINI PLAYGROUND DE DADOS (PROJETOS)
   ========================================== */
.playground-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 3.5rem;
  align-items: start;
}

.playground-info {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.playground-desc {
  color: var(--text-muted);
  font-size: 1.05rem;
  text-align: justify;
}

.playground-options {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.playground-option-btn {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-color);
  padding: 1.2rem;
  border-radius: 12px;
  cursor: pointer;
  text-align: left;
  transition: var(--transition-normal);
  display: flex;
  align-items: center;
  gap: 1.2rem;
}

.playground-option-btn:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: var(--primary);
  transform: translateX(3px);
}

.playground-option-btn.active {
  background: rgba(0, 242, 254, 0.04);
  border-color: var(--primary);
  box-shadow: var(--glow-cyan);
}

.playground-option-num {
  font-family: var(--font-mono);
  font-size: 0.9rem;
  color: var(--text-muted);
  background: rgba(255, 255, 255, 0.05);
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-fast);
}

.playground-option-btn.active .playground-option-num {
  background: var(--primary);
  color: var(--bg-darker);
  font-weight: 700;
}

.playground-option-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 0.2rem;
}

.playground-option-subtitle {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* Interactive Dashboard Viewport */
.playground-view {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 2rem;
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
  position: relative;
  min-height: 400px;
  display: flex;
  flex-direction: column;
  transition: var(--transition-normal);
}

.playground-view::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(0, 242, 254, 0.02) 0%, rgba(155, 81, 224, 0.02) 100%);
  border-radius: 16px;
  pointer-events: none;
}

.view-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 1rem;
  margin-bottom: 1.5rem;
}

.view-title {
  font-family: var(--font-mono);
  font-size: 0.9rem;
  color: var(--primary);
  font-weight: 700;
}

.view-badge {
  font-size: 0.75rem;
  background: rgba(16, 185, 129, 0.1);
  color: var(--accent);
  border: 1px solid rgba(16, 185, 129, 0.2);
  padding: 0.2rem 0.6rem;
  border-radius: 10px;
}

.view-body {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

/* Dashboard Mockup Charts */
.db-metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.db-metric-card {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-color);
  padding: 1rem;
  border-radius: 8px;
  text-align: center;
}

.db-metric-val {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--text-main);
  display: block;
}

.db-metric-label {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.db-chart-container {
  height: 180px;
  position: relative;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  padding: 1rem 0;
  border-bottom: 1px dashed var(--border-color);
}

.db-chart-bar-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 14%;
  height: 100%;
  justify-content: flex-end;
  gap: 0.5rem;
}

.db-chart-bar {
  width: 100%;
  background: linear-gradient(to top, var(--primary), var(--secondary));
  border-radius: 4px 4px 0 0;
  transition: height 0.8s cubic-bezier(0.1, 0.8, 0.3, 1);
  box-shadow: 0 0 10px rgba(0, 242, 254, 0.15);
}

.db-chart-label {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--text-muted);
}

/* Prompt Visualizer */
.prompt-box {
  background: rgba(255, 255, 255, 0.01);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 1rem;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: #c9d1d9;
}

.prompt-tag {
  color: var(--secondary);
  font-weight: 700;
}

.prompt-result {
  background: rgba(16, 185, 129, 0.05);
  border-left: 3px solid var(--accent);
  padding: 0.75rem;
  border-radius: 0 8px 8px 0;
  margin-top: 1rem;
  font-size: 0.8rem;
}

/* Automation Flow Visualizer */
.flow-container {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding: 0.5rem 0;
}

.flow-step {
  display: flex;
  align-items: center;
  gap: 1rem;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-color);
  padding: 0.75rem 1rem;
  border-radius: 8px;
  font-size: 0.85rem;
}

.flow-step-num {
  font-family: var(--font-mono);
  width: 1.5rem;
  height: 1.5rem;
  border-radius: 50%;
  background: rgba(0, 242, 254, 0.1);
  border: 1px solid rgba(0, 242, 254, 0.2);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.75rem;
}

.flow-step-text {
  flex-grow: 1;
}

.flow-arrow {
  text-align: center;
  color: var(--primary);
  font-size: 1rem;
  line-height: 1;
}

/* ==========================================
   LINHA DO TEMPO / EXPERIÊNCIA
   ========================================== */
.timeline {
  max-width: 800px;
  margin: 0 auto;
  position: relative;
}

.timeline::after {
  content: "";
  position: absolute;
  width: 2px;
  background: var(--border-color);
  top: 0;
  bottom: 0;
  left: 50%;
  margin-left: -1px;
}

.timeline-item {
  padding: 1rem 2.5rem;
  position: relative;
  width: 50%;
  box-sizing: border-box;
}

/* Left & Right layout */
.timeline-item.left {
  left: 0;
  text-align: right;
}

.timeline-item.right {
  left: 50%;
}

/* Dot on timeline */
.timeline-item::after {
  content: "";
  position: absolute;
  width: 16px;
  height: 16px;
  right: -8px;
  background-color: var(--bg-dark);
  border: 3px solid var(--primary);
  top: 1.5rem;
  border-radius: 50%;
  z-index: 1;
  transition: var(--transition-fast);
}

.timeline-item.right::after {
  left: -8px;
}

.timeline-item:hover::after {
  background-color: var(--primary);
  box-shadow: var(--glow-cyan);
}

.timeline-content {
  padding: 1.5rem;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  transition: var(--transition-normal);
  position: relative;
}

.timeline-content:hover {
  transform: translateY(-3px);
  border-color: var(--border-color-hover);
  background: var(--bg-card-hover);
}

.timeline-date {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--primary);
  font-weight: 600;
  margin-bottom: 0.5rem;
  display: block;
}

.timeline-title {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 0.2rem;
}

.timeline-company {
  font-size: 0.9rem;
  color: var(--text-muted);
  font-weight: 600;
  margin-bottom: 0.8rem;
  display: block;
}

.timeline-desc {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.5;
  text-align: justify;
}

.timeline-tags {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-top: 1rem;
  justify-content: flex-start;
}

.timeline-item.left .timeline-tags {
  justify-content: flex-end;
}

/* Responsive timeline (single column) */
@media screen and (max-width: 768px) {
  .timeline::after {
    left: 31px;
  }

  .timeline-item {
    width: 100%;
    padding-left: 55px;
    padding-right: 0;
  }

  .timeline-item.left {
    left: 0;
    text-align: left;
  }

  .timeline-item.right {
    left: 0;
  }

  .timeline-item::after {
    left: 23px;
    right: auto;
  }

  .timeline-item.left .timeline-tags {
    justify-content: flex-start;
  }
}

/* ==========================================
   FORMAÇÃO & CERTIFICADOS
   ========================================== */
.education-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
  margin-top: 4rem;
}

.edu-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  padding: 2rem;
  border-radius: 12px;
  transition: var(--transition-normal);
}

.edu-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-color-hover);
  background: var(--bg-card-hover);
}

.edu-type {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--secondary);
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
  display: block;
}

.edu-degree {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.4rem;
}

.edu-institution {
  font-size: 0.95rem;
  color: var(--text-muted);
  font-weight: 600;
  margin-bottom: 0.5rem;
  display: block;
}

.edu-date {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* ==========================================
   CONTATO & FOOTER
   ========================================== */
.contact-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 4rem;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.contact-desc {
  color: var(--text-muted);
  font-size: 1.05rem;
  text-align: justify;
}

.contact-methods {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

.contact-method {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.contact-icon-box {
  width: 3rem;
  height: 3rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  font-size: 1.2rem;
  transition: var(--transition-fast);
}

.contact-method:hover .contact-icon-box {
  border-color: var(--primary);
  color: var(--bg-darker);
  background: var(--primary);
  box-shadow: var(--glow-cyan);
}

.contact-method-details span {
  font-size: 0.8rem;
  color: var(--text-muted);
  display: block;
}

.contact-method-details a,
.contact-method-details p {
  font-weight: 600;
  font-size: 1rem;
}

.contact-social-links {
  display: flex;
  gap: 1rem;
  margin-top: 1rem;
}

.social-link {
  width: 2.8rem;
  height: 2.8rem;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-color);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  transition: var(--transition-normal);
  color: var(--text-muted);
}

.social-link:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: rgba(0, 242, 254, 0.05);
  transform: translateY(-3px);
  box-shadow: var(--glow-cyan);
}

/* Contact Form */
.contact-form-container {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 2.5rem;
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.form-group label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
  font-family: var(--font-sans);
}

.form-control {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-color);
  padding: 0.8rem 1rem;
  border-radius: 8px;
  color: var(--text-main);
  font-family: var(--font-sans);
  font-size: 0.95rem;
  transition: var(--transition-fast);
}

.form-control:focus {
  outline: none;
  border-color: var(--primary);
  background: rgba(255, 255, 255, 0.04);
  box-shadow: 0 0 10px rgba(0, 242, 254, 0.15);
}

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

/* Footer */
footer {
  border-top: 1px solid var(--border-color);
  padding: 3rem 0;
  background: var(--bg-darker);
  text-align: center;
  font-size: 0.9rem;
  color: var(--text-muted);
}

footer p {
  margin-bottom: 0.5rem;
}

footer span {
  font-family: var(--font-mono);
  color: var(--primary);
}

/* ==========================================
   SCROLL REVEAL ANIMATIONS
   ========================================== */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

/* ==========================================
   RESPONSIVE DESIGN (MEDIA QUERIES)
   ========================================== */
.mobile-only {
  display: none !important;
}

@media screen and (max-width: 1024px) {
  .nav-links {
    gap: 1.5rem;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    gap: 4rem;
    text-align: center;
  }

  .hero-content {
    align-items: center;
  }

  .hero-desc {
    margin: 0 auto;
  }

  .hero-buttons {
    justify-content: center;
  }

  .hero-visual {
    max-width: 500px;
    margin: 0 auto;
    width: 100%;
  }

  .about-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .playground-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .contact-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
}

@media screen and (max-width: 768px) {
  html {
    font-size: 15px;
  }

  .container {
    padding: 0 1.2rem;
  }

  .section-title {
    font-size: 2.2rem;
    margin-bottom: 2.5rem;
  }

  .mobile-only {
    display: block !important;
  }

  /* Hide CV download from navbar to prevent layout breaking */
  .nav-actions #btnDownloadCV {
    display: none;
  }

  .navbar {
    height: 4rem;
  }

  /* Mobile Navigation Menu Drawer */
  .nav-links {
    display: none;
    list-style: none;
  }

  .nav-links.active {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 4rem;
    left: 0;
    width: 100%;
    height: calc(100vh - 4rem);
    background: rgba(7, 9, 14, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 3rem 2rem;
    gap: 1.8rem;
    align-items: center;
    border-bottom: 1px solid var(--border-color);
    z-index: 99;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.6);
  }

  .nav-links.active li {
    width: 100%;
    text-align: center;
  }

  .nav-links.active a {
    font-size: 1.2rem;
    display: block;
    padding: 0.5rem 0;
  }

  .mobile-menu-btn {
    display: block;
  }

  .hero-title {
    font-size: 2.8rem;
  }

  .section {
    padding: 5rem 0;
  }

  /* Responsive Terminal Mockup */
  .terminal-body {
    padding: 1rem;
    font-size: 0.8rem;
  }

  .terminal-line {
    flex-wrap: wrap;
  }

  .terminal-command {
    word-break: break-all;
  }

  /* About Section Stats */
  .about-stats {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }

  .stat-card {
    padding: 1.2rem;
  }

  /* Scrollable Skills tabs for premium UX */
  .skills-tabs {
    flex-wrap: nowrap;
    overflow-x: auto;
    width: 100%;
    padding-bottom: 0.5rem;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  .skills-tabs::-webkit-scrollbar {
    display: none;
  }

  .tab-btn {
    flex-shrink: 0;
  }

  .skills-dashboard-wrapper {
    padding: 1.2rem;
  }

  /* Playground Section on Mobile */
  .playground-option-btn {
    padding: 0.8rem 1rem;
    gap: 0.8rem;
  }

  .playground-option-title {
    font-size: 1rem;
  }

  .playground-view {
    padding: 1.2rem;
    min-height: auto;
  }

  .db-metrics {
    grid-template-columns: repeat(3, 1fr);
    gap: 0.5rem;
  }

  .db-metric-card {
    padding: 0.6rem 0.4rem;
  }

  .db-metric-val {
    font-size: 1.05rem;
  }

  .db-metric-label {
    font-size: 0.65rem;
  }

  /* Education Cards */
  .education-grid {
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.2rem;
    margin-top: 2rem;
  }

  .edu-card {
    padding: 1.2rem;
  }

  /* Timeline Experience items padding */
  .timeline-content {
    padding: 1.2rem;
  }

  /* Contact and Forms */
  .contact-form-container {
    padding: 1.5rem;
  }

  .contact-method-details a {
    word-break: break-all;
  }
}

@media screen and (max-width: 480px) {
  .section-title {
    font-size: 2rem;
    margin-bottom: 2.5rem;
  }

  .hero-title {
    font-size: 2.2rem;
  }

  .about-stats {
    grid-template-columns: 1fr;
  }

  .hero-buttons {
    flex-direction: column;
    width: 100%;
    gap: 0.8rem;
  }

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