:root {
  --bg: #09090f;
  --surface: #12131d;
  --surface-soft: #181926;
  --text: #fbf7f3;
  --muted: #b8b0bd;
  --line: rgba(255, 255, 255, 0.1);
  --rose: #f3a6c8;
  --rose-strong: #ec6fa7;
  --mint: #7be0d2;
  --gold: #f5d587;
  --shadow: 0 28px 80px rgba(0, 0, 0, 0.38);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  font-family: "Inter", Arial, sans-serif;
  line-height: 1.65;
  background:
    radial-gradient(circle at 15% 10%, rgba(243, 166, 200, 0.2), transparent 28rem),
    radial-gradient(circle at 88% 18%, rgba(123, 224, 210, 0.12), transparent 24rem),
    linear-gradient(135deg, #09090f 0%, #11111c 46%, #07080d 100%);
}

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

img {
  max-width: 100%;
}

.page {
  position: relative;
  min-height: 100vh;
  overflow: hidden;
}

.sky {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  overflow: hidden;
}

.star {
  position: absolute;
  width: 130px;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.9), transparent);
  opacity: 0;
  transform: rotate(-22deg);
  animation: shooting-star 7s linear infinite;
}

.star-one {
  top: 13%;
  left: -16%;
}

.star-two {
  top: 48%;
  left: -22%;
  animation-delay: 2.4s;
}

.star-three {
  top: 74%;
  left: -18%;
  animation-delay: 4.8s;
}

.orb {
  position: absolute;
  width: 170px;
  height: 170px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 50%;
  filter: blur(0.2px);
  opacity: 0.35;
  animation: float-object 9s ease-in-out infinite;
}

.orb-one {
  top: 18%;
  right: 7%;
  background: radial-gradient(circle, rgba(243, 166, 200, 0.14), transparent 62%);
}

.orb-two {
  bottom: 10%;
  left: 8%;
  width: 120px;
  height: 120px;
  background: radial-gradient(circle, rgba(123, 224, 210, 0.12), transparent 62%);
  animation-delay: 2s;
}

@keyframes shooting-star {
  0% {
    opacity: 0;
    transform: translate3d(0, 0, 0) rotate(-22deg);
  }
  10% {
    opacity: 0.85;
  }
  45% {
    opacity: 0;
    transform: translate3d(130vw, 34vh, 0) rotate(-22deg);
  }
  100% {
    opacity: 0;
    transform: translate3d(130vw, 34vh, 0) rotate(-22deg);
  }
}

@keyframes float-object {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-18px);
  }
}

.nav {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid var(--line);
  background: rgba(9, 9, 15, 0.78);
  backdrop-filter: blur(18px);
}

.nav-inner,
.section,
.footer-inner {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
  gap: 24px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
}

.brand-mark {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid rgba(243, 166, 200, 0.45);
  border-radius: 8px;
  color: var(--rose);
  background: rgba(243, 166, 200, 0.09);
  font-family: "Playfair Display", Georgia, serif;
  font-size: 1.15rem;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 20px;
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 700;
}

.nav-links a:hover {
  color: var(--text);
}

.section {
  padding: 76px 0;
}

.compact-section {
  padding-top: 18px;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.9fr);
  align-items: center;
  gap: 54px;
  padding-top: 94px;
}

.page-hero {
  padding-bottom: 28px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 18px;
  color: var(--rose);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

.eyebrow::before {
  content: "";
  width: 32px;
  height: 1px;
  background: currentColor;
}

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

h1,
h2 {
  font-family: "Playfair Display", Georgia, serif;
  letter-spacing: 0;
}

h1 {
  max-width: 760px;
  margin-bottom: 24px;
  font-size: clamp(2.8rem, 7vw, 6.4rem);
  line-height: 0.95;
}

h2 {
  margin-bottom: 12px;
  font-size: clamp(2rem, 4vw, 3.4rem);
  line-height: 1.06;
}

h3 {
  margin-bottom: 8px;
  font-size: 1.1rem;
}

.lead {
  max-width: 690px;
  margin-bottom: 34px;
  color: var(--muted);
  font-size: 1.08rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 36px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 20px;
  border: 1px solid transparent;
  border-radius: 8px;
  font-weight: 800;
}

.button.primary {
  color: #170812;
  background: linear-gradient(135deg, var(--rose), var(--gold));
  box-shadow: 0 18px 34px rgba(236, 111, 167, 0.2);
}

.button.secondary {
  color: var(--text);
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.04);
}

.quick-info,
.route-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.info-card,
.feature-card,
.project-card,
.timeline-item,
.list-card,
.contact-panel,
.route-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(18, 19, 29, 0.78);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.04) inset;
}

.route-card {
  padding: 26px;
  transition: border-color 0.2s ease, transform 0.2s ease, background 0.2s ease;
}

.route-card:hover {
  border-color: rgba(243, 166, 200, 0.45);
  background: rgba(28, 26, 39, 0.9);
  transform: translateY(-4px);
}

.route-card span,
.feature-card span {
  display: inline-grid;
  width: 38px;
  height: 38px;
  margin-bottom: 16px;
  place-items: center;
  border-radius: 8px;
  color: #130812;
  background: var(--rose);
  font-weight: 900;
}

.info-card {
  padding: 16px;
}

.label {
  display: block;
  margin-bottom: 4px;
  color: var(--rose);
  font-size: 0.74rem;
  font-weight: 800;
  text-transform: uppercase;
}

.info-card strong {
  display: block;
  color: var(--text);
  line-height: 1.25;
}

