@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;600;700;800&display=swap');

:root {
    --font: "Montserrat", sans-serif;
    --main-color: #5488e0;
    --bg-dark: #071225;
    --nav-bg: #1a1a1a;
    --card-bg: #242424;
    --text-primary: #ffffff;
    --text-secondary: #a0aec0;
    --shadow-color: rgba(84, 136, 224, 0.2);
    --gold: #ffd700;
    --red: #ff4444;
    --green: #44ff88;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--bg-dark);
    font-family: var(--font);
    color: var(--text-primary);
    overflow-x: hidden;
}

.background-decoration {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

.glow {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.08;
}

.glow-1 {
    width: 600px;
    height: 600px;
    background: var(--main-color);
    top: 0;
    right: 0;
    animation: float1 20s ease-in-out infinite;
}

.glow-2 {
    width: 500px;
    height: 500px;
    background: #3366cc;
    bottom: 0;
    left: 0;
    animation: float2 25s ease-in-out infinite;
}

.glow-3 {
    width: 400px;
    height: 400px;
    background: var(--main-color);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation: float3 30s ease-in-out infinite;
}

@keyframes float1 {
    0%, 100% { transform: translate(0, 0); }
    33% { transform: translate(-100px, 100px); }
    66% { transform: translate(100px, -50px); }
}

@keyframes float2 {
    0%, 100% { transform: translate(0, 0); }
    33% { transform: translate(100px, -100px); }
    66% { transform: translate(-100px, 50px); }
}

@keyframes float3 {
    0%, 100% { transform: translate(-50%, -50%) scale(1); }
    50% { transform: translate(-50%, -50%) scale(1.2); }
}

.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(26, 26, 26, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 30px rgba(84, 136, 224, 0.2);
    z-index: 1000;
    border-bottom: 1px solid rgba(84, 136, 224, 0.1);
}

.nav-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 1rem 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.navbar-logo {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    border: 2px solid #5488e0;
    transition: transform 0.3s ease;
}

.navbar-logo:hover {
    transform: scale(1.1);
}

.logo-text {
    color: #ffffff;
    font-family: var(--font);
    font-weight: 800;
    font-size: 1.4rem;
    text-decoration: none;
    letter-spacing: -0.5px;
    transition: color 0.3s ease;
}

.logo-text:hover {
    color: #5488e0;
}

.nav-links {
    display: flex;
    gap: 2.5rem;
    align-items: center;
}

.navbar-item {
    font-family: var(--font);
    color: #a0aec0;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    position: relative;
    transition: color 0.3s ease;
}

.navbar-item::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: #5488e0;
    transition: width 0.3s ease;
}

.navbar-item:hover,
.navbar-item.active {
    color: #ffffff;
}

.navbar-item:hover::after,
.navbar-item.active::after {
    width: 100%;
}

.nav-btn-join {
    padding: 0.7rem 1.8rem;
    background: #5488e0;
    color: white;
    border: none;
    border-radius: 6px;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--font);
}

.nav-btn-join:hover {
    background: #0090d9;
    transform: translateY(-1px);
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }
    
    .nav-btn-join {
        padding: 0.6rem 1.2rem;
        font-size: 0.85rem;
    }
}
.lore-hero {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: linear-gradient(135deg, rgba(7, 18, 37, 0.9) 0%, rgba(26, 26, 26, 0.8) 100%);
}

.hero-video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        linear-gradient(45deg, transparent 30%, rgba(84, 136, 224, 0.03) 30%, rgba(84, 136, 224, 0.03) 70%, transparent 70%),
        linear-gradient(-45deg, transparent 30%, rgba(84, 136, 224, 0.03) 30%, rgba(84, 136, 224, 0.03) 70%, transparent 70%);
    background-size: 100px 100px;
    animation: moveBackground 20s linear infinite;
    opacity: 0.3;
}

@keyframes moveBackground {
    0% { background-position: 0 0, 0 0; }
    100% { background-position: 100px 100px, -100px 100px; }
}

