/* =========================================================
   Wgtsantos — Landing page vanilla (HTML + CSS + JS)
   Tailwind cobre utilitários; aqui ficam os efeitos criativos.
   ========================================================= */

:root {
  --accent: #7c3aed;
  --accent2: #06b6d4;
  --accent3: #f43f5e;

  /* Tema escuro (padrão) */
  --bg: #05050a;
  --surface: #0d0d16;
  --text-strong: #ffffff;
  --text-body: #e2e8f0;
  --text-soft: #cbd5e1;
  --text-muted: #94a3b8;
  --text-faint: #64748b;
  --surface-tint: rgba(255, 255, 255, 0.03);
  --surface-border: rgba(255, 255, 255, 0.06);
  --surface-border-strong: rgba(255, 255, 255, 0.15);
  --surface-border-loud: rgba(255, 255, 255, 0.28);
  --surface-line: rgba(255, 255, 255, 0.08);
  --hover-tint: rgba(255, 255, 255, 0.07);
  --nav-mobile-bg: rgba(5, 5, 10, 0.98);
  --noise-dot: rgba(255, 255, 255, 0.035);
}

/* Tema claro: forçado pelo seletor, ou "sistema" seguindo o SO */
@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]):not([data-theme="light"]) {
    --bg: #f5f6fb;
    --surface: #eceef4;
    --text-strong: #0f172a;
    --text-body: #1e293b;
    --text-soft: #334155;
    --text-muted: #64748b;
    --text-faint: #64748b;
    --surface-tint: rgba(15, 23, 42, 0.035);
    --surface-border: rgba(15, 23, 42, 0.09);
    --surface-border-strong: rgba(15, 23, 42, 0.15);
    --surface-border-loud: rgba(15, 23, 42, 0.28);
    --surface-line: rgba(15, 23, 42, 0.1);
    --hover-tint: rgba(15, 23, 42, 0.05);
    --nav-mobile-bg: rgba(255, 255, 255, 0.98);
    --noise-dot: rgba(15, 23, 42, 0.05);
  }
}

:root[data-theme="light"] {
  --bg: #f5f6fb;
  --surface: #eceef4;
  --text-strong: #0f172a;
  --text-body: #1e293b;
  --text-soft: #334155;
  --text-muted: #64748b;
  --text-faint: #64748b;
  --surface-tint: rgba(15, 23, 42, 0.035);
  --surface-border: rgba(15, 23, 42, 0.09);
  --surface-border-strong: rgba(15, 23, 42, 0.15);
  --surface-border-loud: rgba(15, 23, 42, 0.28);
  --surface-line: rgba(15, 23, 42, 0.1);
  --hover-tint: rgba(15, 23, 42, 0.05);
  --nav-mobile-bg: rgba(255, 255, 255, 0.98);
  --noise-dot: rgba(15, 23, 42, 0.05);
}

/* Só o body recebe a cor: se o <html> também tivesse background-color,
   o navegador deixaria de "propagar" a cor do body para o canvas raiz,
   e o body passaria a pintar sua própria caixa por cima dos elementos
   fixed com z-index negativo (partículas e parallax de código). */
body {
  background-color: var(--bg);
  transition: background-color 0.3s ease;
}

* {
  scrollbar-width: thin;
  scrollbar-color: var(--accent) transparent;
}

html {
  scroll-behavior: smooth;
}

body {
  cursor: none;
}

@media (max-width: 767px), (hover: none) {
  body {
    cursor: auto;
  }
  .cursor-dot,
  .cursor-ring {
    display: none;
  }
}

/* ---------------------------------------------------------
   Cursor customizado
   --------------------------------------------------------- */
.cursor-dot,
.cursor-ring {
  position: fixed;
  top: 0;
  left: 0;
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  will-change: transform;
}

.cursor-dot {
  width: 6px;
  height: 6px;
  background: var(--accent2);
}

