/* -------------------------------------------------------------
   ENG. HAIDY MAHMOUD - NETWORK ENGINEER PORTFOLIO
   Design System & Styling
   ------------------------------------------------------------- */

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

:root {
  /* Color Palette - Eye friendly deep navy/cyan cyber theme */
  --bg-dark: #070a12;
  --bg-card: rgba(15, 23, 42, 0.75);
  --bg-card-hover: rgba(26, 38, 66, 0.85);
  --bg-card-border: rgba(56, 189, 248, 0.15);
  --bg-card-border-hover: rgba(56, 189, 248, 0.4);
  
  --primary: #38bdf8;
  --primary-glow: rgba(56, 189, 248, 0.4);
  --accent-cyan: #06b6d4;
  --accent-teal: #14b8a6;
  --accent-blue: #3b82f6;
  --accent-purple: #8b5cf6;
  --accent-pink: #ec4899;

  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --text-subtle: #64748b;
  
  --glass-bg: rgba(15, 23, 42, 0.65);
  --glass-blur: blur(16px);

  --font-main: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-heading: 'Outfit', sans-serif;
  --font-code: 'Fira Code', monospace;

  --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-normal: 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-bounce: 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-full: 9999px;
  
  --container-width: 1240px;
}

/* Light Theme Variables (Toggleable, elegant eye-friendly slate light mode) */
body.light-theme {
  --bg-dark: #f1f5f9;
  --bg-card: rgba(255, 255, 255, 0.9);
  --bg-card-hover: rgba(255, 255, 255, 1);
  --bg-card-border: rgba(14, 165, 233, 0.22);
  --bg-card-border-hover: rgba(14, 165, 233, 0.55);

  --primary: #0284c7;
  --primary-glow: rgba(2, 132, 199, 0.25);
  --accent-cyan: #0891b2;
  --accent-teal: #0d9488;
  --accent-blue: #2563eb;
  --accent-purple: #7c3aed;

  --text-main: #0f172a;
  --text-muted: #334155;
  --text-subtle: #64748b;
  --glass-bg: rgba(255, 255, 255, 0.85);
}

body.light-theme .navbar {
  background: rgba(241, 245, 249, 0.85);
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

body.light-theme .navbar.scrolled {
  background: rgba(255, 255, 255, 0.95);
  border-bottom: 1px solid var(--bg-card-border);
  box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.1);
}

body.light-theme .glass-card {
  box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.06);
}

body.light-theme .glass-card:hover {
  box-shadow: 0 20px 40px -10px rgba(14, 165, 233, 0.15);
}

body.light-theme .control-panel-drawer {
  background: rgba(255, 255, 255, 0.98);
  border-left: 1px solid var(--bg-card-border);
  color: var(--text-main);
  box-shadow: -20px 0 50px rgba(0, 0, 0, 0.15);
}

body.light-theme .drawer-header,
body.light-theme .drawer-footer {
  background: #f8fafc;
  border-color: rgba(0, 0, 0, 0.08);
}

body.light-theme .form-input,
body.light-theme .form-textarea {
  background: #ffffff;
  border: 1px solid #cbd5e1;
  color: var(--text-main);
}

body.light-theme .floating-badge {
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

body.light-theme .profile-badge-overlay {
  background: rgba(255, 255, 255, 0.9);
  border-color: rgba(0, 0, 0, 0.1);
}

body.light-theme .tech-pill {
  background: #e0f2fe;
  color: #0369a1;
  border-color: rgba(2, 132, 199, 0.3);
}

body.light-theme .skill-tag {
  background: #e2e8f0;
  color: #0f172a;
  border-color: #cbd5e1;
}

body.light-theme .contact-tile {
  background: #ffffff;
}

/* Theme Switcher Button */
.btn-theme-toggle {
  background: rgba(56, 189, 248, 0.1);
  border: 1px solid rgba(56, 189, 248, 0.3);
  color: var(--primary);
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 1.2rem;
  transition: var(--transition-fast);
}

.btn-theme-toggle:hover {
  background: rgba(56, 189, 248, 0.25);
  transform: rotate(15deg) scale(1.05);
}

/* Admin Auth Badge & Controls */
.admin-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: rgba(239, 68, 68, 0.15);
  border: 1px solid rgba(239, 68, 68, 0.3);
  color: #ef4444;
  padding: 0.3rem 0.75rem;
  border-radius: var(--radius-full);
  font-size: 0.78rem;
  font-weight: 700;
  font-family: var(--font-code);
}

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

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

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

