/* ==========================================================================
   KAMALRAJ NAIDU - PREMIUM PORTFOLIO DESIGN SYSTEM
   Theme: Dark Tech Cyberpunk / Mainframe Command Room
   ========================================================================== */

/* --- Design Tokens & Variables --- */
:root {
    --bg-base: #06070b;
    --bg-surface: #0a0c16;
    --bg-surface-glass: rgba(10, 12, 22, 0.45);
    --border-glass: rgba(255, 255, 255, 0.05);
    
    /* Sleek Vibrant Colors */
    --accent-purple: #9d4edd;
    --accent-purple-glow: rgba(157, 78, 221, 0.35);
    
    --accent-blue: #00b4d8;
    --accent-blue-glow: rgba(0, 180, 216, 0.35);
    
    --accent-cyan: #00f2fe;
    --accent-cyan-glow: rgba(0, 242, 254, 0.35);
    
    --accent-green: #39ff14;
    --accent-green-glow: rgba(57, 255, 20, 0.35);
    
    /* Text Palette */
    --text-primary: #e2e8f0;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;
    
    /* Fonts */
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    --font-cyber: 'Orbitron', sans-serif;
    --font-mono: 'Share Tech Mono', 'Fira Code', monospace;
    
    --transition-smooth: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

/* --- Base Reset & Setup --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scrollbar-width: thin;
    scrollbar-color: var(--accent-purple) var(--bg-base);
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
    font-size: 15px;
}

body {
    background-color: var(--bg-base);
    color: var(--text-primary);
    font-family: var(--font-sans);
    line-height: 1.6;
    overflow: hidden; /* App container handles internal scroll */
    min-height: 100vh;
}

/* Custom Scrollbars */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}
::-webkit-scrollbar-track {
    background: var(--bg-base);
}
::-webkit-scrollbar-thumb {
    background: var(--border-glass);
    border-radius: 3px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}
::-webkit-scrollbar-thumb:hover {
    background: var(--accent-purple);
}

a {
    color: var(--accent-cyan);
    text-decoration: none;
    transition: var(--transition-smooth);
}
a:hover {
    color: var(--text-primary);
    text-shadow: 0 0 8px var(--accent-cyan-glow);
}

/* --- Interactive Canvas Background --- */
#bg-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1;
    pointer-events: none;
    opacity: 0.15;
}

/* --- Cyberpunk Matrix Preloader --- */
.preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #020205;
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    transition: opacity 0.8s ease;
}
#preloader-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    opacity: 0.35;
}
.loader-content {
    position: relative;
    z-index: 2;
    text-align: center;
    width: 90%;
    max-width: 450px;
}
.loader-bar {
    width: 100%;
    height: 6px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    overflow: hidden;
    margin: 20px 0;
    box-shadow: 0 0 10px rgba(157, 78, 221, 0.1);
}
.loader-progress {
    width: 0%;
    height: 100%;
    background: linear-gradient(90deg, var(--accent-purple), var(--accent-cyan));
    box-shadow: 0 0 12px var(--accent-cyan-glow);
    transition: width 0.1s ease;
}
.loader-status {
    font-family: var(--font-mono);
    color: var(--accent-cyan);
    font-size: 0.85rem;
    letter-spacing: 2px;
    text-transform: uppercase;
}

/* --- Layout Grid --- */
.app-container {
    display: flex;
    width: 100vw;
    height: 100vh;
    overflow: hidden;
    position: relative;
}

