/* ========================================
   CUTE VALENTINE WEBSITE STYLES 💖
   ======================================== */

/* Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Pastel Color Palette */
    --pink-pastel: #FFB6D9;
    --pink-light: #FFD4E9;
    --cream: #FFF4E0;
    --purple-light: #E4D0F5;
    --purple-pastel: #C9A9E0;
    --peach: #FFCBB3;
    --mint: #D5F4E6;
    --white: #FFFFFF;
    --text-dark: #6B4E71;
    --text-light: #A78FB5;

    /* Shadows */
    --shadow-soft: 0 8px 24px rgba(255, 182, 217, 0.3);
    --shadow-medium: 0 12px 32px rgba(255, 182, 217, 0.4);
    --shadow-strong: 0 16px 48px rgba(255, 182, 217, 0.5);
}

body {
    font-family: 'Nunito', sans-serif;
    background: linear-gradient(135deg, var(--pink-light) 0%, var(--cream) 50%, var(--purple-light) 100%);
    color: var(--text-dark);
    overflow-x: hidden;
    position: relative;
    min-height: 100vh;
}

/* Particle Canvas */
#particleCanvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

/* ========================================
   HERO SECTION
   ======================================== */
.hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    padding: 2rem;
}

.sparkles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 10;
    text-align: center;
}

.hero-title {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 800;
    color: var(--pink-pastel);
    text-shadow: 2px 2px 8px rgba(255, 255, 255, 0.8);
    margin-bottom: 2rem;
    animation: bounce 2s ease-in-out infinite;
}

@keyframes bounce {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

/* Heart Container */
.heart-container {
    display: flex;
    justify-content: center;
    margin: 2rem 0;
}

.heart-big {
    position: relative;
    width: clamp(280px, 40vw, 450px);
    height: clamp(280px, 40vw, 450px);
    background: linear-gradient(135deg, var(--pink-pastel), var(--pink-light));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow:
        var(--shadow-strong),
        inset 0 -20px 40px rgba(255, 255, 255, 0.3);
    animation: heartbeat 1.5s ease-in-out infinite;
}

@keyframes heartbeat {

    0%,
    100% {
        transform: scale(1);
    }

    25% {
        transform: scale(1.05);
    }

    50% {
        transform: scale(1);
    }
}

.heart-big::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.4), transparent);
    border-radius: 50%;
    pointer-events: none;
}

/* Countdown */
.countdown-wrapper {
    text-align: center;
    padding: 2rem;
}

.countdown-label {
    font-size: clamp(0.8rem, 1.5vw, 1rem);
    color: var(--text-dark);
    margin-bottom: 1rem;
    font-weight: 600;
}

.countdown {
    display: flex;
    gap: clamp(0.5rem, 2vw, 1rem);
    justify-content: center;
    flex-wrap: wrap;
}

.time-unit {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.time-value {
    font-size: clamp(1.5rem, 3vw, 2.5rem);
    font-weight: 800;
    color: var(--white);
    text-shadow: 2px 2px 4px rgba(107, 78, 113, 0.3);
}

.time-label {
    font-size: clamp(0.6rem, 1vw, 0.9rem);
    color: var(--text-dark);
    margin-top: 0.3rem;
    font-weight: 600;
}

/* Hero Buttons */
.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 2rem;
    flex-wrap: wrap;
}

.btn-pill {
    padding: 0.8rem 2rem;
    font-size: 1.1rem;
    font-weight: 700;
    border: none;
    border-radius: 50px;
    background: linear-gradient(135deg, var(--purple-pastel), var(--pink-pastel));
    color: var(--white);
    cursor: pointer;
    box-shadow: var(--shadow-soft);
    transition: all 0.3s ease;
    font-family: 'Nunito', sans-serif;
}

.btn-pill:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: var(--shadow-medium);
}

.btn-pill:active {
    transform: translateY(0) scale(0.98);
}

/* ========================================
   GALLERY SECTION
   ======================================== */
.gallery-section {
    padding: 4rem 2rem;
    position: relative;
    z-index: 10;
}

.section-title {
    text-align: center;
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800;
    color: var(--pink-pastel);
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(255, 255, 255, 0.8);
}

