@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,600;0,700;1,400&family=Lora:ital,wght@0,400;0,500;1,400&display=swap');

:root {
    --bg-color: #252b36;
    --text-color: #f0f0f0;
    --accent-color: #d4af37;
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Lora', serif;
}

body {
    margin: 0;
    padding: 0;
    background-color: #1a1e26;
    color: var(--text-color);
    font-family: var(--font-body);
    display: flex;
    justify-content: center;
    min-height: 100vh;
}

#app {
    width: 100%;
    max-width: 480px;
    background-color: var(--bg-color);
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
    /* Prevent horizontal scroll from animations */
}

/* Utils */
.text-center {
    text-align: center;
}

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

.uppercase {
    text-transform: uppercase;
}

/* Typography */
h1,
h2,
h3,
h4 {
    font-family: var(--font-heading);
    font-weight: 400;
    letter-spacing: 1px;
    margin: 0.5em 0;
}

p {
    line-height: 1.6;
    margin-bottom: 1em;
    font-size: 0.95rem;
}

/* Header */
header {
    padding: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    z-index: 100;
    background: var(--bg-color);
}

.header-logo {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    letter-spacing: 2px;
    transition: transform 0.3s ease;
}

.header-logo:hover {
    transform: scale(1.1);
}

.nav-icon {
    position: absolute;
    left: 20px;
    font-size: 1.5rem;
    cursor: pointer;
    transition: color 0.3s ease;
}

.nav-icon:hover {
    color: var(--accent-color);
}

/* Separator */
hr {
    border: 0;
    height: 1px;
    background: linear-gradient(to right, transparent, rgba(255, 255, 255, 0.3), transparent);
    margin: 40px 20px;
    width: 60%;
    margin-left: auto;
    margin-right: auto;
}

/* Sections */
section {
    padding: 40px 30px;
    opacity: 0;
    /* Hidden by default for scroll reveal */
    transform: translateY(20px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

section.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Hero */
.hero {
    text-align: center;
    padding: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    opacity: 1;
    /* Hero always visible initially */
    transform: none;
}

.hero-image-container {
    width: 100%;
    margin-bottom: 0;
    line-height: 0;
}

.hero-image-container img {
    width: 100%;
    height: auto;
    display: block;
    -webkit-mask-image: linear-gradient(to bottom, black 50%, transparent 100%);
    mask-image: linear-gradient(to bottom, black 50%, transparent 100%);
    animation: fadeIn 1.5s ease-out;
}

.hero-names {
    font-size: 2rem;
    line-height: 1.2;
    margin-bottom: 10px;
    margin-top: -60px;
    z-index: 10;
    position: relative;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
    animation: slideUp 1.2s ease-out 0.5s backwards;
}

.hero-date {
    font-size: 0.7rem;
    letter-spacing: 2px;
    margin-top: 10px;
    font-weight: 600;
    z-index: 10;
    position: relative;
    animation: slideUp 1.2s ease-out 0.8s backwards;
}

/* Music Control */
.music-control {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    z-index: 1000;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease, background 0.3s ease;
    animation: pulse 3s infinite;
}

.music-control:hover {
    transform: scale(1.1);
    background: rgba(255, 255, 255, 0.2);
}

.music-icon {
    font-size: 1.2rem;
    color: var(--accent-color);
}

.music-control.playing {
    animation: spin 4s linear infinite;
    border-color: var(--accent-color);
}

@keyframes spin {
    100% {
        transform: rotate(360deg);
    }
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(212, 175, 55, 0.4);
    }

    70% {
        box-shadow: 0 0 0 10px rgba(212, 175, 55, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(212, 175, 55, 0);
    }
}

/* Couple Photo */
#couple-photo {
    padding: 20px;
    text-align: center;
}

#couple-photo img {
    width: 100%;
    max-width: 100%;
    height: auto;
    border-radius: 4px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
    -webkit-mask-image: radial-gradient(circle, black 60%, transparent 100%);
    mask-image: radial-gradient(circle, black 60%, transparent 100%);
    transition: transform 0.5s ease;
}

#couple-photo img:hover {
    transform: scale(1.02);
}

/* Q+A Headers */
.qa-item {
    transition: transform 0.3s ease;
    cursor: default;
}

.qa-item:hover {
    transform: translateY(-2px);
}

.qa-question {
    font-family: var(--font-heading);
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 1px;
    margin-top: 30px;
    margin-bottom: 10px;
    color: var(--accent-color);
}

/* Button/Links if any */
a {
    color: inherit;
    text-decoration: underline;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--accent-color);
}

/* Footer */
footer {
    padding-bottom: 40px;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

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

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

/* Flower Shower Animation */
.flower-particle {
    position: fixed;
    top: -10%;
    z-index: 1005;
    /* Above content but below modals/music btn if any */
    pointer-events: none;
    animation-name: flowerFall;
    animation-timing-function: linear;
    animation-iteration-count: infinite;
    display: none;
    /* Hidden by default */
}

/* Show flowers only when music is playing */
body.music-playing .flower-particle {
    display: block;
}

@keyframes flowerFall {
    0% {
        transform: translateY(-10vh) translateX(0) rotate(0deg);
        opacity: 0;
    }

    10% {
        opacity: 1;
    }

    90% {
        opacity: 1;
    }

    100% {
        transform: translateY(110vh) translateX(20px) rotate(360deg);
        opacity: 0;
    }
}

/* Floating Hearts Background (Optional - Subtle) */
.bg-particle {
    position: fixed;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.03);
    pointer-events: none;
    z-index: 0;
    animation: floatParticle 20s infinite linear;
}

@keyframes floatParticle {
    0% {
        transform: translateY(0) rotate(0deg);
        opacity: 0;
    }

    50% {
        opacity: 1;
    }

    100% {
        transform: translateY(-100vh) rotate(360deg);
        opacity: 0;
    }
}