
/* =====================================================
   RANONTY WEBSITE
   Theme: Midnight Blue / Black / Burgundy
   Made with love by Malek
===================================================== */


/* =========================
   01 - ROOT VARIABLES
========================= */

:root {
    --black: #080d19;
    --dark: #0c1424;
    --navy: #142b50;
    --blue: #315b91;
    --light-blue: #a9b9d0;
    --burgundy: #681f3d;
    --burgundy-light: #963b5e;
    --white: #f4f6fb;
    --muted: #aebbd0;
    --glass: rgba(255, 255, 255, 0.055);
    --glass-border: rgba(190, 210, 240, 0.13);
    --shadow: 0 20px 65px rgba(0, 0, 0, 0.35);
    --radius: 22px;
    --transition: 0.35s ease;
}


/* =========================
   02 - RESET
========================= */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 100px;
}

body {
    min-height: 100vh;
    background: var(--black);
    color: var(--white);
    font-family: "Cairo", sans-serif;
    overflow-x: hidden;
    line-height: 1.9;
}

button,
input {
    font: inherit;
}

button {
    cursor: pointer;
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    display: block;
    max-width: 100%;
}

::selection {
    background: var(--burgundy-light);
    color: white;
}

.hidden {
    display: none !important;
}


/* =========================
   03 - BACKGROUND
========================= */

.background-effects {
    position: fixed;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
    z-index: -1;
    background:
        radial-gradient(
            ellipse at top right,
            rgba(20, 43, 80, 0.22),
            transparent 48%
        ),
        linear-gradient(
            145deg,
            #080d19 0%,
            #0b1220 50%,
            #100b19 100%
        );
}

.glow {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.2;
    animation: glowFloat 12s ease-in-out infinite alternate;
}

.glow-one {
    width: 350px;
    height: 350px;
    background: #315b91;
    top: 5%;
    right: -150px;
}

.glow-two {
    width: 300px;
    height: 300px;
    background: #681f3d;
    top: 45%;
    left: -150px;
    animation-delay: 2s;
}

.glow-three {
    width: 250px;
    height: 250px;
    background: #142b50;
    bottom: 0;
    right: 30%;
    animation-delay: 4s;
}

@keyframes glowFloat {
    from {
        transform: translate(0, 0) scale(1);
    }

    to {
        transform: translate(35px, -45px) scale(1.2);
    }
}


/* =========================
   04 - LOGIN SCREEN
========================= */

.login-screen {
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 25px;
    position: relative;
}

.login-card {
    width: min(100%, 480px);
    padding: 45px 35px;
    border-radius: 30px;
    text-align: center;
    background: rgba(15, 27, 47, 0.78);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(22px);
    box-shadow: var(--shadow);
    animation: cardAppear 0.8s ease both;
}

