:root {
  color-scheme: light;
  --background: #F8E8E8;
  --surface: #F6D6B8;
  --surface-raised: #fff8f4;
  --text: #292735;
  --muted: #625d68;
  --accent: #B8A9D9;
  --accent-light: #695b94;
  --pastel-green: #D8E8D2;
  --pastel-blue: #C9D8F0;
  --line: rgba(41, 39, 53, 0.16);
  --content-width: 1120px;
}

* {
  box-sizing: border-box;
}

html {
  font-size: 62.5%;
  scroll-behavior: smooth;
  scroll-padding-top: 8rem;
}

body {
  margin: 0;
  background: var(--background);
  color: var(--text);
  font-family: "Fira Code", monospace;
  font-size: 1.6rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

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

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

.container {
  width: min(var(--content-width), calc(100% - 5rem));
  margin-inline: auto;
}

.section {
  scroll-margin-top: 8rem;
}

.site-header {
  position: sticky;
  z-index: 10;
  top: 0;
  border-bottom: 1px solid var(--line);
  background: rgba(248, 232, 232, 0.9);
  backdrop-filter: blur(14px);
}

.nav {
  display: flex;
  min-height: 7.2rem;
  align-items: center;
  justify-content: space-between;
}

.brand {
  font-family: "Fira Code", monospace;
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: -0.08em;
}

.brand span {
  color: var(--accent);
}

.nav-list {
  display: flex;
  gap: clamp(2rem, 4vw, 4.5rem);
  align-items: center;
  margin: 0;
  padding: 0;
  list-style: none;
}

.nav-list a {
  position: relative;
  color: var(--muted);
  font-size: 1.4rem;
  transition: color 180ms ease;
}

.nav-list a::after {
  position: absolute;
  right: 0;
  bottom: -0.5rem;
  left: 0;
  height: 1px;
  background: var(--accent);
  content: "";
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 180ms ease;
}

.nav-list a:hover,
.nav-list a:focus-visible {
  color: var(--text);
}

.nav-list a:hover::after,
.nav-list a:focus-visible::after {
  transform: scaleX(1);
}

.hero {
  position: relative;
  display: grid;
  min-height: min(76rem, calc(100svh - 7.2rem));
  grid-template-columns: 1.25fr 0.75fr;
  gap: 8rem;
  align-items: center;
  padding-block: 9rem;
  background-image:
    radial-gradient(ellipse at 88% 18%, rgba(201, 216, 240, 0.48), transparent 29%),
    radial-gradient(ellipse at 5% 88%, rgba(216, 232, 210, 0.38), transparent 26%);
}

.hero-copy {
  animation: fade-up 700ms ease both;
}

.eyebrow {
  display: flex;
  gap: 1rem;
  align-items: center;
  margin: 0 0 2rem;
  color: var(--accent-light);
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.eyebrow::before {
  color: #8b78bb;
  content: "//";
  letter-spacing: -0.1em;
}

.status-dot {
  width: 0.8rem;
  height: 0.8rem;
  border-radius: 50%;
  background: #77956c;
  box-shadow: 0 0 0 0.4rem rgba(119, 149, 108, 0.15);
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2,
h3 {
  font-family: "Fira Code", monospace;
}

h1 {
  max-width: 72rem;
  margin-bottom: 0.5rem;
  font-size: clamp(4.2rem, 7.4vw, 7.6rem);
  font-weight: 600;
  letter-spacing: -0.075em;
  line-height: 1.06;
}

h1 span {
  color: #75649f;
}

.hero-name {
  margin: 0.8rem 0 1.5rem;
  color: var(--accent-light);
  font-size: 1.35rem;
  letter-spacing: 0.04em;
}

.hero-role {
  margin-bottom: 2.5rem;
  color: var(--muted);
  font-family: "Fira Code", monospace;
  font-size: clamp(2rem, 3vw, 2.7rem);
}

.hero-description {
  max-width: 58rem;
  margin-bottom: 3.2rem;
  color: var(--muted);
  font-size: 1.7rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1.2rem;
}

.button {
  display: inline-flex;
  min-height: 4.8rem;
  gap: 1rem;
  align-items: center;
  justify-content: center;
  padding: 1.2rem 2rem;
  border: 1px solid transparent;
  border-radius: 0.5rem;
  font-size: 1.4rem;
  font-weight: 600;
  transition:
    transform 180ms ease,
    background-color 180ms ease,
    border-color 180ms ease;
}

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

.button-primary {
  background: var(--accent);
  color: #292735;
}

.button-primary:hover {
  background: #c8bce3;
}

.button-quiet {
  border-color: var(--line);
  color: var(--text);
}

.button-quiet:hover {
  border-color: var(--accent);
}

.portrait-wrap {
  justify-self: end;
  width: min(100%, 34rem);
  animation: fade-in 900ms 120ms ease both;
}

.portrait-frame {
  position: relative;
  padding: 1.2rem;
  border: 1px solid rgba(105, 91, 148, 0.35);
  border-radius: 48% 48% 1.2rem 1.2rem;
  background: linear-gradient(145deg, rgba(184, 169, 217, 0.38), rgba(201, 216, 240, 0.2) 52%, transparent 78%);
}

.portrait-frame::before {
  position: absolute;
  z-index: -1;
  top: 2rem;
  right: -2rem;
  bottom: -2rem;
  left: 2rem;
  border: 1px solid var(--line);
  border-radius: inherit;
  content: "";
}

.portrait {
  width: 100%;
  aspect-ratio: 0.84;
  border-radius: 48% 48% 0.7rem 0.7rem;
  background: var(--surface-raised);
  object-fit: cover;
  filter: saturate(0.78);
}

.portrait-caption {
  display: block;
  margin-top: 2rem;
  color: var(--muted);
  font-size: 1.25rem;
  letter-spacing: 0.04em;
  text-align: center;
}

.about-section {
  padding-block: 9rem;
  border-block: 1px solid var(--line);
  background: linear-gradient(115deg, rgba(246, 214, 184, 0.78), rgba(248, 232, 232, 0.7));
}

.about-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 9rem;
}

.about-grid h2,
.section-heading h2,
.contact-content h2 {
  margin-bottom: 0;
  font-size: clamp(3.2rem, 5vw, 5rem);
  font-weight: 600;
  letter-spacing: -0.06em;
  line-height: 1.15;
}

.about-copy > p {
  margin-bottom: 2.8rem;
  color: var(--muted);
}

.about-copy h3 {
  margin-bottom: 1.5rem;
  font-size: 1.5rem;
  font-weight: 600;
}

.education-section {
  padding-block: 10rem;
  border-block: 1px solid var(--line);
  background: linear-gradient(115deg, rgba(232, 225, 247, 0.58), rgba(236, 243, 250, 0.72));
}

.education-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.8rem;
}

.education-item {
  display: flex;
  min-height: 21rem;
  flex-direction: column;
  gap: 1.8rem;
  padding: 2.4rem;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.58);
  box-shadow: 0 1.2rem 3rem rgba(77, 62, 111, 0.06);
}

