:root {
  /* Dark Theme Colors */
  --bg-primary: #0a0a0a;
  --bg-secondary: #111111;
  --bg-tertiary: #1a1a1a;
  --bg-card: #161616;
  --bg-hover: #202020;

  --text-primary: #ffffff;
  --text-secondary: #b3b3b3;
  --text-muted: #666666;

  --accent-primary: #3b82f6;
  --accent-secondary: #1d4ed8;
  --accent-gradient: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);

  --border-color: #2a2a2a;
  --border-hover: #3a3a3a;

  --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.5);
  --shadow-xl: 0 12px 32px rgba(0, 0, 0, 0.6);

  --gradient-blue: linear-gradient(
    135deg,
    #3b82f6 0%,
    #1e40af 50%,
    #1d4ed8 100%
  );
  --gradient-card: linear-gradient(135deg, #161616 0%, #1a1a1a 100%);
}

/* Light Theme - Corrigido */
[data-theme="light"] {
  --bg-primary: #ffffff;
  --bg-secondary: #f8fafc;
  --bg-tertiary: #f1f5f9;
  --bg-card: #ffffff;
  --bg-hover: #f8fafc;

  --text-primary: #1e293b;
  --text-secondary: #475569;
  --text-muted: #94a3b8;

  --accent-primary: #2563eb;
  --accent-secondary: #1d4ed8;
  --accent-gradient: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);

  --border-color: #e2e8f0;
  --border-hover: #cbd5e1;

  --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.15);
  --shadow-xl: 0 12px 32px rgba(0, 0, 0, 0.2);

  --gradient-blue: linear-gradient(
    135deg,
    #2563eb 0%,
    #1e40af 50%,
    #1d4ed8 100%
  );
  --gradient-card: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
}

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

body {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    sans-serif;
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  transition: all 0.3s ease;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* Navigation */
.navbar {
  position: fixed;
  top: 0;
  width: 100%;
  background: rgba(10, 10, 10, 0.95);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-color);
  z-index: 1000;
  transition: all 0.3s ease;
}

/* Correções específicas para o tema claro */
[data-theme="light"] .navbar {
  background: rgba(255, 255, 255, 0.95);
  border-bottom-color: var(--border-color);
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 70px;
}

.nav-logo a {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-primary);
  text-decoration: none;
  transition: all 0.3s ease;
}

.nav-logo a:hover {
  color: var(--accent-primary);
}

.nav-menu {
  display: flex;
  gap: 2rem;
  list-style: none;
}

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

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

.nav-link.active::after {
  content: "";
  position: absolute;
  bottom: -8px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--accent-gradient);
  border-radius: 1px;
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 1rem;
}

/* Theme Toggle */
.theme-toggle {
  background: none;
  border: 2px solid var(--border-color);
  border-radius: 50px;
  padding: 0.5rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.theme-toggle:hover {
  border-color: var(--accent-primary);
  transform: scale(1.05);
}

.theme-toggle i {
  font-size: 1.25rem;
  color: var(--text-primary);
  transition: all 0.3s ease;
}

.theme-toggle .sun-icon {
  opacity: 1;
  transform: rotate(0deg);
}

.theme-toggle .moon-icon {
  position: absolute;
  opacity: 0;
  transform: rotate(180deg);
}

[data-theme="dark"] .theme-toggle .sun-icon {
  opacity: 0;
  transform: rotate(180deg);
}

[data-theme="dark"] .theme-toggle .moon-icon {
  opacity: 1;
  transform: rotate(0deg);
}

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

.bar {
  width: 25px;
  height: 3px;
  background: var(--text-primary);
  margin: 3px 0;
  transition: 0.3s;
}

/* Hero Section */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  background: var(--bg-primary);
}

[data-theme="light"] .hero {
  background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
}

.hero-background {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(
      circle at 20% 80%,
      rgba(59, 130, 246, 0.1) 0%,
      transparent 50%
    ),
    radial-gradient(
      circle at 80% 20%,
      rgba(29, 78, 216, 0.1) 0%,
      transparent 50%
    );
}

[data-theme="light"] .hero-background {
  background: radial-gradient(
      circle at 20% 80%,
      rgba(37, 99, 235, 0.08) 0%,
      transparent 50%
    ),
    radial-gradient(
      circle at 80% 20%,
      rgba(29, 78, 216, 0.08) 0%,
      transparent 50%
    );
}

