/* ============================================
   PPMBR - TACTICAL MILITARY INTERFACE
   ============================================ */

/* === RESET & BASE === */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --bg-dark: #0a0b10;
    --bg-card: #12141d;
    --red-alert: #cf2e2e;
    --green-terminal: #4caf50;
    --grid-line: #1a1d2e;
    --text-primary: #e0e0e0;
    --text-secondary: #8a8a8a;
    --accent-glow: rgba(207, 46, 46, 0.3);
}

body {
    font-family: 'Courier New', Courier, monospace;
    background-color: var(--bg-dark);
    color: var(--text-primary);
    overflow-x: hidden;
    line-height: 1.6;
}

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

/* === SCANLINES EFFECT === */
.scanlines {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 9999;
    background: repeating-linear-gradient(
        0deg,
        rgba(0, 0, 0, 0.15),
        rgba(0, 0, 0, 0.15) 1px,
        transparent 1px,
        transparent 2px
    );
    opacity: 0.3;
}

/* === HERO SECTION === */
.hero {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border-bottom: 1px solid var(--red-alert);
}

.hero-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(60%) brightness(0.4);
    z-index: 1;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        135deg,
        rgba(10, 11, 16, 0.8) 0%,
        rgba(207, 46, 46, 0.1) 100%
    );
    z-index: 2;
}

.hero-grid {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        linear-gradient(var(--grid-line) 1px, transparent 1px),
        linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
    background-size: 50px 50px;
    opacity: 0.2;
    z-index: 3;
}

.hero-content {
    position: relative;
    z-index: 4;
    text-align: center;
    padding: 20px;
}

.hero-title {
    font-family: 'Impact', 'Arial Black', sans-serif;
    font-size: clamp(3rem, 10vw, 8rem);
    font-weight: 900;
    letter-spacing: 0.1em;
    color: var(--red-alert);
    text-shadow:
        0 0 10px var(--accent-glow),
        0 0 20px var(--accent-glow),
        3px 3px 0 rgba(0, 0, 0, 0.8);
    margin-bottom: 0.2em;
    position: relative;
}

/* Glitch Effect */
.glitch-container {
    position: relative;
    display: inline-block;
}

.hero-title::before,
.hero-title::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.8;
}

.hero-title::before {
    color: #00ff00;
    animation: glitch-1 2.5s infinite;
    clip-path: polygon(0 0, 100% 0, 100% 45%, 0 45%);
}

.hero-title::after {
    color: #ff00ff;
    animation: glitch-2 2.5s infinite;
    clip-path: polygon(0 55%, 100% 55%, 100% 100%, 0 100%);
}

@keyframes glitch-1 {
    0%, 100% { transform: translate(0); }
    20% { transform: translate(-2px, 2px); }
    40% { transform: translate(-2px, -2px); }
    60% { transform: translate(2px, 2px); }
    80% { transform: translate(2px, -2px); }
}

@keyframes glitch-2 {
    0%, 100% { transform: translate(0); }
    20% { transform: translate(2px, -2px); }
    40% { transform: translate(2px, 2px); }
    60% { transform: translate(-2px, -2px); }
    80% { transform: translate(-2px, 2px); }
}

.hero-subtitle {
    font-family: 'Courier New', monospace;
    font-size: clamp(1.2rem, 3vw, 2rem);
    font-weight: 700;
    letter-spacing: 0.3em;
    color: var(--text-primary);
    margin-bottom: 0.5em;
}

.hero-tagline {
    font-size: clamp(0.9rem, 2vw, 1.2rem);
    color: var(--text-secondary);
    margin-bottom: 2em;
    letter-spacing: 0.1em;
}

/* CTA Button */
.cta-button {
    display: inline-block;
    padding: 18px 40px;
    background: var(--red-alert);
    color: #fff;
    text-decoration: none;
    font-size: 1.1rem;
    font-weight: bold;
    letter-spacing: 0.15em;
    clip-path: polygon(10px 0, 100% 0, calc(100% - 10px) 100%, 0 100%);
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    border: 2px solid var(--red-alert);
}

.cta-button:hover {
    background: transparent;
    color: var(--red-alert);
    box-shadow: 0 0 20px var(--accent-glow);
    transform: translateY(-2px);
}

.cta-button.pulse {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { box-shadow: 0 0 0 0 var(--accent-glow); }
    50% { box-shadow: 0 0 20px 10px var(--accent-glow); }
}

.cta-icon {
    margin-right: 10px;
}

/* Hero Corners */
.hero-corners {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 5;
}

.corner {
    position: absolute;
    width: 60px;
    height: 60px;
    border: 2px solid var(--red-alert);
}

.corner-tl {
    top: 20px;
    left: 20px;
    border-right: none;
    border-bottom: none;
}

.corner-tr {
    top: 20px;
    right: 20px;
    border-left: none;
    border-bottom: none;
}

.corner-bl {
    bottom: 20px;
    left: 20px;
    border-right: none;
    border-top: none;
}

.corner-br {
    bottom: 20px;
    right: 20px;
    border-left: none;
    border-top: none;
}