.education-icon {
  display: grid;
  width: 4.6rem;
  height: 4.6rem;
  place-items: center;
  border: 1px solid rgba(117, 100, 159, 0.35);
  border-radius: 50%;
  color: var(--accent);
  background: rgba(255, 255, 255, 0.55);
  font-size: 1.8rem;
}

.education-details h3,
.education-details p {
  margin: 0;
}

.education-details h3 {
  margin-bottom: 0.6rem;
  font-size: 2rem;
  font-weight: 600;
}

.education-details {
  flex: 1;
}

.education-details p:last-child {
  color: var(--muted);
}

.education-period {
  margin-bottom: 0.7rem !important;
  color: var(--accent-light);
  font-size: 1.2rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.technology-list,
.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.technology-list + h3 {
  margin-top: 2.8rem;
}

.professional-skills {
  margin-top: 0;
}

.technology-list li {
  display: inline-flex;
  gap: 0.8rem;
  align-items: center;
  padding: 0.8rem 1.2rem;
  border: 1px solid var(--line);
  border-radius: 0.4rem;
  color: var(--text);
  font-size: 1.3rem;
  transition:
    border-color 180ms ease,
    color 180ms ease,
    transform 180ms ease;
}

.technology-list li:hover {
  transform: translateY(-2px);
  border-color: var(--accent);
  color: var(--accent-light);
}

.technology-list i {
  color: #75649f;
  font-size: 1.5rem;
}

.tech-note {
  margin: 1.2rem 0 0;
  color: #818486;
  font-size: 1.2rem;
}

.projects-section {
  padding-block: 11rem;
}

.project-sector + .project-sector {
  margin-top: 8rem;
  padding-top: 6rem;
  border-top: 1px solid var(--line);
}

.sector-heading {
  display: flex;
  gap: 1.6rem;
  align-items: center;
  margin-bottom: 2.8rem;
}

.sector-icon {
  display: grid;
  width: 4.6rem;
  height: 4.6rem;
  flex: 0 0 auto;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 0.5rem;
  background: rgba(184, 169, 217, 0.25);
  color: #695b94;
  font-size: 1.8rem;
}

.sector-kicker {
  margin: 0 0 0.2rem;
  color: var(--muted);
  font-size: 1.2rem;
}

.sector-heading h3 {
  margin: 0;
  font-size: 2.4rem;
  font-weight: 600;
  letter-spacing: -0.04em;
}

.section-heading {
  margin-bottom: 4.5rem;
}

.section-heading h2 {
  margin-bottom: 1rem;
}

.section-heading > p:last-child {
  margin-bottom: 0;
  color: var(--muted);
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 2.4rem;
}

.project-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.project-visual {
  position: relative;
  display: grid;
  min-height: 23rem;
  overflow: hidden;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 0.6rem;
  background: var(--surface-raised);
  transition:
    border-color 200ms ease,
    transform 200ms ease;
}

.project-visual:hover {
  transform: translateY(-4px);
  border-color: rgba(105, 91, 148, 0.55);
}

.project-cover {
  isolation: isolate;
}

.project-cover::after {
  position: absolute;
  z-index: 1;
  inset: 45% 0 0;
  background: linear-gradient(transparent, rgba(30, 27, 40, 0.36));
  content: "";
  pointer-events: none;
}

.project-cover img {
  position: absolute;
  z-index: 0;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 300ms ease;
}

.project-cover:hover img {
  transform: scale(1.04);
}

.project-visual > span {
  position: absolute;
  z-index: 2;
  right: 1.5rem;
  bottom: 1.2rem;
  color: #fff;
  font-family: "Fira Code", monospace;
  font-size: 1.2rem;
  letter-spacing: 0.12em;
}

.project-info {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  justify-content: space-between;
  flex: 1;
  padding-block: 1.8rem 1.2rem;
}

.project-info h4 {
  margin-bottom: 0.4rem;
  font-size: 1.7rem;
  font-weight: 600;
}

.project-info p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 1.3rem;
}

