/* ═══ HERO ═══ */
#hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

#particles-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

.hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 720px;
  padding-inline: var(--container-padding);
}

.hero-greeting {
  font-family: var(--font-mono);
  font-size: var(--text-sm);
  color: var(--purple-400);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: var(--space-4);
}

.hero-name {
  font-size: var(--text-7xl);
  font-weight: 700;
  letter-spacing: -0.03em;
  margin-bottom: var(--space-4);
  background: linear-gradient(135deg, var(--text-primary) 0%, var(--purple-400) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-name .cursor {
  display: inline-block;
  width: 3px;
  height: 0.85em;
  background: var(--purple-500);
  margin-left: 4px;
  vertical-align: text-bottom;
  animation: cursorBlink 1s step-end infinite;
}

.hero-role {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  color: var(--text-secondary);
  font-weight: 400;
  margin-bottom: var(--space-6);
}

.hero-desc {
  font-size: var(--text-base);
  color: var(--text-muted);
  line-height: 1.8;
  margin-bottom: var(--space-10);
  max-width: 520px;
  margin-inline: auto;
}

.hero-buttons {
  display: flex;
  gap: var(--space-4);
  justify-content: center;
  flex-wrap: wrap;
}

.scroll-indicator {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-2);
  color: var(--text-muted);
  font-size: var(--text-xs);
  font-family: var(--font-mono);
  animation: floatY 3s ease-in-out infinite;
}

.scroll-indicator .scroll-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, var(--purple-500), transparent);
  animation: scrollPulse 2s ease-in-out infinite;
}

/* ═══ ABOUT ═══ */
#sobre .about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-16);
  align-items: center;
}

.about-text {
  font-size: var(--text-lg);
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: var(--space-8);
}

.about-text strong {
  color: var(--text-primary);
  font-weight: 600;
}

.education-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

/* Animated orb */
.orb-container {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  height: 360px;
}

.orb {
  position: relative;
  width: 200px;
  height: 200px;
}

.orb-core {
  position: absolute;
  inset: 30%;
  border-radius: 50%;
  background: radial-gradient(circle, var(--purple-400) 0%, var(--purple-700) 60%, transparent 70%);
  box-shadow: var(--glow-lg);
  animation: orbPulse 4s ease-in-out infinite;
}

.orb-ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 1px solid var(--border-light);
}

.orb-ring:nth-child(2) {
  inset: -20px;
  animation: orbSpin 12s linear infinite;
  border-style: dashed;
  border-color: rgba(139, 92, 246, 0.1);
}

.orb-ring:nth-child(3) {
  inset: -45px;
  animation: orbSpin 20s linear infinite reverse;
  border-color: rgba(139, 92, 246, 0.06);
}

.orb-ring:nth-child(4) {
  inset: -75px;
  animation: orbSpin 30s linear infinite;
  border-style: dotted;
  border-color: rgba(139, 92, 246, 0.04);
}

/* Floating spark dots on the rings */
.orb-ring::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  width: 4px;
  height: 4px;
  background: var(--purple-400);
  border-radius: 50%;
  box-shadow: 0 0 6px var(--purple-500);
  transform: translate(-50%, -50%);
}

@media (max-width: 768px) {
  #sobre .about-grid {
    grid-template-columns: 1fr;
    gap: var(--space-10);
  }
  .orb-container { height: 280px; order: -1; }
  .orb { width: 150px; height: 150px; }
}

/* ═══ SKILLS ═══ */
.skills-category {
  margin-bottom: var(--space-12);
}

.skills-category:last-child { margin-bottom: 0; }

.skills-category-title {
  font-family: var(--font-mono);
  font-size: var(--text-sm);
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: var(--space-6);
  padding-bottom: var(--space-3);
  border-bottom: 1px solid var(--border-subtle);
}

.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  gap: var(--space-4);
}

/* ═══ PROJECTS ═══ */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: var(--space-8);
}

@media (max-width: 768px) {
  .projects-grid {
    grid-template-columns: 1fr;
  }
}

/* ═══ CONTACT ═══ */
#contato .contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-16);
  align-items: start;
}

.contact-info-title {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: 600;
  margin-bottom: var(--space-4);
}

.contact-info-text {
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: var(--space-8);
}

.contact-links {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.contact-link-item {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  color: var(--text-secondary);
  font-size: var(--text-sm);
  transition: color var(--duration-base) ease;
}

.contact-link-item:hover { color: var(--purple-400); }

.contact-link-item svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  stroke: currentColor;
}

@media (max-width: 768px) {
  #contato .contact-grid {
    grid-template-columns: 1fr;
    gap: var(--space-10);
  }
}

/* ═══ FOOTER ═══ */
.footer {
  padding-block: var(--space-10);
  border-top: 1px solid var(--border-subtle);
  z-index: 1;
  position: relative;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--space-4);
}

.footer-copy {
  font-size: var(--text-sm);
  color: var(--text-muted);
}

.footer-copy span {
  color: var(--purple-400);
}

.footer-quote {
  font-size: var(--text-sm);
  color: var(--text-muted);
  font-style: italic;
  font-family: var(--font-mono);
}
