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

:root {
    --primary-pink: #ff69b4;
    --soft-pink: #ffb6c1;
    --light-pink: #ffc0cb;
    --pale-pink: #ffd9e3;
    --deep-pink: #ff1493;
    --rose-gold: #b76e79;
    --cream: #fff5f5;
    --white: #ffffff;
    --shadow: rgba(255, 105, 180, 0.2);
    --text-dark: #8b4459;
    --text-light: #d68ca0;
}

body {
    font-family: 'Poppins', sans-serif;
    background: linear-gradient(135deg, var(--light-pink) 0%, var(--soft-pink) 25%, var(--primary-pink) 50%, var(--deep-pink) 100%);
    background-attachment: fixed;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow-x: hidden;
    position: relative;
    padding: 20px;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 50% 50%, transparent 0%, rgba(255, 255, 255, 0.1) 100%);
    pointer-events: none;
    z-index: 1;
}

.confetti-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    overflow: hidden;
    z-index: 1000;
}

.confetti {
    position: absolute;
    width: 10px;
    height: 10px;
    background: var(--primary-pink);
    animation: confetti-fall linear infinite;
}

.confetti:nth-child(even) {
    background: var(--soft-pink);
    width: 8px;
    height: 8px;
}

.confetti:nth-child(3n) {
    background: var(--deep-pink);
    width: 12px;
    height: 12px;
}

@keyframes confetti-fall {
    to {
        transform: translateY(100vh) rotate(360deg);
    }
}

/* Rose Petals Animation */
.rose-petals {
    position: fixed;
    top: -10px;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    overflow: hidden;
    z-index: 999;
}

.petal {
    position: absolute;
    width: 25px;
    height: 25px;
    background: var(--soft-pink);
    border-radius: 0 100% 0 100%;
    animation: petal-fall 10s linear infinite;
    opacity: 0.8;
}

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

.container {
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    z-index: 10;
}

/* Password Entry Screen */
.password-screen {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 30px;
    padding: 40px;
    text-align: center;
    box-shadow: 0 20px 60px var(--shadow);
    animation: float-in 1s ease-out;
}

/* Countdown Screen */
.countdown-screen {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 30px;
    padding: 40px;
    text-align: center;
    box-shadow: 0 20px 60px var(--shadow);
    animation: float-in 1s ease-out;
    position: relative;
    overflow: hidden;
}

.countdown-screen::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, var(--pale-pink) 0%, transparent 70%);
    animation: rotate 20s linear infinite;
    opacity: 0.3;
    pointer-events: none;
}

.countdown-content {
    position: relative;
    z-index: 2;
}

.countdown-screen h1 {
    font-family: 'Dancing Script', cursive;
    font-size: clamp(2.5rem, 6vw, 3.5rem);
    color: var(--primary-pink);
    margin-bottom: 10px;
    text-shadow: 2px 2px 4px rgba(255, 105, 180, 0.3);
}

.countdown-message {
    font-size: clamp(1rem, 3vw, 1.3rem);
    color: var(--text-dark);
    margin-bottom: 40px;
    opacity: 0.9;
}

.countdown-display {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: clamp(10px, 3vw, 20px);
    margin: 40px 0;
    flex-wrap: wrap;
}

.countdown-unit {
    background: linear-gradient(135deg, white, var(--cream));
    border: 2px solid var(--soft-pink);
    border-radius: 20px;
    padding: clamp(15px, 4vw, 25px);
    min-width: clamp(70px, 15vw, 100px);
    box-shadow: 0 5px 20px var(--shadow);
    transition: all 0.3s ease;
}

.countdown-unit:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px var(--shadow);
}

.countdown-number {
    font-size: clamp(2rem, 8vw, 3.5rem);
    font-weight: bold;
    color: var(--primary-pink);
    line-height: 1;
    transition: transform 0.2s ease;
}

