/* =========================
   Base + Typography
   ========================= */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    height: 100%;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: #0d0d0d;
    color: #e0e0e0;
    line-height: 1.6;
    cursor: none;
}

body.no-scroll {
    overflow: hidden;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

.skip-link {
    position: absolute;
    left: -999px;
    top: auto;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.skip-link:focus {
    position: fixed;
    left: 16px;
    top: 16px;
    width: auto;
    height: auto;
    padding: 10px 16px;
    background: #111;
    border: 1px solid #ff4a4a;
    border-radius: 6px;
    z-index: 2000;
}

h1, h2, h3 {
    font-family: 'Orbitron', sans-serif;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 1rem;
}

h2 {
    font-size: 2rem;
    border-bottom: 1px solid #444;
    padding-bottom: 1rem;
    margin-bottom: 2rem;
}

a {
    color: inherit;
}

/* Layout helpers */

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section {
    padding: 60px 0;
}

.page-main {
    min-height: calc(100vh - 160px);
}

.section-heading {
    margin-bottom: 1.5rem;
}

.section-eyebrow {
    display: inline-block;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.28em;
    color: #ffb8b8;
    margin-bottom: 0.5rem;
}

.section-subtitle {
    color: #b5b5b5;
    max-width: 720px;
}

/* =========================
   Header + Navigation
   ========================= */

.site-header {
    background-color: #1a1a1a;
}

/* Logo row */

.logo-row {
    width: 100%;
    padding: 24px 0 18px;
    display: flex;
    justify-content: center;
    background-color: #1a1a1a;
    position: relative;
    overflow: hidden;
}

.logo-row::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: -20%;
    width: 140%;
    height: 2px;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 74, 74, 0.9),
        transparent
    );
    opacity: 0.7;
    animation: logo-glow 4s linear infinite;
}

.main-logo {
    height: 150px;
    max-width: 100%;
    filter: drop-shadow(0 0 18px rgba(255, 74, 74, 0.6));
    transition: transform 0.2s ease, filter 0.2s ease;
}

@media (max-width: 768px) {
    .main-logo {
        height: 120px;
    }
}

@media (max-width: 480px) {
    .main-logo {
        height: 90px;
    }
}

.main-logo:hover {
    transform: translateY(-2px);
    filter: drop-shadow(0 0 26px rgba(255, 96, 96, 0.9));
}

/* Nav row (sticky glass bar) */

.nav-row {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(10, 10, 10, 0.9);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 74, 74, 0.35);
}

.nav-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 20px;
}

/* Main nav links */

.main-nav {
    display: flex;
    gap: 1.5rem;
    font-family: 'Orbitron', sans-serif;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 0.12em;
}

.main-nav a {
    color: #e0e0e0;
    text-decoration: none;
    padding-bottom: 0.25rem;
    border-bottom: 2px solid transparent;
    transition: color 0.2s ease, border-color 0.2s ease;
}

.main-nav a:hover {
    color: #ff4a4a;
    border-color: #ff4a4a;
}

/* Social icons bar */

.social-nav {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.social-icon {
    width: 32px;
    height: 32px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #181818;
    border: 1px solid #333;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.social-icon img {
    width: 18px;
    height: 18px;
    display: block;
}

.social-icon.discord:hover {
    border-color: #5865F2;
    box-shadow: 0 0 14px rgba(88, 101, 242, 0.9);
    transform: translateY(-1px);
}

.social-icon.twitch:hover {
    border-color: #9146FF;
    box-shadow: 0 0 14px rgba(145, 70, 255, 0.9);
    transform: translateY(-1px);
}

.social-icon.youtube:hover {
    border-color: #FF0000;
    box-shadow: 0 0 14px rgba(255, 0, 0, 0.9);
    transform: translateY(-1px);
}

/* Hamburger */

.nav-toggle {
    display: none; /* visible on mobile */
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 6px;
    margin-right: 8px;
}

.nav-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    margin: 4px 0;
    background: #e0e0e0;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

/* Burger to X when open */

.nav-row.nav-open .nav-toggle span:nth-child(1) {
    transform: translateY(6px) rotate(45deg);
}
.nav-row.nav-open .nav-toggle span:nth-child(2) {
    opacity: 0;
}
.nav-row.nav-open .nav-toggle span:nth-child(3) {
    transform: translateY(-6px) rotate(-45deg);
}


/* =========================
   OPS STATUS STRIP
   ========================= */

.status-strip {
    background: linear-gradient(90deg, #170000, #220000 40%, #170000);
    border-bottom: 1px solid rgba(255, 74, 74, 0.7);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.6);
    position: relative;
    z-index: 49; /* sits above hero, below nav */
}

.status-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 6px 20px;
    font-size: 0.8rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.status-label {
    color: #ffb8b8;
    opacity: 0.85;
}

.status-value {
    font-family: 'Orbitron', sans-serif;
    font-weight: 600;
}

/* STATUS COLORS / STATES */

.status-active {
    color: #4cff4c;
    text-shadow: 0 0 8px rgba(76, 255, 76, 0.7);
    animation: statusPulse 2.4s ease-in-out infinite;
}

.status-standby {
    color: #ffd84c;
    text-shadow: 0 0 6px rgba(255, 216, 76, 0.5);
}

.status-blackout {
    color: #ff4a4a;
    text-shadow: 0 0 12px rgba(255, 74, 74, 0.8);
    animation: blackoutPulse 1.6s ease-in-out infinite;
}

/* PULSE animations */

@keyframes statusPulse {
    0%   { opacity: 0.65; }
    50%  { opacity: 1; }
    100% { opacity: 0.65; }
}

@keyframes blackoutPulse {
    0%, 100% { opacity: 0.55; }
    50%      { opacity: 0.95; }
}

/* Mobile adjustments */

@media (max-width: 768px) {
    .status-inner {
        flex-direction: column;
        text-align: center;
        gap: 4px;
    }
}




/* =========================
   Hero (index)
   ========================= */

.hero {
    background-image: url("images/SC_25_Wallpaper_3840x2160.jpg"); /* change to any hero image */
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    z-index: 1;
}

/* Scanline overlay */

.hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background: repeating-linear-gradient(
        to bottom,
        rgba(255, 255, 255, 0.06),
        rgba(255, 255, 255, 0.06) 1px,
        transparent 1px,
        transparent 3px
    );
    mix-blend-mode: soft-light;
    opacity: 0.25;
    pointer-events: none;
    z-index: 2;
    animation: scanlines 6s linear infinite;
}

.hero-content {
    z-index: 3;
    max-width: 80%;
}

.hero h1 {
    font-size: 4rem;
    margin-bottom: 1rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    text-shadow: 0 0 10px rgba(255, 0, 0, 0.8);
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    text-shadow: 0 0 10px rgba(255, 0, 0, 0.8);
}

@media (max-width: 768px) {
    .hero {
        height: auto;
        min-height: 80vh;
        padding: 60px 20px;
    }

    .hero-content {
        max-width: 100%;
    }

    .hero h1 {
        font-size: 3rem;
    }

    .hero p {
        font-size: 1rem;
    }
}

@media (max-width: 600px) {
    .hero {
        min-height: 70vh;
        padding: 40px 16px;
    }

    .hero h1 {
        font-size: 2.2rem;
        margin-bottom: 0.75rem;
    }

    .hero p {
        font-size: 0.95rem;
        margin-bottom: 1.5rem;
    }
}

@media (max-width: 480px) {
    .hero {
        min-height: 60vh;
        padding: 30px 12px;
    }

    .hero h1 {
        font-size: 1.75rem;
        margin-bottom: 0.5rem;
    }

    .hero p {
        font-size: 0.85rem;
        margin-bottom: 1.25rem;
    }

    .hero-btn {
        padding: 10px 20px;
        font-size: 0.9rem;
    }
}

.hero-btn {
    display: inline-block;
    background-color: #8b0000;
    color: white;
    padding: 15px 30px;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.hero-btn {
    position: relative;
    overflow: hidden;
}

.hero-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    transform: translate(-50%, -50%);
    transition: width 0.5s, height 0.5s;
}

.hero-btn:hover {
    background-color: #c00000;
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(255, 74, 74, 0.3), 0 5px 15px rgba(0, 0, 0, 0.5);
}

