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

:root {
  --bg: #0b0d12;
  --surface: #12151d;
  --surface2: #181c27;
  --border: #1f2538;
  --accent: #4f8cff;
  --accent2: #7c3aed;
  --green: #22d3a5;
  --text: #e8eaf0;
  --muted: #6b7280;
  --card-bg: #13172060;
  --r: 14px;
}

html, body { overflow-x: hidden; max-width: 100%; }
html { scroll-behavior: smooth; }

body {
  font-family: 'DM Sans', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
}

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

/* ── NAV ── */
nav {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 200;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 5vw;
  height: 70px;
  background: rgba(11,13,18,0.92);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);

align-items:center;
justify-content:space-between;
}
.nav-logo {
  height: 44px;
  width: auto;
  display: block;
}
.nav-logo img{
max-height:42px;
width:auto;
}
.nav-logo span { color: var(--accent); }
.nav-links { display: flex; gap: 2rem; list-style: none; }
.nav-links a { color: var(--muted); text-decoration: none; font-size: 0.9rem; font-weight: 500; transition: color 0.2s; }
.nav-links a:hover { color: var(--text); }
.nav-cta { background: var(--accent); color: #fff !important; padding: 0.45rem 1.2rem; border-radius: 50px; font-size: 0.85rem !important; }
.nav-cta:hover { background: #3a7aee; }

/* ── HAMBURGER ── */
.hamburger {
  display: none;
  flex-direction: column; justify-content: center; align-items: center;
  width: 42px; height: 42px;
  border: 1px solid var(--border); border-radius: 10px;
  background: var(--surface); cursor: pointer; gap: 5px;
  z-index: 210; position: relative;
  transition: border-color 0.2s, background 0.2s;
}
.hamburger:hover { border-color: var(--accent); background: rgba(79,140,255,0.08); }
.hamburger span {
  display: block; width: 20px; height: 2px;
  background: var(--text); border-radius: 2px;
  transition: transform 0.35s cubic-bezier(0.23,1,0.32,1), opacity 0.25s, width 0.3s;
  transform-origin: center;
}
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; width: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── MOBILE DRAWER ── */
.mobile-menu { position: fixed; top: 0; left: 0; right: 0; bottom: 0; z-index: 190; pointer-events: none; visibility: hidden; }
.mobile-menu-overlay { position: absolute; inset: 0; background: rgba(0,0,0,0.6); backdrop-filter: blur(4px); opacity: 0; transition: opacity 0.35s ease; }
.mobile-menu-drawer {
  position: absolute; top: 0; right: 0;
  width: min(320px, 85vw); height: 100%;
  background: var(--surface); border-left: 1px solid var(--border);
  padding: 90px 2rem 2rem;
  display: flex; flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.4s cubic-bezier(0.23,1,0.32,1);
  box-shadow: -20px 0 60px rgba(0,0,0,0.5);
}
.mobile-menu.open { pointer-events: all; visibility: visible; }
.mobile-menu.open .mobile-menu-overlay { opacity: 1; }
.mobile-menu.open .mobile-menu-drawer { transform: translateX(0); }
.mobile-nav-links { list-style: none; display: flex; flex-direction: column; gap: 0.3rem; }
.mobile-nav-links li { opacity: 0; transform: translateX(20px); transition: opacity 0.35s ease, transform 0.35s ease; }
.mobile-menu.open .mobile-nav-links li:nth-child(1) { opacity:1; transform:none; transition-delay: 0.1s; }
.mobile-menu.open .mobile-nav-links li:nth-child(2) { opacity:1; transform:none; transition-delay: 0.15s; }
.mobile-menu.open .mobile-nav-links li:nth-child(3) { opacity:1; transform:none; transition-delay: 0.2s; }
.mobile-menu.open .mobile-nav-links li:nth-child(4) { opacity:1; transform:none; transition-delay: 0.25s; }
.mobile-nav-links a {
  display: flex; align-items: center; gap: 0.8rem;
  padding: 0.9rem 1rem; border-radius: 10px;
  color: var(--text); text-decoration: none;
  font-family: 'Syne', sans-serif; font-weight: 600; font-size: 1rem;
  transition: background 0.2s, color 0.2s; border: 1px solid transparent;
}
.mobile-nav-links a:hover { background: rgba(79,140,255,0.08); border-color: rgba(79,140,255,0.2); color: var(--accent); }
.mobile-nav-links a i { width: 18px; text-align: center; color: var(--accent); font-size: 0.85rem; }
.mobile-nav-cta { margin-top: 1.5rem; background: var(--accent) !important; color: #fff !important; justify-content: center; border-color: transparent !important; box-shadow: 0 0 24px rgba(79,140,255,0.3); }
.mobile-nav-cta:hover { background: #3a7aee !important; }
.mobile-nav-cta i { color: #fff !important; }
.mobile-menu-footer { margin-top: auto; padding-top: 1.5rem; border-top: 1px solid var(--border); display: flex; gap: 0.8rem; }
.mobile-social {
  display: flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; border-radius: 10px;
  background: var(--surface2); border: 1px solid var(--border);
  color: var(--muted); text-decoration: none; font-size: 0.9rem;
  transition: border-color 0.2s, color 0.2s, background 0.2s;
}
.mobile-social:hover { border-color: var(--accent); color: var(--accent); background: rgba(79,140,255,0.08); }

/* ── HERO ── */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex; align-items: center;
  padding: 120px 5vw 80px;
  overflow: hidden;
}
.blob { position: absolute; border-radius: 50%; filter: blur(80px); pointer-events: none; z-index: 0; }
.blob-1 { width: 520px; height: 520px; background: radial-gradient(circle, rgba(79,140,255,0.15), transparent 70%); top: -100px; right: -100px; }
.blob-2 { width: 400px; height: 400px; background: radial-gradient(circle, rgba(124,58,237,0.12), transparent 70%); bottom: 0; left: 0; }

.hero-inner {
  position: relative; z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  max-width: 1200px;
  margin: auto;
  width: 100%;
}

.badge {
  display: inline-flex; align-items: center; gap: 0.5rem;
  background: rgba(79,140,255,0.12);
  border: 1px solid rgba(79,140,255,0.25);
  border-radius: 50px; padding: 0.3rem 1rem;
  font-size: 0.8rem; color: var(--accent); font-weight: 500;
  margin-bottom: 1.5rem; letter-spacing: 0.02em;
  white-space: nowrap;
  max-width: 100%;
}
.badge .dot { width: 7px; height: 7px; background: var(--green); border-radius: 50%; animation: pulse 2s infinite; }

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.8); }
}
.hero h1 {
  font-family: 'Syne', sans-serif;
  font-size: clamp(1.8rem, 3vw, 3rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.03em;
  margin-bottom: 1.2rem;
  white-space: normal;
  word-break: keep-all;
}

.hero h1 .line-accent {
  background: linear-gradient(90deg, var(--accent), var(--accent2));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
@media (min-width: 901px) {
  .hero h1 {
    font-size: clamp(2rem, 3.5vw, 2.8rem);
    white-space: nowrap;
  }
}
.hero p {
  color: var(--muted); font-size: 1.05rem;
  max-width: 480px; margin-bottom: 2rem; line-height: 1.7;
}

.hero-btns { display: flex; gap: 1rem; flex-wrap: wrap; }

.btn-primary {
  display: inline-flex; align-items: center; gap: 0.5rem;
  background: var(--accent); color: #fff;
  padding: 0.8rem 1.8rem; border-radius: 50px;
  text-decoration: none; font-weight: 600; font-size: 0.95rem;
  transition: transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 0 30px rgba(79,140,255,0.3);
  white-space: nowrap;
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 6px 30px rgba(79,140,255,0.5); }

.btn-ghost {
  display: inline-flex; align-items: center; gap: 0.5rem;
  background: transparent; color: var(--text);
  padding: 0.8rem 1.8rem; border-radius: 50px;
  text-decoration: none; font-weight: 500; font-size: 0.95rem;
  border: 1px solid var(--border);
  transition: border-color 0.2s, background 0.2s;
  white-space: nowrap;
}
.btn-ghost:hover { border-color: var(--accent); background: rgba(79,140,255,0.06); }

/* ── HERO VISUAL ── */
.hero-visual {
  position: relative;
  display: flex; align-items: center; justify-content: center;
}
.avatar-ring {
  width: 320px; height: 320px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent2) 100%);
  padding: 3px; position: relative;
}
.avatar-inner {
  width: 100%; height: 100%;
  border-radius: 50%;
  background: var(--surface);
  display: flex; align-items: center; justify-content: center;
  font-size: 7rem;
}

/* ── TECH PILLS ── */
.tech-pill {
  position: absolute;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 50px; padding: 0.5rem 1rem;
  font-size: 0.8rem; font-weight: 600;
  font-family: 'Syne', sans-serif;
  white-space: nowrap;
  display: flex; align-items: center; gap: 0.4rem;
  color: var(--text);
  box-shadow: 0 4px 20px rgba(0,0,0,0.4);
  z-index: 2;
}
.tp-1 { top: 16px; left: -8px; transform: translateX(-100%); }
.tp-2 { top: 50%; right: -8px; transform: translateY(-50%) translateX(100%); }
.tp-3 { bottom: 16px; left: -8px; transform: translateX(-100%); }

/* ── STATS ── */
.stats {
  padding: 3rem 5vw;
  display: grid; grid-template-columns: repeat(3, 1fr);
  max-width: 1200px; margin: 0 auto;
}
.stat { text-align: center; padding: 1rem; border-right: 1px solid var(--border); }
.stat:last-child { border-right: none; }
.stat-number {
  font-family: 'Syne', sans-serif; font-size: 2.5rem; font-weight: 800;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.stat-label { color: var(--muted); font-size: 0.9rem; margin-top: 0.3rem; }

/* ── SECTIONS ── */
section { padding: 6rem 5vw; max-width: 1200px; margin: 0 auto; }

.section-tag {
  display: inline-block; font-size: 0.75rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.12em;
  color: var(--accent); margin-bottom: 0.8rem;
}
.section-title {
  font-family: 'Syne', sans-serif;
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  font-weight: 800; letter-spacing: -0.02em; margin-bottom: 1rem;
}
.section-desc { color: var(--muted); max-width: 560px; font-size: 1rem; line-height: 1.7; }

/* ── SKILLS ── */
.skills-header { margin-bottom: 3rem; }
.skills-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 1.2rem; }
.skill-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--r); padding: 1.5rem;
  transition: border-color 0.25s, transform 0.25s;
  position: relative; overflow: hidden;
}
.skill-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, var(--accent), var(--accent2));
  opacity: 0; transition: opacity 0.25s;
}
.skill-card:hover { border-color: var(--accent); transform: translateY(-4px); }
.skill-card:hover::before { opacity: 1; }
.skill-icon { font-size: 2rem; margin-bottom: 0.8rem; }
.skill-title { font-family: 'Syne', sans-serif; font-weight: 700; font-size: 1rem; margin-bottom: 0.5rem; }
.skill-tags { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-top: 0.8rem; }
.tag { background: rgba(79,140,255,0.08); border: 1px solid rgba(79,140,255,0.15); color: var(--accent); font-size: 0.72rem; font-weight: 600; padding: 0.2rem 0.6rem; border-radius: 50px; letter-spacing: 0.02em; }
.tag.purple { background: rgba(124,58,237,0.08); border-color: rgba(124,58,237,0.2); color: #a78bfa; }
.tag.green  { background: rgba(34,211,165,0.08);  border-color: rgba(34,211,165,0.2);  color: var(--green); }

/* ── EXPERIENCE ── */
.exp-grid { display: grid; gap: 1.2rem; margin-top: 3rem; }
.exp-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--r); padding: 1.8rem 2rem;
  display: grid; grid-template-columns: auto 1fr; gap: 1.5rem;
  transition: border-color 0.2s;
}
.exp-card:hover { border-color: var(--accent); }
.exp-timeline { display: flex; flex-direction: column; align-items: center; }
.exp-dot { width: 12px; height: 12px; border-radius: 50%; background: var(--accent); flex-shrink: 0; }
.exp-line { width: 2px; flex: 1; background: var(--border); margin-top: 6px; }
.exp-period { font-size: 0.8rem; color: var(--accent); font-weight: 600; margin-bottom: 0.3rem; }
.exp-role { font-family: 'Syne', sans-serif; font-weight: 700; font-size: 1.1rem; margin-bottom: 0.2rem; }
.exp-company { color: var(--muted); font-size: 0.9rem; margin-bottom: 0.8rem; }
.exp-desc { color: var(--muted); font-size: 0.92rem; line-height: 1.6; }

