/* Reset e Variáveis */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  /* Paleta Base RyZeHub - DARK MODE (padrão) */
  --dark-bg: #0f172a;
  --light-bg: #1e293b;
  --text-light: #f1f5f9;
  --text-gray: #94a3b8;

  /* Cores por Página - Início (padrão) */
  --primary-color: #6366f1;
  --secondary-color: #8b5cf6;
  --accent-color: #ec4899;
}

/* ===== LIGHT MODE ===== */
html.light-mode {
  --dark-bg: #faf9f7;
  --light-bg: #f5f3f0;
  --text-light: #1a1512;
  --text-gray: #64748b;
}

html.light-mode body {
  background-color: #faf9f7;
  color: #1a1512;
}

/* ─── NAVBAR ─── */
html.light-mode .navbar {
  background: rgba(250, 249, 247, 0.95) !important;
  backdrop-filter: blur(16px) !important;
  -webkit-backdrop-filter: blur(16px) !important;
  border-bottom-color: rgba(99, 102, 241, 0.1) !important;
  box-shadow: none !important;
}

html.light-mode .navbar.scrolled {
  background: rgba(250, 249, 247, 0.99) !important;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08) !important;
}

html.light-mode .nav-link {
  color: #1a1512;
}

html.light-mode .nav-link.active {
  color: var(--primary-color);
}

html.light-mode .logo {
  color: #1a1512;
}