/* Network Dynamic Background Canvas */
#networkCanvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: -1;
  pointer-events: none;
  opacity: 0.6;
}

/* Container */
.container {
  width: 100%;
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Selection */
::selection {
  background: rgba(56, 189, 248, 0.3);
  color: #ffffff;
}

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

.gradient-text {
  background: linear-gradient(135deg, #38bdf8 0%, #8b5cf6 50%, #06b6d4 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

.gradient-text-teal {
  background: linear-gradient(135deg, #2dd4bf 0%, #38bdf8 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: var(--bg-dark);
}

::-webkit-scrollbar-thumb {
  background: rgba(56, 189, 248, 0.25);
  border-radius: var(--radius-full);
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(56, 189, 248, 0.5);
}

/* Navigation Header */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 1rem 0;
  transition: var(--transition-normal);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  background: rgba(7, 10, 18, 0.7);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.navbar.scrolled {
  padding: 0.75rem 0;
  background: rgba(7, 10, 18, 0.92);
  border-bottom: 1px solid var(--bg-card-border);
  box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.5);
}

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

.logo-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
}

.logo-icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(56, 189, 248, 0.2), rgba(139, 92, 246, 0.2));
  border: 1px solid rgba(56, 189, 248, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  font-family: var(--font-code);
  font-weight: 700;
  font-size: 1.1rem;
  box-shadow: 0 0 15px var(--primary-glow);
  position: relative;
  overflow: hidden;
}

.logo-icon::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(60deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transform: rotate(30deg);
  animation: logoShine 4s infinite;
}

@keyframes logoShine {
  0% { transform: translateX(-100%) rotate(30deg); }
  20%, 100% { transform: translateX(100%) rotate(30deg); }
}

.logo-text {
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text-main);
}

.logo-text span {
  color: var(--primary);
  font-weight: 400;
  font-size: 0.85rem;
  display: block;
  font-family: var(--font-code);
}

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

.nav-link {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  transition: var(--transition-fast);
  position: relative;
  padding: 0.3rem 0;
}

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

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--primary), var(--accent-purple));
  transition: var(--transition-fast);
  border-radius: 2px;
}

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

.nav-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

/* Control Panel Trigger Button */
.btn-control-panel {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(56, 189, 248, 0.1);
  border: 1px solid rgba(56, 189, 248, 0.3);
  color: var(--primary);
  padding: 0.5rem 1rem;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition-fast);
  font-family: var(--font-main);
}

.btn-control-panel:hover {
  background: rgba(56, 189, 248, 0.25);
  border-color: var(--primary);
  box-shadow: 0 0 15px var(--primary-glow);
  transform: translateY(-1px);
}

/* Primary Button */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  background: linear-gradient(135deg, var(--primary) 0%, #0284c7 100%);
  color: #040914;
  font-weight: 700;
  padding: 0.75rem 1.6rem;
  border-radius: var(--radius-full);
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: var(--transition-fast);
  box-shadow: 0 4px 20px var(--primary-glow);
  font-size: 0.95rem;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(56, 189, 248, 0.5);
  background: linear-gradient(135deg, #38bdf8 0%, #0369a1 100%);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  background: rgba(15, 23, 42, 0.8);
  color: var(--text-main);
  border: 1px solid var(--bg-card-border-hover);
  font-weight: 600;
  padding: 0.75rem 1.6rem;
  border-radius: var(--radius-full);
  text-decoration: none;
  cursor: pointer;
  transition: var(--transition-fast);
  backdrop-filter: blur(8px);
  font-size: 0.95rem;
}

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

/* Mobile Nav Toggle */
.mobile-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text-main);
  font-size: 1.5rem;
  cursor: pointer;
}

