* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    overflow: hidden;
    position: relative;
    min-height: 100vh;
    background: #0a0a0a;
    color: #ffffff;
}

/* Beams Background Canvas */
#beamsCanvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    filter: blur(15px);
}

/* Page Container */
.page {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.8s ease, visibility 0.8s ease;
    z-index: 10;
}

/* Main Site - Scrollable */
#mainSite {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    overflow-y: auto;
    overflow-x: hidden;
    display: block;
    z-index: 10;
    scroll-behavior: smooth;
}

#mainSite::-webkit-scrollbar {
    width: 10px;
}

#mainSite::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.3);
}

#mainSite::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #667eea, #764ba2);
    border-radius: 5px;
}

#mainSite::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #764ba2, #667eea);
}

.page.active {
    opacity: 1;
    visibility: visible;
}

.content {
    text-align: center;
    z-index: 20;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
}

/* Typography */
h1 {
    font-size: 2.5rem;
    font-weight: bold;
    margin-bottom: 15px;
    color: #ffffff;
    text-shadow: 0 0 20px rgba(102, 126, 234, 0.4);
}

.special-text {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-size: 3.5rem;
    margin-bottom: 30px;
    animation: glow 2s ease-in-out infinite;
}

.question-text {
    font-size: 2.2rem;
    margin-bottom: 30px;
}

@keyframes glow {
    0%, 100% {
        text-shadow: 0 0 20px rgba(102, 126, 234, 0.5),
                     0 0 40px rgba(118, 75, 162, 0.3);
    }
    50% {
        text-shadow: 0 0 30px rgba(102, 126, 234, 0.8),
                     0 0 60px rgba(118, 75, 162, 0.5);
    }
}

/* From Uiverse.io by 2009_4928 */
.submit {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-pack: center;
  -ms-flex-pack: center;
  justify-content: center;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  color: transparent;
  text-transform: uppercase;
  border: 0.1vw solid rgb(50, 50, 50);
  box-shadow:
    0 0 0.5vw black,
    0 0 0.5vw 0.1vw transparent,
    0vw 0 2vw -0.5vw black,
    0vw 0 2vw -0.5vw black,
    0 -1vw 1vw -1vw transparent inset;
  padding: 0.4vw 0.55vw;
  width: 8vw;
  height: 2vw;
  border-radius: 0.2vw;
  cursor: pointer;
  text-shadow: 0.05vw 0 0 white;
  font-size: 0.8vw;
  position: relative;
  overflow: hidden;
  top: 0;
  left: 0;
  background: rgba(0, 0, 0, 0.8);
  font-family: 'Poppins', sans-serif;
  letter-spacing: 0.2vw;
  -webkit-transition: 0.5s;
  transition: 0.5s;
}

.submit:after {
  content: "next";
  width: 100%;
  height: 100%;
  position: absolute;
  top: 0;
  left: 0;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-pack: center;
  -ms-flex-pack: center;
  justify-content: center;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  color: transparent;
  text-shadow: 1.8vw 1.8vw 1.2vw white;
  text-transform: uppercase;
  font-size: 0.8vw;
  letter-spacing: 5.2vw;
  -webkit-transition: 0.5s;
  transition: 0.5s;
}

.submit:hover:after,
.submit:focus:after {
  letter-spacing: 0.28vw;
  text-shadow: 0.08vw 0vw 0 white;
}

.submit:before {
  content: "next";
  width: 100%;
  height: 100%;
  position: absolute;
  top: 0;
  left: 0;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-pack: center;
  -ms-flex-pack: center;
  justify-content: center;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  color: transparent;
  text-shadow: 1.8vw -2vw 1.2vw white;
  text-transform: uppercase;
  font-size: 0.8vw;
  letter-spacing: 5.2vw;
  -webkit-transition: 0.8s;
  transition: 0.8s;
}

.submit:hover:before,
.submit:focus:before {
  letter-spacing: 0.28vw;
  text-shadow: 0.08vw 0vw 0.08vw white;
}

.submit:hover,
.submit:focus {
  box-shadow:
    0 0 2vw black,
    0 0 1.2vw 0.1vw black,
    4vw 0 2vw -0.5vw rgb(255, 0, 105),
    -4vw 0 2vw -0.5vw rgb(255, 0, 105),
    0 -1vw 1vw -1vw rgb(255, 0, 105) inset;
  -webkit-transform: scale(1.15, 1.15);
  transform: scale(1.15, 1.15);
  background: rgba(0, 0, 0, 0.2);
  font-size: 1.25vw;
  letter-spacing: 1.28vw;
  padding: 0.4vw 1vw;
  text-shadow: 0 0 2vw white;
  border-bottom: 0.1vw solid rgb(255, 0, 105);
}

