/* ==========================================================================
   PORTFOLIO & CV - OUMLAL ELHOUSSAINE
   Technicien Systèmes & Réseaux | Support IT & Automatisation
   Modern Dark Cyber-Tech & Glassmorphism Design System
   ========================================================================== */

:root {
  /* Color Palette */
  --bg-dark: #070b13;
  --bg-primary: #0a0f1d;
  --bg-surface: #0f172a;
  --bg-card: rgba(15, 23, 42, 0.75);
  --bg-card-hover: rgba(30, 41, 59, 0.85);
  --bg-elevated: #1e293b;
  
  --accent-cyan: #00f0ff;
  --accent-cyan-glow: rgba(0, 240, 255, 0.35);
  --accent-emerald: #10b981;
  --accent-emerald-glow: rgba(16, 185, 129, 0.35);
  --accent-blue: #3b82f6;
  --accent-violet: #8b5cf6;
  --accent-amber: #f59e0b;
  --accent-rose: #f43f5e;
  
  /* Text */
  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --text-dim: #64748b;
  
  /* Borders & Shadows */
  --border-subtle: rgba(148, 163, 184, 0.12);
  --border-glow: rgba(0, 240, 255, 0.3);
  --border-emerald-glow: rgba(16, 185, 129, 0.3);
  --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.2);
  --shadow-lg: 0 10px 30px -5px rgba(0, 0, 0, 0.5);
  --shadow-glow: 0 0 25px rgba(0, 240, 255, 0.2);
  
  /* Fonts */
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', Consolas, monospace;
  --font-heading: 'Space Grotesk', var(--font-sans);
  
  --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-normal: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --radius-full: 9999px;
  
  --container-max: 1240px;
}

/* Light Theme — Comprehensive clean & modern light mode */
[data-theme="light"] {
  --bg-dark:            #f0f4f8;
  --bg-primary:         #f8fafc;
  --bg-surface:         #ffffff;
  --bg-card:            rgba(255, 255, 255, 0.95);
  --bg-card-hover:      #ffffff;
  --bg-elevated:        #e2e8f0;

  --text-main:          #0f172a;
  --text-muted:         #334155;
  --text-dim:           #64748b;

  --border-subtle:      rgba(15, 23, 42, 0.12);
  --border-glow:        rgba(0, 150, 180, 0.35);
  --border-emerald-glow:rgba(10, 140, 100, 0.3);
  --shadow-sm:          0 4px 6px -1px rgba(0, 0, 0, 0.07);
  --shadow-lg:          0 10px 30px -5px rgba(0, 0, 0, 0.12);
  --shadow-glow:        0 0 20px rgba(0, 150, 180, 0.12);

  --accent-cyan:        #0891b2;
  --accent-cyan-glow:   rgba(8, 145, 178, 0.25);
  --accent-emerald:     #059669;
  --accent-emerald-glow:rgba(5, 150, 105, 0.25);
  --accent-blue:        #2563eb;
  --accent-violet:      #7c3aed;
  --accent-amber:       #d97706;
  --accent-rose:        #e11d48;
}

/* Switch browser color scheme in light mode */
[data-theme="light"] html,
html[data-theme="light"] {
  color-scheme: light;
}

/* Body background in light mode */
[data-theme="light"] body {
  background-color: #f0f4f8;
  color: #0f172a;
}

/* Kill the dark grid overlay in light mode — use subtle pattern instead */
[data-theme="light"] body::before {
  background-image:
    linear-gradient(to right, rgba(15, 23, 42, 0.04) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(15, 23, 42, 0.04) 1px, transparent 1px);
}

/* Network canvas — lighter dots in light mode */
[data-theme="light"] #network-canvas {
  opacity: 0.25;
}

/* Site Header in Light Mode */
[data-theme="light"] .site-header {
  background: rgba(248, 250, 252, 0.92) !important;
  backdrop-filter: blur(16px) !important;
  border-bottom: 1px solid rgba(15, 23, 42, 0.08) !important;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04) !important;
}
[data-theme="light"] .site-header.scrolled {
  background: rgba(255, 255, 255, 0.98) !important;
  border-bottom-color: rgba(15, 23, 42, 0.12) !important;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08) !important;
}
[data-theme="light"] .brand-name {
  color: #0f172a !important;
}
[data-theme="light"] .brand-sub {
  color: #059669 !important;
}
[data-theme="light"] .logo-badge {
  background: linear-gradient(135deg, rgba(8, 145, 178, 0.15), rgba(5, 150, 105, 0.15)) !important;
  border-color: rgba(8, 145, 178, 0.3) !important;
  color: #0891b2 !important;
  box-shadow: 0 0 12px rgba(8, 145, 178, 0.15) !important;
}
[data-theme="light"] .nav-link {
  color: #334155 !important;
  font-weight: 600 !important;
}
[data-theme="light"] .nav-link:hover,
[data-theme="light"] .nav-link.active {
  color: #0891b2 !important;
}
[data-theme="light"] .nav-link::after {
  background: #0891b2 !important;
}
[data-theme="light"] .header-actions .btn-secondary,
[data-theme="light"] .header-actions .btn-icon {
  background: #ffffff !important;
  border: 1px solid rgba(15, 23, 42, 0.16) !important;
  color: #0f172a !important;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04) !important;
}

/* Hero section in Light Mode */
[data-theme="light"] .hero-section {
  background: linear-gradient(135deg, #f0f4f8 0%, #e2e8f0 50%, #eaf1f8 100%) !important;
}
[data-theme="light"] .hero-title {
  color: #0f172a !important;
}
[data-theme="light"] .hero-status-pill {
  background: #ffffff !important;
  border: 1px solid rgba(5, 150, 105, 0.35) !important;
  color: #065f46 !important;
  box-shadow: 0 2px 10px rgba(5, 150, 105, 0.08) !important;
}
[data-theme="light"] .hero-roles {
  color: #0284c7 !important;
  font-weight: 700 !important;
}
[data-theme="light"] .role-typing {
  color: #0284c7 !important;
}
[data-theme="light"] .typing-cursor {
  background-color: #0284c7 !important;
}
[data-theme="light"] .hero-bio {
  color: #334155 !important;
}
[data-theme="light"] .hero-stats {
  background: #ffffff !important;
  border: 1px solid rgba(15, 23, 42, 0.1) !important;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05) !important;
}
[data-theme="light"] .stat-number {
  color: #0891b2 !important;
}
[data-theme="light"] .stat-label {
  color: #64748b !important;
}

