* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    min-height: 100vh;
    background: linear-gradient(-45deg, #fa7c92, #f9a8d4, #ffb3c6, #ffdde1);
    background-size: 400% 400%;
    animation: gradientBG 10s ease infinite;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Segoe UI', 'Dancing Script', 'Pacifico', cursive, sans-serif;
    padding: 10px;
    position: relative;
    overflow-x: hidden;
}

@keyframes gradientBG {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

/* floating hearts and stars */
.float-heart,
.float-star {
    position: absolute;
    color: rgba(255, 120, 180, 0.2);
    font-size: 40px;
    user-select: none;
    pointer-events: none;
    animation: floatAround 14s infinite alternate ease-in-out;
    z-index: 0;
}

.float-star {
    color: rgba(255, 215, 0, 0.2);
    font-size: 30px;
}

@keyframes floatAround {
    0% {
        transform: translate(0, 0) rotate(0deg) scale(1);
    }

    100% {
        transform: translate(30px, -30px) rotate(20deg) scale(1.2);
    }
}

/* main card */
.love-card {
    position: relative;
    z-index: 10;
    max-width: 750px;
    width: 100%;
    background: rgba(255, 240, 245, 0.3);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-radius: 40px 40px 35px 35px;
    padding: 25px 20px 30px;
    box-shadow: 0 30px 60px rgba(210, 0, 100, 0.4), 0 0 0 3px rgba(255, 255, 255, 0.5) inset;
    border: 1px solid rgba(255, 210, 230, 0.8);
    animation: cardBreath 3s infinite alternate;
}

@keyframes cardBreath {
    0% {
        box-shadow: 0 30px 50px rgba(255, 105, 180, 0.3), 0 0 0 3px rgba(255, 255, 255, 0.6) inset;
    }

    100% {
        box-shadow: 0 40px 70px rgba(255, 20, 140, 0.5), 0 0 0 6px rgba(255, 255, 180, 0.7) inset;
    }
}

/* header with two names — responsive */
.header-names {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 10px;
}

.name-badge {
    font-size: 2.2rem;
    font-weight: 700;
    padding: 8px 20px;
    border-radius: 60px;
    background: rgba(255, 240, 200, 0.3);
    backdrop-filter: blur(6px);
    box-shadow: 0 8px 20px rgba(255, 0, 100, 0.4);
    border: 2px solid white;
    transform: rotate(-1deg);
    animation: badgeGlow 2.2s infinite alternate;
    text-align: center;
    line-height: 1.2;
}

.name-badge.farzana {
    color: #ffe6f0;
    text-shadow: 0 0 20px #ff66b2, 0 0 35px #ff1493;
    background: linear-gradient(145deg, #ff80b0, #ff3b6f);
}

.name-badge.hamzo {
    color: #fff9e6;
    text-shadow: 0 0 20px #ffae42, 0 0 35px #ff8c00;
    background: linear-gradient(145deg, #ffb347, #ff7e5f);
    transform: rotate(2deg);
}

.heart-divider {
    font-size: 3rem;
    animation: heartbeat 1.3s infinite;
    filter: drop-shadow(0 0 10px red);
}

@keyframes heartbeat {
    0% {
        transform: scale(1);
    }

    20% {
        transform: scale(1.4);
    }

    40% {
        transform: scale(1);
    }

    60% {
        transform: scale(1.2);
    }

    80% {
        transform: scale(1);
    }
}

@keyframes badgeGlow {
    0% {
        box-shadow: 0 8px 20px rgba(255, 100, 150, 0.5);
        border-color: #ffb6c1;
    }

    100% {
        box-shadow: 0 15px 35px rgba(255, 215, 0, 0.7);
        border-color: #fffacd;
    }
}

/* Sub message from Hamzo */
.hamzo-message {
    text-align: center;
    font-size: 1.4rem;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 40px;
    padding: 6px 16px;
    width: fit-content;
    margin: 5px auto 15px;
    color: #fff1e0;
    text-shadow: 0 2px 5px #b30059;
    border: 1px solid rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(4px);
    font-family: 'Dancing Script', cursive;
    animation: softGlow 2s infinite;
    max-width: 95%;
}

@keyframes softGlow {

    0%,
    100% {
        letter-spacing: 1px;
        background: rgba(255, 220, 240, 0.2);
    }

    50% {
        letter-spacing: 2px;
        background: rgba(255, 200, 230, 0.4);
    }
}

/* messages container — responsive height */
.messages-container {
    background: rgba(255, 230, 240, 0.15);
    border-radius: 35px;
    padding: 15px 12px;
    max-height: 45vh;
    /* flexible for all screens */
    min-height: 200px;
    overflow-y: auto;
    border: 1px solid rgba(255, 255, 255, 0.7);
    box-shadow: inset 0 8px 20px rgba(0, 0, 0, 0.1), 0 10px 25px rgba(255, 105, 180, 0.3);
    scroll-behavior: smooth;
}

.messages-container::-webkit-scrollbar {
    width: 10px;
}

.messages-container::-webkit-scrollbar-track {
    background: #ffd9e6;
    border-radius: 20px;
}

.messages-container::-webkit-scrollbar-thumb {
    background: #ff80a5;
    border-radius: 20px;
    border: 2px solid #ffc0cb;
}

.messages-container::-webkit-scrollbar-thumb:hover {
    background: #ff4d7a;
}

.love-line {
    font-size: 1.2rem;
    padding: 6px 14px;
    margin: 6px 0;
    background: rgba(255, 250, 250, 0.5);
    border-radius: 35px;
    border-left: 6px solid #ffa5c3;
    box-shadow: 0 4px 10px rgba(255, 80, 140, 0.2);
    color: #2c1b2b;
    font-weight: 500;
    transition: all 0.25s;
    backdrop-filter: blur(2px);
    word-break: break-word;
    animation: slideUp 0.6s ease backwards;
}

@keyframes slideUp {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.love-line:hover {
    background: #fff0f8;
    border-left-color: #ff2a5c;
    transform: scale(1.01) translateX(6px);
    box-shadow: 0 8px 18px #ff66a5;
}

/* highlighted names inside line */
.highlight-farzana {
    display: inline-block;
    font-weight: 800;
    color: #ffebc0;
    background: linear-gradient(145deg, #e63e6b, #c9004f);
    padding: 1px 10px;
    border-radius: 40px;
    margin: 0 3px;
    text-shadow: 0 0 15px gold, 0 0 30px orange;
    font-size: 1.2rem;
    font-family: 'Pacifico', cursive;
    box-shadow: 0 0 15px #ff69b4;
    animation: pulseName 2s infinite alternate;
}

.highlight-hamzo {
    display: inline-block;
    font-weight: 700;
    color: #fef3c7;
    background: linear-gradient(145deg, #f79d4e, #e3632d);
    padding: 1px 10px;
    border-radius: 40px;
    margin: 0 3px;
    text-shadow: 0 0 12px #ffee80, 0 0 25px #ffb347;
    font-size: 1.1rem;
    font-family: 'Pacifico', cursive;
    box-shadow: 0 0 15px #ffae42;
    animation: pulseHamzo 2.3s infinite alternate;
}

/* small signature style */
.hamzo-signature {
    font-size: 0.85rem;
    background: #ffe0b0;
    border-radius: 20px;
    padding: 2px 6px;
    margin-left: 5px;
    color: #b34500;
    display: inline-block;
    white-space: nowrap;
}

@keyframes pulseName {
    0% {
        text-shadow: 0 0 12px gold;
        transform: scale(1);
    }

    100% {
        text-shadow: 0 0 25px yellow, 0 0 35px crimson;
        transform: scale(1.03);
    }
}

@keyframes pulseHamzo {
    0% {
        text-shadow: 0 0 10px #ffb347;
        transform: scale(1) rotate(-1deg);
    }

    100% {
        text-shadow: 0 0 30px #ff7e5f;
        transform: scale(1.04) rotate(1deg);
    }
}

/* footer */
.footer-note {
    text-align: center;
    margin-top: 18px;
    font-size: 1.3rem;
    color: #fff5e7;
    text-shadow: 0 0 15px #ff4080;
    background: rgba(255, 190, 200, 0.3);
    border-radius: 40px;
    padding: 6px 16px;
    width: fit-content;
    margin-left: auto;
    margin-right: auto;
    backdrop-filter: blur(4px);
    border: 1px solid #ffb3c6;
    animation: twinkle 2.5s infinite;
}

@keyframes twinkle {

    0%,
    100% {
        opacity: 1;
        background: rgba(255, 190, 200, 0.3);
    }

    50% {
        opacity: 0.8;
        background: rgba(255, 130, 170, 0.5);
    }
}

/* sparkle */
.sparkle {
    position: absolute;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background-color: gold;
    box-shadow: 0 0 20px gold;
    animation: sparkleMove 4s infinite;
    opacity: 0.4;
    z-index: 0;
}

/* bottom watermark */
body::after {
    content: "❤️ Hamzo kati ❤️";
    position: absolute;
    bottom: 2px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 14px;
    color: rgba(255, 255, 180, 0.25);
    white-space: nowrap;
    z-index: 0;
    font-family: 'Pacifico', cursive;
    pointer-events: none;
    animation: slideHorizontal 10s infinite;
}

@keyframes slideHorizontal {
    0% {
        transform: translateX(-50%) scale(1);
        opacity: 0.2;
    }

    50% {
        transform: translateX(-45%) scale(1.1);
        opacity: 0.35;
    }

    100% {
        transform: translateX(-50%) scale(1);
        opacity: 0.2;
    }
}

/* ========== RESPONSIVE FOR REDMI 10C & SMALL PHONES ========== */
@media screen and (max-width: 480px) {
    .love-card {
        padding: 18px 12px 22px;
        border-radius: 35px 35px 30px 30px;
    }

    .header-names {
        gap: 8px;
    }

    .name-badge {
        font-size: 1.6rem;
        padding: 6px 14px;
    }

    .heart-divider {
        font-size: 2.4rem;
    }

    .hamzo-message {
        font-size: 1.2rem;
        padding: 5px 12px;
    }

    .messages-container {
        max-height: 40vh;
        padding: 10px 8px;
    }

    .love-line {
        font-size: 1rem;
        padding: 5px 10px;
        border-left-width: 5px;
    }

    .highlight-farzana {
        font-size: 1rem;
        padding: 1px 8px;
    }

    .hamzo-signature {
        font-size: 0.75rem;
        padding: 1px 5px;
    }

    .footer-note {
        font-size: 1.1rem;
        padding: 5px 12px;
        margin-top: 12px;
    }

    body::after {
        font-size: 11px;
        bottom: 0;
    }

    /* stack names vertically if too narrow */
    .header-names {
        flex-direction: column;
    }

    .heart-divider {
        transform: rotate(90deg);
        margin: -5px 0;
    }
}

/* for very tiny screens (below 360px) */
@media screen and (max-width: 360px) {
    .name-badge {
        font-size: 1.4rem;
        padding: 4px 10px;
    }

    .love-line {
        font-size: 0.95rem;
    }

    .highlight-farzana {
        font-size: 0.95rem;
    }

    .hamzo-message {
        font-size: 1rem;
    }
}

/* for landscape mode and taller screens, make message area larger */
@media screen and (min-height: 700px) {
    .messages-container {
        max-height: 50vh;
    }
}

@media screen and (min-height: 900px) {
    .messages-container {
        max-height: 58vh;
    }
}