/* ==========================================================================
   PORTFOLIO - MARIANA LOURENÇO (Design System & Styles)
   Front-End Developer & Generative AI Specialist
   ========================================================================== */

:root {
  /* Color Palette - Deep Dark Tech & Cyber Sapphire */
  --bg-primary: #030508;
  --bg-secondary: transparent;
  --bg-card: rgba(8, 14, 26, 0.75);
  --bg-card-hover: rgba(14, 24, 44, 0.88);
  --bg-glass: rgba(8, 14, 26, 0.65);

  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-glow: rgba(59, 130, 246, 0.4);
  --border-card: rgba(255, 255, 255, 0.12);

  --accent-blue: #3b82f6;
  --accent-cyan: #38bdf8;
  --accent-red: #ef4444;
  --accent-rose: #f43f5e;
  --accent-purple: #8b5cf6;

  --gradient-primary: linear-gradient(135deg, #00112d 15%, #ef4444 100%);
  --gradient-glow: linear-gradient(135deg, rgba(59, 130, 246, 0.25) 0%, rgba(239, 68, 68, 0.25) 100%);
  --gradient-text: linear-gradient(135deg, #cbd5e1 30%, #94a3b8 100%);
  --gradient-accent-text: var(--accent-rose);

  --text-main: #dde4ec;
  --text-muted: #94a3b8;
  --text-dim: #64748b;

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-full: 9999px;

  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-mono: "Fira Code", monospace;

  --shadow-card: 0 10px 30px -10px rgba(0, 0, 0, 0.6);
  --shadow-glow: 0 0 35px rgba(59, 130, 246, 0.25);

  --section-padding-y: clamp(64px, 10vw, 120px);
}

/* Base Reset */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  background-color: #030508;
  color: var(--text-main);
  font-family: var(--font-sans);
  overflow-x: hidden;
}


body {
  background-color: transparent;
  color: var(--text-main);
  line-height: 1.6;
  overflow-x: hidden;
  position: relative;
}

/* Main Content Layer floats above the fixed canvas background */
main {
  position: relative;
  z-index: 2;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: #030508;
}

::-webkit-scrollbar-thumb {
  background: #1e293b;
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: #334155;
}

/* Typography Helpers */
h1,
h2,
h3,
h4,
h5 {
  font-weight: 700;
  line-height: 1.2;
  color: var(--text-main);
}

p {
  color: var(--text-muted);
}

a {
  color: inherit;
  text-decoration: none;
  transition: all 0.25s ease;
}

.text-gradient {
  display: inline;
  color: var(--accent-cyan);
  font-weight: 800;
  text-shadow: 0 0 24px rgba(56, 189, 248, 0.4);
  background: none;
  -webkit-text-stroke: initial;
  paint-order: normal;
  vertical-align: baseline;
  transition: all 0.3s ease;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Section Header */
.section-header {
  text-align: center;
  margin-bottom: 38px;
  position: relative;
}

.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 12px;
  border-radius: var(--radius-full);
  background: rgba(59, 130, 246, 0.15);
  border: 1px solid rgba(59, 130, 246, 0.3);
  color: var(--accent-cyan);
  font-size: 0.76rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 10px;
  backdrop-filter: blur(12px);
}

.section-title {
  font-size: clamp(1.85rem, 3.5vw, 2.4rem);
  letter-spacing: -0.02em;
  margin-bottom: 10px;
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.8);
}

.section-desc {
  max-width: 620px;
  margin: 0 auto;
  font-size: 0.94rem;
  color: #cbd5e1;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.8);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 22px;
  border-radius: var(--radius-full);
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  border: 1px solid transparent;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  text-decoration: none;
}

.btn-primary {
  position: relative;
  background: rgba(8, 14, 26, 0.88);
  color: #cbd5e1;
  border: 1px solid rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  overflow: hidden;
  isolation: isolate;
  z-index: 1;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s ease, border-color 0.3s ease;
}

/* O fio de luz vermelha-rosada que fica circulando apenas no hover */
.btn-primary::before {
  content: "";
  position: absolute;
  top: -150%;
  left: -150%;
  width: 400%;
  height: 400%;
  background: conic-gradient(from 0deg,
      transparent 0deg,
      transparent 260deg,
      rgba(244, 63, 94, 0.25) 300deg,
      var(--accent-rose) 340deg,
      #ffffff 355deg,
      var(--accent-rose) 360deg);
  animation: circulateBtnWire 3s linear infinite;
  opacity: 0;
  transition: opacity 0.35s ease;
  z-index: -2;
  pointer-events: none;
}

/* Recorte interno para deixar visível apenas a borda de 1.5px onde o fio corre */
.btn-primary::after {
  content: "";
  position: absolute;
  inset: 1.5px;
  border-radius: var(--radius-full);
  background: rgba(8, 14, 26, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: -1;
  pointer-events: none;
  transition: background 0.3s ease;
}

.btn-primary:hover {
  transform: translateY(-2px);
  border-color: rgba(244, 63, 94, 0.4);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.6), 0 0 25px rgba(244, 63, 94, 0.35);
  color: #e2e8f0;
}

.btn-primary:hover::before {
  opacity: 1;
}

.btn-primary:hover::after {
  background: rgba(12, 20, 38, 0.9);
}

.btn-primary:active {
  transform: translateY(0);
}

@keyframes circulateBtnWire {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}

.btn-secondary {
  background: rgba(8, 14, 26, 0.6);
  color: #cbd5e1;
  border: 1px solid var(--border-card);
  backdrop-filter: blur(16px);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.3);
  transform: translateY(-2px);
}

.btn-sm {
  padding: 6px 14px;
  font-size: 0.78rem;
}

.btn-copied {
  border-color: rgba(34, 197, 94, 0.6) !important;
  color: #22c55e !important;
  box-shadow: 0 0 16px rgba(34, 197, 94, 0.25) !important;
}

/* Navbar */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 76px;
  z-index: 1000;
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
  background: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border-bottom: 1px solid transparent;
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.35s ease, background 0.3s ease, height 0.3s ease;
}

.navbar.nav-hidden {
  transform: translateY(-100%);
  opacity: 0;
  pointer-events: none;
}

.navbar.scrolled {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
  background: rgba(3, 5, 8, 0.88);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-subtle);
  height: 68px;
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 1.25rem;
  letter-spacing: -0.02em;
}

