/* Dystopian Training Facility Theme */
@import url('https://fonts.googleapis.com/css2?family=JetBrains+Mono:wght@400;700&family=Rajdhani:wght@600;700&display=swap');

:root {
    --concrete: #1a1a1a;
    --metal: #2a2a2a;
    --warning-yellow: #ffcc00;
    --danger-red: #ff3333;
    --text-white: #e0e0e0;
    --text-muted: #888888;
    --stripe-black: #000000;
}

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

body {
    font-family: 'Rajdhani', 'JetBrains Mono', monospace;
    background: var(--concrete);
    background-image: 
        repeating-linear-gradient(90deg, transparent, transparent 2px, rgba(255,255,255,0.03) 2px, rgba(255,255,255,0.03) 4px);
    color: var(--text-white);
    overflow-x: hidden;
}

/* General link styling */
a {
    color: var(--danger-red);
    text-decoration: none;
    transition: color 0.3s;
}

a:hover {
    color: var(--warning-yellow);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Warning Stripe */
.warning-stripe {
    height: 8px;
    width: 100%;
    background: repeating-linear-gradient(
        45deg,
        var(--warning-yellow),
        var(--warning-yellow) 20px,
        var(--stripe-black) 20px,
        var(--stripe-black) 40px
    );
    position: relative;
    z-index: 10;
}

/* Navbar */
.navbar {
    background: var(--metal);
    border-bottom: 4px solid var(--danger-red);
    box-shadow: 0 4px 20px rgba(0,0,0,0.5);
    position: sticky;
    top: 0;
    z-index: 100;
}

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

.navbar-logo {
    font-family: 'Rajdhani', sans-serif;
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--danger-red);
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 3px;
    background: linear-gradient(to bottom, #ff3333 0%, #cc0000 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
}

.navbar-logo::before {
    content: '⚠';
    position: absolute;
    left: -30px;
    color: var(--warning-yellow);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.navbar-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.navbar-menu li {
    margin: 0;
}

.navbar-menu a {
    font-family: 'Rajdhani', sans-serif;
    font-weight: 600;
    font-size: 1.1rem;
    color: var(--text-white);
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 0.5rem 1rem;
    border: 2px solid transparent;
    transition: all 0.3s;
    display: block;
}

.navbar-menu a:hover {
    border: 2px solid var(--danger-red);
    background: rgba(255, 51, 51, 0.1);
}

.navbar-login {
    margin-left: 0;
    font-family: 'Rajdhani', sans-serif;
    font-weight: 600;
    font-size: 1.1rem;
    color: var(--text-white) !important;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 0.5rem 1rem;
    border: 2px solid transparent;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.navbar-login:hover {
    border: 2px solid var(--danger-red);
    background: rgba(255, 51, 51, 0.1);
}

.navbar-login.offline {
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: none;
}

.navbar-login.offline:hover {
    border: 2px solid transparent;
    background: transparent;
}

.status-indicator {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--text-muted);
    display: inline-block;
    animation: pulse-subtle 2s infinite;
}

.status-indicator.online {
    background: #00ff00;
    box-shadow: 0 0 8px rgba(0, 255, 0, 0.5);
}

.status-indicator.offline {
    background: var(--danger-red);
    box-shadow: 0 0 8px rgba(255, 51, 51, 0.5);
}

.status-indicator.checking {
    background: var(--warning-yellow);
    box-shadow: 0 0 8px rgba(255, 204, 0, 0.5);
}

@keyframes pulse-subtle {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.6; }
}

.navbar-login-desktop {
    display: none;
}

.navbar-login-button {
    display: none;
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 4px;
    background: none;
    border: none;
    cursor: pointer;
}

.mobile-menu-toggle span {
    width: 25px;
    height: 3px;
    background: var(--danger-red);
}

/* Hero Section / Page Header */
.hero, .page-header {
    padding: 5rem 0;
    text-align: center;
    position: relative;
    background: linear-gradient(to bottom, var(--concrete), var(--metal));
    border-bottom: 8px solid var(--danger-red);
}

.page-header {
    padding: 3rem 0;
}

.hero::before, .page-header::before {
    content: 'RESTRICTED AREA';
    position: absolute;
    top: 20px;
    left: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--danger-red);
    letter-spacing: 2px;
    border: 2px solid var(--danger-red);
    padding: 0.25rem 0.5rem;
    transform: rotate(-2deg);
}

.hero h1, .page-header h1 {
    font-family: 'Rajdhani', sans-serif;
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text-white);
    text-transform: uppercase;
    letter-spacing: 2px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
    position: relative;
    display: inline-block;
}

.page-header h1 {
    font-size: 2.5rem;
}

.hero h1::after, .page-header h1::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--danger-red);
}

