:root {
  --primary: #005b99;
  --secondary: #4fd1c5;
  --bg-light: #f3f6fa;
  --bg-dark: #1a1a1a;
  --accent: #7c3aed;
}

/* ===== BASE ===== */
html {
  overflow-y: scroll; /* Sempre mostra scrollbar para evitar "pulo" do layout */
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen,
    Ubuntu, sans-serif;
  transition: background-color 0.3s ease, color 0.3s ease;
}

body[data-theme='light'] {
  background-color: #fff;
  color: #212529;
}

body[data-theme='dark'] {
  background-color: var(--bg-dark);
  color: #f8f9fa;
}

body[data-theme='dark'] .navbar {
  background-color: #2d2d2d !important;
}

body[data-theme='dark'] .navbar-light .navbar-nav .nav-link {
  color: #f8f9fa;
}

body[data-theme='dark'] .navbar-light .navbar-brand {
  color: #f8f9fa;
}

body[data-theme='dark'] .card {
  background-color: #2d2d2d;
  border-color: #404040;
}

body[data-theme='dark'] .card-text.text-muted {
  color: #adb5bd !important;
}

body[data-theme='dark'] .bg-light {
  background-color: #252525 !important;
}

body[data-theme='dark'] footer.bg-light {
  background-color: #2d2d2d !important;
}

body[data-theme='dark'] .text-muted {
  color: #adb5bd !important;
}

body[data-theme='dark'] .badge.bg-light {
  background-color: #404040 !important;
  color: #f8f9fa !important;
}

body[data-theme='dark'] .badge.bg-light.text-dark {
  color: #f8f9fa !important;
}

/* Tool badges - consistent style */
body[data-theme='dark'] .badge.bg-white.text-primary {
  background-color: #2d2d2d !important;
  color: #6ea8fe !important;
  border-color: #404040 !important;
}

body[data-theme='dark'] .text-dark {
  color: #f8f9fa !important;
}

body[data-theme='dark'] .card-title {
  color: #f8f9fa;
}

body[data-theme='dark'] .card h2,
body[data-theme='dark'] .card h3,
body[data-theme='dark'] .card h5 {
  color: #f8f9fa;
}

body[data-theme='dark'] h1,
body[data-theme='dark'] h2,
body[data-theme='dark'] h3,
body[data-theme='dark'] h4,
body[data-theme='dark'] h5,
body[data-theme='dark'] h6 {
  color: #f8f9fa;
}

body[data-theme='dark'] .lead {
  color: #e9ecef;
}

body[data-theme='dark'] p {
  color: #dee2e6;
}

body[data-theme='dark'] .list-unstyled li {
  color: #dee2e6;
}

body[data-theme='dark'] .card span {
  color: #dee2e6;
}

body[data-theme='dark'] .intro-card span {
  color: #dee2e6;
}

/* Fix text in intro-card that contains links */
body[data-theme='dark'] .intro-card .text-center {
  color: #dee2e6;
}

/* Links in dark mode - more visible */
body[data-theme='dark'] .link-primary {
  color: #6ea8fe !important;
}

body[data-theme='dark'] .link-primary:hover {
  color: #9ec5fe !important;
}

/* Badge/pill text colors in dark mode */
body[data-theme='dark'] .badge.bg-white.text-primary,
body[data-theme='dark'] .badge.bg-white,
body[data-theme='dark'] .badge.text-primary {
  background-color: #404040 !important;
  color: #f8f9fa !important;
  border-color: #555 !important;
}

body[data-theme='dark'] .skill-badge,
body[data-theme='dark'] .skill-badge-bi,
body[data-theme='dark'] .skill-badge-infra {
  color: #f8f9fa !important;
  background-color: #404040 !important;
}

body[data-theme='dark'] a:not(.btn):not(.nav-link):not(.navbar-brand) {
  color: #6ea8fe;
}

body[data-theme='dark'] a:not(.btn):not(.nav-link):not(.navbar-brand):hover {
  color: #9ec5fe;
}

body[data-theme='dark'] .btn-outline-secondary {
  border-color: #6c757d;
  color: #f8f9fa;
}

body[data-theme='dark'] .btn-outline-primary {
  border-color: #6ea8fe;
  color: #6ea8fe;
}