.hero-particles {
  position: absolute;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.hero-particles::before,
.hero-particles::after {
  content: "";
  position: absolute;
  width: 2px;
  height: 2px;
  background: var(--accent-primary);
  border-radius: 50%;
  animation: float 6s ease-in-out infinite;
}

.hero-particles::before {
  top: 20%;
  left: 20%;
  animation-delay: 0s;
}

.hero-particles::after {
  top: 60%;
  right: 30%;
  animation-delay: 3s;
}

.hero-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  position: relative;
  z-index: 2;
}

.hero-text {
  animation: fadeInUp 1s ease-out;
}

.hero-title {
  font-size: 3.5rem;
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: 1.5rem;
  color: var(--text-primary);
}

.typing-text {
  background: var(--gradient-blue);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  color: var(--text-secondary);
  font-weight: 400;
}

.hero-description {
  font-size: 1.25rem;
  color: var(--text-secondary);
  margin-bottom: 2rem;
  line-height: 1.6;
}

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

.btn {
  padding: 0.875rem 2rem;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 600;
  font-size: 1rem;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  border: 2px solid transparent;
  cursor: pointer;
}

.btn-primary {
  background: var(--accent-gradient);
  color: white;
  border-color: var(--accent-primary);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.btn-outline {
  background: transparent;
  color: var(--accent-primary);
  border-color: var(--accent-primary);
}

.btn-outline:hover {
  background: var(--accent-primary);
  color: white;
  transform: translateY(-2px);
}

.hero-visual {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  height: 400px;
}

.floating-card {
  position: absolute;
  background: var(--gradient-card);
  border: 1px solid var(--border-color);
  border-radius: 1rem;
  padding: 1.5rem;
  box-shadow: var(--shadow-lg);
  animation: float 6s ease-in-out infinite;
  backdrop-filter: blur(10px);
}

.floating-card.delay-1 {
  animation-delay: 2s;
  top: 20%;
  right: 20%;
}

.floating-card.delay-2 {
  animation-delay: 4s;
  bottom: 20%;
  left: 10%;
}

.card-content {
  display: flex;
  align-items: center;
  gap: 1rem;
  color: var(--text-primary);
}

.card-content i {
  font-size: 1.5rem;
  color: var(--accent-primary);
}

.scroll-indicator {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  animation: bounce 2s infinite;
  cursor: pointer;
}

.scroll-arrow {
  width: 2px;
  height: 30px;
  background: var(--accent-primary);
  position: relative;
}

.scroll-arrow::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: -4px;
  width: 10px;
  height: 10px;
  border-right: 2px solid var(--accent-primary);
  border-bottom: 2px solid var(--accent-primary);
  transform: rotate(45deg);
}

/* Sections */
.section {
  padding: 6rem 0;
  position: relative;
}

.section-title {
  font-size: 3rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 1rem;
  color: var(--text-primary);
}

.section-subtitle {
  font-size: 1.25rem;
  color: var(--text-secondary);
  text-align: center;
  margin-bottom: 4rem;
}

/* Sobre Section */
.sobre {
  background: var(--bg-secondary);
}

.sobre-content {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 4rem;
  align-items: start;
}

.text-block {
  margin-bottom: 2rem;
  padding: 1.5rem;
  background: var(--bg-card);
  border-radius: 1rem;
  border: 1px solid var(--border-color);
  transition: all 0.3s ease;
}

.text-block:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.text-block.highlight {
  background: var(--accent-gradient);
  color: white;
  border-color: var(--accent-primary);
}

[data-theme="light"] .text-block.highlight {
  background: var(--accent-gradient);
  color: white;
  border-color: var(--accent-primary);
}

.text-block.highlight p {
  color: white;
}

[data-theme="light"] .text-block.highlight p {
  color: white !important;
}

.text-block p {
  color: var(--text-secondary);
  line-height: 1.7;
  margin: 0;
}

.sobre-stats {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.stat-card {
  background: var(--gradient-card);
  border: 1px solid var(--border-color);
  border-radius: 1rem;
  padding: 2rem;
  text-align: center;
  transition: all 0.3s ease;
}

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

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

.stat-label {
  color: var(--text-secondary);
  font-weight: 500;
}

/* Análise de Dados Section */
.analise-dados {
  background: var(--bg-primary);
}

.dados-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.dados-card {
  background: var(--gradient-card);
  border: 1px solid var(--border-color);
  border-radius: 1rem;
  padding: 2rem;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.dados-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--accent-gradient);
}

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

