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

body {
    background: linear-gradient(135deg, #dc143c 0%, #ff1744 50%, #ff6090 100%);
    font-family: 'Nunito', sans-serif;
    height: 100vh;
    width: 100vw;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    position: fixed;
    top: 0;
    left: 0;
    margin: 0;
    padding: 0;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 30% 40%, rgba(255, 96, 144, 0.3) 0%, transparent 50%),
        radial-gradient(circle at 70% 60%, rgba(220, 20, 60, 0.3) 0%, transparent 50%);
    pointer-events: none;
    z-index: 0;
}

/* Intro Page Styles */
.intro-container {
    position: relative;
    z-index: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 20px;
}

.envelope {
    width: clamp(250px, 80vw, 350px);
    height: clamp(170px, 50vw, 230px);
    position: relative;
    cursor: pointer;
    transition: transform 0.4s ease;
}

.envelope:hover {
    transform: scale(1.08) translateY(-5px);
}

.envelope-body {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0.1));
    backdrop-filter: blur(20px);
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.4);
}

.envelope-flap {
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 0;
    border-left: clamp(125px, 40vw, 175px) solid transparent;
    border-right: clamp(125px, 40vw, 175px) solid transparent;
    border-top: clamp(85px, 25vw, 115px) solid rgba(255, 20, 147, 0.8);
    transform-origin: top center;
    transition: transform 0.8s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    z-index: 2;
    filter: drop-shadow(0 5px 15px rgba(0, 0, 0, 0.3));
}

.envelope.opened .envelope-flap {
    transform: rotateX(180deg);
}

.letter-hint {
    font-size: clamp(1rem, 4vw, 1.3rem);
    color: #fff;
    font-weight: 700;
    animation: pulse 2s ease infinite;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.7; transform: scale(1.08); }
}

.letter {
    position: absolute;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    padding: clamp(25px, 6vw, 45px);
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
    max-width: 90%;
    width: clamp(300px, 85vw, 550px);
    opacity: 0;
    transform: translateY(50px);
    transition: opacity 0.6s ease, transform 0.6s ease;
    pointer-events: none;
    border: 2px solid rgba(255, 255, 255, 0.5);
}

.letter.show {
    opacity: 1;
    transform: translateY(0);
    pointer-events: all;
}