.logo-badge {
  position: relative;
  width: 34px;
  height: 34px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  font-size: 0.92rem;
  color: #cbd5e1;
  background: rgba(8, 14, 26, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: none;
  overflow: hidden;
  isolation: isolate;
  z-index: 1;
  transition: border-color 0.3s ease;
}

/* O fio de luz vermelha-rosada circulando continuamente pela borda da logo */
.logo-badge::before {
  content: "";
  position: absolute;
  top: -150%;
  left: -150%;
  width: 400%;
  height: 400%;
  background: conic-gradient(from 0deg,
      transparent 0deg,
      transparent 260deg,
      rgba(244, 63, 94, 0.25) 300deg,
      var(--accent-rose) 340deg,
      #ffffff 355deg,
      var(--accent-rose) 360deg);
  animation: circulateBtnWire 2.5s linear infinite;
  opacity: 0;
  transition: opacity 0.35s ease;
  z-index: -2;
  pointer-events: none;
}

/* Recorte interno para deixar visível apenas a borda de 1.5px onde o fio corre */
.logo-badge::after {
  content: "";
  position: absolute;
  inset: 1.5px;
  border-radius: 7px;
  background: rgba(8, 14, 26, 0.94);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: -1;
  pointer-events: none;
  transition: background 0.3s ease;
}

.logo-badge-text {
  position: relative;
  z-index: 1;
}

/* Ativação por 10s no recarregamento da página ou ao passar o mouse */
.logo-badge.wire-spinning::before,
.logo:hover .logo-badge::before,
.logo-badge:hover::before {
  opacity: 1;
}

.logo-badge.wire-spinning,
.logo:hover .logo-badge,
.logo-badge:hover {
  border-color: rgba(244, 63, 94, 0.45);
}

.nav-right-cluster {
  display: flex;
  align-items: center;
  gap: 16px;
}

/* Language Selector (PT / EN / ES) */
.lang-selector {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  background: rgba(8, 14, 26, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-full);
  padding: 3px 8px;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.lang-btn {
  background: none;
  border: none;
  color: var(--text-dim);
  font-family: var(--font-mono);
  font-size: 0.74rem;
  font-weight: 700;
  padding: 3px 6px;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.lang-btn:hover {
  color: var(--text-main);
}

.lang-btn.active {
  color: #ffffff;
  background: rgba(59, 130, 246, 0.35);
  box-shadow: 0 0 10px rgba(59, 130, 246, 0.3);
}

.lang-sep {
  color: rgba(255, 255, 255, 0.2);
  font-size: 0.68rem;
  pointer-events: none;
}

/* Hamburger Toggle Button (Mobile) */
.nav-hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 38px;
  height: 38px;
  border-radius: 8px;
  background: rgba(8, 14, 26, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.12);
  cursor: pointer;
  z-index: 1002;
  transition: all 0.25s ease;
  padding: 0;
}

.nav-hamburger:hover {
  border-color: rgba(244, 63, 94, 0.45);
  background: rgba(14, 24, 44, 0.9);
}

.hamburger-bar {
  width: 18px;
  height: 2px;
  background: #cbd5e1;
  border-radius: 2px;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.2s ease;
}

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

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

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

/* Backdrop for Mobile Drawer */
.nav-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(3, 5, 8, 0.75);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 998;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.nav-backdrop.active {
  opacity: 1;
  visibility: visible;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 20px;
  list-style: none;
}

.nav-links a {
  font-size: 0.82rem;
  font-weight: 500;
  color: #94a3b8;
}

.nav-links a:hover {
  color: #cbd5e1;
}

/* ==========================================================================
   FIXED FULL-SCREEN BACKGROUND ANIMATION (Canvas)
   ========================================================================== */

#fixed-bg-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 1;
  pointer-events: none;
  background: #030508;
  overflow: hidden;
}

#hero-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: block;
}

/* Translucent dark general overlay on top of frames to soften sharpness and unify theme */
#fixed-bg-container::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(3, 5, 8, 0.50);
  pointer-events: none;
  z-index: 2;
}

/* ==========================================================================
   HERO SECTION
   ========================================================================== */

.hero-section {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  padding: 120px 0 80px 0;
}

.hero-content-layer {
  position: relative;
  z-index: 10;
  width: 100%;
}

.hero-typography {
  max-width: 620px;
  margin-right: auto;
  margin-left: 0;
}

.hero-role-kicker {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: transparent;
  border: none;
  padding: 0;
  margin-bottom: 22px;
  box-shadow: none;
}

.hero-role-kicker span:not(.pulse-dot),
.hero-role-kicker .kicker-text {
  font-family: var(--font-sans);
  color: var(--accent-rose);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-shadow: 0 0 14px rgba(244, 63, 94, 0.35);
}

.pulse-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 12px #22c55e;
  animation: pulse 2s infinite;
  flex-shrink: 0;
}

@keyframes pulse {

  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }

  50% {
    opacity: 0.5;
    transform: scale(0.85);
  }
}

.hero-title {
  font-size: clamp(2.1rem, 4.4vw, 3.1rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin-bottom: 16px;
  color: #cbd5e1;
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.9);
}

.hero-subtitle {
  font-size: 0.96rem;
  line-height: 1.6;
  color: #94a3b8;
  margin-bottom: 24px;
  max-width: 580px;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.85);
}

.hero-subtitle strong {
  color: #cbd5e1;
  font-weight: 600;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.hero-actions .btn {
  padding: 8px 18px;
  font-size: 0.84rem;
}

.scroll-indicator {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: rgba(255, 255, 255, 0.4);
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  pointer-events: none;
}

.scroll-mouse {
  width: 22px;
  height: 36px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 12px;
  position: relative;
}

.scroll-wheel {
  width: 3px;
  height: 6px;
  background: #3b82f6;
  border-radius: 2px;
  position: absolute;
  top: 6px;
  left: 50%;
  transform: translateX(-50%);
  animation: scrollAnim 1.8s infinite;
}

@keyframes scrollAnim {
  0% {
    transform: translate(-50%, 0);
    opacity: 1;
  }

  100% {
    transform: translate(-50%, 14px);
    opacity: 0;
  }
}

/* ==========================================================================
   TECH MARQUEE / STACK STRIP (Pure Editorial Uppercase Typography)
   ========================================================================== */

.marquee-section {
  margin: 50px 0;
  padding: 18px 0;
  background: rgba(3, 5, 8, 0.45);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  overflow: hidden;
  position: relative;
  mask-image: linear-gradient(90deg, transparent 0%, black 8%, black 92%, transparent 100%);
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, black 8%, black 92%, transparent 100%);
}

