/* ===== VARIÁVEIS CSS ===== */
:root {
  --primary-yellow: #FFD700;
  --dark-yellow: #FFC107;
  --primary-black: #1a1a1a;
  --secondary-black: #2d2d2d;
  --primary-blue: #4169E1;
  --dark-blue: #191970;
  --primary-purple: #8A2BE2;
  --dark-purple: #4B0082;
  
  /* Gradientes principais */
  --gradient-primary: linear-gradient(135deg, var(--primary-blue) 0%, var(--primary-purple) 100%);
  --gradient-secondary: linear-gradient(45deg, var(--primary-yellow) 0%, var(--dark-yellow) 100%);
  --gradient-dark: linear-gradient(135deg, var(--primary-black) 0%, var(--secondary-black) 100%);
  --gradient-accent: linear-gradient(45deg, var(--dark-blue) 0%, var(--dark-purple) 100%);
  
  /* Glass effects */
  --glass-bg: rgba(255, 215, 0, 0.1);
  --glass-border: rgba(255, 215, 0, 0.3);
  --glass-dark: rgba(26, 26, 26, 0.8);
}

/* ===== RESET E CONFIGURAÇÕES GLOBAIS ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Poppins', sans-serif;
  overflow-x: hidden;
  scroll-behavior: smooth;
  background: var(--gradient-dark);
  color: white;
}

/* ===== PARTÍCULAS DE FUNDO ===== */
.particles-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
  overflow: hidden;
}

.particle {
  position: absolute;
  border-radius: 50%;
  animation: float 8s ease-in-out infinite;
}

.particle:nth-child(1) { 
  width: 8px; height: 8px; left: 10%; 
  background: var(--primary-yellow);
  animation-delay: 0s; 
}
.particle:nth-child(2) { 
  width: 12px; height: 12px; left: 20%; 
  background: var(--primary-blue);
  animation-delay: 1s; 
}
.particle:nth-child(3) { 
  width: 6px; height: 6px; left: 30%; 
  background: var(--primary-purple);
  animation-delay: 2s; 
}
.particle:nth-child(4) { 
  width: 10px; height: 10px; left: 40%; 
  background: var(--primary-yellow);
  animation-delay: 3s; 
}
.particle:nth-child(5) { 
  width: 14px; height: 14px; left: 50%; 
  background: var(--primary-blue);
  animation-delay: 4s; 
}
.particle:nth-child(6) { 
  width: 8px; height: 8px; left: 60%; 
  background: var(--primary-purple);
  animation-delay: 5s; 
}
.particle:nth-child(7) { 
  width: 12px; height: 12px; left: 70%; 
  background: var(--primary-yellow);
  animation-delay: 0.5s; 
}
.particle:nth-child(8) { 
  width: 6px; height: 6px; left: 80%; 
  background: var(--primary-blue);
  animation-delay: 1.5s; 
}
.particle:nth-child(9) { 
  width: 10px; height: 10px; left: 90%; 
  background: var(--primary-purple);
  animation-delay: 2.5s; 
}

@keyframes float {
  0%, 100% { 
    transform: translateY(100vh) rotate(0deg); 
    opacity: 0; 
  }
  10% { opacity: 0.6; }
  50% { 
    opacity: 1; 
    transform: translateY(50vh) rotate(180deg); 
  }
  90% { opacity: 0.6; }
}

/* ===== NAVBAR ===== */
.navbar {
  background: var(--glass-dark) !important;
  backdrop-filter: blur(20px);
  border-bottom: 2px solid var(--primary-yellow);
  transition: all 0.3s ease;
  z-index: 1000;
}

.navbar.scrolled {
  background: var(--primary-black) !important;
  box-shadow: 0 2px 15px rgba(255, 215, 0, 0.2);
}

.navbar-brand {
  font-weight: 700;
  font-size: 1.8rem;
  background: var(--gradient-secondary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.nav-link, .navbar .btn {
  transition: all 0.3s ease;
  border-radius: 25px !important;
  position: relative;
  overflow: hidden;
  color: white !important;
  font-weight: 500;
}

.nav-link::before, .navbar .btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: var(--gradient-secondary);
  transition: left 0.3s ease;
  z-index: -1;
  border-radius: 25px;
}

.nav-link:hover::before, .navbar .btn:hover::before {
  left: 0;
}

.nav-link:hover, .navbar .btn:hover {
  color: var(--primary-black) !important;
  transform: translateY(-2px);
  text-shadow: none;
}

/* ===== SEÇÃO INÍCIO ===== */
#inicio {
  min-height: 100vh;
  background: var(--gradient-primary);
  position: relative;
  display: flex;
  align-items: center;
  z-index: 10;
}

#inicio::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grid" width="10" height="10" patternUnits="userSpaceOnUse"><path d="M 10 0 L 0 0 0 10" fill="none" stroke="rgba(255,215,0,0.1)" stroke-width="0.5"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
  z-index: -1;
}

.hero-content {
  z-index: 10;
  position: relative;
}

