
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --pink: #f5a5c5;
    --light-pink: #ffd9e9;
    --purple: #c8a9f4;
    --white: #fff8fc;
    --muted: #c9bed3;
    --background: #191226;
}

html {
    scroll-behavior: smooth;
}

body {
    min-height: 100vh;
    background: var(--background);
    color: var(--white);
    font-family: 'DM Sans', sans-serif;
    overflow-x: hidden;
    position: relative;
}

/* BACKGROUND */

.background-glow {
    position: fixed;
    inset: 0;
    z-index: -2;

    background:
        radial-gradient(ellipse at 15% 20%, rgba(168, 105, 194, .24), transparent 45%),
        radial-gradient(ellipse at 85% 75%, rgba(245, 140, 180, .17), transparent 45%),
        linear-gradient(135deg, #191226, #291a3a, #171020);
}

#hearts-container {
    position: fixed;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
    z-index: -1;
}

/* MAIN LAYOUT */

.main-container {
    width: 100%;
    max-width: 950px;
    margin: auto;
    padding: 30px 22px;
    text-align: center;
}

.hero {
    min-height: 90vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    animation: fadeIn 1.2s ease;
}

/* TEXT */

.small-label,
.section-label {
    font-size: 11px;
    letter-spacing: 4px;
    color: var(--pink);
    font-weight: 700;
    margin-bottom: 25px;
}

h1 {
    font-family: 'Playfair Display', serif;
    font-size: clamp(42px, 8vw, 76px);
    line-height: 1.2;
    margin-bottom: 20px;
}

.name {
    display: block;
    color: var(--pink);
    font-style: italic;
}

h2 {
    font-family: 'Playfair Display', serif;
    font-size: clamp(32px, 6vw, 48px);
    line-height: 1.3;
    margin-bottom: 35px;
}

h2 span {
    color: var(--pink);
}

h3 {
    font-family: 'Playfair Display', serif;
}

/* HERO */

.birthday-icon {
    font-size: 75px;
    margin: 10px 0 25px;
    animation: float 3s ease-in-out infinite;
}

.intro-text {
    color: var(--muted);
    font-size: 15px;
    margin-bottom: 15px;
}

.hero-description {
    max-width: 460px;
    color: var(--muted);
    font-size: 16px;
    line-height: 1.9;
    margin-bottom: 35px;
}

.bottom-note {
    color: #a393ad;
    font-size: 12px;
    margin-top: 30px;
    letter-spacing: 1px;
}

/* BUTTONS */

button {
    font-family: inherit;
    cursor: pointer;
    transition: .3s ease;
}

.main-button {
    padding: 16px 30px;
    background: linear-gradient(110deg, #f5a5c5, #c8a9f4);
    border: none;
    border-radius: 40px;
    color: #26152e;
    font-size: 14px;
    font-weight: 700;
    box-shadow: 0 8px 30px rgba(245, 165, 197, .2);
}

.main-button:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 35px rgba(245, 165, 197, .35);
}

.secondary-button {
    background: transparent;
    border: 1px solid var(--pink);
    color: var(--light-pink);
    border-radius: 30px;
    padding: 14px 26px;
    font-size: 13px;
}

.secondary-button:hover {
    background: rgba(245, 165, 197, .12);
    transform: translateY(-3px);
}

/* SECTIONS */

.hidden {
    display: none !important;
}

.message-section,
.photo-section,
.final-section {
    padding: 70px 0;
    animation: fadeIn 1s ease;
}

/* LETTER */

.letter-card {
    max-width: 650px;
    margin: 0 auto 35px;
    padding: 42px;
    text-align: left;
    line-height: 2.1;
    font-size: 15px;
    color: #eadfeb;
    border: 1px solid rgba(255, 255, 255, .13);
    border-radius: 22px;
    background: rgba(255, 255, 255, .055);
    box-shadow: 0 15px 50px rgba(0, 0, 0, .15);
}

.letter-decoration {
    color: var(--pink);
    font-size: 38px;
    text-align: center;
    margin-bottom: 20px;
}

.letter-card p {
    margin-bottom: 19px;
}

.letter-greeting {
    color: var(--pink);
    font-family: 'Playfair Display', serif;
    font-size: 25px;
}

