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

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

/* Floating Hearts Background */
.hearts-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.heart {
    position: absolute;
    width: 20px;
    height: 20px;
    background: #ff6b9d;
    transform: rotate(45deg);
    animation: float 6s ease-in-out infinite;
    opacity: 0.7;
}

.heart:before,
.heart:after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    background: #ff6b9d;
    border-radius: 50%;
}

.heart:before {
    top: -10px;
    left: 0;
}

.heart:after {
    top: 0;
    left: -10px;
}

.heart:nth-child(1) { left: 10%; animation-delay: 0s; }
.heart:nth-child(2) { left: 20%; animation-delay: 1s; }
.heart:nth-child(3) { left: 30%; animation-delay: 2s; }
.heart:nth-child(4) { left: 40%; animation-delay: 3s; }
.heart:nth-child(5) { left: 60%; animation-delay: 1.5s; }
.heart:nth-child(6) { left: 70%; animation-delay: 2.5s; }
.heart:nth-child(7) { left: 80%; animation-delay: 0.5s; }
.heart:nth-child(8) { left: 90%; animation-delay: 3.5s; }

@keyframes float {
    0%, 100% {
        transform: translateY(100vh) rotate(45deg) scale(0);
        opacity: 0;
    }
    10% {
        opacity: 0.7;
        transform: translateY(90vh) rotate(45deg) scale(1);
    }
    90% {
        opacity: 0.7;
        transform: translateY(-10vh) rotate(45deg) scale(1);
    }
}

/* Particles Background */
#particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

/* Main Container */
.container {
    position: relative;
    z-index: 10;
    min-height: 100vh;
}

/* Section Styles */
.section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.8s ease;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 5;
}

.section.active {
    opacity: 1;
    transform: translateY(0);
    position: relative;
    z-index: 20;
}

.content {
    text-align: center;
    max-width: 800px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 3rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    animation: slideIn 1s ease-out;
    position: relative;
    z-index: 10;
}

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

/* Typography */
.main-title {
    font-family: 'Dancing Script', cursive;
    font-size: 4rem;
    color: #fff;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    animation: glow 2s ease-in-out infinite alternate;
}

@keyframes glow {
    from { text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3), 0 0 20px rgba(255, 255, 255, 0.5); }
    to { text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3), 0 0 30px rgba(255, 255, 255, 0.8); }
}

