:root {
  --bg-1: #050816;
  --bg-2: #111a35;
  --bg-3: #1a1233;
  --panel: rgba(18, 21, 40, 0.86);
  --panel-border: rgba(255, 255, 255, 0.14);
  --text: #f8f7ff;
  --text-muted: #b8c1ee;
  --accent-pink: #ff4fd8;
  --accent-purple: #8f6dff;
  --accent-cyan: #4ef2ff;
  --accent-yellow: #ffd166;
  --accent-green: #5af0a7;
  --shadow: rgba(2, 4, 12, 0.8);
  --shadow-light: rgba(2, 4, 12, 0.4);
}

* {
  box-sizing: border-box;
}

/* ==================== RESET & GLOBAL ==================== */
html, body {
  margin: 0;
  padding: 0;
  min-height: 100vh;
  font-family: "Inter", sans-serif;
  background:
    radial-gradient(circle at top left, rgba(255, 79, 216, 0.18), transparent 28%),
    radial-gradient(circle at bottom right, rgba(78, 242, 255, 0.12), transparent 26%),
    linear-gradient(135deg, var(--bg-1), var(--bg-2));
  color: var(--text);
  letter-spacing: 0.01em;
  overflow-x: hidden;
}

body {
  position: relative;
  display: flex;
  flex-direction: column;
}

/* ==================== BACKDROP GLOWS ==================== */
.backdrop-glow {
  position: fixed;
  width: 280px;
  height: 280px;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.6;
  pointer-events: none;
  z-index: -1;
}

.glow-left {
  left: 3%;
  top: 7%;
  background: rgba(255, 79, 216, 0.52);
}

.glow-right {
  right: 4%;
  bottom: 6%;
  background: rgba(78, 242, 255, 0.5);
}

/* ==================== NAVBAR ==================== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(5, 8, 22, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--panel-border);
}

.navbar-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1200px;
  margin: 0 auto;
  padding: 16px 32px;
  width: 100%;
}

.navbar-brand {
  display: flex;
  align-items: center;
  gap: 24px;
  font-family: "Orbitron", sans-serif;
  letter-spacing: 0.12em;
  font-size: 1.2rem;
  font-weight: 900;
}

.brand-mark {
  color: var(--accent-pink);
  text-shadow: 0 0 18px rgba(255, 79, 216, 0.7);
}

.brand-word {
  color: var(--text);
}

.navbar-links {
  display: flex;
  align-items: center;
  gap: 28px;
}

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

.nav-link:hover {
  color: var(--text);
  text-shadow: 0 0 12px rgba(78, 242, 255, 0.5);
}

.nav-link-cv {
  border: 1px solid var(--accent-cyan);
  padding: 8px 16px;
  border-radius: 6px;
  color: var(--accent-cyan);
  transition: all 0.3s ease;
}

.nav-link-cv:hover {
  background: rgba(78, 242, 255, 0.15);
  box-shadow: 0 0 16px rgba(78, 242, 255, 0.4);
  text-shadow: 0 0 12px rgba(78, 242, 255, 0.5);
}

.navbar-repo-link {
  color: var(--accent-cyan);
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 500;
  font-family: "Inter", sans-serif;
  letter-spacing: 0.05em;
  border: 1px solid rgba(78, 242, 255, 0.4);
  padding: 8px 14px;
  border-radius: 6px;
  transition: all 0.3s ease;
  background: rgba(78, 242, 255, 0.08);
}

.navbar-repo-link:hover {
  border-color: var(--accent-cyan);
  background: rgba(78, 242, 255, 0.18);
  box-shadow: 0 0 12px rgba(78, 242, 255, 0.3);
  color: #fff;
  text-shadow: 0 0 8px rgba(78, 242, 255, 0.4);
}

/* ==================== MAIN CONTENT ==================== */
.main-content {
  flex: 1;
  max-width: 1000px;
  margin: 0 auto;
  padding: 120px 32px 64px;
  width: 100%;
}

