/* ==========================================================================
   CONFIGURAÇÕES GLOBAIS E VARIÁVEIS (DESIGN TOKENS)
   ========================================================================== */
:root {
  --bg: #050608;
  --bg-soft: #0b0b0f;
  --panel: rgba(15, 18, 24, 0.72);
  --panel-strong: rgba(18, 22, 29, 0.9);
  --border: rgba(120, 138, 163, 0.18);
  --border-bright: rgba(97, 218, 251, 0.3);
  --text: #f4f7fb;
  --muted: #95a1b3;
  --silver: #d5dbe5;
  --cyan: #61dafb;
  --cyan-strong: #10c3ff;
  --glow: 0 0 32px rgba(97, 218, 251, 0.18);
  --radius: 24px;
  --radius-sm: 18px;
  --shadow: 0 28px 80px rgba(0, 0, 0, 0.45);
  --container: min(1180px, calc(100vw - 48px));
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  background:
    radial-gradient(circle at top left, rgba(16, 195, 255, 0.08), transparent 30%),
    radial-gradient(circle at bottom right, rgba(97, 218, 251, 0.05), transparent 25%),
    var(--bg);
  color: var(--text);
  font-family: "Space Grotesk", "Inter", sans-serif;
  overflow-x: hidden;
}

body.is-locked {
  overflow: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

canvas,
.background-grid,
.background-orb,
.background-noise {
  pointer-events: none;
}

.site-shell {
  position: relative;
  isolation: isolate;
}

/* ==========================================================================
   TELA DE CARREGAMENTO (LOADING SYSTEM)
   ========================================================================== */
.loading-screen {
  position: fixed;
  inset: 0;
  z-index: 20;
  display: grid;
  place-items: center;
  background:
    linear-gradient(180deg, rgba(3, 5, 8, 0.98), rgba(5, 7, 10, 0.95)),
    var(--bg);
  transition: opacity 0.8s ease, visibility 0.8s ease;
}

.loading-screen.is-hidden {
  opacity: 0;
  visibility: hidden;
}

.loading-panel {
  width: min(420px, calc(100vw - 48px));
  padding: 32px;
  border: 1px solid var(--border-bright);
  border-radius: var(--radius);
  background: rgba(10, 14, 19, 0.88);
  box-shadow: var(--glow), var(--shadow);
}

.loading-label,
.loading-status {
  margin: 0;
  color: var(--muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.8rem;
}

.loading-bar {
  position: relative;
  height: 10px;
  margin: 20px 0 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
}

.loading-fill {
  display: block;
  height: 100%;
  width: 0;
  border-radius: inherit;
  background: linear-gradient(90deg, rgba(97, 218, 251, 0.25), var(--cyan-strong));
  animation: loading 2.2s cubic-bezier(0.19, 1, 0.22, 1) forwards;
}

@keyframes loading {
  from { width: 0; }
  to { width: 100%; }
}

/* ==========================================================================
   ELEMENTOS DE FUNDO (ATMOSPHERIC BACKGROUND)
   ========================================================================== */
#particles,
.background-grid,
.background-orb,
.background-noise {
  position: fixed;
  inset: 0;
}

.background-grid {
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: radial-gradient(circle at center, black 45%, transparent 85%);
  opacity: 0.3;
}

.background-orb {
  filter: blur(120px);
  opacity: 0.25;
}

.orb-left {
  background: rgba(97, 218, 251, 0.2);
  transform: translate(-20%, -15%);
}

.orb-right {
  background: rgba(255, 255, 255, 0.08);
  transform: translate(65%, 55%);
}

.background-noise {
  opacity: 0.08;
  background-image: radial-gradient(rgba(255, 255, 255, 0.55) 0.4px, transparent 0.8px);
  background-size: 18px 18px;
}

/* ==========================================================================
   NAVEGAÇÃO (TOPBAR)
   ========================================================================== */
.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  width: var(--container);
  margin: 0 auto;
  padding: 20px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: "Orbitron", sans-serif;
  letter-spacing: 0.06em;
}

.brand-mark {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 18px rgba(97, 218, 251, 0.7);
}

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

.nav {
  display: flex;
  gap: 24px;
  align-items: center;
  padding: 14px 18px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(9, 11, 15, 0.6);
}

.nav a {
  position: relative;
  color: var(--muted);
  font-size: 0.95rem;
  transition: color 0.3s ease;
}

.nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 100%;
  height: 1px;
  background: var(--cyan);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}

