/* --- FRX MASTER STYLES - 2026 ELITE EDITION --- */

/* Custom Scrollbar for Chrome/Safari/Edge */
/* --- FRX MASTER STYLES - 2026 ELITE EDITION --- */

:root {
    --main-blue: #3b82f6;
    --neon-blue: #00f2ff;
    --dark-bg: #050505;
    --card-bg: rgba(255, 255, 255, 0.04);
    --border: rgba(255, 255, 255, 0.1);
    --glass: rgba(255, 255, 255, 0.03);
    --glass-border: rgba(255, 255, 255, 0.1);
    --active-glow: #00ff88;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.2);
}

::-webkit-scrollbar-thumb {
    background: var(--neon-blue);
    border-radius: 10px;
    box-shadow: 0 0 10px var(--neon-blue);
}

::-webkit-scrollbar-thumb:hover {
    background: var(--active-glow);
    box-shadow: 0 0 15px var(--active-glow);
}

/* Firefox support */
* {
    scrollbar-width: thin;
    scrollbar-color: var(--neon-blue) transparent;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--dark-bg);
    color: white;
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
    
}

/* Background Particle Canvas */
#particleCanvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    /* Behind content */
    pointer-events: none;
}

h1,
h2,
h3,
.brand {
    font-family: 'Orbitron', sans-serif;
    text-transform: uppercase;
    letter-spacing: 2px;
}


/* --- PRE-LOADER --- */
#loader {
    position: fixed;
    width: 100%;
    height: 100vh;
    background: #050505;
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 0.5s ease;
}

.loader-content {
    text-align: center;
}

.dragon-symbol {
    font-size: 5rem;
    color: var(--main-blue);
    font-family: 'Orbitron';
    text-shadow: 0 0 30px var(--main-blue);
    animation: breathe 2s infinite ease-in-out;
}

.loader-bar {
    width: 200px;
    height: 2px;
    background: rgba(255, 255, 255, 0.1);
    margin: 20px auto;
    position: relative;
    overflow: hidden;
}

.loader-bar::after {
    content: '';
    position: absolute;
    left: -100%;
    width: 100%;
    height: 100%;
    background: var(--main-blue);
    box-shadow: 0 0 10px var(--main-blue);
    animation: loading 1.5s infinite;
}

@keyframes breathe {

    0%,
    100% {
        transform: scale(1);
        opacity: 0.8;
    }

    50% {
        transform: scale(1.1);
        opacity: 1;
    }
}

@keyframes loading {
    0% {
        left: -100%;
    }

    100% {
        left: 100%;
    }
}

.loader-hidden {
    opacity: 0;
    pointer-events: none;
}

.btn-main {
    background: var(--main-blue);
    color: white;
    padding: 12px 30px;
    border-radius: 5px;
    text-decoration: none;
    font-family: 'Orbitron';
    font-size: 0.9rem;
    transition: 0.3s;
    display: inline-block;
}

.btn-outline {
    border: 1px solid var(--border);
    color: white;
    padding: 12px 30px;
    border-radius: 5px;
    text-decoration: none;
    font-family: 'Orbitron';
    font-size: 0.9rem;
    transition: 0.3s;
    display: inline-block;
}

.btn-main:hover {
    background: #2563eb;
    transform: translateY(-3px);
}

.btn-outline:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-3px);
}

.local-time {
    color: #fff;
    text-shadow: 0 0 5px rgba(0, 242, 255, 0.5);
    font-weight: bold;
}

/* --- UPDATED MODAL OVERLAY --- */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    /* Use 100% to ensure it covers the width */
    height: 100vh;
    /* Full viewport height */
    background: rgba(0, 0, 0, 0.95);
    z-index: 10000;

    /* THE MAGIC CENTER TOOLS */
    display: flex;
    justify-content: center;
    /* Horizontal Center */
    align-items: center;
    /* Vertical Center */

    /* Hidden state */
    opacity: 0;
    visibility: hidden;
    transition: 0.4s ease;
    backdrop-filter: blur(10px);
}

/* 1. THE OVERLAY (The Background) */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.95);
    z-index: 100000;
    /* Extremely high to stay on top */

    /* Center using Flexbox - the most reliable way */
    display: flex;
    justify-content: center;
    align-items: center;

    /* Hidden state */
    opacity: 0;
    visibility: hidden;
    transition: 0.4s ease;
    backdrop-filter: blur(10px);
}

/* 2. THE BOX (The Popup) */
.modal-box {
    background: #0a0c10;
    border: 1px solid #ff9900;
    width: 90%;
    max-width: 400px;
    padding: 35px;
    text-align: center;
    position: relative;
    box-shadow: 0 0 50px rgba(255, 153, 0, 0.3);

    /* THE DROP ANIMATION */
    /* Start 50px higher than the center */
    transform: translateY(-50px);
    transition: 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* 3. THE ACTIVE STATE (When JS adds .active) */
.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal-overlay.active .modal-box {
    /* Moves to dead center */
    transform: translateY(0);
}

/* 4. THE CLOSE BUTTON */
.modal-close {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 1.8rem;
    color: #555;
    cursor: pointer;
}

/* Specific centering for the Pending Modal */
#pending-modal {
    display: none;
    /* Default hidden */
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    background: rgba(0, 0, 0, 0.95) !important;
    z-index: 99999 !important;
    justify-content: center !important;
    align-items: center !important;
    opacity: 0;
    visibility: hidden;
    transition: 0.4s ease;
}

#pending-modal.active {
    display: flex !important;
    /* Forces it to show and center */
    opacity: 1 !important;
    visibility: visible !important;
}

#pending-modal .modal-box {
    position: relative !important;
    top: auto !important;
    left: auto !important;
    transform: translateY(-30px) !important;
    /* Drop effect start */
    margin: 0 !important;
}

#pending-modal.active .modal-box {
    transform: translateY(0) !important;
    /* Drop effect end */
}

/* ABOUT SECTION STYLES */
.protocol-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(0, 242, 255, 0.1);
    padding: 30px;
    border-radius: 4px;
    position: relative;
}

.protocol-card h3 {
    font-family: 'Orbitron';
    font-size: 1.1rem;
    color: #fff;
    margin-bottom: 5px;
}

.card-subtitle {
    font-size: 0.6rem;
    color: var(--neon-blue);
    letter-spacing: 2px;
    margin-bottom: 20px;
}

.leader-list {
    list-style: none;
    padding: 0;
}

.leader-list li {
    padding: 10px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    font-size: 0.9rem;
}

.leader-list .rank {
    color: var(--neon-blue);
    font-weight: bold;
    margin-right: 10px;
}

