/* Yasmin FMP — profil. Tanpa JavaScript, tanpa sumber pihak ketiga (CSP ketat). */
:root {
  --ink: #241f45;
  --ink-soft: #5d5880;
  --night: #15123a;
  --night-2: #241d66;
  --cream: #fffaf3;
  --card: #ffffff;
  --gold: #ffd23f;
  --pink: #ff8fb1;
  --violet: #8f7bff;
  --mint: #5fd3b2;
  --sky: #4fb8ff;
  --radius: 28px;
  --shadow: 0 18px 50px rgba(30, 20, 90, 0.16);
  --font: ui-rounded, "SF Pro Rounded", "Nunito", "Segoe UI", system-ui, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--cream);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img {
  max-width: 100%;
}

a {
  color: inherit;
}

strong {
  font-weight: 800;
}

/* ───────── Latar langit (hanya bagian atas) ───────── */
.aurora,
.stars {
  position: absolute;
  inset: 0 0 auto 0;
  height: var(--sky-h, 880px);
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.aurora {
  background: radial-gradient(120% 90% at 50% 0%, var(--night-2) 0%, var(--night) 70%);
}

.aurora::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 160px;
  background: linear-gradient(to bottom, rgba(255, 250, 243, 0), var(--cream));
}

.aurora i {
  position: absolute;
  width: 560px;
  height: 560px;
  border-radius: 50%;
  filter: blur(70px);
  opacity: 0.55;
  animation: drift 18s ease-in-out infinite alternate;
}

.aurora i:nth-child(1) {
  background: #7b5cff;
  left: -120px;
  top: -80px;
}

.aurora i:nth-child(2) {
  background: #ff6fa5;
  right: -140px;
  top: 120px;
  animation-delay: -6s;
}

.aurora i:nth-child(3) {
  background: #2fd0c0;
  left: 35%;
  top: 420px;
  width: 420px;
  height: 420px;
  opacity: 0.35;
  animation-delay: -12s;
}

@keyframes drift {
  to {
    transform: translate(60px, 40px) scale(1.12);
  }
}

