/* Global Vars & Reset */
:root {
    --primary-bg: #0f0f1a;
    --text-main: #f0f0f5;
    --text-muted: #a0a0b0;
    --accent-blue: #00d2ff;
    --accent-purple: #9d00ff;
    --accent-pink: #ff007f;
    --accent-green: #00ff9d;
    --accent-orange: #ff9d00;
    
    --glass-bg: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.1);
    --glass-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
    
    --font-main: 'Outfit', sans-serif;
    --font-display: 'Zcool KuaiLe', cursive; /* Fun font for some headers */
}

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

body {
    background-color: var(--primary-bg);
    color: var(--text-main);
    font-family: var(--font-main);
    overflow-x: hidden;
    line-height: 1.6;
}

/* Loader */
.loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--primary-bg);
    z-index: 9999;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transition: opacity 0.5s ease-out, visibility 0.5s;
}

.loader.hidden {
    opacity: 0;
    visibility: hidden;
}

.paw-print {
    position: relative;
    width: 60px;
    height: 60px;
    margin-bottom: 20px;
    animation: bounce 1s infinite alternate;
}

.paw-print .pad {
    background: var(--accent-blue);
    position: absolute;
    border-radius: 50%;
    box-shadow: 0 0 10px var(--accent-blue);
}
.paw-print .large { width: 35px; height: 35px; bottom: 0; left: 12.5px; }
.paw-print .small { width: 18px; height: 18px; top: 0; }
.paw-print .s1 { left: -5px; top: 10px; }
.paw-print .s2 { left: 21px; top: 2px; }
.paw-print .s3 { left: 47px; top: 10px; }

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 1.5rem 0;
    z-index: 1000;
    transition: background 0.3s, padding 0.3s, backdrop-filter 0.3s;
}

.navbar.scrolled {
    background: rgba(15, 15, 26, 0.85);
    backdrop-filter: blur(10px);
    padding: 1rem 0;
    border-bottom: 1px solid var(--glass-border);
}

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

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    text-decoration: none;
    color: #fff;
    letter-spacing: 2px;
}

.logo .dot { color: var(--accent-pink); font-size: 2rem; line-height: 0; }

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

.nav-links a {
    text-decoration: none;
    color: var(--text-main);
    font-weight: 500;
    transition: color 0.3s;
    font-size: 0.95rem;
}

.nav-links a:not(.btn-primary):hover {
    color: var(--accent-blue);
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent-purple), var(--accent-blue));
    padding: 0.6rem 1.5rem;
    border-radius: 50px;
    color: white !important;
    font-weight: 700;
    box-shadow: 0 4px 15px rgba(0, 210, 255, 0.3);
    transition: transform 0.2s;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 210, 255, 0.5);
}

/* Hero Section */
.hero {
    height: 100vh;
    width: 100%;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
    /* Fancy animated background gradient */
    background: radial-gradient(circle at 50% 50%, #1a1a2e 0%, #000 100%);
}

.hero-bg-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: 
        radial-gradient(circle at 20% 30%, rgba(157, 0, 255, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(0, 210, 255, 0.15) 0%, transparent 50%);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 10;
    max-width: 800px;
    padding: 2rem;
}

h1 {
    font-size: 5rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1rem;
    background: linear-gradient(to right, #fff, #b3b3b3);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-transform: uppercase;
    letter-spacing: -2px;
}

.subtitle {
    font-size: 1.25rem;
    color: var(--text-muted);
    margin-bottom: 2.5rem;
    font-weight: 300;
}

.cta-group {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

.btn {
    padding: 1rem 2rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s;
}

.btn-glow {
    background: white;
    color: black;
    box-shadow: 0 0 20px rgba(255,255,255,0.2);
}

.btn-glow:hover {
    background: var(--accent-blue);
    color: white;
    box-shadow: 0 0 30px var(--accent-blue);
}

.btn-outline {
    border: 1px solid rgba(255,255,255,0.3);
    color: white;
    backdrop-filter: blur(5px);
}

.btn-outline:hover {
    border-color: white;
    background: rgba(255,255,255,0.1);
}

/* Abstract City CSS Art */
.city-silhouette {
    position: absolute;
    bottom: 0;
    width: 100%;
    height: 30vh;
    z-index: 2;
    pointer-events: none;
}

.building {
    position: absolute;
    bottom: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.8), rgba(20,20,30,0.2));
    border: 1px solid rgba(0,255,255,0.1);
    border-bottom: none;
    backdrop-filter: blur(2px);
}

.b1 { left: 10%; width: 10vw; height: 20vh; box-shadow: 0 0 15px rgba(0,210,255,0.1); }
.b2 { left: 25%; width: 8vw; height: 25vh; box-shadow: 0 0 20px rgba(157,0,255,0.15); }
.b3 { right: 20%; width: 12vw; height: 18vh; box-shadow: 0 0 15px rgba(255,0,127,0.1); }
.b4 { right: 5%; width: 15vw; height: 12vh; }

/* Sections */
.section {
    padding: 8rem 2rem;
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
}

.section-header {
    text-align: center;
    margin-bottom: 5rem;
}

.section-header h2 {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.highlight {
    background: linear-gradient(120deg, var(--accent-purple), var(--accent-blue));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-family: var(--font-display);
}

/* Character Cards */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 3rem;
}

.card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 2rem;
    position: relative;
    transition: transform 0.4s, box-shadow 0.4s;
    overflow: hidden;
}

