
/* =========================================
   AJOKEMI — BIRTHDAY SCRAPBOOK
========================================= */

:root {
    --berry: #9c3569;
    --deep-rose: #c45183;
    --rose: #d66b9b;
    --blush: #f4b8d0;
    --pale-pink: #fff0f5;
    --lavender: #e1c8ef;
    --lilac: #b9a0d9;
    --deep-lilac: #80639f;
    --cream: #fffaf3;
    --ink: #493443;
    --muted: #8d7485;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    background: var(--pale-pink);
    color: var(--ink);
    font-family: 'DM Sans', Arial, sans-serif;
    overflow-x: hidden;
}

::selection {
    background: var(--lilac);
    color: white;
}


/* =========================================
   HERO
========================================= */

.hero {
    min-height: 100vh;
    min-height: 100svh;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 100px 24px 130px;
    overflow: hidden;

    background-color: #fff0f5;
    background-image:
        radial-gradient(ellipse at 12% 18%,
            rgba(225, 200, 239, .8), transparent 36%),
        radial-gradient(ellipse at 85% 75%,
            rgba(244, 184, 208, .8), transparent 40%),
        linear-gradient(135deg,
            #fff4f7, #fce5f0 55%, #f0e5fa);
}

.hero-content {
    max-width: 760px;
    position: relative;
    z-index: 2;
    animation: appear 1.2s ease both;
}

.eyebrow {
    display: block;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 3px;
    color: var(--berry);
    margin-bottom: 24px;
}

.hero h1 {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: clamp(48px, 8vw, 92px);
    line-height: 1.08;
    font-weight: 600;
    letter-spacing: -2px;
}

.hero-name {
    display: block;
    color: var(--berry);
    font-style: italic;
}

.hero-message {
    max-width: 510px;
    margin: 27px auto 36px;
    color: #806a7b;
    font-size: 15px;
    line-height: 2;
}

.explore-button {
    display: inline-flex;
    align-items: center;
    gap: 15px;
    padding: 16px 25px;
    background: var(--berry);
    color: white;
    border: 1px solid rgba(255,255,255,.3);
    border-radius: 40px;
    text-decoration: none;
    font-size: 12px;
    font-weight: 600;
    box-shadow: 0 8px 22px rgba(156,53,105,.17);
    transition: transform .3s, background .3s;
}

.explore-button:hover {
    transform: translateY(-4px);
    background: var(--deep-rose);
}

.explore-button span {
    font-size: 18px;
}

.scroll-hint {
    position: absolute;
    bottom: 32px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 9px;
    letter-spacing: 3px;
    color: var(--muted);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.scroll-hint span {
    font-size: 18px;
}


/* =========================================
   HERO DECORATIONS
========================================= */

.hero-decoration {
    position: absolute;
    color: var(--deep-rose);
    opacity: .65;
    pointer-events: none;
}

.decoration-one {
    top: 17%;
    left: 13%;
    font-size: 60px;
    transform: rotate(-15deg);
}

.decoration-two {
    right: 13%;
    top: 25%;
    font-size: 55px;
    color: var(--deep-lilac);
    transform: rotate(15deg);
}

.decoration-three {
    bottom: 19%;
    right: 19%;
    font-size: 48px;
}


/* =========================================
   PERSONAL NOTE
========================================= */

.little-note {
    padding: 110px 25px;
    text-align: center;
    position: relative;
    background:
        radial-gradient(circle at 10% 30%,
            rgba(255,255,255,.55), transparent 30%),
        linear-gradient(125deg,
            #efdff7, #f6ddec 60%, #f9e8f0);
}

.little-note h2 {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: clamp(30px, 5vw, 46px);
    max-width: 620px;
    margin: 0 auto 38px;
    line-height: 1.25;
    color: var(--berry);
}

.note-messages {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 22px;
    max-width: 950px;
    margin: auto;
}

.note-messages p {
    background: var(--cream);
    padding: 24px 22px;
    max-width: 250px;
    min-height: 125px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(185,160,217,.25);
    border-radius: 3px;
    font-family: 'Playfair Display', Georgia, serif;
    font-style: italic;
    font-size: 16px;
    line-height: 1.7;
    box-shadow: 0 8px 22px rgba(100,50,90,.07);
    transform: rotate(-2deg);
}

.note-messages p:nth-child(2) {
    transform: rotate(2deg);
}

.note-messages p:nth-child(3) {
    transform: rotate(-1deg);
}

.note-signature {
    display: block;
    margin-top: 35px;
    font-family: 'Playfair Display', Georgia, serif;
    font-style: italic;
    color: var(--berry);
    font-size: 20px;
}


/* =========================================
   GALLERY SECTION
========================================= */

.gallery-section {
    padding: 125px 6% 150px;
    position: relative;
    background-color: #fff9f6;
    background-image:
        radial-gradient(#d9b8ce .55px, transparent .55px);
    background-size: 19px 19px;
}

.section-heading {
    text-align: center;
    margin: 0 auto 105px;
    max-width: 680px;
}

.section-heading h2,
.finale h2 {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: clamp(35px, 5vw, 57px);
    line-height: 1.2;
    letter-spacing: -1px;
}

.section-heading h2 em {
    color: var(--berry);
    font-weight: 500;
}

.section-heading p {
    margin-top: 20px;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.9;
}


/* =========================================
   MEMORY GALLERY
========================================= */

.memory-gallery {
    max-width: 1050px;
    margin: auto;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 100px 90px;
    align-items: center;
}


/* =========================================
   SCRAPBOOK FRAMES
========================================= */

.memory-card {
    position: relative;
    isolation: isolate;
    overflow: visible;

    background: #fffdf9;
    padding: 14px;

    border: 1px solid #eadde2;
    border-radius: 3px;

    box-shadow:
        0 13px 30px rgba(91,52,77,.10),
        0 2px 5px rgba(91,52,77,.04);

    transition:
        transform .4s ease,
        box-shadow .4s ease;
}

.memory-card::before {
    content: "";
    position: absolute;
    width: 76px;
    height: 23px;
    top: -11px;
    left: 50%;
    transform: translateX(-50%) rotate(-4deg);
    background: rgba(230,171,199,.65);
    z-index: 3;
    box-shadow: 0 2px 4px rgba(80,40,60,.06);
}

.memory-card:nth-child(2)::before,
.memory-card:nth-child(5)::before {
    background: rgba(190,164,218,.65);
    transform: translateX(-50%) rotate(5deg);
}

.memory-card:nth-child(3)::before,
.memory-card:nth-child(7)::before {
    background: rgba(248,204,164,.65);
}

.memory-card:hover {
    transform: rotate(0deg) scale(1.025) translateY(-6px);
    z-index: 5;
    box-shadow: 0 22px 45px rgba(91,52,77,.16);
}


/* =========================================
   MEDIA PROPORTIONS
========================================= */

/* Vertical phone videos */

.video-card .media-frame {
    aspect-ratio: 9 / 16;
    background: #342832;
}

/* Group photographs */

.photo-card .media-frame {
    aspect-ratio: 4 / 3;
    background: #ead9e8;
}

.media-frame {
    width: 100%;
    overflow: hidden;
    border: 1px solid rgba(156,53,105,.08);
    border-radius: 2px;
}

.media-frame img,
.media-frame video {
    width: 100%;
    height: 100%;
    display: block;
}

.media-frame img {
    object-fit: cover;
}

.media-frame video {
    object-fit: contain;
    background: #342832;
}

/* Remove all media captions */
.card-caption {
    display: none !important;
}


/* =========================================
   INDIVIDUAL FRAME ROTATIONS
========================================= */

.card-one {
    transform: rotate(-4deg);
}

.card-two {
    transform: rotate(5deg) translateY(65px);
}

.card-three {
    transform: rotate(4deg) translateY(-10px);
}

.card-four {
    transform: rotate(-5deg) translateY(65px);
}

.card-five {
    transform: rotate(5deg);
}

.card-six {
    transform: rotate(-4deg) translateY(65px);
}

.card-seven {
    transform: rotate(-5deg) translateY(-5px);
}


/* =========================================
   FINAL APPRECIATION
========================================= */

.finale {
    min-height: 680px;
    padding: 120px 25px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    background:
        radial-gradient(ellipse at 10% 15%,
            rgba(255,255,255,.65), transparent 35%),
        radial-gradient(ellipse at 90% 85%,
            rgba(225,200,239,.65), transparent 40%),
        linear-gradient(135deg,
            #f6dce9, #f5e5f7 60%, #eadcf5);
}

.finale h2 {
    max-width: 690px;
    color: var(--berry);
}

.finale > p {
    max-width: 540px;
    color: #786478;
    line-height: 2;
    font-size: 14px;
    margin-top: 27px;
}

.final-heart {
    font-size: 58px;
    color: var(--berry);
    margin: 35px 0 20px;
    animation: heartbeat 2.5s infinite ease-in-out;
}

.finale h3 {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 21px;
    font-weight: 500;
    color: var(--ink);
}

.signature {
    color: var(--berry);
    font-family: 'Playfair Display', Georgia, serif;
    font-style: italic;
    font-size: 25px;
    margin-top: 12px;
}

.closing-note {
    font-size: 9px;
    letter-spacing: 3px;
    color: var(--muted);
    margin-top: 85px;
}


/* =========================================
   FLOATING DECORATIONS
========================================= */

.floating-decor {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 19;
    overflow: visible;
}

.balloon {
    position: fixed;
    bottom: -100px;
    border-radius: 50% 50% 45% 45%;
    opacity: .7;
    animation: floatUp linear forwards;
}

.balloon::after {
    content: "";
    position: absolute;
    height: 38px;
    width: 1px;
    background: #c58ca7;
    left: 50%;
    top: 100%;
}

@keyframes floatUp {
    to {
        transform: translateY(-115vh) translateX(25px);
        opacity: 0;
    }
}


/* =========================================
   GENERAL ANIMATIONS
========================================= */

@keyframes appear {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes heartbeat {
    0%, 100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.12);
    }
}


/* =========================================
   TABLET AND MOBILE
========================================= */

@media (max-width: 700px) {

    .hero {
        min-height: 90vh;
        min-height: 90svh;
        padding: 80px 22px 120px;
    }

    .hero h1 {
        letter-spacing: -1px;
    }

    .decoration-one {
        left: 5%;
        top: 12%;
    }

    .decoration-two {
        right: 5%;
    }

    .gallery-section {
        padding: 90px 7% 110px;
    }

    .section-heading {
        margin-bottom: 65px;
    }

    .memory-gallery {
        grid-template-columns: 1fr;
        gap: 75px;
        max-width: 430px;
    }

    .memory-card {
        width: 90%;
        margin: auto;
    }

    .card-one,
    .card-three,
    .card-five,
    .card-seven {
        transform: rotate(-3deg);
    }

    .card-two,
    .card-four,
    .card-six {
        transform: rotate(3deg);
        margin-top: 10px;
    }

    .little-note {
        padding: 80px 22px;
    }

    .note-messages {
        flex-direction: column;
        align-items: center;
    }

    .note-messages p {
        width: 100%;
        max-width: 320px;
    }

    .finale {
        min-height: 600px;
        padding: 90px 25px;
    }
}


/* =========================================
   REDUCED MOTION
========================================= */

@media (prefers-reduced-motion: reduce) {

    *, *::before, *::after {
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        scroll-behavior: auto !important;
        transition-duration: .01ms !important;
    }
}