/* Input Wrapper */
.input-wrapper {
    display: flex;
    gap: 15px;
    justify-content: center;
    align-items: center;
}

#nameInput {
    padding: 15px 25px;
    font-size: 1.2rem;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(102, 126, 234, 0.5);
    border-radius: 10px;
    color: white;
    font-family: 'Poppins', sans-serif;
    min-width: 300px;
    transition: all 0.3s ease;
}

#nameInput:focus {
    outline: none;
    border-color: #667eea;
    background: rgba(255, 255, 255, 0.15);
    box-shadow: 0 0 20px rgba(102, 126, 234, 0.4);
}

#nameInput::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

/* Hero Section */
.hero-section {
    position: relative;
    width: 100%;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

/* Flying Circles */
.floating-section {
    position: relative;
    width: 100%;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding: 80px 20px;
    z-index: 15;
}

.circles-container {
    position: absolute;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.circle {
    position: absolute;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.3), rgba(118, 75, 162, 0.3));
    background-size: cover;
    background-position: center;
    animation: float 20s infinite ease-in-out;
    border: 2px solid rgba(102, 126, 234, 0.5);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.3);
    opacity: 1;
}

.square {
    position: absolute;
    border-radius: 15px;
    background: linear-gradient(135deg, rgba(118, 75, 162, 0.3), rgba(102, 126, 234, 0.3));
    background-size: cover;
    background-position: center;
    animation: float 20s infinite ease-in-out;
    border: 2px solid rgba(118, 75, 162, 0.5);
    box-shadow: 0 5px 15px rgba(118, 75, 162, 0.3);
    opacity: 1;
}

.circle:nth-child(1) {
    width: 70px;
    height: 70px;
    left: 8%;
    top: 15%;
    animation-duration: 15s;
    animation-delay: 0s;
}

.circle:nth-child(2) {
    width: 85px;
    height: 85px;
    right: 10%;
    top: 20%;
    animation-duration: 20s;
    animation-delay: 2s;
}

.circle:nth-child(3) {
    width: 65px;
    height: 65px;
    left: 18%;
    bottom: 25%;
    animation-duration: 18s;
    animation-delay: 4s;
}

.circle:nth-child(4) {
    width: 80px;
    height: 80px;
    right: 22%;
    bottom: 18%;
    animation-duration: 22s;
    animation-delay: 1s;
}

.circle:nth-child(5) {
    width: 75px;
    height: 75px;
    left: 50%;
    top: 8%;
    animation-duration: 16s;
    animation-delay: 3s;
}

.circle:nth-child(6) {
    width: 78px;
    height: 78px;
    right: 38%;
    bottom: 30%;
    animation-duration: 19s;
    animation-delay: 5s;
}

.circle:nth-child(7) {
    width: 72px;
    height: 72px;
    left: 5%;
    top: 55%;
    animation-duration: 17s;
    animation-delay: 2.5s;
}

.circle:nth-child(8) {
    width: 68px;
    height: 68px;
    right: 6%;
    top: 12%;
    animation-duration: 21s;
    animation-delay: 4.5s;
}

.circle:nth-child(9) {
    width: 82px;
    height: 82px;
    left: 28%;
    top: 65%;
    animation-duration: 19s;
    animation-delay: 1.5s;
}

.circle:nth-child(10) {
    width: 76px;
    height: 76px;
    right: 32%;
    top: 28%;
    animation-duration: 18s;
    animation-delay: 1s;
}

.circle:nth-child(11) {
    width: 70px;
    height: 70px;
    left: 40%;
    bottom: 35%;
    animation-duration: 20s;
    animation-delay: 3s;
}

.circle:nth-child(12) {
    width: 74px;
    height: 74px;
    right: 18%;
    bottom: 40%;
    animation-duration: 17s;
    animation-delay: 5s;
}

.circle:nth-child(13) {
    width: 88px;
    height: 88px;
    left: 12%;
    top: 45%;
    animation-duration: 21s;
    animation-delay: 2s;
}

.circle:nth-child(14) {
    width: 78px;
    height: 78px;
    right: 8%;
    bottom: 22%;
    animation-duration: 19s;
    animation-delay: 4s;
}

.circle:nth-child(15) {
    width: 80px;
    height: 80px;
    left: 35%;
    bottom: 12%;
    animation-duration: 22s;
    animation-delay: 1.5s;
}

.circle:nth-child(16) {
    width: 72px;
    height: 72px;
    right: 42%;
    top: 38%;
    animation-duration: 18s;
    animation-delay: 3.5s;
}

.square:nth-child(17) {
    width: 70px;
    height: 70px;
    left: 14%;
    top: 32%;
    animation-duration: 20s;
    animation-delay: 1s;
}