.hero-btn:hover::before {
    width: 300px;
    height: 300px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    border-radius: 6px;
    border: 1px solid transparent;
    padding: 12px 24px;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.16em;
    font-family: 'Orbitron', sans-serif;
    color: #fff;
    text-decoration: none;
    transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease, border-color 0.2s ease;
}

.btn-primary {
    background: #8b0000;
    border-color: #8b0000;
}

.btn-primary {
    position: relative;
    overflow: hidden;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
    transform: translate(-50%, -50%);
    transition: width 0.5s, height 0.5s;
}

.btn-primary:hover {
    background: #c00000;
    border-color: #c00000;
    transform: translateY(-3px);
    box-shadow: 0 15px 30px rgba(255, 74, 74, 0.25), 0 5px 15px rgba(0, 0, 0, 0.35);
}

.btn-primary:hover::before {
    width: 300px;
    height: 300px;
}

.btn-ghost {
    background: transparent;
    border-color: rgba(255, 255, 255, 0.2);
    color: #ffb8b8;
}

.btn-ghost:hover {
    border-color: #ff4a4a;
    color: #fff;
    transform: translateY(-2px);
}

/* =========================
   ELECTRIC RED OUTER GLOW (WHITE TEXT)
   ========================= */

.hero-title {
    font-size: 4rem;
    letter-spacing: 4px;
    text-transform: uppercase;
    position: relative;
    z-index: 3;

    /* White text, no inner color glow */
    color: #ffffff;

    /* Red neon outer glow */
    text-shadow:
        0 0 12px rgba(255, 40, 40, 0.9),
        0 0 24px rgba(255, 40, 40, 0.7),
        0 0 48px rgba(255, 0, 0, 0.5);

    /* Animations */
    animation: heroGlowPulse 3s infinite ease-in-out,
               electricFlicker 6s infinite linear;
}

/* Smooth breathing neon pulse */
@keyframes heroGlowPulse {
    0%, 100% {
        text-shadow:
            0 0 10px rgba(255, 40, 40, 0.7),
            0 0 20px rgba(255, 40, 40, 0.5),
            0 0 40px rgba(255, 0, 0, 0.3);
    }
    50% {
        text-shadow:
            0 0 18px rgba(255, 70, 70, 1),
            0 0 36px rgba(255, 70, 70, 0.9),
            0 0 70px rgba(255, 0, 0, 0.75);
    }
}

/* Randomized electric flicker on the glow only */
@keyframes electricFlicker {
    0%, 8%, 12%, 16%, 20%, 26%, 30%, 100% {
        filter: brightness(1);
    }

    /* micro flicker pops */
    9%  { filter: brightness(0.7); }
    13% { filter: brightness(0.45); }
    17% { filter: brightness(0.8); }
    21% { filter: brightness(0.6); }

    /* big voltage drops */
    27% { filter: brightness(0.4); }
    29% { filter: brightness(0.2); }
}

/* Responsive scaling */
@media (max-width: 768px) {
    .hero-title {
        font-size: 3rem;
        letter-spacing: 3px;
    }
}

@media (max-width: 600px) {
    .hero-title {
        font-size: 2.2rem;
        letter-spacing: 2px;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 1.75rem;
        letter-spacing: 1.5px;
    }
}

/* Subpage hero */

.page-hero {
    padding: 120px 0 80px;
    background: radial-gradient(circle at top, rgba(255, 74, 74, 0.18), transparent),
                linear-gradient(135deg, #120101, #040404);
    position: relative;
    overflow: hidden;
}

.page-hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 20% 20%, rgba(255, 74, 74, 0.1), transparent 50%);
    opacity: 0.4;
    pointer-events: none;
}

.page-hero .container {
    position: relative;
    z-index: 2;
}

.page-hero h1 {
    font-size: 2.8rem;
    border: none;
    margin-bottom: 1rem;
}

.page-hero p {
    max-width: 780px;
    color: #c8c8c8;
}

.hero-cta {
    margin-top: 1.75rem;
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.about-hero {
    background-image: url("images/SC_34_Wallpaper_3840x2160.jpg");
    background-size: cover;
    background-position: center;
}

.about-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.65);
    z-index: 1;
}


/* =========================
   Index sections
   ========================= */

.about-content {
    max-width: 800px;
    margin: 0 auto;
}

.about-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 1.5rem;
}

.about-copy p + p {
    margin-top: 1rem;
}

.about-card {
    background: #151515;
    border: 1px solid rgba(255, 74, 74, 0.25);
    border-radius: 16px;
    padding: 1.5rem;
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.4);
}

.badge-grid {
    margin-top: 1.5rem;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 1rem;
    margin-bottom: 2.5rem;
}

/* Operational Dashboard */
.ops-dashboard {
    background: linear-gradient(135deg, rgba(255, 74, 74, 0.08), rgba(0, 0, 0, 0.6));
    border: 1px solid rgba(255, 74, 74, 0.2);
    border-radius: 16px;
    padding: 2rem;
    margin-top: 2rem;
}

.ops-dashboard h3 {
    margin-bottom: 1.5rem;
    color: #fff;
}

.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
}

.stat-box {
    background: rgba(10, 10, 10, 0.8);
    border: 1px solid rgba(255, 74, 74, 0.15);
    border-radius: 12px;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    transition: all 0.3s ease;
}

.stat-box:hover {
    border-color: rgba(255, 74, 74, 0.3);
    box-shadow: 0 10px 25px rgba(255, 74, 74, 0.1);
    transform: translateY(-3px);
}

.stat-box h4 {
    font-size: 0.9rem;
    color: #c5c5c5;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 1rem;
    margin-top: 0;
}

.pie-chart {
    width: 120px;
    height: 120px;
    margin: 0.5rem 0;
    transform: rotate(-90deg);
}

.pie-background {
    fill: none;
    stroke: rgba(255, 74, 74, 0.1);
    stroke-width: 8;
}

.pie-progress {
    fill: none;
    stroke: #ff4a4a;
    stroke-width: 8;
    stroke-dasharray: 282.6;
    stroke-dashoffset: 35.35;
    transition: stroke-dashoffset 1.5s ease;
    stroke-linecap: round;
    filter: drop-shadow(0 0 8px rgba(255, 74, 74, 0.6));
}

.stat-value {
    font-size: 1.4rem;
    color: #fff;
    font-weight: 600;
    margin: 0.5rem 0 0;
}

