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

:root {
    --primary-color: #ff6b9d;
    --secondary-color: #a8e6cf;
    --accent-color: #ffd3b6;
    --dark-bg: #1a1a2e;
    --light-bg: #fff5f7;
    --text-dark: #2d3436;
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

html {
    scroll-behavior: smooth;
}

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

/* Background Animationen */
.background-animation {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    pointer-events: none;
}

.stars {
    position: absolute;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(2px 2px at 20% 30%, white, rgba(0,0,0,0)),
        radial-gradient(2px 2px at 60% 70%, white, rgba(0,0,0,0)),
        radial-gradient(1px 1px at 50% 50%, white, rgba(0,0,0,0)),
        radial-gradient(1px 1px at 80% 10%, white, rgba(0,0,0,0)),
        radial-gradient(2px 2px at 90% 60%, white, rgba(0,0,0,0)),
        radial-gradient(1px 1px at 30% 80%, white, rgba(0,0,0,0)),
        radial-gradient(1px 1px at 10% 90%, white, rgba(0,0,0,0)),
        radial-gradient(2px 2px at 40% 40%, white, rgba(0,0,0,0));
    background-size: 200% 200%;
    background-position: 0% 0%;
    animation: twinkle 3s ease-in-out infinite;
    opacity: 0.5;
}

.hearts {
    position: absolute;
    width: 100%;
    height: 100%;
}

@keyframes twinkle {
    0%, 100% { opacity: 0.5; }
    50% { opacity: 0.1; }
}

@keyframes floatingHearts {
    0% {
        transform: translateY(100vh) translateX(0) rotate(0deg);
        opacity: 1;
    }
    100% {
        transform: translateY(-100vh) translateX(100px) rotate(360deg);
        opacity: 0;
    }
}

.heart-float {
    position: absolute;
    font-size: 2rem;
    animation: floatingHearts 6s linear forwards;
    pointer-events: none;
}

/* Container */
.container {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Header */
header {
    text-align: center;
    color: white;
    margin-bottom: 40px;
    animation: slideDown 0.8s ease-out;
}

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

.title {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 10px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    animation: glow 2s ease-in-out infinite;
}

@keyframes glow {
    0%, 100% {
        text-shadow: 0 0 10px rgba(255, 107, 157, 0.5), 0 2px 10px rgba(0, 0, 0, 0.3);
    }
    50% {
        text-shadow: 0 0 20px rgba(255, 107, 157, 0.8), 0 2px 10px rgba(0, 0, 0, 0.3);
    }
}

.time-display {
    font-size: 1.2rem;
    opacity: 0.9;
    font-weight: 300;
}

/* Main Content */
main {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 30px;
    margin-bottom: 40px;
}

/* Message Section */
.message-section {
    animation: fadeInUp 1s ease-out 0.3s both;
}

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

.message-card {
    background: white;
    border-radius: 20px;
    padding: 40px 30px;
    box-shadow: var(--shadow);
    text-align: center;
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #fff5f7 0%, #fff0f5 100%);
}

.message-card::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(255, 107, 157, 0.1) 0%, transparent 70%);
    border-radius: 50%;
    animation: float 6s ease-in-out infinite;
}

.message-card::after {
    content: '';
    position: absolute;
    bottom: -50%;
    left: -50%;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(168, 230, 207, 0.1) 0%, transparent 70%);
    border-radius: 50%;
    animation: float 8s ease-in-out infinite 1s;
}

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

.message-emoji {
    font-size: 4rem;
    margin-bottom: 15px;
    display: inline-block;
    animation: bounce 2s ease-in-out infinite;
    position: relative;
    z-index: 1;
}

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

.message-title {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 15px;
    position: relative;
    z-index: 1;
    font-weight: 600;
}

.message-text {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-dark);
    margin-bottom: 20px;
    position: relative;
    z-index: 1;
}

.message-quote {
    font-style: italic;
    color: #666;
    font-size: 0.95rem;
    position: relative;
    z-index: 1;
    opacity: 0.8;
    border-top: 2px solid var(--primary-color);
    padding-top: 15px;
}

/* Interactive Section */
.interactive-section {
    animation: fadeInUp 1s ease-out 0.6s both;
}

.button-group {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
}

.btn {
    padding: 15px 25px;
    border: none;
    border-radius: 15px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    color: white;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.3);
    transition: left 0.3s ease;
    z-index: 1;
}

.btn:hover::before {
    left: 100%;
}

.btn-emoji {
    font-size: 1.3rem;
}

.btn-primary {
    background: linear-gradient(135deg, #ff6b9d 0%, #ff8fab 100%);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(255, 107, 157, 0.4);
}

.btn-secondary {
    background: linear-gradient(135deg, #a8e6cf 0%, #7dd3c0 100%);
    color: var(--text-dark);
}

.btn-secondary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(168, 230, 207, 0.4);
}

.btn-tertiary {
    background: linear-gradient(135deg, #ffd3b6 0%, #ffb347 100%);
    color: var(--text-dark);
}

.btn-tertiary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(255, 211, 182, 0.4);
}

/* Content Section */
.content-section {
    animation: fadeIn 0.3s ease-out both;
    position: relative;
    z-index: 100;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.content-card {
    background: white;
    border-radius: 20px;
    padding: 35px 30px;
    box-shadow: var(--shadow);
    position: relative;
    animation: popIn 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

@keyframes popIn {
    0% {
        opacity: 0;
        transform: scale(0.8);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

.close-btn {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 1.5rem;
    cursor: pointer;
    transition: all 0.2s ease;
    color: #999;
}

.close-btn:hover {
    color: var(--primary-color);
    transform: rotate(90deg);
}

#contentBody {
    animation: slideInContent 0.5s ease-out;
}

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

#contentBody h3 {
    color: var(--primary-color);
    font-size: 1.5rem;
    margin-bottom: 15px;
    text-align: center;
}

#contentBody p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-dark);
    text-align: center;
    margin-bottom: 15px;
}

#contentBody .answer-btn {
    background: linear-gradient(135deg, var(--primary-color) 0%, #ff8fab 100%);
    color: white;
    border: none;
    padding: 10px 25px;
    border-radius: 20px;
    cursor: pointer;
    font-weight: 600;
    display: block;
    margin: 20px auto 0;
    transition: all 0.3s ease;
}

#contentBody .answer-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 5px 15px rgba(255, 107, 157, 0.4);
}

/* Special Section */
.special-section {
    animation: fadeInUp 1s ease-out 0.9s both;
}

.stats-card {
    background: white;
    border-radius: 20px;
    padding: 30px;
    box-shadow: var(--shadow);
    border-left: 5px solid var(--primary-color);
}

.stats-card h3 {
    color: var(--primary-color);
    font-size: 1.3rem;
    margin-bottom: 15px;
    text-align: center;
}

.special-text {
    font-size: 1rem;
    line-height: 1.7;
    color: var(--text-dark);
    text-align: center;
}

/* Footer */
footer {
    text-align: center;
    color: white;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    font-size: 0.9rem;
}

.footer-date {
    margin-top: 10px;
    opacity: 0.8;
    font-size: 0.85rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .title {
        font-size: 2rem;
    }

    .message-card {
        padding: 25px 20px;
    }

    .button-group {
        grid-template-columns: 1fr;
    }

    .message-emoji {
        font-size: 3rem;
    }

    .message-title {
        font-size: 1.5rem;
    }

    header {
        margin-bottom: 30px;
    }

    .time-display {
        font-size: 1rem;
    }
}

/* Loading Animation */
@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.pulse {
    animation: pulse 1.5s ease-in-out infinite;
}
