/* ========================================= */
/* PARANORMAL PRO – TACTICAL COMMAND STYLE  */
/* ========================================= */

/* ===== GLOBAL RESET ===== */

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: "Inter", -apple-system, BlinkMacSystemFont, sans-serif;
    background: #0f1419;
    color: #e6edf3;
    line-height: 1.6;
}

/* Reduce motion support */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
    * {
        animation-duration: 0.001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.001ms !important;
    }
}

/* ===== COMMAND HEADER ===== */

.command-header {
    background: #111820;
    padding: 80px 20px;
    text-align: center;
    border-bottom: 1px solid #1f2a36;
    position: relative;
    overflow: hidden;
}

/* Animated cyan header scan */
.command-header::after {
    content: "";
    position: absolute;
    top: 0;
    left: -70%;
    width: 70%;
    height: 100%;
    background: linear-gradient(
        120deg,
        transparent,
        rgba(0, 194, 255, 0.08),
        transparent
    );
    animation: headerScan 6.5s ease-in-out infinite;
    pointer-events: none;
}

@keyframes headerScan {
    0%   { transform: translateX(0); opacity: 0; }
    10%  { opacity: 1; }
    55%  { opacity: 1; }
    65%  { opacity: 0; }
    100% { transform: translateX(220%); opacity: 0; }
}

.command-header h1 {
    font-size: 42px;
    margin: 0;
    font-weight: 600;
    letter-spacing: 1px;
    position: relative;
    z-index: 1;
}

.command-header p {
    margin-top: 12px;
    color: #8aa0b6;
    font-size: 15px;
    position: relative;
    z-index: 1;
}

/* ===== NAVIGATION – COMMAND STRIP ===== */
/*
    ✅ Desktop: wraps cleanly (no cutoff)
    ✅ Mobile: one-line scroll (no mega-tall nav)
*/

.command-nav {
    background: #0c1116;
    padding: 12px 14px;
    border-bottom: 1px solid #1f2a36;

    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;

    gap: 8px 10px;
    position: relative;
}

/* Links as “command chips” */
.command-nav a {
    display: inline-block;
    color: #9fb3c8;
    text-decoration: none;

    font-size: 11px;
    font-weight: 600;
    letter-spacing: 1.5px;
    text-transform: uppercase;

    padding: 7px 10px;
    border-radius: 6px;
    border: 1px solid transparent;

    transition: transform 0.22s ease, box-shadow 0.25s ease, border-color 0.25s ease, background 0.25s ease, color 0.25s ease;
}

/* Hover */
.command-nav a:hover {
    color: #ffffff;
    border-color: rgba(0, 194, 255, 0.25);
    background: rgba(0, 194, 255, 0.04);
}

/* ✅ Active page highlight (use aria-current="page" OR class="active") */
.command-nav a[aria-current="page"],
.command-nav a.active {
    color: #ffffff;
    border-color: rgba(0, 194, 255, 0.70);
    background: rgba(0, 194, 255, 0.08);
    box-shadow: 0 0 14px rgba(0, 194, 255, 0.12);
}

/* Mobile: keep it one-line scrollable */
@media (max-width: 700px) {
    .command-nav {
        flex-wrap: nowrap;
        justify-content: flex-start;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none; /* Firefox */
    }

    .command-nav::-webkit-scrollbar {
        display: none; /* Safari/Chrome */
    }
}

/* ===== SITE-WIDE ENTRANCE ANIMATION ===== */
/* Apply only to sections and cards (avoid double-animating operational summary + cards) */

@keyframes fadeUp {
    to { opacity: 1; transform: translateY(0); }
}

section {
    padding: 80px 25px;
    max-width: 1200px;
    margin: auto;

    opacity: 0;
    transform: translateY(10px);
    animation: fadeUp 520ms ease forwards;
    animation-delay: 120ms;
}