.typing-text {
  background: var(--gradient-secondary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  border-right: 3px solid var(--primary-yellow);
  animation: blink 1s infinite;
}

@keyframes blink {
  0%, 50% { border-right-color: var(--primary-yellow); }
  51%, 100% { border-right-color: transparent; }
}

.profile-pic-wrapper {
  position: relative;
  width: 280px;
  height: 280px;
  margin: 0 auto;
  animation: fadeInRight 1s ease-out;
}

.profile-pic-wrapper::before {
  content: "";
  position: absolute;
  top: -8px;
  left: -8px;
  width: calc(100% + 16px);
  height: calc(100% + 16px);
  border-radius: 50%;
  background: conic-gradient(from 0deg, var(--primary-yellow), var(--primary-blue), var(--primary-purple), var(--primary-yellow));
  animation: rotate-border 4s linear infinite;
  z-index: 1;
}

.profile-pic-wrapper::after {
  content: "";
  position: absolute;
  top: -4px;
  left: -4px;
  width: calc(100% + 8px);
  height: calc(100% + 8px);
  border-radius: 50%;
  background: var(--glass-dark);
  backdrop-filter: blur(10px);
  z-index: 1;
}

@keyframes rotate-border {
  to { transform: rotate(360deg); }
}

.profile-pic {
  position: relative;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  z-index: 2;
  transition: transform 0.3s ease;
  border: 3px solid var(--primary-yellow);
}

.profile-pic:hover {
  transform: scale(1.05);
}

/* ===== ANIMAÇÕES DE ENTRADA ===== */
.fade-in-up {
  opacity: 0;
  transform: translateY(30px);
  animation: fadeInUp 1s ease-out forwards;
}

.fade-in-left {
  opacity: 0;
  transform: translateX(-30px);
  animation: fadeInLeft 1s ease-out forwards;
}

.fade-in-right {
  opacity: 0;
  transform: translateX(30px);
  animation: fadeInRight 1s ease-out forwards;
}

@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInLeft {
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes fadeInRight {
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* ===== CARDS COM GLASSMORPHISM ===== */
.glass-card {
  background: var(--glass-dark);
  backdrop-filter: blur(20px);
  border: 2px solid var(--primary-yellow);
  border-radius: 20px;
  transition: all 0.3s ease;
  overflow: hidden;
  position: relative;
}

.glass-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 215, 0, 0.2), transparent);
  transition: left 0.5s ease;
  z-index: 1;
}

.glass-card:hover::before {
  left: 100%;
}

.glass-card:hover {
  transform: translateY(-8px) scale(1.01);
  box-shadow: 0 15px 30px rgba(255, 215, 0, 0.2);
  border-color: var(--primary-blue);
}

.card-img-top {
  height: 250px;
  object-fit: contain;
  background: linear-gradient(45deg, #f8f9fa, #e9ecef);
  transition: transform 0.3s ease;
  position: relative;
  z-index: 2;
}

.glass-card:hover .card-img-top {
  transform: scale(1.05);
}

.card-body {
  position: relative;
  z-index: 2;
}

/* ===== SEÇÕES COM DIFERENTES BACKGROUNDS ===== */
#projetos {
  background: var(--gradient-dark);
  position: relative;
  z-index: 10;
  border-top: 3px solid var(--primary-yellow);
}

#habilidades {
  background: var(--gradient-primary);
  position: relative;
  z-index: 10;
  border-top: 3px solid var(--primary-yellow);
}

#sobre {
  background: var(--gradient-accent);
  position: relative;
  z-index: 10;
  border-top: 3px solid var(--primary-yellow);
}

#contato {
  background: var(--gradient-dark);
  position: relative;
  z-index: 10;
  border-top: 3px solid var(--primary-yellow);
}

/* ===== HABILIDADES ===== */
.skill-item {
  margin-bottom: 2rem;
  padding: 1.5rem;
  background: var(--glass-dark);
  border-radius: 15px;
  border: 1px solid var(--primary-yellow);
  transition: all 0.3s ease;
}

.skill-item:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(255, 215, 0, 0.15);
}

.progress {
  height: 15px;
  border-radius: 25px;
  background: var(--primary-black);
  border: 1px solid var(--primary-yellow);
  overflow: hidden;
  position: relative;
}

.progress-bar {
  border-radius: 25px;
  transition: width 2s ease;
  position: relative;
  overflow: hidden;
}

.progress-bar.bg-danger {
  background: linear-gradient(45deg, #8a7710, #ffe082) !important;
}

.progress-bar.bg-success {
  background: var(--gradient-primary) !important;
}

.progress-bar.bg-info {
  background: var(--gradient-accent) !important;
}

.progress-bar::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(45deg, transparent 33%, rgba(255, 255, 255, 0.4) 50%, transparent 66%);
  animation: shimmer 2s infinite;
}

@keyframes shimmer {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}

/* ===== ÍCONES COM ANIMAÇÃO ===== */
.skill-icon {
  font-size: 3.5rem;
  margin-bottom: 1rem;
  transition: all 0.3s ease;
}

