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

body {
    font-family: 'Poppins', sans-serif;
    background: linear-gradient(135deg, #a8e6cf 0%, #dcedc8 50%, #c8e6c9 100%);
    min-height: 100vh;
    overflow-x: hidden;
}

.hidden {
    display: none !important;
}

/* Password Overlay Styles */
.password-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #ff9a9e 0%, #fecfef 50%, #fecfef 100%);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2000;
    animation: passwordGradientShift 4s ease-in-out infinite alternate;
}

@keyframes passwordGradientShift {
    0% { background: linear-gradient(135deg, #ff9a9e 0%, #fecfef 50%, #fad0c4 100%); }
    100% { background: linear-gradient(135deg, #fad0c4 0%, #ff9a9e 50%, #fecfef 100%); }
}

.password-content {
    text-align: center;
    color: white;
    z-index: 2001;
    background: rgba(255, 255, 255, 0.1);
    padding: 3rem;
    border-radius: 25px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 20px 60px rgba(255, 154, 158, 0.3);
}

.password-header {
    margin-bottom: 2rem;
}

.password-title {
    font-family: 'Dancing Script', cursive;
    font-size: 3.5rem;
    margin-bottom: 1rem;
    animation: bounceIn 1s ease-out;
    text-shadow: 2px 2px 8px rgba(255, 154, 158, 0.5);
}

.password-subtitle {
    font-size: 1.2rem;
    margin-bottom: 1rem;
    opacity: 0;
    animation: fadeInUp 1s ease-out 0.5s forwards;
}

.password-box {
    background: rgba(255, 255, 255, 0.9);
    padding: 2.5rem;
    border-radius: 20px;
    color: #8e24aa;
    box-shadow: 0 15px 35px rgba(142, 36, 170, 0.2);
    animation: scaleIn 0.8s ease-out 1s forwards;
    transform: scale(1);
    opacity: 1;
}

.password-icon {
    font-size: 4rem;
    margin-bottom: 1.5rem;
    animation: float 3s ease-in-out infinite;
}

.password-field {
    width: 100%;
    max-width: 300px;
    padding: 15px 20px;
    font-size: 1.5rem;
    text-align: center;
    border: 3px solid #e1bee7;
    border-radius: 50px;
    outline: none;
    margin-bottom: 1.5rem;
    font-family: 'Poppins', sans-serif;
    letter-spacing: 8px;
    transition: all 0.3s ease;
    background: #fce4ec;
    color: #8e24aa;
}

.password-field:focus {
    border-color: #8e24aa;
    box-shadow: 0 0 20px rgba(142, 36, 170, 0.3);
    transform: scale(1.05);
}

.password-field::placeholder {
    color: #ba68c8;
    letter-spacing: 4px;
}

.password-button {
    background: linear-gradient(45deg, #8e24aa, #ab47bc);
    color: white;
    border: none;
    padding: 15px 30px;
    font-size: 1.2rem;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    box-shadow: 0 8px 25px rgba(142, 36, 170, 0.3);
    margin-bottom: 1rem;
}

.password-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(142, 36, 170, 0.4);
}

.password-button:active {
    transform: translateY(0);
}

.password-error {
    color: #e91e63;
    font-size: 1rem;
    margin-bottom: 1rem;
    animation: shake 0.5s ease-in-out;
    font-weight: 600;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-10px); }
    75% { transform: translateX(10px); }
}

.password-hint {
    font-size: 0.9rem;
    color: #ab47bc;
    font-style: italic;
    margin-top: 1rem;
    opacity: 0.8;
}

.password-sparkles {
    position: absolute;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.sparkle {
    position: absolute;
    font-size: 2rem;
    animation: sparkleFloat 8s ease-in-out infinite;
    opacity: 0.7;
}

.sparkle:nth-child(1) {
    left: 10%;
    top: 20%;
    animation-delay: 0s;
    animation-duration: 6s;
}

.sparkle:nth-child(2) {
    right: 15%;
    top: 15%;
    animation-delay: 1s;
    animation-duration: 7s;
}

.sparkle:nth-child(3) {
    left: 15%;
    bottom: 25%;
    animation-delay: 2s;
    animation-duration: 5s;
}

.sparkle:nth-child(4) {
    right: 20%;
    bottom: 30%;
    animation-delay: 0.5s;
    animation-duration: 8s;
}

.sparkle:nth-child(5) {
    left: 50%;
    top: 10%;
    animation-delay: 3s;
    animation-duration: 6s;
}

.sparkle:nth-child(6) {
    left: 70%;
    top: 60%;
    animation-delay: 1.5s;
    animation-duration: 7s;
}

@keyframes sparkleFloat {
    0%, 100% {
        transform: translateY(0) rotate(0deg) scale(1);
        opacity: 0.7;
    }
    25% {
        transform: translateY(-20px) rotate(90deg) scale(1.2);
        opacity: 1;
    }
    50% {
        transform: translateY(-40px) rotate(180deg) scale(0.8);
        opacity: 0.5;
    }
    75% {
        transform: translateY(-20px) rotate(270deg) scale(1.1);
        opacity: 0.9;
    }
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Welcome Overlay Styles */
.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #2e7d32, #4caf50, #66bb6a);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    animation: gradientShift 3s ease-in-out infinite alternate;
}

@keyframes gradientShift {
    0% { background: linear-gradient(135deg, #2e7d32, #4caf50, #66bb6a); }
    100% { background: linear-gradient(135deg, #66bb6a, #4caf50, #2e7d32); }
}

.welcome-content {
    text-align: center;
    color: white;
    z-index: 1001;
}

.welcome-title {
    font-family: 'Dancing Script', cursive;
    font-size: 3.5rem;
    margin-bottom: 1rem;
    animation: bounceIn 1s ease-out;
}

.welcome-text {
    font-size: 1.3rem;
    margin-bottom: 2rem;
    opacity: 0;
    animation: fadeInUp 1s ease-out 0.5s forwards;
}

.enter-button {
    background: linear-gradient(45deg, #ff4081, #e91e63);
    color: white;
    border: none;
    padding: 15px 30px;
    font-size: 1.2rem;
    border-radius: 50px;
    cursor: pointer;
    transform: scale(0);
    animation: scaleIn 0.8s ease-out 1s forwards;
    transition: transform 0.3s ease;
    box-shadow: 0 8px 25px rgba(233, 30, 99, 0.3);
}

.enter-button:hover {
    transform: scale(1.05);
    box-shadow: 0 12px 35px rgba(233, 30, 99, 0.4);
}

/* Floating Hearts */
.floating-hearts {
    position: absolute;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.heart {
    position: absolute;
    font-size: 2rem;
    animation: float 6s ease-in-out infinite;
    opacity: 0.7;
}

.heart:nth-child(1) {
    left: 10%;
    animation-delay: 0s;
    animation-duration: 6s;
}

.heart:nth-child(2) {
    left: 20%;
    animation-delay: 1s;
    animation-duration: 7s;
}

.heart:nth-child(3) {
    left: 70%;
    animation-delay: 2s;
    animation-duration: 5s;
}

.heart:nth-child(4) {
    left: 80%;
    animation-delay: 0.5s;
    animation-duration: 8s;
}

.heart:nth-child(5) {
    left: 50%;
    animation-delay: 3s;
    animation-duration: 6s;
}

@keyframes float {
    0%, 100% {
        top: 100vh;
        transform: translateY(0) rotate(0deg);
        opacity: 0;
    }
    10% {
        opacity: 0.7;
    }
    90% {
        opacity: 0.7;
    }
    50% {
        top: -10vh;
        transform: translateY(-20px) rotate(180deg);
        opacity: 1;
    }
}

/* Hero Section */
.hero-section {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: linear-gradient(135deg, #e8f5e8 0%, #c8e6c9 50%, #a5d6a7 100%);
    overflow: hidden;
}

.hero-content {
    z-index: 2;
    color: #2e7d32;
}

.main-title {
    font-family: 'Dancing Script', cursive;
    font-size: 4rem;
    margin-bottom: 1rem;
    animation: slideInFromTop 1s ease-out;
    text-shadow: 2px 2px 4px rgba(46, 125, 50, 0.3);
}

.hero-subtitle {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    opacity: 0;
    animation: fadeInUp 1s ease-out 0.5s forwards;
    font-weight: 300;
}

.birthday-date {
    font-size: 1.8rem;
    font-weight: 600;
    background: linear-gradient(45deg, #4caf50, #66bb6a);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: pulse 2s ease-in-out infinite;
}

/* Floating Elements */
.floating-elements {
    position: absolute;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.floating-gift, .floating-balloon, .floating-cake {
    position: absolute;
    font-size: 3rem;
    animation: floatAround 10s ease-in-out infinite;
}

.floating-gift {
    top: 20%;
    left: 10%;
    animation-delay: 0s;
}

.floating-balloon {
    top: 15%;
    right: 15%;
    animation-delay: 2s;
}

.floating-cake {
    bottom: 20%;
    left: 15%;
    animation-delay: 4s;
}

@keyframes floatAround {
    0%, 100% {
        transform: translateY(0px) rotate(0deg);
    }
    25% {
        transform: translateY(-20px) rotate(5deg);
    }
    50% {
        transform: translateY(-10px) rotate(-5deg);
    }
    75% {
        transform: translateY(-30px) rotate(3deg);
    }
}

/* Love Counter */
.love-counter {
    padding: 80px 0;
    background: rgba(255, 255, 255, 0.9);
    text-align: center;
}

.love-counter h2 {
    font-family: 'Dancing Script', cursive;
    font-size: 3rem;
    color: #2e7d32;
    margin-bottom: 3rem;
}

.counter-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    max-width: 800px;
    margin: 0 auto;
}

.counter-item {
    background: linear-gradient(135deg, #4caf50, #66bb6a);
    padding: 2rem;
    border-radius: 20px;
    color: white;
    box-shadow: 0 10px 30px rgba(76, 175, 80, 0.3);
    transform: translateY(0);
    transition: transform 0.3s ease;
}

.counter-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(76, 175, 80, 0.4);
}

.counter-number {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.counter-label {
    font-size: 1.2rem;
    opacity: 0.9;
}

/* Photo Gallery */
.photo-gallery {
    padding: 80px 0;
    background: linear-gradient(135deg, #f1f8e9 0%, #e8f5e8 100%);
}

.photo-gallery h2 {
    font-family: 'Dancing Script', cursive;
    font-size: 3rem;
    text-align: center;
    color: #2e7d32;
    margin-bottom: 3rem;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.photo-item {
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    cursor: pointer;
    transform: scale(1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.photo-item:hover {
    transform: scale(1.05);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
}

.photo-item img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.photo-item:hover img {
    transform: scale(1.1);
}

.photo-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(46, 125, 50, 0.9));
    color: white;
    padding: 1rem;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.photo-item:hover .photo-overlay {
    transform: translateY(0);
}

.gallery-message {
    text-align: center;
    margin-top: 3rem;
    padding: 2rem;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 20px;
    backdrop-filter: blur(10px);
    border: 2px solid rgba(46, 125, 50, 0.2);
    box-shadow: 0 10px 30px rgba(46, 125, 50, 0.1);
    animation: fadeInUp 1s ease-out;
}

.gallery-quote {
    font-family: 'Dancing Script', cursive;
    font-size: 2rem;
    color: #2e7d32;
    font-style: italic;
    margin: 0;
    line-height: 1.6;
    text-shadow: 1px 1px 2px rgba(46, 125, 50, 0.1);
    position: relative;
}

.gallery-quote::before {
    content: '✨';
    position: absolute;
    left: -2rem;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.5rem;
    animation: sparkle 2s ease-in-out infinite;
}

.gallery-quote::after {
    content: '✨';
    position: absolute;
    right: -2rem;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.5rem;
    animation: sparkle 2s ease-in-out infinite 1s;
}

@keyframes sparkle {
    0%, 100% { opacity: 0.6; transform: translateY(-50%) scale(1); }
    50% { opacity: 1; transform: translateY(-50%) scale(1.2); }
}

.gallery-message p {
    font-size: 1.4rem;
    color: #5d4037;
    margin-top: 1rem;
    line-height: 1.6;
}

/* Love Messages */
.love-messages {
    padding: 80px 0;
    background: rgba(255, 255, 255, 0.95);
}

.love-messages h2 {
    font-family: 'Dancing Script', cursive;
    font-size: 3rem;
    text-align: center;
    color: #2e7d32;
    margin-bottom: 3rem;
}

.messages-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.message-card {
    background: linear-gradient(135deg, #e8f5e8, #f1f8e9);
    padding: 2rem;
    border-radius: 20px;
    text-align: center;
    border: 2px solid rgba(76, 175, 80, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    overflow: hidden;
}

.message-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(76, 175, 80, 0.1), transparent);
    transform: rotate(45deg);
    transition: all 0.5s ease;
    opacity: 0;
}

.message-card:hover::before {
    opacity: 1;
    animation: shimmer 1.5s ease-in-out;
}

.message-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(76, 175, 80, 0.3);
}

.message-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.message-card p {
    font-size: 1.1rem;
    line-height: 1.6;
    color: #2e7d32;
    font-style: italic;
}

@keyframes shimmer {
    0% { transform: translateX(-100%) rotate(45deg); }
    100% { transform: translateX(100%) rotate(45deg); }
}

/* Flower Section */
.flower-section {
    padding: 80px 0;
    background: linear-gradient(135deg, #fce4ec 0%, #f8bbd9 50%, #e1bee7 100%);
    text-align: center;
}

.flower-section h2 {
    font-family: 'Dancing Script', cursive;
    font-size: 3rem;
    color: #8e24aa;
    margin-bottom: 3rem;
    text-shadow: 2px 2px 4px rgba(142, 36, 170, 0.3);
}

.flower-container {
    position: relative;
    display: inline-block;
    margin-bottom: 2rem;
}

.flower-bouquet {
    max-width: 400px;
    width: 100%;
    height: auto;
    border-radius: 20px;
    box-shadow: 0 15px 35px rgba(142, 36, 170, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.flower-bouquet:hover {
    transform: scale(1.05);
    box-shadow: 0 20px 45px rgba(142, 36, 170, 0.4);
}

.note-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 3rem;
    cursor: pointer;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow: 0 8px 25px rgba(233, 30, 99, 0.3);
    animation: pulse 2s ease-in-out infinite;
}

.note-icon:hover {
    transform: translate(-50%, -50%) scale(1.2);
    box-shadow: 0 12px 35px rgba(233, 30, 99, 0.5);
    background: rgba(255, 255, 255, 1);
}

.flower-subtitle {
    font-size: 1.2rem;
    color: #8e24aa;
    font-style: italic;
    margin-top: 1rem;
}

/* Note Modal */
.note-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2000;
    animation: fadeIn 0.3s ease;
}

.note-content {
    position: relative;
    max-width: 600px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    animation: slideInFromBottom 0.5s ease;
}

.note-paper {
    background: linear-gradient(145deg, #fff9c4, #fff59d);
    padding: 3rem;
    border-radius: 15px;
    box-shadow: 
        0 20px 60px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.6);
    position: relative;
    font-family: 'Dancing Script', cursive;
    color: #5d4037;
}

.note-paper::before {
    content: '';
    position: absolute;
    left: 60px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: #e57373;
    opacity: 0.3;
}

.note-paper h3 {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 2rem;
    color: #8e24aa;
    text-shadow: 1px 1px 2px rgba(142, 36, 170, 0.2);
}

.note-text {
    font-size: 1.3rem;
    line-height: 2;
    text-align: left;
    padding-left: 80px;
}

.note-text p {
    margin-bottom: 1.5rem;
    position: relative;
}

.note-signature {
    margin-top: 3rem;
    text-align: right;
    font-size: 1.4rem;
    color: #ad1457;
    font-weight: 600;
}

.close-note {
    position: absolute;
    top: 15px;
    right: 25px;
    font-size: 2rem;
    color: #8e24aa;
    cursor: pointer;
    z-index: 2001;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.close-note:hover {
    background: rgba(255, 255, 255, 1);
    transform: scale(1.1);
}

@keyframes slideInFromBottom {
    0% {
        opacity: 0;
        transform: translateY(50px) scale(0.9);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes fadeIn {
    0% { opacity: 0; }
    100% { opacity: 1; }
}

/* Birthday Wish Section */
.birthday-wish {
    padding: 80px 0;
    background: linear-gradient(135deg, #4caf50, #66bb6a);
    text-align: center;
    color: white;
}

.birthday-wish h2 {
    font-family: 'Dancing Script', cursive;
    font-size: 3rem;
    color: white;
    margin-bottom: 3rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.cake-container {
    background: rgba(255, 255, 255, 0.1);
    padding: 3rem;
    border-radius: 25px;
    display: inline-block;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.birthday-cake {
    position: relative;
    display: inline-block;
    font-size: 4rem;
    margin: 2rem 0;
    width: 200px;
    height: 120px;
}

.cake-body {
    font-size: 6rem;
    display: block;
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1;
}

.candle {
    position: absolute;
    font-size: 2.5rem;
    transition: all 0.5s ease;
    cursor: pointer;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
}

.candle:hover {
    transform: scale(1.1);
}

.candle.blown {
    opacity: 0.3;
    transform: scale(0.8);
    filter: grayscale(1);
}

#candle1 {
    top: 10px;
    left: 30px;
}

#candle2 {
    top: 5px;
    left: 50%;
    transform: translateX(-50%);
}

#candle2.blown {
    transform: translateX(-50%) scale(0.8);
}

#candle2:hover {
    transform: translateX(-50%) scale(1.1);
}

#candle3 {
    top: 10px;
    right: 30px;
}

/* Candle animation effects */
@keyframes candleFlicker {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

.candle:not(.blown) {
    animation: candleFlicker 2s ease-in-out infinite;
}

/* Footer */
.footer {
    padding: 3rem 0;
    background: #2e7d32;
    color: white;
    text-align: center;
}

.footer p {
    font-size: 1.2rem;
    margin: 0.5rem 0;
}

/* Lightbox */
.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2000;
}

.lightbox-content {
    position: relative;
    max-width: 90%;
    max-height: 90%;
    text-align: center;
}

.lightbox-content img {
    max-width: 100%;
    max-height: 80vh;
    border-radius: 10px;
}

.close-lightbox {
    position: absolute;
    top: -40px;
    right: 0;
    color: white;
    font-size: 2rem;
    cursor: pointer;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    transition: background 0.3s ease;
}

.close-lightbox:hover {
    background: rgba(255, 255, 255, 0.3);
}

#lightbox-caption {
    color: white;
    font-size: 1.2rem;
    margin-top: 1rem;
    padding: 1rem;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 10px;
}

/* Puzzle Overlay Styles */
.puzzle-content {
    text-align: center;
    color: white;
    z-index: 1001;
    max-width: 90%;
    width: 100%;
}

.puzzle-title {
    font-family: 'Dancing Script', cursive;
    font-size: 3.5rem;
    margin-bottom: 1rem;
    animation: bounceIn 1s ease-out;
    text-shadow: 2px 2px 8px rgba(46, 125, 50, 0.5);
}

.puzzle-text {
    font-size: 1.3rem;
    margin-bottom: 2rem;
    opacity: 0;
    animation: fadeInUp 1s ease-out 0.5s forwards;
}

.puzzle-container {
    background: rgba(255, 255, 255, 0.95);
    padding: 2rem;
    border-radius: 20px;
    margin: 0 auto 2rem auto;
    max-width: 600px;
    box-shadow: 0 15px 35px rgba(46, 125, 50, 0.3);
    backdrop-filter: blur(10px);
}

.puzzle-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(3, 1fr);
    gap: 4px;
    width: 400px;
    height: 400px;
    margin: 0 auto;
    background: #2e7d32;
    border-radius: 15px;
    padding: 10px;
    box-shadow: inset 0 4px 8px rgba(0, 0, 0, 0.2);
}

.puzzle-piece {
    background-size: 300% 300%;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid #4caf50;
    background-image: url('puzzle.jpeg');
    position: relative;
    overflow: hidden;
}

.puzzle-piece:hover {
    transform: scale(1.05);
    border-color: #66bb6a;
    box-shadow: 0 4px 12px rgba(76, 175, 80, 0.5);
}

.puzzle-piece.empty {
    background: rgba(46, 125, 50, 0.3);
    border: 2px dashed #81c784;
    cursor: default;
}

.puzzle-piece.empty:hover {
    transform: none;
    box-shadow: none;
}

.puzzle-piece.correct {
    border-color: #4caf50;
    box-shadow: 0 0 15px rgba(76, 175, 80, 0.6);
    animation: correctPulse 0.5s ease;
}

@keyframes correctPulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

.puzzle-piece.hint {
    animation: hintGlow 1s ease-in-out infinite alternate;
}

@keyframes hintGlow {
    0% { box-shadow: 0 0 10px rgba(255, 193, 7, 0.5); }
    100% { box-shadow: 0 0 20px rgba(255, 193, 7, 0.8); }
}

.puzzle-controls {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 2rem;
}

.puzzle-button {
    background: linear-gradient(45deg, #4caf50, #66bb6a);
    color: white;
    border: none;
    padding: 12px 24px;
    font-size: 1rem;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 6px 20px rgba(76, 175, 80, 0.3);
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
}

.puzzle-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(76, 175, 80, 0.4);
}

.puzzle-button:active {
    transform: translateY(0);
}

.puzzle-success {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #4CAF50, #66BB6A);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 5000;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.puzzle-success.show {
    opacity: 1;
}

.puzzle-success-content {
    text-align: center;
    color: white;
    font-family: 'Dancing Script', cursive;
    font-size: 2.5rem;
    padding: 2rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

/* Shake animation for password error */
@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-10px); }
    75% { transform: translateX(10px); }
}

/* Bounce animation */
@keyframes bounceIn {
    0% {
        opacity: 0;
        transform: scale(0.3);
    }
    50% {
        opacity: 1;
        transform: scale(1.05);
    }
    70% {
        transform: scale(0.9);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

/* Fade in up animation */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Pulse animation */
@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

/* Blow Button Styles */
.blow-button {
    background: linear-gradient(45deg, #e91e63, #f06292);
    color: white;
    border: none;
    padding: 15px 30px;
    font-size: 1.2rem;
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 8px 25px rgba(233, 30, 99, 0.3);
    margin-top: 1rem;
    position: relative;
    overflow: hidden;
}

.blow-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 35px rgba(233, 30, 99, 0.4);
    background: linear-gradient(45deg, #ad1457, #e91e63);
}

.blow-button:active {
    transform: translateY(0);
    box-shadow: 0 5px 15px rgba(233, 30, 99, 0.3);
}

.blow-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s;
}

.blow-button:hover::before {
    left: 100%;
}

/* Cake container styles */
.cake-container {
    text-align: center;
    padding: 3rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 25px;
    display: inline-block;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 15px 35px rgba(255, 255, 255, 0.2);
    margin: 2rem auto;
    max-width: 500px;
    width: 90%;
}

.wish-instruction {
    font-size: 1.3rem;
    color: white;
    margin: 1.5rem 0;
    font-weight: 500;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
}

/* Birthday Video Styles */
.birthday-video {
    display: none;
}

.birthday-video.hidden {
    display: none !important;
    visibility: hidden !important;
}

/* Video Modal Overlay */
.video-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 99999;
    animation: fadeIn 0.3s ease;
}

.video-modal.hidden {
    display: none !important;
}

.video-content {
    position: relative;
    width: 480px;
    max-width: 75vw;
    max-height: 80vh;
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.4);
    animation: slideInFromBottom 0.5s ease;
    padding: 15px;
}

.video-content video {
    width: 100%;
    height: auto;
    max-height: 55vh;
    display: block;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

/* Responsive adjustments for video modal */
@media (max-width: 768px) {
    .video-content {
        width: 90vw;
        max-width: 90vw;
        max-height: 75vh;
        padding: 10px;
        border-radius: 15px;
    }
    
    .video-content video {
        max-height: 50vh;
        border-radius: 10px;
    }
    
    .close-video {
        top: 5px;
        right: 10px;
        width: 30px;
        height: 30px;
        font-size: 1.4rem;
    }
}

.close-video {
    position: absolute;
    top: 10px;
    right: 15px;
    color: #666;
    font-size: 1.8rem;
    cursor: pointer;
    z-index: 100000;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    border: 2px solid #ddd;
    font-weight: bold;
}

.close-video:hover {
    background: rgba(240, 240, 240, 1);
    color: #333;
    transform: scale(1.1);
    border-color: #bbb;
}

@keyframes slideInFromBottom {
    0% {
        opacity: 0;
        transform: translateY(50px) scale(0.9);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Video container override */
video {
    max-width: none !important;
    max-height: none !important;
}

video:fullscreen {
    object-fit: cover;
}

@media (max-width: 768px) {
    .main-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.2rem;
    }
    
    .birthday-date {
        font-size: 1.4rem;
    }
    
    .welcome-title {
        font-size: 2.5rem;
    }
    
    .counter-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .gallery-grid {
        grid-template-columns: 1fr;
    }
    
    .messages-grid {
        grid-template-columns: 1fr;
    }
    
    .floating-gift, .floating-balloon, .floating-cake {
        font-size: 2rem;
    }
    
    .container {
        padding: 0 15px;
    }
    
    .flower-bouquet {
        max-width: 300px;
    }
    
    .note-icon {
        width: 60px;
        height: 60px;
        font-size: 2rem;
    }
    
    .note-paper {
        padding: 2rem;
    }
    
    .note-text {
        padding-left: 40px;
        font-size: 1.1rem;
    }
    
    .note-paper h3 {
        font-size: 2rem;
    }
    
    .password-content {
        padding: 2rem;
        margin: 0 20px;
    }
    
    .password-title {
        font-size: 2.5rem;
    }
    
    .password-subtitle {
        font-size: 1rem;
    }
    
    .password-box {
        padding: 2rem;
    }
    
    .password-field {
        font-size: 1.2rem;
        letter-spacing: 4px;
    }
    
    .puzzle-title {
        font-size: 2.5rem;
    }
    
    .puzzle-text {
        font-size: 1.1rem;
    }
    
    .puzzle-grid {
        width: 300px;
        height: 300px;
        gap: 3px;
    }
    
    .puzzle-container {
        padding: 1.5rem;
    }
    
    .puzzle-controls {
        flex-direction: column;
        align-items: center;
    }
    
    .puzzle-button {
        width: 200px;
    }
    
    .gallery-message {
        margin-top: 2rem;
        padding: 1.5rem;
        margin-left: 10px;
        margin-right: 10px;
    }
    
    .gallery-quote {
        font-size: 1.5rem;
        line-height: 1.4;
    }
    
    .gallery-quote::before,
    .gallery-quote::after {
        display: none;
    }
}

@media (max-width: 480px) {
    .puzzle-grid {
        width: 250px;
        height: 250px;
        gap: 2px;
    }
    
    .puzzle-container {
        margin: 0 10px 2rem 10px;
        padding: 1rem;
    }
    
    .gallery-message {
        margin-top: 1.5rem;
        padding: 1rem;
        margin-left: 5px;
        margin-right: 5px;
    }
    
    .gallery-quote {
        font-size: 1.3rem;
        line-height: 1.3;
    }
}
