/* ===== Reset mínimo ===== */
*, *::before, *::after {
  box-sizing: border-box;
}

/* Hide mobile-only elements on desktop */
.mobile-close-btn,
.brand-mobile {
  display: none !important;
}
html:focus-within {
  scroll-behavior: smooth;
}
html {
  font-size: 18px; /* Increased from default 16px for better portfolio readability */
}
body {
  margin: 0;
  font-family: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, Ubuntu, Cantarell, Noto Sans, Helvetica, Arial, sans-serif;
  line-height: 1.65; /* Slightly increased for better readability */
  font-size: 1rem; /* 18px based on html root */
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img {
  max-width: 100%;
  height: auto;
  width: auto;
  display: block;
}
a {
  color: inherit;
  text-decoration: none;
}

/* ===== Modern Design Tokens ===== */
:root {
  /* Premium Dark Color Palette */
  --bg: #0a0a0f;
  --bg-secondary: #12121a;
  --surface: rgba(20, 20, 30, 0.8);
  --glass: rgba(255, 255, 255, 0.03);
  --glass-strong: rgba(255, 255, 255, 0.08);
  --glass-border: rgba(255, 255, 255, 0.1);
  --glass-border-strong: rgba(255, 255, 255, 0.18);
  
  /* Text Colors */
  --text: #f0f0f5;
  --text-secondary: #a8adc6;
  --muted: #6b7280;
  
  /* Premium Accent Gradients */
  --accent: #667eea;
  --accent-2: #00d4ff;
  --accent-3: #7c3aed;
  --gradient-primary: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  --gradient-accent: linear-gradient(135deg, #00d4ff 0%, #7c3aed 100%);
  --gradient-subtle: linear-gradient(135deg, rgba(102, 126, 234, 0.15) 0%, rgba(124, 58, 237, 0.15) 100%);
  
  /* Cards & Surfaces */
  --card: rgba(20, 20, 30, 0.6);
  --card-hover: rgba(30, 30, 45, 0.8);
  --border: rgba(255, 255, 255, 0.08);
  --border-hover: rgba(255, 255, 255, 0.15);
  
  /* Shadows */
  --shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  --shadow-lg: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
  --shadow-glow: 0 0 40px rgba(102, 126, 234, 0.2);
  --shadow-card: 0 8px 32px rgba(0, 0, 0, 0.3);
  
  /* Spacing & Sizing */
  --radius: 16px;
  --radius-sm: 8px;
  --radius-lg: 24px;
  --radius-xl: 32px;
  --maxw: 1200px;
  
  /* Typography */
  --font-heading: 'Space Grotesk', system-ui, sans-serif;
  --font-body: 'Inter', system-ui, sans-serif;
  
  /* Transitions */
  --transition-fast: 0.15s ease;
  --transition-base: 0.25s ease;
  --transition-slow: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-bounce: 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* Modo claro - Modern Light Theme */
/* Modo claro - Modern Light Theme */
.light {
  /* Original Bright Light Mode (Commented) */
  /* --bg: #f8fafc; */
  /* --bg-secondary: #f1f5f9; */
  /* --accent: #667eea; */
  /* --gradient-primary: linear-gradient(135deg, #667eea 0%, #764ba2 100%); */
  
  /* Relax Beach Vibe Mode */
  --bg: #fffbf0; /* Warm sunny cream */
  --bg-secondary: #f4ecd8; /* Warm sand */
  --surface: rgba(255, 252, 240, 0.9);
  
  --glass: rgba(255, 252, 240, 0.7);
  --glass-strong: rgba(255, 252, 240, 0.9);
  --glass-border: rgba(210, 180, 140, 0.2); /* Tan border */
  --glass-border-strong: rgba(210, 180, 140, 0.4);
  
  --text: #3e3832; /* Relaxed dark brown/grey */
  --text-secondary: #706558;
  --muted: #a89f91;
  
  /* Beach Gradient Accents */
  --accent: #f59e0b; /* Golden Yellow */
  --accent-2: #10b981; /* Sea Green */
  --accent-3: #ef4444; /* Sunset Red */
  
  --gradient-primary: linear-gradient(135deg, #f59e0b 0%, #ef4444 100%); /* Sunrise */
  --gradient-accent: linear-gradient(135deg, #10b981 0%, #f59e0b 100%); /* Palm & Sand */
  --gradient-subtle: linear-gradient(135deg, rgba(245, 158, 11, 0.15) 0%, rgba(239, 68, 68, 0.15) 100%);

  --card: rgba(255, 252, 240, 0.8);
  --card-hover: rgba(255, 255, 255, 0.95);
  --border: rgba(210, 180, 140, 0.15);
  --border-hover: rgba(210, 180, 140, 0.3);
  
  --shadow: 0 4px 20px rgba(62, 56, 50, 0.08);
  --shadow-lg: 0 25px 50px -12px rgba(62, 56, 50, 0.15);
  --shadow-glow: 0 0 40px rgba(245, 158, 11, 0.2);
  --shadow-card: 0 8px 32px rgba(62, 56, 50, 0.08);
}

body {
  background: var(--bg);
  color: var(--text);
  font-size: 1rem;
  font-family: var(--font-body);
}

/* Subtle animated gradient background */
body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
    radial-gradient(ellipse 80% 50% at 20% 40%, rgba(102, 126, 234, 0.12) 0%, transparent 50%),
    radial-gradient(ellipse 60% 40% at 80% 60%, rgba(124, 58, 237, 0.08) 0%, transparent 50%);
  pointer-events: none;
  z-index: -1;
}

body.light::before {
  background: 
    radial-gradient(ellipse 80% 50% at 20% 40%, rgba(102, 126, 234, 0.06) 0%, transparent 50%),
    radial-gradient(ellipse 60% 40% at 80% 60%, rgba(124, 58, 237, 0.04) 0%, transparent 50%);
}

/* ===== Floating Orbs (Static for Performance) ===== */
.orb {
  position: fixed;
  border-radius: 50%;
  pointer-events: none;
  z-index: -1;
  filter: blur(60px);
  opacity: 0.4;
  /* Animation disabled for performance */
}

.orb-1 {
  width: 400px;
  height: 400px;
  background: linear-gradient(135deg, rgba(102, 126, 234, 0.4), rgba(124, 58, 237, 0.3));
  top: 10%;
  left: -10%;
}

.orb-2 {
  width: 300px;
  height: 300px;
  background: linear-gradient(135deg, rgba(0, 212, 255, 0.3), rgba(102, 126, 234, 0.2));
  top: 60%;
  right: -5%;
}

.orb-3 {
  width: 250px;
  height: 250px;
  background: linear-gradient(135deg, rgba(124, 58, 237, 0.3), rgba(236, 72, 153, 0.2));
  bottom: 10%;
  left: 50%;
}

body.light .orb {
  opacity: 0.3;
}

@keyframes orbFloat {
  0%, 100% {
    transform: translate(0, 0) scale(1);
  }
  25% {
    transform: translate(30px, -30px) scale(1.05);
  }
  50% {
    transform: translate(-20px, 20px) scale(0.95);
  }
  75% {
    transform: translate(20px, 30px) scale(1.02);
  }
}

/* ===== Scroll Reveal Animation System ===== */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.35s ease-out,
              transform 0.35s ease-out;
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

/* Fade from left */
.reveal-left {
  opacity: 0;
  transform: translateX(-30px);
  transition: opacity 0.35s ease-out,
              transform 0.35s ease-out;
}

.reveal-left.active {
  opacity: 1;
  transform: translateX(0);
}

/* Fade from right */
.reveal-right {
  opacity: 0;
  transform: translateX(30px);
  transition: opacity 0.35s ease-out,
              transform 0.35s ease-out;
}

.reveal-right.active {
  opacity: 1;
  transform: translateX(0);
}

/* Scale up reveal */
.reveal-scale {
  opacity: 0;
  transform: scale(0.95);
  transition: opacity 0.35s ease-out,
              transform 0.35s ease-out;
}

.reveal-scale.active {
  opacity: 1;
  transform: scale(1);
}

/* Staggered reveal delays for children */
.stagger-1 { transition-delay: 0.05s; }
.stagger-2 { transition-delay: 0.1s; }
.stagger-3 { transition-delay: 0.15s; }
.stagger-4 { transition-delay: 0.2s; }
.stagger-5 { transition-delay: 0.25s; }
.stagger-6 { transition-delay: 0.3s; }

/* ===== Enhanced Section Animations ===== */
section {
  position: relative;
}

section h2 {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.35s ease-out,
              transform 0.35s ease-out;
}

section h2.animate-in {
  opacity: 1;
  transform: translateY(0);
}

/* Universal animate-in class for JS-triggered reveals */
.projeto-card {
  opacity: 0;
  transform: translateY(25px);
  transition: opacity 0.3s ease-out,
              transform 0.3s ease-out,
              box-shadow 0.25s ease-out;
  position: relative;
  z-index: 1;
}

.projeto-card.animate-in {
  opacity: 1;
  transform: translateY(0);
}

/* Animated underline for section headers */
section h2::after {
  content: '';
  display: block;
  width: 0;
  height: 3px;
  margin-top: 0.5rem;
  background: var(--gradient-primary);
  border-radius: 2px;
  transition: width 0.3s ease-out 0.15s;
}

section h2.animate-in::after {
  width: 60px;
}

/* Card hover micro-interactions */
.skill,
.experience-card {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.3s ease-out,
              transform 0.3s ease-out,
              box-shadow 0.25s ease-out;
  position: relative;
  z-index: 1;
}

.skill.animate-in,
.experience-card.animate-in {
  opacity: 1;
  transform: translateY(0);
}

.projeto-card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 20px 40px -12px rgba(0, 0, 0, 0.3);
}

.skill:hover {
  transform: translateY(-4px);
}

/* Pulse animation for interactive elements */
@keyframes pulse {
  0%, 100% {
    box-shadow: 0 0 0 0 rgba(102, 126, 234, 0.4);
  }
  50% {
    box-shadow: 0 0 0 15px rgba(102, 126, 234, 0);
  }
}

.btn.primary:focus {
  animation: pulse 1.5s infinite;
}

/* ===== ANIMATION STYLES ===== */

/* Typewriter cursor */
.typewriter-cursor {
  display: inline-block;
  font-weight: 300;
  color: var(--accent);
  animation: blink 0.8s infinite;
  margin-left: 2px;
  transition: opacity 0.3s ease;
}

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

/* Text shimmer effect */
@keyframes shimmer {
  0% {
    background-position: -200% center;
  }
  100% {
    background-position: 200% center;
  }
}

.shimmer-text {
  background: linear-gradient(
    90deg,
    var(--text) 0%,
    var(--accent) 25%,
    var(--accent-2) 50%,
    var(--accent) 75%,
    var(--text) 100%
  );
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: shimmer 3s linear infinite;
}

/* Glow effect on focus */
.glow-on-hover {
  position: relative;
  overflow: hidden;
}

.glow-on-hover::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(102, 126, 234, 0.3) 0%, transparent 60%);
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
}

.glow-on-hover:hover::before {
  opacity: 1;
}

/* ===== Layout ===== */
.container {
  width: min(100% - 2rem, var(--maxw));
  margin-inline: auto;
}
.grid {
  display: grid;
  gap: 1.25rem;
}

/* ===== Header - Modern Glassmorphism ===== */
header {
  position: sticky;
  top: 0;
  z-index: 10000;
  background: var(--glass);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid var(--glass-border);
  transition: var(--transition-base);
}

body.light header {
  background: rgba(255, 255, 255, 0.7);
  border-bottom: 1px solid var(--glass-border);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 0;
  gap: 1rem;
}

.brand {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1.1rem;
  letter-spacing: -0.01em;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  flex-wrap: nowrap;
}

.nav a {
  padding: 0.5rem 0.85rem;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: var(--transition-base);
}

.nav a:hover {
  color: var(--text);
  background: var(--glass-strong);
}
/* ==========================
   Seção #sobre
   ========================== */
/* ===== Seção #sobre ===== */
#sobre {
  margin: 2rem auto;
  max-width: var(--maxw); /* Use a variável de max-width para consistência */
  padding: 0 1rem;
}

/* Container geral do conteúdo na seção Sobre */
.sobre-content {
  display: flex;
  align-items: center;
  gap: 2rem;
  flex-direction: column;
}