/* ==================== HERO SECTION ==================== */
.hero {
  text-align: center;
  margin-bottom: 80px;
  animation: fadeInDown 0.8s ease-out;
}

.hero-title {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 700;
  line-height: 1.2;
  margin: 0 0 16px 0;
  background: linear-gradient(135deg, var(--accent-pink), var(--accent-cyan), var(--accent-purple));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-shadow: 0 0 40px rgba(255, 79, 216, 0.3);
}

.hero-subtitle {
  font-size: 1.1rem;
  color: var(--text-muted);
  margin: 0;
  font-weight: 400;
}

/* ==================== ABOUT SECTION ==================== */
.about {
  margin-bottom: 100px;
  padding: 48px;
  background: linear-gradient(180deg, rgba(14, 17, 31, 0.8), rgba(10, 12, 24, 0.9));
  border: 1px solid var(--panel-border);
  border-radius: 20px;
  box-shadow: 0 16px 50px var(--shadow-light);
  backdrop-filter: blur(10px);
  animation: fadeInUp 0.8s ease-out 0.2s both;
}

.about-text {
  font-size: 1rem;
  line-height: 1.7;
  color: var(--text);
  margin: 0 0 36px 0;
}

.section-title {
  font-size: 2.2rem;
  font-weight: 700;
  margin: 0 0 24px 0;
  color: var(--text);
  font-family: "Orbitron", sans-serif;
  letter-spacing: 0.08em;
}

/* Menu de âncoras */
.sections-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  padding: 20px 0;
  border-top: 1px solid var(--panel-border);
  border-bottom: 1px solid var(--panel-border);
}

.section-link {
  color: var(--accent-cyan);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  transition: all 0.3s ease;
  position: relative;
}

.section-link:hover {
  color: var(--accent-pink);
  text-shadow: 0 0 12px rgba(255, 79, 216, 0.5);
}

.section-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--accent-pink), var(--accent-cyan));
  transition: width 0.3s ease;
}

.section-link:hover::after {
  width: 100%;
}

.section-divider {
  color: var(--text-muted);
  opacity: 0.5;
}

/* ==================== SUBSECTIONS ==================== */
.subsection {
  margin-bottom: 80px;
  padding: 48px;
  background: linear-gradient(180deg, rgba(26, 18, 51, 0.7), rgba(14, 17, 31, 0.85));
  border: 1px solid var(--panel-border);
  border-radius: 20px;
  box-shadow: 0 16px 50px var(--shadow-light);
  backdrop-filter: blur(10px);
  animation: fadeInUp 0.8s ease-out both;
  scroll-margin-top: 120px;
}

.subsection:nth-child(3) {
  animation-delay: 0.2s;
}

.subsection:nth-child(4) {
  animation-delay: 0.3s;
}

.subsection:nth-child(5) {
  animation-delay: 0.4s;
}

.subsection-title {
  font-size: 1.8rem;
  font-weight: 700;
  margin: 0 0 24px 0;
  color: var(--accent-cyan);
  font-family: "Orbitron", sans-serif;
  letter-spacing: 0.08em;
  text-shadow: 0 0 20px rgba(78, 242, 255, 0.3);
}

.subsection-content {
  line-height: 1.8;
  color: var(--text);
  font-size: 1rem;
}

.subsection-content p {
  margin: 0 0 20px 0;
}

.subsection-content p:last-child {
  margin-bottom: 0;
}

.subsection-content p strong {
  color: var(--accent-pink);
  font-weight: 600;
}

/* Certificações e listas */
.certifications-list {
  list-style: none;
  padding: 0;
  margin: 16px 0 20px 0;
}

.certifications-list li {
  padding: 12px 16px;
  margin: 8px 0;
  background: rgba(78, 242, 255, 0.08);
  border-left: 3px solid var(--accent-cyan);
  border-radius: 6px;
  color: var(--text);
  transition: all 0.3s ease;
}

