/* ══════════════════════════════════════════════════════════
   WASHINGTON POLICING — STYLE
   THQ Nordic–inspired dark/red/white theme
   ══════════════════════════════════════════════════════════ */

/* ─── CSS VARIABLES ─── */
:root {
    --bg-darkest:   #0a0a0a;
    --bg-dark:      #111111;
    --bg-card:      #1a1a1a;
    --bg-card-hover:#222222;
    --border:       #2a2a2a;
    --text:         #e0e0e0;
    --text-muted:   #888888;
    --white:        #ffffff;
    --red:          #c0392b;
    --red-light:    #e74c3c;
    --red-dark:     #962d22;
    --red-glow:     rgba(192, 57, 43, .35);
    --accent:       var(--red);
    --font-display: 'Oswald', sans-serif;
    --font-body:    'Inter', system-ui, sans-serif;
    --nav-h:        72px;
    --radius:       6px;
    --transition:   .35s cubic-bezier(.25,.46,.45,.94);
}

/* ─── RESET ─── */
*, *::before, *::after { margin:0; padding:0; box-sizing:border-box; }
html { scroll-behavior:smooth; scrollbar-width:thin; scrollbar-color: var(--red) var(--bg-dark); }
body {
    font-family: var(--font-body);
    background: var(--bg-darkest);
    color: var(--text);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
img { max-width:100%; height:auto; display:block; }

/* ─── SCROLLBAR ─── */
::-webkit-scrollbar { width:8px; }
::-webkit-scrollbar-track { background: var(--bg-dark); }
::-webkit-scrollbar-thumb { background: var(--red); border-radius:4px; }

/* ─── LOADER ─── */
#loader {
    position: fixed; inset:0; z-index:10000;
    background: var(--bg-darkest);
    display:flex; align-items:center; justify-content:center;
    transition: opacity .6s ease, visibility .6s ease;
}
#loader.hidden { opacity:0; visibility:hidden; pointer-events:none; }
.loader-inner { text-align:center; }
.loader-logo { width:80px; margin:0 auto 24px; animation: pulse 1.5s ease-in-out infinite; }
.loader-logo img { width:100%; filter: drop-shadow(0 0 20px var(--red-glow)); }
.loader-bar { width:200px; height:3px; background: var(--border); border-radius:3px; overflow:hidden; }
.loader-bar-fill { height:100%; width:0; background: var(--red); border-radius:3px; animation: loadBar 1.8s ease forwards; }
@keyframes loadBar { to { width:100%; } }
@keyframes pulse { 0%,100%{ transform:scale(1); } 50%{ transform:scale(1.08); } }

/* ═══════════════ NAVBAR ═══════════════ */
#navbar {
    position:fixed; top:0; left:0; right:0; height:var(--nav-h);
    z-index:9000;
    background: rgba(10,10,10,.8);
    backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid transparent;
    transition: background var(--transition), border-color var(--transition), box-shadow var(--transition);
}
#navbar.scrolled {
    background: rgba(10,10,10,.95);
    border-bottom-color: var(--border);
    box-shadow: 0 4px 30px rgba(0,0,0,.4);
}
.nav-inner {
    max-width:1400px; margin:0 auto; height:100%;
    padding: 0 40px;
    display:flex; align-items:center; justify-content:space-between;
}
.nav-logo img { height:40px; transition: transform var(--transition); }
.nav-logo:hover img { transform:scale(1.05); }

.nav-links { display:flex; gap:32px; }
.nav-links a {
    font-family: var(--font-display);
    font-size: .85rem; font-weight:500;
    letter-spacing: 1.5px; text-transform:uppercase;
    color: var(--text-muted);
    position:relative;
    transition: color var(--transition);
}
.nav-links a::after {
    content:''; position:absolute; bottom:-4px; left:0; width:0; height:2px;
    background: var(--red); transition: width var(--transition);
}
.nav-links a:hover, .nav-links a.active { color: var(--white); }
.nav-links a:hover::after, .nav-links a.active::after { width:100%; }

