:root {
  color-scheme: dark;
  --bg-900: #040b1c;
  --bg-800: #071327;
  --bg-700: #0d1d3f;
  --surface-600: rgba(13, 29, 63, 0.76);
  --surface-500: rgba(10, 24, 52, 0.62);
  --surface-400: rgba(7, 20, 44, 0.9);
  --stroke-soft: rgba(106, 156, 255, 0.24);
  --stroke-strong: rgba(86, 148, 255, 0.46);
  --brand-blue: #1f66ff;
  --brand-cyan: #22b7ff;
  --brand-violet: #5b39ff;
  --text-high: #f2f6ff;
  --text-mid: #c8d6ff;
  --text-low: #92a8d6;
  --shadow-lg: 0 24px 58px rgba(0, 0, 0, 0.45);
  --shadow-md: 0 14px 32px rgba(0, 0, 0, 0.32);
  --radius-xl: 28px;
  --radius-lg: 20px;
  --radius-md: 16px;
  --radius-sm: 12px;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

body {
  position: relative;
  overflow-x: hidden;
  font-family: "Manrope", "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at 15% -10%, rgba(34, 183, 255, 0.24), transparent 40%),
    radial-gradient(circle at 95% 5%, rgba(91, 57, 255, 0.18), transparent 35%),
    linear-gradient(165deg, var(--bg-900) 2%, var(--bg-800) 46%, var(--bg-700) 100%);
  color: var(--text-high);
}

img {
  max-width: 100%;
  display: block;
}

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

.ambient {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

.glow {
  position: absolute;
  display: block;
  border-radius: 999px;
  filter: blur(50px);
  opacity: 0.44;
}

.glow-a {
  width: 38vw;
  height: 38vw;
  min-width: 220px;
  min-height: 220px;
  top: -14vw;
  left: -10vw;
  background: radial-gradient(circle, rgba(34, 183, 255, 0.76), rgba(34, 183, 255, 0));
  animation: driftA 14s ease-in-out infinite;
}

.glow-b {
  width: 44vw;
  height: 44vw;
  min-width: 240px;
  min-height: 240px;
  top: 62vh;
  right: -18vw;
  background: radial-gradient(circle, rgba(91, 57, 255, 0.64), rgba(91, 57, 255, 0));
  animation: driftB 16s ease-in-out infinite;
}

.grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(96, 136, 220, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(96, 136, 220, 0.08) 1px, transparent 1px);
  background-size: 36px 36px;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.55), transparent 78%);
}

.page {
  position: relative;
  z-index: 1;
  width: min(100% - 1.5rem, 940px);
  margin: 0 auto;
  padding: 1.2rem 0 2.4rem;
}

.hero,
.links,
.projects,
.cta {
  border: 1px solid var(--stroke-soft);
  border-radius: var(--radius-xl);
  background:
    linear-gradient(155deg, rgba(21, 43, 89, 0.62), rgba(11, 24, 52, 0.54)),
    var(--surface-500);
  box-shadow: var(--shadow-lg);
}

.hero {
  padding: 1.25rem;
}

.hero-top {
  display: flex;
  align-items: center;
  gap: 0.9rem;
}

.avatar {
  width: 72px;
  aspect-ratio: 1;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.06);
  padding: 0.25rem;
}

.status {
  margin: 0;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.44rem 0.76rem;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #d3eaff;
  border: 1px solid rgba(66, 153, 255, 0.36);
  background: rgba(26, 74, 158, 0.36);
}

.status::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: #1fd668;
  box-shadow: 0 0 0 6px rgba(31, 214, 104, 0.18);
}

.brand-name {
  margin: 0.9rem 0 0;
  font-size: 0.92rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #a4c5ff;
}

h1,
h2,
h3 {
  margin: 0;
  font-family: "Sora", "Manrope", sans-serif;
  letter-spacing: -0.02em;
}

h1 {
  margin-top: 0.35rem;
  font-size: clamp(1.62rem, 7.7vw, 2.3rem);
  line-height: 1.08;
}

.hero-text {
  margin: 0.66rem 0 0;
  color: var(--text-mid);
  font-size: 0.97rem;
  line-height: 1.58;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.52rem;
  margin-top: 0.92rem;
}

.chips span {
  padding: 0.38rem 0.64rem;
  border-radius: 999px;
  border: 1px solid rgba(140, 183, 255, 0.34);
  background: rgba(23, 49, 101, 0.45);
  color: #d7e8ff;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.hero-actions {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.65rem;
  margin-top: 1rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  border-radius: var(--radius-md);
  padding: 0.75rem 1rem;
  font-size: 0.93rem;
  font-weight: 800;
  letter-spacing: 0.01em;
  transition: transform 0.24s ease, box-shadow 0.24s ease, border-color 0.24s ease, background 0.24s ease;
}

.btn:focus-visible,
.link-card:focus-visible,
.project-body a:focus-visible {
  outline: 3px solid rgba(135, 185, 255, 0.72);
  outline-offset: 2px;
}

.btn-primary {
  border: 1px solid rgba(115, 168, 255, 0.75);
  color: #ffffff;
  background: linear-gradient(122deg, var(--brand-blue), var(--brand-violet));
  box-shadow: 0 18px 30px rgba(43, 90, 200, 0.4);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 24px 34px rgba(42, 93, 214, 0.45);
}