/* Hero Right: Profile Card & Telemetry in Light Mode */
[data-theme="light"] .hero-profile-card {
  background: #ffffff !important;
  border: 1px solid rgba(15, 23, 42, 0.12) !important;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.08), 0 0 25px rgba(8, 145, 178, 0.08) !important;
}
[data-theme="light"] .profile-media-wrapper {
  border-color: rgba(8, 145, 178, 0.35) !important;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1) !important;
}
[data-theme="light"] .profile-badge-overlay {
  background: rgba(255, 255, 255, 0.95) !important;
  border: 1px solid rgba(15, 23, 42, 0.1) !important;
  color: #0f172a !important;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08) !important;
}
[data-theme="light"] .server-telemetry-box {
  background: #f8fafc !important;
  border: 1px solid rgba(15, 23, 42, 0.1) !important;
}
[data-theme="light"] .telemetry-header {
  border-bottom-color: rgba(15, 23, 42, 0.1) !important;
  color: #475569 !important;
}
[data-theme="light"] .telemetry-key {
  color: #64748b !important;
}
[data-theme="light"] .telemetry-val {
  color: #0891b2 !important;
}
[data-theme="light"] .telemetry-val.success {
  color: #059669 !important;
}
[data-theme="light"] .telemetry-bar {
  background: #e2e8f0 !important;
}

/* Section Titles */
[data-theme="light"] .section-title {
  color: #0f172a !important;
}
[data-theme="light"] .section-subtitle {
  color: #475569 !important;
}
[data-theme="light"] .section-tag {
  background: rgba(8, 145, 178, 0.1) !important;
  border-color: rgba(8, 145, 178, 0.25) !important;
  color: #0891b2 !important;
}

/* Cards across site in Light Mode */
[data-theme="light"] .skill-category-card,
[data-theme="light"] .project-card,
[data-theme="light"] .timeline-content,
[data-theme="light"] .cert-card {
  background: #ffffff !important;
  border: 1px solid rgba(15, 23, 42, 0.1) !important;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.05) !important;
}
[data-theme="light"] .skill-category-card:hover,
[data-theme="light"] .project-card:hover,
[data-theme="light"] .timeline-content:hover,
[data-theme="light"] .cert-card:hover {
  background: #ffffff !important;
  border-color: #0891b2 !important;
  box-shadow: 0 8px 28px rgba(8, 145, 178, 0.12) !important;
}
[data-theme="light"] .category-title,
[data-theme="light"] .project-title,
[data-theme="light"] .timeline-title,
[data-theme="light"] .cert-title {
  color: #0f172a !important;
}
[data-theme="light"] .project-desc,
[data-theme="light"] .timeline-bullets,
[data-theme="light"] .cert-issuer {
  color: #475569 !important;
}
[data-theme="light"] .skill-info span {
  color: #1e293b !important;
}
[data-theme="light"] .skill-track {
  background: #e2e8f0 !important;
}
[data-theme="light"] .category-icon,
[data-theme="light"] .cert-icon {
  background: rgba(8, 145, 178, 0.08) !important;
  border: 1px solid rgba(8, 145, 178, 0.2) !important;
}

/* Terminal / Code blocks */
[data-theme="light"] .terminal-window,
[data-theme="light"] .terminal-body,
[data-theme="light"] .code-preview {
  background: #1e293b !important;
  border-color: rgba(15, 23, 42, 0.15) !important;
}
[data-theme="light"] .terminal-header {
  background: #2d3748 !important;
}

/* Project filter buttons */
[data-theme="light"] .filter-btn {
  background: rgba(255,255,255,0.8) !important;
  border-color: rgba(15,23,42,0.15) !important;
  color: #334155 !important;
}
[data-theme="light"] .filter-btn.active,
[data-theme="light"] .filter-btn:hover {
  background: #0891b2 !important;
  color: #fff !important;
  border-color: #0891b2 !important;
}

/* Project cards overlay */
[data-theme="light"] .project-card-overlay {
  background: linear-gradient(to top, rgba(15,23,42,0.9) 0%, transparent 60%) !important;
}

/* Tech badges */
[data-theme="light"] .tech-badge {
  background: rgba(8, 145, 178, 0.1) !important;
  border-color: rgba(8, 145, 178, 0.25) !important;
  color: #0891b2 !important;
}

/* Timeline */
[data-theme="light"] .timeline-line {
  background: linear-gradient(to bottom, #0891b2, #059669) !important;
}
[data-theme="light"] .timeline-dot {
  background: #0891b2 !important;
  box-shadow: 0 0 12px rgba(8,145,178,0.4) !important;
}

/* Contact section */
[data-theme="light"] .contact-section {
  background: #f0f4f8 !important;
}
[data-theme="light"] .contact-info-item {
  background: rgba(255,255,255,0.92) !important;
  border-color: rgba(15,23,42,0.1) !important;
  box-shadow: 0 4px 12px rgba(0,0,0,0.04) !important;
}
[data-theme="light"] .contact-form {
  background: #ffffff !important;
  border-color: rgba(15,23,42,0.1) !important;
  box-shadow: 0 8px 30px rgba(0,0,0,0.06) !important;
}
[data-theme="light"] .form-input,
[data-theme="light"] .form-textarea {
  background: #f8fafc !important;
  border-color: rgba(15,23,42,0.18) !important;
  color: #0f172a !important;
}
[data-theme="light"] .form-input:focus,
[data-theme="light"] .form-textarea:focus {
  background: #ffffff !important;
  border-color: #0891b2 !important;
  box-shadow: 0 0 0 3px rgba(8, 145, 178, 0.15) !important;
}
[data-theme="light"] .form-label {
  color: #334155 !important;
}

/* Topology Visualizer in Light Mode */
[data-theme="light"] .topology-container {
  background: #ffffff !important;
  border-color: rgba(15,23,42,0.12) !important;
  box-shadow: 0 10px 30px rgba(0,0,0,0.06) !important;
}
[data-theme="light"] .topology-node {
  background: #f8fafc !important;
  border-color: rgba(15,23,42,0.12) !important;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04) !important;
}
[data-theme="light"] .topology-node:hover,
[data-theme="light"] .topology-node.active {
  background: #ffffff !important;
  border-color: #0891b2 !important;
  box-shadow: 0 6px 20px rgba(8,145,178,0.18) !important;
}
[data-theme="light"] .topology-inspector {
  background: #f8fafc !important;
  border-color: rgba(15,23,42,0.12) !important;
}
[data-theme="light"] .node-title {
  color: #0f172a !important;
}
[data-theme="light"] .node-subtitle {
  color: #64748b !important;
}