.nav a:hover,
.nav a.is-active {
  color: var(--text);
}

.nav a:hover::after,
.nav a.is-active::after {
  transform: scaleX(1);
}

.menu-toggle {
  display: none;
  border: 0;
  background: transparent;
  padding: 0;
}

.menu-toggle span {
  display: block;
  width: 28px;
  height: 2px;
  margin: 6px 0;
  border-radius: 999px;
  background: var(--text);
}

/* ==========================================================================
   ESTRUTURA DE SEÇÕES
   ========================================================================== */
.section {
  width: var(--container);
  margin: 0 auto;
  padding: 72px 0;
  position: relative;
}

.footer {
  width: var(--container);
  margin: 0 auto;
  padding: 0 0 36px;
}

.footer p {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
  text-align: center;
}

.hero {
  min-height: calc(100vh - 86px);
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.85fr);
  gap: 48px;
  align-items: center;
  padding-top: 48px;
}

.eyebrow,
.section-kicker,
.tag,
.project-status,
.contact-label,
.meta {
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.78rem;
}

/* ==========================================================================
   BANNER DE DESTAQUE — MNEMOSYNE-AI
   ========================================================================== */
.ai-highlight-banner {
  padding-top: 32px;
  padding-bottom: 32px;
}

.ai-banner-card {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 32px;
  align-items: center;
  padding: 28px 32px;
  border-radius: var(--radius);
  text-decoration: none;
  color: inherit;
  overflow: hidden;
  cursor: pointer;
  border: 1px solid transparent;
  background:
    linear-gradient(180deg, rgba(16, 20, 28, 0.75), rgba(9, 11, 16, 0.78)) padding-box,
    linear-gradient(135deg, rgba(97, 218, 251, 0.32), transparent 35%, rgba(255, 255, 255, 0.05)) border-box;
  backdrop-filter: blur(22px);
  box-shadow: var(--shadow);
  transition:
    transform 0.4s cubic-bezier(0.19, 1, 0.22, 1),
    box-shadow 0.4s ease,
    background 0.4s ease;
}

.ai-banner-card:hover {
  transform: translateY(-4px);
  box-shadow:
    0 0 0 1px rgba(97, 218, 251, 0.25),
    var(--glow),
    0 28px 80px rgba(0, 0, 0, 0.55);
}

.ai-banner-glow {
  position: absolute;
  inset: -40%;
  background: radial-gradient(
    circle at 20% 50%,
    rgba(97, 218, 251, 0.14),
    transparent 55%
  );
  pointer-events: none;
  animation: aiBannerGlow 7s ease-in-out infinite alternate;
  z-index: 0;
}

@keyframes aiBannerGlow {
  0%   { transform: translateX(-8%) scale(1);    opacity: 0.55; }
  100% { transform: translateX(10%)  scale(1.08); opacity: 1;    }
}

.ai-banner-card::before {
  content: "";
  position: absolute;
  left: -10%;
  right: -10%;
  height: 1px;
  top: 50%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(97, 218, 251, 0.35),
    transparent
  );
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
}

.ai-banner-card:hover::before {
  opacity: 1;
}

.ai-banner-avatar {
  position: relative;
  width: 88px;
  height: 88px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  z-index: 1;
  background:
    radial-gradient(circle at 30% 30%, rgba(97, 218, 251, 0.25), rgba(9, 12, 18, 0.9) 70%);
  border: 1px solid var(--border-bright);
  color: var(--cyan);
  font-size: 1.9rem;
  box-shadow:
    inset 0 0 20px rgba(97, 218, 251, 0.12),
    0 0 24px rgba(97, 218, 251, 0.18);
}

.ai-banner-avatar i {
  filter: drop-shadow(0 0 10px rgba(97, 218, 251, 0.55));
}

.ai-pulse-ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 1px solid rgba(97, 218, 251, 0.5);
  animation: aiPulse 2.4s ease-out infinite;
  pointer-events: none;
}

