/* =========================================================
   For Luhim - Farewell Web Styles
   Struktur:
   1. Base
   2. Intro Cover
   3. Layout & Hero
   4. Slider
   5. Message
   6. Farewell Event
   7. Music Button
   8. Footer
========================================================= */

/* 1. BASE */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #fff;
  background:
    radial-gradient(circle at top, rgba(255,255,255,.12), transparent 30%),
    linear-gradient(160deg, #080808, #171019 48%, #050505);
  overflow-x: hidden;
}

button {
  font: inherit;
  border: 0;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

/* 2. INTRO COVER */
.intro-cover {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 28px 18px;
  background:
    radial-gradient(circle at top, rgba(255,255,255,.12), transparent 30%),
    linear-gradient(160deg, #080808, #171019 48%, #050505);
  transition: opacity .8s ease, transform .9s cubic-bezier(.22,1,.36,1);
}

.intro-cover.hide {
  opacity: 0;
  transform: translateY(-100%);
  pointer-events: none;
}

.intro-content {
  width: 100%;
  max-width: 430px;
  text-align: center;
  transition: transform .9s cubic-bezier(.22,1,.36,1);
}

.intro-cover.hide .intro-content {
  transform: translateY(-40px);
}

.intro-play {
  margin-top: 26px;
  padding: 13px 24px;
  border-radius: 999px;
  background: rgba(255,255,255,.92);
  color: #111;
  font-weight: 800;
  font-size: 14px;
  box-shadow: 0 18px 50px rgba(0,0,0,.45);
}

/* 3. LAYOUT & HERO */
.app {
  width: 100%;
  max-width: 430px;
  min-height: 100vh;
  margin: 0 auto;
  padding: 28px 18px 52px;
  transition: opacity .9s ease, transform .9s cubic-bezier(.22,1,.36,1);
}

.app.is-hidden {
  opacity: 0;
  transform: translateY(42px);
  pointer-events: none;
}

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

.hero {
  text-align: center;
  padding: 18px 4px 20px;
}

.eyebrow {
  font-size: 12px;
  letter-spacing: 1.6px;
  text-transform: uppercase;
  color: rgba(255,255,255,.62);
  margin-bottom: 10px;
}

h1 {
  font-size: clamp(42px, 14vw, 62px);
  line-height: .9;
  letter-spacing: -2px;
}

.subtitle {
  max-width: 330px;
  margin: 16px auto 0;
  color: rgba(255,255,255,.72);
  font-size: 14px;
  line-height: 1.55;
}

/* 4. SLIDER */
.photo-card {
  margin-top: 16px;
  padding: 10px;
  border-radius: 30px;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.14);
  box-shadow: 0 30px 80px rgba(0,0,0,.45);
  backdrop-filter: blur(18px);
}

.slider {
  position: relative;
  width: 100%;
  aspect-ratio: 3 / 4.25;
  overflow: hidden;
  border-radius: 24px;
  background: #111;
}

.slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transform: scale(1.04);
  transition: opacity .55s ease, transform 1.2s ease;
  pointer-events: none;
}

.slide.active {
  opacity: 1;
  transform: scale(1);
  pointer-events: auto;
}

.slide img,
.slide video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: grayscale(100%) contrast(1.05) brightness(.92);
}

.video-slide::after {
  content: "Karaoke Memory";
  position: absolute;
  left: 14px;
  bottom: 14px;
  z-index: 3;
  padding: 7px 12px;
  border-radius: 999px;
  background: rgba(0,0,0,.45);
  color: white;
  font-size: 12px;
  letter-spacing: .5px;
}

.controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 10px 4px 2px;
}

.nav-btn {
  width: 36px;
  height: 36px;
  min-width: 36px;
  border-radius: 50%;
  background: rgba(255,255,255,.12);
  color: white;
  font-size: 24px;
  line-height: 1;
}

.dots {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 4px;
  overflow: hidden;
}

.dots .dot {
  all: unset;
  width: 4px !important;
  height: 4px !important;
  min-width: 4px !important;
  min-height: 4px !important;
  border-radius: 999px;
  background: rgba(255,255,255,.25);
  transition: .25s ease;
  cursor: pointer;
}

.dots .dot.active {
  width: 12px !important;
  min-width: 12px !important;
  background: #fff;
}

/* 5. MESSAGE */
.message {
  text-align: center;
  padding: 24px 10px 0;
}

.quote {
  font-size: 18px;
  line-height: 1.55;
  font-weight: 650;
}

.small {
  margin-top: 14px;
  color: rgba(255,255,255,.58);
  font-size: 13px;
}

/* 6. FAREWELL EVENT */
.farewell-prj {
  margin-top: 32px;
  text-align: center;
}

.farewell-tag {
  margin-bottom: 12px;
  color: rgba(255,255,255,.45);
  font-size: 11px;
  letter-spacing: 3px;
}

.farewell-prj h2 {
  font-size: 42px;
  letter-spacing: -1px;
  margin-bottom: 22px;
}

.farewell-glass {
  max-width: 320px;
  margin: 0 auto 28px;
  padding: 20px;
  border-radius: 24px;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.08);
  backdrop-filter: blur(12px);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.farewell-date {
  color: #fff;
  font-size: 14px;
}

.countdown-box {
  margin: 22px auto 30px;
  max-width: 300px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}

.countdown-box div {
  padding: 10px 4px;
  border-radius: 14px;
  background: rgba(255,255,255,.07);
  border: 1px solid rgba(255,255,255,.08);
}

.countdown-box strong {
  display: block;
  font-size: 18px;
  line-height: 1;
}

.countdown-box span {
  display: block;
  margin-top: 6px;
  color: rgba(255,255,255,.55);
  font-size: 10px;
}

.countdown-today {
  color: rgba(255,255,255,.75);
  font-size: 14px;
}

.farewell-story {
  max-width: 300px;
  margin: 0 auto;
  color: rgba(255,255,255,.78);
  line-height: 1.8;
  font-size: 15px;
}

/* 7. MUSIC BUTTON */
.music-btn {
  position: static;
  margin: 18px auto 0;
  width: fit-content;
  min-width: 150px;
  height: 42px;
  padding: 0 18px;
  border-radius: 999px;
  background: rgba(255,255,255,.10);
  border: 1px solid rgba(255,255,255,.14);
  backdrop-filter: blur(12px);
  color: white;
  font-size: 13px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* 8. FOOTER */
.footer {
  margin-top: 30px;
  padding-bottom: 20px;
  text-align: center;
}

.footer p {
  margin-bottom: 4px;
  color: rgba(255,255,255,.45);
  font-size: 12px;
}

.footer span {
  color: rgba(255,255,255,.25);
  font-size: 11px;
}

@media (min-width: 700px) {
  .app,
  .intro-content {
    max-width: 480px;
  }
}