.countdown-label {
    font-size: clamp(0.8rem, 2vw, 1rem);
    color: var(--text-dark);
    margin-top: 5px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.countdown-separator {
    font-size: clamp(1.5rem, 4vw, 2rem);
    animation: heartbeat 2s ease-in-out infinite;
}

.countdown-hearts {
    margin: 30px 0;
    display: flex;
    justify-content: center;
    gap: 20px;
}

.beating-heart {
    font-size: clamp(1.5rem, 4vw, 2rem);
    animation: heartbeat 1.5s ease-in-out infinite;
}

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

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

.countdown-promise {
    font-size: clamp(1rem, 3vw, 1.2rem);
    color: var(--text-light);
    font-style: italic;
    margin-top: 30px;
    line-height: 1.6;
}

.password-screen h1 {
    font-family: 'Dancing Script', cursive;
    font-size: 3rem;
    color: var(--primary-pink);
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(255, 105, 180, 0.3);
}

.password-input {
    width: 100%;
    max-width: 300px;
    padding: 15px;
    border: 2px solid var(--soft-pink);
    border-radius: 50px;
    font-size: 1.1rem;
    text-align: center;
    color: var(--text-dark);
    background: var(--cream);
    transition: all 0.3s ease;
    margin: 20px auto;
    display: block;
}

.password-input:focus {
    outline: none;
    border-color: var(--primary-pink);
    box-shadow: 0 0 20px var(--shadow);
    transform: scale(1.05);
}

.password-hint {
    color: var(--text-light);
    font-size: 0.9rem;
    margin-top: 10px;
    font-style: italic;
}

.unlock-btn {
    background: linear-gradient(135deg, var(--primary-pink), var(--deep-pink));
    color: white;
    border: none;
    padding: 15px 40px;
    border-radius: 50px;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 20px;
    box-shadow: 0 5px 20px var(--shadow);
}

.unlock-btn:hover {
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 8px 30px var(--shadow);
}

/* Main Birthday Card */
.birthday-card {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    border-radius: 30px;
    box-shadow: 0 20px 60px var(--shadow);
    padding: 30px;
    text-align: center;
    animation: float 6s ease-in-out infinite;
    position: relative;
    overflow: hidden;
}

.birthday-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, var(--pale-pink) 0%, transparent 70%);
    animation: rotate 20s linear infinite;
    opacity: 0.3;
    pointer-events: none;
}

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

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

@keyframes float-in {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.title {
    font-family: 'Dancing Script', cursive;
    font-size: clamp(2.5rem, 8vw, 4rem);
    color: var(--primary-pink);
    margin-bottom: 10px;
    animation: heartbeat 2s ease-in-out infinite;
    text-shadow: 3px 3px 6px rgba(255, 105, 180, 0.3);
    position: relative;
    z-index: 2;
}

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

.subtitle {
    font-size: clamp(1rem, 4vw, 1.5rem);
    color: var(--text-dark);
    margin-bottom: 30px;
    font-weight: 300;
    opacity: 0.9;
}

/* Enhanced Cake Design */
.cake-container {
    margin: 40px auto;
    display: inline-block;
    position: relative;
}

.cake {
    position: relative;
    width: 250px;
    height: 200px;
    margin: 0 auto;
}

.cake-layer {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.layer-1 {
    bottom: 0;
    width: 250px;
    height: 60px;
    background: linear-gradient(to bottom, var(--soft-pink), var(--light-pink));
    border: 3px solid var(--primary-pink);
}

.layer-2 {
    bottom: 60px;
    width: 200px;
    height: 50px;
    background: linear-gradient(to bottom, var(--light-pink), var(--pale-pink));
    border: 3px solid var(--soft-pink);
}

.layer-3 {
    bottom: 110px;
    width: 150px;
    height: 40px;
    background: linear-gradient(to bottom, var(--pale-pink), var(--cream));
    border: 3px solid var(--light-pink);
}

/* Frosting decoration */
.cake-layer::before {
    content: '';
    position: absolute;
    top: -5px;
    left: 0;
    right: 0;
    height: 10px;
    background: repeating-linear-gradient(
        90deg,
        var(--cream) 0px,
        var(--cream) 10px,
        var(--soft-pink) 10px,
        var(--soft-pink) 20px
    );
    border-radius: 50%;
}

.candles {
    position: absolute;
    bottom: 150px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 30px;
}

.candle {
    width: 15px;
    height: 40px;
    background: linear-gradient(to bottom, #ffeb3b, #ffc107);
    border-radius: 3px;
    position: relative;
    cursor: pointer;
    transition: transform 0.3s ease;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

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

.flame {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    width: 20px;
    height: 25px;
    background: radial-gradient(circle, #ffa500, #ff4500);
    border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%;
    animation: flicker 0.5s ease-in-out infinite alternate;
    box-shadow: 0 -5px 10px rgba(255, 69, 0, 0.5);
}

@keyframes flicker {
    0% { transform: translateX(-50%) scale(1) rotate(-2deg); }
    100% { transform: translateX(-50%) scale(1.1) rotate(2deg); }
}

.candle[data-lit="false"] .flame {
    display: none;
}

.blow-instruction {
    margin-top: 20px;
    color: var(--text-light);
    font-size: 1.1rem;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 0.7; }
    50% { opacity: 1; }
}

/* Messages and Content */
.message-section {
    margin: 30px 0;
}

.message {
    font-size: clamp(0.95rem, 3vw, 1.2rem);
    color: var(--text-dark);
    line-height: 1.8;
    margin: 20px auto;
    max-width: 600px;
    padding: 0 20px;
}

.surprise-btn {
    background: linear-gradient(135deg, var(--primary-pink), var(--deep-pink));
    color: white;
    border: none;
    padding: 15px 35px;
    border-radius: 50px;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    margin: 20px 0;
    box-shadow: 0 5px 20px var(--shadow);
    position: relative;
    overflow: hidden;
}

.surprise-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.surprise-btn:hover::before {
    width: 300px;
    height: 300px;
}

.surprise-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px var(--shadow);
}

/* Timeline */
.memory-timeline {
    margin: 40px 0;
    padding: 30px 20px;
    background: linear-gradient(135deg, var(--cream), var(--pale-pink));
    border-radius: 20px;
}

.memory-timeline h3 {
    color: var(--primary-pink);
    font-family: 'Dancing Script', cursive;
    font-size: 2rem;
    margin-bottom: 30px;
}

.timeline {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 20px;
    position: relative;
    padding: 20px 0;
}

.timeline::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 10%;
    right: 10%;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--soft-pink), transparent);
    z-index: 0;
}