.section-subtitle {
    text-align: center;
    font-size: 1.2rem;
    color: var(--text-light);
    margin-bottom: 3rem;
}

.gallery-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
    perspective: 1000px;
}

.polaroid {
    background: var(--white);
    padding: 1rem;
    padding-bottom: 3rem;
    border-radius: 8px;
    box-shadow: var(--shadow-soft);
    position: relative;
    transform-style: preserve-3d;
    transition: all 0.3s ease;
    opacity: 0;
    transform: translateY(30px);
}

.polaroid.visible {
    animation: slideUp 0.6s ease forwards;
}

@keyframes slideUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.polaroid:hover {
    transform: translateY(-10px) rotate(2deg);
    box-shadow: var(--shadow-medium);
    animation: wiggle 0.5s ease;
}

@keyframes wiggle {

    0%,
    100% {
        transform: rotate(0deg) translateY(-10px);
    }

    25% {
        transform: rotate(-2deg) translateY(-10px);
    }

    75% {
        transform: rotate(2deg) translateY(-10px);
    }
}

.polaroid::before {
    content: '';
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 20px;
    background: linear-gradient(135deg, var(--pink-light), var(--purple-light));
    opacity: 0.7;
    border-radius: 2px;
}

.polaroid-image {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    border-radius: 4px;
    background: linear-gradient(135deg, var(--pink-light), var(--purple-light));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
}

/* ========================================
   LOVE NOTES SECTION
   ======================================== */
.love-notes-section {
    padding: 4rem 2rem;
    position: relative;
    z-index: 10;
}

.hearts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 2rem;
    max-width: 900px;
    margin: 0 auto;
    padding: 2rem;
}

.note-heart {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--pink-pastel), var(--peach));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    cursor: pointer;
    box-shadow: var(--shadow-soft);
    transition: all 0.3s ease;
    margin: 0 auto;
    animation: float 3s ease-in-out infinite;
}

.note-heart:nth-child(even) {
    animation-delay: 1s;
}

.note-heart:hover {
    transform: scale(1.2) rotate(10deg);
    box-shadow: var(--shadow-medium);
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

/* Modal */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal.hidden {
    display: none;
}

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(107, 78, 113, 0.5);
    backdrop-filter: blur(5px);
}

.modal-content {
    position: relative;
    background: linear-gradient(135deg, var(--pink-light), var(--purple-light));
    padding: 3rem 2rem;
    border-radius: 30px;
    max-width: 500px;
    width: 90%;
    box-shadow: var(--shadow-strong);
    text-align: center;
    animation: popIn 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

@keyframes popIn {
    0% {
        transform: scale(0);
    }

    100% {
        transform: scale(1);
    }
}

.modal-message {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 2rem;
    line-height: 1.6;
}

.btn-modal-close {
    padding: 0.8rem 2rem;
    font-size: 1.1rem;
    font-weight: 700;
    border: none;
    border-radius: 50px;
    background: linear-gradient(135deg, var(--pink-pastel), var(--peach));
    color: var(--white);
    cursor: pointer;
    box-shadow: var(--shadow-soft);
    transition: all 0.3s ease;
    font-family: 'Nunito', sans-serif;
}

.btn-modal-close:hover {
    transform: scale(1.05);
}

/* ========================================
   MINIGAME SECTION
   ======================================== */
.minigame-section {
    padding: 4rem 2rem;
    position: relative;
    z-index: 10;
}

.game-container {
    max-width: 600px;
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(10px);
    padding: 2rem;
    border-radius: 30px;
    box-shadow: var(--shadow-medium);
}

.game-start {
    text-align: center;
}

.game-description {
    font-size: 1.2rem;
    color: var(--text-dark);
    margin-bottom: 2rem;
    font-weight: 600;
}

.btn-game {
    padding: 1rem 2.5rem;
    font-size: 1.2rem;
    font-weight: 700;
    border: none;
    border-radius: 50px;
    background: linear-gradient(135deg, var(--purple-pastel), var(--pink-pastel));
    color: var(--white);
    cursor: pointer;
    box-shadow: var(--shadow-soft);
    transition: all 0.3s ease;
    font-family: 'Nunito', sans-serif;
}

.btn-game:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: var(--shadow-medium);
}

