*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family:'Gill Sans', 'Gill Sans MT', Calibri, 'Trebuchet MS', sans-serif;
}
html,
body {
    margin: 0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    overflow-x: hidden;
    /* background: radial-gradient(circle, #b2b2b244, #0606060f, #ffffff7d, #ff9dce00); */
    background: linear-gradient(rgba(255, 255, 255, 0.3), rgba(255, 255, 255, 0.3)),
              url('img/909.jpg') no-repeat center center fixed;
  background-size: cover;
  font-family: 'Comic Sans MS', cursive, sans-serif;
  color: #fff;
  text-align: center;
}

#nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 30px 50px;
    color: #fff;
    z-index: 10;
    position: relative;
}

#nav h2 {
    font-size: 32px;
    font-weight: bold;
    letter-spacing: 2px;
    animation: float 6s ease-in-out infinite;
    
}

#part2 {
    display: flex;
    gap: 40px;
}

#part2 h4 {
    cursor: pointer;
    transition: color 0.3s ease;
}

#part2 h4:hover {
    color: #fcddec;
    text-decoration: underline;
}

.frist {
    position: relative;
    width: 100%;
    height: 100vh;
    overflow: hidden;
}

.frist {
    position: relative;
    z-index: 1;
    color: #fff; /* Ensures text stands out */
}

.frist::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(to bottom right, rgba(255, 255, 255, 0), rgba(255, 255, 255, 0.171)),
        url('img/16.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-blend-mode: lighten;
    z-index: -1;
    opacity: 1;
    filter: brightness(1.2) contrast(1.1);
    
}

.box1, .box2 {
    width: 280px;
    padding: 15px;
    margin: 10px;
    /* background: rgba(255, 255, 255, 0.6);
    border-radius: 20px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2); */
    /* backdrop-filter: blur(8px); */
    transition: transform 0.3s ease;
}

.box1 {
    position: absolute;
    top: 20%;
    left: 10%;
    /* background: rgba(255, 255, 255, 0.6);
    border-radius: 20px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2); 
    backdrop-filter: blur(8px); 
     */
/* Subtle shadow */
   
}

.box2 {
    position: absolute;
    top: 60%;
    left: 60%;
    transform: translate(-50%, -50%);
}

.box-img, .box-img2 {
    width: 100%;
    height:700px; /* Set a fixed height */
   
    transition: transform 0.5s ease, box-shadow 0.5s ease; /* Smooth hover effect */
    transform: translateX(-50%);
}

.box-img:hover, .box-img2:hover {
    transform: scale(1.05); /* Zoom on hover */
    box-shadow: 0 15px 25px rgba(0, 0, 0, 0.3); /* Enhanced shadow on hover */
}