.profile {
  display: block;
  border-radius: 70%;
  width: auto;            /* ou % do container */
  height: 20rem;
  min-height: 500px;
  transition: transform 0.5s ease, filter 0.5s ease;
  /* Glow fixo */
  box-shadow: 0 0 10px #0ff, 0 0 20px #0ff, 0 0 30px #0ff;

  /* Garante que o glow fique visível fora do elemento */
  position: relative;
}
body:not(.light) .profile {
animation: neonPulseDark 3s infinite alternate;
}
body.light .profile {
  animation: neonPulseLight 3s infinite alternate;
}
/* Glow animado pulsante */
@keyframes neonPulseDark {
  0%   { filter: drop-shadow(0 0 10px #0ff) drop-shadow(0 0 20px #0ff); }
  50%  { filter: drop-shadow(0 0 20px #0ff) drop-shadow(0 0 40px #0ff); }
  100% { filter: drop-shadow(0 0 10px #0ff) drop-shadow(0 0 20px #0ff); }
}
@keyframes neonPulseLight {
 0%   { filter: drop-shadow(0 0 10px #111) drop-shadow(0 0 20px #111); }
  50%  { filter: drop-shadow(0 0 20px #111) drop-shadow(0 0 40px #111); }
  100% { filter: drop-shadow(0 0 10px #111) drop-shadow(0 0 20px #111); }
}

body.light .warning{
  color: #ffffff;
  margin-left: 8px;
}
.warning{
  color: #000000;
  margin-left: 8px;
}
/* Esconde a versão resumida quando o carrossel estiver visível */
.trajetoria-resumida {
  transition: opacity 0.4s ease;
  margin-top: 1rem;
}

/* Container do carrossel */
.carousel-container {
  flex: 1; /* Faz com que o container do carrossel ocupe o espaço disponível */
  width: 100%; /* Garante que ocupe a largura total disponível no seu flex container */
  margin-top: 1rem; /* Espaçamento acima do carrossel */
}

/* Estilização do carrossel (Owl Carousel) */
.owl-carousel .item {
  padding: 1rem; /* Espaçamento interno para cada item do carrossel */
  /* Ajuste na linha azul e bordas: */
  border-left: none; /* Remove a borda esquerda padrão, caso haja */
  text-align: justify;
  line-height: 1.7;
  color: var(--text);
}

/* Removemos a borda esquerda padrão dos itens do carrossel, que pode ser a causa da linha azul */
.owl-carousel .item p {
  margin-bottom: 1.2rem; /* Adiciona espaço entre os parágrafos dentro do item */
}

/* Esconde o último margin-bottom para evitar espaço extra no final */
.owl-carousel .item p:last-child {
  margin-bottom: 0;
}

/* Container dos pontos de navegação */
.owl-theme .owl-dots {
  text-align: center;
  margin-top: 1rem;
}

/* Estilo geral dos pontos (inativos) */
.owl-theme .owl-dots .owl-dot span {
  width: 12px;
  height: 12px;
  margin: 5px 7px;
  background: rgba(255, 255, 255, 0.4); /* Ponto branco translúcido no modo escuro */
  border-radius: 50%;
  display: block;
  transition: opacity 0.2s ease;
}

/* Estilo do ponto ativo */
.owl-theme .owl-dots .owl-dot.active span {
  background: #ffffff; /* Ponto branco sólido no modo escuro */
}

/* Estilos para o modo claro */
body.light .owl-theme .owl-dots .owl-dot span {
  background: rgba(0, 51, 58, 0.4); /* Ponto azul translúcido no modo claro */
}

body.light .owl-theme .owl-dots .owl-dot.active span {
  background: #00333a; /* Ponto azul sólido no modo claro */
}

.owl-theme .owl-dots .owl-dot:hover span {
  background: #ffffff; /* Cor de hover para modo escuro */
}

body.light .owl-theme .owl-dots .owl-dot:hover span {
  background: #00333a; /* Cor de hover para modo claro */
}

/* Botão de alternar trajetória */
button#toggle-trajetoria {
  padding: 12px 24px;
  font-size: 1rem;
  font-weight: 600;
  background-color: transparent;
  border-radius: 5px;
  cursor: pointer;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: all 0.3s ease;
  margin-top: 1rem;
}

/* Estilos do botão para light/dark mode continuam os mesmos */
body.light button#toggle-trajetoria {
  color: #00333a;
  border: 2px solid #00333a;
}
body.light button#toggle-trajetoria:hover {
  background-color: #00333a;
  color: #ffffff;
  transform: translateY(-2px);
}

body:not(.light) button#toggle-trajetoria {
  color: #ffffff;
  border: 2px solid #ffffff;
}
body:not(.light) button#toggle-trajetoria:hover {
  background-color: #ffffff;
  color: #00333a;
  transform: translateY(-2px);
}
.profile {
  height: 17rem;
  transition: transform 0.3s ease; /* deixa a animação suave */
}

.profile:hover {
  transform: scale(1.2); /* aumenta a imagem */
}
.tts-player {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(0, 0, 0, 0.2);
  border-radius: 12px;
  padding: 6px 10px;
  margin-top: 6px;
}

/* Botões principais: play, repeat e toggle */
.tts-button,
.tts-repeat,
.tts-toggle {
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  border: none;
  background: transparent;
  cursor: pointer;
  transition: all 0.2s ease;
}

/* Tema escuro */
body:not(.light) .tts-button,
body:not(.light) .tts-repeat,
body:not(.light) .tts-toggle {
  color: #f1f1f1;
}
body:not(.light) .tts-button:hover,
body:not(.light) .tts-repeat:hover,
body:not(.light) .tts-toggle:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #00c3ff;
}

/* Tema claro */
body.light .tts-button,
body.light .tts-repeat,
body.light .tts-toggle {
  color: #222;
}
body.light .tts-button:hover,
body.light .tts-repeat:hover,
body.light .tts-toggle:hover {
  background: rgba(0, 0, 0, 0.08);
  color: #0077ff;
}

/* Ícones dentro dos botões */
.tts-button i,
.tts-repeat i,
.tts-toggle i {
  pointer-events: none;
  font-size: 1rem; /* mesmo tamanho do repeat */
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}
/* Botão play/stop igual aos outros */
.tts-play {
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  border: none;
  background: transparent;
  cursor: pointer;
  transition: all 0.2s ease;
}

/* Tema escuro */
body:not(.light) .tts-play {
  color: #f1f1f1;
}
body:not(.light) .tts-play:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #00c3ff;
}

/* Tema claro */
body.light .tts-play {
  color: #222;
}
body.light .tts-play:hover {
  background: rgba(0, 0, 0, 0.08);
  color: #0077ff;
}

/* Ícone do play/stop */
.tts-play i {
  pointer-events: none;
  font-size: 1rem;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Barra de progresso */
.tts-progress {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.tts-seek {
  width: 100%;
  -webkit-appearance: none;
  appearance: none;
  height: 4px;
  border-radius: 4px;
  background: #aaa; /* cor da barra vazia */
  cursor: pointer;
}

.tts-seek::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #00c3ff; /* ponto do áudio */
  cursor: pointer;
  position: relative;
  z-index: 2;
}

body.light .tts-seek::-webkit-slider-thumb {
  background: #0077ff;
}

/* Para Firefox */
.tts-seek::-moz-range-thumb {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #00c3ff;
  cursor: pointer;
}
body.light .tts-seek::-moz-range-thumb {
  background: #0077ff;
}


.tts-time {
  font-size: 0.8rem;
  color: inherit;
}



/* Responsividade */
@media (max-width: 768px) {
  .sobre-content {
    flex-direction: column;
    gap: 1.5rem;
  }
  .trajetoria-resumida { /* Ajuste para a versão resumida também */
    font-size: 0.95rem;
  }
  button#toggle-trajetoria {
    font-size: 0.95rem;
    padding: 8px 16px;
  }
}
.nav a {
  padding: .5rem .75rem;
  border-radius: 10px;
}
.nav a:hover {
  background: var(--card);
}
.nav-actions {
  display: flex;
  align-items: center;   /* mantém itens alinhados verticalmente */
  gap: .5rem;            /* espaçamento entre itens */
  flex-wrap: nowrap;      /* evita quebra de linha */
}
.nav-actions .menu-icon,
/* Only style the dropdown trigger, not links inside dropdown-content */
.nav-actions .dropdown > a {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}

.nav-actions .dropdown {
  position: relative;
  display: inline-block;
}

/* ===== DROPDOWN CONTAINER ===== */
.nav-actions .dropdown .dropdown-content {
  display: flex;
  flex-direction: column;
  position: absolute;
  top: 100%;
  left: 0;
  width: max-content;
  min-width: 280px;
  background: #ffffff;
  border-radius: 14px;
  box-shadow:
    0 0 0 2px rgba(139, 92, 246, 0.5),
    0 0 0 4px rgba(236, 72, 153, 0.3),
    0 25px 50px rgba(0, 0, 0, 0.5);
  padding: 0;
  opacity: 0;
  transform: translateY(-10px) scale(0.95);
  pointer-events: none;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 1000;
  overflow: hidden;
}

.nav-actions .dropdown .dropdown-content.show {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

/* ===== DROPDOWN LINKS ===== */
.nav-actions .dropdown .dropdown-content a {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 14px 18px;
  margin: 0;
  box-sizing: border-box;
  border-radius: 0;
  color: #1a1a2e;
  font-size: 0.95rem;
  font-weight: 500;
  text-decoration: none;
  background: transparent;
  border: none;
  cursor: pointer;
  transition: background 0.15s ease;
  white-space: nowrap;
}

/* Rounded corners on first and last clickable items */
.nav-actions .dropdown .dropdown-content a:first-of-type {
  border-radius: 14px 14px 0 0;
}

/* When warning exists, last link has no bottom radius */
/* When no warning, last link gets bottom radius */
.nav-actions .dropdown .dropdown-content a:last-child {
  border-radius: 0 0 14px 14px;
}

.nav-actions .dropdown .dropdown-content a:first-of-type:last-child {
  border-radius: 14px;
}

.nav-actions .dropdown .dropdown-content a:hover {
  background: rgba(139, 92, 246, 0.12);
}

.dropdown-content .icon {
  width: 28px;
  height: 28px;
  object-fit: contain;
  flex-shrink: 0;
  transition: transform 0.2s ease;
}

.dropdown-content a:hover .icon {
  transform: scale(1.1);
}

/* Warning text */
.dropdown-content .warning {
  padding: 10px 18px;
  margin: 0;
  font-size: 0.75rem;
  color: #999;
  background: rgba(0, 0, 0, 0.04);
  border-radius: 0 0 14px 14px;
  line-height: 1.4;
  cursor: default;
  border-top: 1px solid rgba(0, 0, 0, 0.06);
}

/* ===== LIGHT MODE DROPDOWN ===== */
body.light .nav-actions .dropdown .dropdown-content {
  background: rgba(10, 10, 20, 0.97);
  backdrop-filter: blur(20px);
  border-radius: 14px;
  box-shadow:
    0 0 0 2px rgba(251, 191, 36, 0.7),
    0 25px 50px rgba(0, 0, 0, 0.5);
  padding: 0;
}

body.light .nav-actions .dropdown .dropdown-content a {
  color: #f5f5f7;
  background: transparent;
  border: none;
  border-radius: 0;
  margin: 0;
  width: 100%;
  padding: 14px 18px;
  cursor: pointer;
  transition: background 0.15s ease;
  white-space: nowrap;
}

body.light .nav-actions .dropdown .dropdown-content a:first-of-type {
  border-radius: 14px 14px 0 0;
}

body.light .nav-actions .dropdown .dropdown-content a:last-child {
  border-radius: 0 0 14px 14px;
}

body.light .nav-actions .dropdown .dropdown-content a:hover {
  background: rgba(251, 191, 36, 0.15);
}

body.light .dropdown-content .icon {
  width: 28px;
  height: 28px;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
  transition: transform 0.2s ease;
}

body.light .nav-actions .dropdown .dropdown-content a:hover .icon {
  transform: scale(1.1);
}

body.light .dropdown-content .warning {
  padding: 10px 18px;
  margin: 0;
  font-size: 0.75rem;
  color: #9ca3af;
  line-height: 1.4;
  text-align: center;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 0 0 14px 14px;
}

.skill-header span {
  display: inline-flex;
  align-items: center; /* centraliza ícone e texto na linha */
  gap: 6px;           /* espaço entre ícone e texto */
  
}

.skill-icon {
  display: inline-block !important; /* força inline-block */
  width: 35px;
  height: 35px;
  border-radius: 15%;
  gap: 1.5rem;              /* sem espaçamento extra */
  vertical-align: middle; /* alinha com o meio do texto */
  max-width: none; 
}
.skill-title {
  display: inline-flex;
  align-items: center; /* alinha verticalmente o ícone com o texto */
  gap: 1rem;              /* sem espaçamento extra */
}
h3 {
  margin: 0;
  padding: 0;
}



/* Hover suave e mais perceptível */

/* Late overrides removed - dropdown styles consolidated above */


/* Skip link (acessibilidade) */
.skip-link {
  position: absolute;
  left: -999px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.skip-link:focus {
  position: static;
  width: auto;
  height: auto;
  padding: .5rem .75rem; 
  background: var(--accent);
  color: #fff;
  border-radius: 8px;
}

/* ===== Hero - Modern Premium ===== */
.hero {
  padding: 4rem 0 3rem;
  position: relative;
  /* overflow: hidden; Removed to allow tooltips to show */
  z-index: 10;
}

/* ===== Page Entrance Animations ===== */
.hero h1 {
  font-family: var(--font-heading);
  font-size: clamp(2.5rem, 8vw, 4.5rem);
  font-weight: 700;
  line-height: 1.1;
  margin: 0 0 1rem;
  letter-spacing: -0.02em;
  /* Entrance animation */
  opacity: 0;
  transform: translateY(30px);
  animation: slideInUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.2s forwards;
}

/* ===== Hero Tags - Premium Styled ===== */
.hero-tags {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
  margin: 0 0 2rem;
  opacity: 0;
  transform: translateY(20px);
  animation: slideInUp 0.7s cubic-bezier(0.16, 1, 0.3, 1) 0.5s forwards;
  position: relative;
  z-index: 100; /* Ensure this container is above the actions container */
}

.hero .actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 1.5rem;
  /* Entrance animation - more delayed */
  opacity: 0;
  transform: translateY(20px);
  animation: slideInUp 0.7s cubic-bezier(0.16, 1, 0.3, 1) 0.8s forwards;
  position: relative;
  z-index: 10; /* Lower than tags so tooltips show on top */
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  padding: 0.5rem 1rem;
  background: linear-gradient(135deg, rgba(102, 126, 234, 0.15), rgba(124, 58, 237, 0.1));
  border: 1px solid rgba(102, 126, 234, 0.3);
  border-radius: 50px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text);
  backdrop-filter: blur(10px);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  overflow: hidden;
}

/* Gradient border effect on hover */
.hero-tag::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50px;
  padding: 1px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2), var(--accent-3));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.hero-tag:hover::before {
  opacity: 1;
}

.hero-tag:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 30px rgba(102, 126, 234, 0.3);
  background: linear-gradient(135deg, rgba(102, 126, 234, 0.25), rgba(124, 58, 237, 0.15));
}

/* Divider dots */
.hero-tag-divider {
  color: var(--accent);
  font-size: 0.5rem;
  opacity: 0.6;
}

/* Staggered animation for each tag */
.hero-tag:nth-child(1) { animation: tagFadeIn 0.5s ease 0.6s forwards; opacity: 0; }
.hero-tag:nth-child(3) { animation: tagFadeIn 0.5s ease 0.7s forwards; opacity: 0; }
.hero-tag:nth-child(5) { animation: tagFadeIn 0.5s ease 0.8s forwards; opacity: 0; }
.hero-tag:nth-child(7) { animation: tagFadeIn 0.5s ease 0.9s forwards; opacity: 0; }
.hero-tag:nth-child(9) { animation: tagFadeIn 0.5s ease 1.0s forwards; opacity: 0; }

.hero-tag-divider:nth-child(2) { animation: tagFadeIn 0.3s ease 0.65s forwards; opacity: 0; }
.hero-tag-divider:nth-child(4) { animation: tagFadeIn 0.3s ease 0.75s forwards; opacity: 0; }
.hero-tag-divider:nth-child(6) { animation: tagFadeIn 0.3s ease 0.85s forwards; opacity: 0; }
.hero-tag-divider:nth-child(8) { animation: tagFadeIn 0.3s ease 0.95s forwards; opacity: 0; }

@keyframes tagFadeIn {
  from {
    opacity: 0;
    transform: translateY(10px) scale(0.9);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* Light mode adjustments */
body.light .hero-tag {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.1), rgba(239, 68, 68, 0.08));
  border-color: rgba(245, 158, 11, 0.25);
}

body.light .hero-tag:hover {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.2), rgba(239, 68, 68, 0.12));
}