/* Automation Simulator in Light Mode */
[data-theme="light"] .simulator-box {
  background: #ffffff !important;
  border-color: rgba(15,23,42,0.12) !important;
  box-shadow: 0 10px 30px rgba(0,0,0,0.06) !important;
}
[data-theme="light"] .simulator-step-card {
  background: #f8fafc !important;
  border-color: rgba(15,23,42,0.12) !important;
}
[data-theme="light"] .simulator-step-title {
  color: #0f172a !important;
}
[data-theme="light"] .simulator-step-desc {
  color: #64748b !important;
}
[data-theme="light"] .simulator-connector {
  color: #0891b2 !important;
}

/* Quick Command Chips */
[data-theme="light"] .quick-cmd-chip {
  background: rgba(8, 145, 178, 0.08) !important;
  border-color: rgba(8, 145, 178, 0.25) !important;
  color: #0891b2 !important;
}
[data-theme="light"] .quick-cmd-chip:hover {
  background: #0891b2 !important;
  color: #ffffff !important;
}

/* Buttons */
[data-theme="light"] .btn-primary {
  background: linear-gradient(135deg, #0891b2, #0e7490) !important;
  color: #ffffff !important;
}
[data-theme="light"] .btn-secondary {
  background: rgba(255,255,255,0.92) !important;
  border-color: rgba(15,23,42,0.18) !important;
  color: #334155 !important;
}
[data-theme="light"] .btn-secondary:hover {
  background: #ffffff !important;
  border-color: #0891b2 !important;
  color: #0891b2 !important;
}

/* Footer */
[data-theme="light"] footer,
[data-theme="light"] .site-footer {
  background: #0f172a !important;
}

/* Admin panel & login in light mode */
[data-theme="light"] body {
  background-color: #f0f4f8 !important;
  color: #0f172a !important;
}
[data-theme="light"] .admin-card-main {
  background: #ffffff !important;
  border-color: rgba(15,23,42,0.12) !important;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08) !important;
}
[data-theme="light"] .admin-top-nav {
  background: #ffffff !important;
  border-color: rgba(15,23,42,0.1) !important;
}
[data-theme="light"] .admin-tabs-nav {
  background: #f1f5f9 !important;
  border-color: rgba(15,23,42,0.1) !important;
}
[data-theme="light"] .admin-tab-btn {
  color: #475569 !important;
  border-bottom-color: transparent !important;
}
[data-theme="light"] .admin-tab-btn:hover {
  color: #0891b2 !important;
  background: rgba(8, 145, 178, 0.08) !important;
}
[data-theme="light"] .admin-tab-btn.active {
  color: #0891b2 !important;
  border-bottom-color: #0891b2 !important;
  background: #ffffff !important;
}
[data-theme="light"] .admin-tab-pane,
[data-theme="light"] .admin-content-body {
  background: #ffffff !important;
}
[data-theme="light"] .admin-input,
[data-theme="light"] .admin-textarea,
[data-theme="light"] .admin-select {
  background: #f8fafc !important;
  border-color: rgba(15,23,42,0.18) !important;
  color: #0f172a !important;
}
[data-theme="light"] .admin-input:focus,
[data-theme="light"] .admin-textarea:focus,
[data-theme="light"] .admin-select:focus {
  background: #ffffff !important;
  border-color: #0891b2 !important;
  box-shadow: 0 0 0 3px rgba(8, 145, 178, 0.15) !important;
}
[data-theme="light"] .admin-label {
  color: #334155 !important;
}
[data-theme="light"] .admin-footer-bar {
  background: #f8fafc !important;
  border-color: rgba(15,23,42,0.1) !important;
}
[data-theme="light"] .admin-login-box {
  background: #ffffff !important;
  border-radius: var(--radius-lg);
}
[data-theme="light"] .inbox-card {
  background: #f8fafc !important;
  border-color: rgba(15,23,42,0.12) !important;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04) !important;
}
[data-theme="light"] .inbox-message-text {
  background: #ffffff !important;
  border: 1px solid rgba(15,23,42,0.08) !important;
  color: #1e293b !important;
}
[data-theme="light"] .admin-project-item {
  background: #f8fafc !important;
  border-color: rgba(15,23,42,0.12) !important;
}
[data-theme="light"] .admin-project-item:hover {
  background: #ffffff !important;
  border-color: #0891b2 !important;
  box-shadow: 0 4px 12px rgba(8,145,178,0.1) !important;
}
[data-theme="light"] .admin-proj-title {
  color: #0f172a !important;
}
[data-theme="light"] .admin-proj-cat {
  color: #0891b2 !important;
}

/* Modals */
[data-theme="light"] .project-modal-overlay,
[data-theme="light"] .admin-modal-overlay {
  background: rgba(15, 23, 42, 0.6) !important;
}
[data-theme="light"] .modal-container,
[data-theme="light"] .admin-container {
  background: #ffffff !important;
  border-color: rgba(15,23,42,0.12) !important;
  color: #0f172a !important;
  box-shadow: 0 20px 50px rgba(0,0,0,0.15) !important;
}
[data-theme="light"] .modal-header,
[data-theme="light"] .admin-header {
  background: #f8fafc !important;
  border-bottom-color: rgba(15,23,42,0.1) !important;
  color: #0f172a !important;
}
[data-theme="light"] .modal-content {
  color: #0f172a !important;
}

/* Toast Notice */
[data-theme="light"] .toast-notice {
  background: #ffffff !important;
  border-color: #0891b2 !important;
  color: #0f172a !important;
  box-shadow: 0 10px 30px rgba(0,0,0,0.15) !important;
}

/* Scrollbar in light mode */
[data-theme="light"] ::-webkit-scrollbar-track {
  background: #e2e8f0;
}
[data-theme="light"] ::-webkit-scrollbar-thumb {
  background: #94a3b8;
}
[data-theme="light"] ::-webkit-scrollbar-thumb:hover {
  background: #0891b2;
}