.timeline-item {
    position: relative;
    z-index: 1;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.timeline-item:hover {
    transform: translateY(-5px);
}

.timeline-date {
    background: white;
    padding: 10px 15px;
    border-radius: 20px;
    color: var(--text-dark);
    font-size: 0.9rem;
    box-shadow: 0 3px 10px var(--shadow);
    margin-bottom: 10px;
}

.timeline-dot {
    width: 20px;
    height: 20px;
    background: var(--primary-pink);
    border: 3px solid white;
    border-radius: 50%;
    margin: 0 auto;
    box-shadow: 0 2px 8px var(--shadow);
    animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.2); }
}

/* Love Letters */
.open-when-section {
    margin: 40px 0;
}

.open-when-section h3 {
    color: var(--primary-pink);
    font-family: 'Dancing Script', cursive;
    font-size: 2rem;
    margin-bottom: 20px;
}

.letters-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 20px;
    padding: 20px;
}

.letter-envelope {
    background: linear-gradient(135deg, white, var(--cream));
    border: 2px solid var(--soft-pink);
    border-radius: 15px;
    padding: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 3px 15px var(--shadow);
    position: relative;
    overflow: hidden;
}

.letter-envelope::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 30%;
    background: linear-gradient(135deg, var(--soft-pink), var(--light-pink));
    transform: skewY(-5deg);
    transform-origin: top left;
}

.letter-envelope:hover {
    transform: translateY(-5px) rotate(-2deg);
    box-shadow: 0 5px 25px var(--shadow);
}

.envelope-icon {
    font-size: 2rem;
    margin-bottom: 10px;
    display: block;
    position: relative;
    z-index: 1;
}

.letter-envelope p {
    color: var(--text-dark);
    font-size: 0.9rem;
    position: relative;
    z-index: 1;
}

/* Wishes */
.wishes {
    margin: 40px 0;
    padding: 30px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 20px;
    box-shadow: inset 0 2px 10px var(--shadow);
}

.wishes h3 {
    color: var(--primary-pink);
    font-family: 'Dancing Script', cursive;
    font-size: 2rem;
    margin-bottom: 20px;
}

.wish-list {
    list-style: none;
    padding: 0;
    max-width: 500px;
    margin: 0 auto;
}

.wish-list li {
    color: var(--text-dark);
    margin: 15px 0;
    padding-left: 30px;
    position: relative;
    font-size: 1.1rem;
    animation: float-in 0.5s ease-out backwards;
}