.nav-actions { display:flex; gap:12px; }
.btn-discord, .btn-play {
    font-family: var(--font-display);
    font-size: .8rem; font-weight:500;
    letter-spacing: 1px; text-transform:uppercase;
    padding: 10px 20px;
    border-radius: var(--radius);
    display:flex; align-items:center; gap:8px;
    transition: all var(--transition);
}
.btn-discord {
    background: transparent;
    border: 1px solid var(--border);
    color: var(--text);
}
.btn-discord:hover { border-color: #5865F2; color:#5865F2; }
.btn-play {
    background: var(--red);
    border: 1px solid var(--red);
    color: var(--white);
}
.btn-play:hover { background: var(--red-light); border-color: var(--red-light); box-shadow: 0 0 20px var(--red-glow); }

/* Burger */
.nav-burger { display:none; flex-direction:column; gap:5px; background:none; border:none; cursor:pointer; padding:8px; }
.nav-burger span { width:24px; height:2px; background: var(--white); transition: var(--transition); border-radius:2px; }
.nav-burger.active span:nth-child(1){ transform:translateY(7px) rotate(45deg); }
.nav-burger.active span:nth-child(2){ opacity:0; }
.nav-burger.active span:nth-child(3){ transform:translateY(-7px) rotate(-45deg); }

/* Mobile menu */
.mobile-menu {
    display:none; position:absolute; top:var(--nav-h); left:0; right:0;
    background: rgba(10,10,10,.98); border-bottom:1px solid var(--border);
    padding:32px 40px; flex-direction:column; gap:24px;
    animation: slideDown .3s ease;
}
.mobile-menu.open { display:flex; }
.mobile-menu ul { display:flex; flex-direction:column; gap:16px; }
.mobile-menu a {
    font-family:var(--font-display); font-size:1rem; letter-spacing:1.5px;
    text-transform:uppercase; color:var(--text-muted); transition:color var(--transition);
}
.mobile-menu a:hover { color:var(--white); }
.mobile-actions { display:flex; gap:12px; }
@keyframes slideDown { from{opacity:0;transform:translateY(-10px);} to{opacity:1;transform:translateY(0);} }

/* ═══════════════ HERO ═══════════════ */
#hero {
    position:relative; min-height:100vh; display:flex;
    align-items:center; justify-content:center; text-align:center;
    overflow:hidden;
}
.hero-bg {
    position:absolute; inset:0; z-index:0;
    background:
        radial-gradient(ellipse at 30% 20%, rgba(192,57,43,.12) 0%, transparent 60%),
        radial-gradient(ellipse at 70% 80%, rgba(192,57,43,.08) 0%, transparent 50%),
        var(--bg-darkest);
}
.hero-overlay {
    position:absolute; inset:0;
    background: linear-gradient(180deg, transparent 50%, var(--bg-darkest) 100%);
}
.hero-particles {
    position:absolute; inset:0; overflow:hidden;
}
.hero-particles .particle {
    position:absolute;
    width:2px; height:2px;
    background: var(--red);
    border-radius:50%;
    opacity:0;
    animation: particleFloat linear infinite;
}
@keyframes particleFloat {
    0%  { opacity:0; transform:translateY(0) scale(1); }
    10% { opacity:.6; }
    90% { opacity:.6; }
    100%{ opacity:0; transform:translateY(-100vh) scale(0); }
}

.hero-content { position:relative; z-index:1; padding:0 20px; }
.hero-badge {
    display:inline-block;
    font-family:var(--font-display);
    font-size:.75rem; font-weight:500;
    letter-spacing:3px; text-transform:uppercase;
    color: var(--red);
    border:1px solid var(--red);
    padding:8px 20px;
    border-radius:50px;
    margin-bottom:32px;
    animation: fadeInUp .8s ease .5s both;
}
.hero-logo-img {
    width:120px; height:120px;
    margin:0 auto 24px;
    filter: drop-shadow(0 0 40px var(--red-glow));
    animation: fadeInUp .8s ease .6s both;
}
.hero-title {
    font-family:var(--font-display);
    line-height:1;
    margin-bottom:20px;
    animation: fadeInUp .8s ease .7s both;
}
.hero-title-top {
    display:block;
    font-size:clamp(3rem,8vw,7rem);
    font-weight:700;
    color: var(--white);
    letter-spacing:8px;
}
.hero-title-bottom {
    display:block;
    font-size:clamp(1.8rem,4vw,3.5rem);
    font-weight:300;
    color: var(--red);
    letter-spacing:14px;
}
.hero-subtitle {
    font-size:clamp(1rem,1.5vw,1.2rem);
    color: var(--text-muted);
    max-width:550px; margin:0 auto 36px;
    animation: fadeInUp .8s ease .8s both;
}
.hero-buttons {
    display:flex; gap:16px; justify-content:center; flex-wrap:wrap;
    animation: fadeInUp .8s ease .9s both;
}
.hero-stats {
    display:flex; align-items:center; justify-content:center; gap:32px;
    margin-top:56px;
    animation: fadeInUp .8s ease 1s both;
}
.stat { text-align:center; }
.stat-number {
    font-family:var(--font-display);
    font-size:2.4rem; font-weight:700; color:var(--white);
}
.stat-plus, .stat-suffix {
    font-family:var(--font-display);
    font-size:1.6rem; font-weight:700; color:var(--red);
}
.stat-label {
    display:block; font-size:.75rem; text-transform:uppercase;
    letter-spacing:2px; color:var(--text-muted); margin-top:4px;
}
.stat-divider { width:1px; height:40px; background:var(--border); }