.profile-card {
  position: relative;
  padding: 22px;
  border: 1px solid rgba(243, 166, 200, 0.18);
  border-radius: 8px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.06), transparent), rgba(18, 19, 29, 0.9);
  box-shadow: var(--shadow);
}

.portrait {
  display: grid;
  min-height: 430px;
  place-items: end start;
  overflow: hidden;
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(9, 9, 15, 0.08) 18%, rgba(9, 9, 15, 0.9) 100%),
    url("assets/amerti-speaking.png") center/cover;
}

.portrait-content {
  padding: 28px;
}

.portrait-content p {
  margin-bottom: 0;
  color: var(--muted);
}

.badge {
  position: absolute;
  top: 38px;
  right: 38px;
  padding: 8px 12px;
  border: 1px solid rgba(245, 213, 135, 0.35);
  border-radius: 999px;
  color: var(--gold);
  background: rgba(9, 9, 15, 0.74);
  font-size: 0.8rem;
  font-weight: 800;
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 24px;
  margin-bottom: 28px;
}

.section-title {
  max-width: 720px;
}

.section-title p,
.project-card p,
.feature-card p,
.timeline-item p,
.list-card li,
.contact-panel p,
.route-card p {
  color: var(--muted);
}

.grid {
  display: grid;
  gap: 18px;
}

.about-grid {
  grid-template-columns: 1.25fr 0.75fr;
  align-items: stretch;
}

.story {
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(18, 19, 29, 0.76);
}

.story p:last-child {
  margin-bottom: 0;
}

.feature-list {
  display: grid;
  gap: 14px;
}

.feature-card {
  padding: 22px;
}

.education-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(240px, 0.45fr);
  gap: 18px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(123, 224, 210, 0.1), transparent 45%), rgba(18, 19, 29, 0.78);
}

.education-meta {
  display: grid;
  gap: 12px;
}

.project-card {
  overflow: hidden;
}

.project-image {
  min-height: 270px;
  background:
    linear-gradient(135deg, rgba(243, 166, 200, 0.18), rgba(123, 224, 210, 0.14)),
    url("https://images.unsplash.com/photo-1618477461853-cf6ed80faba5?auto=format&fit=crop&w=1100&q=80") center/cover;
}

.project-body {
  padding: 28px;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 20px;
}

.tag {
  padding: 6px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--text);
  background: rgba(255, 255, 255, 0.04);
  font-size: 0.78rem;
  font-weight: 800;
}

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

.timeline-item {
  display: grid;
  grid-template-columns: 190px minmax(0, 1fr);
  gap: 24px;
  padding: 24px;
}

.timeline-date {
  color: var(--gold);
  font-weight: 800;
}

.gallery {
  display: flex;
  gap: 18px;
  overflow-x: auto;
  overflow-y: hidden;
  padding: 4px 4px 18px;
  scroll-snap-type: x mandatory;
  scrollbar-color: var(--rose) rgba(255, 255, 255, 0.08);
  scrollbar-width: thin;
}

.gallery-card {
  position: relative;
  flex: 0 0 360px;
  height: 430px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow);
  scroll-snap-align: start;
}

.gallery-card a,
.gallery-card img {
  width: 100%;
  height: 100%;
  display: block;
}

.gallery-card img {
  object-fit: cover;
  transition: transform 0.35s ease;
}

.gallery-card:hover img {
  transform: scale(1.04);
}

.gallery::-webkit-scrollbar {
  height: 10px;
}

.gallery::-webkit-scrollbar-track {
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
}

.gallery::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: linear-gradient(90deg, var(--rose), var(--gold));
}

.gallery-caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  pointer-events: none;
  padding: 70px 20px 20px;
  background: linear-gradient(180deg, transparent, rgba(9, 9, 15, 0.92));
}

.gallery-caption h3 {
  margin-bottom: 6px;
}

.gallery-caption p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 0.92rem;
}

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

.list-card {
  padding: 24px;
}

.list-card ul {
  display: grid;
  gap: 10px;
  margin: 16px 0 0;
  padding-left: 18px;
}

.contact-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 28px;
  padding: 34px;
  background: linear-gradient(135deg, rgba(243, 166, 200, 0.15), transparent 42%), rgba(18, 19, 29, 0.92);
}

.contact-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 18px;
}

.contact-chip {
  padding: 9px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--text);
  background: rgba(255, 255, 255, 0.04);
  font-size: 0.9rem;
  font-weight: 700;
}

footer {
  padding: 30px 0 42px;
  color: var(--muted);
  font-size: 0.9rem;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  border-top: 1px solid var(--line);
  padding-top: 24px;
}

@media (max-width: 920px) {
  .hero,
  .about-grid,
  .education-card,
  .contact-panel {
    grid-template-columns: 1fr;
  }

  .quick-info,
  .route-grid,
  .lists {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .nav-links {
    display: none;
  }
}

@media (max-width: 640px) {
  .nav-inner,
  .section,
  .footer-inner {
    width: min(100% - 28px, 1120px);
  }

  .section {
    padding: 58px 0;
  }

  .hero {
    padding-top: 64px;
  }

  .quick-info,
  .route-grid,
  .lists,
  .timeline-item {
    grid-template-columns: 1fr;
  }

  .gallery-card {
    flex-basis: 82vw;
    height: 380px;
  }

  .section-header,
  .footer-inner {
    align-items: start;
    flex-direction: column;
  }

  .portrait {
    min-height: 360px;
  }

  .contact-panel {
    padding: 26px;
  }
}

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