.square:nth-child(18) {
    width: 78px;
    height: 78px;
    right: 16%;
    bottom: 45%;
    animation-duration: 23s;
    animation-delay: 3s;
}

.square:nth-child(19) {
    width: 65px;
    height: 65px;
    left: 43%;
    bottom: 20%;
    animation-duration: 17s;
    animation-delay: 5s;
}

.square:nth-child(20) {
    width: 72px;
    height: 72px;
    right: 12%;
    bottom: 32%;
    animation-duration: 19s;
    animation-delay: 2s;
}

.square:nth-child(21) {
    width: 75px;
    height: 75px;
    left: 24%;
    bottom: 10%;
    animation-duration: 21s;
    animation-delay: 4s;
}

/* Decorative Stickers */
.sticker {
    position: absolute;
    font-size: 3rem;
    animation: float 15s infinite ease-in-out;
    z-index: 20;
    filter: drop-shadow(0 5px 10px rgba(255, 255, 255, 0.3));
}

.cat1 {
    top: 10%;
    left: 5%;
    animation-duration: 14s;
}

.cat2 {
    top: 15%;
    right: 8%;
    animation-duration: 16s;
    animation-delay: 2s;
}

.cat3 {
    bottom: 20%;
    left: 10%;
    animation-duration: 15s;
    animation-delay: 4s;
}

.birthday1 {
    top: 30%;
    right: 15%;
    animation-duration: 17s;
    animation-delay: 1s;
}

.birthday2 {
    bottom: 25%;
    right: 10%;
    animation-duration: 18s;
    animation-delay: 3s;
}

.birthday3 {
    top: 50%;
    left: 8%;
    animation-duration: 16s;
    animation-delay: 5s;
}

.heart1 {
    bottom: 15%;
    right: 20%;
    animation-duration: 15s;
    animation-delay: 2.5s;
}

.star1 {
    top: 25%;
    left: 12%;
    animation-duration: 19s;
    animation-delay: 3.5s;
}

@keyframes float {
    0%, 100% {
        transform: translate(0, 0) scale(1);
        opacity: 0.6;
    }
    25% {
        transform: translate(30px, -30px) scale(1.1);
        opacity: 0.8;
    }
    50% {
        transform: translate(-20px, 20px) scale(0.9);
        opacity: 0.6;
    }
    75% {
        transform: translate(40px, 10px) scale(1.05);
        opacity: 0.7;
    }
}

/* Hero Content */
.hero-content {
    position: relative;
    z-index: 15;
    text-align: center;
}

.photo-background {
    width: 400px;
    height: 400px;
    border-radius: 50%;
    overflow: hidden;
    margin: 0 auto 40px;
    border: 5px solid rgba(102, 126, 234, 0.5);
    box-shadow: 0 20px 60px rgba(102, 126, 234, 0.4);
    animation: photoFloat 6s ease-in-out infinite;
}

.photo-background img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

@keyframes photoFloat {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-20px);
    }
}