.marquee-track {
  display: flex;
  align-items: center;
  width: max-content;
  animation: marqueeScroll 36s linear infinite;
  gap: 28px;
}

.marquee-track:hover {
  animation-play-state: paused;
}

@keyframes marqueeScroll {
  0% {
    transform: translateX(0);
  }

  100% {
    transform: translateX(-50%);
  }
}

.marquee-word {
  font-family: var(--font-sans);
  font-size: 0.90rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #94a3b8;
  white-space: nowrap;
  background: none;
  border: none;
  padding: 0;
  border-radius: 0;
  box-shadow: none;
  transition: color 0.25s ease, text-shadow 0.25s ease;
}

.marquee-word:hover {
  color: #38bdf8;
  text-shadow: 0 0 14px rgba(56, 189, 248, 0.7), 0 0 25px rgba(59, 130, 246, 0.4);
}

.marquee-dot {
  color: var(--accent-red);
  font-size: 0.78rem;
  opacity: 0.7;
}

/* ==========================================================================
   ABOUT SECTION
   ========================================================================== */

.about-section {
  padding: var(--section-padding-y) 0;
  position: relative;
}

.about-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 28px;
  align-items: center;
}

.about-card {
  background: var(--bg-card);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-lg);
  padding: 28px 30px;
  box-shadow: var(--shadow-card);
}

.about-lead {
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--text-main);
  line-height: 1.6;
  margin-bottom: 14px;
}

.about-text {
  font-size: 0.94rem;
  line-height: 1.65;
  color: var(--text-muted);
  margin-bottom: 18px;
}

.about-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  padding-top: 18px;
  border-top: 1px solid var(--border-subtle);
}

.stat-item {
  text-align: left;
}

.stat-num {
  font-size: 1.85rem;
  font-weight: 800;
  color: var(--accent-cyan);
  background: none;
  -webkit-background-clip: initial;
  -webkit-text-fill-color: initial;
  display: block;
  font-variant-numeric: tabular-nums;
}

.stat-label {
  font-size: 0.78rem;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 600;
}

.about-pillars {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.pillar-card {
  background: var(--bg-card);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 16px 20px;
  transition: all 0.3s ease;
}

.pillar-card:hover {
  background: rgba(59, 130, 246, 0.12);
  border-color: rgba(59, 130, 246, 0.4);
  transform: translateX(4px);
}

.pillar-icon {
  width: auto;
  height: auto;
  background: transparent;
  border: none;
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  color: var(--accent-cyan);
  margin-bottom: 10px;
}

.pillar-icon svg {
  width: 24px;
  height: 24px;
  stroke: var(--accent-cyan);
  stroke-width: 2;
  transition: transform 0.25s ease;
}

.pillar-card:hover .pillar-icon svg {
  transform: scale(1.1);
}

.pillar-title {
  font-size: 1.05rem;
  margin-bottom: 6px;
}

.pillar-desc {
  font-size: 0.86rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* ==========================================================================
   EDUCATION SECTION
   ========================================================================== */

.edu-section {
  padding: var(--section-padding-y) 0;
  position: relative;
}

.edu-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 20px;
}

.edu-card {
  background: var(--bg-card);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-md);
  padding: 24px 26px;
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
}

.edu-card:hover {
  border-color: rgba(59, 130, 246, 0.4);
  transform: translateY(-3px);
  box-shadow: var(--shadow-glow);
}

.edu-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: var(--gradient-primary);
}

.edu-badge {
  display: inline-block;
  padding: 3px 10px;
  background: rgba(59, 130, 246, 0.2);
  border-radius: var(--radius-full);
  font-size: 0.74rem;
  font-weight: 700;
  color: var(--accent-cyan);
  margin-bottom: 10px;
  text-transform: uppercase;
}

.edu-degree {
  font-size: 1.2rem;
  margin-bottom: 6px;
}

.edu-institution {
  font-size: 0.95rem;
  color: #e2e8f0;
  margin-bottom: 6px;
  font-weight: 600;
}

.edu-period {
  font-size: 0.82rem;
  color: var(--text-dim);
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.edu-actions {
  margin-top: 14px;
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

/* Detalhes expandíveis da formação acadêmica */
.edu-details-pane {
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transition: max-height 0.35s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease, margin-top 0.3s ease;
  margin-top: 0;
}

.edu-details-pane.active {
  max-height: 180px;
  opacity: 1;
  margin-top: 12px;
}

.edu-desc-text {
  font-size: 0.87rem;
  line-height: 1.55;
  color: var(--text-muted);
  padding: 10px 14px;
  background: rgba(255, 255, 255, 0.03);
  border-left: 2px solid var(--accent-cyan);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  margin: 0;
}

.edu-details-btn.active {
  border-color: rgba(56, 189, 248, 0.6);
  color: #cbd5e1;
  background: rgba(56, 189, 248, 0.15);
}

/* ==========================================================================
   EXPERIENCE SECTION
   ========================================================================== */

.exp-section {
  padding: var(--section-padding-y) 0;
  position: relative;
}

.exp-timeline {
  position: relative;
  max-width: 860px;
  margin: 0 auto;
  padding-left: 42px;
}

/* Continuous vertical timeline track spine */
.exp-timeline::before {
  content: "";
  position: absolute;
  left: 15px;
  top: 14px;
  bottom: 24px;
  width: 2px;
  background: linear-gradient(180deg, var(--accent-rose) 0%, rgba(244, 63, 94, 0.4) 60%, rgba(59, 130, 246, 0.15) 100%);
}

.timeline-item {
  position: relative;
  margin-bottom: 36px;
  transition: all 0.3s ease;
}

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

/* Marker & Glowing Dot */
.timeline-marker {
  position: absolute;
  left: -42px;
  top: 4px;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
}

.timeline-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--accent-rose);
  border: 2px solid #030508;
  box-shadow: 0 0 0 3px rgba(244, 63, 94, 0.25), 0 0 12px var(--accent-rose);
  transition: all 0.3s ease;
}

