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

body {
    background: linear-gradient(135deg, #ffdde1, #ee9ca7);
    color: #4a4a4a;
    font-family: 'Quicksand', sans-serif;
    overflow-x: hidden;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
}

h1, .subtitle, #secret-message {
    font-family: 'Dancing Script', cursive;
}

/* Audio Control */
.audio-control {
    position: fixed;
    top: 20px;
    right: 20px;
    background: rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(5px);
    padding: 12px;
    border-radius: 50%;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    cursor: pointer;
    z-index: 100;
    transition: transform 0.3s ease;
}

.audio-control:hover {
    transform: scale(1.1);
}

.audio-control .icon {
    font-size: 1.2rem;
}

/* Heartbeat Background Pulse */
.heartbeat-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: radial-gradient(circle at center, rgba(255,255,255,0.4) 0%, transparent 60%);
    animation: pulseBg 2s infinite ease-in-out;
    pointer-events: none;
    z-index: -1;
}

@keyframes pulseBg {
    0% { transform: scale(1); opacity: 0.5; }
    50% { transform: scale(1.2); opacity: 0.8; }
    100% { transform: scale(1); opacity: 0.5; }
}

/* Send Hug Button */
.send-hug-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: #ff758c;
    color: white;
    border: none;
    padding: 15px 25px;
    font-size: 1.1rem;
    font-family: 'Quicksand', sans-serif;
    font-weight: 600;
    border-radius: 30px;
    box-shadow: 0 10px 20px rgba(255, 117, 140, 0.4);
    cursor: pointer;
    z-index: 100;
    transition: transform 0.3s ease, background 0.3s ease;
}

.send-hug-btn:hover {
    transform: translateY(-5px) scale(1.05);
    background: #ff5e78;
}

/* Header */
header {
    text-align: center;
    padding: 60px 20px 20px;
    width: 100%;
}

header h1 {
    font-size: 4rem;
    color: #c94b4b;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.1);
}

header .subtitle {
    font-size: 1.8rem;
    color: #8a3f3f;
    margin-top: -10px;
}

/* Reveal Section */
.reveal-section {
    text-align: center;
    margin: 40px 0;
}

.reveal-section p {
    font-size: 1.2rem;
    color: #8a3f3f;
    margin-bottom: 20px;
    font-weight: 600;
}

.secret-heart {
    font-size: 4rem;
    cursor: pointer;
    transition: transform 0.3s ease;
    animation: heartPulse 1.5s infinite;
}

.secret-heart:active {
    transform: scale(0.9);
}

.secret-message {
    font-size: 2.2rem;
    color: #c94b4b;
    margin-top: 20px;
    opacity: 0;
    max-height: 0;
    overflow: hidden;
    transition: opacity 1s ease, max-height 1s ease;
}

.secret-message.show {
    opacity: 1;
    max-height: 200px;
}

/* Wait, heart pulse animation */
@keyframes heartPulse {
    0% { transform: scale(1); }
    15% { transform: scale(1.15); }
    30% { transform: scale(1); }
    45% { transform: scale(1.15); }
    60% { transform: scale(1); }
    100% { transform: scale(1); }
}

/* Cards Grid */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    padding: 40px 20px 100px;
    max-width: 1000px;
    width: 100%;
}

@media screen and (max-width: 900px) {
    .cards-grid { grid-template-columns: repeat(2, 1fr); }
}
@media screen and (max-width: 600px) {
    .cards-grid { grid-template-columns: 1fr; }
}

.flip-card {
    background-color: transparent;
    width: 100%;
    height: 250px;
    perspective: 1000px;
    cursor: pointer;
}

.flip-card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    text-align: center;
    transition: transform 0.6s cubic-bezier(0.4, 0.2, 0.2, 1);
    transform-style: preserve-3d;
}

.flip-card:hover .flip-card-inner {
    transform: rotateY(180deg);
}

.flip-card-front, .flip-card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

.flip-card-front {
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(10px);
    color: #c94b4b;
    font-size: 1.5rem;
    font-weight: 600;
    border: 1px solid rgba(255,255,255,0.8);
}

.flip-card-back {
    background: #ff758c;
    color: white;
    transform: rotateY(180deg);
}

.flip-card-back p {
    font-size: 1.3rem;
    line-height: 1.4;
    font-weight: 600;
}

/* Cute float animation for spawn */
@keyframes floatUp {
    0% { transform: translateY(0) scale(1); opacity: 1; }
    100% { transform: translateY(-300px) scale(1.5) rotate(20deg); opacity: 0; }
}