.hero-scroll {
    position:absolute; bottom:32px; left:50%; transform:translateX(-50%);
    z-index:1;
}
.hero-scroll a {
    color:var(--text-muted); font-size:1.2rem;
    animation: bounce 2s ease infinite;
}
@keyframes bounce { 0%,100%{transform:translateY(0);} 50%{transform:translateY(8px);} }
@keyframes fadeInUp {
    from { opacity:0; transform:translateY(30px); }
    to   { opacity:1; transform:translateY(0); }
}

/* ─── BUTTONS ─── */
.btn {
    font-family: var(--font-display);
    font-size: .85rem; font-weight:500;
    letter-spacing:1.5px; text-transform:uppercase;
    padding: 14px 32px;
    border-radius: var(--radius);
    display:inline-flex; align-items:center; gap:10px;
    transition: all var(--transition);
    cursor:pointer; border:none;
}
.btn-primary {
    background: var(--red);
    color:var(--white);
    border: 1px solid var(--red);
}
.btn-primary:hover {
    background: var(--red-light);
    border-color: var(--red-light);
    box-shadow: 0 0 30px var(--red-glow);
    transform: translateY(-2px);
}
.btn-outline {
    background:transparent;
    color:var(--text);
    border:1px solid var(--border);
}
.btn-outline:hover {
    border-color:var(--white);
    color:var(--white);
    transform:translateY(-2px);
}
.btn-large { padding:18px 44px; font-size:.95rem; }

/* ═══════════════ SECTIONS ═══════════════ */
.section {
    padding: 120px 0;
    position:relative;
}
.section-dark {
    background:
        linear-gradient(180deg, var(--bg-dark) 0%, var(--bg-darkest) 100%);
}
.section-container {
    max-width:1200px; margin:0 auto; padding:0 40px;
}
.section-header { text-align:center; margin-bottom:72px; }
.section-tag {
    font-family:var(--font-display);
    font-size:.75rem; font-weight:500;
    letter-spacing:4px; text-transform:uppercase;
    color:var(--red);
    margin-bottom:12px; display:block;
}
.section-title {
    font-family:var(--font-display);
    font-size:clamp(2rem,4vw,3rem);
    font-weight:700; color:var(--white);
    letter-spacing:2px; text-transform:uppercase;
}
.section-title .accent { color:var(--red); }
.section-line {
    width:60px; height:3px;
    background:var(--red);
    margin:20px auto 0;
    border-radius:3px;
}

/* ─── ABOUT CARDS ─── */
.about-grid {
    display:grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap:24px;
}
.about-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 40px 32px;
    text-align:center;
    transition: all var(--transition);
    position:relative;
    overflow:hidden;
}
.about-card::before {
    content:'';
    position:absolute; top:0; left:0; right:0; height:3px;
    background: var(--red);
    transform: scaleX(0);
    transition: transform var(--transition);
}
.about-card:hover {
    border-color: var(--red-dark);
    transform: translateY(-6px);
    box-shadow: 0 20px 40px rgba(0,0,0,.3);
}
.about-card:hover::before { transform:scaleX(1); }
.about-card-icon {
    width:64px; height:64px;
    margin:0 auto 20px;
    display:flex; align-items:center; justify-content:center;
    border-radius:50%;
    background: rgba(192,57,43,.1);
    border: 1px solid rgba(192,57,43,.2);
    font-size:1.4rem; color:var(--red);
    transition: all var(--transition);
}
.about-card:hover .about-card-icon {
    background: var(--red);
    color: var(--white);
    box-shadow: 0 0 30px var(--red-glow);
}
.about-card h3 {
    font-family:var(--font-display);
    font-size:1.15rem; font-weight:600;
    letter-spacing:1px; text-transform:uppercase;
    color:var(--white); margin-bottom:12px;
}
.about-card p { font-size:.9rem; color:var(--text-muted); line-height:1.7; }