@keyframes cardAppear {
    from {
        opacity: 0;
        transform: translateY(35px) scale(0.96);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.login-decoration {
    width: 65px;
    height: 65px;
    margin: 0 auto 25px;
    border-radius: 22px;
    display: grid;
    place-items: center;
    background: linear-gradient(135deg, var(--navy), var(--burgundy));
    font-size: 28px;
    box-shadow: 0 10px 35px rgba(104, 31, 61, 0.35);
}

.small-intro {
    color: var(--light-blue);
    font-size: 13px;
    margin-bottom: 12px;
}

.login-title {
    font-size: clamp(30px, 6vw, 43px);
    line-height: 1.5;
    font-weight: 900;
}

.login-title span {
    display: block;
    color: #d7b0c0;
}

.login-description {
    margin: 18px 0 25px;
    color: var(--muted);
    font-size: 14px;
}

.input-wrapper input {
    width: 100%;
    padding: 14px 18px;
    border-radius: 14px;
    border: 1px solid var(--glass-border);
    outline: none;
    color: white;
    background: rgba(255, 255, 255, 0.05);
    text-align: center;
    transition: var(--transition);
}

.input-wrapper input:focus {
    border-color: var(--light-blue);
    box-shadow: 0 0 0 4px rgba(49, 91, 145, 0.15);
}

.login-message {
    min-height: 28px;
    margin-top: 10px;
    color: #e5a8bd;
    font-size: 13px;
}

.login-footer {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid var(--glass-border);
    color: var(--muted);
    font-size: 12px;
}

.login-footer span {
    color: #e4a7bc;
    display: block;
    font-weight: 800;
}


/* =========================
   05 - MAIN BUTTONS
========================= */

.main-button {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    border: none;
    padding: 13px 27px;
    border-radius: 14px;
    color: white;
    font-weight: 800;
    font-size: 14px;
    background: linear-gradient(120deg, var(--blue), var(--burgundy));
    box-shadow: 0 10px 30px rgba(49, 91, 145, 0.2);
    transition: var(--transition);
}

.main-button:hover {
    transform: translateY(-4px);
    box-shadow: 0 15px 35px rgba(104, 31, 61, 0.3);
    filter: brightness(1.15);
}

.main-button:active {
    transform: scale(0.97);
}


/* =========================
   06 - NAVBAR
========================= */

.navbar {
    width: min(1180px, calc(100% - 40px));
    min-height: 75px;
    margin: 20px auto;
    padding: 12px 22px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    background: rgba(12, 20, 36, 0.82);
    backdrop-filter: blur(18px);
    position: sticky;
    top: 12px;
    z-index: 100;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 900;
    font-size: 19px;
}

.logo-icon {
    color: #e2a8bd;
    font-size: 22px;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 25px;
}

.nav-links a {
    color: var(--muted);
    font-size: 13px;
    font-weight: 700;
    transition: var(--transition);
}

.nav-links a:hover {
    color: white;
}

.menu-toggle {
    display: none;
    background: transparent;
    border: none;
    flex-direction: column;
    gap: 5px;
    padding: 8px;
}

.menu-toggle span {
    width: 24px;
    height: 2px;
    border-radius: 5px;
    background: white;
}


/* =========================
   07 - GENERAL SECTIONS
========================= */

.main-website {
    width: 100%;
    overflow: hidden;
    animation: websiteAppear 0.9s ease both;
}

@keyframes websiteAppear {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.section {
    width: min(1100px, calc(100% - 40px));
    margin: 0 auto;
    padding: 100px 0;
}

.section-heading {
    text-align: center;
    margin-bottom: 45px;
}

.section-label {
    display: inline-block;
    color: #c6a3b3;
    background: rgba(104, 31, 61, 0.18);
    border: 1px solid rgba(180, 95, 125, 0.18);
    padding: 6px 16px;
    border-radius: 50px;
    font-size: 12px;
    font-weight: 700;
    margin-bottom: 15px;
}

.section-heading h2,
.final-card h2 {
    font-size: clamp(27px, 5vw, 39px);
    font-weight: 900;
    line-height: 1.6;
}

.section-heading h2 span,
.final-card h2 span {
    color: #d7a4b9;
}

.section-heading > p {
    color: var(--muted);
    font-size: 14px;
    margin-top: 8px;
}


/* =========================
   08 - HERO
========================= */

.hero {
    min-height: 570px;
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    align-items: center;
    gap: 55px;
    padding-top: 75px;
}

.hero-title {
    font-size: clamp(38px, 6vw, 57px);
    font-weight: 900;
    line-height: 1.5;
    margin-bottom: 18px;
}

.hero-title span {
    color: #d6a3b8;
    display: block;
}

.hero-description {
    color: var(--muted);
    font-size: 15px;
    line-height: 2.1;
}

.hero-highlight {
    margin: 22px 0;
    padding-right: 15px;
    border-right: 3px solid var(--burgundy-light);
    color: #dce4f2;
    font-size: 14px;
    line-height: 2;
}

.hero-image {
    height: 420px;
    position: relative;
    border-radius: 30px;
    overflow: hidden;
    border: 1px solid var(--glass-border);
    box-shadow: var(--shadow);
}

.hero-image::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to top,
        rgba(5, 10, 20, 0.9),
        transparent 65%
    );
}

.hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 1s ease;
}

.hero-image:hover img {
    transform: scale(1.06);
}

.image-caption {
    position: absolute;
    bottom: 25px;
    right: 25px;
    left: 25px;
    z-index: 2;
    display: flex;
    flex-direction: column;
}

.image-caption span {
    color: #c4d1e5;
    font-size: 13px;
}

.image-caption strong {
    color: white;
    font-size: 18px;
}


/* =========================
   09 - PROGRESS BAR
========================= */