/* Base Reset */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  color-scheme: dark light; /* Supports both — overridden per theme via [data-theme] */
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg-dark);
  color: var(--text-main);
  line-height: 1.6;
  overflow-x: hidden;
  position: relative;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

/* Background Cyber Grid & Noise */
body::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-image: 
    linear-gradient(to right, rgba(255, 255, 255, 0.02) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
  background-size: 50px 50px;
  pointer-events: none;
  z-index: -1;
}

/* Interactive Network Canvas in Background */
#network-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  opacity: 0.45;
  pointer-events: none;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--text-main);
  line-height: 1.25;
  font-weight: 700;
}

a {
  color: inherit;
  text-decoration: none;
  transition: var(--transition-fast);
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
  transition: var(--transition-fast);
}

code, pre, .mono {
  font-family: var(--font-mono);
}

/* Utility Containers */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

.section {
  padding: 6rem 0;
  position: relative;
}

.section-header {
  text-align: center;
  max-width: 750px;
  margin: 0 auto 3.5rem auto;
}

.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.9rem;
  background: rgba(0, 240, 255, 0.08);
  border: 1px solid var(--border-glow);
  border-radius: var(--radius-full);
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--accent-cyan);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 1rem;
}

.section-tag.emerald {
  background: rgba(16, 185, 129, 0.08);
  border-color: var(--border-emerald-glow);
  color: var(--accent-emerald);
}

.section-title {
  font-size: clamp(2rem, 3.5vw, 2.75rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
}

.section-title .gradient-text {
  background: linear-gradient(135deg, #ffffff 20%, var(--accent-cyan) 60%, var(--accent-blue) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.section-subtitle {
  color: var(--text-muted);
  font-size: 1.05rem;
  line-height: 1.6;
}

/* Progress Bar */
#scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 0%;
  background: linear-gradient(90deg, var(--accent-cyan), var(--accent-emerald), var(--accent-violet));
  z-index: 1001;
  transition: width 0.1s ease-out;
}

/* ==========================================================================
   NAVIGATION
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  width: 100%;
  z-index: 1000;
  background: rgba(10, 15, 29, 0.75);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border-subtle);
  transition: var(--transition-normal);
}

.site-header.scrolled {
  background: rgba(7, 11, 19, 0.92);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

.header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 4.5rem;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: -0.01em;
}

.logo-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  background: linear-gradient(135deg, rgba(0, 240, 255, 0.15), rgba(16, 185, 129, 0.15));
  border: 1px solid var(--border-glow);
  border-radius: var(--radius-sm);
  color: var(--accent-cyan);
  font-family: var(--font-mono);
  font-weight: 800;
  font-size: 0.95rem;
  box-shadow: 0 0 12px rgba(0, 240, 255, 0.25);
}

.brand-text {
  display: flex;
  flex-direction: column;
}

.brand-name {
  color: var(--text-main);
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.1;
}

.brand-sub {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--accent-emerald);
  letter-spacing: 0.05em;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.75rem;
  list-style: none;
}

.nav-link {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-muted);
  position: relative;
  padding: 0.5rem 0;
}

.nav-link:hover, .nav-link.active {
  color: var(--accent-cyan);
}

.nav-link::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0%;
  height: 2px;
  background: var(--accent-cyan);
  transition: width var(--transition-fast);
}

.nav-link:hover::after, .nav-link.active::after {
  width: 100%;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.65rem 1.25rem;
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: 0.9rem;
  white-space: nowrap;
  transition: var(--transition-fast);
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent-cyan) 0%, #0284c7 100%);
  color: #04101d;
  font-weight: 700;
  box-shadow: 0 0 20px rgba(0, 240, 255, 0.3);
}

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

.btn-secondary {
  background: rgba(30, 41, 59, 0.7);
  border: 1px solid var(--border-subtle);
  color: var(--text-main);
  backdrop-filter: blur(8px);
}

.btn-secondary:hover {
  border-color: var(--accent-cyan);
  color: var(--accent-cyan);
  transform: translateY(-2px);
  background: rgba(30, 41, 59, 0.9);
}

.btn-emerald {
  background: linear-gradient(135deg, var(--accent-emerald) 0%, #059669 100%);
  color: #022315;
  font-weight: 700;
  box-shadow: 0 0 18px rgba(16, 185, 129, 0.3);
}

.btn-emerald:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 24px rgba(16, 185, 129, 0.45);
}

.btn-sm {
  padding: 0.4rem 0.85rem;
  font-size: 0.8rem;
  border-radius: var(--radius-sm);
}

.btn-icon {
  width: 38px;
  height: 38px;
  padding: 0;
  border-radius: var(--radius-sm);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
}

.btn-icon:hover {
  color: var(--accent-cyan);
  border-color: var(--accent-cyan);
}

/* Mobile Nav Toggle */
.mobile-nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 32px;
  height: 32px;
  justify-content: center;
  align-items: center;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 1002;
}

.mobile-nav-toggle span {
  width: 24px;
  height: 2px;
  background-color: var(--text-main);
  transition: var(--transition-fast);
}

/* ==========================================================================
   HERO SECTION
   ========================================================================== */
.hero-section {
  padding: 4.5rem 0 5rem 0;
  position: relative;
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 3.5rem;
  align-items: center;
}

.hero-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.45rem 1rem;
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid var(--border-emerald-glow);
  border-radius: var(--radius-full);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--accent-emerald);
  margin-bottom: 1.75rem;
}

.status-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background-color: var(--accent-emerald);
  box-shadow: 0 0 10px var(--accent-emerald);
  animation: pulse-dot 2s infinite ease-in-out;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.85); }
}

.hero-title {
  font-size: clamp(2.5rem, 5vw, 3.8rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin-bottom: 1rem;
}

.hero-roles {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-mono);
  font-size: clamp(1.1rem, 2vw, 1.35rem);
  color: var(--accent-cyan);
  min-height: 2rem;
  margin-bottom: 1.5rem;
}

.role-typing {
  font-weight: 600;
}

