/* ==========================================================================
   JAMAL ABOULAALA - ENTERPRISE IT SYSTEM & NETWORK ADMINISTRATOR
   Design System: Sleek Enterprise Dark Glassmorphism, Genius CLI & i18n
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Fira+Code:wght@300;400;500;600;700&family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&family=Space+Grotesk:wght@400;500;600;700&display=swap');

:root {
    --bg-primary: #06090e;
    --bg-secondary: #0b0f19;
    --bg-card: rgba(14, 20, 32, 0.82);
    --bg-card-hover: rgba(22, 31, 50, 0.9);
    --border-color: rgba(0, 240, 255, 0.18);
    --border-hover: rgba(0, 240, 255, 0.55);

    --accent-cyan: #00f0ff;
    --accent-blue: #2563eb;
    --accent-purple: #7c3aed;
    --accent-green: #10b981;
    --accent-amber: #f59e0b;
    --accent-red: #ef4444;

    --text-main: #f8fafc;
    --text-muted: #94a3b8;
    --text-dim: #64748b;

    --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-heading: 'Space Grotesk', sans-serif;
    --font-mono: 'Fira Code', monospace;

    --glow-cyan: 0 0 25px rgba(0, 240, 255, 0.3);
    --glow-green: 0 0 25px rgba(16, 185, 129, 0.3);
    --shadow-card: 0 16px 40px -10px rgba(0, 0, 0, 0.6);

    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 18px;
    --radius-xl: 24px;
}

/* Green Matrix Theme */
body.theme-matrix {
    --accent-cyan: #10b981;
    --accent-blue: #059669;
    --border-color: rgba(16, 185, 129, 0.25);
    --glow-cyan: 0 0 25px rgba(16, 185, 129, 0.35);
}

/* Red Cyber Security Theme */
body.theme-cyber-red {
    --accent-cyan: #ef4444;
    --accent-blue: #dc2626;
    --border-color: rgba(239, 68, 68, 0.25);
    --glow-cyan: 0 0 25px rgba(239, 68, 68, 0.35);
}

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

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

body {
    background-color: var(--bg-primary);
    color: var(--text-main);
    font-family: var(--font-sans);
    line-height: 1.6;
    overflow-x: hidden;
    min-height: 100vh;
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}
::-webkit-scrollbar-track {
    background: var(--bg-primary);
}
::-webkit-scrollbar-thumb {
    background: rgba(0, 240, 255, 0.25);
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--accent-cyan);
}

/* Canvas Backgrounds */
#matrix-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1;
    opacity: 0.12;
    pointer-events: none;
}

.grid-bg-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(rgba(0, 240, 255, 0.025) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 240, 255, 0.025) 1px, transparent 1px);
    background-size: 50px 50px;
    z-index: -1;
    pointer-events: none;
}

/* Glassmorphism Panel */
.glass-panel {
    background: var(--bg-card);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-card);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.glass-panel:hover {
    border-color: var(--border-hover);
    box-shadow: var(--shadow-card), var(--glow-cyan);
}

/* ==========================================================================
   FIRST-LOAD LANGUAGE SELECTION OVERLAY MODAL
   ========================================================================== */
.lang-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(4, 7, 12, 0.94);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.25rem;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.lang-modal-overlay.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.lang-modal-card {
    max-width: 580px;
    width: 100%;
    padding: 2.25rem 1.75rem;
    text-align: center;
    border: 1px solid var(--accent-cyan);
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.9), var(--glow-cyan);
    border-radius: var(--radius-lg);
    background: linear-gradient(180deg, rgba(14, 20, 32, 0.95), rgba(6, 9, 14, 0.98));
    animation: modalSlideUp 0.4s ease-out;
}

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

.lang-modal-header {
    margin-bottom: 1.75rem;
}

.lang-modal-icon {
    width: 52px;
    height: 52px;
    border-radius: 12px;
    background: rgba(0, 240, 255, 0.12);
    border: 1px solid var(--accent-cyan);
    color: var(--accent-cyan);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    margin-bottom: 0.85rem;
}

.lang-modal-title {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 800;
    color: #fff;
    margin-bottom: 0.35rem;
}

.lang-modal-subtitle {
    font-family: var(--font-mono);
    font-size: 0.82rem;
    color: var(--accent-cyan);
}

.lang-options-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin-bottom: 1.25rem;
}

.lang-card-option {
    background: rgba(255, 255, 255, 0.035);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 1.25rem 0.75rem;
    cursor: pointer;
    transition: all 0.25s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.4rem;
}