.timeline-item:hover .timeline-dot {
  transform: scale(1.3);
  box-shadow: 0 0 0 5px rgba(244, 63, 94, 0.4), 0 0 20px var(--accent-rose);
}

/* Content layout - open, clean, not a card */
.timeline-content {
  padding: 2px 0 12px 6px;
  transition: transform 0.3s ease;
}

.timeline-item:hover .timeline-content {
  transform: translateX(4px);
}

.timeline-header {
  margin-bottom: 12px;
}

.timeline-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 6px;
}

.timeline-period {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--accent-cyan);
  letter-spacing: 0.03em;
}

.timeline-badge-active {
  padding: 2px 8px;
  background: rgba(244, 63, 94, 0.15);
  border: 1px solid rgba(244, 63, 94, 0.35);
  border-radius: var(--radius-full);
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--accent-rose);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.timeline-role {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-main);
  line-height: 1.3;
  margin-bottom: 4px;
}

.timeline-type {
  font-size: 0.95rem;
  font-weight: 400;
  color: var(--text-dim);
}

.timeline-company {
  font-size: 0.98rem;
  font-weight: 600;
  color: var(--accent-blue);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.timeline-body {
  border-left: 1px solid rgba(255, 255, 255, 0.08);
  padding-left: 16px;
  margin-left: 2px;
}

.exp-category-title {
  font-size: 0.88rem;
  font-weight: 700;
  color: #e2e8f0;
  margin: 12px 0 8px 0;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  display: flex;
  align-items: center;
  gap: 6px;
}

.exp-category-title:first-child {
  margin-top: 4px;
}

.exp-category-title::before {
  content: "";
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent-rose);
  box-shadow: 0 0 8px var(--accent-rose);
}

.exp-bullets {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 14px;
}

.exp-bullets li {
  position: relative;
  padding-left: 20px;
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.55;
}

.exp-bullets li::before {
  content: "▹";
  position: absolute;
  left: 0;
  color: var(--accent-rose);
  font-size: 1.05rem;
  line-height: 1.3;
}

.exp-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding-top: 14px;
}

.tag-badge {
  padding: 5px 12px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-dim);
  transition: all 0.2s ease;
}

.tag-badge:hover {
  background: rgba(244, 63, 94, 0.12);
  border-color: rgba(244, 63, 94, 0.3);
  color: var(--text-main);
}

@media (max-width: 768px) {
  .exp-timeline {
    padding-left: 32px;
  }

  .exp-timeline::before {
    left: 9px;
  }

  .timeline-marker {
    left: -32px;
    width: 20px;
  }

  .timeline-dot {
    width: 12px;
    height: 12px;
  }

  .timeline-role {
    font-size: 1.25rem;
  }

  .timeline-body {
    padding-left: 14px;
  }
}

/* ==========================================================================
   PROJECTS SECTION (Filterable Grid)
   ========================================================================== */

.projects-section {
  padding: var(--section-padding-y) 0;
  position: relative;
  border-top: 1px dashed rgba(255, 255, 255, 0.1);
}

.projects-section::before {
  content: '';
  position: absolute;
  top: -1px;
  left: 50%;
  transform: translateX(-50%);
  width: 220px;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent-cyan), var(--accent-rose), transparent);
  box-shadow: 0 0 16px rgba(56, 189, 248, 0.6);
  pointer-events: none;
  z-index: 2;
}

.filter-bar {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-bottom: 32px;
  flex-wrap: wrap;
}

.filter-btn {
  padding: 8px 18px;
  border-radius: var(--radius-full);
  background: rgba(8, 14, 26, 0.7);
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
  font-size: 0.84rem;
  font-weight: 600;
  cursor: pointer;
  backdrop-filter: blur(12px);
  transition: all 0.3s ease;
}

.filter-btn:hover {
  color: #cbd5e1;
  border-color: rgba(255, 255, 255, 0.25);
}

.filter-btn.active {
  background: rgba(14, 24, 44, 0.95);
  color: #cbd5e1;
  border-color: rgba(244, 63, 94, 0.45);
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.5), 0 0 15px rgba(244, 63, 94, 0.25);
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 20px;
}

.project-card {
  background: var(--bg-card);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-md);
  padding: 24px 26px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  overflow: hidden;
}

.project-card:hover {
  transform: translateY(-4px);
  border-color: rgba(59, 130, 246, 0.5);
  box-shadow: 0 16px 40px -10px rgba(0, 0, 0, 0.8), 0 0 30px rgba(59, 130, 246, 0.25);
}

.project-header {
  margin-bottom: 12px;
}

.project-category {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent-cyan);
  margin-bottom: 6px;
  display: block;
}

.project-title {
  font-size: 1.25rem;
  margin-bottom: 4px;
}

.project-role {
  font-size: 0.85rem;
  color: var(--accent-rose);
  font-weight: 600;
  margin-bottom: 10px;
}

.project-desc {
  font-size: 0.88rem;
  line-height: 1.55;
  color: var(--text-muted);
  margin-bottom: 18px;
}

.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: auto;
  padding-top: 18px;
  border-top: 1px solid var(--border-subtle);
}

/* ==========================================================================
   SKILLS SECTION
   ========================================================================== */

.skills-section {
  padding: var(--section-padding-y) 0;
  position: relative;
}

.skills-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.skill-category-card {
  background: var(--bg-card);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-md);
  padding: 24px 26px;
  transition: all 0.3s ease;
}

.skill-category-card:hover {
  border-color: rgba(59, 130, 246, 0.4);
  box-shadow: var(--shadow-glow);
}

.skill-cat-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.skill-cat-icon {
  width: auto;
  height: auto;
  background: transparent;
  border: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-rose);
}

.skill-cat-icon svg {
  width: 22px;
  height: 22px;
  stroke: var(--accent-rose);
  stroke-width: 2;
  transition: transform 0.25s ease;
}

.skill-category-card:hover .skill-cat-icon svg {
  transform: scale(1.15);
}

.skill-cat-title {
  font-size: 1.15rem;
  color: var(--text-main);
}

.skill-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.skill-chip {
  padding: 6px 13px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-dim);
  transition: all 0.25s ease;
}

.skill-chip:hover {
  background: rgba(59, 130, 246, 0.22);
  border-color: rgba(59, 130, 246, 0.5);
  color: var(--text-main);
  transform: translateY(-2px);
}