/* Hero Section */
.hero-section {
  min-height: 100vh;
  padding-top: 8rem;
  padding-bottom: 4rem;
  display: flex;
  align-items: center;
  position: relative;
}

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

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(20, 184, 166, 0.1);
  border: 1px solid rgba(20, 184, 166, 0.3);
  padding: 0.4rem 1rem;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  color: var(--accent-teal);
  font-weight: 600;
  margin-bottom: 1.5rem;
}

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

@keyframes pulseDot {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.4); opacity: 0.5; }
}

.hero-title-greeting {
  font-size: 1.2rem;
  color: var(--text-muted);
  font-family: var(--font-code);
  margin-bottom: 0.5rem;
}

.hero-title-name {
  font-size: 4rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 1rem;
  min-height: 4.8rem;
  display: flex;
  align-items: center;
}

/* Typewriter Animation Effect */
.typewriter-text {
  border-right: 3px solid var(--primary);
  white-space: nowrap;
  animation: blinkCursor 0.75s infinite;
  display: inline-block;
}

@keyframes blinkCursor {
  0%, 100% { border-color: var(--primary); }
  50% { border-color: transparent; }
}

.hero-subtitle {
  font-size: 1.5rem;
  color: var(--primary);
  font-weight: 600;
  margin-bottom: 1.5rem;
  font-family: var(--font-heading);
}

.hero-bio {
  font-size: 1.05rem;
  color: var(--text-muted);
  line-height: 1.8;
  margin-bottom: 2.5rem;
  max-width: 600px;
}

.hero-cta-group {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 3rem;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

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

.stat-number {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--text-main);
  font-family: var(--font-heading);
}

.stat-number span {
  color: var(--primary);
}

.stat-label {
  font-size: 0.85rem;
  color: var(--text-subtle);
  font-weight: 500;
}

/* Hero Profile Image Showcase */
.hero-image-wrapper {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.profile-card {
  position: relative;
  width: 100%;
  max-width: 360px;
  border-radius: 24px;
  background: var(--bg-card);
  border: 1px solid var(--bg-card-border);
  padding: 1rem;
  backdrop-filter: var(--glass-blur);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
  transition: var(--transition-normal);
}

.profile-card:hover {
  border-color: var(--bg-card-border-hover);
  transform: translateY(-5px);
  box-shadow: 0 30px 60px -10px rgba(56, 189, 248, 0.2);
}

.profile-image-container {
  width: 100%;
  height: 380px;
  border-radius: 18px;
  overflow: hidden;
  position: relative;
  background: #0f172a;
}

.profile-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  transition: var(--transition-normal);
}

.profile-card:hover .profile-img {
  transform: scale(1.03);
}

/* Glowing Profile Decorative Elements */
.profile-card::before {
  content: '';
  position: absolute;
  inset: -2px;
  border-radius: 26px;
  background: linear-gradient(135deg, var(--primary), var(--accent-purple), var(--accent-teal));
  z-index: -1;
  opacity: 0.4;
  filter: blur(15px);
  transition: var(--transition-normal);
}

.profile-card:hover::before {
  opacity: 0.7;
  filter: blur(22px);
}

.profile-badge-overlay {
  position: absolute;
  bottom: 1.5rem;
  left: 1.5rem;
  right: 1.5rem;
  background: rgba(15, 23, 42, 0.85);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 14px;
  padding: 0.75rem 1rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.badge-overlay-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: rgba(56, 189, 248, 0.15);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
}

.badge-overlay-text {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-main);
  line-height: 1.2;
}

.badge-overlay-text span {
  display: block;
  font-size: 0.75rem;
  color: var(--text-muted);
  font-weight: 400;
}

/* Floating Tech Badges around Image */
.floating-badge {
  position: absolute;
  padding: 0.5rem 1rem;
  background: rgba(15, 23, 42, 0.9);
  border: 1px solid var(--bg-card-border-hover);
  backdrop-filter: blur(10px);
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  font-weight: 600;
  font-family: var(--font-code);
  color: var(--primary);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
  display: flex;
  align-items: center;
  gap: 0.4rem;
  animation: floatAnim 4s ease-in-out infinite alternate;
}