.wish-list li:nth-child(1) { animation-delay: 0.1s; }
.wish-list li:nth-child(2) { animation-delay: 0.2s; }
.wish-list li:nth-child(3) { animation-delay: 0.3s; }
.wish-list li:nth-child(4) { animation-delay: 0.4s; }

.wish-list li::before {
    content: '💕';
    position: absolute;
    left: 0;
    animation: heartbeat 2s ease-in-out infinite;
}

/* Love Note */
.love-note {
    background: linear-gradient(135deg, var(--cream), white);
    padding: 30px;
    border-radius: 20px;
    margin: 30px 0;
    box-shadow: 0 5px 20px var(--shadow);
    position: relative;
}

.love-note::before {
    content: '💌';
    position: absolute;
    top: -15px;
    right: 20px;
    font-size: 2rem;
    animation: float 3s ease-in-out infinite;
}

.love-note p {
    color: var(--text-dark);
    line-height: 1.8;
    font-size: 1.1rem;
    margin: 15px 0;
}

.signature {
    font-family: 'Dancing Script', cursive;
    font-size: 1.3rem;
    color: var(--primary-pink);
    margin-top: 20px;
    text-align: right;
}

/* Floating Hearts */
.floating-hearts {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 100;
}

.heart {
    position: absolute;
    font-size: 1.5rem;
    animation: float-heart 6s ease-in-out infinite;
    cursor: pointer;
}

.heart:nth-child(1) { animation-delay: 0s; }
.heart:nth-child(2) { animation-delay: 1.5s; left: 30px; }
.heart:nth-child(3) { animation-delay: 3s; left: -30px; }
.heart:nth-child(4) { animation-delay: 4.5s; left: 60px; }

@keyframes float-heart {
    0%, 100% {
        transform: translateY(0) scale(1);
        opacity: 0.8;
    }
    50% {
        transform: translateY(-30px) scale(1.2);
        opacity: 1;
    }
}

/* Music Player */
.music-player {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1000;
}