.card-icon {
  width: 60px;
  height: 60px;
  background: var(--accent-gradient);
  border-radius: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
}

.card-icon i {
  font-size: 1.5rem;
  color: white;
}

.dados-card h3 {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 1rem;
}

.dados-card p {
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

.card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.tag {
  background: var(--bg-hover);
  color: var(--accent-primary);
  padding: 0.25rem 0.75rem;
  border-radius: 50px;
  font-size: 0.875rem;
  font-weight: 500;
  border: 1px solid var(--border-color);
}

/* Projetos Section */
.projetos {
  background: var(--bg-secondary);
}

.projetos-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 2rem;
}

.projeto-card {
  background: var(--gradient-card);
  border: 1px solid var(--border-color);
  border-radius: 1rem;
  padding: 2rem;
  transition: all 0.3s ease;
  position: relative;
}

.projeto-card.featured {
  grid-column: 1 / -1;
  background: var(--accent-gradient);
  color: white;
  border-color: var(--accent-primary);
}

[data-theme="light"] .projeto-card.featured {
  background: var(--accent-gradient);
  color: white;
  border-color: var(--accent-primary);
}

.projeto-card.featured * {
  color: white;
}

[data-theme="light"] .projeto-card.featured * {
  color: white !important;
}

[data-theme="light"] .projeto-card.featured .projeto-status {
  background: rgba(255, 255, 255, 0.2);
  color: white;
  border-color: rgba(255, 255, 255, 0.3);
}

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

.projeto-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
}

