/* ==========================================================================
   IMAD IBRAHIM — PORTFOLIO DESIGN SYSTEM & STYLES
   ========================================================================== */

:root {
  /* Color Palette */
  --bg-dark: #080a11;
  --bg-surface: #0e1320;
  --bg-card: rgba(16, 22, 38, 0.72);
  --bg-card-hover: rgba(23, 32, 54, 0.85);
  
  --accent-cyan: #38bdf8;
  --accent-blue: #3b82f6;
  --accent-indigo: #818cf8;
  --accent-purple: #c084fc;
  --accent-emerald: #10b981;
  --accent-amber: #f59e0b;
  --accent-rose: #f43f5e;
  
  --gradient-primary: linear-gradient(135deg, #38bdf8 0%, #818cf8 50%, #c084fc 100%);
  --gradient-accent: linear-gradient(135deg, #06b6d4 0%, #3b82f6 100%);
  --gradient-glow: radial-gradient(circle, rgba(56, 189, 248, 0.15) 0%, rgba(129, 140, 248, 0.05) 50%, transparent 70%);

  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --text-dim: #64748b;
  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-highlight: rgba(56, 189, 248, 0.35);

  /* Typography */
  --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  /* Spacing & Layout */
  --max-width: 1240px;
  --header-height: 76px;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-full: 9999px;

  /* Shadows & Glass */
  --glass-blur: blur(20px);
  --glass-border: 1px solid var(--border-subtle);
  --shadow-card: 0 16px 36px -12px rgba(0, 0, 0, 0.5), 0 0 0 1px var(--border-subtle);
  --shadow-glow: 0 0 30px rgba(56, 189, 248, 0.2);

  /* Transitions */
  --transition-fast: 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-normal: 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

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

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

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

/* Ambient Canvas & Orbs */
#ambient-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
  opacity: 0.6;
}

.glow-orb {
  position: fixed;
  border-radius: 50%;
  filter: blur(120px);
  pointer-events: none;
  z-index: 0;
  opacity: 0.45;
  animation: floatOrb 22s infinite alternate ease-in-out;
}

.orb-1 {
  width: 550px;
  height: 550px;
  top: -150px;
  right: -100px;
  background: radial-gradient(circle, rgba(56, 189, 248, 0.35) 0%, rgba(99, 102, 241, 0.1) 70%, transparent 100%);
}

.orb-2 {
  width: 650px;
  height: 650px;
  bottom: 10%;
  left: -200px;
  background: radial-gradient(circle, rgba(168, 85, 247, 0.25) 0%, rgba(59, 130, 246, 0.1) 70%, transparent 100%);
  animation-delay: -8s;
}

.orb-3 {
  width: 450px;
  height: 450px;
  top: 45%;
  right: 15%;
  background: radial-gradient(circle, rgba(16, 185, 129, 0.18) 0%, rgba(6, 182, 212, 0.08) 70%, transparent 100%);
  animation-delay: -14s;
}

@keyframes floatOrb {
  0% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(60px, 40px) scale(1.12); }
  100% { transform: translate(-40px, 70px) scale(0.92); }
}

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

/* Glass Panels */
.glass-panel {
  background: var(--bg-card);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: var(--glass-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  transition: border-color var(--transition-normal), box-shadow var(--transition-normal), transform var(--transition-normal);
}

.glass-panel:hover {
  border-color: rgba(255, 255, 255, 0.16);
}

/* Typography Utilities */
.gradient-text {
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

.section-tag {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent-cyan);
  background: rgba(56, 189, 248, 0.1);
  border: 1px solid rgba(56, 189, 248, 0.25);
  padding: 0.35rem 0.9rem;
  border-radius: var(--radius-full);
  margin-bottom: 0.85rem;
}

.section-title {
  font-size: clamp(2rem, 3.5vw, 2.75rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.2;
  color: var(--text-main);
  margin-bottom: 0.75rem;
}

.section-subtitle {
  font-size: 1.1rem;
  color: var(--text-muted);
  max-width: 640px;
}

.section-header {
  margin-bottom: 3.5rem;
}

.section {
  padding: 6.5rem 0;
  position: relative;
  z-index: 1;
}

/* ==========================================================================
   NAVIGATION BAR
   ========================================================================== */

.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--header-height);
  z-index: 100;
  transition: background var(--transition-normal), backdrop-filter var(--transition-normal), border-bottom var(--transition-normal);
}

.navbar.scrolled {
  background: rgba(8, 10, 17, 0.82);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border-bottom: 1px solid var(--border-subtle);
}

.nav-container {
  max-width: var(--max-width);
  height: 100%;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: var(--text-main);
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: -0.02em;
}

.logo-badge {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background: radial-gradient(circle at 35% 30%, rgba(56, 189, 248, 0.22), rgba(15, 23, 42, 0.95));
  border: 1.5px solid rgba(56, 189, 248, 0.4);
  border-radius: 10px;
  box-shadow: 0 4px 16px rgba(56, 189, 248, 0.25), inset 0 1px 1px rgba(255, 255, 255, 0.15);
  transition: transform var(--transition-fast), border-color var(--transition-fast), box-shadow var(--transition-fast);
  flex-shrink: 0;
}

.brand-logo:hover .logo-badge {
  transform: translateY(-1px) scale(1.05);
  border-color: rgba(56, 189, 248, 0.75);
  box-shadow: 0 6px 20px rgba(56, 189, 248, 0.45), inset 0 1px 2px rgba(255, 255, 255, 0.3);
}

.logo-badge svg {
  display: block;
  transition: filter var(--transition-fast);
}

.brand-logo:hover .logo-badge svg {
  filter: drop-shadow(0 0 6px rgba(56, 189, 248, 0.65));
}

.brand-dot {
  color: var(--accent-cyan);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
}

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

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

.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: -6px;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--accent-cyan);
  border-radius: var(--radius-full);
}

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