.lang-card-option:hover {
    border-color: var(--accent-cyan);
    background: rgba(0, 240, 255, 0.12);
    transform: translateY(-4px);
    box-shadow: var(--glow-cyan);
}

.lang-flag {
    font-size: 2.2rem;
}

.lang-name {
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 700;
    color: #fff;
}

.lang-code {
    font-family: var(--font-mono);
    font-size: 0.72rem;
    color: var(--text-muted);
}

/* ==========================================================================
   HEADER & NAVBAR
   ========================================================================== */
.header-wrapper {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(6, 9, 14, 0.95);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border-color);
}

.navbar {
    width: 100%;
    max-width: 1600px;
    margin: 0 auto;
    padding: 0.45rem 1.25rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.75rem;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    color: #fff;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.05rem;
    white-space: nowrap;
    flex-shrink: 0;
}

.brand-icon {
    width: 32px;
    height: 32px;
    border-radius: 6px;
    background: rgba(0, 240, 255, 0.1);
    border: 1px solid var(--accent-cyan);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-cyan);
    font-size: 0.9rem;
}

.brand-badge {
    background: rgba(16, 185, 129, 0.15);
    color: var(--accent-green);
    border: 1px solid var(--accent-green);
    font-family: var(--font-mono);
    font-size: 0.68rem;
    padding: 0.1rem 0.4rem;
    border-radius: 4px;
    font-weight: 600;
}

/* Navigation Links */
.nav-links {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    list-style: none;
    margin: 0;
    padding: 0;
    flex-wrap: nowrap;
}

.nav-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.78rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.35rem;
    transition: all 0.2s ease;
    white-space: nowrap;
    padding: 0.2rem 0.4rem;
    border-radius: 4px;
}

.nav-links a i {
    font-size: 0.8rem;
    color: var(--accent-cyan);
}

.nav-links a:hover,
.nav-links a.active {
    color: #fff;
    background: rgba(0, 240, 255, 0.08);
    text-shadow: 0 0 8px rgba(0, 240, 255, 0.5);
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    flex-shrink: 0;
}

/* Language Selector Dropdown with Flags */
.lang-dropdown {
    background: var(--bg-secondary);
    color: var(--text-main);
    border: 1px solid var(--border-color);
    padding: 0.35rem 0.5rem;
    border-radius: var(--radius-sm);
    font-family: var(--font-mono);
    font-size: 0.72rem;
    font-weight: 700;
    cursor: pointer;
    outline: none;
    transition: all 0.25s ease;
}

.lang-dropdown:hover {
    border-color: var(--accent-cyan);
    box-shadow: 0 0 10px rgba(0, 240, 255, 0.2);
}

.btn-header-cv {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.2), rgba(0, 240, 255, 0.2));
    border: 1px solid var(--accent-green);
    color: var(--accent-green);
    padding: 0.35rem 0.75rem;
    border-radius: var(--radius-sm);
    font-family: var(--font-mono);
    font-size: 0.75rem;
    font-weight: 600;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.35rem;
    transition: all 0.25s ease;
    white-space: nowrap;
}

.btn-header-cv:hover {
    background: var(--accent-green);
    color: #000;
    box-shadow: var(--glow-green);
}

.btn-toggle-cli {
    background: rgba(0, 240, 255, 0.1);
    border: 1px solid var(--accent-cyan);
    color: var(--accent-cyan);
    padding: 0.35rem 0.75rem;
    border-radius: var(--radius-sm);
    font-family: var(--font-mono);
    font-size: 0.75rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.35rem;
    transition: all 0.25s ease;
    white-space: nowrap;
}

.btn-toggle-cli:hover {
    background: var(--accent-cyan);
    color: #050811;
    box-shadow: var(--glow-cyan);
}

.theme-dropdown {
    background: var(--bg-secondary);
    color: var(--text-muted);
    border: 1px solid var(--border-color);
    padding: 0.35rem 0.5rem;
    border-radius: var(--radius-sm);
    font-family: var(--font-mono);
    font-size: 0.72rem;
    cursor: pointer;
    outline: none;
}

.mobile-menu-btn {
    display: none;
    background: transparent;
    border: 1px solid var(--border-color);
    color: var(--text-main);
    padding: 0.35rem 0.6rem;
    border-radius: var(--radius-sm);
    font-size: 1rem;
    cursor: pointer;
}

