/* Timeline Cinta Kita - styles.css
   Diadaptasi untuk dikadoin.id dari Codingverse20092008/A-timeline-from-first-chat-to-forever (MIT License).
   Palet: bright pastel v2 — #fffafc, #ffafcc, #f78fb3, #ffd6e4, #ffedf4, #ffe9f1, #b5657f,
   aksen: #ff8fab, #f76b9c, #ffb3c9, #ffc8dd, #ffafcc. */
body {
  margin: 0;
  font-family: 'Quicksand', Arial, sans-serif;
  background: #fffafc;
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
}

.intro-overlay {
  position: fixed;
  z-index: 100;
  top: 0; left: 0; width: 100vw; height: 100vh;
  background: linear-gradient(120deg, #ffe9f1 0%, #fffafc 55%, #ffedf4 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.7s cubic-bezier(.6,.2,.4,1);
}
.intro-overlay.fade-out {
  opacity: 0;
  pointer-events: none;
}
.intro-content {
  text-align: center;
  background: rgba(255,255,255,0.94);
  border: 2px solid #ffafcc;
  border-radius: 32px;
  box-shadow: 0 8px 48px 0 #ff8fab33, 0 2px 12px 0 #ffd6e4;
  padding: 2.5rem 2.2rem 2.2rem 2.2rem;
  max-width: 96vw;
}
.intro-title {
  font-family: 'Pacifico', cursive;
  color: #f76b9c;
  font-size: 2.3rem;
  margin-bottom: 1.2rem;
  letter-spacing: 2px;
  text-shadow: 0 2px 12px #ffedf4;
}
.intro-desc {
  color: #b5657f;
  font-size: 1.1rem;
  margin-bottom: 2.2rem;
}
.see-journey-btn {
  background: linear-gradient(90deg, #ffb3c9 0%, #ffc8dd 100%);
  color: #fff;
  font-family: 'Quicksand', Arial, sans-serif;
  font-size: 1.18rem;
  border: none;
  border-radius: 22px;
  padding: 0.8em 2.2em;
  box-shadow: 0 2px 16px #ffb3c9;
  cursor: pointer;
  transition: background 0.2s, transform 0.17s;
  font-weight: 700;
}
.see-journey-btn:hover {
  background: linear-gradient(90deg, #ff8fab 0%, #ffb3c9 100%);
  transform: scale(1.05);
}
.brand-badge {
  display: inline-block;
  margin-top: 1.4rem;
  font-size: 0.85rem;
  font-weight: 700;
  color: #f76b9c;
  background: #ffedf4;
  border: 1.5px solid #ffafcc;
  border-radius: 999px;
  padding: 0.3em 1.1em;
  letter-spacing: 1px;
}
@media (max-width: 600px) {
  .intro-content {
    padding: 1.2rem 0.7rem 1rem 0.7rem;
  }
  .intro-title {
    font-size: 1.3rem;
  }
}

/* Watermark overlay diagonal "dikadoin.id" (tidak menutupi interaksi: pointer-events none) */
.dkwm-overlay {
  position: fixed;
  inset: 0;
  z-index: 90;
  overflow: hidden;
  pointer-events: none;
}
.dkwm-inner {
  position: absolute;
  top: -60%;
  left: -60%;
  width: 220%;
  height: 220%;
  transform: rotate(-28deg);
  display: flex;
  flex-wrap: wrap;
  align-content: flex-start;
  gap: 90px 70px;
  padding: 60px;
  opacity: 0.5;
}
.dkwm-item {
  font-family: 'Quicksand', Arial, sans-serif;
  font-weight: 700;
  font-size: 1.15rem;
  color: #ffafcc;
  opacity: 0.35;
  white-space: nowrap;
  user-select: none;
}

/* Tombol simulasi tier Gratis / Berbayar */
.tier-btn {
  position: fixed;
  top: 12px;
  right: 12px;
  z-index: 120;
  font-family: 'Quicksand', Arial, sans-serif;
  font-size: 0.8rem;
  font-weight: 700;
  color: #b5657f;
  background: #ffedf4;
  border: 1.5px solid #ffafcc;
  border-radius: 999px;
  padding: 0.45em 1em;
  cursor: pointer;
  box-shadow: 0 2px 10px #ffd6e466;
}
.tier-btn:hover {
  background: #ffd6e4;
}

.background-pattern {
  position: fixed;
  top: 0; left: 0;
  width: 100vw; height: 100vh;
  pointer-events: none;
  z-index: 0;
  background: repeating-radial-gradient(circle at 10% 10%, #ffd6e4 0, #ffd6e4 2px, transparent 3px, transparent 50px),
              repeating-radial-gradient(circle at 80% 80%, #ffb3c9 0, #ffb3c9 2px, transparent 3px, transparent 60px),
              repeating-radial-gradient(circle at 50% 50%, #ffc8dd 0, #ffc8dd 2px, transparent 3px, transparent 70px),
              url('data:image/svg+xml;utf8,<svg width="60" height="60" xmlns="http://www.w3.org/2000/svg"><text x="10" y="40" font-size="36" fill="%23ffb3c9">❤</text></svg>');
  opacity: 0.16;
}
.main-title {
  font-family: 'Pacifico', cursive;
  color: #f76b9c;
  text-align: center;
  margin-top: 2.5rem;
  margin-bottom: 0.6rem;
  font-size: 2.4rem;
  letter-spacing: 2px;
  text-shadow: 0 2px 12px #ffedf4;
}
.main-subtitle {
  text-align: center;
  color: #b5657f;
  font-size: 1.05rem;
  margin: 0 1rem 2.5rem 1rem;
}
.timeline {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  padding-bottom: 5rem;
  z-index: 1;
}
.timeline::before {
  display: none;
}
.timeline-line {
  position: absolute;
  left: 50%;
  width: 4px;
  background: linear-gradient(180deg, #ffafcc 0%, #ff8fab 50%, #ffc8dd 100%);
  border-radius: 2px;
  z-index: 1;
  opacity: 0.7;
  transition: height 0.4s, top 0.4s;
  box-shadow: 0 0 8px 2px #ffafcccc;
  height: 0;
  top: 0;
  pointer-events: none;
}

.timeline-card {
  background: #fff;
  border: 2px solid #ffafcc;
  border-radius: 24px;
  box-shadow: 0 4px 24px 0 rgba(247, 107, 156, 0.10), 0 1.5px 8px 0 #ffd6e4;
  margin: 2.5rem 0;
  width: 90%;
  max-width: 420px;
  padding: 2rem 1.5rem 1.5rem 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  z-index: 2;
  opacity: 0;
  transform: translateY(40px);
  /* Menggantikan anime.js: fade + slide via CSS transition */
  transition: opacity 0.65s cubic-bezier(.22,.61,.36,1), transform 0.65s cubic-bezier(.22,.61,.36,1), box-shadow 0.2s;
}
.timeline-card.active {
  opacity: 1;
  transform: translateY(0);
  box-shadow: 0 8px 32px 0 rgba(247, 107, 156, 0.18), 0 3px 12px 0 #ffd6e4;
}
.timeline-date {
  font-size: 0.8rem;
  font-weight: 700;
  color: #f76b9c;
  background: #ffedf4;
  border: 1.5px solid #ffafcc;
  border-radius: 999px;
  padding: 0.25em 1em;
  margin-bottom: 0.8rem;
  letter-spacing: 1px;
}
.timeline-icon {
  font-size: 2.8rem;
  margin-bottom: 0.7rem;
  filter: drop-shadow(0 2px 8px #ffd6e4);
}
/* Menggantikan anime.js icon bounce: pop saat kartu aktif */
.timeline-card.active .timeline-icon {
  animation: icon-pop 0.8s cubic-bezier(.34,1.56,.64,1);
}
@keyframes icon-pop {
  0% { transform: scale(0.7); }
  55% { transform: scale(1.2); }
  100% { transform: scale(1); }
}
.timeline-title {
  font-family: 'Pacifico', cursive;
  font-size: 1.5rem;
  color: #f78fb3;
  margin-bottom: 0.5rem;
  letter-spacing: 1px;
  min-height: 2.2em;
  white-space: pre;
}
.timeline-description {
  font-size: 1.08rem;
  color: #b5657f;
  margin-bottom: 0.2rem;
  min-height: 2.2em;
  text-align: center;
  opacity: 0;
  /* Menggantikan anime.js description fade */
  transition: opacity 0.65s ease-out;
  transition-delay: 0.7s;
}
.timeline-card.active .timeline-description {
  opacity: 1;
}
/* Glowing effect for last card */
.timeline-card.final {
  box-shadow: 0 0 32px 8px #ffd6e4, 0 8px 32px 0 #f76b9c33;
  border: 2px solid #f78fb3;
  animation: glow 2.4s infinite alternate;
}
@keyframes glow {
  0% { box-shadow: 0 0 32px 8px #ffd6e4, 0 8px 32px 0 #f76b9c33; }
  100% { box-shadow: 0 0 48px 16px #ffd6e4, 0 8px 48px 0 #f76b9c77; }
}
@media (max-width: 600px) {
  .timeline-card {
    width: 98%;
    padding: 1.2rem 0.7rem 1rem 0.7rem;
  }
  .main-title {
    font-size: 1.4rem;
    margin-top: 1.2rem;
    margin-bottom: 0.4rem;
  }
  .timeline-title {
    font-size: 1.1rem;
  }
  .dkwm-item {
    font-size: 0.9rem;
  }
}