.cursor-ring {
  width: 32px;
  height: 32px;
  border: 1px solid rgba(124, 58, 237, 0.6);
  transition: width 0.2s ease, height 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.cursor-ring.is-active {
  width: 54px;
  height: 54px;
  background: rgba(124, 58, 237, 0.12);
  border-color: var(--accent2);
}

/* ---------------------------------------------------------
   Splash screen
   --------------------------------------------------------- */
.splash {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: var(--bg);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.25rem;
  transition: opacity 0.6s ease, visibility 0.6s ease;
}

.splash.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.splash-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-family: "Space Grotesk", sans-serif;
  font-weight: 700;
  font-size: 1.5rem;
  color: var(--text-strong);
  letter-spacing: -0.02em;
  animation: splash-pulse 1.4s ease-in-out infinite;
}

@keyframes splash-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.6; transform: scale(0.97); }
}

.splash-bar {
  width: 160px;
  height: 3px;
  background: var(--surface-line);
  border-radius: 999px;
  overflow: hidden;
}

.splash-bar span {
  display: block;
  height: 100%;
  width: 40%;
  background: linear-gradient(90deg, var(--accent), var(--accent2));
  animation: splash-loading 1.1s ease-in-out infinite;
}

@keyframes splash-loading {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(350%); }
}

/* ---------------------------------------------------------
   Fundo de código com parallax (camadas atrás das partículas)
   --------------------------------------------------------- */
.code-parallax {
  position: fixed;
  inset: 0;
  z-index: -30;
  overflow: hidden;
  pointer-events: none;
}

.code-layer {
  position: absolute;
  inset: -20% -10%;
  background-repeat: repeat;
  background-position: 0 0;
}

.code-layer-1 {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Ctext x='14' y='54' font-family='Menlo,Consolas,monospace' font-size='42' fill='%237c3aed' fill-opacity='0.22'%3E%7B %7D%3C/text%3E%3Ctext x='138' y='150' font-family='Menlo,Consolas,monospace' font-size='34' fill='%2306b6d4' fill-opacity='0.2'%3E01%3C/text%3E%3Ctext x='40' y='220' font-family='Menlo,Consolas,monospace' font-size='38' fill='%23f43f5e' fill-opacity='0.11'%3E%3B%3C/text%3E%3C/svg%3E");
  background-size: 240px 240px;
}

.code-layer-2 {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='190' height='190'%3E%3Ctext x='10' y='42' font-family='Menlo,Consolas,monospace' font-size='26' fill='%2306b6d4' fill-opacity='0.24'%3E%26lt;/%26gt;%3C/text%3E%3Ctext x='102' y='104' font-family='Menlo,Consolas,monospace' font-size='24' fill='%237c3aed' fill-opacity='0.22'%3E=%26gt;%3C/text%3E%3Ctext x='32' y='164' font-family='Menlo,Consolas,monospace' font-size='24' fill='%23f43f5e' fill-opacity='0.15'%3E()%3C/text%3E%3C/svg%3E");
  background-size: 190px 190px;
}

.code-layer-3 {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='340' height='180'%3E%3Ctext x='10' y='34' font-family='Menlo,Consolas,monospace' font-size='16' fill='%2306b6d4' fill-opacity='0.26'%3Econst dev = true;%3C/text%3E%3Ctext x='46' y='98' font-family='Menlo,Consolas,monospace' font-size='16' fill='%237c3aed' fill-opacity='0.24'%3Efunction teach() %7B%3C/text%3E%3Ctext x='16' y='150' font-family='Menlo,Consolas,monospace' font-size='16' fill='%23f43f5e' fill-opacity='0.18'%3ESELECT * FROM devs;%3C/text%3E%3C/svg%3E");
  background-size: 340px 180px;
}

/* ---------------------------------------------------------
   Cores com opacidade que dependem do tema
   (o Tailwind não consegue aplicar /opacidade em cores que
   apontam para uma CSS var, então isso é feito à mão aqui)
   --------------------------------------------------------- */
.site-header {
  background-color: color-mix(in srgb, var(--bg) 60%, transparent);
  border-bottom: 1px solid var(--surface-border);
}

.site-footer {
  border-top: 1px solid var(--surface-border);
}

.section-alt {
  background-color: color-mix(in srgb, var(--surface) 40%, transparent);
}

/* ---------------------------------------------------------
   Fundo com ruído sutil
   --------------------------------------------------------- */