.letter-title {
    font-family: 'Dancing Script', cursive;
    font-size: clamp(2rem, 6vw, 2.8rem);
    background: linear-gradient(135deg, #667eea, #764ba2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: clamp(15px, 4vw, 25px);
}

.letter-content p {
    font-size: clamp(1rem, 3.5vw, 1.2rem);
    line-height: 1.8;
    color: #333;
    margin-bottom: clamp(12px, 3vw, 18px);
}

.continue-btn {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    border: none;
    border-radius: 50px;
    padding: clamp(12px, 3vw, 16px) clamp(25px, 6vw, 35px);
    font-size: clamp(1rem, 3.5vw, 1.2rem);
    font-weight: 700;
    cursor: pointer;
    margin-top: clamp(15px, 4vw, 25px);
    transition: all 0.3s ease;
    box-shadow: 0 8px 20px rgba(102, 126, 234, 0.5);
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.continue-btn:hover {
    transform: scale(1.08) translateY(-2px);
    box-shadow: 0 12px 30px rgba(102, 126, 234, 0.7);
}

/* Floating hearts background */
.hearts-bg {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.hearts-bg::before,
.hearts-bg::after {
    content: '💕 💗 💖 💝 💓';
    position: absolute;
    font-size: clamp(1rem, 3vw, 1.5rem);
    opacity: 0.2;
    animation: floatHearts 15s linear infinite;
    white-space: nowrap;
    top: 100%;
    left: 10%;
}

.hearts-bg::after {
    animation-delay: 7s;
    left: 60%;
    content: '💗 💕 💓 💖 💝';
}

@keyframes floatHearts {
    from { transform: translateY(0) rotate(0deg); opacity: 0.2; }
    to { transform: translateY(-110vh) rotate(360deg); opacity: 0; }
}

.container {
    position: relative;
    z-index: 1;
    text-align: center;
    padding: 15px;
    width: 100%;
    max-width: 600px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    padding-top: 50px;
}

h1 {
    font-size: clamp(1.6rem, 5.5vw, 2.4rem);
    color: #fff;
    font-weight: 900;
    margin-bottom: 8px;
    text-shadow: 
        0 0 10px rgba(255, 0, 150, 0.8),
        0 0 20px rgba(255, 0, 150, 0.6),
        0 0 30px rgba(0, 150, 255, 0.4),
        0 5px 15px rgba(0, 0, 0, 0.5);
    animation: glow 3s ease-in-out infinite;
    line-height: 1.1;
}

.subtitle {
    font-size: clamp(0.95rem, 3.8vw, 1.2rem);
    color: #dc143c;
    font-weight: 600;
    margin-bottom: 15px;
    font-style: italic;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

@keyframes glow {
    0%, 100% { 
        text-shadow: 
            0 0 10px rgba(255, 0, 150, 0.8),
            0 0 20px rgba(255, 0, 150, 0.6),
            0 0 30px rgba(0, 150, 255, 0.4),
            0 5px 15px rgba(0, 0, 0, 0.5);
    }
    50% { 
        text-shadow: 
            0 0 20px rgba(255, 0, 150, 1),
            0 0 40px rgba(255, 0, 150, 0.8),
            0 0 60px rgba(0, 150, 255, 0.6),
            0 5px 20px rgba(0, 0, 0, 0.7);
    }
}

.gif-container {
    margin: clamp(10px, 3vw, 18px) auto;
    display: flex;
    justify-content: center;
}

#cat-gif {
    width: clamp(120px, 32vw, 180px);
    height: clamp(120px, 32vw, 180px);
    object-fit: contain;
    filter: drop-shadow(0 10px 30px rgba(255, 20, 147, 0.5));
    transition: opacity 0.4s ease, transform 0.4s ease;
    border-radius: 20px;
}

#cat-gif:hover {
    transform: scale(1.05);
}

.buttons {
    display: flex;
    gap: clamp(30px, 10vw, 20px);
    justify-content: center;
    align-items: center;
    margin-top: clamp(15px, 4vw, 25px);
    flex-wrap: wrap;
    min-height: 60px;
    position: relative;
    z-index: 1;
}

#yes-btn {
    background: linear-gradient(135deg, #ff0080, #ff8c00, #40e0d0);
    background-size: 200% 200%;
    color: white;
    border: none;
    border-radius: 50px;
    font-size: clamp(1.2rem, 4vw, 1.8rem);
    font-weight: 900;
    font-family: 'Nunito', sans-serif;
    padding: clamp(12px, 3vw, 18px) clamp(30px, 8vw, 50px);
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    box-shadow: 
        0 0 20px rgba(255, 0, 128, 0.6),
        0 0 40px rgba(255, 140, 0, 0.4),
        0 8px 25px rgba(0, 0, 0, 0.4);
    letter-spacing: 1px;
    position: relative;
    overflow: hidden;
    animation: gradientShift 3s ease infinite;
    z-index: 1000;
}

@keyframes gradientShift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

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

#yes-btn:hover::before {
    width: 300px;
    height: 300px;
}

#yes-btn:hover {
    transform: scale(1.08) translateY(-3px);
    box-shadow: 
        0 0 30px rgba(255, 0, 128, 0.8),
        0 0 60px rgba(255, 140, 0, 0.6),
        0 12px 35px rgba(0, 0, 0, 0.5);
}

#yes-btn:active {
    transform: scale(0.95);
}

#no-btn {
    background: linear-gradient(135deg, #ff0080, #ff0040);
    color: white;
    border: none;
    border-radius: 50px;
    font-size: clamp(0.9rem, 3vw, 1.1rem);
    font-weight: 700;
    font-family: 'Nunito', sans-serif;
    padding: clamp(10px, 2.5vw, 14px) clamp(20px, 5vw, 32px);
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 
        0 0 15px rgba(255, 0, 128, 0.6),
        0 6px 20px rgba(0, 0, 0, 0.4);
    position: relative;
    z-index: 1;
}

#no-btn:hover {
    background: linear-gradient(135deg, #ff0040, #ff0080);
    transform: scale(1.05);
    box-shadow: 
        0 0 25px rgba(255, 0, 128, 0.8),
        0 8px 25px rgba(0, 0, 0, 0.5);
}


#tease-toast {
    margin-top: clamp(10px, 3vw, 18px);
    font-size: clamp(1rem, 3.8vw, 1.2rem);
    color: rgba(255, 255, 255, 0.95);
    font-weight: 700;
    font-style: italic;
    opacity: 0;
    transform: translateY(8px);
    transition: opacity 0.4s ease, transform 0.4s ease;
    min-height: clamp(35px, 9vw, 50px);
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    line-height: 1.4;
    padding: 8px;
    position: relative;
    z-index: 10;
}

