/* =========================
   GLOBAL
   ========================= */

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: Arial, sans-serif;
    background: #fff7f9;
    color: #333;
    overflow-x: hidden;
}

img {
    max-width: 100%;
}


/* =========================
   NAVBAR
   ========================= */

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;

    padding: 20px 8%;

    background: white;

    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);

    position: relative;
    z-index: 100;
}

.logo {
    font-size: 22px;
    font-weight: bold;
}

.nav-links {
    display: flex;
    gap: 25px;
}

.nav-links a {
    text-decoration: none;
    color: #333;
    font-size: 15px;

    transition: 0.3s;
}

.nav-links a:hover {
    color: #e75480;
}


/* =========================
   HERO
   ========================= */

.hero {
    min-height: 80vh;

    display: flex;
    justify-content: center;
    align-items: center;

    text-align: center;

    padding: 40px 20px;

    background:
        linear-gradient(
            rgba(255, 240, 245, 0.8),
            rgba(255, 247, 249, 0.9)
        );
}

.hero-content {
    max-width: 800px;
}

.small-title {
    font-size: 13px;
    letter-spacing: 4px;

    color: #e75480;

    margin-bottom: 20px;
}

.hero h1 {
    font-size: 70px;
    margin-bottom: 20px;
}

.subtitle {
    font-size: 20px;
    line-height: 1.6;

    color: #666;

    margin-bottom: 35px;
}


/* =========================
   BUTTON
   ========================= */

.button {
    display: inline-block;

    padding: 14px 30px;

    background: #e75480;
    color: white;

    text-decoration: none;

    border-radius: 30px;

    transition: 0.3s;
}

.button:hover {
    transform: translateY(-3px);
    background: #d94370;
}


/* =========================
   INTRO
   ========================= */

.intro {
    text-align: center;

    max-width: 700px;

    margin: auto;

    padding: 80px 20px;
}

.intro h2 {
    font-size: 35px;
    margin-bottom: 20px;
}

.intro p {
    color: #666;

    line-height: 1.8;

    font-size: 17px;
}


/* =========================
   MEMORIES PAGE
   ========================= */

.memories-page {
    max-width: 1100px;

    margin: auto;

    padding: 80px 20px;
}


/* =========================
   PAGE HEADING
   ========================= */

.page-heading {
    text-align: center;

    margin-bottom: 80px;
}

.page-heading h1 {
    font-size: 50px;

    margin: 15px 0;
}

.page-heading p {
    color: #777;
}


/* =========================
   MEMORY
   ========================= */

.memory {
    display: grid;

    grid-template-columns: 1fr 1fr;

    gap: 60px;

    align-items: center;

    margin-bottom: 120px;
}

.memory.reverse {
    direction: rtl;
}

.memory.reverse .memory-content {
    direction: ltr;
}


/* =========================
   MEMORY IMAGE
   ========================= */

.memory-image {
    width: 100%;
    height: 400px;

    overflow: hidden;

    border-radius: 20px;

    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.12);
}

.memory-image img {
    width: 100%;
    height: 100%;

    object-fit: cover;

    display: block;

    transition: transform 0.5s ease;
}

.memory-image:hover img {
    transform: scale(1.05);
}


/* =========================
   MEMORY CONTENT
   ========================= */

.memory-content {
    padding: 20px;
}

.memory-date {
    color: #e75480;

    font-size: 14px;

    letter-spacing: 2px;

    font-weight: bold;
}

.memory-content h2 {
    font-size: 35px;

    margin: 15px 0 20px;
}

.memory-content p {
    color: #666;

    line-height: 1.8;

    margin-bottom: 15px;
}


/* =========================
   GALLERY PAGE
   ========================= */

.gallery-page {
    max-width: 1200px;

    margin: auto;

    padding: 80px 20px;
}


/* =========================
   GALLERY GRID
   ========================= */

.gallery-grid {
    display: grid;

    grid-template-columns: repeat(3, 1fr);

    gap: 20px;

    width: 100%;
}


/* =========================
   GALLERY ITEM
   ========================= */

.gallery-item {
    width: 100%;
    height: 280px;

    overflow: hidden;

    border-radius: 16px;

    cursor: pointer;

    background: #eee;

    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
}


/* =========================
   GALLERY IMAGE
   ========================= */

.gallery-item img {
    width: 100%;
    height: 100%;

    object-fit: cover;

    display: block;

    transition: transform 0.4s ease;
}

