* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Georgia', 'Times New Roman', serif;
    background: linear-gradient(135deg, #ffeef8 0%, #fff0f5 50%, #ffeef8 100%);
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
    position: relative;
    z-index: 1;
}

.header {
    text-align: center;
    margin-bottom: 50px;
    animation: fadeInDown 1s ease-out;
}

.header h1 {
    font-size: 3.5rem;
    color: #d63384;
    margin-bottom: 10px;
    text-shadow: 2px 2px 4px rgba(214, 51, 132, 0.2);
}

.subtitle {
    font-size: 1.3rem;
    color: #c2185b;
    font-style: italic;
}

.flowers-top {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-bottom: 40px;
    flex-wrap: wrap;
    animation: fadeIn 1.5s ease-out;
}

.flower {
    font-size: 2.5rem;
    animation: float 3s ease-in-out infinite;
}

.flower:nth-child(1) { animation-delay: 0s; }
.flower:nth-child(2) { animation-delay: 0.5s; }
.flower:nth-child(3) { animation-delay: 1s; }
.flower:nth-child(4) { animation-delay: 1.5s; }
.flower:nth-child(5) { animation-delay: 2s; }

.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 25px;
    margin: 50px 0;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.card {
    aspect-ratio: 1;
    perspective: 1000px;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.card:hover {
    transform: translateY(-10px);
}

.card-front {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #ff9ec5 0%, #ffb3d1 100%);
    border-radius: 15px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 20px rgba(214, 51, 132, 0.3);
    border: 3px solid #fff;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.card-front::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.3) 0%, transparent 70%);
    animation: shine 3s infinite;
}

.card:hover .card-front {
    box-shadow: 0 12px 30px rgba(214, 51, 132, 0.4);
    transform: scale(1.05);
}

.card-front .heart {
    font-size: 3rem;
    margin-bottom: 10px;
    animation: pulse 2s ease-in-out infinite;
}

.card-front p {
    color: #fff;
    font-size: 1.1rem;
    font-weight: bold;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.2);
}

.hearts-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
}

.floating-heart {
    position: absolute;
    font-size: 1.5rem;
    opacity: 0.3;
    animation: floatHeart 15s infinite ease-in-out;
}

.floating-heart:nth-child(1) {
    left: 10%;
    animation-delay: 0s;
}

.floating-heart:nth-child(2) {
    left: 30%;
    animation-delay: 3s;
}

.floating-heart:nth-child(3) {
    left: 50%;
    animation-delay: 6s;
}

.floating-heart:nth-child(4) {
    left: 70%;
    animation-delay: 9s;
}

.floating-heart:nth-child(5) {
    left: 90%;
    animation-delay: 12s;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
    animation: fadeIn 0.3s ease;
}

.modal-content {
    background: linear-gradient(135deg, #fff 0%, #ffeef8 100%);
    margin: 10% auto;
    padding: 40px;
    border-radius: 20px;
    width: 90%;
    max-width: 500px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    position: relative;
    animation: slideUp 0.4s ease;
    border: 3px solid #ff9ec5;
}

.close {
    color: #d63384;
    float: right;
    font-size: 32px;
    font-weight: bold;
    cursor: pointer;
    line-height: 20px;
    transition: transform 0.2s;
}

.close:hover {
    transform: scale(1.2);
    color: #c2185b;
}

.message-content {
    text-align: center;
    padding: 20px 0;
}

.message-heart {
    font-size: 3rem;
    display: block;
    margin-bottom: 20px;
    animation: pulse 2s ease-in-out infinite;
}

#messageText {
    font-size: 1.3rem;
    line-height: 1.8;
    color: #333;
    font-style: italic;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-15px);
    }
}

@keyframes floatHeart {
    0% {
        transform: translateY(100vh) rotate(0deg);
        opacity: 0;
    }
    10% {
        opacity: 0.3;
    }
    90% {
        opacity: 0.3;
    }
    100% {
        transform: translateY(-100px) rotate(360deg);
        opacity: 0;
    }
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
}

@keyframes shine {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive */
@media (max-width: 768px) {
    .header h1 {
        font-size: 2.5rem;
    }
    
    .cards-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    
    .modal-content {
        padding: 30px 20px;
        margin: 20% auto;
    }
}

@media (max-width: 480px) {
    .cards-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    
    .card-front .heart {
        font-size: 2rem;
    }
    
    .card-front p {
        font-size: 0.9rem;
    }
}