.terminal-toggle-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  color: var(--accent-cyan);
  font-family: var(--font-mono);
  font-size: 0.85rem;
  padding: 0.5rem 0.9rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.terminal-toggle-btn:hover {
  background: rgba(56, 189, 248, 0.15);
  border-color: rgba(56, 189, 248, 0.4);
  transform: translateY(-1px);
}

.mobile-menu-btn {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}

.mobile-menu-btn span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text-main);
  border-radius: 2px;
  transition: transform var(--transition-fast);
}

/* Mobile Nav Overlay */
.mobile-nav-overlay {
  display: none;
  position: fixed;
  top: var(--header-height);
  left: 0;
  width: 100%;
  background: rgba(14, 19, 32, 0.98);
  backdrop-filter: var(--glass-blur);
  border-bottom: 1px solid var(--border-subtle);
  padding: 1.5rem;
  flex-direction: column;
  gap: 1.25rem;
  z-index: 99;
}

.mobile-nav-overlay.open {
  display: flex;
}

.mobile-nav-link {
  text-decoration: none;
  color: var(--text-main);
  font-size: 1.1rem;
  font-weight: 600;
}

/* ==========================================================================
   BUTTONS
   ========================================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  font-family: var(--font-sans);
  font-size: 0.95rem;
  font-weight: 600;
  padding: 0.75rem 1.45rem;
  border-radius: var(--radius-md);
  text-decoration: none;
  cursor: pointer;
  transition: all var(--transition-fast);
  border: none;
  outline: none;
}

.btn-primary {
  background: linear-gradient(135deg, #38bdf8, #818cf8);
  color: #050810;
  box-shadow: 0 4px 20px rgba(56, 189, 248, 0.35);
}

.btn-primary:hover {
  box-shadow: 0 6px 26px rgba(56, 189, 248, 0.5);
  transform: translateY(-2px);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-main);
  border: 1px solid var(--border-subtle);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
}

.btn-glass {
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-muted);
  border: 1px solid var(--border-subtle);
}

.btn-glass:hover {
  color: var(--text-main);
  border-color: var(--border-highlight);
  background: rgba(56, 189, 248, 0.08);
}

.w-full {
  width: 100%;
}

/* ==========================================================================
   HERO SECTION
   ========================================================================== */

.hero-section {
  padding-top: calc(var(--header-height) + 3.5rem);
  padding-bottom: 5rem;
  min-height: calc(100vh - var(--header-height));
  display: flex;
  align-items: center;
}

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

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.4rem 0.95rem;
  border-radius: var(--radius-full);
  background: rgba(16, 185, 129, 0.08);
  border: 1px solid rgba(16, 185, 129, 0.25);
  font-size: 0.85rem;
  font-weight: 500;
  color: #34d399;
  margin-bottom: 1.5rem;
}

.pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 10px #10b981;
  animation: pulseGreen 2s infinite ease-in-out;
}

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

.hero-title {
  font-size: clamp(2.5rem, 4.5vw, 3.85rem);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.035em;
  color: var(--text-main);
  margin-bottom: 1.25rem;
}

.typewriter-container {
  font-family: var(--font-mono);
  font-size: clamp(1.05rem, 1.8vw, 1.3rem);
  color: var(--accent-cyan);
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
}

.typewriter-prefix {
  color: var(--text-muted);
  margin-right: 0.5rem;
}

.cursor {
  display: inline-block;
  width: 2px;
  background-color: var(--accent-cyan);
  animation: blink 1s step-end infinite;
  margin-left: 2px;
}

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

.hero-description {
  font-size: 1.12rem;
  line-height: 1.7;
  color: var(--text-muted);
  max-width: 580px;
  margin-bottom: 2.25rem;
}

.hero-description strong {
  color: var(--text-main);
}

.hero-cta-group {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 3.5rem;
}

/* Hero Metrics */
.hero-metrics {
  display: flex;
  align-items: center;
  gap: 1.75rem;
  padding-top: 1.75rem;
  border-top: 1px solid var(--border-subtle);
  flex-wrap: wrap;
}

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

.metric-number {
  font-size: 1.85rem;
  font-weight: 800;
  color: var(--text-main);
  font-family: var(--font-mono);
  line-height: 1.1;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.metric-label {
  font-size: 0.8rem;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-top: 0.25rem;
}

.metric-divider {
  width: 1px;
  height: 38px;
  background: var(--border-subtle);
}

/* Code Window Card */
.hero-visual {
  position: relative;
}

.code-window-card {
  background: rgba(13, 18, 32, 0.88);
  backdrop-filter: var(--glass-blur);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  box-shadow: 0 25px 60px -15px rgba(0, 0, 0, 0.7), 0 0 40px rgba(56, 189, 248, 0.1);
  overflow: hidden;
  transition: transform var(--transition-normal), border-color var(--transition-normal);
}

.code-window-card:hover {
  transform: translateY(-4px);
  border-color: rgba(56, 189, 248, 0.3);
}

.window-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.85rem 1.25rem;
  background: rgba(255, 255, 255, 0.03);
  border-bottom: 1px solid var(--border-subtle);
}

