@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,700;0,900;1,400&family=DM+Sans:wght@300;400;500;600&family=DM+Mono:wght@400;500&display=swap');

/* RESET */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --bg:       #0a0a0f;
  --bg2:      #111118;
  --bg3:      #16161f;
  --surface:  rgba(255,255,255,0.04);
  --border:   rgba(255,255,255,0.08);
  --accent:   #c084fc;
  --accent2:  #e879f9;
  --accent3:  #818cf8;
  --gold:     #f0c674;
  --text:     #e8e8f0;
  --muted:    rgba(232,232,240,0.5);
  --serif:    'Playfair Display', Georgia, serif;
  --sans:     'DM Sans', system-ui, sans-serif;
  --mono:     'DM Mono', 'Courier New', monospace;
}

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.7;
  overflow-x: hidden;
}

/* NOISE OVERLAY */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.03'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 9999;
  opacity: 0.4;
}

/* SCROLLBAR */
::-webkit-scrollbar { width: 4px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--accent); border-radius: 2px; }

/* NAVBAR */
.navegation {
  position: fixed;
  top: 0;
  width: 100%;
  padding: 1.2rem 5%;
  z-index: 1000;
  transition: all 0.4s ease;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  font-family: var(--mono);
  font-size: 0.85rem;
  color: var(--accent);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  text-decoration: none;
}

.navegation.scrolled {
  background: rgba(10, 10, 15, 0.88);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
}

.menu {
  display: flex;
  gap: 2.5rem;
  list-style: none;
}

.menu a {
  text-decoration: none;
  color: var(--muted);
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  transition: color 0.25s;
  position: relative;
}

.menu a:hover { color: var(--text); }

.menu a::after {
  content: '';
  position: absolute;
  bottom: -4px; left: 0;
  width: 0; height: 1px;
  background: var(--accent);
  transition: width 0.3s ease;
}

.menu a:hover::after { width: 100%; }

/* HERO */
.header {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 0 5%;
  position: relative;
  overflow: hidden;
}

/* Radial glow background */
.header::before {
  content: '';
  position: absolute;
  top: -20%;
  left: -10%;
  width: 70vw;
  height: 70vw;
  background: radial-gradient(circle, rgba(192,132,252,0.08) 0%, transparent 65%);
  pointer-events: none;
}

.header::after {
  content: '';
  position: absolute;
  bottom: 10%;
  right: -5%;
  width: 40vw;
  height: 40vw;
  background: radial-gradient(circle, rgba(129,140,248,0.06) 0%, transparent 65%);
  pointer-events: none;
}

.header-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 80px;
  max-width: 1100px;
  width: 100%;
  animation: heroIn 1s cubic-bezier(0.22,1,0.36,1) both;
}

@keyframes heroIn {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Foto — frame editorial */
.foto-wrapper {
  position: relative;
}

.foto-frame {
  position: relative;
  width: fit-content;
}

.foto-frame::before {
  content: '';
  position: absolute;
  inset: -12px;
  border: 1px solid var(--border);
  border-radius: 28px;
  z-index: 0;
}

.foto-frame::after {
  content: '';
  position: absolute;
  top: 12px; left: 12px;
  right: -12px; bottom: -12px;
  background: linear-gradient(135deg, var(--accent), var(--accent3));
  opacity: 0.15;
  border-radius: 20px;
  z-index: 0;
}

.fotoPerfil {
  width: 380px;
  max-width: 100%;
  border-radius: 20px;
  display: block;
  position: relative;
  z-index: 1;
  filter: grayscale(20%) contrast(1.05);
  transition: filter 0.4s ease;
}

.fotoPerfil:hover { filter: grayscale(0%) contrast(1.1); }

/* Label flutuante */
.foto-badge {
  position: absolute;
  bottom: -18px;
  left: 20px;
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: 100px;
  padding: 6px 16px;
  font-family: var(--mono);
  font-size: 0.72rem;
  color: var(--accent);
  letter-spacing: 0.12em;
  z-index: 2;
  white-space: nowrap;
}

/* Texto hero */
.hero-text {
  display: flex;
  flex-direction: column;
  gap: 1.4rem;
}

.hero-tag {
  font-family: var(--mono);
  font-size: 0.78rem;
  color: var(--accent);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 10px;
}

.hero-tag::before {
  content: '';
  display: inline-block;
  width: 28px; height: 1px;
  background: var(--accent);
}

.hero-title {
  font-family: var(--serif);
  font-size: clamp(2.8rem, 5vw, 4.5rem);
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: var(--text);
}

.hero-title em {
  font-style: italic;
  color: var(--accent);
  display: block;
}

.hero-sub {
  font-size: 1rem;
  color: var(--muted);
  max-width: 380px;
  line-height: 1.8;
}

.social-links {
  display: flex;
  gap: 16px;
  margin-top: 0.5rem;
}

.social-links a {
  width: 42px; height: 42px;
  border: 1px solid var(--border);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  font-size: 1.2rem;
  text-decoration: none;
  transition: all 0.25s ease;
  background: var(--surface);
}

.social-links a:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: rgba(192,132,252,0.08);
}

