/* === LOVE MODE (Main Theme) === */
.love-mode {
  background: linear-gradient(135deg, #ffeef8, #f8f0ff);
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
  transition: background 0.6s ease;
}

#hearts-container {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
}

/* Floating hearts */
.heart {
  position: absolute;
  font-size: 1.5rem;
  color: var(--c-heart, #e91e63);
  opacity: 0;
  animation: float 6s infinite ease-in-out;
  pointer-events: none;
}
@keyframes float {
  0% {
    transform: translateY(100vh) rotate(0deg);
    opacity: 0;
  }
  10% {
    opacity: 1;
  }
  90% {
    opacity: 1;
  }
  100% {
    transform: translateY(-100px) rotate(360deg);
    opacity: 0;
  }
}

/* Reading progress — a thin thread that fills as you move through our story */
#reading-progress-bar {
  position: fixed;
  top: 0;
  left: 0;
  height: 4px;
  width: 0%;
  background: linear-gradient(90deg, #ff9ecb, #e91e63, #ff4081);
  box-shadow: 0 0 8px rgba(233, 30, 99, 0.5);
  z-index: 2000;
  transition: width 0.12s linear;
  pointer-events: none;
}
body.dark #reading-progress-bar {
  box-shadow: 0 0 10px rgba(255, 105, 180, 0.7);
}

/* Confetti */
#confetti-canvas {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 999;
}

/* === HEADER === */
.love-header {
  text-align: center;
  padding: 3rem 0 2rem;
  position: relative;
  z-index: 2;
}

.love-header h1 {
  font-family: "Dancing Script", cursive;
  font-size: clamp(2.4rem, 6vw, 4rem);
  color: var(--c-heart, #e91e63);
  text-shadow: 0 2px 10px rgba(233, 30, 99, 0.3);
  margin-bottom: 0.5rem;
}

.subtitle {
  font-size: clamp(1rem, 3vw, 1.3rem);
  color: #d81b60;
  font-weight: 600;
}

.heart-beat {
  display: inline-block;
  animation: heartbeat 1.5s infinite;
}
@keyframes heartbeat {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.3);
  }
}

/* === CARDS === */
.love-card {
  background: white;
  border-radius: 24px;
  padding: 2rem;
  margin: 2rem 0;
  box-shadow: 0 8px 25px rgba(233, 30, 99, 0.15);
  position: relative;
  overflow: hidden;
  transition: all 0.4s ease;
}
.love-card::before {
  content: "♥";
  position: absolute;
  top: -20px;
  right: -20px;
  font-size: 4rem;
  color: rgba(233, 30, 99, 0.1);
  pointer-events: none;
}
.love-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 35px rgba(233, 30, 99, 0.25);
}

/* === ADD FORM === */
.add-card form {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}
.form-group.two-col {
  display: flex;
  gap: 0.6rem;
}
.form-group input,
.form-group textarea {
  flex: 1;
  border: 2px solid #ffc1e3;
  border-radius: 12px;
  padding: 0.8rem;
  font-family: inherit;
  transition: all 0.3s;
}
.add-card input:focus,
.add-card textarea:focus {
  border-color: var(--c-heart);
  box-shadow: 0 0 0 3px rgba(233, 30, 99, 0.2);
  outline: none;
}
.full-width {
  width: 100%;
}

/* === LOVE BUTTON === */
.love-btn {
  background: linear-gradient(45deg, #e91e63, #ff4081);
  color: white;
  border: none;
  padding: 0.9rem 1.8rem;
  border-radius: 50px;
  font-family: "Dancing Script", cursive;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(233, 30, 99, 0.4);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}
.love-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(233, 30, 99, 0.5);
}
.love-btn:active {
  transform: scale(0.97);
}

/* === TIMELINE (STORY THREAD) === */
.love-timeline {
  position: relative;
  padding: 2rem 0 1rem;
}

/* the stitched thread running through the story */
.love-timeline::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 3px;
  background: repeating-linear-gradient(
    to bottom,
    rgba(233, 30, 99, 0.28) 0,
    rgba(233, 30, 99, 0.28) 7px,
    transparent 7px,
    transparent 15px
  );
  transform: translateX(-50%);
  z-index: 1;
}