/* Make sure nested sections don’t feel too uniform */
section:nth-of-type(2) { animation-delay: 160ms; }
section:nth-of-type(3) { animation-delay: 200ms; }
section:nth-of-type(4) { animation-delay: 240ms; }
section:nth-of-type(5) { animation-delay: 280ms; }
section:nth-of-type(6) { animation-delay: 320ms; }

h2 {
    font-size: 24px;
    margin-bottom: 25px;
    padding-bottom: 10px;
    border-bottom: 1px solid #243140;
    font-weight: 600;
}

/* Simple highlight block (used across pages) */
.highlight {
    margin-top: 18px;
    padding: 16px;
    background: rgba(12, 17, 22, 0.60);
    border: 1px solid rgba(0, 194, 255, 0.18);
    border-radius: 10px;
    color: #c6d2de;
}

.board-closing-note {
    text-align: center;
    max-width: 760px;
    margin-left: auto;
    margin-right: auto;
}

/* ===== OPERATIONAL SUMMARY ===== */
/* Keep this simple; don’t re-animate separately (section already animates) */

.operational-summary {
    text-align: center;
    padding: 70px 20px;
    max-width: 900px;
    margin: auto;
}

.status-line {
    margin-top: 25px;
    font-size: 14px;
    color: #8aa0b6;
}

/* ===== CYAN STATUS INDICATOR (PULSE) ===== */

.active-indicator {
    display: inline-block;
    width: 8px;
    height: 8px;
    background: #00c2ff;
    border-radius: 50%;
    margin: 0 6px;
    box-shadow: 0 0 8px rgba(0, 194, 255, 0.6);
    animation: pulse 2.2s infinite ease-in-out;
    vertical-align: middle;
}

@keyframes pulse {
    0%   { box-shadow: 0 0 6px rgba(0, 194, 255, 0.4); }
    50%  { box-shadow: 0 0 14px rgba(0, 194, 255, 0.9); }
    100% { box-shadow: 0 0 6px rgba(0, 194, 255, 0.4); }
}

/* ===== DASHBOARD GRID ===== */

.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 30px;

    /* Visual spacing around tiles */
    padding: 80px 40px;

    /* Reserve space for the divider line */
    padding-top: 130px;

    max-width: 1100px;
    margin: auto;
    position: relative;
}

.dashboard-panel-featured {
    grid-column: 1 / -1;
}

/* Divider line above grid (absolute so it never steals a grid cell) */
.dashboard-grid::before {
    content: "";
    position: absolute;
    top: 80px;
    left: 40px;
    right: 40px;
    height: 1px;
    background: linear-gradient(
        to right,
        transparent,
        rgba(0, 194, 255, 0.3),
        transparent
    );
}

