:root {
    /* Cyberpunk / Terminal Theme Colors */
    --bg-color: #030712;
    --bg-main: #0B0F19;
    --bg-card: #151D30;
    --bg-light: #111827;
    --primary: #00ff66;
    --primary-glow: rgba(0, 255, 102, 0.2);
    --accent: #00ffcc; /* Merged accent colors */
    --accent-glow: rgba(0, 217, 255, 0.2);
    --warn: #ff3366;
    --glass-bg: rgba(17, 24, 39, 0.35);
    --glass-border: rgba(255, 255, 255, 0.08);
    --text-main: #f3f4f6;
    --text-muted: #9ca3af;
}

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

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-color);
    color: var(--text-main);
    font-family: 'Courier New', Courier, monospace; /* Defaulting to the stylized terminal font */
    overflow-x: hidden;
    min-height: 100vh;
    position: relative;
    line-height: 1.6;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: 
        linear-gradient(rgba(0, 255, 102, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 255, 102, 0.03) 1px, transparent 1px);
    background-size: 30px 30px;
    z-index: -2;
}

/* Nav & Header Elements */
header {
    width: 100%;
    padding: 20px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--glass-border);
    background: rgba(3, 7, 18, 0.6);
    backdrop-filter: blur(10px);
    position: sticky;
    top: 0;
    z-index: 100;
}

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

.logo {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--primary);
    text-shadow: 0 0 10px var(--primary-glow);
    text-transform: uppercase;
    letter-spacing: 2px;
}

.system-status {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.status-dot {
    width: 8px;
    height: 8px;
    background-color: var(--primary);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--primary);
    animation: pulse 2s infinite;
}

/* Bento Grid Layout */
.bento-container {
    max-width: 1400px;
    margin: 40px auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-auto-rows: minmax(180px, auto);
    gap: 20px;
}

.bento-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 24px;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.bento-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(255,255,255,0.05) 0%, transparent 100%);
    pointer-events: none;
}

.bento-card:hover {
    transform: translateY(-5px);
    border-color: rgba(0, 255, 102, 0.3);
    box-shadow: 0 12px 40px 0 rgba(0, 255, 102, 0.1);
}

/* Grid Spanning Classes */
.span-2-col { grid-column: span 2; }
.span-3-col { grid-column: span 3; }
.span-4-col { grid-column: span 4; }
.span-2-row { grid-row: span 2; }

/* Card Content Typography */
.card-tag {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--accent);
    margin-bottom: 12px;
    display: block;
}

.card-title {
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: 12px;
    letter-spacing: -0.5px;
}

.card-desc {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.5;
}

/* Decorative Orbs */
.orb {
    position: fixed;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    filter: blur(120px);
    z-index: -1;
    opacity: 0.4;
    pointer-events: none;
}
.orb-1 { top: -10%; left: -10%; background: var(--primary-glow); }
.orb-2 { bottom: -10%; right: -10%; background: var(--accent-glow); }

/* Hero Component */
.hero-block {
    justify-content: center;
    background: linear-gradient(135deg, rgba(0, 255, 102, 0.05), rgba(17, 24, 39, 0.5));
}
.hero-block h1 {
    font-size: 2.5rem;
    line-height: 1.1;
    margin-bottom: 15px;
}
.hero-block h1 span {
    color: var(--primary);
    text-shadow: 0 0 15px var(--primary-glow);
}

/* Radar UI Widget */
.radar-container {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 150px;
    position: relative;
}
.radar-circle {
    border: 1px solid var(--primary-glow);
    border-radius: 50%;
    position: absolute;
    animation: radar-sweep 4s linear infinite;
}
.rc-1 { width: 130px; height: 130px; }
.rc-2 { width: 80px; height: 80px; }
.radar-crosshair {
    position: absolute;
    width: 100%;
    height: 1px;
    background: rgba(0, 255, 102, 0.15);
}
.rc-v { transform: rotate(90deg); }
.radar-target {
    position: absolute; 
    width: 6px; 
    height: 6px; 
    background: var(--warn); 
    border-radius: 50%; 
    top: 40%; 
    left: 65%; 
    box-shadow: 0 0 10px var(--warn);
}
.radar-warning {
    text-align: center; 
    display: block; 
    color: var(--warn);
}

/* Statistics UI Widget */
.stat-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    height: 100%;
    align-content: center;
}
.stat-box {
    padding-left: 10px;
}
.border-accent { border-left: 2px solid var(--accent); }
.border-primary { border-left: 2px solid var(--primary); }
.border-warn { border-left: 2px solid var(--warn); }