.window-dots {
  display: flex;
  gap: 6px;
}

.dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
}

.dot.red { background: #ef4444; }
.dot.yellow { background: #f59e0b; }
.dot.green { background: #10b981; }

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

.window-badge {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  padding: 0.2rem 0.5rem;
  border-radius: var(--radius-sm);
  background: rgba(244, 63, 94, 0.12);
  color: #fb7185;
  border: 1px solid rgba(244, 63, 94, 0.25);
}

.window-body {
  padding: 1.5rem;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  line-height: 1.7;
  overflow-x: auto;
}

.window-body code {
  color: #e2e8f0;
}

.kw { color: #f43f5e; font-weight: 600; }
.type { color: #38bdf8; }
.str { color: #34d399; }
.func { color: #fbbf24; }
.prop { color: #c084fc; }

.window-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.85rem 1.25rem;
  background: rgba(0, 0, 0, 0.25);
  border-top: 1px solid var(--border-subtle);
  font-size: 0.8rem;
}

.live-pulse-chip {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: #34d399;
}

.tiny-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #10b981;
}

.tech-tags-mini {
  display: flex;
  gap: 0.5rem;
}

.tech-tags-mini span {
  background: rgba(255, 255, 255, 0.05);
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
  color: var(--text-dim);
  font-family: var(--font-mono);
  font-size: 0.75rem;
}

/* ==========================================================================
   ABOUT SECTION
   ========================================================================== */

.about-grid {
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  gap: 2rem;
}

.main-bio {
  padding: 2.5rem;
}

.bio-avatar-row {
  display: flex;
  align-items: center;
  gap: 1.75rem;
  margin-bottom: 2rem;
}

.avatar-ring {
  position: relative;
  width: 90px;
  height: 90px;
  border-radius: 50%;
  padding: 3px;
  background: var(--gradient-primary);
  flex-shrink: 0;
}

.avatar-img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  background: #1e293b;
  display: block;
}

.avatar-text h3 {
  font-size: 1.55rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 0.25rem;
}

.bio-title {
  color: var(--accent-cyan);
  font-size: 0.95rem;
  margin-bottom: 0.75rem;
}

.bio-links {
  display: flex;
  gap: 0.75rem;
}

.bio-social-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
  text-decoration: none;
  transition: all var(--transition-fast);
}

.bio-social-icon:hover {
  background: rgba(56, 189, 248, 0.15);
  border-color: rgba(56, 189, 248, 0.4);
  color: var(--text-main);
  transform: translateY(-2px);
}

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

.bio-paragraph strong {
  color: var(--text-main);
}

.bio-paragraph em {
  color: var(--accent-cyan);
  font-style: normal;
  font-weight: 600;
}

/* About Highlights Column */
.about-highlights {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

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

.highlight-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.highlight-info h4 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 0.4rem;
}

.highlight-info p {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.55;
}

/* ==========================================================================
   CAREER EXPERIENCE TIMELINE
   ========================================================================== */

.timeline {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  position: relative;
  max-width: 960px;
  margin: 0 auto;
}

.timeline-item {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr);
  gap: 2rem;
  position: relative;
  min-width: 0;
}

.timeline-marker {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
}

.marker-dot {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--bg-surface);
  border: 3px solid var(--accent-cyan);
  box-shadow: 0 0 15px rgba(56, 189, 248, 0.5);
  z-index: 2;
  margin-top: 1.5rem;
}

.timeline-item.current .marker-dot {
  border-color: #38bdf8;
  background: #38bdf8;
  box-shadow: 0 0 20px rgba(56, 189, 248, 0.8);
}

.marker-line {
  position: absolute;
  top: 2.5rem;
  bottom: -2.5rem;
  width: 2px;
  background: linear-gradient(to bottom, rgba(56, 189, 248, 0.4), rgba(255, 255, 255, 0.08));
}

.timeline-content {
  padding: 2.25rem;
  min-width: 0;
  max-width: 100%;
  box-sizing: border-box;
}

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

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

.company-name {
  font-size: 1rem;
  font-weight: 600;
  color: var(--accent-cyan);
}

.role-badge {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  padding: 0.35rem 0.8rem;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
}

.role-badge.active {
  background: rgba(56, 189, 248, 0.12);
  color: var(--accent-cyan);
  border-color: rgba(56, 189, 248, 0.3);
}

.role-desc {
  color: var(--text-muted);
  font-size: 1rem;
  margin-bottom: 1.25rem;
}

.role-bullets {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 1.75rem;
}

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

.role-bullets li strong {
  color: var(--text-main);
}

.role-bullets li::before {
  content: '▹';
  position: absolute;
  left: 0;
  color: var(--accent-cyan);
  font-size: 1.1rem;
  line-height: 1.4;
}

.role-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.badge {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  padding: 0.3rem 0.65rem;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  color: var(--text-dim);
}

/* Fleet Container within Timeline */
.fleet-box {
  margin-top: 1.75rem;
  padding: 1.5rem;
  background: rgba(10, 17, 34, 0.65);
  border: 1px solid rgba(56, 189, 248, 0.25);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(14px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
  min-width: 0;
  max-width: 100%;
  box-sizing: border-box;
}

.fleet-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.25rem;
  flex-wrap: wrap;
  gap: 0.75rem;
}

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

.fleet-badge-live {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  padding: 0.25rem 0.75rem;
  border-radius: 999px;
  background: rgba(16, 185, 129, 0.15);
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.3);
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.fleet-core-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.fleet-core-item {
  padding: 0.85rem 1rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-md);
  transition: all var(--transition-fast);
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  text-decoration: none;
}

.fleet-core-item:hover {
  background: rgba(56, 189, 248, 0.1);
  border-color: rgba(56, 189, 248, 0.4);
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(56, 189, 248, 0.2);
}

.fleet-core-name {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-main);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.fleet-core-type {
  font-size: 0.72rem;
  color: var(--accent-cyan);
  font-family: var(--font-mono);
}

.fleet-pills-category {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.fleet-cat-label {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.35rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

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

.fleet-pill {
  font-size: 0.78rem;
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  color: var(--text-dim);
  transition: all var(--transition-fast);
}

.fleet-pill:hover {
  color: var(--text-main);
  border-color: rgba(56, 189, 248, 0.3);
  background: rgba(56, 189, 248, 0.06);
}

.fleet-footer-note {
  margin-top: 1.25rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.84rem;
  color: var(--text-muted);
  line-height: 1.55;
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
}

.fleet-footer-note svg {
  flex-shrink: 0;
  margin-top: 0.2rem;
}

/* Multi-Tenant Fleet Architecture Matrix */
.fleet-matrix-wrap {
  margin-top: 1.25rem;
  padding-top: 1.15rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  min-width: 0;
  max-width: 100%;
  box-sizing: border-box;
}

.fleet-matrix-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
}

.private-repo-badge {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  background: rgba(245, 158, 11, 0.12);
  color: #fbbf24;
  border: 1px solid rgba(245, 158, 11, 0.3);
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.matrix-scroll-hint {
  display: none;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: var(--accent-cyan);
}

.fleet-matrix-table-scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin-top: 0.5rem;
  border-radius: var(--radius-md);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
  min-width: 0;
  max-width: 100%;
  width: 100%;
  box-sizing: border-box;
}

.fleet-matrix-table-scroll::-webkit-scrollbar {
  height: 5px;
}

.fleet-matrix-table-scroll::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.03);
  border-radius: 4px;
}