.hero p, .page-header p {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.page-header p {
    font-size: 1rem;
}

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

/* Buttons */
.btn, .btn-primary, .btn-secondary {
    font-family: 'Rajdhani', sans-serif;
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
    font-weight: 700;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 2px;
    border: 3px solid var(--danger-red);
    background: var(--metal);
    color: var(--text-white);
    cursor: pointer;
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
    display: inline-block;
}

.btn::before, .btn-primary::before, .btn-secondary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: var(--danger-red);
    transition: left 0.3s;
    z-index: -1;
}

.btn:hover::before, .btn-primary:hover::before, .btn-secondary:hover::before {
    left: 0;
}

.btn:hover, .btn-primary:hover {
    color: var(--text-white);
    box-shadow: 0 0 20px rgba(255, 51, 51, 0.5);
}

.btn-secondary {
    border-color: var(--warning-yellow);
}

.btn-secondary::before {
    background: var(--warning-yellow);
}

.btn-secondary:hover {
    color: var(--stripe-black);
    box-shadow: 0 0 20px rgba(255, 204, 0, 0.5);
}

/* Section */
.section {
    padding: 4rem 0;
    position: relative;
}

.section h2 {
    font-family: 'Rajdhani', sans-serif;
    text-align: center;
    margin-bottom: 3rem;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-white);
    text-transform: uppercase;
    letter-spacing: 3px;
    position: relative;
    display: inline-block;
    width: 100%;
}

.section h2::before {
    content: '// ';
    color: var(--danger-red);
}

/* Grid */
.grid {
    display: grid;
    gap: 2rem;
}

.grid-3 {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.grid-2 {
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
}

.grid-4 {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

/* Cards - Industrial Look */
.card {
    background: var(--metal);
    border: 3px solid var(--text-muted);
    border-left: 6px solid var(--danger-red);
    padding: 2rem;
    transition: all 0.3s;
    position: relative;
    box-shadow: 4px 4px 0 rgba(0,0,0,0.3);
}

.card::before {
    content: 'CLEARANCE: RESTRICTED';
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 0.65rem;
    font-weight: 700;
    color: #ff6666;
    letter-spacing: 1px;
    opacity: 0.7;
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: 8px 8px 0 rgba(255, 51, 51, 0.3);
    border-left-color: var(--warning-yellow);
}

.card h3 {
    font-family: 'Rajdhani', sans-serif;
    margin-bottom: 1rem;
    font-size: 1.5rem;
    color: var(--text-white);
    text-transform: uppercase;
    letter-spacing: 2px;
}

.card p {
    line-height: 1.6;
    color: var(--text-muted);
}

.card ul {
    list-style: none;
    margin-top: 1rem;
}

.card ul li {
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--text-muted);
}

.card ul li::before {
    content: '▸ ';
    color: var(--danger-red);
}

.card ul li:last-child {
    border-bottom: none;
}

.card a {
    color: var(--text-white);
    text-decoration: none;
}

.card a:hover {
    color: var(--warning-yellow);
}

.feature-card, .resource-card, .expertise-item {
    height: 100%;
}

.feature-card-icon {
    width: 48px;
    height: 48px;
    margin-bottom: 1rem;
    stroke: var(--danger-red);
}

/* Stats - Security Badge Style */
.stat-card {
    text-align: center;
    background: var(--stripe-black);
    border: 4px solid var(--danger-red);
    padding: 2rem;
    position: relative;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 8px;
    background: repeating-linear-gradient(
        90deg,
        var(--danger-red),
        var(--danger-red) 10px,
        var(--stripe-black) 10px,
        var(--stripe-black) 20px
    );
}

.stat-card h3 {
    font-family: 'Rajdhani', sans-serif;
    font-size: 3rem;
    margin-bottom: 0.5rem;
    color: var(--danger-red);
    font-weight: 700;
}

.stat-card p {
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

/* Classified Document Style */
.classified-section {
    background: var(--stripe-black);
    border: 4px solid var(--danger-red);
    border-top: 8px solid var(--danger-red);
    padding: 3rem 2rem;
    margin: 4rem 0;
    position: relative;
}

.classified-section::before {
    content: 'CLASSIFIED';
    position: absolute;
    top: -4px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--danger-red);
    color: var(--text-white);
    padding: 0.25rem 2rem;
    font-weight: 700;
    letter-spacing: 3px;
    font-size: 0.9rem;
}

/* Content Sections */
.content-section {
    margin-bottom: 3rem;
}

.content-section h2 {
    font-family: 'Rajdhani', sans-serif;
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-white);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 1rem;
    border-left: 6px solid var(--danger-red);
    padding-left: 1rem;
}

.content-section h3 {
    font-family: 'Rajdhani', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-white);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.content-section p {
    margin-bottom: 1rem;
    line-height: 1.6;
    color: var(--text-muted);
}

