:root {
  --bg: #09111f;
  --bg-soft: rgba(10, 20, 36, 0.78);
  --panel: rgba(13, 28, 49, 0.78);
  --panel-border: rgba(163, 230, 53, 0.18);
  --text: #f5f7eb;
  --muted: #b7c2cf;
  --accent: #a3e635;
  --accent-strong: #d0ff5a;
  --shadow: 0 18px 60px rgba(0, 0, 0, 0.28);
  --radius: 28px;
  --radius-sm: 18px;
  --max-width: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Manrope", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(163, 230, 53, 0.18), transparent 32%),
    radial-gradient(circle at 85% 15%, rgba(47, 128, 237, 0.22), transparent 26%),
    linear-gradient(180deg, #09111f 0%, #050913 100%);
}

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

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

button,
input,
textarea {
  font: inherit;
}

.page-shell {
  width: min(calc(100% - 32px), var(--max-width));
  margin: 0 auto;
}

.floating-cta {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 20;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  max-width: min(320px, calc(100% - 32px));
  padding: 14px 18px;
  border-radius: 999px;
  background: rgba(11, 18, 32, 0.88);
  border: 1px solid rgba(163, 230, 53, 0.26);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.32);
  color: var(--text);
  backdrop-filter: blur(16px);
  animation: floatBubble 3.8s ease-in-out infinite;
}

.floating-cta:hover {
  transform: translateY(-2px);
  background: rgba(18, 28, 46, 0.95);
}

.floating-cta__dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 6px rgba(163, 230, 53, 0.16);
  flex-shrink: 0;
}

.hero {
  min-height: auto;
  padding: 24px 0 0;
  display: flex;
  flex-direction: column;
}

.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  padding: 12px 18px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  background: rgba(5, 9, 19, 0.55);
  backdrop-filter: blur(16px);
  position: sticky;
  top: 16px;
  z-index: 10;
}

.nav__brand,
.section-heading h2,
.hero h1,
.card h3 {
  font-family: "Syne", sans-serif;
}

.nav__brand {
  font-size: 1.1rem;
  font-weight: 700;
}

.nav__links {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  color: var(--muted);
}

.hero__content {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  align-items: center;
  gap: 40px;
  margin: auto 0;
  padding: 56px 0 0;
}

.eyebrow {
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.78rem;
  margin-bottom: 18px;
}

.hero h1 {
  font-size: clamp(2.2rem, 4.8vw, 4.4rem);
  line-height: 0.98;
  margin: 0;
  max-width: 12ch;
}

.hero__lead,
.panel p,
.card p,
.timeline__meta,
.timeline__description,
.contact-form label {
  color: var(--muted);
}

.hero__lead {
  font-size: 1.12rem;
  line-height: 1.7;
  max-width: 60ch;
  margin: 24px 0 0;
}

.hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin: 32px 0;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 22px;
  border-radius: 999px;
  border: 1px solid transparent;
  transition: transform 0.25s ease, border-color 0.25s ease,
    background-color 0.25s ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button--primary {
  background: var(--accent);
  color: #08101c;
  font-weight: 800;
}

.button--ghost {
  border-color: rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.03);
}

.hero__stats,
.about-grid,
.cards-grid {
  display: grid;
  gap: 18px;
}

.hero__stats {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  padding: 0;
  list-style: none;
}

.hero__stats li,
.panel,
.card,
.timeline__item {
  background: var(--panel);
  border: 1px solid rgba(255, 255, 255, 0.06);
  box-shadow: var(--shadow);
  backdrop-filter: blur(16px);
}

.hero__stats li {
  border-radius: var(--radius-sm);
  padding: 18px;
}

.hero__stats strong {
  display: block;
  margin-bottom: 8px;
}

.hero__visual {
  position: relative;
}

.portrait-card {
  position: relative;
  padding: 18px;
  border-radius: 36px;
  background:
    linear-gradient(160deg, rgba(163, 230, 53, 0.25), rgba(47, 128, 237, 0.1)),
    rgba(255, 255, 255, 0.04);
  border: 1px solid var(--panel-border);
  overflow: hidden;
}