/* MAIN CONTAINER */
.main-wrapper {
    margin-top: 60px;
}

.container {
    max-width: 1350px;
    margin: 0 auto;
    padding: 1.75rem 1.25rem;
}

/* HERO SECTION - EXECUTIVE STYLE */
.hero-section {
    display: grid;
    grid-template-columns: 310px 1fr;
    gap: 1.75rem;
    align-items: stretch;
    margin-bottom: 2.5rem;
}

.hero-profile-card {
    padding: 1.75rem 1.25rem;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
}

.avatar-container {
    position: relative;
    width: 170px;
    height: 170px;
    margin-bottom: 1rem;
}

.avatar-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    border: 3px solid var(--accent-cyan);
    box-shadow: var(--glow-cyan);
}

.avatar-status-badge {
    position: absolute;
    bottom: 5px;
    right: 5px;
    background: #06090e;
    border: 2px solid var(--accent-green);
    border-radius: 50%;
    width: 22px;
    height: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.avatar-status-badge::after {
    content: '';
    width: 9px;
    height: 9px;
    background: var(--accent-green);
    border-radius: 50%;
    box-shadow: 0 0 8px var(--accent-green);
}

.profile-name {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 800;
    color: #fff;
    letter-spacing: -0.3px;
    margin-bottom: 0.2rem;
}

.profile-role-title {
    font-family: var(--font-mono);
    font-size: 0.82rem;
    color: var(--accent-cyan);
    margin-bottom: 0.9rem;
    font-weight: 500;
}

.profile-badges {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    width: 100%;
    margin-bottom: 1rem;
}

.badge-item {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.07);
    padding: 0.35rem 0.7rem;
    border-radius: 6px;
    font-size: 0.76rem;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 0.45rem;
    text-align: left;
}

.badge-item i {
    color: var(--accent-cyan);
    width: 15px;
}

.hero-profile-actions {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    width: 100%;
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent-cyan), var(--accent-blue));
    color: #050811;
    font-weight: 700;
    border: none;
    padding: 0.7rem 1.1rem;
    border-radius: var(--radius-sm);
    cursor: pointer;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    font-size: 0.85rem;
    transition: all 0.25s ease;
    box-shadow: var(--glow-cyan);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 30px rgba(0, 240, 255, 0.5);
}

.btn-secondary {
    background: rgba(16, 185, 129, 0.15);
    color: var(--accent-green);
    border: 1px solid var(--accent-green);
    font-weight: 700;
    padding: 0.7rem 1.1rem;
    border-radius: var(--radius-sm);
    cursor: pointer;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    font-size: 0.85rem;
    transition: all 0.25s ease;
}

.btn-secondary:hover {
    background: var(--accent-green);
    color: #050811;
    box-shadow: var(--glow-green);
}

.btn-outline {
    background: transparent;
    color: var(--text-main);
    border: 1px solid var(--border-color);
    padding: 0.65rem 1.1rem;
    border-radius: var(--radius-sm);
    cursor: pointer;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    font-size: 0.82rem;
    font-weight: 600;
    transition: all 0.25s ease;
}

.btn-outline:hover {
    border-color: var(--accent-cyan);
    color: var(--accent-cyan);
    background: rgba(0, 240, 255, 0.08);
}

/* HERO MAIN BIO CARD */
.hero-bio-card {
    padding: 2rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.hero-bio-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1.1rem;
}

.hero-bio-header h1 {
    font-family: var(--font-heading);
    font-size: 2.1rem;
    color: #fff;
    line-height: 1.2;
    margin-bottom: 0.35rem;
}

.hero-bio-header p {
    font-family: var(--font-mono);
    color: var(--accent-cyan);
    font-size: 0.95rem;
}

.verified-stamp {
    background: rgba(0, 240, 255, 0.1);
    border: 1px solid var(--accent-cyan);
    color: var(--accent-cyan);
    font-family: var(--font-mono);
    font-size: 0.72rem;
    padding: 0.35rem 0.75rem;
    border-radius: 20px;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    white-space: nowrap;
}

.bio-paragraph {
    color: var(--text-muted);
    font-size: 1rem;
    line-height: 1.7;
    margin-bottom: 1.25rem;
}

.bio-paragraph strong {
    color: #fff;
}

/* Executive Stats Highlight */
.executive-stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.85rem;
    margin-bottom: 1.25rem;
}

.exec-stat-card {
    background: rgba(6, 9, 14, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-sm);
    padding: 0.85rem;
    text-align: center;
}

