body {
    margin: 0;
    background-color: #050505; /* Deep cinematic black */
    color: #fff;
    font-family: 'Arial', sans-serif;
    overflow-x: hidden;
}

/* --- NEW: Security Gateway Styles --- */
body.locked {
    overflow: hidden; /* Stops scrolling while locked */
}

#security-gateway {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background-color: #050505; /* Solid black to hide the site */
    z-index: 9999; /* Highest priority, sits on top of everything */
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    transition: opacity 1s ease;
}

.gateway-step {
    display: none; /* Hidden by default */
    flex-direction: column;
    align-items: center;
    padding: 40px 25px;
    background: rgba(201, 24, 74, 0.15); /* Glass effect */
    border-radius: 20px;
    border: 1px solid rgba(255, 179, 193, 0.2);
    backdrop-filter: blur(10px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.5);
    max-width: 90%;
}

.gateway-step.active {
    display: flex; /* Only show the active step */
}

/* Beautiful Inputs & Buttons */
#meet-date {
    padding: 12px;
    margin: 20px 0;
    font-size: 1.2rem;
    border-radius: 8px;
    border: none;
    outline: none;
    background: #fff0f3;
    color: #c9184a;
    font-family: inherit;
}

.gateway-btn {
    padding: 12px 30px;
    font-size: 1.1rem;
    background: #ff4d6d;
    color: white;
    border: none;
    border-radius: 25px;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(255, 77, 109, 0.4);
    transition: transform 0.2s;
}

.gateway-btn:active {
    transform: scale(0.95);
}

.error-msg {
    color: #ff8fa3;
    margin-top: 15px;
    font-weight: bold;
}

/* --- NEW: Playful Warning Animations --- */
@keyframes shakeIt {
    0%, 100% { transform: translateX(0); }
    20%, 60% { transform: translateX(-12px); }
    40%, 80% { transform: translateX(12px); }
}

.shake-text {
    animation: shakeIt 0.4s ease;
}

@keyframes flashRed {
    0% { background-color: #050505; }
    50% { background-color: #660011; } /* Deep warning red */
    100% { background-color: #050505; }
}

.flash-screen {
    animation: flashRed 0.4s ease;
}
/* Custom Love Slider */
#love-slider {
    width: 250px;
    margin: 20px 0;
    accent-color: #ff4d6d; /* Colors the slider pink */
}

.slider-text {
    font-size: 1.5rem;
    color: #ffb3c1;
    font-weight: bold;
    margin-bottom: 20px;
}

/* Custom Documentary Rewind Counter */
.documentary-counter {
    font-size: 5rem;
    color: #ffffff;
    font-family: 'Courier New', Courier, monospace; /* Typewriter/Film look */
    font-weight: bold;
    margin-top: 30px;
    letter-spacing: 8px;
    text-shadow: 3px 0 0 rgba(255,0,0,0.7), -3px 0 0 rgba(0,255,255,0.7); /* VHS Glitch Effect */
}

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

.cinematic-section {
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 40px 20px;
    position: relative;
    z-index: 1;
}

.content-box {
    max-width: 400px;
    width: 100%;
    background: rgba(201, 24, 74, 0.15); /* Soft pink glass effect */
    padding: 25px;
    border-radius: 20px;
    border: 1px solid rgba(255, 179, 193, 0.2);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px); /* For iOS support */
    box-shadow: 0 15px 35px rgba(0,0,0,0.5);
}

.content-box img {
    width: 100%;
    border-radius: 12px;
    margin-bottom: 15px;
    border: 2px solid rgba(255, 255, 255, 0.1);
    object-fit: cover;
}

.content-box h1, .content-box h2 {
    color: #ff4d6d;
    margin-top: 0;
    text-shadow: 0 2px 10px rgba(255, 77, 109, 0.3);
}

.content-box p {
    line-height: 1.6;
    font-size: 1.1rem;
    color: #ffe5ec;
    margin-bottom: 0;
}

/* Special Hollywood effect for Photo 9 */
.heart-pulse {
    animation: pulse 2s infinite ease-in-out;
    box-shadow: 0 0 20px rgba(255, 77, 109, 0.6);
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.03); }
    100% { transform: scale(1); }
}

/* Video Container & Play Button */
.video-container {
    position: relative;
    width: 100%;
    margin-bottom: 15px;
}

.video-container video {
    margin-bottom: 0; /* Removes extra space at the bottom */
}

.play-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(255, 77, 109, 0.9);
    color: white;
    font-size: 24px;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 0 20px rgba(255, 77, 109, 0.8); /* The romantic glow */
    z-index: 10;
    transition: all 0.3s ease;
    padding-left: 5px; /* Centers the play triangle visually */
}

.play-button.hidden {
    opacity: 0;
    pointer-events: none; /* Makes sure it doesn't block tapping the video once hidden */
}

/* Japan Plane Animation */
.plane-animation {
    position: absolute;
    font-size: 60px;
    z-index: 0; /* Keeps it behind the content box so it flies "in the background" */
    opacity: 0.6;
    animation: flyToJapan 8s linear infinite;
    pointer-events: none;
}

@keyframes flyToJapan {
    0% {
        transform: translate(-50vw, 40vh) rotate(15deg) scale(0.5);
    }
    100% {
        transform: translate(100vw, -40vh) rotate(15deg) scale(1.5);
    }
}

/* Styling for Ditu's song lyric */
.romantic-quote {
    font-size: 1.35rem;
    color: #ffb3c1; /* Lighter pink to pop against the dark background */
    font-style: italic;
    font-weight: bold;
    margin: 20px 0;
    text-shadow: 0 0 12px rgba(255, 77, 109, 0.8); /* A beautiful soft glow */
    line-height: 1.4;
}

/* --- NEW: Vintage Background Effect --- */
#vintage-bg {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    z-index: 0; /* Changed from -1 so it sits ON TOP of the black body, but behind text */
    pointer-events: none;
    overflow: hidden;
}

.vintage-photo {
    position: absolute;
    width: 150px;
    border-radius: 8px;
    opacity: 0;
    filter: grayscale(80%) sepia(40%) contrast(1.2); 
    box-shadow: 0 5px 15px rgba(0,0,0,0.5);
    /* Removed the CSS transition so GSAP can animate the fade perfectly */
}

/* --- NEW: Interactive Album Grid --- */
.album-section {
    padding: 60px 20px;
    text-align: center;
    position: relative;
    z-index: 2;
    background: linear-gradient(to bottom, transparent, rgba(201, 24, 74, 0.1));
}

.album-title {
    color: #ffb3c1;
    font-size: 2rem;
    margin-bottom: 40px;
    text-shadow: 0 0 10px rgba(255, 77, 109, 0.5);
}

.album-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 15px;
    max-width: 800px;
    margin: 0 auto;
}

.album-photo {
    width: 100%;
    height: 120px;
    object-fit: cover;
    border-radius: 8px;
    border: 3px solid rgba(255, 255, 255, 0.8); /* Polaroid border effect */
    box-shadow: 0 5px 15px rgba(0,0,0,0.5);
    opacity: 0; /* Hidden initially for GSAP animation */
    transform: translateY(30px);
}