/* ==========================================================================
   SOFT SKILLS - NEURAL BEHAVIORAL MATRIX (Non-Card Design)
   Open Synapse Nodes & Kinetic Circuitry below technical skills
   ========================================================================== */

.soft-skills-wrapper {
  margin-top: 48px;
  position: relative;
}

.soft-skills-header {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 26px auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.soft-title {
  font-size: clamp(1.4rem, 2.5vw, 1.85rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text-main);
}

.soft-desc {
  font-size: 0.9rem;
  line-height: 1.55;
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto;
}

/* Compact & Discrete Neural Synapse Matrix */
.soft-matrix-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

/* Discrete Horizontal Telemetry Capsule (Clean, Low-Profile & Minimalist) */
.soft-pill {
  position: relative;
  padding: 12px 18px;
  background: rgba(8, 14, 26, 0.52);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  cursor: default;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  overflow: hidden;
}

/* Subtle accent indicator on the left edge */
.soft-pill::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 2px;
  height: 100%;
  background: rgba(56, 189, 248, 0.4);
  transition: background 0.3s ease, width 0.3s ease;
}

.soft-pill-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.soft-pill-idx {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  font-weight: 700;
  color: var(--accent-rose);
  opacity: 0.85;
  letter-spacing: 0.04em;
  flex-shrink: 0;
}

.soft-pill-name {
  font-size: 0.90rem;
  font-weight: 600;
  color: var(--text-main);
  letter-spacing: -0.01em;
  transition: color 0.25s ease;
}

.soft-pill-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  flex-shrink: 0;
  transition: all 0.3s ease;
}

/* Discreet, polished micro-hover (Zero Exaggeration) */
.soft-pill:hover {
  background: rgba(14, 24, 44, 0.75);
  border-color: rgba(244, 63, 94, 0.35);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px -6px rgba(0, 0, 0, 0.6), 0 0 16px rgba(244, 63, 94, 0.12);
}

.soft-pill:hover::before {
  background: var(--accent-rose);
  width: 3px;
}

.soft-pill:hover .soft-pill-name {
  color: #f1f5f9;
}

.soft-pill:hover .soft-pill-dot {
  background: var(--accent-rose);
  box-shadow: 0 0 8px var(--accent-rose);
  transform: scale(1.25);
}

/* Responsividade Soft Skills */
@media (max-width: 992px) {
  .soft-matrix-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }
}

@media (max-width: 640px) {
  .soft-matrix-grid {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .soft-skills-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
}

/* ==========================================================================
   LANGUAGES SECTION (Global Communication & Vocal Frequency Console)
   Non-Card Design: Open Acoustic Horizon Telemetry with Live Waveforms
   ========================================================================== */

.languages-section {
  padding: var(--section-padding-y) 0 60px 0;
  position: relative;
  z-index: 2;
}

/* Master Telemetry Deck */
.lang-console {
  position: relative;
  background: rgba(8, 14, 26, 0.65);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 20px 50px -15px rgba(0, 0, 0, 0.8), 0 0 35px rgba(56, 189, 248, 0.08);
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.lang-console:hover {
  border-color: rgba(56, 189, 248, 0.3);
  box-shadow: 0 25px 60px -15px rgba(0, 0, 0, 0.85), 0 0 45px rgba(56, 189, 248, 0.15);
}

/* Top HUD ticker */
.lang-console-hud {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 28px;
  background: rgba(3, 5, 8, 0.55);
  border-bottom: 1px dashed rgba(255, 255, 255, 0.08);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
}

.hud-left {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text-dim);
}

.hud-indicator {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent-cyan);
  box-shadow: 0 0 10px var(--accent-cyan);
  animation: pulseBeacon 2s ease-in-out infinite;
}

.hud-coords {
  color: var(--accent-cyan);
  font-weight: 600;
}

/* Stations Grid Track */
.lang-stations-track {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr;
  align-items: stretch;
}

/* Vertical Separator Datum Lines */
.station-divider {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  padding: 30px 0;
  width: 24px;
  user-select: none;
}

.divider-crosshair {
  font-family: var(--font-mono);
  font-size: 11px;
  color: rgba(56, 189, 248, 0.5);
  font-weight: 700;
}

.divider-line {
  width: 1px;
  height: 100%;
  background: linear-gradient(180deg,
      transparent 0%,
      rgba(255, 255, 255, 0.1) 25%,
      rgba(56, 189, 248, 0.35) 50%,
      rgba(255, 255, 255, 0.1) 75%,
      transparent 100%);
}

/* Individual Frequency Station (Completely Card-Free) */
.lang-station {
  padding: 26px 24px;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 14px;
  background: transparent;
  transition: background 0.4s ease, transform 0.3s ease;
}

.lang-station:hover {
  background: radial-gradient(ellipse at 50% 25%, rgba(56, 189, 248, 0.08) 0%, transparent 75%);
}

/* Station Meta */
.station-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.station-code {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--accent-cyan);
}

.station-dial {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--text-dim);
  padding: 3px 9px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  letter-spacing: 0.06em;
}

.station-dial.is-pulse {
  color: #fda4af;
  border-color: rgba(244, 63, 94, 0.4);
  background: rgba(244, 63, 94, 0.12);
  animation: pulseDial 2s ease-in-out infinite;
}

/* Station Main Header */
.station-main {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.station-name {
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text-main);
  margin: 0;
  transition: color 0.3s ease, text-shadow 0.3s ease;
}

.lang-station:hover .station-name {
  color: var(--text-main);
  text-shadow: 0 0 20px rgba(56, 189, 248, 0.45);
}

/* Status Badges */
.station-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  font-weight: 600;
  width: fit-content;
  padding: 5px 14px;
  border-radius: 9999px;
  backdrop-filter: blur(8px);
}

.station-badge.is-native {
  background: rgba(16, 185, 129, 0.12);
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.35);
}

.station-badge.is-cursando {
  background: rgba(244, 63, 94, 0.14);
  color: #fda4af;
  border: 1px solid rgba(244, 63, 94, 0.4);
}

.station-badge.is-intermediate {
  background: rgba(56, 189, 248, 0.12);
  color: var(--accent-cyan);
  border: 1px solid rgba(56, 189, 248, 0.35);
}

/* Beacons */
.beacon {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  flex-shrink: 0;
}

