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

body {
    font-family: 'Poppins', sans-serif;
    overflow-x: hidden;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
}

/* Welcome Page Styles */
.welcome-page {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: linear-gradient(135deg, #ff9a9e 0%, #fecfef 50%, #fecfef 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transform: translateY(100px);
    transition: all 0.8s ease;
    z-index: 1000;
}

.welcome-page.active {
    opacity: 1;
    transform: translateY(0);
}

.background-animation {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><radialGradient id="a"><stop offset="0" stop-color="%23ffffff" stop-opacity=".1"/><stop offset="1" stop-color="%23ffffff" stop-opacity="0"/></radialGradient></defs><circle fill="url(%23a)" cx="50" cy="50" r="50"/></svg>') repeat;
    animation: float 6s ease-in-out infinite;
    opacity: 0.3;
}

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

.welcome-card {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 30px;
    padding: 60px 40px;
    text-align: center;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    max-width: 600px;
    width: 90%;
    animation: cardPulse 2s ease-in-out infinite alternate;
}

@keyframes cardPulse {
    0% { transform: scale(1); }
    100% { transform: scale(1.02); }
}

.main-title {
    font-family: 'Dancing Script', cursive;
    font-size: 3.5rem;
    color: #ff6b9d;
    margin-bottom: 20px;
    animation: titleGlow 3s ease-in-out infinite;
}

@keyframes titleGlow {
    0%, 100% { text-shadow: 0 0 10px rgba(255, 107, 157, 0.3); }
    50% { text-shadow: 0 0 20px rgba(255, 107, 157, 0.6); }
}

.subtitle {
    font-size: 1.5rem;
    color: #8e44ad;
    margin-bottom: 30px;
    font-weight: 300;
}

.sparkle-effect {
    margin: 30px 0;
}

.sparkle {
    display: inline-block;
    font-size: 2rem;
    margin: 0 15px;
    animation: sparkle 2s ease-in-out infinite;
}

.sparkle:nth-child(2) {
    animation-delay: 0.5s;
}

.sparkle:nth-child(3) {
    animation-delay: 1s;
}

@keyframes sparkle {
    0%, 100% { transform: scale(1) rotate(0deg); opacity: 1; }
    50% { transform: scale(1.3) rotate(180deg); opacity: 0.7; }
}

.open-wishes-btn {
    background: linear-gradient(135deg, #ff6b9d, #ff8a80);
    color: white;
    border: none;
    padding: 18px 40px;
    font-size: 1.2rem;
    border-radius: 50px;
    cursor: pointer;
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin: 0 auto;
    transition: all 0.3s ease;
    box-shadow: 0 10px 30px rgba(255, 107, 157, 0.3);
}

.open-wishes-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(255, 107, 157, 0.4);
}

.music-control {
    position: fixed;
    top: 30px;
    right: 30px;
    z-index: 1001;
}

#musicToggle {
    background: rgba(255, 255, 255, 0.9);
    border: none;
    border-radius: 50%;
    width: 60px;
    height: 60px;
    font-size: 1.5rem;
    color: #ff6b9d;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

#musicToggle:hover {
    transform: scale(1.1);
    background: #ff6b9d;
    color: white;
}

/* Confetti Animation */
.confetti-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 999;
}

.confetti {
    position: absolute;
    width: 10px;
    height: 10px;
    background: #ff6b9d;
    animation: confetti-fall 3s linear infinite;
}

@keyframes confetti-fall {
    0% {
        transform: translateY(-100vh) rotate(0deg);
        opacity: 1;
    }
    100% {
        transform: translateY(100vh) rotate(720deg);
        opacity: 0;
    }
}

/* Wishes Page Styles */
.wishes-page {
    min-height: 100vh;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 80px 20px 40px;
    opacity: 0;
    transform: translateX(100%);
    transition: all 0.8s ease;
}

.wishes-page.active {
    opacity: 1;
    transform: translateX(0);
}

.wishes-header {
    text-align: center;
    margin-bottom: 60px;
}

.wishes-header h2 {
    font-family: 'Dancing Script', cursive;
    font-size: 3rem;
    color: white;
    margin-bottom: 10px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.wishes-header p {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 300;
}

.wishes-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto 60px;
    padding: 0 20px;
}

.wish-card {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    padding: 30px;
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    opacity: 0;
    transform: translateY(50px);
    animation: cardSlideIn 0.8s ease forwards;
}

