:root {
  --bg: #07070d;
  --bg-soft: #0d1020;
  --panel: rgba(16, 18, 36, 0.78);
  --panel-strong: rgba(18, 21, 43, 0.95);
  --text: #f8fafc;
  --muted: #a1a1bf;
  --line: rgba(255, 255, 255, 0.08);
  --primary: #8b5cf6;
  --primary-dark: #7c3aed;
  --accent: #c084fc;
  --green: #22c55e;
  --shadow: 0 22px 60px rgba(0, 0, 0, 0.45);
  --radius-xl: 28px;
  --radius-lg: 20px;
  --radius-md: 14px;
  --container: 1180px;
  --transition: 0.3s ease;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Inter", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 12% 20%, rgba(139, 92, 246, 0.24), transparent 22%),
    radial-gradient(circle at 82% 14%, rgba(168, 85, 247, 0.16), transparent 22%),
    radial-gradient(circle at 50% 100%, rgba(76, 29, 149, 0.22), transparent 26%),
    linear-gradient(180deg, #05050a 0%, #08080f 42%, #07070d 100%);
  overflow-x: hidden;
  min-height: 100vh;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.018) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.018) 1px, transparent 1px);
  background-size: 32px 32px;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.35), transparent 85%);
  z-index: -1;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
textarea {
  font: inherit;
}

.container {
  width: min(100% - 2rem, var(--container));
  margin-inline: auto;
}

.section {
  padding: 110px 0;
  position: relative;
}

.section-header {
  max-width: 760px;
  margin-bottom: 42px;
}

.section-header h2 {
  font-size: clamp(2rem, 4vw, 3.3rem);
  line-height: 1.05;
  letter-spacing: -0.04em;
  margin-bottom: 14px;
}