.skill-icon:hover {
  transform: scale(1.2) rotate(360deg);
}

.skill-icon.text-danger {
  color: var(--primary-yellow) !important;
}

.skill-icon.text-success {
  color: var(--primary-blue) !important;
}

.skill-icon.text-info {
  color: var(--primary-purple) !important;
}

/* ===== BOTÕES MELHORADOS ===== */
.btn-primary, .btn-light {
  background: var(--gradient-secondary);
  border: 2px solid var(--primary-yellow);
  border-radius: 25px;
  padding: 12px 30px;
  font-weight: 600;
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
  color: var(--primary-black) !important;
}

.btn-primary::before, .btn-light::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: var(--gradient-primary);
  transition: left 0.3s ease;
  z-index: -1;
}

.btn-primary:hover::before, .btn-light:hover::before {
  left: 0;
}

.btn-primary:hover, .btn-light:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(255, 215, 0, 0.3);
  color: white !important;
  border-color: var(--primary-blue);
}

.viewdetail {
  display: inline-block;
  text-decoration: none;
  color: var(--primary-black);
  background: var(--gradient-secondary);
  border-radius: 25px;
  padding: 10px 20px;
  font-weight: 600;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  border: 2px solid transparent;
}

.viewdetail::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: var(--gradient-primary);
  transition: left 0.3s ease;
  z-index: -1;
}

.viewdetail:hover::before {
  left: 0;
}

.viewdetail:hover {
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(65, 105, 225, 0.3);
  border-color: var(--primary-blue);
}

/* ===== FORMULÁRIO ESTILIZADO ===== */
.form-control {
  background: var(--glass-dark);
  backdrop-filter: blur(10px);
  border: 2px solid var(--primary-yellow);
  border-radius: 15px;
  color: white;
  padding: 15px;
  transition: all 0.3s ease;
}

.form-control:focus {
  background: rgba(26, 26, 26, 0.9);
  border-color: var(--primary-blue);
  box-shadow: 0 0 10px rgba(65, 105, 225, 0.3);
  color: white;
}

.form-control::placeholder {
  color: rgba(255, 255, 255, 0.7);
}

/* ===== FOOTER ===== */
footer {
  background: var(--primary-black);
  border-top: 3px solid var(--primary-yellow);
}

/* ===== RESPONSIVIDADE ===== */
@media (max-width: 768px) {
  .profile-pic-wrapper {
    width: 200px;
    height: 200px;
  }
  
  .display-4 {
    font-size: 2.5rem;
  }

  .particles-container {
    display: none;
  }
}

/* ===== ANIMAÇÃO DE LOADING ===== */
.section-title {
  position: relative;
  display: inline-block;
  background: var(--gradient-secondary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-weight: 700;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 4px;
  background: var(--gradient-primary);
  transition: width 0.8s ease;
  border-radius: 2px;
}

.section-title.animate::after {
  width: 80px;
}

/* ===== SCROLL INDICATOR ===== */
.scroll-indicator {
  position: fixed;
  top: 0;
  left: 0;
  width: 0%;
  height: 4px;
  background: var(--gradient-secondary);
  z-index: 9999;
  transition: width 0.1s ease;
}

/* ===== BOTÃO DE IDIOMA PERSONALIZADO ===== */
#lang-toggle {
  background: var(--gradient-secondary);
  border: 2px solid var(--primary-yellow);
  color: var(--primary-black);
  font-weight: 600;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

#lang-toggle::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: var(--gradient-primary);
  transition: left 0.3s ease;
  z-index: -1;
}

#lang-toggle:hover::before {
  left: 0;
}

#lang-toggle:hover {
  color: white;
  transform: translateY(-1px);
  box-shadow: 0 6px 15px rgba(255, 215, 0, 0.25);
}

/* ===== ANIMAÇÃO DE TROCA DE IDIOMA ===== */
body {
  transition: transform 0.2s ease;
}

/* ===== EFEITOS SIMPLIFICADOS ===== */
.glow-effect {
  animation: glow 3s ease-in-out infinite alternate;
}

@keyframes glow {
  from {
    text-shadow: 0 0 5px var(--primary-yellow);
  }
  to {
    text-shadow: 0 0 15px var(--primary-yellow), 0 0 25px var(--primary-yellow);
  }
}

.hero-subtitle {
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.2rem;
}
.progress-bar.bg-primary {
  background: var(--gradient-primary) !important;
}

/* ===== LINKS SOCIAIS ===== */
.social-links a {
  transition: all 0.3s ease;
}

.social-links a:hover {
  transform: translateY(-3px) scale(1.1);
}
/* ===== FONTE MENOR APENAS PARA EMAIL ===== */
.contact-info .email-text {
  font-size: 0.8rem;
}

/* ===== INFORMAÇÕES DE CONTATO ===== */
.contact-icon {
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--glass-bg);
  border-radius: 50%;
  border: 1px solid var(--primary-yellow);
}