.wish-card:nth-child(1) { animation-delay: 0.1s; }
.wish-card:nth-child(2) { animation-delay: 0.2s; }
.wish-card:nth-child(3) { animation-delay: 0.3s; }
.wish-card:nth-child(4) { animation-delay: 0.4s; }
.wish-card:nth-child(5) { animation-delay: 0.5s; }
.wish-card:nth-child(6) { animation-delay: 0.6s; }

@keyframes cardSlideIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.wish-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
}

.wish-icon {
    font-size: 3rem;
    margin-bottom: 20px;
    animation: iconBounce 2s ease-in-out infinite;
}

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

.wish-card h3 {
    font-size: 1.5rem;
    color: #8e44ad;
    margin-bottom: 15px;
    font-weight: 600;
}

.wish-card p {
    color: #555;
    line-height: 1.6;
    font-size: 1rem;
}

.surprise-section {
    text-align: center;
    margin: 60px 0;
}

.surprise-btn {
    background: linear-gradient(135deg, #ffd89b 0%, #19547b 100%);
    color: white;
    border: none;
    padding: 20px 50px;
    font-size: 1.3rem;
    border-radius: 50px;
    cursor: pointer;
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 10px 30px rgba(255, 216, 155, 0.3);
    animation: surprisePulse 3s ease-in-out infinite;
}

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

.surprise-btn:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(255, 216, 155, 0.4);
}

.back-btn {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.3);
    padding: 12px 30px;
    border-radius: 30px;
    cursor: pointer;
    font-family: 'Poppins', sans-serif;
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 40px auto 0;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.back-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
}

.modal-content {
    background: linear-gradient(135deg, #ff9a9e 0%, #fecfef 100%);
    margin: 10% auto;
    padding: 40px;
    border-radius: 30px;
    width: 90%;
    max-width: 500px;
    text-align: center;
    position: relative;
    animation: modalSlideIn 0.5s ease;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

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

.close {
    position: absolute;
    top: 15px;
    right: 25px;
    color: #8e44ad;
    font-size: 35px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
}

.close:hover {
    color: #ff6b9d;
    transform: scale(1.2);
}

.surprise-content h2 {
    font-family: 'Dancing Script', cursive;
    font-size: 2.5rem;
    color: #8e44ad;
    margin-bottom: 20px;
}

.surprise-image {
    font-size: 4rem;
    margin: 20px 0;
    animation: surpriseImageBounce 1s ease-in-out infinite alternate;
}

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

.surprise-content p {
    font-size: 1.1rem;
    color: #8e44ad;
    margin-bottom: 30px;
    line-height: 1.6;
}

.surprise-hearts {
    display: flex;
    justify-content: center;
    gap: 10px;
}

.surprise-hearts span {
    font-size: 2rem;
    animation: heartFloat 2s ease-in-out infinite;
}

.surprise-hearts span:nth-child(1) { animation-delay: 0s; }
.surprise-hearts span:nth-child(2) { animation-delay: 0.2s; }
.surprise-hearts span:nth-child(3) { animation-delay: 0.4s; }
.surprise-hearts span:nth-child(4) { animation-delay: 0.6s; }
.surprise-hearts span:nth-child(5) { animation-delay: 0.8s; }

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

/* Responsive Design */
@media (max-width: 768px) {
    .main-title {
        font-size: 2.5rem;
    }
    
    .subtitle {
        font-size: 1.2rem;
    }
    
    .welcome-card {
        padding: 40px 30px;
    }
    
    .wishes-header h2 {
        font-size: 2.2rem;
    }
    
    .wishes-container {
        grid-template-columns: 1fr;
        padding: 0 10px;
    }
    
    .modal-content {
        margin: 20% auto;
        padding: 30px 20px;
    }
    
    .surprise-content h2 {
        font-size: 2rem;
    }
}

@media (max-width: 480px) {
    .main-title {
        font-size: 2rem;
    }
    
    .open-wishes-btn {
        padding: 15px 30px;
        font-size: 1rem;
    }
    
    .wish-card {
        padding: 20px;
    }
    
    .surprise-btn {
        padding: 15px 35px;
        font-size: 1.1rem;
    }
}

/* Hidden class */
.hidden {
    display: none !important;
}

/* Active page transitions */
.page-transition {
    transition: all 0.8s cubic-bezier(0.4, 0.0, 0.2, 1);
}