/* Status Bars */
.status-bars {
    width: 100%;
    text-align: left;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.status-bar {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

.bar-label {
    font-size: 0.8rem;
    color: #999;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.bar-fill {
    background: rgba(0, 0, 0, 0.5);
    height: 12px;
    border-radius: 6px;
    border: 1px solid rgba(255, 74, 74, 0.2);
    overflow: hidden;
}

.bar-progress {
    height: 100%;
    background: linear-gradient(90deg, #ff4a4a, #ffb8b8);
    border-radius: 6px;
    transition: width 1s ease-out;
    box-shadow: 0 0 10px rgba(255, 74, 74, 0.5);
}

/* Sparkline Chart */
.sparkline-chart {
    width: 100%;
    height: 80px;
    margin: 1rem 0;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 8px;
    position: relative;
}

.badge-card {
    background: rgba(255, 74, 74, 0.08);
    border: 1px solid rgba(255, 74, 74, 0.4);
    border-radius: 10px;
    padding: 0.75rem 1rem;
    text-align: center;
}

.badge-value {
    font-size: 1.8rem;
    font-family: 'Orbitron', sans-serif;
    display: block;
    color: #fff;
}

.badge-label {
    font-size: 0.75rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: #c7c7c7;
}

.stat-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.stat-item {
    display: flex;
    justify-content: space-between;
    font-size: 0.9rem;
    letter-spacing: 0.04em;
}

.stat-label {
    color: #9d9d9d;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    font-size: 0.7rem;
}

.stat-value {
    color: #fff;
    font-weight: 600;
}

.service-thumb {
    position: relative;
}

.service-tag {
    position: absolute;
    top: 12px;
    left: 12px;
    background: rgba(0, 0, 0, 0.6);
    border: 1px solid rgba(255, 74, 74, 0.7);
    text-transform: uppercase;
    letter-spacing: 0.2em;
    padding: 3px 10px;
    font-size: 0.7rem;
}

.service-list {
    list-style: none;
    margin: 0.75rem 0 0;
    padding: 0;
    color: #b7b7b7;
    font-size: 0.9rem;
}

.service-list li + li {
    margin-top: 0.35rem;
}
/* Services / Media block on index */

.services {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 40px;
}

.service-card {
    background-color: #1a1a1a;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(255, 74, 74, 0.2), 0 8px 16px rgba(0, 0, 0, 0.4);
    border-color: rgba(255, 74, 74, 0.4);
    border: 1px solid rgba(255, 74, 74, 0.4);
}

.service-img {
    height: 200px;
    width: 100%;
    object-fit: cover;
}

@media (max-width: 768px) {
    .service-img {
        height: 160px;
    }
}

@media (max-width: 480px) {
    .service-img {
        height: 140px;
    }
}

.service-info {
    padding: 20px;
}

.service-info h3 {
    margin-bottom: 10px;
}

/* Fleet section */

#fleet.section {
    background-color: #101010;
}

.fleet-viewer-wrapper {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 2rem;
    margin: 2rem 0;
    align-items: start;
}

#ship-viewer-3d,
.ship-viewer-3d {
    width: 100%;
    height: 500px;
    border: 1px solid rgba(255, 74, 74, 0.3);
    border-radius: 12px;
    background: linear-gradient(135deg, #0a0a0a, #1a1a1a);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.7), 0 0 30px rgba(255, 74, 74, 0.1);
    overflow: hidden;
}

.ship-viewer-info {
    background: rgba(15, 15, 15, 0.9);
    border: 1px solid rgba(255, 74, 74, 0.2);
    border-radius: 12px;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.ship-viewer-info h3 {
    color: #fff;
    margin: 0;
    font-size: 1.4rem;
}

.ship-viewer-info p {
    margin: 0;
    color: #c5c5c5;
    font-size: 0.95rem;
}

.ship-controls {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin: 0.5rem 0;
}

.ship-btn {
    background: linear-gradient(135deg, #8b0000, #c00000);
    border: 1px solid rgba(255, 74, 74, 0.5);
    color: #fff;
    padding: 0.75rem 1rem;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.ship-btn:hover {
    background: linear-gradient(135deg, #c00000, #ff4a4a);
    border-color: rgba(255, 74, 74, 0.9);
    box-shadow: 0 8px 20px rgba(255, 74, 74, 0.2);
    transform: translateY(-2px);
}

.ship-btn.active {
    background: linear-gradient(135deg, #ff4a4a, #ffb8b8);
    color: #0d0d0d;
    box-shadow: 0 8px 20px rgba(255, 74, 74, 0.4);
}

.ship-tip {
    font-size: 0.85rem;
    color: #888;
    margin-top: 0.5rem !important;
}

.fleet-gallery {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 20px;
    margin-top: 2rem;
}

.fleet-gallery img {
    height: 160px;
    border-radius: 5px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
}

@media (max-width: 768px) {
    .fleet-gallery img {
        height: 120px;
    }
}

@media (max-width: 480px) {
    .fleet-gallery img {
        height: 100px;
    }
}

.fleet-gallery img:hover {
    transform: scale(1.08);
    box-shadow: 0 15px 40px rgba(255, 74, 74, 0.3), 0 0 30px rgba(255, 74, 74, 0.2);
}

@media (max-width: 1024px) {
    .fleet-viewer-wrapper {
        grid-template-columns: 1fr;
    }

    #ship-viewer-3d {
        height: 400px;
    }
}

@media (max-width: 768px) {
    #ship-viewer-3d {
        height: 300px;
    }
}

@media (max-width: 480px) {
    #ship-viewer-3d {
        height: 250px;
    }
}

/* Join / Contact */

.join {
    background-color: #161616;
    text-align: center;
    padding: 60px 20px;
}

.join h2 {
    color: #fff;
    border: none;
    margin-bottom: 1rem;
}

.join p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
}

.contact-inner {
    max-width: 1100px;
    margin: 0 auto;
}

.contact-subtitle {
    color: #bbb;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.leadership-panel {
    margin-top: 2rem;
}

.leadership-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.25rem;
    margin: 1.5rem 0 2.5rem;
}

.leadership-card {
    background: rgba(12, 12, 12, 0.75);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    padding: 1.5rem;
    text-align: left;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.45);
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
    cursor: pointer;
    transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.leadership-card:hover {
    transform: translateY(-5px);
    border-color: rgba(255, 74, 74, 0.4);
    box-shadow: 0 20px 50px rgba(255, 74, 74, 0.15), 0 10px 25px rgba(0, 0, 0, 0.55);
}

.leadership-card:focus-visible {
    outline: 2px solid #f0a500;
    outline-offset: 3px;
}

.leadership-card h3 {
    margin-bottom: 0.35rem;
}

.leadership-card p {
    margin: 0;
    color: #c5c5c5;
    font-size: 0.95rem;
}

.leadership-role {
    display: inline-block;
    font-size: 0.78rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: #f0a500;
    margin-bottom: 0.35rem;
}

.leadership-cta {
    margin-top: auto;
    padding: 0.65rem 1.2rem;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: transparent;
    color: #fff;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    cursor: inherit;
}

.leadership-cta:hover {
    border-color: #f0a500;
}

.package-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.5rem;
    margin: 2.5rem 0 1.5rem;
    text-align: left;
}

.package-card {
    background: rgba(17, 17, 17, 0.65);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 1.5rem;
    color: #fff;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    cursor: pointer;
    transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
    text-align: left;
    width: 100%;
    font: inherit;
    line-height: 1.4;
}

.package-card-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
}

.package-card:focus-visible {
    outline: 2px solid #c00000;
    outline-offset: 3px;
}

.package-card:hover {
    transform: translateY(-6px);
    border-color: rgba(255, 74, 74, 0.4);
    box-shadow: 0 15px 40px rgba(255, 74, 74, 0.15), 0 8px 20px rgba(0, 0, 0, 0.45);
}

.package-card h3 {
    margin: 0;
}

.package-card p {
    margin: 0;
    color: #ccc;
}

.package-card ul {
    padding-left: 1.1rem;
    margin: 0;
    color: #bbb;
    font-size: 0.95rem;
}

.package-card li + li {
    margin-top: 0.35rem;
}

.package-tag {
    font-size: 0.8rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #f05f57;
}

.package-status {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--package-status-color, #7dd3fc);
}

.package-cta {
    display: block;
    font-size: 0.9rem;
    color: #f0a500;
    letter-spacing: 0.04em;
}

.package-cta-group {
    margin-top: auto;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.package-cta--discord {
    color: #58c4ff;
    cursor: pointer;
    font-weight: 600;
    text-decoration: underline;
}

.package-hint {
    font-size: 0.95rem;
    color: #bbb;
    margin-bottom: 2rem;
}

.contact-enhancements {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    align-items: stretch;
    margin-bottom: 2rem;
}

.request-card,
.testimonial-rotator {
    flex: 1 1 280px;
    background: rgba(14, 14, 14, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 1.5rem;
    text-align: left;
}

.request-card h3 {
    margin-bottom: 0.75rem;
}

.request-button {
    margin-top: 1rem;
    padding: 0.85rem 1.5rem;
    background: linear-gradient(135deg, #ff4a4a, #f0a500);
    border: none;
    border-radius: 999px;
    color: #fff;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.request-button {
    position: relative;
    overflow: hidden;
}

.request-button::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
    transform: translate(-50%, -50%);
    transition: width 0.5s, height 0.5s;
}

.request-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 35px rgba(240, 165, 0, 0.35), 0 5px 15px rgba(0, 0, 0, 0.4);
}

.request-button:hover::before {
    width: 300px;
    height: 300px;
}

.testimonial-eyebrow {
    text-transform: uppercase;
    letter-spacing: 0.22em;
    font-size: 0.7rem;
    margin-bottom: 0.6rem;
    color: #f0a500;
}

.testimonial-quote {
    font-size: 1rem;
    font-style: italic;
    color: #f1f1f1;
    margin-bottom: 0.75rem;
}

.testimonial-meta {
    font-size: 0.9rem;
    color: #bbbbbb;
}

.join-button {
    display: inline-block;
    background-color: #8b0000;
    color: white;
    padding: 15px 30px;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    margin-top: 20px;
}

.join-button {
    position: relative;
    overflow: hidden;
}

.join-button::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    transform: translate(-50%, -50%);
    transition: width 0.5s, height 0.5s;
}

.join-button:hover {
    background-color: #c00000;
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(255, 74, 74, 0.3), 0 5px 15px rgba(0, 0, 0, 0.5);
}

.join-button:hover::before {
    width: 300px;
    height: 300px;
}

/* =========================
   Footer
   ========================= */

footer {
    background-color: #0a0a0a;
    color: #aaa;
    text-align: center;
    padding: 20px 0;
    margin-top: 40px;
    font-size: 0.9rem;
}

.footer-social {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.75rem;
    margin-top: 1rem;
}

.footer-social a {
    width: 36px;
    height: 36px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.footer-social a:hover {
    transform: translateY(-1px);
    border-color: #ff4a4a;
    box-shadow: 0 0 12px rgba(255, 74, 74, 0.4);
}

.footer-social img {
    width: 18px;
    height: 18px;
}

.scroll-top {
    position: fixed;
    right: 16px;
    bottom: 16px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1px solid rgba(255, 74, 74, 0.6);
    background: rgba(0, 0, 0, 0.7);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    cursor: pointer;
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.5);
    opacity: 0;
    visibility: hidden;
    transform: translateY(12px);
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s, box-shadow 0.2s ease;
    z-index: 1000;
}

.scroll-top:hover {
    box-shadow: 0 15px 35px rgba(255, 74, 74, 0.3), 0 8px 16px rgba(0, 0, 0, 0.6);
    border-color: rgba(255, 74, 74, 0.9);
    transform: translateY(-2px);
}

.scroll-top.is-visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* =========================
   Fleet Modal (index)
   ========================= */

.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    inset: 0;
    padding: 20px;
    background-color: rgba(0, 0, 0, 0.82);
    align-items: center;
    justify-content: center;
    overflow-y: auto;
}