html.light-mode .logo span {
  background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

html.light-mode .nav-menu.active {
  background: rgba(250, 249, 247, 0.98);
  border-bottom-color: rgba(99, 102, 241, 0.15);
}

html.light-mode .hamburger span {
  background: #1a1512;
}

/* ─── FOOTER ─── */
html.light-mode .footer {
  background: #f5f3f0;
  border-top-color: rgba(0, 0, 0, 0.08);
  color: #1a1512;
}

/* ─── BANNERS — imagem correta por página ─── */

/* Index (hero com vídeo — só troca o overlay) */
html.light-mode body.page-inicio .hero {
  background: linear-gradient(135deg, rgba(250, 249, 247, 0), rgba(245, 243, 240, 0));
}

/* Música */
html.light-mode body.page-musica .page-hero {
  background:
    linear-gradient(135deg, rgba(250, 249, 247, 0.42), rgba(240, 244, 252, 0.48)),
    url('../images/banner-musica.jpg');
  background-size: cover;
  background-position: center;
}

/* Livros */
html.light-mode body.page-livros .page-hero {
  background:
    linear-gradient(135deg, rgba(250, 249, 247, 0.42), rgba(240, 244, 252, 0.48)),
    url('../images/banner-livros.jpg');
  background-size: cover;
  background-position: center;
}

/* Roupa */
html.light-mode body.page-roupa .page-hero {
  background:
    linear-gradient(135deg, rgba(250, 249, 247, 0.42), rgba(240, 244, 252, 0.48)),
    url('../images/banner-roupa.jpg');
  background-size: cover;
  background-position: center;
}

/* Sobre */
html.light-mode body.page-sobre .page-hero {
  background:
    linear-gradient(135deg, rgba(250, 249, 247, 0.42), rgba(240, 244, 252, 0.48)),
    url('../images/banner-sobre.jpg');
  background-size: cover;
  background-position: center;
}

/* Contacto */
html.light-mode body.page-contacto .page-hero {
  background:
    linear-gradient(135deg, rgba(250, 249, 247, 0.42), rgba(240, 244, 252, 0.48)),
    url('../images/banner-contacto.jpg');
  background-size: cover;
  background-position: center;
}

/* Definições */
html.light-mode body.page-blog .page-hero {
  background-color: #fef9e7;
}

html.light-mode body.page-definicoes .settings-hero {
  background:
    linear-gradient(135deg, rgba(250, 249, 247, 0.42), rgba(240, 244, 252, 0.48)),
    url('../images/banner-definicoes.jpg');
  background-size: cover;
  background-position: center;
}

/* Pulse overlay — manter animação, apenas reduzir intensidade */
html.light-mode .page-hero::before,
html.light-mode .settings-hero::before {
  opacity: 0.5;
}

/* Texto dos banners em light mode */
html.light-mode .page-hero p,
html.light-mode .settings-hero p {
  color: #1e293b;
  text-shadow: 0 1px 3px rgba(255, 255, 255, 0.6);
}

/* ─── HEADINGS (conteúdo geral) ─── */
html.light-mode h1,
html.light-mode h2,
html.light-mode h3,
html.light-mode h4 {
  color: #1a1512;
}

/* EXCEPÇÃO: Secções CTA com gradiente — texto fica sempre branco */
html.light-mode .cta-section h1,
html.light-mode .cta-section h2,
html.light-mode .cta-section h3,
html.light-mode .cta-section p,
html.light-mode .cta-content h2,
html.light-mode .cta-content p,
html.light-mode .cta-content-epic h2,
html.light-mode .cta-content-epic p {
  color: #ffffff !important;
}

/* ─── LINKS ─── */
html.light-mode a:not(.btn):not(.nav-link):not(.logo):not(.platform-btn) {
  color: var(--primary-color);
}

/* ─── CARDS GERAIS ─── */
html.light-mode .card,
html.light-mode .livro-card,
html.light-mode .musica-card,
html.light-mode .produto-card,
html.light-mode .faq-item {
  background: #ffffff;
  border: 1px solid #e5e3df;
  color: #1a1512;
}

html.light-mode .card:hover,
html.light-mode .livro-card:hover,
html.light-mode .musica-card:hover,
html.light-mode .produto-card:hover {
  background: #fafafa;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.08);
}

html.light-mode .card h3,
html.light-mode .livro-card h3,
html.light-mode .musica-card h3,
html.light-mode .produto-card h3 {
  color: #1a1512;
}

html.light-mode .card p,
html.light-mode .livro-card p,
html.light-mode .musica-card p {
  color: #64748b;
}

/* Stat cards e info cards */
html.light-mode .stat-card,
html.light-mode .info-card {
  background: #ffffff;
  border: 1px solid #e5e3df;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

/* Hover em light mode — só sombra/borda; transform é gerido pelo JS */
html.light-mode .stat-card:hover {
  box-shadow: 0 20px 50px rgba(99, 102, 241, 0.25) !important;
  border-color: var(--primary-color) !important;
  background: #f8f9ff !important;
}

/* EP card (página Música) */
html.light-mode .ep-card {
  background: #ffffff;
  border-color: #e5e3df;
}

html.light-mode .ep-card:hover {
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.1);
}

/* ─── BOTÕES — lógica correcta ─── */

/* 1. Botões de PLATAFORMAS: mantêm sempre a cor da marca */
html.light-mode .btn-spotify,
html.light-mode .platform-btn.spotify {
  background: #1db954 !important;
  color: #ffffff !important;
  border-color: #1db954 !important;
}

html.light-mode .btn-youtube,
html.light-mode .platform-btn.youtube {
  background: #ff0000 !important;
  color: #ffffff !important;
  border-color: #ff0000 !important;
}

html.light-mode .btn-soundcloud,
html.light-mode .platform-btn.soundcloud {
  background: #ff5500 !important;
  color: #ffffff !important;
  border-color: #ff5500 !important;
}

/* 2. Botões de FILTRO: mantêm estilo outline/transparente */
html.light-mode .filtro-btn {
  background: transparent !important;
  color: var(--text-gray) !important;
  border: 2px solid rgba(0, 0, 0, 0.2) !important;
  box-shadow: none !important;
}

html.light-mode .filtro-btn:hover,
html.light-mode .filtro-btn.active {
  background: var(--primary-color) !important;
  color: #ffffff !important;
  border-color: var(--primary-color) !important;
}

/* 3. Botão RESET (Definições): mantém estilo vermelho outline */
html.light-mode .btn-reset {
  background: rgba(239, 68, 68, 0.08) !important;
  color: #ef4444 !important;
  border: 2px solid #ef4444 !important;
  box-shadow: none !important;
}

html.light-mode .btn-reset:hover {
  background: #ef4444 !important;
  color: #ffffff !important;
}

/* 4. Botões CTA dentro de secções gradiente — brancos, como no dark mode */
html.light-mode
  .cta-section
  .btn:not(.btn-spotify):not(.btn-youtube):not(.btn-soundcloud):not(.platform-btn),
html.light-mode .cta-section .cta-button {
  background: #ffffff !important;
  color: var(--primary-color) !important;
  border: none !important;
}

html.light-mode
  .cta-section
  .btn:not(.btn-spotify):not(.btn-youtube):not(.btn-soundcloud):not(.platform-btn):hover {
  background: rgba(255, 255, 255, 0.9) !important;
  transform: translateY(-3px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15) !important;
}

/* 5. Botões GENÉRICOS (btn-primary, a.btn, links como botões, submit) */
html.light-mode
  .btn-primary:not(.platform-btn):not(.btn-spotify):not(.btn-youtube):not(.btn-soundcloud),
html.light-mode
  .btn:not(.btn-spotify):not(.btn-youtube):not(.btn-soundcloud):not(.platform-btn):not(
    .filtro-btn
  ):not(.btn-secondary):not(.btn-outline),
html.light-mode a.btn:not(.btn-spotify):not(.btn-youtube):not(.btn-soundcloud):not(.platform-btn),
html.light-mode input[type='submit'],
html.light-mode input[type='button'] {
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color)) !important;
  color: #ffffff !important;
  border: none !important;
}