.birthday-text {
    font-size: 2.5rem;
    font-weight: bold;
    letter-spacing: 2px;
    font-family: 'Poppins', sans-serif;
    min-height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.birthday-text span {
    display: inline-block;
    color: #ffffff;
    text-shadow: 0 2px 4px rgba(0, 255, 0, 0.5);
    transition: color 0.1s ease, text-shadow 0.1s ease;
}

.birthday-text span.matrix {
    color: #00ff00;
    text-shadow: 0 2px 8px rgba(0, 255, 0, 0.8);
}

/* Message Section */
.message-section {
    position: relative;
    padding: 80px 20px;
    z-index: 15;
}

.message-container {
    max-width: 800px;
    margin: 0 auto;
}

.gallery-container {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.section-title {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 40px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.message-box {
    background: transparent;
    border: none;
    padding: 20px;
    text-align: center;
}

.message-text {
    font-size: 1.2rem;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.9);
}
    text-align: left;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

/* Animations */
.fade-in {
    animation: fadeIn 1s ease-in;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive */
@media (max-width: 768px) {
    h1 {
        font-size: 2.5rem;
    }
    
    .special-text {
        font-size: 3rem;
    }
    
    .question-text {
        font-size: 2rem;
    }
    
    #nameInput {
        min-width: 250px;
        font-size: 1rem;
    }
    
    .photo-background {
        width: 300px;
        height: 300px;
    }
    
    .birthday-text {
        font-size: 1.5rem;
    }
    
    .message-box {
        padding: 25px;
    }
}
    
    .countdown-container {
        padding: 40px 25px;
        border-radius: 25px;
    }
    
    .countdown-title {
        font-size: 1.8rem;
    }
    
    .countdown-subtitle {
        font-size: 1rem;
        margin-bottom: 35px;
    }
    
    .countdown-timer {
        gap: 15px;
    }
    
    .time-box {
        padding: 18px 22px;
        min-width: 85px;
        border-radius: 15px;
    }
    
    .time-value {
        font-size: 2.2rem;
    }
    
    .time-label {
        font-size: 0.75rem;
        letter-spacing: 2px;
    }
    
    .locked-icon {
        font-size: 3.5rem;
    }
    
    .message-title {
        font-size: 1.6rem;
    }
}

/* Collage Section */
.collage-section {
    padding: 80px 20px 100px 20px;
    background: linear-gradient(180deg, 
        rgba(245, 240, 232, 0.03) 0%, 
        rgba(237, 228, 211, 0.05) 50%,
        rgba(245, 240, 232, 0.03) 100%);
    position: relative;
    z-index: 15;
    min-height: 1000px;
}

.collage-container {
    max-width: 1300px;
    margin: 0 auto;
}

.collage-grid {
    position: relative;
    min-height: 900px;
    padding: 40px;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0;
}

.collage-item {
    position: absolute;
    transition: transform 0.3s ease, box-shadow 0.3s ease, z-index 0.3s ease;
    filter: sepia(0.15) saturate(0.9);
}

/* Varied sizes and overlapping positions for aesthetic look */
.collage-item:nth-child(1) { 
    top: 20px; left: 5%; 
    transform: rotate(-6deg); 
    z-index: 5;
}
.collage-item:nth-child(1) .polaroid { width: 180px; }
.collage-item:nth-child(1) .polaroid img { height: 180px; }

.collage-item:nth-child(2) { 
    top: 60px; left: 20%; 
    transform: rotate(4deg); 
    z-index: 8;
}
.collage-item:nth-child(2) .polaroid { width: 140px; }
.collage-item:nth-child(2) .polaroid img { height: 160px; }

.collage-item:nth-child(3) { 
    top: 10px; left: 38%; 
    transform: rotate(-3deg); 
    z-index: 6;
}
.collage-item:nth-child(3) .polaroid { width: 160px; }
.collage-item:nth-child(3) .polaroid img { height: 140px; }

.collage-item:nth-child(4) { 
    top: 80px; left: 55%; 
    transform: rotate(8deg); 
    z-index: 7;
}
.collage-item:nth-child(4) .polaroid { width: 150px; }
.collage-item:nth-child(4) .polaroid img { height: 150px; }

.collage-item:nth-child(5) { 
    top: 30px; right: 8%; 
    transform: rotate(-5deg); 
    z-index: 9;
}
.collage-item:nth-child(5) .polaroid { width: 170px; }
.collage-item:nth-child(5) .polaroid img { height: 200px; }

.collage-item:nth-child(6) { 
    top: 230px; left: 3%; 
    transform: rotate(5deg); 
    z-index: 4;
}
.collage-item:nth-child(6) .polaroid { width: 145px; }
.collage-item:nth-child(6) .polaroid img { height: 165px; }

.collage-item:nth-child(7) { 
    top: 250px; left: 18%; 
    transform: rotate(-7deg); 
    z-index: 10;
}
.collage-item:nth-child(7) .polaroid { width: 155px; }
.collage-item:nth-child(7) .polaroid img { height: 155px; }

.collage-item:nth-child(8) { 
    top: 210px; left: 35%; 
    transform: rotate(3deg); 
    z-index: 6;
}
.collage-item:nth-child(8) .polaroid { width: 165px; }
.collage-item:nth-child(8) .polaroid img { height: 180px; }

.collage-item:nth-child(9) { 
    top: 260px; left: 52%; 
    transform: rotate(-4deg); 
    z-index: 8;
}
.collage-item:nth-child(9) .polaroid { width: 140px; }
.collage-item:nth-child(9) .polaroid img { height: 140px; }

.collage-item:nth-child(10) { 
    top: 240px; right: 5%; 
    transform: rotate(6deg); 
    z-index: 7;
}
.collage-item:nth-child(10) .polaroid { width: 175px; }
.collage-item:nth-child(10) .polaroid img { height: 190px; }

.collage-item:nth-child(11) { 
    top: 430px; left: 8%; 
    transform: rotate(-8deg); 
    z-index: 5;
}
.collage-item:nth-child(11) .polaroid { width: 160px; }
.collage-item:nth-child(11) .polaroid img { height: 170px; }

.collage-item:nth-child(12) { 
    top: 460px; left: 25%; 
    transform: rotate(5deg); 
    z-index: 9;
}
.collage-item:nth-child(12) .polaroid { width: 150px; }
.collage-item:nth-child(12) .polaroid img { height: 150px; }

.collage-item:nth-child(13) { 
    top: 420px; left: 42%; 
    transform: rotate(-6deg); 
    z-index: 6;
}
.collage-item:nth-child(13) .polaroid { width: 170px; }
.collage-item:nth-child(13) .polaroid img { height: 195px; }

.collage-item:nth-child(14) { 
    top: 480px; left: 60%; 
    transform: rotate(7deg); 
    z-index: 8;
}
.collage-item:nth-child(14) .polaroid { width: 145px; }
.collage-item:nth-child(14) .polaroid img { height: 160px; }

.collage-item:nth-child(15) { 
    top: 450px; right: 6%; 
    transform: rotate(-4deg); 
    z-index: 7;
}
.collage-item:nth-child(15) .polaroid { width: 165px; }
.collage-item:nth-child(15) .polaroid img { height: 175px; }

.collage-item:nth-child(16) { 
    top: 650px; left: 10%; 
    transform: rotate(6deg); 
    z-index: 4;
}
.collage-item:nth-child(16) .polaroid { width: 155px; }
.collage-item:nth-child(16) .polaroid img { height: 155px; }

.collage-item:nth-child(17) { 
    top: 680px; left: 28%; 
    transform: rotate(-5deg); 
    z-index: 10;
}
.collage-item:nth-child(17) .polaroid { width: 160px; }
.collage-item:nth-child(17) .polaroid img { height: 185px; }

.collage-item:nth-child(18) { 
    top: 630px; left: 46%; 
    transform: rotate(4deg); 
    z-index: 6;
}
.collage-item:nth-child(18) .polaroid { width: 150px; }
.collage-item:nth-child(18) .polaroid img { height: 165px; }

.collage-item:nth-child(19) { 
    top: 690px; left: 64%; 
    transform: rotate(-7deg); 
    z-index: 8;
}
.collage-item:nth-child(19) .polaroid { width: 140px; }
.collage-item:nth-child(19) .polaroid img { height: 145px; }

.collage-item:nth-child(20) { 
    top: 660px; right: 7%; 
    transform: rotate(5deg); 
    z-index: 7;
}
.collage-item:nth-child(20) .polaroid { width: 175px; }
.collage-item:nth-child(20) .polaroid img { height: 200px; }

.polaroid {
    background: linear-gradient(135deg, #f5f0e8 0%, #ede4d3 100%);
    padding: 12px;
    padding-bottom: 40px;
    box-shadow: 
        0 10px 25px rgba(139, 115, 85, 0.3),
        0 5px 10px rgba(0, 0, 0, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.6);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
    width: 160px;
    border: 1px solid rgba(139, 115, 85, 0.2);
}

.polaroid img {
    width: 100%;
    height: 170px;
    object-fit: cover;
    display: block;
    border: 1px solid rgba(139, 115, 85, 0.15);
}

.polaroid-caption {
    display: none;
}

.rotate-left {
    transform: rotate(-2deg);
}

.rotate-right {
    transform: rotate(2deg);
}

.collage-item:hover {
    transform: scale(1.08) rotate(0deg) !important;
    box-shadow: 
        0 25px 60px rgba(139, 115, 85, 0.4),
        0 15px 30px rgba(0, 0, 0, 0.3);
    z-index: 100 !important;
    filter: sepia(0.05) saturate(1.1) brightness(1.05);
}

@media (max-width: 768px) {
    .collage-grid {
        min-height: 1200px;
    }
    
    .collage-item {
        width: 120px !important;
    }
    
    .polaroid {
        width: 100px;
    }
    
    .polaroid img {
        height: 100px;
    }
    
    /* Adjust positions for mobile */
    .collage-item:nth-child(1) { top: 20px; left: 5%; }\n    .collage-item:nth-child(2) { top: 40px; left: 45%; }\n    .collage-item:nth-child(3) { top: 10px; right: 5%; }\n    .collage-item:nth-child(4) { top: 160px; left: 10%; }\n    .collage-item:nth-child(5) { top: 180px; right: 10%; }\n    .collage-item:nth-child(6) { top: 300px; left: 5%; }\n    .collage-item:nth-child(7) { top: 320px; left: 50%; }\n    .collage-item:nth-child(8) { top: 290px; right: 5%; }\n    .collage-item:nth-child(9) { top: 440px; left: 15%; }\n    .collage-item:nth-child(10) { top: 460px; right: 15%; }\n    .collage-item:nth-child(11) { top: 580px; left: 5%; }\n    .collage-item:nth-child(12) { top: 600px; left: 45%; }\n    .collage-item:nth-child(13) { top: 570px; right: 5%; }\n    .collage-item:nth-child(14) { top: 720px; left: 10%; }\n    .collage-item:nth-child(15) { top: 740px; right: 10%; }\n    .collage-item:nth-child(16) { top: 860px; left: 5%; }\n    .collage-item:nth-child(17) { top: 880px; left: 50%; }\n    .collage-item:nth-child(18) { top: 850px; right: 5%; }\n    .collage-item:nth-child(19) { top: 1000px; left: 15%; }\n    .collage-item:nth-child(20) { top: 1020px; right: 15%; }
}
/* Countdown Timer Styles */
.countdown-container {
    position: relative;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.15) 0%, rgba(118, 75, 162, 0.15) 100%);
    border: 2px solid rgba(102, 126, 234, 0.4);
    border-radius: 30px;
    padding: 60px 40px;
    text-align: center;
    backdrop-filter: blur(20px);
    box-shadow: 
        0 8px 32px rgba(102, 126, 234, 0.3),
        0 0 100px rgba(118, 75, 162, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    overflow: hidden;
    animation: cardFloat 6s ease-in-out infinite;
}

.countdown-container::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        45deg,
        transparent,
        rgba(102, 126, 234, 0.1),
        transparent
    );
    animation: shimmer 3s linear infinite;
}

