:root {
    --primary: #4a5275;
    --secondary: #1a1f35;
    --accent: #4a9eff;
    --text: #ffffff;
    --background: #0f1424;
    --card: rgba(74, 82, 117, 0.15);
}
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
}
body {
    background: var(--background);
    color: var(--text);
    font-family: 'Poppins', sans-serif;
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
}
/* Animated background */
.bg-animation {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
}
.circle {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.03);
    animation: float 20s infinite ease-in-out;
}
.circle:nth-child(1) { width: 400px; height: 400px; top: -100px; right: -100px; }
.circle:nth-child(2) { width: 300px; height: 300px; bottom: -50px; left: -50px; animation-delay: -5s; }
.circle:nth-child(3) { width: 200px; height: 200px; top: 20%; right: 20%; animation-delay: -10s; }
.circle:nth-child(4) { width: 150px; height: 150px; bottom: 20%; left: 20%; animation-delay: -15s; }
@keyframes float {
    0%, 100% { transform: translate(0, 0); }
    50% { transform: translate(-20px, -20px); }
}
/* Stars */
.star {
    position: absolute;
    width: 2px;
    height: 2px;
    background: #fff;
    border-radius: 50%;
    opacity: 0.5;
    animation: twinkle 5s infinite;
}
@keyframes twinkle {
    0%, 100% { opacity: 0.5; }
    50% { opacity: 1; }
}
/* Header */
header {
    padding: 1rem 2rem;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(15, 20, 36, 0.8);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}
.user-info, .time-info {
    background: rgba(74, 82, 117, 0.2);
    padding: 0.5rem 1rem;
    border-radius: 10px;
    font-size: 0.9rem;
    font-family: 'Orbitron', sans-serif;
}
/* Main content */
main {
    padding: 6rem 2rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}
.title-section {
    text-align: center;
    margin-bottom: 4rem;
}
h1 {
    font-family: 'Orbitron', sans-serif;
    font-size: 3rem;
    margin-bottom: 1rem;
    background: linear-gradient(45deg, #fff, var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-transform: uppercase;
    letter-spacing: 3px;
}
.subtitle {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.7);
    max-width: 700px;
    margin: 0 auto;
}
/* Navigation */
.chapter-navigation {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 3rem;
}
.chapter-button {
    background: var(--card);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text);
    padding: 0.5rem 1.5rem;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Orbitron', sans-serif;
    backdrop-filter: blur(5px);
}
.chapter-button:hover,
.chapter-button.active {
    background: var(--accent);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(74, 158, 255, 0.3);
}
/* Chapters */
.chapters-container {
    position: relative;
}
.chapter {
    opacity: 0;
    transition: opacity 0.5s ease, transform 0.5s ease;
    transform: translateY(20px);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    pointer-events: none;
}
.chapter.active {
    opacity: 1;
    transform: translateY(0);
    position: relative;
    pointer-events: all;
}
/* Story sections */
.story-section {
    margin-bottom: 5rem;
    padding: 2rem;
    background: var(--card);
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}
.section-title {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    color: var(--accent);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 1rem;
}
.story-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}
@media (min-width: 768px) {
    .story-content {
        grid-template-columns: repeat(2, 1fr);
    }
}
.story-text {
    line-height: 1.8;
    font-size: 1.1rem;
}
.story-text p {
    margin-bottom: 1.5rem;
}
.story-image {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    aspect-ratio: 16/9;
}
.story-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}
.story-image:hover img {
    transform: scale(1.05);
}
.image-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: rgba(0, 0, 0, 0.7);
    padding: 0.5rem;
    font-size: 0.9rem;
    text-align: center;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}
.story-image:hover .image-caption {
    transform: translateY(0);
}
/* Character profiles */
.characters-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}
.character-card {
    background: rgba(0, 0, 0, 0.3);
    border-radius: 10px;
    overflow: hidden;
    transition: transform 0.3s ease;
}
.character-card:hover {
    transform: translateY(-10px);
}
.character-image {
    height: 200px;
    width: 100%;
    overflow: hidden;
}
.character-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}
.character-card:hover .character-image img {
    transform: scale(1.1);
}
.character-info {
    padding: 1.5rem;
}
.character-name {
    font-family: 'Orbitron', sans-serif;
    color: var(--accent);
    margin-bottom: 0.5rem;
}
.character-role {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 1rem;
}
.character-desc {
    font-size: 0.95rem;
    line-height: 1.6;
}
/* Timeline */
.timeline {
    position: relative;
    margin: 3rem 0;
}
.timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 2px;
    height: 100%;
    background: rgba(255, 255, 255, 0.1);
}
.timeline-item {
    margin-bottom: 3rem;
    position: relative;
}
.timeline-item:nth-child(odd) {
    margin-left: 50%;
    padding-left: 2rem;
}
.timeline-item:nth-child(even) {
    margin-right: 50%;
    padding-right: 2rem;
    text-align: right;
}
.timeline-dot {
    position: absolute;
    top: 0;
    left: 0;
    width: 15px;
    height: 15px;
    background: var(--accent);
    border-radius: 50%;
    transform: translateX(-50%);
}
.timeline-item:nth-child(even) .timeline-dot {
    left: 100%;
}
.timeline-date {
    font-family: 'Orbitron', sans-serif;
    color: var(--accent);
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
}
/* Back button */
.back-button {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    background: rgba(74, 82, 117, 0.3);
    color: var(--text);
    text-decoration: none;
    padding: 1rem;
    border-radius: 50%;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    transition: all 0.3s ease;
    z-index: 100;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}
