/* ===== DESIGN MODERNO - NEOMORFISMO, MICROINTERAÇÕES E NAVEGAÇÃO FLUTUANTE ===== */

/* === 1. PALETA DE CORES MODERNA === */
:root {
  /* Cores principais mais vibrantes */
  --primary: #6366f1;      /* Indigo moderno */
  --secondary: #8b5cf6;    /* Violeta */
  --accent: #06b6d4;       /* Cyan */
  --success: #10b981;      /* Verde esmeralda */
  --warning: #f59e0b;      /* Âmbar */
  --danger: #ef4444;       /* Vermelho */
  
  /* Gradientes modernos */
  --gradient-primary: linear-gradient(135deg, #6366f1, #8b5cf6);
  --gradient-secondary: linear-gradient(135deg, #06b6d4, #3b82f6);
  --gradient-dark: linear-gradient(135deg, #1e293b, #334155);
  
  /* Cores de fundo para neomorfismo */
  --bg-light: #2d3748;
  --bg-dark: #1a202c;
  --shadow-light: rgba(255, 255, 255, 0.1);
  --shadow-dark: rgba(0, 0, 0, 0.3);
}

/* === 2. NAVEGAÇÃO FLUTUANTE MODERNA === */
nav {
  background: rgba(30, 41, 59, 0.85) !important;
  backdrop-filter: blur(20px) !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3) !important;
}

.nav-container {
  padding: 12px 20px !important;
}

.nav-links a {
  position: relative !important;
  padding: 10px 16px !important;
  border-radius: 12px !important;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
  background: transparent !important;
  border: 1px solid transparent !important;
}

.nav-links a:hover {
  background: rgba(255, 255, 255, 0.1) !important;
  transform: translateY(-2px) !important;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2) !important;
  border-color: rgba(255, 255, 255, 0.2) !important;
}

.nav-links a.active {
  background: var(--gradient-primary) !important;
  color: white !important;
  box-shadow: 0 8px 25px rgba(99, 102, 241, 0.4) !important;
}

.nav-links a::after {
  display: none !important;
}

/* === 3. CARDS COM NEOMORFISMO === */
.portfolio-card {
  background: linear-gradient(145deg, var(--bg-light), var(--bg-dark)) !important;
  border-radius: 20px !important;
  box-shadow: 
    20px 20px 60px var(--shadow-dark),
    -20px -20px 60px var(--shadow-light) !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1) !important;
  position: relative !important;
  overflow: hidden !important;
}

.portfolio-card::before {
  content: '' !important;
  position: absolute !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  height: 3px !important;
  background: var(--gradient-primary) !important;
  transform: scaleX(0) !important;
  transition: transform 0.3s ease !important;
}

.portfolio-card:hover {
  transform: translateY(-8px) scale(1.02) !important;
  box-shadow: 
    25px 25px 75px var(--shadow-dark),
    -25px -25px 75px var(--shadow-light) !important;
}

.portfolio-card:hover::before {
  transform: scaleX(1) !important;
}

/* Efeito de brilho interno */
.portfolio-card::after {
  content: '' !important;
  position: absolute !important;
  top: 0 !important;
  left: -100% !important;
  width: 100% !important;
  height: 100% !important;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1), transparent) !important;
  transition: left 0.5s ease !important;
}

.portfolio-card:hover::after {
  left: 100% !important;
}

/* === 4. BOTÕES COM MICROINTERAÇÕES === */
.cta-btn {
  position: relative !important;
  overflow: hidden !important;
  background: var(--gradient-primary) !important;
  border-radius: 12px !important;
  padding: 16px 32px !important;
  font-weight: 600 !important;
  letter-spacing: 0.5px !important;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
  border: none !important;
  cursor: pointer !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 8px !important;
  color: white !important;
  text-decoration: none !important;
}

/* Efeito de brilho */
.cta-btn::before {
  content: '' !important;
  position: absolute !important;
  top: 0 !important;
  left: -100% !important;
  width: 100% !important;
  height: 100% !important;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent) !important;
  transition: left 0.5s ease !important;
}

.cta-btn:hover::before {
  left: 100% !important;
}

.cta-btn:hover {
  transform: translateY(-3px) scale(1.05) !important;
  box-shadow: 0 15px 35px rgba(99, 102, 241, 0.4) !important;
}

.cta-btn:active {
  transform: translateY(-1px) scale(1.02) !important;
}

/* Botão secundário */
.cta-btn.secondary {
  background: transparent !important;
  border: 2px solid var(--primary) !important;
  color: var(--primary) !important;
}

.cta-btn.secondary:hover {
  background: var(--primary) !important;
  color: white !important;
  box-shadow: 0 15px 35px rgba(99, 102, 241, 0.3) !important;
}