.fleet-matrix-table-scroll::-webkit-scrollbar-thumb {
  background: rgba(56, 189, 248, 0.3);
  border-radius: 4px;
}

.fleet-matrix-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.82rem;
  text-align: left;
  background: rgba(6, 12, 26, 0.6);
}

.fleet-matrix-table th {
  padding: 0.7rem 0.95rem;
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-muted);
  font-weight: 600;
  font-size: 0.74rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  white-space: nowrap;
}

.fleet-matrix-table td {
  padding: 0.65rem 0.95rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  color: var(--text-main);
  white-space: nowrap;
}

.fleet-matrix-table tr:hover td {
  background: rgba(56, 189, 248, 0.04);
}

.series-tag {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
  background: rgba(56, 189, 248, 0.15);
  color: var(--accent-cyan);
  border: 1px solid rgba(56, 189, 248, 0.3);
}

.fleet-matrix-table a {
  color: var(--text-main);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  transition: all var(--transition-fast);
}

.fleet-matrix-table a:hover {
  color: var(--accent-cyan);
  transform: translateX(2px);
}

.fleet-matrix-table code {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--accent-purple);
  background: rgba(192, 132, 252, 0.12);
  border: 1px solid rgba(192, 132, 252, 0.2);
  padding: 0.12rem 0.4rem;
  border-radius: 3px;
}

/* ==========================================================================
   FEATURED PROJECTS SHOWCASE
   ========================================================================== */

.project-filters {
  display: flex;
  gap: 0.75rem;
  margin-bottom: 2.5rem;
  flex-wrap: wrap;
}

.filter-tab {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
  font-family: var(--font-sans);
  font-size: 0.9rem;
  font-weight: 600;
  padding: 0.6rem 1.25rem;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.filter-tab:hover {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-main);
}

.filter-tab.active {
  background: var(--accent-cyan);
  border-color: var(--accent-cyan);
  color: #080a11;
  box-shadow: 0 4px 15px rgba(56, 189, 248, 0.35);
}

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

.project-card {
  display: flex;
  flex-direction: column;
  padding: 2rem;
  height: 100%;
  position: relative;
  overflow: hidden;
  transition: transform var(--transition-normal), border-color var(--transition-normal), box-shadow var(--transition-normal);
}

.project-card:hover {
  transform: translateY(-6px);
  border-color: rgba(56, 189, 248, 0.4);
  box-shadow: 0 20px 40px -15px rgba(0, 0, 0, 0.7), 0 0 30px rgba(56, 189, 248, 0.15);
}