.leader-list .vacant {
    opacity: 0.5;
    color: #ff4d4d;
}

.schedule-grid .sched-item {
    display: flex;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.values-flex {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-top: 20px;
}

.value-box {
    text-align: center;
    padding: 15px;
    background: rgba(0, 242, 255, 0.05);
    border-radius: 5px;
}

.value-box strong {
    display: block;
    color: var(--neon-blue);
    font-size: 0.7rem;
    margin-bottom: 5px;
}

.value-box p {
    font-size: 0.7rem;
    margin: 0;
    opacity: 0.7;
}

.alliance-bar {
    margin-top: 50px;
    text-align: center;
    padding: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-family: 'Orbitron';
    font-size: 0.85rem;
}

/* RESPONSIVE */
@media (max-width: 768px) {
    .system-grid {
        grid-template-columns: 1fr;
    }

    .values-flex {
        grid-template-columns: 1fr 1fr;
    }
}

/* --- NAVIGATION --- */
nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    min-height: 70px;
    padding: 15px 5%;
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(10px);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid var(--border);
}

.brand {
    font-weight: 900;
    color: #fff;
    font-size: 1.2rem;
}

.brand span {
    color: var(--main-blue);
}

.nav-links {
    display: flex;
    list-style: none;
}

.nav-links a {
    color: #888;
    text-decoration: none;
    margin-left: 20px;
    font-size: 1.2rem;
    /* Slightly scale down if needed */
    line-height: 1.2;
    font-weight: bold;
    transition: 0.3s;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--main-blue);
}

.nav-links li {
    margin: 15px 0;
    /* Reduced from likely higher values */
}

.nav-menu-container {
    overflow-y: auto;
    /* Adds scrollbar only if content overflows */
    max-height: 90vh;
    /* Keeps it within the viewport */
}


/* 2. The Drawer: The only thing that controls the menu */
.nav-links {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    position: fixed;
    top: 60px;
    /* Aligned below your header */
    right: 0;
    width: 250px;
    /* Slim width */
    height: calc(100vh - 60px);
    background: rgba(5, 7, 10, 0.98);
    border-left: 1px solid var(--neon-blue);
    padding-left: 30px;
    gap: 15px;
    z-index: 1001;

    /* --- THE FIX --- */
    opacity: 0;
    pointer-events: none;
    /* Makes it unclickable when closed */
    transform: translateX(100%);
    /* Moves it fully off-screen */
    transition: all 0.4s cubic-bezier(0.77, 0, 0.175, 1);
}

.nav-links.active {
    transform: translateX(0);
}

/* 3. Link Styling: Compact */
.nav-links a {
    color: #fff;
    font-family: 'Orbitron', sans-serif;
    text-transform: uppercase;
    text-decoration: none;
    font-size: 0.85rem;
    padding: 5px 0;
}

/* 5. Hide the divider if screen is tiny */
.nav-hr {
    width: 60%;
    border: 0;
    border-top: 1px solid #333;
}

/* When Folder is Tapped */
.nav-links.active {
    opacity: 1;
    pointer-events: auto;
    /* Becomes clickable */
    transform: translateX(0);
    /* Slides in */
}

/* 3. Link Styling */
.nav-links a {
    opacity: 0;
    transform: translateY(20px);
    /* Slide UP effect for more style */
    text-decoration: none;
    color: #fff;
    font-family: 'Orbitron';
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    transition: all 0.4s ease;
}

.nav-links.active a {
    opacity: 1;
    transform: translateY(0);
}
.nav-links {
    align-items: center;
}


.active-nav {
    position: relative;

    color: var(--main-blue) !important;

    background: rgba(0,242,255,0.08);

    border: 1px solid rgba(0,242,255,0.25);

    border-radius: 12px;

    box-shadow:
        0 0 15px rgba(0,242,255,.15),
        inset 0 0 15px rgba(0,242,255,.05);
}

.active-nav::before {
    content: '';

    position: absolute;

    left: 6px;
    top: 50%;

    transform: translateY(-50%);

    width: 3px;
    height: 60%;

    border-radius: 10px;

    background: var(--main-blue);

    box-shadow:
        0 0 10px var(--main-blue),
        0 0 20px var(--main-blue);
}

.game-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
}

.gallery-card {
    position: relative;
    height: 220px;
    background: #0a0a0a;
    border: 1px solid rgba(255, 255, 255, 0.1);
    clip-path: polygon(0 0, 95% 0, 100% 15%, 100% 100%, 5% 100%, 0 85%);
    /* Tactical notched corners */
    cursor: pointer;
    transition: 0.3s;
    overflow: hidden;
}

.gallery-card img,
.gallery-card video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(1) brightness(0.5);
    /* Desaturated look */
    transition: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.gallery-card:hover {
    border-color: var(--neon-blue);
    transform: translateY(-5px);
    box-shadow: 0 0 20px rgba(0, 242, 255, 0.1);
}

.gallery-card:hover img,
.gallery-card:hover video {
    filter: grayscale(0) brightness(1);
    /* "Decrypts" on hover */
    transform: scale(1.05);
}

/* The "Scanning Line" Effect */
.gallery-card::after {
    content: '';
    position: absolute;
    top: -100%;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(transparent, rgba(0, 242, 255, 0.1), transparent);
    animation: scan 4s infinite linear;
    pointer-events: none;
}

@keyframes scan {
    0% {
        top: -100%;
    }

    100% {
        top: 100%;
    }
}

.card-tag {
    position: absolute;
    top: 15px;
    left: 15px;
    background: rgba(0, 0, 0, 0.8);
    color: var(--neon-blue);
    font-size: 0.5rem;
    font-weight: 800;
    padding: 3px 8px;
    border: 1px solid var(--neon-blue);
    text-transform: uppercase;
    font-family: 'Orbitron';
}

/* Responsive Masonry */
@media (max-width: 900px) {
    .gallery-container {
        column-count: 2;
    }
}

@media (max-width: 600px) {
    .gallery-container {
        column-count: 1;
    }
}


/* Push section content down so it doesn't hide behind ticker */
body {
    padding-top: 35px;
}


/* Status Dots */
.status-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    margin-right: 5px;
}

.status-dot.online {
    background: #25d366;
    box-shadow: 0 0 10px #25d366;
}

.status-dot.in-game {
    background: #f1c40f;
    box-shadow: 0 0 10px #f1c40f;
}

.status-dot.offline {
    background: #555;
}

/* --- RECRUITMENT BADGE --- */
.recruit-container {
    display: flex;
    justify-content: center;
    margin-bottom: 20px;
}

.recruit-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px;
    border-radius: 50px;
    font-size: 0.6rem;
    font-weight: 800;
    letter-spacing: 1px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(0, 0, 0, 0.3);
}