.modal.is-open {
    display: flex;
}

.modal-content {
    background-color: #161616;
    width: min(600px, 100%);
    border: 1px solid rgba(255, 74, 74, 0.2);
    border-radius: 16px;
    color: #f0f0f0;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.65);
    padding: 1.5rem;
    position: relative;
}

.modal-image-wrapper {
    text-align: center;
    margin-bottom: 15px;
}

.modal-image-wrapper img {
    max-width: 100%;
    border-radius: 6px;
}

.modal-content h2 {
    margin-bottom: 10px;
    font-size: 1.4rem;
}

.modal-content p {
    font-size: 0.95rem;
    line-height: 1.5;
    color: #ddd;
}

.close {
    position: absolute;
    top: 12px;
    right: 16px;
    color: #aaa;
    font-size: 28px;
    font-weight: bold;
    background: transparent;
    border: none;
    cursor: pointer;
    line-height: 1;
}

.close:hover,
.close:focus {
    color: #fff;
}

.request-modal {
    width: min(520px, 100%);
}

.request-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 1rem;
}

.request-form label {
    display: flex;
    flex-direction: column;
    font-size: 0.95rem;
    color: #cccccc;
    gap: 0.4rem;
}

.request-form input,
.request-form textarea,
.request-output {
    width: 100%;
    padding: 0.75rem 0.9rem;
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 8px;
    color: #fff;
    font: inherit;
    resize: vertical;
}

.request-form-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    align-items: center;
}

.request-submit {
    background-color: #ff4a4a;
    border: none;
    color: #fff;
    padding: 0.75rem 1.5rem;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    transition: background-color 0.2s ease;
}

.request-submit:hover {
    background-color: #ff6f6f;
}

.request-discord {
    padding: 0.7rem 1.2rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
}

.request-output {
    min-height: 110px;
    font-family: 'Inter', sans-serif;
}

.request-status {
    min-height: 1.2rem;
    font-size: 0.95rem;
    color: #f0a500;
}

.request-status.is-success {
    color: #2ee59d;
}

/* =========================
   Media Page
   ========================= */

/* Hero on media page */
.media-hero {
    background: radial-gradient(circle at top, rgba(255, 74, 74, 0.25), transparent),
                #0d0d0d;
}

.media-hero h1 {
    font-size: 2.4rem;
    margin-bottom: 0.75rem;
    border: none;
}

.media-intro {
    max-width: 720px;
    color: #c5c5c5;
}

/* Immich embedded album */
.immich-section {
    background: #0b0b0b;
    border-top: 1px solid rgba(255, 74, 74, 0.12);
    border-bottom: 1px solid rgba(255, 74, 74, 0.12);
}

.immich-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.immich-link {
    align-self: center;
    font-family: 'Orbitron', sans-serif;
    text-transform: uppercase;
    letter-spacing: 0.16em;
    font-size: 0.8rem;
    padding: 0.75rem 1.5rem;
    border: 1px solid rgba(255, 74, 74, 0.8);
    border-radius: 999px;
    text-decoration: none;
    color: #fff;
    transition: background 0.2s ease, color 0.2s ease;
}

.immich-link:hover {
    background: rgba(255, 74, 74, 0.15);
    color: #ffb4b4;
}

.immich-embed {
    margin-top: 1.5rem;
    position: relative;
    width: 100%;
    padding-top: 62%;
    border-radius: 18px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 22px 40px rgba(0, 0, 0, 0.6);
    overflow: hidden;
    background: #050505;
}

.immich-embed iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

.immich-note {
    margin-top: 0.85rem;
    font-size: 0.9rem;
    color: #b5b5b5;
}

.immich-note a {
    color: #ff8080;
    text-decoration: underline;
}

/* Featured Ops */

.featured-section {
    background: #101010;
}

.featured-header {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    margin-bottom: 1.5rem;
}

.featured-header h2 {
    border: none;
    margin-bottom: 0;
    font-size: 1.6rem;
}

.featured-header p {
    color: #b8b8b8;
    font-size: 0.95rem;
}

.featured-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.4rem;
}

.featured-card {
    text-decoration: none;
    color: inherit;
    background: none;
    border: none;
    padding: 0;
    text-align: left;
    cursor: pointer;
    width: 100%;
}

.featured-thumb-wrap {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    background: #111;
    box-shadow: 0 12px 26px rgba(0, 0, 0, 0.7);
}

.featured-thumb-wrap img {
    display: block;
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: transform 0.4s ease;
}

@media (max-width: 768px) {
    .featured-thumb-wrap img {
        height: 160px;
    }
}

@media (max-width: 480px) {
    .featured-thumb-wrap img {
        height: 140px;
    }
}

.featured-thumb-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to top,
        rgba(0, 0, 0, 0.9),
        rgba(0, 0, 0, 0.35),
        transparent
    );
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 12px 14px;
    opacity: 0;
    transition: opacity 0.25s ease;
}

.featured-tag {
    align-self: flex-start;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.16em;
    padding: 3px 10px;
    border-radius: 999px;
    background: rgba(255, 74, 74, 0.95);
    color: #fff;
}

.featured-zoom {
    align-self: flex-end;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: #f5f5f5;
}

.featured-thumb-wrap {
    box-shadow: 0 12px 26px rgba(0, 0, 0, 0.7), 0 0 20px rgba(255, 74, 74, 0);
    transition: box-shadow 0.3s ease;
}

.featured-thumb-wrap:hover {
    box-shadow: 0 20px 40px rgba(255, 74, 74, 0.2), 0 8px 16px rgba(0, 0, 0, 0.8);
}

.featured-thumb-wrap:hover img {
    transform: scale(1.08);
}

.featured-thumb-wrap:hover .featured-thumb-overlay {
    opacity: 1;
}

.featured-card h3 {
    margin: 0.85rem 0 0.35rem;
}

.featured-card p {
    color: #c0c0c0;
    font-size: 0.9rem;
}

/* Filter bar */

.media-filter-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.media-filter-label {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: #888;
}

.media-filter {
    background: #161616;
    color: #e0e0e0;
    border: 1px solid #333;
    border-radius: 999px;
    padding: 6px 14px;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease,
                border-color 0.2s ease, transform 0.1s ease;
}

.media-filter:hover {
    border-color: #ff4a4a;
    transform: translateY(-1px);
}

.media-filter.active {
    background: #ff4a4a;
    border-color: #ff4a4a;
    color: #fff;
}

