/* * INDUSTRIAL CYBERPUNK THEME 
 * CORE VARIABLES & BASE LAYOUT
 */
 :root {
    --bg-color: #050505;
    --text-main: #e0e0e0;
    --text-dim: #666666;
    --accent: #ff3c00; 
    --grid-line: #1a1a1a;
    --font-display: 'Chakra Petch', 'Arial Black', sans-serif;
    --font-mono: 'JetBrains Mono', 'Courier New', monospace;
    --scanline-color: rgba(0, 0, 0, 0.5);
    --crt-flicker: rgba(255, 255, 255, 0.02);
}

@import url('https://fonts.googleapis.com/css2?family=Chakra+Petch:wght@400;600;700;900&family=JetBrains+Mono:wght@400;700&family=VT323&family=Courier+Prime:wght@400;700&display=swap');

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

body {
    background-color: var(--bg-color);
    color: var(--text-main);
    font-family: var(--font-mono);
    overflow-x: hidden;
    line-height: 1.5;
    text-transform: uppercase;
}

/* TYPOGRAPHY & UTILS */
h1, h2, h3 { font-family: var(--font-display); font-weight: 700; letter-spacing: 2px; margin: 0; }
.text-accent { color: var(--accent); }
.text-dim { color: var(--text-dim); }
.container { max-width: 1400px; margin: 0 auto; padding: 0 2rem; position: relative; }

/* HEADER */
header {
    border-bottom: 1px solid transparent; 
    padding: 1.5rem 0;
    position: sticky; 
    top: 0; 
    background: transparent;
    z-index: 100; 
    transition: all 0.3s ease;
}

header.glass-active {
    background: rgba(5, 5, 5, 0.4);
    backdrop-filter: blur(16px) saturate(150%);
    -webkit-backdrop-filter: blur(16px) saturate(150%);
    border-bottom: 1px solid rgba(255, 60, 0, 0.3);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.8);
    padding: 1rem 0; /* Optional: slightly shrinks the header on scroll for a sleeker feel */
}

.nav-flex { display: flex; justify-content: space-between; align-items: center; }
.brand { font-size: 1.5rem; border: 1px solid var(--text-main); padding: 0.2rem 0.8rem; display: inline-block; }
.brand span { color: var(--accent); }
.system-status { font-size: 0.75rem; display: flex; gap: 1rem; align-items: center; }
.status-dot { width: 8px; height: 8px; background-color: var(--accent); border-radius: 50%; box-shadow: 0 0 10px var(--accent); animation: pulse 2s infinite; }

/* HERO SECTION */
.hero { min-height: 80vh; display: flex; flex-direction: column; justify-content: center; border-left: 1px dashed var(--text-dim); margin-left: 20px; padding-left: 40px; position: relative; }
.hero::before { content: "ZONE: NORTHEAST CORRIDOR"; position: absolute; top: 20px; left: -12px; background: var(--bg-color); padding: 0 10px; font-size: 0.7rem; transform: rotate(-90deg); transform-origin: left top; color: var(--text-dim); }
.hero h1 { font-size: clamp(3rem, 8vw, 6rem); line-height: 0.9; margin-bottom: 1rem; text-shadow: 2px 2px 0px var(--text-dim); }
.hero-sub { font-size: 1.2rem; max-width: 600px; margin-bottom: 3rem; border-left: 4px solid var(--accent); padding-left: 1rem; }

/* GRID SYSTEM */
.section-title { font-size: 2rem; margin: 4rem 0 2rem 0; display: flex; align-items: center; gap: 1rem; }
.section-title::after { content: ""; flex-grow: 1; height: 2px; background: repeating-linear-gradient(90deg, var(--text-main), var(--text-main) 10px, transparent 10px, transparent 20px); }
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 2rem; margin-bottom: 4rem; }

/* ABOUT SECTION FLEX FIX */
#about > div { gap: 1rem !important; }
#about > div > div { flex: 1 1 300px; width: 100%; }