/* Tablet */
@media (max-width: 1000px) {
    .dashboard-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

/* Mobile */
@media (max-width: 650px) {
    .dashboard-grid {
        grid-template-columns: minmax(0, 1fr);
        padding: 60px 20px;
        padding-top: 110px;
    }

    .dashboard-grid::before {
        top: 60px;
        left: 20px;
        right: 20px;
    }
}

/* ===== DASHBOARD PANELS ===== */

.dashboard-panel {
    position: relative;
    overflow: hidden;
    background: #141c24;
    padding: 28px;
    border: 1px solid #1f2a36;
    border-radius: 6px;

    transition: transform 0.22s ease, box-shadow 0.25s ease, border-color 0.25s ease;

    /* Entrance */
    opacity: 0;
    transform: translateY(10px);
    animation: fadeUp 560ms ease forwards;
    animation-delay: 180ms;
}

.dashboard-panel-link {
    display: block;
    text-decoration: none;
    color: inherit;
    background:
        radial-gradient(circle at top left, rgba(0, 194, 255, 0.14), transparent 34%),
        linear-gradient(180deg, rgba(20, 28, 36, 0.98), rgba(13, 18, 25, 0.98));
}

/* Stagger for grid cards */
.dashboard-grid .dashboard-panel:nth-child(1) { animation-delay: 160ms; }
.dashboard-grid .dashboard-panel:nth-child(2) { animation-delay: 210ms; }
.dashboard-grid .dashboard-panel:nth-child(3) { animation-delay: 260ms; }
.dashboard-grid .dashboard-panel:nth-child(4) { animation-delay: 310ms; }
.dashboard-grid .dashboard-panel:nth-child(5) { animation-delay: 360ms; }
.dashboard-grid .dashboard-panel:nth-child(6) { animation-delay: 410ms; }

.dashboard-panel h3 {
    margin-top: 0;
    font-size: 18px;
    margin-bottom: 15px;
    color: #e6edf3;
}

.dashboard-panel p {
    color: #b8c4d1;
    font-size: 14px;
}

.dashboard-panel-kicker {
    margin-bottom: 10px;
    color: #55c8ff;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.dashboard-panel-cta {
    display: inline-block;
    margin-top: 14px;
    color: #f2f7fb;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

/* Subtle shimmer scan */
.dashboard-panel::after {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        120deg,
        transparent,
        rgba(0, 194, 255, 0.05),
        transparent
    );
    transition: all 0.6s ease;
}

.dashboard-panel:hover::after {
    left: 100%;
}

/* Polished hover feel */
.dashboard-panel:hover {
    transform: translateY(-4px);
    box-shadow: 0 0 22px rgba(0, 194, 255, 0.14);
    border-color: rgba(0, 194, 255, 0.85);
}

/* ===== FOOTER ===== */

footer {
    text-align: center;
    padding: 40px;
    background: #0c1116;
    border-top: 1px solid #1f2a36;
    color: #6e859c;
    font-size: 13px;
}

/* ===== ADVISORY BOARD ===== */

.advisory-grid {
    display: grid;
    gap: 28px;
    margin-top: 30px;
}

.board-member-card {
    display: grid;
    grid-template-columns: 200px minmax(0, 1fr);
    gap: 24px;
    align-items: start;
    padding: 28px;
    background: linear-gradient(180deg, rgba(20, 28, 36, 0.98), rgba(15, 21, 29, 0.98));
    border: 1px solid #1f2a36;
    border-radius: 10px;
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.18);
}

.board-member-photo-wrap {
    position: relative;
    width: 100%;
}

.board-member-photo {
    width: 100%;
    max-width: 200px;
    height: 250px;
    object-fit: cover;
    object-position: center top;
    display: block;
    margin: 0 auto;
    border-radius: 8px;
    border: 1px solid rgba(0, 194, 255, 0.2);
    background: #111820;
}

.board-member-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 18px;
}

.board-member-meta h3 {
    margin: 4px 0 8px;
    font-size: 30px;
    line-height: 1.1;
    color: #ffffff;
}

.board-member-label {
    margin: 0;
    color: #00c2ff;
    font-size: 12px;
    letter-spacing: 1.8px;
    text-transform: uppercase;
    font-weight: 600;
}

.board-member-role {
    margin: 0;
    color: #9fb3c8;
    font-size: 15px;
}

.board-member-bio {
    margin: 0;
    color: #c1ccd7;
    font-size: 15px;
}

.board-member-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.board-member-tags span {
    display: inline-flex;
    align-items: center;
    padding: 8px 12px;
    border-radius: 999px;
    border: 1px solid rgba(0, 194, 255, 0.18);
    background: rgba(0, 194, 255, 0.08);
    color: #bfeeff;
    font-size: 12px;
    letter-spacing: 0.5px;
}

