@import url('https://fonts.googleapis.com/css2?family=JetBrains+Mono:wght@400;700&family=Inter:wght@400;600;800&display=swap');

:root {
    --primary: #00f2ff;
    --secondary: #00ff41;
    /* Classic Phosphor Green */
    --bg-dark: #020202;
    --bg-card: #080808;
    --mouse-x: 50%;
    --mouse-y: 50%;
}

body {
    font-family: 'JetBrains Mono', monospace;
    background-color: var(--bg-dark);
    color: #d1d1d1;
    /* Softened white for better contrast with glows */
    overflow-x: hidden;
    scroll-behavior: smooth;
    cursor: none;
    font-size: 16px;
    /* Global size increase */
}

a,
button,
[role="button"] {
    cursor: none !important;
}

@media (pointer: coarse) {
    body {
        cursor: auto;
    }

    #cursor-aura {
        display: none;
    }
}

.mono {
    font-family: 'JetBrains Mono', monospace;
}

/* CRT Scanline Effect */
.scanline {
    width: 100%;
    height: 100px;
    z-index: 100;
    background: linear-gradient(0deg, rgba(0, 242, 255, 0) 0%, rgba(0, 242, 255, 0.05) 50%, rgba(0, 242, 255, 0) 100%);
    opacity: 0.2;
    position: fixed;
    top: -100px;
    left: 0;
    animation: scanline 8s linear infinite;
    pointer-events: none;
}

@keyframes scanline {
    0% {
        transform: translateY(0vh);
    }

    100% {
        transform: translateY(120vh);
    }
}

/* Reactive Grid Background */
.grid-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background-image:
        radial-gradient(circle at var(--mouse-x) var(--mouse-y), rgba(0, 242, 255, 0.15) 0%, rgba(0, 242, 255, 0.01) 25%, transparent 50%),
        linear-gradient(to right, rgba(0, 242, 255, 0.05) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(0, 242, 255, 0.05) 1px, transparent 1px);
    background-size: 100% 100%, 50px 50px, 50px 50px;
    pointer-events: none;
}

/* Tracking Aura */
#cursor-aura {
    position: fixed;
    width: 36px;
    height: 36px;
    background: rgba(0, 242, 255, 0.1);
    border: 2px solid var(--primary);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9999;
    transform: translate(-50%, -50%);
    box-shadow: 0 0 20px rgba(0, 242, 255, 0.5), inset 0 0 10px var(--primary);
    will-change: left, top;
}

.terminal-header {
    background: #111;
    border-bottom: 1px solid #333;
}

/* Expanded Terminal Aesthetics */
#terminal-content {
    transition: min-height 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    text-shadow: 0 0 5px rgba(0, 242, 255, 0.3);
    font-size: 1.1rem;
}

.identity-text {
    font-size: clamp(1.8rem, 5vw, 2.5rem);
    line-height: 1.2;
    letter-spacing: -0.02em;
    text-shadow: 0 0 15px rgba(0, 242, 255, 0.6);
    margin: 0.5rem 0;
    color: #fff;
}

.alias-text {
    font-size: clamp(1.1rem, 3vw, 1.6rem);
    color: var(--secondary);
    text-shadow: 0 0 10px rgba(0, 255, 65, 0.4);
    margin-bottom: 1.5rem;
}



/* ============================================================ */
/* === RESEARCH DIRECTIVE (MISSION PROFILE) CSS START === */
/* ============================================================ */

/* [Box Level 0: Section Container] - Keeps everything within max-width */