.floating-badge.badge-top-right {
  top: 10px;
  right: -20px;
  animation-delay: 0s;
}

.floating-badge.badge-bottom-left {
  bottom: 40px;
  left: -25px;
  animation-delay: 2s;
  color: var(--accent-teal);
  border-color: rgba(20, 184, 166, 0.4);
}

@keyframes floatAnim {
  0% { transform: translateY(0px); }
  100% { transform: translateY(-10px); }
}

/* Section Shared Layout */
section {
  padding: 6rem 0;
  position: relative;
}

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

.section-tag {
  display: inline-block;
  font-family: var(--font-code);
  font-size: 0.85rem;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 0.75rem;
  font-weight: 600;
}

.section-title {
  font-size: 2.5rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
}

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

/* Glass Card Base Component */
.glass-card {
  background: var(--bg-card);
  border: 1px solid var(--bg-card-border);
  border-radius: var(--radius-lg);
  backdrop-filter: var(--glass-blur);
  padding: 2rem;
  transition: var(--transition-normal);
  position: relative;
  overflow: hidden;
}

.glass-card:hover {
  background: var(--bg-card-hover);
  border-color: var(--bg-card-border-hover);
  transform: translateY(-4px);
  box-shadow: 0 20px 40px -15px rgba(0, 0, 0, 0.5);
}

/* Summary / About Card Grid */
.about-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 2rem;
}

.summary-text-box {
  font-size: 1.05rem;
  line-height: 1.8;
  color: var(--text-muted);
}

.summary-text-box p {
  margin-bottom: 1.25rem;
}

.summary-text-box p:last-child {
  margin-bottom: 0;
}

.info-list {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

.info-item {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.info-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgba(56, 189, 248, 0.1);
  border: 1px solid rgba(56, 189, 248, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  font-size: 1.2rem;
}

.info-details label {
  display: block;
  font-size: 0.75rem;
  color: var(--text-subtle);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 600;
}

.info-details span, .info-details a {
  font-size: 0.95rem;
  color: var(--text-main);
  font-weight: 600;
  text-decoration: none;
}

.info-details a:hover {
  color: var(--primary);
}

/* Experience Section */
.timeline {
  position: relative;
  max-width: 900px;
  margin: 0 auto;
  padding-left: 2.5rem;
}

.timeline::before {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  left: 8px;
  width: 2px;
  background: linear-gradient(180deg, var(--primary) 0%, var(--accent-purple) 50%, rgba(255,255,255,0.05) 100%);
}

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

.timeline-item:last-child {
  margin-bottom: 0;
}

.timeline-dot {
  position: absolute;
  left: -2.5rem;
  top: 0.25rem;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--bg-dark);
  border: 3px solid var(--primary);
  box-shadow: 0 0 10px var(--primary-glow);
  z-index: 2;
}

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

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

.timeline-header {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-start;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}

.role-title {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text-main);
}

.company-name {
  color: var(--primary);
  font-weight: 600;
}

.timeline-date {
  font-family: var(--font-code);
  font-size: 0.85rem;
  color: var(--accent-teal);
  background: rgba(20, 184, 166, 0.1);
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-full);
}

.timeline-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;

}

.timeline-list li {
  position: relative;
  padding-left: 1.25rem;
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.6;
}

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

/* Technical Skills Section */
.skills-tabs {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 3rem;
}

.tab-btn {
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid var(--bg-card-border);
  color: var(--text-muted);
  padding: 0.6rem 1.4rem;
  border-radius: var(--radius-full);
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  transition: var(--transition-fast);
  font-family: var(--font-main);
}

.tab-btn:hover {
  color: var(--text-main);
  border-color: var(--primary);
}

.tab-btn.active {
  background: linear-gradient(135deg, rgba(56, 189, 248, 0.2), rgba(139, 92, 246, 0.2));
  border-color: var(--primary);
  color: var(--primary);
  box-shadow: 0 0 15px var(--primary-glow);
}

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

.skill-category-card {
  height: 100%;
  display: flex;
  flex-direction: column;
}