.game-play {
    text-align: center;
}

.game-info {
    display: flex;
    justify-content: space-between;
    margin-bottom: 1rem;
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-dark);
}

.game-area {
    position: relative;
    width: 100%;
    height: 400px;
    background: linear-gradient(135deg, var(--pink-light), var(--purple-light));
    border-radius: 20px;
    overflow: hidden;
    box-shadow: inset 0 4px 12px rgba(107, 78, 113, 0.2);
}

.game-heart {
    position: absolute;
    font-size: 2rem;
    cursor: pointer;
    transition: transform 0.2s ease;
    animation: heartPop 0.4s ease;
}

.game-heart:hover {
    transform: scale(1.2);
}

@keyframes heartPop {
    0% {
        transform: scale(0);
    }

    50% {
        transform: scale(1.2);
    }

    100% {
        transform: scale(1);
    }
}

.score-popup {
    position: absolute;
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--pink-pastel);
    pointer-events: none;
    animation: scoreFloat 1s ease forwards;
}

@keyframes scoreFloat {
    0% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }

    100% {
        opacity: 0;
        transform: translateY(-50px) scale(1.5);
    }
}

.game-end {
    text-align: center;
}

.game-result-title {
    font-size: 2rem;
    color: var(--pink-pastel);
    margin-bottom: 1rem;
}

.game-result-score {
    font-size: 1.5rem;
    color: var(--text-dark);
    margin-bottom: 1rem;
    font-weight: 700;
}

.game-message {
    font-size: 1.2rem;
    color: var(--text-light);
    margin-bottom: 2rem;
    font-weight: 600;
}

.hidden {
    display: none !important;
}

/* ========================================
   STORY TIMELINE SECTION
   ======================================== */
.story-section {
    padding: 4rem 2rem;
    position: relative;
    z-index: 10;
}

.timeline-container {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    padding: 2rem 0;
}

.timeline-container::before {
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 100%;
    background: linear-gradient(180deg, var(--pink-pastel), var(--purple-pastel));
    border-radius: 2px;
}

.timeline-item {
    position: relative;
    margin-bottom: 3rem;
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.timeline-item.visible {
    opacity: 1;
    transform: translateY(0);
}

.timeline-item:nth-child(odd) .timeline-content {
    margin-left: auto;
    text-align: left;
}

.timeline-item:nth-child(even) .timeline-content {
    margin-right: auto;
    text-align: right;
}

.timeline-content {
    width: 45%;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.9), rgba(255, 212, 233, 0.6));
    backdrop-filter: blur(10px);
    padding: 1.5rem;
    border-radius: 20px;
    box-shadow: var(--shadow-soft);
    position: relative;
}

.timeline-icon {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--pink-pastel), var(--purple-pastel));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    box-shadow: var(--shadow-medium);
    border: 5px solid var(--white);
    z-index: 5;
    animation: pulse 2s ease-in-out infinite;
    top: 20px;
}

@keyframes pulse {

    0%,
    100% {
        transform: translateX(-50%) scale(1);
    }

    50% {
        transform: translateX(-50%) scale(1.1);
    }
}

