:root {
  --primary-dark: #0f172a;
  --primary-slate: #1e293b;
  --primary-card: #243044;
  --accent-terracotta: #c86d51;
  --accent-terracotta-dark: #b0573c;
  --accent-terracotta-light: #fbeeeb;
  --accent-terracotta-glow: rgba(200, 109, 81, 0.25);
  --accent-gold: #d97757;
  --bg-page: #f8fafc;
  --bg-card: #ffffff;
  --text-dark: #0f172a;
  --text-body: #475569;
  --text-muted: #64748b;
  --border-subtle: #e2e8f0;
  --shadow-sm: 0 2px 4px rgba(15, 23, 42, 0.04);
  --shadow-card: 0 10px 30px -10px rgba(15, 23, 42, 0.08), 0 2px 6px -2px rgba(0, 0, 0, 0.04);
  --shadow-hover: 0 20px 35px -10px rgba(200, 109, 81, 0.2), 0 6px 12px -4px rgba(0, 0, 0, 0.06);
  --radius-lg: 18px;
  --radius-md: 12px;
}

body {
  font-family: 'Plus Jakarta Sans', 'Inter', -apple-system, sans-serif;
  background-color: var(--bg-page);
  color: var(--text-body);
  line-height: 1.65;
  overflow-x: hidden;
}

section[id] {
  scroll-margin-top: 92px;
}

.carousel-recent .carousel-item img,
.project-carousel .carousel-item img {
  cursor: zoom-in;
}

/* ==========================================================================
   Navbar
   ========================================================================== */
.navbar-custom {
  background: rgba(15, 23, 42, 0.96);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  transition: all 0.3s ease;
}

.brand-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: -0.5px;
}

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

.brand-badge {
  font-size: 0.72rem;
  background: rgba(200, 109, 81, 0.2);
  color: #f6ad98;
  border: 1px solid rgba(200, 109, 81, 0.4);
  padding: 2px 9px;
  border-radius: 20px;
  font-weight: 600;
}

.nav-link-custom {
  color: #cbd5e1 !important;
  font-weight: 500;
  font-size: 0.95rem;
  padding: 8px 14px !important;
  border-radius: 8px;
  transition: all 0.2s ease;
}

.nav-link-custom:hover {
  color: #ffffff !important;
  background: rgba(255, 255, 255, 0.08);
}

.btn-nav-primary {
  background: var(--accent-terracotta);
  color: #ffffff !important;
  font-weight: 700;
  font-size: 0.88rem;
  padding: 8px 18px;
  border-radius: 10px;
  border: none;
  transition: all 0.25s ease;
}

.btn-nav-primary:hover {
  background: var(--accent-terracotta-dark);
  transform: translateY(-2px);
  box-shadow: 0 4px 14px var(--accent-terracotta-glow);
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero-wrapper {
  background: linear-gradient(180deg, #0f172a 0%, #1e293b 65%, #f8fafc 100%);
  padding-top: 70px;
  padding-bottom: 60px;
  position: relative;
}

.hero-card {
  background: #ffffff;
  border-radius: 24px;
  padding: 48px;
  box-shadow: var(--shadow-card);
  border: 1px solid var(--border-subtle);
  position: relative;
  z-index: 2;
}

.hero-img-box {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 15px 35px rgba(15, 23, 42, 0.15);
  border: 4px solid #ffffff;
  aspect-ratio: 1/1;
  max-width: 320px;
  margin: 0 auto;
}

.hero-img-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.hero-img-box:hover img {
  transform: scale(1.03);
}

.hero-img-tag {
  position: absolute;
  bottom: 12px;
  left: 12px;
  right: 12px;
  background: rgba(15, 23, 42, 0.88);
  backdrop-filter: blur(8px);
  padding: 8px 14px;
  border-radius: 12px;
  color: #ffffff;
  font-size: 0.82rem;
  display: flex;
  align-items: center;
  gap: 8px;
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.hero-badge-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--accent-terracotta-light);
  color: var(--accent-terracotta-dark);
  font-size: 0.85rem;
  font-weight: 700;
  padding: 6px 14px;
  border-radius: 30px;
  margin-bottom: 16px;
  border: 1px solid rgba(200, 109, 81, 0.3);
}

.pulse-dot {
  width: 8px;
  height: 8px;
  background: var(--accent-terracotta);
  border-radius: 50%;
  box-shadow: 0 0 0 0 rgba(200, 109, 81, 0.7);
  animation: pulse 1.8s infinite;
}

@keyframes pulse {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(200, 109, 81, 0.7); }
  70% { transform: scale(1); box-shadow: 0 0 0 8px rgba(200, 109, 81, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(200, 109, 81, 0); }
}

.hero-name {
  font-size: 2.3rem;
  font-weight: 800;
  color: var(--text-dark);
  letter-spacing: -0.8px;
}

.hero-role {
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--accent-terracotta);
  letter-spacing: -0.3px;
}

