:root {
  --bg: #050816;
  --bg-alt: #0f172a;
  --card: #020617;
  --primary: #22c55e;
  --primary-soft: rgba(34, 197, 94, 0.15);
  --text: #e5e7eb;
  --muted: #9ca3af;
  --border: #1f2937;
  --accent: #38bdf8;
  --radius-lg: 18px;
  --shadow-soft: 0 18px 50px rgba(0, 0, 0, 0.55);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}


html, body {
  overflow-x: hidden;
}

body {
  background: radial-gradient(circle at top, #1f2933 0, #020617 45%, #000 100%);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
}

a {
  color: inherit;
  text-decoration: none;
}

.page {
  max-width: 1100px;
  margin: 0 auto;
  padding: 24px 16px 48px;
}

/* Header / Navegação */
header {
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: blur(14px);
  background: linear-gradient(
    to bottom,
    rgba(5, 6, 20, 0.9),
    rgba(5, 6, 20, 0.2),
    transparent
  );
  border-bottom: 1px solid rgba(15, 23, 42, 0.7);
}

.nav {
  max-width: 1100px;
  margin: 0 auto;
  padding: 10px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.nav-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo-circle {
  width: 40px;
  height: 40px;
  border-radius: 999px;
  background: radial-gradient(circle at 30% 10%, #bbf7d0, #22c55e, #15803d);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 20px;
  color: #022c22;
  box-shadow:
    0 0 0 2px rgba(34, 197, 94, 0.7),
    0 12px 30px rgba(22, 163, 74, 0.5);
}

.logo-text {
  display: flex;
  flex-direction: column;
}

.logo-text span:first-child {
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: .16em;
  color: var(--muted);
}

.logo-text strong {
  font-size: 15px;
}

.nav-links {
  display: flex;
  gap: 16px;
  font-size: 14px;
}

.nav-links a {
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid transparent;
  color: var(--muted);
  transition: 0.18s ease;
}

.nav-links a:hover {
  color: var(--text);
  border-color: rgba(148, 163, 184, 0.6);
  background: rgba(15, 23, 42, 0.8);
}

/* HERO */
.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(0, 2fr);
  gap: 32px;
  padding-top: 32px;
  padding-bottom: 32px;
  align-items: center;

 
  overflow: clip;
}

.hero-main,
.hero-side {
  position: relative;
  z-index: 2; 
}

.hero-main h1 {
  font-size: clamp(30px, 4vw, 38px);
  font-weight: 700;
}

.hero-main h1 span {
  background: linear-gradient(to right, #22c55e, #38bdf8);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-role {
  margin-top: 6px;
  font-size: 15px;
  color: var(--muted);
}

.hero-badges {
  margin: 18px 0 12px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.badge {
  font-size: 12px;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid transparent;
  color: var(--muted);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.badge--primary {
  border-color: rgba(34, 197, 94, 0.8);
  background: var(--primary-soft);
  color: #bbf7d0;
}

.hero-main p {
  margin-top: 6px;
  font-size: 15px;
  color: var(--muted);
  max-width: 540px;
}

.hero-actions {
  margin-top: 20px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.btn {
  font-size: 14px;
  border-radius: 999px;
  border: 1px solid transparent;
  padding: 8px 16px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  transition: 0.18s ease;
  background: transparent;
  color: var(--text);
}

.btn-primary {
  background: linear-gradient(135deg, #22c55e, #16a34a);
  color: #022c22;
  font-weight: 600;
  box-shadow: 0 15px 30px rgba(22, 163, 74, 0.5);
}

.btn-primary:hover {
  filter: brightness(1.05);
  transform: translateY(-1px);
}

.btn-outline {
  border-color: rgba(148, 163, 184, 0.6);
  color: var(--muted);
}

.btn-outline:hover {
  border-color: rgba(148, 163, 184, 0.9);
  color: var(--text);
  background: rgba(15, 23, 42, 0.8);
}


.hero-side {
  position: relative;
  margin-top: 64px; 
}

.card-hero {
  border-radius: 22px;
  border: 1px solid rgba(148, 163, 184, 0.2);
  background: radial-gradient(circle at top, #020617, #020617, #000);
  box-shadow: var(--shadow-soft);
  padding: 18px 18px 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 6px;
}

.card-header-main {
  display: flex;
  align-items: center;
  gap: 10px;
}

.company-logo {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: radial-gradient(circle at 10% 0, #f97316, #22c55e 40%, #15803d);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 18px;
  color: #f9fafb;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.7);
}

.company-info {
  display: flex;
  flex-direction: column;
}

.company-info strong {
  font-size: 14px;
}

.company-info span {
  font-size: 12px;
  color: var(--muted);
}

.pill {
  font-size: 11px;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.9);
  border: 1px solid rgba(148, 163, 184, 0.4);
  color: var(--muted);
}

.card-body p {
  font-size: 13px;
  color: var(--muted);
}

.tag-row {
  margin-top: 10px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.tag {
  font-size: 11px;
  padding: 4px 8px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.9);
  border: 1px solid rgba(55, 65, 81, 0.9);
  color: #e5e7eb;
}

.card-footer {
  margin-top: 10px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  color: var(--muted);
}

.card-footer-main {
  display: flex;
  align-items: center;
  gap: 6px;
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: #22c55e;
  box-shadow: 0 0 0 4px rgba(34, 197, 94, 0.3);
}

/* Seções gerais */
section {
  margin-bottom: 32px;
}

.section-title {
  font-size: 18px;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.section-title::before {
  content: "";
  width: 6px;
  height: 20px;
  border-radius: 999px;
  background: linear-gradient(to bottom, #22c55e, #38bdf8);
}

.section-subtitle {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 14px;
}

/* SOBRE / SKILLS */
.sobre-grid {
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(0, 2fr);
  gap: 20px;
}

.sobre-text {
  font-size: 14px;
  color: var(--muted);
}

.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 10px;
}

.skill-card {
  background: rgba(15, 23, 42, 0.95);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(31, 41, 55, 0.9);
  padding: 10px 12px;
  font-size: 12px;
}

.skill-card strong {
  font-size: 12px;
  display: inline-block;
  margin-bottom: 4px;
}

.skill-card span {
  font-size: 11px;
  color: var(--muted);
}

/* TECNOLOGIAS */
.tech-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
}

.tech-group {
  background: rgba(15, 23, 42, 0.97);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(31, 41, 55, 0.95);
  padding: 12px 14px;
}

.tech-group h3 {
  font-size: 14px;
  margin-bottom: 8px;
}

.tech-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.tech-tags span {
  font-size: 11px;
  padding: 4px 8px;
  border-radius: 999px;
  border: 1px solid rgba(55, 65, 81, 0.9);
  color: var(--muted);
}

/* EXPERIÊNCIA */
.timeline {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.experience-card {
  display: grid;
  grid-template-columns: 16px minmax(0, 1fr);
  gap: 12px;
}

.timeline-line {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.timeline-dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  border: 2px solid var(--primary);
  background: #020617;
}

.timeline-connector {
  flex: 1;
  width: 2px;
  background: linear-gradient(to bottom, var(--primary), transparent);
  opacity: 0.7;
}

.experience-body {
  background: rgba(15, 23, 42, 0.9);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(31, 41, 55, 0.95);
  padding: 12px 14px;
}

.experience-header {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 4px;
}

.experience-header h3 {
  font-size: 14px;
}

.experience-meta {
  font-size: 11px;
  color: var(--muted);
}

.experience-body ul {
  margin-top: 8px;
  padding-left: 18px;
  font-size: 13px;
  color: var(--muted);
}

.experience-body li + li {
  margin-top: 4px;
}

/* CURRÍCULO */
.curriculo-card {
  background: rgba(15, 23, 42, 0.95);
  border-radius: var(--radius-lg);
  border: 1px dashed rgba(55, 65, 81, 0.9);
  padding: 14px 16px;
  font-size: 14px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.curriculo-card p {
  color: var(--muted);
  max-width: 520px;
}

/* PROJETOS */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 14px;
}

.project-card {
  background: rgba(15, 23, 42, 0.97);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(31, 41, 55, 0.95);
  padding: 12px 13px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 13px;
}

.project-header {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  align-items: center;
}

.project-header h3 {
  font-size: 14px;
}

.project-tag {
  font-size: 11px;
  padding: 4px 8px;
  border-radius: 999px;
  background: rgba(8, 47, 73, 0.9);
  border: 1px solid rgba(56, 189, 248, 0.7);
  color: #e0f2fe;
}

.project-list {
  padding-left: 16px;
  font-size: 12px;
  color: var(--muted);
}

.project-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 4px;
}

/* CONTATO */
.contact-card {
  background: rgba(15, 23, 42, 0.96);
  border-radius: 20px;
  border: 1px solid rgba(31, 41, 55, 0.95);
  padding: 14px 16px;
  font-size: 14px;
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: space-between;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
  color: var(--muted);
  font-size: 13px;
}

.contact-info a {
  color: var(--accent);
}

footer {
  margin-top: 28px;
  padding-top: 16px;
  border-top: 1px solid rgba(30, 64, 175, 0.5);
  font-size: 11px;
  text-align: center;
  color: var(--muted);
}

/* Responsivo */
@media (max-width: 800px) {
  .hero {
    grid-template-columns: 1fr;
  }

  .hero-side {
    order: -1;
    margin-top: 0; 
  }

  .sobre-grid {
    grid-template-columns: 1fr;
  }

  .nav-links {
    display: none;
  }

  .page {
    padding-inline: 14px;
  }
}

/* ========== BUG LAYER (BESOURO) ========== */
.bug-layer{
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 1;
}

.bug{
  pointer-events: auto;
  position: absolute;
  top: 22px;
  right: 22px;
  width: 56px;
  height: 56px;
  filter: drop-shadow(0 18px 35px rgba(0,0,0,.6));
  transform: translate3d(0,0,0);
  animation: bug-float 5.2s ease-in-out infinite;
  will-change: transform;
}

.bug-glow{
  position: absolute;
  right: -80px;
  top: -80px;
  width: 240px;
  height: 240px;
  background: radial-gradient(circle, rgba(34,197,94,.16), transparent 62%);
  opacity: .6;
}

.bug:hover{
  animation-play-state: paused;
  transform: translate3d(-6px, 4px, 0) rotate(-4deg) scale(1.03);
}

.bug-hint{
  position: absolute;
  right: 18px;
  top: 92px;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
  max-width: 260px;
  opacity: .95;
}

@keyframes bug-float{
  0%   { transform: translate3d(0,0,0) rotate(2deg); }
  35%  { transform: translate3d(-18px, 18px, 0) rotate(-6deg); }
  70%  { transform: translate3d(-6px, 34px, 0) rotate(5deg); }
  100% { transform: translate3d(0,0,0) rotate(2deg); }
}

@media (prefers-reduced-motion: reduce){
  .bug{ animation: none; }
}


.chip-link{
  font-size: 11px;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.7);
  color: var(--muted);
  transition: 0.18s ease;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(2, 6, 23, 0.2);
}

.chip-link:hover{
  border-color: rgba(248, 250, 252, 0.9);
  color: var(--text);
  background: rgba(15, 23, 42, 0.9);
  transform: translateY(-1px);
}