.bg-noise {
  background-image: radial-gradient(circle at 1px 1px, var(--noise-dot) 1px, transparent 0);
  background-size: 22px 22px;
}

/* ---------------------------------------------------------
   Barra de progresso de scroll
   --------------------------------------------------------- */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 0%;
  z-index: 50;
  background: linear-gradient(90deg, var(--accent), var(--accent2), var(--accent3));
  transition: width 0.1s linear;
}

/* ---------------------------------------------------------
   Marca (logo)
   --------------------------------------------------------- */
.brand-mark {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-strong);
  transition: opacity 0.25s ease;
}

.brand-mark:hover {
  opacity: 0.85;
}

.logo-icon {
  width: 40px;
  height: 23px;
  flex-shrink: 0;
  display: block;
}

.logo-icon-lg {
  width: 62px;
  height: 36px;
}

/* ---------------------------------------------------------
   Nav
   --------------------------------------------------------- */
.nav-link {
  position: relative;
  transition: color 0.25s ease;
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  height: 2px;
  width: 0%;
  background: linear-gradient(90deg, var(--accent), var(--accent2));
  transition: width 0.25s ease;
}

.nav-link:hover {
  color: var(--text-strong);
}

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

/* ---------------------------------------------------------
   Seletor de idioma
   --------------------------------------------------------- */
.lang-toggle {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 2px;
  padding: 3px;
  border: 1px solid var(--surface-border-strong);
  border-radius: 999px;
  background: var(--surface-tint);
  cursor: pointer;
  flex-shrink: 0;
  transition: border-color 0.25s ease, box-shadow 0.25s ease, transform 0.15s ease;
}

.lang-toggle:hover {
  border-color: var(--surface-border-loud);
  box-shadow: 0 0 0 4px rgba(124, 58, 237, 0.14), 0 6px 18px -6px rgba(6, 182, 212, 0.45);
}

.lang-toggle:active {
  transform: scale(0.93);
}

.lang-toggle::before {
  content: "";
  position: absolute;
  top: 3px;
  bottom: 3px;
  left: 3px;
  width: calc(50% - 3px);
  border-radius: 999px;
  background: linear-gradient(120deg, var(--accent), var(--accent2));
  box-shadow: 0 0 0 0 rgba(6, 182, 212, 0);
  transition: transform 0.45s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.4s ease;
  z-index: 0;
}

.lang-toggle.lang-en::before {
  transform: translateX(100%);
}

.lang-toggle.is-switching::before {
  box-shadow: 0 0 14px 3px rgba(6, 182, 212, 0.55);
}

.lang-toggle.is-switching {
  animation: lang-toggle-pulse 0.4s ease;
}

@keyframes lang-toggle-pulse {
  0% { transform: scale(1); }
  45% { transform: scale(1.1); }
  100% { transform: scale(1); }
}

.lang-toggle-option {
  position: relative;
  z-index: 1;
  padding: 0.3rem 0.65rem;
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  transition: color 0.3s ease, background-color 0.25s ease, transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
  pointer-events: none;
}

.lang-toggle:hover .lang-toggle-option:not(.is-active) {
  color: var(--text-body);
  background-color: var(--hover-tint);
}

.lang-toggle-option.is-active {
  transform: scale(1.06);
}

@media (prefers-reduced-motion: reduce) {
  .lang-toggle.is-switching {
    animation: none;
  }
}

.lang-toggle-option.is-active {
  color: #05050a;
}

/* ---------------------------------------------------------
   Seletor de tema (claro / escuro / sistema)
   --------------------------------------------------------- */
.theme-switcher {
  position: relative;
  flex-shrink: 0;
}

.theme-trigger {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 999px;
  border: 1px solid var(--surface-border-strong);
  background: var(--surface-tint);
  color: var(--text-body);
  cursor: pointer;
  transition: border-color 0.25s ease, box-shadow 0.25s ease, transform 0.15s ease;
}

.theme-trigger:hover {
  border-color: var(--surface-border-loud);
  box-shadow: 0 0 0 4px rgba(124, 58, 237, 0.14), 0 6px 18px -6px rgba(6, 182, 212, 0.45);
}