.back-button:hover {
    background: var(--accent);
    transform: translateY(-5px);
}
/* Footer */
footer {
    text-align: center;
    padding: 2rem;
    margin-top: 5rem;
    background: rgba(0, 0, 0, 0.2);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}
footer p {
    color: rgba(255, 255, 255, 0.6);
}
.scroll-top {
    display: inline-block;
    margin-top: 1rem;
    background: rgba(74, 82, 117, 0.3);
    color: var(--text);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    text-decoration: none;
    transition: all 0.3s ease;
}
.scroll-top:hover {
    background: var(--accent);
}
/* Animation for revealing text */
.reveal-text {
    position: relative;
    overflow: hidden;
}
.reveal-text::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--background);
    transform: translateX(-100%);
    animation: reveal 1s ease forwards;
}
@keyframes reveal {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

/* Locations Section Styles - Updated */
.locations-filter {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 2.5rem;
}

.filter-button {
    background: var(--card);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text);
    padding: 0.5rem 1.5rem;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Orbitron', sans-serif;
    font-size: 0.9rem;
}

.filter-button:hover,
.filter-button.active {
    background: var(--accent);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(74, 158, 255, 0.3);
}

/* Location Slider */
.location-slider-container {
    position: relative;
    margin: 0 auto;
    max-width: 800px;
}

.slider-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 5;
    font-size: 1.5rem;
}

.slider-nav.prev-location {
    left: -25px;
}

.slider-nav.next-location {
    right: -25px;
}

.slider-nav:hover {
    background: var(--accent);
}

.slider-page-indicator {
    position: absolute;
    bottom: -40px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.6);
    color: white;
    padding: 0.3rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    z-index: 2;
}

.locations-wrapper {
    overflow: hidden;
    position: relative;
}

.location-slide {
    width: 100%;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 15px;
    overflow: hidden;
    transition: transform 0.5s ease;
    border: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

/* Location Gallery */
.location-gallery {
    position: relative;
    height: 300px;
    overflow: hidden;
    background: #000;
}

.gallery-container {
    height: 100%;
    display: flex;
    transition: transform 0.5s ease;
}

.gallery-container img {
    min-width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.9);
    transition: filter 0.3s ease;
}

.gallery-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    cursor: pointer;
    opacity: 0;
    transition: all 0.3s ease;
    z-index: 2;
}

.gallery-nav.prev {
    left: 10px;
}

.gallery-nav.next {
    right: 10px;
}

.location-gallery:hover .gallery-nav {
    opacity: 1;
}

.gallery-nav:hover {
    background: rgba(74, 158, 255, 0.7);
    transform: translateY(-50%) scale(1.1);
}

.gallery-counter {
    position: absolute;
    bottom: 10px;
    right: 10px;
    background: rgba(0, 0, 0, 0.6);
    color: white;
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
    font-size: 0.8rem;
    z-index: 2;
}

.location-info {
    padding: 1.5rem;
}

.location-name {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.6rem;
    color: var(--accent);
    margin-bottom: 0.3rem;
}

.location-type {
    display: inline-block;
    background: rgba(74, 158, 255, 0.2);
    padding: 0.2rem 0.8rem;
    border-radius: 12px;
    font-size: 0.8rem;
    margin-bottom: 1rem;
    color: var(--accent);
    border: 1px solid rgba(74, 158, 255, 0.3);
}

.location-desc {
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.location-stats {
    display: flex;
    justify-content: space-between;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 1rem;
}

.stat {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
}

.stat i {
    color: var(--accent);
}

/* Hide all locations except the current one */
.location-slide {
    display: none;
}

.location-slide.active {
    display: block;
}