.exec-stat-val {
    font-family: var(--font-heading);
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--accent-cyan);
}

.exec-stat-lbl {
    font-size: 0.7rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: 0.15rem;
}

.tech-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
}

.pill {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    background: rgba(255, 255, 255, 0.035);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-muted);
    padding: 0.25rem 0.65rem;
    border-radius: 6px;
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

.pill i {
    color: var(--accent-cyan);
}

/* SECTION TITLES */
.section-header {
    margin: 3rem 0 1.75rem 0;
}

.section-header h2 {
    font-family: var(--font-heading);
    font-size: 1.7rem;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.section-header h2::after {
    content: '';
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, var(--border-color), transparent);
    margin-left: 1rem;
}

/* TOPOLOGY SECTION */
.topology-container {
    padding: 1.5rem;
}

.topology-header-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    font-family: var(--font-mono);
    font-size: 0.82rem;
}

#topology-canvas {
    width: 100%;
    height: 380px;
    background: rgba(4, 7, 12, 0.95);
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-color);
    cursor: crosshair;
}

.topology-info-box {
    margin-top: 1rem;
    background: rgba(0, 0, 0, 0.5);
    padding: 1rem;
    border-radius: var(--radius-sm);
    border-left: 4px solid var(--accent-cyan);
    font-family: var(--font-mono);
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* TERMINAL WRAPPER */
.terminal-wrapper {
    margin: 2rem 0;
    border: 1px solid var(--accent-cyan);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.8), var(--glow-cyan);
    border-radius: var(--radius-md);
    overflow: hidden;
    background: #04070c;
}

.terminal-header {
    background: #0d121c;
    padding: 0.75rem 1.1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(0, 240, 255, 0.2);
}

.terminal-dots {
    display: flex;
    gap: 0.4rem;
}

.dot {
    width: 11px;
    height: 11px;
    border-radius: 50%;
}
.dot.red { background: #ef4444; }
.dot.yellow { background: #f59e0b; }
.dot.green { background: #10b981; }

.terminal-title {
    font-family: var(--font-mono);
    font-size: 0.82rem;
    color: var(--accent-cyan);
    display: flex;
    align-items: center;
    gap: 0.45rem;
}

.terminal-body {
    height: 450px;
    padding: 1.1rem;
    font-family: var(--font-mono);
    font-size: 0.88rem;
    overflow-y: auto;
    color: #10b981;
    line-height: 1.5;
}

.terminal-output {
    white-space: pre-wrap;
    word-break: break-word;
    margin-bottom: 0.5rem;
    overflow-x: auto;
}

.command-line {
    display: flex;
    align-items: center;
    gap: 0.45rem;
}

.prompt {
    color: var(--accent-cyan);
    white-space: nowrap;
    font-weight: 600;
}

.terminal-input {
    background: transparent;
    border: none;
    outline: none;
    color: #fff;
    font-family: var(--font-mono);
    font-size: 0.88rem;
    width: 100%;
}

/* SKILLS MATRIX */
.skills-filter {
    display: flex;
    gap: 0.6rem;
    margin-bottom: 1.25rem;
    flex-wrap: wrap;
}

.filter-btn {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    color: var(--text-muted);
    padding: 0.45rem 1rem;
    border-radius: 20px;
    font-family: var(--font-mono);
    font-size: 0.78rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.filter-btn:hover,
.filter-btn.active {
    background: rgba(0, 240, 255, 0.15);
    border-color: var(--accent-cyan);
    color: var(--accent-cyan);
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.1rem;
}

.skill-card {
    padding: 1.2rem;
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
}

.skill-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.skill-name {
    font-weight: 600;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 0.45rem;
}

.skill-badge {
    font-family: var(--font-mono);
    font-size: 0.68rem;
    padding: 0.12rem 0.45rem;
    border-radius: 4px;
    background: rgba(0, 240, 255, 0.1);
    color: var(--accent-cyan);
}

.skill-bar-bg {
    width: 100%;
    height: 6px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 3px;
    overflow: hidden;
}

.skill-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--accent-cyan), var(--accent-blue));
    border-radius: 3px;
}

.skill-desc {
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* EXPERIENCES TIMELINE */
.timeline {
    position: relative;
    padding-left: 2rem;
    margin: 1.25rem 0;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 7px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(180deg, var(--accent-cyan), var(--accent-purple), transparent);
}

.timeline-item {
    position: relative;
    margin-bottom: 1.75rem;
}

.timeline-dot {
    position: absolute;
    left: -2rem;
    top: 1.4rem;
    transform: translateX(-50%);
    width: 15px;
    height: 15px;
    border-radius: 50%;
    background: var(--bg-primary);
    border: 3px solid var(--accent-cyan);
    box-shadow: var(--glow-cyan);
}

.timeline-content {
    padding: 1.5rem;
}

.timeline-date {
    font-family: var(--font-mono);
    font-size: 0.78rem;
    color: var(--accent-cyan);
    margin-bottom: 0.35rem;
}

.timeline-title {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    color: #fff;
    margin-bottom: 0.2rem;
}

.timeline-company {
    font-size: 0.9rem;
    color: var(--text-muted);
    font-weight: 500;
    margin-bottom: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.timeline-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
    font-size: 0.88rem;
    color: var(--text-muted);
}

.timeline-list li {
    position: relative;
    padding-left: 1.2rem;
}

.timeline-list li::before {
    content: '▹';
    position: absolute;
    left: 0;
    color: var(--accent-cyan);
}

.tag-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
    margin-top: 1rem;
}

.tech-tag {
    font-family: var(--font-mono);
    font-size: 0.72rem;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-muted);
    padding: 0.18rem 0.55rem;
    border-radius: 4px;
}

