/* Twenty-One Bloom - Romantic Design System */

:root {
    /* Colors (HSL values converted to Hex/RGB or kept as variables) */
    --background: #fffcfb;
    /* 15 33% 97% */
    --foreground: #532d30;
    /* 350 30% 25% */

    --primary: #d68f9a;
    /* 350 60% 65% */
    --primary-foreground: #ffffff;

    --secondary: #f4ece6;
    /* 30 50% 90% */
    --secondary-foreground: #532d30;

    --muted: #f4ebeb;
    /* 350 20% 94% */
    --muted-foreground: #9a6d71;
    /* 350 15% 50% */

    --accent: #e6c8be;
    /* 30 70% 75% */
    --accent-foreground: #532d30;

    --card: #fffdfd;
    /* 15 40% 98% */
    --border: #eedadb;

    /* Custom Romantic Colors */
    --rose-gold: #dcb3aa;
    /* 15 50% 70% */
    --blush: #f7d1d6;
    /* 350 50% 88% */
    --cream: #fbf7f1;
    /* 40 40% 96% */
    --deep-rose: #a63f4b;
    /* 350 45% 45% */
    --gold: #cea23c;
    /* 40 70% 55% */
    --soft-pink: #f7dee2;
    /* 350 60% 92% */

    /* Gradients */
    --gradient-romantic: linear-gradient(135deg, #f7dee2 0%, #fcf6ef 50%, #f7d1d6 100%);
    --gradient-gold: linear-gradient(135deg, #e6c8be 0%, #dab58c 100%);
    --gradient-rose: linear-gradient(180deg, #f9ebed 0%, #f7d1d6 100%);

    --radius: 1rem;
    --shadow-romantic: 0 10px 30px -10px rgba(214, 143, 154, 0.3);
}

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

body {
    background-color: var(--background);
    color: var(--foreground);
    font-family: 'Quicksand', sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Cormorant Garamond', serif;
    font-weight: 600;
}

section {
    position: relative;
    padding: 5rem 1rem;
    /* py-20 px-4 */
    overflow: hidden;
}

/* Utilities modeled after the React Components */
.romantic-gradient {
    background: var(--gradient-romantic);
}

.text-gradient-gold {
    background: var(--gradient-gold);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: var(--gold);
    /* Fallback */
}

.glass-card {
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    box-shadow: var(--shadow-romantic);
    border-radius: var(--radius);
}

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

.flex-center {
    display: flex;
    align-items: center;
    justify-content: center;
}

.text-center {
    text-align: center;
}

.uppercase {
    text-transform: uppercase;
}

.italic {
    font-style: italic;
}

.tracking-widest {
    letter-spacing: 0.1em;
}

/* Text Utilities */
.font-display {
    font-family: 'Cormorant Garamond', serif;
}

.font-body {
    font-family: 'Quicksand', sans-serif;
}

.text-primary {
    color: var(--primary);
}

.text-gold {
    color: var(--gold);
}

.text-muted {
    color: var(--muted-foreground);
}

.text-foreground {
    color: var(--foreground);
}

/* Animation Keyframes */
@keyframes float {

    0%,
    100% {
        transform: translateY(0) rotate(-5deg);
    }

    50% {
        transform: translateY(-20px) rotate(5deg);
    }
}

@keyframes sparkle {

    0%,
    100% {
        opacity: 1;
        transform: scale(1);
    }

    50% {
        opacity: 0.5;
        transform: scale(1.2);
    }
}

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

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

@keyframes pulseGlow {

    0%,
    100% {
        box-shadow: 0 0 20px rgba(214, 143, 154, 0.3);
    }

    50% {
        box-shadow: 0 0 40px rgba(214, 143, 154, 0.5);
    }
}

@keyframes heartbeat {

    0%,
    100% {
        transform: scale(1);
    }

    25% {
        transform: scale(1.1);
    }

    50% {
        transform: scale(1);
    }

    75% {
        transform: scale(1.1);
    }
}

/* Animation Classes */
.animate-float {
    animation: float 6s ease-in-out infinite;
}

.animate-sparkle {
    animation: sparkle 2s ease-in-out infinite;
}

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

.pulse-glow {
    animation: pulseGlow 2s ease-in-out infinite;
}

.fade-in-up {
    opacity: 0;
    /* Hidden initially, controlled by JS IntersectionObserver */
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

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

/* Delay Utilities */
.delay-100 {
    transition-delay: 0.1s;
    animation-delay: 0.1s;
}

.delay-200 {
    transition-delay: 0.2s;
    animation-delay: 0.2s;
}

.delay-300 {
    transition-delay: 0.3s;
    animation-delay: 0.3s;
}

.delay-500 {
    transition-delay: 0.5s;
    animation-delay: 0.5s;
}

/* --- Component Specific Styles --- */

/* Hero */
.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.hero h1 {
    font-size: 4rem;
    margin-bottom: 1rem;
    line-height: 1;
}

.hero h2 {
    font-size: 2.5rem;
    color: var(--primary);
}

@media (min-width: 768px) {
    .hero h1 {
        font-size: 6rem;
    }

    .hero h2 {
        font-size: 3.5rem;
    }
}

/* Floating Hearts */
.floating-hearts-container {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
}

.floating-heart-icon {
    position: absolute;
    color: rgba(214, 143, 154, 0.3);
    /* primary/30 */
    fill: rgba(214, 143, 154, 0.2);
    animation: float 6s ease-in-out infinite;
}

.sparkle-icon {
    position: absolute;
    color: rgba(206, 162, 60, 0.4);
    /* gold/40 */
    animation: sparkle 2s ease-in-out infinite;
}

/* Countdown */
.countdown-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    max-width: 600px;
    margin: 2rem auto;
}

.countdown-box {
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(4px);
    border-radius: 1rem;
    padding: 1.5rem;
    text-align: center;
    box-shadow: var(--shadow-romantic);
}

.countdown-value {
    font-family: 'Cormorant Garamond', serif;
    font-size: 2.5rem;
    font-weight: 600;
    color: var(--primary);
    line-height: 1;
}

.countdown-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    color: var(--muted-foreground);
    letter-spacing: 0.05em;
    margin-top: 0.5rem;
}

/* Music Player */
.music-player-card {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(4px);
    border-radius: 1.5rem;
    padding: 2rem;
    box-shadow: var(--shadow-romantic);
    max-width: 600px;
    margin: 0 auto;
}

.album-art {
    width: 6rem;
    height: 6rem;
    border-radius: 1rem;
    background: linear-gradient(135deg, rgba(214, 143, 154, 0.3), rgba(214, 143, 154, 0.1));
    display: flex;
    align-items: center;
    justify-content: center;
}

.progress-bar-container {
    height: 0.5rem;
    background: var(--muted);
    border-radius: 9999px;
    cursor: pointer;
    overflow: hidden;
    margin-top: 1rem;
}

.progress-bar-fill {
    height: 100%;
    background: var(--primary);
    width: 0%;
    transition: width 0.1s linear;
}

.player-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.control-btn {
    border: none;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-play {
    width: 4rem;
    height: 4rem;
    border-radius: 50%;
    background: var(--primary);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.btn-play:hover {
    transform: scale(1.05);
}

.btn-secondary {
    background: transparent;
    color: var(--muted-foreground);
    padding: 0.5rem;
}

/* Gallery */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

@media (min-width: 768px) {
    .gallery-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 1.5rem;
    }

    .gallery-item:first-child {
        grid-column: span 2;
        grid-row: span 2;
    }
}

.gallery-item {
    position: relative;
    background-color: var(--blush);
    aspect-ratio: 1;
    border-radius: 1rem;
    overflow: hidden;
    transition: transform 0.3s;
}

.gallery-item:hover {
    transform: translateY(-5px);
}

.gallery-item img,
.gallery-item video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: opacity 1s ease-in-out;
}

.gallery-item.swapping img,
.gallery-item.swapping video {
    opacity: 0;
}

/* Poems & Verses */
.grid-2 {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

@media (min-width: 768px) {
    .grid-2 {
        grid-template-columns: 1fr 1fr;
    }
}

.verse-card {
    transition: transform 0.3s;
}

.verse-card:hover {
    transform: scale(1.02);
}

/* Footer */
footer {
    border-top: 1px solid var(--border);
    padding: 4rem 1rem;
    background: var(--gradient-romantic);
}