.typing-cursor {
  display: inline-block;
  width: 2px;
  height: 1.2em;
  background-color: var(--accent-cyan);
  vertical-align: middle;
  animation: blink 0.8s infinite;
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

.hero-bio {
  color: var(--text-muted);
  font-size: 1.1rem;
  line-height: 1.7;
  margin-bottom: 2rem;
  max-width: 620px;
}

.hero-bio strong {
  color: var(--text-main);
  font-weight: 600;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 2.75rem;
}

/* Quick Stats Bar */
.hero-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  padding: 1.25rem;
  background: var(--bg-card);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
}

.stat-item {
  display: flex;
  flex-direction: column;
}

.stat-number {
  font-family: var(--font-heading);
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--accent-cyan);
  line-height: 1;
  margin-bottom: 0.25rem;
}

.stat-label {
  font-size: 0.75rem;
  color: var(--text-dim);
  font-weight: 500;
  line-height: 1.2;
}

/* Hero Right: Profile Card & Telemetry Widget */
.hero-profile-card {
  position: relative;
  background: linear-gradient(145deg, rgba(30, 41, 59, 0.4), rgba(15, 23, 42, 0.8));
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  backdrop-filter: blur(16px);
  box-shadow: var(--shadow-lg), 0 0 35px rgba(0, 240, 255, 0.08);
}

.profile-media-wrapper {
  position: relative;
  width: 100%;
  aspect-ratio: 1;
  max-width: 340px;
  margin: 0 auto 1.5rem auto;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 2px solid var(--border-glow);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
}

.profile-media-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.profile-media-wrapper:hover img {
  transform: scale(1.04);
}

.profile-badge-overlay {
  position: absolute;
  bottom: 12px;
  right: 12px;
  background: rgba(7, 11, 19, 0.85);
  backdrop-filter: blur(8px);
  padding: 0.35rem 0.75rem;
  border-radius: var(--radius-full);
  border: 1px solid var(--border-emerald-glow);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--accent-emerald);
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

/* System Telemetry Inside Hero Card */
.server-telemetry-box {
  background: rgba(10, 15, 29, 0.85);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1rem;
  font-family: var(--font-mono);
  font-size: 0.78rem;
}

.telemetry-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.75rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px dashed var(--border-subtle);
  color: var(--text-dim);
}

.telemetry-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.4rem;
}

.telemetry-key {
  color: var(--text-muted);
}

.telemetry-val {
  color: var(--accent-cyan);
  font-weight: 600;
}

.telemetry-val.success {
  color: var(--accent-emerald);
}

.telemetry-bar {
  width: 100%;
  height: 4px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-full);
  overflow: hidden;
  margin-top: 0.25rem;
}

.telemetry-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--accent-emerald), var(--accent-cyan));
  width: 32%;
}

/* ==========================================================================
   TERMINAL CLI SECTION (SysAdmin Interactive Shell)
   ========================================================================== */
.terminal-wrapper {
  background: #060911;
  border: 1px solid rgba(0, 240, 255, 0.25);
  border-radius: var(--radius-md);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.7), 0 0 25px rgba(0, 240, 255, 0.1);
  overflow: hidden;
  font-family: var(--font-mono);
  max-width: 950px;
  margin: 0 auto;
}

.terminal-titlebar {
  background: #0f172a;
  padding: 0.75rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border-subtle);
}

.terminal-controls {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.term-btn {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  display: inline-block;
}
.term-btn.red { background: #ef4444; }
.term-btn.yellow { background: #eab308; }
.term-btn.green { background: #22c55e; }

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

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

.quick-cmd-chip {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  color: var(--accent-cyan);
  padding: 0.15rem 0.5rem;
  border-radius: 4px;
  font-size: 0.72rem;
  cursor: pointer;
  transition: var(--transition-fast);
}

.quick-cmd-chip:hover {
  background: rgba(0, 240, 255, 0.15);
  border-color: var(--accent-cyan);
}

.terminal-body {
  padding: 1.25rem;
  max-height: 380px;
  overflow-y: auto;
  font-size: 0.86rem;
  line-height: 1.5;
  color: #e2e8f0;
}

.terminal-output {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}

.terminal-input-line {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.term-prompt {
  color: var(--accent-emerald);
  font-weight: 700;
  white-space: nowrap;
}

.term-input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  color: var(--accent-cyan);
  font-family: inherit;
  font-size: inherit;
}

/* ==========================================================================
   ARCHITECTURE TOPOLOGY VISUALIZER
   ========================================================================== */
.topology-container {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  backdrop-filter: blur(14px);
  position: relative;
  overflow: hidden;
}

.topology-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1.25rem;
  position: relative;
  align-items: stretch;
}

.topology-col {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.topology-col-title {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  text-transform: uppercase;
  color: var(--text-dim);
  text-align: center;
  letter-spacing: 0.05em;
  padding-bottom: 0.5rem;
  border-bottom: 1px dashed var(--border-subtle);
}

.topology-node {
  background: rgba(30, 41, 59, 0.6);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.2rem;
  cursor: pointer;
  transition: var(--transition-fast);
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  position: relative;
}

.topology-node:hover, .topology-node.active {
  border-color: var(--accent-cyan);
  background: rgba(30, 41, 59, 0.95);
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4), 0 0 15px rgba(0, 240, 255, 0.25);
}

.topology-node.firewall {
  border-color: rgba(244, 63, 94, 0.4);
}
.topology-node.firewall:hover {
  border-color: var(--accent-rose);
  box-shadow: 0 0 20px rgba(244, 63, 94, 0.3);
}

.topology-node.switch {
  border-color: rgba(59, 130, 246, 0.4);
}
.topology-node.switch:hover {
  border-color: var(--accent-blue);
  box-shadow: 0 0 20px rgba(59, 130, 246, 0.3);
}

.topology-node.hypervisor {
  border-color: rgba(245, 158, 11, 0.4);
}
.topology-node.hypervisor:hover {
  border-color: var(--accent-amber);
  box-shadow: 0 0 20px rgba(245, 158, 11, 0.3);
}

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

.node-icon {
  font-size: 1.3rem;
}

.node-status {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent-emerald);
  box-shadow: 0 0 8px var(--accent-emerald);
}

.node-name {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--text-main);
}

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

.node-specs {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: var(--accent-cyan);
  background: rgba(0, 0, 0, 0.35);
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
}

/* Topology Detail Inspector Drawer */
.topology-inspector {
  margin-top: 2rem;
  background: rgba(10, 15, 29, 0.9);
  border: 1px solid var(--border-glow);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  display: none;
  animation: fadeIn 0.3s ease;
}

.topology-inspector.show {
  display: block;
}

.inspector-grid {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 1.5rem;
  align-items: center;
}

/* ==========================================================================
   PROJECTS SECTION (Cards & Grid)
   ========================================================================== */
.projects-filter-bar {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 2.75rem;
}

.filter-btn {
  padding: 0.5rem 1.15rem;
  border-radius: var(--radius-full);
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition-fast);
}