/* --- Sidebar Navigation --- */
.sidebar {
    width: 280px;
    background: linear-gradient(180deg, #090b14 0%, #05060a 100%);
    border-right: 1px solid var(--border-glass);
    display: flex;
    flex-direction: column;
    z-index: 10;
    flex-shrink: 0;
}

.sidebar-header {
    padding: 24px;
    border-bottom: 1px solid var(--border-glass);
}
.logo-area {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 20px;
}
.pulse-indicator {
    width: 8px;
    height: 8px;
    background: var(--accent-green);
    border-radius: 50%;
    box-shadow: 0 0 8px var(--accent-green);
    animation: pulse 1.8s infinite;
}
.logo-text {
    font-family: var(--font-cyber);
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: 2px;
    background: linear-gradient(90deg, var(--accent-purple), var(--accent-cyan));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
.profile-summary {
    text-align: center;
}
.profile-pic-placeholder {
    width: 80px;
    height: 80px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-glass);
    border-radius: 50%;
    margin: 0 auto 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.2rem;
    color: var(--accent-purple);
    box-shadow: inset 0 0 15px rgba(157, 78, 221, 0.1), 0 0 15px rgba(0, 0, 0, 0.3);
    position: relative;
}
.profile-pic-placeholder::after {
    content: '';
    position: absolute;
    top: -2px; left: -2px; right: -2px; bottom: -2px;
    border-radius: 50%;
    border: 1px solid transparent;
    border-top-color: var(--accent-cyan);
    animation: rotate 4s linear infinite;
}
.profile-summary h2 {
    font-family: var(--font-cyber);
    font-size: 1rem;
    letter-spacing: 1px;
    margin-bottom: 4px;
}
.profile-summary .subtitle {
    color: var(--text-secondary);
    font-size: 0.78rem;
    font-weight: 500;
}

.sidebar-nav {
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex-grow: 1;
    overflow-y: auto;
}
.nav-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    color: var(--text-secondary);
    font-size: 0.88rem;
    font-weight: 500;
    border-radius: 8px;
    border: 1px solid transparent;
    transition: var(--transition-smooth);
}
.nav-link i {
    width: 18px;
    font-size: 1rem;
    text-align: center;
}
.nav-link:hover {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.02);
    border-color: rgba(255, 255, 255, 0.03);
    transform: translateX(4px);
}
.nav-link.active {
    color: var(--accent-cyan);
    background: rgba(0, 242, 254, 0.06);
    border-color: rgba(0, 242, 254, 0.15);
    box-shadow: inset 0 0 10px rgba(0, 242, 254, 0.03);
}
.nav-link.special-link {
    border: 1px solid rgba(157, 78, 221, 0.2);
    background: rgba(157, 78, 221, 0.03);
    margin-top: auto;
}
.nav-link.special-link:hover {
    color: var(--accent-purple);
    border-color: var(--accent-purple);
    background: rgba(157, 78, 221, 0.08);
}
.nav-link.special-link.active {
    color: #fff;
    background: var(--accent-purple);
    border-color: var(--accent-purple);
    box-shadow: 0 0 15px var(--accent-purple-glow);
}

.sidebar-footer {
    padding: 16px;
    border-top: 1px solid var(--border-glass);
    background: rgba(0,0,0,0.2);
}
.sys-metrics {
    font-family: var(--font-mono);
    font-size: 0.72rem;
    margin-bottom: 12px;
}
.metric-row {
    display: flex;
    justify-content: space-between;
    padding: 3px 0;
}
.metric-row span:first-child {
    color: var(--text-muted);
}
.metric-value {
    color: var(--accent-cyan);
}
.metric-value.text-green {
    color: var(--accent-green);
}
.social-links {
    display: flex;
    justify-content: space-between;
    gap: 8px;
}
.social-links a {
    flex-grow: 1;
    height: 32px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-glass);
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    color: var(--text-secondary);
}
.social-links a:hover {
    color: var(--accent-cyan);
    border-color: var(--accent-cyan);
    background: rgba(0, 242, 254, 0.04);
}

/* --- Main Workspace Elements --- */
.main-content {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    height: 100%;
    overflow: hidden;
    position: relative;
}

.top-bar {
    height: 60px;
    border-bottom: 1px solid var(--border-glass);
    background: rgba(8, 10, 18, 0.6);
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 32px;
    z-index: 9;
}
.system-status-indicator {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-mono);
    font-size: 0.75rem;
    letter-spacing: 1px;
}
.status-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
}
.status-dot.green {
    background: var(--accent-green);
    box-shadow: 0 0 6px var(--accent-green);
}
.status-text {
    color: var(--text-secondary);
}
.clock-widget {
    font-family: var(--font-mono);
    color: var(--accent-cyan);
    font-size: 0.85rem;
    letter-spacing: 1px;
}

/* --- Content Viewport & Sections --- */
.content-viewport {
    flex-grow: 1;
    overflow-y: auto;
    padding: 32px;
    position: relative;
}

