:root {
    --primary: #ff8fab;
    --secondary: #fb6f92;
    --accent: #ffc2d1;
    --bg-light: #ffe5ec;
    --text: #4a4a4a;
    --glass: rgba(255, 255, 255, 0.4);
    --font-cute: 'Quicksand', sans-serif;
    --font-heading: 'Pacifico', cursive;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

body {
    font-family: var(--font-cute);
    background-color: var(--bg-light);
    color: var(--text);
    overflow-x: hidden;
    line-height: 1.6;
}

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

.heart-particle {
    position: absolute;
    color: var(--primary);
    opacity: 0.6;
    animation: floatUp linear infinite;
}

@keyframes floatUp {
    0% {
        transform: translateY(100vh) scale(0);
        opacity: 0;
    }

    20% {
        opacity: 0.6;
    }

    100% {
        transform: translateY(-10vh) scale(1.5);
        opacity: 0;
    }
}

/* Layout */
.container {
    max-width: 500px;
    margin: 0 auto;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 40px;
    padding-bottom: 80px;
}

section {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 30px 20px;
    border-radius: 30px;
    background: var(--glass);
    backdrop-filter: blur(10px);
    box-shadow: 0 8px 32px rgba(255, 143, 171, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
    animation: fadeIn 1s ease-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

h2 {
    font-size: 1.5rem;
    color: var(--secondary);
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Hero Section */
.hero {
    background: transparent;
    box-shadow: none;
    backdrop-filter: none;
    border: none;
}

.hero-img-container {
    width: 100%;
    border-radius: 50px;
    overflow: hidden;
    margin-bottom: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border: 5px solid white;
}

.hero-img {
    width: 100%;
    display: block;
}

h1 {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    color: var(--secondary);
    margin-bottom: 10px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.05);
}

.names-stack {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    margin-top: 10px;
}

.name {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--secondary);
    letter-spacing: 0.5px;
}

.name-heart {
    color: var(--primary);
    font-size: 1.4rem;
    filter: drop-shadow(0 0 5px rgba(255, 143, 171, 0.4));
    animation: heartBeat 1.5s infinite;
}

@keyframes heartBeat {
    0% {
        transform: scale(1);
    }

    15% {
        transform: scale(1.3);
    }

    30% {
        transform: scale(1);
    }

    45% {
        transform: scale(1.15);
    }

    60% {
        transform: scale(1);
    }
}

/* Countdown */
.countdown-timer {
    display: flex;
    gap: 10px;
    margin-top: 20px;
}

.time-unit {
    display: flex;
    flex-direction: column;
    background: white;
    padding: 10px;
    border-radius: 15px;
    min-width: 65px;
    box-shadow: 0 4px 10px rgba(251, 111, 146, 0.1);
}

.time-val {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--secondary);
}

.time-label {
    font-size: 0.7rem;
    text-transform: uppercase;
    color: var(--primary);
}

/* Swiper */
.swiper {
    width: 100%;
    padding-bottom: 30px;
}

.memory-card {
    background: white;
    padding: 15px;
    border-radius: 20px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.memory-img-container {
    width: 100%;
    height: 200px;
    border-radius: 15px;
    overflow: hidden;
    margin-bottom: 10px;
    background: var(--bg-light);
}

.memory-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.memory-placeholder {
    width: 100%;
    height: 200px;
    background: var(--bg-light);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    margin-bottom: 10px;
}

.memory-card.coming-soon {
    opacity: 0.8;
    border: 2px dashed var(--accent);
}

.memory-card.coming-soon .memory-placeholder {
    background: #f0f0f0;
    color: #bbb;
}

.memory-card p small {
    font-size: 0.75rem;
    color: var(--primary);
    font-weight: 600;
}

/* Love Meter */
.heart-svg {
    width: 120px;
    height: 120px;
    fill: #eee;
    transition: all 0.3s ease;
}

.heart-fill {
    fill: var(--secondary);
    clip-path: inset(100% 0 0 0);
    transition: clip-path 0.3s ease;
}

.btn-love {
    margin-top: 20px;
    padding: 15px 30px;
    border: none;
    border-radius: 50px;
    background: var(--secondary);
    color: white;
    font-family: var(--font-cute);
    font-weight: 700;
    font-size: 1.1rem;
    cursor: pointer;
    box-shadow: 0 5px 15px rgba(251, 111, 146, 0.4);
    transition: transform 0.2s;
    display: flex;
    align-items: center;
    gap: 10px;
}

.btn-love:active {
    transform: scale(0.95);
}

/* Quiz */
.quiz-options {
    display: flex;
    gap: 10px;
    margin-top: 15px;
    width: 100%;
}

.quiz-opt {
    flex: 1;
    padding: 12px;
    border: 2px solid var(--primary);
    background: white;
    border-radius: 15px;
    font-family: var(--font-cute);
    font-weight: 700;
    color: var(--secondary);
    cursor: pointer;
    transition: all 0.2s;
}

.quiz-opt:active {
    background: var(--primary);
    color: white;
}

/* Gift Box */
.gift-container {
    padding: 20px;
}

.gift-box {
    position: relative;
    width: 80px;
    height: 80px;
    margin: 0 auto;
    color: var(--secondary);
    cursor: pointer;
    transition: transform 0.3s;
}

.gift-box:hover {
    transform: scale(1.1);
}

.gift-lid {
    position: absolute;
    top: 0;
    left: 0;
    opacity: 0;
    transition: all 0.3s;
}

.gift-box.open i:first-child {
    opacity: 0;
}

.gift-box.open .gift-lid {
    opacity: 1;
    transform: translateY(-20px);
}

#gift-message {
    margin-top: 20px;
    font-weight: 600;
    color: var(--secondary);
    transition: all 0.5s;
}

.hidden {
    opacity: 0;
    transform: translateY(10px);
    pointer-events: none;
}

/* Scratch Card */
.scratch-container {
    width: 100%;
    max-width: 300px;
    height: 150px;
    position: relative;
    margin-top: 20px;
    border-radius: 20px;
    overflow: hidden;
}

.scratch-content {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: white;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 20px;
    font-weight: 600;
    color: var(--secondary);
    font-size: 1.1rem;
}

#scratch-canvas {
    position: absolute;
    top: 0;
    left: 0;
    cursor: crosshair;
    z-index: 2;
}

/* Letter */
.letter-box {
    text-align: left;
    padding: 20px;
    background: rgba(255, 255, 255, 0.6);
    border-radius: 20px;
    width: 100%;
}

.typewriter {
    font-family: 'Courier New', Courier, monospace;
    font-size: 0.95rem;
    color: #555;
    white-space: pre-wrap;
}

/* Utility */
.floating {
    animation: floating 3s ease-in-out infinite;
}

@keyframes floating {
    0% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-10px);
    }

    100% {
        transform: translateY(0px);
    }
}