@keyframes cardFloat {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

@keyframes shimmer {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

.countdown-title {
    position: relative;
    font-size: 2.8rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 20px;
    font-weight: 700;
    z-index: 1;
    animation: titleGlow 2s ease-in-out infinite;
    text-shadow: 0 0 30px rgba(102, 126, 234, 0.5);
}

@keyframes titleGlow {
    0%, 100% {
        filter: brightness(1);
    }
    50% {
        filter: brightness(1.2);
    }
}

.countdown-subtitle {
    position: relative;
    font-size: 1.3rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 50px;
    z-index: 1;
    font-weight: 400;
    letter-spacing: 0.5px;
}

.countdown-timer {
    position: relative;
    display: flex;
    justify-content: center;
    gap: 25px;
    flex-wrap: wrap;
    margin-bottom: 40px;
    z-index: 1;
}

.time-box {
    position: relative;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.2) 0%, rgba(118, 75, 162, 0.2) 100%);
    border: 2px solid rgba(102, 126, 234, 0.5);
    border-radius: 20px;
    padding: 25px 30px;
    min-width: 110px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    overflow: hidden;
}

.time-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.time-box:hover::before {
    opacity: 1;
}

.time-box:hover {
    transform: translateY(-10px) scale(1.05);
    box-shadow: 
        0 15px 35px rgba(102, 126, 234, 0.4),
        0 5px 15px rgba(118, 75, 162, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    border-color: rgba(102, 126, 234, 0.8);
}

.time-value {
    font-size: 3.5rem;
    font-weight: 800;
    background: linear-gradient(135deg, #ffffff 0%, #f093fb 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 0 30px rgba(102, 126, 234, 0.6);
    animation: numberPulse 2s ease-in-out infinite;
}

@keyframes numberPulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

.time-label {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.8);
    text-transform: uppercase;
    letter-spacing: 3px;
    font-weight: 600;
}

.locked-icon {
    position: relative;
    font-size: 5rem;
    z-index: 1;
    animation: lockPulse 2s ease-in-out infinite;
    filter: drop-shadow(0 0 20px rgba(255, 215, 0, 0.6));
}

@keyframes lockPulse {
    0%, 100% {
        transform: scale(1) rotate(0deg);
        opacity: 0.8;
    }
    25% {
        transform: scale(1.1) rotate(-5deg);
    }
    50% {
        transform: scale(1.15) rotate(0deg);
        opacity: 1;
    }
    75% {
        transform: scale(1.1) rotate(5deg);
    }
}

.message-title {
    font-size: 2.2rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 25px;
    font-weight: 700;
    text-align: center;
}

.message-unlocked {
    animation: unlockAnimation 1s ease-out;
}

@keyframes unlockAnimation {
    0% {
        opacity: 0;
        transform: scale(0.8);
    }
    50% {
        transform: scale(1.05);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

/* Feelings Section */
.feelings-section {
    padding: 60px 20px;
    position: relative;
    z-index: 15;
    text-align: center;
}

.feelings-container {
    max-width: 800px;
    margin: 0 auto;
}

.feelings-text {
    font-family: 'Poppins', sans-serif;
    font-size: 1.8rem;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.8;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    font-weight: 600;
}

.feelings-text br {
    line-height: 2.5;
}

/* From Uiverse.io by satyamchaudharydev */ 
.spinner {
  position: relative;
  width: 60px;
  height: 60px;
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: 50%;
  margin: 0 auto;
}

.spinner span {
  position: absolute;
  top: 50%;
  left: var(--left);
  width: 35px;
  height: 7px;
  background: #ffff;
  animation: dominos 1s ease infinite;
  box-shadow: 2px 2px 3px 0px black;
}

.spinner span:nth-child(1) {
  --left: 80px;
  animation-delay: 0.125s;
}

.spinner span:nth-child(2) {
  --left: 70px;
  animation-delay: 0.3s;
}

.spinner span:nth-child(3) {
  left: 60px;
  animation-delay: 0.425s;
}

.spinner span:nth-child(4) {
  animation-delay: 0.54s;
  left: 50px;
}

.spinner span:nth-child(5) {
  animation-delay: 0.665s;
  left: 40px;
}

.spinner span:nth-child(6) {
  animation-delay: 0.79s;
  left: 30px;
}

.spinner span:nth-child(7) {
  animation-delay: 0.915s;
  left: 20px;
}

.spinner span:nth-child(8) {
  left: 10px;
}

@keyframes dominos {
  50% {
    opacity: 0.7;
  }

  75% {
    -webkit-transform: rotate(90deg);
    transform: rotate(90deg);
  }

  80% {
    opacity: 1;
  }
}

@media (max-width: 768px) {
    .feelings-text {
        font-size: 1.4rem;
    }
}

/* Question Page Styles */
#questionPage .content {
    overflow-y: auto;
    max-height: 90vh;
    padding: 20px !important;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
}

.question-container {
    margin: 20px 0;
    text-align: left;
}

.question-text {
    font-size: 1rem;
    color: #fff;
    margin-bottom: 10px;
    font-weight: 500;
    line-height: 1.4;
    word-wrap: break-word;
}

.answer-input {
    width: 100%;
    padding: 12px 15px;
    font-size: 0.95rem;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(102, 126, 234, 0.5);
    border-radius: 10px;
    color: white;
    font-family: 'Poppins', sans-serif;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

.answer-input:focus {
    outline: none;
    border-color: #667eea;
    background: rgba(255, 255, 255, 0.15);
    box-shadow: 0 0 20px rgba(102, 126, 234, 0.4);
}

.answer-input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

/* Question Submit Button */
.question-submit {
    margin-top: 25px;
    margin-bottom: 20px;
    padding: 12px 40px;
    font-size: 1rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.3);
    transition: all 0.3s ease;
    display: block;
    width: fit-content;
    margin-left: auto;
    margin-right: auto;
}

.question-submit:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(102, 126, 234, 0.5);
    background: linear-gradient(135deg, #764ba2 0%, #667eea 100%);
}

.question-submit:active {
    transform: translateY(-1px);
    box-shadow: 0 5px 20px rgba(102, 126, 234, 0.4);
}

/* From Uiverse.io by ilkhoeri */
.gallery-section {
    padding: 80px 20px;
    position: relative;
    z-index: 15;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
}

.wrapper {
    width: 100%;
    max-width: 1000px;
    height: 500px;
    position: relative;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    perspective: 1000px;
}

.inner {
    --w: 150px;
    --h: 225px;
    --translateZ: calc((var(--w) + var(--h)) + 20px);
    --rotateX: -15deg;
    position: relative;
    width: var(--w);
    height: var(--h);
    transform-style: preserve-3d;
    animation: rotating 40s linear infinite;
}

@keyframes rotating {
    from {
        transform: rotateX(var(--rotateX)) rotateY(0);
    }
    to {
        transform: rotateX(var(--rotateX)) rotateY(1turn);
    }
}

.card {
    position: absolute;
    border: 2px solid rgba(var(--color-card));
    border-radius: 12px;
    overflow: hidden;
    inset: 0;
    transform: rotateY(calc((360deg / var(--quantity)) * var(--index))) translateZ(var(--translateZ));
}

.img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    background: #0000 radial-gradient(
        circle,
        rgba(var(--color-card), 0.2) 0%,
        rgba(var(--color-card), 0.6) 80%,
        rgba(var(--color-card), 0.9) 100%
    );
}

