*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
:root {
  --bg: #0a0a0a;
  --surface: #111111;
  --border: #1e1e1e;
  --accent: #2bd241;
  --text: #f0f0f0;
  --muted: #5a5a5a;
  --font-head: "Syne", sans-serif;
  --font-mono: "DM Mono", monospace;
}
html {
  scroll-behavior: smooth;
}
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-mono);
  font-size: 14px;
  line-height: 1.7;
  overflow-x: hidden;
}
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.04'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 9999;
  opacity: 0.4;
}

nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 48px;
  border-bottom: 1px solid var(--border);
  background: rgba(10, 10, 10, 0.88);
  backdrop-filter: blur(12px);
}
.nav-logo {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 18px;
  letter-spacing: -0.5px;
  color: var(--accent);
}
.nav-links {
  display: flex;
  gap: 32px;
  list-style: none;
}
.nav-links a {
  color: var(--muted);
  text-decoration: none;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: color 0.2s;
}
.nav-links a:hover {
  color: var(--accent);
}

#hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 120px 48px 80px;
  position: relative;
  overflow: hidden;
}
.hero-grid-bg {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(232, 255, 71, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(232, 255, 71, 0.03) 1px, transparent 1px);
  background-size: 48px 48px;
}
.hero-blob {
  position: absolute;
  width: 600px;
  height: 600px;
  right: -100px;
  top: 50%;
  transform: translateY(-50%);
  background: radial-gradient(
    ellipse,
    rgba(232, 255, 71, 0.07) 0%,
    transparent 70%
  );
  border-radius: 50%;
  filter: blur(40px);
  animation: pulse 6s ease-in-out infinite;
}
@keyframes pulse {
  0%,
  100% {
    transform: translateY(-50%) scale(1);
    opacity: 0.6;
  }
  50% {
    transform: translateY(-50%) scale(1.1);
    opacity: 1;
  }
}
.hero-content {
  position: relative;
  max-width: 820px;
}
.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--border);
  border: 1px solid #2a2a2a;
  padding: 6px 14px;
  border-radius: 100px;
  font-size: 11px;
  color: var(--muted);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 32px;
  animation: fadeUp 0.6s ease both;
}
.hero-tag .dot {
  width: 6px;
  height: 6px;
  background: var(--accent);
  border-radius: 50%;
  animation: blink 1.5s ease-in-out infinite;
}
@keyframes blink {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.3;
  }
}
h1 {
  font-family: var(--font-head);
  font-size: clamp(52px, 8vw, 96px);
  font-weight: 800;
  line-height: 0.95;
  letter-spacing: -3px;
  margin-bottom: 28px;
  animation: fadeUp 0.6s 0.1s ease both;
}
h1 em {
  font-style: normal;
  color: var(--accent);
  display: block;
}
.hero-desc {
  font-size: 15px;
  color: var(--muted);
  max-width: 420px;
  line-height: 1.8;
  margin-bottom: 48px;
  animation: fadeUp 0.6s 0.2s ease both;
}
.hero-actions {
  display: flex;
  gap: 16px;
  animation: fadeUp 0.6s 0.3s ease both;
}
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  font-family: var(--font-mono);
  font-size: 13px;
  text-decoration: none;
  border-radius: 4px;
  transition: all 0.2s;
  cursor: pointer;
  border: none;
  letter-spacing: 0.04em;
}
.btn-primary {
  background: var(--accent);
  color: #0a0a0a;
}
.btn-primary:hover {
  background: #f4ff7a;
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(232, 255, 71, 0.25);
}
.btn-ghost {
  background: transparent;
  color: var(--muted);
  border: 1px solid var(--border);
}
.btn-ghost:hover {
  border-color: var(--muted);
  color: var(--text);
}
.hero-stats {
  display: flex;
  gap: 48px;
  margin-top: 80px;
  padding-top: 48px;
  border-top: 1px solid var(--border);
  animation: fadeUp 0.6s 0.4s ease both;
}
.stat-num {
  font-family: var(--font-head);
  font-size: 36px;
  font-weight: 800;
  color: var(--accent);
  display: block;
}
.stat-label {
  font-size: 11px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

section {
  padding: 100px 48px;
  border-top: 1px solid var(--border);
}
.section-label {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 11px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  margin-bottom: 56px;
}
.section-label::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--border);
  max-width: 80px;
}
.section-label span {
  color: var(--accent);
  margin-right: 4px;
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}
.about-text h2 {
  font-family: var(--font-head);
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 800;
  letter-spacing: -1.5px;
  line-height: 1.1;
  margin-bottom: 24px;
}
.about-text p {
  color: var(--muted);
  line-height: 1.9;
  margin-bottom: 16px;
  font-size: 14px;
}
.about-text p strong {
  color: var(--text);
  font-weight: 400;
}
.skills-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2px;
}
.skill-item {
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 16px 20px;
  transition: all 0.2s;
  cursor: default;
}
.skill-item:hover {
  border-color: var(--accent);
  background: rgba(232, 255, 71, 0.04);
}
.skill-name {
  font-family: var(--font-head);
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 4px;
}
.skill-type {
  font-size: 11px;
  color: var(--muted);
}