.stat-num {
    font-size: 1.8rem;
    font-weight: bold;
    color: var(--text-main);
}
.stat-label {
    font-size: 0.75rem;
    color: var(--text-muted);
}

/* Terminal Module UI Widget */
.terminal-block {
    background: rgba(5, 10, 20, 0.8);
}
.terminal-header {
    display: flex;
    gap: 6px;
    margin-bottom: 15px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    padding-bottom: 8px;
}
.terminal-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}
.td-1 { background: var(--warn); }
.td-2 { background: #ffcc00; }
.td-3 { background: var(--primary); }
.terminal-user {
    font-size: 0.75rem; 
    color: var(--text-muted); 
    margin-left: 10px;
}

.terminal-body {
    flex-grow: 1;
    font-size: 0.85rem;
    color: var(--primary);
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.terminal-input-line {
    display: flex;
    align-items: center;
    gap: 5px;
}
.terminal-input-line input {
    background: transparent;
    border: none;
    color: var(--text-main);
    outline: none;
    width: 100%;
    font-family: inherit;
}

/* Project Lists Widget */
.project-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 15px;
}
.project-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px;
    border-radius: 8px;
    background: rgba(255,255,255,0.02);
    border: 1px solid transparent;
    transition: 0.3s;
    cursor: pointer;
}
.project-item:hover {
    background: rgba(0, 217, 255, 0.05);
    border-color: rgba(0, 217, 255, 0.2);
}
.project-status {
    font-size: 0.75rem;
    padding: 2px 6px;
    border-radius: 4px;
    background: rgba(0, 255, 102, 0.1);
    color: var(--primary);
}

.fitness-text { font-size: 0.85rem; }
.stack-text { font-size: 0.85rem; color: var(--primary); }

/* Keyframe Animations */
@keyframes pulse {
    0%, 100% { opacity: 0.4; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.1); box-shadow: 0 0 15px var(--primary); }
}

@keyframes radar-sweep {
    from { transform: rotate(0deg); border-color: var(--primary); }
    to { transform: rotate(360deg); border-color: var(--primary-glow); }
}

/* Responsive Breakpoints */
@media (max-width: 1024px) {
    .bento-container {
        grid-template-columns: repeat(2, 1fr);
    }
    .span-4-col, .span-3-col { grid-column: span 2; }
}

@media (max-width: 640px) {
    header { padding: 20px; }
    .bento-container {
        grid-template-columns: 1fr;
        grid-auto-rows: auto;
    }
    .span-2-col, .span-3-col, .span-4-col { grid-column: span 1; }
    .span-2-row { grid-row: span 1; }
}

/* ==========================================
   Language Toggle Button Styling
   ========================================== */
.lang-btn {
    /* Reset default button appearance */
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    color: var(--text-muted);
    font-family: 'Courier New', Courier, monospace;
    font-size: 0.85rem;
    font-weight: bold;
    text-transform: uppercase;
    
    /* Layout and Spacing */
    padding: 6px 14px;
    margin-left: 15px; /* Spacing from the ENCRYPTED NODE text */
    border-radius: 4px;
    cursor: pointer;
    
    /* Smooth transition for hover effects */
    transition: all 0.2s ease-in-out;
    letter-spacing: 1px;
}

/* Hover State: Glow and Accent Color shift */
.lang-btn:hover {
    color: var(--primary);
    border-color: var(--primary);
    background: rgba(0, 255, 102, 0.05);
    box-shadow: 0 0 10px var(--primary-glow);
}

/* Active/Focus State: Interactive feedback */
.lang-btn:active {
    transform: scale(0.95);
    background: rgba(0, 255, 102, 0.15);
}

.lang-btn:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}


/* ==========================================
   Language Toggle Button Hardened Styling
   ========================================== */
.lang-btn {
    /* Completely strip native browser styling */
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    color: var(--text-muted);
    
    /* Layout & Alignment */
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 4px 12px;
    margin-left: 20px;
    border-radius: 4px;
    
    /* Typography */
    font-family: 'Courier New', Courier, monospace;
    font-size: 0.8rem;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
    
    /* Behavior */
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Hover State: Neon Glow Activation */
.lang-btn:hover {
    color: var(--primary);
    border-color: var(--primary);
    background: rgba(0, 255, 102, 0.05);
    box-shadow: 0 0 12px var(--primary-glow);
}

/* Active State: Feedback Click */
.lang-btn:active {
    transform: scale(0.96);
    background: rgba(0, 255, 102, 0.12);
}

/* Accessibility Focus State */
.lang-btn:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}


.system-status {
    display: flex;
    align-items: center;
    gap: 10px; /* Adjusts internal layout gaps easily */
}