.gallery-item:hover img {
    transform: scale(1.05);
}


/* =========================
   FULLSCREEN PHOTO VIEWER
   ========================= */

/*
   IMPORTANT:
   This MUST be display: none by default.
*/

.photo-viewer {
    display: none;

    position: fixed;

    top: 0;
    left: 0;

    width: 100vw;
    height: 100vh;

    z-index: 99999;

    background: rgba(0, 0, 0, 0.92);

    justify-content: center;
    align-items: center;

    padding: 30px;
}


/*
   JavaScript can add a class or change
   display to flex when an image is clicked.
*/

.photo-viewer.active {
    display: flex;
}

.photo-viewer img {
    max-width: 90vw;
    max-height: 90vh;

    width: auto;
    height: auto;

    object-fit: contain;

    border-radius: 10px;

    display: block;
}


/* CLOSE BUTTON */

.close-viewer {
    position: absolute;

    top: 20px;
    right: 30px;

    color: white;

    font-size: 45px;

    line-height: 1;

    cursor: pointer;

    z-index: 100000;

    transition: 0.2s;
}

.close-viewer:hover {
    transform: scale(1.1);
}


/* =========================
   ANNIVERSARY
   ========================= */

.anniversary {
    text-align: center;

    padding: 100px 20px;

    background: #fff0f5;
}

.anniversary h2 {
    font-size: 50px;

    margin-bottom: 15px;
}

.anniversary-date {
    font-size: 18px;

    color: #777;

    margin-bottom: 30px;
}


/* =========================
   COUNTDOWN
   ========================= */

.countdown {
    display: flex;

    justify-content: center;

    align-items: center;

    gap: 20px;

    flex-wrap: wrap;

    margin: 35px auto;
}

.time-box {
    width: 120px;

    padding: 25px 15px;

    background: white;

    border-radius: 15px;

    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);

    text-align: center;
}

.time-box span {
    display: block;

    font-size: 38px;

    font-weight: bold;

    color: #e75480;

    margin-bottom: 8px;
}

.time-box small {
    font-size: 13px;

    color: #777;
}

.anniversary-message {
    color: #777;

    font-size: 16px;

    margin-top: 25px;
}


/* =========================
   SINCE PROPOSAL
   ========================= */

.since-proposal {
    text-align: center;

    padding: 80px 20px;

    background: white;
}

.since-proposal h2 {
    font-size: 45px;

    margin-bottom: 15px;
}

.since-proposal-date {
    color: #777;

    font-size: 18px;

    margin-bottom: 25px;
}

.since-box {
    display: inline-block;

    min-width: 150px;

    padding: 25px;

    background: #fff0f5;

    border-radius: 15px;
}

.since-box span {
    display: block;

    font-size: 40px;

    font-weight: bold;

    color: #e75480;
}

.since-box small {
    color: #777;
}

.since-proposal-message {
    color: #777;

    margin-top: 20px;
}


/* =========================
   FOOTER
   ========================= */

footer {
    text-align: center;

    padding: 30px;

    background: white;

    color: #777;
}


/* =====================================================
   TABLETS
   ===================================================== */

@media (max-width: 900px) {

    /* NAVBAR */

    .navbar {
        padding: 18px 5%;
    }

    .nav-links {
        gap: 15px;
    }


    /* HERO */

    .hero h1 {
        font-size: 55px;
    }


    /* MEMORIES */

    .memories-page {
        padding: 60px 25px;
    }

    .memory {
        gap: 35px;
    }

    .memory-content h2 {
        font-size: 30px;
    }

    .memory-image {
        height: 330px;
    }


    /* GALLERY */

    .gallery-page {
        padding: 60px 25px;
    }

    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }


    /* COUNTDOWN */

    .time-box {
        width: 105px;
    }
}


/* =====================================================
   PHONES
   ===================================================== */