/* === 5. MELHORIAS PARA SKILLS === */
.skill-category {
  background: linear-gradient(145deg, var(--bg-light), var(--bg-dark)) !important;
  border-radius: 20px !important;
  box-shadow: 
    15px 15px 45px var(--shadow-dark),
    -15px -15px 45px var(--shadow-light) !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

.skill-category:hover {
  transform: translateY(-5px) !important;
  box-shadow: 
    20px 20px 60px var(--shadow-dark),
    -20px -20px 60px var(--shadow-light) !important;
}

/* === 6. MELHORIAS PARA EXPERIÊNCIA E EDUCAÇÃO === */
.experience-item,
.education-item,
.certification-item {
  background: linear-gradient(145deg, var(--bg-light), var(--bg-dark)) !important;
  border-radius: 16px !important;
  box-shadow: 
    12px 12px 36px var(--shadow-dark),
    -12px -12px 36px var(--shadow-light) !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  transition: all 0.3s ease !important;
}

.experience-item:hover,
.education-item:hover,
.certification-item:hover {
  transform: translateY(-4px) !important;
  box-shadow: 
    16px 16px 48px var(--shadow-dark),
    -16px -16px 48px var(--shadow-light) !important;
}

/* === 7. MELHORIAS PARA O HEADER === */
.hero-content {
  background: rgba(255, 255, 255, 0.05) !important;
  backdrop-filter: blur(20px) !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  border-radius: 24px !important;
  padding: 48px !important;
  box-shadow: 
    0 25px 50px rgba(0, 0, 0, 0.25),
    inset 0 1px 0 rgba(255, 255, 255, 0.1) !important;
}

/* === 8. SEÇÃO DE CONTATO === */
.contact-content {
  display: flex !important;
  justify-content: center !important;
  align-items: center !important;
  min-height: 400px !important;
}

.contact-info {
  background: linear-gradient(145deg, var(--bg-light), var(--bg-dark)) !important;
  border-radius: 20px !important;
  padding: 48px !important;
  text-align: center !important;
  box-shadow: 
    20px 20px 60px var(--shadow-dark),
    -20px -20px 60px var(--shadow-light) !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  max-width: 600px !important;
  width: 100% !important;
}

.contact-info h3 {
  font-size: 2rem !important;
  margin-bottom: 16px !important;
  background: var(--gradient-primary) !important;
  -webkit-background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
  background-clip: text !important;
}

.contact-info p {
  font-size: 1.1rem !important;
  margin-bottom: 32px !important;
  color: var(--text-muted) !important;
  line-height: 1.6 !important;
}

.contact-details {
  display: flex !important;
  flex-direction: column !important;
  gap: 16px !important;
  align-items: center !important;
}

.contact-item {
  display: flex !important;
  align-items: center !important;
  gap: 12px !important;
  padding: 12px 24px !important;
  background: rgba(255, 255, 255, 0.05) !important;
  border-radius: 12px !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  transition: all 0.3s ease !important;
}

.contact-item:hover {
  transform: translateY(-2px) !important;
  background: rgba(255, 255, 255, 0.1) !important;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2) !important;
}

.contact-item i {
  color: var(--primary) !important;
  font-size: 1.2rem !important;
}

/* === 9. ANIMAÇÕES DE ENTRADA MELHORADAS === */
.fade-in,
.fade-in-left,
.fade-in-right {
  opacity: 0 !important;
  transform: translateY(30px) !important;
  transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

.fade-in-left {
  transform: translateX(-30px) !important;
}

.fade-in-right {
  transform: translateX(30px) !important;
}

.fade-in.visible,
.fade-in-left.visible,
.fade-in-right.visible {
  opacity: 1 !important;
  transform: translate(0) !important;
}

/* === 10. RESPONSIVIDADE === */
@media (max-width: 768px) {
  .nav-links a {
    padding: 8px 12px !important;
    font-size: 0.9rem !important;
  }
  
  .portfolio-card {
    border-radius: 16px !important;
    box-shadow: 
      12px 12px 36px var(--shadow-dark),
      -12px -12px 36px var(--shadow-light) !important;
  }
  
  .cta-btn {
    padding: 12px 24px !important;
    font-size: 0.9rem !important;
  }
  
  .hero-content {
    padding: 32px 24px !important;
    border-radius: 16px !important;
  }
  
  .contact-info {
    padding: 32px 24px !important;
    border-radius: 16px !important;
  }
}

@media (max-width: 480px) {
  .portfolio-card {
    border-radius: 12px !important;
    box-shadow: 
      8px 8px 24px var(--shadow-dark),
      -8px -8px 24px var(--shadow-light) !important;
  }
  
  .cta-btn {
    padding: 10px 20px !important;
    font-size: 0.85rem !important;
  }
}

/* === 11. EFEITOS DE FOCO PARA ACESSIBILIDADE === */
.cta-btn:focus,
.nav-links a:focus {
  outline: 2px solid var(--primary) !important;
  outline-offset: 2px !important;
}

/* === 12. REDUÇÃO DE MOTION === */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