/* ===== Hero Tag Wrapper & Tooltip ===== */
.hero-tag-wrapper {
  position: relative;
  display: inline-flex;
}

.hero-tag-tooltip {
  position: absolute;
  top: calc(100% + 20px); /* Appear below */
  left: 0;
  min-width: 280px;
  max-width: 320px;
  padding: 1.25rem;
  background: rgba(15, 15, 25, 0.95);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(102, 126, 234, 0.3);
  border-radius: 16px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4), 0 0 30px rgba(102, 126, 234, 0.15);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 99999;
  transform: translateY(10px);
  /* Ensure text wrapping */
  white-space: normal;
  text-align: left;
}

/* Arrow pointer */
.hero-tag-tooltip::after {
  content: '';
  position: absolute;
  bottom: 100%; /* Arrow at top of tooltip */
  left: 20px; /* Align with tag start approximately */
  border: 8px solid transparent;
  border-bottom-color: rgba(15, 15, 25, 0.95);
}

/* Show tooltip on hover */
.hero-tag-wrapper:hover {
  z-index: 100; /* Ensure active wrapper is above others */
}

.hero-tag-wrapper:hover .hero-tag-tooltip {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
}

/* Tooltip title */
.hero-tag-tooltip h4 {
  margin: 0 0 0.75rem;
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 600;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Tooltip list */
.hero-tag-tooltip ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.hero-tag-tooltip li {
  padding: 0.35rem 0;
  font-size: 0.85rem;
  color: var(--text-secondary);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  transition: all 0.2s ease;
}

.hero-tag-tooltip li:last-child {
  border-bottom: none;
}

.hero-tag-tooltip li:hover {
  color: var(--text);
  padding-left: 0.5rem;
}

/* Light mode tooltip */
body.light .hero-tag-tooltip {
  background: rgba(255, 252, 240, 0.95);
  border-color: rgba(245, 158, 11, 0.2);
  box-shadow: 0 20px 50px rgba(62, 56, 50, 0.15), 0 0 30px rgba(245, 158, 11, 0.1);
}

body.light .hero-tag-tooltip::after {
  border-bottom-color: rgba(255, 252, 240, 0.95);
}

body.light .hero-tag-tooltip li {
  color: var(--muted);
  border-bottom-color: rgba(0, 0, 0, 0.05);
}

body.light .hero-tag-tooltip li:hover {
  color: var(--text);
}

/* Responsive: stack tags on mobile */
@media (max-width: 600px) {
  .hero-tags {
    justify-content: center;
    gap: 0.5rem;
  }
  
  .hero-tag {
    font-size: 0.8rem;
    padding: 0.4rem 0.8rem;
  }
  
  .hero-tag-divider {
    display: none;
  }
  
  .hero-tag-tooltip {
    min-width: 220px;
    left: auto;
    right: -20px;
    transform: translateY(10px);
  }
  
  .hero-tag-wrapper:hover .hero-tag-tooltip {
    transform: translateY(0);
  }
  
  .hero-tag-tooltip::after {
    left: auto;
    right: 40px;
  }
}

.hero p {
  color: var(--text-secondary);
  font-size: 1.1rem;
  margin: 0 0 1.5rem;
  max-width: 600px;
  /* Entrance animation - delayed */
  opacity: 0;
  transform: translateY(20px);
  animation: slideInUp 0.7s cubic-bezier(0.16, 1, 0.3, 1) 0.5s forwards;
}

.hero .actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 1.5rem;
  /* Entrance animation - more delayed */
  opacity: 0;
  transform: translateY(20px);
  animation: slideInUp 0.7s cubic-bezier(0.16, 1, 0.3, 1) 0.8s forwards;
}

/* Staggered button entrance */
.hero .actions .btn:nth-child(1) {
  animation: bounceIn 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55) 1s forwards;
  opacity: 0;
}
.hero .actions .btn:nth-child(2) {
  animation: bounceIn 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55) 1.1s forwards;
  opacity: 0;
}
.hero .actions .btn:nth-child(3) {
  animation: bounceIn 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55) 1.2s forwards;
  opacity: 0;
}
.hero .actions .btn:nth-child(4) {
  animation: bounceIn 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55) 1.3s forwards;
  opacity: 0;
}

/* Slide in up animation */
@keyframes slideInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Bounce in animation for buttons */
@keyframes bounceIn {
  0% {
    opacity: 0;
    transform: scale(0.3) translateY(20px);
  }
  50% {
    opacity: 1;
    transform: scale(1.05) translateY(-5px);
  }
  70% {
    transform: scale(0.95) translateY(2px);
  }
  100% {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

/* Modern gradient title - Dark Mode */
body:not(.light) .start-title {
  background: linear-gradient(135deg, #667eea 0%, #00d4ff 50%, #7c3aed 100%);
  background-size: 200% 200%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: slideInUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.2s forwards, gradientShift 8s ease 1s infinite;
}

/* Modern gradient title - Light Mode */
body.light .start-title {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
  background-size: 200% 200%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: slideInUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.2s forwards, gradientShift 8s ease 1s infinite;
}

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

/* ===== Buttons - Modern Premium ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--glass-border);
  background: var(--glass-strong);
  backdrop-filter: blur(10px);
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text);
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  overflow: hidden;
}

/* Shimmer effect on buttons */
.btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.2),
    transparent
  );
  transition: left 0.5s ease;
}

.btn:hover::before {
  left: 100%;
}

.btn:hover {
  background: var(--glass-border);
  border-color: var(--glass-border-strong);
  transform: translateY(-3px);
  box-shadow: 0 10px 30px rgba(102, 126, 234, 0.2);
}

/* Dark mode: theme toggle button */
body:not(.light) #themeToggle.btn {
  background: var(--glass-strong);
  border: 1px solid var(--glass-border);
}

body:not(.light) #themeToggle.btn:hover {
  background: rgba(255, 255, 255, 0.15);
  transform: scale(1.05);
}

body.light #themeToggle.btn {
  background: var(--glass);
  border: 1px solid var(--glass-border);
}

body.light #themeToggle.btn:hover {
  background: rgba(0, 0, 0, 0.08);
  transform: scale(1.05);
}

.btn.primary {
  background: var(--gradient-primary);
  color: #ffffff;
  border: none;
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.85rem 1.75rem;
  box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

/* Animated shimmer effect on buttons */
.btn.primary::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
  transition: left 0.5s ease;
}

.btn.primary:hover::before {
  left: 100%;
}

.btn.primary .icon {
  width: 20px;
  height: 20px;
  object-fit: contain;
  transition: transform 0.3s ease;
  /* No filter - keep original icon colors for GitHub/LinkedIn */
}

.btn.primary:hover {
  transform: translateY(-4px) scale(1.05);
  box-shadow: 0 12px 30px rgba(102, 126, 234, 0.6);
}

.btn.primary:hover .icon {
  transform: scale(1.15) rotate(-5deg);
}

/* Active press effect */
.btn.primary:active {
  transform: translateY(-1px) scale(1.02);
  box-shadow: 0 4px 15px rgba(102, 126, 234, 0.5);
}

/* ===== Sections - Modern Premium ===== */
section {
  padding: 4rem 0;
  border-top: 1px solid var(--border);
  position: relative;
}

section h2 {
  font-family: var(--font-heading);
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  margin: 0 0 1.5rem;
  color: var(--text);
}

.muted {
  color: var(--text-secondary);
}
.spotify .fa-spotify {
  display: block;
  margin: none;
  text-align: center;
  font-size: 2vw;
}
.spotify .fa-spotify:hover{
  font-size: 2.1vw;
  color: #3cbd00;
}
.spotify-player {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: rgba(0, 0, 0, 0.85);
  border-radius: 16px;
  padding: 8px;
  display: none;
  z-index: 9999;
  box-shadow: 0 0 15px rgba(0, 0, 0, 0.4);
  transform: translateY(20px);
  opacity: 0;
  transition: opacity 0.4s ease, transform 0.4s ease;
}

.spotify-player.show {
  display: block;
  opacity: 1;
  transform: translateY(0);
}

.close-spotify {
  position: absolute;
  top: -10px;
  right: -10px;
  background: #1DB954;
  color: #fff;
  border: none;
  border-radius: 50%;
  width: 24px;
  height: 24px;
  cursor: pointer;
  font-size: 1rem;
  line-height: 1;
}
.spotify-header-btn {
  background: none;
  border: none;
  color: var(--text);
  font-size: 2.5rem;
  cursor: pointer;
  transition: color 0.3s ease, transform 0.2s ease;
}

.spotify-header-btn:hover {
  color: #3cbd00;
  transform: scale(1.1);
}


/* ===== Habilidades (chips) ===== */
.skills {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
}
.chip {
  border: 1px solid var(--border);
  background: var(--card);
  padding: .4rem .6rem;
  border-radius: 999px;
  font-size: .95rem;
}

/* ===== Skills Section - Gamer XP Style ===== */
.skills-container {
  display: grid;
  gap: 1.5rem;
  margin-top: 1rem;
}

/* Skills Carousel - Flexible height with proper overflow */
#habilidades-carousel.owl-carousel {
  transition: height 0.3s ease;
  padding: 8px;
  margin: -8px;
  position: relative;
  z-index: 1; /* Lower than tooltip (z-index: 99999) */
}

#habilidades-carousel .owl-stage-outer {
  overflow: hidden;
  padding: 30px; /* Greatly increased to prevent ALL clipping */
  margin: -20px; /* Compensate for the extra padding */
}

/* Projects Title Override for Light Mode (Dark Background) */
body.light #projetos h2,
body.light #projetos p[data-i18n="projects.subtitle"] {
  color: #fff;
  text-shadow: 0 2px 4px rgba(0,0,0,0.5); /* Ensure readability */
}

#habilidades-carousel .owl-item {
  display: flex;
  flex-direction: column;
  z-index: 1 !important; /* Keep below tooltip */
}

/* Skill Card - Dark Mode (neon cyan gamer style) */
body:not(.light) .skill {
  background: linear-gradient(135deg, #fffff8f1, #166fff);
  padding: 1rem 1.2rem;
  border-radius: 12px;
  box-shadow: 0 0 12px rgb(0, 255, 255);
  border: 1px solid #0ff;
}

/* Skill Card - Light Mode */
body.light .skill {
  background: linear-gradient(135deg, #111, #1a1a1a);
  padding: 1rem 1.2rem;
  border-radius: 12px;
  box-shadow: 0 0 12px rgba(0,0,0,0.7);
  border: 1px solid #2c2c2c;
}

/* Skill Header */
.skill-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: bold;
  margin-bottom: 0.5rem;
}

body.light .skill-header {
  color: #52f49b; /* green neon gamer */
}

body:not(.light) .skill-header {
  color: #000000; /* black text on light cards */
}

/* Skill header span - icon + text container */
.skill-header span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

/* Skill Icon */
.skill-icon {
  display: inline-block !important;
  width: 35px;
  height: 35px;
  border-radius: 15%;
  vertical-align: middle;
  max-width: none;
}

/* Skill Title */
.skill-title {
  display: inline-flex;
  align-items: center;
  gap: 1rem;
}

/* Level Badge */
body:not(.light) .level {
  color: #ffd04e;
  text-shadow: 1px 3px 4px #000000;
}

body.light .level {
  color: #ffd341;
}

/* XP Bar */
.xp-bar {
  width: 100%;
  height: 12px;
  background: #222;
  border-radius: 6px;
  overflow: hidden;
  box-shadow: inset 0 0 6px rgba(0,0,0,0.7);
}

.xp-progress {
  height: 100%;
  background: linear-gradient(90deg, #0af, #52f49b, #f5d742);
  border-radius: 6px;
  box-shadow: 0 0 10px #0af, 0 0 20px #52f49b;
  transition: width 0.6s ease-in-out;
}

.skill small {
  display: block;
  margin-top: 0.4rem;
  font-size: 0.85rem;
  color: #aaa;
}

/* Espaçamento entre o ícone e o texto */
#habilidades h2 {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* Wrapper do ícone */
.titulo-icone {
  position: relative; /* necessário p/ posicionar tooltip */
  display: inline-block;
  cursor: pointer;
}

/* Ícone (modo light) */
body.light .titulo-icone i {
  color: #000; /* preto padrão */
  font-size: 1.8rem;
  transition: color 0.25s;
}

body.light .titulo-icone:hover i {
  color: #007bff; /* azul no hover */
}

/* Ícone (modo dark = body:not(.light)) */
body:not(.light) .titulo-icone i {
  color: #fff; /* branco padrão */
  font-size: 1.8rem;
  transition: color 0.25s;
}

body:not(.light) .titulo-icone:hover i {
  color: #66b2ff; /* azul claro no hover */
}


/* Tooltip centralizada */
.tooltip {
  visibility: hidden;
  opacity: 0;
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: #333;
  color: #fff;
  padding: 20px;
  border-radius: 8px;
  font-size: 0.85rem;
  max-height: 80vh;
  overflow-y: auto;
  z-index: 99999; /* Very high to appear above all elements */
  width: 90%;
  max-width: 600px;
  transition: opacity 0.25s;
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5);
}

.tooltip.show {
  visibility: visible;
  opacity: 1;
}

/* Backdrop overlay when tooltip is visible */
.tooltip.show::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: -1;
}