body[data-theme='dark'] .btn-outline-primary:hover {
  background-color: #6ea8fe;
  color: #1a1a1a;
}

body[data-theme='dark'] .form-control {
  background-color: #404040;
  border-color: #555;
  color: #f8f9fa;
}

body[data-theme='dark'] .form-control:focus {
  background-color: #505050;
  border-color: var(--primary);
  color: #f8f9fa;
}

body[data-theme='dark'] .form-label {
  color: #dee2e6;
}

body[data-theme='dark'] hr {
  border-color: #404040;
}

/* ===== HERO ===== */
.hero {
  background: linear-gradient(135deg, var(--primary) 0%, #003d66 100%);
  background-image: url('/static/img/backgrounds/hero-bg.svg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  position: relative;
  overflow: hidden;
}

/* Hero com imagem customizada (quando substituir o placeholder) */
body[data-theme='dark'] .hero {
  background-image: url('/static/img/backgrounds/hero-bg-dark.svg');
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(
    circle,
    rgba(255, 255, 255, 0.1) 0%,
    transparent 50%
  );
  animation: pulse-bg 15s ease-in-out infinite;
  pointer-events: none;
}

@keyframes pulse-bg {
  0%,
  100% {
    transform: translate(0, 0) scale(1);
  }
  50% {
    transform: translate(25%, 25%) scale(1.1);
  }
}

.hero h1 {
  animation: fade-in-up 0.8s ease-out;
}

.hero .lead {
  animation: fade-in-up 0.8s ease-out 0.2s backwards;
}

.hero .mt-4 {
  animation: fade-in-up 0.8s ease-out 0.4s backwards;
}

/* ===== ANIMATIONS ===== */
@keyframes fade-in-up {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fade-in {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes slide-in-left {
  from {
    opacity: 0;
    transform: translateX(-30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* Scroll reveal for cards */
.card {
  opacity: 0;
  animation: fade-in-up 0.6s ease-out forwards;
}

.problems .col-md-6:nth-child(1) .card {
  animation-delay: 0.1s;
}
.problems .col-md-6:nth-child(2) .card {
  animation-delay: 0.2s;
}
.problems .col-md-6:nth-child(3) .card {
  animation-delay: 0.3s;
}
.problems .col-md-6:nth-child(4) .card {
  animation-delay: 0.4s;
}
.problems .col-md-6:nth-child(5) .card {
  animation-delay: 0.5s;
}

.quick-summary .card {
  animation-delay: 0.3s;
}

/* ===== BUTTONS ===== */
.btn-primary {
  background-color: var(--primary);
  border-color: var(--primary);
  position: relative;
  overflow: hidden;
}

.btn-primary::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: width 0.6s, height 0.6s;
}

.btn-primary:hover::after {
  width: 300px;
  height: 300px;
}

.btn-primary:hover {
  background-color: #004a7a;
  border-color: #004a7a;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 91, 153, 0.3);
}

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

.btn-outline-primary:hover {
  background-color: var(--primary);
  border-color: var(--primary);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 91, 153, 0.2);
}

.btn-light:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* Hero buttons - garantir visibilidade */
.hero .btn-light {
  background-color: #fff;
  color: var(--primary);
  border-color: #fff;
  font-weight: 500;
}

.hero .btn-light:hover {
  background-color: #f8f9fa;
  color: #004a7a;
  border-color: #f8f9fa;
}

.hero .btn-outline-light {
  color: #fff;
  border-color: #fff;
  background-color: transparent;
}

.hero .btn-outline-light:hover {
  background-color: #fff;
  color: var(--primary);
  border-color: #fff;
}

.btn-outline-light:hover {
  transform: translateY(-2px);
}

/* Icon-only buttons */
.btn-icon {
  width: 44px;
  height: 44px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
}

.btn-icon-lg {
  width: 52px;
  height: 52px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
}

.btn-icon-sm {
  width: 36px;
  height: 36px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
}

/* Navbar icon buttons - all same size */
.btn-icon-nav {
  width: 38px;
  height: 38px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
}

.nav-lang-text {
  font-size: 0.9rem;
  font-weight: 600;
}

/* GitHub icon colors */
.github-icon {
  color: #24292f;
}

body[data-theme='dark'] .github-icon {
  color: #f8f9fa;
}

.btn-icon:hover,
.btn-icon-lg:hover,
.btn-icon-sm:hover,
.btn-icon-nav:hover {
  transform: translateY(-2px);
}

.text-primary {
  color: var(--primary) !important;
}

/* ===== CARDS ===== */
.card {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border-radius: 12px;
}

.card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.12);
}

.quick-summary .card {
  border-left: 4px solid var(--primary);
  border-radius: 12px;
}

.quick-summary .card:hover {
  border-left-color: var(--secondary);
}

/* Icons bounce on card hover */
.card:hover .bi {
  animation: bounce 0.5s ease;
}

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

.badge {
  font-weight: 500;
}

/* ===== NAVBAR ===== */
.navbar {
  transition: background-color 0.3s ease, box-shadow 0.3s ease;
  backdrop-filter: blur(10px);
}

.navbar.scrolled {
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
}

.navbar-brand {
  position: relative;
}

.navbar-brand::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--primary);
  transition: width 0.3s ease;
}

.navbar-brand:hover::after {
  width: 100%;
}

.nav-link {
  position: relative;
  padding-bottom: 5px;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 2px;
  background: var(--primary);
  transition: width 0.3s ease, left 0.3s ease;
}

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

#theme-toggle {
  width: 38px;
  height: 38px;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s ease;
}