.ai-pulse-ring.delay {
  animation-delay: 1.2s;
}

@keyframes aiPulse {
  0%   { transform: scale(1);    opacity: 0.8; }
  80%  { opacity: 0.05; }
  100% { transform: scale(1.9);  opacity: 0;   }
}

.ai-banner-content {
  position: relative;
  z-index: 1;
  min-width: 0;
}

.ai-banner-tagline {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
  padding: 6px 12px;
  border: 1px solid var(--border-bright);
  border-radius: 999px;
  background: rgba(97, 218, 251, 0.06);
  font-family: "Orbitron", sans-serif;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  color: var(--silver);
  text-transform: uppercase;
}

.ai-live-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 10px rgba(97, 218, 251, 0.85);
  animation: aiBlink 1.6s ease-in-out infinite;
}

@keyframes aiBlink {
  0%, 100% { opacity: 1;   transform: scale(1);    }
  50%      { opacity: 0.35; transform: scale(0.85); }
}

.ai-banner-content h2 {
  margin: 0 0 10px;
  font-family: "Exo 2", sans-serif;
  font-weight: 700;
  font-size: clamp(1.4rem, 2.6vw, 2rem);
  line-height: 1.15;
  letter-spacing: -0.01em;
}

.ai-accent {
  background: linear-gradient(
    90deg,
    var(--cyan) 0%,
    var(--cyan-strong) 55%,
    #a5e9ff 100%
  );
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow: 0 0 32px rgba(97, 218, 251, 0.25);
}

.ai-banner-content p {
  margin: 0 0 16px;
  color: var(--muted);
  font-size: 0.98rem;
  line-height: 1.65;
  max-width: 60ch;
}

.ai-banner-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.ai-banner-tags li {
  padding: 6px 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.03);
  color: var(--silver);
  font-size: 0.82rem;
  letter-spacing: 0.03em;
  transition: border-color 0.3s ease, color 0.3s ease, background 0.3s ease;
}

.ai-banner-card:hover .ai-banner-tags li {
  border-color: rgba(97, 218, 251, 0.28);
  color: var(--text);
  background: rgba(97, 218, 251, 0.06);
}

.ai-banner-cta {
  display: flex;
  align-items: center;
  gap: 16px;
  position: relative;
  z-index: 1;
  flex-shrink: 0;
}

.ai-cta-label {
  font-family: "Orbitron", sans-serif;
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--silver);
  white-space: nowrap;
  transition: color 0.3s ease;
}

.ai-banner-card:hover .ai-cta-label {
  color: var(--text);
}

.ai-cta-arrow {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  border: 1px solid var(--border-bright);
  background:
    linear-gradient(135deg, rgba(16, 195, 255, 0.22), rgba(97, 218, 251, 0.08));
  color: var(--text);
  font-size: 1rem;
  box-shadow: var(--glow);
  transition:
    transform 0.4s cubic-bezier(0.19, 1, 0.22, 1),
    background 0.3s ease,
    border-color 0.3s ease;
}

.ai-banner-card:hover .ai-cta-arrow {
  transform: translateX(6px);
  border-color: var(--cyan);
  background:
    linear-gradient(135deg, rgba(16, 195, 255, 0.35), rgba(97, 218, 251, 0.18));
  box-shadow: 0 0 24px rgba(97, 218, 251, 0.35);
}

.ai-cta-arrow i {
  filter: drop-shadow(0 0 8px rgba(97, 218, 251, 0.45));
}

/* ==========================================================================
   RESPONSIVO BANNER AI
   ========================================================================== */
@media (max-width: 980px) {
  .ai-banner-card {
    grid-template-columns: auto 1fr;
    gap: 22px;
    padding: 24px;
  }

  .ai-banner-cta {
    grid-column: 1 / -1;
    justify-content: space-between;
    padding-top: 20px;
    margin-top: 4px;
    border-top: 1px solid var(--border);
  }
}