.project-top-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.25rem;
}

.project-category-badge {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 0.25rem 0.6rem;
  border-radius: var(--radius-sm);
  background: rgba(56, 189, 248, 0.1);
  color: var(--accent-cyan);
  border: 1px solid rgba(56, 189, 248, 0.25);
}

.project-external-links {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.project-link-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-muted);
  text-decoration: none;
  transition: all var(--transition-fast);
}

.project-link-icon:hover {
  background: rgba(255, 255, 255, 0.15);
  color: var(--text-main);
  transform: translateY(-2px);
}

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

.project-description {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 1.5rem;
  flex-grow: 1;
}

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

.tech-chip {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  padding: 0.25rem 0.55rem;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.04);
  color: #cbd5e1;
  border: 1px solid rgba(255, 255, 255, 0.06);
}

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

.project-detail-btn {
  background: none;
  border: none;
  color: var(--accent-cyan);
  font-weight: 600;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  cursor: pointer;
  transition: gap var(--transition-fast), color var(--transition-fast);
}

.project-detail-btn:hover {
  color: var(--text-main);
  gap: 0.65rem;
}

/* ==========================================================================
   SKILLS MATRIX
   ========================================================================== */

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

.skill-category-card {
  padding: 2.25rem;
  display: flex;
  flex-direction: column;
}

.cat-header {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  margin-bottom: 1.75rem;
}

.cat-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.ios-icon {
  background: rgba(56, 189, 248, 0.12);
  color: #38bdf8;
  border: 1px solid rgba(56, 189, 248, 0.3);
}

.growth-icon {
  background: rgba(129, 140, 248, 0.12);
  color: #818cf8;
  border: 1px solid rgba(129, 140, 248, 0.3);
}

.cloud-icon {
  background: rgba(16, 185, 129, 0.12);
  color: #10b981;
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.tools-icon {
  background: rgba(245, 158, 11, 0.12);
  color: #f59e0b;
  border: 1px solid rgba(245, 158, 11, 0.3);
}

.cat-header h3 {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-main);
}

.cat-subtitle {
  font-size: 0.8rem;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.skills-tags-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.skill-tag {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  padding: 0.4rem 0.75rem;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
  transition: all var(--transition-fast);
}

.skill-tag:hover {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-main);
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
}

.skill-tag.highlight {
  background: rgba(56, 189, 248, 0.08);
  border-color: rgba(56, 189, 248, 0.25);
  color: var(--accent-cyan);
  font-weight: 600;
}

/* ==========================================================================
   CONTACT SECTION
   ========================================================================== */

.contact-card {
  padding: 3.5rem;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 4rem;
}

.contact-title {
  font-size: clamp(2rem, 3.2vw, 2.75rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.03em;
  color: var(--text-main);
  margin-bottom: 1rem;
}

.contact-subtitle {
  font-size: 1.1rem;
  color: var(--text-muted);
  line-height: 1.65;
  margin-bottom: 2.25rem;
}

.contact-detail-items {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin-bottom: 2.5rem;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.c-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  color: var(--accent-cyan);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.c-label {
  display: block;
  font-size: 0.8rem;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.c-val {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text-main);
  text-decoration: none;
}

a.c-val:hover {
  color: var(--accent-cyan);
}

.social-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.social-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  padding: 0.55rem 1.1rem;
  border-radius: var(--radius-full);
  transition: all var(--transition-fast);
}

.social-pill:hover {
  background: rgba(56, 189, 248, 0.12);
  border-color: rgba(56, 189, 248, 0.35);
  color: var(--text-main);
  transform: translateY(-2px);
}

/* Contact Form */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

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

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

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.85rem 1rem;
  background: rgba(14, 19, 32, 0.9);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  color: var(--text-main);
  font-family: var(--font-sans);
  font-size: 0.95rem;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--accent-cyan);
  box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.15);
}

/* ==========================================================================
   FOOTER
   ========================================================================== */

.footer {
  border-top: 1px solid var(--border-subtle);
  padding: 2.5rem 0;
  position: relative;
  z-index: 1;
}

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

.footer-logo {
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--text-main);
  display: block;
}

.footer-desc {
  font-size: 0.85rem;
  color: var(--text-dim);
}

.footer-right {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  font-size: 0.85rem;
  color: var(--text-dim);
}

.back-to-top {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
  text-decoration: none;
  transition: all var(--transition-fast);
}

.back-to-top:hover {
  background: var(--accent-cyan);
  color: #080a11;
  transform: translateY(-2px);
}

/* ==========================================================================
   MODAL DIALOG
   ========================================================================== */

.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(5, 7, 12, 0.8);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-normal);
}

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

.modal-dialog {
  max-width: 760px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  padding: 2.75rem;
  transform: scale(0.95);
  transition: transform var(--transition-normal);
  background: #0f1523;
  border: 1px solid rgba(56, 189, 248, 0.3);
}

.modal-overlay.open .modal-dialog {
  transform: scale(1);
}

.modal-close-btn {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
  font-size: 1.5rem;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.modal-close-btn:hover {
  background: rgba(244, 63, 94, 0.2);
  color: #fb7185;
}

/* Modal Content Styling */
.modal-category {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--accent-cyan);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 0.5rem;
}