.content-section ul {
    list-style: none;
    margin-left: 1rem;
    margin-bottom: 1rem;
}

.content-section ul li {
    padding: 0.5rem 0;
    color: var(--text-muted);
}

.content-section ul li::before {
    content: '▸ ';
    color: var(--danger-red);
    margin-right: 0.5rem;
}

/* Expertise Grid */
.expertise-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.expertise-item h4 {
    font-family: 'Rajdhani', sans-serif;
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--danger-red);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.5rem;
}

/* Achievements */
.achievement-card {
    background: var(--metal);
    border: 3px solid var(--text-muted);
    border-left: 6px solid var(--warning-yellow);
    padding: 2rem;
    position: relative;
    box-shadow: 4px 4px 0 rgba(0,0,0,0.3);
}

.achievement-card::before {
    content: 'CLEARANCE: RESTRICTED';
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 0.65rem;
    font-weight: 700;
    color: #ff6666;
    letter-spacing: 1px;
    opacity: 0.7;
}

.achievement-card h3 {
    font-family: 'Rajdhani', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--warning-yellow);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 0.5rem;
}

.achievement-card .achievement-date {
    color: var(--text-muted);
    font-size: 0.9rem;
    font-style: italic;
    margin-bottom: 1rem;
}

.achievement-card p {
    color: var(--text-muted);
    line-height: 1.6;
}

/* Forms */
.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text-white);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.9rem;
}

.form-input, .form-select, .form-textarea {
    width: 100%;
    padding: 0.75rem;
    font-family: 'JetBrains Mono', monospace;
    font-size: 1rem;
    color: var(--text-white);
    background-color: var(--concrete);
    border: 2px solid var(--text-muted);
    transition: all 0.3s;
}

.form-input:focus, .form-select:focus, .form-textarea:focus {
    outline: none;
    border-color: var(--danger-red);
    background-color: var(--metal);
}

.form-textarea {
    resize: vertical;
    min-height: 120px;
}

.contact-form {
    background: var(--metal);
    padding: 2rem;
    border: 3px solid var(--text-muted);
    border-left: 6px solid var(--danger-red);
    box-shadow: 4px 4px 0 rgba(0,0,0,0.3);
}

/* Footer */
.footer {
    background: var(--stripe-black);
    border-top: 8px solid var(--danger-red);
    padding: 3rem 0 1rem;
    margin-top: 4rem;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section {
    color: var(--text-muted);
}

.footer h3 {
    font-family: 'Rajdhani', sans-serif;
    margin-bottom: 1rem;
    color: var(--danger-red);
    text-transform: uppercase;
    letter-spacing: 2px;
}

.footer p {
    line-height: 1.6;
}

.footer ul {
    list-style: none;
}

.footer ul li {
    margin-bottom: 0.5rem;
}

.footer ul li::before {
    content: '▸ ';
    color: var(--danger-red);
}

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

.footer a:hover {
    color: var(--text-white);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 2px solid var(--danger-red);
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* Security Tape Effect */
.security-tape {
    background: repeating-linear-gradient(
        45deg,
        var(--warning-yellow),
        var(--warning-yellow) 30px,
        var(--stripe-black) 30px,
        var(--stripe-black) 60px
    );
    height: 40px;
    width: 100%;
    position: relative;
    overflow: hidden;
    z-index: 10;
}

.security-tape::after {
    content: 'CAUTION • TRAINING AREA • CAUTION • TRAINING AREA • CAUTION • TRAINING AREA • ';
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    font-weight: 700;
    font-size: 0.9rem;
    letter-spacing: 3px;
    color: #000000;
    text-shadow: 0 0 1px rgba(255, 204, 0, 0.5);
    white-space: nowrap;
    animation: scroll 8s linear infinite;
}

@keyframes scroll {
    0% { transform: translate(0, -50%); }
    100% { transform: translate(-50%, -50%); }
}

/* Responsive */
@media (max-width: 768px) {
    .navbar-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--metal);
        flex-direction: column;
        gap: 0;
        border-bottom: 4px solid var(--danger-red);
    }
    
    .navbar-menu.active {
        display: flex;
    }
    
    .navbar-menu li {
        width: 100%;
        border-bottom: 1px solid var(--text-muted);
    }
    
    .navbar-menu a {
        width: 100%;
        padding: 1rem 2rem;
    }
    
    .mobile-menu-toggle {
        display: flex;
    }
    
    .hero h1, .page-header h1 {
        font-size: 2rem;
    }
    
    .section h2 {
        font-size: 1.75rem;
    }
    
    .grid-2, .grid-3, .grid-4 {
        grid-template-columns: 1fr;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
    }
    
    .hero, .page-header {
        padding: 3rem 0;
    }
    
    .section {
        padding: 3rem 0;
    }
}