.progress-container {
    width: min(700px, calc(100% - 50px));
    margin: 0 auto;
    padding: 18px 22px;
    border-radius: 16px;
    background: var(--glass);
    border: 1px solid var(--glass-border);
}

.progress-info {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: var(--muted);
    margin-bottom: 10px;
}

.progress-info span:last-child {
    color: #d9a9bd;
    font-weight: 800;
}

.progress-track {
    height: 7px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    overflow: hidden;
}

.progress-bar {
    width: 0;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, var(--blue), #bd7894);
    transition: width 0.4s ease;
}


/* =========================
   10 - LETTER
========================= */

.letter-card {
    max-width: 800px;
    margin: auto;
    padding: 35px;
    border-radius: var(--radius);
    background: linear-gradient(
        145deg,
        rgba(20, 43, 80, 0.42),
        rgba(104, 31, 61, 0.15)
    );
    border: 1px solid var(--glass-border);
    box-shadow: var(--shadow);
}

.letter-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--glass-border);
    color: var(--light-blue);
    font-size: 13px;
    font-weight: 700;
}

.letter-heart {
    color: #df9ab3;
    font-size: 24px;
}

.letter-content {
    padding-top: 22px;
}

.letter-content p {
    margin-bottom: 18px;
    color: #d1dbea;
    font-size: 15px;
    line-height: 2.2;
}

.letter-signature {
    display: block;
    margin-top: 30px;
    color: #d9a7ba;
    font-family: "Aref Ruqaa", serif;
    font-size: 24px;
    line-height: 1.8;
    text-align: left;
}

.letter-signature strong {
    display: block;
    font-size: 31px;
}


/* =========================
   11 - MOMENTS GRID
========================= */

.moments-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 17px;
}

.moment-card {
    min-height: 185px;
    padding: 22px 12px;
    border-radius: 20px;
    border: 1px solid var(--glass-border);
    background: var(--glass);
    color: white;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 9px;
    transition: var(--transition);
}

.moment-card:hover {
    transform: translateY(-7px);
    background: rgba(49, 91, 145, 0.18);
    border-color: rgba(169, 185, 208, 0.35);
}

.moment-icon {
    font-size: 32px;
    margin-bottom: 5px;
}

.moment-card strong {
    font-size: 14px;
}

.moment-card small {
    font-size: 11px;
    color: var(--muted);
}


/* =========================
   12 - MOOD SELECTOR
========================= */

.mood-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
}

.mood-button {
    min-height: 120px;
    border-radius: 18px;
    background: var(--glass);
    border: 1px solid var(--glass-border);
    color: white;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 27px;
    transition: var(--transition);
}

.mood-button span {
    font-size: 13px;
    font-weight: 700;
}

.mood-button:hover,
.mood-button.active {
    background: rgba(104, 31, 61, 0.28);
    border-color: rgba(205, 130, 160, 0.4);
    transform: translateY(-5px);
}

.mood-result {
    max-width: 700px;
    margin: 25px auto 0;
    padding: 28px;
    text-align: center;
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    background: linear-gradient(
        120deg,
        rgba(20, 43, 80, 0.5),
        rgba(104, 31, 61, 0.2)
    );
    animation: resultAppear 0.45s ease both;
}

.mood-result p {
    color: #e0e7f3;
    font-size: 15px;
    line-height: 2.2;
}

.result-decoration {
    color: #d9a7ba;
    font-size: 25px;
    display: block;
    margin-bottom: 12px;
}

