/* 
 * modern-ux.css 
 * Estilos modernos, Glassmorphism, Micro-interações e Scroll Reveal
 */

/* ==========================================================================
   1. Scroll Reveal (Animações ativadas por rolagem via IntersectionObserver)
   ========================================================================== */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
  will-change: opacity, transform;
}

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

/* Stagger delays for multiple items appearing at once */
.reveal-delay-100 { transition-delay: 100ms; }
.reveal-delay-200 { transition-delay: 200ms; }
.reveal-delay-300 { transition-delay: 300ms; }
.reveal-delay-400 { transition-delay: 400ms; }

/* ==========================================================================
   2. Glassmorphism (Fundo translúcido moderno)
   ========================================================================== */
/* Aplica-se ao Header ou a Cartões Especiais */
.glass-header {
  background: rgba(0, 39, 76, 0.85) !important; /* Azul marinho UFRJ com transparência */
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

/* Modo escuro para Glassmorphism se existir */
body.dark-mode .glass-header {
  background: rgba(10, 25, 47, 0.85) !important;
  border-bottom: 1px solid rgba(100, 255, 218, 0.1); /* Verde secundário */
}

/* Cartões com glassmorphism (opcional) */
.glass-card {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.1);
}

/* ==========================================================================
   3. Micro-interações (Hover Effects e Transições Premium)
   ========================================================================== */

/* Botões */
.btn, .tm-btn, .lang-btn, .scroll-top {
  transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.3s ease, background-color 0.3s ease !important;
}

.btn:hover, .tm-btn:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}

.btn:active, .tm-btn:active {
  transform: translateY(1px) scale(0.98);
}

/* Cartões da Equipe / Alunos / Pesquisadores */
.team-card, .publication-card, .counter-item {
  transition: transform 0.4s ease, box-shadow 0.4s ease, border-color 0.4s ease !important;
}

.team-card:hover, .publication-card:hover, .counter-item:hover {
  transform: translateY(-8px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

body.dark-mode .team-card:hover, body.dark-mode .publication-card:hover {
  box-shadow: 0 15px 30px rgba(100, 255, 218, 0.15); /* Verde brilhante no modo escuro */
}

/* Imagens (Zoom suave) */
.img-hover-zoom {
  overflow: hidden;
  border-radius: 8px;
}
.img-hover-zoom img {
  transition: transform 0.5s ease;
}
.img-hover-zoom:hover img {
  transform: scale(1.05);
}