/* glowing progress fill — height driven by scroll position (JS) */
.timeline-progress {
  position: absolute;
  top: 0;
  left: 50%;
  width: 3px;
  height: 0;
  background: linear-gradient(to bottom, #ff9ecb, #e91e63, #ff4081);
  border-radius: 3px;
  transform: translateX(-50%);
  box-shadow: 0 0 14px rgba(233, 30, 99, 0.55);
  z-index: 2;
  pointer-events: none;
  will-change: height;
}

/* --- chapter divider (month / year marker) --- */
.timeline-divider {
  position: relative;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 1rem 0 2.4rem;
  z-index: 3;
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.timeline-divider.visible {
  opacity: 1;
  transform: translateY(0);
}
.timeline-divider-label {
  background: linear-gradient(135deg, #fff0f7, #fff8e6);
  border: 1px solid rgba(233, 30, 99, 0.25);
  color: #c2185b;
  font-family: "Dancing Script", cursive;
  font-weight: 700;
  font-size: 1.25rem;
  padding: 0.35rem 1.5rem;
  border-radius: 50px;
  box-shadow: 0 4px 14px rgba(233, 30, 99, 0.15);
  letter-spacing: 0.5px;
}

.timeline-card {
  width: 44%;
  opacity: 0;
  transform: translateY(50px) scale(0.94);
  transition:
    opacity 0.7s cubic-bezier(0.25, 0.8, 0.25, 1),
    transform 0.7s cubic-bezier(0.25, 0.8, 0.25, 1);
  position: relative;
  z-index: 3;
}
.timeline-card.visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}
.timeline-card.left {
  margin-right: auto;
  padding-right: 2.4rem;
}
.timeline-card.right {
  margin-left: auto;
  padding-left: 2.4rem;
}

/* wax-seal style node marking each memory on the thread */
.timeline-card::before {
  content: attr(data-icon);
  position: absolute;
  top: 1.6rem;
  width: 42px;
  height: 42px;
  line-height: 38px;
  text-align: center;
  font-size: 1.2rem;
  background: #fff;
  border: 2px solid var(--c-heart, #e91e63);
  border-radius: 50%;
  box-shadow:
    0 0 0 4px rgba(233, 30, 99, 0.08),
    0 4px 12px rgba(233, 30, 99, 0.22);
  z-index: 4;
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}
.timeline-card.left::before {
  right: -21px;
}
.timeline-card.right::before {
  left: -21px;
}
.timeline-card.visible.tl-active::before {
  transform: scale(1.16);
  box-shadow:
    0 0 0 6px rgba(233, 30, 99, 0.16),
    0 0 22px rgba(233, 30, 99, 0.55);
}

.card-content {
  background: white;
  padding: 2rem;
  border-radius: 24px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  position: relative;
}

/* scrapbook photo with a washi-tape corner */
.card-img-wrap {
  position: relative;
  margin: 1rem 0;
}
.card-img-wrap::before {
  content: "";
  position: absolute;
  top: -10px;
  left: 20px;
  width: 56px;
  height: 20px;
  background: repeating-linear-gradient(
    45deg,
    rgba(255, 255, 255, 0.55) 0 4px,
    rgba(255, 154, 190, 0.6) 4px 8px
  );
  transform: rotate(-6deg);
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.08);
  border-radius: 2px;
  z-index: 2;
}
.card-img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 16px;
  display: block;
  margin: 0;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.card-date {
  font-family: "Dancing Script", cursive;
  font-size: 1.8rem;
  color: var(--c-heart);
  margin-bottom: 0.5rem;
}

.card-title {
  font-size: 2.0rem;
  font-family: "Dancing Script", cursive;
  color: #ff13ac;
  margin: 0.5rem 0;
  font-weight: 600;
}

.card-desc {
  color: #7f8c8d;
  line-height: 1.7;
  overflow: hidden;
}

.card-desc-more {
  color: #e91e63;
  font-family: "Poppins", sans-serif;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.3px;
  margin-top: 0.5rem;
  cursor: pointer;
  opacity: 0.85;
  transition: opacity 0.25s ease, transform 0.25s ease;
}
.card-desc-more:hover {
  opacity: 1;
  transform: translateX(3px);
}
.dark .card-desc-more {
  color: #ff8fb3;
}

/* === LOVE LETTER MODAL === */
#love-letter {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
}
#love-letter.visible {
  opacity: 1;
  pointer-events: all;
}
.letter-content {
  background: #fff8f0;
  padding: 3rem;
  border-radius: 24px;
  max-width: 90%;
  max-height: 90%;
  overflow-y: auto;
  position: relative;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
  animation: letterPop 0.6s ease;
}
@keyframes letterPop {
  0% {
    transform: scale(0.7) rotate(-5deg);
    opacity: 0;
  }
  100% {
    transform: scale(1) rotate(0deg);
    opacity: 1;
  }
}
.close-letter {
  position: absolute;
  top: 15px;
  right: 20px;
  font-size: 2rem;
  color: #e91e63;
  cursor: pointer;
}

/* === DARK MODE === */
.love-mode.dark {
  background: linear-gradient(135deg, #1a0033, #2d1b3d);
  color: #f8f0ff;
  transition: background 0.6s ease;
}
.dark .love-card,
.dark .card-content {
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 105, 180, 0.3);
}
.dark .subtitle,
.dark .card-desc {
  color: #ffb3d9;
}
.dark .timeline-card::before {
  background: #241226;
  border-color: #ff80ab;
}
.dark .timeline-divider-label {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 105, 180, 0.35);
  color: #ffb3d9;
}
.dark .card-img-wrap::before {
  background: repeating-linear-gradient(
    45deg,
    rgba(255, 255, 255, 0.12) 0 4px,
    rgba(255, 105, 180, 0.35) 4px 8px
  );
}

/* === TOAST MESSAGE === */
.toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  transform: translate(-50%, 16px);
  background: #e91e63;
  color: #fff;
  padding: 10px 16px;
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(233, 30, 99, 0.35);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s, transform 0.4s;
  z-index: 9999;
}
.toast.show {
  opacity: 1;
  transform: translate(-50%, 0);
}

/* === NIGHT MODE BUTTON === */
#dark-mode-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--c-heart);
  color: #fff;
  transition: background 0.4s, transform 0.5s ease;
  cursor: pointer;
  margin: 1rem auto 0;
}
#dark-mode-toggle:hover {
  transform: rotate(20deg) scale(1.05);
}
body.dark #dark-mode-toggle {
  background: #222;
  box-shadow: 0 0 12px rgba(255, 255, 255, 0.3);
}
body.dark #dark-mode-toggle .icon {
  transform: rotate(180deg);
  transition: transform 0.6s ease;
}

/* === RESPONSIVE DESIGN === */
@media (max-width: 992px) {
  .timeline-card {
    width: 78%;
  }
  .timeline-card.left,
  .timeline-card.right {
    padding-left: 2.4rem;
    padding-right: 2.4rem;
  }
}

/* --- Mobile: thread moves to the left edge, single column, generous tap targets --- */
@media (max-width: 768px) {
  .love-timeline {
    padding: 1rem 0 0.5rem;
  }
  .love-timeline::before,
  .timeline-progress {
    left: 22px;
  }
  .timeline-card,
  .timeline-card.left,
  .timeline-card.right {
    width: 100%;
    max-width: 100%;
    margin: 0 0 2.2rem 0;
    padding-left: 3.4rem;
    padding-right: 1rem;
    box-sizing: border-box;
  }
  .timeline-card.left::before,
  .timeline-card.right::before {
    left: 1px;
    right: auto;
    top: 1.5rem;
    width: 38px;
    height: 38px;
    line-height: 34px;
    font-size: 1.05rem;
  }
  .card-content {
    padding: 1.5rem;
    border-radius: 20px;
  }
  .card-img-wrap::before {
    left: 14px;
    width: 46px;
    height: 17px;
  }
  .timeline-divider {
    margin: 0.6rem 0 1.8rem;
    justify-content: flex-start;
    padding-left: 3.4rem;
  }
  .timeline-divider-label {
    font-size: 1.05rem;
    padding: 0.3rem 1.1rem;
  }
}