.beacon-live {
  background: #10b981;
  box-shadow: 0 0 8px #10b981;
  animation: pulseBeacon 2.8s ease-in-out infinite;
}

.beacon-pulse {
  background: var(--accent-rose);
  box-shadow: 0 0 10px var(--accent-rose);
  animation: pulseRadar 2.4s cubic-bezier(0, 0.2, 0.8, 1) infinite;
}

.beacon-steady {
  background: var(--accent-cyan);
  box-shadow: 0 0 8px var(--accent-cyan);
}

/* Live Vocal Soundwave Visualizer */
.station-soundwave {
  display: flex;
  align-items: flex-end;
  gap: 5px;
  height: 48px;
  padding: 6px 0;
  margin: 6px 0 2px 0;
}

.wave-bar {
  flex: 1;
  max-width: 6px;
  background: linear-gradient(180deg, var(--accent-cyan) 0%, rgba(59, 130, 246, 0.35) 100%);
  border-radius: 4px;
  transform-origin: bottom;
  animation: soundwaveBounce 2.8s ease-in-out infinite alternate;
  box-shadow: 0 0 6px rgba(56, 189, 248, 0.2);
  transition: all 0.3s ease;
}

/* Soundwave heights and staggered animation delays (suave e cadenciado quando o mouse não está em cima) */
.wave-bar.bar-1 {
  height: 16px;
  animation-delay: 0.1s;
}

.wave-bar.bar-2 {
  height: 32px;
  animation-delay: 0.35s;
}

.wave-bar.bar-3 {
  height: 24px;
  animation-delay: 0.6s;
}

.wave-bar.bar-4 {
  height: 44px;
  animation-delay: 0.25s;
}

.wave-bar.bar-5 {
  height: 36px;
  animation-delay: 0.5s;
}

.wave-bar.bar-6 {
  height: 26px;
  animation-delay: 0.8s;
}

.wave-bar.bar-7 {
  height: 38px;
  animation-delay: 0.3s;
}

.wave-bar.bar-8 {
  height: 22px;
  animation-delay: 0.7s;
}

.wave-bar.bar-9 {
  height: 14px;
  animation-delay: 0.45s;
}

/* English learning wave bars (active expanding frequency) */
.wave-bar.is-learning {
  background: linear-gradient(180deg, var(--accent-rose) 0%, rgba(244, 63, 94, 0.3) 100%);
  box-shadow: 0 0 8px rgba(244, 63, 94, 0.4);
  animation-duration: 2.4s;
}

/* Hover effect on soundwave: Amplifies dynamic movement like speaking */
.lang-station:hover .wave-bar {
  animation-duration: 0.75s;
  box-shadow: 0 0 12px var(--accent-cyan);
  filter: brightness(1.25);
}

.lang-station:hover .wave-bar.is-learning {
  animation-duration: 0.75s;
  box-shadow: 0 0 14px var(--accent-rose);
}

/* Filament Resonance Meter */
.station-meter {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.meter-rail {
  height: 3px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 9999px;
  position: relative;
  overflow: visible;
}

.meter-fill {
  height: 100%;
  border-radius: 9999px;
  position: relative;
  transition: width 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.fill-pt {
  width: 100%;
  background: linear-gradient(90deg, rgba(56, 189, 248, 0.4), #38bdf8);
}

.fill-en {
  width: 68%;
  background: linear-gradient(90deg, rgba(56, 189, 248, 0.4), var(--accent-rose));
}

.fill-es {
  width: 65%;
  background: linear-gradient(90deg, rgba(56, 189, 248, 0.4), var(--accent-rose));
}

.meter-pip {
  position: absolute;
  right: -3px;
  top: 50%;
  transform: translateY(-50%);
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #ffffff;
  box-shadow: 0 0 10px #38bdf8;
}

.meter-pip.pulse-pip {
  background: var(--accent-rose);
  box-shadow: 0 0 12px var(--accent-rose);
}

.meter-labels {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-dim);
}

.meter-val {
  color: #cbd5e1;
  font-weight: 600;
}

/* Station Descriptive Paragraph */
.station-detail {
  font-size: 0.88rem;
  line-height: 1.65;
  color: var(--text-muted);
  margin-top: auto;
}

/* Console Footer Ticker */
.lang-console-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 28px;
  background: rgba(3, 5, 8, 0.55);
  border-top: 1px dashed rgba(255, 255, 255, 0.08);
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--text-dim);
  letter-spacing: 0.08em;
}

.footer-segment {
  display: flex;
  align-items: center;
  gap: 8px;
}

.dot-coord {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent-cyan);
  opacity: 0.7;
}

.pulse-coord {
  background: var(--accent-rose);
  animation: pulseBeacon 1.8s ease-in-out infinite;
}

/* Keyframes for Idiomas Console */
@keyframes soundwaveBounce {
  0% {
    transform: scaleY(0.45);
    opacity: 0.75;
  }

  50% {
    transform: scaleY(1.05);
    opacity: 1;
  }

  100% {
    transform: scaleY(0.6);
    opacity: 0.85;
  }
}

@keyframes pulseBeacon {

  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }

  50% {
    opacity: 0.45;
    transform: scale(0.85);
  }
}

@keyframes pulseRadar {
  0% {
    box-shadow: 0 0 0 0 rgba(244, 63, 94, 0.7);
  }

  70% {
    box-shadow: 0 0 0 8px rgba(244, 63, 94, 0);
  }

  100% {
    box-shadow: 0 0 0 0 rgba(244, 63, 94, 0);
  }
}

@keyframes pulseDial {

  0%,
  100% {
    border-color: rgba(244, 63, 94, 0.4);
    box-shadow: 0 0 8px rgba(244, 63, 94, 0.15);
  }

  50% {
    border-color: rgba(244, 63, 94, 0.7);
    box-shadow: 0 0 14px rgba(244, 63, 94, 0.35);
  }
}

/* Responsividade do Console de Idiomas */
@media (max-width: 992px) {
  .lang-stations-track {
    grid-template-columns: 1fr;
  }

  .station-divider {
    width: 100%;
    height: 24px;
    flex-direction: row;
    padding: 0 34px;
  }

  .divider-line {
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg,
        transparent 0%,
        rgba(255, 255, 255, 0.1) 25%,
        rgba(56, 189, 248, 0.35) 50%,
        rgba(255, 255, 255, 0.1) 75%,
        transparent 100%);
  }

  .lang-station {
    padding: 32px 24px;
  }

  .lang-console-hud,
  .lang-console-footer {
    flex-direction: column;
    gap: 8px;
    align-items: flex-start;
  }
}