.stars {
  background-image:
    radial-gradient(2px 2px at 12% 18%, #fff 50%, transparent 51%),
    radial-gradient(1.5px 1.5px at 28% 62%, #fff 50%, transparent 51%),
    radial-gradient(2px 2px at 44% 30%, #fff 50%, transparent 51%),
    radial-gradient(1.5px 1.5px at 63% 12%, #fff 50%, transparent 51%),
    radial-gradient(2px 2px at 78% 48%, #fff 50%, transparent 51%),
    radial-gradient(1.5px 1.5px at 90% 22%, #fff 50%, transparent 51%),
    radial-gradient(1.5px 1.5px at 8% 74%, #fff 50%, transparent 51%),
    radial-gradient(2px 2px at 56% 70%, #fff 50%, transparent 51%);
  opacity: 0.7;
  animation: twinkle 5s ease-in-out infinite alternate;
}

@keyframes twinkle {
  to {
    opacity: 0.35;
  }
}

/* ───────── Navigasi ───────── */
.nav {
  position: sticky;
  top: 12px;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: min(1120px, calc(100% - 24px));
  margin: 12px auto 0;
  padding: 8px 10px 8px 20px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(14px) saturate(1.3);
  -webkit-backdrop-filter: blur(14px) saturate(1.3);
  box-shadow: 0 10px 30px rgba(10, 6, 40, 0.25);
}

.brand {
  font-weight: 900;
  font-size: 20px;
  text-decoration: none;
  color: #fff;
  letter-spacing: -0.02em;
}

.brand span {
  margin-left: 4px;
  color: var(--gold);
}

.links {
  display: flex;
  gap: 2px;
  overflow-x: auto;
  scrollbar-width: none;
}

.links a {
  padding: 8px 14px;
  border-radius: 999px;
  color: #fff;
  text-decoration: none;
  font-weight: 800;
  font-size: 15px;
  white-space: nowrap;
  transition: background 0.2s;
}

.links a:hover {
  background: rgba(255, 255, 255, 0.18);
}

/* ───────── Hero ───────── */
.hero {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: center;
  gap: 48px;
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
  padding: 70px 0 150px;
  color: #fff;
}

.eyebrow {
  margin: 0;
  font-size: 22px;
  font-weight: 800;
  color: #d9d2ff;
}

.wave {
  display: inline-block;
  transform-origin: 70% 70%;
  animation: hello 2.4s ease-in-out infinite;
}

@keyframes hello {
  0%,
  60%,
  100% {
    transform: rotate(0);
  }
  10%,
  30% {
    transform: rotate(16deg);
  }
  20%,
  40% {
    transform: rotate(-8deg);
  }
}

h1 {
  margin: 4px 0 10px;
  font-size: clamp(56px, 9vw, 112px);
  line-height: 0.95;
  font-weight: 900;
  letter-spacing: -0.04em;
}

.grad {
  background: linear-gradient(90deg, var(--gold), var(--pink), var(--violet));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.role {
  height: 40px;
  overflow: hidden;
  margin: 0 0 18px;
  font-size: clamp(20px, 2.6vw, 26px);
  font-weight: 900;
}

.role-track {
  display: flex;
  flex-direction: column;
  animation: roles 9s cubic-bezier(0.7, 0, 0.3, 1) infinite;
}

.role-track span {
  height: 40px;
  line-height: 40px;
  color: var(--gold);
}

@keyframes roles {
  0%,
  28% {
    transform: translateY(0);
  }
  33%,
  61% {
    transform: translateY(-40px);
  }
  66%,
  94% {
    transform: translateY(-80px);
  }
  100% {
    transform: translateY(-120px);
  }
}

.intro {
  max-width: 560px;
  margin: 0 0 26px;
  font-size: 19px;
  color: #ece8ff;
}

.cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 24px;
  border-radius: 999px;
  font-weight: 900;
  font-size: 17px;
  text-decoration: none;
  transition:
    transform 0.15s ease,
    box-shadow 0.15s ease;
}

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

.btn.primary {
  background: var(--gold);
  color: var(--ink);
  box-shadow: 0 6px 0 #d9a800, 0 14px 28px rgba(255, 210, 63, 0.35);
}

.btn.ghost {
  color: #fff;
  border: 2px solid rgba(255, 255, 255, 0.45);
}

.btn.ghost-dark {
  color: var(--ink);
  border: 2px solid #e2dcf6;
  background: #fff;
}

.btn.small {
  padding: 10px 18px;
  font-size: 15px;
}

.stats {
  display: grid;
  grid-template-columns: repeat(4, auto);
  justify-content: start;
  gap: 28px;
  margin: 36px 0 0;
  padding: 0;
  list-style: none;
}

.stats b {
  display: block;
  font-size: 34px;
  line-height: 1;
  font-weight: 900;
}

.stats span {
  font-size: 14px;
  color: #c9c1f5;
  font-weight: 700;
}

/* Potret */
.portrait {
  position: relative;
  margin: 0 auto;
  width: min(420px, 100%);
}

.frame {
  position: relative;
  aspect-ratio: 4 / 5;
  padding: 10px;
  border-radius: 40px;
  background: conic-gradient(from 210deg, var(--gold), var(--pink), var(--violet), var(--mint), var(--gold));
  box-shadow:
    0 30px 80px rgba(10, 4, 50, 0.55),
    0 0 0 1px rgba(255, 255, 255, 0.15);
  transform: rotate(2deg);
}

.frame picture {
  display: contents;
}

.frame img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 20%;
  border-radius: 32px;
  background: #2a2470;
}

.sticker {
  position: absolute;
  padding: 10px 16px;
  border-radius: 999px;
  background: #fff;
  color: var(--ink);
  font-weight: 900;
  font-size: 15px;
  box-shadow: 0 12px 30px rgba(10, 6, 40, 0.3);
  white-space: nowrap;
  animation: float 5s ease-in-out infinite;
}

.s1 {
  left: -36px;
  top: 14%;
}

.s2 {
  right: -30px;
  top: 46%;
  animation-delay: -1.6s;
}

.s3 {
  left: -14px;
  bottom: 8%;
  animation-delay: -3.2s;
}

@keyframes float {
  50% {
    transform: translateY(-12px);
  }
}

.spark {
  position: absolute;
  color: var(--gold);
  font-size: 28px;
  animation: twinkle 2.2s ease-in-out infinite alternate;
}

.k1 {
  right: 6%;
  top: -18px;
}

.k2 {
  left: 30%;
  bottom: -24px;
  font-size: 20px;
  animation-delay: -1s;
}

/* ───────── Bagian konten ───────── */
main {
  position: relative;
  z-index: 1;
}

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

.head {
  margin-bottom: 28px;
}

.kicker {
  margin: 0;
  color: var(--violet);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 14px;
}

h2 {
  margin: 4px 0 0;
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1.1;
  font-weight: 900;
  letter-spacing: -0.02em;
}

h3 {
  margin: 0 0 6px;
  font-weight: 900;
}

/* Karya */
.work {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 48px;
  align-items: center;
  padding: 40px;
  margin-bottom: 28px;
  border-radius: 36px;
  background: var(--card);
  box-shadow: var(--shadow);
}

.work.game {
  grid-template-columns: 1fr 1.1fr;
  background: linear-gradient(135deg, #1f1a5c, #3a2a8c);
  color: #fff;
}

.label {
  margin: 0 0 6px;
  font-weight: 900;
  color: var(--violet);
}

.work.game .label {
  color: var(--gold);
}

.work h3 {
  font-size: clamp(30px, 4vw, 42px);
  line-height: 1.05;
  letter-spacing: -0.02em;
}

.pub {
  display: inline-block;
  margin: 4px 0 12px;
  padding: 4px 12px;
  border-radius: 999px;
  background: #f3efff;
  font-size: 14px;
}

.tag {
  margin: 0 0 12px;
  color: #ffd9e6;
  font-weight: 800;
}

blockquote {
  margin: 16px 0 22px;
  padding: 0 0 0 16px;
  border-left: 4px solid var(--pink);
  font-style: italic;
  color: var(--ink-soft);
  font-weight: 700;
}

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

.cover3d {
  perspective: 1200px;
  display: grid;
  place-items: center;
}

.cover3d img {
  display: block;
  width: min(300px, 100%);
  height: auto;
  border-radius: 6px 16px 16px 6px;
  transform: rotateY(-18deg) rotateX(4deg);
  box-shadow:
    -10px 0 0 #6b3fa0,
    24px 30px 50px rgba(60, 20, 110, 0.35);
  transition: transform 0.5s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.cover3d img:hover {
  transform: rotateY(0) rotateX(0) scale(1.03);
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 18px 0 24px;
  padding: 0;
  list-style: none;
}

.chips li {
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.2);
  font-weight: 800;
  font-size: 14px;
}

/* Galeri cuplikan game: geser (scroll-snap), tanpa JavaScript */
.gallery {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 100%;
  gap: 14px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  border-radius: 20px;
  scrollbar-width: thin;
  padding-bottom: 6px;
}

.gallery img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 20px;
  scroll-snap-align: center;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35);
}

/* Linimasa */
.timeline {
  position: relative;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 18px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 4%;
  right: 4%;
  top: 30px;
  height: 4px;
  border-radius: 4px;
  background: linear-gradient(90deg, var(--mint), var(--gold), var(--pink), var(--violet), var(--sky));
}

.timeline li {
  position: relative;
  padding-top: 76px;
}

.timeline .dot {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  display: grid;
  place-items: center;
  width: 62px;
  height: 62px;
  border-radius: 50%;
  background: #fff;
  border: 4px solid var(--c);
  font-size: 26px;
  box-shadow: 0 10px 24px rgba(30, 20, 90, 0.15);
}

.timeline li > div {
  height: 100%;
  padding: 18px;
  border-radius: 22px;
  background: var(--card);
  box-shadow: var(--shadow);
  text-align: center;
}

.timeline h3 {
  font-size: 17px;
}

.timeline p {
  margin: 0;
  font-size: 14px;
  color: var(--ink-soft);
}

/* Hobi, kegiatan, keluarga */
.grid3,
.grid4,
.grid2 {
  display: grid;
  gap: 18px;
}

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

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

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

.tile,
.act,
.fam {
  padding: 22px;
  border-radius: var(--radius);
  background: var(--card);
  box-shadow: var(--shadow);
  transition: transform 0.25s ease;
}

.tile:hover,
.act:hover,
.fam:hover {
  transform: translateY(-6px);
}

.tile {
  background: linear-gradient(180deg, var(--l), #fff 70%);
  border-top: 6px solid var(--c);
}

.tile p {
  margin: 0;
  color: var(--ink-soft);
}

.act {
  text-align: center;
  border-bottom: 6px solid var(--c);
}

.act h3 {
  color: var(--c);
  margin: 0;
}

.fam {
  display: flex;
  gap: 18px;
  align-items: center;
  background: var(--l);
}

.fam .emoji {
  display: grid;
  place-items: center;
  flex: none;
  width: 72px;
  height: 72px;
  border-radius: 22px;
  background: #fff;
  font-size: 40px;
}

.fam h3 {
  color: var(--c);
}

.fam p {
  margin: 0;
}

footer {
  padding: 48px 20px 60px;
  text-align: center;
  background: var(--night);
  color: #cfc8ff;
}

footer p {
  margin: 4px 0;
}

.sig {
  font-size: 28px;
  font-weight: 900;
  color: #fff;
}

.sig span {
  color: var(--gold);
}

/* ───────── Layar kecil ───────── */
@media (max-width: 900px) {
  :root {
    --sky-h: 1300px;
  }
  .hero {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 40px;
    padding-top: 40px;
  }
  .hero-text {
    order: 2;
  }
  .portrait {
    order: 1;
    width: min(320px, 78vw);
  }
  .intro {
    margin-left: auto;
    margin-right: auto;
  }
  .cta,
  .stats {
    justify-content: center;
  }
  .work,
  .work.game {
    grid-template-columns: 1fr;
    padding: 26px;
    gap: 28px;
  }
  .timeline {
    grid-template-columns: 1fr;
  }
  .timeline::before {
    left: 30px;
    right: auto;
    top: 0;
    bottom: 0;
    width: 4px;
    height: auto;
  }
  .timeline li {
    padding: 0 0 0 82px;
  }
  .timeline .dot {
    left: 0;
    transform: none;
  }
  .timeline li > div {
    text-align: left;
  }
  .grid3 {
    grid-template-columns: 1fr;
  }
  .grid4,
  .grid2 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 560px) {
  .links {
    display: none;
  }
  .nav {
    justify-content: center;
  }
  .stats {
    grid-template-columns: repeat(2, auto);
    gap: 18px 32px;
  }
  .grid4,
  .grid2 {
    grid-template-columns: 1fr;
  }
  .s1 {
    left: -10px;
  }
  .s2 {
    right: -10px;
  }
  .section {
    margin-bottom: 70px;
  }
}

/* ───────── Adegan animasi ───────── */
.scene {
  display: block;
  width: 100%;
  height: auto;
  max-height: 150px;
  margin: 0 auto 8px;
  overflow: visible;
}
.act .scene {
  max-height: 130px;
}
.act {
  padding: 14px 10px;
}

/* Menulis: garis tinta + pensil */
.write .ink {
  fill: none;
  stroke: #ff8a5c;
  stroke-width: 4;
  stroke-linecap: round;
  stroke-dasharray: 130;
  stroke-dashoffset: 130;
  animation: ink 4.5s ease-in-out infinite;
}
.write .l2 {
  animation-delay: 1.2s;
}
.write .l3 {
  animation-delay: 2.4s;
}
@keyframes ink {
  0%,
  8% {
    stroke-dashoffset: 130;
  }
  30%,
  90% {
    stroke-dashoffset: 0;
  }
  100% {
    stroke-dashoffset: 130;
  }
}
.write .pencil {
  animation: pencil 4.5s ease-in-out infinite;
}
@keyframes pencil {
  0% {
    transform: translate(48px, 46px) rotate(25deg);
  }
  25% {
    transform: translate(150px, 44px) rotate(25deg);
  }
  30% {
    transform: translate(48px, 70px) rotate(25deg);
  }
  52% {
    transform: translate(150px, 68px) rotate(25deg);
  }
  57% {
    transform: translate(48px, 94px) rotate(25deg);
  }
  78%,
  100% {
    transform: translate(124px, 94px) rotate(25deg);
  }
}

/* Menggambar: cat muncul bergantian + kuas */
.draw .paint {
  transform-box: fill-box;
  transform-origin: center;
  animation: paint 5s ease-in-out infinite;
}
.draw .p2 {
  animation-delay: 0.8s;
}
.draw .p3 {
  animation-delay: 1.6s;
}
.draw .p4 {
  animation-delay: 2.4s;
}
@keyframes paint {
  0%,
  5% {
    transform: scale(0);
  }
  20%,
  85% {
    transform: scale(1);
  }
  100% {
    transform: scale(0);
  }
}
.draw .brush {
  animation: brush 5s ease-in-out infinite;
}
@keyframes brush {
  0% {
    transform: translate(70px, 56px) rotate(20deg);
  }
  20% {
    transform: translate(80px, 100px) rotate(-10deg);
  }
  40% {
    transform: translate(130px, 100px) rotate(15deg);
  }
  60% {
    transform: translate(138px, 44px) rotate(-5deg);
  }
  100% {
    transform: translate(70px, 56px) rotate(20deg);
  }
}

/* Membaca: halaman membalik */
.read .page {
  transform-origin: 100px 70px;
  animation: flip 3s ease-in-out infinite;
}
@keyframes flip {
  0%,
  20% {
    transform: scaleX(1);
  }
  60%,
  100% {
    transform: scaleX(-1);
  }
}
.read .hearts {
  font-size: 16px;
  animation: float 2s ease-in-out infinite;
}

/* Taekwondo: tendangan */
.tkd .kicker {
  animation: bob 1.6s ease-in-out infinite;
}
.tkd .leg-kick {
  transform-origin: 106px 100px;
  animation: kick 1.6s cubic-bezier(0.6, 0, 0.3, 1.4) infinite;
}
.tkd .arm {
  transform-origin: 124px 62px;
  animation: punch 1.6s ease-in-out infinite;
}
@keyframes kick {
  0%,
  35% {
    transform: rotate(0);
  }
  55%,
  70% {
    transform: rotate(-100deg);
  }
  90%,
  100% {
    transform: rotate(0);
  }
}
@keyframes punch {
  0%,
  35% {
    transform: rotate(0);
  }
  55%,
  70% {
    transform: rotate(-60deg);
  }
  100% {
    transform: rotate(0);
  }
}
@keyframes bob {
  50% {
    transform: translateY(-4px);
  }
}
.tkd .hiya {
  font: 900 20px system-ui, sans-serif;
  fill: #ff6b8b;
  opacity: 0;
  animation: hiya 1.6s ease-in-out infinite;
}
@keyframes hiya {
  0%,
  45% {
    opacity: 0;
    transform: translateY(6px);
  }
  60%,
  75% {
    opacity: 1;
    transform: translateY(0);
  }
  100% {
    opacity: 0;
  }
}

/* Berenang: ombak + gerakan tangan */
.swim .w1 {
  animation: wave 3s linear infinite;
}
.swim .w2 {
  animation: wave 2.2s linear infinite reverse;
}
@keyframes wave {
  to {
    transform: translateX(100px);
  }
}
.swim .swimmer {
  animation: bob 1.4s ease-in-out infinite;
}
.swim .stroke {
  transform-origin: 75px 88px;
  animation: stroke 1.4s linear infinite;
}
@keyframes stroke {
  to {
    transform: rotate(-360deg);
  }
}
.swim .bub {
  animation: bubble 2s ease-in infinite;
}
.swim .b2 {
  animation-delay: 0.8s;
}
@keyframes bubble {
  from {
    transform: translateY(0);
    opacity: 0.9;
  }
  to {
    transform: translateY(-50px);
    opacity: 0;
  }
}

/* Basket: bola melambung masuk ring */
.ball .bball {
  animation: shoot 2.4s ease-in-out infinite;
}
@keyframes shoot {
  0% {
    transform: translate(40px, 136px);
  }
  15% {
    transform: translate(40px, 100px);
  }
  25% {
    transform: translate(40px, 136px);
  }
  55% {
    transform: translate(90px, 10px) rotate(180deg);
  }
  70% {
    transform: translate(134px, 40px) rotate(300deg);
  }
  85% {
    transform: translate(134px, 136px) rotate(360deg);
  }
  100% {
    transform: translate(40px, 136px) rotate(360deg);
  }
}

/* Bahasa Inggris: gelembung bicara bergantian */
.eng .bubble1,
.eng .bubble2 {
  transform-box: fill-box;
  transform-origin: center;
  animation: talk 3s ease-in-out infinite;
}
.eng .bubble2 {
  animation-delay: 1.5s;
}
@keyframes talk {
  0%,
  100% {
    transform: scale(1);
  }
  15% {
    transform: scale(1.08);
  }
}
.scene.swim {
  overflow: hidden;
  border-radius: 18px;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
  html {
    scroll-behavior: auto;
  }
}
