/* ---------- base reset ---------- */
*{
  box-sizing:border-box;
  margin:0;
  padding:0
}
body{
  font-family:'Kalam',cursive;
  background:linear-gradient(-45deg,#ffe8ff,#ffd6e8,#e8d5ff,#d0f2fe);
  background-size:400% 400%;
  animation:bgShift 15s ease infinite;
  color:#2c2c54;
  min-height:100vh;
  overflow-x:hidden;
}
@keyframes bgShift{
  0%{background-position:0% 50%}
  50%{background-position:100% 50%}
  100%{background-position:0% 50%}
}
/* ---------- shooting stars ---------- */
.shoot-star{
  position:fixed;
  width:18px;
  height:16px;
  background:#fff;
  clip-path:polygon(50% 0%,61% 35%,98% 35%,68% 57%,79% 91%,50% 70%,21% 91%,32% 57%,2% 35%,39% 35%);
  opacity:0;
  z-index:-1;
  pointer-events:none;
  animation:shootStar 8s linear infinite;
}
@keyframes shootStar{
  0%{
    transform:translate(var(--startX), var(--startY)) rotate(var(--angle)) scale(.6);
    opacity:0;
  }
  10%{opacity:.9}
  100%{
    transform:translate(var(--endX), var(--endY)) rotate(calc(var(--angle) + 360deg)) scale(1);
    opacity:0;
  }
}
/* ---------- twinkling stars ---------- */
.star{
  position:fixed;
  width:3px;
  height:3px;
  background:#fff;
  border-radius:50%;
  opacity:0;
  z-index:-2;
  animation:twinkle 4s ease-in-out infinite;
}
@keyframes twinkle{
  0%,100%{opacity:0}
  50%{opacity:1}
}
/* ---------- cursor sparkle ---------- */
.sparkle{
  position:fixed;
  width:6px;
  height:6px;
  background:#fff;
  border-radius:50%;
  pointer-events:none;
  opacity:.8;
  animation:sparkleAnim .8s forwards;
}
@keyframes sparkleAnim{
  0%{transform:scale(0) rotate(0deg);opacity:1}
  100%{transform:scale(1.5) rotate(180deg);opacity:0}
}

/* ---------- layout / cards ---------- */
.container{
  max-width:900px;
  margin:auto;
  padding:2rem 1rem 6rem
}
section{
  display:none;
  animation:fadeIn .6s ease-in-out
}
section.active{
  display:block
}
h1,h2{
  font-family:'Poppins',sans-serif;
  text-align:center;
  font-size:2.5rem;
  margin-bottom:1rem
}
p{
  font-size:1.15rem;
  line-height:1.7;
  text-align:center;
  color:#444
}
.buttons{
  display:flex;
  justify-content:center;
  gap:1.2rem;
  margin-top:2.5rem
}
.btn{
  position:relative;
  padding:14px 32px;
  border:none;
  border-radius:50px;
  font-weight:700;
  font-size:1rem;
  cursor:pointer;
  transition:transform .3s,box-shadow .3s
}
.btn-primary{
  background:linear-gradient(135deg,#ff7eb3 0%,#ff65a3 100%);
  color:#fff;
  box-shadow:0 8px 20px rgba(255,101,163,.45)
}
.btn-outline{
  background:rgba(255,255,255,.25);
  backdrop-filter:blur(10px);
  border:2px solid rgba(255,255,255,.4);
  color:#ff65a3
}
.btn:hover{
  transform:translateY(-3px) scale(1.05)
}
label{
  font-weight:600;
  margin-top:12px;
  display:block
}
input,textarea{
  width:100%;
  padding:14px 18px;
  margin:8px 0 20px;
  border:none;
  border-radius:12px;
  background:rgba(255,255,255,.55);
  backdrop-filter:blur(8px);
  border:1px solid rgba(255,255,255,.4);
  font-family:'Kalam',cursive;
  font-size:1rem;
  transition:box-shadow .3s,background .3s
}
input:focus,textarea:focus{
  background:rgba(255,255,255,.75);
  box-shadow:0 0 0 3px rgba(255,126,179,.35);
  outline:none
}
.card{
  background:rgba(255,255,255,.35);
  backdrop-filter:blur(12px);
  border:1px solid rgba(255,214,232,.55);
  border-radius:20px;
  padding:1.5rem 2rem;
  margin-bottom:1.5rem;
  box-shadow:0 8px 32px rgba(255,126,179,.25);
  transition:transform .3s,box-shadow .3s;
  word-wrap:break-word;
  position:relative
}
.card:hover{
  transform:translateY(-6px);
  box-shadow:0 12px 40px rgba(255,126,179,.35)
}
.card h3{
  margin-bottom:.5rem;
  padding-right:60px;
  word-break:break-word
}
.card p{
  white-space:pre-wrap;
  word-break:break-word;
  margin:.5rem 0
}
.card small{
  color:#6b7280;
  display:block;
  margin-bottom:.5rem
}
.delete-btn{background:none;
  color:#ef4444;border:none;
  font-size:.85rem;
  cursor:pointer;
  position:absolute;
  top:1.5rem;
  right:1.5rem;
  padding:4px 8px;
  border-radius:4px;
  transition:background-color .2s
}
.delete-btn:hover{
  background-color:rgba(239,68,68,.1)
}
.nav{
  position:fixed;
  bottom:0;
  left:0;
  right:0;
  background:rgba(255,255,255,.35);
  backdrop-filter:blur(12px);
  border-top:1px solid rgba(255,255,255,.4);
  display:flex;
  justify-content:space-around;
  padding:.75rem 0
}
.nav button{
  background:none;
  border:none;
  font-weight:600;
  color:#555;
  font-size:.9rem;
  cursor:pointer;
  transition:color .3s,transform .2s
}
.nav button.active{
  color:#ff65a3;
  transform:scale(1.1)
}
@keyframes fadeIn{
  from{
    opacity:0;
    transform:translateY(15px)
  }to{
    opacity:1;
    transform:translateY(0)
  }
}
