/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --spy-gold: #FFD700;
    --spy-silver: #C0C0C0;
    --spy-black: #0A0A0A;
    --spy-red: #DC143C;
    --spy-blue: #1E3A8A;
    --spy-green: #059669;
    --mission-orange: #F97316;
    --stealth-gray: #1F2937;
    --gradient-spy: linear-gradient(135deg, #0A0A0A 0%, #1F2937 50%, #1E3A8A 100%);
    --gradient-gold: linear-gradient(135deg, #FFD700 0%, #F97316 100%);
    --shadow-stealth: 0 0 20px rgba(255, 215, 0, 0.3);
    --shadow-deep: 0 20px 40px rgba(0, 0, 0, 0.8);
    --transition-stealth: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

body {
    font-family: 'Rajdhani', sans-serif;
    background: var(--gradient-spy);
    color: #fff;
    min-height: 100vh;
    overflow-x: hidden;
}

/* Spy Background Effects */
.SpyBackground {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--gradient-spy);
    z-index: -1;
    overflow: hidden;
}

.RadarSweep {
    position: absolute;
    width: 300px;
    height: 300px;
    border: 2px solid var(--spy-green);
    border-radius: 50%;
    top: 20%;
    right: 10%;
    opacity: 0.3;
}

.RadarSweep::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 50%;
    height: 2px;
    background: linear-gradient(to right, var(--spy-green), transparent);
    transform-origin: left center;
    animation: radarSweep 4s linear infinite;
}

@keyframes radarSweep {
    0% { transform: translate(-50%, -50%) rotate(0deg); }
    100% { transform: translate(-50%, -50%) rotate(360deg); }
}

