/* ===========================
   HERO
   =========================== */
#hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 7rem 2rem 4rem;
  position: relative;
  overflow: hidden;
}

/* ====== Decorative orbs ====== */
.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(120px);
  pointer-events: none;
}
.orb1 {
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(255,215,0,0.13) 0%, transparent 70%);
  top: -150px; right: -100px;
}
.orb2 {
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(255,194,0,0.09) 0%, transparent 70%);
  bottom: -50px; left: -80px;
}

.hero-grid {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  text-align: left !important;
}

/* ====== Tag ====== */
.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(16, 185, 129, 0.12); 
  border: 1px solid rgba(16, 185, 129, 0.3);
  color: #10b91e;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  padding: 0.35rem 0.85rem;
  border-radius: 100px;
  margin-bottom: 1.5rem;
}

.hero-tag::before {
  content: '';
  width: 6px; height: 6px;
  border-radius: 50%;
  background: #10b91e; 
  box-shadow: 0 0 8px #10B981; 
}
@keyframes pdot { 0%,100%{opacity:1} 50%{opacity:0.3} }

/* ====== Name & Title ====== */
.hero-name {
  font-family: var(--font-head);
  font-size: clamp(1.8rem, 8.5vw, 5.5rem);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.04em;
  margin-bottom: 2rem;
  color: var(--text);
  hyphens: none;
  word-wrap: normal;
}
.hero-name .last { color: var(--accent2); }

.hero-line {
  width: 96px;           
  height: 4px;           
  background-color: #f32a2a; 
  border-radius: 99px;  
  margin-top: 16px;     
  margin-bottom: 24px;   
}

.hero-desc {
  color: var(--muted); 
  line-height: 1.7; 
  margin-bottom: 2.5rem;
  padding-right: 3rem;
}

.hero-desc strong {
  color: var(--text); 
  font-weight: 600; 
}

/* ====== Buttons ====== */
.hero-btns { 
  display: flex; 
  gap: 1rem; 
  flex-wrap: wrap; 
  justify-content: flex-start !important;
  margin-left: 0 !important;
}

.btn-primary {
  background: var(--accent);
  color: #111111;
  padding: 0.8rem 2rem;
  border-radius: 8px;
  font-weight: 700;
  font-size: 0.875rem;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 0 30px var(--accent-glow);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 40px rgba(255,215,0,0.35);
}

.btn-secondary {
  background: transparent;
  color: var(--text);
  padding: 0.8rem 2rem;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.875rem;
  text-decoration: none;
  border: 1px solid #67682b; 
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: border-color 0.2s, background 0.2s;
}

.btn-secondary:hover {
  border-color: var(--accent2);
  background: var(--accent-glow);
}

/* ====== STATS - CARDS E NÚMEROS ====== */
.hero-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 1.2rem;
  margin-top: 3.5rem;
  margin-bottom: clamp(2rem, 5vh, 5rem); 
}

.stat {
  padding: 1.1rem;
  border-radius: 12px;
  text-align: center;
  transition: background 0.3s, border-color 0.3s, box-shadow 0.3s;
}