/* ==========================================================================
   CERTIFICATIONS SECTION (Continuous Horizontal Scroll X - Left to Right)
   ========================================================================== */

.cert-section {
  padding: var(--section-padding-y) 0 24px 0;
  position: relative;
  overflow: hidden;
}

.cert-section::before {
  content: '';
  position: absolute;
  top: -80px;
  left: 15%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(59, 130, 246, 0.14) 0%, transparent 70%);
  pointer-events: none;
  filter: blur(80px);
}

.cert-section::after {
  content: '';
  position: absolute;
  top: 40px;
  right: 15%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(239, 68, 68, 0.12) 0%, transparent 70%);
  pointer-events: none;
  filter: blur(80px);
}

.cert-section-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 36px;
  flex-wrap: wrap;
  gap: 20px;
  position: relative;
  z-index: 2;
}

.cert-nav-controls {
  display: flex;
  align-items: center;
  gap: 16px;
}

.cert-scroll-hint {
  font-size: 0.82rem;
  color: var(--accent-cyan);
  letter-spacing: 0.08em;
  font-weight: 700;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 6px;
}

.cert-pause-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 18px;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: #f1f5f9;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: all 0.25s ease;
}

.cert-pause-btn:hover {
  background: rgba(59, 130, 246, 0.25);
  border-color: rgba(56, 189, 248, 0.5);
  color: #cbd5e1;
  box-shadow: 0 0 16px rgba(56, 189, 248, 0.35);
  transform: translateY(-2px);
}

/* Dedicated Background Showcase Area for Course Track */
.cert-showcase-bg {
  position: relative;
  width: 100%;
  background: linear-gradient(180deg, rgba(7, 12, 24, 0.95) 0%, rgba(3, 6, 14, 0.98) 100%);
  border-top: 1px solid rgba(56, 189, 248, 0.25);
  border-bottom: 1px solid rgba(244, 63, 94, 0.25);
  box-shadow: inset 0 0 80px rgba(0, 0, 0, 0.85), 0 10px 40px rgba(0, 0, 0, 0.5);
  padding: 44px 0 52px 0;
  overflow: hidden;
}

.cert-showcase-bg::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 25%;
  transform: translateY(-50%);
  width: 480px;
  height: 240px;
  background: radial-gradient(ellipse, rgba(56, 189, 248, 0.12) 0%, transparent 70%);
  pointer-events: none;
  filter: blur(60px);
}

.cert-showcase-bg::after {
  content: '';
  position: absolute;
  top: 50%;
  right: 25%;
  transform: translateY(-50%);
  width: 480px;
  height: 240px;
  background: radial-gradient(ellipse, rgba(239, 68, 68, 0.1) 0%, transparent 70%);
  pointer-events: none;
  filter: blur(60px);
}

.cert-flow-wrapper {
  width: 100%;
  overflow: hidden;
  position: relative;
  mask-image: linear-gradient(90deg, transparent 0%, black 6%, black 94%, transparent 100%);
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, black 6%, black 94%, transparent 100%);
}

.cert-marquee-track {
  display: flex;
  gap: 26px;
  width: max-content;
  animation: certGlideLeftToRight 45s linear infinite;
  padding: 12px 0;
}

.cert-flow-wrapper:hover .cert-marquee-track,
.cert-marquee-track.is-paused,
.cert-marquee-track.modal-paused {
  animation-play-state: paused;
}

/* Continuous movement: Left to Right */
@keyframes certGlideLeftToRight {
  0% {
    transform: translateX(-50%);
  }

  100% {
    transform: translateX(0%);
  }
}

.cert-scroll-item {
  width: 300px;
  min-width: 300px;
  flex-shrink: 0;
  background: rgba(10, 18, 34, 0.88);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-md);
  padding: 20px 22px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.7);
}

.cert-scroll-item:hover {
  border-color: rgba(56, 189, 248, 0.6);
  transform: translateY(-6px);
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.85), 0 0 30px rgba(56, 189, 248, 0.3);
}

.cert-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

.cert-badge-status {
  font-size: 0.72rem;
  padding: 3px 10px;
  border-radius: var(--radius-full);
  background: rgba(34, 197, 94, 0.18);
  color: #4ade80;
  font-weight: 700;
  text-transform: uppercase;
}

.cert-issuer {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--accent-cyan);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.cert-title {
  font-size: 1.15rem;
  margin-bottom: 22px;
  color: #f8fafc;
  line-height: 1.4;
}

.cert-action {
  margin-top: auto;
}

/* ==========================================================================
   CONTACT / CTA FOOTER
   Design: Compact floating cyber-glass dock with bottom-aligned copyright
   ========================================================================== */

.contact-section {
  margin-top: clamp(120px, 18vh, 180px);
  padding: 50px 0 20px 0;
  position: relative;
  text-align: center;
  min-height: 88vh;
  display: flex;
  flex-direction: column;
}

.contact-section .container {
  display: flex;
  flex-direction: column;
  flex: 1;
  justify-content: space-between;
  width: 100%;
}

.cta-box {
  max-width: 580px;
  margin: auto auto 24px auto;
  background: rgba(6, 11, 20, 0.45);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: var(--radius-md);
  padding: 32px 28px;
  box-shadow: 0 16px 45px -10px rgba(0, 0, 0, 0.7), 0 0 25px rgba(56, 189, 248, 0.05);

  /* Initial state: invisible and slightly shifted down */
  opacity: 0;
  transform: translateY(18px) scale(0.97);
  filter: blur(6px);
  pointer-events: none;
  transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.6s cubic-bezier(0.16, 1, 0.3, 1),
    filter 0.6s cubic-bezier(0.16, 1, 0.3, 1),
    border-color 0.3s ease;
}

/* Gradual reveal after arriving at the section */
.cta-box.cta-revealed {
  opacity: 1;
  transform: translateY(0) scale(1);
  filter: blur(0px);
  pointer-events: auto;
}

.cta-box:hover {
  border-color: rgba(56, 189, 248, 0.25);
}

.cta-title {
  font-size: clamp(1.4rem, 2.4vw, 1.85rem);
  margin-bottom: 10px;
  letter-spacing: -0.015em;
  font-weight: 800;
}