.card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 5px;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.5), transparent);
    transform: translateX(-100%);
    transition: 0.5s;
}

.card:hover::before {
    transform: translateX(100%);
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.5), 0 0 20px rgba(0,210,255,0.1);
}

.avatar-placeholder {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    margin: 0 auto 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: white;
    box-shadow: 0 0 20px rgba(0,0,0,0.5);
    position: relative;
}

.judy-avatar {
    background: linear-gradient(135deg, #1e3c72, #2a5298);
    border: 3px solid var(--accent-blue);
}

.nick-avatar {
    background: linear-gradient(135deg, #d38312, #a83279);
    border: 3px solid var(--accent-green);
}

.card h3 {
    text-align: center;
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
}

.card .role {
    text-align: center;
    color: var(--accent-blue);
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.quote {
    font-style: italic;
    text-align: center;
    color: var(--text-muted);
    margin-bottom: 2rem;
}

.stats {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.stat .label {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 5px;
    display: block;
}

.stat .bar {
    height: 6px;
    background: rgba(255,255,255,0.1);
    border-radius: 3px;
    overflow: hidden;
}

.stat .fill {
    height: 100%;
    background: var(--accent-blue);
    box-shadow: 0 0 10px var(--accent-blue);
}

.nick .fill {
    background: var(--accent-green);
    box-shadow: 0 0 10px var(--accent-green);
}

/* Districts */
.districts-container {
    display: flex;
    flex-direction: column;
    gap: 10rem;
    padding-bottom: 5rem;
}

.district-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 4rem;
    position: relative;
}

.district-card:nth-child(even) {
    flex-direction: row-reverse;
}

.district-bg {
    flex: 1;
    height: 300px;
    border-radius: 20px;
    position: relative;
    overflow: hidden;
}

.tundra .district-bg {
    background: linear-gradient(45deg, #e6f3ff, #99ebff);
    box-shadow: 0 0 50px rgba(153, 235, 255, 0.2);
}

.sahara .district-bg {
    background: linear-gradient(45deg, #ff9d00, #ff5e00);
    box-shadow: 0 0 50px rgba(255, 94, 0, 0.2);
}

.rainforest .district-bg {
    background: linear-gradient(45deg, #00ff9d, #008f53);
    box-shadow: 0 0 50px rgba(0, 255, 157, 0.2);
}

.district-info {
    flex: 1;
}

.district-info h3 {
    font-size: 2.5rem;
    margin-bottom: 0;
}

.district-info h4 {
    font-size: 1.5rem;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
    font-weight: 300;
}

/* Footer */
footer {
    background: #050508;
    padding: 4rem 2rem;
    border-top: 1px solid var(--glass-border);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
}

.footer-col h3 {
    font-size: 2rem;
    font-family: var(--font-display);
    margin-bottom: 1rem;
    color: #fff;
}

.socials {
    margin-top: 1rem;
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
}

.socials a {
    color: var(--text-muted);
    transition: 0.3s;
}

.socials a:hover {
    color: var(--accent-pink);
}

/* Responsive */
@media (max-width: 768px) {
    h1 { font-size: 3rem; }
    .nav-links { display: none; }
    .district-card, .district-card:nth-child(even) {
        flex-direction: column;
        gap: 2rem;
        text-align: center;
    }
    .district-bg { width: 100%; height: 200px; }
}

@keyframes bounce {
    from { transform: translateY(0); }
    to { transform: translateY(-10px); }
}
