:root {
  /* THEME COLORS */
  --yellow: #FFD400;

  --sky1: #a6d8ff;
  --sky2: #eaf6ff;

  --sky-main: #38bdf8;
  --sky-light: #a6e3ff;
  --sky-dark: #0ea5e9;
}

/* ================= BACKGROUND ================= */
.main-bg {
  background: linear-gradient(135deg, var(--sky1), var(--sky2), var(--yellow));
}

/* ================= HEADING ================= */
.heading {
  font-size: 2rem;
  font-weight: bold;
  color: white;

  text-shadow:
    0 0 5px white,
    0 0 10px var(--yellow),
    0 0 20px var(--yellow),
    0 0 40px var(--yellow);
}

/* ================= SUBTEXT ================= */
.subtext {
  color: #444;
  font-size: 0.95rem;
}

/* ================= IMAGE / GIF CARD ================= */
.media-card {
  width: 230px;
  height: 230px;
  object-fit: cover;

  border-radius: 20px;

  /* GLASS EFFECT */
  background: rgba(255, 255, 255, 0.4);
  backdrop-filter: blur(10px);

  /* BORDER */
  border: 2px solid var(--sky-main);

  /* SHADOW */
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);

  transition: 0.3s;
}

/* HOVER EFFECT ON IMAGE */
.media-card:hover {
  transform: scale(1.05);
  box-shadow: 0 0 20px var(--sky-main);
}

/* ================= BUTTONS ================= */
.btn {
  padding: 12px;
  border-radius: 15px;
  font-weight: 500;
  font-size: 1rem;
  transition: 0.3s;
  cursor: pointer;

  /* TEXT */
  color: white;

  /* BORDER */
  border: 2px solid var(--sky-main);
}

/* PRIMARY BUTTON */
.primary {
  background: linear-gradient(45deg, var(--sky-main), var(--sky-dark));
}

/* SECONDARY BUTTON */
.secondary {
  background: linear-gradient(45deg, var(--sky-light), var(--sky-main));
  color: #003344;
}

/* BUTTON HOVER */
.btn:hover {
  transform: scale(1.05);

  box-shadow:
    0 0 15px var(--sky-main),
    0 0 30px var(--sky-light);
}

/* ================= FADE ANIMATION ================= */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
}

/* Optional fallback if GSAP fails */
.fade-in.show {
  opacity: 1;
  transform: translateY(0);
  transition: all 1s ease;
}

/* ================= RESPONSIVE ================= */
@media (max-width: 600px) {
  .heading {
    font-size: 1.6rem;
  }

  .media-card {
    width: 180px;
    height: 180px;
  }
}
/* ================= PHONE FRAME ================= */
.phone-frame {
  width: 300px;
  height: 550px;

  border-radius: 40px;
  padding: 10px;

  /* SKY BORDER */
  border: 3px solid var(--sky-main);

  background: rgba(255,255,255,0.3);
  backdrop-filter: blur(15px);

  box-shadow:
    0 0 20px var(--sky-light),
    0 0 40px rgba(0,0,0,0.1);

  display: flex;
  justify-content: center;
  align-items: center;
}

/* SCREEN */
.phone-screen {
  width: 100%;
  height: 100%;
  border-radius: 30px;
  overflow: hidden;

  background: linear-gradient(180deg, var(--sky2), white);
}

/* SCROLLABLE AREA */
.memory-list {
  height: 100%;
  overflow-y: auto;
  padding: 15px;

  display: flex;
  flex-direction: column;
  gap: 15px;
}

/* HIDE SCROLLBAR (clean look) */
.memory-list::-webkit-scrollbar {
  display: none;
}

/* IMAGES */
.memory-img {
  width: 100%;
  border-radius: 15px;

  border: 2px solid var(--sky-main);

  box-shadow: 0 5px 15px rgba(0,0,0,0.1);

  transition: 0.3s;
}

/* HOVER EFFECT */
.memory-img:hover {
  transform: scale(1.03);
  box-shadow: 0 0 15px var(--sky-main);
}

/* STORY BAR */
.story-bar {
  position: absolute;
  top: 10px;
  left: 10px;
  right: 10px;
  height: 4px;
  background: rgba(255,255,255,0.4);
  border-radius: 10px;
  overflow: hidden;
}

.story-bar::after {
  content: "";
  display: block;
  height: 100%;
  width: 0%;
  background: var(--sky-main);
  animation: progress 5s linear infinite;
}

@keyframes progress {
  from { width: 0%; }
  to { width: 100%; }
}

/* STORY CONTAINER */
.story-container {
  position: relative;
  width: 100%;
  height: 100%;
}

.story-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* HEART ANIMATION */
.heart {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0);
  font-size: 60px;
  opacity: 0;
  pointer-events: none;
}

.heart.show {
  animation: pop 0.6s ease;
}

@keyframes pop {
  0% { transform: translate(-50%, -50%) scale(0); opacity: 0; }
  50% { transform: translate(-50%, -50%) scale(1.5); opacity: 1; }
  100% { transform: translate(-50%, -50%) scale(1); opacity: 0; }
}

/* COMMENTS */
.comment {
  position: absolute;
  bottom: 20px;
  left: 10px;
  background: rgba(0,0,0,0.5);
  color: white;
  padding: 5px 10px;
  border-radius: 15px;
  font-size: 12px;
  animation: floatComment 5s infinite;
}

.comment:nth-child(4) {
  bottom: 50px;
  left: auto;
  right: 10px;
}

@keyframes floatComment {
  0% { transform: translateY(10px); opacity: 0; }
  20% { opacity: 1; }
  80% { opacity: 1; }
  100% { transform: translateY(-20px); opacity: 0; }
}

:root {
  --yellow: #FFD400;
  --sky1: #a6d8ff;
  --sky2: #eaf6ff;
}

/* BG */
body {
  margin: 0;
  font-family: sans-serif;
}

.main-bg {
  background: linear-gradient(135deg, var(--sky1), var(--sky2), var(--yellow));
  height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

/* HEADING */
.heading {
  color: white;
  margin-bottom: 20px;
  text-shadow: 0 0 10px var(--yellow);
}

/* CONTAINER */
.swipe-container {
  position: relative;
  width: 300px;
  height: 450px;
}

/* CARD */
.swipe-card {
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 20px;
  overflow: hidden;
  cursor: grab;

  box-shadow: 0 20px 40px rgba(0,0,0,0.2);
  transition: transform 0.3s ease;
}

/* STACK */
.swipe-card:nth-child(1) { z-index: 4; }
.swipe-card:nth-child(2) { z-index: 3; transform: scale(0.95); }
.swipe-card:nth-child(3) { z-index: 2; transform: scale(0.9); }
.swipe-card:nth-child(4) { z-index: 1; transform: scale(0.85); }

.swipe-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}