.board-member-links {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.board-member-links a {
    display: block;
    padding: 12px 14px;
    border: 1px solid #243140;
    border-radius: 8px;
    background: rgba(12, 17, 22, 0.85);
    color: #d8e6f3;
    text-decoration: none;
    font-size: 14px;
    transition: border-color 0.25s ease, transform 0.25s ease, color 0.25s ease;
}

.board-member-links a:hover {
    border-color: #00c2ff;
    color: #ffffff;
    transform: translateY(-2px);
}

@media (max-width: 820px) {
    .board-member-card {
        grid-template-columns: 1fr;
    }

    .board-member-photo-wrap {
        display: flex;
        justify-content: center;
    }

    .board-member-photo {
        max-width: 220px;
        height: 280px;
    }

    .board-member-links {
        grid-template-columns: 1fr;
    }
}

/* ===== PROFESSIONAL STANDARDS PAGE ===== */

.standards-hero {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
    gap: 34px;
    align-items: center;
}

.standards-hero-media img {
    width: 100%;
    display: block;
    border-radius: 18px;
    border: 1px solid rgba(217, 176, 111, 0.22);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.38);
}

.standards-kicker {
    margin: 0 0 12px;
    color: #d7b47d;
    text-transform: uppercase;
    letter-spacing: 2.4px;
    font-size: 12px;
    font-weight: 700;
}

.standards-hero-copy h2,
.standards-principles h2,
.standards-summary-card h2,
.standards-closing h2 {
    border-bottom-color: rgba(215, 180, 125, 0.22);
}

.standards-hero-copy p,
.standards-card p,
.standards-summary-card p {
    color: #d4dde7;
}

.standards-callout {
    margin-top: 24px;
    padding: 20px 22px;
    border-radius: 14px;
    border: 1px solid rgba(215, 180, 125, 0.24);
    background:
        linear-gradient(135deg, rgba(215, 180, 125, 0.08), rgba(255, 255, 255, 0.02)),
        rgba(8, 11, 15, 0.9);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.03);
}

.standards-callout strong {
    display: block;
    font-size: 24px;
    line-height: 1.2;
    color: #f1f5f9;
}

.standards-callout span {
    display: block;
    margin-top: 8px;
    color: #d7b47d;
    font-size: 20px;
    font-style: italic;
}

.standards-principles {
    padding-top: 28px;
}

.standards-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
}

.standards-card {
    padding: 24px;
    border-radius: 16px;
    border: 1px solid rgba(36, 49, 64, 0.95);
    background:
        radial-gradient(circle at top right, rgba(0, 194, 255, 0.06), transparent 48%),
        rgba(13, 19, 26, 0.92);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.22);
}

.standards-card h3 {
    margin: 0 0 14px;
    color: #f0f4f8;
    font-size: 20px;
}

.standards-card ul {
    margin: 14px 0 0 18px;
    padding: 0;
    color: #d4dde7;
}

.standards-card li + li {
    margin-top: 8px;
}

.standards-card-wide {
    grid-column: 1 / -1;
}

.standards-summary {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
}

.standards-summary-card {
    padding: 28px;
    border-radius: 18px;
    background:
        linear-gradient(180deg, rgba(14, 20, 27, 0.96), rgba(10, 14, 19, 0.96));
    border: 1px solid rgba(215, 180, 125, 0.18);
    box-shadow: 0 14px 28px rgba(0, 0, 0, 0.24);
}

.standards-emphasis {
    margin-top: 18px;
    color: #d7b47d;
    font-size: 20px;
    font-style: italic;
}

.standards-closing {
    text-align: center;
    padding-top: 24px;
}

.standards-closing h2 {
    margin-bottom: 12px;
}

.standards-closing p {
    margin: 0;
    color: #d7b47d;
    letter-spacing: 2px;
    text-transform: uppercase;
    font-size: 13px;
}

@media (max-width: 900px) {
    .standards-hero,
    .standards-grid,
    .standards-summary {
        grid-template-columns: 1fr;
    }

    .standards-callout strong {
        font-size: 22px;
    }

    .standards-callout span {
        font-size: 18px;
    }
}

/* ===== INVESTIGATION REPOSITORY ===== */

.repository-page {
    max-width: 1180px;
    margin: 0 auto;
    padding: 34px 14px 96px;
}

.repository-shell {
    display: grid;
    gap: 24px;
}