/* === INTEL BAR === */
.intel-bar {
    background: linear-gradient(90deg, #0a0b10 0%, #12141d 50%, #0a0b10 100%);
    border-top: 1px solid var(--green-terminal);
    border-bottom: 1px solid var(--green-terminal);
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(10px);
}

.intel-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
    padding: 0 20px;
}

.intel-item {
    display: flex;
    align-items: center;
    gap: 8px;
}

.intel-label {
    color: var(--text-secondary);
    font-size: 0.85rem;
    letter-spacing: 0.1em;
}

.intel-value {
    color: var(--text-primary);
    font-weight: bold;
    font-size: 1rem;
}

.intel-value.online {
    color: var(--green-terminal);
    text-shadow: 0 0 5px rgba(76, 175, 80, 0.5);
}

.intel-value.ping {
    color: var(--green-terminal);
}

.intel-separator {
    width: 1px;
    height: 20px;
    background: var(--grid-line);
}

/* === MISSION BRIEFING === */
.mission-briefing {
    padding: 100px 0;
    background: linear-gradient(180deg, var(--bg-dark) 0%, var(--bg-card) 100%);
}

.section-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 50px;
}

.section-number {
    color: var(--red-alert);
    font-size: 1.5rem;
    font-weight: bold;
}

.section-title {
    font-family: 'Rajdhani', 'Arial', sans-serif;
    font-weight: 600;
    font-size: clamp(2rem, 5vw, 3rem);
    letter-spacing: 0.15em;
    color: var(--text-primary);
}

.section-line {
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, var(--red-alert) 0%, transparent 100%);
}

.briefing-content {
    position: relative;
    background: rgba(18, 20, 29, 0.6);
    border: 1px solid var(--grid-line);
    padding: 40px;
    clip-path: polygon(0 0, calc(100% - 30px) 0, 100% 30px, 100% 100%, 30px 100%, 0 calc(100% - 30px));
}

.classified-stamp {
    position: absolute;
    top: 20px;
    right: 40px;
    color: var(--red-alert);
    font-size: 1rem;
    font-weight: bold;
    letter-spacing: 0.2em;
    opacity: 0.5;
    transform: rotate(15deg);
    border: 2px solid var(--red-alert);
    padding: 5px 15px;
}

.briefing-text p {
    margin-bottom: 1.5em;
    font-size: 1.05rem;
}

.briefing-main {
    font-size: 1.2rem !important;
    color: var(--text-primary);
}

.briefing-highlight {
    color: var(--green-terminal);
    border-left: 3px solid var(--green-terminal);
    padding-left: 20px;
    margin-top: 30px;
}

/* === ARSENAL === */
.arsenal {
    padding: 100px 0;
    background: var(--bg-dark);
}

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

.arsenal-card {
    background: var(--bg-card);
    border: 1px solid var(--grid-line);
    padding: 30px;
    position: relative;
    transition: all 0.3s ease;
    clip-path: polygon(20px 0, 100% 0, 100% calc(100% - 20px), calc(100% - 20px) 100%, 0 100%, 0 20px);
}

.arsenal-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 2px solid var(--red-alert);
    clip-path: polygon(20px 0, 100% 0, 100% calc(100% - 20px), calc(100% - 20px) 100%, 0 100%, 0 20px);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.arsenal-card:hover::before {
    opacity: 1;
}

.arsenal-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(207, 46, 46, 0.2);
}

.card-icon {
    color: var(--red-alert);
    margin-bottom: 20px;
    filter: drop-shadow(0 0 5px var(--accent-glow));
}

.card-title {
    font-family: 'Rajdhani', 'Arial', sans-serif;
    font-weight: 500;
    font-size: 1.4rem;
    letter-spacing: 0.1em;
    margin-bottom: 15px;
    color: var(--text-primary);
}

.card-description {
    color: var(--text-secondary);
    line-height: 1.6;
}

/* === FOOTER (COMMS) === */
.comms {
    background: var(--bg-card);
    border-top: 1px solid var(--red-alert);
    padding: 40px 0;
}

.comms-grid {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.comms-links {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.comms-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.9rem;
    letter-spacing: 0.1em;
    transition: color 0.3s ease;
}

.comms-link:hover {
    color: var(--red-alert);
}

.comms-signature {
    text-align: right;
}

.comms-signature p {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.comms-coordinates {
    font-size: 0.75rem !important;
    color: var(--green-terminal);
}

/* === RESPONSIVE === */
@media (max-width: 768px) {
    .hero-title {
        font-size: 3rem;
    }

    .intel-container {
        flex-direction: column;
        gap: 10px;
    }

    .intel-separator {
        display: none;
    }

    .briefing-content {
        padding: 25px;
    }

    .classified-stamp {
        font-size: 0.8rem;
        right: 20px;
    }

    .arsenal-grid {
        grid-template-columns: 1fr;
    }

    .comms-grid {
        flex-direction: column;
        text-align: center;
    }

    .comms-links {
        justify-content: center;
    }

    .comms-signature {
        text-align: center;
    }

    .section-header {
        flex-wrap: wrap;
    }
}