.theme-trigger:active {
  transform: scale(0.9);
}

.theme-trigger.is-switching {
  animation: lang-toggle-pulse 0.4s ease;
}

.theme-icon {
  position: absolute;
  width: 16px;
  height: 16px;
  opacity: 0;
  transform: scale(0.5) rotate(-40deg);
  transition: opacity 0.3s ease, transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.theme-trigger[data-active-icon="light"] .theme-icon-light,
.theme-trigger[data-active-icon="dark"] .theme-icon-dark,
.theme-trigger:not([data-active-icon]) .theme-icon-system,
.theme-trigger[data-active-icon="system"] .theme-icon-system {
  opacity: 1;
  transform: scale(1) rotate(0deg);
}

.theme-menu {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  min-width: 150px;
  padding: 6px;
  border-radius: 1rem;
  border: 1px solid var(--surface-border-strong);
  background: var(--nav-mobile-bg);
  backdrop-filter: blur(12px);
  box-shadow: 0 20px 40px -12px rgba(0, 0, 0, 0.5);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px) scale(0.96);
  transform-origin: top right;
  transition: opacity 0.2s ease, transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1), visibility 0.2s;
  z-index: 60;
}

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

.theme-menu-item {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  width: 100%;
  padding: 0.55rem 0.7rem;
  border-radius: 0.65rem;
  border: none;
  background: transparent;
  color: var(--text-muted);
  font-size: 0.82rem;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
  transition: color 0.2s ease, background-color 0.2s ease;
}

.theme-menu-item svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.theme-menu-item:hover {
  color: var(--text-strong);
  background-color: var(--hover-tint);
}

.theme-menu-item.is-active {
  color: var(--text-strong);
  background: linear-gradient(120deg, rgba(124, 58, 237, 0.18), rgba(6, 182, 212, 0.18));
}

@media (prefers-reduced-motion: reduce) {
  .theme-trigger.is-switching {
    animation: none;
  }
}

.burger-line {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--text-strong);
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

#menu-btn.is-open .burger-line:nth-child(1) {
  transform: translateY(6.5px) rotate(45deg);
}
#menu-btn.is-open .burger-line:nth-child(2) {
  opacity: 0;
}
#menu-btn.is-open .burger-line:nth-child(3) {
  transform: translateY(-6.5px) rotate(-45deg);
}

.nav-links.mobile-open {
  display: flex !important;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  flex-direction: column;
  align-items: flex-start;
  gap: 0;
  background: var(--nav-mobile-bg);
  border-bottom: 1px solid var(--surface-border);
  padding: 0.5rem 1.25rem 1.5rem;
}

.nav-links.mobile-open li {
  width: 100%;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--surface-border);
}

/* ---------------------------------------------------------
   Avatar (foto de perfil)
   --------------------------------------------------------- */
.avatar-wrap {
  display: flex;
  justify-content: center;
  margin-bottom: 1.75rem;
}

.avatar-ring {
  position: relative;
  width: 128px;
  height: 128px;
  border-radius: 50%;
  animation: avatar-float 4.5s ease-in-out infinite;
}

.avatar-ring::before {
  content: "";
  position: absolute;
  inset: -12px;
  border-radius: 50%;
  background: conic-gradient(from 0deg, var(--accent), var(--accent2), var(--accent3), var(--accent));
  filter: blur(20px);
  opacity: 0.5;
  animation: avatar-spin 6s linear infinite;
}

.avatar-ring::after {
  content: "";
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  background: conic-gradient(from 0deg, var(--accent), var(--accent2), var(--accent3), var(--accent));
  animation: avatar-spin 6s linear infinite;
}

.avatar-photo {
  position: absolute;
  inset: 4px;
  border-radius: 50%;
  overflow: hidden;
  background: var(--bg);
  z-index: 1;
  box-shadow: 0 8px 24px -6px rgba(0, 0, 0, 0.6);
}

.avatar-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

@keyframes avatar-spin {
  to { transform: rotate(360deg); }
}

@keyframes avatar-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

