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

:root {
    --police-blue: #002FA7;
    --police-gold: #FFD700;
    --police-dark: #1a1a2e;
    --police-light: #eef2ff;
    --police-red: #DC143C;
}

body {
    font-family: 'Arial', sans-serif;
    background-color: var(--police-dark);
    color: var(--police-light);
    overflow-x: hidden;
}

.loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--police-dark);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.5s ease-out;
}

.loader-text {
    font-size: 1.5rem;
    letter-spacing: 0.3rem;
    animation: pulse 1.5s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 1; }
}

.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background-color: rgba(0, 47, 167, 0.95);
    backdrop-filter: blur(10px);
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.nav-brand {
    font-size: 1.8rem;
    font-weight: bold;
    letter-spacing: 0.2rem;
    color: #FFFFFF;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-links a {
    color: var(--police-light);
    text-decoration: none;
    transition: all 0.3s ease;
    font-weight: 500;
}

.nav-links a:hover {
    color: #FFFFFF;
    transform: translateY(-2px);
    opacity: 0.8;
}

.scene-container {
    position: relative;
    width: 100vw;
    height: 100vh;
    overflow: hidden;
}

#three-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.crawl-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
}

/* Top left brand */
.top-left-brand {
    position: fixed;
    top: 80px;
    left: 20px;
    display: flex;
    align-items: center;
    gap: 15px;
    z-index: 1001;
}

.brand-logo {
    width: 60px;
    height: 60px;
    filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.5));
}

.brand-text {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.brand-chinese {
    font-size: 2rem;
    font-weight: bold;
    color: #FFFFFF;
    text-shadow: 0 0 20px rgba(255, 255, 255, 0.6);
}

.brand-english {
    font-size: 1.5rem;
    font-weight: bold;
    letter-spacing: 0.2rem;
    color: #FFFFFF;
    text-shadow: 0 0 15px rgba(255, 255, 255, 0.5);
}

/* Star Wars crawl styles */
@import url('https://fonts.googleapis.com/css2?family=Pathway+Gothic+One&display=swap');

.crawl-fade {
    position: absolute;
    width: 100%;
    height: 30%;
    top: 0;
    background-image: linear-gradient(180deg, rgba(0,0,0,0.8), transparent);
    z-index: 1;
}

.star-wars-crawl {
    display: flex;
    justify-content: center;
    position: absolute;
    width: 100%;
    height: 800px;
    color: #feda4a;
    font-family: 'Pathway Gothic One', sans-serif;
    font-size: 300%;
    font-weight: 600;
    letter-spacing: 6px;
    line-height: 150%;
    perspective: 400px;
    text-align: justify;
    z-index: 1;
}

.crawl {
    position: relative;
    top: 100%;
    transform-origin: 50% 100%;
    animation: crawl 60s linear;
    max-width: 90%;
}

.crawl > .title {
    font-size: 90%;
    text-align: center;
    margin: 0 0 100px;
    text-transform: uppercase;
}

.crawl h1, .crawl h2 {
    margin: 0;
    padding: 0;
}

.episode-number {
    text-align: center;
    font-size: 40%;
    letter-spacing: 10px;
    margin-bottom: 50px;
    font-weight: 400;
}

.final-call {
    text-align: center;
    margin-top: 100px;
}

@keyframes crawl {
    0% {
        top: 100%;
        transform: rotateX(20deg) translateZ(0);
    }
    100% {
        top: -6000px;
        transform: rotateX(25deg) translateZ(-2500px);
    }
}

.hero-badge {
    width: 150px;
    height: 150px;
    margin-bottom: 2rem;
    animation: float 3s ease-in-out infinite;
    z-index: 1;
}

.hero-badge-img {
    width: 100%;
    height: 100%;
    filter: drop-shadow(0 0 20px rgba(255, 255, 255, 0.5));
}

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

.hero-title {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
    z-index: 1;
}

.chinese-title {
    font-size: 8rem;
    font-weight: bold;
    color: #FFFFFF;
    text-shadow: 0 0 40px rgba(255, 255, 255, 0.6),
                 0 0 60px rgba(255, 255, 255, 0.4),
                 4px 4px 0 rgba(0, 0, 0, 0.8);
    animation: glow 3s ease-in-out infinite alternate;
}

.english-title {
    font-size: 5rem;
    letter-spacing: 0.8rem;
    font-weight: bold;
    color: #FFFFFF;
    text-shadow: 0 0 30px rgba(255, 255, 255, 0.5),
                 3px 3px 0 rgba(0, 0, 0, 0.8);
    animation: glow-blue 3s ease-in-out infinite alternate;
}

@keyframes glow {
    from { 
        text-shadow: 0 0 40px rgba(255, 255, 255, 0.6),
                     0 0 60px rgba(255, 255, 255, 0.4),
                     4px 4px 0 rgba(0, 0, 0, 0.8);
    }
    to { 
        text-shadow: 0 0 50px rgba(255, 255, 255, 0.8),
                     0 0 80px rgba(255, 255, 255, 0.6),
                     4px 4px 0 rgba(0, 0, 0, 1);
    }
}

@keyframes glow-blue {
    from { 
        text-shadow: 0 0 30px rgba(255, 255, 255, 0.5),
                     3px 3px 0 rgba(0, 0, 0, 0.8);
    }
    to { 
        text-shadow: 0 0 40px rgba(255, 255, 255, 0.8),
                     0 0 50px rgba(255, 255, 255, 0.6),
                     3px 3px 0 rgba(0, 0, 0, 1);
    }
}

.hero-subtitle {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    opacity: 0.9;
    z-index: 1;
}

.cta-button {
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
    background-color: #FFFFFF;
    color: var(--police-dark);
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: bold;
    letter-spacing: 0.1rem;
    z-index: 1;
    box-shadow: 0 5px 20px rgba(255, 255, 255, 0.4);
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(255, 255, 255, 0.6);
    background-color: rgba(255, 255, 255, 0.9);
}

.canvas-section {
    min-height: 100vh;
    background-color: #0a0a1a;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

#three-canvas {
    width: 100%;
    height: 100vh;
}

.controls {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 1rem;
}

.control-btn {
    padding: 0.8rem 1.5rem;
    background-color: rgba(0, 47, 167, 0.8);
    color: #FFFFFF;
    border: 2px solid #FFFFFF;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
}

.control-btn:hover {
    background-color: #FFFFFF;
    color: var(--police-dark);
    transform: scale(1.05);
}

.info-section {
    padding: 5rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

.info-section h2 {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: #FFFFFF;
}

.info-section > p {
    font-size: 1.2rem;
    margin-bottom: 3rem;
    opacity: 0.8;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.info-card {
    background-color: rgba(0, 47, 167, 0.2);
    padding: 2rem;
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    transition: all 0.3s ease;
}

.info-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(255, 255, 255, 0.3);
    border-color: #FFFFFF;
}

.info-card h3 {
    color: #FFFFFF;
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.footer {
    background-color: var(--police-blue);
    padding: 2rem;
    text-align: center;
    border-top: 3px solid #FFFFFF;
}

@media (max-width: 768px) {
    .chinese-title {
        font-size: 4rem;
    }
    
    .english-title {
        font-size: 2.5rem;
        letter-spacing: 0.4rem;
    }
    
    .hero-badge {
        width: 100px;
        height: 100px;
    }
    
    .hero-subtitle {
        font-size: 1.2rem;
    }
    
    .nav-links {
        gap: 1rem;
    }
    
    .controls {
        flex-wrap: wrap;
        justify-content: center;
    }
}