.DataStreams {
    position: absolute;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.DataStream {
    position: absolute;
    width: 2px;
    height: 100px;
    background: linear-gradient(to bottom, transparent, var(--spy-green), transparent);
    animation: dataFlow 3s linear infinite;
    opacity: 0.4;
}

@keyframes dataFlow {
    0% { transform: translateY(-100px); opacity: 0; }
    50% { opacity: 0.4; }
    100% { transform: translateY(100vh); opacity: 0; }
}

.ScanLines {
    position: absolute;
    width: 100%;
    height: 100%;
    background: repeating-linear-gradient(
            0deg,
            transparent,
            transparent 2px,
            rgba(0, 255, 0, 0.03) 2px,
            rgba(0, 255, 0, 0.03) 4px
    );
    animation: scanMove 2s linear infinite;
}

@keyframes scanMove {
    0% { transform: translateY(0); }
    100% { transform: translateY(4px); }
}

/* Header */
.GameHeader {
    position: sticky;
    top: 0;
    background: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(15px);
    border-bottom: 2px solid var(--spy-gold);
    padding: 16px 0;
    z-index: 100;
    box-shadow: 0 4px 20px rgba(255, 215, 0, 0.2);
}

.HeaderContent {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.BackButton {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--spy-gold);
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition-stealth);
    padding: 10px 20px;
    border: 2px solid var(--spy-gold);
    border-radius: 4px;
    background: transparent;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.BackButton:hover {
    background: var(--spy-gold);
    color: var(--spy-black);
    transform: translateY(-2px);
    box-shadow: var(--shadow-stealth);
}

.GameLogo {
    font-family: 'Orbitron', monospace;
    font-size: 24px;
    font-weight: 700;
    color: var(--spy-gold);
    letter-spacing: 3px;
    text-shadow: 0 0 10px var(--spy-gold);
    animation: logoFlicker 3s ease-in-out infinite;
}

@keyframes logoFlicker {
    0%, 100% { opacity: 1; text-shadow: 0 0 10px var(--spy-gold); }
    50% { opacity: 0.8; text-shadow: 0 0 20px var(--spy-gold), 0 0 30px var(--spy-gold); }
}

/* Hero Section */
.GameHero {
    padding: 80px 0 60px;
    text-align: center;
    position: relative;
}

.HeroContainer {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.MissionClassified {
    display: inline-block;
    background: var(--spy-red);
    color: white;
    padding: 8px 20px;
    font-family: 'Orbitron', monospace;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 2px;
    margin-bottom: 20px;
    transform: rotate(-2deg);
    box-shadow: 0 4px 15px rgba(220, 20, 60, 0.4);
}

.GameTitle {
    font-family: 'Orbitron', monospace;
    font-size: 64px;
    font-weight: 900;
    background: var(--gradient-gold);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 24px;
    letter-spacing: 4px;
    text-shadow: 0 4px 8px rgba(0, 0, 0, 0.5);
    animation: titleGlow 4s ease-in-out infinite;
}

@keyframes titleGlow {
    0%, 100% { filter: brightness(1); }
    50% { filter: brightness(1.2) drop-shadow(0 0 20px var(--spy-gold)); }
}

.GameSubtitle {
    font-size: 24px;
    color: var(--spy-silver);
    margin-bottom: 40px;
    font-weight: 500;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.GameDescription {
    font-size: 18px;
    color: rgba(192, 192, 192, 0.9);
    max-width: 600px;
    margin: 0 auto 40px;
    line-height: 1.7;
}

.SecurityClearance {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: var(--spy-red);
    color: white;
    padding: 12px 24px;
    border-radius: 4px;
    font-weight: 600;
    margin-bottom: 40px;
    box-shadow: 0 8px 25px rgba(220, 20, 60, 0.4);
    border: 1px solid var(--spy-silver);
    font-family: 'Orbitron', monospace;
    font-size: 14px;
    letter-spacing: 1px;
}

.WarningIcon {
    width: 20px;
    height: 20px;
    filter: brightness(0) invert(1);
}

/* Game Container */
.GameContainer {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px 80px;
}

.GameFrame {
    background: rgba(0, 0, 0, 0.9);
    border-radius: 8px;
    padding: 30px;
    box-shadow: var(--shadow-deep);
    border: 3px solid var(--spy-gold);
    position: relative;
    overflow: hidden;
}

.GameFrame::before {
    content: 'CLASSIFIED';
    position: absolute;
    top: 10px;
    right: 10px;
    font-family: 'Orbitron', monospace;
    font-size: 12px;
    color: var(--spy-red);
    font-weight: 700;
    letter-spacing: 2px;
    background: rgba(220, 20, 60, 0.1);
    padding: 4px 8px;
    border: 1px solid var(--spy-red);
}

.GameFrame::after {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: var(--gradient-gold);
    border-radius: 8px;
    z-index: -1;
    opacity: 0.3;
}

.GameIframe {
    width: 100%;
    height: 600px;
    border: none;
    border-radius: 4px;
    background: #000;
    box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.8);
}

.LoadingOverlay {
    position: absolute;
    top: 30px;
    left: 30px;
    right: 30px;
    bottom: 30px;
    background: rgba(0, 0, 0, 0.95);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    transition: opacity 0.5s ease;
}

.LoadingSpinner {
    width: 60px;
    height: 60px;
    border: 3px solid rgba(255, 215, 0, 0.3);
    border-left: 3px solid var(--spy-gold);
    border-radius: 50%;
    animation: missionSpin 1.2s linear infinite;
    margin-bottom: 20px;
}

@keyframes missionSpin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.LoadingText {
    color: var(--spy-gold);
    font-size: 18px;
    font-weight: 600;
    font-family: 'Orbitron', monospace;
    letter-spacing: 2px;
    animation: textPulse 2s ease-in-out infinite;
}

@keyframes textPulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.6; }
}

/* Game Controls */
.GameControls {
    margin-top: 40px;
    text-align: center;
}

.ControlButton {
    background: var(--gradient-gold);
    color: var(--spy-black);
    border: none;
    padding: 14px 32px;
    border-radius: 4px;
    font-weight: 700;
    cursor: pointer;
    margin: 0 8px;
    transition: var(--transition-stealth);
    font-size: 16px;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-family: 'Orbitron', monospace;
    position: relative;
    overflow: hidden;
}

.ControlButton::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    transition: left 0.5s ease;
}

.ControlButton:hover::before {
    left: 100%;
}

.ControlButton:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(255, 215, 0, 0.4);
}

.ControlButton.Secondary {
    background: transparent;
    color: var(--spy-gold);
    border: 2px solid var(--spy-gold);
}

.ControlButton.Secondary:hover {
    background: var(--spy-gold);
    color: var(--spy-black);
}