.recruit-badge.open {
    color: #25d366;
    border-color: rgba(37, 211, 102, 0.3);
}

.badge-dot {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: currentColor;
}

.pulse {
    animation: badge-pulse 1.5s infinite;
}

@keyframes badge-pulse {
    0% {
        transform: scale(1);
        opacity: 1;
    }

    50% {
        transform: scale(1.3);
        opacity: 0.5;
    }

    100% {
        transform: scale(1);
        opacity: 1;
    }
}

.badge-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: currentColor;
}

.badge-dot.pulse {
    animation: badge-pulse 1.5s infinite;
}

/* --- SHARED BADGE STYLES --- */
.recruit-badge,
.reg-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 8px 16px;
    border-radius: 50px;
    font-size: 0.65rem;
    font-weight: 800;
    letter-spacing: 2px;
    text-transform: uppercase;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.02);
    margin: 5px;
}

.open {
    color: #25d366;
    border-color: rgba(37, 211, 102, 0.3);
}

.badge-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: currentColor;
}

.pulse {
    animation: badge-pulse 1.5s infinite;
}

@keyframes badge-pulse {
    0% {
        transform: scale(1);
        opacity: 1;
    }

    50% {
        transform: scale(1.3);
        opacity: 0.5;
    }

    100% {
        transform: scale(1);
        opacity: 1;
    }
}

@keyframes badge-pulse {
    0% {
        transform: scale(1);
        opacity: 1;
        box-shadow: 0 0 0 0px rgba(37, 211, 102, 0.4);
    }

    70% {
        transform: scale(1.2);
        opacity: 0.5;
        box-shadow: 0 0 0 10px rgba(37, 211, 102, 0);
    }

    100% {
        transform: scale(1);
        opacity: 1;
    }
}

/* --- MINI NAV-SIDE NOTIFICATION --- */
.modal-overlay {
    position: fixed;
    top: 100px;
    /* Positioned just below the nav bar */
    right: -400px;
    /* Hidden off-screen */
    width: 320px;
    z-index: 3000;
    transition: 0.7s cubic-bezier(0.19, 1, 0.22, 1);
}

.modal-overlay.active {
    right: 20px;
    /* Slides in from the right */
}

.modal-box {
    background: rgba(10, 12, 16, 0.85);
    /* Transparent dark */
    border: 1px solid rgba(0, 242, 255, 0.3);
    border-radius: 15px;
    /* Added radius as requested */
    padding: 20px;
    backdrop-filter: blur(15px);
    /* Frosty glass effect */
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    display: flex;
    flex-direction: column;
}

.modal-close {
    position: absolute;
    top: 12px;
    right: 15px;
    color: #666;
    font-size: 1rem;
    cursor: pointer;
}

.modal-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding-bottom: 8px;
}

.modal-header h3 {
    font-size: 0.6rem;
    letter-spacing: 2px;
    color: var(--neon-blue);
    font-weight: 800;
}

.modal-body h2 {
    font-family: 'Orbitron', sans-serif;
    font-size: 0.9rem;
    margin-bottom: 5px;
    color: #fff;
}

.modal-body p {
    color: #bbb;
    line-height: 1.4;
    font-size: 0.75rem;
    margin-bottom: 12px;
}

.modal-footer .btn {
    padding: 8px 15px;
    font-size: 0.55rem;
    border-radius: 8px;
    /* Matching the box radius */
}

/* Mobile Tweak */
@media (max-width: 480px) {
    .modal-overlay {
        width: 280px;
        top: 80px;
    }
}

/* --- HERO SECTION --- */
.hero {
    /* Change from 100vh to this calculation */
    min-height: calc(100vh - 60px); 
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin-top: -20px !important;
}
/* Force the header to have zero internal space */
header {
    display: flex;
    flex-direction: column;
    margin: 0 !important;
    padding: 0 !important;
    min-height: auto !important; /* Prevents it from taking extra space */
}

/* Ensure the nav inside the header has no bottom margin */
header nav {
    margin-bottom: 0 !important;
    padding-bottom: 0 !important;
}
header, nav {
    line-height: 1 !important; /* Removes invisible text padding */
    margin-top: 0 !important;
    padding-top: 0 !important;
}

.hero h1 {
    font-size: 3.5rem;
    line-height: 1.1;
    margin-bottom: 20px;
    font-style: italic;
}

.hero p {
    color: #888;
    max-width: 600px;
    margin-bottom: 40px;
    font-size: 1.1rem;
}

/* --- SECTION TITLES --- */
.section-title {
    font-size: 1.5rem;
    margin-bottom: 40px;
    border-left: 5px solid var(--neon-blue);
    padding-left: 20px;
    padding-top: 10px;
    color: var(--neon-blue);
}

/* --- LEADERSHIP SECTION --- */


/* --- SEARCH & LIST --- */
.search-container {
    max-width: 500px;
    margin: 0 auto 30px;
    position: relative;
}

.rank-search {
    width: 100%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border);
    padding: 12px 20px;
    border-radius: 30px;
    color: white;
    font-family: 'Inter', sans-serif;
    outline: none;
    transition: 0.3s;
    text-align: center;
}

.rank-search:focus {
    border-color: var(--main-blue);
    box-shadow: 0 0 15px rgba(0, 242, 255, 0.2);
    background: rgba(255, 255, 255, 0.08);
}

.rank-grid {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.list-row {
    display: grid;
    grid-template-columns: 40px 50px 1fr 100px;
    align-items: center;
    background: var(--glass);
    border: 1px solid var(--glass-border);
    padding: 10px 15px;
    border-radius: 8px;
    transition: 0.3s;
}

.list-row:hover {
    border-color: var(--main-blue);
    transform: translateX(5px);
}

.list-rank {
    font-family: 'Orbitron';
    font-weight: bold;
    color: var(--main-blue);
    font-size: 0.8rem;
}

.list-img {
    width: 35px;
    height: 35px;
    border-radius: 5px;
    object-fit: cover;
}

.list-name {
    font-family: 'Inter';
    font-weight: 700;
    font-size: 0.9rem;
}

.list-stats {
    text-align: right;
}

.list-points {
    display: block;
    font-family: 'Orbitron';
    font-size: 0.8rem;
    color: #fff;
}

.list-tier {
    display: block;
    font-size: 9px;
    color: #666;
    text-transform: uppercase;
}


/* --- CLAN TOGGLE --- */
.clan-toggle {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 30px;
}

.toggle-btn {
    background: transparent;
    border: 1px solid var(--border);
    color: #666;
    padding: 8px 20px;
    cursor: pointer;
    font-family: 'Orbitron';
    font-size: 10px;
    transition: 0.3s;
}

.toggle-btn.active {
    background: var(--main-blue);
    color: white;
    border-color: var(--main-blue);
}

/* --- JOIN PAGE STYLES --- */
.leadership-promo {
    background: linear-gradient(rgba(0, 0, 0, 0.85), rgba(0, 0, 0, 0.85)), url('images/leadership-bg.jpg');
    background-size: cover;
    padding: 50px;
    border-radius: 15px;
    border: 1px solid var(--main-blue);
    text-align: center;
    margin-bottom: 40px;
}

.tryout-briefing {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    padding: 40px;
}

.tryout-content-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 40px;
    margin-top: 25px;
}

