/* ================================
   VALENTINE'S DAY WEBSITE STYLES
   ================================ */

/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --deep-red: #8B1538;
    --soft-pink: #FFB6C1;
    --rose-gold: #B76E79;
    --champagne: #F7E7CE;
    --soft-purple: #D8BFD8;
    --white: #FFFFFF;
    --dark: #2C1810;
    --glow: rgba(255, 182, 193, 0.6);
}

body {
    font-family: 'Quicksand', sans-serif;
    background: linear-gradient(135deg, var(--champagne) 0%, var(--soft-pink) 100%);
    color: var(--dark);
    overflow-x: hidden;
    scroll-behavior: smooth;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ================================
   FLOATING HEARTS BACKGROUND
   ================================ */
.hearts-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
    overflow: hidden;
}

.heart {
    position: absolute;
    font-size: 20px;
    opacity: 0.3;
    animation: float-up 15s infinite;
}

@keyframes float-up {
    0% {
        transform: translateY(100vh) rotate(0deg);
        opacity: 0;
    }
    10% {
        opacity: 0.3;
    }
    90% {
        opacity: 0.3;
    }
    100% {
        transform: translateY(-100px) rotate(360deg);
        opacity: 0;
    }
}

/* ================================
   MUSIC CONTROL
   ================================ */
.music-control {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--rose-gold), var(--soft-pink));
    border: none;
    font-size: 24px;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(139, 21, 56, 0.3);
    z-index: 1000;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.music-control:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 25px rgba(139, 21, 56, 0.5);
}

.music-control.playing {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

/* ================================
   SECTION 1: CINEMATIC INTRO
   ================================ */
.intro-section {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--deep-red) 0%, var(--rose-gold) 50%, var(--soft-pink) 100%);
    overflow: hidden;
}

.sparkles {
    position: absolute;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.sparkle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: white;
    border-radius: 50%;
    animation: sparkle 3s infinite;
}

@keyframes sparkle {
    0%, 100% {
        opacity: 0;
        transform: scale(0);
    }
    50% {
        opacity: 1;
        transform: scale(1);
    }
}

.intro-content {
    position: relative;
    z-index: 10;
    text-align: center;
    padding: 20px;
}

.intro-title {
    font-family: 'Pacifico', cursive;
    font-size: clamp(2rem, 6vw, 4rem);
    color: var(--white);
    text-shadow: 0 0 20px var(--glow), 0 0 40px var(--glow);
    margin-bottom: 20px;
    opacity: 0;
    animation: fadeInScale 2s ease forwards;
}

.intro-subtitle {
    font-family: 'Quicksand', sans-serif;
    font-size: clamp(1rem, 3vw, 1.5rem);
    color: var(--champagne);
    margin-bottom: 40px;
    opacity: 0;
    animation: fadeInScale 2s ease forwards 1s;
}

.start-button {
    font-family: 'Quicksand', sans-serif;
    font-size: 1.2rem;
    font-weight: 600;
    padding: 18px 45px;
    background: linear-gradient(135deg, var(--white), var(--champagne));
    color: var(--deep-red);
    border: none;
    border-radius: 50px;
    cursor: pointer;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
    transition: all 0.4s ease;
    opacity: 0;
    animation: fadeInScale 2s ease forwards 2s;
}

.start-button:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
}

@keyframes fadeInScale {
    to {
        opacity: 1;
        transform: scale(1);
    }
    from {
        transform: scale(0.8);
    }
}

/* ================================
   SECTION 2: HOW IT STARTED
   ================================ */
.timeline-section {
    padding: 100px 0;
    background: linear-gradient(180deg, var(--champagne), var(--white));
    position: relative;
}

.section-title {
    font-family: 'Playfair Display', serif;
    font-size: clamp(2rem, 5vw, 3.5rem);
    text-align: center;
    color: var(--deep-red);
    margin-bottom: 60px;
    position: relative;
}

.section-title::after {
    content: '💖';
    display: block;
    font-size: 2rem;
    margin-top: 10px;
}

.timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 100%;
    background: linear-gradient(to bottom, var(--soft-pink), var(--rose-gold));
}

.timeline-item {
    display: flex;
    align-items: center;
    margin-bottom: 60px;
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.timeline-item.visible {
    opacity: 1;
    transform: translateY(0);
}

.timeline-item:nth-child(odd) {
    flex-direction: row;
}

.timeline-item:nth-child(even) {
    flex-direction: row-reverse;
}

.timeline-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--rose-gold), var(--soft-pink));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    box-shadow: 0 4px 20px rgba(139, 21, 56, 0.3);
    z-index: 2;
    flex-shrink: 0;
}