.projeto-icon {
  width: 50px;
  height: 50px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.projeto-icon i {
  font-size: 1.25rem;
  color: white;
}

.projeto-status {
  padding: 0.25rem 0.75rem;
  border-radius: 50px;
  font-size: 0.875rem;
  font-weight: 500;
  background: rgba(59, 130, 246, 0.1);
  color: var(--accent-primary);
  border: 1px solid var(--accent-primary);
}

.projeto-status.completed {
  background: rgba(34, 197, 94, 0.1);
  color: #22c55e;
  border-color: #22c55e;
}

.projeto-status.archived {
  background: rgba(156, 163, 175, 0.1);
  color: #9ca3af;
  border-color: #9ca3af;
}

.projeto-card h3 {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: var(--text-primary);
}

.projeto-card p {
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

.projeto-features {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

.projeto-features span {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
}

.projeto-features i {
  color: #22c55e;
}

.projeto-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

/* Timeline */
.timeline {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 30px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--border-color);
}

.timeline-item {
  position: relative;
  margin-bottom: 3rem;
  padding-left: 80px;
}

.timeline-marker {
  position: absolute;
  left: 20px;
  top: 0;
  width: 20px;
  height: 20px;
  background: var(--accent-primary);
  border: 4px solid var(--bg-primary);
  border-radius: 50%;
  box-shadow: 0 0 0 4px var(--border-color);
}

.timeline-marker.current {
  background: var(--accent-gradient);
  animation: pulse 2s infinite;
}

.timeline-content {
  background: var(--gradient-card);
  border: 1px solid var(--border-color);
  border-radius: 1rem;
  padding: 2rem;
  transition: all 0.3s ease;
}

.timeline-content:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.timeline-header {
  margin-bottom: 1rem;
}

.timeline-header h3 {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

.company {
  color: var(--accent-primary);
  font-weight: 600;
  margin-right: 1rem;
}

.period {
  color: var(--text-muted);
  font-size: 0.875rem;
}

.timeline-content p {
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

.timeline-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

/* Habilidades */
.habilidades {
  background: var(--bg-primary);
}

.habilidades-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}

.habilidade-category {
  background: var(--gradient-card);
  border: 1px solid var(--border-color);
  border-radius: 1rem;
  padding: 2rem;
  transition: all 0.3s ease;
}

.habilidade-category:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.habilidade-category h3 {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 1.5rem;
  text-align: center;
}

.habilidade-items {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.habilidade-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem;
  background: var(--bg-hover);
  border-radius: 0.75rem;
  border: 1px solid var(--border-color);
  transition: all 0.3s ease;
}

.habilidade-item:hover {
  background: var(--bg-tertiary);
  transform: translateX(4px);
}

.habilidade-item i {
  font-size: 1.25rem;
  color: var(--accent-primary);
  width: 24px;
  text-align: center;
}

.habilidade-item span {
  color: var(--text-primary);
  font-weight: 500;
}

/* Links */
.links {
  background: var(--bg-secondary);
}

.links-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  max-width: 800px;
  margin: 0 auto;
}

.link-card {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  background: var(--gradient-card);
  border: 1px solid var(--border-color);
  border-radius: 1rem;
  padding: 2rem;
  text-decoration: none;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.link-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--accent-gradient);
}

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

.link-icon {
  width: 60px;
  height: 60px;
  background: var(--accent-gradient);
  border-radius: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.link-icon i {
  font-size: 1.5rem;
  color: white;
}

.link-content {
  flex: 1;
}

.link-content h3 {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

.link-content p {
  color: var(--text-secondary);
  font-size: 0.875rem;
}

.link-arrow {
  color: var(--accent-primary);
  font-size: 1.25rem;
  transition: all 0.3s ease;
}

.link-card:hover .link-arrow {
  transform: translateX(4px);
}

/* KPIs Panel (Easter Egg) */
.kpis-panel {
  position: fixed;
  top: 50%;
  right: -300px;
  transform: translateY(-50%);
  width: 280px;
  background: var(--gradient-card);
  border: 1px solid var(--border-color);
  border-radius: 1rem;
  box-shadow: var(--shadow-xl);
  z-index: 1001;
  transition: all 0.3s ease;
}

.kpis-panel.active {
  right: 2rem;
}

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

.kpis-header h3 {
  color: var(--text-primary);
  font-size: 1.125rem;
  font-weight: 600;
}

.close-btn {
  background: none;
  border: none;
  color: var(--text-secondary);
  font-size: 1.5rem;
  cursor: pointer;
  transition: all 0.3s ease;
}

.close-btn:hover {
  color: var(--accent-primary);
}

.kpis-content {
  padding: 1.5rem;
}

.kpi-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--border-color);
}

.kpi-item:last-child {
  border-bottom: none;
}

.kpi-label {
  color: var(--text-secondary);
  font-size: 0.875rem;
}

.kpi-value {
  color: var(--accent-primary);
  font-weight: 600;
  font-size: 1.125rem;
}

/* Devaneios Pages */
.hero-simple {
  padding: 8rem 0 4rem;
  text-align: center;
  background: var(--bg-primary);
  border-bottom: 1px solid var(--border-color);
}

.hero-simple h1 {
  font-size: 3rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 1rem;
}

.hero-simple p {
  font-size: 1.25rem;
  color: var(--text-secondary);
}

.devaneios-content {
  background: var(--bg-secondary);
}

.devaneios-grid {
  display: grid;
  gap: 3rem;
  max-width: 800px;
  margin: 0 auto;
}

.devaneio-card {
  background: var(--gradient-card);
  border: 1px solid var(--border-color);
  border-radius: 1rem;
  padding: 2.5rem;
  transition: all 0.3s ease;
}

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

.devaneio-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 1.5rem;
}

.devaneio-header h2 {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1.3;
}

.devaneio-date {
  color: var(--text-muted);
  font-size: 0.875rem;
  font-weight: 500;
  background: var(--bg-hover);
  padding: 0.25rem 0.75rem;
  border-radius: 50px;
  border: 1px solid var(--border-color);
}

.devaneio-content {
  margin-bottom: 1.5rem;
}

.devaneio-content p {
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 1.5rem;
}

.devaneio-content > p:last-of-type {
  margin-bottom: 1.5rem;
}

.devaneio-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

/* Em Construção Page */
.construcao-container {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-primary);
  position: relative;
  overflow: hidden;
}

.construcao-content {
  text-align: center;
  z-index: 2;
  position: relative;
}

.construcao-icon {
  font-size: 4rem;
  color: var(--accent-primary);
  margin-bottom: 2rem;
  position: relative;
}

.construcao-icon i {
  margin: 0 0.5rem;
  animation: bounce 2s infinite alternate;
}

.construcao-icon i:nth-child(2) {
  animation-delay: 0.5s;
}

.construcao-container h1 {
  font-size: 3rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 1rem;
}

.construcao-container p {
  font-size: 1.25rem;
  color: var(--text-secondary);
  margin-bottom: 1rem;
}

