:root {
  --bg: #08131a;
  --bg-soft: #10212b;
  --panel: rgba(14, 30, 39, 0.72);
  --panel-strong: rgba(10, 24, 31, 0.9);
  --line: rgba(151, 215, 226, 0.18);
  --text: #eff8fa;
  --muted: #9eb7bf;
  --teal: #7fe6da;
  --cyan: #63b8ff;
  --gold: #ffb86b;
  --glow: rgba(127, 230, 218, 0.35);
  --shadow: 0 28px 80px rgba(0, 0, 0, 0.28);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  font-family: "Manrope", sans-serif;
  background:
    radial-gradient(circle at top left, rgba(99, 184, 255, 0.12), transparent 30%),
    radial-gradient(circle at 80% 20%, rgba(255, 184, 107, 0.12), transparent 26%),
    linear-gradient(150deg, #071015 0%, #09161d 42%, #0c1d26 100%);
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
  background-size: 34px 34px;
  mask-image: radial-gradient(circle at center, black 40%, transparent 86%);
  pointer-events: none;
}

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

.page-shell {
  position: relative;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 24px 0 56px;
}

.ambient {
  position: fixed;
  width: 380px;
  height: 380px;
  border-radius: 999px;
  filter: blur(30px);
  opacity: 0.3;
  pointer-events: none;
}

.ambient-left {
  top: 80px;
  left: -160px;
  background: rgba(99, 184, 255, 0.16);
  animation: drift 14s ease-in-out infinite;
}

.ambient-right {
  right: -120px;
  bottom: 120px;
  background: rgba(255, 184, 107, 0.16);
  animation: drift 18s ease-in-out infinite reverse;
}

.topbar {
  position: sticky;
  top: 18px;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 16px 22px;
  margin-bottom: 40px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: rgba(8, 19, 26, 0.65);
  backdrop-filter: blur(18px);
  box-shadow: var(--shadow);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: "Sora", sans-serif;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.brand-mark {
  width: 12px;
  height: 12px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--teal), var(--gold));
  box-shadow: 0 0 24px var(--glow);
}

.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.nav a {
  color: var(--muted);
  transition: color 0.25s ease, transform 0.25s ease;
}

.nav a:hover {
  color: var(--text);
  transform: translateY(-2px);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(320px, 0.95fr);
  gap: 24px;
  align-items: stretch;
  margin-bottom: 36px;
}

.hero-copy,
.hero-panel,
.glass-card,
.service-card,
.social-card {
  position: relative;
  overflow: hidden;
}

.hero-copy {
  padding: 34px;
  border-radius: 34px;
  background:
    linear-gradient(180deg, rgba(127, 230, 218, 0.05), transparent 36%),
    rgba(10, 24, 31, 0.7);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--teal);
  font-size: 0.88rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.hero h1,
.section h2 {
  margin: 0;
  font-family: "Sora", sans-serif;
  letter-spacing: -0.05em;
}

.hero h1 {
  max-width: 12ch;
  font-size: clamp(2.5rem, 6vw, 5.1rem);
  line-height: 0.96;
}

.hero-text,
.section-note,
.spotlight-copy p,
.spotlight-panel p,
.footer p {
  color: var(--muted);
}

.hero-text {
  max-width: 60ch;
  margin: 20px 0 0;
  font-size: 1.05rem;
  line-height: 1.8;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 26px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0 20px;
  border-radius: 999px;
  font-weight: 800;
  transition: transform 0.25s ease, border-color 0.25s ease, background 0.25s ease;
}

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

.button-primary {
  background: linear-gradient(135deg, var(--teal), var(--cyan));
  color: #072029;
}

.button-secondary {
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.03);
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 30px;
}

.stat-card,
.glass-card,
.service-card,
.social-card {
  border: 1px solid var(--line);
  background: var(--panel);
  backdrop-filter: blur(14px);
  box-shadow: var(--shadow);
}

.stat-card {
  padding: 18px;
  border-radius: 24px;
}

.stat-card strong {
  display: block;
  margin-bottom: 6px;
  font-size: 1.15rem;
  font-family: "Sora", sans-serif;
}

.stat-card span {
  color: var(--muted);
  font-size: 0.95rem;
}

.hero-panel {
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 34px;
  background:
    linear-gradient(180deg, rgba(255, 184, 107, 0.06), transparent 36%),
    rgba(9, 21, 28, 0.92);
  box-shadow: var(--shadow);
}