.directive-section {
    background: rgba(5, 5, 5, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 3rem;
    position: relative;
    margin-top: 2rem;
    margin: auto;
    max-width: 1200px;
    box-shadow: 0 20px 50px -10px rgba(0, 0, 0, 0.5);
    /* overflow: hidden;  */
}

/* Section Metadata Badge */
.directive-section::before {
    content: '[ UPLINK_DOSSIER_RECON ]';
    position: absolute;
    top: -12px;
    left: 20px;
    background: var(--bg-dark);
    color: var(--primary);
    font-size: 0.7rem;
    padding: 0 12px;
    font-weight: 900;
    letter-spacing: 3px;
}

.directive-header {
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    font-weight: 800;
    color: white;
    text-transform: uppercase;
    display: inline-block;
    margin-bottom: 1rem;
    border-bottom: 3px solid var(--secondary);
    padding-bottom: 5px;
    box-shadow: 0 4px 10px -5px var(--secondary);
}

/* ========================================================================= */
/* FUTURE EXPERIMENTAL DOSSIER CARD SECTION CSS - CURRENTLY COMMENTED OUT    */
/* UNCOMMENT THIS SECTION WHEN YOU GAIN EXPERIENCE AND UNCOMMENT THE HTML    */
/* ========================================================================= */

/* --- [Inner Box 1: Tactical Dossier Card] - The Experience Card --- */
/*
.dossier-card {
    background: rgba(12, 12, 12, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 2.5rem;
    position: relative;
    transition: all 0.4s ease;
}
*/

/* --- Corner Accent for Dossier Card --- */
/*
.dossier-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 15px;
    height: 15px;
    border-top: 3px solid var(--secondary);
    border-left: 3px solid var(--secondary);
}
*/

/* --- Profile Label --- */
/*
.profile-label {
    color: var(--secondary);
    font-weight: 700;
    font-size: 0.85rem;
    margin-bottom: 0.25rem;
    letter-spacing: 1px;
    opacity: 0.6;
}
*/

/* --- [Inner Box 2: Adversarial Quote] - Nested inside the Dossier Card --- */
/*
.quote-box {
    border-left: 3px solid var(--secondary);
    padding: 1.5rem 2rem;
    background: rgba(0, 255, 65, 0.03);
    color: var(--secondary);
    font-size: 1rem;
    line-height: 1.6;
    margin-top: 2.5rem;
    font-style: italic;
}
*/

/* --- Descriptive Tags inside the containers --- */
/*
.tag-node {
    display: inline-block;
    border: 1px solid rgba(0, 242, 255, 0.3);
    padding: 0.4rem 1.2rem;
    font-size: 0.85rem;
    color: var(--primary);
    text-transform: lowercase;
    font-style: italic;
    margin: 0.5rem 0.5rem 0 0;
    background: rgba(0, 242, 255, 0.03);
    font-weight: 700;
}
*/

/* ============================================================ */
/* === RESEARCH DIRECTIVE (MISSION PROFILE) CSS END === */
/* ============================================================ */



/* 3D Flip Card Engine - Enhanced Size */
.flip-card {
    background-color: transparent;
    height: 380px;
    perspective: 1200px;
    -webkit-perspective: 1200px;
}

.flip-card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    transition: transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
    transform-style: preserve-3d;
    -webkit-transform-style: preserve-3d;
}

.flip-card:hover .flip-card-inner {
    transform: rotateY(180deg);
    -webkit-transform: rotateY(180deg);
}

.flip-card-front,
.flip-card-back {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    border-radius: 0.25rem;
    border: 1px solid rgba(0, 242, 255, 0.1);
    padding: 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.flip-card-front {
    background-color: #050505;
    backdrop-filter: blur(15px);
    z-index: 2;
    transform: rotateY(0deg);
}

.flip-card-back {
    background-color: #000;
    color: #fff;
    transform: rotateY(180deg);
    -webkit-transform: rotateY(180deg);
    border: 1px solid var(--primary);
    box-shadow: inset 0 0 30px rgba(0, 242, 255, 0.05);
}

/* Dynamic Hexagonal Logo Node */
.dynamic-logo {
    width: 80px;
    height: 80px;
    border: 1px solid var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.2rem;
    font-weight: bold;
    color: var(--primary);
    background: rgba(0, 242, 255, 0.05);
    clip-path: polygon(25% 0%, 75% 0%, 100% 50%, 75% 100%, 25% 100%, 0% 50%);
    margin-bottom: 1.5rem;
    text-shadow: 0 0 10px var(--primary);
    box-shadow: 0 0 15px rgba(0, 242, 255, 0.1);
}

.terminal-cursor {
    display: inline-block;
    width: 12px;
    height: 22px;
    background: var(--primary);
    margin-left: 8px;
    animation: blink 1s infinite;
    vertical-align: middle;
    box-shadow: 0 0 10px var(--primary);
}

@keyframes blink {
    50% {
        opacity: 0;
    }
}

/* Global CRT Flicker */
.crt-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(18, 16, 16, 0) 50%, rgba(0, 0, 0, 0.1) 50%),
        linear-gradient(90deg, rgba(255, 0, 0, 0.01), rgba(0, 255, 0, 0.005), rgba(0, 255, 0, 0.01));
    z-index: 1000;
    background-size: 100% 4px, 4px 100%;
    pointer-events: none;
    opacity: 0.4;
}

h2 {
    font-family: 'JetBrains Mono', monospace;
    text-transform: uppercase;
}

p {
    line-height: 1.6;
}