.hero-bio {
  font-size: 1.02rem;
  color: var(--text-body);
  line-height: 1.7;
}

.btn-main-action {
  background: var(--accent-terracotta);
  color: #ffffff;
  font-weight: 700;
  padding: 12px 26px;
  border-radius: 12px;
  border: none;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  transition: all 0.25s ease;
  box-shadow: 0 6px 18px var(--accent-terracotta-glow);
}

.btn-main-action:hover {
  background: var(--accent-terracotta-dark);
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(200, 109, 81, 0.35);
}

.btn-cv-download {
  background: #f1f5f9;
  color: var(--text-dark);
  font-weight: 700;
  padding: 12px 22px;
  border-radius: 12px;
  border: 1px solid var(--border-subtle);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.2s ease;
}

.btn-cv-download:hover {
  background: #e2e8f0;
  color: var(--text-dark);
  transform: translateY(-2px);
}

.btn-social-icon {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  background: #f1f5f9;
  color: var(--text-dark);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  border: 1px solid var(--border-subtle);
  transition: all 0.2s ease;
}

.btn-social-icon:hover {
  background: var(--accent-terracotta);
  color: #ffffff;
  transform: translateY(-2px);
  border-color: var(--accent-terracotta);
}

/* ==========================================================================
   Quick Stats Ribbon
   ========================================================================== */
.stats-ribbon {
  background: #ffffff;
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
  padding: 24px 0;
  box-shadow: var(--shadow-sm);
}

.stat-box {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 10px;
  border-radius: 12px;
  transition: transform 0.2s ease;
}

.stat-box:hover {
  transform: translateY(-2px);
}

.stat-icon {
  width: 50px;
  height: 50px;
  border-radius: 14px;
  background: var(--accent-terracotta-light);
  color: var(--accent-terracotta);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
  flex-shrink: 0;
}

.stat-number {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--text-dark);
  line-height: 1.2;
}

.stat-label {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-bottom: 0;
  font-weight: 500;
}

/* ==========================================================================
   Section Headers
   ========================================================================== */
.section-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--accent-terracotta);
  background: var(--accent-terracotta-light);
  padding: 5px 12px;
  border-radius: 20px;
  margin-bottom: 10px;
  border: 1px solid rgba(200, 109, 81, 0.25);
}

.section-title {
  font-size: 2rem;
  font-weight: 800;
  color: var(--text-dark);
  letter-spacing: -0.5px;
}

.section-subtitle {
  font-size: 1.05rem;
  color: var(--text-muted);
  max-width: 800px;
  line-height: 1.6;
}

/* ==========================================================================
   PROJETO RECENTE (Carrossel Amplo Alphaville)
   ========================================================================== */
.recent-project-section {
  background: linear-gradient(180deg, #f8fafc 0%, #ffffff 50%, #f8fafc 100%);
  padding: 90px 0 70px 0;
}

.recent-project-card {
  background: #ffffff;
  border-radius: 24px;
  border: 1px solid var(--border-subtle);
  box-shadow: 0 15px 40px rgba(15, 23, 42, 0.08);
  overflow: hidden;
}

.recent-carousel-wrapper {
  position: relative;
  background: #0b0f19;
}

.carousel-recent .carousel-item {
  height: 540px;
  background-color: #0b0f19;
}

@media (max-width: 768px) {
  .carousel-recent .carousel-item {
    height: 340px;
  }
}

.carousel-recent .carousel-item img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #0b0f19;
}

.carousel-recent .carousel-indicators [data-bs-target] {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background-color: #ffffff;
  opacity: 0.5;
  margin: 0 4px;
  border: none;
  transition: all 0.3s;
}

.carousel-recent .carousel-indicators .active {
  width: 28px;
  border-radius: 12px;
  background-color: var(--accent-terracotta);
  opacity: 1;
}

.carousel-control-btn {
  width: 48px;
  height: 48px;
  background: rgba(15, 23, 42, 0.7);
  backdrop-filter: blur(8px);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.2);
  transition: all 0.2s ease;
}

.carousel-control-btn:hover {
  background: var(--accent-terracotta);
  color: #ffffff;
  transform: scale(1.08);
}

.recent-project-info {
  padding: 36px 42px;
  background: #ffffff;
  border-top: 1px solid var(--border-subtle);
}

.recent-tags-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #f1f5f9;
  color: var(--text-dark);
  padding: 6px 14px;
  border-radius: 8px;
  font-size: 0.85rem;
  font-weight: 600;
}

