/* ═══════════════════════════════════════════
   HOME PAGE — For You, Sharon 🌸
   style.css  (edit di sini untuk ubah tampilan)
   ═══════════════════════════════════════════ */

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --rose:  #f43f74;
  --pink:  #fda4c2;
  --blush: #fce7f3;
  --cream: #fff5f8;
  --mauve: #c2185b;
  --text:  #6b2d4e;
  --glass: rgba(255,255,255,0.45);
}

html { scroll-behavior: smooth; }

body {
  min-height: 100vh;
  font-family: 'Poppins', sans-serif;
  color: var(--text);
  background: linear-gradient(135deg, #fce4ec 0%, #f8bbd0 30%, #fce7f3 60%, #f3e5f5 100%);
  background-size: 400% 400%;
  animation: gradientShift 12s ease infinite;
  overflow-x: hidden;
}

@keyframes gradientShift {
  0%,100% { background-position: 0% 50%; }
  50%      { background-position: 100% 50%; }
}

/* ── Floating particles ─────────────────────── */
.particles { position: fixed; inset: 0; pointer-events: none; z-index: 0; overflow: hidden; }

.particle {
  position: absolute;
  font-size: 1.2rem;
  opacity: 0;
  animation: floatUp linear infinite;
  user-select: none;
}

@keyframes floatUp {
  0%   { transform: translateY(110vh) rotate(0deg); opacity: 0; }
  10%  { opacity: 0.7; }
  90%  { opacity: 0.5; }
  100% { transform: translateY(-10vh) rotate(360deg); opacity: 0; }
}

/* ── Page wrapper ───────────────────────────── */
.page-wrap {
  position: relative; z-index: 1;
  min-height: 100vh;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  padding: 2rem 1rem 3rem;
  gap: 2rem;
}

/* ── Glass card ─────────────────────────────── */
.card {
  background: var(--glass);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  border: 1.5px solid rgba(255,255,255,0.6);
  border-radius: 2.5rem;
  box-shadow: 0 8px 40px rgba(244,63,116,0.15), 0 2px 8px rgba(0,0,0,0.06);
  padding: 2.5rem 2rem 2rem;
  max-width: 480px;
  width: 100%;
  text-align: center;
  animation: cardIn 0.9s cubic-bezier(.22,1,.36,1) both;
}

@keyframes cardIn {
  from { opacity:0; transform: translateY(40px) scale(0.96); }
  to   { opacity:1; transform: translateY(0) scale(1); }
}

/* ── Photo carousel ─────────────────────────── */
.photo-frame {
  position: relative;
  width: 200px; height: 200px;
  margin: 0 auto 1.6rem;
}

.photo-frame::before {
  content: '';
  position: absolute; inset: -6px;
  border-radius: 50%;
  background: conic-gradient(var(--rose), var(--pink), #f9a8d4, var(--rose));
  animation: spin 6s linear infinite;
  z-index: 0;
}

@keyframes spin { to { transform: rotate(360deg); } }

.photo-inner {
  position: relative; z-index: 1;
  width: 100%; height: 100%;
  border-radius: 50%;
  overflow: hidden;
  border: 4px solid white;
  box-shadow: 0 4px 24px rgba(244,63,116,0.3);
}

.slide { display: none; width: 100%; height: 100%; }
.slide.active { display: block; animation: fadeSlide 0.8s ease; }
.slide img { width: 100%; height: 100%; object-fit: cover; object-position: center top; }

@keyframes fadeSlide {
  from { opacity:0; transform: scale(1.05); }
  to   { opacity:1; transform: scale(1); }
}

/* dot indicators */
.dots { display: flex; gap: 6px; justify-content: center; margin-bottom: 1.4rem; }
.dot  { width: 8px; height: 8px; border-radius: 50%; background: var(--pink); cursor: pointer; transition: all 0.3s ease; }
.dot.active { background: var(--rose); transform: scale(1.35); }

/* ── Typography ─────────────────────────────── */
.greeting {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.35rem, 4vw, 1.75rem);
  font-weight: 600;
  color: var(--rose);
  line-height: 1.3;
  margin-bottom: 0.8rem;
  text-shadow: 0 2px 12px rgba(244,63,116,0.2);
}

.sub-text {
  font-size: 0.9rem;
  color: #c06080;
  line-height: 1.7;
  margin-bottom: 1.6rem;
  font-weight: 300;
}

/* ── Divider ────────────────────────────────── */
.divider {
  display: flex; align-items: center; gap: 10px;
  margin: 0 auto 1.6rem;
  color: var(--pink);
  font-size: 1rem;
}
.divider::before, .divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: linear-gradient(to right, transparent, var(--pink), transparent);
}