/* ─── FEATURES ─── */
.features-showcase { display:flex; flex-direction:column; gap:80px; }
.feature-row {
    display:flex; align-items:center; gap:60px;
}
.feature-row.reverse { flex-direction:row-reverse; }
.feature-visual { flex:0 0 280px; display:flex; justify-content:center; }
.feature-icon-big {
    width:200px; height:200px;
    display:flex; align-items:center; justify-content:center;
    border-radius:50%;
    background: radial-gradient(circle, rgba(192,57,43,.15) 0%, transparent 70%);
    border:1px solid rgba(192,57,43,.15);
    font-size:3.5rem; color:var(--red);
    position:relative;
    transition: all var(--transition);
}
.feature-icon-big::before {
    content:''; position:absolute; inset:-15px;
    border-radius:50%;
    border:1px dashed rgba(192,57,43,.15);
    animation: rotateSlow 20s linear infinite;
}
@keyframes rotateSlow { to { transform:rotate(360deg); } }
.feature-row:hover .feature-icon-big {
    border-color: rgba(192,57,43,.4);
    box-shadow: 0 0 60px var(--red-glow);
}
.feature-info { flex:1; }
.feature-number {
    font-family:var(--font-display);
    font-size:3rem; font-weight:700;
    color: rgba(192,57,43,.15);
    margin-bottom:8px; display:block;
}
.feature-info h3 {
    font-family:var(--font-display);
    font-size:1.6rem; font-weight:600;
    color:var(--white); letter-spacing:1px;
    text-transform:uppercase; margin-bottom:16px;
}
.feature-info p { font-size:1rem; color:var(--text-muted); line-height:1.8; max-width:500px; }

/* ─── GALLERY ─── */
.gallery-grid {
    display:grid;
    grid-template-columns: repeat(3, 1fr);
    gap:16px;
}
.gallery-item {
    position:relative; border-radius:var(--radius);
    overflow:hidden; cursor:pointer;
    aspect-ratio:16/10;
    border:1px solid var(--border);
    transition: all var(--transition);
}
.gallery-item-large { grid-column: span 2; }
.gallery-placeholder {
    width:100%; height:100%;
    background: var(--bg-card);
    display:flex; flex-direction:column;
    align-items:center; justify-content:center;
    gap:12px;
    font-size:.85rem; color:var(--text-muted);
}
.gallery-placeholder i { font-size:2rem; color:var(--border); }
.gallery-overlay {
    position:absolute; inset:0;
    background: linear-gradient(0deg, rgba(192,57,43,.8) 0%, transparent 60%);
    display:flex; align-items:flex-end; padding:24px;
    opacity:0; transition: opacity var(--transition);
}
.gallery-overlay span {
    font-family:var(--font-display);
    font-size:.9rem; font-weight:500;
    letter-spacing:1px; text-transform:uppercase;
    color:var(--white);
}
.gallery-item:hover { transform:scale(1.02); border-color:var(--red-dark); }
.gallery-item:hover .gallery-overlay { opacity:1; }

/* ─── STAFF ─── */
.staff-grid {
    display:grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap:24px;
}
.staff-card {
    background:var(--bg-card);
    border:1px solid var(--border);
    border-radius:var(--radius);
    padding:40px 24px;
    text-align:center;
    transition: all var(--transition);
}
.staff-card:hover {
    border-color:var(--red-dark);
    transform:translateY(-4px);
    box-shadow:0 15px 30px rgba(0,0,0,.3);
}
.staff-avatar {
    width:72px; height:72px;
    margin:0 auto 16px;
    border-radius:50%;
    background: rgba(192,57,43,.1);
    border:2px solid var(--border);
    display:flex; align-items:center; justify-content:center;
    font-size:1.5rem; color:var(--red);
    transition: all var(--transition);
}
.staff-card:hover .staff-avatar {
    border-color:var(--red);
    box-shadow: 0 0 20px var(--red-glow);
}
.staff-card h4 {
    font-family:var(--font-display);
    font-size:1rem; font-weight:600;
    letter-spacing:1px; text-transform:uppercase;
    color:var(--white); margin-bottom:6px;
}
.staff-role {
    font-size:.75rem; letter-spacing:1.5px;
    text-transform:uppercase; color:var(--text-muted);
}

/* ─── RULES ─── */
.rules-list { max-width:800px; margin:0 auto; display:flex; flex-direction:column; gap:16px; }
.rule-item {
    display:flex; gap:24px; align-items:flex-start;
    background:var(--bg-card);
    border:1px solid var(--border);
    border-radius:var(--radius);
    padding:28px 32px;
    transition: all var(--transition);
}
.rule-item:hover {
    border-color:var(--red-dark);
    transform:translateX(8px);
}
.rule-number {
    font-family:var(--font-display);
    font-size:1.4rem; font-weight:700;
    color:var(--red);
    flex-shrink:0; min-width:40px;
}
.rule-content h4 {
    font-family:var(--font-display);
    font-size:1rem; font-weight:600;
    letter-spacing:1px; text-transform:uppercase;
    color:var(--white); margin-bottom:8px;
}
.rule-content p { font-size:.9rem; color:var(--text-muted); line-height:1.7; }