@media (max-width: 560px) {
  .ai-highlight-banner {
    padding-top: 20px;
    padding-bottom: 20px;
  }

  .ai-banner-card {
    padding: 22px;
    border-radius: 20px;
    gap: 18px;
  }

  .ai-banner-avatar {
    width: 64px;
    height: 64px;
    font-size: 1.35rem;
  }

  .ai-banner-content p {
    display: none;
  }

  .ai-banner-content h2 {
    font-size: 1.25rem;
  }

  .ai-cta-label {
    font-size: 0.7rem;
  }

  .ai-cta-arrow {
    width: 44px;
    height: 44px;
  }
}

/* ==========================================================================
   TIPOGRAFIA HERO E TÍTULOS
   ========================================================================== */
.hero h1,
.section-heading h2 {
  margin: 0;
  font-family: "Exo 2", sans-serif;
  font-weight: 700;
  line-height: 0.94;
}

.hero h1 {
  font-size: clamp(3.6rem, 11vw, 7.5rem);
  max-width: 8ch;
}

.hero-subtitle {
  max-width: 620px;
  margin: 18px 0 0;
  font-size: clamp(1.15rem, 2vw, 1.55rem);
  color: var(--silver);
  line-height: 1.45;
}

.hero-description,
.about-card p,
.timeline-item p,
.skill-card p,
.certificate-card p,
.formation-card p,
.project-card p {
  color: var(--muted);
  line-height: 1.75;
}

.certificate-extra {
  margin: 12px 0 0;
  color: var(--silver);
  font-size: 0.94rem;
  line-height: 1.6;
}

.hero-description {
  max-width: 620px;
  margin-top: 18px;
}

.hero-actions,
.project-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 32px;
}

/* ==========================================================================
   SISTEMA DE BOTÕES
   ========================================================================== */
.button {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 22px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 500;
  transition:
    transform 0.3s ease,
    border-color 0.3s ease,
    background 0.3s ease,
    box-shadow 0.3s ease;
}

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

.button-primary {
  background: linear-gradient(135deg, rgba(16, 195, 255, 0.18), rgba(97, 218, 251, 0.1));
  border-color: rgba(97, 218, 251, 0.35);
  box-shadow: var(--glow);
}

.button-secondary {
  background: rgba(255, 255, 255, 0.03);
  border-color: rgba(255, 255, 255, 0.08);
}

.button-ghost {
  background: transparent;
  border-color: rgba(97, 218, 251, 0.2);
}

.button:hover,
.inline-link:hover,
.contact-item:hover {
  box-shadow: 0 0 0 1px rgba(97, 218, 251, 0.18), 0 12px 40px rgba(16, 195, 255, 0.12);
}

/* ==========================================================================
   CARDS E COMPONENTES GLASSMORPHISM
   ========================================================================== */
.hero-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  padding: 0;
  margin: 40px 0 0;
  list-style: none;
}

.hero-metrics li,
.glass-card {
  border: 1px solid transparent;
  background:
    linear-gradient(180deg, rgba(16, 20, 28, 0.75), rgba(9, 11, 16, 0.78)) padding-box,
    linear-gradient(135deg, rgba(97, 218, 251, 0.22), transparent 35%, rgba(255, 255, 255, 0.05)) border-box;
  backdrop-filter: blur(22px);
  box-shadow: var(--shadow);
}

.hero-metrics li {
  padding: 18px;
  border-radius: var(--radius-sm);
}

.hero-metrics strong {
  display: block;
  margin-bottom: 8px;
  color: var(--cyan);
  font-family: "Orbitron", sans-serif;
  font-size: 1.05rem;
}

.hero-metrics span {
  color: var(--muted);
  line-height: 1.6;
  font-size: 0.92rem;
}

.hero-visual {
  display: grid;
  gap: 20px;
}

.portrait-frame,
.status-card,
.about-card,
.timeline-card,
.skill-card,
.featured-video-card,
.formation-card,
.certificate-card,
.project-card,
.contact-panel {
  border-radius: var(--radius);
}

.portrait-frame {
  position: relative;
  min-height: 540px;
  padding: 24px;
  border: 1px solid transparent;
  background:
    linear-gradient(180deg, rgba(14, 19, 26, 0.84), rgba(7, 9, 13, 0.95)) padding-box,
    linear-gradient(135deg, rgba(97, 218, 251, 0.32), transparent 35%, rgba(255, 255, 255, 0.08)) border-box,
    rgba(7, 9, 12, 0.88);
  overflow: hidden;
  box-shadow: var(--shadow), var(--glow);
}