/* ── Buttons ────────────────────────────────── */
.btn-group {
  display: flex; flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
  margin-bottom: 1rem;
}

.btn {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 0.65rem 1.5rem;
  border-radius: 999px;
  font-family: 'Poppins', sans-serif;
  font-size: 0.88rem;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  border: none;
  transition: transform 0.22s cubic-bezier(.34,1.56,.64,1),
              box-shadow 0.22s ease,
              filter 0.22s ease;
}
.btn:hover  { transform: translateY(-3px) scale(1.04); }
.btn:active { transform: scale(0.97); }

.btn-primary {
  background: linear-gradient(135deg, var(--rose), #e91e8c);
  color: white;
  box-shadow: 0 4px 18px rgba(244,63,116,0.4);
}
.btn-primary:hover {
  box-shadow: 0 8px 28px rgba(244,63,116,0.55);
  filter: brightness(1.07);
}

.btn-soft {
  background: rgba(255,255,255,0.75);
  color: var(--rose);
  border: 1.5px solid rgba(244,63,116,0.35);
  box-shadow: 0 2px 12px rgba(244,63,116,0.12);
}
.btn-soft:hover {
  background: rgba(255,255,255,0.95);
  box-shadow: 0 6px 22px rgba(244,63,116,0.25);
}

.btn-ghost {
  background: transparent;
  color: #b06080;
  font-size: 0.82rem;
  padding: 0.45rem 1rem;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.btn-ghost:hover { color: var(--rose); transform: none; }

/* ── Custom music player ────────────────────── */
.music-bar {
  background: rgba(255,255,255,0.6);
  border: 1.5px solid rgba(255,255,255,0.8);
  border-radius: 999px;
  padding: 0.6rem 1.2rem;
  display: flex; align-items: center; gap: 10px;
  box-shadow: 0 2px 16px rgba(244,63,116,0.15);
  max-width: 340px;
  width: 100%;
  animation: cardIn 1s 0.2s cubic-bezier(.22,1,.36,1) both;
}

.music-icon { font-size: 1.1rem; animation: pulse 2s ease infinite; }
@keyframes pulse { 0%,100% { transform: scale(1); } 50% { transform: scale(1.2); } }

.music-info { flex: 1; text-align: left; overflow: hidden; }
.music-title {
  font-size: 0.8rem; font-weight: 500; color: var(--text);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.music-artist { font-size: 0.7rem; color: #b06080; }

.play-btn {
  width: 36px; height: 36px; border-radius: 50%;
  background: linear-gradient(135deg, var(--rose), #e91e8c);
  border: none; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  color: white; font-size: 0.85rem;
  box-shadow: 0 3px 12px rgba(244,63,116,0.4);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  flex-shrink: 0;
}
.play-btn:hover { transform: scale(1.12); box-shadow: 0 6px 18px rgba(244,63,116,0.5); }

.progress-wrap {
  width: 100%; height: 3px;
  background: rgba(244,63,116,0.15);
  border-radius: 99px; cursor: pointer;
  margin: 3px 0;
}
.progress-fill {
  height: 100%; border-radius: 99px;
  background: linear-gradient(to right, var(--rose), var(--pink));
  width: 0%;
}

/* ── Signature ──────────────────────────────── */
.signature {
  font-family: 'Playfair Display', serif;
  font-style: italic;
  font-size: 0.85rem;
  color: #c06080;
  opacity: 0.8;
  margin-top: 0.5rem;
}

/* ── Responsive ─────────────────────────────── */
@media (max-width: 480px) {
  .card { border-radius: 2rem; padding: 2rem 1.4rem 1.6rem; }
  .photo-frame { width: 160px; height: 160px; }
}