/* ── PROJECTS ── */
.projects-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 1.4rem; margin-top: 3rem; }
.project-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r); overflow: hidden; transition: transform 0.25s, border-color 0.25s; }
.project-card:hover { transform: translateY(-5px); border-color: var(--accent); }
.project-header { padding: 1.5rem 1.5rem 1rem; display: flex; align-items: center; justify-content: space-between; }
.project-icon { width: 100%; max-width: 500px; aspect-ratio: 500 / 450; overflow: hidden; border-radius: 10px; }
.project-img { width: 100%; height: 100%; object-fit: cover; border-radius: 10px; transition: transform 0.3s ease; }
@media (hover: hover) {
  .project-icon:hover { transform: translateY(-5px); }
  .project-icon:hover .project-img { transform: scale(1.1); }
}
.project-link { color: var(--muted); text-decoration: none; font-size: 0.9rem; transition: color 0.2s; }
.project-link:hover { color: var(--accent); }
.project-body { padding: 0 1.5rem 1.5rem; }
.project-title { font-family: 'Syne', sans-serif; font-weight: 700; font-size: 1.05rem; margin-bottom: 0.5rem; }
.project-desc { color: var(--muted); font-size: 0.9rem; line-height: 1.6; margin-bottom: 1rem; }

/* ── MODAL ── */
.image-modal { display: none; position: fixed; z-index: 9999; inset: 0; background: rgba(0,0,0,0.85); justify-content: center; align-items: center; backdrop-filter: blur(5px); animation: fadeIn 0.3s ease; }
.modal-content { max-width: 90%; max-height: 90%; border-radius: 20px; animation: zoomIn 0.3s ease; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes zoomIn { from { transform: scale(0.8); } to { transform: scale(1); } }

/* ── CONTACT ── */
.contact-wrapper {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: calc(var(--r) * 1.5); padding: 3.5rem;
  display: grid; grid-template-columns: 1fr 1fr; gap: 3rem;
  align-items: center; position: relative; overflow: hidden;
}
.contact-wrapper::before {
  content: ''; position: absolute; top: -100px; right: -100px;
  width: 300px; height: 300px; border-radius: 50%;
  background: radial-gradient(circle, rgba(79,140,255,0.1), transparent 70%);
}
.social-links { display: flex; flex-direction: column; gap: 1rem; margin-top: 2rem; }
.social-link {
  display: flex; align-items: center; gap: 1rem;
  color: var(--text); text-decoration: none; padding: 1rem;
  background: var(--surface2); border: 1px solid var(--border);
  border-radius: 12px; font-size: 0.9rem;
  transition: border-color 0.2s, transform 0.2s;
}
.social-link:hover { border-color: var(--accent); transform: translateX(5px); }
.social-link i { width: 20px; color: var(--accent); }

/* ── FOOTER ── */
footer { border-top: 1px solid var(--border); padding: 2rem 5vw; display: flex; align-items: center; justify-content: space-between; color: var(--muted); font-size: 0.85rem; }
footer a { color: var(--accent); text-decoration: none; }

/* ── DIVIDER ── */
.section-divider { border: none; border-top: 1px solid var(--border); max-width: 1200px; margin: 0 auto; }

/* ── SCROLL ANIM ── */
.fade-up { opacity: 0; transform: translateY(30px); transition: opacity 0.6s ease, transform 0.6s ease; }
.fade-up.visible { opacity: 1; transform: none; }

/* ══════════════════════════════════════════
   RESPONSIVE ≤ 900px
══════════════════════════════════════════ */
@media (max-width: 900px) {

  /* Hero */
  .hero { padding: 100px 5vw 60px; }

  .hero-inner {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero p { margin-left: auto; margin-right: auto; }

  /* Botões: empilhados e largura total */
  .hero-btns {
    flex-direction: column;
    align-items: stretch;
    gap: 0.8rem;
    width: 100%;
  }
  .btn-primary,
  .btn-ghost {
    width: 100%;
    justify-content: center;
    white-space: normal;
    text-align: center;
  }

  /* Pills: visíveis e ao redor do anel menor */
  .tech-pill {
    display: flex;
    font-size: 0.65rem;
    padding: 0.25rem 0.55rem;
    gap: 0.3rem;
  }
  .tp-1 { top: 10px; left: 70px; transform: translateX(-100%); }
  .tp-2 { top: 50%; right: 40px; transform: translateY(-50%) translateX(100%); }
  .tp-3 { bottom: 10px; left: 80px; transform: translateX(-100%); }

  /* Avatar */
  .hero-visual { margin-top: 2.5rem; padding: 0; }
  .avatar-ring { width: 200px; height: 200px; }
  .avatar-inner { font-size: 5rem; }

  /* Stats */
  .stats { grid-template-columns: 1fr; }
  .stat { border-right: none; border-bottom: 1px solid var(--border); }
  .stat:last-child { border-bottom: none; }

  /* Contact */
  .contact-wrapper { grid-template-columns: 1fr; padding: 2rem; }

  /* Nav */
  .nav-links { display: none; }
  .hamburger { display: flex; }
}

/* ══════════════════════════════════════════
   RESPONSIVE ≤ 480px
══════════════════════════════════════════ */
@media (max-width: 480px) {

  .hero { padding: 90px 4vw 50px; }

  .hero h1 {
    font-size: clamp(1.4rem, 6.5vw, 1.75rem);
    line-height: 1.2;
    word-break: break-word;
    overflow-wrap: break-word;
  }

  .hero p { font-size: 0.95rem; }

  .avatar-ring { width: 160px; height: 160px; }
  .avatar-inner { font-size: 4rem; }

  .projects-grid { grid-template-columns: 1fr; }
  .contact-wrapper { padding: 1.5rem; }
  .section-title { font-size: clamp(1.5rem, 6vw, 2rem); }
}

/* ── DESKTOP ≥ 992px: pills com posição original ── */
@media (min-width: 992px) {
  .tp-1 { top: 16px; left: 70px; transform: translateX(-100%); }
  .tp-2 { top: 50%; right: 50px; transform: translateY(-50%) translateX(100%); }
  .tp-3 { bottom: 16px; left: 80px; transform: translateX(-100%); }
}
