html {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Work Sans", sans-serif;
   /* Deep ocean-to-purple gradient background */
  background: linear-gradient(135deg, #0f0c29, #1a1a4e, #0d2137);
  color: #f0e6ff;
  min-height: 100vh;
}

.container {
  height: 100vh;
  width: 100vw;
  margin: 0 auto;
  text-align: center;
  visibility: hidden;
  position: relative;
  overflow: hidden;
}

.container div.six {
  top: 10vh;
  z-index: 1;
}

.container div.seven,
.container div.eight {
  width: 100vw;
  height: 100vh;
  position: fixed;
  top: 0;
}

.container > div {
  position: absolute;
  left: 0;
  right: 0;
  top: 20vh;
}

.one {
  font-size: 4.5rem;
}

.one > img {
  vertical-align: middle;
  margin-bottom: 10px;
  max-width: 100%;
  height: auto;
}

.two {
  font-size: 1.2rem;
  font-weight: lighter;
}

.three {
  font-size: 3rem;
}

.four .text-box {
  width: 600px;
  margin: 0 auto;
  border: 3px solid rgba(167, 139, 250, 0.6);
  border-radius: 5px;
  padding: 10px;
  position: relative;
}

.text-box p {
  margin: 0;
  text-align: left;
}

.text-box span {
  visibility: hidden;
}

.text-box .fake-btn {
  position: absolute;
  right: 5px;
  bottom: 5px;
  color: #fff;
  background-color: #7c3aed;
  padding: 5px 8px;
  border-radius: 3px;
}

.five p {
  font-size: 2rem;
  position: absolute;
  left: 0;
  right: 0;
}

.idea-3 strong {
  padding: 3px 5px;
  border-radius: 3px;
  display: inline-block;
}

.idea-5b {
  font-size: 2.2rem;
  position: absolute;
  left: 0;
  right: 0;
  top: 8rem; /* sits just below "You are Special" */
  opacity: 0;
  color: #c4b5fd;
}

.five .idea-5 {
  font-size: 4rem;
}

.idea-5 span,
.idea-6 span,
.wish-hbd span {
  display: inline-block;
}

.idea-6 span {
  font-size: 15rem;
}

.six {
  position: relative;
}

.six img {
  display: inline-block;
  max-width: 45%;
  height: auto;
  /* Soft purple glow around the photo */
  filter: drop-shadow(0 0 18px rgba(139, 92, 246, 0.55));
  /*border-radius: 50%; */
}

.six .hat {
  position: absolute;
  width: 20% !important;
  top: -45% !important;
  left: 50% !important;
  transform: translateX(-80%) !important;
  /* transform: scale(0.1); */
}

.baloons img {
  display: inline-block;
  position: absolute;
}

.baloons img:nth-child(even) {
  left: -10%;
}

.baloons img:nth-child(odd) {
  right: -10%;
}

.baloons img:nth-child(3n + 0) {
  left: 30%;
}

.eight svg {
  width: 25px;
  position: absolute;
  top: 0;
  left: 0;
  visibility: hidden;
  z-index: -1;
}

.eight svg:nth-child(1) {
  top: 7vh;
  left: 5vw;
  fill: #7c3aed;
}

.eight svg:nth-child(2) {
  top: 23vh;
  left: 35vw;
  fill: #0891b2;
}

.eight svg:nth-child(3) {
  top: 33vh;
  left: 23vw;
  fill: #a855f7;
}

.eight svg:nth-child(4) {
  top: 43vh;
  left: 57vw;
  fill: #06b6d4;
}

.eight svg:nth-child(5) {
  top: 68vh;
  left: 7vw;
  fill: #5b21b6;
}

.eight svg:nth-child(6) {
  top: 42vh;
  left: 77vw;
  fill: #0e7490;
}

.eight svg:nth-child(7) {
  top: 68vh;
  left: 83vw;
  fill: #c4b5fd;
}

.eight svg:nth-child(8) {
  top: 86vh;
  left: 37vw;
  fill: #4f46e5;
}

.eight svg:nth-child(9) {
  top: 94vh;
  left: 87vw;
  fill: #67e8f9;
}

.wish-hbd {
  font-size: 3em;
  margin: 0;
  text-transform: uppercase;
}

.wish h5 {
  font-weight: lighter;
  font-size: 2rem;
  margin: 10px 0 0;
}

.nine p {
  font-size: 2rem;
  font-weight: lighter;
}

#replay {
  z-index: 3;
  cursor: pointer;
  color: #a855f7;
  transition: color 0.3s ease;
}

#replay:hover {
  color: #67e8f9;
}


/* ─── Responsive ─── */