.modal-title {
  font-size: 2rem;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 1rem;
}

.modal-summary {
  font-size: 1.05rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 1.75rem;
}

.modal-section-h {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-main);
  margin-top: 1.75rem;
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.modal-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  margin-bottom: 1.5rem;
}

.modal-list li {
  position: relative;
  padding-left: 1.5rem;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.modal-list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: #34d399;
  font-weight: 700;
}

.arch-box {
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: #cbd5e1;
  margin: 1rem 0 1.75rem;
  line-height: 1.6;
  white-space: pre-wrap;
}

/* ==========================================================================
   CLI TERMINAL DRAWER
   ========================================================================== */

.terminal-drawer {
  position: fixed;
  bottom: -450px;
  right: 2rem;
  width: 540px;
  height: 420px;
  z-index: 210;
  transition: bottom var(--transition-normal);
}

.terminal-drawer.open {
  bottom: 1.5rem;
}

.terminal-window {
  width: 100%;
  height: 100%;
  background: #090d16;
  border: 1px solid rgba(56, 189, 248, 0.4);
  border-radius: var(--radius-md);
  box-shadow: 0 25px 60px -10px rgba(0, 0, 0, 0.8), 0 0 40px rgba(56, 189, 248, 0.2);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

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

.terminal-dots {
  display: flex;
  gap: 6px;
}

.terminal-dots .dot {
  cursor: pointer;
}

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

.terminal-close {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 1.25rem;
  cursor: pointer;
  line-height: 1;
}

.terminal-close:hover {
  color: #ef4444;
}

.terminal-content {
  flex-grow: 1;
  padding: 1.25rem;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
}

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

.term-line {
  line-height: 1.5;
  color: #e2e8f0;
}

.term-line.welcome {
  color: #38bdf8;
  font-weight: 600;
}

.term-line.hint {
  color: #94a3b8;
  font-size: 0.8rem;
}

.term-cmd {
  color: #34d399;
  font-weight: 700;
}

.terminal-input-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: auto;
}

.term-prompt {
  color: #34d399;
  font-weight: 700;
}

.term-input {
  flex-grow: 1;
  background: none;
  border: none;
  color: var(--text-main);
  font-family: var(--font-mono);
  font-size: 0.85rem;
  outline: none;
}

/* ==========================================================================
   TOAST NOTIFICATION
   ========================================================================== */

.toast {
  position: fixed;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  background: rgba(16, 185, 129, 0.95);
  color: #050810;
  padding: 0.85rem 1.6rem;
  border-radius: var(--radius-full);
  font-weight: 700;
  font-size: 0.9rem;
  box-shadow: 0 10px 30px rgba(16, 185, 129, 0.4);
  z-index: 300;
  pointer-events: none;
  opacity: 0;
  transition: all var(--transition-normal);
}

.toast.show {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}

/* ==========================================================================
   RESPONSIVE DESIGN (MEDIA QUERIES)
   ========================================================================== */

