/* --- RESET & BASE --- */
body,
html {
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    /* Disable native scroll */
    background-color: #110f03 !important;
    /* Deep romantic purple/dark background */
    font-family: 'Montserrat', sans-serif;
}

/* --- 3D CANVAS --- */
#canvas-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
    /* Let scroll events pass through */
}

/* --- STAGED CONTENT --- */
/* All stages sit on top of each other */
.stage {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    z-index: 10;
    color: #fff;

    /* Initial hidden state for transitions */
    opacity: 0;
    visibility: hidden;
    transform: translateY(30px) scale(0.95);
    filter: blur(10px);
    /* Enable smooth scroll snap for mobile */
    scroll-snap-type: y mandatory;
    height: 100svh;
    overflow-y: auto;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    
    scroll-snap-align: start;
    scroll-snap-stop: always;
    transition: all 1.2s cubic-bezier(0.25, 0.46, 0.45, 0.94);

    /* Slow, smooth ease */
}

/* The Active State */
.stage.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
    filter: blur(0);
}

/* Typography */
h1.big-bold {
    font-family: 'Cinzel', serif;
    font-size: 5rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 10px;
    color: #fff;
    /* Light pink */
    text-shadow: 0 0 30px #1b1b1b7a;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0;
}

h1.big-bold span {
    display: block;
    opacity: 0;
    animation: slideInUp 0.8s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

h1.big-bold span:nth-child(1) {
    animation-delay: 0s;
}

h1.big-bold span:nth-child(2) {
    animation-delay: 0.2s;
}

h1.big-bold span:nth-child(3) {
    animation-delay: 0.4s;
}

h2.couple-names {
    font-family: 'Great Vibes', cursive;
    font-size: 7rem;
    margin: 0;
    color: #fff;
    line-height: 1.1;
    text-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    display: flex;
    flex-direction: column;
    gap: 0;
}

h2.couple-names span {
    display: block;
    opacity: 0;
    animation: fadeInRotate 1s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

h2.couple-names span:nth-child(1) {
    animation-delay: 0s;
}

h2.couple-names span:nth-child(2) {
    animation-delay: 0.25s;
}

h2.couple-names span:nth-child(3) {
    animation-delay: 0.5s;
}

.info-block {
    font-size: 2rem;
    letter-spacing: 3px;
    line-height: 1.6;
    color: #eee;
    opacity: 0;
    animation: slideInLeft 1s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

.sub-info {
    display: block;
    font-size: 1.2rem;
    opacity: 0;
    margin-top: 15px;
    font-weight: 300;
    animation: fadeIn 0.8s ease forwards;
    animation-delay: 0.4s;
}

/* Scroll indicator hint */
.scroll-hint {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    opacity: 0.5;
    animation: pulse 2s infinite;
    z-index: 20;
    pointer-events: none;
}

/* Keyframe Animations */
@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
        filter: blur(5px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
        filter: blur(0);
    }
}

@keyframes fadeInRotate {
    from {
        opacity: 0;
        transform: rotateY(-20deg) translateZ(20px);
        filter: blur(10px);
    }

    to {
        opacity: 1;
        transform: rotateY(0) translateZ(0);
        filter: blur(0);
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
        filter: blur(8px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
        filter: blur(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes pulse {

    0%,
    100% {
        opacity: 0.3;
        transform: translateX(-50%) translateY(0);
    }

    50% {
        opacity: 0.7;
        transform: translateX(-50%) translateY(10px);
    }
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }

    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideOut {
    from {
        transform: translateX(0);
        opacity: 1;
    }

    to {
        transform: translateX(100%);
        opacity: 0;
    }
}

/* Mobile adjustments */
@media (max-width: 768px) {
    h1.big-bold {
        font-size: 3rem;
        letter-spacing: 5px;
    }

    h2.couple-names {
        font-size: 5rem;
    }

    .info-block {
        font-size: 1.5rem;
    }
}