/* RESET & BASE */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Dancing Script', cursive;
  background: #f8f1e5;
  color: #333;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* HEADER */
header {
  text-align: center;
  background: #fff8ec;
  border-bottom: 2px solid #d2b48c;
  padding: 15px;
}

h1 {
  font-size: 2em;
  margin-bottom: 10px;
}

#music-btn {
  background: #e0c097;
  border: none;
  padding: 10px 20px;
  border-radius: 8px;
  cursor: pointer;
  font-family: 'Dancing Script', cursive;
  transition: 0.3s;
}

#music-btn:hover {
  background: #d1a67b;
}

#dev-controls {
  margin-top: 10px;
  font-size: 0.9em;
}

#dev-controls input {
  width: 50px;
}

/* MAIN */
main {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 30px 10px;
}

#content {
  width: 90%;
  max-width: 800px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* CARD */
.card {
  background: linear-gradient(145deg, #fffef9, #ffe6d6);
  border-radius: 20px;
  padding: 25px;
  margin: 20px auto;
  width: 100%;
  max-width: 500px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
  font-family: 'Permanent Marker', cursive;
  font-size: 20px;
  color: #130d6b;
  text-align: center;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s, transform 0.5s;
}

.card.show {
  opacity: 1;
  transform: translateY(0);
}

/* PHOTO */
.photo-frame {
  width: 100%;
  max-width: 600px;
  margin-bottom: 20px;
  border-radius: 20px;
  overflow: hidden;
  cursor: pointer;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
  opacity: 0;
  transform: scale(0.95);
  transition: 0.5s;
}

.photo-frame.show {
  opacity: 1;
  transform: scale(1);
}

.photo-frame img {
  width: 100%;
  display: block;
}

/* FOOTER */
footer {
  text-align: center;
  background: #fff8ec;
  border-top: 2px solid #d2b48c;
  padding: 10px;
}

/* RESPONSIVE */
@media(max-width: 600px) {
  h1 {
    font-size: 1.5em;
  }

  .card,
  .photo-frame {
    width: 90%;
    max-width: 300px;
  }

  .card {
    font-size: 18px;
    padding: 20px;
  }

  .photo-frame {
    max-height: 80vh;
  }
}

/* MODAL */
.img-modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

.img-modal img {
  max-width: 95%;
  max-height: 95%;
  border-radius: 15px;
  box-shadow: 0 0 15px rgba(0, 0, 0, 0.5);
  transition: transform 0.3s;
}

.img-modal img:hover {
  transform: scale(1.05);
}

/* --- INTRO ANIMATION --- */
#intro {
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
  z-index: 9999;
  background: linear-gradient(135deg, #0b1220 0%, #071028 50%, #061428 100%);
  color: #fff;
  pointer-events: auto;
}

.logo-wrap {
  width: clamp(160px, 22vw, 320px);
  height: auto;
  display: grid;
  place-items: center;
}

.path {
  fill: none;
  stroke: #7dd3fc;
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 1000;
  stroke-dashoffset: 1000;
  animation: draw 1.6s ease forwards 0.2s;
}

@keyframes draw {
  to {
    stroke-dashoffset: 0;
  }
}

.pulse {
  opacity: 0.18;
  width: 100%;
  height: 100%;
  position: absolute;
  border-radius: 999px;
  filter: blur(28px);
  transform: scale(0.8);
  animation: pulse 1.8s ease-in-out 0.6s forwards;
}

@keyframes pulse {
  0% {
    transform: scale(0.8);
    opacity: 0.18;
  }
  50% {
    transform: scale(1);
    opacity: 0.36;
  }
  100% {
    transform: scale(1.15);
    opacity: 0;
  }
}

.tag {
  margin-top: 18px;
  opacity: 0;
  transform: translateY(8px);
  animation: tagIn 0.6s ease forwards 1.2s;
  font-size: 0.95rem;
  color: rgba(230, 238, 248, 0.9);
}

@keyframes tagIn {
  to {
    opacity: 1;
    transform: none;
  }
}

#intro.fade-out {
  animation: leave 0.9s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}

@keyframes leave {
  to {
    opacity: 0;
    transform: scale(1.04);
    visibility: hidden;
  }
}

.skip {
  position: fixed;
  right: 18px;
  top: 18px;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #fff;
  padding: 0.45rem 0.6rem;
  border-radius: 8px;
  backdrop-filter: blur(6px);
  cursor: pointer;
}