@media (prefers-reduced-motion: reduce) {
  .avatar-ring,
  .avatar-ring::before,
  .avatar-ring::after {
    animation: none;
  }
}

/* ---------------------------------------------------------
   Texto em gradiente animado
   --------------------------------------------------------- */
.gradient-text {
  background: linear-gradient(100deg, var(--accent2), var(--accent), var(--accent3), var(--accent2));
  background-size: 300% auto;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: gradient-flow 6s ease infinite;
}

@keyframes gradient-flow {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

.typewriter-cursor {
  color: var(--accent2);
  animation: blink 0.9s steps(1) infinite;
}

@keyframes blink {
  0%, 49% { opacity: 1; }
  50%, 100% { opacity: 0; }
}

/* ---------------------------------------------------------
   Reveal on scroll
   --------------------------------------------------------- */
.reveal {
  opacity: 0;
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.fade-up {
  transform: translateY(28px);
}

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

.delay-1 { transition-delay: 0.08s; }
.delay-2 { transition-delay: 0.16s; }
.delay-3 { transition-delay: 0.24s; }
.delay-4 { transition-delay: 0.32s; }
.delay-5 { transition-delay: 0.4s; }
.delay-6 { transition-delay: 0.48s; }

/* ---------------------------------------------------------
   Botões
   --------------------------------------------------------- */
.btn-primary,
.btn-ghost {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 1.75rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.btn-primary {
  color: white;
  background: linear-gradient(120deg, var(--accent), var(--accent2));
  background-size: 180% auto;
  box-shadow: 0 8px 30px -10px rgba(124, 58, 237, 0.6);
}

.btn-primary:hover {
  background-position: right center;
  transform: translateY(-2px);
  box-shadow: 0 12px 40px -8px rgba(6, 182, 212, 0.55);
}

.btn-ghost {
  color: var(--text-strong);
  border: 1px solid var(--surface-border-strong);
}

.btn-ghost:hover {
  border-color: var(--accent2);
  transform: translateY(-2px);
  background: rgba(6, 182, 212, 0.08);
}

/* ---------------------------------------------------------
   Scroll hint
   --------------------------------------------------------- */
.scroll-hint {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  width: 26px;
  height: 42px;
  border: 2px solid var(--surface-border-loud);
  border-radius: 999px;
}

.scroll-hint span {
  position: absolute;
  top: 6px;
  left: 50%;
  width: 4px;
  height: 8px;
  border-radius: 999px;
  background: var(--accent2);
  transform: translateX(-50%);
  animation: scroll-hint-move 1.6s ease infinite;
}

@keyframes scroll-hint-move {
  0% { top: 6px; opacity: 1; }
  70% { top: 22px; opacity: 0; }
  100% { top: 22px; opacity: 0; }
}

/* ---------------------------------------------------------
   Eyebrow label
   --------------------------------------------------------- */
.eyebrow {
  display: inline-block;
  font-size: 0.75rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--accent2);
  font-weight: 600;
}

/* ---------------------------------------------------------
   Timeline
   --------------------------------------------------------- */
.timeline {
  position: relative;
  border-left: 2px solid var(--surface-line);
  display: flex;
  flex-direction: column;
  gap: 2.75rem;
}

.timeline-item {
  position: relative;
  padding-left: 2rem;
}

.timeline-dot {
  position: absolute;
  left: -7px;
  top: 4px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--bg);
  border: 2px solid var(--accent2);
  box-shadow: 0 0 0 4px rgba(6, 182, 212, 0.12);
  transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.timeline-item:hover .timeline-dot {
  transform: scale(1.2);
  box-shadow: 0 0 0 6px rgba(124, 58, 237, 0.2);
  border-color: var(--accent);
}

.timeline-tag {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  background: rgba(124, 58, 237, 0.12);
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
}

/* ---------------------------------------------------------
   Skill cards (tilt 3D)
   --------------------------------------------------------- */
.skill-card {
  position: relative;
  padding: 1.5rem 1rem;
  border-radius: 1rem;
  background: var(--surface-tint);
  border: 1px solid var(--surface-border);
  text-align: center;
  transform-style: preserve-3d;
  transition: transform 0.25s ease, border-color 0.25s ease, background 0.25s ease;
  will-change: transform;
}

.skill-card:hover {
  border-color: rgba(124, 58, 237, 0.5);
  background: rgba(124, 58, 237, 0.06);
}

.skill-icon {
  display: block;
  font-size: 1.8rem;
  margin-bottom: 0.6rem;
  transform: translateZ(20px);
}

.skill-card h3 {
  font-family: "Space Grotesk", sans-serif;
  font-weight: 600;
  font-size: 0.85rem;
  color: var(--text-strong);
  transform: translateZ(15px);
}

/* ---------------------------------------------------------
   Badge de logo (WorldSkills) dentro do skill-card
   --------------------------------------------------------- */
.skill-card-logo .skill-icon-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  margin-bottom: 0.6rem;
  border-radius: 0.65rem;
  background: #ffffff;
  padding: 6px;
  transform: translateZ(20px);
}

.skill-card-logo .skill-icon-badge img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* ---------------------------------------------------------
   Carrossel de linguagens e ferramentas
   --------------------------------------------------------- */
.tech-carousel {
  position: relative;
  margin-top: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(to right, transparent, black 6%, black 94%, transparent);
  mask-image: linear-gradient(to right, transparent, black 6%, black 94%, transparent);
}

.tech-track {
  display: flex;
  width: max-content;
  gap: 0.85rem;
  will-change: transform;
}

.tech-track-a {
  animation: tech-scroll-left 34s linear infinite;
}

.tech-track-b {
  animation: tech-scroll-right 30s linear infinite;
}

.tech-carousel:hover .tech-track,
.tech-carousel:focus-within .tech-track {
  animation-play-state: paused;
}

@keyframes tech-scroll-left {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

@keyframes tech-scroll-right {
  from { transform: translateX(-50%); }
  to { transform: translateX(0); }
}

.tech-item {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-width: 96px;
  padding: 1rem 0.85rem;
  border-radius: 0.9rem;
  background: var(--surface-tint);
  border: 1px solid var(--surface-border);
  transition: transform 0.3s ease, border-color 0.3s ease, background 0.3s ease;
}

.tech-item img {
  width: 34px;
  height: 34px;
  object-fit: contain;
  filter: grayscale(65%) opacity(0.75);
  transition: filter 0.3s ease, transform 0.3s ease;
}

.tech-item span {
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--text-muted);
  white-space: nowrap;
  transition: color 0.3s ease;
}

.tech-item:hover {
  transform: translateY(-5px) scale(1.05);
  border-color: var(--accent2);
  background: rgba(6, 182, 212, 0.08);
  z-index: 1;
}

.tech-item:hover img {
  filter: grayscale(0%) opacity(1);
  transform: scale(1.1);
}

.tech-item:hover span {
  color: var(--text-strong);
}

@media (prefers-reduced-motion: reduce) {
  .tech-track-a,
  .tech-track-b {
    animation: none;
  }
}

/* ---------------------------------------------------------
   Social cards
   --------------------------------------------------------- */
.social-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
  padding: 1.5rem 1rem;
  border-radius: 1rem;
  background: var(--surface-tint);
  border: 1px solid var(--surface-border);
  color: var(--text-soft);
  font-size: 0.85rem;
  font-weight: 600;
  transition: transform 0.25s ease, border-color 0.25s ease, color 0.25s ease, background 0.25s ease;
}

.social-card svg {
  width: 26px;
  height: 26px;
  transition: transform 0.25s ease;
}

.social-card:hover {
  color: var(--text-strong);
  border-color: var(--accent2);
  background: rgba(6, 182, 212, 0.08);
}

.social-card:hover svg {
  transform: scale(1.15) rotate(-6deg);
  color: var(--accent2);
}

/* ---------------------------------------------------------
   Magnetic buttons (JS aplica translate via inline style)
   --------------------------------------------------------- */
.magnetic {
  will-change: transform;
}

/* ---------------------------------------------------------
   Responsive tweaks
   --------------------------------------------------------- */
@media (min-width: 640px) {
  .nav-links {
    position: static;
    background: transparent;
    border: none;
    padding: 0;
  }
}