/* Gallery grid */

.media-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.6rem;
}

.media-item {
    text-decoration: none;
    color: inherit;
    background: none;
    border: none;
    padding: 0;
    text-align: left;
    cursor: pointer;
    width: 100%;
}

.media-thumb-wrap {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    background: #111;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.6);
}

.media-thumb-wrap img {
    display: block;
    width: 100%;
    height: 180px;
    object-fit: cover;
    transition: transform 0.4s ease;
}

@media (max-width: 768px) {
    .media-thumb-wrap img {
        height: 140px;
    }
}

@media (max-width: 480px) {
    .media-thumb-wrap img {
        height: 120px;
    }
}

.media-thumb-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to top,
        rgba(0, 0, 0, 0.85),
        rgba(0, 0, 0, 0.3),
        transparent
    );
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 10px 12px;
    opacity: 0;
    transition: opacity 0.25s ease;
}

.media-tag {
    align-self: flex-start;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.16em;
    padding: 3px 9px;
    border-radius: 999px;
    background: rgba(255, 74, 74, 0.9);
    color: #fff;
}

.media-zoom {
    align-self: flex-end;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: #f5f5f5;
}

.media-thumb-wrap {
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.6), 0 0 15px rgba(255, 74, 74, 0);
    transition: box-shadow 0.3s ease;
}

.media-thumb-wrap:hover {
    box-shadow: 0 15px 35px rgba(255, 74, 74, 0.15), 0 8px 16px rgba(0, 0, 0, 0.7);
}

.media-thumb-wrap:hover img {
    transform: scale(1.08);
}

.media-thumb-wrap:hover .media-thumb-overlay {
    opacity: 1;
}

.media-item h3 {
    margin-top: 0.85rem;
}

.media-item p {
    color: #b0b0b0;
    font-size: 0.9rem;
    margin-top: 0.25rem;
}

.media-empty {
    grid-column: 1 / -1;
    text-align: center;
    padding: 2rem 1rem;
    border: 1px dashed rgba(255, 74, 74, 0.4);
    border-radius: 12px;
    color: #c0c0c0;
    background: rgba(0, 0, 0, 0.4);
}

/* =========================
   Missions Page
   ========================= */

.mission-hero {
    background-image:
        linear-gradient(120deg, rgba(8, 2, 2, 0.8), rgba(0, 0, 0, 0.9)),
        url("images/SC_13_Wallpaper_3840x2160.jpg");
    background-size: cover;
    background-position: center;
}

.mission-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    z-index: 1;
}

.mission-hero .container {
    position: relative;
    z-index: 2;
}

.mission-intel {
    background: #080808;
    border-top: 1px solid rgba(255, 74, 74, 0.12);
    border-bottom: 1px solid rgba(255, 74, 74, 0.12);
}

.mission-intro {
    max-width: 760px;
    margin-bottom: 2rem;
}

.mission-intel-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.5rem;
}

.intel-card {
    background: linear-gradient(150deg, rgba(255, 74, 74, 0.1), rgba(0, 0, 0, 0.9));
    border: 1px solid rgba(255, 74, 74, 0.2);
    border-radius: 16px;
    padding: 1.5rem;
    box-shadow: 0 18px 36px rgba(0, 0, 0, 0.5);
    transition: all 0.3s ease;
}

.intel-card:hover {
    border-color: rgba(255, 74, 74, 0.4);
    box-shadow: 0 20px 45px rgba(255, 74, 74, 0.1), 0 10px 25px rgba(0, 0, 0, 0.6);
    transform: translateY(-3px);
}

.intel-card h3 {
    margin-bottom: 0.4rem;
}

.intel-card p {
    color: #d0d0d0;
    font-size: 0.95rem;
}

.intel-list {
    list-style: none;
    margin: 1rem 0 0;
    padding: 0;
    color: #bcbcbc;
    font-size: 0.9rem;
}

.intel-list li + li {
    margin-top: 0.4rem;
}

.mission-board {
    background: radial-gradient(circle at top right, rgba(255, 74, 74, 0.08), transparent),
                #050505;
}

.mission-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.6rem;
    margin-top: 2rem;
}

.mission-card {
    background: rgba(9, 9, 9, 0.9);
    border: 1px solid rgba(255, 74, 74, 0.18);
    border-radius: 18px;
    padding: 1.5rem;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6);
    display: flex;
    flex-direction: column;
    gap: 1rem;
    position: relative;
}

.mission-card::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    padding: 1px;
    background: linear-gradient(135deg, rgba(255, 74, 74, 0.35), rgba(80, 3, 3, 0.4));
    -webkit-mask:
        linear-gradient(#000 0 0) content-box,
        linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.2s ease;
    pointer-events: none;
}

.mission-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(255, 74, 74, 0.1), 0 8px 20px rgba(0, 0, 0, 0.6);
}

.mission-card:hover::after {
    opacity: 1;
}

.mission-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.8rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: #999;
}

.mission-status {
    font-size: 0.72rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    padding: 0.2rem 0.8rem;
    border-radius: 999px;
    border: 1px solid currentColor;
}

.mission-status--active {
    color: #2ee59d;
}

.mission-status--event {
    color: #64c8ff;
}

.mission-status--hot {
    color: #ff8a65;
}

.mission-status--covert {
    color: #ffeb3b;
}

.mission-desc {
    color: #c9c9c9;
    font-size: 0.95rem;
    margin-top: -0.5rem;
}

.mission-meta {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem 1rem;
}

.mission-label {
    display: block;
    font-size: 0.68rem;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: #858585;
}

.mission-value {
    display: block;
    font-weight: 600;
    color: #f5f5f5;
    font-size: 0.95rem;
}

.mission-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
}

.mission-tag {
    font-size: 0.7rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    border-radius: 999px;
    border: 1px solid rgba(255, 74, 74, 0.45);
    padding: 0.2rem 0.8rem;
    color: #ffb4b4;
}

.mission-footnote {
    background: #080808;
    border-top: 1px solid rgba(255, 74, 74, 0.12);
}

.footnote-card {
    background: rgba(0, 0, 0, 0.6);
    border: 1px solid rgba(255, 74, 74, 0.25);
    border-radius: 18px;
    padding: 2rem;
    text-align: center;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.55);
    max-width: 720px;
    margin: 0 auto;
}

.footnote-card h3 {
    border: none;
    margin-bottom: 0.75rem;
}

.footnote-card p {
    color: #d0d0d0;
    margin-bottom: 1.2rem;
}

@media (max-width: 768px) {
    .mission-meta {
        grid-template-columns: 1fr;
    }
}

/* =========================
   Lightbox (images + video)
   ========================= */

.lightbox {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: none;
}

.lightbox.is-open {
    display: block;
}

.lightbox-backdrop {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at top, rgba(255, 74, 74, 0.3), transparent),
                rgba(0, 0, 0, 0.9);
}

.lightbox-inner {
    position: relative;
    max-width: 1100px;
    margin: 4vh auto;
    padding: 16px 18px 20px;
    background: rgba(10, 10, 10, 0.95);
    border-radius: 12px;
    border: 1px solid #333;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.9);
    display: grid;
    grid-template-columns: minmax(0, 3fr) minmax(0, 2fr);
    gap: 1.2rem;
    z-index: 1001;
}

.lightbox-media-wrap {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    background: #000;
}

.lightbox-media-wrap img,
.lightbox-media-wrap iframe {
    width: 100%;
    height: 100%;
    max-height: 70vh;
    object-fit: contain;
    display: none; /* JS toggles visibility */
}

.lightbox-meta h3 {
    margin-bottom: 0.5rem;
    font-size: 1.3rem;
}

.lightbox-meta p {
    font-size: 0.95rem;
    color: #d0d0d0;
}

/* Close button */

.lightbox-close {
    position: absolute;
    top: 8px;
    right: 10px;
    background: transparent;
    border: none;
    color: #ccc;
    font-size: 1.8rem;
    cursor: pointer;
    padding: 0 6px;
    line-height: 1;
    transition: color 0.2s ease, transform 0.1s ease;
}

.lightbox-close:hover {
    color: #fff;
    transform: scale(1.05);
}

/* Prev/Next */