#theme-toggle:hover {
  transform: rotate(180deg);
}

/* ===== SECTIONS ===== */
section {
  position: relative;
}

.cta {
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

body[data-theme='dark'] .cta {
  background: linear-gradient(135deg, #252525 0%, #1a1a1a 100%);
}

.cta h2 {
  animation: fade-in 0.8s ease-out;
}

/* ===== LINKS ===== */
a {
  transition: color 0.2s ease-in-out;
}

.btn {
  transition: all 0.3s ease;
  border-radius: 8px;
}

/* ===== FOOTER ===== */
footer {
  border-top: 1px solid #dee2e6;
}

body[data-theme='dark'] footer {
  border-top-color: #404040;
}

footer p {
  transition: color 0.3s ease;
}

footer:hover p {
  color: var(--primary) !important;
}

/* ===== SMOOTH SCROLL ===== */
html {
  scroll-behavior: smooth;
}

/* ===== SELECTION ===== */
::selection {
  background: var(--primary);
  color: white;
}

/* ===== FOCUS STATES ===== */
:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

/* ===== PROJECT CARDS ===== */
.project-card {
  overflow: hidden;
}

.project-card img {
  transition: transform 0.5s ease;
}

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

/* ===== PROJECT FILTER ANIMATION ===== */
.project-item {
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.project-item.project-hidden {
  opacity: 0;
  transform: scale(0.95);
  position: absolute;
  visibility: hidden;
  pointer-events: none;
}

.project-item.project-visible {
  opacity: 1;
  transform: scale(1);
  position: relative;
  visibility: visible;
}

/* Filter buttons active state */
.filter-btn {
  transition: all 0.2s ease;
}

.filter-btn.active {
  font-weight: 600;
}

/* ===== LAZY LOADING ===== */
img[loading='lazy'] {
  opacity: 0;
  transition: opacity 0.3s ease;
}

img[loading='lazy'].loaded {
  opacity: 1;
}

/* ===== HIRE PAGE ANIMATION ===== */
.hire-title-animated {
  transition: opacity 0.3s ease;
  display: inline-block;
}

.hire-title-animated .letter-r {
  display: inline-block;
  color: var(--secondary);
  font-weight: bold;
  animation: pulse-letter 2s ease-in-out infinite;
}

@keyframes pulse-letter {
  0%,
  100% {
    transform: scale(1);
    opacity: 1;
  }
  50% {
    transform: scale(1.2);
    opacity: 0.8;
  }
}

/* ===== FEATURED PROJECTS ===== */
.featured-projects .card {
  opacity: 0;
  animation: fade-in-up 0.6s ease-out forwards;
}

.featured-projects .col-md-6:nth-child(1) .card {
  animation-delay: 0.1s;
}
.featured-projects .col-md-6:nth-child(2) .card {
  animation-delay: 0.2s;
}
.featured-projects .col-md-6:nth-child(3) .card {
  animation-delay: 0.3s;
}

/* ===== LOADING STATE ===== */
.page-transition {
  animation: fade-in 0.5s ease-out;
}

/* ===== ANIMATED IMAGES (GIF/WEBP/Lottie) ===== */
.animated-decoration {
  position: absolute;
  pointer-events: none;
  z-index: 1;
}

.animated-decoration.hero-left {
  left: 5%;
  top: 50%;
  transform: translateY(-50%);
  max-width: 150px;
  opacity: 0.8;
}

.animated-decoration.hero-right {
  right: 5%;
  top: 50%;
  transform: translateY(-50%);
  max-width: 150px;
  opacity: 0.8;
}

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

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

/* Lottie container */
.lottie-container {
  width: 100%;
  max-width: 200px;
  margin: 0 auto;
}

/* Para cards de projeto com thumbnail animada */
.project-thumbnail {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: 0.375rem 0.375rem 0 0;
}

.project-thumbnail.animated {
  transition: transform 0.3s ease;
}

.project-card:hover .project-thumbnail.animated {
  transform: scale(1.05);
}

/* ===== JOURNEY PAGE ===== */
.journey-card {
  border-left: 4px solid var(--primary);
  transition: all 0.3s ease;
}

.journey-card:hover {
  border-left-color: var(--secondary);
}

.journey-card.border-success {
  border-left: 4px solid #198754;
}

.journey-card.border-success:hover {
  border-left-color: #157347;
}

.book-cover-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  background: linear-gradient(
    135deg,
    rgba(0, 91, 153, 0.05),
    rgba(124, 58, 237, 0.05)
  );
  border-radius: 8px 0 0 8px;
}

.book-cover {
  max-height: 160px;
  width: auto;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  transition: transform 0.3s ease;
}

.journey-card:hover .book-cover {
  transform: scale(1.05);
}

/* Progress bar animations */
.progress {
  background-color: #e9ecef;
  border-radius: 4px;
  overflow: hidden;
}

body[data-theme='dark'] .progress {
  background-color: #404040;
}

.progress-bar {
  transition: width 1s ease-in-out;
}

.progress-wrapper {
  position: relative;
}

/* Vision card */
.vision-card {
  border-radius: 16px;
  backdrop-filter: blur(10px);
}

body[data-theme='dark'] .vision-card {
  background: linear-gradient(
    135deg,
    rgba(0, 91, 153, 0.15),
    rgba(124, 58, 237, 0.15)
  ) !important;
}

/* Timeline/Milestones */
.timeline {
  position: relative;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: linear-gradient(
    to bottom,
    var(--primary),
    var(--secondary),
    var(--accent)
  );
  border-radius: 3px;
}

.timeline-item {
  padding-left: 24px;
  position: relative;
}

.timeline-item::before {
  content: '';
  position: absolute;
  left: -5px;
  top: 24px;
  width: 13px;
  height: 13px;
  background: var(--primary);
  border-radius: 50%;
  border: 3px solid #fff;
  box-shadow: 0 0 0 3px var(--primary);
}

body[data-theme='dark'] .timeline-item::before {
  border-color: var(--bg-dark);
}

.milestone-card {
  border-width: 0 0 0 0;
  border-radius: 12px !important;
  transition: all 0.3s ease;
}

.milestone-card.border-success {
  box-shadow: inset 4px 0 0 0 #198754;
}

.milestone-card.border-primary {
  box-shadow: inset 4px 0 0 0 var(--primary);
}

.milestone-card.border-secondary {
  box-shadow: inset 4px 0 0 0 #6c757d;
}

.milestone-card:hover {
  transform: translateX(8px);
}

/* Journey alert info box */
.alert-info {
  border-radius: 12px;
}

body[data-theme='dark'] .alert-info {
  background: linear-gradient(
    135deg,
    rgba(79, 209, 197, 0.15),
    rgba(0, 91, 153, 0.15)
  ) !important;
  color: #f8f9fa;
}

body[data-theme='dark'] .alert-info h5 {
  color: #f8f9fa;
}

body[data-theme='dark'] .alert-info p {
  color: #dee2e6;
}

/* Period info popover */
.period-info-btn {
  vertical-align: middle;
}

/* Custom badge color for Databricks certification */
.badge.bg-light-red {
  background-color: #ffb3b3 !important;
  color: #212529 !important;
}

.period-info-btn:hover {
  color: var(--primary) !important;
}

.period-table .row {
  margin-bottom: 0.25rem;
}

.period-table strong {
  color: var(--primary);
  margin-right: 0.25rem;
}

/* History section cards */
.history-card {
  transition: all 0.3s ease;
  border-width: 2px;
}

.history-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(25, 135, 84, 0.15);
}

/* ===== PAGE HERO (Padronizado com Imagem de Fundo) ===== */
/*
 * PARA TROCAR A IMAGEM DE FUNDO:
 * 1. Substitua o arquivo: static/img/backgrounds/hero-bg.png (ou .jpg/.webp)
 * 2. Tamanho recomendado: 1920x1080px ou maior
 * 3. Formatos suportados: PNG, JPG, WebP, SVG
 * 4. O overlay gradiente manterá a legibilidade do texto
 */
.page-hero {
  position: relative;
  min-height: 420px;
  display: flex;
  align-items: center;
  background-color: var(--primary);
  background-image:
    linear-gradient(135deg, rgba(0, 91, 153, 0.88) 0%, rgba(0, 61, 102, 0.92) 100%),
    url('/static/img/backgrounds/hero-bg.svg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

/* Dark mode hero */
body[data-theme='dark'] .page-hero {
  background-image:
    linear-gradient(135deg, rgba(26, 26, 26, 0.93) 0%, rgba(45, 45, 45, 0.90) 100%),
    url('/static/img/backgrounds/hero-bg.svg');
}

/* Overlay com pattern sutil */
.page-hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  pointer-events: none;
}

/* Hero content container */
.page-hero .container {
  position: relative;
  z-index: 2;
}

/* Avatar circle padronizado */
.hero-avatar {
  margin-bottom: 1.5rem;
}

.hero-avatar img {
  width: 130px;
  height: 130px;
  object-fit: cover;
  border-radius: 50%;
  border: 4px solid rgba(255, 255, 255, 0.3);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
  backdrop-filter: blur(10px);
  background: rgba(255, 255, 255, 0.1);
}

.avatar-circle {
  width: 130px;
  height: 130px;
  background: rgba(255, 255, 255, 0.12);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3.5rem;
  backdrop-filter: blur(10px);
  border: 4px solid rgba(255, 255, 255, 0.25);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
  animation: fade-in-up 0.8s ease-out;
}

/* Hero title styling */
.page-hero h1 {
  font-size: 2.75rem;
  font-weight: 700;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  animation: fade-in-up 0.8s ease-out 0.1s backwards;
}

.page-hero .lead {
  font-size: 1.25rem;
  opacity: 0.95;
  animation: fade-in-up 0.8s ease-out 0.2s backwards;
}

.page-hero .d-flex {
  animation: fade-in-up 0.8s ease-out 0.3s backwards;
}

/* Hero badges */
.page-hero .badge {
  font-weight: 500;
  padding: 0.6rem 1rem;
  border-radius: 50px;
}

/* Hero buttons */
.page-hero .btn-light {
  background: rgba(255, 255, 255, 0.95);
  border: none;
  font-weight: 600;
  padding: 0.75rem 1.5rem;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.page-hero .btn-light:hover {
  background: #fff;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.page-hero .btn-outline-light {
  border-width: 2px;
  font-weight: 600;
  padding: 0.75rem 1.5rem;
}

.page-hero .btn-outline-light:hover {
  background: rgba(255, 255, 255, 0.15);
  transform: translateY(-2px);
}

/* Intro card que sobe do hero */
.intro-card {
  border-left: 4px solid var(--primary);
  margin-top: -30px;
  position: relative;
  z-index: 10;
  border-radius: 16px;
}

/* CTA Section */
.cta-section {
  background: linear-gradient(135deg, var(--primary) 0%, #003d66 100%);
}

/* Dark mode for CTA sections with bg-primary */
body[data-theme='dark'] section.bg-primary {
  background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%) !important;
  border-top: 1px solid #404040;
  border-bottom: 1px solid #404040;
}

body[data-theme='dark'] .cta-section {
  background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
  border-top: 1px solid #404040;
  border-bottom: 1px solid #404040;
}

/* ===== ABOUT PAGE ===== */

.about-card {
  transition: all 0.3s ease;
  border-radius: 16px;
}

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

.icon-circle {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  flex-shrink: 0;
}

.bg-secondary-custom {
  background-color: var(--secondary) !important;
}

.bg-accent {
  background-color: var(--accent) !important;
}

/* Skill badges */
.skill-badge {
  background: linear-gradient(135deg, var(--primary) 0%, #003d66 100%);
  color: white;
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
  border-radius: 20px;
  transition: all 0.3s ease;
}

.skill-badge:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 91, 153, 0.3);
}

.skill-badge-bi {
  background: linear-gradient(135deg, var(--secondary) 0%, #38b2ac 100%);
  color: #1a1a1a;
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
  border-radius: 20px;
  transition: all 0.3s ease;
}

.skill-badge-bi:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(79, 209, 197, 0.3);
}

.skill-badge-infra {
  background: linear-gradient(135deg, var(--accent) 0%, #5b21b6 100%);
  color: white;
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
  border-radius: 20px;
  transition: all 0.3s ease;
}

.skill-badge-infra:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(124, 58, 237, 0.3);
}

/* Certification cards */
.cert-card {
  transition: all 0.3s ease;
}

.cert-card:hover {
  transform: translateX(8px);
  background-color: #e9ecef !important;
}

body[data-theme='dark'] .cert-card:hover {
  background-color: #404040 !important;
}

/* CV Card */
.cv-card {
  border-radius: 20px;
  background: linear-gradient(135deg, #f8f9fa 0%, #fff 100%);
}

body[data-theme='dark'] .cv-card {
  background: linear-gradient(135deg, #2d2d2d 0%, #1a1a1a 100%);
}

/* Audio placeholder */
.audio-placeholder {
  border: 2px dashed #dee2e6;
}

body[data-theme='dark'] .audio-placeholder {
  border-color: #404040;
}

/* Dark mode adjustments for about page */
body[data-theme='dark'] .intro-card {
  border-left-color: var(--secondary);
}

body[data-theme='dark'] .skill-badge-bi {
  color: #1a1a1a;
}

/* ===== PROBLEM CARDS ===== */
.problem-card {
  border-radius: 16px;
  transition: all 0.3s ease;
}

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

.problem-icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
}

.problem-icon i {
  transition: transform 0.3s ease;
}

.problem-card:hover .problem-icon i {
  transform: scale(1.2);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  /* Page Hero responsive */
  .page-hero {
    min-height: 350px;
  }

  .page-hero h1 {
    font-size: 2rem;
  }

  .page-hero .lead {
    font-size: 1rem;
  }

  .hero-avatar img {
    width: 100px;
    height: 100px;
  }

  .avatar-circle {
    width: 100px;
    height: 100px;
    font-size: 2.5rem;
  }

  .page-hero .btn-lg {
    padding: 0.6rem 1.2rem;
    font-size: 0.95rem;
  }

  .hero h1 {
    font-size: 2rem;
  }

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

  .animated-decoration {
    display: none; /* Esconde decorações em mobile */
  }

  /* Journey page responsive */
  .journey-card .row {
    flex-direction: column;
  }

  .journey-card .col-4,
  .journey-card .col-8 {
    width: 100%;
  }

  .book-cover-wrapper {
    border-radius: 8px 8px 0 0;
    padding: 1.5rem !important;
  }

  .book-cover {
    max-height: 120px;
  }

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

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

  .timeline-item::before {
    left: 2px;
  }

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

  .about-intro-card {
    margin-top: -20px;
  }

  .icon-circle {
    width: 40px;
    height: 40px;
    font-size: 1rem;
  }

  .skill-badge,
  .skill-badge-bi,
  .skill-badge-infra {
    padding: 0.4rem 0.8rem;
    font-size: 0.8rem;
  }

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

/* Extra small devices */
@media (max-width: 576px) {
  .page-hero {
    min-height: 320px;
  }

  .page-hero h1 {
    font-size: 1.75rem;
  }

  .page-hero .badge {
    padding: 0.4rem 0.75rem;
    font-size: 0.8rem;
  }

  .page-hero .btn {
    font-size: 0.875rem;
    padding: 0.5rem 1rem;
  }
}