/* Scroll indicator */
.scroll-hint {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  font-family: var(--mono);
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  color: var(--muted);
  animation: bounce 2s ease-in-out infinite;
}

.scroll-hint::after {
  content: '';
  width: 1px; height: 40px;
  background: linear-gradient(to bottom, var(--muted), transparent);
}

@keyframes bounce {
  0%,100% { transform: translateX(-50%) translateY(0); }
  50%      { transform: translateX(-50%) translateY(8px); }
}

/* SEÇÕES BASE */
section {
  padding: 100px 5%;
  max-width: 1100px;
  margin: 0 auto;
}

/* Divisor decorativo */
.section-divider {
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border), transparent);
  margin: 0 auto;
}

.section-label {
  font-family: var(--mono);
  font-size: 0.72rem;
  color: var(--accent);
  letter-spacing: 0.25em;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 1rem;
}

.section-label::before {
  content: '';
  width: 24px; height: 1px;
  background: var(--accent);
}

h2 {
  font-family: var(--serif);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  margin-bottom: 0;
  line-height: 1.2;
  color: var(--text);
}

/* SOBRE */
.sobre {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 80px;
  align-items: center;
}

.sobre-left {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.sobre-right {
  position: relative;
}

.sobre-p {
  font-size: 1.05rem;
  color: var(--muted);
  line-height: 1.9;
}

.sobre-p + .sobre-p { margin-top: 1rem; }

.sobre-p span {
  color: var(--text);
  font-weight: 500;
}

/* Stats row */
.sobre-stats {
  display: flex;
  gap: 2rem;
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
}

.stat {
  display: flex;
  flex-direction: column;
}

.stat-num {
  font-family: var(--serif);
  font-size: 2rem;
  font-weight: 700;
  color: var(--accent);
  line-height: 1;
}

.stat-label {
  font-size: 0.78rem;
  color: var(--muted);
  margin-top: 4px;
}

/* FORMAÇÃO */
.formacao-inner {
  margin-top: 3rem;
}

.timeline {
  position: relative;
  padding-left: 0;
}

.timeline-item {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 0 32px;
  margin-bottom: 0;
  padding: 40px 0;
  border-bottom: 1px solid var(--border);
  position: relative;
}

.timeline-item:last-child { border-bottom: none; }

.timeline-year {
  font-family: var(--mono);
  font-size: 0.75rem;
  color: var(--accent);
  letter-spacing: 0.08em;
  padding-top: 4px;
  line-height: 1.4;
}

.timeline-text h3 {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--text);
}

.timeline-text .instituicao {
  font-size: 0.9rem;
  color: var(--muted);
  margin-bottom: 0;
}

.timeline-text .periodo {
  display: none;
}

/* HABILIDADES */
.habilidades-inner { margin-top: 3rem; }

.tabs {
  display: flex;
  gap: 0;
  margin-bottom: 50px;
  border-bottom: 1px solid var(--border);
}

.tab-btn {
  background: none;
  border: none;
  font-family: var(--sans);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--muted);
  cursor: pointer;
  padding: 10px 28px 12px;
  letter-spacing: 0.04em;
  transition: color 0.25s;
  position: relative;
}

.tab-btn::after {
  content: '';
  position: absolute;
  bottom: -1px; left: 0;
  width: 0; height: 2px;
  background: var(--accent);
  transition: width 0.3s ease;
}

.tab-btn.active { color: var(--text); }
.tab-btn.active::after { width: 100%; }

.tab-content {
  display: none;
  animation: fade 0.4s ease;
}

.tab-content.active { display: block; }

/* Grid de ícones aprimorado */
.hard-icons {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 12px;
}

.skill-icon-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 20px 10px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  transition: all 0.25s ease;
  cursor: default;
}

.skill-icon-card:hover {
  background: rgba(192,132,252,0.06);
  border-color: rgba(192,132,252,0.3);
  transform: translateY(-3px);
}

.skill-icon-card i {
  font-size: 2rem;
  color: var(--muted);
  transition: color 0.25s;
}

.skill-icon-card:hover i { color: var(--text); }

.skill-icon-card span {
  font-family: var(--mono);
  font-size: 0.62rem;
  color: var(--muted);
  letter-spacing: 0.05em;
  text-align: center;
}