.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(15, 15, 15, 0.9);
    border: 1px solid #444;
    color: #eee;
    width: 34px;
    height: 34px;
    border-radius: 999px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    transition: background 0.2s ease, box-shadow 0.2s ease, transform 0.1s ease;
}

.lightbox-nav.prev {
    left: -17px;
}

.lightbox-nav.next {
    right: -17px;
}

.lightbox-nav:hover {
    background: #ff4a4a;
    box-shadow: 0 0 16px rgba(255, 74, 74, 0.9);
    transform: translateY(-50%) scale(1.05);
}

/* =========================
   Scroll Reveal Animations
   ========================= */

.section,
.service-card,
.leadership-card,
.package-card,
.mission-card,
.featured-card,
.media-item,
.intel-card,
.badge-card,
.about-card,
.request-card,
.testimonial-rotator {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.reveal-animate {
    opacity: 1 !important;
    transform: translateY(0) !important;
}

/* Stagger effect for cards within sections */
.services .service-card:nth-child(2) {
    transition-delay: 0.1s;
}

.services .service-card:nth-child(3) {
    transition-delay: 0.2s;
}

.leadership-grid .leadership-card:nth-child(2) {
    transition-delay: 0.1s;
}

.leadership-grid .leadership-card:nth-child(3) {
    transition-delay: 0.2s;
}

.package-grid .package-card:nth-child(2) {
    transition-delay: 0.1s;
}

.package-grid .package-card:nth-child(3) {
    transition-delay: 0.2s;
}

.mission-grid .mission-card:nth-child(2) {
    transition-delay: 0.1s;
}

.mission-grid .mission-card:nth-child(3) {
    transition-delay: 0.2s;
}

.mission-grid .mission-card:nth-child(4) {
    transition-delay: 0.3s;
}

.mission-grid .mission-card:nth-child(5) {
    transition-delay: 0.4s;
}

.mission-grid .mission-card:nth-child(6) {
    transition-delay: 0.5s;
}

.featured-grid .featured-card:nth-child(2) {
    transition-delay: 0.1s;
}

.featured-grid .featured-card:nth-child(3) {
    transition-delay: 0.2s;
}

/* Respect user motion preferences */
@media (prefers-reduced-motion: reduce) {
    .section,
    .service-card,
    .leadership-card,
    .package-card,
    .mission-card,
    .featured-card,
    .media-item,
    .intel-card,
    .badge-card,
    .about-card,
    .request-card,
    .testimonial-rotator {
        opacity: 1;
        transform: none;
        transition: none;
    }
}

/* =========================
   Animations
   ========================= */

@keyframes logo-glow {
    0% {
        transform: translateX(-10%);
        opacity: 0.2;
    }
    40% {
        opacity: 0.8;
    }
    80% {
        opacity: 0.2;
    }
    100% {
        transform: translateX(10%);
        opacity: 0.2;
    }
}

@keyframes scanlines {
    0% {
        transform: translateY(0);
    }
    100% {
        transform: translateY(4px);
    }
}

/* =========================
   Responsive
   ========================= */

@media (max-width: 900px) {
    .lightbox-inner {
        grid-template-columns: 1fr;
    }

    .lightbox-nav.prev {
        left: 6px;
    }

    .lightbox-nav.next {
        right: 6px;
    }

    .featured-header {
        text-align: left;
    }

    .story-grid {
        grid-template-columns: 1fr;
    }

    .page-hero {
        padding: 90px 0 60px;
    }
}

@media (max-width: 768px) {

    .nav-inner {
        padding: 10px 16px;
        align-items: center;
    }

    .nav-toggle {
        display: block;
    }

    /* collapsed by default */
    .main-nav,
    .social-nav {
        display: none;
    }

    /* when open */
    .nav-row.nav-open .main-nav,
    .nav-row.nav-open .social-nav {
        display: flex;
        width: 100%;
    }

    .nav-row.nav-open .nav-inner {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
    }

    .nav-row.nav-open .main-nav {
        flex-direction: column;
        gap: 0.75rem;
        margin-top: 0.5rem;
    }

    .nav-row.nav-open .social-nav {
        justify-content: flex-start;
    }

    .hero h1 {
        font-size: 3rem;
    }

    .hero p {
        font-size: 1rem;
    }

    .hero-btn {
        padding: 12px 25px;
        font-size: 1rem;
    }

    .lightbox-inner {
        margin: 6vh 10px;
    }

    .about-grid,
    .command-grid,
    .values-grid {
        grid-template-columns: 1fr;
    }

    .hero-cta {
        flex-direction: column;
        align-items: flex-start;
    }

    .badge-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 600px) {
    .services {
        grid-template-columns: 1fr;
    }

    .section {
        padding: 40px 0;
    }

    .container {
        padding: 0 16px;
    }
}

@media (max-width: 480px) {
    .section {
        padding: 30px 0;
    }

    .container {
        padding: 0 12px;
    }

    .media-thumbs {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .fleet-gallery {
        gap: 12px;
    }

    .page-hero h1 {
        font-size: 1.8rem;
    }

    .page-hero p {
        font-size: 0.9rem;
    }

    h2 {
        font-size: 1.5rem;
    }

    .section-subtitle {
        font-size: 0.9rem;
    }

    .btn {
        padding: 10px 18px;
        font-size: 0.85rem;
    }

    .btn-primary,
    .btn-ghost {
        width: 100%;
        display: flex;
        justify-content: center;
    }
}

/* Media Page Specific Styles */

/* 3x2 Ops Grid */
.ops-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 2rem;
}

.ops-tile {
    background: #151515;
    border: 1px solid #333;
    border-radius: 10px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.ops-tile:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
}

.ops-img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
}

@media (max-width: 768px) {
    .ops-img {
        height: 160px;
    }
}

@media (max-width: 480px) {
    .ops-img {
        height: 140px;
    }
}

.ops-text {
    padding: 1rem;
    color: #fff;
}

.ops-text h3 {
    margin: 0 0 0.5rem;
    font-size: 1.2rem;
    color: #f0f0f0;
}

.ops-text p {
    font-size: 0.9rem;
    color: #aaa;
    margin: 0;
}

/* 4-wide Media Thumbnails */
.media-thumbs {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    margin-top: 2rem;
}

.thumb {
    background: #151515;
    border: 1px solid #333;
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.thumb:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.thumb img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    display: block;
}

@media (max-width: 768px) {
    .thumb img {
        height: 140px;
    }
}

@media (max-width: 480px) {
    .thumb img {
        height: 120px;
    }
}

.thumb p {
    padding: 0.75rem;
    font-size: 0.9rem;
    color: #ddd;
    text-align: center;
    margin: 0;
}

/* Responsive adjustments */
@media (max-width: 1024px) {
    .ops-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .media-thumbs {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .ops-grid {
        grid-template-columns: 1fr;
    }
    .media-thumbs {
        grid-template-columns: repeat(2, 1fr);
    }
    .services {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
}

@media (max-width: 480px) {
    .ops-grid {
        gap: 1.5rem;
    }
}

.story-grid {
    display: grid;
    grid-template-columns: 3fr 2fr;
    gap: 2rem;
    align-items: start;
}

.story-lore {
    background: rgba(10, 10, 10, 0.8);
    border-radius: 16px;
    padding: 1.5rem;
    border: 1px solid rgba(255, 74, 74, 0.15);
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.45);
}

.story-lore p + p {
    margin-top: 1rem;
}

.story-aside {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.value-card {
    background: #151515;
    border: 1px solid #242424;
    border-radius: 14px;
    padding: 1.4rem;
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.4);
}

.value-card h3 {
    margin-bottom: 0.75rem;
    font-size: 1.1rem;
}

.value-list {
    margin-top: 0.75rem;
    padding-left: 1.2rem;
    color: #c5c5c5;
}

.command-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.command-card {
    border: 1px solid rgba(255, 74, 74, 0.25);
    border-radius: 16px;
    padding: 1.4rem;
    background: linear-gradient(135deg, rgba(10, 10, 10, 0.9), rgba(35, 6, 6, 0.8));
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.45);
}

.command-label {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.3em;
    color: #ffb8b8;
    display: block;
    margin-bottom: 0.35rem;
}

.timeline {
    border-left: 1px solid rgba(255, 74, 74, 0.35);
    margin-top: 1.5rem;
    padding-left: 1.5rem;
}