.tooltip-close {
  position: absolute;
  top: 10px;
  right: 10px;
  background: transparent;
  color: #fff;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
}

/* Listas */
.tooltip ul {
  padding-left: 1rem;
  margin: 0.5rem 0 0 0;
}

.tooltip li {
  margin-bottom: 0.25rem;
  line-height: 1.2rem;
  list-style-type: disc;
}

.tooltip li ul {
  padding-left: 1.2rem;
  list-style-type: circle;
  margin-top: 0.25rem;
}

/* Triângulo da tooltip pode ser removido ou ignorado */
.tooltip::after {
  display: none;
}

/* ===== Projetos ===== */
#projetos {
  position: relative; /* necessário para o pseudo-elemento se posicionar relativo a ele */
  color: white;       /* mantém o texto branco */
  overflow: visible;
  /* qualquer outra estilização do container que você já tenha */
}

/* Fundo principal (imagem) */
#projetos::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 99.4vw;
  height: 100%;
  background: url('img/backmeground2.png') center/cover no-repeat;
  z-index: -2; /* abaixo das linhas neon */
}

#projetos::after {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);

  /* largura responsiva com limites */
  width: calc(
    100vw + 2vw /* 102vw base */
  );

  max-width: 2540px; /* limite máximo */
  min-width: 480px;  /* limite mínimo */

  height: 100%;
  z-index: 2;
  pointer-events: none;

  /* Linhas topo e base */
  background:
    linear-gradient(#0ff, #0ff) top/100% 5px no-repeat,
    linear-gradient(#0ff, #0ff) bottom/100% 5px no-repeat;

  animation: neonStroke 3s infinite alternate;
}



/* Neon pulsante */
@keyframes neonStroke {
  0% {
    filter: drop-shadow(0 0 5px #0ff) drop-shadow(0 0 10px #0ff) drop-shadow(0 0 15px #0ff);
    opacity: 0.7;
  }
  50% {
    filter: drop-shadow(0 0 10px #0ff) drop-shadow(0 0 20px #0ff) drop-shadow(0 0 30px #0ff);
    opacity: 1;
  }
  100% {
    filter: drop-shadow(0 0 5px #0ff) drop-shadow(0 0 10px #0ff) drop-shadow(0 0 15px #0ff);
    opacity: 0.7;
  }
}

/* ===== Para light mode (opcional, contraste) ===== */
body.light #projetos::after {
  background:
    linear-gradient(var(--accent), var(--accent)) top/100% 2px no-repeat,
    linear-gradient(var(--accent), var(--accent)) bottom/100% 2px no-repeat;
  animation: none;
}

/* ===== Projects Grid - Modern Premium ===== */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

#projetos, 
#projetos * {
  user-select: none;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
}

/* Modern Glass Card */
.projeto-card {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: var(--glass-strong);
  border: 1px solid var(--glass-border);
  cursor: pointer;
  transition: var(--transition-slow);
  aspect-ratio: 16 / 10;
}

.projeto-card:hover {
  transform: translateY(-8px);
  border-color: var(--accent);
  box-shadow: var(--shadow-glow), var(--shadow-lg);
}

/* Hidden state for See More functionality */
.projeto-card.project-hidden {
  display: none;
}

.projects-grid.show-all .projeto-card.project-hidden {
  display: block;
  animation: fadeInUp 0.5s ease forwards;
}

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

/* Project Image - Responsive */
.projeto-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--radius-lg);
  transition: var(--transition-slow);
  filter: brightness(0.9);
}

.projeto-card:hover .projeto-img {
  transform: scale(1.05);
  filter: brightness(0.7);
}

/* Modern Overlay */
.projeto-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 1.5rem;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.8) 0%, transparent 50%);
  opacity: 0;
  transition: var(--transition-base);
  pointer-events: none; /* Allow clicks to pass through to the link */
}

.projeto-card:hover .projeto-overlay {
  opacity: 1;
}

.projeto-overlay h3,
.projeto-overlay h4 {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1.25rem;
  color: #fff;
  margin: 0;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
  transform: translateY(10px);
  transition: var(--transition-base);
}

.projeto-card:hover .projeto-overlay h3,
.projeto-card:hover .projeto-overlay h4 {
  transform: translateY(0);
}

/* ===== Projeto Destaque ===== */
.projeto-destaque {
  grid-column: 1 / -1;
  height: 400px;
  border: 2px solid #0ff;
  box-shadow: 0 0 20px rgba(0, 255, 255, 0.3);
}

@media (max-width: 768px) {
  .projeto-destaque {
    height: 300px;
  }
}

.destaque-badge {
  position: absolute;
  top: 15px;
  right: 15px;
  background: linear-gradient(135deg, #0ff, #166fff);
  color: #fff;
  padding: 5px 12px;
  border-radius: 20px;
  font-weight: bold;
  font-size: 0.9rem;
  z-index: 10;
  box-shadow: 0 4px 10px rgba(0,255,255,0.4);
  pointer-events: none;
}

/* ===== Custom Audio Player - Premium Glassmorphism Style ===== */
.custom-audio-player {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  max-width: 320px;
  padding: 12px 16px;
  margin-top: 1rem;
  
  /* Glassmorphism background */
  background: linear-gradient(135deg, rgba(10, 10, 20, 0.95) 0%, rgba(20, 20, 40, 0.9) 100%);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  
  /* Neon border glow */
  border: 1px solid rgba(0, 255, 255, 0.3);
  border-radius: 50px;
  box-shadow: 
    0 8px 32px rgba(0, 0, 0, 0.4),
    0 0 20px rgba(0, 255, 255, 0.15),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
  
  /* Allow interaction */
  pointer-events: auto;
  transition: all 0.3s ease;
}

.custom-audio-player:hover {
  border-color: rgba(0, 255, 255, 0.5);
  box-shadow: 
    0 12px 40px rgba(0, 0, 0, 0.5),
    0 0 30px rgba(0, 255, 255, 0.25),
    inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

/* Play/Pause Button */
.audio-play-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  min-width: 40px;
  border: none;
  border-radius: 50%;
  background: linear-gradient(135deg, #0ff 0%, #00d4ff 100%);
  color: #000;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 4px 15px rgba(0, 255, 255, 0.4);
}

.audio-play-btn:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 20px rgba(0, 255, 255, 0.6);
}

.audio-play-btn:active {
  transform: scale(0.95);
}

.audio-play-btn i {
  margin-left: 2px; /* Visual centering for play icon */
}

.audio-play-btn.playing i {
  margin-left: 0;
}

/* Progress Container */
.audio-progress-container {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

/* Progress Bar */
.audio-progress-bar {
  position: relative;
  width: 100%;
  height: 6px;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 3px;
  cursor: pointer;
  overflow: visible;
}

.audio-progress-fill {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #0ff 0%, #00d4ff 50%, #0af 100%);
  border-radius: 3px;
  transition: width 0.1s linear;
  box-shadow: 0 0 10px rgba(0, 255, 255, 0.5);
}

.audio-progress-thumb {
  position: absolute;
  top: 50%;
  left: 0%;
  width: 14px;
  height: 14px;
  background: #fff;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3), 0 0 10px rgba(0, 255, 255, 0.5);
  opacity: 0;
  transition: opacity 0.2s ease;
}

.custom-audio-player:hover .audio-progress-thumb {
  opacity: 1;
}

/* Time Display */
.audio-time {
  display: flex;
  align-items: center;
  gap: 4px;
  font-family: 'JetBrains Mono', 'Inter', monospace;
  font-size: 11px;
  color: rgba(255, 255, 255, 0.7);
}

.audio-current {
  color: #0ff;
  font-weight: 600;
}

.audio-separator {
  opacity: 0.5;
}

.audio-duration {
  color: rgba(255, 255, 255, 0.5);
}

/* Volume Container */
.audio-volume-container {
  display: flex;
  align-items: center;
  gap: 4px;
}

/* Volume Button */
.audio-volume-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  min-width: 28px;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.7);
  font-size: 11px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.audio-volume-btn:hover {
  background: rgba(0, 255, 255, 0.2);
  color: #0ff;
}

.audio-volume-btn.muted {
  color: rgba(255, 255, 255, 0.3);
}

/* Volume Slider */
.audio-volume-slider {
  width: 50px;
  height: 4px;
  -webkit-appearance: none;
  appearance: none;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 2px;
  cursor: pointer;
  opacity: 0;
  transition: opacity 0.2s ease, width 0.2s ease;
}

.audio-volume-container:hover .audio-volume-slider {
  opacity: 1;
}

.audio-volume-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #0ff;
  cursor: pointer;
  box-shadow: 0 0 8px rgba(0, 255, 255, 0.5);
}

.audio-volume-slider::-moz-range-thumb {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #0ff;
  cursor: pointer;
  border: none;
}

/* Options Menu Container */
.audio-menu-container {
  position: relative;
}

/* Menu Button */
.audio-menu-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  min-width: 28px;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.7);
  font-size: 12px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.audio-menu-btn:hover {
  background: rgba(0, 255, 255, 0.2);
  color: #0ff;
}

/* Dropdown Menu */
.audio-menu {
  position: absolute;
  bottom: 100%;
  right: 0;
  margin-bottom: 8px;
  min-width: 160px;
  padding: 10px;
  background: rgba(15, 15, 25, 0.98);
  border: 1px solid rgba(0, 255, 255, 0.3);
  border-radius: 12px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5), 0 0 20px rgba(0, 255, 255, 0.1);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all 0.2s ease;
  z-index: 100;
}

.audio-menu.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

/* Speed Controls */
.audio-speed-control {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin-bottom: 10px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.audio-speed-control span {
  color: rgba(255, 255, 255, 0.6);
  font-size: 11px;
  width: 100%;
  margin-bottom: 4px;
}

.speed-btn {
  padding: 4px 8px;
  font-size: 10px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.6);
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid transparent;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.speed-btn:hover {
  background: rgba(0, 255, 255, 0.2);
  color: #0ff;
}

.speed-btn.active {
  background: rgba(0, 255, 255, 0.3);
  color: #0ff;
  border-color: rgba(0, 255, 255, 0.5);
}

/* Download Button */
.audio-download-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 8px;
  transition: all 0.2s ease;
}

.audio-download-btn:hover {
  background: rgba(0, 255, 255, 0.2);
  color: #0ff;
}

.audio-download-btn i {
  font-size: 14px;
}

/* Adjust overlay for custom player */
.projeto-card:has(.custom-audio-player) .projeto-overlay {
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.95) 0%, rgba(0, 0, 0, 0.7) 50%, transparent 80%);
}

/* See More Button Container */
.see-more-container {
  display: flex;
  justify-content: center;
  margin-top: 2.5rem;
}

.see-more-btn {
  gap: 0.5rem;
}

.see-more-btn i {
  transition: var(--transition-base);
}

.see-more-btn.expanded i {
  transform: rotate(180deg);
}

/* Remove old overlay animation - using modern centered approach */


/* Mantém sua animação shakeZoomImpact */
@keyframes shakeZoomImpact {
  0%   { transform: scale(1) translate(0, 0); }
  10%  { transform: scale(1.2) translate(-5px, 5px); }
  20%  { transform: scale(1.2) translate(5px, -5px); }
  30%  { transform: scale(1.2) translate(-5px, 5px); }
  40%  { transform: scale(1.2) translate(5px, -5px); }
  50%  { transform: scale(1.2) translate(-5px, 5px); }
  60%  { transform: scale(1.2) translate(5px, -5px); }
  70%  { transform: scale(1.2) translate(-5px, 5px); }
  80%  { transform: scale(1.2) translate(5px, -5px); }
  90%  { transform: scale(1.2) translate(-5px, 5px); }
  100% { transform: scale(1) translate(0, 0); }
}
/*Experiência*/
/* Container */
/* Experiência */
.card {
  min-width: 382px;
  min-height: 672px;
  perspective: 1000px;
  cursor: pointer;
  transition: min-height 0.35s ease;
}

.card-inner {
  position: relative;
  width: 100%;
  height: 100%;
  transition: transform 0.8s;
  transform-style: preserve-3d;
}

.card:hover .card-inner {
  transform: rotateY(180deg);
}

.cards-container {
  overflow: hidden;
  position: relative;
  justify-content: center;
  align-items: center;
  padding-bottom: 1rem;
}

/* Frente e verso ocupam todo o card */
.card-front, .card-back {
  position: absolute;
  top: 0;
  left: 0;
  min-height: auto;
  min-width: 70%;
  backface-visibility: hidden;
  border-radius: var(--radius); /* borda arredondada do card e do verso */
  overflow: hidden;   /* evita que conteúdo escape da borda */
}

/* Imagem da frente */
.card-front img.frente {
  width: 100%;
  height: 100%;
  object-fit: cover;
  justify-content: center;
  align-items: center;
  display: block;
  border-radius: 2%; /* garante que a imagem siga a borda arredondada */
}

