@import url('https://fonts.googleapis.com/css2?family=Dancing+Script:wght@400;600;700&family=Poppins:wght@300;400;500;600&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    min-height: 100vh;
    overflow-x: hidden;
    background: radial-gradient(ellipse at bottom, #1b2735 0%, #090a0f 100%);
    position: relative;
}

/* Particle Canvas */
#particleCanvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
}

/* Aurora Background Effect */
.aurora {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
    pointer-events: none;
    overflow: hidden;
}

.aurora-layer {
    position: absolute;
    width: 200%;
    height: 200%;
    top: -50%;
    left: -50%;
    opacity: 0.6;
    animation: aurora 20s ease-in-out infinite;
}

.aurora-layer:nth-child(1) {
    background: linear-gradient(45deg, 
        transparent 30%, 
        rgba(255, 107, 157, 0.2) 50%, 
        transparent 70%);
    animation-delay: 0s;
}

.aurora-layer:nth-child(2) {
    background: linear-gradient(-45deg, 
        transparent 20%, 
        rgba(142, 255, 255, 0.15) 40%, 
        transparent 60%);
    animation-delay: -7s;
}

.aurora-layer:nth-child(3) {
    background: linear-gradient(90deg, 
        transparent 25%, 
        rgba(255, 182, 193, 0.25) 55%, 
        transparent 75%);
    animation-delay: -14s;
}

@keyframes aurora {
    0%, 100% { transform: rotate(0deg) scale(1); }
    33% { transform: rotate(120deg) scale(1.1); }
    66% { transform: rotate(240deg) scale(0.9); }
}

/* Floating Elements */
.floating-elements {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 3;
    pointer-events: none;
}

.floating-heart, .floating-star {
    position: absolute;
    font-size: 2rem;
    animation: floatMagical 12s infinite ease-in-out;
    opacity: 0.8;
}

@keyframes floatMagical {
    0% {
        transform: translateY(100vh) rotate(0deg) scale(0);
        opacity: 0;
    }
    10% {
        opacity: 0.8;
        transform: translateY(90vh) rotate(36deg) scale(1);
    }
    90% {
        opacity: 0.8;
        transform: translateY(10vh) rotate(324deg) scale(1);
    }
    100% {
        transform: translateY(-10vh) rotate(360deg) scale(0);
        opacity: 0;
    }
}

