/* ===== RESET ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  font-family: "Inter", sans-serif;
  background: #0a0a0f;
  color: #e5e5e5;
  scroll-behavior: smooth;
}

/* ===== BACKGROUND ANIMADO ===== */
.bg-mesh {
  position: fixed;
  inset: 0;
  background: radial-gradient(ellipse at 20% 30%, #4f46e5 0%, transparent 60%),
              radial-gradient(ellipse at 80% 70%, #06b6d4 0%, transparent 60%),
              radial-gradient(ellipse at 50% 90%, #22c55e 0%, transparent 50%);
  filter: blur(120px);
  opacity: .35;
  animation: pulse 12s ease-in-out infinite alternate;
  z-index: -1;
}

@keyframes pulse {
  from { transform: scale(1);}
  to   { transform: scale(1.2);}
}

/* ===== NAVBAR ===== */
.nav {
  position: fixed;
  top: 0;
  width: 100%;
  backdrop-filter: blur(12px);
  background: rgba(15,15,25,0.6);
  border-bottom: 1px solid rgba(255,255,255,.05);
  z-index: 100;
}
.nav .wrap {
  max-width: 1100px;
  margin: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 2rem;
}
.nav .brand {
  font-weight: 700;
  font-size: 1.2rem;
  display: flex;
  gap: .5rem;
  color: #fff;
  text-decoration: none;
}
.nav .link {
  margin-left: 1.5rem;
  font-weight: 500;
  color: #bbb;
  text-decoration: none;
  transition: .3s;
}
.nav .link:hover {
  color: #fff;
}

/* ===== HERO ===== */
.hero {
  min-height: 100vh;
  max-width: 1100px;
  margin: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 7rem 2rem 3rem;
  gap: 2rem;
}
.hero .title {
  font-size: clamp(2rem, 5vw, 3.5rem);
  line-height: 1.2;
}
.gradient {
  background: linear-gradient(90deg,#4f46e5,#06b6d4,#22c55e);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.sub {
  margin-top: 1rem;
  color: #aaa;
  max-width: 500px;
  line-height: 1.6;
}
.badge {
  display: inline-block;
  font-size: .9rem;
  padding: .4rem .8rem;
  border-radius: 999px;
  background: rgba(255,255,255,.05);
  margin-bottom: 1rem;
}

/* ===== BOTÕES ===== */
.btn {
  display: inline-block;
  padding: .8rem 1.6rem;
  border-radius: 999px;
  font-weight: 600;
  text-decoration: none;
  transition: .3s;
  background: linear-gradient(90deg,#4f46e5,#06b6d4);
  color: #fff;
  margin-right: .8rem;
  box-shadow: 0 4px 15px rgba(0,0,0,.3);
}
.btn:hover { transform: translateY(-3px); }
.btn.secondary {
  background: rgba(255,255,255,.1);
  color: #fff;
}

/* ===== ORBITS (lado direito HERO) ===== */
.me {
  position: relative;
  width: 260px;
  height: 260px;
}
.orbit {
  position: absolute;
  inset: 0;
  border: 2px dashed rgba(255,255,255,.15);
  border-radius: 50%;
  animation: spin 20s linear infinite;
}
.orbit:nth-child(2) {
  inset: 20px;
  animation-duration: 12s;
}
@keyframes spin {
  to { transform: rotate(360deg); }
}

/* ===== SEÇÕES ===== */
section {
  max-width: 1100px;
  margin: auto;
  padding: 6rem 2rem;
}
.title {
  font-size: 2rem;
  margin-bottom: 1rem;
}
.skills {
  display: flex;
  flex-wrap: wrap;
  gap: .6rem;
  margin-top: 1.5rem;
}
.chip {
  padding: .5rem 1rem;
  border-radius: 999px;
  background: rgba(255,255,255,.07);
  font-size: .9rem;
}

/* ===== PROJETOS GRID ===== */
.grid {
  margin-top: 2rem;
  display: grid;
  grid-template-columns: repeat(auto-fit,minmax(280px,1fr));
  gap: 2rem;
}
.card {
  padding: 1.8rem;
  background: rgba(255,255,255,.05);
  border-radius: 1rem;
  transition: .3s;
  cursor: pointer;
}
.card:hover {
  background: rgba(255,255,255,.08);
}
.tag {
  display: inline-block;
  font-size: .75rem;
  background: rgba(255,255,255,.1);
  padding: .3rem .8rem;
  border-radius: 999px;
}
.thumb {
  font-size: 2rem;
  margin: 1rem 0;
}
.card a {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  color: #06b6d4;
  text-decoration: none;
  font-weight: 500;
  margin-top: 1rem;
}
.dot {
  width: 6px;
  height: 6px;
  background: #06b6d4;
  border-radius: 50%;
}

/* ===== CONTATO ===== */
.contact {
  display: grid;
  grid-template-columns: repeat(auto-fit,minmax(280px,1fr));
  gap: 2rem;
  margin-top: 2rem;
}
.panel {
  background: rgba(255,255,255,.05);
  padding: 2rem;
  border-radius: 1rem;
}
.inputs input, .inputs textarea {
  width: 100%;
  margin-bottom: 1rem;
  padding: .8rem 1rem;
  border: none;
  border-radius: .6rem;
  background: rgba(255,255,255,.08);
  color: #fff;
  font-size: .95rem;
}
.inputs input::placeholder,
.inputs textarea::placeholder { color: #999; }

/* ===== FOOTER ===== */
footer {
  text-align: center;
  padding: 2rem;
  font-size: .9rem;
  color: #777;
  border-top: 1px solid rgba(255,255,255,.05);
}

/* ===== REVEAL ANIMATION ===== */
.reveal { opacity: 0; transform: translateY(40px); transition: .7s ease-out; }
.reveal.show { opacity: 1; transform: translateY(0); }