/* Conteúdo da frente */
.card-front .card-content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  z-index: 2;
}
.frente{
  border-radius: 15%;
}
.logo {
  width: 80px;
  height: 80px;
  border-radius: var(--radius);
  object-fit: contain;
}

.empresa {
  font-weight: bold;
  font-size: 1.3rem;
  text-align: left;
}

/* Verso */
.card-back {
  transform: rotateY(180deg);
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

.card-back-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;       /* faz preencher igual à frente */
  background-position: center;  /* centraliza */
  background-repeat: no-repeat; /* evita repetição */
  z-index: 0;
}

/* Conteúdo do verso */
.card-back-content {
  position: relative; /* mantém o conteúdo dentro do card */
  padding: 1.5rem;
  max-height: 100%;
  overflow: hidden; /* evita que passe do container */
  box-sizing: border-box;
  text-align: left;
}

/* Texto do verso invertido para dark/light */
body.light .card-back-content { color: #fff; }
body:not(.light) .card-back-content { color: #000; }

/* Dark / Light imagens (sem background-color) */
body.light .card-front img.frente { content: url("img/frente-light.png"); }
body:not(.light) .card-front img.frente { content: url("img/frente-dark.png"); }

body.light .card-back-bg { 
  background-image: url("img/verso-light.png"); 
  /* Removido background-color: #fff; – agora imagem pura */
}
body:not(.light) .card-back-bg { 
  background-image: url("img/verso-dark.png"); 
  /* Removido background-color: #000; – agora imagem pura */
}

body.light .empresa { color: #fff; }
body:not(.light) .empresa { color: #000; }

/* Responsivo */
@media (max-width: 768px) {
  .card {
    min-width: 300px;
    min-height: 500px;
  }
}

/* Owl Carousel para Cards */
.cards-container.owl-carousel {
  overflow: hidden;
}

.cards-container.owl-carousel .owl-nav button.owl-prev,
.cards-container.owl-carousel .owl-nav button.owl-next {
  position: absolute;
  top: 45%;
  background: rgba(0,0,0,0.5);
  color: #fff;
  border: none;
  padding: 0.5rem 1rem;
  border-radius: 6px;
  font-size: 1.2rem;
  cursor: pointer;
  z-index: 10;
}

.cards-container.owl-carousel .owl-nav button.owl-prev { left: -2rem; }
.cards-container.owl-carousel .owl-nav button.owl-next { right: -2rem; }

/* Dots limpos (sem duplicatas) - sinalizador */
.cards-container.owl-carousel .owl-dots {
  text-align: center;
  margin-top: 1rem;
}

.cards-container.owl-carousel .owl-dots .owl-dot span {
  width: 12px;
  height: 12px;
  margin: 5px 7px;
  background: rgba(255, 255, 255, 0.4);
  border-radius: 50%;
  display: block;
  transition: opacity 0.2s ease;
}

.cards-container.owl-carousel .owl-dots .owl-dot.active span {
  background: #ffffff;
}

body.light .cards-container.owl-carousel .owl-dots .owl-dot span {
  background: rgba(0, 0, 0, 0.4);
}

body.light .cards-container.owl-carousel .owl-dots .owl-dot.active span {
  background: #000000;
}

.cards-container.owl-carousel .owl-dots .owl-dot:hover span {
  background: #ffffff;
}

body.light .cards-container.owl-carousel .owl-dots .owl-dot:hover span {
  background: #000000;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: .4rem;
}
.tag {
  font-size: .8rem;
  background: rgba(255,255,255,.05);
  border: 1px dashed var(--border);
  padding: .2rem .5rem;
  border-radius: 6px;
}

/* ===== Timeline ===== */
.timeline {
  display: grid;
  gap: .75rem;
}
.item {
  border-left: 2px solid var(--accent);
  padding-left: .75rem;
}
.item small {
  color: var(--muted);
}

/* ===== Footer ===== */
footer {
  padding: 2rem 0;
  border-top: 1px solid var(--border);
  color: var(--muted);
}

/* ===== Formulário ===== */
#contactForm input,
#contactForm textarea {
  width: 100%;
  padding: .8rem;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--card);
  color: var(--text);
}
#contactForm textarea {
  resize: vertical;
}
.fa-solid .fa-circle-info:hover{
  color: #0af;
}
#mouse-glow {
  position: fixed;
  width: 1.5rem;
  height: 1.5rem;
  background: radial-gradient(circle, rgb(13, 98, 255), transparent); /* Usa --accent do dark */
  border-radius: 50%;
  pointer-events: none;
  z-index: 1; /* Baixo para não sobrepor */
  filter: blur(0.5rem);
  transition: all 0.05s ease-out;
  transform: translate(-50%, -50%);
  opacity: 0;
  will-change: transform;
}
#mouse-glow.visible {
  opacity: 1;
}
body.light #mouse-glow {
  background: radial-gradient(circle, rgb(124, 131, 131), transparent); /* Light theme */
}
.section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image:
    linear-gradient(rgba(10, 37, 240, 0.523) 1px, transparent 1px),
    linear-gradient(90deg, rgba(10, 37, 240, 0.476) 1px, transparent 1px);
  background-size: 50px 50px;
  z-index: -1; /* Atrás de tudo */
  pointer-events: none;
}
body.light .section::before {
  background-image:
    linear-gradient(rgb(37, 100, 235) 1px, transparent 1px),
    linear-gradient(90deg, rgb(37, 100, 235) 1px, transparent 1px);
}
.section {
  position: relative; /* Essencial para blobs absolutos ficarem dentro da seção */
  overflow: visible; /* Evita cortar blobs em carousels como Owl */
}

/* Container de blobs (mantido) */
.background-blobs {
  position: absolute;
  inset: 0;
  z-index: -2; /* Atrás do grid (::before = -1) e conteúdo */
  pointer-events: none;
  overflow: visible; /* Não corta em carousels */
}

/* Blob base (suas cores exatas mantidas) */
.blob {
  position: absolute;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, rgba(246, 246, 247, 0.2), transparent 70%);
  filter: blur(2rem);
  will-change: transform, opacity;
  opacity: 0.8; /* Suave, sem poluir */
}

/* Blob 1: Superior esquerdo, pulse básico */
.blob-1 { 
  top: 15%; left: 8%; 
  width: 8rem; height: 8rem; 
  animation: pulse 4s ease-in-out infinite; 
  animation-delay: 0s; 
}

/* Blob 2: Meio direito, bounce rotacionado (sua cor branca) */
.blob-2 { 
  top: 35%; right: 18%; 
  width: 6rem; height: 6rem; 
  background: rgba(255, 255, 255, 0.15); /* Sua cor exata */
  border-radius: 20%;
  transform: rotate(45deg);
  animation: bounce 3s ease-in-out infinite;
  animation-delay: -0.5s; /* Offset leve para variação */
}

/* Blob 3: Baixo esquerdo, ping expandindo */
.blob-3 { 
  bottom: 25%; left: 22%; 
  width: 4rem; height: 4rem; 
  animation: ping 2s ease-in-out infinite;
  animation-delay: 1.5s; /* Delay para "sequência" */
}

/* Blob 4: Inferior direito, float rotacionado */
.blob-4 { 
  bottom: 15%; right: 12%; 
  width: 5rem; height: 5rem; 
  background: radial-gradient(circle at 30% 30%, rgba(246, 246, 247, 0.15), transparent 70%); /* Variação da sua cor base */
  border-radius: 20%;
  transform: rotate(12deg);
  animation: float 6s ease-in-out infinite;
  animation-delay: -1s;
}

/* Blob 5 (opcional): Central, pulse lento + rotate */
.blob-5 { 
  top: 55%; left: 45%; 
  width: 7rem; height: 7rem; 
  background: rgba(255, 255, 255, 0.1); /* Variação branca translúcida */
  animation: pulse-slow 5s ease-in-out infinite, rotate-slow 20s linear infinite;
  animation-delay: 0.8s;
}

/* Keyframes (mantidos, com suas animações exatas) */
@keyframes pulse { 
  0%, 100% { opacity: 0.5; transform: scale(1); } 
  50% { opacity: 1; transform: scale(1.1); } 
}
@keyframes bounce { 
  0%, 100% { transform: translateY(0) rotate(45deg); } 
  50% { transform: translateY(-20px) rotate(45deg); } 
}
@keyframes ping { 
  0% { transform: scale(0); opacity: 1; } 
  75%, 100% { transform: scale(2); opacity: 0; } 
}
@keyframes float { 
  0%, 100% { transform: translateY(0px) rotate(12deg); } 
  50% { transform: translateY(-20px) rotate(12deg); } 
}
@keyframes pulse-slow { 
  0%, 100% { opacity: 0.3; transform: scale(0.9); } 
  50% { opacity: 0.8; transform: scale(1.2); } 
}
@keyframes rotate-slow { 
  from { transform: rotate(0deg); } 
  to { transform: rotate(360deg); } 
}

/* Variação por seção (para evitar repetição exata – adicione class="varied-blobs" no HTML da seção se quiser mais custom) */
.varied-blobs .blob-1 { top: 5%; left: 75%; } /* Ex: Habilidades – vira superior direito */
.varied-blobs .blob-2 { top: 60%; right: 5%; } /* Baixo direito */
.varied-blobs .blob-3 { bottom: 40%; left: 60%; } /* Meio baixo direito */
.varied-blobs .blob-4 { top: 70%; left: 15%; } /* Meio esquerdo */

/* Light mode (sua cor exata: rgb(94, 92, 96)) */
body.light .blob { 
  background: radial-gradient(circle at 30% 30%, rgb(94, 92, 96), transparent 70%); 
  opacity: 0.6; /* Mais sutil no light colorido */
}
body.light .blob-2 { 
  background: rgba(94, 92, 96, 0.15); /* Ajuste na branca para cinza no light */
}

/* Responsivo: Esconde em mobile para performance */
@media (max-width: 768px) {
  .blob { 
    width: 3rem !important; 
    height: 3rem !important; 
    filter: blur(1rem); /* Menos blur em telas pequenas */
  }
}
body.light .skill-icon-black {
  background-color: white;
  border-radius: 5px;
}
.skill-icon-transparent {
  background-color: rgb(255, 255, 255);
  padding: 4px;
  border-radius: 4px;
}
body.light .skill-icon-transparent {
  background-color: rgb(0, 0, 0);
  padding: 4px;
  border-radius: 4px;
}
body:not(.light) .skill-icon-white{
  background-color: rgb(0, 0, 0);
  border-radius: 4px;
}
/* ===== Modern Experience Timeline ===== */
#experiencia {
  position: relative;
  padding: 4rem 1rem;
}

.modern-timeline-container {
  position: relative;
  max-width: 900px;
  margin: 3rem auto 0;
  padding: 0 1rem;
}

/* Central Line */
.modern-timeline-container::before {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  left: 20px;
  width: 2px;
  background: linear-gradient(to bottom, transparent, var(--accent), transparent);
  border-radius: 2px;
}

@media (min-width: 768px) {
  .modern-timeline-container::before {
    left: 50%;
    transform: translateX(-50%);
  }
}

.modern-timeline-item {
  position: relative;
  margin-bottom: 3rem;
  width: 100%;
}

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

@media (min-width: 768px) {
  .modern-timeline-item {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    width: 50%;
  }
  .modern-timeline-item:nth-child(odd) {
    float: left;
    clear: both;
    justify-content: flex-end;
    padding-right: 30px;
  }
  .modern-timeline-item:nth-child(even) {
    float: right;
    clear: both;
    justify-content: flex-start;
    padding-left: 30px;
  }
  .modern-timeline-container::after {
    content: '';
    display: table;
    clear: both;
  }
}

/* Glowing Timeline Dot */
.timeline-dot-glow {
  position: absolute;
  top: 15px;
  left: 14px;
  width: 14px;
  height: 14px;
  background-color: var(--accent);
  border-radius: 50%;
  box-shadow: 0 0 10px var(--accent);
  z-index: 2;
  transition: all 0.3s ease;
}

@media (min-width: 768px) {
  .modern-timeline-item:nth-child(odd) .timeline-dot-glow {
    right: -7px;
    left: auto;
  }
  .modern-timeline-item:nth-child(even) .timeline-dot-glow {
    left: -7px;
  }
}

/* Glassmorphism Card */
.timeline-content.glass-card {
  position: relative;
  background: rgba(255, 255, 255, 0.03); /* subtle white for dark mode */
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 1.5rem;
  margin-left: 45px; /* space from line on mobile */
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
  cursor: default;
}

body.light .timeline-content.glass-card {
  background: rgba(255, 255, 255, 0.85); /* distinct white for light mode */
  border: 1px solid rgba(0, 0, 0, 0.1);
  box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

@media (min-width: 768px) {
  .timeline-content.glass-card {
    margin-left: 0;
    width: 100%;
  }
}

/* Hover Effects */
.timeline-content.glass-card.hover-lift:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  border-color: var(--accent);
}

body.light .timeline-content.glass-card.hover-lift:hover {
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.modern-timeline-item:hover .timeline-dot-glow {
  transform: scale(1.4);
  background-color: #fff;
}

body.light .modern-timeline-item:hover .timeline-dot-glow {
  background-color: var(--accent);
}

/* Content Layout */
.exp-header-row {
  display: flex;
  flex-direction: column;
  margin-bottom: 1rem;
  gap: 0.5rem;
}

@media (min-width: 1024px) {
  .exp-header-row {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: flex-start;
  }
}

.exp-title-group {
  flex: 1 1 auto;
  min-width: 60%;
  padding-right: 15px;
}

.exp-title-group h3 {
  font-size: 1.25rem;
  margin: 0 0 0.25rem 0;
  color: var(--text);
  font-weight: 600;
  line-height: 1.3;
}

.exp-date {
  font-size: 0.85rem;
  color: var(--muted);
  font-weight: 500;
  margin-top: 0.25rem;
  word-wrap: break-word;
}

@media (min-width: 1024px) {
  .exp-date {
    margin-top: 0;
    text-align: right;
    max-width: 100%;
  }
}

.badge-accent {
  display: inline-block;
  color: var(--accent);
  font-weight: 600;
}

.exp-body p {
  text-indent: 0;
  text-align: left;
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--muted);
  margin-bottom: 0.75rem;
  margin-top: 0;
}