#tease-toast.show {
    opacity: 1;
    transform: translateY(0);
}

/* Reasons Box */
.reasons-box {
    margin-top: clamp(15px, 4vw, 25px);
    padding: clamp(15px, 4vw, 22px);
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    border: 2px solid rgba(255, 255, 255, 0.25);
    border-radius: 18px;
    box-shadow: 
        0 0 15px rgba(255, 255, 255, 0.15),
        0 8px 30px rgba(0, 0, 0, 0.2);
    max-width: 90%;
    margin-left: auto;
    margin-right: auto;
    display: none;
    min-height: clamp(80px, 18vw, 110px);
    z-index: 1;
    position: relative;
}

.reasons-box h3 {
    color: #dc143c;
    font-size: clamp(1.1rem, 4.5vw, 1.4rem);
    margin-bottom: clamp(10px, 3vw, 15px);
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

#reason-text {
    color: #dc143c;
    font-size: clamp(0.95rem, 3.8vw, 1.2rem);
    font-weight: 600;
    min-height: clamp(40px, 10vw, 55px);
    transition: opacity 0.4s ease;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    line-height: 1.5;
}



/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(10px);
    padding: 20px;
}

.modal-content {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.95), rgba(118, 75, 162, 0.95));
    backdrop-filter: blur(30px);
    padding: clamp(25px, 6vw, 45px);
    border-radius: 25px;
    max-width: 90%;
    width: clamp(300px, 85vw, 650px);
    max-height: 85vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.5);
    animation: slideIn 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    border: 2px solid rgba(255, 255, 255, 0.3);
}