.timeline-entry {
    position: relative;
    margin-bottom: 1.5rem;
    padding-left: 1rem;
}

.timeline-entry::before {
    content: "";
    position: absolute;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #ff4a4a;
    left: -16px;
    top: 0.3rem;
    box-shadow: 0 0 12px rgba(255, 74, 74, 0.8);
}

.timeline-year {
    font-family: 'Orbitron', sans-serif;
    font-size: 0.8rem;
    letter-spacing: 0.3em;
    color: #ffb8b8;
}

.timeline-detail {
    color: #c0c0c0;
    margin-top: 0.25rem;
}

.contact-card {
    background: radial-gradient(circle at top, rgba(255, 74, 74, 0.18), transparent 60%),
                #111;
    border: 1px solid rgba(255, 74, 74, 0.25);
    border-radius: 20px;
    padding: 2.5rem;
    text-align: center;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.55);
}

.contact-card h2 {
    border: none;
    margin-bottom: 1rem;
}

.contact-card p {
    color: #c5c5c5;
}

/* =========================
   Poker Card Roles Section
   ========================= */

.card-roles-section {
    background: linear-gradient(180deg, #0d0d0d 0%, #1a1a1a 100%);
}

.card-deck-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin: 2.5rem 0;
}

.role-card {
    perspective: 1000px;
    height: 280px;
    cursor: pointer;
    position: relative;
}

