/* --- GLOBAL MAIN FRAME --- */
:root {
    --bg-color: #0d0d0f;
    --accent-color: #00f2ff;
    --secondary-accent: #ff0055;
    --text-color: #f0f0f0;
    --card-bg: #16161a;
    --transition: 0.4s ease;
}

/* --- BASE ARCHITECTURE --- */
body {
    margin: 0;
    padding: 0;
    font-family: 'Roboto Mono', monospace;
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden;
}

/* --- CRT SCANLINE EFFECT --- */
body::before {
    content: " ";
    display: block;
    position: fixed;
    top: 0; left: 0; bottom: 0; right: 0;
    background: linear-gradient(rgba(18, 16, 16, 0) 50%, rgba(0, 0, 0, 0.1) 50%), 
                linear-gradient(90deg, rgba(255, 0, 0, 0.03), rgba(0, 255, 0, 0.01), rgba(0, 0, 255, 0.03));
    z-index: 9999;
    background-size: 100% 3px, 3px 100%;
    pointer-events: none;
    opacity: 0.4;
}

/* --- NAVIGATION --- */
nav {
    display: flex;
    justify-content: space-between;
    padding: 1.5rem 8%;
    background: rgba(13, 13, 15, 0.9);
    backdrop-filter: blur(10px);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid #222;
}

.logo {
    font-family: 'Orbitron', sans-serif;
    font-weight: 700;
    letter-spacing: 3px;
    text-decoration: none;
    color: #fff;
    font-size: 1.4rem;
}

.logo span { color: var(--accent-color); }

nav ul { display: flex; list-style: none; margin: 0; padding: 0; }
nav ul li { margin-left: 2rem; }
nav ul li a {
    text-decoration: none;
    color: var(--text-color);
    font-size: 0.8rem;
    text-transform: uppercase;
    transition: var(--transition);
}
nav ul li a:hover { color: var(--accent-color); text-shadow: 0 0 8px var(--accent-color); }

/* --- GLITCH EFFECT --- */
.glitch {
    position: relative;
    font-family: 'Orbitron', sans-serif;
    text-transform: uppercase;
}

.glitch::before, .glitch::after {
    content: attr(data-text);
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: var(--bg-color);
}

.glitch::before {
    left: 2px;
    text-shadow: -2px 0 var(--secondary-accent);
    clip: rect(44px, 450px, 56px, 0);
    animation: glitch-anim 5s infinite linear alternate-reverse;
}

.glitch::after {
    left: -2px;
    text-shadow: -2px 0 var(--accent-color);
    clip: rect(10px, 450px, 30px, 0);
    animation: glitch-anim-2 3s infinite linear alternate-reverse;
}

@keyframes glitch-anim { 0% { clip: rect(31px, 9999px, 94px, 0); } 100% { clip: rect(55px, 9999px, 5px, 0); } }
@keyframes glitch-anim-2 { 0% { clip: rect(65px, 9999px, 100px, 0); } 100% { clip: rect(10px, 9999px, 40px, 0); } }

/* --- TYPEWRITER --- */
.typewriter-container { min-height: 1.6em; margin-top: 1rem; }
.typewriter {
    display: inline-block;
    overflow: hidden;
    border-right: .15em solid var(--accent-color);
    white-space: nowrap;
    letter-spacing: .10em;
    animation: typing 3.5s steps(40, end), blink-caret .75s step-end infinite;
}

@keyframes typing { from { width: 0 } to { width: 100% } }
@keyframes blink-caret { from, to { border-color: transparent } 50% { border-color: var(--accent-color); } }

/* --- GRID & LAYOUT --- */
.container { max-width: 1200px; margin: 0 auto; padding: 0 5%; }
/* --- BULLETPROOF FLEX GALLERY (NO CROP) --- */
.gallery-grid {
    display: flex;
    flex-wrap: wrap;        /* Allows images to wrap to new rows */
    gap: 20px;
    justify-content: center; /* Centers the images if a row isn't full */
    width: 100%;
}

.gallery-item {
    display: flex;
    flex-direction: column;   /* Stacks image on top of text */
    justify-content: space-between; /* Pushes the last item (text) to the bottom */
    flex: 1 1 300px;
    max-width: 450px;
    background: var(--card-bg);
    border: 1px solid #222;
    padding: 0;               /* Remove padding so image hits the edges */
    overflow: hidden;         /* Keeps the corners clean */
}

.gallery-item {
    position: relative; /* This "anchors" the play/live indicator */
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    overflow: hidden;
    /* ... keep your other existing styles ... */
}

.gallery-item img {
    width: 100%;
    height: auto;
    display: block;
}

.gallery-item:hover {
    border-color: var(--accent-color);
    box-shadow: 0 0 15px rgba(0, 242, 255, 0.2);
}

.gallery-item:hover img {
    filter: grayscale(0%);
}

.gallery-video {
    width: 100%;
    cursor: pointer;
    transition: filter 0.3s;
    filter: grayscale(50%) brightness(0.7); /* Dimmer when paused */
}

.gallery-item:hover .gallery-video {
    filter: grayscale(0%) brightness(1); /* Lights up when playing */
}