.section-header p {
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.8;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  margin-bottom: 16px;
  padding: 9px 14px;
  border-radius: 999px;
  border: 1px solid rgba(192, 132, 252, 0.16);
  background: rgba(139, 92, 246, 0.08);
  color: #d8b4fe;
  font-size: 0.84rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.header {
  position: sticky;
  top: 0;
  z-index: 1000;
  backdrop-filter: blur(16px);
  background: rgba(7, 7, 13, 0.55);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.navbar {
  min-height: 82px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  position: relative;
}

.logo {
  font-size: 1.2rem;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.logo span {
  color: var(--accent);
}

.nav {
  display: flex;
  align-items: center;
  gap: 26px;
}

.nav a {
  color: var(--muted);
  font-weight: 600;
  position: relative;
  transition: var(--transition);
}

.nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -8px;
  width: 0;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  transition: var(--transition);
}

.nav a:hover {
  color: var(--text);
}

.nav a:hover::after {
  width: 100%;
}

.menu-toggle {
  display: none;
  width: 48px;
  height: 48px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.04);
  border-radius: 12px;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
}

.menu-toggle span {
  width: 18px;
  height: 2px;
  background: var(--text);
  border-radius: 999px;
  transition: var(--transition);
}

.menu-toggle.active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.menu-toggle.active span:nth-child(2) {
  opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.hero {
  min-height: calc(100vh - 82px);
  display: flex;
  align-items: center;
  padding: 70px 0 40px;
  position: relative;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.18;
  pointer-events: none;
}

.hero-bg-1 {
  width: 300px;
  height: 300px;
  background: #7c3aed;
  top: 40px;
  right: 8%;
}

.hero-bg-2 {
  width: 280px;
  height: 280px;
  background: #9333ea;
  left: 4%;
  bottom: 8%;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 0.95fr;
  gap: 40px;
  align-items: center;
}

.hero-copy {
  max-width: 720px;
}

.hero-copy h1 {
  font-size: clamp(2.6rem, 4.8vw, 4.6rem);
  line-height: 0.98;
  letter-spacing: -0.05em;
  margin-bottom: 22px;
  max-width: 680px;
}

.gradient-text {
  background: linear-gradient(135deg, #ffffff 0%, #d8b4fe 50%, #8b5cf6 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-description {
  color: var(--muted);
  font-size: 1.06rem;
  line-height: 1.85;
  margin-bottom: 28px;
  max-width: 640px;
}

.hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 34px;
}

.hero-tags span {
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  background: rgba(255, 255, 255, 0.035);
  color: #d8d8ef;
  font-size: 0.92rem;
  font-weight: 600;
}

.button-group,
.project-actions,
.contact-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.btn {
  min-height: 52px;
  padding: 0 20px;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  font-weight: 700;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.btn::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent, rgba(255, 255, 255, 0.08), transparent);
  transform: translateX(-120%);
  transition: 0.7s ease;
}

.btn:hover::before {
  transform: translateX(120%);
}

.btn-primary {
  color: #fff;
  background: linear-gradient(135deg, var(--primary-dark), var(--primary));
  box-shadow: 0 10px 30px rgba(139, 92, 246, 0.32);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 38px rgba(139, 92, 246, 0.42);
}

.btn-outline {
  color: var(--text);
  border-color: rgba(168, 85, 247, 0.32);
  background: rgba(255, 255, 255, 0.03);
}

.btn-outline:hover {
  transform: translateY(-2px);
  border-color: rgba(168, 85, 247, 0.65);
  background: rgba(168, 85, 247, 0.08);
}

.btn-whatsapp {
  border-color: rgba(34, 197, 94, 0.3);
  color: #86efac;
  background: rgba(34, 197, 94, 0.06);
}

.btn-whatsapp:hover {
  background: rgba(34, 197, 94, 0.14);
  border-color: rgba(34, 197, 94, 0.55);
}

.hero-card,
.glass-card,
.stack-card,
.project-card,
.contact-card {
  box-shadow: var(--shadow);
}

.hero-card {
  background: linear-gradient(180deg, rgba(18, 21, 43, 0.96), rgba(11, 13, 28, 0.88));
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: var(--radius-xl);
  padding: 28px;
  position: relative;
  overflow: hidden;
}

.hero-card::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  background: linear-gradient(
    135deg,
    rgba(168, 85, 247, 0.18),
    transparent 30%,
    transparent 70%,
    rgba(139, 92, 246, 0.18)
  );
  z-index: 0;
  pointer-events: none;
}

.hero-card > * {
  position: relative;
  z-index: 1;
}

.hero-card-top {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-start;
  margin-bottom: 18px;
}

.hero-card-top h3 {
  font-size: 1.15rem;
  margin-bottom: 6px;
}

.hero-card-top p,
.hero-card-text {
  color: var(--muted);
}

.hero-card-text {
  line-height: 1.8;
  margin-bottom: 24px;
}

.status-badge {
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(34, 197, 94, 0.1);
  border: 1px solid rgba(34, 197, 94, 0.18);
  color: #86efac;
  font-size: 0.84rem;
  font-weight: 700;
  white-space: nowrap;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}

.stat-box {
  padding: 16px;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  background: rgba(255, 255, 255, 0.03);
}

.stat-box strong {
  display: block;
  margin-bottom: 6px;
  font-size: 1rem;
}

.stat-box span {
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.6;
}

.about-grid,
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.glass-card,
.contact-card {
  padding: 28px;
  border-radius: var(--radius-lg);
  background: var(--panel);
  border: 1px solid rgba(255, 255, 255, 0.07);
  backdrop-filter: blur(12px);
  transition: var(--transition);
}

.glass-card:hover,
.contact-card:hover,
.stack-card:hover,
.project-card:hover {
  transform: translateY(-6px);
  border-color: rgba(168, 85, 247, 0.24);
}

.glass-card h3,
.contact-card h3,
.stack-card h3,
.project-card h3 {
  font-size: 1.22rem;
  margin-bottom: 12px;
  letter-spacing: -0.02em;
}

.glass-card p,
.contact-card p {
  color: var(--muted);
  line-height: 1.8;
}