.exp-body p:last-child {
  margin-bottom: 0;
}
/* Efeito hover para cada skill */
.skill {
  transition: transform 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease;
  border-radius: 8px; /* leve arredondamento */
  background-color: #f8f8f8; /* cor base, opcional */
  padding: 0.5rem;
  cursor: pointer;
}

.skill:hover {
  transform: translateY(-5px) scale(1.03); /* leve elevação e zoom */
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15); /* sombra suave */
  background-color: #ffffff; /* opcional: destaque no fundo */
}

/* Efeito no header da skill (texto e ícone) */
.skill:hover .skill-header span:first-child {
  color: #0077ff; /* muda cor do texto/ícone ao passar o mouse */
}

/* Efeito na barra de XP */
.skill:hover .xp-progress {
  background-color: #0077ff; /* muda cor da barra ao hover */
  transition: background-color 0.3s ease;
}
/* Container do input deve ser relativo para a sugestão posicionar corretamente */
.skills-filter-container {
  position: relative; /* referência para a sugestão */
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
  z-index: 2; /* base, menor que a sugestão */
}

/* Input de pesquisa */
#skills-search {
  padding: 0.6rem 1rem;
  border-radius: 9999px;
  border: 1px solid var(--border);
  font-size: 1rem;
  outline: none;
  transition: all 0.2s;
  background-color: var(--input-bg);
  color: var(--text);
  width: 100%;
}

#skills-search::placeholder {
  color: var(--text-secondary);
}

#skills-search:focus {
  border-color: var(--accent);
  box-shadow: 0 0 8px rgba(0, 119, 255, 0.2);
}

/* Caixa de sugestões */
.suggestions {
  position: absolute;
  top: 100%; /* logo abaixo do input */
  left: 0;
  right: 0;
  margin-top: 4px; /* espaçamento do input */
  border: 1px solid var(--border);
  border-radius: 8px;
  max-height: 200px;
  overflow-y: auto;
  z-index: 999; /* garante que fique acima de tudo */
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
  background-color: #fff; /* força fundo branco sólido no light mode */
}
/* Dark mode */
body:not(.light) .suggestions {
  background-color: #222; /* fundo escuro sólido */
  border-color: #555;
  color: #eee;
}

/* Itens da lista */
.suggestion-item {
  padding: 0.5rem 1rem;
  cursor: pointer;
  white-space: nowrap; /* evita quebrar linha */
  overflow: hidden;
  text-overflow: ellipsis;
  transition: background-color 0.2s, color 0.2s;
}

/* Hover nos itens */
body.light .suggestion-item:hover {
  background-color: #007bff4a;
  color: #000000;
}
body:not(.light) .suggestion-item:hover{
  background-color: #01f7ff41;
  color: hsl(0, 0%, 100%);
}

/* Scrollbar customizada */
.suggestions::-webkit-scrollbar {
  width: 8px;
}

.suggestions::-webkit-scrollbar-thumb {
  background-color: rgba(0,0,0,0.2);
  border-radius: 4px;
}

.suggestions::-webkit-scrollbar-track {
  background: transparent;
}

/* Container dos filtros ativos */
.active-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.5rem;
}

/* Botão de filtro ativo */
.filter-btn {
  display: flex;
  align-items: center;
  padding: 0.4rem 0.8rem;
  border-radius: 9999px; /* arredondado estilo pill */
  background-color: var(--accent);
  color: #fff;
  font-size: 0.9rem;
  cursor: pointer;
  transition: background-color 0.2s, transform 0.2s;
}

.filter-btn:hover {
  background-color: #005ecc; /* escurece no hover */
  transform: scale(1.05);
}

/* X para remover filtro */
.filter-btn span.remove {
  margin-left: 0.5rem;
  font-weight: bold;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
}
.hidden-carousel {
  display: none !important;
}
/* ===== Botão de Tradução (Sem Mudanças, Seu Design Original) ===== */
.translate-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: var(--radius);
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: linear-gradient(145deg, rgba(40, 40, 40, 0.7), rgba(20, 20, 20, 0.9));
  backdrop-filter: blur(6px);
  color: var(--text);
  cursor: pointer;
  transition: all 0.25s ease;
  box-shadow: 0 3px 6px rgba(0, 0, 0, 0.4);
  position: relative;  /* Âncora pro dropdown */
  margin-left: auto;  /* Encaixa à direita */
  margin-right: 10px;
}

.translate-btn .material-symbols-outlined.notranslate {
  font-size: 26px;
  line-height: 1;
  pointer-events: none;
  font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24;
  color: inherit;
  -webkit-user-select: none;
  -moz-user-select: none;
  user-select: none;
}

/* Hover e Ativo (sem mudanças) */
.translate-btn:hover {
  transform: translateY(-2px) scale(1.05);
  border-color: transparent;
  background: linear-gradient(135deg, #0084ff, #00d0ff);
  color: #fff;
  box-shadow: 0 4px 10px rgba(0, 150, 255, 0.45), 0 0 12px rgba(0, 150, 255, 0.35);
}

.translate-btn:active {
  transform: scale(0.97);
  box-shadow: inset 0 2px 5px rgba(0, 0, 0, 0.3);
}

body.light .translate-btn {
  background: linear-gradient(145deg, #f5f5f5, #e7e7e7);
  border: 1px solid rgba(0, 0, 0, 0.2);
  color: #1c1c1c;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

body.light .translate-btn:hover {
  background: linear-gradient(135deg, #007bff, #00c3ff);
  color: #fff;
  border-color: transparent;
  box-shadow: 0 4px 10px rgba(0, 120, 255, 0.4), 0 0 12px rgba(0, 120, 255, 0.3);
}


body {
  top: 0 !important;
  padding-top: 0 !important;
  margin-top: 0 !important;
}

header {
  top: 0 !important;
  z-index: 10 !important;
}

/* Responsivo */
@media (max-width: 768px) {
  .translate-btn {
    width: 40px !important;
    height: 40px !important;
  }
}
p {
    text-indent: 1.25cm;
    text-align: justify;
}

#skills-search {
  padding: 0.6rem 1rem;
  border-radius: 9999px;
  border: 1px solid var(--border);
  font-size: 1rem;
  outline: none;
  transition: all 0.2s;
  background-color: var(--input-bg);
  color: var(--text);
  width: 100%;
}

#skills-search::placeholder {
  color: var(--text-secondary);
}

#skills-search:focus {
  border-color: var(--accent);
  box-shadow: 0 0 8px rgba(0, 119, 255, 0.2);
}

/* Caixa de sugestões */
.suggestions {
  position: absolute;
  top: 100%; /* logo abaixo do input */
  left: 0;
  right: 0;
  margin-top: 4px; /* espaçamento do input */
  border: 1px solid var(--border);
  border-radius: 8px;
  max-height: 200px;
  overflow-y: auto;
  z-index: 999; /* garante que fique acima de tudo */
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
  background-color: #fff; /* força fundo branco sólido no light mode */
}
/* Dark mode */
body:not(.light) .suggestions {
  background-color: #222; /* fundo escuro sólido */
  border-color: #555;
  color: #eee;
}

/* Itens da lista */
.suggestion-item {
  padding: 0.5rem 1rem;
  cursor: pointer;
  white-space: nowrap; /* evita quebrar linha */
  overflow: hidden;
  text-overflow: ellipsis;
  transition: background-color 0.2s, color 0.2s;
}

/* Hover nos itens */
body.light .suggestion-item:hover {
  background-color: #007bff4a;
  color: #000000;
}
body:not(.light) .suggestion-item:hover{
  background-color: #01f7ff41;
  color: hsl(0, 0%, 100%);
}

/* Scrollbar customizada */
.suggestions::-webkit-scrollbar {
  width: 8px;
}

.suggestions::-webkit-scrollbar-thumb {
  background-color: rgba(0,0,0,0.2);
  border-radius: 4px;
}

.suggestions::-webkit-scrollbar-track {
  background: transparent;
}

/* Container dos filtros ativos */
.active-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.5rem;
}

/* Botão de filtro ativo */
.filter-btn {
  display: flex;
  align-items: center;
  padding: 0.4rem 0.8rem;
  border-radius: 9999px; /* arredondado estilo pill */
  background-color: var(--accent);
  color: #fff;
  font-size: 0.9rem;
  cursor: pointer;
  transition: background-color 0.2s, transform 0.2s;
}

.filter-btn:hover {
  background-color: #005ecc; /* escurece no hover */
  transform: scale(1.05);
}

/* X para remover filtro */
.filter-btn span.remove {
  margin-left: 0.5rem;
  font-weight: bold;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
}
.hidden-carousel {
  display: none !important;
}
/* ===== Botão de Tradução (Sem Mudanças, Seu Design Original) ===== */
.translate-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: var(--radius);
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: linear-gradient(145deg, rgba(40, 40, 40, 0.7), rgba(20, 20, 20, 0.9));
  backdrop-filter: blur(6px);
  color: var(--text);
  cursor: pointer;
  transition: all 0.25s ease;
  box-shadow: 0 3px 6px rgba(0, 0, 0, 0.4);
  position: relative;  /* Âncora pro dropdown */
  margin-left: auto;  /* Encaixa à direita */
  margin-right: 10px;
}

.translate-btn .material-symbols-outlined.notranslate {
  font-size: 26px;
  line-height: 1;
  pointer-events: none;
  font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24;
  color: inherit;
  -webkit-user-select: none;
  -moz-user-select: none;
  user-select: none;
}