@media (max-width: 700px) {

    body {
        overflow-x: hidden;
    }


    /* NAVBAR */

    .navbar {
        flex-direction: column;

        gap: 15px;

        padding: 20px 15px;

        text-align: center;
    }

    .logo {
        font-size: 20px;
    }

    .nav-links {
        display: flex;

        flex-wrap: wrap;

        justify-content: center;

        gap: 10px 16px;
    }

    .nav-links a {
        font-size: 14px;
    }


    /* HERO */

    .hero {
        min-height: 70vh;

        padding: 50px 20px;
    }

    .hero-content {
        width: 100%;
    }

    .small-title {
        font-size: 11px;

        letter-spacing: 3px;
    }

    .hero h1 {
        font-size: 42px;

        line-height: 1.15;
    }

    .subtitle {
        font-size: 17px;

        line-height: 1.6;
    }

    .button {
        padding: 13px 25px;
    }


    /* INTRO */

    .intro {
        padding: 60px 20px;
    }

    .intro h2 {
        font-size: 30px;
    }

    .intro p {
        font-size: 16px;
    }


    /* PAGE HEADINGS */

    .memories-page,
    .gallery-page {
        width: 100%;

        padding: 55px 15px;
    }

    .page-heading {
        margin-bottom: 55px;
    }

    .page-heading h1 {
        font-size: 38px;

        line-height: 1.2;
    }

    .page-heading p {
        line-height: 1.6;
    }


    /* MEMORIES */

    .memory {
        display: flex;

        flex-direction: column;

        gap: 20px;

        margin-bottom: 70px;

        width: 100%;

        padding: 0;
    }

    .memory.reverse {
        direction: ltr;

        display: flex;

        flex-direction: column;
    }


    /* MEMORY IMAGE */

    .memory-image {
        width: 100%;

        height: 280px;

        border-radius: 18px;
    }

    .memory-image img {
        width: 100%;
        height: 100%;

        object-fit: cover;
    }


    /* MEMORY CONTENT */

    .memory-content {
        width: 100%;

        padding: 5px 5px 0;
    }

    .memory-date {
        font-size: 12px;

        letter-spacing: 1.5px;
    }

    .memory-content h2 {
        font-size: 27px;

        line-height: 1.25;

        margin: 12px 0 15px;
    }

    .memory-content p {
        font-size: 15px;

        line-height: 1.8;

        margin-bottom: 15px;
    }


    /* =========================
       GALLERY MOBILE
       ========================= */

    .gallery-grid {
        grid-template-columns: 1fr;

        gap: 18px;
    }

    .gallery-item {
        width: 100%;

        height: 300px;

        border-radius: 16px;
    }

    .gallery-item img {
        width: 100%;
        height: 100%;

        object-fit: cover;
    }


    /* =========================
       PHOTO VIEWER MOBILE
       ========================= */

    .photo-viewer {
        padding: 15px;
    }

    .photo-viewer img {
        max-width: 95vw;

        max-height: 80vh;

        border-radius: 8px;
    }

    .close-viewer {
        top: 15px;

        right: 20px;

        font-size: 40px;
    }


    /* =========================
       ANNIVERSARY
       ========================= */

    .anniversary {
        padding: 65px 15px;
    }

    .anniversary h2 {
        font-size: 34px;

        line-height: 1.2;
    }

    .anniversary-date {
        font-size: 16px;
    }


    /* COUNTDOWN */

    .countdown {
        display: grid;

        grid-template-columns: repeat(2, 1fr);

        gap: 12px;

        max-width: 320px;

        margin: 30px auto;
    }

    .time-box {
        width: 100%;

        padding: 20px 10px;
    }

    .time-box span {
        font-size: 30px;
    }

    .time-box small {
        font-size: 10px;
    }

    .anniversary-message {
        font-size: 14px;

        line-height: 1.6;

        max-width: 350px;

        margin: auto;
    }


    /* SINCE PROPOSAL */

    .since-proposal {
        padding: 60px 15px;
    }

    .since-proposal h2 {
        font-size: 34px;
    }

    .since-proposal-date {
        font-size: 16px;
    }


    /* FOOTER */

    footer {
        padding: 25px 15px;

        font-size: 14px;
    }
}


/* =====================================================
   SMALL PHONES
   ===================================================== */

@media (max-width: 400px) {

    .logo {
        font-size: 18px;
    }

    .nav-links {
        gap: 8px 12px;
    }

    .nav-links a {
        font-size: 13px;
    }

    .hero h1 {
        font-size: 36px;
    }

    .subtitle {
        font-size: 16px;
    }

    .page-heading h1 {
        font-size: 33px;
    }

    .memory-image {
        height: 240px;
    }

    .memory-content h2 {
        font-size: 24px;
    }

    .memory-content p {
        font-size: 14px;
    }

    .gallery-item {
        height: 250px;
    }

    .anniversary h2 {
        font-size: 30px;
    }

    .time-box span {
        font-size: 26px;
    }
}