@media (max-width: 1024px) {
  .hero-container {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  
  .about-grid {
    grid-template-columns: 1fr;
  }

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

  .terminal-drawer {
    right: 1rem;
    left: 1rem;
    width: auto;
  }
}

@media (max-width: 768px) {
  :root {
    --header-height: 64px;
  }

  html, body {
    overflow-x: hidden;
    width: 100%;
  }

  .container {
    padding: 0 1.15rem;
  }

  /* Navigation Bar */
  .navbar {
    height: 64px;
  }

  .brand-logo {
    font-size: 1.05rem;
    gap: 0.55rem;
  }

  .logo-badge {
    width: 32px;
    height: 32px;
    border-radius: 9px;
  }

  .logo-badge svg {
    width: 17px;
    height: 17px;
  }

  .nav-links,
  .terminal-toggle-btn,
  .nav-cta {
    display: none;
  }

  .mobile-menu-btn {
    display: flex;
  }

  /* Section Spacing */
  .section {
    padding: 3.5rem 0;
  }

  .section-header {
    margin-bottom: 2rem;
  }

  .section-title {
    font-size: 1.85rem;
    line-height: 1.22;
  }

  .section-subtitle {
    font-size: 0.95rem;
  }

  /* CRITICAL FIX: HERO SECTION ON MOBILE */
  .hero-section {
    display: block !important;
    min-height: auto !important;
    padding-top: calc(64px + 1.25rem) !important;
    padding-bottom: 3.25rem !important;
  }

  .hero-container {
    display: flex !important;
    flex-direction: column !important;
    gap: 2.25rem !important;
    grid-template-columns: 1fr !important;
  }

  .hero-content {
    width: 100%;
  }

  .status-pill {
    font-size: 0.78rem;
    padding: 0.35rem 0.8rem;
    margin-bottom: 1rem;
    max-width: 100%;
    line-height: 1.35;
  }

  .hero-title {
    font-size: clamp(1.95rem, 7.8vw, 2.45rem);
    line-height: 1.16;
    letter-spacing: -0.03em;
    margin-bottom: 0.85rem;
  }

  .typewriter-container {
    font-size: 1rem;
    line-height: 1.4;
    margin-bottom: 1.15rem;
  }

  .hero-description {
    font-size: 0.98rem;
    line-height: 1.62;
    margin-bottom: 1.75rem;
  }

  .hero-cta-group {
    display: flex;
    flex-direction: column;
    width: 100%;
    gap: 0.75rem;
    margin-bottom: 2rem;
  }

  .hero-cta-group .btn {
    width: 100%;
    justify-content: center;
    padding: 0.85rem 1.25rem;
  }

  /* 2x2 Clean Grid for Mobile Metrics */
  .hero-metrics {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 0.85rem !important;
    padding-top: 1.5rem !important;
    border-top: 1px solid var(--border-subtle);
    width: 100%;
  }

  .metric-divider {
    display: none !important;
  }

  .metric-item {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    padding: 0.85rem 0.95rem;
  }

  .metric-number {
    font-size: 1.65rem;
    line-height: 1.1;
  }

  .metric-label {
    font-size: 0.72rem;
    letter-spacing: 0.04em;
    line-height: 1.3;
    margin-top: 0.25rem;
  }

  /* Code Window Card on Mobile */
  .hero-visual {
    width: 100%;
  }

  .code-window-card {
    border-radius: var(--radius-md);
  }

  .window-header {
    padding: 0.75rem 1rem;
  }

  .window-title {
    font-size: 0.72rem;
    max-width: 160px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .window-body {
    padding: 1rem 0.85rem;
    font-size: 0.76rem;
    line-height: 1.6;
  }

  .window-footer {
    padding: 0.75rem 1rem;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.6rem;
  }

  /* About Section on Mobile */
  .about-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .main-bio {
    padding: 1.5rem 1.25rem;
  }

  .bio-avatar-row {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    margin-bottom: 1.5rem;
  }

  .avatar-ring {
    width: 72px;
    height: 72px;
  }

  .avatar-text h3 {
    font-size: 1.35rem;
  }

  .bio-title {
    font-size: 0.85rem;
  }

  .bio-paragraph {
    font-size: 0.95rem;
    line-height: 1.65;
  }

  .about-highlights {
    gap: 1rem;
  }

  .highlight-card {
    padding: 1.25rem 1rem;
    gap: 1rem;
  }

  .highlight-icon {
    width: 42px;
    height: 42px;
  }

  .highlight-info h4 {
    font-size: 1rem;
  }

  .highlight-info p {
    font-size: 0.85rem;
  }

  /* Career Timeline on Mobile */
  .timeline {
    gap: 1.5rem;
    width: 100%;
  }

  .timeline-item {
    grid-template-columns: 14px minmax(0, 1fr) !important;
    gap: 0.85rem !important;
    min-width: 0 !important;
  }

  .marker-dot {
    width: 14px;
    height: 14px;
    margin-top: 1.15rem;
  }

  .marker-line {
    top: 2rem;
    bottom: -2rem;
  }

  .timeline-content {
    padding: 1.25rem 1rem !important;
    min-width: 0 !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden;
  }

  .timeline-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.45rem;
    margin-bottom: 0.85rem;
  }

  .role-title {
    font-size: 1.1rem;
    line-height: 1.35;
    overflow-wrap: break-word;
    word-break: break-word;
  }

  .company-name {
    font-size: 0.92rem;
  }

  .role-badge {
    font-size: 0.72rem;
    padding: 0.25rem 0.6rem;
  }

  .role-desc {
    font-size: 0.9rem;
    line-height: 1.55;
    margin-bottom: 1rem;
    overflow-wrap: break-word;
  }

  .role-bullets {
    gap: 0.65rem;
    margin-bottom: 1.25rem;
  }

  .role-bullets li {
    font-size: 0.86rem;
    line-height: 1.55;
    padding-left: 1.15rem;
    overflow-wrap: break-word;
    word-break: break-word;
  }

  .role-bullets code {
    font-size: 0.8em;
    word-break: break-all;
  }

  /* Fleet Box & Components on Mobile */
  .fleet-box {
    margin-top: 1.25rem;
    padding: 1rem 0.85rem !important;
    border-radius: var(--radius-md) !important;
    min-width: 0 !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }

  .fleet-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.45rem;
    margin-bottom: 1rem;
  }

  .fleet-title {
    font-size: 0.92rem;
    line-height: 1.35;
  }

  .fleet-badge-live {
    font-size: 0.7rem;
    padding: 0.2rem 0.6rem;
  }

  .fleet-core-grid {
    grid-template-columns: 1fr !important;
    gap: 0.6rem !important;
    margin-bottom: 1.25rem;
  }

  .fleet-core-item {
    padding: 0.75rem 0.85rem !important;
    box-sizing: border-box;
  }

  .fleet-core-name {
    font-size: 0.85rem;
    gap: 0.5rem;
    line-height: 1.35;
  }

  .fleet-core-name span {
    overflow-wrap: break-word;
    word-break: break-word;
  }

  .fleet-core-type {
    font-size: 0.7rem;
  }

  .fleet-pills-category {
    gap: 0.75rem;
  }

  .fleet-cat-label {
    font-size: 0.72rem;
    margin-bottom: 0.25rem;
  }

  .fleet-pills {
    gap: 0.35rem;
  }

  .fleet-pill {
    font-size: 0.74rem;
    padding: 0.22rem 0.55rem;
    line-height: 1.3;
    max-width: 100%;
    box-sizing: border-box;
    overflow-wrap: break-word;
  }

  .fleet-matrix-wrap {
    margin-top: 1rem;
    padding-top: 0.85rem;
    min-width: 0 !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }

  .fleet-matrix-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.35rem;
    margin-bottom: 0.4rem;
  }

  .private-repo-badge {
    font-size: 0.68rem;
    padding: 0.18rem 0.5rem;
  }

  .matrix-scroll-hint {
    display: inline-block;
  }

  .fleet-matrix-table-scroll {
    width: 100%;
    max-width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin-top: 0.5rem;
    border-radius: var(--radius-sm);
  }

  .fleet-matrix-table {
    min-width: 480px;
    font-size: 0.78rem;
  }

  .fleet-matrix-table th,
  .fleet-matrix-table td {
    padding: 0.55rem 0.75rem;
  }

  .fleet-footer-note {
    font-size: 0.78rem;
    gap: 0.45rem;
    margin-top: 1rem;
    padding-top: 0.75rem;
    line-height: 1.45;
  }

  .role-tags {
    gap: 0.35rem;
    margin-top: 1.15rem;
  }

  .role-tags .badge {
    font-size: 0.74rem;
    padding: 0.22rem 0.55rem;
  }

  /* Projects Showcase on Mobile */
  .project-filters {
    display: flex;
    overflow-x: auto;
    flex-wrap: nowrap;
    gap: 0.5rem;
    padding-bottom: 0.65rem;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  .project-filters::-webkit-scrollbar {
    display: none;
  }

  .filter-tab {
    white-space: nowrap;
    flex-shrink: 0;
    font-size: 0.82rem;
    padding: 0.5rem 1rem;
  }

  .projects-grid {
    grid-template-columns: 1fr !important;
    gap: 1.25rem !important;
  }

  .project-card {
    padding: 1.5rem 1.25rem;
  }

  .project-title {
    font-size: 1.2rem;
  }

  .project-description {
    font-size: 0.9rem;
  }

  /* Skills Matrix on Mobile */
  .skills-grid {
    grid-template-columns: 1fr !important;
    gap: 1.25rem !important;
  }

  .skill-category-card {
    padding: 1.5rem 1.25rem;
  }

  .cat-header {
    gap: 1rem;
    margin-bottom: 1.25rem;
  }

  .cat-icon {
    width: 42px;
    height: 42px;
  }

  .cat-header h3 {
    font-size: 1.05rem;
  }

  /* Contact Section on Mobile */
  .contact-card {
    padding: 1.75rem 1.15rem !important;
  }

  .contact-grid {
    grid-template-columns: 1fr !important;
    gap: 2.25rem !important;
  }

  .contact-title {
    font-size: 1.85rem !important;
    line-height: 1.2;
  }

  .contact-subtitle {
    font-size: 0.95rem;
    margin-bottom: 1.75rem;
  }

  .contact-detail-items {
    gap: 1.15rem;
    margin-bottom: 2rem;
  }

  .c-icon {
    width: 38px;
    height: 38px;
  }

  .c-val {
    font-size: 0.92rem;
    word-break: break-all;
  }

  .social-bar {
    gap: 0.5rem;
  }

  .social-pill {
    padding: 0.45rem 0.85rem;
    font-size: 0.82rem;
  }

  /* CLI Terminal Drawer on Mobile */
  .terminal-drawer {
    width: calc(100% - 1.5rem) !important;
    right: 0.75rem !important;
    left: 0.75rem !important;
    height: 360px !important;
    bottom: -400px !important;
  }

  .terminal-drawer.open {
    bottom: 0.75rem !important;
  }

  /* Project Details Modal on Mobile */
  .modal-overlay {
    padding: 1rem !important;
  }

  .modal-dialog {
    padding: 1.75rem 1.15rem !important;
    border-radius: var(--radius-md) !important;
    max-height: 85vh !important;
  }

  .modal-title {
    font-size: 1.45rem !important;
  }

  .modal-summary {
    font-size: 0.92rem;
  }

  .arch-box {
    font-size: 0.65rem !important;
    padding: 0.75rem !important;
    overflow-x: auto;
  }

  .modal-list li {
    font-size: 0.88rem;
  }
}

@media (max-width: 480px) {
  .hero-metrics {
    grid-template-columns: 1fr 1fr;
    gap: 0.65rem !important;
  }

  .metric-number {
    font-size: 1.45rem;
  }

  .metric-label {
    font-size: 0.68rem;
  }

  .hero-title {
    font-size: 1.85rem;
  }

  .btn {
    padding: 0.75rem 1rem;
    font-size: 0.9rem;
  }

  /* Extra tight phone screen tuning */
  .timeline-item {
    grid-template-columns: 12px minmax(0, 1fr) !important;
    gap: 0.65rem !important;
  }

  .marker-dot {
    width: 12px;
    height: 12px;
    margin-top: 1.05rem;
  }

  .timeline-content {
    padding: 1.1rem 0.8rem !important;
  }

  .fleet-box {
    padding: 0.85rem 0.65rem !important;
  }

  .role-title {
    font-size: 1.05rem;
  }

  .fleet-matrix-table {
    min-width: 440px;
  }
}

