/* 
    Romantic Theme Variables 
    Colors: Rose, Warm Beige, Night Sky, Soft Pink
*/
:root {
    --bg-color: #0f0c29;
    --night-sky: #0a0a0a;
    --rose-gold: #b76e79;
    --soft-pink: #f2c7cc;
    --warm-beige: #f5f5dc;
    --text-color: #fce4ec;

    --font-heading: 'Great Vibes', cursive;
    --font-subheading: 'Cormorant Garamond', serif;
    --font-body: 'Montserrat', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
}

body {
    background: linear-gradient(to bottom, #0f0c29, #302b63, #24243e);
    color: var(--text-color);
    font-family: var(--font-body);
    overflow-x: hidden;
    position: relative;
}

/* Background Canvas */
#starsCanvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
}

#heartsContainer {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 100;
}

/* Floating Heart Element */
.floating-heart {
    position: absolute;
    color: var(--soft-pink);
    font-size: 20px;
    animation: floatUp 3s ease-in forwards;
    opacity: 0.8;
}

@keyframes floatUp {
    0% {
        transform: translateY(0) scale(1);
        opacity: 1;
    }

    100% {
        transform: translateY(-100px) scale(1.5);
        opacity: 0;
    }
}

/* Navigation */
nav {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 1rem 2rem;
    z-index: 10;
    background: rgba(15, 12, 41, 0.4);
    backdrop-filter: blur(10px);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    text-decoration: none;
    color: var(--soft-pink);
    font-family: var(--font-heading);
    font-size: 2rem;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 1.5rem;
}

.nav-links a {
    text-decoration: none;
    color: var(--warm-beige);
    font-family: var(--font-subheading);
    font-size: 1.2rem;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: var(--soft-pink);
    text-shadow: 0 0 5px var(--rose-gold);
}

/* Typography Base */
.section-title {
    font-family: var(--font-heading);
    font-size: 3.5rem;
    color: var(--soft-pink);
    text-align: center;
    margin-bottom: 2rem;
    text-shadow: 0 0 10px rgba(242, 199, 204, 0.5);
}

.section-padding {
    padding: 100px 20px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.dark-bg {
    background: rgba(0, 0, 0, 0.2);
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
}

/* Scroll Fade Init */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 1s ease-out, transform 1s ease-out;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

.fade-in-scroll {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.8s ease-out;
}

.fade-in-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

/* 1. HERO SECTION */
#hero {
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    position: relative;
    padding-top: 60px;
}

.to-leila {
    font-family: var(--font-heading);
    font-size: 5rem;
    color: var(--soft-pink);
    margin-bottom: 0.5rem;
    text-shadow: 0 0 20px var(--rose-gold);
    animation: gentlePulse 3s infinite alternate;
}

@keyframes gentlePulse {
    from {
        transform: scale(1);
        text-shadow: 0 0 10px var(--rose-gold);
    }

    to {
        transform: scale(1.05);
        text-shadow: 0 0 25px var(--rose-gold);
    }
}

.hero-title {
    font-family: var(--font-subheading);
    font-size: 2.5rem;
    font-weight: 300;
    color: var(--warm-beige);
    max-width: 800px;
    margin: 0 auto 1rem auto;
    line-height: 1.4;
}

.hero-subtitle {
    font-size: 1.1rem;
    font-weight: 300;
    color: #ccc;
    font-style: italic;
    opacity: 0.8;
}

.scroll-down-btn {
    position: absolute;
    bottom: 40px;
    color: var(--soft-pink);
    font-size: 2rem;
    text-decoration: none;
    animation: bounce 2s infinite;
}

@keyframes bounce {

    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translateY(0);
    }

    40% {
        transform: translateY(-15px);
    }

    60% {
        transform: translateY(-7px);
    }
}

/* 2. OUR STORY */
.timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto 3rem auto;
}

.timeline::after {
    content: '';
    position: absolute;
    width: 2px;
    background-color: var(--rose-gold);
    top: 0;
    bottom: 0;
    left: 50%;
    margin-left: -1px;
    box-shadow: 0 0 10px var(--rose-gold);
}