.content-section {
    display: none;
    animation: fadeIn 0.4s cubic-bezier(0.25, 0.8, 0.25, 1) forwards;
}
.content-section.active {
    display: block;
}

.section-header {
    margin-bottom: 24px;
    border-left: 3px solid var(--accent-purple);
    padding-left: 16px;
}
.section-title {
    font-family: var(--font-cyber);
    font-size: 1.6rem;
    letter-spacing: 2px;
    font-weight: 800;
    color: #fff;
    text-shadow: 0 0 15px rgba(255, 255, 255, 0.05);
}
.section-subtitle {
    color: var(--text-secondary);
    font-size: 0.85rem;
    margin-top: 4px;
}

/* --- Glassmorphic UI Card System --- */
.glass {
    background: var(--bg-surface-glass);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--border-glass);
    border-radius: 12px;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.35);
    position: relative;
    overflow: hidden;
}

.card-glow-accent {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
}
.card-glow-accent.purple { background: linear-gradient(90deg, transparent, var(--accent-purple), transparent); }
.card-glow-accent.blue { background: linear-gradient(90deg, transparent, var(--accent-blue), transparent); }
.card-glow-accent.green { background: linear-gradient(90deg, transparent, var(--accent-green), transparent); }
.card-glow-accent.cyan { background: linear-gradient(90deg, transparent, var(--accent-cyan), transparent); }

/* --- SECTION 1: DASHBOARD --- */
.stat-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
    margin-bottom: 24px;
}
.stat-card {
    padding: 24px;
    display: flex;
    gap: 16px;
    align-items: center;
    transition: var(--transition-smooth);
}
.stat-card:hover {
    transform: translateY(-4px);
    border-color: rgba(255, 255, 255, 0.1);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.45);
}
.stat-icon {
    font-size: 2.2rem;
    color: var(--accent-cyan);
    opacity: 0.8;
}
.stat-info {
    display: flex;
    flex-direction: column;
}
.stat-label {
    font-size: 0.72rem;
    text-transform: uppercase;
    color: var(--text-muted);
    letter-spacing: 1px;
    font-weight: 600;
}
.stat-value {
    font-family: var(--font-cyber);
    font-size: 1.6rem;
    font-weight: 800;
    color: #fff;
    margin: 2px 0;
}
.stat-desc {
    font-size: 0.72rem;
    color: var(--text-secondary);
}

