/* RESET BÁSICO */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "SF Pro Text",
    Roboto, sans-serif;
  background: radial-gradient(circle at top, #020617 0, #020617 40%, #000 100%);
  color: #e5e7eb;
  line-height: 1.6;
}

/* VARIÁVEIS SIMPLES */
:root {
  --primary: #22c55e;
  --primary-soft: rgba(34, 197, 94, 0.12);
  --accent: #a855f7;
  --bg-elevated: rgba(15, 23, 42, 0.95);
  --border-soft: rgba(148, 163, 184, 0.25);
  --text-muted: #9ca3af;
  --shadow-soft: 0 24px 60px rgba(15, 23, 42, 0.9);
}

/* CONTAINER & SEÇÕES */

.container {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section {
  padding: 5rem 0 4.5rem;
}

.section-alt {
  background: radial-gradient(circle at top, #020617 0, #020617 50%, #020617);
}

.section-header {
  max-width: 640px;
  margin: 0 auto 3rem;
  text-align: left;
}

.section-header.center {
  text-align: center;
}

.section-tag {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--primary);
  margin-bottom: 0.5rem;
}

.section-header h2 {
  font-size: 2rem;
  margin-bottom: 0.75rem;
}

.section-subtitle {
  color: var(--text-muted);
  font-size: 0.96rem;
}

/* HEADER */

.header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(18px);
  background: rgba(2, 6, 23, 0.9);
  border-bottom: 1px solid rgba(148, 163, 184, 0.2);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.8rem 0;
  gap: 1rem;
}

.brand {
  display: flex;
  align-items: center;
  text-decoration: none;
  gap: 0.75rem;
}

.brand-mark {
  width: 36px;
  height: 36px;
  border-radius: 999px;
  /* Tom único em verdes */
  background: linear-gradient(135deg, #16a34a, #22c55e);
  box-shadow: 0 0 25px rgba(34, 197, 94, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: 700;
  color: #020617;
}

.brand-text {
  display: flex;
  flex-direction: column;
}

.brand-title {
  font-size: 0.95rem;
  font-weight: 600;
}

.brand-subtitle {
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* NAV */

.nav {
  display: flex;
  gap: 1.5rem;
  font-size: 0.9rem;
}

.nav a {
  text-decoration: none;
  color: var(--text-muted);
  transition: color 0.2s ease;
}

.nav a:hover {
  color: #f9fafb;
}

/* BOTÕES */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.7rem 1.3rem;
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 500;
  border: 1px solid transparent;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease,
    border-color 0.15s ease, color 0.15s ease;
  white-space: nowrap;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary), #4ade80);
  color: #020617;
  box-shadow: 0 18px 40px rgba(34, 197, 94, 0.5);
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 22px 50px rgba(34, 197, 94, 0.7);
}

.btn-outline {
  border-color: rgba(148, 163, 184, 0.8);
  color: #e5e7eb;
  background: transparent;
}

.btn-outline:hover {
  border-color: var(--primary);
  background: rgba(15, 23, 42, 0.9);
}

.btn-ghost {
  border-color: rgba(148, 163, 184, 0.25);
  color: var(--text-muted);
  background: transparent;
}

.btn-ghost:hover {
  color: #e5e7eb;
  border-color: rgba(148, 163, 184, 0.6);
}

.btn.full-width {
  width: 100%;
}

.btn.small {
  padding: 0.45rem 1rem;
  font-size: 0.8rem;
}

/* HERO */

.hero {
  padding: 5.5rem 0 4.5rem;
}

.hero-grid {
  display: grid;
  gap: 3.5rem;
  align-items: center;
}

.hero-text h1 {
  font-size: clamp(2.4rem, 4vw, 3.2rem);
  line-height: 1.1;
  margin-bottom: 1rem;
}

.gradient-text {
  background-image: linear-gradient(135deg, #0ea5e9, #22c55e);
  -webkit-background-clip: text;
  color: transparent;
}


.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--primary);
  margin-bottom: 0.9rem;
}

.hero-tag::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: var(--accent);
  box-shadow: 0 0 12px rgba(168, 85, 247, 0.9);
}