.timeline-content {
    flex: 1;
    padding: 30px;
    background: white;
    border-radius: 20px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
    margin: 0 30px;
    transition: all 0.3s ease;
}

.timeline-content:hover {
    transform: scale(1.03);
    box-shadow: 0 12px 40px rgba(139, 21, 56, 0.2);
}

.timeline-content h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    color: var(--deep-red);
    margin-bottom: 10px;
}

.timeline-content p {
    font-size: 1.1rem;
    color: var(--dark);
    line-height: 1.6;
}

/* ================================
   SECTION 3: FUTURE ADVENTURES
   ================================ */
.adventures-section {
    padding: 100px 0;
    background: linear-gradient(180deg, var(--white), var(--soft-purple));
    position: relative;
}

.adventure-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 60px;
}

.adventure-card {
    position: relative;
    height: 350px;
    perspective: 1000px;
    cursor: pointer;
}

.card-front,
.card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    border-radius: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 30px;
    transition: transform 0.6s ease;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

.card-front {
    background: linear-gradient(135deg, var(--white), var(--champagne));
    border: 3px solid var(--rose-gold);
}

.card-back {
    background: linear-gradient(135deg, var(--rose-gold), var(--soft-pink));
    color: white;
    transform: rotateY(180deg);
}

.adventure-card:hover .card-front {
    transform: rotateY(180deg);
}

.adventure-card:hover .card-back {
    transform: rotateY(360deg);
}

.card-icon {
    font-size: 5rem;
    margin-bottom: 20px;
    animation: bounce 2s infinite;
}

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

.card-front h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.8rem;
    color: var(--deep-red);
    text-align: center;
}

.card-back p {
    font-size: 1.1rem;
    text-align: center;
    line-height: 1.6;
}

/* ================================
   SECTION 4: LETTER
   ================================ */
.letter-section {
    padding: 100px 0;
    background: linear-gradient(180deg, var(--soft-purple), var(--soft-pink));
}

.letter-container {
    max-width: 700px;
    margin: 0 auto;
    background: var(--champagne);
    border-radius: 20px;
    padding: 60px 40px;
    box-shadow: 0 15px 50px rgba(139, 21, 56, 0.3);
    position: relative;
}

.letter-container::before {
    content: '✉️';
    position: absolute;
    top: -30px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 3rem;
}

.letter-header {
    text-align: center;
    font-size: 3rem;
    margin-bottom: 30px;
}

.letter-content {
    font-family: 'Dancing Script', cursive;
    font-size: 1.5rem;
    line-height: 2;
    color: var(--deep-red);
    text-align: center;
}

/* ================================
   SECTION 5: SURPRISE BUTTON
   ================================ */
.surprise-section {
    padding: 100px 0;
    background: linear-gradient(180deg, var(--soft-pink), var(--champagne));
    text-align: center;
}

.surprise-button {
    font-family: 'Quicksand', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    padding: 25px 60px;
    background: linear-gradient(135deg, var(--deep-red), var(--rose-gold));
    color: white;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    box-shadow: 0 10px 40px rgba(139, 21, 56, 0.4);
    transition: all 0.4s ease;
    animation: wiggle 3s infinite;
}

.surprise-button:hover {
    transform: scale(1.1);
    box-shadow: 0 15px 50px rgba(139, 21, 56, 0.6);
}

@keyframes wiggle {
    0%, 100% {
        transform: rotate(0deg);
    }
    25% {
        transform: rotate(-3deg);
    }
    75% {
        transform: rotate(3deg);
    }
}

.surprise-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 9999;
    align-items: center;
    justify-content: center;
}

.surprise-modal.active {
    display: flex;
}

.surprise-content {
    text-align: center;
    position: relative;
}

.gift-box {
    font-size: 10rem;
    animation: giftOpen 1s ease forwards;
}

@keyframes giftOpen {
    0% {
        transform: scale(0) rotate(0deg);
    }
    50% {
        transform: scale(1.2) rotate(180deg);
    }
    100% {
        transform: scale(1) rotate(360deg);
    }
}

.surprise-message {
    opacity: 0;
    animation: messageAppear 1s ease forwards 1s;
}

.surprise-message h2 {
    font-family: 'Pacifico', cursive;
    font-size: clamp(1.5rem, 5vw, 3rem);
    color: var(--soft-pink);
    margin-bottom: 20px;
    text-shadow: 0 0 20px var(--glow);
}