.floating-heart:nth-child(1) { left: 10%; animation-delay: 0s; color: #ff69b4; }
.floating-heart:nth-child(2) { left: 30%; animation-delay: 2s; color: #ff1493; }
.floating-heart:nth-child(3) { left: 50%; animation-delay: 4s; color: #ff69b4; }
.floating-star:nth-child(4) { left: 20%; animation-delay: 1s; color: #ffd700; }
.floating-star:nth-child(5) { left: 70%; animation-delay: 3s; color: #fff; }
.floating-star:nth-child(6) { left: 80%; animation-delay: 5s; color: #ffd700; }

/* Enhanced Music Toggle */
.music-toggle {
    position: fixed;
    top: 20px;
    right: 20px;
    background: linear-gradient(45deg, #ff6b9d, #c44569);
    border: none;
    border-radius: 50%;
    width: 60px;
    height: 60px;
    cursor: pointer;
    box-shadow: 0 10px 30px rgba(255, 107, 157, 0.5);
    z-index: 1000;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.music-toggle:hover {
    transform: scale(1.1);
    box-shadow: 0 15px 35px rgba(255, 107, 157, 0.6);
}

.equalizer {
    display: flex;
    align-items: end;
    height: 20px;
    gap: 2px;
}

.equalizer .bar {
    width: 3px;
    background: white;
    border-radius: 2px;
    animation: equalizerBounce 1s ease-in-out infinite;
}

.equalizer .bar:nth-child(1) { animation-delay: 0s; }
.equalizer .bar:nth-child(2) { animation-delay: 0.2s; }
.equalizer .bar:nth-child(3) { animation-delay: 0.4s; }
.equalizer .bar:nth-child(4) { animation-delay: 0.6s; }

@keyframes equalizerBounce {
    0%, 100% { height: 8px; }
    50% { height: 20px; }
}

.play-icon {
    color: white;
    font-size: 1.2rem;
}

/* Container */
.container {
    position: relative;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 20px;
}

/* Intro Animation */
.intro-animation {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 15;
    text-align: center;
}

.typewriter {
    font-family: 'Dancing Script', cursive;
    font-size: 2.5rem;
    color: #ff69b4;
    text-shadow: 0 0 20px rgba(255, 105, 180, 0.8);
}

.cursor {
    animation: blink 1s infinite;
}

@keyframes blink {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0; }
}

/* Main Content */
.content {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(20px);
    border-radius: 30px;
    padding: 40px 30px;
    max-width: 450px;
    width: 100%;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 
        0 25px 50px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    text-align: center;
    opacity: 0;
    transform: translateY(50px);
    animation: slideInUp 1s ease-out 3s forwards;
}

@keyframes slideInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Profile Section */
.profile-section {
    margin-bottom: 30px;
}

.avatar-placeholder {
    margin: 0 auto 20px;
    width: 100px;
    height: 100px;
    position: relative;
}

/* Beautiful Romantic Avatar */
.romantic-avatar {
    width: 100%;
    height: 100%;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.heart-center {
    font-size: 2.5rem;
    z-index: 5;
    animation: heartBeat 2s ease-in-out infinite;
    filter: drop-shadow(0 0 15px rgba(255, 105, 180, 0.8));
}

@keyframes heartBeat {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.2); }
}

/* Floating Petals Around Heart */
.floating-petals {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
}

.petal {
    position: absolute;
    font-size: 1.2rem;
    animation: petalFloat 4s ease-in-out infinite;
}

.petal-1 { 
    top: 10px; 
    left: 50%; 
    transform: translateX(-50%);
    animation-delay: 0s; 
}
.petal-2 { 
    top: 25px; 
    right: 15px; 
    animation-delay: 0.7s; 
}
.petal-3 { 
    bottom: 25px; 
    right: 15px; 
    animation-delay: 1.4s; 
}
.petal-4 { 
    bottom: 10px; 
    left: 50%; 
    transform: translateX(-50%);
    animation-delay: 2.1s; 
}
.petal-5 { 
    bottom: 25px; 
    left: 15px; 
    animation-delay: 2.8s; 
}
.petal-6 { 
    top: 25px; 
    left: 15px; 
    animation-delay: 3.5s; 
}

@keyframes petalFloat {
    0%, 100% { 
        transform: translateY(0) rotate(0deg) scale(0.8);
        opacity: 0.6;
    }
    50% { 
        transform: translateY(-10px) rotate(180deg) scale(1);
        opacity: 1;
    }
}

/* Sparkle Ring */
.sparkle-ring {
    position: absolute;
    width: 120%;
    height: 120%;
    top: -10%;
    left: -10%;
}

.sparkle {
    position: absolute;
    font-size: 0.8rem;
    animation: sparkleRotate 6s linear infinite;
}

.spark-1 { 
    top: 0; 
    left: 50%; 
    transform: translateX(-50%);
    animation-delay: 0s; 
}
.spark-2 { 
    top: 50%; 
    right: 0; 
    transform: translateY(-50%);
    animation-delay: 1.5s; 
}
.spark-3 { 
    bottom: 0; 
    left: 50%; 
    transform: translateX(-50%);
    animation-delay: 3s; 
}
.spark-4 { 
    top: 50%; 
    left: 0; 
    transform: translateY(-50%);
    animation-delay: 4.5s; 
}

@keyframes sparkleRotate {
    0% { 
        transform: rotate(0deg) scale(0.5);
        opacity: 0.5;
    }
    25% { 
        transform: rotate(90deg) scale(1);
        opacity: 1;
    }
    50% { 
        transform: rotate(180deg) scale(0.7);
        opacity: 0.8;
    }
    75% { 
        transform: rotate(270deg) scale(1);
        opacity: 1;
    }
    100% { 
        transform: rotate(360deg) scale(0.5);
        opacity: 0.5;
    }
}

.animated-title {
    font-family: 'Dancing Script', cursive;
    font-size: 2rem;
    background: linear-gradient(45deg, #ff6b9d, #fff, #c44569);
    background-size: 200% 200%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin: 0;
    animation: titleShimmer 3s ease-in-out infinite;
}

@keyframes titleShimmer {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

/* Message Cards */
.message-cards {
    margin-bottom: 40px;
}

.message-card {
    background: rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    padding: 20px;
    margin-bottom: 15px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    transform: translateX(-100px);
    opacity: 0;
    transition: all 0.6s ease;
    position: relative;
}

.message-card.slide-in {
    transform: translateX(0);
    opacity: 1;
}

/* NEW: Clickable Card Styles */
.clickable-card {
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.clickable-card:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateX(0) translateY(-5px) scale(1.02);
    box-shadow: 0 15px 30px rgba(255, 107, 157, 0.3);
    border: 1px solid rgba(255, 182, 193, 0.4);
}

.clickable-card:active {
    transform: translateX(0) translateY(-2px) scale(0.98);
}

.card-icon {
    font-size: 1.5rem;
    margin-bottom: 10px;
    transition: transform 0.3s ease;
}

.clickable-card:hover .card-icon {
    transform: scale(1.2) rotate(10deg);
}

.message-card p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1rem;
    line-height: 1.5;
    margin: 0;
}

/* NEW: Card Arrow Indicator */
.card-arrow {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1rem;
    opacity: 0;
    transition: all 0.3s ease;
}

.clickable-card:hover .card-arrow {
    opacity: 1;
    transform: translateY(-50%) translateX(5px);
}

/* NEW: Final Question Section */
.final-question {
    text-align: center;
}

.question-card {
    background: rgba(255, 255, 255, 0.12);
    border-radius: 25px;
    padding: 30px 25px;
    margin-bottom: 30px;
    border: 2px solid rgba(255, 182, 193, 0.3);
    backdrop-filter: blur(15px);
    animation: questionGlow 3s ease-in-out infinite alternate;
}

@keyframes questionGlow {
    0% {
        box-shadow: 0 10px 30px rgba(255, 107, 157, 0.3);
        border-color: rgba(255, 182, 193, 0.3);
    }
    100% {
        box-shadow: 0 15px 40px rgba(255, 107, 157, 0.5);
        border-color: rgba(255, 182, 193, 0.5);
    }
}

.question-icon {
    font-size: 2rem;
    margin-bottom: 15px;
    animation: questionPulse 2s ease-in-out infinite;
}

@keyframes questionPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.15); }
}

.question-card p {
    color: rgba(255, 255, 255, 0.95);
    font-size: 1.2rem;
    line-height: 1.6;
    margin: 0;
    font-weight: 500;
}

/* NEW: Back Button */
.back-button-container {
    margin-bottom: 20px;
}

.back-btn {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    padding: 10px 20px;
    color: rgba(255, 255, 255, 0.8);
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.back-btn:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-2px);
}

/* Interactive Buttons */
.interactive-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.magical-btn, .playful-btn {
    position: relative;
    padding: 15px 30px;
    border: none;
    border-radius: 25px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    overflow: hidden;
    min-width: 140px;
}

.magical-btn {
    background: linear-gradient(45deg, #ff6b9d, #c44569);
    color: white;
    box-shadow: 0 10px 30px rgba(255, 107, 157, 0.4);
}

.magical-btn:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(255, 107, 157, 0.6);
}

.playful-btn {
    background: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.playful-btn:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-3px);
}

/* NEW: Content Modal Styles */
.content-modal {
    background: linear-gradient(135deg, 
        rgba(255, 255, 255, 0.1) 0%, 
        rgba(255, 107, 157, 0.05) 50%, 
        rgba(196, 69, 105, 0.1) 100%);
    backdrop-filter: blur(25px);
    border-radius: 25px;
    max-width: 500px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    border: 1px solid rgba(255, 255, 255, 0.2);
    animation: modalSlideIn 0.5s ease-out;
}

@keyframes modalSlideIn {
    0% {
        transform: translateY(-50px) scale(0.9);
        opacity: 0;
    }
    100% {
        transform: translateY(0) scale(1);
        opacity: 1;
    }
}

.modal-header {
    padding: 25px 25px 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h2 {
    font-family: 'Dancing Script', cursive;
    font-size: 1.8rem;
    color: #ff69b4;
    margin: 0;
    text-shadow: 0 0 15px rgba(255, 105, 180, 0.6);
}

.close-btn {
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.7);
    font-size: 2rem;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.close-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    transform: rotate(90deg);
}

.modal-body {
    padding: 20px 25px;
}

.content-section {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.content-item {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    padding: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.content-item:hover {
    background: rgba(255, 255, 255, 0.08);
    transform: translateY(-2px);
}

.item-icon {
    font-size: 1.5rem;
    margin-bottom: 10px;
}

.content-item h3 {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.1rem;
    margin-bottom: 8px;
    font-weight: 600;
}

.content-item p {
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.5;
    margin: 0;
}

.modal-footer {
    padding: 15px 25px 25px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
}

.continue-btn {
    background: linear-gradient(45deg, #ff6b9d, #c44569);
    border: none;
    border-radius: 25px;
    padding: 12px 25px;
    color: white;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 8px 20px rgba(255, 107, 157, 0.4);
}

.continue-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 25px rgba(255, 107, 157, 0.5);
}

/* Success Modal */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    z-index: 2000;
    align-items: center;
    justify-content: center;
}

.magical-modal {
    background: linear-gradient(135deg, 
        rgba(255, 255, 255, 0.1) 0%, 
        rgba(255, 107, 157, 0.1) 50%, 
        rgba(196, 69, 105, 0.1) 100%);
    backdrop-filter: blur(20px);
    border-radius: 30px;
    padding: 50px;
    text-align: center;
    max-width: 400px;
    margin: 20px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.3);
    position: relative;
    overflow: hidden;
    animation: modalPop 0.5s ease-out;
}

@keyframes modalPop {
    0% {
        transform: scale(0.8);
        opacity: 0;
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

.success-title {
    font-family: 'Dancing Script', cursive;
    font-size: 2.5rem;
    color: #ff69b4;
    margin-bottom: 20px;
    text-shadow: 0 0 20px rgba(255, 105, 180, 0.8);
}

.pulse-text {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.2rem;
    margin-bottom: 15px;
    animation: pulse 2s ease-in-out infinite;
}

.glow-text {
    color: #ffd700;
    font-size: 1.1rem;
    text-shadow: 0 0 15px rgba(255, 215, 0, 0.8);
    margin-bottom: 20px;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

.countdown-timer {
    margin-top: 20px;
}

.countdown-timer span {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
    display: block;
    margin-bottom: 10px;
}

.timer-display {
    font-family: 'Dancing Script', cursive;
    font-size: 1.5rem;
    color: #ff69b4;
    text-shadow: 0 0 15px rgba(255, 105, 180, 0.6);
}

/* Mobile Responsiveness */
@media (max-width: 480px) {
    .content {
        padding: 30px 20px;
        margin: 10px;
    }
    
    .animated-title {
        font-size: 1.7rem;
    }
    
    .typewriter {
        font-size: 2rem;
    }
    
    .interactive-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .magical-btn, .playful-btn {
        width: 100%;
        max-width: 200px;
    }
    
    .music-toggle {
        width: 55px;
        height: 55px;
        top: 15px;
        right: 15px;
    }
    
    .floating-heart, .floating-star {
        font-size: 1.5rem;
    }
    
    .magical-modal {
        padding: 40px 30px;
        margin: 15px;
    }
    
    .success-title {
        font-size: 2rem;
    }
    
    .avatar-placeholder {
        width: 90px;
        height: 90px;
    }
    
    .heart-center {
        font-size: 2rem;
    }
    
    .content-modal {
        width: 95%;
        margin: 10px;
    }
    
    .modal-header {
        padding: 20px 20px 10px;
    }
    
    .modal-body {
        padding: 15px 20px;
    }
    
    .modal-footer {
        padding: 10px 20px 20px;
    }
    
    .question-card {
        padding: 25px 20px;
    }
    
    .question-card p {
        font-size: 1.1rem;
    }
}