.briefing-list {
    list-style: none;
    padding: 0;
}

.briefing-list li {
    padding: 12px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    font-size: 14px;
    color: #ccc;
}

.stat-tag {
    background: rgba(0, 242, 255, 0.1);
    color: var(--main-blue);
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: bold;
    border: 1px solid rgba(0, 242, 255, 0.3);
    margin-left: 5px;
}

.warning-text {
    color: #ff4444;
    font-size: 11px;
    margin-top: 15px;
    font-style: italic;
}

.banned-tags span {
    display: inline-block;
    background: rgba(255, 0, 80, 0.1);
    color: #ff0050;
    padding: 5px 12px;
    border-radius: 5px;
    font-size: 10px;
    font-weight: bold;
    margin-right: 8px;
    border: 1px solid rgba(255, 0, 80, 0.2);
}

.inactivity-bar {
    background: rgba(255, 0, 80, 0.05);
    border: 1px solid rgba(255, 0, 80, 0.2);
    padding: 15px;
    border-radius: 10px;
    margin-top: 30px;
    text-align: center;
    color: #ff0050;
    font-size: 12px;
    font-family: 'Orbitron';
}

/* --- MOBILE TWEAKS --- */
@media screen and (max-width: 768px) {
    .join-page-content {
        padding: 100px 5% 40px;
    }

    .tryout-box {
        padding: 30px 15px;
    }

    .tryout-content-grid,
    .requirements-grid {
        grid-template-columns: 1fr;
    }

    .bottom-grid {
        grid-template-columns: 1fr !important;
    }
}

.b-tag {
    display: inline-block;
    background: rgba(255, 0, 80, 0.1);
    color: #ff0050;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: bold;
    margin-right: 5px;
    border: 1px solid rgba(255, 0, 80, 0.2);
}

.leadership-promo {
    background: rgba(255, 255, 255, 0.02);
    padding: 40px;
    border-radius: 15px;
    border: 1px solid var(--main-blue);
    text-align: center;
}

/* --- ROUNDED BUTTONS --- */
.toggle-btn.rounded {
    border-radius: 50px;
    padding: 10px 30px;
    border: 1px solid var(--main-blue);
}

.toggle-btn.rounded.active {
    background: var(--main-blue);
    color: white;
    border-color: var(--main-blue);
}

/* --- CLICKABLE LIST ROWS --- */
.clickable {
    cursor: pointer;
    transition: 0.2s;
}

.clickable:hover {
    background: rgba(59, 130, 246, 0.1);
    transform: scale(1.02);
}

/* --- TACTICAL POPUP OVERHAUL --- */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(10px);
    justify-content: center;
    align-items: center;
    animation: fadeIn 0.3s ease;
}

.modal-content {
    background: linear-gradient(180deg, #0a0a0a 0%, #050505 100%);
    width: 90%;
    max-width: 600px;
    max-height: 85vh;
    border: 1px solid rgba(0, 242, 255, 0.2);
    border-radius: 15px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 0 40px rgba(0, 0, 0, 0.8), 0 0 20px rgba(0, 242, 255, 0.1);
}

/* Header for the popup */
.modal-header-bar {
    background: rgba(255, 255, 255, 0.03);
    padding: 20px;
    border-bottom: 1px solid rgba(0, 242, 255, 0.2);
    text-align: center;
}

/* Image container with custom scrollbar */
.modal-body-scroll {
    padding: 5px;
    overflow-y: auto;
    max-height: 60vh;
}

.modal-body-scroll::-webkit-scrollbar {
    width: 5px;
}

.modal-body-scroll::-webkit-scrollbar-thumb {
    background: var(--neon-blue);
    border-radius: 10px;
}

.proof-img {
    width: 100%;
    border-radius: 8px;
    margin-bottom: 15px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: transform 0.3s ease;
}

.proof-img:hover {
    transform: scale(1.02);
    border-color: var(--neon-blue);
}

/* Close Button */
.modal-footer {
    padding: 15px;
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: scale(0.95);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* --- LANDSCAPE MODAL BOX --- */
.modal-content-landscape {
    background-color: #0a0a0a;
    background-size: cover;
    background-position: center;
    border: 1px solid var(--main-blue);
    padding: 40px;
    border-radius: 15px;
    width: 90%;
    max-width: 600px;
    min-height: 250px;
    position: relative;
    box-shadow: 0 0 50px rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
}

.landscape-profile-content {
    width: 100%;
    z-index: 2;
}

.profile-main-info {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 25px;
}

.profile-avatar-square {
    width: 80px;
    height: 80px;
    border-radius: 10px;
    border: 2px solid var(--main-blue);
    object-fit: cover;
}

.profile-stats-landscape {
    display: flex;
    gap: 30px;
    margin-bottom: 30px;
}

.stat-box p {
    font-size: 10px;
    font-family: 'Orbitron';
    color: #888;
    margin-bottom: 5px;
}

.stat-box span {
    font-size: 1.2rem;
    font-weight: bold;
    color: #fff;
}

.btn-main-small {
    background: var(--main-blue);
    color: white;
    border: none;
    padding: 8px 20px;
    font-family: 'Orbitron';
    font-size: 10px;
    cursor: pointer;
    border-radius: 5px;
    transition: 0.3s;
}

.btn-main-small:hover {
    background: white;
    color: var(--main-blue);
}

/* --- CONTACT SECTION --- */
.contact-card {
    background: var(--glass);
    padding: 40px;
    border-radius: 15px;
    border: 1px solid var(--glass-border);
    text-align: center;
    transition: 0.3s;
}

.contact-card:hover {
    transform: translateY(-10px);
    border-color: var(--main-blue);
}

.contact-icon {
    font-size: 3rem;
    margin-bottom: 20px;
}

.contact-card h3 {
    margin-bottom: 10px;
    font-size: 1.2rem;
}

.contact-card p {
    color: #888;
    font-size: 14px;
    margin-bottom: 25px;
    min-height: 40px;
}

.contact-btn {
    display: block;
    padding: 12px;
    border-radius: 5px;
    text-decoration: none;
    color: white;
    font-family: 'Orbitron';
    font-size: 11px;
    transition: 0.3s;
}

.discord-bg {
    background: #5865F2;
}

.whatsapp-bg {
    background: #25d366;
}

.tiktok-bg {
    background: #ff0050;
}

.contact-btn:hover {
    filter: brightness(1.2);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

/* --- FOOTER & WHATSAPP --- */
footer {
    padding: 40px 5% 20px;
    text-align: center;
    margin-top: 50px;
}



:root {
    /* Neon Colors from your rank system */
    --neon-blue: #00f2ff;
    --ui-panel: rgba(10, 12, 15, 0.95);
    --ui-border: rgba(255, 255, 255, 0.08);
}

/* Scrollable Container */
#leader-grid {
    display: grid;
    gap: 15px;
    padding: 15px;
    width: 100%;
    max-width: 1300px;
    margin: 0 auto;
    /* Boxed Scrolling */
    max-height: 85vh;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: var(--neon-blue) transparent;
}

/* Custom Scrollbar Styling */
#leader-grid::-webkit-scrollbar {
    width: 4px;
}

#leader-grid::-webkit-scrollbar-thumb {
    background: var(--neon-blue);
    border-radius: 10px;
}