@media (max-width: 480px) {
  .love-card {
    padding: 1.2rem;
    margin: 1.2rem 0;
  }
  .card-content {
    padding: 1.2rem;
  }
  .card-date {
    font-size: 1.35rem;
  }
  .card-title {
    font-size: 1.6rem;
    line-height: 1.4;
  }
  .card-desc {
    font-size: 0.92rem;
    line-height: 1.65;
  }
  .card-actions {
    flex-direction: column;
    gap: 0.6rem;
  }
  .card-actions .love-btn.small,
  .card-actions .remove-btn {
    width: 100%;
    text-align: center;
  }
  #dark-mode-toggle {
    width: 42px;
    height: 42px;
  }
  .timeline-card,
  .timeline-card.left,
  .timeline-card.right {
    padding-left: 3rem;
  }
  .love-timeline::before,
  .timeline-progress {
    left: 18px;
  }
  .timeline-card.left::before,
  .timeline-card.right::before {
    left: -2px;
    width: 34px;
    height: 34px;
    line-height: 30px;
    font-size: 0.95rem;
    top: 1.3rem;
  }
  .timeline-divider {
    padding-left: 3rem;
  }
}

/* --- Extra-small phones: nothing should ever overflow or feel cramped --- */
@media (max-width: 360px) {
  .container {
    padding-left: 0.9rem;
    padding-right: 0.9rem;
  }
  .card-content {
    padding: 1rem;
  }
  .tl-quote {
    font-size: 1.25rem;
    padding: 1.4rem 0.5rem 0;
  }
  .love-header h1 {
    font-size: clamp(2rem, 9vw, 2.6rem);
  }
}

/* --- Touch & viewport hygiene (all breakpoints) --- */
.timeline-card,
.timeline-divider,
.love-btn,
.remove-btn,
.floating-add-btn,
#dark-mode-toggle {
  -webkit-tap-highlight-color: transparent;
}
.love-btn,
.remove-btn,
.floating-add-btn {
  touch-action: manipulation;
  min-height: 44px;
}
.love-mode {
  overflow-x: hidden;
  width: 100%;
}
.timeline-wrapper,
.container {
  max-width: 100%;
}

/* Safe-area padding so nothing hides under a notch or home-indicator */
.floating-add-btn {
  right: max(25px, calc(16px + env(safe-area-inset-right)));
  bottom: max(25px, calc(16px + env(safe-area-inset-bottom)));
}
#reading-progress-bar {
  top: env(safe-area-inset-top, 0px);
}