.dashboard-row {
    display: grid;
    grid-template-columns: 1.6fr 1fr;
    gap: 20px;
}
.dashboard-panel {
    display: flex;
    flex-direction: column;
    height: 380px;
}
.panel-header {
    padding: 16px 20px;
    border-bottom: 1px solid var(--border-glass);
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(0,0,0,0.1);
}
.panel-header h3 {
    font-family: var(--font-cyber);
    font-size: 0.82rem;
    letter-spacing: 1px;
    font-weight: 700;
}
.panel-controls {
    display: flex;
    gap: 6px;
}
.control-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
}
.control-dot.red { background: #ff5f56; }
.control-dot.yellow { background: #ffbd2e; }
.control-dot.green { background: #27c93f; }

.panel-body {
    padding: 20px;
    flex-grow: 1;
    overflow-y: auto;
}

/* Console Log Feed widget */
.console-log-feed {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--text-secondary);
    display: flex;
    flex-direction: column;
    gap: 6px;
    background: rgba(0,0,0,0.2);
}
.log-line {
    word-break: break-all;
    line-height: 1.4;
    border-left: 2px solid transparent;
    padding-left: 8px;
}
.log-line.info { border-color: var(--accent-blue); }
.log-line.success { border-color: var(--accent-green); color: var(--accent-green); }
.log-line.warn { border-color: #e6c62c; color: #e6c62c; }
.log-timestamp {
    color: var(--text-muted);
    margin-right: 8px;
}

/* Clients Grid widget */
.clients-panel {
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.small-hint {
    font-size: 0.75rem;
    color: var(--text-muted);
}
.client-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}
.client-node {
    padding: 10px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-glass);
    border-radius: 6px;
    font-size: 0.76rem;
    text-align: center;
    cursor: pointer;
    font-weight: 500;
    transition: var(--transition-smooth);
}
.client-node:hover {
    border-color: var(--accent-purple);
    background: rgba(157, 78, 221, 0.05);
}
.client-node.active {
    border-color: var(--accent-cyan);
    background: rgba(0, 242, 254, 0.08);
    color: #fff;
    box-shadow: 0 0 10px rgba(0, 242, 254, 0.08);
}
.client-details-card {
    background: rgba(0,0,0,0.15);
    border: 1px solid var(--border-glass);
    border-radius: 8px;
    padding: 14px;
    margin-top: auto;
}
.detail-label {
    font-size: 0.65rem;
    letter-spacing: 1px;
    color: var(--text-muted);
    font-weight: 600;
}
.detail-value {
    font-family: var(--font-cyber);
    font-size: 0.95rem;
    font-weight: 700;
    color: #fff;
    margin-top: 4px;
}
.detail-env {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--accent-cyan);
    margin-top: 2px;
}

/* --- SECTION 2: BIOGRAPHY --- */
.bio-container {
    display: grid;
    grid-template-columns: 1.8fr 1fr;
    gap: 24px;
}
.bio-text {
    padding: 32px;
}
.terminal-decor {
    display: flex;
    justify-content: space-between;
    font-family: var(--font-mono);
    font-size: 0.7rem;
    color: var(--text-muted);
    border-bottom: 1px solid var(--border-glass);
    padding-bottom: 12px;
    margin-bottom: 24px;
}
.bio-text h3 {
    font-family: var(--font-cyber);
    font-size: 1.1rem;
    letter-spacing: 1.5px;
    color: var(--accent-cyan);
    margin-bottom: 16px;
}
.bio-text p {
    color: var(--text-secondary);
    margin-bottom: 16px;
    font-size: 0.92rem;
    text-align: justify;
}
.bio-text strong {
    color: #fff;
}

.bio-specs {
    padding: 24px;
    display: flex;
    flex-direction: column;
}
.bio-specs h3 {
    font-family: var(--font-cyber);
    font-size: 0.85rem;
    letter-spacing: 1px;
    margin-bottom: 20px;
    border-bottom: 1px solid var(--border-glass);
    padding-bottom: 10px;
}
.spec-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-bottom: 24px;
}
.spec-item {
    display: flex;
    flex-direction: column;
}
.spec-label {
    font-size: 0.68rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
}
.spec-value {
    font-size: 0.88rem;
    font-weight: 500;
    color: var(--text-primary);
    margin-top: 2px;
}
.terminal-action-btn {
    margin-top: auto;
}
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 14px 20px;
    border-radius: 8px;
    font-family: var(--font-cyber);
    font-size: 0.76rem;
    font-weight: 700;
    letter-spacing: 1px;
    cursor: pointer;
    transition: var(--transition-smooth);
}
.btn-cyber {
    background: rgba(157, 78, 221, 0.1);
    border: 1px solid var(--accent-purple);
    color: #fff;
    box-shadow: 0 0 15px rgba(157, 78, 221, 0.05);
}
.btn-cyber:hover {
    background: var(--accent-purple);
    box-shadow: 0 0 20px var(--accent-purple-glow);
    transform: translateY(-2px);
}

/* --- SECTION 3: EXPERIENCE --- */
.timeline {
    position: relative;
    padding-left: 32px;
}
.timeline::before {
    content: '';
    position: absolute;
    top: 0;
    left: 11px;
    width: 2px;
    height: 100%;
    background: linear-gradient(180deg, var(--accent-purple) 0%, var(--accent-blue) 50%, var(--accent-green) 100%);
}
.timeline-item {
    position: relative;
    margin-bottom: 24px;
    padding: 24px;
    transition: var(--transition-smooth);
}
.timeline-item:hover {
    border-color: rgba(255, 255, 255, 0.1);
    box-shadow: 0 8px 30px rgba(0,0,0,0.4);
}
.timeline-marker {
    position: absolute;
    left: -32px;
    top: 24px;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--bg-base);
    border: 2px solid var(--accent-purple);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    color: var(--text-primary);
    box-shadow: 0 0 10px var(--accent-purple-glow);
    z-index: 2;
}
.timeline-marker.purple { border-color: var(--accent-purple); box-shadow: 0 0 10px var(--accent-purple-glow); }
.timeline-marker.blue { border-color: var(--accent-blue); box-shadow: 0 0 10px var(--accent-blue-glow); }
.timeline-marker.green { border-color: var(--accent-green); box-shadow: 0 0 10px var(--accent-green-glow); }
.timeline-marker.cyan { border-color: var(--accent-cyan); box-shadow: 0 0 10px var(--accent-cyan-glow); }