html.light-mode .btn-primary:not(.platform-btn):hover,
html.light-mode
  .btn:not(.btn-spotify):not(.btn-youtube):not(.btn-soundcloud):not(.platform-btn):not(
    .filtro-btn
  ):not(.btn-secondary):not(.btn-outline):hover {
  box-shadow: 0 8px 25px rgba(99, 102, 241, 0.35) !important;
  transform: translateY(-2px);
}

/* 6. Botões SECUNDÁRIOS — mesma lógica que primary, mantém identidade visual */
html.light-mode
  .btn-secondary:not(.btn-spotify):not(.btn-youtube):not(.btn-soundcloud):not(.platform-btn):not(
    .btn-outline
  ) {
  background: linear-gradient(135deg, var(--secondary-color), var(--primary-color)) !important;
  color: #ffffff !important;
  border: none !important;
}

html.light-mode
  .btn-secondary:not(.btn-spotify):not(.btn-youtube):not(.btn-soundcloud):not(.platform-btn):not(
    .btn-outline
  ):hover {
  box-shadow: 0 8px 25px rgba(99, 102, 241, 0.35) !important;
  transform: translateY(-2px);
}

/* btn-outline: borda visible e texto visible */
html.light-mode .btn-outline {
  background: transparent !important;
  border: 2px solid var(--primary-color) !important;
  color: var(--primary-color) !important;
}

html.light-mode .btn-outline:hover {
  background: var(--primary-color) !important;
  color: #ffffff !important;
}

/* ─── INPUTS & FORMS ─── */
html.light-mode
  input:not([type='checkbox']):not([type='radio']):not([type='submit']):not([type='button']),
html.light-mode textarea,
html.light-mode select {
  background: #ffffff;
  border: 2px solid #e5e3df;
  color: #1a1512;
}

html.light-mode input::placeholder,
html.light-mode textarea::placeholder {
  color: #94a3b8;
}

html.light-mode input:focus,
html.light-mode textarea:focus,
html.light-mode select:focus {
  border-color: var(--primary-color);
  background: #ffffff;
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

/* ─── BADGES ─── */
html.light-mode .badge {
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  color: white;
  box-shadow: 0 2px 10px rgba(99, 102, 241, 0.3);
}

/* ─── TIMELINE (Sobre) ─── */
html.light-mode .timeline::before {
  background: #e5e3df;
}

html.light-mode .timeline-item::before {
  background: var(--primary-color);
  box-shadow:
    0 0 0 4px #faf9f7,
    0 0 0 6px var(--primary-color);
}

/* Caixas da timeline: fundo branco + seta da cor correcta */
html.light-mode .timeline-content {
  background: #ffffff;
  border-color: #e5e3df;
}

html.light-mode .timeline-content::before {
  border-right-color: transparent;
}

html.light-mode .timeline-item:hover .timeline-content {
  border-color: var(--primary-color);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.1);
}

/* ─── SETTINGS (Definições) ─── */
html.light-mode .setting-item {
  background: #ffffff;
  border: 1px solid #e5e3df;
}

html.light-mode .setting-item:hover {
  background: #fafafa;
  border-color: var(--primary-color);
}

html.light-mode .settings-info-box {
  background: #ffffff;
  border-left-color: var(--primary-color);
}

