/* =========
   Reset básico
   ========= */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

:root {
  --font-code: "JetBrains Mono", "Fira Code", "Source Code Pro", ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas,
    "Liberation Mono", "Courier New", monospace;
}

body {
  min-height: 100vh;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background-color: #050816; /* dark com tom roxo de fundo */
  color: #e5e7eb;
  line-height: 1.5;
}

a {
  color: inherit;
  text-decoration: none;
}

ul {
  list-style: none;
}

/* =========
   Layout global
   ========= */

.container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(5, 8, 22, 0.9);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(148, 163, 184, 0.2);
}

nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 4rem;
}

.nav-left span {
  font-weight: 600;
  letter-spacing: 0.03em;
}

nav ul {
  display: flex;
  gap: 1.5rem;
  font-size: 0.95rem;
}

.menu-toggle {
  display: none;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0.25rem;
  margin-left: 1rem;
}

.menu-toggle span {
  display: block;
  width: 1.4rem;
  height: 2px;
  background: #e5e7eb;
  border-radius: 999px;
  transition: transform 0.15s ease, opacity 0.15s ease;
}

.menu-toggle span + span {
  margin-top: 0.25rem;
}

nav a {
  position: relative;
  opacity: 0.85;
  padding-block: 0.15rem;
  transition: opacity 0.15s ease, color 0.15s ease;
}

nav a:hover {
  opacity: 1;
  color: #e5e7ff;
}

nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(135deg, #8b5cf6, #a855f7);
  border-radius: 999px;
  transition: width 0.15s ease;
}

nav a:hover::after {
  width: 100%;
}

.nav-link-active {
  color: #e5e7ff;
}

.nav-link-active::after {
  width: 100%;
}

main {
  padding-block: 3.5rem 4.5rem;
}

section {
  padding-block: 4rem;
}

section > .container > h2 {
  font-size: 1.75rem;
  margin-bottom: 2rem;
}

.section-highlight {
  animation: sectionHighlight 1.2s ease-out;
}

@keyframes sectionHighlight {
  0% {
    color: #e5e7eb;
    text-shadow: 0 0 0 rgba(129, 140, 248, 0);
  }
  30% {
    color: #c7d2fe;
    text-shadow: 0 0 16px rgba(129, 140, 248, 0.7);
  }
  100% {
    color: #e5e7eb;
    text-shadow: 0 0 0 rgba(129, 140, 248, 0);
  }
}

/* =========
   Seção Início (Hero)
   ========= */

#inicio {
  position: relative;
  min-height: calc(100vh - 4rem);
}

#inicio .container {
  padding-top: 0.4rem;
  position: relative;
  z-index: 1;
}

.hero-main {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 3rem;
}

.hero-center-visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: visible;
}

.hero-orb {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 340px;
  height: 340px;
  border-radius: 50%;
  z-index: 1;

  background: radial-gradient(
    circle at 30% 30%,
    rgba(52, 44, 87, 0.418),
    rgba(85, 57, 212, 0.404) 45%,
    rgba(127, 98, 255, 0.555) 70%
  );

  /* animação só de opacidade e scale */
  animation: orb-float-in 600ms ease-out forwards;

  transition: transform 300ms ease;

  transform: translate(-50%, -50%); /* ponto inicial centralizado */
}



.hero-person {
  position: relative;
  z-index: 2;

  filter: drop-shadow(0 12px 28px rgba(0, 0, 0, 3));
}

.hero-person img {
  display: block;
  width: 110%;
  max-width: 470px;
}

/* =========
   Hero entrance animation (load only)
   ========= */

.hero-person,
.hero-orb {
  opacity: 0;
  transform: translateY(28px);
  transition: transform 600ms ease-out, opacity 600ms ease-out;
}

.hero-person.hero-enter {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0.35s;
}

.hero-orb.hero-enter {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0s;
}

.hero-vertical-text {
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%) rotate(-90deg);
  transform-origin: left center;
  font-size: 0.8rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #64748b;
}

.hero-text-block {
  max-width: 40rem;
  text-align: left;
}

.hero-code-line {
  font-family: var(--font-code);
  font-size: 0.9rem;
  color: #a5b4fc;
  margin-bottom: 0.75rem;
  white-space: nowrap;
  overflow: hidden;
  border-right: 2px solid #a5b4fc;
  padding-right: 0.15rem;
  animation: typing 3s steps(40, end) 0.4s 1 both, blink-caret 0.7s step-end 4;
}

.hero-title {
  font-size: 2.2rem;
  line-height: 1.25;
  margin-bottom: 1rem;
  opacity: 0;
  transform: translateY(10px);
  animation: heroTitleIn 0.7s ease-out forwards;
  animation-delay: 0.15s;
}

