/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

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

/* Animated Hearts Background - More Hearts! */
.hearts-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 1;
    pointer-events: none;
}

.hearts-bg::before,
.hearts-bg::after {
    content: '❤️';
    position: absolute;
    font-size: 35px;
    animation: float 12s infinite;
    opacity: 0.4;
}

.hearts-bg::before {
    left: 15%;
    animation-delay: 0s;
}

.hearts-bg::after {
    content: '💕';
    left: 75%;
    animation-delay: 5s;
}

/* Additional floating hearts */
.container::before,
.container::after {
    content: '💖';
    position: fixed;
    font-size: 30px;
    animation: float 14s infinite;
    opacity: 0.35;
    pointer-events: none;
    z-index: 1;
}

.container::before {
    left: 40%;
    animation-delay: 3s;
}

.container::after {
    content: '💗';
    left: 60%;
    animation-delay: 8s;
}

@keyframes float {
    0% {
        transform: translateY(100vh) rotate(0deg);
        opacity: 0;
    }
    10% {
        opacity: 0.3;
    }
    90% {
        opacity: 0.3;
    }
    100% {
        transform: translateY(-100px) rotate(360deg);
        opacity: 0;
    }
}

/* Container */
.container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    position: relative;
    z-index: 2;
}

/* Start Photo Inside Content Box - Home Page Only */
.start-photo-box {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 30px;
    overflow: hidden;
    z-index: -1;
}

.start-photo-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    opacity: 0.50;
    filter: blur(2px);
}

/* Content Box */
.content-box {
    background: rgba(255, 255, 255, 0.98);
    border-radius: 30px;
    padding: 40px 30px;
    max-width: 600px;
    width: 100%;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
    position: relative;
    z-index: 1;
    overflow: hidden;
}