.btn-ghost {
  border: 1px solid rgba(120, 170, 255, 0.36);
  color: #e8f0ff;
  background: rgba(20, 43, 91, 0.52);
}

.btn-ghost:hover {
  transform: translateY(-2px);
  border-color: rgba(154, 197, 255, 0.58);
  background: rgba(24, 50, 104, 0.62);
}

.links,
.projects,
.cta {
  margin-top: 1rem;
  padding: 1.25rem;
}

.section-head {
  display: grid;
  gap: 0.34rem;
  margin-bottom: 0.9rem;
}

.eyebrow {
  margin: 0;
  text-transform: uppercase;
  font-weight: 800;
  font-size: 0.71rem;
  letter-spacing: 0.12em;
  color: #95b9ff;
}

h2 {
  font-size: clamp(1.17rem, 5.1vw, 1.62rem);
}

.link-stack {
  display: grid;
  gap: 0.58rem;
}

.link-card {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 0.78rem;
  padding: 0.78rem;
  border-radius: var(--radius-md);
  border: 1px solid rgba(124, 175, 255, 0.28);
  background: linear-gradient(140deg, rgba(24, 51, 104, 0.58), rgba(11, 24, 51, 0.74));
  transition: transform 0.23s ease, border-color 0.23s ease, box-shadow 0.23s ease, background 0.23s ease;
}

.link-card:hover {
  transform: translateY(-2px);
  border-color: var(--stroke-strong);
  box-shadow: var(--shadow-md);
  background: linear-gradient(140deg, rgba(28, 60, 122, 0.6), rgba(12, 29, 63, 0.78));
}

.link-card-whatsapp {
  border-color: rgba(77, 223, 143, 0.38);
  background: linear-gradient(140deg, rgba(18, 94, 62, 0.6), rgba(9, 56, 42, 0.78));
}

.link-card-whatsapp:hover {
  border-color: rgba(117, 241, 174, 0.56);
  background: linear-gradient(140deg, rgba(23, 118, 78, 0.62), rgba(11, 68, 49, 0.8));
}

.link-card-whatsapp .link-icon {
  border-color: rgba(165, 244, 201, 0.5);
  background: linear-gradient(140deg, rgba(41, 173, 106, 0.95), rgba(26, 133, 80, 0.9));
}

.link-icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  border: 1px solid rgba(133, 186, 255, 0.43);
  display: grid;
  place-items: center;
  color: #ebf3ff;
  font-weight: 800;
  font-size: 0.76rem;
  letter-spacing: 0.02em;
  background: linear-gradient(140deg, rgba(35, 105, 228, 0.8), rgba(28, 71, 173, 0.7));
}

.link-copy {
  display: grid;
  gap: 0.18rem;
}

.link-copy strong {
  font-size: 0.94rem;
  line-height: 1.22;
}

.link-copy small {
  font-size: 0.78rem;
  color: var(--text-low);
}

.link-arrow {
  color: #a9c8ff;
  font-size: 1rem;
  font-weight: 800;
}

.project-grid {
  display: grid;
  gap: 0.85rem;
}

.project-card {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid rgba(134, 183, 255, 0.28);
  background: linear-gradient(180deg, rgba(19, 41, 86, 0.5), rgba(9, 21, 47, 0.84));
}

.project-shot {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-bottom: 1px solid rgba(145, 187, 255, 0.23);
}

.project-body {
  display: grid;
  gap: 0.68rem;
  padding: 0.86rem;
}

.project-title {
  display: flex;
  align-items: center;
  gap: 0.55rem;
}

.project-title h3 {
  font-size: 1.02rem;
}

.project-body p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--text-mid);
  line-height: 1.48;
}

.project-body a {
  justify-self: start;
  font-size: 0.84rem;
  font-weight: 800;
  color: #bbd6ff;
  text-decoration: underline;
  text-decoration-color: rgba(168, 205, 255, 0.58);
  text-underline-offset: 3px;
}

.project-body a:hover {
  color: #deecff;
  text-decoration-color: rgba(218, 236, 255, 0.8);
}

.cta {
  text-align: center;
}

.cta h2 {
  max-width: 34ch;
  margin: 0 auto;
  font-size: clamp(1.18rem, 5.2vw, 1.56rem);
  line-height: 1.32;
}

.cta .hero-actions {
  margin-top: 1.05rem;
}

.footer {
  margin-top: 1.15rem;
  padding: 0.35rem 0 0;
  text-align: center;
  color: var(--text-low);
  font-size: 0.78rem;
}

.reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.45s ease, transform 0.45s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (min-width: 640px) {
  .page {
    width: min(100% - 2rem, 940px);
    padding-top: 1.75rem;
    padding-bottom: 2.8rem;
  }

  .hero,
  .links,
  .projects,
  .cta {
    padding: 1.5rem;
  }

  .hero-actions {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .link-stack {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .project-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (prefers-reduced-motion: reduce) {
  .glow-a,
  .glow-b {
    animation: none;
  }

  .reveal,
  .btn,
  .link-card {
    transition: none;
  }
}

@keyframes driftA {
  0%,
  100% {
    transform: translate3d(0, 0, 0);
  }

  50% {
    transform: translate3d(3vw, 4vw, 0);
  }
}

@keyframes driftB {
  0%,
  100% {
    transform: translate3d(0, 0, 0);
  }

  50% {
    transform: translate3d(-3.5vw, -3vw, 0);
  }
}
