#header {
    background-image: url('images/valentine.jpg');background-color:#ffffff;
    background-repeat: no-repeat;
    background-position: center;
    height: 625px;
    width: 100%;
    position: relative;
    z-index: 0;
    top: 0;
}

@import url('https://fonts.googleapis.com/css2?family=Cinzel+Decorative&family=Libre+Baskerville&family=Special+Elite&display=swap');

* {
    box-sizing: border-box;
}

html, body {
    margin: 0;
    padding: 0;
    color: #5a2a2a;
    background: radial-gradient(circle at top, #fff0f6, #ffd6e5);
    overflow-x: hidden;
    font-family: 'Comic Neue', 'Baloo 2', cursive;
}

.contentx a:link,
.contentx a:visited {
    color: #d6336c;
    font-weight: 600;
    text-decoration: none;
    position: relative;
    background: linear-gradient(
        to right,
        rgba(255, 143, 171, 0.35),
        rgba(255, 143, 171, 0.35)
    );
    background-size: 0% 0.25em;
    background-position: 0 90%;
    background-repeat: no-repeat;
    transition:
        color 0.3s ease,
        background-size 0.35s ease;
}

.contentx a:hover,
.contentx a:focus {
    color: #a61e4d;
    background-size: 100% 0.25em;
}

.contentx a:active {
    color: #ff4d6d;
}


#footer a:link,
#footer a:visited {
    position: relative;
    text-decoration: none;
    font-size: 13px;
    letter-spacing: 0.4em;
    text-transform: uppercase;
    background: linear-gradient(
        120deg,
        #d6336c,
        #ff8fab,
        #ffe0ea,
        #ff8fab
    );
    background-size: 200% 100%;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    transition:
        background-position 0.6s ease,
        transform 0.25s ease,
        letter-spacing 0.25s ease;
}

#footer a:hover,
#footer a:focus {
    background-position: 100% 50%;
    transform: translateY(-3px) scale(1.05);
    letter-spacing: 0.45em;
}

#footer a:active {
    transform: scale(0.98);
}


.hearts {
    position: fixed;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
    z-index: 0;
}

.heart {
    position: absolute;
    top: -10%;
    color: rgba(214, 51, 108, 0.6);
    font-size: 22px;
    animation-name: fall, sway;
    animation-timing-function: linear, ease-in-out;
    animation-iteration-count: infinite;
}

@keyframes fall {
    from { transform: translateY(-10vh); }
    to   { transform: translateY(110vh); }
}

@keyframes sway {
    0%   { margin-left: 0; }
    50%  { margin-left: 40px; }
    100% { margin-left: 0; }
}


.heart:nth-child(1)  { left: 5%;  animation-duration: 14s, 4s; font-size: 18px; }
.heart:nth-child(2)  { left: 15%; animation-duration: 18s, 6s; }
.heart:nth-child(3)  { left: 25%; animation-duration: 16s, 5s; font-size: 26px; }
.heart:nth-child(4)  { left: 35%; animation-duration: 20s, 7s; }
.heart:nth-child(5)  { left: 45%; animation-duration: 15s, 4s; font-size: 20px; }
.heart:nth-child(6)  { left: 55%; animation-duration: 22s, 8s; }
.heart:nth-child(7)  { left: 65%; animation-duration: 17s, 5s; font-size: 24px; }
.heart:nth-child(8)  { left: 75%; animation-duration: 19s, 6s; }
.heart:nth-child(9)  { left: 85%; animation-duration: 21s, 7s; font-size: 28px; }
.heart:nth-child(10) { left: 95%; animation-duration: 16s, 4s; }


#navigation {
    position: relative;
    z-index: 2;
    width: 100%;
    display: flex;
    justify-content: center;
    gap: 36px;
    padding: 30px 60px;
    background: linear-gradient(180deg, #ffe0ea, #ffb3c6);
    border-bottom: 5px solid #d6336c;
    box-shadow: 0 22px 46px rgba(214,51,108,0.45);
}

#navigation::before {
    content: "❤ ❤ ❤";
    position: absolute;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    letter-spacing: 28px;
    color: rgba(214,51,108,0.45);
}


#navigation a {
    position: relative;
    font-size: 19px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    padding: 18px 36px;
    border-radius: 30px 50px;
    color: #8c1d40;
    background:
        radial-gradient(circle at top left, rgba(255,255,255,1), transparent 55%),
        linear-gradient(145deg, #fff5f8, #ffd1dc);
    box-shadow:
        inset 0 2px 0 rgba(255,255,255,1),
        0 12px 26px rgba(214,51,108,0.35);
    transform: skewX(-4deg);
    transition: all 0.35s ease;
}

#navigation a::after {
    content: "❤";
    position: absolute;
    top: -10px;
    right: -8px;
    font-size: 14px;
    color: rgba(214,51,108,0.6);
    transform: scale(0);
    transition: transform 0.35s ease;
}

#navigation a:hover {
    transform: skewX(-4deg) translateY(-6px) rotate(-1deg);
    background: linear-gradient(145deg, #ffc2d1, #ff8fab);
    box-shadow: 0 20px 40px rgba(214,51,108,0.55);
}

#navigation a:hover::after {
    transform: scale(1.3);
}

#navigation a.active {
    color: #fff;
    background: linear-gradient(145deg, #ff4d6d, #d6336c);
    box-shadow: 0 24px 46px rgba(214,51,108,0.65);
}


#content {
    position: relative;
    z-index: 2;
    max-width: 1400px;
    margin: 0 auto;
}

.contentx {
    margin: 0 auto 120px;
    padding: 80px 90px;
    font-size: 23px;
    line-height: 2.05;
    text-align: justify;
}


h1 {
    font-size: 46px;
    text-align: center;
    color: #d6336c;
    letter-spacing: 3px;
    text-shadow: 0 6px 0 #ffe0ea, 0 14px 30px rgba(214,51,108,0.45);
}

h1::after {
    content: "❤ ❦ ❤";
    display: block;
    margin-top: 18px;
    letter-spacing: 20px;
    opacity: 0.6;
}


blockquote {
    margin: 90px auto;
    padding: 56px 78px;
    max-width: 720px;
    background: linear-gradient(160deg, #fff0f6, #ffc2d1);
    border-left: 10px solid #d6336c;
    border-radius: 34px;
    box-shadow: 0 16px 36px rgba(214,51,108,0.4);
    position: relative;
}

blockquote::before {
    content: "❤";
    font-size: 76px;
    position: absolute;
    top: -30px;
    left: 18px;
    color: rgba(214,51,108,0.35);
}


textarea,
input,
select {
    width: 42%;
    padding: 1.8rem 1.3rem;
    background: #fff7fa;
    border: 2px solid rgba(214,51,108,0.4);
    border-radius: 999px;
    box-shadow: inset 0 2px 5px rgba(214,51,108,0.25);
}


#footer {
    position: relative;
    z-index: 2;
    margin: 150px auto 90px;
    text-align: center;
    color: #a61e4d;
    letter-spacing: 0.4em;
}

#footer::after {
    content: "❤ ❦ ❤";
    position: absolute;
    top: -20px;
    left: 50%;
    transform: translateX(-50%);
    letter-spacing: 28px;
    opacity: 0.6;
}


@media (max-width: 768px) {
    #navigation {
        flex-wrap: wrap;
        gap: 16px;
        padding: 24px;
        border-radius: 40px;
    }

    .contentx {
        padding: 40px 26px;
        font-size: 18px;
    }

    textarea,
    input,
    select {
        width: 80%;
    }
}