.timeline-item {
    padding: 10px 40px;
    position: relative;
    background-color: inherit;
    width: 50%;
}

.timeline-item::after {
    content: '';
    position: absolute;
    width: 16px;
    height: 16px;
    right: -8px;
    background-color: var(--warm-beige);
    border: 4px solid var(--rose-gold);
    top: 20px;
    border-radius: 50%;
    z-index: 1;
    box-shadow: 0 0 10px var(--rose-gold);
}

.left {
    left: 0;
}

.right {
    left: 50%;
}

.left::after {
    right: -8px;
}

.right::after {
    left: -8px;
}

.timeline-content {
    padding: 20px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.timeline-content h3 {
    font-family: var(--font-subheading);
    color: var(--soft-pink);
    font-size: 1.5rem;
    margin-bottom: 10px;
}

.timeline-content p {
    font-size: 1rem;
    line-height: 1.6;
    color: var(--warm-beige);
}

.emotional-line {
    font-family: var(--font-subheading);
    font-size: 2rem;
    font-style: italic;
    color: var(--soft-pink);
    text-align: center;
    margin: 2rem 0 4rem 0;
    text-shadow: 0 0 10px var(--rose-gold);
}

.love-map {
    text-align: center;
    max-width: 800px;
}

.aesthetic-img {
    width: 100%;
    max-width: 600px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: transform 0.5s ease;
}

.aesthetic-img:hover {
    transform: scale(1.02);
}

.caption {
    margin-top: 15px;
    font-style: italic;
    color: var(--warm-beige);
    opacity: 0.8;
}

/* 3. FAVORITE MEMORY */
.memory-box {
    text-align: center;
    padding: 3rem;
    background: rgba(183, 110, 121, 0.1);
    border-radius: 20px;
    border: 1px solid rgba(183, 110, 121, 0.3);
    max-width: 800px;
}

.pulse-glow {
    animation: bgPulse 4s infinite alternate;
}

@keyframes bgPulse {
    from {
        box-shadow: 0 0 20px rgba(183, 110, 121, 0.2);
    }

    to {
        box-shadow: 0 0 40px rgba(183, 110, 121, 0.5);
    }
}

.romantic-text {
    font-family: var(--font-subheading);
    font-size: 1.8rem;
    color: var(--warm-beige);
    margin-bottom: 20px;
}

.highlight-text {
    font-family: var(--font-heading);
    font-size: 4rem;
    color: var(--soft-pink);
    text-shadow: 0 0 15px var(--rose-gold);
}

/* 4. LOVE TIMER */
.timer-container {
    display: flex;
    gap: 20px;
    margin-top: 2rem;
    flex-wrap: wrap;
    justify-content: center;
}

.time-box {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--rose-gold);
    padding: 20px;
    border-radius: 15px;
    min-width: 120px;
    text-align: center;
    box-shadow: 0 0 15px rgba(183, 110, 121, 0.2);
    backdrop-filter: blur(5px);
}

.time-box span {
    font-family: var(--font-subheading);
    font-size: 3rem;
    font-weight: bold;
    color: var(--soft-pink);
    display: block;
}

.time-box p {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--warm-beige);
}

.timer-caption {
    font-family: var(--font-subheading);
    font-size: 1.5rem;
    font-style: italic;
    text-align: center;
    margin-top: 30px;
    color: var(--soft-pink);
    opacity: 0.9;
}

.timer-date-subtext {
    font-size: 0.9rem;
    color: #888;
    margin-top: 10px;
}

/* 5. PHOTO MEMORIES */
.gallery-grid {
    columns: 3 300px;
    column-gap: 30px;
    max-width: 1000px;
    width: 100%;
}

.gallery-item {
    break-inside: avoid;
    margin-bottom: 30px;
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
    border: 2px solid rgba(255, 255, 255, 0.1);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    cursor: pointer;
    background: #000;
}

.gallery-item img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.6s ease;
    opacity: 0.8;
}

.gallery-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(183, 110, 121, 0.4);
}

.gallery-item:hover img {
    transform: scale(1.1);
    opacity: 1;
}