.project-arrow {
  padding-top: 0.2rem;
  color: #695b94;
  font-size: 1.4rem;
}

.project-tags {
  gap: 0.7rem;
  margin-bottom: 1.5rem;
}

.project-tags li {
  display: grid;
  width: 3.2rem;
  height: 3.2rem;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 0.3rem;
  color: var(--muted);
  font-size: 1.4rem;
  transition:
    border-color 180ms ease,
    color 180ms ease,
    transform 180ms ease;
}

.project-tags li:hover {
  transform: translateY(-2px);
  border-color: var(--accent);
  color: var(--accent-light);
}

.project-links {
  display: flex;
  gap: 0.8rem;
  padding-top: 1.4rem;
  border-top: 1px solid var(--line);
}

.project-links a {
  display: inline-flex;
  min-height: 3.6rem;
  gap: 0.7rem;
  align-items: center;
  padding: 0.6rem 1rem;
  border: 1px solid var(--line);
  border-radius: 0.4rem;
  color: var(--muted);
  font-size: 1.2rem;
  transition:
    color 180ms ease,
    border-color 180ms ease,
    background-color 180ms ease;
}

.project-links a:hover {
  border-color: var(--accent);
  background: rgba(184, 169, 217, 0.18);
  color: var(--accent-light);
}