html.light-mode .preview-card {
  background: #ffffff;
  border-color: #e5e3df;
}

/* ─── CARDS UNIVERSO (Homepage) ─── */
html.light-mode .universo-card {
  background: #ffffff;
  border-color: #e5e3df;
}

html.light-mode .universo-card:hover {
  background: #fafafa;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.08);
  border-color: var(--primary-color);
}

html.light-mode .universo-glow {
  background: radial-gradient(circle, var(--primary-color), transparent);
  opacity: 0.15;
}

html.light-mode .universo-card:hover .universo-glow {
  opacity: 0.3;
}

/* ─── FAQ (Contacto) ─── */
html.light-mode .faq-item {
  background: #ffffff;
  border-color: #e5e3df;
}

html.light-mode .faq-item.active {
  border-color: var(--primary-color);
}

/* ─── SOBRE MIMI — fotos e texto ─── */
html.light-mode .sobre-foto {
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.12);
}

/* ─── INDEX — botões épicos ─── */
/* btn-secondary-epic: outline com texto visível (fundo claro em light mode) */
html.light-mode .btn-secondary-epic {
  color: var(--primary-color) !important;
  border-color: var(--primary-color) !important;
  background: transparent !important;
}

html.light-mode .btn-secondary-epic:hover {
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color)) !important;
  color: #ffffff !important;
  border-color: transparent !important;
}

/* btn-lancamento: usa a cor da página, não precisa de override */

/* btn-cta (homepage final) — dentro de secção CTA gradiente, fica branco */
html.light-mode .btn-cta {
  background: #ffffff !important;
  color: var(--primary-color) !important;
}

/* ─── MUSICA — secções com fundo escuro em dark mode ─── */
html.light-mode .filtros-section {
  background: #f5f3f0;
}

/* ─── SECÇÕES com fundo var(--dark-bg) que ficam muito claras ─── */
/* Garantir contraste nas stat-card dentro de stats-section clara */
html.light-mode .stats-section {
  background: #f5f3f0;
}

html.light-mode .stat-card {
  background: #ffffff;
  border-color: #e5e3df;
}

/* ─── TRACK BUTTONS (Eclipse) ─── */
html.light-mode .track-btn.spotify {
  background: #1db954 !important;
  color: #ffffff !important;
}

html.light-mode .track-btn.youtube {
  background: #ff0000 !important;
  color: #ffffff !important;
}

/* ─── ECLIPSE PAGE ─── */
html.light-mode .ep-page-hero {
  background: #f0f4ff;
}

html.light-mode .btn-voltar {
  background: #ffffff;
  color: #1a1512;
  border-color: #e5e3df;
}

html.light-mode .track-item {
  background: #ffffff;
  border-color: #e5e3df;
}

html.light-mode .track-item:hover {
  border-color: var(--primary-color);
  box-shadow: 0 8px 25px rgba(99, 102, 241, 0.12);
}

html.light-mode .track-player {
  background: #f0f4ff;
}

/* ─── INDEX — Cards de Lançamentos e Stats ─── */
html.light-mode .stat-item {
  background: #ffffff;
  border-color: #e5e3df;
}

html.light-mode .lancamento-card {
  background: #ffffff;
  border-color: #e5e3df;
}

html.light-mode .lancamento-info h3 {
  color: #1a1512;
}

html.light-mode .lancamento-info p {
  color: #64748b;
}

/* ─── HERO INDEX — texto legível em light mode ─── */
html.light-mode .hero-subtitle-small {
  color: rgba(255, 255, 255, 0.8) !important;
}

html.light-mode .hero-tagline {
  color: rgba(255, 255, 255, 0.95) !important;
}

html.light-mode .hero-description-epic {
  color: rgba(255, 255, 255, 0.85) !important;
}

html.light-mode .scroll-indicator {
  color: rgba(255, 255, 255, 0.6);
}

/* ─── SOBRE — Cards de Valores e Conquistas ─── */
html.light-mode .valor-card {
  background: #ffffff;
  border-color: #e5e3df;
}

html.light-mode .valor-card h4 {
  color: #1a1512;
}

html.light-mode .valor-card p {
  color: #64748b;
}

html.light-mode .conquistas-section {
  background: #f0f4ff;
}

html.light-mode .conquista-card {
  background: #ffffff;
  border-color: #e5e3df;
}

