/* --- 1. SETTINGS & VARIABLES --- */
:root {
    --bg-dark: #050505;
    --glass: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.1);
    --accent: #00d2ff;
    --text: #ffffff;
    --col-count: 4; 
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    background-color: var(--bg-dark);
    color: var(--text);
    font-family: 'Montserrat', sans-serif;
    overflow-x: hidden;
    overscroll-behavior-y: none;
}

/* --- HERO SECTION --- */
.hero {
    position: relative;
    height: 100vh;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    perspective: 1000px;
}
.hero-overlay {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background: radial-gradient(circle, rgba(0,0,0,0) 40%, rgba(0,0,0,0.6) 100%);
    z-index: 2;
    display: flex; flex-direction: column; justify-content: center; align-items: center;
    pointer-events: none;
}

.hero-title {
    font-size: 5rem; font-weight: 800; text-transform: uppercase;
    letter-spacing: 10px; text-align: center; mix-blend-mode: overlay;
    opacity: 0.9; text-shadow: 0 0 20px var(--accent);
    animation: fadeIn 2s ease forwards;
}

.scroll-container {
    display: flex; 
    gap: 20px; 
    transform: rotate(-5deg) scale(1.1); 
    opacity: 1; 
}

/* --- ANIMATION --- */
.scroll-column { display: flex; flex-direction: column; gap: 20px; }
.scroll-column img { width: 250px; border-radius: 10px; box-shadow: 0 10px 20px rgba(0,0,0,0.5); }
.col-1 { animation: scrollUp 60s linear infinite; }
.col-2 { animation: scrollDown 80s linear infinite; }
.col-3 { animation: scrollUp 60s linear infinite; }

@keyframes scrollUp {
    0% { transform: translateY(0); }
    100% { transform: translateY(-50%); }
}
@keyframes scrollDown {
    0% { transform: translateY(-50%); }
    100% { transform: translateY(0); }
}