.content-box > *:not(.start-photo-box) {
    position: relative;
    z-index: 10;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

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

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

.animate-fade-in {
    animation: fadeIn 1s ease-out;
}

.animate-slide-in {
    animation: slideIn 1s ease-out;
}

.animate-zoom-in {
    animation: zoomIn 0.8s ease-out;
}

.animate-bounce-in {
    animation: bounceIn 1s ease-out;
}

/* Typography */
h1, h2 {
    text-align: center;
    color: #c73866;
    margin-bottom: 20px;
}

.glowing-text {
    font-size: 2.5em;
    text-shadow: 0 0 20px rgba(199, 56, 102, 0.5);
    animation: glow 2s ease-in-out infinite;
}

@keyframes glow {
    0%, 100% {
        text-shadow: 0 0 20px rgba(199, 56, 102, 0.5);
    }
    50% {
        text-shadow: 0 0 30px rgba(199, 56, 102, 0.8);
    }
}

.main-name {
    font-size: 2em;
    color: #764ba2;
    margin-top: 10px;
}

.page-title {
    font-size: 1.8em;
    margin-bottom: 30px;
    color: #667eea;
}

/* Home Page */
.intro-text {
    text-align: center;
    font-size: 1.2em;
    color: #555;
    line-height: 1.8;
    margin: 20px 0;
}

.birthday-date {
    text-align: center;
    margin: 30px 0;
    padding: 20px;
    background: linear-gradient(135deg, #ffd3e0 0%, #ffb3d9 100%);
    border-radius: 15px;
}

.date-label {
    display: block;
    font-size: 1em;
    color: #666;
    margin-bottom: 10px;
}

.date-value {
    display: block;
    font-size: 1.5em;
    font-weight: bold;
    color: #c73866;
}

/* Letter Page */
.letter-content {
    background: #fff9f9;
    padding: 30px;
    border-radius: 20px;
    border-left: 5px solid #c73866;
    margin: 20px 0;
}

.letter-para {
    font-size: 1.1em;
    color: #444;
    line-height: 1.8;
    margin-bottom: 20px;
    text-align: justify;
}

.letter-signature {
    text-align: right;
    font-style: italic;
    color: #c73866;
    font-size: 1.2em;
    margin-top: 30px;
    font-weight: bold;
}

/* Shayari Page */
.shayari-container {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.shayari-box {
    background: linear-gradient(135deg, #fff5f7 0%, #ffe0eb 100%);
    padding: 25px;
    border-radius: 15px;
    border: 2px solid #ffc0d9;
    box-shadow: 0 5px 15px rgba(199, 56, 102, 0.1);
    transition: transform 0.3s ease;
}

.shayari-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(199, 56, 102, 0.2);
}

.shayari-box.special-shayari {
    background: linear-gradient(135deg, #fff0f5 0%, #ffe4f0 100%);
    border: 3px solid #c73866;
    padding: 30px;
}

/* Loyalty Page Styles */
.loyalty-message {
    text-align: center;
    margin: 30px 0;
    padding: 30px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.3);
}

.loyalty-title {
    color: white;
    font-size: 1.8em;
    line-height: 1.6;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    margin: 0;
}

.loyalty-shayari {
    background: linear-gradient(135deg, #ffeef0 0%, #fff5f7 100%);
    border: 3px solid #c73866;
    padding: 25px;
    position: relative;
}

.shayari-number {
    position: absolute;
    top: -15px;
    left: 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.9em;
    font-weight: bold;
    box-shadow: 0 3px 10px rgba(102, 126, 234, 0.3);
}

.audio-info {
    text-align: center;
    margin: 20px 0;
    padding: 15px;
    background: rgba(102, 126, 234, 0.1);
    border-radius: 10px;
}

.playing-text {
    color: #667eea;
    font-size: 1em;
    font-style: italic;
    margin: 0;
}

.shayari-text {
    font-size: 1.15em;
    color: #c73866;
    line-height: 1.8;
    text-align: center;
    font-style: italic;
    font-weight: 500;
}

/* Memories Page */
.memories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin: 20px 0;
}

/* Single Memory Page Styles */
.memory-single-page .content-box {
    max-width: 500px;
}

/* Fun Memory Page Styles */
.memory-fun-page .content-box {
    max-width: 700px;
}

.fun-subtitle {
    text-align: center;
    font-size: 1.2em;
    color: #764ba2;
    margin-bottom: 30px;
    font-style: italic;
}

.funny-photos-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin: 30px 0;
}

.funny-photo-card {
    background: linear-gradient(135deg, #FFF9C4 0%, #FFD93D 100%);
    border-radius: 15px;
    padding: 15px;
    box-shadow: 0 5px 15px rgba(255, 193, 7, 0.3);
    transition: transform 0.3s ease;
}

.funny-photo-card:hover {
    transform: scale(1.05) rotate(2deg);
}

.funny-photo-frame {
    width: 100%;
    border-radius: 12px;
    overflow: hidden;
    background: white;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
}

.funny-photo-frame img {
    width: 100%;
    height: auto;
    display: block;
}

.funny-caption {
    text-align: center;
    color: #f57c00;
    font-weight: bold;
    font-size: 1em;
    margin-top: 12px;
}

.fun-message {
    background: linear-gradient(135deg, #FFE0B2 0%, #FFCCBC 100%);
    border-radius: 15px;
    padding: 25px;
    margin: 30px 0;
    text-align: center;
}

.fun-text {
    font-size: 1.2em;
    color: #d84315;
    line-height: 1.8;
    font-weight: 500;
}

.single-memory {
    text-align: center;
    margin: 20px 0;
}

.photo-frame {
    width: 100%;
    max-width: 400px;
    margin: 0 auto 25px;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(199, 56, 102, 0.3);
    background: linear-gradient(135deg, #ffd3e0 0%, #c7b3ff 100%);
    animation: photoGlow 3s ease-in-out infinite;
}

@keyframes photoGlow {
    0%, 100% {
        box-shadow: 0 10px 30px rgba(199, 56, 102, 0.3);
    }
    50% {
        box-shadow: 0 15px 40px rgba(199, 56, 102, 0.5);
    }
}

.photo-frame img {
    width: 100%;
    height: auto;
    display: block;
}

.memory-text {
    font-size: 1.4em;
    color: #c73866;
    font-weight: bold;
    margin: 20px 0 10px;
}

.memory-subtext {
    font-size: 1.1em;
    color: #764ba2;
    font-style: italic;
    margin-bottom: 25px;
}

.music-control {
    margin: 30px 0;
}

.music-btn {
    padding: 12px 35px;
    font-size: 1.2em;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    font-weight: bold;
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.3);
    transition: all 0.3s ease;
}

.music-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.5);
}

.music-btn:active {
    transform: scale(0.95);
}

.memory-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.memory-card:hover {
    transform: scale(1.05);
}

.photo-placeholder {
    width: 100%;
    height: 250px;
    background: linear-gradient(135deg, #ffd3e0 0%, #c7b3ff 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

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

.photo-placeholder p {
    color: #764ba2;
    font-size: 1.1em;
    text-align: center;
    padding: 20px;
}

.memory-caption {
    padding: 15px;
    text-align: center;
    color: #c73866;
    font-weight: 500;
    font-size: 1em;
}

/* Quotes Page */
.quotes-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.quote-box {
    background: linear-gradient(135deg, #e0c3fc 0%, #8ec5fc 100%);
    padding: 25px;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.2);
    transition: all 0.3s ease;
}

.quote-box:hover {
    transform: translateX(10px);
}

.quote-box.special-quote {
    background: linear-gradient(135deg, #ffd3e0 0%, #ffb3d9 100%);
    border: 3px solid #c73866;
    transform: scale(1.05);
}

.quote-text {
    font-size: 1.1em;
    color: #333;
    text-align: center;
    line-height: 1.7;
    font-style: italic;
}

/* Proposal Page */
.proposal-content {
    text-align: center;
}

.question-box {
    margin: 30px 0;
}

.big-question {
    font-size: 2em;
    color: #c73866;
    font-weight: bold;
    margin-bottom: 15px;
}

.sub-text {
    font-size: 1.2em;
    color: #764ba2;
    font-style: italic;
}

.buttons-container {
    position: relative;
    height: 200px;
    margin: 40px 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 30px;
}

.yes-btn, .no-btn {
    padding: 15px 40px;
    font-size: 1.3em;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.yes-btn {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    color: white;
}

.yes-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 8px 25px rgba(245, 87, 108, 0.4);
}

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

.no-btn {
    background: linear-gradient(135deg, #a8a8a8 0%, #7a7a7a 100%);
    color: white;
    transition: all 0.1s ease;
}

.no-btn:hover {
    animation: wiggle 0.3s ease;
}

@keyframes wiggle {
    0%, 100% { transform: rotate(0deg); }
    25% { transform: rotate(-5deg); }
    75% { transform: rotate(5deg); }
}

@keyframes bounce {
    0% { transform: scale(1) translateY(0); }
    25% { transform: scale(1.2) translateY(-10px); }
    50% { transform: scale(0.9) translateY(0); }
    75% { transform: scale(1.1) translateY(-5px); }
    100% { transform: scale(1) translateY(0); }
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    10%, 30%, 50%, 70%, 90% { transform: translateX(-10px); }
    20%, 40%, 60%, 80% { transform: translateX(10px); }
}

.shake {
    animation: shake 0.5s ease;
}

.hint-text {
    color: #888;
    font-size: 0.9em;
    font-style: italic;
    margin-top: 20px;
}

/* Final Page */
.final-page {
    position: relative;
    overflow: hidden;
}

.fireworks {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.celebration-title {
    font-size: 3em;
    color: #f5576c;
    animation: bounce 1s infinite;
}

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

.final-message {
    text-align: center;
}

.heart-big {
    font-size: 5em;
    animation: heartbeat 1.5s infinite;
}

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

.final-text {
    font-size: 1.3em;
    color: #555;
    margin: 20px 0;
}

.love-declaration {
    margin: 40px 0;
    padding: 30px;
    background: linear-gradient(135deg, #ffd3e0 0%, #ffb3d9 100%);
    border-radius: 20px;
}

.big-love {
    font-size: 2.5em;
    color: #c73866;
    margin-bottom: 10px;
}

.forever-text {
    font-size: 1.5em;
    color: #764ba2;
    font-style: italic;
}

.birthday-wish-final {
    margin: 30px 0;
    padding: 25px;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 15px;
}

.wish-text {
    font-size: 1.1em;
    color: #444;
    line-height: 1.8;
    margin: 10px 0;
}

.final-shayari {
    background: linear-gradient(135deg, #e0c3fc 0%, #8ec5fc 100%);
    padding: 25px;
    border-radius: 15px;
    margin: 30px 0;
}

.ending-message {
    margin: 30px 0;
}

.ending-message p {
    font-size: 1.2em;
    color: #555;
    margin: 10px 0;
}

.signature {
    font-style: italic;
    color: #c73866;
    font-weight: bold;
    margin-top: 20px;
}

.falling-heart {
    position: fixed;
    top: -50px;
    animation: fall linear;
    pointer-events: none;
    z-index: 100;
}

@keyframes fall {
    to {
        top: 100vh;
        transform: translateX(50px) rotate(360deg);
    }
}

/* Falling Items with Messages */
.falling-item {
    position: fixed;
    top: -50px;
    animation: fallingAnimation linear forwards;
    pointer-events: none;
    z-index: 9999;
    font-weight: bold;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.8);
    color: #ff1493;
}

@keyframes fallingAnimation {
    0% {
        top: -50px;
        opacity: 0;
        transform: translateX(0) rotate(0deg);
    }
    10% {
        opacity: 1;
    }
    90% {
        opacity: 1;
    }
    100% {
        top: 100vh;
        opacity: 0;
        transform: translateX(100px) rotate(360deg);
    }
}

/* Flower Bokeh Effect */
.flower-bokeh {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
    overflow: hidden;
}

.bokeh-circle {
    position: absolute;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 182, 193, 0.6) 0%, rgba(255, 192, 203, 0.4) 30%, transparent 70%);
    filter: blur(20px);
    animation: bokehFloat 15s ease-in-out infinite;
}

@keyframes bokehFloat {
    0%, 100% {
        transform: translate(0, 0) scale(1);
        opacity: 0.4;
    }
    25% {
        transform: translate(30px, -30px) scale(1.2);
        opacity: 0.6;
    }
    50% {
        transform: translate(-20px, 20px) scale(0.8);
        opacity: 0.5;
    }
    75% {
        transform: translate(20px, -10px) scale(1.1);
        opacity: 0.7;
    }
}

/* Buttons */
.next-btn, .restart-btn {
    display: inline-block;
    margin-top: 30px;
    padding: 15px 40px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    text-decoration: none;
    border-radius: 50px;
    font-size: 1.2em;
    font-weight: bold;
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.3);
    transition: all 0.3s ease;
}

.next-btn:hover, .restart-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.5);
}

.next-btn:active, .restart-btn:active {
    transform: translateY(0);
}

.next-btn.pulse {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% {
        box-shadow: 0 5px 15px rgba(102, 126, 234, 0.3);
    }
    50% {
        box-shadow: 0 5px 30px rgba(245, 87, 108, 0.6);
    }
}

/* Mobile Optimization */
@media (max-width: 768px) {
    .content-box {
        padding: 30px 20px;
    }
    
    .glowing-text {
        font-size: 2em;
    }
    
    .main-name {
        font-size: 1.5em;
    }
    
    .page-title {
        font-size: 1.5em;
    }
    
    .intro-text {
        font-size: 1em;
    }
    
    .letter-para {
        font-size: 1em;
    }
    
    .shayari-text {
        font-size: 1em;
    }
    
    .loyalty-title {
        font-size: 1.3em;
    }
    
    .shayari-number {
        font-size: 0.8em;
        padding: 4px 12px;
    }
    
    .memories-grid {
        grid-template-columns: 1fr;
    }
    
    .funny-photos-grid {
        grid-template-columns: 1fr;
    }
    
    .photo-placeholder {
        height: 300px;
    }
    
    .photo-frame {
        max-width: 100%;
    }
    
    .memory-text {
        font-size: 1.2em;
    }
    
    .memory-subtext {
        font-size: 1em;
    }
    
    .music-btn {
        padding: 10px 25px;
        font-size: 1em;
    }
    
    .big-question {
        font-size: 1.5em;
    }
    
    .buttons-container {
        flex-direction: column;
        height: 250px;
    }
    
    .yes-btn, .no-btn {
        padding: 12px 30px;
        font-size: 1.1em;
    }
    
    .celebration-title {
        font-size: 2em;
    }
    
    .heart-big {
        font-size: 3em;
    }
    
    .big-love {
        font-size: 1.8em;
    }
    
    .next-btn, .restart-btn {
        padding: 12px 30px;
        font-size: 1em;
    }
}

@media (max-width: 480px) {
    .content-box {
        padding: 20px 15px;
        border-radius: 20px;
    }
    
    .glowing-text {
        font-size: 1.5em;
    }
    
    .main-name {
        font-size: 1.2em;
    }
    
    .shayari-box {
        padding: 15px;
    }
    
    .quote-box {
        padding: 15px;
    }
}