.glow-text {
    font-size: 2rem;
    text-align: center;
    text-shadow: 0 0 5px #fff, 0 0 10px #f0f, 0 0 20px #f0f, 0 0 40px #ff1493;
    animation: glowPulse 2s infinite alternate;
  }
  
  @keyframes glowPulse {
    0% { text-shadow: 0 0 5px #fff; }
    100% { text-shadow: 0 0 20px #ff00ff; }
  }
  
  /* Glassmorphism */
  /* .glass {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    box-shadow: 0 8px 20px rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
  } */
  
  /* 3D Tilt */
  
  
  @keyframes float {
    0% { transform: translateY(0); }
    50% { transform: translateY(-15px); }
    100% { transform: translateY(0); }
  }
  
  /* Balloon Animation */
  .balloons .balloon {
    width: 60px;
    height: 80px;
    background-color: var(--color);
    border-radius: 50%;
    position: absolute;
    animation: rise 10s infinite ease-in;
    opacity: 0.7;
    transform: translateY(100%);
  }
  
  .balloons .balloon:nth-child(1) { left: 10%; animation-delay: 0s; }
  .balloons .balloon:nth-child(2) { left: 30%; animation-delay: 2s; }
  .balloons .balloon:nth-child(3) { left: 50%; animation-delay: 4s; }
  .balloons .balloon:nth-child(4) { left: 70%; animation-delay: 6s; }
  
  @keyframes rise {
    0% { transform: translateY(100%); opacity: 0; }
    30% { opacity: 1; }
    100% { transform: translateY(-120vh); opacity: 0; }
  }
  
#page1 {
    height: 100vh;
    width: 100%;
    background: linear-gradient(to right top, #ffdee9, #b5fffc); /* Soft gradient */
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Center box with styles */
#page1-box {
    height: 400px;
    width: 400px;
    background: linear-gradient(135deg, #ff4e50, #f9d423); /* Vibrant gradient */
    border-radius: 30px;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

/* Add a hover effect */
#page1-box:hover {
    transform: scale(1.05);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}
  
#page3{
    height: 100%;
    width: 100%;
    background-color: rgb(69, 118, 135);
    display: flex;
    align-items: center;
    justify-content: center;
}





/* new */

.container {
    text-align: center;
    color: #ffffff;
    padding: 50px 20px;
  }
  
  .title {
    font-size: 3rem;
    margin-bottom: 10px;
  }
  
  .subtitle {
    font-size: 1.8rem;
    margin-bottom: 20px;
  }
  
  .message {
    font-size: 1.2rem;
    max-width: 600px;
    margin: 0 auto 40px;
  }
  
  .balloons {
    display: flex;
    justify-content: center;
    gap: 30px;
  }
  
  .balloon {
    width: 50px;
    height: 70px;
    background-color: var(--color);
    border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%;
    position: relative;
    animation: float 3s ease-in-out infinite;
  }
  .subtitle{
    animation: float 3s ease-in-out infinite;
  }
  .balloon::after {
    content: "";
    position: absolute;
    bottom: -20px;
    left: 50%;
    width: 2px;
    height: 40px;
    background-color: #fff;
    transform: translateX(-50%);
  }
  
  @keyframes float {
    0% {
      transform: translateY(0) rotate(0deg) scale(1);
    }
    25% {
      transform: translateY(-10px) translateX(5px) rotate(2deg) scale(1.02);
    }
    50% {
      transform: translateY(-20px) translateX(0px) rotate(0deg) scale(1);
    }
    75% {
      transform: translateY(-10px) translateX(-5px) rotate(-2deg) scale(1.02);
    }
    100% {
      transform: translateY(0) rotate(0deg) scale(1);
    }
  }
   

  /* rotating image */
  .birthday-theme {
    position: relative;
    width: 100%;
    height: 90vh;
    perspective: 1500px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-image: 
    linear-gradient(to bottom right, rgba(255, 254, 254, 0.39), rgba(128, 134, 148, 0.278)),
    url('img/51.jpg');
background-size: cover;
background-position: center;
background-repeat: no-repeat;
background-blend-mode: lighten;
    animation: backgroundPulse 10s infinite ease-in-out;
  }
  
  @keyframes backgroundPulse {
    0%, 100% {
      background-position: top left;
    }
    50% {
      background-position: bottom right;
    }
  }
  
  .box-area {
    position: relative;
    transform-style: preserve-3d;
    animation: rotate 12s linear infinite;
  }
  
  @keyframes rotate {
    0% { transform: rotateY(0deg) rotateX(0deg); }
    100% { transform: rotateY(360deg) rotateX(360deg); }
  }
  
  .box {
    position: absolute;
    width: 250px;
    height: 250px;
    border: 2px solid #fff;
    box-shadow: 0 0 20px rgba(255, 105, 180, 0.6);
    background-size: cover;
    background-position: center;
    border-radius: 10px;
    transition: all 0.3s ease;
  }
  
  /* Faces */
  .box-front   { transform: translateZ(150px); background-image: url('img/1012.png'); }
  .box-back    { transform: rotateY(180deg) translateZ(150px); background-image: url('img/104.png'); }
  .box-right   { transform: rotateY(90deg) translateZ(150px); background-image: url('img/105.png'); }
  .box-left    { transform: rotateY(-90deg) translateZ(150px); background-image: url('img/95.png'); }
  .box-top     { transform: rotateX(90deg) translateZ(150px); background-image: url('img/102.png'); }
  .box-bottom  { transform: rotateX(-90deg) translateZ(150px); background-image: url('img/59.png'); }
  
  .box-fronts   { transform: translateZ(150px); background-image: url('img/1013.png'); }
  .box-backs    { transform: rotateY(180deg) translateZ(150px); background-image: url('img/59.png'); }
  .box-rights   { transform: rotateY(90deg) translateZ(150px); background-image: url('img/102.png'); }
  .box-lefts   { transform: rotateY(-90deg) translateZ(150px); background-image: url('img/1014.png'); }
  .box-tops     { transform: rotateX(90deg) translateZ(150px); background-image: url('img/1014.png'); }
  .box-bottoms  { transform: rotateX(-90deg) translateZ(150px); background-image: url('img/1014.png'); }
  /* Optional sparkles */
  .birthday-theme::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background: url('https://www.transparenttextures.com/patterns/stardust.png');
    opacity: 0.3;
    pointer-events: none;
    z-index: 0;
  }



  .gallery-3d {
    perspective: 1000px;
    width: 300px;
    height: 300px;
    position: relative;
  }
  
  .carousel {
    width: 100%;
    height: 100%;
    position: absolute;
    transform-style: preserve-3d;
    animation: rotate 20s infinite linear;
  }
  
  .carousel img {
    position: absolute;
    width: 200px;
    height: 150px;
    object-fit: cover;
    border-radius: 15px;
    box-shadow: 0 10px 20px rgba(0,0,0,0.3);
    transition: transform 0.5s;
  }
  
  /* Position images around a circle */
  .carousel img:nth-child(1) { transform: rotateY(0deg) translateZ(400px); }
  .carousel img:nth-child(2) { transform: rotateY(60deg) translateZ(400px); }
  .carousel img:nth-child(3) { transform: rotateY(120deg) translateZ(400px); }
  .carousel img:nth-child(4) { transform: rotateY(180deg) translateZ(400px); }
  .carousel img:nth-child(5) { transform: rotateY(240deg) translateZ(400px); }
  .carousel img:nth-child(6) { transform: rotateY(300deg) translateZ(400px); }
  .carousel img:nth-child(7) { transform: rotateY(300deg) translateZ(400px); }
  .carousel img:nth-child(8) { transform: rotateY(300deg) translateZ(400px); }
  @keyframes rotate {
    from { transform: rotateY(0deg); }
    to { transform: rotateY(360deg); }
  }

  :root{
    --cake-color:#F8CABE;
    --icing-color:#F990A0;
    --icing-highlighting:#F7B7C0;
  }
  

  .fixed-box-img{
    border-radius: 14px;
    margin: 60px auto;
    padding: 10px;
    width: 150px;
    /* border: 1px solid lightgray; */
    position: fixed;
    bottom: 30;
    right: 30;
             
  }
  .box-imgs{
    width: 100%;
    border-radius: 14px;
  
  }
  .fixed-box-img2{
    border-radius: 14px;
    margin: 60px auto;
    padding: 10px;
    width: 200px;
    /* border: 1px solid lightgray; */
    position: fixed;
    bottom: 10;
    right: 0;
             
  }
  .box-imgs2{
    width: 100%;
    border-radius: 14px;
  
  }

  .bg{
    width: 200px;
    margin: 60px auto;
    position: relative;

  }
  .bg-img{
    width: 100%;
    height: auto;
    
  }
  .content{
    position: absolute;
    bottom:0;
    left:0;
  }


   .birthday-main{
    background: url('https://i.ytimg.com/vi/-L5NGu8xkcg/maxresdefault.jpg') no-repeat center center fixed;
      background-size: cover;
      font-family: 'Comic Sans MS', cursive, sans-serif;
      color: #fff;
      text-align: center;
}
  

  .icing {
    background-color: #fff;
    border-top-left-radius: 80px;
    border-top-right-radius: 80px;
  }

  .candle {
    position: absolute;
    top: -45px;
    left: 50%;
    transform: translateX(-50%);
    width: 12px;
    height: 45px;
    background: #333;
    border-radius: 5px;
  }

  .flame {
    position: absolute;
    top: -16px;
    left: -3px;
    width: 18px;
    height: 18px;
    background: radial-gradient(circle, yellow, orange, red);
    border-radius: 50%;
    animation: flicker 1s infinite;
  }

  @keyframes flicker {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.2); opacity: 0.7; }
  }

  button {
    margin-top: 30px;
    padding: 12px 24px;
    background-color: #ff4081;
    color: white;
    border: none;
    border-radius: 25px;
    font-size: 1.3rem;
    cursor: pointer;
    box-shadow: 0 6px 10px rgba(0,0,0,0.3);
    transition: transform 0.2s;
  }

  button:hover {
    transform: scale(1.05);
  }

  #message-box {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: white;
    padding: 30px;
    border-radius: 15px;
    color: #e91e63;
    font-size: 1.5rem;
    display: none;
    box-shadow: 0 10px 20px rgba(0,0,0,0.4);
    animation: popup 0.5s ease;
    z-index: 999;
  }

  @keyframes popup {
    0% { transform: translate(-50%, -50%) scale(0.5); opacity: 0; }
    100% { transform: translate(-50%, -50%) scale(1); opacity: 1; }
  }