.filter-btn:hover {
  color: var(--text-main);
  border-color: var(--accent-cyan);
}

.filter-btn.active {
  background: linear-gradient(135deg, rgba(0, 240, 255, 0.15), rgba(16, 185, 129, 0.15));
  border-color: var(--accent-cyan);
  color: var(--accent-cyan);
  box-shadow: 0 0 15px rgba(0, 240, 255, 0.2);
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
  gap: 2rem;
}

.project-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: var(--transition-normal);
  backdrop-filter: blur(12px);
  position: relative;
}

.project-card:hover {
  transform: translateY(-6px);
  border-color: var(--border-glow);
  box-shadow: var(--shadow-lg), 0 0 30px rgba(0, 240, 255, 0.15);
}

.project-media {
  position: relative;
  width: 100%;
  height: 210px;
  overflow: hidden;
  background: #020617;
}

.project-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.project-card:hover .project-media img {
  transform: scale(1.06);
}

.project-tag-pill {
  position: absolute;
  top: 14px;
  left: 14px;
  background: rgba(7, 11, 19, 0.85);
  backdrop-filter: blur(8px);
  border: 1px solid var(--border-subtle);
  padding: 0.3rem 0.75rem;
  border-radius: var(--radius-full);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--accent-cyan);
}

.project-featured-badge {
  position: absolute;
  top: 14px;
  right: 14px;
  background: linear-gradient(135deg, var(--accent-emerald), #059669);
  color: #022415;
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius-full);
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  box-shadow: 0 0 10px rgba(16, 185, 129, 0.4);
}

.project-body {
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.project-title {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  color: var(--text-main);
  line-height: 1.3;
}

.project-desc {
  color: var(--text-muted);
  font-size: 0.92rem;
  line-height: 1.6;
  margin-bottom: 1.25rem;
  flex: 1;
}

.project-metric-banner {
  background: rgba(0, 240, 255, 0.05);
  border: 1px dashed rgba(0, 240, 255, 0.25);
  border-radius: var(--radius-sm);
  padding: 0.65rem 0.85rem;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--accent-cyan);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1.25rem;
}

.project-tech-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 1.5rem;
}

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

.project-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--border-subtle);
  padding-top: 1.25rem;
}

/* ==========================================================================
   SIMULATOR WORKFLOW PREVIEW
   ========================================================================== */
.simulator-box {
  background: #090e18;
  border: 1px solid var(--border-glow);
  border-radius: var(--radius-lg);
  padding: 2rem;
  margin-top: 3.5rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.simulator-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border-subtle);
}

.sim-tabs {
  display: flex;
  gap: 0.5rem;
}

.sim-tab-btn {
  padding: 0.45rem 1rem;
  background: rgba(30, 41, 59, 0.5);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: 0.8rem;
  cursor: pointer;
}

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

.simulator-pipeline {
  display: flex;
  align-items: center;
  justify-content: space-around;
  margin-bottom: 1.75rem;
  position: relative;
}

.sim-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  z-index: 1;
}

.step-circle {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--bg-surface);
  border: 2px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  transition: var(--transition-fast);
}

.sim-step.active .step-circle {
  border-color: var(--accent-cyan);
  box-shadow: 0 0 15px var(--accent-cyan);
  background: rgba(0, 240, 255, 0.1);
}

.sim-step.done .step-circle {
  border-color: var(--accent-emerald);
  box-shadow: 0 0 15px var(--accent-emerald);
  background: rgba(16, 185, 129, 0.1);
}

.step-label {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-muted);
  text-align: center;
}

.simulator-log-console {
  background: #030712;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1rem 1.25rem;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: #38bdf8;
  height: 160px;
  overflow-y: auto;
}

/* ==========================================================================
   SKILLS MATRIX
   ========================================================================== */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 2rem;
}

.skill-category-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 2rem;
  backdrop-filter: blur(12px);
  transition: var(--transition-fast);
}

.skill-category-card:hover {
  border-color: var(--border-glow);
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.category-header {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border-subtle);
}

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

.category-title {
  font-size: 1.15rem;
  font-weight: 700;
}

.skill-items-list {
  display: flex;
  flex-direction: column;
  gap: 1.15rem;
}

.skill-item {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.skill-info {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.88rem;
  font-weight: 600;
}

.skill-pct {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--accent-cyan);
}

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

.skill-bar-fill {
  height: 100%;
  border-radius: var(--radius-full);
  background: linear-gradient(90deg, var(--accent-cyan), var(--accent-emerald));
  transition: width 1s ease-in-out;
}

/* ==========================================================================
   EXPERIENCE & JOURNEY TIMELINE
   ========================================================================== */
.timeline-wrapper {
  position: relative;
  max-width: 860px;
  margin: 0 auto;
  padding-left: 2rem;
}

.timeline-wrapper::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 7px;
  width: 2px;
  background: linear-gradient(to bottom, var(--accent-cyan), var(--accent-emerald), rgba(255, 255, 255, 0.1));
}

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

.timeline-dot {
  position: absolute;
  left: -2rem;
  top: 6px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--bg-dark);
  border: 3px solid var(--accent-cyan);
  box-shadow: 0 0 12px var(--accent-cyan);
}

.timeline-content {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.75rem;
  backdrop-filter: blur(12px);
  transition: var(--transition-fast);
}

.timeline-content:hover {
  border-color: var(--border-glow);
  transform: translateX(4px);
}

.timeline-badge {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--accent-emerald);
  margin-bottom: 0.5rem;
  font-weight: 600;
}

.timeline-title {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
}

.timeline-company {
  font-size: 0.95rem;
  color: var(--accent-cyan);
  font-weight: 600;
  margin-bottom: 1rem;
}

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

.timeline-bullets li {
  position: relative;
  padding-left: 1.25rem;
}

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