.hero-subtitle {
  color: var(--text-muted);
  max-width: 32rem;
  font-size: 0.98rem;
  margin-bottom: 1.5rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin-bottom: 1.5rem;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem 1.2rem;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.hero-meta span::before {
  content: "• ";
  color: var(--primary);
}

.hero-social {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 1.8rem;
}

.hero-social a {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.82rem;
  text-decoration: none;
  color: var(--text-muted);
  padding: 0.4rem 0.9rem;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.3);
  background: radial-gradient(circle at top left, rgba(15, 23, 42, 0.9), #020617);
  transition: border-color 0.15s ease, color 0.15s ease, transform 0.15s ease;
}

.hero-social a:hover {
  border-color: var(--primary);
  color: #f9fafb;
  transform: translateY(-1px);
}

/* PLACEHOLDER PARA ÍCONES SIMPLES */

[class^="icon-"] {
  width: 14px;
  height: 14px;
  border-radius: 4px;
  border: 1px solid rgba(148, 163, 184, 0.7);
  position: relative;
}

/* LinkedIn */
.icon-linkedin::before {
  content: "";
  position: absolute;
  inset: 3px;
  border-left: 2px solid rgba(129, 140, 248, 0.9);
  border-bottom: 2px solid rgba(129, 140, 248, 0.9);
  border-radius: 2px;
}

/* GitHub */
.icon-github::before {
  content: "";
  position: absolute;
  inset: 3px;
  border-radius: 999px;
  border: 2px solid rgba(148, 163, 184, 0.9);
}

/* WhatsApp */
.icon-whatsapp::before {
  content: "";
  position: absolute;
  inset: 4px;
  border-radius: 999px;
  border: 2px solid rgba(34, 197, 94, 0.9);
}

/* HERO VISUAL */

.hero-visual {
  position: relative;
  min-height: 260px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-orbit {
  position: absolute;
  width: 280px;
  height: 280px;
  border-radius: 100%;
  border: 1px dashed rgba(129, 140, 248, 0.5);
  opacity: 0.7;
}

.hero-card {
  position: relative;
  width: 280px;
  border-radius: 24px;
  padding: 1.4rem;
  background: radial-gradient(circle at top left, #111827, #020617);
  border: 1px solid rgba(148, 163, 184, 0.4);
  box-shadow: var(--shadow-soft);
}

.hero-screen {
  border-radius: 18px;
  border: 1px solid rgba(148, 163, 184, 0.4);
  padding: 1rem;
  background: linear-gradient(
    145deg,
    rgba(15, 23, 42, 0.95),
    rgba(22, 163, 74, 0.4)
  );
  margin-bottom: 1.1rem;
}

.code-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 0.8rem;
}

.code-pill {
  font-size: 0.7rem;
  padding: 0.18rem 0.6rem;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.7);
  color: #e5e7eb;
  background: rgba(15, 23, 42, 0.8);
}

.code-pill.accent {
  border-color: var(--primary);
  background: rgba(34, 197, 94, 0.12);
}

.code-line {
  height: 6px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  margin-bottom: 0.45rem;
  opacity: 0.9;
}

.code-line.short {
  width: 70%;
}

.code-line.shorter {
  width: 45%;
}

.hero-details {
  display: flex;
  gap: 0.7rem;
}

.hero-stat {
  flex: 1;
  border-radius: 18px;
  padding: 0.8rem;
  background: radial-gradient(
    circle at top left,
    rgba(34, 197, 94, 0.18),
    #020617
  );
  border: 1px solid rgba(34, 197, 94, 0.45);
}

.hero-stat-label {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
}

.hero-stat-desc {
  font-size: 0.76rem;
  color: var(--text-muted);
}

.hero-glow {
  position: absolute;
  inset: auto;
  bottom: -40px;
  width: 240px;
  height: 90px;
  background: radial-gradient(circle, rgba(34, 197, 94, 0.45), transparent 70%);
  filter: blur(12px);
  opacity: 0.8;
}

/* GRIDS E CARDS */

.grid-3 {
  display: grid;
  gap: 1.8rem;
}

.grid-2 {
  display: grid;
  gap: 1.8rem;
}

.card {
  border-radius: 20px;
  padding: 1.7rem;
  background: var(--bg-elevated);
  border: 1px solid var(--border-soft);
  box-shadow: var(--shadow-soft);
}

.card h3 {
  font-size: 1.1rem;
  margin-bottom: 0.6rem;
}

.card p {
  color: var(--text-muted);
  font-size: 0.94rem;
}

/* SOBRE / TIMELINE */

.about-timeline {
  border-radius: 20px;
  padding: 1.7rem;
  background: radial-gradient(circle at top left, rgba(34, 197, 94, 0.2), #020617);
  border: 1px solid var(--border-soft);
}

.timeline-item {
  display: flex;
  gap: 1rem;
  margin-bottom: 1.2rem;
}

.timeline-item:last-child {
  margin-bottom: 1.5rem;
}

.timeline-badge {
  min-width: 54px;
  height: 24px;
  border-radius: 999px;
  background: var(--primary-soft);
  color: var(--primary);
  font-size: 0.78rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.timeline-item h3 {
  font-size: 0.98rem;
  margin-bottom: 0.2rem;
}

.timeline-item p {
  font-size: 0.9rem;
  color: var(--text-muted);
}

.about-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.about-tags span {
  font-size: 0.78rem;
  padding: 0.18rem 0.65rem;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.9);
  border: 1px solid rgba(148, 163, 184, 0.4);
}

/* SKILLS */

.skills-grid .card h3 {
  margin-bottom: 0.75rem;
}

.pill-list {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.pill-list li {
  font-size: 0.8rem;
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.9);
  border: 1px solid rgba(148, 163, 184, 0.5);
}

/* SERVIÇOS */

.service-card {
  background: radial-gradient(
    circle at top left,
    rgba(34, 197, 94, 0.12),
    #020617
  );
}

/* PROJETOS */

/* Container geral da vitrine */
.project-carousel {
  position: relative;
  display: flex;
  align-items: center;
  gap: 1rem;
}

/* Trilho que contém os cards */
.project-grid {
  align-items: stretch;
  display: flex;
  gap: 1.5rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 0.25rem 0.25rem 0.5rem;
  scroll-behavior: smooth;
}

/* some a barra de rolagem */
.project-grid::-webkit-scrollbar {
  height: 6px;
}

.project-grid::-webkit-scrollbar-track {
  background: transparent;
}

.project-grid::-webkit-scrollbar-thumb {
  background: rgba(30, 64, 175, 0.8);
  border-radius: 999px;
}

/* Para outros navegadores, deixa discreto */
.project-grid {
  scrollbar-width: thin;
  scrollbar-color: rgba(30, 64, 175, 0.8) transparent;
}

.project-card {
  display: flex;
  flex-direction: column;
  padding: 0;
  overflow: hidden;
  scroll-snap-align: start;
  flex: 0 0 85%;
  max-width: 360px;
}

/* Efeito de “card levantando” na vitrine */
.project-card:hover {
  transform: translateY(-4px);
  transition: transform 0.2s ease;
}

.project-thumb {
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid rgba(15, 23, 42, 1);
}

.project-thumb img {
  display: block;
  width: 100%;
  height: 180px;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.project-card:hover .project-thumb img {
  transform: scale(1.06);
}

.project-body {
  padding: 1.5rem 1.6rem 1.6rem;
}

.project-body h3 {
  margin-bottom: 0.4rem;
}

.project-body p {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 0.9rem;
}

.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 1rem;
}

.project-tags span {
  font-size: 0.76rem;
  padding: 0.15rem 0.55rem;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.5);
}

.project-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

/* Botões de navegação da vitrine */
.carousel-btn {
  border: 1px solid rgba(148, 163, 184, 0.3);
  background: radial-gradient(
    circle at center,
    rgba(15, 23, 42, 1),
    #020617
  );
  color: #e5e7eb;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
  font-size: 1.2rem;
  transition: background 0.15s ease, border-color 0.15s ease,
    transform 0.15s ease, box-shadow 0.15s ease;
}

.carousel-btn:hover {
  border-color: var(--primary);
  box-shadow: 0 0 20px rgba(34, 197, 94, 0.5);
  transform: translateY(-1px);
}

.carousel-btn:disabled {
  opacity: 0.4;
  cursor: default;
  box-shadow: none;
  border-color: rgba(148, 163, 184, 0.2);
}

/* Responsivo da vitrine */
@media (min-width: 768px) {
  .project-card {
    flex: 0 0 48%;
  }
}

@media (min-width: 1024px) {
  .project-card {
    flex: 0 0 32%;
  }
}


/* CONTATO */

.contact-section {
  background: radial-gradient(circle at center, rgba(34, 197, 94, 0.15), #020617);
}

.contact-grid {
  display: grid;
  gap: 2rem;
}

.contact-actions {
  display: grid;
  gap: 1.5rem;
}

.contact-card {
  border-radius: 20px;
  padding: 1.6rem;
  background: var(--bg-elevated);
  border: 1px solid var(--border-soft);
  box-shadow: var(--shadow-soft);
}

.contact-card h3 {
  margin-bottom: 0.4rem;
}

.contact-card p {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 0.9rem;
}

.contact-meta {
  display: block;
  margin-top: 0.5rem;
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* FOOTER */

.footer {
  border-top: 1px solid rgba(148, 163, 184, 0.25);
  padding: 1.2rem 0 1.6rem;
  background: #020617;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  justify-content: space-between;
  font-size: 0.78rem;
  color: var(--text-muted);
}

.footer-meta {
  opacity: 0.8;
}

/* NAV TOGGLE (MOBILE) */

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 4px;
  padding: 0.4rem;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.4);
  background: transparent;
  cursor: pointer;
}

.nav-toggle span {
  width: 18px;
  height: 2px;
  border-radius: 999px;
  background: #e5e7eb;
}

/* ANIMAÇÃO DE ENTRADA */

[data-animate] {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

[data-animate].is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* RESPONSIVIDADE */

@media (min-width: 768px) {
  .hero-grid {
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.9fr);
  }

  .grid-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .grid-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .contact-actions {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 767px) {
  .header-inner {
    flex-wrap: wrap;
  }

  .nav {
    position: absolute;
    inset: 56px 1.5rem auto;
    padding: 0.8rem 1rem;
    border-radius: 14px;
    background: rgba(2, 6, 23, 0.98);
    border: 1px solid rgba(148, 163, 184, 0.3);
    display: none;
    flex-direction: column;
    gap: 0.8rem;
  }

  .nav.is-open {
    display: flex;
  }

  .header-cta {
    display: none;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .hero {
    padding-top: 4.5rem;
  }

  .hero-meta {
    flex-direction: column;
    align-items: flex-start;
  }

  .section-header {
    text-align: left;
  }

  .contact-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
  }
}