/* ==========================================================================
   PROJETOS & ESTUDOS (Magal & Iafer)
   ========================================================================== */
.project-card {
  background: #ffffff;
  border-radius: 20px;
  border: 1px solid var(--border-subtle);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  transition: all 0.3s ease;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.project-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-hover);
  border-color: rgba(200, 109, 81, 0.4);
}

.project-media-wrapper {
  position: relative;
  background: #0f172a;
  overflow: hidden;
}

.project-carousel .carousel-item {
  height: 320px;
  background: #0f172a;
}

.project-carousel .carousel-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.project-category-tag {
  position: absolute;
  top: 14px;
  left: 14px;
  background: rgba(15, 23, 42, 0.85);
  backdrop-filter: blur(8px);
  color: #ffffff;
  font-size: 0.76rem;
  font-weight: 700;
  padding: 5px 12px;
  border-radius: 20px;
  z-index: 10;
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.project-content {
  padding: 28px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.project-title {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--text-dark);
  margin-bottom: 12px;
  letter-spacing: -0.3px;
}

.project-desc {
  font-size: 0.94rem;
  color: var(--text-body);
  line-height: 1.65;
  margin-bottom: 20px;
  flex-grow: 1;
}

.tech-tags-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 24px;
}

.tech-tag {
  background: #f1f5f9;
  color: #334155;
  font-size: 0.78rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 6px;
  border: 1px solid #e2e8f0;
}

.project-card-footer {
  border-top: 1px solid var(--border-subtle);
  padding-top: 18px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.btn-project-download {
  background: var(--accent-terracotta);
  color: #ffffff;
  font-size: 0.88rem;
  font-weight: 700;
  padding: 10px 18px;
  border-radius: 10px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: none;
  transition: all 0.2s ease;
}

.btn-project-download:hover {
  background: var(--accent-terracotta-dark);
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px var(--accent-terracotta-glow);
}

.btn-project-secondary {
  background: #f8fafc;
  color: var(--text-dark);
  font-size: 0.88rem;
  font-weight: 600;
  padding: 10px 16px;
  border-radius: 10px;
  text-decoration: none;
  border: 1px solid var(--border-subtle);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s ease;
}

.btn-project-secondary:hover {
  background: #e2e8f0;
  color: var(--text-dark);
}

/* ==========================================================================
   Habilidades & Softwares
   ========================================================================== */
.skills-card {
  background: #ffffff;
  border-radius: 20px;
  padding: 28px;
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-card);
  height: 100%;
}

.skill-category-title {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--text-dark);
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.skill-badge-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  background: #f8fafc;
  border-radius: 12px;
  margin-bottom: 10px;
  border: 1px solid #f1f5f9;
  transition: all 0.2s ease;
}

.skill-badge-item:hover {
  background: #ffffff;
  border-color: rgba(200, 109, 81, 0.4);
  transform: translateX(4px);
}

.skill-badge-icon {
  width: 38px;
  height: 38px;
  border-radius: 8px;
  background: var(--accent-terracotta-light);
  color: var(--accent-terracotta);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
}

.lang-pill {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 10px 16px;
  background: #f8fafc;
  border-radius: 12px;
  border: 1px solid var(--border-subtle);
  margin-bottom: 10px;
}

/* ==========================================================================
   Trajetória / Linha do Tempo
   ========================================================================== */
.timeline-card {
  background: #ffffff;
  border-radius: 24px;
  padding: 40px;
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-card);
}

.timeline-item {
  position: relative;
  padding-left: 36px;
  margin-bottom: 32px;
}

.timeline-item:last-child {
  margin-bottom: 0;
}

.timeline-item::before {
  content: '';
  position: absolute;
  left: 8px;
  top: 8px;
  bottom: -32px;
  width: 2px;
  background: #e2e8f0;
}

.timeline-item:last-child::before {
  display: none;
}

.timeline-dot {
  position: absolute;
  left: 0;
  top: 4px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #ffffff;
  border: 4px solid var(--accent-terracotta);
}

.timeline-date {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--accent-terracotta);
  text-transform: uppercase;
  margin-bottom: 4px;
}

.timeline-title {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--text-dark);
  margin-bottom: 4px;
}

.timeline-institution {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.timeline-desc {
  font-size: 0.92rem;
  color: var(--text-body);
  margin-bottom: 0;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.footer-custom {
  background: #0f172a;
  color: #94a3b8;
  padding: 60px 0 30px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-custom a {
  color: #cbd5e1;
  text-decoration: none;
  transition: color 0.2s;
}

.footer-custom a:hover {
  color: var(--accent-terracotta);
}