@keyframes orb-float-in {
  0% {
    opacity: 0;
    scale: 0.8; /* escala inicial */
  }
  100% {
    opacity: 1;
    scale: 1;   /* escala final */
  }
}


@keyframes heroTitleIn {
  0% {
    opacity: 0;
    transform: translateY(10px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-text-block p {
  font-size: 1rem;
  color: #cbd5f5;
  margin: 0 auto 1.75rem;
}

@keyframes typing {
  from {
    width: 0;
  }
  to {
    width: 100%;
  }
}

@keyframes blink-caret {
  0%,
  100% {
    border-color: transparent;
  }
  50% {
    border-color: #a5b4fc;
  }
}

.hero-actions {
  display: flex;
  justify-content: flex-start;
  flex-wrap: wrap;
  gap: 1rem;
}

.hero-actions a {
  display: inline-block;
  padding: 0.65rem 1.3rem;
  border-radius: 0.4rem;
  font-size: 0.95rem;
  font-weight: 500;
  transition: transform 0.1s ease, box-shadow 0.1s ease, background 0.1s ease, border-color 0.1s ease;
}

.hero-actions a:first-of-type {
  background: linear-gradient(135deg, #8b5cf6, #a855f7);
  color: #f9fafb;
  box-shadow: 0 10px 25px rgba(139, 92, 246, 0.35);
}

.hero-actions a:last-of-type {
  border: 1px solid rgba(148, 163, 184, 0.4);
  background: rgba(15, 23, 42, 0.8);
}

.hero-actions a:hover {
  transform: translateY(-1px);
}

.hero-actions a:first-of-type:hover {
  box-shadow: 0 14px 30px rgba(139, 92, 246, 0.5);
}

.hero-actions a:last-of-type:hover {
  border-color: rgba(148, 163, 184, 0.7);
  background: rgba(15, 23, 42, 1);
}

.hero-strip {
  margin-top: 0.5rem;
  border-top: 1px solid rgba(148, 163, 184, 0.25);
  padding: 0.9rem 0;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: space-between;
  align-items: center;
  font-size: 0.9rem;
  color: #cbd5f5;
  background-color: #020617;
  position: relative;
  z-index: 2;
}

.hero-strip div {
  opacity: 0.9;
  padding: 0 0.9rem;
  border-radius: 0;
  border: none;
  background-color: transparent;
  position: relative;
}

.hero-strip div::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 1px;
  height: 16px;
  background-color: rgba(148, 163, 184, 0.6);
}


/* =========
   Lista de Redes Sociais
   ========= */


.social-links {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 2rem;
  padding: 1rem 0;
}

.social-link {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 1rem;
  border-radius: 0.5rem;
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid rgba(148, 163, 184, 0.3);
  color: #cbd5f5;
  font-size: 0.9rem;
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.4s ease, transform 0.4s ease, background-color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.social-link svg {
  flex-shrink: 0;
  stroke: currentColor;
}

.social-link.social-enter {
  opacity: 1;
  transform: translateY(0);
}

.social-link:hover {
  transform: translateY(-2px);
  background: rgba(15, 23, 42, 0.85);
  border-color: rgba(129, 140, 248, 0.5);
  color: #e5e7ff;
  box-shadow: 0 4px 12px rgba(139, 92, 246, 0.2);
}

.social-link:nth-child(1) {
  transition-delay: 0.5s;
}

.social-link:nth-child(2) {
  transition-delay: 0.6s;
}

.social-link:nth-child(3) {
  transition-delay: 0.7s;
}

.social-link:nth-child(4) {
  transition-delay: 0.8s;
}

.social-link:nth-child(5) {
  transition-delay: 0.9s;
}


.skills-grid {
  margin-top: 1.75rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.skill-item {
  font-family: var(--font-code);
  font-size: 0.85rem;
  padding: 0.4rem 0.85rem;
  border-radius: 0.4rem;
  border: 1px solid rgba(148, 163, 184, 0.45);
  background-color: #020617;
  color: #e5e7eb;
  transition: background-color 0.15s ease, border-color 0.15s ease, transform 0.1s ease;
}

.skill-item.skill-main {
  border-color: #818cf8;
  color: #e5e7ff;
}

.skill-item:hover {
  background-color: #02091f;
  border-color: rgba(148, 163, 184, 0.8);
  transform: translateY(-1px);
}
/* =========
   Seções Sobre, Projetos, Tecnologias, Contato
   ========= */

.sobre {
    padding: 80px 0;
}

#sobre .section-heading {
    margin-bottom: 40px;
}

.about-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
    width: 100%;
}

.about-card {
    width: 100%;
    min-height: 100%;
    padding: 20px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 12px;
    background: rgba(13, 19, 39, 0.68);
    transition:
        transform 180ms ease,
        border-color 180ms ease,
        background-color 180ms ease;
}

.about-card h3 {
    margin-bottom: 8px;
    color: #e5e7eb;
    font-size: 0.95rem;
    transition: color 180ms ease;
}

.about-card p {
    margin: 0;
    color: #9ca3af;
    font-size: 0.95rem;
    line-height: 1.5;
}

.about-card:hover {
    transform: translateY(-4px);
    border-color: rgba(255, 255, 255, 0.14);
    background-color: rgba(255, 255, 255, 0.02);
}

.about-card:hover h3 {
    color: #ffffff;
}

.about-card:focus-visible {
    outline: none;
    transform: translateY(-3px);
    border-color: rgba(255, 255, 255, 0.18);
}

#sobre .container p,
#contato .container p {
    max-width: 40rem;
    font-size: 1rem;
    color: #e2e8f0;
}

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

/* =========
   Aparição suave das seções
   ========= */

.reveal-section {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.reveal-section.is-visible {
  opacity: 1;
  transform: translateY(0);
}

#sobre .container p + p,
#contato .container p + p {
  margin-top: 0.75rem;
}

#projetos .container article {
  border-radius: 0.75rem;
  border: 1px solid rgba(148, 163, 184, 0.5);
  background: rgba(15, 23, 42, 0.9);
  padding: 1.75rem 1.8rem;
  max-width: 40rem;
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.8);
  position: relative;
  overflow: hidden;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}