/* CERTIFICATIONS GRID */
.grid-2 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: 1.25rem;
}

.cert-card {
    padding: 1.5rem;
    display: flex;
    gap: 1.1rem;
    align-items: flex-start;
}

.cert-icon {
    width: 46px;
    height: 46px;
    border-radius: var(--radius-sm);
    background: rgba(0, 240, 255, 0.1);
    border: 1px solid var(--accent-cyan);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-cyan);
    font-size: 1.35rem;
    flex-shrink: 0;
}

.cert-info h3 {
    font-size: 1.05rem;
    color: #fff;
    margin-bottom: 0.25rem;
}

.cert-issuer {
    font-family: var(--font-mono);
    font-size: 0.78rem;
    color: var(--accent-cyan);
    margin-bottom: 0.65rem;
}

.cert-list {
    list-style: none;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.cert-list li {
    margin-bottom: 0.35rem;
    display: flex;
    align-items: flex-start;
    gap: 0.45rem;
}

.cert-list li i {
    color: var(--accent-green);
    margin-top: 0.2rem;
}

/* FOOTER / CONTACT */
.footer-section {
    margin-top: 3.5rem;
    padding-top: 2.5rem;
    border-top: 1px solid var(--border-color);
}

.contact-box {
    padding: 2.5rem 1.75rem;
    text-align: center;
    background: linear-gradient(180deg, rgba(14, 20, 32, 0.85), rgba(6, 9, 14, 0.98));
}

.contact-box h2 {
    font-family: var(--font-heading);
    font-size: 1.9rem;
    color: #fff;
    margin-bottom: 0.65rem;
}

.contact-box p {
    color: var(--text-muted);
    max-width: 620px;
    margin: 0 auto 1.8rem auto;
    font-size: 1rem;
}

.contact-links {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 1.8rem;
}

.contact-btn {
    background: rgba(255, 255, 255, 0.035);
    border: 1px solid var(--border-color);
    color: var(--text-main);
    padding: 0.75rem 1.4rem;
    border-radius: var(--radius-sm);
    text-decoration: none;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.88rem;
    transition: all 0.25s ease;
}

.contact-btn:hover {
    border-color: var(--accent-cyan);
    color: var(--accent-cyan);
    transform: translateY(-2px);
    box-shadow: var(--glow-cyan);
}

.footer-copy {
    font-family: var(--font-mono);
    font-size: 0.78rem;
    color: var(--text-dim);
    margin-top: 1.75rem;
}

/* FULLSCREEN CLI MODE */
body.mode-cli-only .header-wrapper,
body.mode-cli-only .main-wrapper {
    display: none !important;
}

.fullscreen-cli {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 9999;
    background: #04060a;
    padding: 1.5rem;
    flex-direction: column;
}

body.mode-cli-only .fullscreen-cli {
    display: flex;
}

/* ==========================================================================
   ULTRA-OPTIMIZED RESPONSIVE DESIGN FOR SMARTPHONES & TABLETS
   ========================================================================== */
@media (max-width: 1280px) {
    .nav-links a {
        font-size: 0.75rem;
        padding: 0.15rem 0.3rem;
    }
    .btn-header-cv, .btn-toggle-cli, .lang-dropdown, .theme-dropdown {
        padding: 0.3rem 0.55rem;
        font-size: 0.72rem;
    }
}

@media (max-width: 1100px) {
    .mobile-menu-btn {
        display: block;
    }
    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: #0b0f19;
        flex-direction: column;
        padding: 1.25rem;
        border-bottom: 1px solid var(--border-color);
        gap: 0.75rem;
        box-shadow: 0 20px 30px rgba(0,0,0,0.85);
    }
    .nav-links.mobile-open {
        display: flex;
    }
    .hero-section {
        grid-template-columns: 1fr;
    }
    .hero-bio-header {
        flex-direction: column;
        gap: 0.65rem;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 1.25rem 0.85rem;
    }
    .hero-bio-card {
        padding: 1.5rem 1.1rem;
    }
    .hero-bio-header h1 {
        font-size: 1.6rem;
    }
    .executive-stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.65rem;
    }
    .exec-stat-val {
        font-size: 1.35rem;
    }
    .lang-options-grid {
        grid-template-columns: 1fr;
    }
    .grid-2 {
        grid-template-columns: 1fr;
    }
    #topology-canvas {
        height: 300px;
    }
    .terminal-body {
        height: 380px;
        padding: 0.85rem;
        font-size: 0.8rem;
    }
}