/* Tablet (≤768px) */
@media screen and (max-width: 768px) {
  .one {
    font-size: 3.2rem;
  }

  .two {
    font-size: 1rem;
  }

  .three {
    font-size: 2.2rem;
  }

  .five p {
    font-size: 1.6rem;
  }

  .five .idea-5 {
    font-size: 3rem;
  }

  .idea-5b {
    font-size: 1.8rem;
  }

  .idea-6 span {
    font-size: 11rem;
  }

  .wish-hbd {
    font-size: 2.6em;
  }

  .wish h5 {
    font-size: 1.6rem;
  }

  .nine p {
    font-size: 1.6rem;
  }

  .four .text-box {
    width: 85%;
  }

  .six img {
    max-width: 55%;
  }

  .six .hat {
    width: 26% !important;
    top: 50% !important;
    left: 50% !important;
    transform: translateX(-80%) translateY(-170%) !important;
  }

  .intro-name {
    font-size: 3.5rem;
  }
}

/* Mobile (≤500px) */
@media screen and (max-width: 500px) {
  .container {
    width: 90%;
  }

  .one {
    font-size: 2.4rem;
  }

  .two {
    font-size: 0.9rem;
  }

  .three {
    font-size: 1.8rem;
  }

  .four .text-box {
    width: 90%;
  }

  .text-box .fake-btn {
    right: 5px;
    bottom: -38px;
  }

  .five p {
    font-size: 1.3rem;
  }

  .five .idea-5 {
    font-size: 2.2rem;
  }

  .idea-5 span {
    display: block;
  }

  .idea-5b {
    font-size: 1.4rem;
    top: 6rem;
  }

  .idea-6 span {
    font-size: 7rem;
  }

  .six img {
    max-width: 75%;
  }

  .six .hat {
    width: 35% !important;
    transform: translateX(-80%) translateY(-180%) !important;
  }

  .wish-hbd {
    font-size: 2em;
  }

  .wish h5 {
    font-size: 1.3rem;
  }

  .nine p {
    font-size: 1.3rem;
  }

  .intro-name {
    font-size: 2.8rem;
    margin-bottom: 36px;
  }

  .intro-for {
    font-size: 0.85rem;
    letter-spacing: 3px;
  }

  .intro-btn {
    padding: 12px 30px;
    font-size: 0.85rem;
  }
}

/* Very small screens (≤360px) */
@media screen and (max-width: 360px) {
  .one {
    font-size: 2rem;
  }

  .idea-6 span {
    font-size: 5.5rem;
  }

  .wish-hbd {
    font-size: 1.7em;
  }

  .intro-name {
    font-size: 2.2rem;
  }

  .nine p {
    font-size: 1.1rem;
  }
}

/* ─── Intro Overlay ─── */
.intro-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: linear-gradient(135deg, #0f0c29, #1a1a4e, #0d2137);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 1s ease, visibility 1s ease;
}
 
.intro-overlay.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}
 
.intro-content {
  text-align: center;
  animation: floatIn 1.2s ease forwards;
}
 
@keyframes floatIn {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}
 
/* Glowing animated ring behind the button */
.intro-content::before {
  content: "";
  position: absolute;
  width: 260px;
  height: 260px;
  border-radius: 50%;
  border: 1.5px solid rgba(167, 139, 250, 0.2);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  animation: pulseRing 2.5s ease-in-out infinite;
  pointer-events: none;
}
 
@keyframes pulseRing {
  0%, 100% { transform: translate(-50%, -50%) scale(1);   opacity: 0.4; }
  50%       { transform: translate(-50%, -50%) scale(1.12); opacity: 0.1; }
}
 
.intro-for {
  color: #a78bfa;
  font-size: 1rem;
  font-weight: 300;
  letter-spacing: 4px;
  text-transform: uppercase;
  margin: 0 0 10px;
  font-family: "Work Sans", sans-serif;
}
 
.intro-name {
  color: #e9d5ff;
  font-size: 4.5rem;
  margin: 0 0 48px;
  font-family: "Work Sans", sans-serif;
  font-weight: 400;
  text-shadow: 0 0 50px rgba(167, 139, 250, 0.5);
}
 
.intro-btn {
  background: transparent;
  color: #c4b5fd;
  border: 1.5px solid rgba(167, 139, 250, 0.6);
  padding: 14px 40px;
  font-size: 1rem;
  border-radius: 50px;
  cursor: pointer;
  font-family: "Work Sans", sans-serif;
  letter-spacing: 2px;
  text-transform: uppercase;
  transition: all 0.3s ease;
  backdrop-filter: blur(6px);
}
 
.intro-btn:hover {
  background: rgba(124, 58, 237, 0.3);
  border-color: rgba(167, 139, 250, 1);
  color: #fff;
  box-shadow: 0 0 30px rgba(124, 58, 237, 0.5);
  transform: scale(1.04);
}

/* ─── Intro Transition ─── */
 
/* Step 1: content shrinks & blurs away */
.intro-overlay.dissolving .intro-content {
  animation: dissolveOut 0.8s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}
 
@keyframes dissolveOut {
  0%   { opacity: 1; transform: translateY(0)    scale(1);    filter: blur(0); }
  100% { opacity: 0; transform: translateY(-16px) scale(0.95); filter: blur(8px); }
}
 
/* Step 2: overlay itself fades out */
.intro-overlay.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.6s ease 0.2s, visibility 0s ease 0.8s;
}
 
/* Button press feedback */
.intro-btn:active {
  transform: scale(0.97);
  opacity: 0.8;
}