.portrait-card__badge {
  position: absolute;
  top: 20px;
  left: 20px;
  z-index: 1;
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(5, 9, 19, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.portrait-card img {
  height: 100%;
  min-height: 520px;
  object-fit: cover;
  border-radius: 28px;
}

.scroll-indicator {
  align-self: flex-start;
  padding: 14px 0;
  color: var(--muted);
}

.section {
  padding: 48px 0;
}

.section-heading {
  margin-bottom: 28px;
}

.section-heading h2 {
  font-size: clamp(2rem, 4vw, 3.4rem);
  line-height: 1;
  margin: 0;
  max-width: 14ch;
}

.section--intro .section-heading h2 {
  font-size: clamp(1.7rem, 3vw, 2.8rem);
  line-height: 1.05;
  max-width: 18ch;
}

.section--contact .section-heading h2 {
  font-size: clamp(1.6rem, 2.6vw, 2.45rem);
  line-height: 1.08;
  max-width: 16ch;
}

.section#experiencia .section-heading h2 {
  font-size: clamp(1.65rem, 2.8vw, 2.55rem);
  line-height: 1.06;
  max-width: 18ch;
}

.section--contact .section-heading {
  margin-bottom: 22px;
}

.about-grid,
.cards-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.panel,
.card,
.timeline__item {
  border-radius: var(--radius);
  padding: 24px;
}

.timeline {
  display: grid;
  gap: 20px;
}

.timeline__actions {
  display: flex;
  justify-content: center;
  margin-top: 24px;
}

.timeline__toggle {
  min-width: 240px;
  background: var(--accent);
  color: #08101c;
  font-weight: 800;
  border-color: transparent;
}

.timeline__toggle:hover {
  background: var(--accent-strong);
}

.timeline__header {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: center;
  margin-bottom: 16px;
}

.timeline__header h3 {
  margin: 0;
  font-size: 1.35rem;
}

.timeline__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 0.95rem;
}

.timeline__description {
  margin: 0;
  line-height: 1.7;
}

.contact-layout {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 24px;
}

.contact-form {
  display: grid;
  gap: 18px;
  max-width: 680px;
  margin: 0 auto;
  width: 100%;
  padding: 22px;
}

.contact-form label {
  display: grid;
  gap: 10px;
}

.contact-form__trap {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 18px;
  padding: 14px 16px;
  background: rgba(255, 255, 255, 0.02);
  color: var(--text);
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: 2px solid rgba(163, 230, 53, 0.35);
  border-color: transparent;
}

.form-feedback {
  min-height: 24px;
  margin: 0;
}

.form-feedback.is-success {
  color: var(--accent-strong);
}

.form-feedback.is-error {
  color: #ff8f8f;
}

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

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

.is-hidden {
  display: none;
}

@keyframes floatBubble {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-8px);
  }
}

@media (max-width: 920px) {
  .hero__content,
  .contact-layout,
  .about-grid,
  .cards-grid {
    grid-template-columns: 1fr;
  }

  .hero__visual {
    order: -1;
  }

  .hero h1 {
    max-width: 11ch;
  }

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

  .portrait-card img {
    min-height: 360px;
  }

  .section-heading h2 {
    max-width: 16ch;
  }
}

@media (min-width: 701px) and (max-width: 1024px) {
  .page-shell {
    width: min(calc(100% - 40px), var(--max-width));
  }

  .nav {
    border-radius: 28px;
  }

  .nav__links {
    gap: 16px;
  }

  .hero__content {
    gap: 28px;
    padding-top: 40px;
  }

  .hero h1 {
    font-size: clamp(2.6rem, 6vw, 3.8rem);
    line-height: 1;
    max-width: 10ch;
  }

  .hero__lead {
    font-size: 1.02rem;
    max-width: 52ch;
  }

  .portrait-card {
    max-width: 520px;
    margin: 0 auto;
  }

  .portrait-card img {
    min-height: 420px;
  }

  .section {
    padding: 40px 0;
  }

  .section-heading h2,
  .section--intro .section-heading h2,
  .section--contact .section-heading h2,
  .section#experiencia .section-heading h2 {
    font-size: clamp(1.9rem, 4.2vw, 2.8rem);
    max-width: 18ch;
  }

  .floating-cta {
    right: 18px;
    bottom: 18px;
    max-width: 280px;
  }
}

