@import url("https://fonts.googleapis.com/css2?family=Love+Light&display=swap");

:root {
  --rose: #ff6b88;
  --pink: #ffd9e0;
  --bg: #fff7f9;
  --muted: #6b7280;
  --glass: rgba(255, 255, 255, 0.6);
  --card: #ffffff;
  --shadow: 0 10px 30px rgba(16, 24, 40, 0.08);
}
html,
body {
  height: 100%;
}
body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto,
    "Helvetica Neue", Arial;
  background: linear-gradient(180deg, var(--bg), #fff);
  color: #111;
  -webkit-font-smoothing: antialiased;
}
/* NAV */
.nav {
  position: fixed;
  left: 0;
  right: 0;
  top: 0;
  height: 64px;
  padding: 12px;
  display: flex;
  align-items: center;
  justify-content: center;

  z-index: 50;
  background-color: rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(6px);
}
.nav-inner {
  display: flex;
  align-items: center;
  margin-inline: auto;

  max-width: 1100px;

  width: 100%;
  width: 100%;
  justify-content: space-between;
}
.brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}
.logo {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: inline-grid;
  place-items: center;
  background: linear-gradient(135deg, var(--rose), #ff9fb7);
  color: #fff;
  font-weight: 700;
}
.links a {
  margin-left: 18px;
  color: #eee;
  text-decoration: none;
  font-size: 0.95rem;
}
.links a:hover {
  text-decoration: underline;
}

/* HERO */
header.hero {
  position: relative;
  height: 78vh;
  display: grid;
  place-items: center;
  overflow: hidden;
}
.hero video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.65);
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    transparent rgba(0, 0, 0, 0.18),
    rgba(255, 255, 255, 0.6)
  );
}
.hero-content {
  position: relative;
  z-index: 10;
  text-align: center;
  color: #fff;
  padding: 2rem;
}
.hero h1 {
  font-size: clamp(28px, 5vw, 56px);
  margin: 0;
  line-height: 1;
}
.hero p {
  opacity: 0.95;
  margin-top: 0.8rem;
  font-size: 1.06rem;
}
.cta {
  margin-top: 1.2rem;
  display: inline-flex;
  gap: 0.6rem;
}
.btn {
  padding: 0.7rem 1.1rem;
  border-radius: 999px;
  border: none;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
}
.btn-primary {
  background: #fff;
  color: var(--rose);
}
.btn-ghost {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.28);
  color: #fff;
}

/* Card */
.container {
  width: min(1100px, 94%);
  margin: -72px auto 0;
  position: relative;
}
.card {
  background: var(--card);
  border-radius: 14px;
  padding: 1rem;
  box-shadow: var(--shadow);
  display: flex;
  gap: 1rem;
  align-items: center;
}
.portrait {
  width: 74px;
  height: 74px;
  border-radius: 12px;
  object-fit: cover;
}

/* gallery */
section {
  margin-top: 2.2rem;
}
.grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}
@media (min-width: 700px) {
  .grid {
    grid-template-columns: repeat(4, 1fr);
  }
}
.tile {
  border-radius: 10px;
  overflow: hidden;
  background: #f3f4f6;
  cursor: pointer;
}
.tile img {
  width: 100%;
  height: 160px;
  object-fit: cover;
  display: block;
  transition: transform 0.28s;
}
.tile:hover img {
  transform: scale(1.03);
}
.caption {
  padding: 0.6rem;
  font-size: 0.85rem;
  color: var(--muted);
}