/* ==========================================================================
   CERTIFICATIONS & EDUCATION
   ========================================================================== */
.certs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.5rem;
}

.cert-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  display: flex;
  gap: 1.25rem;
  align-items: flex-start;
  backdrop-filter: blur(12px);
  transition: var(--transition-fast);
}

.cert-card:hover {
  border-color: var(--accent-emerald);
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(16, 185, 129, 0.15);
}

.cert-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-sm);
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid var(--border-emerald-glow);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: var(--accent-emerald);
  flex-shrink: 0;
}

.cert-details h4 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
}

.cert-issuer {
  font-size: 0.82rem;
  color: var(--text-dim);
  margin-bottom: 0.5rem;
}

.cert-status {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
  background: rgba(16, 185, 129, 0.1);
  color: var(--accent-emerald);
  border: 1px solid var(--border-emerald-glow);
}

.cert-status.pending {
  background: rgba(245, 158, 11, 0.1);
  color: var(--accent-amber);
  border-color: rgba(245, 158, 11, 0.3);
}

/* ==========================================================================
   CONTACT SECTION
   ========================================================================== */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.25fr;
  gap: 3rem;
}

.contact-info-cards {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.contact-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.25rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  backdrop-filter: blur(12px);
  transition: var(--transition-fast);
}

.contact-card:hover {
  border-color: var(--accent-cyan);
  transform: translateX(4px);
}

.contact-meta {
  display: flex;
  align-items: center;
  gap: 1rem;
}

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

.contact-label {
  font-size: 0.75rem;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.contact-value {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-main);
}

.contact-copy-btn {
  font-size: 0.8rem;
  color: var(--accent-cyan);
  background: rgba(0, 240, 255, 0.08);
  border: 1px solid var(--border-glow);
  padding: 0.35rem 0.75rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
}

.contact-copy-btn:hover {
  background: var(--accent-cyan);
  color: #04101d;
}

/* Contact Form */
.contact-form {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 2.25rem;
  backdrop-filter: blur(14px);
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.form-label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
}

.form-input, .form-textarea {
  background: rgba(10, 15, 29, 0.7);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 0.85rem 1rem;
  color: var(--text-main);
  font-family: inherit;
  font-size: 0.92rem;
  transition: var(--transition-fast);
}

.form-input:focus, .form-textarea:focus {
  outline: none;
  border-color: var(--accent-cyan);
  box-shadow: 0 0 15px rgba(0, 240, 255, 0.2);
}

.form-textarea {
  resize: vertical;
  min-height: 120px;
}

/* ==========================================================================
   MODAL DRAWER (Project Details & Case Study)
   ========================================================================== */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(4, 7, 14, 0.8);
  backdrop-filter: blur(10px);
  z-index: 2000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}

.modal-overlay.open {
  display: flex;
  animation: fadeIn 0.2s ease-out;
}

.modal-container {
  background: var(--bg-surface);
  border: 1px solid var(--border-glow);
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 800px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.7);
  position: relative;
}

.modal-header {
  position: sticky;
  top: 0;
  background: rgba(15, 23, 42, 0.95);
  backdrop-filter: blur(10px);
  padding: 1.5rem 2rem;
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
  z-index: 10;
}

.modal-close-btn {
  font-size: 1.5rem;
  color: var(--text-muted);
  cursor: pointer;
  line-height: 1;
}
.modal-close-btn:hover {
  color: var(--accent-cyan);
}

.modal-content {
  padding: 2rem;
}

/* Toast Notification */
.toast-notice {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  background: #0f172a;
  border: 1px solid var(--accent-emerald);
  color: #f8fafc;
  padding: 0.85rem 1.5rem;
  border-radius: var(--radius-md);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.9rem;
  font-weight: 600;
  z-index: 3000;
  transform: translateY(100px);
  opacity: 0;
  transition: all 0.3s ease;
}

.toast-notice.show {
  transform: translateY(0);
  opacity: 1;
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.site-footer {
  background: #04070e;
  border-top: 1px solid var(--border-subtle);
  padding: 3rem 0;
  color: var(--text-dim);
  font-size: 0.85rem;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.5rem;
}

/* ==========================================================================
   ANIMATIONS & KEYFRAMES
   ========================================================================== */
@keyframes fadeIn {
  from { opacity: 0; transform: scale(0.98); }
  to { opacity: 1; transform: scale(1); }
}

/* ==========================================================================
   PRINT STYLESHEET (For Download CV / Imprimer CV)
   ========================================================================== */
@media print {
  body {
    background: #ffffff !important;
    color: #1e293b !important;
    font-size: 11pt;
    line-height: 1.4;
  }

  body::before, #network-canvas, #scroll-progress,
  .site-header, .hero-actions, .terminal-wrapper,
  .topology-container, .simulator-box, .contact-form,
  .projects-filter-bar, .modal-overlay, .site-footer,
  .project-footer, .contact-copy-btn, .mobile-nav-toggle,
  .btn, .quick-cmd-chip {
    display: none !important;
  }

  .container {
    max-width: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
  }

  .section {
    padding: 1.5rem 0 !important;
  }

  .hero-grid {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    gap: 2rem !important;
  }

  .profile-media-wrapper {
    width: 120px !important;
    height: 120px !important;
  }

  .hero-title {
    font-size: 20pt !important;
    color: #0f172a !important;
  }

  .hero-roles {
    color: #0284c7 !important;
    font-size: 13pt !important;
  }

  .hero-bio {
    color: #334155 !important;
    font-size: 10pt !important;
  }

  .project-card, .skill-category-card, .timeline-content, .cert-card, .contact-card {
    background: #ffffff !important;
    border: 1px solid #cbd5e1 !important;
    box-shadow: none !important;
    color: #0f172a !important;
    page-break-inside: avoid;
  }

  .project-media {
    display: none !important;
  }

  h1, h2, h3, h4 {
    color: #0f172a !important;
  }

  .section-tag, .stat-number, .timeline-company, .telemetry-val {
    color: #0284c7 !important;
  }
}

/* ==========================================================================
   RESPONSIVE DESIGN (Tablets & Mobile)
   ========================================================================== */
@media (max-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .topology-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .contact-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .nav-links {
    position: fixed;
    top: 4.5rem;
    left: 0;
    width: 100%;
    background: rgba(7, 11, 19, 0.98);
    backdrop-filter: blur(16px);
    flex-direction: column;
    padding: 2rem;
    gap: 1.5rem;
    border-bottom: 1px solid var(--border-subtle);
    transform: translateY(-150%);
    transition: transform var(--transition-normal);
  }

  .nav-links.open {
    transform: translateY(0);
  }

  .mobile-nav-toggle {
    display: flex;
  }

  .hero-stats {
    grid-template-columns: repeat(2, 1fr);
  }

  .projects-grid {
    grid-template-columns: 1fr;
  }

  .topology-grid {
    grid-template-columns: 1fr;
  }

  .simulator-pipeline {
    flex-direction: column;
    gap: 1rem;
  }

  .section {
    padding: 4rem 0;
  }
}

/* ==========================================================================
   ADMIN PANEL & WEBHOOK NOTIFICATIONS STYLING
   ========================================================================== */
.admin-launcher-btn {
  position: fixed;
  bottom: 24px;
  left: 24px;
  background: rgba(15, 23, 42, 0.85);
  border: 1px solid var(--border-glow);
  color: var(--accent-cyan);
  padding: 0.65rem 1.15rem;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  z-index: 1500;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.6), 0 0 15px rgba(0, 240, 255, 0.2);
  backdrop-filter: blur(10px);
  transition: var(--transition-fast);
}