/* The Base Card */
.dossier-card {
    background: var(--ui-panel);
    border: 1px solid var(--ui-border);
    border-left: 4px solid var(--accent);
    padding: 15px;
    cursor: pointer;
    transition: 0.3s cubic-bezier(0.2, 1, 0.2, 1);
    position: relative;
    clip-path: polygon(0 0, 100% 0, 100% 88%, 92% 100%, 0 100%);
}

.dossier-card:hover,
.dossier-card.active {
    background: rgba(20, 25, 30, 1);
    border-color: var(--accent);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6), 0 0 15px var(--accent);
    transform: translateY(-3px);
}

/* Portrait & Rank Badge */
.pfp-wrap {
    position: relative;
    flex-shrink: 0;
}

.pfp-wrap img {
    border-radius: 50%;
    /* CIRCLE PROFILE */
    border: 2px solid var(--accent);
    object-fit: cover;
    display: block;
}

.rank-tag {
    position: absolute;
    bottom: 0;
    right: 0;
    background: var(--accent);
    color: #000;
    font-family: 'Orbitron', sans-serif;
    font-weight: 900;
    font-size: 0.5rem;
    padding: 2px 6px;
    border-radius: 2px;
}

/* Identity Text */
.user-name {
    font-family: 'Orbitron', sans-serif;
    color: #fff;
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.user-role {
    color: var(--accent);
    font-weight: 800;
    text-transform: uppercase;
    font-size: 0.55rem;
    letter-spacing: 1px;
}

/* ----------------------------------
   MOBILE: 2-GRID LANDSCAPE
---------------------------------- */
@media (max-width: 768px) {
    #leader-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }

    .card-layout {
        display: flex;
        align-items: center;
        gap: 12px;
    }

    .pfp-wrap {
        width: 60px;
        height: 60px;
    }

    .user-name {
        font-size: 0.8rem;
    }

    .user-role {
        font-size: 0.45rem;
    }
}

/* ----------------------------------
   PC: 4-GRID FULL VIEW
---------------------------------- */
@media (min-width: 769px) {
    #leader-grid {
        grid-template-columns: repeat(4, 1fr) !important;
        max-height: none;
        /* Full view on desktop */
        overflow: visible;
    }

    .card-layout {
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .pfp-wrap {
        width: 110px;
        height: 110px;
        margin-bottom: 15px;
    }

    .user-name {
        font-size: 1.1rem;
    }

    .user-role {
        font-size: 0.65rem;
    }
}

/* Interactive Expansion */
.data-reveal {
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transition: 0.4s ease;
}

.dossier-card.active .data-reveal {
    max-height: 250px;
    opacity: 1;
    margin-top: 15px;
}

.ui-divider {
    height: 1px;
    background: linear-gradient(90deg, var(--accent), transparent);
    margin-bottom: 12px;
}

.user-bio {
    font-size: 0.65rem;
    color: #999;
    line-height: 1.5;
}

.footer-stats {
    display: flex;
    justify-content: space-between;
    font-family: 'Orbitron';
    font-size: 0.5rem;
    margin-top: 12px;
    color: #444;
}

/* Title Styles */
.cmd-header {
    text-align: center;
    margin-bottom: 30px;
}

.cmd-title {
    font-family: 'Orbitron';
    color: #fff;
    letter-spacing: 5px;
    font-size: 2rem;
}

.cmd-subtitle {
    font-family: 'Orbitron';
    color: var(--neon-blue);
    font-size: 0.6rem;
    letter-spacing: 3px;
}

/* Update your Stats Grid */
.stats-grid {
    display: grid;
    /* Use '1fr' instead of 'minmax(145px, 1fr)' if it forces too much width */
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    /* Reduced gap for smaller screens */
    width: 100%;
    max-width: 100%;
    /* Ensure it doesn't exceed screen width */
    box-sizing: border-box;
    /* Crucial for including padding in width */
    padding: 0 10px;
}

table {
    width: 100%;
    table-layout: fixed;
    /* This forces the table to respect its container width */
    word-wrap: break-word;
    /* Allows long text to wrap instead of pushing the page */
}


.dossier-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    padding: 20px;
}