/* 
.sanvi-photo {
  background: linear-gradient(rgba(255, 255, 255, 0.3), rgba(255, 255, 255, 0.3)),
              url('img/909.jpg') no-repeat center center fixed;
  background-size: cover;
  font-family: 'Comic Sans MS', cursive, sans-serif;
  color: #fff;
  text-align: center;
} */


  .birthday-main{
    background: url('img/1012.jpg') no-repeat center center fixed;
      background-size: cover;
      font-family: 'Comic Sans MS', cursive, sans-serif;
      color: #fff;
      text-align: center;
}
    .main {
      display: flex;
      flex-direction: column;
      justify-content: center;
      align-items: center;
      min-height: 100vh;
      background-color: rgba(0, 0, 0, 0.5);
    }

    .container {
      padding: 20px;
    }

    .birthday-text {
      font-size: 3rem;
      color: #ffccff;
      text-shadow: 2px 2px #ff69b4;
    }

    .cake {
      position: relative;
      width: 120px;
      height: 150px;
      margin: 30px auto;
    }

    .cake-layer {
      width: 120px;
      height: 40px;
      border-radius: 10px;
      position: absolute;
      left: 0;
    }

    .base {
      background: #d2691e;
      bottom: 0;
    }

    .middle {
      background: #f4a460;
      bottom: 40px;
    }

    .icing {
      background: #ff69b4;
      bottom: 80px;
    }

    .candle {
      position: absolute;
      top: -40px;
      left: 50%;
      transform: translateX(-50%);
      width: 10px;
      height: 40px;
      background: #ff0;
      border-radius: 2px;
    }

    .flame {
      position: absolute;
      top: -15px;
      left: 50%;
      width: 20px;
      height: 20px;
      background: orange;
      border-radius: 50%;
      transform: translateX(-50%);
      animation: flicker 0.6s infinite alternate;
    }

    @keyframes flicker {
      0% { transform: translateX(-50%) scale(1); opacity: 0.8; }
      100% { transform: translateX(-50%) scale(1.2); opacity: 1; }
    }

    button {
      margin-top: 20px;
      padding: 12px 25px;
      font-size: 1.2rem;
      border: none;
      border-radius: 20px;
      background: linear-gradient(to right, #ff69b4, #ffccff);
      color: #fff;
      cursor: pointer;
      transition: transform 0.3s ease;
    }

    button:hover {
      transform: scale(1.1);
    }

    #message-box {
      display: none;
      background: rgba(255, 255, 255, 0.9);
      color: #ff1493;
      border-radius: 15px;
      padding: 20px;
      margin-top: 20px;
      font-size: 1.2rem;
      max-width: 500px;
      box-shadow: 0 0 15px rgba(255, 105, 180, 0.7);
    }