/* PROJECT CARD */
.card { border: 1px solid var(--grid-line); background: #0a0a0a; position: relative; transition: transform 0.2s, border-color 0.2s; padding: 1.5rem; }
.card:hover { border-color: var(--accent); transform: translateY(-2px); }
.card::before, .card::after { content: ""; position: absolute; width: 10px; height: 10px; transition: all 0.3s; }
.card::before { top: -1px; left: -1px; border-top: 2px solid var(--text-main); border-left: 2px solid var(--text-main); }
.card::after { bottom: -1px; right: -1px; border-bottom: 2px solid var(--text-main); border-right: 2px solid var(--text-main); }
.card:hover::before, .card:hover::after { width: 100%; height: 100%; border-color: var(--accent); }
.card-img { height: 200px; width: 100%; background-color: #111; margin-bottom: 1.5rem; position: relative; overflow: hidden; border: 1px solid #333; background-image: radial-gradient(#333 15%, transparent 16%), radial-gradient(#333 15%, transparent 16%); background-size: 10px 10px; background-position: 0 0, 5px 5px; }
.card-header { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 1rem; }
.card-id { font-size: 0.7rem; color: var(--accent); border: 1px solid var(--accent); padding: 2px 6px; }
.card h3 { font-size: 1.5rem; margin-bottom: 0.5rem; }
.card p { font-size: 0.9rem; color: #aaa; margin-bottom: 1.5rem; font-family: var(--font-mono); }

/* BUTTONS */
.btn-group { display: flex; gap: 1rem; position: relative; z-index: 10; }
.btn { background: transparent; border: 1px solid var(--text-main); color: var(--text-main); padding: 0.5rem 1.5rem; font-family: var(--font-display); font-weight: 700; text-decoration: none; position: relative; overflow: hidden; transition: 0.2s; font-size: 0.9rem; cursor: pointer; }
.btn:hover { background: var(--accent); border-color: var(--accent); color: #000; box-shadow: 0 0 15px var(--accent); }
button.btn { cursor: pointer; font-family: var(--font-display); font-size: 0.9rem; }
.btn-fill { background: var(--text-main); color: #000; }
.btn-fill:hover { background: var(--accent); color: #000; }
.btn-locked { cursor: not-allowed; opacity: 0.7; }
.btn-locked:hover { background: transparent; border-color: #ff0033; color: #ff0033; box-shadow: 0 0 10px rgba(255, 0, 50, 0.2); }
.btn-locked:hover::after { content: " \1F512"; padding-left: 5px; }

/* FOOTER */
footer { border-top: 1px solid #333; padding: 3rem 0; margin-top: 4rem; text-align: center; font-size: 0.8rem; color: var(--text-dim); }
.barcode { font-family: 'Libre Barcode 39 Text', cursive; height: 30px; width: 200px; margin: 0 auto 1rem auto; background: repeating-linear-gradient( 90deg, #333, #333 2px, transparent 2px, transparent 4px, #333 4px, #333 8px, transparent 8px, transparent 9px ); }

/* RESPONSIVE */
@media (max-width: 768px) {
    .container { padding: 0 1rem; }
    .section-title { font-size: 1.5rem; flex-direction: column; align-items: flex-start; }
    .section-title::after { width: 100%; margin-top: 10px; }
    .nav-flex { flex-direction: column; align-items: flex-start; gap: 1rem; }
    .system-status { width: 100%; justify-content: space-between; font-size: 0.7rem; }
    .hero { min-height: auto; padding: 4rem 0; margin-left: 0; border-left: none; }
    .hero h1 { font-size: 2.5rem; word-break: break-word; }
    .grid { grid-template-columns: 1fr; }
}

/* GRADIO APP */
gradio-app { display: block; width: 100%; height: 100%; min-height: 0; border: none; background: transparent; }