@media (max-width: 700px) {
  .page-shell {
    width: min(calc(100% - 20px), var(--max-width));
  }

  .floating-cta {
    right: 10px;
    bottom: 10px;
    left: 10px;
    max-width: none;
    justify-content: center;
    padding: 12px 14px;
    font-size: 0.88rem;
  }

  .nav {
    border-radius: 24px;
    align-items: stretch;
    flex-direction: column;
    gap: 14px;
    padding: 14px;
  }

  .nav__links {
    justify-content: space-between;
    gap: 12px;
    width: 100%;
    font-size: 0.95rem;
  }

  .hero {
    min-height: auto;
  }

  .hero__content {
    gap: 24px;
    padding-top: 28px;
  }

  .hero h1 {
    font-size: clamp(2rem, 11vw, 3rem);
    line-height: 1.02;
    max-width: 10ch;
  }

  .hero__lead {
    font-size: 1rem;
    line-height: 1.6;
  }

  .hero__cta {
    gap: 12px;
    margin: 24px 0;
  }

  .button {
    width: 100%;
  }

  .portrait-card {
    padding: 12px;
    border-radius: 28px;
  }

  .portrait-card__badge {
    top: 14px;
    left: 14px;
    padding: 8px 12px;
    font-size: 0.85rem;
  }

  .portrait-card img {
    min-height: 300px;
    border-radius: 20px;
  }

  .section {
    padding: 36px 0;
  }

  .section-heading {
    margin-bottom: 20px;
  }

  .section-heading h2,
  .section--intro .section-heading h2,
  .section--contact .section-heading h2,
  .section#experiencia .section-heading h2 {
    font-size: clamp(1.55rem, 8vw, 2.1rem);
    line-height: 1.08;
    max-width: 100%;
  }

  .panel,
  .card,
  .timeline__item,
  .contact-form {
    padding: 18px;
    border-radius: 22px;
  }

  .timeline__header {
    flex-direction: column;
    align-items: flex-start;
    margin-bottom: 12px;
  }

  .timeline__meta {
    gap: 8px;
    font-size: 0.9rem;
  }

  .timeline__toggle {
    width: 100%;
    min-width: 0;
  }

  .contact-form {
    max-width: 100%;
    gap: 14px;
  }

  .contact-form input,
  .contact-form textarea {
    padding: 13px 14px;
  }
}

@media (max-width: 480px) {
  .page-shell {
    width: min(calc(100% - 16px), var(--max-width));
  }

  .hero {
    padding-top: 16px;
  }

  .nav {
    padding: 12px;
  }

  .nav__brand {
    font-size: 1rem;
  }

  .nav__links {
    gap: 10px;
    font-size: 0.9rem;
  }

  .hero h1 {
    font-size: clamp(1.8rem, 10.5vw, 2.5rem);
    max-width: 9ch;
  }

  .hero__lead {
    font-size: 0.96rem;
  }

  .hero__stats li {
    padding: 16px;
  }

  .eyebrow {
    font-size: 0.72rem;
    letter-spacing: 0.14em;
    margin-bottom: 14px;
  }

  .portrait-card img {
    min-height: 260px;
  }

  .floating-cta {
    font-size: 0.82rem;
    gap: 10px;
    padding: 11px 12px;
  }

  .floating-cta__dot {
    width: 10px;
    height: 10px;
  }

  .section-heading h2,
  .section--intro .section-heading h2,
  .section--contact .section-heading h2,
  .section#experiencia .section-heading h2 {
    font-size: clamp(1.4rem, 8.4vw, 1.9rem);
  }

  .panel,
  .card,
  .timeline__item,
  .contact-form {
    padding: 16px;
  }
}