/* Thank You Page */
.thank-you-message {
    padding: 40px 20px;
}

.thank-you-message .message-text {
    font-family: 'Poppins', sans-serif;
    font-size: 1.5rem;
    line-height: 1.8;
    color: #fff;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

/* From Uiverse.io by Cornerstone-04 */
.video-cards {
  perspective: 500px;
}

.video-card {
  width: 200px;
  height: 250px;
  background: #16161d;
  border: 2px solid #555555;
  border-radius: 4px;
  position: relative;
  transform-style: preserve-3d;
  will-change: transform;
  transition: transform .5s;
  overflow: hidden;
}

.video-card:hover {
  transform: translateZ(10px) rotateX(20deg) rotateY(20deg);
}

.video-card_video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.video-card_title {
  color: #fff;
  position: absolute;
  top: 50%;
  right: 20px;
  transform: translateY(-50%);
  transition: transform .5s;
  font: 700 1.5rem monospace;
  text-shadow: -1px -1px 0 #000,  
    1px -1px 0 #000,
    -1px 1px 0 #000,
     1px 1px 0 #000;
}

.video-card:hover .video-card_title {
  transform: translateZ(50px);
}

/* Mobile Responsive Styles */
@media (max-width: 768px) {
    /* Main page content */
    .content {
        padding: 20px;
    }

    h1 {
        font-size: 2rem !important;
    }

    /* Submit button */
    .submit {
        padding: 0.8em 1.5em;
        font-size: 16px;
    }

    /* Question Page Mobile */
    #questionPage .content {
        max-width: 95% !important;
        padding: 15px !important;
        max-height: 95vh !important;
    }

    #questionPage h1 {
        font-size: 1.6rem !important;
        margin-bottom: 20px !important;
    }

    .question-container {
        margin: 15px 0 !important;
    }

    .question-text {
        font-size: 0.9rem !important;
        line-height: 1.3;
    }

    .answer-input {
        padding: 10px 12px !important;
        font-size: 0.9rem !important;
    }

    .question-submit {
        padding: 10px 30px !important;
        font-size: 0.9rem !important;
        margin-top: 20px !important;
        margin-bottom: 15px !important;
    }

    #errorMsg {
        font-size: 0.85rem !important;
        margin-top: 15px !important;
    }

    #attemptsMsg {
        font-size: 0.8rem !important;
    }

    /* Hero section */
    .hero-section {
        min-height: 70vh;
        padding: 40px 15px;
    }

    .photo-background {
        width: 250px !important;
        height: 250px !important;
    }

    .birthday-text {
        font-size: 1.3rem !important;
    }

    /* Message section */
    .message-section {
        padding: 40px 15px;
    }

    .message-box {
        padding: 20px;
        font-size: 0.95rem;
    }

    .message-text {
        font-size: 1rem !important;
    }

    /* Gallery/Carousel */
    .gallery-section {
        padding: 40px 10px;
        min-height: 400px;
    }

    .wrapper {
        max-width: 100%;
        height: 300px;
        padding: 0 10px;
    }

    .inner {
        --w: 90px;
        --h: 135px;
        --translateZ: calc((var(--w) + var(--h)) + 10px);
    }

    /* Spinner */
    .spinner {
        transform: scale(0.7);
    }

    /* Video card */
    .video-card {
        width: 160px;
        height: 200px;
    }

    .video-card_title {
        font-size: 1.2rem;
        right: 10px;
    }

    /* Thank you message */
    .thank-you-message {
        padding: 20px 10px;
    }

    .thank-you-message .message-text {
        font-size: 1.1rem !important;
    }

    /* Feelings section */
    .feelings-section {
        padding: 40px 15px;
    }

    /* Ensure body doesn't overflow */
    body {
        overflow-x: hidden;
    }

    /* Page container */
    .page {
        overflow-y: auto;
        overflow-x: hidden;
    }

    #mainSite {
        overflow-y: scroll;
        overflow-x: hidden;
    }
}