.stack-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.stack-card {
  padding: 26px;
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, rgba(19, 22, 46, 0.95), rgba(10, 12, 22, 0.92));
  border: 1px solid rgba(255, 255, 255, 0.07);
  position: relative;
  overflow: hidden;
  transition: var(--transition);
}

.stack-card::before {
  content: "";
  position: absolute;
  top: -60px;
  right: -60px;
  width: 140px;
  height: 140px;
  border-radius: 50%;
  background: rgba(139, 92, 246, 0.12);
  filter: blur(18px);
}

.stack-card h3,
.stack-card .chip-list {
  position: relative;
  z-index: 1;
}

.chip-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.chip {
  padding: 10px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid rgba(255, 255, 255, 0.07);
  color: #ddd6fe;
  font-size: 0.92rem;
  font-weight: 600;
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px;
}

.project-card {
  padding: 26px;
  border-radius: var(--radius-lg);
  background: var(--panel);
  border: 1px solid rgba(255, 255, 255, 0.07);
  display: flex;
  flex-direction: column;
  transition: var(--transition);
  min-height: 100%;
}

.featured-project {
  grid-column: 1 / -1;
  background: linear-gradient(180deg, rgba(24, 19, 49, 0.96), rgba(13, 14, 28, 0.92));
  border: 1px solid rgba(139, 92, 246, 0.25);
}

.project-badge {
  display: inline-flex;
  width: fit-content;
  margin-bottom: 14px;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(139, 92, 246, 0.12);
  border: 1px solid rgba(139, 92, 246, 0.18);
  color: #d8b4fe;
  font-size: 0.84rem;
  font-weight: 700;
}

.project-card p {
  color: var(--muted);
  line-height: 1.8;
  margin-bottom: 18px;
}

.feature-list {
  list-style: none;
  display: grid;
  gap: 10px;
  margin-bottom: 24px;
}

.feature-list li {
  position: relative;
  padding-left: 18px;
  color: var(--muted);
  line-height: 1.6;
}

.feature-list li::before {
  content: "";
  position: absolute;
  top: 10px;
  left: 0;
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  box-shadow: 0 0 12px rgba(139, 92, 246, 0.55);
}

.project-actions {
  margin-top: auto;
}

.info-list {
  display: grid;
  gap: 16px;
}

.info-box {
  padding: 18px 20px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  background: rgba(255, 255, 255, 0.03);
}

.info-box strong {
  display: block;
  margin-bottom: 6px;
  font-size: 1rem;
}

.info-box span {
  color: var(--muted);
  line-height: 1.7;
  display: block;
}

.footer {
  padding: 34px 0 44px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.footer-content {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  color: var(--muted);
  font-size: 0.95rem;
}

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 1024px) {
  .hero {
    min-height: auto;
    padding-top: 60px;
  }

  .hero-grid,
  .about-grid,
  .stack-grid,
  .contact-grid,
  .projects-grid {
    grid-template-columns: 1fr;
  }

  .featured-project {
    grid-column: auto;
  }
}

@media (max-width: 820px) {
  .menu-toggle {
    display: inline-flex;
  }

  .nav {
    position: absolute;
    top: calc(100% + 8px);
    right: 1rem;
    left: 1rem;
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
    padding: 18px;
    border-radius: 18px;
    background: rgba(12, 13, 25, 0.96);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: var(--shadow);
    opacity: 0;
    pointer-events: none;
    transform: translateY(-10px);
    transition: var(--transition);
  }

  .nav.open {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }

  .nav a::after {
    display: none;
  }
}

@media (max-width: 640px) {
  .section {
    padding: 80px 0;
  }

  .hero-copy h1 {
    font-size: 2.8rem;
  }

  .hero-card,
  .glass-card,
  .stack-card,
  .project-card,
  .contact-card {
    padding: 22px;
  }

  .hero-stats {
    grid-template-columns: 1fr;
  }

  .button-group,
  .project-actions,
  .contact-buttons {
    flex-direction: column;
  }

  .btn {
    width: 100%;
  }

  .footer-content {
    flex-direction: column;
  }
}