.construcao-subtitle {
  color: var(--text-muted);
  font-size: 1rem;
  margin-bottom: 3rem;
}

.construcao-progress {
  margin: 3rem 0;
}

.progress-bar {
  width: 300px;
  height: 4px;
  background: var(--border-color);
  border-radius: 2px;
  margin: 0 auto 1rem;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  background: var(--accent-gradient);
  width: 0%;
  animation: loading 3s ease-in-out infinite;
}

.progress-text {
  color: var(--text-muted);
  font-size: 0.875rem;
}

.construcao-particles {
  position: absolute;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.particle {
  position: absolute;
  width: 4px;
  height: 4px;
  background: var(--accent-primary);
  border-radius: 50%;
  opacity: 0.3;
  animation: float 8s ease-in-out infinite;
}

.particle:nth-child(1) {
  top: 20%;
  left: 20%;
  animation-delay: 0s;
}
.particle:nth-child(2) {
  top: 60%;
  left: 80%;
  animation-delay: 2s;
}
.particle:nth-child(3) {
  top: 80%;
  left: 40%;
  animation-delay: 4s;
}
.particle:nth-child(4) {
  top: 40%;
  left: 60%;
  animation-delay: 6s;
}
.particle:nth-child(5) {
  top: 10%;
  left: 90%;
  animation-delay: 8s;
}

/* Footer */
.footer {
  background: var(--bg-tertiary);
  border-top: 1px solid var(--border-color);
  padding: 2rem 0;
  text-align: center;
}

[data-theme="light"] .footer {
  background: var(--bg-tertiary);
  color: var(--text-primary);
}

.footer p {
  color: var(--text-muted);
  font-size: 0.875rem;
}

[data-theme="light"] .footer p {
  color: var(--text-secondary);
}

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

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

@keyframes bounce {
  0%,
  20%,
  50%,
  80%,
  100% {
    transform: translateY(0);
  }
  40% {
    transform: translateY(-10px);
  }
  60% {
    transform: translateY(-5px);
  }
}

@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(59, 130, 246, 0.7);
  }
  70% {
    box-shadow: 0 0 0 10px rgba(59, 130, 246, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(59, 130, 246, 0);
  }
}

@keyframes loading {
  0% {
    width: 0%;
  }
  50% {
    width: 70%;
  }
  100% {
    width: 100%;
  }
}

/* Responsive Design */
@media (max-width: 1024px) {
  .hero-content {
    grid-template-columns: 1fr;
    gap: 2rem;
    text-align: center;
  }

  .hero-visual {
    height: 200px;
  }

  .sobre-content {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .sobre-stats {
    flex-direction: row;
    justify-content: center;
  }
}

@media (max-width: 768px) {
  .nav-menu {
    position: fixed;
    left: -100%;
    top: 70px;
    flex-direction: column;
    background: var(--bg-primary);
    width: 100%;
    text-align: center;
    transition: 0.3s;
    box-shadow: var(--shadow-lg);
    padding: 2rem 0;
    border-top: 1px solid var(--border-color);
  }

  .nav-menu.active {
    left: 0;
  }

  .nav-toggle {
    display: flex;
  }

  .nav-toggle.active .bar:nth-child(2) {
    opacity: 0;
  }

  .nav-toggle.active .bar:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
  }

  .nav-toggle.active .bar:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
  }

  .container {
    padding: 0 1rem;
  }

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

  .section-title {
    font-size: 2rem;
  }

  .section {
    padding: 4rem 0;
  }

  .dados-grid,
  .projetos-grid,
  .habilidades-grid {
    grid-template-columns: 1fr;
  }

  .projeto-card.featured {
    grid-column: 1;
  }

  .timeline::before {
    left: 15px;
  }

  .timeline-item {
    padding-left: 50px;
  }

  .timeline-marker {
    left: 5px;
  }

  .links-container {
    grid-template-columns: 1fr;
  }

  .devaneio-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }

  .construcao-container h1 {
    font-size: 2rem;
  }

  .kpis-panel.active {
    right: 1rem;
    left: 1rem;
    width: auto;
  }
}

@media (max-width: 480px) {
  .hero-title {
    font-size: 2rem;
  }

  .hero-buttons {
    flex-direction: column;
    align-items: center;
  }

  .sobre-stats {
    flex-direction: column;
  }

  .timeline-content {
    padding: 1.5rem;
  }

  .devaneio-card {
    padding: 1.5rem;
  }
}