@keyframes resultAppear {
    from {
        opacity: 0;
        transform: translateY(15px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}


/* =========================
   13 - ENVELOPE
========================= */

.envelope-section {
    text-align: center;
}

.envelope-button {
    border: none;
    background: transparent;
    color: white;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 22px;
    margin: auto;
}

.envelope-button strong {
    color: #d8b1c1;
    font-size: 14px;
}

.envelope {
    width: 190px;
    height: 125px;
    position: relative;
    border-radius: 10px;
    background: linear-gradient(140deg, #315b91, #681f3d);
    box-shadow: 0 15px 45px rgba(0, 0, 0, 0.35);
    transition: var(--transition);
}

.envelope::before,
.envelope::after {
    content: "";
    position: absolute;
    bottom: 0;
    width: 0;
    height: 0;
    border-style: solid;
}

.envelope::before {
    right: 0;
    border-width: 0 0 125px 95px;
    border-color: transparent transparent #233e64 transparent;
}

.envelope::after {
    left: 0;
    border-width: 125px 0 0 95px;
    border-color: transparent transparent transparent #963b5e;
}

.envelope-flap {
    position: absolute;
    top: 0;
    right: 0;
    width: 0;
    height: 0;
    border-left: 95px solid transparent;
    border-right: 95px solid transparent;
    border-top: 80px solid #a34b6b;
    transform-origin: top;
    transition: transform 0.6s ease;
    z-index: 3;
}

.envelope-heart {
    position: absolute;
    top: 42px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 4;
    color: white;
    font-size: 30px;
}

.envelope-button:hover .envelope {
    transform: translateY(-8px);
}

.envelope-button.opened .envelope-flap {
    transform: rotateX(180deg);
}

.envelope-message {
    max-width: 700px;
    margin: 45px auto 0;
    padding: 35px;
    border: 1px solid var(--glass-border);
    border-radius: 25px;
    background: rgba(20, 43, 80, 0.35);
    box-shadow: var(--shadow);
    animation: resultAppear 0.6s ease both;
}

.envelope-message h3 {
    color: #d9a7ba;
    margin: 12px 0;
    font-size: 25px;
}

.envelope-message p {
    color: #d1dbea;
    font-size: 14px;
    line-height: 2.2;
    margin-bottom: 12px;
}


/* =========================
   14 - INSPIRATION
========================= */

.quote-card {
    height: 340px;
    position: relative;
    overflow: hidden;
    border-radius: 25px;
    border: 1px solid var(--glass-border);
    box-shadow: var(--shadow);
    margin-bottom: 30px;
}

.quote-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 1s ease;
}

.quote-card:hover img {
    transform: scale(1.04);
}

.quote-overlay {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    padding: 25px;
    text-align: center;
    background: linear-gradient(
        90deg,
        rgba(8, 13, 25, 0.5),
        rgba(8, 13, 25, 0.75)
    );
}

.arabic-quote {
    max-width: 600px;
    font-family: "Aref Ruqaa", serif;
    font-size: clamp(27px, 5vw, 43px);
    line-height: 1.8;
    color: white;
    text-shadow: 0 3px 15px rgba(0, 0, 0, 0.5);
}

.reminders-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
}

.reminder-card {
    padding: 22px;
    min-height: 145px;
    border-radius: 18px;
    background: var(--glass);
    border: 1px solid var(--glass-border);
    transition: var(--transition);
}

.reminder-card:hover {
    transform: translateY(-5px);
    border-color: rgba(169, 185, 208, 0.35);
}

.reminder-card span {
    color: #d39ab0;
    font-weight: 900;
    font-size: 13px;
}

.reminder-card p {
    margin-top: 10px;
    color: #d3ddeb;
    font-size: 13px;
    line-height: 2;
}


/* =========================
   15 - RANDOM MESSAGE
========================= */

.random-card {
    padding: 55px 30px;
    text-align: center;
    border-radius: 28px;
    border: 1px solid var(--glass-border);
    background: linear-gradient(
        130deg,
        rgba(20, 43, 80, 0.5),
        rgba(104, 31, 61, 0.25)
    );
    box-shadow: var(--shadow);
}

.random-card h2 {
    font-size: clamp(23px, 4vw, 32px);
    margin: 8px 0;
}

.random-card > p {
    color: var(--muted);
    font-size: 13px;
    margin-bottom: 25px;
}

.random-message {
    max-width: 600px;
    margin: 25px auto 0;
    color: #e2c1ce;
    font-size: 16px;
    line-height: 2.1;
    min-height: 45px;
}

.random-message p {
    animation: resultAppear 0.4s ease both;
}


/* =========================
   16 - MEMORIES
========================= */

.memory-card {
    position: relative;
    max-width: 800px;
    margin: auto;
    padding: 20px 35px;
    border-radius: 25px;
    border: 1px solid var(--glass-border);
    background: var(--glass);
}

.memory-line {
    position: absolute;
    right: 43px;
    top: 40px;
    bottom: 40px;
    width: 2px;
    background: linear-gradient(
        to bottom,
        var(--blue),
        var(--burgundy)
    );
}

.memory-item {
    position: relative;
    display: flex;
    align-items: flex-start;
    gap: 25px;
    padding: 20px 0;
}

.memory-dot {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    border-radius: 50%;
    background: #315b91;
    border: 4px solid #172b4b;
    z-index: 2;
    margin-top: 5px;
}

.memory-item h3 {
    color: #d7a4b9;
    font-size: 16px;
    margin-bottom: 6px;
}

.memory-item p {
    color: var(--muted);
    font-size: 13px;
    line-height: 2;
}


/* =========================
   17 - FINAL SECTION
========================= */

.final-card {
    padding: 60px 40px;
    text-align: center;
    border-radius: 30px;
    border: 1px solid var(--glass-border);
    background: linear-gradient(
        145deg,
        rgba(20, 43, 80, 0.55),
        rgba(104, 31, 61, 0.22)
    );
    box-shadow: var(--shadow);
}

.final-heart {
    display: block;
    color: #d9a7ba;
    font-size: 38px;
    margin-bottom: 15px;
    animation: heartBeat 1.8s infinite;
}

@keyframes heartBeat {
    0%, 100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.17);
    }
}