.certifications-list li:hover {
  background: rgba(78, 242, 255, 0.15);
  transform: translateX(8px);
}

/* Bloco de países */
.countries-block {
  background: rgba(255, 79, 216, 0.08);
  padding: 20px;
  border-radius: 10px;
  border-left: 3px solid var(--accent-pink);
  margin: 20px 0;
}

.countries-block p {
  margin: 8px 0;
}

.countries-block strong {
  color: var(--accent-pink);
}

/* ==================== CONTACT SECTION ==================== */
.contact {
  text-align: center;
  padding: 64px 48px;
  background: linear-gradient(135deg, rgba(14, 17, 31, 0.9), rgba(26, 18, 51, 0.85));
  border: 1px solid var(--panel-border);
  border-radius: 20px;
  box-shadow: 0 16px 50px var(--shadow-light);
  backdrop-filter: blur(10px);
  margin-bottom: 40px;
  animation: fadeInUp 0.8s ease-out 0.5s both;
}

.contact .section-title {
  margin-bottom: 32px;
  background: linear-gradient(135deg, var(--accent-pink), var(--accent-cyan));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.contact-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  flex-wrap: wrap;
}

.contact-link {
  display: inline-block;
  padding: 12px 28px;
  border: 2px solid var(--accent-cyan);
  border-radius: 8px;
  color: var(--accent-cyan);
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.contact-link::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: rgba(78, 242, 255, 0.2);
  transition: left 0.3s ease;
  z-index: -1;
}

.contact-link:hover::before {
  left: 0;
}

.contact-link:hover {
  box-shadow: 0 0 20px rgba(78, 242, 255, 0.5);
  text-shadow: 0 0 10px rgba(78, 242, 255, 0.5);
}

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

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

/* ==================== RESPONSIVIDADE ==================== */
@media (max-width: 768px) {
  .navbar-container {
    padding: 12px 16px;
  }

  .navbar-brand {
    font-size: 1rem;
  }

  .navbar-links {
    gap: 12px;
    font-size: 0.85rem;
  }

  .nav-link-cv {
    padding: 6px 12px;
  }

  .main-content {
    padding: 100px 16px 40px;
  }

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

  .hero-subtitle {
    font-size: 0.95rem;
  }

  .about,
  .subsection,
  .contact {
    padding: 32px 20px;
  }

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

  .subsection-title {
    font-size: 1.4rem;
  }

  .subsection-content,
  .about-text {
    font-size: 0.95rem;
    line-height: 1.6;
  }

  .sections-nav {
    gap: 8px;
  }

  .section-link {
    font-size: 0.85rem;
  }

  .section-divider {
    display: none;
  }

  .contact-links {
    gap: 12px;
  }

  .contact-link {
    padding: 10px 20px;
    font-size: 0.9rem;
  }

  .certifications-list li {
    padding: 10px 12px;
    font-size: 0.95rem;
  }

  .backdrop-glow {
    width: 200px;
    height: 200px;
  }
}

@media (max-width: 480px) {
  .navbar-container {
    flex-direction: column;
    gap: 12px;
  }

  .navbar-links {
    width: 100%;
    justify-content: center;
    gap: 8px;
  }

  .main-content {
    padding: 90px 12px 30px;
  }

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

  .hero-subtitle {
    font-size: 0.85rem;
  }

  .about,
  .subsection,
  .contact {
    padding: 24px 16px;
    margin-bottom: 60px;
  }

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

  .subsection-title {
    font-size: 1.1rem;
  }

  .subsection-content,
  .about-text {
    font-size: 0.9rem;
  }

  .sections-nav {
    flex-direction: column;
    gap: 12px;
  }

  .contact-links {
    flex-direction: column;
    width: 100%;
  }

  .contact-link {
    width: 100%;
    text-align: center;
  }

  .countries-block {
    padding: 16px 12px;
  }

  .certifications-list li {
    font-size: 0.9rem;
    padding: 10px 12px;
  }
}