/* Smooth transitions for theme switching */
* {
  transition: background-color 0.3s ease, color 0.3s ease,
    border-color 0.3s ease;
}

/* KPIs Dinâmicos */
.kpis-live {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  background: var(--gradient-card);
  border: 1px solid var(--border-color);
  border-radius: 1rem;
  padding: 1.5rem;
  box-shadow: var(--shadow-xl);
  z-index: 1000;
  min-width: 250px;
  backdrop-filter: blur(10px);
  transition: all 0.3s ease;
  transform: translateY(100px);
  opacity: 0;
}

.kpis-live.visible {
  transform: translateY(0);
  opacity: 1;
}

.kpis-live.minimized {
  transform: translateY(calc(100% - 60px));
}

.kpis-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
  cursor: pointer;
}

.kpis-title {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.kpis-toggle {
  background: none;
  border: none;
  color: var(--text-secondary);
  cursor: pointer;
  font-size: 1.25rem;
  transition: all 0.3s ease;
}

.kpis-toggle:hover {
  color: var(--accent-primary);
}

.kpis-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.kpi-live-item {
  text-align: center;
  padding: 0.75rem;
  background: var(--bg-hover);
  border-radius: 0.5rem;
  border: 1px solid var(--border-color);
}

.kpi-live-value {
  display: block;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--accent-primary);
  margin-bottom: 0.25rem;
}

.kpi-live-label {
  font-size: 0.75rem;
  color: var(--text-secondary);
  font-weight: 500;
}

.kpi-pulse {
  animation: pulse-kpi 2s infinite;
}

@keyframes pulse-kpi {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
  100% {
    transform: scale(1);
  }
}

/* Responsivo para KPIs */
@media (max-width: 768px) {
  .kpis-live {
    bottom: 1rem;
    right: 1rem;
    left: 1rem;
    min-width: auto;
  }

  .kpis-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 0.5rem;
  }

  .kpi-live-item {
    padding: 0.5rem;
  }

  .kpi-live-value {
    font-size: 1.25rem;
  }

  .kpi-live-label {
    font-size: 0.625rem;
  }
}

/* Correções específicas para o tema claro */
[data-theme="light"] .page-header {
  background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
  color: white;
}

[data-theme="light"] .cta-section {
  background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
}

/* Página Em Construção - Estilo Elegante */
.construcao-content {
  background: var(--bg-secondary);
  min-height: calc(100vh - 140px);
}

.construcao-main {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 4rem;
  align-items: start;
  margin-bottom: 4rem;
}

.construcao-visual {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3rem;
  position: sticky;
  top: 120px;
}

.construcao-icon-large {
  display: flex;
  gap: 2rem;
  margin-bottom: 2rem;
}

.construcao-icon-large i {
  font-size: 3rem;
  color: var(--accent-primary);
  animation: float 3s ease-in-out infinite;
  padding: 1.5rem;
  background: var(--gradient-card);
  border: 1px solid var(--border-color);
  border-radius: 1rem;
  box-shadow: var(--shadow-lg);
}

.construcao-icon-large i:nth-child(1) {
  animation-delay: 0s;
}

.construcao-icon-large i:nth-child(2) {
  animation-delay: 1s;
}

.construcao-icon-large i:nth-child(3) {
  animation-delay: 2s;
}

.progress-circle {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.progress-ring {
  transform: rotate(-90deg);
}

.progress-ring-circle {
  stroke-dasharray: 327;
  stroke-dashoffset: 82;
  transition: stroke-dashoffset 2s ease-in-out;
  stroke-linecap: round;
}

.progress-text {
  position: absolute;
  text-align: center;
}

.progress-percentage {
  display: block;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--accent-primary);
}

.progress-label {
  font-size: 0.875rem;
  color: var(--text-secondary);
}