.dossier-card {
    background: rgba(0, 0, 0, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-left: 4px solid var(--accent);
    cursor: pointer;
    transition: transform 0.2s ease, border-left 0.3s ease;
    overflow: hidden;
}

.dossier-card:hover {
    transform: translateY(-5px);
    /* Adds a "pop-up" effect on hover */
    border-left-width: 8px;
    /* Glow/expand effect on interaction */
}

.data-reveal {
    /* Set to 0 to be hidden initially */
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    /* This makes it animate smoothly */
    transition: max-height 0.5s ease-out, opacity 0.3s ease-out;
}

.dossier-card.active .data-reveal {
    /* Set to a value large enough for your text */
    max-height: 200px;
    opacity: 1;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.card-layout {
    display: flex;
    flex-direction: column;
    /* Stacks everything vertically */
    align-items: center;
    /* Centers everything */
    text-align: center;
}

.pfp-wrap {
    width: 45px;
    /* Further reduced for a tighter look */
    height: 45px;
    border-radius: 50%;
    margin-bottom: 8px;
    /* Minimal spacing */
    flex-shrink: 0;
    overflow: hidden;
    border: 1.5px solid var(--accent);
    /* Thinner border */
}

.dossier-card {
    padding: 10px;
    /* Reduced internal padding */
    min-height: 80px;
    /* Small collapsed height */
}

.user-name {
    font-size: 11px;
    /* Smaller font for names */
    margin: 2px 0;
}

.user-role {
    font-size: 0.55rem;
    /* Very small, readable role text */
}

.user-bio {
    font-size: 0.7rem;
    /* Bio is compact */
    line-height: 1.2;
}

.text-wrap {
    width: 100%;
}

.dossier-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    padding: 20px;
}

.dossier-card {
    background: rgba(0, 0, 0, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-left: 4px solid var(--accent);
    cursor: pointer;
    padding: 15px;
    transition: 0.3s;
}

.data-reveal {
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transition: max-height 0.5s ease-out, opacity 0.3s ease-out;
}

.dossier-card.active .data-reveal {
    max-height: 200px;
    opacity: 1;
}

/* Layout */
.recruit-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    align-items: start;
}

@media (max-width: 768px) {
    .recruit-grid {
        grid-template-columns: 1fr;
    }
}

/* Nav "Join Us" call-to-action button */
.cta-join {
    background: var(--neon-blue, #00a2ff);
    color: #000 !important;
    padding: 8px 16px;
    border-radius: 4px;
    font-weight: 700;
}

/* Animations */
.reveal-left {
    animation: slideInLeft 1s ease-out;
}

.reveal-right {
    animation: slideInRight 1s ease-out;
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}



@media (max-width: 480px) {
    .floating-whatsapp {
        width: 50px;
        height: 50px;
        font-size: 25px;
        bottom: 15px;
        right: 15px;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .list-row {
        grid-template-columns: 30px 40px 1fr 80px;
        padding: 10px 5px;
    }
}

/* --- RESPONSIVE SYSTEM BOOT --- */

/* For Tablets and Phones (Screens smaller than 992px) */
@media (max-width: 992px) {
    #about .system-grid {
        grid-template-columns: 1fr;
        /* Stack leadership and schedule */
    }
}

/* For Phones (Screens smaller than 768px) */
@media (max-width: 768px) {

    /* Adjust Main Title */
    h1 {
        font-size: 1.8rem !important;
        letter-spacing: 3px !important;
    }

    blockquote {
        font-size: 0.9rem !important;
    }

    /* Fix the Intel Grid */
    .game-grid {
        grid-template-columns: 1fr;
        /* Single column for clips */
        gap: 15px;
    }

    .gallery-card {
        height: 200px;
        /* Slimmer height for mobile screens */
    }

    /* Fix the Core Values Boxes */
    .values-flex {
        grid-template-columns: 1fr 1fr;
        /* 2x2 grid instead of 4 in a row */
        gap: 10px;
    }

    /* Move the Discord Toggle higher so it doesn't block buttons */
    .chat-trigger {
        width: 50px;
        height: 50px;
        bottom: 20px;
        right: 20px;
    }

    .comms-panel {
        width: 90%;
        /* Take up most of the screen on mobile */
        right: -100%;
        bottom: 80px;
    }

    .comms-panel.active {
        right: 5%;
    }
}


/* --- MASTER RESPONSIVE PROTOCOL --- */
@media (max-width: 1024px) {
    .system-grid {
        grid-template-columns: 1fr !important;
    }

    /* Stacks High Table & Schedule */
    .protocol-card {
        grid-column: span 1 !important;
    }
}

/* 1. Global Reset */
.hamburger {
    display: block;
    background: none;
    border: none;
    font-size: 1.8rem;
    color: #00f2ff;
    cursor: pointer;
    z-index: 1002;
}



/* ==========================================
   NAVIGATION BUTTON SYSTEM
========================================== */

#auth-container {
    display: flex;
    align-items: center;
    gap: 12px;
}

#auth-container a,
.btn-boxt {
    display: flex;
    align-items: center;
    justify-content: center;

    height: 42px;
    padding: 0 18px;
     min-width: 100px;  

    border-radius: 8px;

    font-family: 'Orbitron', sans-serif;
    font-size: 0.75rem;
    font-weight: 700;

    text-decoration: none;
    letter-spacing: 1px;

    transition: all 0.3s ease;
}

/* Login */

#auth-container a:first-child {
    color: #ccc;
    border: 1px solid rgba(255,255,255,0.15);
    background: transparent;
}

#auth-container a:first-child:hover {
    color: var(--main-blue);
    border-color: var(--main-blue);
}

/* Sign Up */

#auth-container a:last-child {
    color: #000;
    background: var(--main-blue);
    border: 1px solid var(--main-blue);

    box-shadow:
        0 0 10px rgba(0,242,255,.3),
        0 0 25px rgba(0,242,255,.15);
}

#auth-container a:last-child:hover {
    transform: translateY(-2px);
}

/* Join Us */

.btn-boxt {
    color: var(--main-blue) !important;
    border: 1px solid var(--main-blue);

    background: rgba(0,242,255,.05);

    box-shadow:
        inset 0 0 10px rgba(0,242,255,.05),
        0 0 10px rgba(0,242,255,.1);
}

.btn-boxt:hover {
    background: var(--main-blue);
    color: #000 !important;
}

/* Desktop spacing */

.nav-links {
    display: flex;
    align-items: center;
    gap: 18px;
}

/* Mobile */

@media (max-width: 768px) {

    #auth-container {
        flex-direction: column;
        width: 100%;
        gap: 10px;
    }

    #auth-container a,
    .btn-boxt {
        width: 90%;
        max-width: 220px;
    }
}
/* Ensure the box style applies even if the link is injected via JS */
/* Increased height and padding for the buttons */
.btn-box {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #ffffff;
    padding: 20px 55px; /* Increased padding = taller/wider buttons */
    height: 35px;       /* Fixed height for uniformity */
    border-radius: 6px;
    background: rgb(0, 6, 185);
    color: #00f2ff;
    text-transform: uppercase;
    font-weight: bold;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    cursor: pointer;
}

/* Enhanced Glow Effect */
.btn-box:hover {
    color: #05070a;
    /* Stronger glow */
    box-shadow: 0 0 20px #00f2ff, 0 0 40px #00f2ff; 
    border-color: #fff;
}

/* Logout button specific glow */
.logout-box:hover {
    box-shadow: 0 0 20px #ff4d4d, 0 0 40px #ff4d4d;
}

.btn-boxt {
    display: inline-block;
    border: 1px solid #0091ff;
    padding: 8px 20px;
    border-radius: 4px;
    background: rgb(0, 55, 255);
    color: #00f2ff;
    text-align: center;
}