/* ─── CTA ─── */
.section-cta {
    position:relative;
    padding:120px 0;
    text-align:center;
    overflow:hidden;
}
.cta-bg {
    position:absolute; inset:0;
    background:
        radial-gradient(ellipse at center, rgba(192,57,43,.15) 0%, transparent 60%),
        var(--bg-darkest);
}
.cta-content { position:relative; z-index:1; padding:0 40px; }
.cta-content h2 {
    font-family:var(--font-display);
    font-size:clamp(1.8rem,4vw,2.8rem);
    font-weight:700; color:var(--white);
    letter-spacing:2px; text-transform:uppercase;
    margin-bottom:16px;
}
.cta-content p {
    font-size:1.05rem; color:var(--text-muted);
    margin-bottom:36px; max-width:600px;
    margin-left:auto; margin-right:auto;
}

/* ═══════════════ FOOTER ═══════════════ */
#footer {
    background: var(--bg-dark);
    border-top:1px solid var(--border);
}
.footer-top {
    max-width:1200px; margin:0 auto;
    padding: 60px 40px;
    display:flex; gap:60px;
    justify-content:space-between;
    flex-wrap:wrap;
}
.footer-brand { max-width:300px; }
.footer-logo { height:48px; margin-bottom:16px; filter:drop-shadow(0 0 15px var(--red-glow)); }
.footer-brand p { font-size:.9rem; color:var(--text-muted); line-height:1.7; }

.footer-links { display:flex; gap:60px; flex-wrap:wrap; }
.footer-col { display:flex; flex-direction:column; gap:10px; }
.footer-col h5 {
    font-family:var(--font-display);
    font-size:.8rem; font-weight:600;
    letter-spacing:2px; text-transform:uppercase;
    color:var(--white); margin-bottom:6px;
}
.footer-col a {
    font-size:.85rem; color:var(--text-muted);
    transition:color var(--transition);
}
.footer-col a:hover { color:var(--red); }

.footer-bottom {
    max-width:1200px; margin:0 auto;
    padding:24px 40px;
    border-top:1px solid var(--border);
    display:flex; align-items:center; justify-content:space-between;
    flex-wrap:wrap; gap:16px;
}
.footer-bottom p { font-size:.8rem; color:var(--text-muted); }
.footer-socials { display:flex; gap:16px; }
.footer-socials a {
    width:40px; height:40px;
    border-radius:50%;
    border:1px solid var(--border);
    display:flex; align-items:center; justify-content:center;
    color:var(--text-muted);
    transition: all var(--transition);
}
.footer-socials a:hover {
    border-color:var(--red);
    color:var(--red);
    box-shadow: 0 0 15px var(--red-glow);
}

/* ═══════════════ REVEAL ANIMATIONS ═══════════════ */
[data-reveal] {
    opacity:0; transform:translateY(40px);
    transition: opacity .8s ease, transform .8s ease;
}
[data-reveal].revealed {
    opacity:1; transform:translateY(0);
}

/* ═══════════════ RESPONSIVE ═══════════════ */
@media (max-width:1024px) {
    .feature-row, .feature-row.reverse { flex-direction:column; text-align:center; }
    .feature-visual { flex:0 0 auto; }
    .feature-info p { margin:0 auto; }
    .gallery-grid { grid-template-columns:repeat(2,1fr); }
    .gallery-item-large { grid-column:span 1; }
}
@media (max-width:768px) {
    :root { --nav-h:64px; }
    .nav-links, .nav-actions { display:none; }
    .nav-burger { display:flex; }
    .nav-inner { padding:0 20px; }
    .section { padding:80px 0; }
    .section-container { padding:0 20px; }
    .hero-stats { flex-direction:column; gap:20px; }
    .stat-divider { width:40px; height:1px; }
    .gallery-grid { grid-template-columns:1fr; }
    .staff-grid { grid-template-columns: repeat(2,1fr); }
    .footer-top { flex-direction:column; gap:40px; }
    .footer-links { gap:40px; }
    .footer-bottom { flex-direction:column; text-align:center; }
    .rule-item { flex-direction:column; gap:12px; }
}
@media (max-width:480px) {
    .staff-grid { grid-template-columns:1fr; }
    .about-grid { grid-template-columns:1fr; }
    .hero-buttons { flex-direction:column; align-items:center; }
}
