﻿/* =========================
   GOOGLE FONT (ROMANTIC)
========================= */
@import url('https://fonts.googleapis.com/css2?family=Great+Vibes&family=Poppins:wght@300;400;600&display=swap');

/* =========================
   BODY – VALENTINE BACKGROUND
========================= */
body {
    margin: 0;
    height: 100vh;
    font-family: 'Poppins', sans-serif;
    background: linear-gradient(-45deg, #ff4d6d, #ff758f, #ffb3c6, #ffc2d1 );
    background-size: 400% 400%;
    animation: gradientFlow 12s ease infinite;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Animated gradient */
@keyframes gradientFlow {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

/* =========================
   FLOATING HEARTS
========================= */
body::before,
body::after {
    content: "❤";
    position: absolute;
    font-size: 120px;
    opacity: 0.08;
    animation: floatHeart 10s infinite ease-in-out;
}

body::after {
    left: 70%;
    animation-delay: 4s;
}

@keyframes floatHeart {
    0% {
        transform: translateY(100vh) scale(0.6);
        opacity: 0;
    }

    50% {
        opacity: 0.15;
    }

    100% {
        transform: translateY(-20vh) scale(1.1);
        opacity: 0;
    }
}

/* =========================
   LOVE CARD (GLASS STYLE)
========================= */
.card {
    background: rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(12px);
    border-radius: 24px;
    padding: 35px 30px;
    width: 90%;
    max-width: 440px;
    text-align: center;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.25), inset 0 0 20px rgba(255, 255, 255, 0.2);
    animation: fadeIn 1.2s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(30px) scale(0.95);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* =========================
   HEADINGS
========================= */
h1 {
    font-family: 'Great Vibes', cursive;
    font-size: 25px;
    color: #fff;
    margin-bottom: 10px;
    text-shadow: 0 4px 10px rgba(0,0,0,0.3);
}

h2 {
    color: #fff;
    margin-bottom: 10px;
}

/* =========================
   LOVE TEXT
========================= */
p {
    color: #fff;
    font-size: 15px;
    line-height: 1.6;
}

.love-text {
    font-style: italic;
    color: #ffe6ec;
}

/* =========================
   INPUT
========================= */
input {
    width: 85%;
    padding: 12px 14px;
    border-radius: 18px;
    border: none;
    outline: none;
    margin-top: 12px;
    font-size: 14px;
    text-align: center;
    box-shadow: inset 0 0 8px rgba(0,0,0,0.2);
}

/* =========================
   BUTTON – LOVE GLOW
========================= */
.btn {
    display: inline-block;
    margin-top: 18px;
    padding: 12px 30px;
    border-radius: 30px;
    background: linear-gradient(135deg, #ff1e56, #ff4d6d);
    color: #fff;
    text-decoration: none;
    border: none;
    font-size: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 0 10px rgba(255, 77, 109, 0.6), 0 0 20px rgba(255, 77, 109, 0.4);
}

    .btn:hover {
        transform: scale(1.05);
        box-shadow: 0 0 15px rgba(255, 77, 109, 0.8), 0 0 30px rgba(255, 77, 109, 0.6);
    }

/* =========================
   MESSAGE TEXT
========================= */
#msg {
    margin-top: 12px;
    font-weight: 600;
    font-size: 14px;
}

/* =========================
   RESPONSIVE
========================= */
@media (max-width: 480px) {
    h1 {
        font-size: 34px;
    }

    .card {
        padding: 28px 22px;
    }
}
/* =========================
   PHOTO MEMORY BACKGROUND
========================= */
.memory-bg {
    position: fixed;
    inset: 0;
    /*background: linear-gradient(rgba(0,0,0,0.35), rgba(0,0,0,0.35)), url('/images/memory1.jpg');*/
    background: linear-gradient(rgba(0,0,0,0.35), rgba(0,0,0,0.35)), url('/images/memory11.jpg');
    background-size: cover;
    background-position: center;
    z-index: -3;
    animation: memorySlide 25s infinite ease-in-out;
}

@keyframes memorySlide {
/*    0% {
        background-image: linear-gradient(rgba(0,0,0,.35), rgba(0,0,0,.35)), url('/images/memory1.jpg');
    }

    33% {
        background-image: linear-gradient(rgba(0,0,0,.35), rgba(0,0,0,.35)), url('/images/memory2.jpg');
    }

    66% {
        background-image: linear-gradient(rgba(0,0,0,.35), rgba(0,0,0,.35)), url('/images/memory3.jpg');
    }

    100% {
        background-image: linear-gradient(rgba(0,0,0,.35), rgba(0,0,0,.35)), url('/images/memory1.jpg');
    }*/
    0% {
        background-image: linear-gradient(rgba(0,0,0,.35), rgba(0,0,0,.35)), url('/images/memory11.jpg');
    }

    33% {
        background-image: linear-gradient(rgba(0,0,0,.35), rgba(0,0,0,.35)), url('/images/memory12.jpg');
    }

    66% {
        background-image: linear-gradient(rgba(0,0,0,.35), rgba(0,0,0,.35)), url('/images/memory13.jpg');
    }

    100% {
        background-image: linear-gradient(rgba(0,0,0,.35), rgba(0,0,0,.35)), url('/images/memory11.jpg');
    }
}
/* =========================
   FLOATING OBJECTS
========================= */
.floating {
    position: fixed;
    top: -50px;
    font-size: 22px;
    animation: fall linear forwards;
    z-index: -1;
    pointer-events: none;
}

@keyframes fall {
    to {
        transform: translateY(110vh) rotate(360deg);
        opacity: 0;
    }
}
/* =========================
   SECRET MESSAGE
========================= */
.secret-box {
    margin-top: 20px;
}

.heart-btn {
    font-size: 40px;
    cursor: pointer;
    animation: heartbeat 1.4s infinite;
    user-select: none;
}

@keyframes heartbeat {
    0% {
        transform: scale(1);
    }

    25% {
        transform: scale(1.2);
    }

    40% {
        transform: scale(1);
    }

    60% {
        transform: scale(1.15);
    }

    100% {
        transform: scale(1);
    }
}

.secret-message {
    display: none;
    margin-top: 15px;
    font-size: 16px;
    color: #fff;
    font-style: italic;
    animation: fadeInSecret 2s ease forwards;
}

@keyframes fadeInSecret {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}
/* =========================
   COUNTDOWN TIMER
========================= */
.countdown {
    margin-top: 20px;
    display: flex;
    justify-content: space-around;
    color: #fff;
}

.time-box {
    text-align: center;
}

    .time-box span {
        font-size: 28px;
        font-weight: bold;
        display: block;
    }

    .time-box small {
        font-size: 12px;
        opacity: 0.8;
    }