.time-header {
    display: flex;
    flex-direction: column;
    border-bottom: 1px solid var(--border-glass);
    padding-bottom: 12px;
    margin-bottom: 16px;
}
.job-duration {
    font-family: var(--font-mono);
    color: var(--accent-cyan);
    font-size: 0.8rem;
    font-weight: 700;
}
.job-title {
    font-family: var(--font-cyber);
    font-size: 1.15rem;
    color: #fff;
    margin: 4px 0;
}
.company-name {
    color: var(--text-secondary);
    font-size: 0.88rem;
    font-weight: 600;
}
.job-bullets {
    padding-left: 18px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.job-bullets li {
    color: var(--text-secondary);
    font-size: 0.88rem;
    line-height: 1.5;
}
.job-bullets li strong {
    color: #fff;
}

/* --- SECTION 4: SKILLS --- */
.skills-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}
.skills-block {
    padding: 24px;
}
.skills-block h3 {
    font-family: var(--font-cyber);
    font-size: 0.95rem;
    letter-spacing: 1px;
    color: #fff;
    border-bottom: 1px solid var(--border-glass);
    padding-bottom: 14px;
    margin-bottom: 20px;
}
.skill-category {
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.skill-item {
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.skill-info {
    display: flex;
    justify-content: space-between;
    font-size: 0.82rem;
    font-weight: 500;
}
.skill-name {
    color: var(--text-secondary);
}
.skill-percent {
    font-family: var(--font-mono);
    color: var(--accent-cyan);
}
.skill-bar {
    width: 100%;
    height: 5px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 4px;
    overflow: hidden;
}
.skill-progress {
    height: 100%;
    border-radius: 4px;
    transition: width 1s ease-in-out;
}
.skill-progress.purple {
    background: linear-gradient(90deg, var(--accent-purple), var(--accent-blue));
    box-shadow: 0 0 8px var(--accent-purple-glow);
}
.skill-progress.cyan {
    background: linear-gradient(90deg, var(--accent-blue), var(--accent-cyan));
    box-shadow: 0 0 8px var(--accent-cyan-glow);
}

/* --- SECTION 5: EDUCATION --- */
.education-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    margin-bottom: 24px;
}
.edu-card {
    padding: 24px;
}
.edu-header {
    border-bottom: 1px solid var(--border-glass);
    padding-bottom: 12px;
    margin-bottom: 14px;
}
.edu-date {
    font-family: var(--font-mono);
    font-size: 0.78rem;
    color: var(--accent-cyan);
    font-weight: 700;
}
.edu-degree {
    font-family: var(--font-cyber);
    font-size: 0.98rem;
    color: #fff;
    margin: 4px 0 2px;
}
.edu-school {
    color: var(--text-secondary);
    font-size: 0.8rem;
    font-weight: 500;
}
.edu-body p {
    font-size: 0.84rem;
    color: var(--text-secondary);
    margin-bottom: 10px;
}
.edu-body ul {
    padding-left: 16px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    font-size: 0.8rem;
    color: var(--text-muted);
}
.edu-body ul strong {
    color: var(--text-secondary);
}

.leadership-section {
    padding: 24px;
}
.leadership-section h3 {
    font-family: var(--font-cyber);
    font-size: 0.92rem;
    letter-spacing: 1px;
    color: #fff;
    border-bottom: 1px solid var(--border-glass);
    padding-bottom: 12px;
    margin-bottom: 20px;
}
.leader-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}
.leader-point {
    display: flex;
    gap: 16px;
}
.point-num {
    font-family: var(--font-cyber);
    font-size: 1.4rem;
    font-weight: 900;
    color: var(--accent-purple);
    line-height: 1;
}
.point-content h4 {
    font-family: var(--font-cyber);
    font-size: 0.85rem;
    color: var(--text-primary);
    margin-bottom: 6px;
}
.point-content p {
    font-size: 0.82rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

/* --- SECTION 6: CONSOLE CONTROL ROOM (SPECIAL SIMULATION) --- */
.console-selector {
    display: flex;
    gap: 12px;
    margin-bottom: 16px;
}
.selector-btn {
    flex-grow: 1;
    padding: 12px;
    background: rgba(255,255,255,0.02);
    border: 1px solid var(--border-glass);
    color: var(--text-secondary);
    font-family: var(--font-cyber);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 1px;
    border-radius: 6px;
    cursor: pointer;
    transition: var(--transition-smooth);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}
.selector-btn:hover {
    color: #fff;
    border-color: rgba(255,255,255,0.1);
    background: rgba(255,255,255,0.04);
}
.selector-btn.active {
    background: rgba(0, 242, 254, 0.08);
    border-color: var(--accent-cyan);
    color: #fff;
    box-shadow: 0 0 15px rgba(0, 242, 254, 0.1);
}

.terminal-wrapper {
    background: #020306;
    border: 1px solid #1a1e2d;
    border-radius: 12px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 15px 45px rgba(0, 0, 0, 0.6);
}

/* Bezel scanline overlay */
.crt-overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: radial-gradient(circle, transparent 70%, rgba(0, 0, 0, 0.45) 100%);
    pointer-events: none;
    z-index: 4;
}
.scanlines {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(rgba(18, 16, 16, 0) 50%, rgba(0, 0, 0, 0.3) 50%);
    background-size: 100% 4px;
    z-index: 3;
    pointer-events: none;
    animation: scroll-scanline 20s linear infinite;
}