.skill-category-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}

.skill-cat-icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: rgba(56, 189, 248, 0.15);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
}

.skill-category-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-main);
}

.skill-tags-wrapper {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.skill-tag {
  background: rgba(30, 41, 59, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 0.4rem 0.85rem;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  color: var(--text-main);
  font-family: var(--font-code);
  transition: var(--transition-fast);
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.skill-tag:hover {
  background: rgba(56, 189, 248, 0.15);
  border-color: var(--primary);
  color: var(--primary);
  transform: translateY(-2px);
}

.skill-tag-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--primary);
}

/* Certifications Section */
.cert-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 1.75rem;
}

.cert-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.cert-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 1rem;
}

.cert-badge {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1rem;
  font-family: var(--font-code);
}

.cert-badge.cisco {
  background: rgba(56, 189, 248, 0.15);
  color: #38bdf8;
  border: 1px solid rgba(56, 189, 248, 0.3);
}

.cert-badge.huawei {
  background: rgba(239, 68, 68, 0.15);
  color: #ef4444;
  border: 1px solid rgba(239, 68, 68, 0.3);
}

.cert-badge.microsoft {
  background: rgba(59, 130, 246, 0.15);
  color: #60a5fa;
  border: 1px solid rgba(59, 130, 246, 0.3);
}

.cert-badge.general {
  background: rgba(168, 85, 247, 0.15);
  color: #c084fc;
  border: 1px solid rgba(168, 85, 247, 0.3);
}

.cert-date {
  font-family: var(--font-code);
  font-size: 0.8rem;
  color: var(--text-subtle);
}

.cert-title {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: var(--text-main);
}

.cert-issuer {
  font-size: 0.85rem;
  color: var(--primary);
  font-weight: 600;
  margin-bottom: 1rem;
}

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

.cert-bullets li {
  position: relative;
  padding-left: 1.1rem;
}

.cert-bullets li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--accent-teal);
  font-weight: bold;
}

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

.project-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.project-header-icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(56, 189, 248, 0.2), rgba(20, 184, 166, 0.2));
  border: 1px solid rgba(56, 189, 248, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  font-size: 1.3rem;
  margin-bottom: 1.25rem;
}

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

.project-desc-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
  font-size: 0.92rem;
  color: var(--text-muted);
}

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

.project-desc-list li::before {
  content: '⚡';
  position: absolute;
  left: 0;
  font-size: 0.75rem;
}

.project-tech-stack {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: auto;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.tech-pill {
  font-family: var(--font-code);
  font-size: 0.78rem;
  background: rgba(15, 23, 42, 0.9);
  border: 1px solid rgba(56, 189, 248, 0.2);
  color: var(--primary);
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius-sm);
}

/* Contact Section */
.contact-card {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

.contact-options {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
  margin: 2.5rem 0;
}

.contact-tile {
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid var(--bg-card-border);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  transition: var(--transition-normal);
  cursor: pointer;
}

.contact-tile:hover {
  background: rgba(30, 41, 59, 0.8);
  border-color: var(--primary);
  transform: translateY(-4px);
  box-shadow: 0 15px 30px -10px var(--primary-glow);
}

.contact-tile-icon {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: rgba(56, 189, 248, 0.1);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
}

.contact-tile-label {
  font-size: 0.8rem;
  color: var(--text-subtle);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 600;
}

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

/* Footer */
footer {
  padding: 3rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  text-align: center;
  color: var(--text-subtle);
  font-size: 0.9rem;
}

/* Toast Notifications */
.toast-container {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 2000;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  pointer-events: none;
}

.toast {
  background: rgba(15, 23, 42, 0.95);
  border: 1px solid var(--primary);
  color: var(--text-main);
  padding: 0.85rem 1.4rem;
  border-radius: var(--radius-md);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(12px);
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.9rem;
  font-weight: 600;
  transform: translateY(20px);
  opacity: 0;
  transition: var(--transition-normal);
  pointer-events: auto;
}

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

.toast-icon {
  color: var(--accent-teal);
  font-size: 1.1rem;
}

/* Dynamic Live Control Panel Drawer */
.control-panel-drawer {
  position: fixed;
  top: 0;
  right: -550px;
  width: 100%;
  max-width: 520px;
  height: 100vh;
  background: rgba(10, 15, 26, 0.96);
  border-left: 1px solid var(--primary-glow);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  z-index: 1500;
  transition: right 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
  box-shadow: -20px 0 50px rgba(0, 0, 0, 0.8);
}

.control-panel-drawer.open {
  right: 0;
}

.drawer-header {
  padding: 1.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.drawer-title {
  font-size: 1.25rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--text-main);
}

.drawer-close {
  background: rgba(255, 255, 255, 0.05);
  border: none;
  color: var(--text-muted);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition-fast);
  font-size: 1.2rem;
}