/* Only targets items with the 'video-card' class */
.video-card::before {
    content: "READY";
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(0, 0, 0, 0.7);
    color: var(--accent-color);
    font-family: 'Roboto Mono', monospace;
    font-size: 0.6rem;
    padding: 2px 6px;
    border: 1px solid var(--accent-color);
    z-index: 20;
    pointer-events: none;
}

/* Hover state for the indicator */
.video-card:hover::before {
    content: "● LIVE FEED";
    color: #fff;
    background: #ff3e3e;
    border-color: #ff3e3e;
    box-shadow: 0 0 10px #ff3e3e;
}




/*
.photo-info {
    width: 100%;
    padding: 15px;
    background: rgba(13, 13, 15, 1); /* Solid background so text is clear */
  /*  border-top: 1px solid var(--accent-color);
    margin-top: auto; /* Final "shove" to the bottom */
/*}*/


.photo-info, .photo-info h3, .photo-info p {
    text-decoration: none !important;
    text-decoration-line: none !important;
    border-bottom: none !important; /* Just in case it's a thin border instead of an underline */
}

/* --- ABOUT ME SECTION --- */
/* --- ABOUT PAGE: STABLE FLEXBOX --- */
.about-split {
    display: flex;
    display: -ms-flexbox; /* Edge support */
    gap: 3rem;
    margin-top: 4rem;
    align-items: flex-start; /* Keeps image at the top */
}

.profile-frame {
    /* flex: grow shrink basis */
    flex: 0 0 250px;       /* FORCES the box to be exactly 250px */
    -ms-flex: 0 0 250px;   /* Edge support */
    width: 250px;          /* Hard fallback width */
    border: 1px solid var(--accent-color);
    padding: 10px;
    background: var(--card-bg);
}

.profile-frame img {
    width: 100% !important; /* Forces image to fill the 250px box */
    height: auto;
    display: block;
}

.info-side {
    flex: 1;               /* Text takes up all remaining space */
    min-width: 0;          /* Prevents text from pushing the image out */
}

/* Mobile: Stack them vertically if the screen is small */
@media (max-width: 768px) {
    .about-split { flex-direction: column; align-items: center; }
    .profile-frame { width: 100%; max-width: 300px; }
}

/* --- UTILITIES --- */
.btn {
    display: inline-block;
    padding: 0.8rem 2rem;
    border: 1px solid var(--accent-color);
    color: var(--accent-color) !important;
    background: rgba(0, 242, 255, 0.05);
    text-decoration: none;
    text-transform: uppercase;
    font-weight: bold;
    text-shadow: 0 0 8px rgba(0, 242, 255, 0.5); /* Glows slightly */
    transition: all 0.3s ease;
}

.btn:hover {
    background: var(--accent-color);
    color: #000 !important; /* Added !important here to override the blue */
    box-shadow: 0 0 15px var(--accent-color);
    text-shadow: none; /* Removes the glow so the black text is sharp */
}

.card {
    background: var(--card-bg);
    padding: 2.5rem;
    border: 1px solid #222;
    border-left: 4px solid var(--accent-color);
}

.system-clock {
    display: flex;
    gap: 20px;
    font-family: 'Roboto Mono', monospace;
    background: rgba(0, 0, 0, 0.5);
    padding: 10px 20px;
    border: 1px solid #222;
    display: inline-flex;
}

.clock-block {
    display: flex;
    flex-direction: column;
}

.label {
    font-size: 0.6rem;
    color: #555;
    letter-spacing: 1px;
}

.time {
    font-size: 1.1rem;
    color: var(--accent-color);
    text-shadow: 0 0 8px rgba(0, 242, 255, 0.4);
}

.personnel-file {
    border: 1px solid #222;
    background: rgba(10, 10, 10, 0.8);
    padding: 30px;
    margin-top: 50px;
    position: relative;
}

.clearance-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 30px;
    border-bottom: 1px solid var(--accent-color);
    padding-bottom: 10px;
    font-family: 'Roboto Mono', monospace;
    font-size: 0.7rem;
}

.clearance-badge {
    color: #ff3e3e; /* Red alert color for clearance */
    font-weight: bold;
}

.id-frame {
    position: relative;
    border: 2px solid #444;
    width: 250px; /* Fixed size for the ID photo */
    overflow: hidden;
}

.id-photo {
    width: 100%;
    filter: grayscale(100%) contrast(120%); /* Makes it look like an ID scan */
    display: block;
}

.scan-line {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 2px;
    background: var(--accent-color);
    box-shadow: 0 0 10px var(--accent-color);
    opacity: 0.5;
    animation: scan 4s linear infinite;
}

@keyframes scan {
    0% { top: 0; }
    100% { top: 100%; }
}

.data-row {
    margin-bottom: 20px;
    font-family: 'Roboto Mono', monospace;
}

.data-row .label { color: var(--accent-color); font-size: 0.8rem; margin-right: 10px;}
.data-row .value { color: #fff; }

.hobbies-box {
    border: 1px dashed #333;
    padding: 15px;
    margin-top: 20px;
    background: rgba(255, 255, 255, 0.02);
}