/* Global Styles */
body {
    font-family: 'Arial', sans-serif;
    background-color: #ffe6e6;
    margin: 0;
    overflow: hidden;
    /* Prevent scrolling */
    height: 100vh;
    width: 100vw;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Sparking Text Animation */
@keyframes sparkle {
    0% {
        filter: drop-shadow(0 0 2px white);
        text-shadow:
            0 0 10px #ffffff,
            0 0 20px #ffd700;
    }

    100% {
        filter: drop-shadow(0 0 10px white);
        text-shadow:
            0 0 20px #ffffff,
            0 0 40px #ff8c00,
            0 0 60px #ff0000;
    }
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

.header-container {
    position: absolute;
    top: 20px;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    align-items: center;
    pointer-events: none;
    /* Let clicks pass through */
}

.sun {
    width: 150px;
    height: 150px;
    animation: spin 20s linear infinite;
    margin-top: -80px;
    /* Pull it up closer to the text curve */
    filter: drop-shadow(0 0 10px rgba(255, 215, 0, 0.8));
    z-index: 2;
    /* Ensure it's above or below correctly? Let's keep it in flow */
}

.title-svg {
    width: 100%;
    /* Much wider */
    max-width: 1200px;
    /* Allow it to be very wide */
    height: auto;
    /* Maintain aspect ratio */
    min-height: 300px;
    overflow: visible;
    filter: drop-shadow(0 0 5px white);
    margin-bottom: -40px;
}

.footer-container {
    position: absolute;
    bottom: 20px;
    width: 100%;
    display: flex;
    justify-content: center;
    pointer-events: none;
    z-index: 1000;
}

.footer-title {
    font-family: 'Great Vibes', cursive;
    font-size: 80px;
    color: white;
    margin: 0;
    text-shadow:
        0 0 10px #ffffff,
        0 0 20px #ff0000,
        0 0 30px #8b0000;
    animation: pulseRed 2s infinite alternate;
}

@keyframes pulseRed {
    from {
        text-shadow:
            0 0 10px #ffffff,
            0 0 20px #ff0000,
            0 0 30px #8b0000;
    }

    to {
        text-shadow:
            0 0 15px #ffffff,
            0 0 30px #ff0000,
            0 0 50px #ff0000,
            0 0 70px #8b0000;
        transform: scale(1.05);
    }
}

.title-text {
    font-family: 'Great Vibes', cursive;
    font-size: 100px;
    /* Even bigger as requested */
    fill: #ffffff;
    /* White text */
    stroke: none;
    /* Remove stroke for cleaner script look */
    text-shadow:
        0 0 10px #ffffff,
        0 0 20px #ffcc00,
        0 0 30px #ff9900;
    animation: sparkle 3s infinite alternate;
    text-anchor: middle;
    letter-spacing: 2px;
}

/* Gallery Container */
#gallery {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

/* Analogue Photo Frame (Polaroid) */
.photo-frame {
    position: absolute;
    background-color: white;
    padding: 15px 15px 50px 15px;
    /* Larger bottom padding for Polaroid look */
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    transition: transform 0.2s, box-shadow 0.2s;
    cursor: grab;
    width: 250px;
    box-sizing: border-box;
    display: flex;
    justify-content: center;
    align-items: center;
    user-select: none;
}

.photo-frame:active {
    cursor: grabbing;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
    transform: scale(1.05);
}

.photo-frame img {
    width: 100%;
    height: auto;
    display: block;
    pointer-events: none;
    /* Prevent image dragging browser behavior */
}

.photo-caption {
    position: absolute;
    bottom: 15px;
    left: 0;
    width: 100%;
    margin-top: 0;
    font-family: 'Courier New', Courier, monospace;
    font-size: 14px;
    color: #333;
    text-align: center;
    pointer-events: none;
}

/* Lightbox Overlay */
#overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: none;
    /* Hidden by default */
    justify-content: center;
    align-items: center;
    z-index: 9999;
    backdrop-filter: blur(5px);
    cursor: zoom-out;
}

#overlay img {
    max-width: 90%;
    max-height: 90%;
    border: 10px solid white;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
    animation: zoomIn 0.3s ease;
}

@keyframes zoomIn {
    from {
        transform: scale(0.8);
        opacity: 0;
    }

    to {
        transform: scale(1);
        opacity: 1;
    }
}

/* Dynamic Sparkles */
.sparkle {
    position: absolute;
    width: 20px;
    height: 20px;
    background: radial-gradient(circle, #fff 10%, transparent 70%);
    animation: twinkle 2s infinite ease-in-out;
    z-index: 1001;
}

@keyframes twinkle {

    0%,
    100% {
        transform: scale(0);
        opacity: 0;
    }

    50% {
        transform: scale(1) rotate(45deg);
        opacity: 1;
    }
}

/* Navigation */
.nav-container {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2000;
    background: rgba(255, 255, 255, 0.2);
    padding: 10px 30px;
    border-radius: 30px;
    backdrop-filter: blur(5px);
    display: flex;
    gap: 30px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    white-space: nowrap;
}

.nav-link {
    text-decoration: none;
    color: #d63384;
    /* Deep pink */
    font-weight: bold;
    font-size: 18px;
    transition: all 0.3s ease;
    border-bottom: 2px solid transparent;
}

.nav-link:hover,
.nav-link.active {
    color: #ff0055;
    text-shadow: 0 0 5px rgba(255, 0, 85, 0.5);
    border-bottom: 2px solid #ff0055;
}

/* Home Page Navigation Specifics */
.home-nav {
    top: 50%;
    transform: translate(-50%, -50%);
    background: transparent;
    box-shadow: none;
    backdrop-filter: none;
    gap: 40px;
    padding: 0;
}

.home-nav .nav-link {
    background: rgba(255, 255, 255, 0.9);
    padding: 15px 30px;
    border-radius: 50px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
    font-size: 22px;
    border-bottom: none;
    font-family: 'Great Vibes', cursive;
    /* Reset standard underline */
}

.home-nav .nav-link:hover,
.home-nav .nav-link.active {
    transform: scale(1.1);
    background: white;
    color: #ff0055;
    text-shadow: none;
    border-bottom: none;
    box-shadow: 0 8px 20px rgba(255, 0, 85, 0.3);
}

/* Sub-pages Styles */
.page-container {
    padding: 100px 20px 40px;
    max-width: 800px;
    width: 100%;
    height: 100vh;
    overflow-y: auto;
    box-sizing: border-box;
    text-align: center;
    position: relative;
    z-index: 10;
    /* Custom Scrollbar */
    scrollbar-width: thin;
    scrollbar-color: #ff99cc #ffe6e6;
}

.page-title {
    font-family: 'Great Vibes', cursive;
    font-size: 60px;
    color: #d63384;
    margin-bottom: 40px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
}

.reasons-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
    padding-bottom: 100px;
}

.reason-item {
    background: rgba(255, 255, 255, 0.6);
    padding: 15px;
    border-radius: 15px;
    font-size: 20px;
    color: #444;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    transition: transform 0.2s;
}

.reason-item:hover {
    transform: scale(1.02);
    background: rgba(255, 255, 255, 0.9);
}

.reason-number {
    font-weight: bold;
    color: #ff0055;
    margin-right: 10px;
}

.poem-text {
    background: rgba(255, 255, 255, 0.7);
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    font-family: 'Georgia', serif;
    /* Or keep cursive if preferred, but serif is readable for poems */
    font-size: 20px;
    line-height: 1.8;
    color: #333;
    font-style: italic;
}

.poem-text p {
    margin: 0;
}