.gallery-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 20px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9), transparent);
    color: var(--soft-pink);
    font-family: var(--font-subheading);
    font-size: 1.2rem;
    text-align: center;
    transform: translateY(100%);
    transition: transform 0.4s ease;
}

.gallery-item:hover .gallery-caption {
    transform: translateY(0);
}

.placeholder {
    height: 300px;
    display: flex;
    justify-content: center;
    align-items: center;
    background: rgba(255, 255, 255, 0.02);
    border: 2px dashed rgba(183, 110, 121, 0.5);
}

.placeholder-content {
    text-align: center;
    color: var(--rose-gold);
    opacity: 0.6;
}

.placeholder-content i {
    font-size: 3rem;
    margin-bottom: 15px;
}

/* 6. REASONS I LOVE YOU */
.reasons-subtitle {
    font-family: var(--font-subheading);
    font-size: 2rem;
    color: var(--warm-beige);
    margin-bottom: 2rem;
    font-style: italic;
}

.reasons-list {
    list-style: none;
    text-align: center;
}

.reason-item {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    color: var(--soft-pink);
    margin: 15px 0;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s ease;
    text-shadow: 0 0 10px rgba(183, 110, 121, 0.3);
}

.reason-item.visible {
    opacity: 1;
    transform: translateY(0);
}

/* 7. OUR SONGS */
.spotify-players {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    justify-content: center;
}

.spotify-card {
    background: #181818;
    border-radius: 10px;
    padding: 20px;
    width: 300px;
    display: flex;
    flex-direction: column;
    align-items: center;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.5);
    border: 1px solid #282828;
    transition: background 0.3s;
}

.spotify-card:hover {
    background: #282828;
}

.album-art {
    width: 200px;
    height: 200px;
    background: linear-gradient(135deg, var(--rose-gold), var(--soft-pink));
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 8px;
    margin-bottom: 20px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
}

.album-art i {
    font-size: 5rem;
    color: rgba(255, 255, 255, 0.5);
}

.song-info h3 {
    margin: 0;
    font-size: 1.2rem;
    color: #fff;
    text-align: center;
}

.song-info p {
    margin: 5px 0 15px 0;
    color: #b3b3b3;
    font-size: 0.9rem;
    text-align: center;
}

.play-controls {
    display: flex;
    gap: 20px;
    align-items: center;
    color: #b3b3b3;
    font-size: 1.5rem;
    margin-bottom: 15px;
}

.play-controls i:hover {
    color: #fff;
    cursor: pointer;
}

.play-btn {
    font-size: 2.5rem;
    color: #fff;
}

.play-btn:hover {
    transform: scale(1.1);
}

.progress-bar {
    width: 100%;
    height: 4px;
    background: #535353;
    border-radius: 2px;
}

.progress {
    height: 100%;
    background: var(--soft-pink);
    border-radius: 2px;
}

/* 8. SECRET MESSAGE */
.secret-container {
    padding: 40px;
    border: 1px dashed var(--rose-gold);
    border-radius: 20px;
    background: rgba(0, 0, 0, 0.3);
    min-width: 300px;
}

.romantic-btn {
    background: transparent;
    border: 2px solid var(--rose-gold);
    color: var(--soft-pink);
    padding: 15px 30px;
    font-size: 1.2rem;
    font-family: var(--font-body);
    border-radius: 30px;
    cursor: pointer;
    transition: all 0.3s ease;
    outline: none;
}

.romantic-btn:hover {
    background: var(--rose-gold);
    color: #fff;
    box-shadow: 0 0 15px var(--rose-gold);
}

.hidden-msg {
    margin-top: 30px;
    font-family: var(--font-heading);
    font-size: 3rem;
    color: var(--soft-pink);
    min-height: 60px;
    opacity: 0;
    transition: opacity 0.5s ease;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
}

.hidden-msg.show {
    opacity: 1;
}

/* 9. PROMISES */
.promises-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    max-width: 1000px;
}