/* Respect reduced-motion preferences */
@media (prefers-reduced-motion: reduce) {
  .timeline-card,
  .timeline-divider,
  .tl-end-message {
    transition: opacity 0.3s ease !important;
    transform: none !important;
  }
  .heart,
  .teardrop,
  .floating-add-btn,
  .heart-beat {
    animation: none !important;
  }
}
/* === FLOATING ADD MEMORY BUTTON === */
.floating-add-btn {
  position: fixed;
  bottom: 25px;
  right: 25px;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: linear-gradient(135deg, #ff4081, #e91e63);
  color: #fff;
  font-size: 1.8rem;
  border: none;
  cursor: pointer;
  z-index: 999;
  box-shadow: 0 6px 18px rgba(233, 30, 99, 0.4);
  transition: all 0.3s ease;
  animation: pulseHeart 2.5s ease-in-out infinite;
}

.floating-add-btn:hover {
  transform: scale(1.1);
  box-shadow: 0 8px 25px rgba(233, 30, 99, 0.5);
}

/* Pulse animation */
@keyframes pulseHeart {
  0%,
  100% {
    transform: scale(1);
    box-shadow: 0 0 15px rgba(255, 105, 180, 0.4);
  }
  50% {
    transform: scale(1.08);
    box-shadow: 0 0 30px rgba(255, 105, 180, 0.6);
  }
}

/* Dark Mode Styling */
body.dark .floating-add-btn {
  background: linear-gradient(135deg, #444, #222);
  box-shadow: 0 4px 16px rgba(255, 255, 255, 0.15);
}

/* Hide on very small screens when keyboard is open */
@media (max-height: 500px) {
  .floating-add-btn {
    display: none;
  }
}
/* === ROMANTIC ADD FORM === */
.add-card {
  text-align: center;
  padding: 2.5rem 2rem;
  background: linear-gradient(145deg, #fff0f7, #fff8e6);
  border: 3px solid #ffd6e7;
  box-shadow: 0 10px 30px rgba(233, 30, 99, 0.15);
  border-radius: 24px;
  position: relative;
}

.add-title {
  font-family: "Dancing Script", cursive;
  font-size: 2.4rem;
  color: #e91e63;
  margin-bottom: 0.6rem;
  text-shadow: 0 3px 8px rgba(233, 30, 99, 0.2);
  animation: fadeIn 1.2s ease forwards;
}

.add-subtitle {
  font-family: "Poppins", sans-serif;
  color: #8d6e63;
  font-size: 1.1rem;
  margin-bottom: 1.8rem;
  font-style: italic;
  animation: fadeIn 1.6s ease forwards;
}

.love-form {
  display: grid;
  gap: 1.2rem;
  max-width: 500px;
  margin: 0 auto;
  text-align: left;
}

.form-group {
  display: flex;
  flex-direction: column;
}

.form-group label {
  font-family: "Dancing Script", cursive;
  font-size: 1.4rem;
  color: #e91e63;
  margin-bottom: 0.4rem;
}

.love-form input,
.love-form textarea {
  border: 2px solid #ffc1e3;
  border-radius: 12px;
  padding: 0.8rem 1rem;
  font-size: 1rem;
  font-family: "Poppins", sans-serif;
  background: rgba(255, 255, 255, 0.9);
  transition: all 0.3s ease;
}

.love-form input:focus,
.love-form textarea:focus {
  border-color: #e91e63;
  box-shadow: 0 0 8px rgba(233, 30, 99, 0.2);
  outline: none;
}

/* File input style */
.love-form input[type="file"] {
  border: 2px dashed #ffd6e7;
  background: rgba(255, 240, 246, 0.6);
  cursor: pointer;
}

.love-form input[type="file"]:hover {
  border-color: #e91e63;
}

/* Button spacing */
.love-form .love-btn {
  margin-top: 1rem;
  font-size: 1.1rem;
  padding: 0.9rem 2rem;
  align-self: center;
}

/* === RESPONSIVE FORM === */
@media (max-width: 768px) {
  .add-card {
    padding: 1.8rem 1.4rem;
  }

  .add-title {
    font-size: 2rem;
  }

  .add-subtitle {
    font-size: 1rem;
  }

  .love-form {
    width: 100%;
    gap: 1rem;
  }

  .form-group label {
    font-size: 1.2rem;
  }

  .love-form input,
  .love-form textarea {
    font-size: 0.95rem;
  }
}
/* === CARD ACTIONS === */
.card-actions {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.8rem;
  margin-top: 1rem;
}

/* 💔 Remove Button */
.remove-btn {
  background: linear-gradient(45deg, #f8d7da, #f5b7b1);
  border: none;
  color: #b71c1c;
  font-family: "Dancing Script", cursive;
  padding: 0.6rem 1.2rem;
  border-radius: 30px;
  cursor: pointer;
  font-size: 1.1rem;
  box-shadow: 0 4px 12px rgba(244, 67, 54, 0.25);
  transition: all 0.3s ease;
}

.remove-btn:hover {
  transform: scale(1.05);
  box-shadow: 0 6px 20px rgba(244, 67, 54, 0.3);
  background: linear-gradient(45deg, #f1948a, #f8d7da);
}

/* 🫶 Floating hearts when deleted */
.fade-heart {
  position: fixed;
  bottom: 10px;
  font-size: 1.3rem;
  opacity: 0;
  animation: fadeUp 1.8s ease-out forwards;
  pointer-events: none;
  z-index: 1000;
}

@keyframes fadeUp {
  0% {
    transform: translateY(0) scale(1);
    opacity: 1;
  }
  100% {
    transform: translateY(-150px) scale(0.8);
    opacity: 0;
  }
}
/* === 💧 TEARS ON TIMELINE PAGE === */
.teardrop {
  position: fixed;
  top: -60px;
  width: 8px;
  height: 14px;
  background: linear-gradient(180deg, rgba(180,220,255,0.6), rgba(120,180,255,0.3));
  border-radius: 50% 50% 60% 60% / 40% 40% 60% 60%;
  pointer-events: none;
  z-index: 0;
  animation: tearFallTL linear forwards;
  filter: blur(0.3px);
}
@keyframes tearFallTL {
  0%   { transform: translateY(0) rotate(-6deg); opacity: 0; }
  8%   { opacity: 0.7; }
  100% { transform: translateY(105vh) rotate(4deg); opacity: 0; }
}

/* === 💔 LAST CARD — THE PAINFUL DAY === */
.timeline-card.painful .card-content {
  background: linear-gradient(145deg, #fff5f7, #ffe8ec);
  border: 2px solid rgba(233,30,99,0.2);
  position: relative;
  overflow: hidden;
}
.timeline-card.painful .card-content::before {
  content: '💔';
  position: absolute;
  top: -20px; right: -20px;
  font-size: 6rem;
  opacity: 0.06;
  pointer-events: none;
}
.timeline-card.painful .card-date {
  color: #c62828;
}
.timeline-card.painful .card-title {
  color: #b71c1c;
  font-style: italic;
}
.timeline-card.painful .card-desc {
  color: #7b3a4a;
  font-style: italic;
  line-height: 1.9;
  border-left: 3px solid rgba(233,30,99,0.3);
  padding-left: 1rem;
}

/* === 🌙 LAST UPDATE CARD === */
.timeline-card.last-update .card-content {
  background: linear-gradient(145deg, #f8f8ff, #f0f0ff);
  border: 2px dashed rgba(150,150,200,0.3);
}
.timeline-card.last-update .card-date {
  color: #7986cb;
}
.timeline-card.last-update .card-title {
  color: #5c6bc0;
}
.timeline-card.last-update .card-desc {
  color: #78909c;
  font-style: italic;
  line-height: 1.9;
}

/* ═══════════════════════════════════════════════════════════════════
   💫 THE FINAL CARD — the single most important card on the page.
   Deliberately more pronounced than every other special card above:
   a warm, breathing rose-gold glow, a slow shimmer sweep, and a few
   quiet floating sparkles, so it's unmistakable the moment it scrolls
   into view — without ever feeling loud or out of place.
   ═══════════════════════════════════════════════════════════════════ */
.timeline-card.final-note .card-content {
  position: relative;
  background: linear-gradient(150deg, #fff8f0 0%, #fff0f5 55%, #fdf3ff 100%);
  border: 2px solid rgba(255, 105, 180, 0.5);
  overflow: hidden;
  animation: finalNoteBreathe 3.2s cubic-bezier(0.45, 0, 0.55, 1) infinite;
}
@keyframes finalNoteBreathe {
  0%, 100% {
    box-shadow: 0 12px 34px rgba(233, 30, 99, 0.18), 0 0 0 0 rgba(255, 45, 149, 0.3);
  }
  50% {
    box-shadow: 0 18px 50px rgba(233, 30, 99, 0.32), 0 0 0 14px rgba(255, 45, 149, 0);
  }
}

/* soft ambient pink glow sitting behind the whole card — separate from
   the border's own breathing shadow, this is a wider, hazier halo that
   makes the card feel like it's gently lit from within */
.timeline-card.final-note {
  position: relative;
}
.timeline-card.final-note::after {
  content: "";
  position: absolute;
  inset: -10% -12%;
  z-index: -1;
  border-radius: 36px;
  background: radial-gradient(
    ellipse at center,
    rgba(255, 45, 149, 0.55) 0%,
    rgba(255, 105, 180, 0.28) 48%,
    transparent 75%
  );
  filter: blur(30px);
  animation: finalNoteAmbientGlow 3.2s cubic-bezier(0.45, 0, 0.55, 1) infinite;
  pointer-events: none;
  will-change: opacity, transform;
}
@keyframes finalNoteAmbientGlow {
  0%, 100% { opacity: 0.55; transform: scale(1); }
  50%      { opacity: 1;    transform: scale(1.1); }
}

/* soft hearts drifting in a gentle loop around each corner of the card —
   sits as a sibling of .card-content so they can float just past the
   card's edge without being clipped by its overflow:hidden shimmer layer */
.fn-hearts {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
}
.fn-heart {
  position: absolute;
  font-size: 1.2rem;
  opacity: 0.85;
  filter: drop-shadow(0 0 6px rgba(255, 105, 180, 0.55));
  animation: fnHeartOrbit 5.5s ease-in-out infinite;
}
.fn-heart.fn-tl { top: -10px; left: -10px; animation-delay: 0s; }
.fn-heart.fn-tr { top: -10px; right: -10px; animation-delay: 1.3s; animation-direction: reverse; }
.fn-heart.fn-bl { bottom: -10px; left: -10px; animation-delay: 2.6s; animation-direction: reverse; }
.fn-heart.fn-br { bottom: -10px; right: -10px; animation-delay: 3.9s; }

@keyframes fnHeartOrbit {
  0%   { transform: translate(0, 0) scale(1); opacity: 0.7; }
  25%  { transform: translate(5px, -6px) scale(1.12); opacity: 1; }
  50%  { transform: translate(0, -10px) scale(1); opacity: 0.85; }
  75%  { transform: translate(-5px, -6px) scale(0.95); opacity: 1; }
  100% { transform: translate(0, 0) scale(1); opacity: 0.7; }
}

/* slow diagonal shimmer sweep across the card */
.timeline-card.final-note .card-content::before {
  content: "";
  position: absolute;
  inset: -40% -60%;
  background: linear-gradient(
    100deg,
    transparent 40%,
    rgba(255, 255, 255, 0.55) 50%,
    transparent 60%
  );
  transform: translateX(-100%);
  animation: finalNoteShimmer 5.5s ease-in-out infinite;
  pointer-events: none;
}
@keyframes finalNoteShimmer {
  0%, 35%  { transform: translateX(-120%); }
  65%, 100% { transform: translateX(120%); }
}

/* a few quiet floating sparkles inside the card */
.timeline-card.final-note .card-content::after {
  content: "✨";
  position: absolute;
  top: 12%;
  right: 10%;
  font-size: 1.1rem;
  opacity: 0.55;
  animation: finalNoteFloat 4.2s ease-in-out infinite;
  pointer-events: none;
}
@keyframes finalNoteFloat {
  0%, 100% { transform: translateY(0) rotate(0deg); opacity: 0.35; }
  50%      { transform: translateY(-10px) rotate(12deg); opacity: 0.7; }
}

.timeline-card.final-note .card-date {
  color: #d68a2f;
  font-weight: 600;
}
.timeline-card.final-note .card-title {
  color: #c2185b;
  font-size: 1.35em;
  background: linear-gradient(90deg, #e91e63, #ff8f4c 60%, #e91e63);
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: finalNoteTitleGlow 4s linear infinite;
}
@keyframes finalNoteTitleGlow {
  0%   { background-position: 0% center; }
  100% { background-position: 200% center; }
}
.timeline-card.final-note .card-desc {
  color: #9c3f66;
  font-family: "Cormorant Garamond", "Georgia", serif;
  font-style: italic;
  font-weight: 500;
  line-height: 1.85;
  font-size: 1.32em;
  letter-spacing: 0.2px;
}

/* its node marker on the thread gets its own warm, pulsing halo — the
   one you should notice even before scrolling all the way down to it */
.timeline-card.final-note::before {
  border-color: #ff8f4c;
  animation: finalNoteNodePulse 2.4s ease-in-out infinite;
}
@keyframes finalNoteNodePulse {
  0%, 100% {
    box-shadow: 0 0 0 4px rgba(255, 143, 76, 0.14), 0 4px 14px rgba(233, 30, 99, 0.3);
    transform: scale(1);
  }
  50% {
    box-shadow: 0 0 0 9px rgba(255, 143, 76, 0.08), 0 6px 20px rgba(233, 30, 99, 0.4);
    transform: scale(1.08);
  }
}

/* graceful placeholder shown until the real photo is added */
.final-note-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  aspect-ratio: 16 / 10;
  border: 2px dashed rgba(233, 30, 99, 0.28);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.5);
}
.final-note-placeholder .fnp-icon {
  font-size: 1.8rem;
  animation: finalNoteFloat 4.2s ease-in-out infinite;
}
.final-note-placeholder .fnp-text {
  font-family: 'Dancing Script', cursive;
  font-size: 1.1rem;
  color: #c98aa0;
}

/* soft themed background while the Cloudinary clip loads, instead of a
   black flash — the video itself covers it completely once ready */
.final-note-video {
  background: linear-gradient(145deg, #ffe8f0, #fff3e6);
}

/* === ⚡ ARMAN PORTFOLIO PROJECT CARD — SPECIAL MILESTONE === */
.timeline-card.codebase-milestone {
  width: 90% !important;
  max-width: 960px !important;
  margin-left: auto !important;
  margin-right: auto !important;
  padding: 0 !important;
  left: auto !important;
  right: auto !important;
}

@media (max-width: 992px) {
  .timeline-card.codebase-milestone {
    width: 100% !important;
    max-width: 100% !important;
    padding-left: 3.4rem !important;
    padding-right: 1.2rem !important;
    box-sizing: border-box !important;
    margin: 0 0 2.2rem 0 !important;
  }
}

.timeline-card.codebase-milestone .card-content.port-project-card {
  position: relative;
  background: #fdfafc;
  border: 1px solid rgba(233, 30, 99, 0.28);
  border-radius: 28px;
  box-shadow: 0 16px 45px rgba(233, 30, 99, 0.14), 0 0 30px rgba(186, 104, 200, 0.12);
  padding: 2.2rem;
  overflow: hidden;
  transition: all 0.35s ease;
}

.timeline-card.codebase-milestone:hover .card-content.port-project-card {
  box-shadow: 0 22px 60px rgba(233, 30, 99, 0.22), 0 0 45px rgba(186, 104, 200, 0.2);
  border-color: rgba(233, 30, 99, 0.45);
}

/* Featured Corner Ribbon — 3D Folded Ribbon Style */
.port-featured-ribbon {
  position: absolute;
  top: 32px;
  right: -28px;
  width: 145px;
  text-align: center;
  background: linear-gradient(135deg, #e91e63 0%, #9c27b0 100%);
  color: #ffffff;
  font-family: 'Poppins', sans-serif;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 1.8px;
  padding: 0.38rem 0;
  transform: rotate(45deg);
  box-shadow: 0 4px 14px rgba(233, 30, 99, 0.45);
  z-index: 10;
  pointer-events: none;
  text-transform: uppercase;
  border-top: 1px solid rgba(255, 255, 255, 0.4);
  border-bottom: 1px solid rgba(0, 0, 0, 0.15);
}

/* 2-Column Grid */
.port-card-grid {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 2.2rem;
  align-items: center;
}

@media (max-width: 860px) {
  .port-card-grid {
    grid-template-columns: 1fr;
    gap: 1.8rem;
  }
}

/* Left Media Column */
.port-media-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.9rem;
  background: linear-gradient(160deg, #faf3f8, #f4ebf8);
  border-radius: 20px;
  padding: 1.2rem 1rem;
  border: 1px solid rgba(233, 30, 99, 0.15);
  box-shadow: inset 0 2px 10px rgba(255, 255, 255, 0.8), 0 8px 20px rgba(0, 0, 0, 0.04);
}

.port-live-pill {
  font-family: 'Poppins', sans-serif;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 1.2px;
  color: #7b1fa2;
  background: rgba(123, 31, 162, 0.08);
  border: 1px solid rgba(123, 31, 162, 0.22);
  padding: 0.28rem 0.9rem;
  border-radius: 50px;
  box-shadow: 0 2px 8px rgba(123, 31, 162, 0.08);
}

/* Browser Frame */
.port-browser-frame {
  width: 100%;
  background: #ffffff;
  border-radius: 14px;
  border: 1px solid rgba(233, 30, 99, 0.22);
  box-shadow: 0 10px 28px rgba(233, 30, 99, 0.1);
  overflow: hidden;
}

.port-browser-header {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.55rem 0.85rem;
  background: #fdf5f9;
  border-bottom: 1px solid rgba(233, 30, 99, 0.12);
}

.port-mac-dots {
  display: flex;
  gap: 4px;
}

.p-dot {
  width: 7.5px;
  height: 7.5px;
  border-radius: 50%;
}
.p-dot.red { background: #ff5f56; }
.p-dot.yellow { background: #ffbd2e; }
.p-dot.green { background: #27c93f; }

.port-browser-title {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.8px;
  color: #7b1fa2;
  margin-left: auto;
}

.port-browser-body {
  padding: 0.75rem 0.65rem 0.75rem;
  background: #fff;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

/* ArMeen Kernel Sinusoidal Spline */
.port-kernel-canvas {
  width: 100%;
  display: flex;
  justify-content: center;
}

.port-kernel-svg {
  width: 100%;
  height: auto;
  display: block;
  overflow: visible;
}

.port-spline-path {
  animation: splineDashFlow 12s linear infinite;
}

@keyframes splineDashFlow {
  from { stroke-dashoffset: 120; }
  to { stroke-dashoffset: 0; }
}

/* Dark Console Command Bar */
.port-dark-terminal-pill {
  background: #141122;
  border: 1px solid rgba(233, 30, 99, 0.2);
  border-radius: 8px;
  padding: 0.45rem 0.75rem;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.68rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.pdt-prompt {
  color: #00e676;
  font-weight: 700;
}

.pdt-cmd {
  color: #f3e5f5;
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  letter-spacing: 0.3px;
  min-width: 0;
}

.port-explore-link {
  font-family: 'Poppins', sans-serif;
  font-size: 0.78rem;
  font-weight: 600;
  color: #7b1fa2;
  text-decoration: none;
  transition: transform 0.2s ease, color 0.2s ease;
}
.port-explore-link:hover {
  color: #e91e63;
  transform: translateX(3px);
}

/* Right Info Column */
.port-info-col {
  display: flex;
  flex-direction: column;
}

.port-meta-row {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 0.6rem;
  flex-wrap: wrap;
}

.port-cat-tag {
  font-family: 'Poppins', sans-serif;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.8px;
  color: #7b1fa2;
}

.port-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background: rgba(39, 201, 63, 0.12);
  border: 1px solid rgba(39, 201, 63, 0.35);
  color: #1b872b;
  font-family: 'Poppins', sans-serif;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.15rem 0.55rem;
  border-radius: 50px;
}

.port-status-dot {
  width: 6.5px;
  height: 6.5px;
  border-radius: 50%;
  background: #27c93f;
  box-shadow: 0 0 6px #27c93f;
}

.port-star-pill {
  background: rgba(233, 30, 99, 0.08);
  border: 1px solid rgba(233, 30, 99, 0.25);
  color: #e91e63;
  font-family: 'Poppins', sans-serif;
  font-size: 0.72rem;
  font-weight: 600;
  padding: 0.15rem 0.5rem;
  border-radius: 50px;
}

.port-year-tag {
  font-family: 'Poppins', sans-serif;
  font-size: 0.74rem;
  color: #888;
  font-weight: 500;
}

.port-card-title {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 1.85rem;
  font-weight: 600;
  color: #2c1a2e;
  margin: 0.2rem 0 0.6rem;
  line-height: 1.3;
}

.port-card-desc {
  font-family: 'Poppins', sans-serif;
  font-size: 0.92rem;
  color: #654c60;
  line-height: 1.7;
  margin-bottom: 0.7rem;
}

.port-stats-sub {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 1.05rem;
  color: #7b1fa2;
  margin-bottom: 0.9rem;
}

.port-tech-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-bottom: 1.2rem;
}

.port-tech-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background: #fdf5f9;
  border: 1px solid rgba(233, 30, 99, 0.2);
  color: #55334c;
  font-family: 'Poppins', sans-serif;
  font-size: 0.76rem;
  font-weight: 600;
  padding: 0.25rem 0.65rem;
  border-radius: 8px;
}

.port-actions-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.port-case-study-btn {
  background: none;
  border: none;
  color: #7b1fa2;
  font-family: 'Poppins', sans-serif;
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  padding: 0;
  transition: all 0.2s ease;
}
.port-case-study-btn:hover {
  color: #e91e63;
  transform: translateX(3px);
}

.port-btn-group {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.port-live-demo-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: linear-gradient(135deg, #1b0a24, #2d103b);
  color: #fff !important;
  font-family: 'Poppins', sans-serif;
  font-size: 0.84rem;
  font-weight: 600;
  text-decoration: none;
  padding: 0.55rem 1.15rem;
  border-radius: 8px;
  box-shadow: 0 4px 14px rgba(27, 10, 36, 0.35);
  transition: all 0.25s ease;
}
.port-live-demo-btn:hover {
  background: linear-gradient(135deg, #7b1fa2, #e91e63);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(233, 30, 99, 0.4);
}

.port-github-link-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: #fff;
  border: 1px solid rgba(123, 31, 162, 0.25);
  color: #4a2842 !important;
  font-family: 'Poppins', sans-serif;
  font-size: 0.84rem;
  font-weight: 600;
  text-decoration: none;
  padding: 0.55rem 1.1rem;
  border-radius: 8px;
  transition: all 0.25s ease;
}
.port-github-link-btn:hover {
  border-color: #e91e63;
  color: #e91e63 !important;
  transform: translateY(-2px);
}

/* === 📱 MOBILE RESPONSIVE ADAPTATIONS === */
@media (max-width: 860px) {
  .timeline-card.codebase-milestone {
    width: 100% !important;
    max-width: 100% !important;
    padding-left: 3.4rem !important;
    padding-right: 1rem !important;
    box-sizing: border-box !important;
    margin: 0 0 2.2rem 0 !important;
  }

  .timeline-card.codebase-milestone .card-content.port-project-card {
    padding: 1.5rem 1.15rem;
    border-radius: 20px;
    box-sizing: border-box;
    width: 100%;
    max-width: 100%;
  }

  .port-card-grid {
    grid-template-columns: 1fr;
    gap: 1.4rem;
  }

  .port-media-col {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    padding: 1rem 0.75rem;
    min-width: 0;
  }

  .port-browser-frame {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    min-width: 0;
  }

  .port-kernel-canvas {
    width: 100%;
    max-width: 100%;
    overflow: hidden;
    box-sizing: border-box;
  }

  .port-kernel-svg {
    width: 100%;
    max-width: 100%;
    height: auto;
    display: block;
  }

  .port-dark-terminal-pill {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    padding: 0.4rem 0.6rem;
    font-size: 0.64rem;
    min-width: 0;
  }

  .port-actions-row {
    flex-direction: column;
    align-items: stretch;
    gap: 0.75rem;
  }

  .port-case-study-btn {
    text-align: center;
    padding: 0.35rem 0;
  }

  .port-btn-group {
    display: flex;
    flex-direction: row;
    width: 100%;
    gap: 0.5rem;
  }

  .port-live-demo-btn,
  .port-github-link-btn {
    flex: 1;
    text-align: center;
    justify-content: center;
    padding: 0.65rem 0.75rem;
    font-size: 0.8rem;
  }
}

@media (max-width: 480px) {
  .timeline-card.codebase-milestone {
    width: 100% !important;
    max-width: 100% !important;
    padding-left: 3rem !important;
    padding-right: 0.85rem !important;
    box-sizing: border-box !important;
    margin: 0 0 1.8rem 0 !important;
  }

  .timeline-card.codebase-milestone .card-content.port-project-card {
    padding: 1.15rem 0.85rem;
    border-radius: 16px;
    box-sizing: border-box;
    width: 100%;
    max-width: 100%;
  }

  .port-featured-ribbon {
    top: 38px;
    right: -14px;
    width: 135px;
    font-size: 0.54rem;
    letter-spacing: 0.8px;
    padding: 0.28rem 0;
  }

  .port-live-pill {
    font-size: 0.65rem;
    padding: 0.2rem 0.7rem;
  }

  .port-browser-header {
    padding: 0.4rem 0.55rem;
  }

  .port-browser-title {
    font-size: 0.58rem;
    letter-spacing: 0.4px;
  }

  .port-browser-body {
    padding: 0.6rem 0.45rem 0.6rem;
    gap: 0.55rem;
  }

  .port-dark-terminal-pill {
    padding: 0.35rem 0.5rem;
    font-size: 0.6rem;
    gap: 0.35rem;
    min-width: 0;
  }

  .pdt-cmd {
    font-size: 0.58rem;
    min-width: 0;
  }

  .port-card-title {
    font-size: clamp(1.25rem, 4.8vw, 1.45rem);
    line-height: 1.25;
    margin: 0.2rem 0 0.5rem;
    word-break: break-word;
    overflow-wrap: break-word;
  }

  .port-card-desc {
    font-size: 0.84rem;
    line-height: 1.55;
    word-break: break-word;
    overflow-wrap: break-word;
  }

  .port-stats-sub {
    font-size: 0.88rem;
    line-height: 1.4;
    margin-bottom: 0.7rem;
    word-break: break-word;
    overflow-wrap: break-word;
  }

  .port-meta-row {
    gap: 0.35rem;
  }

  .port-cat-tag {
    font-size: 0.66rem;
  }

  .port-status-pill,
  .port-star-pill,
  .port-year-tag {
    font-size: 0.65rem;
    padding: 0.12rem 0.45rem;
  }

  .port-tech-tags {
    gap: 0.35rem;
    margin-bottom: 0.9rem;
  }

  .port-tech-pill {
    font-size: 0.68rem;
    padding: 0.18rem 0.45rem;
  }

  .port-btn-group {
    flex-direction: column;
    gap: 0.45rem;
  }

  .port-live-demo-btn,
  .port-github-link-btn {
    width: 100%;
    padding: 0.6rem 0.7rem;
    font-size: 0.8rem;
  }
}

@media (max-width: 360px) {
  .timeline-card.codebase-milestone {
    padding-left: 2.6rem !important;
    padding-right: 0.5rem !important;
  }

  .timeline-card.codebase-milestone .card-content.port-project-card {
    padding: 1rem 0.65rem;
  }

  .port-featured-ribbon {
    top: 36px;
    right: -14px;
    width: 130px;
    font-size: 0.50rem;
    letter-spacing: 0.7px;
    padding: 0.24rem 0;
  }
}

/* Dark Mode Adaptation */
body.dark .timeline-card.codebase-milestone .card-content.port-project-card {
  background: #14091c;
  border-color: rgba(255, 105, 180, 0.35);
  box-shadow: 0 16px 45px rgba(0, 0, 0, 0.6), 0 0 30px rgba(255, 95, 162, 0.2);
}

body.dark .port-media-col {
  background: #1d0e28;
  border-color: rgba(255, 105, 180, 0.2);
}

body.dark .port-browser-frame {
  background: #100617;
  border-color: rgba(255, 105, 180, 0.25);
}

body.dark .port-browser-header {
  background: #180b22;
}

body.dark .port-browser-body {
  background: #100617;
}

body.dark .port-card-title {
  color: #fff;
}

body.dark .port-card-desc {
  color: #e0d0de;
}

body.dark .port-tech-pill {
  background: #23122f;
  border-color: rgba(255, 105, 180, 0.25);
  color: #ffb8d9;
}

body.dark .port-github-link-btn {
  background: #1f0f2b;
  border-color: rgba(255, 105, 180, 0.3);
  color: #fff !important;
}

/* === 🤍 TIMELINE INTRO QUOTE === */
.tl-quote {
  text-align: center;
  padding: 2rem 1rem 0;
  font-family: 'Dancing Script', cursive;
  font-size: 1.5rem;
  color: #ad5078;
  opacity: 0;
  animation: fadeInQuote 2s ease 0.5s forwards;
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.7;
}
@keyframes fadeInQuote {
  to { opacity: 1; }
}

/* === 💬 CHAPTER COUNT === */
.tl-chapter-count {
  text-align: center;
  font-family: 'Poppins', sans-serif;
  font-size: 0.8rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #ffb6c1;
  margin-top: 0.5rem;
  margin-bottom: 2rem;
}

/* === 🌙 END OF TIMELINE MESSAGE === */
.tl-end-message {
  text-align: center;
  padding: 4rem 1.5rem 2rem;
  max-width: 560px;
  margin: 0 auto;
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 1s ease, transform 1s ease;
}
.tl-end-message.visible {
  opacity: 1;
  transform: translateY(0);
}
.tl-end-icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  display: block;
}
.tl-end-title {
  font-family: 'Dancing Script', cursive;
  font-size: 2rem;
  color: #c2185b;
  margin-bottom: 1rem;
}
.tl-end-body {
  font-family: 'Poppins', sans-serif;
  font-size: 0.95rem;
  color: #7b3a4a;
  line-height: 2;
}
.tl-end-body em {
  font-family: 'Dancing Script', cursive;
  font-size: 1.15rem;
  color: #e91e63;
}
.tl-end-divider {
  width: 60px;
  height: 2px;
  background: linear-gradient(90deg, transparent, #ffb6c1, transparent);
  margin: 2rem auto;
}

/* === 📅 DAYS COUNTER === */
.tl-days-badge {
  display: inline-block;
  background: linear-gradient(135deg, #fff0f5, #ffe4ec);
  border: 1px solid rgba(255,105,180,0.25);
  border-radius: 50px;
  padding: 0.5rem 1.4rem;
  font-family: 'Dancing Script', cursive;
  font-size: 1.1rem;
  color: #c2185b;
  margin: 0.5rem auto 1.5rem;
  display: block;
  width: fit-content;
  box-shadow: 0 4px 15px rgba(233,30,99,0.1);
}

.tl-last-updated {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.7rem 1.6rem;
  border-radius: 50px;
  font-family: 'Dancing Script', cursive;
  font-size: 1.1rem;
  font-weight: 500;
  letter-spacing: 0.2px;
  color: #c2185b;
  background: linear-gradient(135deg, #fff0f5, #ffe0ec);
  border: 1px solid rgba(255, 105, 180, 0.35);
  animation: tlLastUpdatedPulse 2.6s ease-in-out infinite;
}
@keyframes tlLastUpdatedPulse {
  0%, 100% {
    box-shadow: 0 4px 16px rgba(233, 30, 99, 0.18), 0 0 0 0 rgba(255, 105, 180, 0.35);
  }
  50% {
    box-shadow: 0 6px 26px rgba(233, 30, 99, 0.32), 0 0 0 9px rgba(255, 105, 180, 0.06);
  }
}

/* === proof block below the last card: last-updated + GitHub link === */
.tl-proof {
  margin-top: 2.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.9rem;
}

.tl-github-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.75rem 1.6rem;
  border-radius: 50px;
  background: #171515;
  color: #fff;
  font-family: 'Dancing Script', cursive;
  font-size: 0.88rem;
  font-weight: 600;
  text-decoration: none;
  box-shadow: 0 6px 20px rgba(23, 21, 21, 0.3), 0 0 0 3px rgba(255, 105, 180, 0.18);
  transition: transform 0.25s cubic-bezier(.34,1.56,.64,1), box-shadow 0.25s ease, background 0.25s ease;
}
.tl-github-btn:hover {
  transform: translateY(-2px) scale(1.03);
  background: #000;
  box-shadow: 0 10px 28px rgba(23, 21, 21, 0.4), 0 0 0 4px rgba(255, 105, 180, 0.3);
}
.tl-github-icon { flex: 0 0 auto; }

.tl-github-sub {
  font-family: 'Dancing Script', cursive;
  font-size: 1rem;
  color: #c98aa0;
  opacity: 0.85;
}

@media (prefers-reduced-motion: reduce) {
  .tl-last-updated { animation: none; }
}

/* === first card glow === */
.timeline-card.first-memory .card-content {
  box-shadow: 0 10px 30px rgba(255,215,0,0.2), 0 0 0 2px rgba(255,215,0,0.15);
}
.timeline-card.first-memory .card-date {
  background: linear-gradient(90deg, #ff4081, #ffd700);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}