/* SMARTPHONE PHONES (iOS & Android <= 576px) */
@media (max-width: 576px) {
    html {
        font-size: 14px;
    }
    .navbar {
        padding: 0.4rem 0.75rem;
    }
    .brand-badge {
        display: none; /* Hide badge on very small screens to fit brand name */
    }
    .nav-brand {
        font-size: 0.95rem;
    }
    .theme-dropdown {
        display: none; /* Keep header clean on phones */
    }
    .btn-header-cv span, .btn-toggle-cli span {
        display: none; /* Show icons only on mobile header */
    }
    .btn-header-cv, .btn-toggle-cli {
        padding: 0.35rem 0.5rem;
    }
    .lang-dropdown {
        padding: 0.3rem 0.4rem;
        font-size: 0.75rem;
    }

    /* Hero Avatar & Cards on Phone */
    .avatar-container {
        width: 130px;
        height: 130px;
    }
    .profile-name {
        font-size: 1.35rem;
    }
    .hero-profile-card {
        padding: 1.25rem 0.85rem;
    }
    .hero-bio-card {
        padding: 1.25rem 0.85rem;
    }
    .hero-bio-header h1 {
        font-size: 1.35rem;
    }
    .bio-paragraph {
        font-size: 0.92rem;
    }

    /* Section Headers */
    .section-header {
        margin: 2rem 0 1.25rem 0;
    }
    .section-header h2 {
        font-size: 1.3rem;
    }

    /* Interactive Topology Canvas on Phone */
    #topology-canvas {
        height: 270px;
    }
    .topology-container {
        padding: 0.85rem;
    }
    .topology-header-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.35rem;
        font-size: 0.75rem;
    }

    /* Terminal Output on Phone */
    .terminal-wrapper {
        margin: 1.25rem 0;
    }
    .terminal-body {
        height: 340px;
        padding: 0.75rem;
        font-size: 0.76rem;
    }
    .terminal-title {
        font-size: 0.72rem;
    }

    /* Skills Grid */
    .skills-grid {
        grid-template-columns: 1fr;
    }
    .skills-filter {
        overflow-x: auto;
        white-space: nowrap;
        padding-bottom: 0.4rem;
        flex-wrap: nowrap;
    }
    .filter-btn {
        flex-shrink: 0;
        font-size: 0.72rem;
        padding: 0.35rem 0.75rem;
    }

    /* Timeline Experience */
    .timeline {
        padding-left: 1.2rem;
    }
    .timeline-dot {
        left: -1.2rem;
        width: 12px;
        height: 12px;
    }
    .timeline-content {
        padding: 1rem 0.85rem;
    }
    .timeline-title {
        font-size: 1.05rem;
    }

    /* Contact Links */
    .contact-links {
        flex-direction: column;
        width: 100%;
    }
    .contact-btn {
        width: 100%;
        justify-content: center;
    }

    /* Modal Overlay on Phone */
    .lang-modal-card {
        padding: 1.5rem 1rem;
    }
    .lang-modal-title {
        font-size: 1.25rem;
    }
    .lang-flag {
        font-size: 1.8rem;
    }
}