/* Hover e Ativo (sem mudanças) */
.translate-btn:hover {
  transform: translateY(-2px) scale(1.05);
  border-color: transparent;
  background: linear-gradient(135deg, #0084ff, #00d0ff);
  color: #fff;
  box-shadow: 0 4px 10px rgba(0, 150, 255, 0.45), 0 0 12px rgba(0, 150, 255, 0.35);
}

.translate-btn:active {
  transform: scale(0.97);
  box-shadow: inset 0 2px 5px rgba(0, 0, 0, 0.3);
}

body.light .translate-btn {
  background: linear-gradient(145deg, #f5f5f5, #e7e7e7);
  border: 1px solid rgba(0, 0, 0, 0.2);
  color: #1c1c1c;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

body.light .translate-btn:hover {
  background: linear-gradient(135deg, #007bff, #00c3ff);
  color: #fff;
  border-color: transparent;
  box-shadow: 0 4px 10px rgba(0, 120, 255, 0.4), 0 0 12px rgba(0, 120, 255, 0.3);
}


body {
  top: 0 !important;
  padding-top: 0 !important;
  margin-top: 0 !important;
}

header {
  top: 0 !important;
  z-index: 10 !important;
}

/* Responsivo */
@media (max-width: 768px) {
  .translate-btn {
    width: 40px !important;
    height: 40px !important;
  }
}
p {
    text-indent: 1.25cm;
    text-align: justify;
    line-height: 1.5;
    margin: 0;
  }

/* ===== Scroll Animations ===== */
.hidden-section {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.hidden-section.show {
  opacity: 1;
  transform: none;
}

/* ===== Enhanced Hover Effects (Projects) ===== */
.projeto-card {
  transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.27), box-shadow 0.4s ease;
}

.projeto-card:hover {
  transform: translateY(-10px) scale(1.02);
  box-shadow: 0 20px 40px rgba(0,0,0,0.4);
}

/* =========================================
   RESPONSIVE STYLES (Added for Mobile/Tablet)
   ========================================= */

@media (max-width: 1024px) {
  .container {
    width: 95%;
  }
  
  .hero h1 {
    font-size: 3.5rem;
  }
}

@media (max-width: 768px) {
  /* =========================================
     APP-LIKE ADAPTIVE SYSTEM
     ========================================= */

  /* 1. Reset & Base Layout */
  html {
    scroll-snap-type: y mandatory;
    scroll-behavior: smooth;
    height: 100%;
    margin: 0;
    overflow-y: scroll;
  }
  
  body {
    height: 100%;
    overflow-x: hidden;
    padding-bottom: 80px; /* Space for Bottom Nav */
  }

  /* Sections = Full Screen Pages */
  section, header, .hero {
    min-height: 100vh;
    min-height: 100svh; /* Modern mobile units */
    scroll-snap-align: start;
    scroll-snap-stop: always;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 2rem 1rem !important; /* Force padding */
    box-sizing: border-box;
  }

  /* 2. Bottom Navigation (App Tab Bar) */
  header {
    position: fixed;
    top: auto;
    bottom: 0;
    left: 0;
    width: 100%;
    height: auto;
    min-height: auto;
    background: rgba(11, 13, 16, 0.95); /* More solid for contrast */
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-top: 1px solid rgba(255,255,255,0.08);
    border-bottom: none;
    z-index: 10000;
    padding: 0 !important;
    padding-bottom: env(safe-area-inset-bottom) !important;
  }
  
  body.light header {
    background: rgba(255, 255, 255, 0.95);
    border-top: 1px solid rgba(0,0,0,0.08);
  }

  .nav {
    flex-direction: row;
    justify-content: space-between; /* Spread out evenly */
    padding: 0.5rem 1rem; /* Compact vertical padding */
    width: 100%;
    margin: 0;
  }

  /* Brand hides to save space */
  .brand {
    display: none; 
  }

  .nav-actions {
    width: 100%;
    display: flex;
    justify-content: space-between; /* Maximize spacing between items */
    gap: 0;
  }
  
  .nav-actions a, 
  .nav-actions .dropdown { 
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-size: 0.65rem; /* Smaller text */
    gap: 3px;
    padding: 0.4rem; /* Reduced touch target visual size, keeping area */
    color: var(--muted);
    background: transparent;
    border-radius: 8px;
    flex: 1; /* Distribute space equally */
    max-width: 70px; /* Prevent too wide items */
  }
  
  /* Icon sizing override if needed */
  .nav-actions a i,
  .nav-actions .dropdown i {
    font-size: 1.2rem; /* Consistent icon size */
  }
  
  .nav-actions a:hover,
  .nav-actions a.active {
    color: var(--accent);
    background: rgba(255, 255, 255, 0.03);
  }
  
  /* Translate button becomes an icon in the tab bar */
  .translate-btn {
    width: auto !important;
    height: auto !important;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    padding: 0.4rem !important;
    color: var(--muted) !important;
    margin: 0 !important;
    flex: 1;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 0.65rem !important;
    gap: 3px !important;
  }
  
  .translate-btn:hover {
    color: var(--accent) !important;
    transform: none !important;
  }

  /* 3. Horizontal Scroll "Stories" Containers */
  /* Projects e Skills rolam para o lado como carrossel nativo */
  .skills-container, 
  .projects {
    display: flex !important;
    grid-template-columns: none; /* Reset grid */
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    gap: 1rem;
    padding: 1rem 0 2rem; /* Give space for shadow */
    width: 100vw;
    margin-left: -1rem; /* Negate section padding to bleed to edge */
    padding-left: 1rem; /* Restore visual padding start */
    padding-right: 1rem; /* Padding end */
    -webkit-overflow-scrolling: touch;
  }
  
  /* Cards Snap */
  .projeto-card, 
  .skill {
    min-width: 85vw; /* Almost full screen width */
    scroll-snap-align: center;
    flex-shrink: 0;
  }
  
  /* Vertical stack adjustments within cards */
  .projeto-card {
    height: 100%;
    max-height: 60vh;
    display: flex;
    flex-direction: column;
  }
  
  .projeto-img {
    height: 200px;
    object-fit: cover;
  }
  
  /* 4. Hero Visuals */
  .hero {
    align-items: center;
    text-align: center;
  }
  
  .hero h1 {
    font-size: clamp(3rem, 10vw, 4.5rem);
    line-height: 1.1;
  }
  
  /* 5. Touch Optimizations */
  /* Disable hover effects that stick */
  @media (hover: none) {
    .projeto-card:hover { transform: none; box-shadow: var(--shadow); }
    .btn:hover { transform: none; }
  }
  
  /* Active states for feedback */
  .btn:active {
    transform: scale(0.96);
    opacity: 0.8;
  }

  /* Dropdown becomes a Bottom Sheet - DISABLED: Now handled by mobile.css */
  /*
  .nav-actions .dropdown .dropdown-content {
    bottom: 70px;
    top: auto;
    left: 0;
    width: 100%;
    max-width: none;
    transform: translateY(120%);
    border-radius: 20px 20px 0 0;
    background: var(--bg);
    border-top: 1px solid var(--border);
    padding: 2rem 1rem 4rem;
  }
  
  .nav-actions .dropdown .dropdown-content.show {
    transform: translateY(0);
  }
  */

  /* Hide Spotify to declutter */
  .spotify-player { display: none !important; }
  
  /* Fix Experience flip on tap */
  .card {
    min-height: 50vh;
  }
  .card:active .card-inner {
    transform: rotateY(180deg);
  }
}

/* Small phones tweaks */
@media (max-width: 380px) {
  .hero h1 { font-size: 2.5rem; }
  .nav-actions { font-size: 0.6rem; }
}

/* ===== Botão de Tradução (User Provided) ===== */
.translate-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: var(--radius);
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: linear-gradient(145deg, rgba(40, 40, 40, 0.7), rgba(20, 20, 20, 0.9));
  backdrop-filter: blur(6px);
  color: var(--text);
  cursor: pointer;
  transition: all 0.25s ease;
  box-shadow: 0 3px 6px rgba(0, 0, 0, 0.4);
  position: relative;  /* Âncora pro dropdown */
  margin-left: auto;  /* Encaixa à direita */
  margin-right: 10px;
}

.translate-btn .material-symbols-outlined.notranslate {
  font-size: 26px;
  line-height: 1;
  pointer-events: none;
  font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24;
  color: inherit;
  -webkit-user-select: none;
  -moz-user-select: none;
  user-select: none;
}

/* Hover e Ativo (sem mudanças) */
.translate-btn:hover {
  transform: translateY(-2px) scale(1.05);
  border-color: transparent;
  background: linear-gradient(135deg, #0084ff, #00d0ff);
  color: #fff;
  box-shadow: 0 4px 10px rgba(0, 150, 255, 0.45), 0 0 12px rgba(0, 150, 255, 0.35);
}

.translate-btn:active {
  transform: scale(0.97);
  box-shadow: inset 0 2px 5px rgba(0, 0, 0, 0.3);
}

body.light .translate-btn {
  background: linear-gradient(145deg, #f5f5f5, #e7e7e7);
  border: 1px solid rgba(0, 0, 0, 0.2);
  color: #1c1c1c;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

body.light .translate-btn:hover {
  background: linear-gradient(135deg, #007bff, #00c3ff);
  color: #fff;
  border-color: transparent;
  box-shadow: 0 4px 10px rgba(0, 120, 255, 0.4), 0 0 12px rgba(0, 120, 255, 0.3);
}

/* Responsivo */
@media (max-width: 768px) {
  .translate-btn {
    width: 40px !important;
    height: 40px !important;
  }
}

/* Fix 3: Ensure buttons stay ABOVE dropdown content */
.translate-btn {
  z-index: 101; /* Higher than dropdown (100) */
}

/* Contact Button Specific Styles */
header .nav-actions .btn-contact {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.85rem;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-secondary);
  background: var(--glass-weak);
  border: 1px solid rgba(255, 255, 255, 0.1);
  cursor: pointer;
  transition: var(--transition-base);
  position: relative;
  z-index: 101; /* Fix: Higher than dropdown (100) */
}

header .nav-actions .btn-contact:hover {
  color: var(--text);
  background: var(--glass-strong);
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
}

.dropdown .menu-icon,
.dropdown .menu-icon * {
  pointer-events: none; /* Icons won't block clicks */
}

/* ===== Responsive Font Size Scaling ===== */
@media (max-width: 1024px) {
  html {
    font-size: 17px; /* Slightly smaller on tablets */
  }
}

@media (max-width: 768px) {
  html {
    font-size: 16px; /* Standard size on mobile */
  }
}

@media (max-width: 480px) {
  html {
    font-size: 15px; /* Compact size on small phones */
  }
}

/* ===== Suno Music Button ===== */
.suno-music-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 2px solid transparent;
  border-radius: 12px;
  background: transparent;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  overflow: hidden;
}

.suno-music-btn img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 10px;
  transition: transform 0.3s ease;
}

.suno-music-btn:hover {
  transform: scale(1.15);
  border-color: var(--accent);
  box-shadow: 
    0 0 20px rgba(0, 255, 255, 0.5),
    0 0 40px rgba(0, 255, 255, 0.3),
    0 4px 15px rgba(0, 0, 0, 0.3);
}

.suno-music-btn:hover img {
  transform: scale(1.05);
}

body.light .suno-music-btn:hover {
  border-color: var(--accent);
  box-shadow: 
    0 0 20px rgba(59, 130, 246, 0.4),
    0 0 40px rgba(59, 130, 246, 0.2),
    0 4px 15px rgba(0, 0, 0, 0.2);
}

/* ===== Music Modal ===== */
.music-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
  z-index: 9998;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.music-modal-overlay.show {
  opacity: 1;
  visibility: visible;
}

.music-modal {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.9);
  width: 90%;
  max-width: 1000px;
  max-height: 80vh;
  background: linear-gradient(135deg, rgba(15, 15, 25, 0.98) 0%, rgba(25, 25, 40, 0.95) 100%);
  border: 1px solid rgba(0, 255, 255, 0.2);
  border-radius: 20px;
  box-shadow: 
    0 25px 80px rgba(0, 0, 0, 0.6),
    0 0 40px rgba(0, 255, 255, 0.1);
  z-index: 9999;
  opacity: 0;
  visibility: hidden;
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: row;
  overflow: hidden;
  isolation: isolate; /* Prevent child z-index leaking out of modal */
}

/* When playlist is open, extend modal width - don't shrink content */
.music-modal.playlist-open {
  max-width: 1280px;
}

.music-modal.show {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, -50%) scale(1);
}

.music-modal.minimized {
  top: auto;
  left: auto;
  bottom: 20px;
  right: 20px;
  transform: none;
  width: 360px;
  max-height: none;
  height: auto;
  border-radius: 16px;
}

/* Light mode modal */
body.light .music-modal {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.98) 0%, rgba(245, 247, 250, 0.95) 100%);
  border-color: rgba(59, 130, 246, 0.3);
  box-shadow: 
    0 25px 80px rgba(0, 0, 0, 0.2),
    0 0 40px rgba(59, 130, 246, 0.1);
}

/* Modal Header */
.music-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

body.light .music-modal-header {
  border-bottom-color: rgba(0, 0, 0, 0.1);
}

.music-modal-title {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 1.1rem;
  font-weight: 600;
  color: #fff;
}

.music-modal-title i {
  color: var(--accent);
}

body.light .music-modal-title {
  color: #1a1a2e;
}

.music-modal-controls {
  display: flex;
  gap: 8px;
}

.music-modal-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border: none;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.7);
  cursor: pointer;
  transition: all 0.2s ease;
}

.music-modal-btn:hover {
  background: rgba(0, 255, 255, 0.2);
  color: #0ff;
}

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

body.light .music-modal-btn {
  background: rgba(0, 0, 0, 0.05);
  color: rgba(0, 0, 0, 0.6);
}

body.light .music-modal-btn:hover {
  background: rgba(59, 130, 246, 0.2);
  color: #3b82f6;
}

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

/* Album Grid */
.music-album-grid {
  display: grid !important;
  grid-template-columns: repeat(4, 1fr) !important;
  gap: 24px !important;
  padding: 28px !important;
  overflow-y: auto;
  max-height: calc(80vh - 180px);
  isolation: isolate;
}

/* When playlist sidebar is open, reduce to 3 columns */
.music-modal.playlist-open .music-album-grid {
  grid-template-columns: repeat(3, 1fr) !important;
}

.music-modal.minimized .music-album-grid {
  display: none;
}

/* Album Card */
.album-card {
  position: relative;
  width: 100%;
  height: 0;
  padding-bottom: 100%; /* Forces perfect 1:1 square */
  border-radius: 12px;
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  background: rgba(255, 255, 255, 0.05);
  backface-visibility: hidden;
  -webkit-mask-image: -webkit-radial-gradient(white, black);
  will-change: transform;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

body.light .album-card {
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
  border-color: rgba(0, 0, 0, 0.1);
}

.album-card.playing {
  border: 2px solid var(--accent);
  box-shadow: 0 0 25px rgba(0, 255, 255, 0.4);
}

.album-card img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.album-card:hover {
  z-index: 20;
  transform: translateY(-4px) scale(1.02);
  box-shadow:
    0 12px 30px rgba(0, 0, 0, 0.6),
    0 0 20px rgba(0, 255, 255, 0.2);
}

.album-card:focus-within {
  z-index: 20;
}

.album-card:hover img {
  transform: scale(1.03);
}

.album-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.9) 0%, transparent 50%);
  opacity: 0;
  transition: opacity 0.3s ease;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 14px;
  pointer-events: none; /* Let clicks pass to the card if needed */
}

.album-card:hover .album-card-overlay {
  opacity: 1;
}

.album-card-title {
  font-size: 0.75rem;
  font-weight: 600;
  color: #fff;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.album-card-play {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.8);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(0, 255, 255, 0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: all 0.3s ease;
  color: #000;
  font-size: 18px;
}

.album-card:hover .album-card-play {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

/* Music Player (in modal) */
.music-player {
  padding: 16px 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(0, 0, 0, 0.3);
}

body.light .music-player {
  border-top-color: rgba(0, 0, 0, 0.1);
  background: rgba(0, 0, 0, 0.05);
}

.music-player-info {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.music-player-cover {
  width: 48px;
  height: 48px;
  border-radius: 8px;
  object-fit: cover;
}

.music-player-details {
  flex: 1;
  min-width: 0;
}

.music-player-title {
  font-size: 0.9rem;
  font-weight: 600;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

body.light .music-player-title {
  color: #1a1a2e;
}

.music-player-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
}

.music-player-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border: none;
  border-radius: 50%;
  background: transparent;
  color: rgba(255, 255, 255, 0.7);
  cursor: pointer;
  transition: all 0.2s ease;
}

.music-player-btn:hover {
  color: #0ff;
  transform: scale(1.1);
}

.music-player-btn.play-btn {
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, #0ff 0%, #00d4ff 100%);
  color: #000;
}

.music-player-btn.play-btn:hover {
  transform: scale(1.1);
  box-shadow: 0 0 20px rgba(0, 255, 255, 0.5);
}

body.light .music-player-btn {
  color: rgba(0, 0, 0, 0.6);
}

body.light .music-player-btn:hover {
  color: #3b82f6;
}

body.light .music-player-btn.play-btn {
  background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
  color: #fff;
}

/* Music progress bar */
.music-progress-container {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 12px;
}

.music-progress-bar {
  flex: 1;
  height: 4px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 2px;
  cursor: pointer;
  position: relative;
}

.music-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #0ff, #00d4ff);
  border-radius: 2px;
  width: 0%;
  transition: width 0.1s linear;
}

.music-progress-time {
  font-size: 0.7rem;
  color: rgba(255, 255, 255, 0.5);
  min-width: 40px;
}

body.light .music-progress-bar {
  background: rgba(0, 0, 0, 0.1);
}