.portrait-image {
  position: absolute;
  inset: 24px;
  width: calc(100% - 48px);
  height: calc(100% - 48px);
  object-fit: cover;
  object-position: center 28%;
  border-radius: calc(var(--radius) - 6px);
  filter: saturate(0.92) contrast(1.02) brightness(0.88);
}

.portrait-placeholder {
  display: grid;
  place-items: center;
  height: 100%;
  border: 1px dashed rgba(97, 218, 251, 0.26);
  border-radius: calc(var(--radius) - 6px);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.02), transparent),
    repeating-linear-gradient(
      180deg,
      rgba(255, 255, 255, 0.02) 0 1px,
      transparent 1px 24px
    );
  text-align: center;
}

.portrait-frame.has-image .portrait-placeholder {
  opacity: 0;
}

.portrait-placeholder span {
  display: block;
  font-family: "Orbitron", sans-serif;
  letter-spacing: 0.08em;
  color: var(--silver);
}

.portrait-placeholder small {
  margin-top: 10px;
  color: var(--muted);
}

.portrait-overlay {
  position: absolute;
  inset: 24px;
  border-radius: calc(var(--radius) - 6px);
  background:
    linear-gradient(180deg, rgba(5, 7, 10, 0.04), rgba(5, 7, 10, 0.35)),
    radial-gradient(circle at top right, rgba(97, 218, 251, 0.16), transparent 28%);
}

.portrait-badge {
  position: absolute;
  top: 18px;
  left: 18px;
  padding: 8px 12px;
  border: 1px solid rgba(97, 218, 251, 0.28);
  border-radius: 999px;
  background: rgba(8, 12, 18, 0.52);
  color: var(--silver);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  backdrop-filter: blur(10px);
}

.portrait-corner {
  position: absolute;
  width: 74px;
  height: 74px;
  border-color: rgba(97, 218, 251, 0.42);
  filter: drop-shadow(0 0 12px rgba(97, 218, 251, 0.18));
}

.portrait-corner-top {
  top: 16px;
  right: 16px;
  border-top: 1px solid;
  border-right: 1px solid;
}

.portrait-corner-bottom {
  left: 16px;
  bottom: 16px;
  border-left: 1px solid;
  border-bottom: 1px solid;
}

.scan-line {
  position: absolute;
  left: 12px;
  right: 12px;
  height: 100px;
  background: linear-gradient(180deg, transparent, rgba(97, 218, 251, 0.16), transparent);
  animation: scan 5s linear infinite;
}

@keyframes scan {
  from { top: -20%; }
  to { top: 110%; }
}

.status-card,
.about-card,
.timeline-card,
.skill-card,
.featured-video-card,
.formation-card,
.certificate-card,
.project-card,
.contact-panel {
  padding: 24px;
}

.status-card p {
  margin: 0 0 10px;
  color: var(--muted);
}

.status-card strong {
  font-size: 1.05rem;
  line-height: 1.6;
}

.section-heading {
  max-width: 760px;
  margin-bottom: 28px;
}

.section-heading h2 {
  margin-top: 12px;
  font-size: clamp(2rem, 5vw, 3.5rem);
  line-height: 1.05;
}

.about-layout,
.certificates-layout {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 22px;
}

/* ==========================================================================
   TIMELINE (TRAJETÓRIA)
   ========================================================================== */
.timeline-card {
  position: relative;
  overflow: hidden;
}

.timeline-line {
  position: absolute;
  left: 31px;
  top: 28px;
  bottom: 28px;
  width: 1px;
  background: linear-gradient(180deg, rgba(97, 218, 251, 0.45), rgba(255, 255, 255, 0.06));
}

.timeline-item {
  position: relative;
  display: flex;
  gap: 16px;
  margin-bottom: 22px;
}

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

.timeline-dot {
  position: relative;
  z-index: 1;
  flex: 0 0 14px;
  width: 14px;
  height: 14px;
  margin-top: 8px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 16px rgba(97, 218, 251, 0.6);
}

.card-grid {
  display: grid;
  gap: 20px;
}

.skills-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

/* ==========================================================================
   SISTEMA DE ÍCONES (SKILLS)
   ========================================================================== */