.project-links i {
  color: #695b94;
  font-size: 1.5rem;
}

.contact-section {
  padding-block: 9rem;
  border-top: 1px solid var(--line);
  background: linear-gradient(115deg, rgba(201, 216, 240, 0.58), rgba(184, 169, 217, 0.25));
}

.contact-content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.contact-content h2 {
  margin-bottom: 1.5rem;
}

.contact-content > p:not(.eyebrow) {
  margin-bottom: 2.5rem;
  color: var(--muted);
}

.contact-email {
  max-width: 100%;
  overflow-wrap: anywhere;
}

.social-links {
  display: flex;
  gap: 1.8rem;
  margin-top: 2.8rem;
}

.social-links a {
  display: grid;
  width: 4rem;
  height: 4rem;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--muted);
  transition:
    color 180ms ease,
    border-color 180ms ease,
    transform 180ms ease;
}

.social-links a.youtube-link {
  width: auto;
  grid-auto-flow: column;
  gap: 0.8rem;
  padding-inline: 1.2rem;
  border-radius: 2rem;
  font-size: 1.2rem;
}

.social-links a:hover {
  transform: translateY(-2px);
  border-color: var(--accent);
  color: var(--accent-light);
}

.footer {
  padding-block: 2rem;
}

.footer-content {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 2rem;
  color: #625d68;
  font-size: 1.2rem;
}

.footer-content p {
  margin: 0;
}

.footer-content p:last-child {
  text-align: right;
}

.legal-time {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  justify-self: center;
  white-space: nowrap;
}

.colombia-flag {
  display: inline-block;
  width: 1.6rem;
  height: 1.1rem;
  margin-left: 0.35rem;
  vertical-align: -0.12rem;
  border-radius: 0.15rem;
  background: linear-gradient(
    to bottom,
    #fcd116 0 50%,
    #003893 50% 75%,
    #ce1126 75% 100%
  );
}

:focus-visible {
  outline: 2px solid #75649f;
  outline-offset: 4px;
}

@keyframes fade-up {
  from {
    opacity: 0;
    transform: translateY(1.2rem);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fade-in {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@media (max-width: 800px) {
  .hero {
    min-height: auto;
    grid-template-columns: 1fr 0.7fr;
    gap: 4rem;
    padding-block: 8rem;
  }

  .about-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .education-list {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 580px) {
  .container {
    width: min(100% - 3.6rem, var(--content-width));
  }

  .nav {
    min-height: 6.4rem;
  }

  .nav-list {
    gap: 1.8rem;
  }

  .nav-list a {
    font-size: 1.2rem;
  }

  .hero {
    grid-template-columns: 1fr;
    gap: 4rem;
    padding-block: 7rem 8rem;
  }

  .portrait-wrap {
    justify-self: center;
    width: min(75%, 28rem);
  }

  .hero-description {
    font-size: 1.55rem;
  }

  .about-section,
  .education-section,
  .contact-section {
    padding-block: 7rem;
  }

  .projects-section {
    padding-block: 8rem;
  }

  .projects-grid {
    grid-template-columns: 1fr;
    gap: 3.5rem;
  }

  .project-sector + .project-sector {
    margin-top: 5rem;
    padding-top: 4rem;
  }

  .project-visual {
    min-height: 21rem;
  }

  .footer-content {
    display: flex;
    align-items: center;
    gap: 0.6rem;
  }

  .footer-content p:last-child {
    text-align: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