body.light .music-progress-fill {
  background: linear-gradient(90deg, #3b82f6, #2563eb);
}

body.light .music-progress-time {
  color: rgba(0, 0, 0, 0.5);
}

/* Mini Player */
.mini-music-player {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 300px;
  background: linear-gradient(135deg, rgba(15, 15, 25, 0.98) 0%, rgba(25, 25, 40, 0.95) 100%);
  border: 1px solid rgba(0, 255, 255, 0.3);
  border-radius: 16px;
  padding: 16px;
  box-shadow: 
    0 15px 50px rgba(0, 0, 0, 0.5),
    0 0 30px rgba(0, 255, 255, 0.15);
  z-index: 9997;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: all 0.3s ease;
}

.mini-music-player.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

body.light .mini-music-player {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.98) 0%, rgba(245, 247, 250, 0.95) 100%);
  border-color: rgba(59, 130, 246, 0.3);
  box-shadow: 
    0 15px 50px rgba(0, 0, 0, 0.2),
    0 0 30px rgba(59, 130, 246, 0.1);
}

.mini-player-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.mini-player-cover {
  width: 256px;
  height: 256px;
  border-radius: 12px;
  object-fit: cover;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

.mini-player-header .music-player-title {
  text-align: center;
  font-size: 1rem;
  max-width: 256px;
  word-wrap: break-word;
  overflow-wrap: break-word;
  line-height: 1.4;
}

.mini-player-actions {
  position: absolute;
  top: 12px;
  right: 12px;
  display: flex;
  gap: 6px;
}

.mini-player-actions {
  display: flex;
  gap: 6px;
  flex-shrink: 0;
}

.mini-player-expand,
.mini-player-close {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border: none;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.7);
  cursor: pointer;
  font-size: 10px;
  transition: all 0.2s ease;
}

.mini-player-expand:hover {
  background: rgba(0, 255, 255, 0.2);
  color: #0ff;
}

.mini-player-close:hover {
  background: rgba(239, 68, 68, 0.2);
  color: #ef4444;
}

/* Playlist Indicator in Mini Player */
.mini-playlist-indicator {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(0, 255, 255, 0.15);
  border: 1px solid rgba(0, 255, 255, 0.3);
  color: #0ff;
  box-shadow: 0 0 12px rgba(0, 255, 255, 0.2);
  animation: miniPulse 2s infinite;
  margin-top: -8px; /* Slight adjust */
}

@keyframes miniPulse {
  0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(0, 255, 255, 0.4); }
  70% { transform: scale(1.1); box-shadow: 0 0 0 6px rgba(0, 255, 255, 0); }
  100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(0, 255, 255, 0); }
}

body.light .mini-playlist-indicator {
  background: rgba(59, 130, 246, 0.15);
  border-color: rgba(59, 130, 246, 0.3);
  color: #3b82f6;
  box-shadow: 0 0 12px rgba(59, 130, 246, 0.2);
  animation: miniPulseLight 2s infinite;
}

@keyframes miniPulseLight {
  0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(59, 130, 246, 0.4); }
  70% { transform: scale(1.1); box-shadow: 0 0 0 6px rgba(59, 130, 246, 0); }
  100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(59, 130, 246, 0); }
}

/* Mini Shuffle Active State */
.mini-music-player .shuffle-btn.active {
  color: #0ff;
  background: rgba(0, 255, 255, 0.1);
  box-shadow: 0 0 10px rgba(0, 255, 255, 0.2);
}

body.light .mini-music-player .shuffle-btn.active {
  color: #3b82f6;
  background: rgba(59, 130, 246, 0.1);
  box-shadow: 0 0 10px rgba(59, 130, 246, 0.2);
}

/* ===== Music Player Extra Features ===== */

/* Music Modal Flex Layout */
.music-modal {
  display: flex;
  flex-direction: row;
}

.music-modal-content {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
}

/* Playlist Sidebar (Spotify-like) */
.music-playlist-sidebar {
  width: 0;
  min-width: 0;
  max-width: 0;
  background: rgba(0, 0, 0, 0.3);
  border-right: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  opacity: 0;
  transition: width 0.35s cubic-bezier(0.16, 1, 0.3, 1),
              min-width 0.35s cubic-bezier(0.16, 1, 0.3, 1),
              max-width 0.35s cubic-bezier(0.16, 1, 0.3, 1),
              opacity 0.25s ease;
}

.music-modal.playlist-open .music-playlist-sidebar {
  width: 300px;
  min-width: 300px;
  max-width: 300px;
  opacity: 1;
}

body.light .music-playlist-sidebar {
  background: rgba(0, 0, 0, 0.05);
  border-right-color: rgba(0, 0, 0, 0.1);
}

.playlist-sidebar-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

body.light .playlist-sidebar-header {
  border-bottom-color: rgba(0, 0, 0, 0.1);
}

.playlist-sidebar-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1rem;
  font-weight: 600;
  color: #fff;
}

/* Playlist custom icon image */
.playlist-icon-img {
  width: 24px;
  height: 24px;
  object-fit: contain;
}

.playlist-toggle-icon {
  width: 20px;
  height: 20px;
  object-fit: contain;
}

body.light .playlist-sidebar-title {
  color: #1a1a2e;
}

/* Playlist header action buttons */
.playlist-header-actions {
  display: flex;
  gap: 6px;
}

.playlist-action-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border: none;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.7);
  cursor: pointer;
  font-size: 0.75rem;
  transition: all 0.2s ease;
}

.playlist-action-btn:hover {
  background: rgba(0, 255, 255, 0.2);
  color: var(--accent);
}

#playlist-clear-btn:hover {
  background: rgba(239, 68, 68, 0.2);
  color: #ef4444;
}

#play-playlist-btn:hover {
  background: rgba(34, 197, 94, 0.2);
  color: #22c55e;
}

/* Playlist mode indicator */
.playlist-mode-indicator {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px;
  background: linear-gradient(135deg, rgba(0, 255, 255, 0.15) 0%, rgba(59, 130, 246, 0.15) 100%);
  color: var(--accent);
  font-size: 0.8rem;
  font-weight: 600;
  border-bottom: 1px solid rgba(0, 255, 255, 0.2);
}

body.light .playlist-mode-indicator {
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.15) 0%, rgba(59, 130, 246, 0.1) 100%);
  color: #3b82f6;
  border-bottom-color: rgba(59, 130, 246, 0.2);
}

/* Playlist playing badge in header */
.playlist-playing-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  background: linear-gradient(135deg, rgba(0, 255, 255, 0.2) 0%, rgba(0, 200, 200, 0.15) 100%);
  border-radius: 12px;
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--accent);
  margin-left: 10px;
}

body.light .playlist-playing-badge {
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.2) 0%, rgba(59, 130, 246, 0.15) 100%);
  color: #3b82f6;
}

/* Album card star button (add to playlist) */
.album-card-star {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 28px;
  height: 28px;
  border: none;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.6);
  color: rgba(255, 255, 255, 0.7);
  cursor: pointer;
  font-size: 0.8rem;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: all 0.2s ease;
  z-index: 5;
}

.album-card:hover .album-card-star {
  opacity: 1;
}

.album-card-star:hover {
  background: rgba(0, 0, 0, 0.8);
  transform: scale(1.1);
}

.album-card-star.added {
  color: #fbbf24;
  opacity: 1;
}

.album-card-star.added i {
  font-weight: 900;
}

.playlist-items {
  flex: 1;
  overflow-y: auto;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

/* Playlist count badge */
.playlist-count-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  border-radius: 10px;
  background: var(--accent);
  color: #000;
  font-size: 0.7rem;
  font-weight: 700;
  line-height: 1;
}

body.light .playlist-count-badge {
  background: #3b82f6;
  color: #fff;
}

/* Playlist empty state */
.playlist-empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 40px 20px;
  color: rgba(255, 255, 255, 0.3);
  text-align: center;
}

.playlist-empty-state i {
  font-size: 2rem;
  opacity: 0.5;
}

.playlist-empty-state p {
  font-size: 0.85rem;
  margin: 0;
  line-height: 1.4;
}

body.light .playlist-empty-state {
  color: rgba(0, 0, 0, 0.3);
}

.playlist-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.2s ease;
  border-left: 3px solid transparent;
}

.playlist-item:hover {
  background: rgba(0, 255, 255, 0.1);
  border-left-color: rgba(0, 255, 255, 0.3);
}

.playlist-item.active {
  background: rgba(0, 255, 255, 0.15);
  border-left-color: var(--accent);
}

body.light .playlist-item:hover {
  background: rgba(59, 130, 246, 0.1);
  border-left-color: rgba(59, 130, 246, 0.3);
}

body.light .playlist-item.active {
  background: rgba(59, 130, 246, 0.15);
  border-left-color: #3b82f6;
}

.playlist-item-number {
  font-size: 0.7rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.35);
  min-width: 18px;
  text-align: center;
  flex-shrink: 0;
}

.playlist-item.active .playlist-item-number {
  color: var(--accent);
}

body.light .playlist-item-number {
  color: rgba(0, 0, 0, 0.35);
}

body.light .playlist-item.active .playlist-item-number {
  color: #3b82f6;
}

.playlist-item-cover {
  width: 40px;
  height: 40px;
  border-radius: 6px;
  object-fit: cover;
  flex-shrink: 0;
}

.playlist-item-info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.playlist-item-title {
  font-size: 0.8rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.9);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

body.light .playlist-item-title {
  color: rgba(0, 0, 0, 0.85);
}

.playlist-item-playing {
  font-size: 0.65rem;
  color: var(--accent);
}

body.light .playlist-item-playing {
  color: #3b82f6;
}

.playlist-item-remove {
  background: transparent;
  border: none;
  color: rgba(255, 255, 255, 0.3);
  cursor: pointer;
  padding: 6px;
  border-radius: 6px;
  transition: all 0.2s ease;
  opacity: 0;
  flex-shrink: 0;
}

.playlist-item:hover .playlist-item-remove {
  opacity: 1;
}

.playlist-item-remove:hover {
  background: rgba(239, 68, 68, 0.2);
  color: #ef4444;
}

/* Playlist Toggle Button Active State */
.playlist-toggle-btn.active {
  color: #ef4444 !important;
  background: rgba(239, 68, 68, 0.2);
}

/* Add to Playlist Button */
.add-playlist-btn i {
  color: rgba(255, 255, 255, 0.6);
  transition: color 0.2s ease;
}

.add-playlist-btn:hover i,
.add-playlist-btn.added i {
  color: #ef4444;
}

/* Volume Container in Player */
.player-volume-container {
  display: flex;
  align-items: center;
  gap: 6px;
}

.player-volume-slider {
  width: 60px;
  height: 4px;
  -webkit-appearance: none;
  appearance: none;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 2px;
  cursor: pointer;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.player-volume-container:hover .player-volume-slider {
  opacity: 1;
}

.player-volume-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--accent);
  cursor: pointer;
}

/* Player Extras Row */
.music-player-extras {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

body.light .music-player-extras {
  border-top-color: rgba(0, 0, 0, 0.1);
}

/* Speed Control */
.player-speed-control {
  display: flex;
  gap: 6px;
}

.player-speed-control .speed-btn {
  padding: 4px 10px;
  font-size: 0.7rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.5);
  background: rgba(255, 255, 255, 0.1);
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.player-speed-control .speed-btn:hover {
  background: rgba(0, 255, 255, 0.2);
  color: #0ff;
}

.player-speed-control .speed-btn.active {
  background: rgba(0, 255, 255, 0.3);
  color: #0ff;
}

body.light .player-speed-control .speed-btn {
  color: rgba(0, 0, 0, 0.5);
  background: rgba(0, 0, 0, 0.05);
}

body.light .player-speed-control .speed-btn:hover,
body.light .player-speed-control .speed-btn.active {
  background: rgba(59, 130, 246, 0.2);
  color: #3b82f6;
}

/* Download Button */
.player-download-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  transition: all 0.2s ease;
}

.player-download-btn:hover {
  background: rgba(0, 255, 255, 0.2);
  color: #0ff;
}

body.light .player-download-btn {
  background: rgba(0, 0, 0, 0.05);
  color: rgba(0, 0, 0, 0.6);
}

body.light .player-download-btn:hover {
  background: rgba(59, 130, 246, 0.2);
  color: #3b82f6;
}

/* Shuffle Button Active State */
.shuffle-btn.active {
  color: var(--accent) !important;
  background: rgba(0, 255, 255, 0.2);
}

body.light .shuffle-btn.active {
  color: #3b82f6 !important;
  background: rgba(59, 130, 246, 0.2);
}

/* Fix Suno Button for Cross-Locale Consistency */
.suno-music-btn {
  flex-shrink: 0;
  width: 40px !important;
  height: 40px !important;
  min-width: 40px;
  max-width: 40px;
}

/* Mini Player Volume */
.mini-player-volume {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 12px;
}

.mini-volume-slider {
  width: 100%;
  max-width: 200px;
  height: 4px;
  -webkit-appearance: none;
  appearance: none;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 2px;
  cursor: pointer;
}

.mini-volume-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--accent);
  cursor: pointer;
  box-shadow: 0 0 8px rgba(0, 255, 255, 0.5);
}

body.light .mini-volume-slider {
  background: rgba(0, 0, 0, 0.1);
}

body.light .mini-volume-slider::-webkit-slider-thumb {
  background: #3b82f6;
  box-shadow: 0 0 8px rgba(59, 130, 246, 0.5);
}

/* Album Card Image Clipping Fix */
.album-card img {
  border-radius: 12px;
}

/* Focus visible for accessibility */
.album-card:focus-visible,
.playlist-item:focus-visible,
.music-player-btn:focus-visible,
.playlist-action-btn:focus-visible,
.album-card-star:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  .album-card,
  .album-card img,
  .playlist-item,
  .music-playlist-sidebar,
  .music-modal {
    transition: none !important;
  }
  .album-card:hover {
    transform: none;
  }
}

/* End of styles.css */
