:root {
  --bg-dark: #0a0a0a;
  --card-dark: #141414;
  --gold: #c5a059;
  --gold-glow: rgba(197, 160, 89, 0.5);
  --white: #ffffff;
  --stone-400: #a8a29e;
  --stone-800: #292524;
  --radius: 0.8rem;
  --whatsapp: #25d366;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  scroll-behavior: smooth;
}

body {
  font-family: "Noto Sans", sans-serif;
  background-color: var(--bg-dark);
  color: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.5rem;
  width: 100%;
}

header {
  background-color: #000;
  background-image:
    linear-gradient(to bottom, rgba(0, 0, 0, 0.3), var(--bg-dark)),
    radial-gradient(circle at center, #1c1c1c 0%, #000 100%);
  color: var(--white);
  padding: 5rem 1rem 7rem;
  text-align: center;
  border-bottom: 1px solid rgba(197, 160, 89, 0.2);
  position: relative;
  z-index: 1;
}

/* SELO DISPONÍVEL MAIOR E COM BRILHO */
.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  background: rgba(37, 211, 102, 0.15);
  color: var(--whatsapp);
  padding: 0.6rem 1.4rem;
  border-radius: 2rem;
  font-size: 0.85rem;
  font-weight: 800;
  text-transform: uppercase;
  margin-bottom: 2rem;
  border: 1px solid rgba(37, 211, 102, 0.4);
  box-shadow: 0 0 25px rgba(37, 211, 102, 0.2);
  letter-spacing: 1.5px;
  animation: pulse-green 3s infinite;
}

@keyframes pulse-green {
  0% {
    box-shadow: 0 0 5px rgba(37, 211, 102, 0.3);
  }
  50% {
    box-shadow: 0 0 30px rgba(37, 211, 102, 0.5);
  }
  100% {
    box-shadow: 0 0 5px rgba(37, 211, 102, 0.3);
  }
}

header h1 {
  font-family: "Noto Serif", serif;
  font-size: clamp(2.5rem, 8vw, 4.2rem);
  text-transform: uppercase;
  letter-spacing: 0.3em;
  margin-bottom: 0.5rem;
  text-shadow: 0 10px 30px rgba(0, 0, 0, 0.8);
}

/* CAMPO ATRIZ COM BRILHO DOURADO REFORÇADO */
header p.especialidade {
  font-family: "Noto Serif", serif;
  font-style: italic;
  color: var(--gold);
  letter-spacing: 10px;
  text-transform: uppercase;
  font-size: 1.4rem;
  opacity: 1;
  font-weight: 700;
  text-shadow: 0 0 20px var(--gold-glow);
}

.header-actions {
  display: flex;
  justify-content: center;
  gap: 1.8rem;
  margin-top: 2rem;
  margin-bottom: 1.5rem;
}
.quick-link {
  font-size: 0.8rem;
  font-weight: 800;
  color: var(--stone-400);
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 2px;
  border-bottom: 1px dashed var(--stone-800);
  cursor: pointer;
  transition: 0.3s;
}
.quick-link:hover {
  color: var(--gold);
  border-color: var(--gold);
}

.header-info {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.8rem;
  margin-top: 1.5rem;
}
.drt-badge,
.location-badge {
  font-weight: 700;
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(10px);
  padding: 0.5rem 1.2rem;
  border-radius: 3rem;
  border: 1px solid rgba(197, 160, 89, 0.3);
  display: flex;
  align-items: center;
  gap: 0.6rem;
  color: white;
  transition: 0.3s;
}

main {
  flex: 1;
  margin-top: -3.5rem;
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  padding-bottom: 5rem;
  align-items: start;
  position: relative;
  z-index: 10;
}

@media (min-width: 850px) {
  main {
    grid-template-columns: 320px 1fr;
  }
  /* SIDEBAR FIXA NO LUGAR (RELATIVA AO CONTEÚDO) */
  aside {
    position: relative;
    z-index: 20;
    height: auto;
  }
}

.card,
.content-card {
  background: var(--card-dark);
  padding: 1.8rem;
  border-radius: var(--radius);
  border: 1px solid #222;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4);
  margin-bottom: 1.5rem;
}

.profile-img-container {
  aspect-ratio: 3/4;
  border-radius: 0.6rem;
  overflow: hidden;
  border: 1px solid #333;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  cursor: zoom-in;
  background: #111;
}
.profile-img-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.card-title-highlight {
  font-family: "Noto Serif", serif;
  font-size: 0.8rem;
  margin-bottom: 1rem;
  padding: 0.6rem 0.8rem;
  display: flex;
  align-items: center;
  gap: 0.8rem;
  color: var(--gold);
  background-color: rgba(197, 160, 89, 0.05);
  border-left: 3px solid var(--gold);
  border-radius: 4px;
  text-transform: uppercase;
  font-weight: 700;
}

.info-tag {
  background: #1a1a1a;
  color: var(--white);
  padding: 0.5rem 0.8rem;
  border-radius: 0.4rem;
  font-size: 0.8rem;
  border: 1px solid #282828;
  display: flex;
  flex-direction: column;
  width: 100%;
  margin-bottom: 0.5rem;
}
.tag-label {
  font-size: 0.55rem;
  text-transform: uppercase;
  color: var(--stone-400);
  font-weight: 800;
  margin-bottom: 2px;
}
.tag-value {
  font-weight: 700;
  color: #e2c284;
}

.profile-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
}

.contact-links {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  margin-top: 1rem;
}
.contact-item {
  color: var(--stone-400);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0.8rem;
  font-size: 0.85rem;
  transition: 0.3s;
}
.contact-item:hover {
  color: var(--gold);
}

