/* ============================================
   MEMORIES TIMELINE
   ============================================ */

.memories-section {
  background: radial-gradient(ellipse at 20% 60%, rgba(107, 63, 160, 0.2), transparent 50%);
}

.timeline {
  max-width: 900px;
  margin: 0 auto;
  position: relative;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: 2px;
  height: 100%;
  background: linear-gradient(
    to bottom,
    transparent,
    var(--purple-mid),
    var(--purple-light),
    var(--purple-mid),
    transparent
  );
}

.memory-item {
  display: flex;
  align-items: center;
  margin-bottom: 4rem;
  opacity: 0;
  transform: translateX(-60px);
  transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.memory-item:nth-child(even) {
  flex-direction: row-reverse;
  transform: translateX(60px);
}

.memory-item.visible {
  opacity: 1;
  transform: translateX(0);
}

.memory-content {
  flex: 1;
  padding: 2rem;
}

.memory-content .memory-date {
  font-family: 'Dancing Script', cursive;
  color: var(--gold-accent);
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
}

.memory-content h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.3rem;
  color: var(--purple-light);
  margin-bottom: 0.5rem;
}

.memory-content p {
  font-family: 'Cormorant Garamond', serif;
  color: var(--purple-soft);
  font-size: 1rem;
  line-height: 1.7;
}

/* ---------- Dot ---------- */
.memory-dot {
  width: 20px;
  height: 20px;
  background: var(--purple-glow);
  border-radius: 50%;
  flex-shrink: 0;
  box-shadow: 0 0 20px rgba(217, 160, 255, 0.45);
  position: relative;
  z-index: 2;
}

.memory-dot::before {
  content: '';
  position: absolute;
  inset: -5px;
  border: 2px solid rgba(217, 160, 255, 0.25);
  border-radius: 50%;
  animation: dotPulse 2s ease infinite;
}

/* ---------- Photo Frame ---------- */
.memory-photo {
  flex: 1;
  padding: 2rem;
  display: flex;
  justify-content: center;
}

.memory-photo .photo-frame {
  width: 100%;
  max-width: 300px;
  aspect-ratio: 4 / 3;
  border-radius: 16px;
  overflow: hidden;
  position: relative;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.35);
  border: 3px solid rgba(217, 160, 255, 0.25);
  transition: transform 0.5s ease, box-shadow 0.5s ease;
}

.memory-photo .photo-frame:hover {
  transform: scale(1.05) rotate(1deg);
  box-shadow: 0 25px 60px var(--shadow-glow);
}

.photo-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.photo-placeholder {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, var(--purple-dark), var(--purple-mid));
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
}

.photo-placeholder span {
  font-family: 'Quicksand', sans-serif;
  font-size: 0.75rem;
  color: var(--purple-soft);
  margin-top: 0.5rem;
  letter-spacing: 2px;
}

/* ---------- Mobile ---------- */
@media (max-width: 768px) {
  .timeline::before { left: 20px; }
  .memory-item,
  .memory-item:nth-child(even) {
    flex-direction: column;
    transform: translateY(40px);
  }
  .memory-item.visible { transform: translateY(0); }
  .memory-dot { margin: 1rem 0; }
}