/* MOBILE VIEW (TIGHT & ALIGNED) */
@media (max-width: 768px) {
    .hamburger { display: flex !important; }


    #loader {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 100vh;
    background: #000;
}

.loader-content {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 200px;
    height: 200px;
}

.tactical-ring {
    position: absolute;
    border: 3px solid transparent;
    border-top: 3px solid var(--neon-blue);
    border-radius: 50%;
    animation: spin 2s linear infinite;
}

/* Inner Ring */
.tactical-ring {
    width: 120px;
    height: 120px;
}

/* Outer Ring (The "Crazy" part: White and Blue mix) */
.tactical-ring.outer {
    width: 160px;
    height: 160px;
    border-top: 3px solid #fff;
    border-left: 3px solid var(--neon-blue);
    animation: spin-reverse 3s linear infinite;
    box-shadow: 0 0 15px var(--neon-blue);
}

@keyframes spin { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } }
@keyframes spin-reverse { 0% { transform: rotate(360deg); } 100% { transform: rotate(0deg); } }

.hero-logo {
    z-index: 10;
}


.nav-links {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    position: fixed;
    top: 60px;
    /* Aligned below your header */
    right: 0;
    width: 175px;
    /* Slim width */
    height: calc(100vh - 60px);
    background: rgba(5, 7, 10, 0.98);
    border-left: 2px solid var(--neon-blue);
    padding-left: 10px;
    gap: 15px;
    z-index: 1001;

    /* --- THE FIX --- */
    opacity: 0;
    pointer-events: none;
    /* Makes it unclickable when closed */
    transform: translateX(100%);
    /* Moves it fully off-screen */
    transition: all 0.4s cubic-bezier(0.77, 0, 0.175, 1);
}

    .nav-links.active { transform: translateX(0); }
}


/* The "Tactical" Line Indicator */
.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0%; /* Hidden by default */
    height: 2px;
    background: var(--neon-blue);
    transition: width 0.4s ease;
    box-shadow: 0 0 10px var(--neon-blue);
}

/* ==========================================
   ACTIVE NAVIGATION LINK
========================================== */

.nav-links a {

    min-width: 150px;

    height: 48px;

    display: flex;
    align-items: center;

    padding: 0 24px;

    border-radius: 12px;

    transition: all .3s ease;
}

.nav-links a.active {

    color: #fff !important;

    display: flex;
    align-items: center;

    min-width: 160px;      /* wider box */
    height: 37px;

    padding: 0 24px;

    background: linear-gradient(
        90deg,
        rgba(0,242,255,.20),
        rgba(0,242,255,.05)
    );

    border-left: 3px solid var(--neon-blue);

    border-radius: 10px;

    box-shadow:
        inset 0 0 15px rgba(0,242,255,.15),
        0 0 12px rgba(0,242,255,.15);

    transition: all .3s ease;
}

.nav-links a:hover {

    color: #fff;

    background: rgba(255,255,255,.05);

    transform: translateX(4px);
}



.join-btn {

    background: linear-gradient(
        135deg,
        #00f2ff,
        #0099ff
    );

    color: #000 !important;

    font-weight: 800;

    padding: 12px 24px;

    border-radius: 12px;

    text-transform: uppercase;

    letter-spacing: 1px;

    box-shadow:
        0 0 20px rgba(0,242,255,.35);

    transition: .3s;
}

.join-btn:hover {

    transform: translateY(-3px);

    box-shadow:
        0 0 30px rgba(0,242,255,.6);
}

.btn-boxt {

    min-width: 220px !important;

    justify-content: center;

    white-space: nowrap;
}


/* 5. Mobile Toggle Visibility */
@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }


    /* 6. Staggered Animation Delays */
    .nav-links.active a:nth-of-type(1) {
        transition-delay: 0.1s;
    }

    .nav-links.active a:nth-of-type(2) {
        transition-delay: 0.2s;
    }

    .nav-links.active a:nth-of-type(3) {
        transition-delay: 0.3s;
    }

    .nav-links.active a:nth-of-type(4) {
        transition-delay: 0.4s;
    }

    .nav-links.active a:nth-of-type(5) {
        transition-delay: 0.5s;
    }

    .nav-links.active a:nth-of-type(6) {
        transition-delay: 0.6s;
    }

    .nav-links.active a:nth-of-type(7) {
        transition-delay: 0.7s;
    }

    .nav-links.active a:nth-of-type(8) {
        transition-delay: 0.8s;
    }


    
/* Add this to your style.css */
.hidden-section, [class*="reveal-"] {
    opacity: 0;
    /* 'will-change' tells the browser to keep this in the GPU memory */
    will-change: transform, opacity; 
    transition: opacity 0.3s ease-out, transform 0.3s ease-out;
}

.hidden-section.visible-section, .reveal-active {
    opacity: 1;
    transform: translateY(0);
}

    /* Hero Text Scaling */
    .hero h1 {
        font-size: 2.8rem !important;
    }

    .hero p {
        font-size: 0.9rem;
        padding: 0 10px;
    }

    .btn-group {
        flex-direction: column;
        width: 100%;
        align-items: center;
    }

    .btn {
        width: 90%;
        text-align: center;
    }

    /* Grids & Cards */
    .news-grid,
    .stat-grid,
    .game-grid {
        grid-template-columns: 1fr !important;
        padding: 0 10px;
    }

    /* Core Values Fix: 2x2 grid on mobile instead of stacking long icons */
    .values-flex {
        display: grid !important;
        grid-template-columns: 1fr 1fr !important;
        gap: 10px;
    }

    /* Table Fix: Adds horizontal scroll so it doesn't break the screen */
    .table-container {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        margin: 0 -5%;
        /* Pulls table to edges for better view */
    }

    table {
        min-width: 600px;
    }

    /* Ensures table content stays readable */

    /* Modal Fix */
    .modal-box {
        width: 95%;
        padding: 25px;
    }

    /* Gallery Fix */
    .gallery-card {
        height: 220px;
    }
}



@media (max-width: 480px) {
    .hero h1 {
        font-size: 1.2rem !important;
    }

    .values-flex {
        grid-template-columns: 1fr !important;
    }

    /* Stacks values on very small phones */
    .stat-card h3 {
        font-size: 1.8rem;
    }
}

/* For Very Small Phones (smaller than 480px) */
@media (max-width: 480px) {
    .values-flex {
        grid-template-columns: 1fr;
        /* Stack everything */
    }

    .about-header {
        margin-bottom: 40px;
    }
}

#loader {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100vh;
    background: #05070a;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.5s ease;
}

/* When this class is added, the loader fades away */
.loader-hidden { opacity: 0; pointer-events: none; }