.final-card > p {
    max-width: 720px;
    margin: 18px auto;
    color: #d1dbea;
    font-size: 14px;
    line-height: 2.2;
}

.final-button {
    margin-top: 20px;
}

.final-extra {
    max-width: 650px;
    margin: 30px auto 0;
    padding: 25px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.05);
    animation: resultAppear 0.6s ease both;
}

.final-extra p {
    color: #d8e1ee;
    line-height: 2.2;
    font-size: 14px;
}

.final-extra h3 {
    color: #d9a7ba;
    margin-top: 15px;
}

.final-signature {
    margin-top: 45px;
    padding-top: 25px;
    border-top: 1px solid var(--glass-border);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
}

.final-signature span {
    color: var(--muted);
    font-size: 13px;
}

.final-signature strong {
    color: #e2a8bd;
    font-family: "Aref Ruqaa", serif;
    font-size: 34px;
}


/* =========================
   18 - FOOTER
========================= */

.footer {
    padding: 45px 20px;
    text-align: center;
    border-top: 1px solid var(--glass-border);
    background: rgba(8, 13, 25, 0.5);
}

.footer-heart {
    color: #d9a7ba;
    font-size: 25px;
    margin-bottom: 10px;
}

.footer p {
    color: #d9e1ee;
    font-size: 14px;
}

.footer span {
    display: block;
    margin: 8px 0;
    color: var(--light-blue);
    font-size: 11px;
}

.footer small {
    color: #77869e;
    font-size: 10px;
}


/* =========================
   19 - POPUP
========================= */

.message-popup {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: grid;
    place-items: center;
    padding: 20px;
    background: rgba(3, 7, 15, 0.82);
    backdrop-filter: blur(10px);
    animation: popupBackground 0.3s ease both;
}