.hero-visual {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.hero-photo-frame {
  position: relative;
  min-height: 500px;
  border-radius: 28px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: #111;
}

.hero-photo-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(5, 12, 16, 0.1) 0%, rgba(5, 12, 16, 0.18) 38%, rgba(5, 12, 16, 0.82) 100%),
    radial-gradient(circle at 70% 22%, rgba(255, 184, 107, 0.16), transparent 30%);
  pointer-events: none;
}

.hero-photo {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  transform: scale(1.02);
}

.hero-photo-overlay {
  position: absolute;
  right: 20px;
  bottom: 20px;
  left: 20px;
  z-index: 1;
  padding: 18px 18px 20px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 22px;
  background: rgba(8, 19, 26, 0.56);
  backdrop-filter: blur(14px);
}

.hero-photo-overlay h2 {
  margin: 0;
  font-family: "Sora", sans-serif;
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  letter-spacing: -0.04em;
}

.hero-summary {
  position: relative;
  z-index: 1;
}

.panel-glow {
  position: absolute;
  inset: auto -30px -80px auto;
  width: 180px;
  height: 180px;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(127, 230, 218, 0.32) 0%, transparent 70%);
  pointer-events: none;
}

.panel-label,
.spotlight-title {
  margin: 0 0 16px;
  color: var(--gold);
  font-size: 0.95rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.highlight-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 14px;
}