.hero-particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(2px 2px at 20% 30%, rgba(84, 136, 224, 0.3), transparent),
        radial-gradient(2px 2px at 60% 70%, rgba(84, 136, 224, 0.3), transparent),
        radial-gradient(2px 2px at 80% 10%, rgba(84, 136, 224, 0.3), transparent),
        radial-gradient(2px 2px at 40% 80%, rgba(84, 136, 224, 0.3), transparent),
        radial-gradient(2px 2px at 90% 50%, rgba(84, 136, 224, 0.3), transparent);
    background-size: 200% 200%;
    animation: particles 15s ease-in-out infinite;
}

@keyframes particles {
    0%, 100% { background-position: 0% 0%, 0% 0%, 0% 0%, 0% 0%, 0% 0%; }
    50% { background-position: 100% 100%, 50% 50%, 80% 20%, 20% 80%, 60% 40%; }
}

.lore-hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 1000px;
    padding: 2rem;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 1.5rem;
    background: rgba(84, 136, 224, 0.2);
    border: 2px solid var(--main-color);
    border-radius: 50px;
    color: var(--main-color);
    font-size: 0.9rem;
    font-weight: 700;
    margin-bottom: 2rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { box-shadow: 0 0 20px rgba(84, 136, 224, 0.3); }
    50% { box-shadow: 0 0 40px rgba(84, 136, 224, 0.6); }
}

.lore-hero-content h1 {
    font-size: 5rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    letter-spacing: -3px;
    text-shadow: 0 0 40px rgba(84, 136, 224, 0.5);
}

.highlight {
    color: var(--main-color);
}

.hero-subtitle {
    font-size: 1.5rem;
    color: var(--text-secondary);
    margin-bottom: 3rem;
    font-weight: 500;
    line-height: 1.6;
}