#projetos .container article::before {
  content: "";
  position: absolute;
  inset: -40%;
  background: radial-gradient(circle at top left, rgba(139, 92, 246, 0.45), transparent 55%);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

#projetos .container article:hover {
  border-color: rgba(168, 85, 247, 0.8);
  box-shadow: 0 22px 50px rgba(15, 23, 42, 0.95);
  transform: translateY(-2px);
}

#projetos .container article:hover::before {
  opacity: 1;
}

#projetos h3 {
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
}

#projetos p {
  font-size: 0.97rem;
  color: #e5e7eb;
  margin-bottom: 0.5rem;
}

#tecnologias ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
  margin-bottom: 1rem;
}

#tecnologias li {
  font-size: 0.95rem;
  color: #e5e7eb;
  padding: 0.25rem 0.65rem;
  border-radius: 999px;
  transition: background-color 0.15s ease, color 0.15s ease, transform 0.1s ease;
}

#tecnologias li:hover {
  background-color: rgba(148, 163, 184, 0.18);
  color: #f9fafb;
  transform: translateY(-1px);
}

/* =========
   Footer
   ========= */

footer {
  border-top: 1px solid rgba(148, 163, 184, 0.3);
  padding: 1.5rem 0;
  text-align: center;
  font-size: 0.85rem;
  color: #94a3b8;
}

/* =========
   Responsividade básica
   ========= */

@media (max-width: 768px) {
  body {
    font-size: 0.95rem;
  }

  .menu-toggle {
    display: inline-block;
  }

  nav {
    height: auto;
    padding-block: 0.5rem;
  }

  nav ul {
    display: none;
    flex-direction: column;
    gap: 0.5rem;
    margin-top: 0.75rem;
    align-items: flex-start;
  }

  #site-header.nav-open nav ul {
    display: flex;
  }

  #site-header.nav-open .menu-toggle span:nth-child(1) {
    transform: translateY(4px) rotate(45deg);
  }

  #site-header.nav-open .menu-toggle span:nth-child(2) {
    opacity: 0;
  }

  #site-header.nav-open .menu-toggle span:nth-child(3) {
    transform: translateY(-4px) rotate(-45deg);
  }

  .hero-main {
    flex-direction: column;
    align-items: center;
    gap: 2rem;
  }

  .hero-center-visual {
    justify-content: center;
    width: 330px;
    height: 380px;
  }

  .hero-person img {
    max-width: 330px;
  }

  .hero-vertical-text {
    top: 40%;
  }

  .hero-image-wrapper::before {
    display: none;
  }

  section {
    padding-block: 2.5rem;
  }

  #projetos .container article {
    padding: 1.25rem 1.3rem;
    max-width: 100%;
  }

  section > .container > h2 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
  }
}

.projects {
  display: grid;
  gap: 32px;
}

.project-card {
  background: #111;
  border-radius: 12px;
  padding: 24px;
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.project-title {
  font-size: 1.2rem;
  margin-bottom: 16px;
}

.project-block {
  margin-bottom: 12px;
}

.project-block h4 {
  font-size: 0.85rem;
  font-weight: 600;
  color: #9ca3af;
  margin-bottom: 4px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.project-block p {
  font-size: 0.95rem;
  line-height: 1.5;
  color: #e5e7eb;
}

.project-block.decision,
.project-block.not-done {
  padding-left: 12px;
  border-left: 2px solid rgba(255, 255, 255, 0.08);
}