/* --- CONTROLS --- */
.controls {
    display: flex; justify-content: center; gap: 20px; padding: 30px 10px;
    z-index: 10; position: relative; 
    background: rgba(5, 5, 5, 0.4); 
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.btn-filter {
    padding: 12px 30px; background: var(--glass); border: 1px solid var(--glass-border);
    color: var(--text); border-radius: 30px; cursor: pointer; font-size: 1rem;
    transition: all 0.3s ease; text-transform: uppercase; letter-spacing: 1px;
}
.btn-filter:hover, .btn-filter.active {
    background: var(--accent); border-color: var(--accent);
    box-shadow: 0 0 20px rgba(0, 210, 255, 0.4); transform: translateY(-2px);
}

/* --- GALLERY GRID --- */
.gallery {
    display: grid;
    grid-template-columns: repeat(var(--col-count), 1fr);
    gap: 10px;
    padding: 20px 50px 100px 50px;
    max-width: 1600px;
    margin: 0 auto;
    transition: all 0.5s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.card {
    position: relative;
    aspect-ratio: 3/4; 
    border-radius: 15px;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.4s ease, opacity 0.4s ease;
    background: #111;
}

.card.hidden { display: none; }
.card img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s ease; }
.card:hover img { transform: scale(1.1); }
.card-overlay {
    position: absolute; bottom: 0; left: 0; width: 100%; padding: 20px;
    background: linear-gradient(transparent, black); transform: translateY(100%);
    transition: transform 0.4s ease;
}
.card:hover .card-overlay { transform: translateY(0); }
.card-category { color: var(--accent); font-size: 0.8rem; text-transform: uppercase; font-weight: bold; }
.gesture-hint { display: none; text-align: center; color: #666; font-size: 0.8rem; margin-bottom: 10px; }

/* --- LIGHTBOX --- */
.lightbox {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.95); display: flex; justify-content: center; align-items: center;
    z-index: 1000; opacity: 0; pointer-events: none; transition: opacity 0.3s ease;
}
.lightbox.active { opacity: 1; pointer-events: auto; }
.lightbox-content { position: relative; max-width: 85%; max-height: 85%; box-shadow: 0 0 50px rgba(0,0,0,0.8); }
.lightbox-content img { max-width: 100%; max-height: 80vh; border-radius: 5px; display: block; }
.lb-btn {
    position: absolute; top: 50%; transform: translateY(-50%);
    background: none; border: none; color: white; font-size: 3rem; cursor: pointer;
    padding: 20px; transition: color 0.3s;
}
.lb-btn:hover { color: var(--accent); }
.prev { left: 20px; } .next { right: 20px; }
.close { position: absolute; top: 20px; right: 30px; font-size: 2.5rem; cursor: pointer; color: #fff; background: transparent; border: none;}

/* Download Button */
.download-btn {
    position: absolute; top: 30px; left: 30px; text-decoration: none; color: #fff;
    font-size: 1.2rem; font-weight: 500; border: 1px solid rgba(255,255,255,0.3);
    padding: 10px 20px; border-radius: 30px; transition: all 0.3s ease; background: rgba(0,0,0,0.3);
    cursor: pointer;
}
.download-btn:hover { background: var(--accent); border-color: var(--accent); color: #000; }

/* --- FEATURED IMAGE & TEXT OVERLAY --- */
.featured-wrapper {
    position: relative; width: 100%; max-width: 1200px;
    margin: 20px auto; padding: 0 50px; box-sizing: border-box;
}

.featured-card {
    position: relative; border-radius: 15px; overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5); background: #111;
}

.featured-card img { width: 100%; height: auto; display: block; }

.text-overlay {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%; padding: 40px; 
    display: flex; flex-direction: column; justify-content: center; align-items: flex-start; 
    z-index: 5;
}

@keyframes textGlow {
    0% { text-shadow: 0 0 10px rgba(255,255,255,0.3); }
    50% { 
        text-shadow: 
            0 0 20px rgba(255,255,255,0.9),
            0 0 40px rgba(0, 210, 255, 0.6),
            0 0 60px rgba(37, 181, 213, 0.4);
    }
    100% { text-shadow: 0 0 10px rgba(255,255,255,0.3); }
}

.txt-mau, .txt-aaru {
    font-family: 'Great Vibes', cursive; color: #fff; line-height: 0.9; display: block;
    animation: textGlow 3s infinite alternate ease-in-out;
}

.txt-mau { font-size: 8vw; margin-left: 20px; }

.txt-and {
    font-family: 'Montserrat', sans-serif; color: var(--accent); font-size: 3vw;
    font-weight: bold; margin-left: 100px; 
    animation: textGlow 3s infinite alternate-reverse ease-in-out;
}

.txt-aaru { font-size: 8vw; margin-left: 150px; }

/* --- MOBILE ADJUSTMENTS --- */
@media(max-width: 768px) {
    :root { --col-count: 2; }
    .hero-title { font-size: 3rem; }
    .gallery { padding: 20px 15px 100px 15px; } 
    .gesture-hint { display: block; }
    
    .scroll-column:nth-child(3) { display: none; }
    .scroll-column img { width: 140px; box-shadow: 0 5px 10px rgba(0,0,0,0.5); }
    .scroll-container { gap: 15px; }

    .controls {
        justify-content: flex-start; overflow-x: auto; padding: 30px 20px; gap: 15px; width: 100%;                 
        -ms-overflow-style: none; scrollbar-width: none;  
    }
    .controls::-webkit-scrollbar { display: none; }
    .btn-filter { flex-shrink: 0; white-space: nowrap; font-size: 0.9rem; padding: 10px 20px; }

    .download-btn { top: 20px; left: 20px; font-size: 0.9rem; padding: 8px 15px; }
    .close { top: 15px; right: 20px; }

    .featured-wrapper { padding: 0 15px; }
    .text-overlay { padding: 15px; }
    .txt-mau { font-size: 14vw; margin-left: 10px; }
    .txt-and { font-size: 5vw; margin-left: 50px; }
    .txt-aaru { font-size: 14vw; margin-left: 80px; }
}

/* --- NEW GIRLY LOGIN & GAME STYLES --- */

.login-overlay {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    /* Girly Gradient Background */
    background: linear-gradient(135deg, #fbc2eb 0%, #a6c1ee 100%);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    transition: opacity 1s ease, visibility 1s ease;
}

.login-content {
    text-align: center;
    background: rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.4);
    padding: 40px;
    border-radius: 30px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.1);
    z-index: 10;
    pointer-events: none; /* Let clicks pass through to hearts behind/around */
}

.login-title {
    font-family: 'Great Vibes', cursive;
    font-size: 4rem;
    color: #fff;
    text-shadow: 0 2px 10px rgba(0,0,0,0.1);
    margin-bottom: 10px;
    animation: floatText 3s ease-in-out infinite;
}

.login-subtitle {
    font-family: 'Montserrat', sans-serif;
    color: #fff;
    font-size: 1.2rem;
    letter-spacing: 2px;
    margin-bottom: 20px;
}

.login-instruction {
    background: #fff;
    color: #ff8fab;
    padding: 10px 20px;
    border-radius: 20px;
    font-weight: bold;
    display: inline-block;
    box-shadow: 0 5px 15px rgba(255, 105, 180, 0.3);
}

.score-board {
    margin-top: 20px;
    font-size: 1.5rem;
    color: white;
    font-weight: bold;
    text-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

/* Floating Heart Styling */
.floater {
    position: absolute;
    font-size: 3rem;
    cursor: pointer;
    user-select: none;
    animation: floatUp linear forwards;
    z-index: 5;
    transition: transform 0.1s;
    pointer-events: auto; /* Enable clicking on hearts */
}

.floater:active {
    transform: scale(0.8);
}

@keyframes floatText {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

@keyframes floatUp {
    0% {
        transform: translateY(110vh) rotate(0deg);
        opacity: 0.8;
    }
    100% {
        transform: translateY(-10vh) rotate(360deg);
        opacity: 0;
    }
}

/* Pop animation for when heart is clicked */
.pop-effect {
    animation: pop 0.3s ease-out forwards;
}

@keyframes pop {
    0% { transform: scale(1); opacity: 1; }
    100% { transform: scale(2); opacity: 0; }
}

/* --- UPDATED LOGIN STYLES --- */

/* Hides elements when switching views */
.hidden {
    display: none !important;
}

/* Input Fields (Glass Style) */
.pass-input {
    width: 80%;
    padding: 15px;
    margin: 15px 0;
    border-radius: 25px;
    border: 2px solid rgba(255, 255, 255, 0.5);
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
    font-size: 1.2rem;
    text-align: center;
    outline: none;
    transition: all 0.3s ease;
    
    /* --- THE FIX: This enables typing in the glass box --- */
    pointer-events: auto;
}

.pass-input::placeholder { color: rgba(255, 255, 255, 0.7); }
.pass-input:focus { background: rgba(255, 255, 255, 0.4); border-color: #fff; }

/* Buttons */
.btn-enter {
    background: #ff8fab;
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 25px;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    box-shadow: 0 5px 15px rgba(255, 143, 171, 0.4);
    transition: transform 0.2s;
    pointer-events: auto;
}
.btn-enter:hover { transform: scale(1.05); background: #ff7499; }

/* Link Button (Direct Login) */
.alt-option { margin-top: 25px; border-top: 1px solid rgba(255,255,255,0.3); padding-top: 15px; }
.alt-option p { font-size: 0.8rem; color: #eee; margin-bottom: 5px; }

.btn-link {
    background: none;
    border: none;
    color: #fff;
    text-decoration: underline;
    cursor: pointer;
    font-size: 0.9rem;
    pointer-events: auto;
}
.btn-link:hover { color: #ffeef2; }

/* Error Message */
.error-msg {
    color: #ff4d4d;
    background: rgba(255,255,255,0.8);
    padding: 5px 10px;
    border-radius: 10px;
    margin-top: 10px;
    display: none; /* Hidden by default */
    font-weight: bold;
    animation: shake 0.3s;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }
}