.terminal-titlebar {
    background: #0b0d18;
    height: 38px;
    border-bottom: 1px solid #141724;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 16px;
    z-index: 5;
    position: relative;
}
.term-status-group {
    display: flex;
    align-items: center;
    gap: 8px;
}
.term-glow-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
}
.term-glow-dot.green {
    background: var(--accent-cyan);
    box-shadow: 0 0 6px var(--accent-cyan);
}
.term-glow-dot.green-m {
    background: var(--accent-green);
    box-shadow: 0 0 6px var(--accent-green);
}
.term-title-text {
    font-family: var(--font-mono);
    font-size: 0.72rem;
    color: var(--text-secondary);
    letter-spacing: 0.5px;
}
.term-buttons {
    display: flex;
    gap: 6px;
}
.term-btn {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #282a36;
}

.terminal-screen {
    height: 480px;
    padding: 24px;
    overflow-y: auto;
    position: relative;
    z-index: 2;
}

/* --- Mode Transitions --- */
.terminal-screen.mode-ssh {
    font-family: var(--font-mono);
    color: var(--text-primary);
}
.terminal-screen.mode-mainframe {
    font-family: var(--font-mono);
    color: var(--accent-green);
    text-shadow: 0 0 6px var(--accent-green-glow);
}

.ssh-screen-view, .mainframe-screen-view {
    display: flex;
    flex-direction: column;
    height: 100%;
}
.hidden {
    display: none !important;
}

/* SSH Elements */
.terminal-output {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    gap: 6px;
    overflow-y: auto;
    margin-bottom: 12px;
}
.out-line {
    word-break: break-all;
    white-space: pre-wrap;
    line-height: 1.4;
}
.terminal-input-line {
    display: flex;
    align-items: center;
    gap: 10px;
}
.terminal-prompt {
    color: var(--accent-purple);
    white-space: nowrap;
}
.terminal-input {
    flex-grow: 1;
    background: transparent;
    border: none;
    outline: none;
    color: #fff;
    font-family: var(--font-mono);
    font-size: 0.95rem;
}

