/* --- VARIABLES --- */
:root {
    --bg-deep: #050505;
    --glass-bg: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.1);
    --text-main: #ffffff;
    --text-muted: #a0a0a0;
    --gold: #FFD700;
    --gold-glow: rgba(255, 215, 0, 0.4);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    background-color: var(--bg-deep);
    color: var(--text-main);
    font-family: 'Outfit', sans-serif; /* Modern, clean font */
    overflow-x: hidden;
    scroll-behavior: smooth;
}

/* Scroll Progress Bar at Top */
.progress-container {
    position: fixed; top: 0; left: 0; width: 100%; height: 4px; z-index: 1000;
    background: transparent;
}
.progress-bar {
    height: 100%; background: var(--gold); width: 0%;
    box-shadow: 0 0 10px var(--gold);
}

/* --- HERO --- */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: radial-gradient(circle at center, #1a1a1a 0%, #000 100%);
    position: relative;
    overflow: hidden;
}

.bat-logo {
    width: 150px;
    filter: drop-shadow(0 0 20px var(--gold-glow));
    animation: float 6s ease-in-out infinite;
}

h1 {
    font-size: 5rem;
    font-weight: 700;
    margin-top: 20px;
    letter-spacing: -2px;
    background: linear-gradient(to bottom, #fff, #666);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.subtitle {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    color: var(--gold);
    margin-top: 10px;
    font-style: italic;
}

/* Scroll Mouse Animation */
.scroll-indicator {
    position: absolute; bottom: 40px;
    display: flex; flex-direction: column; align-items: center; gap: 10px;
    opacity: 0.7;
}
.mouse {
    width: 30px; height: 50px; border: 2px solid rgba(255,255,255,0.3);
    border-radius: 15px; position: relative;
}
.wheel {
    width: 4px; height: 8px; background: white;
    position: absolute; top: 8px; left: 50%; transform: translateX(-50%);
    border-radius: 2px; animation: scrollMouse 1.5s infinite;
}

@keyframes scrollMouse {
    0% { top: 8px; opacity: 1; }
    100% { top: 25px; opacity: 0; }
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
}

/* --- TIMELINE --- */
.timeline-container {
    position: relative;
    max-width: 1100px;
    margin: 0 auto;
    padding: 100px 20px;
}

/* The Rail Lines */
.rail-track-bg {
    position: absolute; top: 0; bottom: 0; left: 50%; width: 2px;
    background: rgba(255,255,255,0.1); transform: translateX(-50%);
}
.rail-track-fill {
    position: absolute; top: 0; left: 50%; width: 4px;
    height: 0%; /* JS will change this */
    background: var(--gold);
    box-shadow: 0 0 15px var(--gold);
    transform: translateX(-50%);
    z-index: 1;
    transition: height 0.1s linear;
}

/* --- CARDS --- */
.chapter {
    display: flex; justify-content: center;
    width: 100%; padding: 40px 0;
    position: relative; z-index: 2;
    opacity: 0; transform: translateY(50px);
    transition: all 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.chapter.visible { opacity: 1; transform: translateY(0); }

.chapter.left { padding-right: 50%; justify-content: flex-end; }
.chapter.right { padding-left: 50%; justify-content: flex-start; }

/* Glass Card Style */
.glass-card {
    width: 90%; max-width: 450px;
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    padding: 30px;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.4);
    transition: transform 0.3s ease, border-color 0.3s ease;
    margin: 0 40px;
}

.glass-card:hover {
    transform: translateY(-5px);
    border-color: var(--gold);
}

.chapter-tag {
    font-size: 0.8rem; text-transform: uppercase; letter-spacing: 2px;
    color: var(--gold); margin-bottom: 10px; font-weight: 700;
}

.glass-card h2 { margin-bottom: 15px; font-size: 2rem; }

.image-wrapper {
    width: 100%; height: 220px; border-radius: 12px; overflow: hidden;
    margin-bottom: 20px; position: relative;
}
.image-wrapper img {
    width: 100%; height: 100%; object-fit: cover;
    transition: transform 0.6s ease;
}
.glass-card:hover img { transform: scale(1.1); }

/* --- TRIBUTE --- */
.tribute-section {
    height: 100vh;
    background: linear-gradient(to top, #000, #0a0a0a);
    display: flex; align-items: center; justify-content: center;
}
.tribute-content { text-align: center; }

.glow-text {
    font-size: 4rem; line-height: 1; margin-bottom: 40px;
}
.gold { color: var(--gold); text-shadow: 0 0 20px var(--gold-glow); }

/* Modern Music Player */
.music-card-modern {
    background: rgba(255,255,255,0.08);
    backdrop-filter: blur(15px);
    padding: 20px; border-radius: 24px;
    display: flex; align-items: center; gap: 20px;
    width: 400px; margin: 0 auto;
    border: 1px solid rgba(255,255,255,0.1);
    transition: transform 0.2s;
}

.music-cover {
    width: 80px; height: 80px; border-radius: 12px;
    overflow: hidden; position: relative; cursor: pointer;
}
.music-cover img { width: 100%; height: 100%; object-fit: cover; }
.play-btn-overlay {
    position: absolute; inset: 0; background: rgba(0,0,0,0.5);
    display: flex; align-items: center; justify-content: center;
    opacity: 0; transition: opacity 0.3s;
}
.music-cover:hover .play-btn-overlay { opacity: 1; }

.music-info { text-align: left; }
.music-info h3 { font-size: 1.2rem; margin-bottom: 4px; }
.music-info p { color: var(--text-muted); font-size: 0.9rem; }

/* Visualizer Bars */
.visualizer-container {
    display: flex; align-items: flex-end; gap: 4px; height: 20px; margin-top: 10px;
}
.v-bar { width: 4px; height: 4px; background: var(--gold); border-radius: 2px; }

.playing .v-bar { animation: bounceBar 1s infinite ease-in-out; }
.playing .v-bar:nth-child(2) { animation-delay: 0.1s; }
.playing .v-bar:nth-child(3) { animation-delay: 0.2s; }
.playing .v-bar:nth-child(4) { animation-delay: 0.3s; }

@keyframes bounceBar {
    0%, 100% { height: 4px; }
    50% { height: 20px; }
}

/* Mobile */
@media (max-width: 768px) {
    .chapter { flex-direction: column; padding: 20px 0; }
    .chapter.left, .chapter.right { padding: 20px; justify-content: center; }
    .rail-track-bg, .rail-track-fill { left: 20px; }
    .glass-card { width: 100%; margin: 0 0 0 30px; }
    h1 { font-size: 3rem; }
    .music-card-modern { width: 90%; }
}

/* --- MEMORIES SLIDESHOW SECTION --- */
.memories-section {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 60px 20px;
    position: relative;
    z-index: 5;
}

/* Custom size for the gallery card */
.gallery-card {
    width: 100%;
    max-width: 600px; /* Slightly wider than normal chapters */
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.slideshow-container {
    width: 100%;
    height: 350px; /* Fixed height for the slideshow */
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* The Images */
.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover; /* Ensures photos don't stretch weirdly */
    opacity: 0; /* Hidden by default */
    transition: opacity 1.5s ease-in-out; /* Smooth fade effect */
}

/* The class JS adds to show the image */
.slide.active {
    opacity: 1;
}

/* Mobile adjustment */
@media (max-width: 768px) {
    .slideshow-container {
        height: 250px;
    }
}