.section-title {
    font-family: 'Dancing Script', cursive;
    font-size: 3rem;
    color: #fff;
    margin-bottom: 2rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.subtitle {
    font-size: 1.5rem;
    color: #f8f9fa;
    margin-bottom: 2rem;
    opacity: 0.9;
}

/* Buttons */
.next-btn, .proposal-btn {
    background: linear-gradient(45deg, #ff6b9d, #c44569);
    color: white;
    border: none;
    padding: 1rem 2rem;
    font-size: 1.2rem;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(255, 107, 157, 0.4);
    font-weight: 500;
    margin-top: 1rem;
    position: relative;
    z-index: 100;
    pointer-events: auto;
}

.next-btn:hover, .proposal-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(255, 107, 157, 0.6);
    background: linear-gradient(45deg, #c44569, #ff6b9d);
}

.proposal-btn {
    font-size: 1.5rem;
    padding: 1.5rem 3rem;
    animation: pulse 2s infinite;
}

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

/* Love Message */
.love-message p {
    font-size: 1.3rem;
    color: #fff;
    margin-bottom: 1rem;
    opacity: 0;
    animation: fadeInUp 0.8s ease forwards;
    line-height: 1.6;
}

.love-message p:nth-child(1) { animation-delay: 0.2s; }
.love-message p:nth-child(2) { animation-delay: 0.4s; }
.love-message p:nth-child(3) { animation-delay: 0.6s; }
.love-message p:nth-child(4) { animation-delay: 0.8s; }

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

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

.memory-card {
    background: rgba(255, 255, 255, 0.15);
    border-radius: 15px;
    padding: 2rem;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.memory-card:hover {
    transform: translateY(-10px);
    background: rgba(255, 255, 255, 0.25);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.memory-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.memory-card h3 {
    color: #fff;
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.memory-card p {
    color: #f8f9fa;
    opacity: 0.9;
}

/* Love Reasons */
.love-reasons {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin: 2rem 0;
}

.reason {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    padding: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    opacity: 0;
    animation: slideInLeft 0.6s ease forwards;
}

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

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

.reason:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.02);
}

.reason-icon {
    font-size: 2rem;
}

.reason-text {
    color: #fff;
    font-size: 1.2rem;
    flex: 1;
}

/* Proposal Section */
.proposal-text {
    margin: 2rem 0;
}

.proposal-text p {
    font-size: 1.4rem;
    color: #fff;
    margin-bottom: 1rem;
    line-height: 1.6;
}

.big-question {
    font-size: 1.6rem !important;
    font-weight: 600;
    color: #ffeb3b !important;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

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

.ring-animation {
    font-size: 6rem;
    animation: spin 3s linear infinite;
    margin-bottom: 2rem;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.proposal-question {
    font-family: 'Dancing Script', cursive;
    font-size: 4rem;
    color: #fff;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    animation: heartbeat 1.5s ease-in-out infinite;
}

@keyframes heartbeat {
    0% { transform: scale(1); }
    14% { transform: scale(1.1); }
    28% { transform: scale(1); }
    42% { transform: scale(1.1); }
    70% { transform: scale(1); }
}

.proposal-subtitle {
    font-size: 1.3rem;
    color: #f8f9fa;
    margin-bottom: 3rem;
}

.proposal-buttons {
    display: flex;
    gap: 2rem;
    justify-content: center;
    flex-wrap: wrap;
}

.yes-btn, .no-btn {
    padding: 1.5rem 3rem;
    font-size: 1.5rem;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
}

.yes-btn {
    background: linear-gradient(45deg, #4CAF50, #45a049);
    color: white;
    box-shadow: 0 4px 15px rgba(76, 175, 80, 0.4);
}

.yes-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(76, 175, 80, 0.6);
}

.no-btn {
    background: linear-gradient(45deg, #ff9800, #f57c00);
    color: white;
    box-shadow: 0 4px 15px rgba(255, 152, 0, 0.4);
}

.no-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(255, 152, 0, 0.6);
}

/* Celebration */
.celebration-content {
    text-align: center;
}

.celebration-title {
    font-family: 'Dancing Script', cursive;
    font-size: 5rem;
    color: #fff;
    margin-bottom: 1rem;
    animation: bounce 1s ease infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-30px); }
    60% { transform: translateY(-15px); }
}

.celebration-text {
    font-size: 2rem;
    color: #fff;
    margin-bottom: 1rem;
}

.celebration-subtitle {
    font-size: 1.5rem;
    color: #ffeb3b;
    font-weight: 600;
}

/* Fireworks */
.fireworks {
    position: relative;
    height: 200px;
    margin-top: 2rem;
}

.firework {
    position: absolute;
    width: 4px;
    height: 4px;
    background: #fff;
    border-radius: 50%;
    animation: firework 1.5s ease-out infinite;
}

.firework:nth-child(1) {
    left: 20%;
    animation-delay: 0s;
    background: #ff6b9d;
}

.firework:nth-child(2) {
    left: 50%;
    animation-delay: 0.5s;
    background: #4CAF50;
}

.firework:nth-child(3) {
    left: 80%;
    animation-delay: 1s;
    background: #ffeb3b;
}

@keyframes firework {
    0% {
        transform: translateY(100px) scale(1);
        opacity: 1;
    }
    50% {
        transform: translateY(0) scale(1.5);
        opacity: 0.8;
    }
    100% {
        transform: translateY(-50px) scale(0);
        opacity: 0;
    }
}

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

.modal-content {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    margin: 10% auto;
    padding: 2rem;
    border-radius: 20px;
    width: 80%;
    max-width: 500px;
    text-align: center;
    position: relative;
    animation: modalSlideIn 0.5s ease;
}

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

.close {
    color: #fff;
    float: right;
    font-size: 2rem;
    font-weight: bold;
    cursor: pointer;
    position: absolute;
    top: 1rem;
    right: 1.5rem;
}

.close:hover {
    opacity: 0.7;
}

#modalContent {
    color: #fff;
    font-size: 1.2rem;
    line-height: 1.6;
    margin-top: 1rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .content {
        padding: 2rem;
        margin: 1rem;
    }
    
    .main-title {
        font-size: 3rem;
    }
    
    .section-title {
        font-size: 2.5rem;
    }
    
    .proposal-question {
        font-size: 3rem;
    }
    
    .celebration-title {
        font-size: 4rem;
    }
    
    .proposal-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .memories-grid {
        grid-template-columns: 1fr;
    }
}

/* Special Effects */
.sparkle {
    animation: sparkle 1s ease-in-out;
}

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

.shake {
    animation: shake 0.5s ease-in-out;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }
}