html.light-mode .conquista-label {
  color: #64748b;
}

/* ─── SOBRE — Texto das caixas da timeline ─── */
html.light-mode .timeline-content {
  background: #ffffff;
  border-color: #e5e3df;
}

html.light-mode .timeline-content p {
  color: #64748b;
}

/* Ano da timeline — borda adapta-se ao fundo da secção */
html.light-mode .timeline-year {
  border-color: #f5f3f0;
}

/* ─── SOBRE — Texto geral ─── */
html.light-mode .sobre-conteudo h2,
html.light-mode .sobre-conteudo h3,
html.light-mode .biografia h3 {
  color: #1a1512;
}

html.light-mode .intro-text,
html.light-mode .biografia p,
html.light-mode .biografia-continuacao p {
  color: #475569;
}

/* ─── MUSICA — Títulos e texto dos cards ─── */
html.light-mode .musica-titulo {
  color: #1a1512 !important;
}

html.light-mode .musica-artista {
  color: #64748b !important;
}

html.light-mode .musica-detalhes span {
  color: #64748b !important;
}

/* ─── MUSICA — Secção filtros ─── */
html.light-mode .musica-section {
  background: #f5f3f0;
}

/* ─── ROUPA — Cards de produtos ─── */
html.light-mode .produto-card {
  background: #ffffff;
  border-color: #e5e3df;
}

html.light-mode .produto-card .produto-info h3 {
  color: #1a1512;
}

html.light-mode .produto-card .produto-info p {
  color: #64748b;
}

html.light-mode .produto-preco {
  color: var(--primary-color);
}

/* ─── CONTACTO — Form e info ─── */
html.light-mode .info-card {
  background: #ffffff;
  border-color: #e5e3df;
}

html.light-mode .info-card h3,
html.light-mode .info-card p {
  color: #1a1512;
}

html.light-mode .faq-question {
  color: #1a1512;
}

html.light-mode .faq-answer {
  color: #64748b;
}

/* ─── DEFINIÇÕES ─── */
html.light-mode .settings-info-box p {
  color: #475569;
}

html.light-mode .preview-section {
  background: #f5f3f0;
}

/* ─── UNIVERSO — Stats badges ─── */
html.light-mode .universo-stats span {
  background: rgba(99, 102, 241, 0.08);
  color: var(--primary-color);
}

/* ─── BADGE de lançamento ─── */
html.light-mode .badge-lancamento {
  background: rgba(15, 23, 42, 0.75);
  color: #ffffff;
}

/* ===== DISABLE CUSTOM CURSOR ===== */
html.disable-custom-cursor,
html.disable-custom-cursor * {
  cursor: auto !important;
}

/* ===== REDUCE ANIMATIONS ===== */
html.reduce-animations *,
html.reduce-animations *::before,
html.reduce-animations *::after {
  animation-duration: 0.01ms !important;
  animation-iteration-count: 1 !important;
  transition-duration: 0.01ms !important;
  scroll-behavior: auto !important;
}

/* CORES POR PÁGINA */
body.page-inicio {
  --primary-color: #6366f1;
  --secondary-color: #8b5cf6;
  --accent-color: #ec4899;
}

body.page-musica {
  --primary-color: #1db954;
  --secondary-color: #84cc16;
  --accent-color: #facc15;
}

body.page-livros {
  --primary-color: #f97316;
  --secondary-color: #fb923c;
  --accent-color: #fbbf24;
}

body.page-roupa {
  --primary-color: #ec4899;
  --secondary-color: #f472b6;
  --accent-color: #d946ef;
}

body.page-sobre {
  --primary-color: #3b82f6;
  --secondary-color: #60a5fa;
  --accent-color: #06b6d4;
}

body.page-contacto {
  --primary-color: #ef4444;
  --secondary-color: #f87171;
  --accent-color: #fb7185;
}

body.page-definicoes {
  --primary-color: #14b8a6;
  --secondary-color: #2dd4bf;
  --accent-color: #5eead4;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background-color: var(--dark-bg);
  color: var(--text-light);
  line-height: 1.6;
  overflow-x: hidden;
}

/* Navbar */
.navbar {
  background: rgba(15, 23, 42, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(99, 102, 241, 0.08);
  padding: 0.85rem 0;
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 1000;
  transition: background 0.3s ease, box-shadow 0.3s ease;
}

.navbar.scrolled {
  background: rgba(15, 23, 42, 0.97);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.35);
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2.5rem;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 2rem;
}

