:root {
    --neon-pink: #ff2a85;
    --neon-cyan: #00ffff;
    --neon-purple: #b026ff;
    --bg-dark: #050510;
}

html {
    scroll-snap-type: y proximity;
    scroll-behavior: smooth;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--bg-dark);
    color: #fff;
    font-family: 'Outfit', sans-serif;
    min-height: 100vh;
    overflow-x: hidden;
}

#fireworksCanvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
}

.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 50;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    background-color: var(--bg-dark);
}

.hidden {
    display: none !important;
}

/* Neon Button */
.neon-button {
    background: transparent;
    color: var(--neon-cyan);
    font-size: 1.5rem;
    font-family: 'Outfit', sans-serif;
    padding: 15px 30px;
    border: 2px solid var(--neon-cyan);
    border-radius: 10px;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 2px;
    box-shadow: 0 0 10px var(--neon-cyan), inset 0 0 10px var(--neon-cyan);
    text-shadow: 0 0 5px var(--neon-cyan);
    transition: all 0.3s ease;
    animation: pulse 2s infinite;
}

.neon-button:hover {
    background: var(--neon-cyan);
    color: var(--bg-dark);
    box-shadow: 0 0 20px var(--neon-cyan), inset 0 0 20px var(--neon-cyan);
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 10px var(--neon-cyan), inset 0 0 10px var(--neon-cyan);
    }

    50% {
        box-shadow: 0 0 20px var(--neon-cyan), inset 0 0 20px var(--neon-cyan);
    }

    100% {
        box-shadow: 0 0 10px var(--neon-cyan), inset 0 0 10px var(--neon-cyan);
    }
}

/* Main Content Styles */
#mainContent {
    animation: fadeIn 2s ease-in;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

/* Gallery Layout */
.gallery-layout {
    display: flex;
    flex-direction: row;
    justify-content: center;
    /* Center content since sides are fixed */
    align-items: flex-start;
    width: 100vw;
    padding: 10px 50px;
    /* Reduced top padding to move items up */
    box-sizing: border-box;
    position: relative;
    z-index: 10;
}

.center-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    flex: 1;
    max-width: calc(100vw - 450px);
    /* Leave room for fixed side galleries */
    position: relative;
}

.image-wrapper {
    position: sticky;
    top: 80px;
    /* Moved up */
    z-index: 1;
    transition: opacity 0.1s ease;
    margin-bottom: 20px;
}

.title-wrapper {
    position: sticky;
    top: 0px;
    /* Moved up */
    z-index: 10;
    padding-top: 10px;
}

.long-message {
    margin-top: 50vh;
    font-size: 1.3rem;
    line-height: 1.8;
    z-index: 5;
    position: relative;
    padding-bottom: 150px;
    max-width: 800px;
    text-shadow: 0 0 10px #000;
}

.side-gallery {
    display: flex;
    flex-direction: column;
    gap: 30px;
    z-index: 5;
    /* Fixed positioning so they don't scroll at all */
    position: fixed;
    top: 50%;
    transform: translateY(-50%);
}

.left-gallery {
    left: 40px;
}

.right-gallery {
    right: 40px;
}

.side-pic {
    width: 150px;
    height: 150px;
    object-fit: cover;
    border-radius: 20px;
    border: 3px solid #fff;
    box-shadow: 0 0 15px var(--neon-cyan);
    transition: transform 0.3s ease;
    animation: floatPic 6s ease-in-out infinite;
}

.side-pic:nth-child(2) {
    animation-delay: 1s;
}

.side-pic:nth-child(3) {
    animation-delay: 2s;
}

.right-gallery .side-pic {
    box-shadow: 0 0 15px var(--neon-purple);
}

@keyframes floatPic {
    0% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }

    100% {
        transform: translateY(0);
    }
}

@media (max-width: 1100px) {
    .gallery-layout {
        flex-direction: column;
        justify-content: flex-start;
        align-items: center;
        padding: 20px;
    }

    .side-gallery {
        position: static;
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
        gap: 15px;
        margin: 20px 0;
    }

    .side-pic {
        width: 120px;
        height: 120px;
    }

    #birthdayPic {
        max-height: 40vh;
    }

    .image-wrapper {
        top: 100px;
    }

    .long-message {
        margin-top: 30vh;
    }
}

/* Image Container */
.image-container {
    position: relative;
    margin-bottom: 10px;
    border-radius: 20px;
    display: flex;
    justify-content: center;
}

#birthdayPic {
    max-width: 90vw;
    max-height: 50vh;
    width: auto;
    height: auto;
    border-radius: 20px;
    position: relative;
    z-index: 2;
    border: 3px solid #fff;
}

.glow-ring {
    position: absolute;
    top: -10px;
    left: -10px;
    right: -10px;
    bottom: -10px;
    border-radius: 30px;
    background: linear-gradient(45deg, var(--neon-pink), var(--neon-cyan), var(--neon-purple));
    background-size: 400% 400%;
    z-index: 1;
    filter: blur(20px);
    opacity: 0.8;
    animation: gradientShift 5s ease infinite;
}

@keyframes gradientShift {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

/* Neon Text */
.neon-text {
    margin: 0;
    font-family: 'Dancing Script', cursive;
    font-size: 6rem;
    color: #fff;
    text-shadow:
        0 0 5px #fff,
        0 0 10px #fff,
        0 0 20px #ffd700,
        0 0 40px #ffd700,
        0 0 80px #ffa500;
    animation: flicker 1.5s infinite alternate;
}

@keyframes flicker {

    0%,
    18%,
    22%,
    25%,
    53%,
    57%,
    100% {
        text-shadow:
            0 0 5px #fff,
            0 0 10px #fff,
            0 0 20px #ffd700,
            0 0 40px #ffd700,
            0 0 80px #ffa500;
    }

    20%,
    24%,
    55% {
        text-shadow: none;
    }
}

.neon-subtext {
    font-size: 1.5rem;
    color: #fff;
    margin-top: 15px;
    text-shadow: 0 0 10px var(--neon-cyan), 0 0 20px var(--neon-cyan);
    letter-spacing: 3px;
}

.msg-para {
    margin-bottom: 50vh;
}

.msg-para:last-child {
    margin-bottom: 150px;
}

.snap-para {
    scroll-snap-align: center;
}