@keyframes popupBackground {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.popup-card {
    width: min(100%, 480px);
    padding: 40px 30px;
    text-align: center;
    position: relative;
    border-radius: 25px;
    background: linear-gradient(
        145deg,
        #142b50,
        #161324
    );
    border: 1px solid var(--glass-border);
    box-shadow: var(--shadow);
    animation: popupCardAppear 0.4s ease both;
}

@keyframes popupCardAppear {
    from {
        opacity: 0;
        transform: scale(0.88) translateY(20px);
    }

    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.popup-close {
    position: absolute;
    left: 15px;
    top: 10px;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    border: none;
    color: white;
    background: rgba(255, 255, 255, 0.08);
    font-size: 24px;
}

.popup-heart {
    color: #d9a7ba;
    font-size: 30px;
}

.popup-card h2 {
    color: #e2b4c5;
    margin: 12px 0;
}

.popup-card p {
    color: #d7e0ef;
    font-size: 14px;
    line-height: 2.2;
}

.popup-signature {
    display: block;
    margin-top: 25px;
    color: #d8a7ba;
    font-weight: 800;
}


/* =========================
   20 - BACK TO TOP
========================= */

.back-to-top {
    position: fixed;
    bottom: 25px;
    left: 25px;
    width: 48px;
    height: 48px;
    border: 1px solid var(--glass-border);
    border-radius: 15px;
    color: white;
    background: linear-gradient(135deg, var(--blue), var(--burgundy));
    font-size: 25px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(15px);
    transition: var(--transition);
    z-index: 90;
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    transform: translateY(-5px);
}


/* =========================
   21 - REVEAL ANIMATIONS
========================= */

.reveal {
    opacity: 0;
    transform: translateY(28px);
    transition:
        opacity 0.8s ease,
        transform 0.8s ease;
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}


/* =========================
   22 - RESPONSIVE TABLET
========================= */

@media (max-width: 900px) {

    .hero {
        grid-template-columns: 1fr;
        gap: 35px;
    }

    .hero-content {
        text-align: center;
    }

    .hero-highlight {
        border-right: none;
        padding: 0;
    }

    .hero-image {
        width: min(100%, 650px);
        margin: auto;
        height: 350px;
    }

    .moments-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .reminders-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .nav-links {
        gap: 13px;
    }

    .nav-links a {
        font-size: 11px;
    }

}


/* =========================
   23 - RESPONSIVE MOBILE
========================= */

@media (max-width: 650px) {

    html {
        scroll-padding-top: 85px;
    }

    .navbar {
        width: calc(100% - 25px);
        min-height: 65px;
        padding: 10px 15px;
    }

    .menu-toggle {
        display: flex;
    }

    .nav-links {
        position: absolute;
        top: calc(100% + 10px);
        right: 0;
        left: 0;
        padding: 18px;
        display: none;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        border-radius: 18px;
        background: #101b30;
        border: 1px solid var(--glass-border);
        box-shadow: var(--shadow);
    }

    .nav-links.active {
        display: flex;
        animation: resultAppear 0.25s ease both;
    }

    .nav-links a {
        padding: 11px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.06);
        font-size: 13px;
    }

    .nav-links a:last-child {
        border-bottom: none;
    }

    .section {
        width: calc(100% - 30px);
        padding: 70px 0;
    }

    .hero {
        padding-top: 55px;
        min-height: auto;
    }

    .hero-title {
        font-size: 39px;
    }

    .hero-description {
        font-size: 13px;
    }

    .hero-image {
        height: 280px;
        border-radius: 22px;
    }

    .image-caption {
        right: 17px;
        bottom: 18px;
    }

    .image-caption strong {
        font-size: 15px;
    }

    .section-heading {
        margin-bottom: 30px;
    }

    .section-heading > p {
        font-size: 12px;
    }

    .letter-card {
        padding: 23px 18px;
    }

    .letter-content p {
        font-size: 13px;
    }

    .moments-grid {
        gap: 10px;
    }

    .moment-card {
        min-height: 155px;
        padding: 15px 8px;
    }

    .moment-card strong {
        font-size: 12px;
    }

    .moment-card small {
        font-size: 10px;
    }

    .moment-icon {
        font-size: 27px;
    }

    .mood-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .mood-button {
        min-height: 105px;
    }

    .mood-result {
        padding: 20px;
    }

    .mood-result p {
        font-size: 13px;
    }

    .envelope-message {
        padding: 25px 18px;
    }

    .envelope-message p {
        font-size: 13px;
    }

    .quote-card {
        height: 260px;
    }

    .reminders-grid {
        grid-template-columns: 1fr;
    }

    .reminder-card {
        min-height: auto;
        padding: 18px;
    }

    .memory-card {
        padding: 15px 20px;
    }

    .memory-line {
        right: 28px;
    }

    .memory-item {
        gap: 15px;
    }

    .memory-item h3 {
        font-size: 14px;
    }

    .memory-item p {
        font-size: 12px;
    }

    .final-card {
        padding: 40px 20px;
    }

    .final-card > p {
        font-size: 13px;
    }

    .popup-card {
        padding: 35px 22px;
    }

    .back-to-top {
        bottom: 15px;
        left: 15px;
        width: 43px;
        height: 43px;
    }

    .footer {
        padding: 35px 15px;
    }

}


/* =========================
   24 - SMALL SCREENS
========================= */

@media (max-width: 360px) {

    .hero-title {
        font-size: 33px;
    }

    .moment-card {
        min-height: 145px;
    }

    .moment-card strong {
        font-size: 11px;
    }

    .login-card {
        padding: 35px 20px;
    }

}


/* =========================
   25 - ACCESSIBILITY
========================= */

button:focus-visible,
a:focus-visible,
input:focus-visible {
    outline: 2px solid #b7c9e2;
    outline-offset: 4px;
}

@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    .reveal {
        opacity: 1;
        transform: none;
    }

}