.card-face {
    width: 100%;
    height: 100%;
    position: relative;
    transform-style: preserve-3d;
    transition: transform 0.6s, box-shadow 0.3s;
    border-radius: 12px;
    border: 2px solid;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    background: linear-gradient(135deg, rgba(20, 20, 20, 0.95), rgba(30, 30, 30, 0.95));
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.role-card:hover .card-face {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.card-symbol {
    font-size: 3rem;
    text-align: center;
    margin-bottom: 0.5rem;
    filter: drop-shadow(0 0 8px currentColor);
}

.card-face h3 {
    margin: 0.5rem 0 0.25rem;
    font-size: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.card-suit {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    margin: 0;
    font-weight: 600;
}

.card-description {
    font-size: 0.85rem;
    line-height: 1.4;
    margin: 0.75rem 0 0;
}

/* Card Type Styling */
.role-card.wildcard .card-face {
    border-color: rgba(150, 80, 200, 0.6);
    color: #c8a8ff;
}

.role-card.wildcard .card-face:hover {
    border-color: rgba(200, 120, 255, 0.8);
    background: linear-gradient(135deg, rgba(150, 80, 200, 0.15), rgba(100, 50, 180, 0.15));
    box-shadow: 0 20px 40px rgba(150, 80, 200, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.role-card.ace .card-face {
    border-color: rgba(255, 200, 50, 0.6);
    color: #ffd700;
}

.role-card.ace .card-face:hover {
    border-color: rgba(255, 220, 100, 0.8);
    background: linear-gradient(135deg, rgba(255, 200, 50, 0.15), rgba(200, 150, 0, 0.15));
    box-shadow: 0 20px 40px rgba(255, 200, 50, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.role-card.king .card-face {
    border-color: rgba(200, 50, 50, 0.6);
    color: #ff6b6b;
}

.role-card.king .card-face:hover {
    border-color: rgba(255, 100, 100, 0.8);
    background: linear-gradient(135deg, rgba(200, 50, 50, 0.15), rgba(150, 0, 0, 0.15));
    box-shadow: 0 20px 40px rgba(200, 50, 50, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.role-card.queen .card-face {
    border-color: rgba(100, 180, 255, 0.6);
    color: #a8d8ff;
}

.role-card.queen .card-face:hover {
    border-color: rgba(150, 200, 255, 0.8);
    background: linear-gradient(135deg, rgba(100, 180, 255, 0.15), rgba(50, 130, 200, 0.15));
    box-shadow: 0 20px 40px rgba(100, 180, 255, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.role-card.spades .card-face {
    border-color: rgba(100, 100, 100, 0.6);
    color: #c0c0c0;
}

.role-card.spades .card-face:hover {
    border-color: rgba(150, 150, 150, 0.8);
    background: linear-gradient(135deg, rgba(100, 100, 100, 0.15), rgba(50, 50, 50, 0.15));
    box-shadow: 0 20px 40px rgba(100, 100, 100, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.role-card.hearts .card-face {
    border-color: rgba(255, 100, 100, 0.6);
    color: #ff9999;
}

.role-card.hearts .card-face:hover {
    border-color: rgba(255, 150, 150, 0.8);
    background: linear-gradient(135deg, rgba(255, 100, 100, 0.15), rgba(200, 50, 50, 0.15));
    box-shadow: 0 20px 40px rgba(255, 100, 100, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.role-card.diamonds .card-face {
    border-color: rgba(100, 200, 255, 0.6);
    color: #99ccff;
}

.role-card.diamonds .card-face:hover {
    border-color: rgba(150, 220, 255, 0.8);
    background: linear-gradient(135deg, rgba(100, 200, 255, 0.15), rgba(50, 150, 200, 0.15));
    box-shadow: 0 20px 40px rgba(100, 200, 255, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.role-card.clubs .card-face {
    border-color: rgba(150, 200, 100, 0.6);
    color: #b8e6a8;
}

.role-card.clubs .card-face:hover {
    border-color: rgba(200, 220, 150, 0.8);
    background: linear-gradient(135deg, rgba(150, 200, 100, 0.15), rgba(100, 150, 50, 0.15));
    box-shadow: 0 20px 40px rgba(150, 200, 100, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.card-footer-text {
    text-align: center;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 74, 74, 0.2);
    color: #999;
    font-style: italic;
}

.card-footer-text p {
    margin: 0;
    font-size: 0.95rem;
    line-height: 1.6;
}

@media (max-width: 768px) {
    .card-deck-grid {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
        gap: 1rem;
    }

    .card-face {
        padding: 1rem;
        height: 220px;
    }

    .card-symbol {
        font-size: 2rem;
    }

    .card-face h3 {
        font-size: 1.1rem;
    }

    .card-description {
        font-size: 0.75rem;
    }
}

/* Card Animations */
@keyframes cardReveal {
    from {
        opacity: 0;
        transform: translateY(30px) rotateX(-10deg);
    }
    to {
        opacity: 1;
        transform: translateY(0) rotateX(0);
    }
}

.role-card.card-reveal .card-face {
    animation: cardReveal 0.6s ease-out;
}

@keyframes cardFlip {
    0% {
        transform: rotateY(0);
    }
    50% {
        transform: rotateY(90deg);
    }
    100% {
        transform: rotateY(0);
    }
}

.role-card.flip-active .card-face {
    animation: cardFlip 0.6s ease-in-out;
}

/* =========================
   Members Modal
   ========================= */

.members-modal {
    position: fixed;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    padding: 20px;
}

.members-modal.open {
    opacity: 1;
    visibility: visible;
}

.members-modal.closing {
    opacity: 0;
    visibility: hidden;
}

.modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(4px);
}

.members-modal-content {
    position: relative;
    background: linear-gradient(135deg, rgba(20, 20, 20, 0.98), rgba(30, 30, 30, 0.98));
    border: 1px solid rgba(255, 74, 74, 0.3);
    border-radius: 16px;
    padding: 2rem;
    max-width: 600px;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.8), 0 0 40px rgba(255, 74, 74, 0.1);
    animation: modalSlideIn 0.4s ease-out;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: scale(0.95) translateY(-20px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: rgba(255, 74, 74, 0.1);
    border: 1px solid rgba(255, 74, 74, 0.3);
    color: #ff4a4a;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.modal-close:hover {
    background: rgba(255, 74, 74, 0.2);
    border-color: rgba(255, 74, 74, 0.6);
    box-shadow: 0 0 12px rgba(255, 74, 74, 0.3);
}

.modal-header {
    text-align: center;
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid rgba(255, 74, 74, 0.2);
}

.modal-icon {
    font-size: 3rem;
    margin-bottom: 0.5rem;
    display: block;
}

.modal-header h2 {
    margin: 0;
    font-size: 1.8rem;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.members-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
    margin: 1.5rem 0;
}

.member-card {
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 74, 74, 0.2);
    border-radius: 12px;
    padding: 1.25rem;
    text-align: center;
    transition: all 0.3s ease;
}

.member-card:hover {
    border-color: rgba(255, 74, 74, 0.5);
    background: rgba(255, 74, 74, 0.08);
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(255, 74, 74, 0.1);
}

.member-icon {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.member-name {
    font-size: 0.95rem;
    font-weight: 600;
    color: #fff;
    margin: 0.5rem 0;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.member-handle {
    font-size: 0.8rem;
    color: #ffb8b8;
    margin: 0.25rem 0;
    font-style: italic;
}

.member-role {
    font-size: 0.75rem;
    color: #999;
    margin: 0.5rem 0 0;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.no-members {
    text-align: center;
    padding: 2rem;
    color: #999;
    font-style: italic;
}

.modal-footer {
    text-align: center;
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 74, 74, 0.2);
    color: #c5c5c5;
    font-size: 0.9rem;
}

.modal-footer p {
    margin: 0;
}

/* Scrollbar styling for modal */
.members-modal-content::-webkit-scrollbar {
    width: 8px;
}

.members-modal-content::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.3);
    border-radius: 4px;
}

.members-modal-content::-webkit-scrollbar-thumb {
    background: rgba(255, 74, 74, 0.5);
    border-radius: 4px;
}

.members-modal-content::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 74, 74, 0.7);
}

@media (max-width: 600px) {
    .members-modal-content {
        padding: 1.5rem;
        margin: 0 10px;
    }

    .members-grid {
        grid-template-columns: 1fr;
    }

    .modal-header h2 {
        font-size: 1.4rem;
    }
}

/* Update Card Deck Grid to 2x4 */
.card-deck-grid {
    display: grid !important;
    grid-template-columns: repeat(4, 1fr) !important;
    gap: 1.5rem !important;
    margin: 2.5rem 0 !important;
}

/* Members Display Section */
.members-display {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s ease-out;
    margin-top: 0;
}

.members-display.open {
    max-height: 800px;
}

.members-display-content {
    position: relative;
    background: linear-gradient(135deg, rgba(20, 20, 20, 0.98), rgba(30, 30, 30, 0.98));
    border: 1px solid rgba(255, 74, 74, 0.3);
    border-top: 2px solid rgba(255, 74, 74, 0.5);
    border-radius: 0 0 16px 16px;
    padding: 2.5rem;
    margin-top: -1px;
}

.members-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: rgba(255, 74, 74, 0.1);
    border: 1px solid rgba(255, 74, 74, 0.3);
    color: #ff4a4a;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.members-close:hover {
    background: rgba(255, 74, 74, 0.2);
    border-color: rgba(255, 74, 74, 0.6);
    box-shadow: 0 0 12px rgba(255, 74, 74, 0.3);
}

.members-display-header {
    text-align: center;
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid rgba(255, 74, 74, 0.2);
}

.members-display-icon {
    font-size: 3rem;
    margin-bottom: 0.75rem;
    display: block;
}

.members-display-header h3 {
    margin: 0;
    font-size: 1.8rem;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.members-display-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1.25rem;
}

.members-display .member-card {
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 74, 74, 0.2);
    border-radius: 12px;
    padding: 1.25rem;
    text-align: center;
    transition: all 0.3s ease;
}

.members-display .member-card:hover {
    border-color: rgba(255, 74, 74, 0.5);
    background: rgba(255, 74, 74, 0.08);
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(255, 74, 74, 0.1);
}

.members-display .member-icon {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.members-display .member-name {
    font-size: 0.95rem;
    font-weight: 600;
    color: #fff;
    margin: 0.5rem 0;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.members-display .member-handle {
    font-size: 0.8rem;
    color: #ffb8b8;
    margin: 0.25rem 0;
    font-style: italic;
}

.members-display .member-role {
    font-size: 0.75rem;
    color: #999;
    margin: 0.5rem 0 0;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.no-members {
    text-align: center;
    padding: 2rem;
    color: #999;
    font-style: italic;
}

/* Responsive adjustments */
@media (max-width: 1200px) {
    .card-deck-grid {
        grid-template-columns: repeat(4, 1fr) !important;
    }
}

@media (max-width: 768px) {
    .card-deck-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }

    .members-display-grid {
        grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    }

    .members-display-content {
        padding: 1.5rem;
    }
}

@media (max-width: 600px) {
    .card-deck-grid {
        grid-template-columns: 1fr !important;
        gap: 1rem !important;
    }

    .members-display-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .card-deck-grid {
        grid-template-columns: 1fr !important;
        gap: 1rem !important;
        margin: 1.5rem 0 !important;
    }

    .members-display-grid {
        grid-template-columns: 1fr;
    }

    .members-display-content {
        padding: 1rem;
    }

    .members-display-header {
        margin-bottom: 1.5rem;
    }
}

/* Color-coded member display sections */
.members-display.wildcard .members-display-content {
    border-top-color: rgba(200, 120, 255, 0.8);
    background: linear-gradient(135deg, rgba(150, 80, 200, 0.08), rgba(100, 50, 180, 0.08));
}

.members-display.wildcard .members-display-header {
    color: #c8a8ff;
    border-bottom-color: rgba(200, 120, 255, 0.3);
}

.members-display.wildcard .members-display-icon {
    color: #c8a8ff;
}

.members-display.ace .members-display-content {
    border-top-color: rgba(255, 220, 100, 0.8);
    background: linear-gradient(135deg, rgba(255, 200, 50, 0.08), rgba(200, 150, 0, 0.08));
}

.members-display.ace .members-display-header {
    color: #ffd700;
    border-bottom-color: rgba(255, 220, 100, 0.3);
}

.members-display.ace .members-display-icon {
    color: #ffd700;
}

.members-display.king .members-display-content {
    border-top-color: rgba(255, 100, 100, 0.8);
    background: linear-gradient(135deg, rgba(200, 50, 50, 0.08), rgba(150, 0, 0, 0.08));
}

.members-display.king .members-display-header {
    color: #ff6b6b;
    border-bottom-color: rgba(255, 100, 100, 0.3);
}

.members-display.king .members-display-icon {
    color: #ff6b6b;
}

.members-display.queen .members-display-content {
    border-top-color: rgba(150, 200, 255, 0.8);
    background: linear-gradient(135deg, rgba(100, 180, 255, 0.08), rgba(50, 130, 200, 0.08));
}

.members-display.queen .members-display-header {
    color: #a8d8ff;
    border-bottom-color: rgba(150, 200, 255, 0.3);
}

.members-display.queen .members-display-icon {
    color: #a8d8ff;
}

.members-display.spades .members-display-content {
    border-top-color: rgba(150, 150, 150, 0.8);
    background: linear-gradient(135deg, rgba(100, 100, 100, 0.08), rgba(50, 50, 50, 0.08));
}

.members-display.spades .members-display-header {
    color: #c0c0c0;
    border-bottom-color: rgba(150, 150, 150, 0.3);
}

.members-display.spades .members-display-icon {
    color: #c0c0c0;
}

.members-display.hearts .members-display-content {
    border-top-color: rgba(255, 150, 150, 0.8);
    background: linear-gradient(135deg, rgba(255, 100, 100, 0.08), rgba(200, 50, 50, 0.08));
}

.members-display.hearts .members-display-header {
    color: #ff9999;
    border-bottom-color: rgba(255, 150, 150, 0.3);
}

.members-display.hearts .members-display-icon {
    color: #ff9999;
}

.members-display.diamonds .members-display-content {
    border-top-color: rgba(150, 220, 255, 0.8);
    background: linear-gradient(135deg, rgba(100, 200, 255, 0.08), rgba(50, 150, 200, 0.08));
}

.members-display.diamonds .members-display-header {
    color: #99ccff;
    border-bottom-color: rgba(150, 220, 255, 0.3);
}

.members-display.diamonds .members-display-icon {
    color: #99ccff;
}

.members-display.clubs .members-display-content {
    border-top-color: rgba(200, 220, 150, 0.8);
    background: linear-gradient(135deg, rgba(150, 200, 100, 0.08), rgba(100, 150, 50, 0.08));
}

.members-display.clubs .members-display-header {
    color: #b8e6a8;
    border-bottom-color: rgba(200, 220, 150, 0.3);
}

.members-display.clubs .members-display-icon {
    color: #b8e6a8;
}