/* Soft skills */
.soft-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.skill {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 24px;
  transition: border-color 0.25s;
}

.skill:hover { border-color: rgba(192,132,252,0.3); }

.skill-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
}

.skill span {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text);
}

.skill-pct {
  font-family: var(--mono);
  font-size: 0.8rem;
  color: var(--accent);
}

.barra {
  height: 3px;
  background: rgba(255,255,255,0.08);
  border-radius: 10px;
  overflow: hidden;
}

.nivel {
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--accent3), var(--accent));
  border-radius: 10px;
  transition: width 1.4s cubic-bezier(0.4,0,0.2,1);
}

/* PROJETOS */
.projetos-inner { margin-top: 3rem; }

.projetos-box {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
}

.projetos-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  transition: all 0.3s ease;
  position: relative;
}

.projetos-card:hover {
  border-color: rgba(192,132,252,0.35);
  transform: translateY(-4px);
  box-shadow: 0 20px 60px rgba(0,0,0,0.4), 0 0 0 1px rgba(192,132,252,0.1);
}

.projetos-img-wrap {
  position: relative;
  overflow: hidden;
}

.projetos-img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
  filter: brightness(0.9);
}

.projetos-card:hover .projetos-img { transform: scale(1.04); }

.projeto-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(10,10,15,0.8) 0%, transparent 60%);
}

.projetos-body {
  padding: 20px 22px 22px;
}

.info-projetos {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--text);
}

.projetos-p {
  font-size: 0.875rem;
  color: var(--muted);
  line-height: 1.7;
}

.projeto-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 14px;
  font-family: var(--mono);
  font-size: 0.72rem;
  color: var(--accent);
  text-decoration: none;
  letter-spacing: 0.08em;
  transition: gap 0.2s;
}

.projeto-link:hover { gap: 10px; }

/* CONTATO */
.contato {
  text-align: center;
  padding-bottom: 120px;
}

.contato-inner { margin-top: 3rem; }

.contato-subtitle {
  font-size: 1rem;
  color: var(--muted);
  margin-bottom: 50px;
}

.contato-links {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

.contato-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 24px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  text-decoration: none;
  color: var(--muted);
  font-size: 0.875rem;
  font-weight: 500;
  transition: all 0.25s ease;
  opacity: 0;
  transform: translateY(20px);
  animation: cardReveal 0.5s ease forwards;
  animation-delay: var(--delay);
}

.contato-card i {
  font-size: 1.2rem;
  color: var(--accent);
}

.contato-card:hover {
  background: rgba(192,132,252,0.06);
  border-color: rgba(192,132,252,0.4);
  color: var(--text);
  transform: translateY(-3px);
}

.contato-cta {
  margin-top: 60px;
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.4rem;
  color: var(--muted);
}

.contato-cta span {
  color: var(--accent);
  font-style: normal;
  font-weight: 700;
}

/* Footer */
footer {
  text-align: center;
  padding: 30px 5%;
  border-top: 1px solid var(--border);
  font-family: var(--mono);
  font-size: 0.72rem;
  color: var(--muted);
  letter-spacing: 0.08em;
}

/* ANIMAÇÕES */
@keyframes fade {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes cardReveal {
  to { opacity: 1; transform: translateY(0); }
}

.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition:
    opacity 0.8s cubic-bezier(0.22,1,0.36,1),
    transform 0.8s cubic-bezier(0.22,1,0.36,1);
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

/* RESPONSIVO */
@media (max-width: 1024px) {
  .header-content { gap: 50px; }
  .fotoPerfil { width: 320px; }
  .sobre { grid-template-columns: 1fr; gap: 40px; }
  .hard-icons { grid-template-columns: repeat(4, 1fr); }
}

@media (max-width: 768px) {
  .menu { gap: 1.2rem; flex-wrap: wrap; }
  .nav-logo { display: none; }

  .header-content {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 40px;
    padding-top: 100px;
  }

  .foto-wrapper { display: flex; justify-content: center; }
  .fotoPerfil { width: 260px; }

  .hero-tag { justify-content: center; }
  .hero-sub { margin: 0 auto; }
  .social-links { justify-content: center; }

  .timeline-item { grid-template-columns: 1fr; gap: 8px; }
  .hard-icons { grid-template-columns: repeat(3, 1fr); }
  .soft-grid { grid-template-columns: 1fr; }
  .sobre-stats { flex-wrap: wrap; gap: 1.5rem; }
}

@media (max-width: 480px) {
  .hard-icons { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .menu { font-size: 0.8rem; gap: 0.8rem; }
}