.icon-chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    margin-bottom: 16px;
    border-radius: 14px;
    background: rgba(97, 218, 251, 0.08);
    border: 1px solid var(--border-bright);
    font-size: 1.8rem;
    transition: all 0.4s cubic-bezier(0.19, 1, 0.22, 1);
}

.icon-chip-mosaico {
    display: flex;
    gap: 8px;
    margin-bottom: 16px;
}

.icon-square {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: rgba(97, 218, 251, 0.08);
    border: 1px solid var(--border-bright);
    font-size: 1.5rem;
    transition: all 0.4s cubic-bezier(0.19, 1, 0.22, 1);
}

.icon-chip i, 
.icon-square i {
    color: var(--cyan) !important;
    filter: drop-shadow(0 0 8px rgba(97, 218, 251, 0.3));
    transition: transform 0.3s ease;
}

.skill-card:hover .icon-chip {
    transform: translateY(-5px);
    background: rgba(97, 218, 251, 0.15);
    border-color: var(--cyan);
    box-shadow: 0 0 20px rgba(97, 218, 251, 0.2);
}

.skill-card:hover .icon-square {
    transform: translateY(-5px);
    background: rgba(97, 218, 251, 0.15);
    border-color: var(--cyan);
}

.skill-card:hover .icon-square:nth-child(1) { transition-delay: 0s; }
.skill-card:hover .icon-square:nth-child(2) { transition-delay: 0.05s; }
.skill-card:hover .icon-square:nth-child(3) { transition-delay: 0.1s; }

.skill-card:hover i {
    transform: scale(1.1) rotate(3deg);
}

.skill-card h3,
.certificate-card h3,
.formation-card h3,
.project-card h3 {
  margin: 18px 0 12px;
  font-size: 1.2rem;
}

/* ==========================================================================
   PORTFÓLIO E CERTIFICADOS
   ========================================================================== */
.certificates-grid,
.project-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.featured-video-grid {
  display: grid;
  gap: 24px;
  margin-bottom: 24px;
}


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

.inline-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 18px;
  color: var(--silver);
  transition: color 0.3s ease, box-shadow 0.3s ease;
}

.inline-link::after {
  content: "";
  width: 18px;
  height: 1px;
  background: currentColor;
}

.disabled-link {
  pointer-events: none;
  opacity: 0.55;
}

.project-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.project-stack {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 20px 0 0;
  padding: 0;
  list-style: none;
}

.project-stack li {
  padding: 8px 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  color: var(--silver);
  font-size: 0.9rem;
  background: rgba(255, 255, 255, 0.03);
}

/* ==========================================================================
   CONTATO
   ========================================================================== */
.contact-panel {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.contact-item {
  padding: 18px;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  background:
    linear-gradient(rgba(255, 255, 255, 0.02), rgba(255, 255, 255, 0.02)) padding-box,
    linear-gradient(135deg, rgba(97, 218, 251, 0.2), transparent 35%, rgba(255, 255, 255, 0.05)) border-box;
  transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
}

.contact-item:hover {
  transform: translateY(-4px);
  background:
    linear-gradient(rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.03)) padding-box,
    linear-gradient(135deg, rgba(97, 218, 251, 0.35), rgba(97, 218, 251, 0.08) 35%, rgba(255, 255, 255, 0.12)) border-box;
}

.contact-item strong {
  display: block;
  margin-top: 12px;
  font-size: 1rem;
}

/* ==========================================================================
   ANIMAÇÕES DE REVELAÇÃO (INTERSECTION OBSERVER)
   ========================================================================== */
[data-reveal] {
  opacity: 0;
  transform: translateY(28px);
  transition:
    opacity 0.8s cubic-bezier(0.19, 1, 0.22, 1),
    transform 0.8s cubic-bezier(0.19, 1, 0.22, 1);
}

