/* ================== BASE ================== */
body {
  font-family: 'Montserrat', sans-serif;
  background: linear-gradient(#fff1e6, #ffe5d9);
  text-align: center;
  margin: 0;
}

/* ================== TRANSITION ================== */
#transition-screen {
  position: fixed;
  inset: 0;
  background: #fff1e6;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

.fade-text {
  font-size: 2rem;
  opacity: 0;
  animation: fadeIn 2s ease forwards;
  color: #ff6f61;
  letter-spacing: 2px;
  text-shadow: 0 0 10px #ffb6ad;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

#transition-screen.hide {
  opacity: 0;
  transition: opacity 1.5s ease;
  pointer-events: none;
}

/* ================== SECTIONS ================== */
section {
  padding: 40px 20px;
}

.hidden {
  opacity: 0;
  transform: translateY(40px);
}

.show {
  opacity: 1;
  transform: translateY(0);
  transition: all 1s ease;
}


/* ================== CARDS ================== */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px,1fr));
  gap: 20px;
  padding: 30px;
}

/* ================== CARD BASE ================== */
.card {
  background: #fff7f5;
  border: 2px solid #ffd1c7;
  border-radius: 18px;
  padding: 20px;
  text-align: left;

  /* hidden by default */
  opacity: 0;
  transform: translateY(50px) scale(0.95);

  transition: all 0.8s ease;
}

/* ================== SHOW ANIMATION ================== */
.card.show {
  opacity: 1;
  transform: translateY(0) scale(1);
}

/* ================== TITLE ================== */
.card h3 {
  color: #ff4d6d;
  margin-bottom: 12px;
  font-size: 1.1rem;

  text-shadow:
    0 0 5px #ff8fab,
    0 0 10px #ff8fab;
}

/* ================== TEXT ================== */
.card p,
.card li {
  color: #5a4a42;
  line-height: 1.5;
}

/* ================== LIST ================== */
.card ul {
  padding-left: 18px;
  margin: 0;
}

/* ================== SUB TEXT ================== */
.sub {
  margin-top: 10px;
  color: #ff8c7a;
  font-size: 0.9rem;
}

/* ================== STRONG GLOW 🔥 ================== */
.card:hover {
  transform: scale(1.05);
  border: 2px solid #ff4d6d;

  box-shadow:
    0 0 10px #ff4d6d,
    0 0 20px #ff4d6d,
    0 0 40px #ff8fab,
    0 0 60px #ff8fab;
}


/* CARD SHOW ANIMATION */
.card.show {
  opacity: 1;
  transform: translateY(0) scale(1);
}

/* ANIMATION WHEN CARD APPEARS */
.card.animate {
  animation: cardFade 0.6s ease;
}

@keyframes cardFade {
  from {
    opacity: 0;
    transform: translateY(40px) scale(0.9);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}


.back-btn {
  display: inline-block;
  margin: 30px auto;
  padding: 12px 26px;
  border-radius: 30px;
  background: linear-gradient(135deg, #ffb6ad, #ff8c7a);
  color: #fff;
  font-weight: bold;
  text-decoration: none;
  text-align: center;
  transition: all 0.3s ease;
  
  /* Glow effect */
  box-shadow: 0 0 10px rgba(255, 140, 122, 0.6);
  animation: pulseGlow 2s infinite;
}

/* Hover effect */
.back-btn:hover {
  transform: scale(1.08);
  box-shadow: 0 0 18px rgba(255, 140, 122, 0.9);
}

/* Centering (optional but nice) */
.back-btn {
  display: block;
  width: fit-content;
}

/* Animation */
@keyframes pulseGlow {
  0% {
    box-shadow: 0 0 8px rgba(255, 140, 122, 0.5);
  }
  50% {
    box-shadow: 0 0 20px rgba(255, 140, 122, 1);
  }
  100% {
    box-shadow: 0 0 8px rgba(255, 140, 122, 0.5);
  }
}




/* ================== GALLERY ================== */
.gallery {
  margin-top: 20px;
}

.gallery img {
  width: 110px;
  margin: 10px;
  border-radius: 12px;
  cursor: pointer;
  transition: 0.3s;
}

.gallery img:hover {
  transform: scale(1.1);
}

/* ================== IMAGE PREVIEW ================== */
#preview {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.8);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

#preview img {
  max-width: 80%;
  border-radius: 15px;
}