.music-toggle {
    background: linear-gradient(135deg, var(--primary-pink), var(--deep-pink));
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 3px 15px var(--shadow);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.music-toggle:hover {
    transform: scale(1.1) rotate(10deg);
}

.music-icon {
    font-size: 1.5rem;
    animation: bounce 2s ease-in-out infinite;
}

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

.playlist-container {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 20px;
    margin-top: 10px;
    box-shadow: 0 5px 25px var(--shadow);
    min-width: 250px;
}

.now-playing {
    color: var(--text-dark);
    font-size: 0.9rem;
    margin-bottom: 15px;
    padding: 10px;
    background: var(--cream);
    border-radius: 10px;
}

.player-controls {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin: 15px 0;
}

.player-controls button {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.player-controls button:hover {
    transform: scale(1.2);
}

.playlist {
    margin-top: 15px;
}

.song-item {
    padding: 10px;
    margin: 5px 0;
    background: var(--cream);
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    color: var(--text-dark);
}

.song-item:hover {
    background: var(--light-pink);
    transform: translateX(5px);
}

.song-item.active {
    background: linear-gradient(135deg, var(--soft-pink), var(--light-pink));
    font-weight: 600;
}

/* Modals */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 182, 193, 0.9);
    backdrop-filter: blur(5px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    padding: 20px;
}

.modal-content {
    background: white;
    border-radius: 25px;
    padding: 30px;
    max-width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 10px 40px var(--shadow);
    position: relative;
    animation: modal-appear 0.3s ease-out;
}

@keyframes modal-appear {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.close-modal {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 2rem;
    cursor: pointer;
    color: var(--text-light);
    transition: all 0.3s ease;
}

.close-modal:hover {
    color: var(--primary-pink);
    transform: rotate(90deg);
}

.modal h3 {
    color: var(--primary-pink);
    font-family: 'Dancing Script', cursive;
    font-size: 2rem;
    margin-bottom: 20px;
}

.modal p {
    color: var(--text-dark);
    line-height: 1.8;
    font-size: 1.1rem;
}

.modal img {
    width: 100%;
    border-radius: 15px;
    margin: 20px 0;
    box-shadow: 0 5px 20px var(--shadow);
}

/* Memory Gallery Styles */
.memory-gallery {
    margin-bottom: 20px;
}

.gallery-main {
    position: relative;
    margin-bottom: 15px;
}

.main-image {
    width: 100%;
    max-height: 400px;
    object-fit: cover;
    border-radius: 15px;
    box-shadow: 0 5px 20px var(--shadow);
    margin: 0 !important;
}

.gallery-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 100%;
    display: flex;
    justify-content: space-between;
    pointer-events: none;
}

.nav-btn {
    background: rgba(255, 255, 255, 0.9);
    color: var(--primary-pink);
    border: none;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    font-size: 1.5rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    pointer-events: all;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
}

.nav-btn:hover {
    background: var(--primary-pink);
    color: white;
    transform: scale(1.1);
}

.prev-btn {
    margin-left: 10px;
}

.next-btn {
    margin-right: 10px;
}

.image-counter {
    text-align: center;
    margin-top: 10px;
    color: var(--text-light);
    font-size: 0.9rem;
}

.gallery-thumbnails {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding: 10px 0;
    justify-content: center;
    flex-wrap: wrap;
}

.thumbnail {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    opacity: 0.7;
    border: 2px solid transparent;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.thumbnail:hover {
    opacity: 1;
    transform: scale(1.05);
    border-color: var(--soft-pink);
}

.thumbnail.active {
    opacity: 1;
    border-color: var(--primary-pink);
    box-shadow: 0 4px 15px var(--shadow);
}

/* Utility Classes */
.hidden {
    display: none !important;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    body {
        padding: 10px;
    }
    
    .container {
        width: 100%;
        padding: 0;
    }
    
    .birthday-card {
        padding: 20px;
        border-radius: 20px;
    }
    
    .title {
        font-size: 2.5rem;
    }
    
    .subtitle {
        font-size: 1.2rem;
    }
    
    .cake {
        width: 200px;
        height: 160px;
    }
    
    .layer-1 {
        width: 200px;
        height: 50px;
    }
    
    .layer-2 {
        width: 160px;
        height: 40px;
        bottom: 50px;
    }
    
    .layer-3 {
        width: 120px;
        height: 35px;
        bottom: 90px;
    }
    
    .candles {
        bottom: 125px;
        gap: 25px;
    }
    
    .timeline {
        flex-direction: column;
        align-items: center;
    }
    
    .timeline::before {
        width: 2px;
        height: 80%;
        top: 10%;
        left: 50%;
        transform: translateX(-50%);
    }
    
    .letters-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
        padding: 15px;
    }
    
    .music-player {
        top: 10px;
        right: 10px;
    }
    
    .music-toggle {
        width: 45px;
        height: 45px;
    }
    
    .playlist-container {
        right: 0;
        left: auto;
        max-width: calc(100vw - 40px);
    }
    
    .modal-content {
        padding: 20px;
        border-radius: 20px;
    }
    
    .floating-hearts {
        bottom: 10px;
        right: 10px;
    }
    
    .heart {
        font-size: 1.2rem;
    }
}

@media (max-width: 480px) {
    .title {
        font-size: 2rem;
    }
    
    .subtitle {
        font-size: 1rem;
    }
    
    .message {
        font-size: 0.95rem;
        padding: 0 10px;
    }
    
    .surprise-btn {
        padding: 12px 25px;
        font-size: 1rem;
    }
    
    .letters-grid {
        grid-template-columns: 1fr;
    }
    
    .wish-list li {
        font-size: 1rem;
    }
    
    .love-note p {
        font-size: 1rem;
    }
    
    .password-input {
        font-size: 1rem;
        padding: 12px;
    }
}

/* Touch interactions */
@media (hover: none) {
    .surprise-btn:active {
        transform: scale(0.95);
    }
    
    .letter-envelope:active {
        transform: scale(0.95);
    }
    
    .timeline-item:active {
        transform: scale(0.95);
    }
    
    .candle:active {
        transform: scale(0.9);
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .birthday-card {
        border: 2px solid var(--primary-pink);
    }
    
    .surprise-btn {
        border: 2px solid var(--deep-pink);
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Print styles */
@media print {
    body {
        background: white;
    }
    
    .music-player,
    .floating-hearts,
    .confetti-container,
    .rose-petals {
        display: none;
    }
    
    .birthday-card {
        box-shadow: none;
        border: 1px solid var(--soft-pink);
    }
}