.highlight-list li {
  padding: 14px 14px 14px 18px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.section {
  margin-top: 28px;
  padding: 28px 0 10px;
}

.section-heading {
  max-width: 720px;
  margin-bottom: 24px;
}

.section h2 {
  font-size: clamp(1.9rem, 3.7vw, 3.3rem);
  line-height: 1.02;
}

.grid-two {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.timeline-card,
.skill-group,
.spotlight-panel {
  padding: 24px;
  border-radius: 28px;
}

.timeline-head {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 14px;
}

.timeline-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.timeline-icon svg {
  width: 24px;
  height: 24px;
  fill: currentColor;
}

.timeline-icon-degree {
  color: #ffffff;
  background: linear-gradient(135deg, #0a66c2, #63b8ff);
}

.timeline-icon-tech {
  color: #ffffff;
  background: linear-gradient(135deg, #0f766e, #7fe6da);
}

.timeline-icon-teaching {
  color: #ffffff;
  background: linear-gradient(135deg, #b45309, #ffb86b);
}

.timeline-icon-code {
  color: #ffffff;
  background: linear-gradient(135deg, #111827, #4b5563);
}

.tag {
  display: inline-flex;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(127, 230, 218, 0.08);
  color: var(--teal);
  font-size: 0.85rem;
  font-weight: 800;
}

.timeline-card h3,
.skill-group h3,
.service-card h3,
.social-card strong {
  margin: 0 0 12px;
  font-family: "Sora", sans-serif;
  letter-spacing: -0.03em;
}

.timeline-card p,
.service-card p,
.social-card p,
.skill-group p {
  margin: 0;
  color: var(--muted);
  line-height: 1.72;
}

.skills-layout,
.service-grid,
.social-grid {
  display: grid;
  gap: 18px;
}

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

.skill-group {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.skill-media {
  margin: 0;
  aspect-ratio: 16 / 9;
  border-radius: 22px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background:
    radial-gradient(circle at top right, rgba(127, 230, 218, 0.08), transparent 28%),
    rgba(8, 19, 26, 0.62);
}

.skill-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.pill-row span {
  display: inline-flex;
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.04);
  color: #d8f5f1;
  font-weight: 700;
  font-size: 0.92rem;
}

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

.service-card {
  padding: 24px;
  border-radius: 28px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: transform 0.25s ease, border-color 0.25s ease;
}

.service-media {
  margin: 0;
  aspect-ratio: 16 / 9;
  border-radius: 22px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background:
    radial-gradient(circle at top right, rgba(127, 230, 218, 0.08), transparent 28%),
    rgba(8, 19, 26, 0.62);
}

.service-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.service-card:hover,
.social-card:hover,
.glass-card:hover {
  transform: translateY(-6px);
  border-color: rgba(127, 230, 218, 0.28);
}

.service-index,
.social-kicker {
  display: inline-flex;
  color: var(--gold);
  font-size: 0.9rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.social-head {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 16px;
}

.social-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.social-icon svg {
  width: 24px;
  height: 24px;
  fill: currentColor;
}

.social-linkedin {
  color: #ffffff;
  background: linear-gradient(135deg, #0a66c2, #58a6ff);
}

.social-github {
  color: #ffffff;
  background: linear-gradient(135deg, #111827, #4b5563);
}

.social-instagram {
  color: #ffffff;
  background: linear-gradient(135deg, #833ab4, #fd1d1d 55%, #fcb045);
}

.social-whatsapp {
  color: #ffffff;
  background: linear-gradient(135deg, #0fce5e, #25d366);
}

.spotlight {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(300px, 0.85fr);
  gap: 18px;
  align-items: center;
  padding: 34px;
  border: 1px solid var(--line);
  border-radius: 34px;
  background:
    radial-gradient(circle at top right, rgba(255, 184, 107, 0.12), transparent 24%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.02), rgba(127, 230, 218, 0.04));
  box-shadow: var(--shadow);
}

.spotlight-copy h2 {
  margin-bottom: 16px;
}

.spotlight-side {
  display: grid;
  gap: 18px;
}

.spotlight-media,
.spotlight-panel {
  padding: 24px;
  border-radius: 28px;
}

.spotlight-media {
  min-height: 220px;
  background:
    radial-gradient(circle at top right, rgba(127, 230, 218, 0.08), transparent 28%),
    rgba(14, 30, 39, 0.82);
}

.spotlight-media img {
  display: block;
  width: 100%;
  height: 220px;
  object-fit: cover;
  object-position: center;
  border-radius: 22px;
}

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

.social-card {
  padding: 24px;
  border-radius: 28px;
  transition: transform 0.25s ease, border-color 0.25s ease, background 0.25s ease;
}

.social-card strong {
  display: block;
  font-size: 1.2rem;
}

.footer {
  padding: 30px 0 10px;
  text-align: center;
}

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

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

.hero-copy::after,
.hero-panel::after,
.glass-card::after,
.service-card::after,
.social-card::after {
  content: "";
  position: absolute;
  inset: -30%;
  background: radial-gradient(circle at var(--mx, 50%) var(--my, 50%), rgba(255, 255, 255, 0.09), transparent 28%);
  opacity: 0;
  transition: opacity 0.35s ease;
  pointer-events: none;
}

.hero-copy:hover::after,
.hero-panel:hover::after,
.glass-card:hover::after,
.service-card:hover::after,
.social-card:hover::after {
  opacity: 1;
}

@keyframes drift {
  0%,
  100% {
    transform: translate3d(0, 0, 0) scale(1);
  }
  50% {
    transform: translate3d(20px, -24px, 0) scale(1.05);
  }
}

@media (max-width: 1080px) {
  .hero,
  .spotlight,
  .skills-layout,
  .service-grid {
    grid-template-columns: 1fr 1fr;
  }

  .skills-layout article:last-child,
  .service-grid article:last-child {
    grid-column: span 2;
  }
}

@media (max-width: 860px) {
  .topbar {
    position: static;
    flex-direction: column;
    align-items: flex-start;
  }

  .hero,
  .grid-two,
  .spotlight,
  .skills-layout,
  .service-grid,
  .social-grid,
  .hero-stats {
    grid-template-columns: 1fr;
  }

  .skills-layout article:last-child,
  .service-grid article:last-child {
    grid-column: auto;
  }

  .hero h1 {
    max-width: none;
  }

  .hero-photo-frame {
    min-height: 420px;
  }
}

@media (max-width: 560px) {
  .page-shell {
    width: min(100% - 20px, 1180px);
    padding-top: 16px;
  }

  .hero-copy,
  .hero-panel,
  .spotlight,
  .timeline-card,
  .skill-group,
  .service-card,
  .social-card {
    padding: 20px;
    border-radius: 24px;
  }

  .topbar {
    padding: 14px 16px;
    border-radius: 20px;
  }

  .nav {
    gap: 12px;
  }

  .hero-photo-frame {
    min-height: 360px;
  }

  .hero-photo-overlay {
    right: 14px;
    bottom: 14px;
    left: 14px;
    padding: 16px;
  }

  .skill-media,
  .service-media {
    aspect-ratio: 16 / 10;
  }

  .spotlight-media {
    min-height: 180px;
  }

  .spotlight-media img {
    height: 180px;
  }
}