.surprise-message p {
    font-family: 'Quicksand', sans-serif;
    font-size: 1.5rem;
    color: var(--champagne);
}

@keyframes messageAppear {
    to {
        opacity: 1;
    }
}

/* ================================
   SECTION 6: GALLERY
   ================================ */
.gallery-section {
    padding: 100px 0;
    background: linear-gradient(180deg, var(--champagne), var(--white));
}

.gallery-note {
    text-align: center;
    font-size: 1rem;
    color: var(--rose-gold);
    margin-bottom: 40px;
    font-style: italic;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-top: 40px;
}

.gallery-item {
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
    cursor: pointer;
}

.gallery-item:hover {
    transform: scale(1.05);
    box-shadow: 0 12px 40px rgba(139, 21, 56, 0.3);
}

.gallery-item img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    display: block;
}

.gallery-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(139, 21, 56, 0.9), transparent);
    color: white;
    padding: 20px;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.gallery-item:hover .gallery-caption {
    transform: translateY(0);
}

.gallery-caption h4 {
    font-family: 'Playfair Display', serif;
    font-size: 1.2rem;
    margin-bottom: 5px;
}

.gallery-caption p {
    font-size: 0.9rem;
}

/* ================================
   SECTION 7: BUCKET LIST
   ================================ */
.bucketlist-section {
    padding: 100px 0;
    background: linear-gradient(180deg, var(--white), var(--soft-pink));
}

.bucketlist-subtitle {
    text-align: center;
    font-size: 1.3rem;
    color: var(--rose-gold);
    margin-bottom: 60px;
}

.bucketlist-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    max-width: 900px;
    margin: 0 auto;
}

.bucket-item {
    display: flex;
    align-items: center;
    padding: 25px;
    background: white;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    transition: all 0.3s ease;
}

.bucket-item:hover {
    transform: translateX(10px);
    box-shadow: 0 6px 25px rgba(139, 21, 56, 0.2);
}

.checkbox {
    width: 30px;
    height: 30px;
    border: 3px solid var(--rose-gold);
    border-radius: 8px;
    margin-right: 20px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.bucket-item.checked .checkbox {
    background: var(--rose-gold);
    border-color: var(--rose-gold);
}

.bucket-item.checked .checkbox::after {
    content: '✓';
    color: white;
    font-size: 1.2rem;
    font-weight: bold;
}

.bucket-item span {
    font-size: 1.1rem;
    color: var(--dark);
}

.bucket-item.checked span {
    text-decoration: line-through;
    opacity: 0.6;
}

/* ================================
   FOOTER
   ================================ */
.footer {
    padding: 60px 20px;
    background: linear-gradient(135deg, var(--deep-red), var(--rose-gold));
    text-align: center;
    color: white;
}

.footer p {
    font-size: 1.2rem;
    margin-bottom: 10px;
}

.footer-note {
    font-family: 'Dancing Script', cursive;
    font-size: 1.5rem;
    opacity: 0.9;
}

/* ================================
   ANIMATIONS & UTILITIES
   ================================ */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Confetti */
.confetti {
    position: fixed;
    width: 10px;
    height: 10px;
    background: var(--soft-pink);
    position: absolute;
    animation: confetti-fall 3s linear forwards;
}

@keyframes confetti-fall {
    to {
        transform: translateY(100vh) rotate(360deg);
        opacity: 0;
    }
}

/* ================================
   RESPONSIVE DESIGN
   ================================ */
@media (max-width: 768px) {
    .timeline::before {
        left: 30px;
    }

    .timeline-item,
    .timeline-item:nth-child(even) {
        flex-direction: row;
    }

    .timeline-icon {
        width: 60px;
        height: 60px;
        font-size: 2rem;
    }

    .timeline-content {
        margin-left: 20px;
    }

    .adventure-grid {
        grid-template-columns: 1fr;
    }

    .letter-container {
        padding: 40px 25px;
    }

    .letter-content {
        font-size: 1.2rem;
    }

    .music-control {
        width: 50px;
        height: 50px;
        bottom: 20px;
        right: 20px;
    }
}

@media (max-width: 480px) {
    .intro-title {
        font-size: 1.8rem;
    }

    .intro-subtitle {
        font-size: 1rem;
    }

    .start-button {
        padding: 15px 30px;
        font-size: 1rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .card-icon {
        font-size: 3.5rem;
    }

    .surprise-button {
        padding: 20px 40px;
        font-size: 1.2rem;
    }
}