.skill-bar-wrap {
  margin-top: 10px;
  height: 3px;
  background: var(--border);
  border-radius: 2px;
  overflow: hidden;
}
.skill-bar {
  height: 100%;
  background: var(--accent);
  border-radius: 2px;
  width: 0;
  transition: width 1s cubic-bezier(0.4, 0, 0.2, 1);
}
.skill-bar-label {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 8px;
}
.skill-level {
  font-size: 10px;
  color: var(--accent);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
}
.project-card {
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  transition: all 0.25s;
  position: relative;
  overflow: hidden;
  cursor: pointer;
}
.project-card::before {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}
.project-card:hover::before {
  transform: scaleX(1);
}
.project-card:hover {
  border-color: #2a2a2a;
  transform: translateY(-4px);
}
.project-num {
  font-family: var(--font-head);
  font-size: 11px;
  color: var(--muted);
  letter-spacing: 0.1em;
}
.project-title {
  font-family: var(--font-head);
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.5px;
  line-height: 1.2;
}
.project-desc {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.7;
  flex: 1;
}
.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.tag {
  font-size: 10px;
  padding: 3px 10px;
  background: var(--border);
  border-radius: 100px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.project-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--accent);
  text-decoration: none;
  transition: gap 0.2s;
}
.project-link:hover {
  gap: 10px;
}

.experience-list {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.exp-item {
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 32px 40px;
  display: grid;
  grid-template-columns: 200px 1fr auto;
  gap: 24px;
  align-items: start;
  transition: border-color 0.2s;
}
.exp-item:hover {
  border-color: #2a2a2a;
}
.exp-period {
  font-size: 12px;
  color: var(--muted);
  padding-top: 2px;
}
.exp-role {
  font-family: var(--font-head);
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 4px;
}
.exp-company {
  font-size: 13px;
  color: var(--accent);
  margin-bottom: 12px;
}
.exp-desc {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.7;
}
.exp-badge {
  font-size: 10px;
  padding: 4px 12px;
  border: 1px solid var(--border);
  border-radius: 100px;
  color: var(--muted);
  white-space: nowrap;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.exp-badge.active {
  border-color: var(--accent);
  color: var(--accent);
}

#modal-contato {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(6px);
  z-index: 200;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
#modal-contato.open {
  display: flex;
}
.modal-box {
  background: #111;
  border: 1px solid #2a2a2a;
  padding: 48px;
  max-width: 520px;
  width: 100%;
  position: relative;
  animation: fadeUp 0.3s ease both;
}
.modal-close {
  position: absolute;
  top: 20px;
  right: 20px;
  background: none;
  border: none;
  color: var(--muted);
  font-size: 16px;
  cursor: pointer;
  transition: color 0.2s;
}
.modal-close:hover {
  color: var(--accent);
}
.modal-label {
  font-size: 11px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  margin-bottom: 12px;
}
.modal-title {
  font-family: var(--font-head);
  font-size: 32px;
  font-weight: 800;
  letter-spacing: -1px;
  margin-bottom: 32px;
}
.field-group {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 8px;
}
.modal-input {
  width: 100%;
  background: var(--bg);
  border: 1px solid var(--border);
  color: var(--text);
  font-family: var(--font-mono);
  font-size: 13px;
  padding: 14px 16px;
  outline: none;
  transition: border-color 0.2s;
  border-radius: 2px;
}
.modal-input:focus {
  border-color: var(--accent);
}
.modal-input::placeholder {
  color: var(--muted);
}
.modal-textarea {
  height: 120px;
  resize: none;
  margin-bottom: 16px;
}
.modal-btn {
  width: 100%;
  background: var(--accent);
  color: #0a0a0a;
  border: none;
  font-family: var(--font-mono);
  font-size: 13px;
  padding: 14px;
  cursor: pointer;
  transition: all 0.2s;
  border-radius: 2px;
}
.modal-btn:hover {
  background: #f4ff7a;
}
.modal-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}
.modal-feedback {
  font-size: 12px;
  color: var(--muted);
  margin-top: 12px;
  text-align: center;
}
.modal-feedback.ok {
  color: var(--accent);
}
.modal-feedback.erro {
  color: #ff6b6b;
}

.contact-wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}
.contact-heading h2 {
  font-family: var(--font-head);
  font-size: clamp(32px, 5vw, 60px);
  font-weight: 800;
  letter-spacing: -2px;
  line-height: 1;
  margin-bottom: 16px;
}
.contact-heading h2 em {
  color: var(--accent);
  font-style: normal;
}
.contact-heading p {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.8;
}
.contact-links {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.contact-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 28px;
  background: var(--surface);
  border: 1px solid var(--border);
  text-decoration: none;
  color: var(--text);
  transition: all 0.2s;
  font-family: var(--font-head);
  font-size: 15px;
  font-weight: 700;
}
.contact-link:hover {
  border-color: var(--accent);
  color: var(--accent);
  padding-right: 36px;
}
.contact-link span {
  font-size: 11px;
  color: var(--muted);
  font-family: var(--font-mono);
  font-weight: 400;
}

footer {
  padding: 32px 48px;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 11px;
  color: var(--muted);
}
.footer-logo {
  font-family: var(--font-head);
  font-weight: 800;
  color: var(--accent);
}
::-webkit-scrollbar {
  width: 4px;
}
::-webkit-scrollbar-track {
  background: var(--bg);
}
::-webkit-scrollbar-thumb {
  background: var(--border);
  border-radius: 2px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--muted);
}

@media (max-width: 900px) {
  nav {
    padding: 16px 24px;
  }
  .nav-links {
    display: none;
  }
  #hero,
  section {
    padding-left: 24px;
    padding-right: 24px;
  }
  .about-grid,
  .contact-wrap {
    grid-template-columns: 1fr;
    gap: 48px;
  }
  .projects-grid {
    grid-template-columns: 1fr;
  }
  .exp-item {
    grid-template-columns: 1fr;
    gap: 8px;
  }
  footer {
    flex-direction: column;
    gap: 8px;
    text-align: center;
  }
}