/* Mainframe/AS400 specific styles */
.mainframe-header {
    border-bottom: 2px solid var(--accent-green);
    padding-bottom: 10px;
    margin-bottom: 16px;
    font-family: var(--font-mono);
    font-size: 0.72rem;
    display: flex;
    justify-content: space-between;
}
.mainframe-output-area {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
    overflow-y: auto;
    margin-bottom: 16px;
    font-family: var(--font-mono);
    font-size: 0.8rem;
}
.m-line {
    white-space: pre-wrap;
    line-height: 1.4;
}
.ibm-ascii-art {
    color: var(--accent-green);
    margin-bottom: 12px;
    line-height: 1.1;
}
.mainframe-command-line {
    display: flex;
    align-items: center;
    gap: 12px;
    border-top: 1px solid rgba(57, 255, 20, 0.2);
    padding-top: 12px;
}
.m-prompt {
    color: var(--accent-green);
    font-weight: 700;
}
.m-input {
    flex-grow: 1;
    background: transparent;
    border: none;
    outline: none;
    color: var(--accent-green);
    font-family: var(--font-mono);
    font-size: 0.9rem;
    text-shadow: 0 0 4px var(--accent-green);
    text-transform: uppercase;
}
.mainframe-footer-menu {
    border-top: 2px solid var(--accent-green);
    padding-top: 8px;
    margin-top: auto;
    display: flex;
    justify-content: space-between;
    font-size: 0.65rem;
    color: var(--accent-green);
    opacity: 0.8;
}

/* --- Animations & Effects --- */
@keyframes pulse {
    0% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.3); opacity: 0.5; }
    100% { transform: scale(1); opacity: 1; }
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes scroll-scanline {
    0% { background-position: 0 0; }
    100% { background-position: 0 100%; }
}

/* Pulsing text utility */
.text-pulse {
    animation: text-glow 2s infinite alternate;
}
@keyframes text-glow {
    0% { text-shadow: 0 0 2px rgba(255, 255, 255, 0.1); }
    100% { text-shadow: 0 0 8px rgba(157, 78, 221, 0.4); }
}

/* Text glow colors */
.text-cyan { color: var(--accent-cyan); text-shadow: 0 0 4px var(--accent-cyan-glow); }
.text-purple { color: var(--accent-purple); text-shadow: 0 0 4px var(--accent-purple-glow); }
.text-green { color: var(--accent-green); text-shadow: 0 0 4px var(--accent-green-glow); }
.text-yellow { color: #f1c40f; text-shadow: 0 0 4px rgba(241, 196, 15, 0.2); }

/* Retro Glitch Header Animation */
.glitch {
    position: relative;
    font-family: var(--font-cyber);
    font-size: 1.8rem;
    font-weight: 900;
    letter-spacing: 3px;
    color: #fff;
}
.glitch::before, .glitch::after {
    content: attr(data-text);
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: #020205;
}
.glitch::before {
    left: 2px;
    text-shadow: -2px 0 var(--accent-cyan);
    clip: rect(44px, 450px, 56px, 0);
    animation: glitch-anim 5s infinite linear alternate-reverse;
}
.glitch::after {
    left: -2px;
    text-shadow: -2px 0 var(--accent-purple);
    clip: rect(85px, 450px, 140px, 0);
    animation: glitch-anim2 5s infinite linear alternate-reverse;
}
@keyframes glitch-anim {
    0% { clip: rect(15px, 9999px, 66px, 0); }
    100% { clip: rect(34px, 9999px, 55px, 0); }
}
@keyframes glitch-anim2 {
    0% { clip: rect(70px, 9999px, 105px, 0); }
    100% { clip: rect(12px, 9999px, 85px, 0); }
}

/* --- Responsive Adjustments --- */
@media (max-width: 1024px) {
    .app-container {
        flex-direction: column;
        height: auto;
        overflow-y: auto;
    }
    .sidebar {
        width: 100%;
        height: auto;
        border-right: none;
        border-bottom: 1px solid var(--border-glass);
    }
    body {
        overflow: auto;
    }
    .main-content {
        height: auto;
        overflow: visible;
    }
    .dashboard-row {
        grid-template-columns: 1fr;
    }
    .bio-container {
        grid-template-columns: 1fr;
    }
    .skills-wrapper {
        grid-template-columns: 1fr;
    }
    .education-grid {
        grid-template-columns: 1fr;
    }
    .leader-grid {
        grid-template-columns: 1fr;
    }
}
