@import url('https://fonts.googleapis.com/css2?family=Pacifico&family=Poppins:wght@300;500&display=swap');

/*---------------------------------------------*/
/*---------------------------------------------*/



* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: 'Poppins', sans-serif;
  background: radial-gradient(circle at top, #1a1a2e, #000);
  color: white;
}

/* HERO */
#hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

#typing {
  font-family: 'Pacifico', cursive;
  font-size: 3.6rem;
}
/*==================================================================*/
body, html {
  margin: 0;
  height: 100%;
  background-color: #0f172a; /* Sleek dark background */
  font-family: sans-serif;
}

.top-container {
  display: flex;
  justify-content: center; /* Centers button horizontally */
  align-items: flex-start; /* Aligns content to the top */
  width: 100%;
  padding-top: 40px; /* Space from the very top of the screen */
}

.music-button {
  background: linear-gradient(135deg, #00dbde 0%, #fc00ff 100%);
  color: white;
  border: none;
  padding: 12px 30px;
  font-size: 1rem;
  font-weight: bold;
  border-radius: 30px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 10px;
  box-shadow: 0 8px 20px rgba(0, 219, 222, 0.3);
  transition: all 0.3s ease;
}

.music-button:hover {
  transform: translateY(2px); /* Slight dip on hover */
  box-shadow: 0 4px 10px rgba(0, 219, 222, 0.5);
  filter: brightness(1.1);
}

/*==================================================================*/


#startBtn {
  margin-top: 2rem;
  padding: 1rem 2.6rem;
  border-radius: 50px;
  border: none;
  background: linear-gradient(90deg,#ff512f,#dd2476);
  color: white;
  font-size: 1.1rem;
}

/*==================================================*/

/* MUSIC BUTTON */
.top-container {
  display: flex;
  justify-content: center;
  padding-top: 30px;
}

.music-button {
  background: linear-gradient(135deg, #00dbde, #fc00ff);
  color: white;
  border: none;
  padding: 12px 30px;
  font-size: 1rem;
  font-weight: bold;
  border-radius: 30px;
  cursor: pointer;
  box-shadow: 0 8px 20px rgba(0, 219, 222, 0.3);
  transition: 0.3s ease;
}

.music-button:hover {
  transform: translateY(2px);
  box-shadow: 0 4px 12px rgba(0, 219, 222, 0.5);
}

/*==================================================*/

/* THOUGHT */
.thought-section {
  padding: 6rem 1rem;
  text-align: center;
}

.thought span {
  display: block;
  font-size: 1.6rem;
  opacity: 0;
  animation: fadeUp 1s forwards;
}

.thought span:nth-child(2) {
  animation-delay: 0.6s;
}

@keyframes fadeUp {
  to {
    opacity: 1;
    transform: translateY(-10px);
  }
}

/* GALLERY */
.insta-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  padding: 20px;
}

.insta-item {
  padding: 5px;
  border-radius: 16px;
  background: linear-gradient(45deg, red, orange, yellow, green, cyan, blue, violet);
  background-size: 400% 400%;
  animation: rgb 10s linear infinite;
}

@keyframes rgb {
  to { background-position: 200% 0; }
}

.insta-item img {
  height: 100%;
  width: 100%;
  border-radius: 12px;
}

/* FINAL */
.final-screen {
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  background: linear-gradient(135deg,#41295a,#2f0743);
}

.final-card {
  text-align: center;
  padding: 3rem;
  background: rgba(255,255,255,0.12);
  border-radius: 30px;
  backdrop-filter: blur(10px);
}

.final-card .hint {
  margin-top: 1rem;
  opacity: 0.6;
}

/* HIDDEN SURPRISE */
.hidden-surprise {
  position: fixed;
  inset: 0;
  background: radial-gradient(circle,#ff9a9e,#000);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 1s ease;
  text-align: center;
  padding: 2rem;
}

.hidden-surprise.show {
  opacity: 1;
  pointer-events: auto;
}

/* FIRECRACKERS */
.spark {
  position: fixed;
  width: 6px;
  height: 6px;
  background: radial-gradient(circle,white,gold,red);
  border-radius: 50%;
  animation: spark 1.2s forwards;
}

@keyframes spark {
  to {
    transform: translate(var(--dx),var(--dy)) scale(0);
    opacity: 0;
  }
}

/* Responsive */
@media (min-width:768px){
  .insta-grid{grid-template-columns:repeat(3,1fr)}
}

/* ================= CAPTION OVER IMAGE OVERLAY ================= */

/* Make insta-item a positioning container */
.insta-item {
  position: relative;
  overflow: hidden;
  cursor: pointer;
}

/* Image smooth zoom */
.insta-item img {
  transition: transform 0.6s ease;
}

/* Caption Overlay */
.caption {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(0, 0, 0, 0.85),
    rgba(0, 0, 0, 0.15)
  );
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 18px;
  font-size: 1.1rem;
  font-weight: 500;
  color: #fff;
  text-align: center;

  opacity: 0;
  transform: translateY(25px);
  transition: all 0.5s ease;
}

/* Hover Effects */
.insta-item:hover img {
  transform: scale(1.15);
}

.insta-item:hover .caption {
  opacity: 1;
  transform: translateY(0);
}

/* Glow effect for birthday vibe */
.insta-item:hover {
  box-shadow: 0 0 25px rgba(255, 105, 180, 0.6);
}

/* Mobile support (no hover) */
@media (max-width: 768px) {
  .caption {
    opacity: 1;
    transform: translateY(0);
  }
}

/*===========================================================*/