/* Extra small devices */
@media (max-width: 480px) {
    h1 {
        font-size: 1.5rem !important;
    }

    .submit {
        padding: 0.7em 1.2em;
        font-size: 14px;
    }

    /* Question Page Extra Small Mobile */
    #questionPage .content {
        max-width: 98% !important;
        padding: 10px !important;
        max-height: 98vh !important;
    }

    #questionPage h1 {
        font-size: 1.3rem !important;
        margin-bottom: 15px !important;
    }

    .question-container {
        margin: 12px 0 !important;
    }

    .question-text {
        font-size: 0.85rem !important;
        line-height: 1.2;
        margin-bottom: 8px !important;
    }

    .answer-input {
        padding: 8px 10px !important;
        font-size: 0.85rem !important;
    }

    .question-submit {
        padding: 8px 25px !important;
        font-size: 0.85rem !important;
        margin-top: 15px !important;
        margin-bottom: 10px !important;
    }

    #errorMsg {
        font-size: 0.8rem !important;
        margin-top: 12px !important;
    }

    #attemptsMsg {
        font-size: 0.75rem !important;
        margin-top: 3px !important;
    }

    .photo-background {
        width: 200px !important;
        height: 200px !important;
    }

    .birthday-text {
        font-size: 1.1rem !important;
    }

    .message-text {
        font-size: 0.9rem !important;
    }

    .wrapper {
        height: 250px;
        padding: 0 5px;
    }

    .inner {
        --w: 70px;
        --h: 105px;
        --translateZ: calc((var(--w) + var(--h)) + 5px);
    }

    .video-card {
        width: 140px;
        height: 180px;
    }

    .video-card_title {
        font-size: 1rem;
    }

    .collage-item {
        width: 90px !important;
    }

    .polaroid {
        width: 70px !important;
    }

    .polaroid img {
        height: 70px !important;
    }

    .collage-grid {
        min-height: 1200px;
    }
}