.timeline-date {
    font-size: 0.9rem;
    color: var(--purple-pastel);
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.timeline-title {
    font-size: 1.3rem;
    color: var(--pink-pastel);
    font-weight: 800;
    margin-bottom: 0.5rem;
}

.timeline-description {
    font-size: 1rem;
    color: var(--text-dark);
    line-height: 1.6;
    font-weight: 600;
}


/* ========================================
   SURPRISE SECTION
   ======================================== */
.surprise-section {
    padding: 4rem 2rem 6rem;
    position: relative;
    z-index: 10;
}

.surprise-container {
    max-width: 500px;
    margin: 0 auto;
    text-align: center;
}

.gift-box {
    position: relative;
    width: 200px;
    height: 200px;
    margin: 0 auto 2rem;
    cursor: pointer;
    transition: all 0.5s ease;
}

.gift-box.opened .gift-lid {
    transform: translateY(-100px) rotateX(-30deg);
}

.gift-box.opened .gift-body {
    animation: shake 0.5s ease;
}

@keyframes shake {

    0%,
    100% {
        transform: rotate(0deg);
    }

    25% {
        transform: rotate(-5deg);
    }

    75% {
        transform: rotate(5deg);
    }
}

.gift-body {
    width: 160px;
    height: 140px;
    background: linear-gradient(135deg, var(--pink-pastel), var(--peach));
    border-radius: 10px;
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    box-shadow: var(--shadow-medium);
}

.gift-lid {
    width: 180px;
    height: 60px;
    background: linear-gradient(135deg, var(--purple-pastel), var(--pink-pastel));
    border-radius: 10px;
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    box-shadow: var(--shadow-medium);
    transition: all 0.8s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    transform-origin: bottom;
}

.gift-lid::before {
    content: '';
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 30px;
    background: linear-gradient(135deg, var(--purple-pastel), var(--pink-pastel));
    border-radius: 10px 10px 0 0;
}

.gift-ribbon {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 20px;
    height: 100%;
    background: var(--cream);
    z-index: 10;
}

.gift-ribbon::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 20px;
    background: var(--cream);
}

.btn-open-gift {
    margin-top: 2rem;
    padding: 0.8rem 2rem;
    font-size: 1.1rem;
    font-weight: 700;
    border: none;
    border-radius: 50px;
    background: linear-gradient(135deg, var(--pink-pastel), var(--peach));
    color: var(--white);
    cursor: pointer;
    box-shadow: var(--shadow-soft);
    transition: all 0.3s ease;
    font-family: 'Nunito', sans-serif;
}

.btn-open-gift:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: var(--shadow-medium);
}

.surprise-message {
    margin-top: 3rem;
}

.surprise-card {
    background: linear-gradient(135deg, var(--pink-light), var(--purple-light));
    padding: 3rem 2rem;
    border-radius: 30px;
    box-shadow: var(--shadow-strong);
    animation: popIn 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.surprise-card h3 {
    font-size: 2rem;
    color: var(--pink-pastel);
    margin-bottom: 1rem;
}

.surprise-card p {
    font-size: 1.3rem;
    color: var(--text-dark);
    margin-bottom: 0.8rem;
    font-weight: 600;
}

.surprise-signature {
    font-style: italic;
    color: var(--text-light);
    margin-top: 1.5rem;
}

/* Confetti Canvas */
#confettiCanvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 999;
}

/* ========================================
   RESPONSIVE
   ======================================== */

/* ========================================
   RESPONSIVE
   ======================================== */
@media (max-width: 768px) {
    .gallery-container {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 1.5rem;
    }

    .hearts-grid {
        grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
        gap: 1rem;
    }

    .note-heart {
        width: 60px;
        height: 60px;
        font-size: 2rem;
    }

    .game-area {
        height: 300px;
    }

    /* Timeline mobile */
    .timeline-container::before {
        left: 20px;
    }

    .timeline-item:nth-child(odd) .timeline-content,
    .timeline-item:nth-child(even) .timeline-content {
        width: calc(100% - 80px);
        margin-left: 80px;
        margin-right: 0;
        text-align: left;
    }

    .timeline-icon {
        left: 20px;
        transform: translateX(0);
        width: 50px;
        height: 50px;
        font-size: 1.5rem;
    }

    @keyframes pulse {

        0%,
        100% {
            transform: translateX(0) scale(1);
        }

        50% {
            transform: translateX(0) scale(1.1);
        }
    }

    /* Share mobile */
    .url-input-wrapper {
        flex-direction: column;
    }

    .url-input {
        min-width: 100%;
    }
}

/* ========================================
   FLOATING HEARTS (for button click)
   ======================================== */
#floatingHearts {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 100;
    overflow: hidden;
}

.floating-heart {
    position: absolute;
    font-size: 2rem;
    animation: floatUp 2s ease-out forwards;
}

@keyframes floatUp {
    0% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }

    100% {
        opacity: 0;
        transform: translateY(-200px) scale(0.5);
    }
}