/* Security Alert Shake */
.shake-error {
    animation: shake 0.4s cubic-bezier(.36, .07, .19, .97) both;
    border-color: #ff0050 !important;
    /* Turns the border red during shake */
    box-shadow: 0 0 20px rgba(255, 0, 80, 0.2);
}

@keyframes shake {

    10%,
    90% {
        transform: translate3d(-1px, 0, 0);
    }

    20%,
    80% {
        transform: translate3d(2px, 0, 0);
    }

    30%,
    50%,
    70% {
        transform: translate3d(-4px, 0, 0);
    }

    40%,
    60% {
        transform: translate3d(4px, 0, 0);
    }
}


.timeline-custom {
    position: relative;
    padding: 20px 0;
}

.timeline-custom::before {
    content: '';
    position: absolute;
    width: 2px;
    background: rgba(0, 242, 255, 0.3);
    left: 50px;
    top: 0;
    bottom: 0;
}

.tl-item {
    position: relative;
    margin-bottom: 40px;
    padding-left: 90px;
}

.tl-year {
    position: absolute;
    left: 0;
    top: 0;
    font-family: 'Orbitron';
    color: var(--neon-blue);
    font-weight: bold;
    font-size: 0.9rem;
}

.tl-item::before {
    content: '';
    position: absolute;
    width: 12px;
    height: 12px;
    background: #050505;
    border: 2px solid var(--neon-blue);
    border-radius: 50%;
    left: 45px;
    top: 5px;
    box-shadow: 0 0 10px var(--neon-blue);
}

.tl-content h3 {
    margin: 0;
    color: #fff;
    font-family: 'Orbitron';
    font-size: 1rem;
    letter-spacing: 1px;
}

.tl-content p {
    color: #888;
    font-size: 0.75rem;
    margin-top: 5px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.frx-timeline {
    display: flex;
    flex-direction: column;
    gap: 30px;
    border-left: 2px solid #00f2ff;
    padding-left: 30px;
    margin-left: 20px;
}

.timeline-box {
    position: relative;
}

.timeline-box::before {
    content: '';
    position: absolute;
    left: -37px;
    top: 0;
    width: 12px;
    height: 12px;
    background: #00f2ff;
    border-radius: 50%;
}

.year {
    color: #00f2ff;
    font-family: 'Orbitron';
    font-weight: bold;
}

.timeline-box h3 {
    margin: 5px 0;
    color: #fff;
}



.footer-nav a:hover {
    color: var(--neon-blue) !important;
    transition: 0.3s;
}

.frx-footer {
    padding: 80px 20px 40px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    text-align: center;
}

.footer-socials {
    display: flex;
    justify-content: center;
    gap: 25px;
    margin-bottom: 30px;
}

.footer-socials a {
    color: #fff;
    font-size: 1.5rem;
    transition: 0.3s;
}

.footer-socials a:hover {
    color: var(--neon-blue);
    text-shadow: 0 0 10px var(--neon-blue);
}

.footer-nav {
    margin-bottom: 30px;
    color: #666;
    font-size: 0.8rem;
    letter-spacing: 1px;
}

.footer-nav a {
    color: #666;
    text-decoration: none;
    transition: 0.3s;
}

.footer-nav a:hover {
    color: var(--neon-blue);
}

.footer-copy {
    color: #444;
    font-size: 0.7rem;
    letter-spacing: 2px;
}


/* Custom Modal - Responsive for all devices */
.modal-overlay {
    display: flex; position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(5, 7, 10, 0.98); z-index: 9999;
    align-items: center; justify-content: center; padding: 10px;
}
.modal-box {
    background: #0d1117; border: 1px solid #00f2ff;
    width: 100%; max-width: 450px; padding: 30px;
    box-shadow: 0 0 15px rgba(0, 242, 255, 0.2); position: relative;
}
.modal-close {
    position: absolute; top: 10px; right: 15px; cursor: pointer;
    color: #00f2ff; font-size: 1.5rem;
}

/* Rounded, elegant inputs */
.frx-input {
    width: 100%;
    margin-bottom: 18px;
    padding: 14px;
    background: rgba(20, 20, 20, 0.8); /* Slight transparency */
    border: 1px solid #333;
    color: #fff;
    font-family: 'Orbitron', sans-serif;
    font-size: 0.9rem;
    border-radius: 8px; /* Softens the robot look */
    transition: all 0.3s ease; /* Smooth hover effect */
    box-sizing: border-box;
}

.frx-input:focus {
    border-color: #00f2ff;
    box-shadow: 0 0 10px rgba(0, 242, 255, 0.2);
    outline: none;
}

/* Custom Select Dropdown - The "Pop-up" Design */
select.frx-input {
    appearance: none; /* Hides default robot arrow */
    cursor: pointer;
    background-image: linear-gradient(45deg, transparent 50%, #00f2ff 50%), 
                      linear-gradient(135deg, #00f2ff 50%, transparent 50%);
    background-position: calc(100% - 20px) 50%, calc(100% - 15px) 50%;
    background-size: 5px 5px, 5px 5px;
    background-repeat: no-repeat;
}

/* Redesigned Error Box */
.frx-error-box {
    text-align: center;
    padding: 15px;
    border: 1px solid #ff4d4d;
    background: rgba(255, 77, 77, 0.05);
    color: #ff4d4d;
    font-size: 0.8rem;
    letter-spacing: 1px;
    border-radius: 6px;
    margin-bottom: 20px;
    animation: fadeIn 0.3s ease;
}
/* Add this to lock the background */
body.modal-open {
    overflow: hidden;
    height: 100vh;
}

/* Curved Button */
#submitBtn {
    border-radius: 8px; /* Curve for your button */
}
#submitBtn:active {
    transform: scale(0.98); /* Tactile press feel */
}

#custom-select-box {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
#custom-select-box:hover {
    border-color: #00f2ff;
}
.option:hover {
    background: #00f2ff;
    color: #000;
}

/* Ensure inputs scale correctly on small phone screens */
@media (max-width: 480px) {
    .frx-input {
        font-size: 0.8rem;
        padding: 12px;
    }
    .modal-box {
        padding: 20px;
    }
}

@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }


/* Apply this to your section classes (e.g., .section, .fade-in, etc.) */
.section {
    contain: content; /* This tells the browser: 'the content inside doesn't affect the outside' */
    will-change: opacity, transform; /* Pre-allocates GPU memory for the animation */
}
/* Hide sections by default so they don't 'pop' into view */
.hidden-section {
    opacity: 0;
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

/* Once the animation class is added, they transition smoothly */
.visible-section {
    opacity: 1;
    transform: translateY(0);
}