/* timeline */
.timeline-item {
  /* background: var(--card); */
  font-size: 2rem;
  color: #fff;
  padding: 12px;
  border-radius: 10px;
  border: 1px solid #f3f4f6;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

.timeline-item p {
  color: #fff;
  font-family: "Love Light", cursive;
}
.timeline-item small {
  color: var(--muted);
}

/* music */
.embed {
  min-height: 120px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  color: var(--muted);
  border: 1px dashed #eee;
}

/* contact */
form {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.6rem;
}
textarea {
  min-height: 100px;
  padding: 0.8rem;
  border-radius: 8px;
  border: 1px solid #e6e6e6;
}
input,
button {
  padding: 0.7rem;
  border-radius: 8px;
  border: 1px solid #e6e6e6;
}
button {
  background: var(--rose);
  color: #fff;
  border: none;
}

/* modal */
.modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  display: none;
  place-items: center;
  z-index: 80;
}
.modal.open {
  display: grid;
}
.modal .inner {
  max-width: 900px;
  width: 94%;
  background: #000;
  border-radius: 12px;
  overflow: hidden;
}
.modal img {
  width: 100%;
  height: auto;
  display: block;
}

footer {
  padding: 3rem 0;
  text-align: center;
  color: var(--muted);
  font-size: 0.9rem;
}

/* small animations */
.fade-in {
  animation: fadeUp 0.6s ease both;
}

#music * {
  margin: 10px;
}

.song {
  width: 100%;
  height: 600px;
  border-radius: 10px;
}
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.hover {
  transition: all 0.3s ease-in-out;
}
.hover:hover {
  transform: scale(1.1);
}

@media (width <= 840px) {
  .song {
    height: 400px;
  }
}

@media (width <= 580px) {
  .links a {
    display: none;
  }

  .links a.visible {
    display: inline;
  }
  .card {
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: center;
    padding-bottom: 2rem;
  }

  .portrait {
    width: 180px;
    height: 180px;
  }
  .song {
    height: 200px;
  }
}

/* background audio control */
.audio-control {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 999;
  width: 48px;
  height: 48px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.95),
    rgba(255, 240, 245, 0.95)
  );
  border: 1px solid rgba(0, 0, 0, 0.06);
  box-shadow: 0 6px 20px rgba(16, 24, 40, 0.08);
  cursor: pointer;
  font-size: 20px;
  user-select: none;
}

/* show a subtle playing glow */
.audio-control.playing {
  box-shadow: 0 10px 30px rgba(255, 107, 136, 0.12);
  transform: scale(1.02);
}

/* when autoplay was blocked, draw attention with a small pulse */
.audio-control.needs-interaction {
  animation: pulse 1.6s infinite;
}
@keyframes pulse {
  0% {
    transform: translateY(0) scale(1);
  }
  50% {
    transform: translateY(-3px) scale(1.03);
  }
  100% {
    transform: translateY(0) scale(1);
  }
}

/* timeline background video */
#timeline {
  position: relative;
  overflow: hidden;
  padding: 46px;
  border-radius: 8px;
}

/* video must cover the section and sit behind content */
.timeline-bg-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  filter: brightness(1);
  pointer-events: none; /* allow clicking content above */
}

/* overlay on top of the video (gradient + play hint) */
.timeline-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.18),
    rgba(255, 255, 255, 0.02)
  );
}

/* keep real timeline content above video+overlay */
#timeline > *:not(.timeline-bg-video):not(.timeline-overlay) {
  position: relative;
  z-index: 2;
}

/* play hint/button (shown only when autoplay blocked) */
.timeline-play-hint {
  pointer-events: auto; /* allow clicks on the button */
  position: absolute;
  left: 50%;
  top: 12px;
  transform: translateX(-50%);
  border: none;
  background: rgba(255, 255, 255, 0.9);
  color: #ff4f7a;
  border-radius: 999px;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  font-weight: 700;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.12);
  opacity: 0;
  transition: opacity 0.28s ease, transform 0.18s ease;
}

/* visible when needed */
.timeline-play-hint.visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* header play hint (shown when browser blocks audible autoplay) */
.header-play-hint {
  position: absolute;
  right: 16px;
  top: 16px;
  z-index: 60;
  pointer-events: auto;
  width: 44px;
  height: 44px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.95);
  color: #ff4f7a;
  border: none;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
  font-weight: 700;
  transform: translateY(0);
  opacity: 0;
  transition: opacity 0.22s ease, transform 0.18s ease;
}
.header-play-hint.visible {
  opacity: 1;
  transform: translateY(0);
}