.cta-desc {
  font-size: 0.92rem;
  color: var(--text-muted);
  max-width: 460px;
  margin: 0 auto 22px auto;
  line-height: 1.6;
}

.cta-buttons {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

.footer-bottom {
  margin-top: auto;
  padding: 16px 0 6px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  color: var(--text-dim);
  font-size: 0.78rem;
  opacity: 0;
  transition: opacity 0.5s cubic-bezier(0.16, 1, 0.3, 1) 0.15s;
}

.contact-section.section-revealed .footer-bottom {
  opacity: 1;
}

/* ==========================================================================
   MODAL (Interactive Credential Viewer)
   ========================================================================== */

.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(3, 5, 8, 0.88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.modal-backdrop.active {
  opacity: 1;
  visibility: visible;
}

.modal-window {
  background: #090e18;
  border: 1px solid var(--border-card);
  border-radius: var(--radius-lg);
  max-width: 900px;
  width: 100%;
  max-height: 90vh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.9);
  transform: scale(0.95);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.modal-backdrop.active .modal-window {
  transform: scale(1);
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 28px;
  border-bottom: 1px solid var(--border-subtle);
}

.modal-title {
  font-size: 1.2rem;
  color: #cbd5e1;
}

.modal-close-btn {
  background: rgba(255, 255, 255, 0.08);
  border: none;
  color: #cbd5e1;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  transition: all 0.2s ease;
}

.modal-close-btn:hover {
  background: rgba(239, 68, 68, 0.3);
  color: #ef4444;
}

.modal-body {
  padding: 20px;
  overflow-y: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #030508;
  min-height: 400px;
}

.modal-body img {
  max-width: 100%;
  max-height: 75vh;
  object-fit: contain;
  border-radius: var(--radius-sm);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.7);
}

.modal-body iframe {
  width: 100%;
  height: 75vh;
  border: none;
  border-radius: var(--radius-sm);
}

/* Contact Choice Modal (WhatsApp / LinkedIn) */
.contact-modal-window {
  max-width: 480px;
  width: 92%;
  background: rgba(8, 14, 26, 0.95);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(28px);
  -webkit-backdrop-filter: blur(28px);
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.85), 0 0 40px rgba(59, 130, 246, 0.2);
  overflow: hidden;
}

.contact-modal-body {
  padding: 24px 28px 30px 28px;
  background: transparent;
  display: flex;
  flex-direction: column;
  min-height: auto;
}

.contact-modal-desc {
  font-size: 0.90rem;
  color: var(--text-muted);
  line-height: 1.55;
  margin-bottom: 22px;
}

.contact-channels-grid {
  display: flex;
  flex-direction: column;
  gap: 14px;
  width: 100%;
}

.contact-channel-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 20px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.09);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  text-decoration: none;
  position: relative;
  overflow: hidden;
}

.contact-channel-card:hover {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.06);
}

.contact-channel-wa:hover {
  border-color: rgba(34, 197, 94, 0.6);
  box-shadow: 0 8px 24px -6px rgba(0, 0, 0, 0.6), 0 0 24px rgba(34, 197, 94, 0.25);
}

.contact-channel-li:hover {
  border-color: rgba(56, 189, 248, 0.6);
  box-shadow: 0 8px 24px -6px rgba(0, 0, 0, 0.6), 0 0 24px rgba(56, 189, 248, 0.25);
}

.channel-icon-wrap {
  width: 46px;
  height: 46px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.wa-icon-wrap {
  background: rgba(34, 197, 94, 0.15);
  color: #22c55e;
  border: 1px solid rgba(34, 197, 94, 0.3);
}

.li-icon-wrap {
  background: rgba(56, 189, 248, 0.15);
  color: #38bdf8;
  border: 1px solid rgba(56, 189, 248, 0.3);
}

.channel-info {
  flex: 1;
}

.channel-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 2px;
}

.channel-detail {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-bottom: 3px;
}

.channel-badge {
  font-size: 0.74rem;
  color: var(--text-dim);
}

.channel-arrow {
  font-size: 1.2rem;
  color: var(--text-dim);
  transition: transform 0.25s ease, color 0.25s ease;
}

.contact-channel-card:hover .channel-arrow {
  transform: translateX(4px);
  color: #ffffff;
}

/* ==========================================================================
   RESPONSIVE DESIGN
   ========================================================================== */

@media (max-width: 992px) {
  .about-grid {
    grid-template-columns: 1fr;
  }

  .nav-hamburger {
    display: flex;
  }

  .nav-links {
    position: fixed;
    top: 0;
    right: 0;
    width: 290px;
    max-width: 85vw;
    height: 100vh;
    background: rgba(5, 9, 18, 0.96);
    backdrop-filter: blur(28px);
    -webkit-backdrop-filter: blur(28px);
    border-left: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: -15px 0 50px rgba(0, 0, 0, 0.85);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 85px 28px 40px 28px;
    gap: 16px;
    transform: translateX(100%);
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 1000;
    overflow-y: auto;
  }

  .nav-links.open {
    transform: translateX(0);
  }

  .nav-links li {
    width: 100%;
  }

  .nav-links a {
    font-size: 1.05rem;
    font-weight: 600;
    display: block;
    padding: 8px 0;
    width: 100%;
  }

  .nav-links .btn-contact-trigger {
    margin-top: 10px;
    width: 100%;
    text-align: center;
    justify-content: center;
  }

  .hero-typography {
    max-width: 100%;
  }

  .hero-title {
    font-size: clamp(1.9rem, 5.5vw, 2.5rem);
  }
}

@media (max-width: 768px) {
  .hero-title {
    font-size: clamp(1.7rem, 6.5vw, 2.2rem);
  }


  .hero-role-kicker {
    flex-wrap: wrap;
    gap: 8px;
  }

  .marquee-word {
    font-size: 0.82rem;
    letter-spacing: 0.18em;
  }

  .cert-section-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }

  .cert-nav-controls {
    width: 100%;
    justify-content: space-between;
  }

  .cert-scroll-item {
    width: 290px;
    min-width: 290px;
    padding: 22px;
  }

  .about-stats {
    grid-template-columns: 1fr;
    gap: 16px;
  }

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

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

  .languages-row {
    grid-template-columns: 1fr;
  }

  .cta-box {
    padding: 40px 20px;
  }
}