/* Game Info */
.GameInfo {
    margin-top: 60px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

.InfoCard {
    background: rgba(31, 41, 55, 0.8);
    border-radius: 8px;
    padding: 32px;
    border: 1px solid var(--spy-gold);
    transition: var(--transition-stealth);
    position: relative;
    overflow: hidden;
}

.InfoCard::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 215, 0, 0.1), transparent);
    transition: left 0.6s ease;
}

.InfoCard:hover::before {
    left: 100%;
}

.InfoCard:hover {
    border-color: var(--spy-silver);
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(255, 215, 0, 0.2);
}

.InfoCard h3 {
    font-family: 'Orbitron', monospace;
    color: var(--spy-gold);
    font-size: 22px;
    margin-bottom: 16px;
    font-weight: 700;
    letter-spacing: 1px;
}

.InfoCard p {
    color: rgba(192, 192, 192, 0.9);
    line-height: 1.6;
}

/* Mission Features */
.MissionFeatures {
    margin-top: 40px;
}

.FeaturesGrid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 24px;
}

.FeatureItem {
    background: rgba(10, 10, 10, 0.8);
    border-radius: 8px;
    padding: 28px;
    text-align: center;
    border: 1px solid var(--stealth-gray);
    transition: var(--transition-stealth);
    position: relative;
    overflow: hidden;
}

.FeatureItem::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg,
    transparent 30%,
    rgba(255, 215, 0, 0.05) 50%,
    transparent 70%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.FeatureItem:hover::after {
    opacity: 1;
}

.FeatureItem:hover {
    border-color: var(--spy-gold);
    transform: translateY(-8px);
    box-shadow: 0 15px 30px rgba(255, 215, 0, 0.15);
}

.FeatureIcon {
    width: 56px;
    height: 56px;
    background: var(--gradient-gold);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    position: relative;
    animation: iconPulse 3s ease-in-out infinite;
}

@keyframes iconPulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(255, 215, 0, 0.4); }
    50% { box-shadow: 0 0 0 10px rgba(255, 215, 0, 0); }
}

.FeatureIcon img {
    width: 28px;
    height: 28px;
    filter: brightness(0);
}

.FeatureTitle {
    color: var(--spy-gold);
    font-weight: 700;
    margin-bottom: 12px;
    font-family: 'Orbitron', monospace;
    font-size: 16px;
    letter-spacing: 1px;
}

.FeatureText {
    color: rgba(192, 192, 192, 0.8);
    font-size: 14px;
    line-height: 1.5;
}

/* Mission Status */
.MissionStatus {
    position: fixed;
    top: 50%;
    left: 20px;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.9);
    border: 1px solid var(--spy-green);
    border-radius: 4px;
    padding: 16px;
    font-family: 'Orbitron', monospace;
    font-size: 12px;
    color: var(--spy-green);
    z-index: 50;
    opacity: 0.7;
}

.StatusLine {
    margin-bottom: 8px;
    display: flex;
    justify-content: space-between;
    min-width: 200px;
}

.StatusValue {
    color: var(--spy-gold);
}

/* Responsive Design */
@media (max-width: 768px) {
    .HeaderContent {
        flex-direction: column;
        gap: 16px;
    }

    .GameTitle {
        font-size: 48px;
    }

    .GameSubtitle {
        font-size: 20px;
    }

    .GameInfo {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .GameFrame {
        padding: 20px;
    }

    .GameIframe {
        height: 400px;
    }

    .FeaturesGrid {
        grid-template-columns: 1fr;
    }

    .MissionStatus {
        display: none;
    }
}

@media (max-width: 480px) {
    .GameTitle {
        font-size: 36px;
    }

    .GameSubtitle {
        font-size: 18px;
    }

    .GameFrame {
        padding: 16px;
    }

    .GameIframe {
        height: 300px;
    }

    .InfoCard {
        padding: 24px;
    }
}

/* Special Effects */
.StealthMode {
    animation: stealthFlicker 0.1s ease-in-out;
}

@keyframes stealthFlicker {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.8; }
}

.MissionActive {
    animation: missionPulse 2s ease-in-out infinite;
}

@keyframes missionPulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(255, 215, 0, 0.4); }
    50% { box-shadow: 0 0 0 20px rgba(255, 215, 0, 0); }
}