.logo {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--text-light);
  text-decoration: none;
  letter-spacing: 0.5px;
  white-space: nowrap;
  flex-shrink: 0;
}

.logo span {
  background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.nav-menu {
  display: flex;
  list-style: none;
  gap: 1.8rem;
  justify-content: center;
  align-items: center;
}

.nav-link {
  color: var(--text-gray);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  padding: 0 0 0.5rem 0;
  border-radius: 0;
  white-space: nowrap;
  transition: color 0.2s ease;
  position: relative;
}

.nav-link:hover {
  color: var(--primary-color);
  background: none;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--primary-color);
  transition: width 0.3s ease;
}

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

/* HOVER COM COR E GRADIENTE POR PÁGINA */
.nav-link[href='index.html']:hover    { color: #6366f1 !important; }
.nav-link[href='index.html']:hover::after    { background: linear-gradient(90deg, #6366f1, #ec4899); }

.nav-link[href='musica.html']:hover   { color: #1db954 !important; }
.nav-link[href='musica.html']:hover::after   { background: linear-gradient(90deg, #1db954, #facc15); }

.nav-link[href='livros.html']:hover   { color: #f97316 !important; }
.nav-link[href='livros.html']:hover::after   { background: linear-gradient(90deg, #f97316, #fbbf24); }

.nav-link[href='roupa.html']:hover    { color: #ec4899 !important; }
.nav-link[href='roupa.html']:hover::after    { background: linear-gradient(90deg, #ec4899, #d946ef); }

.nav-link[href='sobre.html']:hover    { color: #3b82f6 !important; }
.nav-link[href='sobre.html']:hover::after    { background: linear-gradient(90deg, #3b82f6, #06b6d4); }

.nav-link[href='contacto.html']:hover { color: #ef4444 !important; }
.nav-link[href='contacto.html']:hover::after { background: linear-gradient(90deg, #ef4444, #fb7185); }

.nav-link[href='definicoes.html']:hover { color: #14b8a6 !important; }
.nav-link[href='definicoes.html']:hover::after { background: linear-gradient(90deg, #14b8a6, #5eead4); }

/* LINK ATIVO */
.nav-link.active {
  color: var(--primary-color);
  background: none;
  font-weight: 600;
}

.nav-link.active::after {
  width: 100%;
  background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
  box-shadow: 0 0 8px rgba(99, 102, 241, 0.5);
}

.hamburger {
  display: none;
  flex-direction: column;
  cursor: pointer;
  gap: 5px;
  padding: 0.3rem;
  border-radius: 8px;
  transition: background 0.2s ease;
}

.hamburger:hover {
  background: rgba(255,255,255,0.06);
}

.hamburger span {
  width: 22px;
  height: 2px;
  background: var(--text-light);
  border-radius: 2px;
  transition: 0.25s ease;
  display: block;
}

/* Hero Section */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 2rem;
  background: linear-gradient(135deg, var(--dark-bg) 0%, var(--light-bg) 100%);
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(99, 102, 241, 0.1) 0%, transparent 70%);
  top: -250px;
  right: -250px;
  border-radius: 50%;
}

.hero-content {
  max-width: 800px;
  z-index: 1;
  animation: fadeInUp 1s ease;
}

.hero-title {
  font-size: 3.5rem;
  margin-bottom: 1rem;
  font-weight: 800;
}

.hero-title span {
  background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: 1.5rem;
  color: var(--text-gray);
  margin-bottom: 1rem;
}

.hero-description {
  font-size: 1.1rem;
  color: var(--text-gray);
  margin-bottom: 2rem;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.btn {
  padding: 1rem 2rem;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
  display: inline-block;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  color: white;
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(99, 102, 241, 0.4);
}

.btn-secondary {
  background: transparent;
  color: var(--primary-color);
  border: 2px solid var(--primary-color);
}

.btn-secondary:hover {
  background: var(--primary-color);
  color: white;
}

/* Trabalhos Section */
.trabalhos {
  padding: 5rem 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.section-title {
  text-align: center;
  font-size: 2.5rem;
  margin-bottom: 3rem;
  font-weight: 700;
}

.trabalhos-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.card {
  background: var(--light-bg);
  padding: 2.5rem;
  border-radius: 20px;
  text-align: center;
  transition: all 0.3s ease;
  border: 1px solid rgba(99, 102, 241, 0.1);
}

.card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(99, 102, 241, 0.2);
  border-color: var(--primary-color);
}

.card-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.card h3 {
  font-size: 1.8rem;
  margin-bottom: 1rem;
  color: var(--text-light);
}

.card p {
  color: var(--text-gray);
  margin-bottom: 1.5rem;
  line-height: 1.6;
}

.card-link {
  color: var(--primary-color);
  text-decoration: none;
  font-weight: 600;
  transition: color 0.3s ease;
}

.card-link:hover {
  color: var(--accent-color);
}

/* Footer */
.footer {
  background: var(--light-bg);
  padding: 2rem;
  text-align: center;
  margin-top: 4rem;
  border-top: 1px solid rgba(99, 102, 241, 0.2);
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
}

.social-links {
  margin-top: 1rem;
  display: flex;
  gap: 1.5rem;
  justify-content: center;
}

.social-links a {
  font-size: 1.5rem;
  transition: transform 0.3s ease;
  text-decoration: none;
}

.social-links a:hover {
  transform: scale(1.2);
}

/* Animações */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ─── NAVBAR RESPONSIVA ─── */
@media (max-width: 980px) {
  .nav-container { gap: 1rem; }
  .nav-link { font-size: 0.88rem; }
  .nav-menu { gap: 1.2rem; }
}

@media (max-width: 820px) {
  .nav-container { gap: 0.75rem; }
  .nav-link { font-size: 0.82rem; }
  .nav-menu { gap: 0.8rem; }
  .logo { font-size: 1.5rem; }
}

@media (max-width: 700px) {
  .nav-container {
    grid-template-columns: auto 1fr auto auto;
  }
  .nav-menu { display: none; }
  .hamburger { display: flex; }
  .nav-lang { grid-column: 3; }
  .hamburger { grid-column: 4; }
}

/* ========================================
   MENU MOBILE - ESTILOS ADICIONAIS
   ======================================== */

/* Quando o menu está ativo */
.nav-menu.active {
  display: flex !important;
  position: fixed;
  left: 0;
  top: 64px;
  flex-direction: column;
  background: rgba(12, 18, 36, 0.98);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  width: 100%;
  text-align: center;
  padding: 1.5rem 0 2rem;
  border-bottom: 1px solid rgba(99, 102, 241, 0.12);
  z-index: 999;
  animation: slideDown 0.25s ease;
  gap: 0.25rem;
}

.nav-menu.active .nav-link {
  padding: 0 0 0.4rem;
  font-size: 1rem;
  border-radius: 0;
}

.nav-menu.active {
  gap: 1.4rem;
}

/* Animação do hamburger */
.hamburger.active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

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

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

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



/* ============================================
   CUSTOM CURSOR - SISTEMA NATIVO CSS (SEM JAVASCRIPT)
   ============================================ */

/* Cursores nativos com SVG inline - SEM DELAY, SEM GLITCHES */
@media (pointer: fine) {
  /* Início - Roxo + Rosa */
  body.page-inicio,
  body.page-inicio * {
    cursor:
      url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 20 20"><circle cx="10" cy="10" r="7" fill="%236366f1" opacity="0.8"/><circle cx="10" cy="10" r="5" fill="%23ec4899" opacity="0.6"/><circle cx="10" cy="10" r="3" fill="white" opacity="0.9"/></svg>')
        10 10,
      auto;
  }

  /* Música - Verde + Amarelo */
  body.page-musica,
  body.page-musica * {
    cursor:
      url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 20 20"><circle cx="10" cy="10" r="7" fill="%231DB954" opacity="0.8"/><circle cx="10" cy="10" r="5" fill="%23facc15" opacity="0.6"/><circle cx="10" cy="10" r="3" fill="white" opacity="0.9"/></svg>')
        10 10,
      auto;
  }

  /* Livros - Laranja + Dourado */
  body.page-livros,
  body.page-livros * {
    cursor:
      url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 20 20"><circle cx="10" cy="10" r="7" fill="%23f97316" opacity="0.8"/><circle cx="10" cy="10" r="5" fill="%23fbbf24" opacity="0.6"/><circle cx="10" cy="10" r="3" fill="white" opacity="0.9"/></svg>')
        10 10,
      auto;
  }

  /* Roupa - Rosa + Magenta */
  body.page-roupa,
  body.page-roupa * {
    cursor:
      url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 20 20"><circle cx="10" cy="10" r="7" fill="%23ec4899" opacity="0.8"/><circle cx="10" cy="10" r="5" fill="%23d946ef" opacity="0.6"/><circle cx="10" cy="10" r="3" fill="white" opacity="0.9"/></svg>')
        10 10,
      auto;
  }

  /* Sobre - Azul + Cyan */
  body.page-sobre,
  body.page-sobre * {
    cursor:
      url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 20 20"><circle cx="10" cy="10" r="7" fill="%233b82f6" opacity="0.8"/><circle cx="10" cy="10" r="5" fill="%2306b6d4" opacity="0.6"/><circle cx="10" cy="10" r="3" fill="white" opacity="0.9"/></svg>')
        10 10,
      auto;
  }

  /* Contacto - Vermelho + Coral */
  body.page-contacto,
  body.page-contacto * {
    cursor:
      url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 20 20"><circle cx="10" cy="10" r="7" fill="%23ef4444" opacity="0.8"/><circle cx="10" cy="10" r="5" fill="%23fb7185" opacity="0.6"/><circle cx="10" cy="10" r="3" fill="white" opacity="0.9"/></svg>')
        10 10,
      auto;
  }

  /* Definições - Teal + Turquesa */
  body.page-definicoes,
  body.page-definicoes * {
    cursor:
      url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 20 20"><circle cx="10" cy="10" r="7" fill="%2314b8a6" opacity="0.8"/><circle cx="10" cy="10" r="5" fill="%232dd4bf" opacity="0.6"/><circle cx="10" cy="10" r="3" fill="white" opacity="0.9"/></svg>')
        10 10,
      auto;
  }

  /* Hover em links/botões - cursor maior e pointer */
  a:hover,
  button:hover,
  .btn:hover,
  .nav-link:hover {
    cursor:
      url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><circle cx="12" cy="12" r="9" fill="white" opacity="0.9"/><circle cx="12" cy="12" r="6" fill="%236366f1" opacity="0.7"/><circle cx="12" cy="12" r="3" fill="white" opacity="1"/></svg>')
        12 12,
      pointer !important;
  }

  /* Quando cursor desativado - usar cursor normal mesmo em hover */
  html.disable-custom-cursor a:hover,
  html.disable-custom-cursor button:hover,
  html.disable-custom-cursor .btn:hover,
  html.disable-custom-cursor .nav-link:hover,
  html.disable-custom-cursor input:hover,
  html.disable-custom-cursor textarea:hover {
    cursor: pointer !important;
  }
}

/* Mobile - cursor normal */
@media (pointer: coarse) {
  * {
    cursor: auto !important;
  }
}

/* ─── SELETOR DE IDIOMA NA NAVBAR ─── */
.nav-lang {
  display: flex;
  align-items: center;
  gap: 2px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(99, 102, 241, 0.15);
  border-radius: 10px;
  padding: 0.2rem 0.3rem;
}

.lang-sep {
  color: rgba(148, 163, 184, 0.25);
  font-size: 0.75rem;
  user-select: none;
  padding: 0 1px;
}

.lang-btn {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.8px;
  color: rgba(148, 163, 184, 0.6);
  padding: 0.25rem 0.5rem;
  border-radius: 7px;
  transition: all 0.2s ease;
}

.lang-btn:hover {
  color: var(--text-light);
  background: rgba(255, 255, 255, 0.07);
}

.lang-btn.active {
  color: var(--text-light);
  background: rgba(99, 102, 241, 0.2);
}

html.light-mode .nav-lang {
  background: rgba(0,0,0,0.04);
  border-color: rgba(99, 102, 241, 0.2);
}
html.light-mode .lang-btn { color: #94a3b8; }
html.light-mode .lang-btn:hover { color: #1a1512; background: rgba(0,0,0,0.04); }
html.light-mode .lang-btn.active { color: var(--primary-color); background: rgba(99,102,241,0.1); }
html.light-mode .lang-sep { color: rgba(100, 116, 139, 0.3); }