:root {
    --gold: #ffbd69;
}

body {
    margin: 0;
    padding: 0;
    /* Deep Night Gradient */
    background: radial-gradient(circle at bottom, #1b2735 0%, #090a0f 100%);
    height: 100vh;
    font-family: 'Montserrat', sans-serif;
    overflow: hidden; /* Prevents page scroll, only gallery scrolls */
    color: white;
}

/* --- CANVAS (Background) --- */
canvas {
    display: block;
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    z-index: 1;
}

/* --- STAGES COMMON STYLES --- */
.stage {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    z-index: 10;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 2s ease-in-out;
}

.hidden {
    opacity: 0;
    pointer-events: none;
}

/* --- STAGE 1: UI --- */
.interface {
    text-align: center;
    width: 90%;
}

.glow-text {
    font-family: 'Cinzel', serif;
    font-size: 2.5rem;
    color: #fff;
    text-shadow: 0 0 20px rgba(255, 255, 255, 0.4);
    margin-bottom: 10px;
    font-weight: 400;
}

.sub-text {
    opacity: 0.7;
    margin-bottom: 50px;
    letter-spacing: 1px;
}

#wish-btn {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: #fff;
    padding: 18px 45px;
    font-size: 1.1rem;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.5s ease;
    font-family: 'Montserrat', sans-serif;
    letter-spacing: 2px;
    text-transform: uppercase;
    backdrop-filter: blur(5px);
}

#wish-btn:active, #wish-btn.holding {
    background: var(--gold);
    color: #0f0c29;
    box-shadow: 0 0 60px var(--gold);
    transform: scale(0.95);
    font-weight: bold;
}

/* --- STAGE 2: REVEAL --- */
.content-wrapper {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.bday-title {
    font-family: 'Great Vibes', cursive;
    font-size: 5rem;
    color: var(--gold);
    margin-bottom: 30px;
    text-shadow: 0 0 30px rgba(255, 189, 105, 0.4);
    text-align: center;
    line-height: 1.2;
}

/* --- SWIPE GALLERY --- */
.gallery-wrapper {
    width: 100%;
    position: relative;
    opacity: 0;
    animation: slideUp 1s forwards 1.0s;
}

.gallery-track {
    display: flex;
    gap: 20px;
    overflow-x: auto; /* Enables horizontal scrolling */
    scroll-snap-type: x mandatory; /* The "Snap" effect */
    padding: 20px 40px; /* Space on sides */
    
    /* Hide scrollbar */
    -ms-overflow-style: none;  
    scrollbar-width: none;  
    scroll-behavior: smooth;
}

.gallery-track::-webkit-scrollbar { display: none; }

.gallery-track img {
    height: 350px; 
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    border: 2px solid rgba(255,255,255,0.1);
    
    /* Snap Logic */
    scroll-snap-align: center;
    flex-shrink: 0; 
}

.swipe-instruction {
    text-align: center;
    color: rgba(255, 255, 255, 0.4);
    font-size: 0.8rem;
    margin-top: 10px;
    letter-spacing: 2px;
    text-transform: uppercase;
    animation: bounceRight 2s infinite;
}

.subtle-footer {
    position: absolute;
    bottom: 20px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 300;
    font-size: 0.8rem;
    letter-spacing: 6px;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.5);
    animation: pulseFooter 3s infinite alternate;
}

/* --- ANIMATIONS --- */
@keyframes slideUp {
    from { transform: translateY(30px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

@keyframes bounceRight {
    0%, 100% { transform: translateX(0); opacity: 0.4; }
    50% { transform: translateX(5px); opacity: 0.8; }
}

@keyframes pulseFooter {
    from { opacity: 0.3; }
    to { opacity: 0.7; }
}

/* --- MOBILE OPTIMIZATIONS --- */
@media (max-width: 768px) {
    .glow-text { font-size: 1.8rem; }
    
    .bday-title {
        font-size: 3.5rem; 
        margin-bottom: 20px;
        padding: 0 10px;
    }

    /* Adjust photos for phone screen */
    .gallery-track img {
        height: 40vh; /* Takes 40% of vertical screen */
        max-height: 400px;
    }
}