[data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

.glass-card,
.hero-metrics li,
.button,
.contact-item,
.nav,
.portrait-frame {
  position: relative;
  overflow: hidden;
}

.glass-card::before,
.hero-metrics li::before,
.contact-item::before,
.portrait-frame::before {
  content: none;
}

/* ==========================================================================
   RESPONSIVIDADE GERAL
   ========================================================================== */
@media (max-width: 1080px) {
  .hero,
  .about-layout,
  .certificates-layout,
  .skills-grid,
  .project-grid,
  .contact-panel {
    grid-template-columns: 1fr 1fr;
  }

  .hero {
    min-height: auto;
  }
}

@media (max-width: 820px) {
  .topbar {
    padding: 18px 0;
  }

  .menu-toggle {
    display: block;
    position: relative;
    z-index: 11;
  }

  .nav {
    position: fixed;
    top: 78px;
    left: 24px;
    right: 24px;
    display: grid;
    gap: 16px;
    justify-items: start;
    padding: 24px;
    border-radius: 24px;
    transform: translateY(-10px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s ease;
  }

  .nav.is-open {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }

  .hero,
  .about-layout,
  .certificates-layout,
  .skills-grid,
  .certificates-grid,
  .project-grid,
  .contact-panel,
  .hero-metrics {
    grid-template-columns: 1fr;
  }

  .featured-video-card {
    grid-template-columns: 1fr;
  }

  .portrait-frame {
    min-height: 420px;
  }
}

/* ==========================================================================
   SEÇÃO CURRÍCULO
   ========================================================================== */
.curriculum {
  background: radial-gradient(circle at top right, rgba(97, 218, 251, 0.03), transparent 55%);
}

.cv-card {
  max-width: 720px;
  margin: 0 auto;
  padding: 40px;
  text-align: center;
}

.cv-header {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-bottom: 24px;
}

.cv-icon {
  font-size: 2.2rem;
  color: var(--cyan) !important;
  filter: drop-shadow(0 0 12px rgba(97, 218, 251, 0.4));
}

.cv-card h3 {
  margin: 0 0 8px;
  font-size: 1.6rem;
  font-weight: 600;
}

.cv-card .meta {
  margin-bottom: 24px;
}

.cv-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: center;
  margin: 32px 0;
}

.cv-download {
  min-width: 220px;
  background: 
    linear-gradient(135deg, rgba(97, 218, 251, 0.15), rgba(16, 195, 255, 0.08)),
    rgba(9, 12, 18, 0.8);
  border: 1px solid rgba(97, 218, 251, 0.4);
  color: var(--text) !important;
  font-weight: 600;
  backdrop-filter: blur(20px);
  box-shadow: 
    0 0 0 1px rgba(97, 218, 251, 0.25),
    var(--glow),
    var(--shadow);
}

.cv-download:hover {
  transform: translateY(-4px);
  border-color: var(--cyan-strong);
  background: 
    linear-gradient(135deg, rgba(97, 218, 251, 0.22), rgba(16, 195, 255, 0.12)),
    rgba(9, 12, 18, 0.9);
  box-shadow: 
    0 0 0 1px var(--cyan-strong),
    0 0 40px rgba(97, 218, 251, 0.5),
    0 20px 60px rgba(0, 0, 0, 0.5);
}

.cv-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 28px;
}

.cv-stats span {
  padding: 12px 16px;
  border: 1px solid rgba(97, 218, 251, 0.25);
  border-radius: 12px;
  background: rgba(97, 218, 251, 0.04);
  font-size: 0.92rem;
}

.cv-stats strong {
  color: var(--cyan);
  font-family: "Orbitron", sans-serif;
}

/* ==========================================================================
   AJUSTES FINAIS MOBILE
   ========================================================================== */
@media (max-width: 820px) {
  .cv-actions {
    flex-direction: column;
    align-items: center;
  }

  .cv-download {
    width: 100%;
    max-width: 320px;
  }

  .cv-stats {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  :root {
    --container: min(100vw - 28px, 1180px);
  }

  .section {
    padding: 56px 0;
  }

  .hero {
    padding-top: 20px;
  }

  .hero h1 {
    font-size: clamp(3rem, 18vw, 4.8rem);
  }

  .button,
  .contact-item,
  .status-card,
  .about-card,
  .timeline-card,
  .skill-card,
  .featured-video-card,
  .formation-card,
  .certificate-card,
  .project-card,
  .contact-panel,
  .cv-card {
    border-radius: 20px;
  }

  .cv-card {
    padding: 32px 24px;
  }
}