.repository-shell > section {
    padding: 0;
    max-width: none;
    margin: 0;
    opacity: 1;
    transform: none;
    animation: none;
}

.repository-stat-dot {
    display: inline-block;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #55c8ff;
    box-shadow: 0 0 12px rgba(85, 200, 255, 0.85);
    margin-right: 8px;
    vertical-align: middle;
}

.repository-group {
    display: grid;
    gap: 14px;
}

.repository-group-header {
    padding: 4px 2px 0;
}

.repository-hero-header {
    padding-bottom: 2px;
}

.repository-group-label {
    margin: 0;
    padding: 0;
    border: 0;
    color: #55c8ff;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.repository-group-copy {
    margin: 6px 0 0;
    color: #8ea0b1;
    font-size: 15px;
    line-height: 1.6;
}

.repository-cards {
    display: grid;
    gap: 14px;
}

.repository-card {
    position: relative;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 16px;
    align-items: start;
    text-decoration: none;
    color: inherit;
    padding: 18px 20px;
    border-radius: 20px;
    border: 1px solid rgba(73, 178, 255, 0.18);
    background:
        linear-gradient(180deg, rgba(17, 28, 40, 0.94), rgba(11, 18, 26, 0.98)),
        radial-gradient(circle at top left, rgba(0, 194, 255, 0.09), transparent 30%);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.03),
        0 10px 28px rgba(0, 0, 0, 0.16);
    transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
}

.repository-card:hover {
    transform: translateY(-2px);
    border-color: rgba(85, 200, 255, 0.35);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.05),
        0 14px 34px rgba(0, 0, 0, 0.2);
}

.repository-hero-card {
    background:
        radial-gradient(circle at top left, rgba(0, 194, 255, 0.14), transparent 36%),
        radial-gradient(circle at bottom right, rgba(233, 201, 118, 0.10), transparent 28%),
        linear-gradient(180deg, rgba(17, 28, 40, 0.96), rgba(10, 17, 24, 0.98));
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.04),
        0 16px 40px rgba(0, 0, 0, 0.22);
}

.repository-card-icon {
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    border-radius: 12px;
    border: 1px solid rgba(85, 200, 255, 0.22);
    background: rgba(11, 21, 32, 0.82);
    color: #55c8ff;
    font-size: 18px;
    font-weight: 700;
}

.repository-card-body {
    min-width: 0;
}

.repository-card-title {
    margin: 0;
    font-size: 1.6rem;
    line-height: 1.15;
    font-weight: 700;
    color: #f2f7fb;
}

.repository-card-description {
    margin: 10px 0 0;
    color: #adc0cf;
    font-size: 15px;
    line-height: 1.65;
}

.repository-card-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 14px;
}

.repository-chip {
    display: inline-flex;
    align-items: center;
    padding: 6px 11px;
    border-radius: 999px;
    background: rgba(8, 16, 24, 0.8);
    border: 1px solid rgba(73, 178, 255, 0.14);
    color: #c6d5e2;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.07em;
    text-transform: uppercase;
}

.repository-chip.repository-chip-featured {
    color: #f2f7fb;
    border-color: rgba(233, 201, 118, 0.22);
    background: rgba(233, 201, 118, 0.08);
}

.repository-card-arrow {
    align-self: center;
    color: #91a6bb;
    font-size: 28px;
    line-height: 1;
}

@media (max-width: 760px) {
    .repository-page {
        padding: 18px 12px 82px;
    }

    .repository-hero {
        border-radius: 18px;
    }

    .repository-card {
        grid-template-columns: auto minmax(0, 1fr) auto;
        gap: 14px;
        padding: 16px;
        border-radius: 18px;
    }

    .repository-card-title {
        font-size: 1.3rem;
    }

    .repository-card-description {
        font-size: 14px;
    }
}

@media (max-width: 520px) {
    .repository-card {
        grid-template-columns: auto minmax(0, 1fr);
    }

    .repository-card-arrow {
        display: none;
    }
}