.admin-launcher-btn:hover {
  transform: translateY(-3px) scale(1.03);
  background: rgba(30, 41, 59, 0.95);
  border-color: var(--accent-emerald);
  color: var(--accent-emerald);
  box-shadow: 0 6px 25px rgba(16, 185, 129, 0.35);
}

.admin-unread-badge {
  background: var(--accent-rose);
  color: #fff;
  border-radius: var(--radius-full);
  padding: 0.1rem 0.45rem;
  font-size: 0.7rem;
  font-weight: 800;
  line-height: 1;
}

/* Admin Modal */
.admin-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(4, 7, 14, 0.88);
  backdrop-filter: blur(14px);
  z-index: 2500;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}

.admin-modal-overlay.open {
  display: flex;
  animation: fadeIn 0.25s ease-out;
}

.admin-container {
  background: #090e1a;
  border: 1px solid var(--border-glow);
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 950px;
  max-height: 92vh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.8), 0 0 40px rgba(0, 240, 255, 0.15);
}

.admin-header {
  background: #0f172a;
  padding: 1.25rem 2rem;
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.admin-title-wrap {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.admin-badge {
  background: rgba(0, 240, 255, 0.12);
  border: 1px solid var(--border-glow);
  color: var(--accent-cyan);
  padding: 0.2rem 0.6rem;
  border-radius: 4px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 700;
}

.admin-tabs-nav {
  display: flex;
  background: #060912;
  border-bottom: 1px solid var(--border-subtle);
  overflow-x: auto;
  scrollbar-width: thin;
}

.admin-tab-btn {
  padding: 0.85rem 1.25rem;
  background: transparent;
  border: none;
  border-bottom: 2px solid transparent;
  color: var(--text-muted);
  font-size: 0.85rem;
  font-weight: 600;
  white-space: nowrap;
  cursor: pointer;
  transition: var(--transition-fast);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.admin-tab-btn:hover {
  color: var(--text-main);
  background: rgba(255, 255, 255, 0.02);
}

.admin-tab-btn.active {
  color: var(--accent-cyan);
  border-bottom-color: var(--accent-cyan);
  background: rgba(0, 240, 255, 0.05);
}

.admin-content-body {
  padding: 1.75rem 2rem;
  overflow-y: auto;
  flex: 1;
}

.admin-tab-pane {
  display: none;
  animation: fadeIn 0.2s ease;
}

.admin-tab-pane.active {
  display: block;
}

/* Admin Form Controls */
.admin-form-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
}

.admin-form-group {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.admin-form-group.full-width {
  grid-column: 1 / -1;
}

.admin-label {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.admin-input, .admin-textarea, .admin-select {
  background: #0f172a;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 0.7rem 0.9rem;
  color: var(--text-main);
  font-family: inherit;
  font-size: 0.88rem;
  transition: var(--transition-fast);
}

.admin-input:focus, .admin-textarea:focus {
  outline: none;
  border-color: var(--accent-cyan);
  box-shadow: 0 0 10px rgba(0, 240, 255, 0.2);
}

.admin-textarea {
  min-height: 90px;
  resize: vertical;
}

.admin-footer-bar {
  background: #0a0f1d;
  padding: 1rem 2rem;
  border-top: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Messages Inbox Table / Cards */
.inbox-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.inbox-card {
  background: #0d1322;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  transition: var(--transition-fast);
}

.inbox-card:hover {
  border-color: var(--border-glow);
}

.inbox-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.75rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px dashed var(--border-subtle);
}

.inbox-sender-name {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--accent-cyan);
}

.inbox-sender-email {
  font-size: 0.8rem;
  color: var(--text-dim);
  font-family: var(--font-mono);
}

.inbox-time {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-dim);
}

.inbox-message-text {
  font-size: 0.88rem;
  color: var(--text-main);
  line-height: 1.6;
  white-space: pre-wrap;
  margin-bottom: 0.75rem;
  background: rgba(0, 0, 0, 0.25);
  padding: 0.75rem;
  border-radius: 4px;
}

/* Webhook Info Box */
.webhook-guide-card {
  background: rgba(16, 185, 129, 0.05);
  border: 1px solid var(--border-emerald-glow);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  margin-bottom: 1.5rem;
}

.webhook-guide-title {
  color: var(--accent-emerald);
  font-size: 0.95rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
}

.webhook-guide-text {
  font-size: 0.84rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* Admin Project List Manager */
.admin-projects-grid {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.admin-project-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #0d1322;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1rem 1.25rem;
  gap: 1rem;
}

.admin-project-item:hover {
  border-color: var(--accent-cyan);
}

.admin-proj-info {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  flex: 1;
}

.admin-proj-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-main);
}

.admin-proj-cat {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--accent-cyan);
}

/* Login Screen inside modal */
.admin-login-box {
  padding: 3rem 2rem;
  text-align: center;
  max-width: 400px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.admin-login-icon {
  font-size: 3rem;
  margin-bottom: 0.5rem;
}