.construcao-info h2 {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 1.5rem;
  background: var(--gradient-blue);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.construcao-description {
  font-size: 1.125rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 3rem;
}

.construcao-features {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin-bottom: 3rem;
}

.feature-item {
  display: flex;
  gap: 1rem;
  padding: 1.5rem;
  background: var(--gradient-card);
  border: 1px solid var(--border-color);
  border-radius: 1rem;
  transition: all 0.3s ease;
}

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

.feature-icon {
  width: 50px;
  height: 50px;
  background: var(--accent-gradient);
  border-radius: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.feature-icon i {
  font-size: 1.25rem;
  color: white;
}

.feature-content h3 {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

.feature-content p {
  color: var(--text-secondary);
  font-size: 0.875rem;
  line-height: 1.5;
}

.construcao-timeline {
  margin-bottom: 3rem;
}

.construcao-timeline h3 {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 1.5rem;
}

.timeline-mini {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.timeline-mini-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.75rem;
  border-radius: 0.5rem;
  transition: all 0.3s ease;
}

.timeline-mini-item.completed {
  background: rgba(34, 197, 94, 0.1);
  color: #22c55e;
}

.timeline-mini-item.current {
  background: rgba(59, 130, 246, 0.1);
  color: var(--accent-primary);
  border: 1px solid var(--accent-primary);
}

.timeline-mini-item i {
  width: 20px;
  text-align: center;
}

.construcao-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.construcao-preview {
  margin-top: 4rem;
  padding-top: 4rem;
  border-top: 1px solid var(--border-color);
}

.construcao-preview h3 {
  font-size: 2rem;
  font-weight: 700;
  color: var(--text-primary);
  text-align: center;
  margin-bottom: 3rem;
}

.preview-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.preview-card {
  background: var(--gradient-card);
  border: 1px solid var(--border-color);
  border-radius: 1rem;
  overflow: hidden;
  transition: all 0.3s ease;
}

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

.preview-image {
  position: relative;
  height: 200px;
  overflow: hidden;
}

.preview-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: all 0.3s ease;
}

.preview-card:hover .preview-image img {
  transform: scale(1.05);
}

.preview-overlay {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: var(--accent-gradient);
  color: white;
  padding: 0.5rem 1rem;
  border-radius: 50px;
  font-size: 0.875rem;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.preview-content {
  padding: 1.5rem;
}

.preview-content h4 {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

.preview-content p {
  color: var(--text-secondary);
  font-size: 0.875rem;
  line-height: 1.5;
}

/* Animações específicas */
@keyframes progress-fill {
  from {
    stroke-dashoffset: 327;
  }
  to {
    stroke-dashoffset: 82;
  }
}

/* Responsivo para página de construção */
@media (max-width: 1024px) {
  .construcao-main {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .construcao-visual {
    position: static;
    order: -1;
  }

  .construcao-icon-large {
    flex-direction: row;
    justify-content: center;
  }
}

@media (max-width: 768px) {
  .construcao-info h2 {
    font-size: 2rem;
  }

  .construcao-icon-large {
    flex-direction: column;
    align-items: center;
  }

  .construcao-icon-large i {
    font-size: 2rem;
    padding: 1rem;
  }

  .construcao-actions {
    flex-direction: column;
  }

  .preview-grid {
    grid-template-columns: 1fr;
  }

  .feature-item {
    flex-direction: column;
    text-align: center;
  }

  .feature-icon {
    align-self: center;
  }
}

/* ====== Animação e gradiente para Habilidades & Ferramentas ====== */

/* Efeito hover nos itens */
.habilidade-item {
  transition: transform 0.2s ease, background-color 0.3s ease;
}
.habilidade-item:hover {
  transform: translateY(-3px);
  background-color: rgba(255, 255, 255, 0.05);
}

/* Gradiente nos ícones por coluna */
.habilidade-category:nth-child(1) .habilidade-item i {
  background: linear-gradient(45deg, #4facfe, #00f2fe);
  -webkit-background-clip: text;
  background-clip: text; /* Adicionado para compatibilidade */
  -webkit-text-fill-color: transparent;
}

.habilidade-category:nth-child(2) .habilidade-item i {
  background: linear-gradient(45deg, #a18cd1, #fbc2eb);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.habilidade-category:nth-child(3) .habilidade-item i {
  background: linear-gradient(45deg, #43e97b, #38f9d7);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.projeto-card-link {
  text-decoration: none;
  color: inherit;
  display: block;
}

.projeto-card-link:hover .projeto-card {
  transform: translateY(-3px);
  transition: transform 0.2s ease;
}
.projetos-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}

.projeto-card-link {
  text-decoration: none;
  color: inherit;
  display: block;
}

.projeto-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%; /* Faz o card ocupar toda a altura disponível */
  padding: 20px;
  background-color: #111; /* Mantém o visual que tu já tem */
  border-radius: 10px;
  transition: transform 0.2s ease;
}

.projeto-card-link:hover .projeto-card {
  transform: translateY(-3px);
}
/* 404 Error Page Styles */
.error-404 {
  min-height: calc(100vh - 70px);
  display: flex;
  align-items: center;
  background: var(--bg-primary);
  padding: 8rem 0 4rem;
}

.error-content {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 4rem;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
}

.error-visual {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3rem;
  position: relative;
}

.error-code {
  display: flex;
  align-items: center;
  gap: 2rem;
  font-size: 8rem;
  font-weight: 700;
  color: var(--text-primary);
}

.error-number {
  background: var(--gradient-blue);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.error-icon {
  width: 120px;
  height: 120px;
  background: var(--gradient-card);
  border: 1px solid var(--border-color);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: pulse 2s infinite;
}

.error-icon i {
  font-size: 3rem;
  color: var(--accent-primary);
}

.error-animation {
  position: absolute;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.floating-data {
  position: absolute;
  width: 60px;
  height: 60px;
  background: var(--gradient-card);
  border: 1px solid var(--border-color);
  border-radius: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: float 4s ease-in-out infinite;
  opacity: 0.7;
}

.floating-data i {
  font-size: 1.5rem;
  color: var(--accent-primary);
}

.floating-data.delay-1 {
  top: 20%;
  right: 10%;
  animation-delay: 1s;
}

.floating-data.delay-2 {
  bottom: 30%;
  left: 5%;
  animation-delay: 2s;
}

.error-text h1 {
  font-size: 3rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 1.5rem;
  background: var(--gradient-blue);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.error-description {
  font-size: 1.25rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 3rem;
}

.error-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin-bottom: 3rem;
}

.error-stat {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.5rem;
  background: var(--gradient-card);
  border: 1px solid var(--border-color);
  border-radius: 1rem;
  transition: all 0.3s ease;
}

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

.stat-icon {
  width: 50px;
  height: 50px;
  background: var(--accent-gradient);
  border-radius: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.stat-icon i {
  font-size: 1.25rem;
  color: white;
}

.stat-content {
  display: flex;
  flex-direction: column;
}

.stat-number {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--accent-primary);
}

.stat-label {
  font-size: 0.875rem;
  color: var(--text-secondary);
}

.error-suggestions {
  margin-bottom: 3rem;
}

.error-suggestions h3 {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 1.5rem;
}

.suggestions-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.suggestion-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem;
  background: var(--gradient-card);
  border: 1px solid var(--border-color);
  border-radius: 0.75rem;
  text-decoration: none;
  transition: all 0.3s ease;
}

.suggestion-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  border-color: var(--accent-primary);
}

.suggestion-icon {
  width: 40px;
  height: 40px;
  background: var(--accent-gradient);
  border-radius: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.suggestion-icon i {
  font-size: 1rem;
  color: white;
}

.suggestion-content h4 {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.25rem;
}

.suggestion-content p {
  font-size: 0.75rem;
  color: var(--text-secondary);
  margin: 0;
}

.error-actions {
  display: flex;
  gap: 1rem;
  margin-bottom: 3rem;
  flex-wrap: wrap;
}

.error-contact {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid var(--border-color);
}

.error-contact p {
  color: var(--text-secondary);
  margin-bottom: 1rem;
}

.contact-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--accent-primary);
  text-decoration: none;
  font-weight: 500;
  transition: all 0.3s ease;
}

.contact-link:hover {
  color: var(--accent-secondary);
  transform: translateY(-1px);
}
/* Ajuste da imagem no 404 */
.error-image {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
}

.error-meme {
  max-width: 380px; /* tamanho máximo para desktop */
  width: 100%; /* ocupa toda a largura possível */
  height: auto; /* mantém proporção */
  object-fit: contain; /* evita distorção */
  border-radius: 12px; /* cantos arredondados */
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

/* Ajustes responsivos */
@media (max-width: 1024px) {
  .error-meme {
    max-width: 320px;
  }
}

@media (max-width: 600px) {
  .error-content {
    grid-template-columns: 1fr;
    gap: 2rem;
    text-align: center;
  }

  .error-meme {
    max-width: 240px;
    margin: 0 auto;
  }
}
