/* Font Imports */
@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@400;700;900&family=Rajdhani:wght@300;500;700&display=swap');

:root {
    --bg-dark: #0b0c10;
    --bg-secondary: #0f1216;
    /* Slightly lighter for cards */
    --text-main: #c5c6c7;
    --cyan-neon: #66fcf1;
    --cyan-dim: #45a29e;
    --font-heading: 'Orbitron', sans-serif;
    --font-body: 'Rajdhani', sans-serif;
}

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

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    font-family: var(--font-body);
    font-size: 1.1rem;
    line-height: 1.6;
    overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    color: white;
    text-transform: uppercase;
    letter-spacing: 2px;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

ul {
    list-style: none;
}

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

.text-cyan {
    color: var(--cyan-neon);
}

.btn {
    display: inline-block;
    padding: 12px 30px;
    border: 1px solid var(--cyan-neon);
    color: var(--cyan-neon);
    font-family: var(--font-heading);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    cursor: pointer;
    background: transparent;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.btn:hover {
    background: var(--cyan-neon);
    color: var(--bg-dark);
    box-shadow: 0 0 15px var(--cyan-neon);
}

/* --- Header & Nav --- */
header {
    background: rgba(11, 12, 16, 0.95);
    padding: 20px 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid rgba(102, 252, 241, 0.1);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo img {
    height: 50px;
    vertical-align: middle;
}

.nav-links {
    display: flex;
    gap: 30px;
}

.nav-links a {
    font-family: var(--font-heading);
    font-size: 0.9rem;
    color: white;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--cyan-neon);
    text-shadow: 0 0 8px var(--cyan-neon);
}

.hamburger {
    display: none;
    cursor: pointer;
    color: var(--cyan-neon);
    font-size: 1.5rem;
}

/* --- Hero Section --- */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: radial-gradient(circle at center, #1f2833 0%, #0b0c10 70%);
    text-align: center;
    padding-top: 80px;
    /* Offset fixed header */
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        linear-gradient(rgba(102, 252, 241, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(102, 252, 241, 0.03) 1px, transparent 1px);
    background-size: 50px 50px;
    pointer-events: none;
    z-index: 0;
}

.hero-content {
    z-index: 1;
    max-width: 800px;
    padding: 20px;
}

.glitch-text {
    font-size: 4rem;
    margin-bottom: 10px;
    position: relative;
    color: white;
}

.hero-subtitle {
    font-size: 1.5rem;
    color: var(--cyan-dim);
    margin-bottom: 40px;
    letter-spacing: 4px;
}

/* --- Sections --- */
section {
    padding: 80px 0;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 60px;
    border-bottom: 2px solid var(--cyan-dim);
    display: table;
    margin-left: auto;
    margin-right: auto;
    padding-bottom: 10px;
}

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

.card {
    background: var(--bg-secondary);
    border: 1px solid #333;
    padding: 30px;
    transition: transform 0.3s ease, border-color 0.3s ease;
    position: relative;
}

.card:hover {
    transform: translateY(-5px);
    border-color: var(--cyan-neon);
    box-shadow: 0 4px 20px rgba(102, 252, 241, 0.1);
}

.card h3 {
    margin-bottom: 15px;
    color: var(--cyan-neon);
}

/* --- Footer --- */
footer {
    background: #050608;
    padding: 40px 0;
    text-align: center;
    border-top: 1px solid rgba(102, 252, 241, 0.1);
    color: #666;
    font-size: 0.9rem;
}

/* --- Animations --- */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* --- Mobile Responsiveness --- */
@media (max-width: 768px) {
    .nav-links {
        display: none;
        position: absolute;
        top: 90px;
        left: 0;
        width: 100%;
        background: var(--bg-dark);
        flex-direction: column;
        text-align: center;
        padding: 20px 0;
        border-bottom: 1px solid var(--cyan-dim);
    }

    .nav-links.active {
        display: flex;
    }

    .hamburger {
        display: block;
    }

    .glitch-text {
        font-size: 2.5rem;
    }

    .hero-subtitle {
        font-size: 1.1rem;
    }
}

/* --- 404 Page --- */
/* --- 404 Page --- */
.error-container {
    height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: url('../images/soldier_404_black.png') no-repeat center center/cover;
    position: relative;
    overflow: hidden;
}

/* Overlay to darken background for text readability */
.error-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(11, 12, 16, 0.7);
    /* Dark overlay */
    z-index: 0;
}

.error-content {
    z-index: 1;
    position: relative;
}

/* --- Holographic Transitions --- */
#holo-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 10, 18, 0.95);
    /* Deep dark blue-black */
    z-index: 9999;
    pointer-events: none;
    opacity: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    /* User requested longer duration ("Star Wars style") */
    transition: opacity 0.8s ease-in-out;
    backdrop-filter: blur(5px);
}

#holo-overlay.active {
    opacity: 1;
    pointer-events: all;
    /* Add a slight flicker to the whole overlay */
    animation: holo-flicker 0.1s infinite;
}

@keyframes holo-flicker {
    0% {
        opacity: 0.97;
    }

    50% {
        opacity: 1;
    }

    100% {
        opacity: 0.98;
    }
}

/* Authentic Star Wars Scanlines */
#holo-overlay::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* Stronger scanlines, blueish */
    background: repeating-linear-gradient(0deg,
            transparent 0px,
            rgba(102, 252, 241, 0.1) 1px,
            transparent 2px,
            rgba(0, 0, 0, 0.5) 4px);
    background-size: 100% 4px;
    z-index: 10000;
    pointer-events: none;
}

/* Scanning beam / Glitch line */
#holo-overlay::after {
    content: '';
    position: absolute;
    top: -50%;
    left: 0;
    height: 50%;
    width: 100%;
    background: linear-gradient(to bottom, transparent, rgba(102, 252, 241, 0.6), transparent);
    opacity: 0.5;
    animation: transmission-scan 2s linear infinite;
    display: none;
}

#holo-overlay.active::after {
    display: block;
}

@keyframes transmission-scan {
    0% {
        top: -50%;
        opacity: 0;
    }

    20% {
        opacity: 0.8;
    }

    80% {
        opacity: 0.8;
    }

    100% {
        top: 100%;
        opacity: 0;
    }
}
.holo-text {
    font-family: var(--font-heading);
    color: var(--cyan-neon);
    font-size: 1.5rem;
    letter-spacing: 4px;
    text-shadow: 0 0 10px var(--cyan-neon);
    z-index: 10001;
    animation: text-pulse 0.1s infinite alternate;
    text-transform: uppercase;
    background: rgba(0, 0, 0, 0.5);
    padding: 10px 20px;
    border: 1px solid var(--cyan-dim);
}

@keyframes text-pulse {
    0% { opacity: 0.7; transform: scale(0.98); }
    100% { opacity: 1; transform: scale(1); }
}