.btn-whatsapp {
  background: transparent !important;
  border: 1px solid var(--whatsapp) !important;
  color: var(--whatsapp) !important;
  margin-top: 1rem !important;
  width: 100%;
  padding: 1rem;
  border-radius: 3rem;
  font-weight: 900;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.7rem;
  transition: 0.4s !important;
}
.btn-whatsapp:hover {
  background: var(--whatsapp) !important;
  color: #000 !important;
}

.btn-download-cv {
  width: 100%;
  margin-top: 1rem;
  padding: 1rem;
  background-color: var(--gold);
  color: #000;
  border: none;
  border-radius: 3rem;
  font-weight: 900;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.7rem;
  transition: 0.3s;
}

.tabs-nav {
  display: flex;
  background: rgba(20, 20, 20, 0.9);
  backdrop-filter: blur(15px);
  padding: 0.4rem;
  border-radius: 1rem;
  border: 1px solid #222;
  margin-bottom: 2rem;
  position: relative;
  z-index: 1000;
  gap: 0.4rem;
}
.tab-btn {
  flex: 1;
  padding: 1rem 0.5rem;
  border: none;
  background: none;
  border-radius: 0.7rem;
  cursor: pointer;
  font-weight: 700;
  color: var(--stone-400);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  font-size: 0.8rem;
  text-transform: uppercase;
  transition: 0.3s;
}
.tab-btn.active {
  background: #222;
  color: var(--gold);
}

.section-heading {
  font-family: "Noto Serif", serif;
  font-size: 1.6rem;
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  border-bottom: 1px solid #222;
  padding-bottom: 0.6rem;
}
.job-item {
  padding: 1.2rem 1rem;
  border-radius: 0.6rem;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  border-bottom: 1px solid #1a1a1a;
  transition: 0.3s;
}
.job-item:hover {
  background: #1a1a1a;
  transform: translateX(8px);
  border-left: 2px solid var(--gold);
}

.video-box {
  aspect-ratio: 16/9;
  background: #000;
  border-radius: 1rem;
  margin-bottom: 2.5rem;
  overflow: hidden;
  border: 1px solid #222;
  position: relative;
}
.video-box iframe {
  width: 100%;
  height: 100%;
  border: none;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 1.5rem;
  min-height: 200px;
}
.gallery-item {
  aspect-ratio: 1/1;
  background: #111;
  border-radius: 0.8rem;
  overflow: hidden;
  cursor: zoom-in;
  border: 1px solid #222;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}
.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  opacity: 0;
  transition: opacity 0.4s ease;
  z-index: 1;
  image-rendering: -webkit-optimize-contrast;
}
.gallery-item img.loaded {
  opacity: 1;
}

.placeholder-text {
  position: absolute;
  color: #333;
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  text-align: center;
  z-index: 0;
}

.img-tag {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.9));
  color: var(--gold-light);
  font-size: 0.6rem;
  font-weight: 800;
  text-transform: uppercase;
  padding: 1rem 0.5rem 0.4rem;
  text-align: center;
  z-index: 2;
}

.gallery-controls {
  display: none;
  gap: 0.8rem;
  margin-top: 10px;
  margin-bottom: 15px;
}
.btn-filter-back {
  border: 1px solid var(--gold) !important;
  background: rgba(197, 160, 89, 0.1) !important;
  padding: 0.6rem 1.4rem !important;
  border-radius: 3rem !important;
  font-size: 0.75rem !important;
  color: var(--gold) !important;
  cursor: pointer !important;
  text-transform: uppercase;
  font-weight: 800;
  display: inline-flex !important;
  align-items: center;
  gap: 0.6rem;
  transition: all 0.3s ease !important;
}
.btn-filter-back:hover {
  background: var(--gold) !important;
  color: black !important;
  transform: translateY(-2px);
}

#btn-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  background: var(--gold);
  color: #000;
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 50%;
  display: none;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 1500;
  border: none;
}

/* LIGHTBOX COM BRILHO E CONTRASTE REFORÇADO */
#lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.98);
  z-index: 5000;
  display: none;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(15px);
  flex-direction: column;
}
#lightbox.active {
  display: flex;
}

#lightbox-img {
  max-width: 95vw;
  max-height: 80vh;
  object-fit: contain;
  box-shadow:
    0 0 60px rgba(255, 255, 255, 0.2),
    0 0 20px rgba(197, 160, 89, 0.1);
  border: 2px solid rgba(255, 255, 255, 0.3);
  background: #000;
}

.lb-btn {
  position: absolute;
  background: rgba(255, 255, 255, 0.05);
  color: white;
  border: none;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: 0.3s;
  z-index: 5100;
}
.lb-btn:hover {
  background: var(--gold);
  color: black;
}
.lb-close {
  top: 1.5rem;
  right: 1.5rem;
}
.lb-prev {
  left: 1.5rem;
  top: 50%;
  transform: translateY(-50%);
}
.lb-next {
  right: 1.5rem;
  top: 50%;
  transform: translateY(-50%);
}

.lb-caption {
  color: var(--gold-light);
  margin-top: 1.5rem;
  font-family: "Noto Serif", serif;
  font-size: 1.15rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  text-align: center;
  font-weight: 700;
  text-shadow: 0 2px 5px rgba(0, 0, 0, 0.9);
}
.lb-counter {
  color: var(--stone-500);
  font-size: 0.8rem;
  margin-top: 0.5rem;
  font-weight: 800;
}

footer {
  background: #050505;
  padding: 5rem 0;
  text-align: center;
  border-top: 1px solid #111;
  margin-top: auto;
}
footer p {
  color: var(--stone-400);
  font-size: 0.8rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  font-weight: 600;
}
footer .rights {
  color: var(--stone-500);
  font-size: 0.65rem;
  margin-top: 10px;
}

.section-content {
  display: none;
  width: 100%;
}
.section-content.active {
  display: block;
}