@keyframes slideIn {
    from { opacity: 0; transform: translateY(-80px) scale(0.9); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

.close {
    position: absolute;
    top: clamp(10px, 3vw, 18px);
    right: clamp(15px, 4vw, 25px);
    font-size: clamp(1.8rem, 5vw, 2.5rem);
    font-weight: bold;
    color: rgba(255, 255, 255, 0.8);
    cursor: pointer;
    transition: all 0.3s ease;
    line-height: 1;
}

.close:hover {
    color: #fff;
    transform: rotate(90deg) scale(1.2);
}

.modal-content h2 {
    color: #fff;
    font-size: clamp(1.6rem, 5vw, 2.2rem);
    margin-bottom: clamp(20px, 5vw, 35px);
    text-align: center;
    text-shadow: 0 3px 15px rgba(0, 0, 0, 0.3);
}

/* Timeline */
.timeline {
    position: relative;
    padding: 20px 0;
}

.timeline-item {
    margin-bottom: 30px;
    padding-left: 30px;
    border-left: 3px solid #ff69b4;
    position: relative;
}

.timeline-item::before {
    content: '❤️';
    position: absolute;
    left: -13px;
    top: 0;
    font-size: 1.5rem;
}

.timeline-date {
    font-weight: 800;
    color: #d63384;
    font-size: 1.2rem;
    margin-bottom: 8px;
}

.timeline-content {
    color: #555;
    font-size: 1rem;
    line-height: 1.6;
}

/* Music toggle button */
#music-toggle {
    position: fixed;
    bottom: clamp(15px, 3vw, 25px);
    right: clamp(15px, 3vw, 25px);
    background: rgba(255, 255, 255, 0.2);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    width: clamp(45px, 10vw, 60px);
    height: clamp(45px, 10vw, 60px);
    font-size: clamp(1.2rem, 3vw, 1.6rem);
    cursor: pointer;
    backdrop-filter: blur(15px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
}

#music-toggle:hover {
    transform: scale(1.15) rotate(15deg);
    background: rgba(255, 255, 255, 0.3);
    box-shadow: 0 10px 30px rgba(255, 20, 147, 0.5);
}

/* Yes page specific */
.yes-container h1.yes-title {
    font-size: clamp(1.5rem, 6vw, 2.8rem);
    animation: bounceTitle 1s ease infinite alternate;
    line-height: 1.2;
}

@keyframes bounceTitle {
    from { transform: translateY(0) scale(1); }
    to { transform: translateY(-10px) scale(1.03); }
}

.yes-message {
    font-size: clamp(1rem, 3.8vw, 1.4rem);
    color: rgba(255, 255, 255, 0.95);
    font-weight: 700;
    margin-top: clamp(15px, 4vw, 25px);
    animation: fadeIn 1s ease 0.5s both;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

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

.yes-container #cat-gif {
    width: clamp(130px, 35vw, 220px);
    height: clamp(130px, 35vw, 220px);
}

/* Countdown */
.countdown-container {
    margin-top: clamp(20px, 5vw, 35px);
    padding: clamp(15px, 4vw, 25px);
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    border: 2px solid rgba(255, 255, 255, 0.25);
    border-radius: 20px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.countdown-container h3 {
    color: #dc143c;
    font-size: clamp(1.1rem, 3.8vw, 1.4rem);
    margin-bottom: clamp(12px, 3vw, 18px);
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

#countdown {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(60px, 1fr));
    gap: clamp(8px, 2.5vw, 15px);
    max-width: 100%;
}

.countdown-item {
    background: linear-gradient(135deg, #dc143c, #ff1744);
    color: white;
    padding: clamp(10px, 2.5vw, 15px) clamp(8px, 2vw, 12px);
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(220, 20, 60, 0.5);
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.countdown-item span {
    font-size: clamp(1.3rem, 4.5vw, 2rem);
    font-weight: 900;
    display: block;
}

/* Promise Box */
.promise-box {
    margin-top: clamp(15px, 4vw, 25px);
    padding: clamp(15px, 3.5vw, 22px);
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    border-radius: 18px;
    border: 2px solid rgba(255, 255, 255, 0.25);
    max-width: 90%;
    margin-left: auto;
    margin-right: auto;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.promise-box h3 {
    color: #dc143c;
    font-size: clamp(1.1rem, 3.8vw, 1.4rem);
    margin-bottom: clamp(10px, 2.5vw, 15px);
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.promise-box p {
    color: rgba(255, 255, 255, 0.95);
    font-size: clamp(0.95rem, 3.5vw, 1.15rem);
    line-height: 1.6;
    font-style: italic;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

/* Surprise Button */
.surprise-btn {
    margin-top: clamp(15px, 4vw, 25px);
    background: linear-gradient(135deg, #ff0080, #ff1744);
    color: white;
    border: none;
    border-radius: 50px;
    padding: clamp(10px, 2.5vw, 15px) clamp(20px, 5vw, 35px);
    font-size: clamp(1rem, 3.8vw, 1.2rem);
    font-weight: 800;
    cursor: pointer;
    box-shadow: 0 6px 20px rgba(255, 0, 128, 0.6);
    transition: all 0.3s ease;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.surprise-btn:hover {
    transform: scale(1.08) translateY(-2px);
    box-shadow: 0 10px 30px rgba(255, 0, 128, 0.8);
}

/* Love Grid */
.love-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(clamp(150px, 40vw, 220px), 1fr));
    gap: clamp(12px, 3vw, 18px);
    margin-top: clamp(15px, 4vw, 25px);
}

.love-item {
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(15px);
    padding: clamp(15px, 4vw, 22px);
    border-radius: 15px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: #fff;
    font-weight: 700;
    text-align: center;
    opacity: 0;
    transform: scale(0.8);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
    font-size: clamp(0.95rem, 3.5vw, 1.1rem);
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

@keyframes popIn {
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@media (max-width: 768px) {
    body {
        position: fixed;
        overflow: hidden;
    }
    
    .container {
        padding: 12px;
        overflow: hidden;
    }
    
    h1 {
        font-size: 1.7rem;
        margin-bottom: 6px;
    }
    
    .subtitle {
        font-size: 1rem;
        margin-bottom: 12px;
    }
    
    #cat-gif {
        width: 130px;
        height: 130px;
    }
    
    .buttons {
        min-height: 55px;
        gap: 12px;
        margin-top: 12px;
    }
    
    #tease-toast {
        min-height: 40px;
        font-size: 1.05rem;
        margin-top: 10px;
    }
    
    .reasons-box {
        min-height: 90px;
        padding: 15px;
        margin-top: 12px;
    }
    
    .reasons-box h3 {
        font-size: 1.15rem;
        margin-bottom: 8px;
    }
    
    #reason-text {
        min-height: 45px;
        font-size: 1rem;
    }
    
    .modal-content {
        padding: 20px;
        max-width: 95%;
        margin: 10px;
    }
}

@media (max-width: 480px) {
    .love-grid {
        grid-template-columns: 1fr;
    }
    
    #countdown {
        grid-template-columns: repeat(2, 1fr);
    }
    
    h1 {
        font-size: 1.6rem;
    }
    
    .subtitle {
        font-size: 0.95rem;
    }
}