.scroll-indicator {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    color: var(--main-color);
    animation: bounce 2s ease-in-out infinite;
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.scroll-indicator i {
    font-size: 2rem;
}

.scroll-indicator span {
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.timeline-nav {
    position: sticky;
    top: 80px;
    background: rgba(26, 26, 26, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(84, 136, 224, 0.1);
    z-index: 999;
    transition: all 0.3s ease;
}

.timeline-nav.sticky {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.timeline-nav-container {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-around;
    padding: 0 2rem;
    overflow-x: auto;
}

.timeline-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 1.5rem 1rem;
    text-decoration: none;
    color: var(--text-secondary);
    border-bottom: 3px solid transparent;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.timeline-nav-item:hover {
    color: var(--text-primary);
    background: rgba(84, 136, 224, 0.05);
}

.timeline-nav-item.active {
    color: var(--main-color);
    border-bottom-color: var(--main-color);
}

.timeline-year {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.25rem;
    opacity: 0.8;
}

.timeline-title {
    font-size: 1rem;
    font-weight: 700;
}

.lore-container {
    position: relative;
    z-index: 1;
    padding: 4rem 0;
}

.lore-section {
    max-width: 1400px;
    margin: 0 auto 8rem;
    padding: 0 2rem;
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 4rem;
    align-items: center;
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.8s ease;
}

.lore-section.visible {
    opacity: 1;
    transform: translateY(0);
}

.lore-section.reverse {
    grid-template-columns: 1.5fr 1fr;
}

.section-visual {
    position: relative;
}

.visual-card {
    position: relative;
    height: 400px;
    background: linear-gradient(135deg, rgba(84, 136, 224, 0.15) 0%, rgba(84, 136, 224, 0.05) 100%);
    border: 2px solid rgba(84, 136, 224, 0.3);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.visual-card.gold {
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.15) 0%, rgba(255, 215, 0, 0.05) 100%);
    border-color: rgba(255, 215, 0, 0.3);
}

.visual-card.contrast {
    background: linear-gradient(135deg, rgba(255, 68, 68, 0.15) 0%, rgba(255, 68, 68, 0.05) 100%);
    border-color: rgba(255, 68, 68, 0.3);
}

.visual-card.people {
    background: linear-gradient(135deg, rgba(68, 255, 136, 0.15) 0%, rgba(68, 255, 136, 0.05) 100%);
    border-color: rgba(68, 255, 136, 0.3);
}

.visual-icon {
    font-size: 10rem;
    color: rgba(84, 136, 224, 0.2);
}

.visual-card.gold .visual-icon {
    color: rgba(255, 215, 0, 0.2);
}

.visual-card.contrast .visual-icon {
    color: rgba(255, 68, 68, 0.2);
}

.visual-card.people .visual-icon {
    color: rgba(68, 255, 136, 0.2);
}

.visual-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        linear-gradient(45deg, transparent 40%, rgba(84, 136, 224, 0.05) 40%, rgba(84, 136, 224, 0.05) 60%, transparent 60%);
    background-size: 50px 50px;
}

.section-content {
    padding: 2rem;
}

.section-header {
    margin-bottom: 2rem;
}

.section-header.centered {
    text-align: center;
}

.section-era {
    display: inline-block;
    padding: 0.4rem 1rem;
    background: rgba(84, 136, 224, 0.15);
    color: var(--main-color);
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 1rem;
}

.section-era.gold {
    background: rgba(255, 215, 0, 0.15);
    color: var(--gold);
}

.section-era.contrast {
    background: rgba(255, 68, 68, 0.15);
    color: var(--red);
}

.section-era.people {
    background: rgba(68, 255, 136, 0.15);
    color: var(--green);
}

.section-era.legend {
    background: rgba(138, 43, 226, 0.15);
    color: #8a2be2;
}

.section-header h2 {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 1rem;
    letter-spacing: -2px;
}

.section-line {
    width: 100px;
    height: 4px;
    background: var(--main-color);
    border-radius: 2px;
}

.section-line.gold {
    background: var(--gold);
}

.section-line.contrast {
    background: var(--red);
}

.section-line.people {
    background: var(--green);
}

.section-line.legend {
    background: #8a2be2;
}

.section-line.center {
    margin: 0 auto;
}

.content-text {
    font-size: 1.05rem;
    line-height: 1.8;
    color: var(--text-secondary);
}

.lead-text {
    font-size: 1.2rem;
    color: var(--text-primary);
    font-weight: 500;
    margin-bottom: 1.5rem;
    line-height: 1.7;
}

.lead-text strong {
    color: var(--main-color);
}

.content-text p {
    margin-bottom: 1rem;
}

.info-box {
    background: rgba(84, 136, 224, 0.08);
    border-left: 4px solid var(--main-color);
    padding: 1.5rem;
    border-radius: 8px;
    margin: 2rem 0;
}

.info-box.dark {
    background: rgba(0, 0, 0, 0.3);
}

.info-box h4 {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.2rem;
    color: var(--main-color);
    margin-bottom: 0.75rem;
}

.info-box p {
    color: var(--text-secondary);
}

.features-list {
    margin: 2rem 0;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.feature-item {
    display: flex;
    gap: 1.5rem;
    padding: 1.5rem;
    background: rgba(26, 26, 26, 0.5);
    border: 1px solid rgba(84, 136, 224, 0.15);
    border-radius: 12px;
    transition: all 0.3s ease;
}

.feature-item:hover {
    border-color: var(--main-color);
    transform: translateX(10px);
    background: rgba(26, 26, 26, 0.8);
}

.feature-icon {
    width: 60px;
    height: 60px;
    background: rgba(84, 136, 224, 0.15);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    color: var(--main-color);
    flex-shrink: 0;
}

.feature-text h4 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.feature-text p {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.collapse-section {
    margin: 2rem 0;
}

.collapse-section h4 {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.3rem;
    color: var(--gold);
    margin-bottom: 2rem;
}

.collapse-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

.collapse-item {
    background: rgba(26, 26, 26, 0.5);
    border: 1px solid rgba(255, 215, 0, 0.15);
    border-radius: 12px;
    padding: 1.5rem;
    position: relative;
    transition: all 0.3s ease;
}

.collapse-item:hover {
    border-color: var(--gold);
    transform: translateY(-5px);
}

.collapse-number {
    position: absolute;
    top: -15px;
    left: 20px;
    width: 40px;
    height: 40px;
    background: var(--gold);
    color: var(--bg-dark);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 1.1rem;
}

.collapse-item h5 {
    font-size: 1.1rem;
    margin: 1rem 0 0.75rem;
    color: var(--text-primary);
}

.collapse-item p {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

.districts-showcase {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    margin: 2rem 0;
}

.district-card {
    background: rgba(26, 26, 26, 0.6);
    border: 1px solid rgba(84, 136, 224, 0.15);
    border-radius: 12px;
    padding: 2rem;
    transition: all 0.3s ease;
}

.district-card:hover {
    border-color: var(--main-color);
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(84, 136, 224, 0.2);
}

.district-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.district-header i {
    font-size: 2rem;
    color: var(--main-color);
}

.district-header h4 {
    font-size: 1.3rem;
    color: var(--text-primary);
}

.district-card p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.district-tag {
    display: inline-block;
    padding: 0.4rem 1rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
}

.district-tag.luxury {
    background: rgba(255, 215, 0, 0.2);
    color: var(--gold);
}

.district-tag.danger {
    background: rgba(255, 68, 68, 0.2);
    color: var(--red);
}

.district-tag.abandoned {
    background: rgba(128, 128, 128, 0.2);
    color: #888;
}

.district-tag.tourist {
    background: rgba(0, 191, 255, 0.2);
    color: #00bfff;
}

.district-tag.underground {
    background: rgba(138, 43, 226, 0.2);
    color: #8a2be2;
}

.quote-box {
    position: relative;
    background: rgba(84, 136, 224, 0.08);
    border: 2px solid rgba(84, 136, 224, 0.3);
    border-radius: 12px;
    padding: 2rem;
    margin: 2rem 0;
    text-align: center;
}

.quote-box i {
    font-size: 2rem;
    color: var(--main-color);
    opacity: 0.3;
}

.quote-box i.fa-quote-left {
    position: absolute;
    top: 20px;
    left: 20px;
}

.quote-box i.fa-quote-right {
    position: absolute;
    bottom: 20px;
    right: 20px;
}

.quote-box p {
    font-size: 1.3rem;
    color: var(--text-primary);
    font-weight: 500;
    line-height: 1.7;
    padding: 1rem 2rem;
}

.residents-types {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    margin: 2rem 0;
}

.resident-card {
    background: rgba(26, 26, 26, 0.5);
    border: 1px solid rgba(68, 255, 136, 0.15);
    border-radius: 12px;
    padding: 2rem;
    text-align: center;
    transition: all 0.3s ease;
}

.resident-card:hover {
    border-color: var(--green);
    transform: translateY(-5px);
}

.resident-icon {
    width: 70px;
    height: 70px;
    background: rgba(68, 255, 136, 0.15);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 2rem;
    color: var(--green);
}

.resident-card h4 {
    font-size: 1.2rem;
    margin-bottom: 0.75rem;
    color: var(--text-primary);
}

.resident-card p {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

.legend-section {
    grid-template-columns: 1fr;
    text-align: center;
    padding: 6rem 2rem;
    background: linear-gradient(135deg, rgba(138, 43, 226, 0.05) 0%, transparent 100%);
    border-radius: 20px;
}

.legend-container {
    max-width: 900px;
    margin: 0 auto;
}

.legend-icon {
    width: 100px;
    height: 100px;
    background: rgba(138, 43, 226, 0.15);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 2rem;
    font-size: 3rem;
    color: #8a2be2;
    box-shadow: 0 0 40px rgba(138, 43, 226, 0.3);
}

.legend-content {
    margin-top: 3rem;
}

.legend-text {
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    line-height: 1.8;
}

.legend-text strong {
    color: var(--text-primary);
    font-weight: 700;
}

.legend-quote {
    position: relative;
    background: rgba(138, 43, 226, 0.1);
    border: 2px solid rgba(138, 43, 226, 0.3);
    border-radius: 12px;
    padding: 3rem 2rem;
    margin: 3rem 0;
}

.quote-decoration {
    width: 60px;
    height: 4px;
    background: #8a2be2;
    margin: 0 auto 2rem;
}

.final-quote {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.6;
    font-style: italic;
}

.legend-signature {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-top: 2rem;
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-style: italic;
}

.legend-signature i {
    color: #8a2be2;
    font-size: 1.2rem;
}

.cta-final {
    max-width: 1200px;
    margin: 6rem auto 4rem;
    padding: 0 2rem;
}

.cta-final-content {
    background: linear-gradient(135deg, var(--main-color) 0%, #3366cc 100%);
    border-radius: 20px;
    padding: 4rem 3rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta-final-content::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    animation: rotate 20s linear infinite;
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.cta-final-content h3 {
    position: relative;
    z-index: 2;
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: white;
}

.cta-final-content p {
    position: relative;
    z-index: 2;
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 2rem;
}

.cta-buttons {
    position: relative;
    z-index: 2;
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1.2rem 2.5rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.cta-btn.primary {
    background: white;
    color: var(--main-color);
}

.cta-btn.primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.cta-btn.secondary {
    background: transparent;
    border: 2px solid white;
    color: white;
}

.cta-btn.secondary:hover {
    background: white;
    color: var(--main-color);
}

@media (max-width: 1024px) {
    .lore-section,
    .lore-section.reverse {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .collapse-grid,
    .districts-showcase,
    .residents-types {
        grid-template-columns: 1fr;
    }

    .timeline-nav-container {
        justify-content: flex-start;
    }
}

@media (max-width: 768px) {
    .lore-hero-content h1 {
        font-size: 3rem;
    }

    .hero-subtitle {
        font-size: 1.2rem;
    }

    .section-header h2 {
        font-size: 2rem;
    }

    .visual-card {
        height: 300px;
    }

    .visual-icon {
        font-size: 6rem;
    }

    .content-text {
        font-size: 1rem;
    }

    .lead-text {
        font-size: 1.1rem;
    }

    .final-quote {
        font-size: 1.5rem;
    }

    .cta-final-content h3 {
        font-size: 2rem;
    }

    .cta-final-content p {
        font-size: 1rem;
    }

    .cta-buttons {
        flex-direction: column;
    }

    .cta-btn {
        width: 100%;
    }

    .nav-links {
        display: none;
    }

    .lore-section {
        margin-bottom: 4rem;
    }

    .feature-item {
        flex-direction: column;
        text-align: center;
    }

    .feature-icon {
        margin: 0 auto;
    }
}

@media (max-width: 480px) {
    .lore-hero-content h1 {
        font-size: 2.5rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .section-header h2 {
        font-size: 1.6rem;
    }

    .visual-card {
        height: 250px;
    }

    .visual-icon {
        font-size: 4rem;
    }

    .section-content {
        padding: 1rem;
    }

    .info-box,
    .quote-box {
        padding: 1.5rem 1rem;
    }

    .final-quote {
        font-size: 1.2rem;
    }

    .timeline-year {
        font-size: 0.65rem;
    }

    .timeline-title {
        font-size: 0.85rem;
    }

    .timeline-nav-item {
        padding: 1rem 0.5rem;
    }

    .legend-icon {
        width: 80px;
        height: 80px;
        font-size: 2.5rem;
    }

    .cta-final-content {
        padding: 3rem 1.5rem;
    }

    .district-card,
    .collapse-item,
    .resident-card {
        padding: 1.5rem;
    }
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 150px;
}

::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--bg-dark);
}

::-webkit-scrollbar-thumb {
    background: rgba(84, 136, 224, 0.3);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(84, 136, 224, 0.5);
}

::selection {
    background: var(--main-color);
    color: white;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.feature-item,
.district-card,
.collapse-item,
.resident-card {
    animation: fadeInUp 0.6s ease forwards;
    animation-play-state: paused;
}

.lore-section.visible .feature-item,
.lore-section.visible .district-card,
.lore-section.visible .collapse-item,
.lore-section.visible .resident-card {
    animation-play-state: running;
}

.feature-item:nth-child(1),
.district-card:nth-child(1),
.collapse-item:nth-child(1),
.resident-card:nth-child(1) {
    animation-delay: 0.1s;
}

.feature-item:nth-child(2),
.district-card:nth-child(2),
.collapse-item:nth-child(2),
.resident-card:nth-child(2) {
    animation-delay: 0.2s;
}

.feature-item:nth-child(3),
.district-card:nth-child(3),
.collapse-item:nth-child(3),
.resident-card:nth-child(3) {
    animation-delay: 0.3s;
}

.feature-item:nth-child(4),
.district-card:nth-child(4),
.collapse-item:nth-child(4),
.resident-card:nth-child(4) {
    animation-delay: 0.4s;
}

.feature-item:nth-child(5),
.district-card:nth-child(5) {
    animation-delay: 0.5s;
}

@media print {
    .navbar,
    .timeline-nav,
    .cta-final,
    .background-decoration {
        display: none;
    }

    .lore-section {
        page-break-inside: avoid;
    }
}

@media (prefers-color-scheme: dark) {
    body {
        background-color: #000;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}



.lore-section {
    will-change: opacity, transform;
}

@media (prefers-contrast: high) {
    .visual-card,
    .district-card,
    .feature-item {
        border-width: 3px;
    }

    .section-line {
        height: 6px;
    }
}

@media (prefers-reduced-data: reduce) {
    .hero-video-overlay,
    .hero-particles,
    .visual-overlay {
        display: none;
    }
}

.footer {
    background: #0f1420;
    border-top: 1px solid rgba(84, 136, 224, 0.1);
    padding: 4rem 2rem 2rem;
    margin-top: 6rem;
}

.footer-container {
    max-width: 1400px;
    margin: 0 auto;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-brand {
    max-width: 350px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.footer-logo-img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: 2px solid #5488e0;
}

.footer-logo h3 {
    font-size: 1.5rem;
    font-weight: 800;
    color: #5488e0;
}

.footer-brand p {
    color: #a0aec0;
    line-height: 1.7;
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
}

.footer-socials {
    display: flex;
    gap: 1rem;
}

.social-link {
    width: 40px;
    height: 40px;
    background: rgba(84, 136, 224, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #5488e0;
    font-size: 1.2rem;
    transition: all 0.3s ease;
    border: 1px solid rgba(84, 136, 224, 0.2);
}

.social-link:hover {
    background: #5488e0;
    color: white;
    transform: translateY(-3px);
}

.footer-links h4 {
    font-size: 1.1rem;
    color: #ffffff;
    margin-bottom: 1.5rem;
    font-weight: 700;
}

.footer-links ul {
    list-style: none;
    padding: 0;
}

.footer-links li {
    margin-bottom: 0.75rem;
}

.footer-links a {
    color: #a0aec0;
    text-decoration: none;
    font-size: 0.95rem;
    transition: color 0.3s ease;
    display: inline-block;
}

.footer-links a:hover {
    color: #5488e0;
    transform: translateX(5px);
}

.footer-bottom {
    padding-top: 2rem;
    border-top: 1px solid rgba(84, 136, 224, 0.1);
    text-align: center;
}

.footer-bottom p {
    color: #7a8396;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

@media (max-width: 1024px) {
    .footer-content {
        grid-template-columns: 1fr 1fr;
        gap: 2rem;
    }
}

@media (max-width: 768px) {
    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .footer-brand {
        max-width: 100%;
    }

    .footer {
        padding: 3rem 1.5rem 1.5rem;
    }
}