.promise-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(183, 110, 121, 0.2);
    padding: 30px 20px;
    border-radius: 15px;
    width: 250px;
    text-align: center;
    transition: transform 0.3s ease, background 0.3s;
}

.promise-card:hover {
    transform: translateY(-5px);
    background: rgba(183, 110, 121, 0.1);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.icon-glow {
    font-size: 3rem;
    color: var(--soft-pink);
    margin-bottom: 15px;
    text-shadow: 0 0 10px var(--rose-gold);
}

.promise-card p {
    font-family: var(--font-subheading);
    font-size: 1.2rem;
    color: var(--warm-beige);
}

/* 10. MESSAGE OF THE DAY */
.motd-card {
    background: linear-gradient(135deg, rgba(183, 110, 121, 0.2), rgba(0, 0, 0, 0.4));
    padding: 50px;
    border-radius: 20px;
    border: 1px solid var(--rose-gold);
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    max-width: 700px;
}

.motd-card h3 {
    font-family: var(--font-body);
    text-transform: uppercase;
    letter-spacing: 3px;
    font-size: 1rem;
    color: var(--rose-gold);
    margin-bottom: 20px;
}

.motd-card p {
    font-family: var(--font-heading);
    font-size: 3rem;
    color: var(--soft-pink);
}

/* 11. POETRY CORNER */
.poetry-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    max-width: 1000px;
}

.poem-card {
    background: url('https://www.transparenttextures.com/patterns/stardust.png') rgba(0, 0, 0, 0.3);
    padding: 40px;
    border-radius: 15px;
    border-left: 3px solid var(--rose-gold);
    position: relative;
}

.poem-text {
    font-family: var(--font-subheading);
    font-size: 1.3rem;
    line-height: 1.8;
    color: var(--warm-beige);
    font-style: italic;
    margin-bottom: 20px;
}

.poet {
    font-size: 0.9rem;
    color: var(--rose-gold);
    text-align: right;
    font-weight: 500;
}

/* 12. FOOTER */
footer {
    padding: 60px 20px 40px;
    text-align: center;
    background: #0a0a0a;
    border-top: 1px solid rgba(183, 110, 121, 0.3);
}

.footer-name {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    color: var(--soft-pink);
    margin-bottom: 10px;
}

.footer-content p {
    color: var(--warm-beige);
    opacity: 0.8;
    line-height: 1.6;
}

.hint {
    margin-top: 40px;
    font-size: 0.8rem;
    color: #444;
}

/* Hidden Easter Egg */
#easterEgg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 1s ease;
}

#easterEgg.visible {
    opacity: 1;
    pointer-events: all;
}

#easterEgg h1 {
    font-family: var(--font-heading);
    font-size: 8rem;
    color: var(--soft-pink);
    text-shadow: 0 0 30px var(--rose-gold);
}

.heart-pulse {
    animation: heartBeat 1.2s infinite;
    color: #e53935;
}

@keyframes heartBeat {
    0% {
        transform: scale(1);
    }

    15% {
        transform: scale(1.3);
    }

    30% {
        transform: scale(1);
    }

    45% {
        transform: scale(1.3);
    }

    60% {
        transform: scale(1);
    }

    100% {
        transform: scale(1);
    }
}

/* Utilities */
.text-center {
    text-align: center;
}

.mt-4 {
    margin-top: 2rem;
}

.softly {
    font-style: italic;
    color: #aaa;
}

.blink {
    animation: blinker 2s linear infinite;
}

@keyframes blinker {
    50% {
        opacity: 0;
    }
}

/* Responsive Styling */
@media screen and (max-width: 768px) {
    .nav-links {
        display: none;
    }

    .hero-title {
        font-size: 1.8rem;
    }

    .to-leila {
        font-size: 3.5rem;
    }

    .section-title {
        font-size: 2.5rem;
    }

    .timeline::after {
        left: 31px;
    }

    .timeline-item {
        width: 100%;
        padding-left: 70px;
        padding-right: 25px;
    }

    .timeline-item.right {
        left: 0%;
    }

    .left::after,
    .right::after {
        left: 23px;
    }

    .highlight-text {
        font-size: 2.5rem;
    }
}