.stat-num {
  font-family: var(--font-head);
  font-size: 2rem;
  font-weight: 700;
  line-height: 1;
  margin-bottom: 0.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.plus-sign {
  color: var(--accent2); 
  margin-left: 2px;
}

.stat-label {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* ====== MODO CLARO ====== */
[data-theme="light"] .stat {
  background: var(--bg2); 
  border: 1px solid rgba(0, 0, 0, 0.08);
}

[data-theme="light"] .stat-num {
  color: #252525; 
}

[data-theme="light"] .stat-label {
  color: var(--muted); 
}

/* --- MODO ESCURO --- */
[data-theme="dark"] .stat {
  background: var(--bg2); 
  border: 1px solid var(--card-border);
}

[data-theme="dark"] .stat-num {
  color: #FFFFFF; 
}

[data-theme="dark"] .stat-label {
  color: var(--muted); 
}


/* ====== VISUAL / AVATAR ====== */
.hero-visual { display: flex; justify-content: center; align-items: center; }

.avatar-wrap { position: relative; width: 320px; height: 320px; }

.avatar-ring {
  position: absolute;
  inset: -22px;
  border-radius: 50%;
  border: 1px solid var(--border);
  animation: spin 18s linear infinite;
}
.avatar-ring::before {
  content: '';
  position: absolute;
  top: -4px; left: 50%;
  transform: translateX(-50%);
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 12px var(--accent);
}
@keyframes spin { to { transform: rotate(360deg); } }

.avatar {
  width: 100%; height: 100%;
  border-radius: 50%;
  object-fit: cover; 
  border: 5px solid #0fdd98;
  box-shadow: 0 8px 30px rgba(0,0,0,0.15);
  position: relative;
  z-index: 1; 
}

/* ====== ÓRBITAS ====== */
.float-badge {
  position: absolute;
  top: 50%;
  left: 50%;
  background: var(--bg2); 
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 25px var(--card-shadow);
  z-index: 2;
  animation: orbit-anim var(--speed) linear infinite;
}

.float-badge img {
  display: block;
  object-fit: contain;
}

/*Linguagens Avançadas */
.adv-badge { width: 43px; height: 43px; border-width: 2px; border-style: solid; }
.adv-badge img { width: 32px; height: 32        px; }

/*Linguagens Intermediárias */
.int-badge { width: 20px; height: 20px; border-width: 1.5px; border-style: solid; }
.int-badge img { width: 15px; height: 15px; }

@keyframes orbit-anim {
  0% { transform: translate(-50%, -50%) rotate(var(--angle)) translateX(var(--radius)) rotate(calc(var(--angle) * -1)); }
  100% { transform: translate(-50%, -50%) rotate(calc(var(--angle) + 360deg)) translateX(var(--radius)) rotate(calc((var(--angle) + 360deg) * -1)); }
}

.float-badge:hover {
  animation-play-state: paused;
  cursor: pointer;
  z-index: 10; 
  box-shadow: 0 8px 30px rgba(255, 215, 0, 0.4);
}

.float-badge img { transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1); }
.float-badge:hover img { transform: scale(1.85); }

/* ===========================
   RASTRO DE ÓRBITA
   =========================== */
.adv-badge::after {
  content: '';
  position: absolute;
  top: calc(50% - 1px);
  right: 50%; 
  width: var(--radius); 
  height: var(--radius); 
  border-top: 4px solid;
  border-top-color: inherit; 
  border-radius: 100% 0 0 0; 
  -webkit-mask-image: linear-gradient(to right, transparent 15%, black calc(100% - 25px), transparent calc(100% - 25px));
  mask-image: linear-gradient(to right, transparent 15%, black calc(100% - 25px), transparent calc(100% - 25px));
  transform-origin: 100% 0; 
  z-index: -1; 
  pointer-events: none; 
  opacity: 0.85; 
  animation: tail-curve-anim var(--speed) linear infinite;
}

@keyframes tail-curve-anim {
  0% { transform: rotate(calc(var(--angle) + 90deg)); }
  100% { transform: rotate(calc(var(--angle) + 90deg + 360deg)); }
}

.adv-badge:hover::after { animation-play-state: paused; }

/* ===========================
   HERO RESPONSIVE (MOBILE)
   =========================== */
@media (max-width: 768px) {
  #hero {
    padding-left: 1.2rem !important;
    padding-right: 1.2rem !important;
  }
  
  .hero-desc,
  .hero-name {
    padding-right: 0 !important; 
    word-wrap: break-word;
    overflow-wrap: break-word;
  }

  .hero-name {
    font-size: clamp(1.5rem, 8vw, 3.5rem) !important; 
  }

  .hero-btns {
    display: grid !important;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    width: 100% !important; 
    margin: 0 0 2rem 0 !important; 
    padding: 0 !important;
  }

  .hero-btns .btn-primary {
    grid-column: 1 / -1; 
    display: flex !important;
    justify-content: center !important; 
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .hero-btns .btn-secondary {
    display: flex !important;
    justify-content: center !important;
    width: 100% !important;
    padding: 0.8rem 0.5rem !important; 
    box-sizing: border-box !important;
    border: 1px solid var(--accent2) !important;
  }

  .hero-stats {
    display: flex !important;
    flex-direction: column; 
    gap: 0.8rem; 
    width: 100% !important; 
    margin: 0 0 8vh 0 !important; 
    padding: 0 !important;
  }

  .stat { 
    width: 100% !important;
    padding: 1.2rem 0.5rem !important;
    display: flex !important;
    flex-direction: column;
    align-items: center; justify-content: center;
    box-sizing: border-box !important;
  }
}