.drawer-close:hover {
  background: rgba(239, 68, 68, 0.2);
  color: #ef4444;
}

.drawer-tabs {
  display: flex;
  overflow-x: auto;
  padding: 0.75rem 1.5rem;
  gap: 0.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  background: rgba(0, 0, 0, 0.2);
}

.drawer-tab-btn {
  background: none;
  border: none;
  color: var(--text-muted);
  padding: 0.5rem 0.85rem;
  font-weight: 600;
  font-size: 0.85rem;
  cursor: pointer;
  white-space: nowrap;
  border-radius: var(--radius-sm);
  transition: var(--transition-fast);
}

.drawer-tab-btn.active {
  background: rgba(56, 189, 248, 0.15);
  color: var(--primary);
}

.drawer-body {
  padding: 1.5rem;
  overflow-y: auto;
  flex: 1;
}

.form-group {
  margin-bottom: 1.25rem;
}

.form-label {
  display: block;
  font-size: 0.82rem;
  color: var(--text-muted);
  font-weight: 600;
  margin-bottom: 0.4rem;
  font-family: var(--font-code);
}

.form-input, .form-textarea {
  width: 100%;
  background: rgba(15, 23, 42, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--text-main);
  padding: 0.75rem 1rem;
  border-radius: var(--radius-md);
  font-family: var(--font-main);
  font-size: 0.92rem;
  transition: var(--transition-fast);
}

.form-input:focus, .form-textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 12px var(--primary-glow);
}

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

.drawer-footer {
  padding: 1.25rem 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(7, 10, 18, 0.95);
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

/* Modal Overlay */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(4, 7, 13, 0.85);
  backdrop-filter: blur(8px);
  z-index: 1800;
  display: opacity;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}

.modal-overlay.open {
  opacity: 1;
  pointer-events: auto;
}

.modal-card {
  background: var(--bg-dark);
  border: 1px solid var(--bg-card-border-hover);
  border-radius: var(--radius-lg);
  max-width: 650px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  padding: 2rem;
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.7);
  position: relative;
}

/* Inline Editable Highlight */
[contenteditable="true"] {
  outline: 2px dashed var(--primary) !important;
  border-radius: 4px;
  padding: 2px 4px;
  background: rgba(56, 189, 248, 0.08);
}

/* Responsive Media Queries */
@media (max-width: 992px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
    text-align: center;
  }

  .hero-title-name {
    font-size: 3rem;
    justify-content: center;
  }

  .hero-bio {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-cta-group {
    justify-content: center;
  }

  .hero-stats {
    justify-content: center;
  }

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

@media (max-width: 768px) {
  .nav-menu {
    position: fixed;
    top: 70px;
    left: -100%;
    width: 100%;
    height: calc(100vh - 70px);
    background: rgba(7, 10, 18, 0.98);
    backdrop-filter: blur(20px);
    flex-direction: column;
    padding: 3rem 2rem;
    transition: left 0.35s ease;
  }

  .nav-menu.open {
    left: 0;
  }

  .mobile-toggle {
    display: block;
  }

  .hero-title-name {
    font-size: 2.3rem;
    min-height: 3.5rem;
  }

  .section-title {
    font-size: 2rem;
  }

  .timeline {
    padding-left: 1.5rem;
  }

  .timeline-dot {
    left: -1.5rem;
    width: 14px;
    height: 14px;
  }
}