.letter-closing {
    color: var(--light-pink);
    font-weight: 700;
}

.signature {
    text-align: right;
    color: var(--pink);
    font-style: italic;
    margin-top: 30px;
}

/* PERSONAL NOTE */

.personal-note {
    max-width: 600px;
    margin: 45px auto;
    padding: 35px 25px;
    border-top: 1px solid rgba(245, 165, 197, .3);
    border-bottom: 1px solid rgba(245, 165, 197, .3);
    background: rgba(245, 165, 197, .045);
}

.note-star {
    display: block;
    color: var(--purple);
    font-size: 30px;
    margin-bottom: 15px;
}

.note-label {
    color: var(--purple);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 4px;
    margin-bottom: 22px;
}

.note-text {
    font-family: 'Playfair Display', serif;
    font-size: clamp(20px, 4vw, 28px);
    font-style: italic;
    line-height: 1.7;
    color: var(--white);
}

.note-text span {
    color: var(--pink);
}

.note-footer {
    color: var(--muted);
    font-size: 12px;
    margin-top: 18px;
}

/* VIDEO GALLERY */

.photo-description {
    color: var(--muted);
    margin-top: -15px;
    margin-bottom: 30px;
    line-height: 1.8;
}

.video-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 22px;
    margin: 35px auto 45px;
    max-width: 750px;
}

.video-card {
    padding: 12px;
    background: rgba(255, 255, 255, .06);
    border: 1px solid rgba(255, 255, 255, .13);
    border-radius: 18px;
    overflow: hidden;
}

.video-card video {
    width: 100%;
    aspect-ratio: 4 / 5;
    object-fit: cover;
    display: block;
    border-radius: 12px;
    background: #110c1d;
}

.video-card p {
    color: var(--light-pink);
    font-family: 'Playfair Display', serif;
    font-style: italic;
    font-size: 15px;
    padding: 15px 5px 5px;
}

/* FINAL SECTION */

.final-heart {
    font-size: 85px;
    margin-bottom: 25px;
    animation: heartbeat 1.5s infinite;
}

.final-section h2 {
    max-width: 700px;
    margin: 0 auto 25px;
}

.final-message {
    max-width: 550px;
    margin: auto;
    color: var(--muted);
    line-height: 2;
    font-size: 16px;
}

.final-section h3 {
    color: var(--pink);
    font-size: 30px;
    margin: 35px 0 15px;
}

.final-signature {
    color: var(--muted);
    font-size: 13px;
    margin-bottom: 20px;
}

.final-decoration {
    font-family: 'Playfair Display', serif;
    font-style: italic;
    color: var(--purple);
    margin-bottom: 35px;
}

/* FOOTER */

footer {
    padding: 35px 0 15px;
    color: #a393ad;
    font-size: 12px;
    letter-spacing: 1px;
    line-height: 2;
}

.footer-year {
    font-size: 10px;
    color: #83758e;
}

/* FLOATING HEARTS */

.heart {
    position: absolute;
    bottom: -40px;
    color: rgba(245, 165, 197, .65);
    animation: rise linear forwards;
}

@keyframes rise {
    to {
        transform: translateY(-110vh) rotate(360deg);
        opacity: 0;
    }
}

/* ANIMATIONS */

@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-14px);
    }
}

@keyframes heartbeat {
    0%, 100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.12);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* MOBILE RESPONSIVENESS */

@media (max-width: 600px) {

    .main-container {
        padding: 20px 17px;
    }

    .hero {
        min-height: 85vh;
    }

    .birthday-icon {
        font-size: 65px;
    }

    .hero-description {
        font-size: 14px;
    }

    .letter-card {
        padding: 26px 20px;
        font-size: 14px;
        line-height: 2;
    }

    .personal-note {
        padding: 30px 18px;
    }

    .video-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .video-card video {
        aspect-ratio: 4 / 5;
    }

    .message-section,
    .photo-section,
    .final-section {
        padding: 55px 0;
    }

    .final-message {
        font-size: 14px;
    }

    .final-section h3 {
        font-size: 26px;
    }
}

/* ACCESSIBILITY */

@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        scroll-behavior: auto !important;
    }

}
