/* =========================================================
   TALHA REHMAN: DEVOPS PORTFOLIO
   Light / White Theme: Multi-page version
========================================================= */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Manrope:wght@700;800;900&family=JetBrains+Mono:wght@400;500;600&display=swap');

:root {
  --bg:           #F7F9FF;
  --bg-alt:       #EEF2FF;
  --surface:      #FFFFFF;
  --surface-2:    #F0F4FF;
  --surface-3:    #E8EEFF;
  --border:       #DDE3F0;
  --border-light: #C8D0E0;
  --border-glow:  rgba(0, 102, 255, 0.2);

  --text-primary:   #0D1117;
  --text-secondary: #3D4A5C;
  --text-muted:     #7A8699;

  --accent:         #0066FF;
  --accent-dim:     rgba(0,102,255,.10);
  --accent-glow:    rgba(0,102,255,.20);
  --accent-bright:  #338EFF;
  --accent-dark:    #0044CC;

  --green:          #10B981;
  --green-dim:      rgba(16,185,129,.12);
  --amber:          #F59E0B;
  --amber-dim:      rgba(245,158,11,.12);
  --red:            #EF4444;
  --purple:         #8B5CF6;
  --orange:         #F97316;

  --font-sans:    'Inter', system-ui, sans-serif;
  --font-display: 'Manrope', system-ui, sans-serif;
  --font-mono:    'JetBrains Mono', 'Courier New', monospace;

  --nav-h: 72px;
  --section-pad: 100px;
  --container-max: 1200px;
  --radius: 16px;
  --radius-sm: 8px;
  --radius-lg: 24px;

  --shadow-sm:  0 1px 3px rgba(0,0,0,.06), 0 1px 2px rgba(0,0,0,.04);
  --shadow:     0 4px 16px rgba(0,0,0,.08), 0 1px 4px rgba(0,0,0,.04);
  --shadow-lg:  0 12px 40px rgba(0,0,0,.12), 0 4px 12px rgba(0,0,0,.06);
  --shadow-xl:  0 24px 64px rgba(0,0,0,.16);

  --ease-out-expo: cubic-bezier(0.16,1,0.3,1);
  --ease-in-out: cubic-bezier(0.4,0,0.2,1);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  background: var(--bg);
  color: var(--text-primary);
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  line-height: 1.6;
}
a { color: inherit; text-decoration: none; }
button { background: none; border: none; cursor: pointer; color: inherit; font: inherit; }
canvas { display: block; }
ul { list-style: none; }
img { max-width: 100%; display: block; }

::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--border-light); border-radius: 3px; }
::selection { background: var(--accent-dim); color: var(--accent); }

.container { max-width: var(--container-max); margin: 0 auto; padding: 0 48px; }
.section { padding: var(--section-pad) 0; position: relative; overflow: hidden; }
.section-alt { background: var(--bg-alt); }

.section-label-tag {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  color: var(--accent);
  margin-bottom: 16px;
  text-transform: uppercase;
  font-weight: 600;
}

.section-heading {
  font-family: var(--font-display);
  font-size: clamp(40px, 5vw, 64px);
  font-weight: 800;
  line-height: 1.1;
  color: var(--text-primary);
  margin-bottom: 20px;
  letter-spacing: -0.02em;
}

.section-sub {
  font-size: 18px;
  color: var(--text-secondary);
  max-width: 560px;
  line-height: 1.7;
  margin-bottom: 60px;
}

.reveal-section { opacity: 0; transform: translateY(40px); }
.reveal-section.revealed { animation: revealUp 0.8s var(--ease-out-expo) forwards; }
@keyframes revealUp { to { opacity: 1; transform: translateY(0); } }

/* BOOT OVERLAY */
#boot-overlay {
  position: fixed; inset: 0;
  background: #0D1117;
  z-index: 9999;
  display: flex; align-items: center; justify-content: center;
  transition: opacity 0.6s ease, visibility 0.6s ease;
}
#boot-overlay.done { opacity: 0; visibility: hidden; pointer-events: none; }
.boot-content { display: flex; flex-direction: column; align-items: flex-start; gap: 16px; min-width: 360px; }
.boot-logo { font-family: var(--font-mono); font-size: 24px; font-weight: 600; color: #E8EAED; letter-spacing: 0.06em; }
.boot-subtitle { font-family: var(--font-mono); font-size: 11px; color: #4B5159; letter-spacing: 0.12em; }
.boot-progress-wrap { display: flex; align-items: center; gap: 12px; width: 100%; }
.boot-progress-track { flex: 1; height: 2px; background: #1E2328; border-radius: 1px; overflow: hidden; }
.boot-progress-fill { height: 100%; width: 0%; background: #0066FF; border-radius: 1px; box-shadow: 0 0 8px rgba(0,102,255,.5); transition: width 0.1s linear; }
.boot-percent { font-family: var(--font-mono); font-size: 11px; color: #0066FF; min-width: 36px; text-align: right; }
.boot-checks { display: flex; flex-direction: column; gap: 6px; margin-top: 8px; }
.boot-check { font-family: var(--font-mono); font-size: 12px; color: #10B981; opacity: 0; transform: translateX(-8px); transition: opacity 0.3s ease, transform 0.3s ease; }
.boot-check.visible { opacity: 1; transform: translateX(0); }
.boot-ready { font-family: var(--font-mono); font-size: 14px; color: #0066FF; letter-spacing: 0.12em; opacity: 0; margin-top: 8px; transition: opacity 0.4s ease; }
.boot-ready.visible { opacity: 1; }

/* NAVIGATION */
#nav {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 1000; height: var(--nav-h);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  background: rgba(247,249,255,0.93);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 1px 0 rgba(0,0,0,.04);
  transition: box-shadow 0.3s ease;
}
#nav.scrolled { box-shadow: var(--shadow-sm); }
.nav-inner { max-width: var(--container-max); margin: 0 auto; padding: 0 48px; height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 32px; }
.nav-logo { font-family: var(--font-mono); font-size: 15px; font-weight: 700; color: var(--text-primary); letter-spacing: 0.06em; white-space: nowrap; transition: color 0.2s ease; }
.nav-logo:hover { color: var(--accent); }
.nav-links { display: flex; align-items: center; gap: 4px; }
.nav-link { font-size: 14px; font-weight: 500; color: var(--text-secondary); padding: 8px 16px; border-radius: 8px; transition: color 0.2s ease, background 0.2s ease; white-space: nowrap; }
.nav-link:hover { color: var(--text-primary); background: var(--surface-2); }
.nav-link.active { color: var(--accent); background: var(--accent-dim); font-weight: 600; }
.nav-status { display: flex; align-items: center; gap: 6px; padding: 6px 14px; border: 1px solid var(--border); border-radius: 20px; background: var(--surface); white-space: nowrap; box-shadow: var(--shadow-sm); }
.nav-status-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--green); box-shadow: 0 0 6px var(--green); animation: pulse-green 2s ease-in-out infinite; }
.nav-status-text { font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.1em; color: var(--green); font-weight: 600; }
@keyframes pulse-green { 0%, 100% { opacity: 1; box-shadow: 0 0 6px var(--green); } 50% { opacity: 0.6; box-shadow: 0 0 12px var(--green); } }

/* PAGE HEADER */
.page-header {
  padding-top: calc(var(--nav-h) + 64px);
  padding-bottom: 64px;
  background: linear-gradient(135deg, #F7F9FF 0%, #EEF2FF 100%);
  border-bottom: 1px solid var(--border);
  position: relative; overflow: hidden;
}
.page-header::before { content: ''; position: absolute; top: -100px; right: -100px; width: 500px; height: 500px; background: radial-gradient(circle, rgba(0,102,255,.06) 0%, transparent 70%); pointer-events: none; }
.page-header-inner { max-width: var(--container-max); margin: 0 auto; padding: 0 48px; }
.page-title { font-family: var(--font-display); font-size: clamp(52px, 7vw, 88px); font-weight: 900; color: var(--text-primary); letter-spacing: -0.03em; line-height: 1; margin-bottom: 18px; }
.page-desc { font-size: 18px; color: var(--text-secondary); max-width: 580px; line-height: 1.7; }
.page-number { font-family: var(--font-mono); font-size: 140px; font-weight: 700; color: rgba(0,0,0,.04); position: absolute; right: 48px; bottom: -20px; line-height: 1; user-select: none; pointer-events: none; }

/* HERO */
#hero { position: relative; height: 100vh; min-height: 700px; display: flex; align-items: center; justify-content: center; overflow: hidden; background: #0D1117; }
#three-canvas { position: absolute; inset: 0; width: 100% !important; height: 100% !important; z-index: 0; }
.hero-grid-overlay { position: absolute; inset: 0; background-image: linear-gradient(rgba(0,102,255,0.04) 1px, transparent 1px), linear-gradient(90deg, rgba(0,102,255,0.04) 1px, transparent 1px); background-size: 60px 60px; z-index: 1; mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black 40%, transparent 100%); }
.hero-status-panel { position: absolute; top: calc(var(--nav-h) + 24px); right: 48px; background: rgba(17,19,22,0.92); border: 1px solid rgba(255,255,255,.08); border-radius: var(--radius); padding: 18px 22px; backdrop-filter: blur(12px); z-index: 10; min-width: 200px; }
.hsp-header { font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.12em; color: #10B981; margin-bottom: 14px; display: flex; align-items: center; gap: 6px; }
.hsp-dot { width: 6px; height: 6px; border-radius: 50%; background: #10B981; box-shadow: 0 0 6px #10B981; animation: pulse-green 2s ease-in-out infinite; }
.hsp-rows { display: flex; flex-direction: column; gap: 8px; }
.hsp-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.hsp-label { font-family: var(--font-mono); font-size: 10px; color: rgba(255,255,255,.3); letter-spacing: 0.08em; }
.hsp-val { font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.08em; }
.hsp-val[data-status="online"] { color: #10B981; }

.hero-content { position: relative; z-index: 10; text-align: center; max-width: 820px; padding: 0 24px; }
.hero-eyebrow { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.14em; color: #338EFF; margin-bottom: 24px; opacity: 0; animation: fadeUp 0.6s var(--ease-out-expo) 0.1s forwards; }
.hero-name { font-family: var(--font-display); font-size: clamp(56px, 8vw, 100px); font-weight: 900; line-height: 1; letter-spacing: -0.03em; color: #FFFFFF; margin-bottom: 16px; opacity: 0; animation: fadeUp 0.7s var(--ease-out-expo) 0.2s forwards; }
.hero-title { font-family: var(--font-mono); font-size: clamp(14px, 2.5vw, 20px); color: #338EFF; letter-spacing: 0.06em; margin-bottom: 24px; opacity: 0; animation: fadeUp 0.7s var(--ease-out-expo) 0.3s forwards; }
.hero-tagline { font-size: clamp(17px, 2vw, 21px); color: rgba(255,255,255,.65); line-height: 1.7; margin-bottom: 44px; opacity: 0; animation: fadeUp 0.7s var(--ease-out-expo) 0.4s forwards; }
.hero-cta { display: flex; align-items: center; justify-content: center; gap: 16px; margin-bottom: 52px; opacity: 0; animation: fadeUp 0.7s var(--ease-out-expo) 0.5s forwards; }

.btn { display: inline-flex; align-items: center; gap: 8px; padding: 14px 32px; border-radius: 10px; font-family: var(--font-sans); font-size: 15px; font-weight: 600; letter-spacing: 0.01em; transition: all 0.25s ease; cursor: pointer; }
.btn-primary { background: #0066FF; color: #FFFFFF; border: none; box-shadow: 0 0 24px rgba(0,102,255,.4), 0 4px 12px rgba(0,0,0,.2); }
.btn-primary:hover { background: #338EFF; box-shadow: 0 0 40px rgba(0,102,255,.5), 0 8px 24px rgba(0,0,0,.3); transform: translateY(-2px); }
.btn-ghost { background: rgba(255,255,255,.08); color: #FFFFFF; border: 1px solid rgba(255,255,255,.2); backdrop-filter: blur(8px); }
.btn-ghost:hover { border-color: rgba(255,255,255,.4); background: rgba(255,255,255,.14); transform: translateY(-2px); }
.btn-accent { background: var(--accent); color: white; border: none; box-shadow: 0 4px 16px var(--accent-glow); }
.btn-accent:hover { background: var(--accent-bright); box-shadow: 0 8px 24px var(--accent-glow); transform: translateY(-2px); }
.btn-outline { background: transparent; color: var(--accent); border: 2px solid var(--accent); }
.btn-outline:hover { background: var(--accent); color: white; transform: translateY(-2px); }

.hero-topology { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 8px; opacity: 0; animation: fadeUp 0.7s var(--ease-out-expo) 0.65s forwards; }
.topo-node { font-family: var(--font-mono); font-size: 12px; color: rgba(255,255,255,.45); padding: 4px 12px; border: 1px solid rgba(255,255,255,.1); border-radius: 4px; background: rgba(255,255,255,.04); transition: color 0.2s, border-color 0.2s; }
.topo-node:hover { color: #338EFF; border-color: rgba(51,142,255,.3); }
.topo-arrow { font-family: var(--font-mono); font-size: 12px; color: rgba(255,255,255,.25); }
.hero-scroll-hint { position: absolute; bottom: 40px; left: 50%; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; gap: 10px; z-index: 10; opacity: 0; animation: fadeIn 1s ease 1.2s forwards; }
.hero-scroll-hint span { font-family: var(--font-mono); font-size: 9px; letter-spacing: 0.14em; color: rgba(255,255,255,.3); }
.scroll-line { width: 1px; height: 40px; background: linear-gradient(to bottom, rgba(255,255,255,.2), transparent); animation: scrollLineAnim 2s ease-in-out infinite; }
@keyframes scrollLineAnim { 0% { transform: scaleY(0); transform-origin: top; } 50% { transform: scaleY(1); transform-origin: top; } 51% { transform: scaleY(1); transform-origin: bottom; } 100% { transform: scaleY(0); transform-origin: bottom; } }
@keyframes fadeUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
@keyframes fadeIn { to { opacity: 0.6; } }

/* ABOUT PAGE */
.about-layout { display: grid; grid-template-columns: 420px 1fr; gap: 80px; align-items: start; }
.about-photo-col { position: sticky; top: calc(var(--nav-h) + 24px); }
.about-photo-wrap { position: relative; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-xl); }
.about-photo-wrap img { width: 100%; height: 580px; object-fit: cover; object-position: top center; display: block; }
.about-photo-badge { position: absolute; bottom: 24px; left: 24px; right: 24px; background: rgba(255,255,255,.95); backdrop-filter: blur(12px); border: 1px solid var(--border); border-radius: var(--radius); padding: 14px 20px; display: flex; align-items: center; justify-content: space-between; box-shadow: var(--shadow); }
.apb-name { font-family: var(--font-display); font-size: 18px; font-weight: 800; color: var(--text-primary); }
.apb-role { font-size: 12px; color: var(--text-secondary); margin-top: 2px; }
.apb-status { display: flex; align-items: center; gap: 6px; font-family: var(--font-mono); font-size: 11px; color: var(--green); font-weight: 600; }
.apb-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--green); box-shadow: 0 0 6px var(--green); animation: pulse-green 2s ease-in-out infinite; }

.about-content-col {}
.about-headline { font-family: var(--font-display); font-size: clamp(36px, 4vw, 52px); font-weight: 900; color: var(--text-primary); letter-spacing: -0.02em; line-height: 1.1; margin-bottom: 24px; }
.about-bio { font-size: 17px; color: var(--text-secondary); line-height: 1.8; margin-bottom: 18px; }
.about-highlight { background: var(--accent-dim); border-left: 3px solid var(--accent); border-radius: 0 var(--radius-sm) var(--radius-sm) 0; padding: 16px 20px; margin: 28px 0; }
.about-highlight p { font-size: 16px; color: var(--accent); font-weight: 500; font-style: italic; line-height: 1.6; }

.about-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 36px; margin-bottom: 48px; }
.astat { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px 20px; text-align: center; box-shadow: var(--shadow-sm); transition: all 0.25s ease; }
.astat:hover { border-color: var(--accent); box-shadow: var(--shadow), 0 0 0 4px var(--accent-dim); transform: translateY(-2px); }
.astat-val { font-family: var(--font-display); font-size: 36px; font-weight: 900; color: var(--accent); margin-bottom: 6px; line-height: 1; }
.astat-label { font-size: 13px; color: var(--text-muted); font-weight: 500; }

.about-meta-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 28px; margin-bottom: 32px; box-shadow: var(--shadow-sm); position: relative; overflow: hidden; }
.about-meta-card::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px; background: linear-gradient(90deg, var(--accent), var(--purple)); }
.amc-header { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.12em; color: var(--text-muted); margin-bottom: 18px; padding-bottom: 12px; border-bottom: 1px solid var(--border); text-transform: uppercase; }
.amc-row { display: flex; align-items: flex-start; gap: 16px; padding: 10px 0; border-bottom: 1px solid var(--border); }
.amc-row:last-child { border-bottom: none; }
.amc-key { font-family: var(--font-mono); font-size: 11px; color: var(--text-muted); letter-spacing: 0.08em; min-width: 90px; flex-shrink: 0; text-transform: uppercase; }
.amc-val { font-size: 14px; color: var(--text-primary); font-weight: 500; }
.status-green { color: var(--green) !important; font-weight: 600; }

/* EXPERIENCE TIMELINE */
.timeline-section { padding: 60px 0; }
.timeline-title { font-family: var(--font-display); font-size: 28px; font-weight: 800; color: var(--text-primary); margin-bottom: 36px; }
.timeline-wrapper { position: relative; display: flex; flex-direction: column; gap: 0; }
.tl-track { position: absolute; left: 20px; top: 20px; bottom: 20px; width: 2px; background: linear-gradient(to bottom, var(--accent), var(--purple)); border-radius: 1px; }
.tl-nodes { display: flex; flex-direction: column; gap: 32px; padding-left: 60px; }
.tl-node { position: relative; }
.tln-dot { position: absolute; left: -48px; top: 18px; width: 14px; height: 14px; border-radius: 50%; background: var(--surface); border: 3px solid var(--border); transition: all 0.3s ease; }
.tl-node.active .tln-dot, .tl-node:hover .tln-dot { border-color: var(--accent); background: var(--accent); box-shadow: 0 0 0 4px var(--accent-dim); }
.tln-year { font-family: var(--font-mono); font-size: 13px; color: var(--accent); font-weight: 600; margin-bottom: 8px; letter-spacing: 0.06em; }
.tln-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 22px 24px; box-shadow: var(--shadow-sm); transition: all 0.25s ease; }
.tl-node:hover .tln-card { border-color: var(--accent); box-shadow: var(--shadow); }
.tlnc-title { font-size: 17px; font-weight: 700; color: var(--text-primary); margin-bottom: 4px; }
.tlnc-sub { font-size: 14px; color: var(--text-muted); margin-bottom: 14px; }
.tlnc-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.tlt { font-family: var(--font-mono); font-size: 11px; padding: 3px 10px; background: var(--accent-dim); color: var(--accent); border-radius: 4px; font-weight: 600; }

/* SKILLS GRID */
.skills-section { padding: 60px 0 0; }
.skills-title { font-family: var(--font-display); font-size: 28px; font-weight: 800; color: var(--text-primary); margin-bottom: 36px; }
.skills-groups { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.skill-group { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow-sm); transition: all 0.25s ease; }
.skill-group:hover { border-color: var(--accent); box-shadow: var(--shadow); transform: translateY(-2px); }
.sg-label { font-family: var(--font-mono); font-size: 11px; font-weight: 700; color: var(--accent); letter-spacing: 0.12em; text-transform: uppercase; margin-bottom: 14px; }
.sg-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.sk { font-size: 13px; font-weight: 500; padding: 5px 12px; background: var(--surface-2); border: 1px solid var(--border); border-radius: 6px; color: var(--text-secondary); transition: all 0.2s ease; }
.sk:hover { background: var(--accent-dim); border-color: var(--accent); color: var(--accent); }

/* PIPELINE */
.pipeline-wrapper { position: relative; display: flex; align-items: stretch; justify-content: center; gap: 0; padding: 20px 0; overflow-x: auto; }
.pipeline-stage { position: relative; display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 28px 24px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); min-width: 155px; flex-shrink: 0; cursor: pointer; transition: all 0.25s ease; z-index: 2; box-shadow: var(--shadow-sm); }
.pipeline-stage:hover, .pipeline-stage:focus { border-color: var(--accent); box-shadow: var(--shadow), 0 0 0 4px var(--accent-dim); transform: translateY(-4px); outline: none; }
.pipeline-stage:hover .ps-expand-area, .pipeline-stage:focus .ps-expand-area { max-height: 140px; opacity: 1; margin-top: 10px; }
.ps-stage-active { border-color: var(--accent); background: var(--accent-dim); }
.ps-stage-active .ps-icon svg { stroke: var(--accent); }
.ps-stage-active .ps-name { color: var(--accent); }
.ps-icon { width: 40px; height: 40px; display: flex; align-items: center; justify-content: center; background: var(--bg-alt); border-radius: 10px; }
.ps-icon svg { width: 22px; height: 22px; stroke: var(--text-secondary); transition: stroke 0.2s ease; }
.pipeline-stage:hover .ps-icon svg { stroke: var(--accent); }
.ps-name { font-family: var(--font-mono); font-size: 12px; font-weight: 700; letter-spacing: 0.10em; color: var(--text-primary); }
.ps-tools { font-size: 11px; color: var(--text-muted); text-align: center; line-height: 1.4; }
.ps-expand-area { max-height: 0; opacity: 0; overflow: hidden; transition: max-height 0.35s ease, opacity 0.3s ease, margin 0.3s ease; width: 100%; }
.pea-tools { font-family: var(--font-mono); font-size: 10px; color: var(--accent); margin-bottom: 6px; text-align: center; }
.pea-desc { font-size: 11px; color: var(--text-secondary); line-height: 1.5; text-align: center; }
.ps-connector { display: none; }
.ps-line { display: flex; align-items: center; min-width: 36px; flex-shrink: 0; z-index: 1; }
.ps-line-fill { width: 100%; height: 2px; background: linear-gradient(90deg, var(--accent), var(--purple)); border-radius: 1px; position: relative; overflow: hidden; }
.ps-line-fill::after { content: ''; position: absolute; top: 0; left: -100%; width: 100%; height: 100%; background: linear-gradient(90deg, transparent, rgba(255,255,255,.8), transparent); animation: lineShimmer 2s ease-in-out infinite; }
@keyframes lineShimmer { to { left: 200%; } }
.pipeline-packet { position: absolute; width: 8px; height: 8px; background: var(--accent); border-radius: 50%; box-shadow: 0 0 12px var(--accent-glow); display: none; pointer-events: none; z-index: 5; }

/* INFRA DIAGRAM */
.infra-wrapper { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 40px; box-shadow: var(--shadow-lg); }
.aws-box { border: 2px solid rgba(255,153,0,0.3); border-radius: var(--radius); padding: 24px; background: linear-gradient(135deg, rgba(255,153,0,.03) 0%, transparent 100%); }
.aws-header { display: flex; align-items: center; gap: 12px; margin-bottom: 20px; }
.aws-logo-svg { width: 48px; height: 18px; }
.aws-region { font-family: var(--font-mono); font-size: 11px; color: var(--text-muted); background: var(--bg-alt); padding: 3px 10px; border-radius: 4px; border: 1px solid var(--border); }
.vpc-box { border: 2px solid rgba(0,102,255,.2); border-radius: var(--radius); padding: 20px; margin-bottom: 20px; background: rgba(0,102,255,.02); }
.vpc-label { font-family: var(--font-mono); font-size: 11px; color: var(--accent); margin-bottom: 16px; letter-spacing: 0.06em; }
.az-columns { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.az-col { background: var(--bg-alt); border: 1px dashed var(--border-light); border-radius: var(--radius-sm); padding: 14px; display: flex; flex-direction: column; gap: 10px; }
.az-header { font-family: var(--font-mono); font-size: 10px; color: var(--text-muted); letter-spacing: 0.10em; margin-bottom: 4px; text-transform: uppercase; }
.infra-node { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 12px 14px; display: flex; flex-direction: column; align-items: flex-start; gap: 2px; box-shadow: var(--shadow-sm); transition: all 0.2s ease; }
.infra-node:hover { border-color: var(--border-glow); box-shadow: var(--shadow); }
.clickable-node { cursor: pointer; border-color: var(--accent); background: var(--accent-dim); }
.clickable-node:hover { transform: translateY(-2px); box-shadow: var(--shadow), 0 0 0 3px var(--accent-dim); }
.in-icon { font-size: 16px; margin-bottom: 2px; }
.in-name { font-family: var(--font-mono); font-size: 12px; font-weight: 700; color: var(--text-primary); }
.in-sub { font-size: 11px; color: var(--text-muted); }
.in-badge { font-family: var(--font-mono); font-size: 9px; color: var(--accent); background: var(--accent-dim); padding: 1px 6px; border-radius: 3px; margin-top: 3px; font-weight: 600; }
.aws-services-row { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; }
.infra-hint { font-family: var(--font-mono); font-size: 11px; color: var(--text-muted); text-align: center; margin-top: 20px; }

/* K8s */
.k8s-scene { position: relative; display: flex; flex-direction: column; align-items: center; gap: 40px; }
.k8s-cluster-card { width: 100%; max-width: 900px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 32px; box-shadow: var(--shadow-lg); transition: transform 0.3s ease; }
.k8s-card-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 24px; padding-bottom: 18px; border-bottom: 1px solid var(--border); }
.k8s-card-title { font-family: var(--font-mono); font-size: 13px; font-weight: 700; color: var(--text-primary); letter-spacing: 0.08em; }
.k8s-card-status { display: flex; align-items: center; gap: 6px; font-family: var(--font-mono); font-size: 11px; color: var(--green); }
.kdot { width: 7px; height: 7px; border-radius: 50%; }
.kdot.green { background: var(--green); box-shadow: 0 0 6px var(--green); animation: pulse-green 2s ease-in-out infinite; }
.k8s-nodes-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-bottom: 24px; }
.k8s-node { background: var(--bg-alt); border: 1px solid var(--border); border-radius: var(--radius); padding: 18px; transition: all 0.25s ease; }
.k8s-node:hover { border-color: var(--accent); box-shadow: var(--shadow); transform: translateY(-2px); }
.kn-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.kn-name { font-family: var(--font-mono); font-size: 11px; font-weight: 600; color: var(--text-primary); }
.kn-badge { font-family: var(--font-mono); font-size: 9px; padding: 2px 8px; border-radius: 4px; font-weight: 700; }
.kn-badge.ready { background: var(--green-dim); color: var(--green); }
.kn-pods { display: flex; flex-direction: column; gap: 6px; margin-bottom: 12px; }
.kn-pod { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--text-secondary); }
.pod-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--pc, var(--accent)); flex-shrink: 0; box-shadow: 0 0 4px var(--pc, var(--accent)); }
.kn-resource-bar { height: 4px; background: var(--border); border-radius: 2px; overflow: hidden; margin-bottom: 4px; }
.krb-fill { height: 100%; background: var(--bc, var(--accent)); border-radius: 2px; opacity: 0.7; }
.kn-resource-label { font-family: var(--font-mono); font-size: 10px; color: var(--text-muted); }
.k8s-layer-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 14px; background: var(--bg-alt); border-radius: var(--radius-sm); border: 1px solid var(--border); }
.klb-tag { font-family: var(--font-mono); font-size: 12px; font-weight: 600; color: var(--accent); background: var(--accent-dim); padding: 3px 10px; border-radius: 4px; }
.klb-sep { color: var(--border-light); font-size: 14px; }
.k8s-orbit-ring { display: none; }

/* SECURITY */
.security-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.security-rings-wrap { display: flex; align-items: center; justify-content: center; }
.sec-rings { position: relative; width: 340px; height: 340px; }
.sec-ring { position: absolute; border-radius: 50%; border: 2px dashed; display: flex; align-items: flex-start; justify-content: center; top: 50%; left: 50%; transform: translate(-50%, -50%); transition: all 0.3s ease; }
.ring-4 { width: 340px; height: 340px; border-color: rgba(239,68,68,.3); }
.ring-3 { width: 260px; height: 260px; border-color: rgba(245,158,11,.35); }
.ring-2 { width: 190px; height: 190px; border-color: rgba(0,102,255,.4); }
.ring-1 { width: 125px; height: 125px; border-color: rgba(16,185,129,.5); }
.ring-4:hover { border-color: rgba(239,68,68,.7); }
.ring-3:hover { border-color: rgba(245,158,11,.7); }
.ring-2:hover { border-color: rgba(0,102,255,.7); }
.ring-1:hover { border-color: rgba(16,185,129,.8); }
.ring-label { font-family: var(--font-mono); font-size: 9px; letter-spacing: 0.12em; font-weight: 700; padding: 3px 8px; border-radius: 3px; margin-top: 8px; color: white; }
.ring-4 .ring-label { background: rgba(239,68,68,.7); }
.ring-3 .ring-label { background: rgba(245,158,11,.7); }
.ring-2 .ring-label { background: rgba(0,102,255,.7); }
.ring-1 .ring-label { background: rgba(16,185,129,.7); }
.sec-center { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); background: var(--accent); color: white; width: 70px; height: 70px; border-radius: 50%; display: flex; align-items: center; justify-content: center; text-align: center; font-family: var(--font-mono); font-size: 9px; font-weight: 700; letter-spacing: 0.05em; box-shadow: 0 0 20px var(--accent-glow); }
.security-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.sec-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow-sm); transition: all 0.25s ease; }
.sec-card:hover { border-color: var(--accent); box-shadow: var(--shadow); transform: translateY(-2px); }
.sc-header { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; }
.sc-icon { font-size: 22px; width: 44px; height: 44px; display: flex; align-items: center; justify-content: center; background: var(--bg-alt); border-radius: var(--radius-sm); flex-shrink: 0; }
.sc-title { font-size: 15px; font-weight: 700; color: var(--text-primary); margin-bottom: 3px; }
.sc-domain { font-family: var(--font-mono); font-size: 9px; padding: 2px 7px; border-radius: 3px; font-weight: 700; letter-spacing: 0.08em; }
.sc-domain.identity { background: rgba(0,102,255,.12); color: var(--accent); }
.sc-domain.runtime  { background: rgba(239,68,68,.12); color: var(--red); }
.sc-domain.network  { background: rgba(245,158,11,.12); color: var(--amber); }
.sc-domain.supply   { background: rgba(16,185,129,.12); color: var(--green); }
.sc-desc { font-size: 13px; color: var(--text-secondary); line-height: 1.6; }

/* OBSERVABILITY */
.obs-metrics-bar { display: flex; gap: 0; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; margin-bottom: 36px; box-shadow: var(--shadow-sm); }
.obs-metric-item { flex: 1; padding: 24px 20px; text-align: center; border-right: 1px solid var(--border); transition: background 0.2s ease; }
.obs-metric-item:last-child { border-right: none; }
.obs-metric-item:hover { background: var(--bg-alt); }
.omi-val { font-family: var(--font-display); font-size: 26px; font-weight: 800; color: var(--accent); margin-bottom: 4px; }
.omi-val.green { color: var(--green); }
.omi-val.amber { color: var(--amber); }
.omi-label { font-family: var(--font-mono); font-size: 10px; color: var(--text-muted); letter-spacing: 0.10em; font-weight: 600; }
.obs-panels { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.obs-panel { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); transition: box-shadow 0.25s ease; }
.obs-panel:hover { box-shadow: var(--shadow); }
.op-header { display: flex; align-items: center; gap: 10px; padding: 14px 18px; border-bottom: 1px solid var(--border); background: var(--bg-alt); }
.op-title { font-family: var(--font-mono); font-size: 11px; font-weight: 700; color: var(--text-primary); letter-spacing: 0.10em; flex: 1; }
.op-tools { font-size: 11px; color: var(--text-muted); }
.op-dot { width: 7px; height: 7px; border-radius: 50%; }
.op-dot.green { background: var(--green); box-shadow: 0 0 5px var(--green); animation: pulse-green 2s ease-in-out infinite; }
.op-body { padding: 16px 18px; }
.log-stream { display: flex; flex-direction: column; gap: 4px; font-family: var(--font-mono); font-size: 11px; max-height: 180px; overflow-y: auto; }
.log-line { line-height: 1.5; padding: 2px 0; }
.ll-info { color: var(--text-secondary); }
.ll-warn { color: var(--amber); }
.ll-error { color: var(--red); }
.chart-block { margin-bottom: 16px; }
.chart-label { font-family: var(--font-mono); font-size: 10px; color: var(--text-muted); margin-bottom: 8px; letter-spacing: 0.08em; }
.trace-list { display: flex; flex-direction: column; gap: 10px; }
.trace-item { display: flex; align-items: center; gap: 10px; }
.ti-name { font-family: var(--font-mono); font-size: 10px; color: var(--text-secondary); min-width: 110px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ti-track { flex: 1; height: 8px; background: var(--bg-alt); border-radius: 4px; overflow: hidden; }
.ti-fill { height: 100%; background: linear-gradient(90deg, var(--accent), var(--purple)); border-radius: 4px; }
.ti-ms { font-family: var(--font-mono); font-size: 10px; color: var(--text-muted); min-width: 36px; text-align: right; }
.obs-disclaimer { margin-top: 24px; display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.od-label { font-family: var(--font-mono); font-size: 10px; color: var(--text-muted); letter-spacing: 0.12em; font-weight: 700; }
.od-tools { font-size: 13px; color: var(--accent); font-weight: 500; }
.od-note { font-size: 12px; color: var(--text-muted); font-style: italic; }

/* IaC TERMINAL */
.iac-layout { display: grid; grid-template-columns: 280px 1fr; gap: 40px; align-items: start; }
.iac-pipeline { display: flex; flex-direction: column; align-items: center; gap: 0; }
.iac-step { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 18px 20px; display: flex; align-items: center; gap: 14px; width: 100%; box-shadow: var(--shadow-sm); transition: all 0.25s ease; }
.iac-step:hover { border-color: var(--accent); box-shadow: var(--shadow); transform: translateX(4px); }
.iac-step-target { border-color: var(--amber); background: rgba(245,158,11,.05); }
.iac-step-target .iac-step-name { color: var(--amber); }
.iac-step-icon { font-size: 22px; width: 40px; height: 40px; display: flex; align-items: center; justify-content: center; background: var(--bg-alt); border-radius: var(--radius-sm); flex-shrink: 0; }
.iac-step-name { font-size: 16px; font-weight: 700; color: var(--text-primary); }
.iac-step-desc { font-size: 12px; color: var(--text-muted); line-height: 1.5; }
.iac-arrow-down { font-size: 20px; color: var(--border-light); margin: 4px 0; padding: 2px; }
.iac-terminal { background: #0D1117; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-xl); border: 1px solid rgba(255,255,255,.08); }
.term-header { display: flex; align-items: center; gap: 12px; padding: 14px 18px; border-bottom: 1px solid rgba(255,255,255,.06); background: rgba(255,255,255,.04); }
.term-dots { display: flex; gap: 6px; }
.td { width: 12px; height: 12px; border-radius: 50%; }
.td.red { background: #FF5F57; } .td.yellow { background: #FFBD2E; } .td.green { background: #28CA40; }
.term-title { font-family: var(--font-mono); font-size: 12px; color: rgba(255,255,255,.4); margin: 0 auto; }
.term-body { padding: 24px 22px; font-family: var(--font-mono); font-size: 13px; line-height: 1.8; min-height: 300px; }
.tl { margin: 0; }
.tl.prompt { color: #338EFF; } .tl.output { color: rgba(255,255,255,.5); } .tl.add { color: #4ADE80; } .tl.success { color: #4ADE80; font-weight: 600; } .tl.check { color: #10B981; } .tl.blank { height: 6px; display: block; } .tl-comment { color: rgba(255,255,255,.25); }
.cursor { display: inline-block; animation: blink 1s step-end infinite; color: #338EFF; }
@keyframes blink { 50% { opacity: 0; } }

/* MISSIONS */
.missions-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.mission-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 32px; position: relative; overflow: hidden; box-shadow: var(--shadow-sm); transition: all 0.3s ease; }
.mission-card:hover { border-color: var(--accent); box-shadow: var(--shadow-lg); transform: translateY(-4px); }
.mc-glow { position: absolute; bottom: -60px; right: -60px; width: 180px; height: 180px; background: radial-gradient(circle, var(--accent-dim) 0%, transparent 70%); pointer-events: none; transition: opacity 0.3s ease; opacity: 0; }
.mission-card:hover .mc-glow { opacity: 1; }
.mc-id { font-family: var(--font-mono); font-size: 10px; color: var(--text-muted); letter-spacing: 0.14em; margin-bottom: 12px; font-weight: 600; }
.mc-title { font-size: 20px; font-weight: 800; color: var(--text-primary); margin-bottom: 18px; line-height: 1.3; }
.mc-meta { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; padding: 14px; background: var(--bg-alt); border-radius: var(--radius-sm); }
.mcm-row { display: flex; gap: 8px; align-items: flex-start; flex-wrap: wrap; }
.mcm-key { font-family: var(--font-mono); font-size: 10px; color: var(--text-muted); letter-spacing: 0.08em; min-width: 90px; flex-shrink: 0; font-weight: 600; text-transform: uppercase; }
.mcm-val { font-size: 13px; color: var(--text-secondary); }
.mc-desc { font-size: 14px; color: var(--text-secondary); line-height: 1.7; margin-bottom: 18px; }
.mc-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.mtag { font-family: var(--font-mono); font-size: 11px; padding: 3px 10px; background: var(--accent-dim); color: var(--accent); border-radius: 4px; font-weight: 600; }

/* CONTACT */
.contact-center { text-align: center; max-width: 700px; margin: 0 auto; }
.contact-sub { font-size: 18px; color: var(--text-secondary); line-height: 1.7; margin-bottom: 60px; }
.contact-links { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; max-width: 680px; margin: 0 auto 60px; }
.contact-link { display: flex; flex-direction: column; align-items: center; gap: 12px; padding: 36px 24px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); transition: all 0.3s ease; text-align: center; }
.contact-link:hover { border-color: var(--accent); box-shadow: var(--shadow-lg); transform: translateY(-4px); }
.cl-icon { width: 64px; height: 64px; background: var(--accent-dim); border-radius: 50%; display: flex; align-items: center; justify-content: center; color: var(--accent); font-size: 22px; font-weight: 800; font-family: var(--font-display); transition: all 0.25s ease; flex-shrink: 0; }
.contact-link:hover .cl-icon { background: var(--accent); color: white; box-shadow: 0 8px 24px var(--accent-glow); }
.cl-label { font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.14em; color: var(--text-muted); font-weight: 700; text-transform: uppercase; }
.cl-val { font-size: 15px; color: var(--text-secondary); font-weight: 500; word-break: break-all; }
.contact-note { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 40px; max-width: 680px; margin: 0 auto; box-shadow: var(--shadow-sm); text-align: center; }
.cn-title { font-size: 22px; font-weight: 700; color: var(--text-primary); margin-bottom: 12px; }
.cn-text { font-size: 16px; color: var(--text-secondary); line-height: 1.7; }

/* FOOTER */
footer { background: #0D1117; color: rgba(255,255,255,.7); padding: 0 0 40px; }
.footer-top-border { height: 4px; background: linear-gradient(90deg, var(--accent), var(--purple), var(--green)); display: block; }
.footer-inner { max-width: var(--container-max); margin: 0 auto; padding: 48px 48px 0; }
.footer-status { margin-bottom: 40px; }
.fs-title { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.14em; color: rgba(255,255,255,.3); margin-bottom: 16px; font-weight: 700; }
.fs-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.fs-row { display: flex; flex-direction: column; gap: 4px; background: rgba(255,255,255,.03); border: 1px solid rgba(255,255,255,.06); border-radius: var(--radius-sm); padding: 12px 14px; }
.fs-label { font-family: var(--font-mono); font-size: 10px; color: rgba(255,255,255,.3); letter-spacing: 0.10em; }
.fs-val { font-family: var(--font-mono); font-size: 11px; font-weight: 700; }
.fs-val.operational { color: #10B981; }
.footer-divider { height: 1px; background: rgba(255,255,255,.06); margin: 32px 0; }
.footer-brand-row { display: flex; justify-content: space-between; align-items: center; gap: 24px; }
.fb-name { font-family: var(--font-mono); font-size: 18px; font-weight: 700; color: white; letter-spacing: 0.04em; margin-bottom: 4px; }
.fb-title { font-size: 13px; color: rgba(255,255,255,.4); margin-bottom: 10px; }
.fb-quote { font-size: 13px; color: rgba(255,255,255,.3); font-style: italic; line-height: 1.6; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 24px; justify-content: flex-end; }
.footer-link { font-size: 14px; color: rgba(255,255,255,.4); transition: color 0.2s ease; font-weight: 500; }
.footer-link:hover { color: #338EFF; }
.footer-tagline { text-align: center; margin-top: 40px; font-family: var(--font-mono); font-size: 11px; color: rgba(255,255,255,.2); letter-spacing: 0.12em; font-weight: 600; }

/* CONSTELLATION */
.constellation-wrap { display: flex; justify-content: center; margin-bottom: 48px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-sm); }

/* RESPONSIVE */
@media (max-width: 1024px) {
  .about-layout { grid-template-columns: 1fr; }
  .about-photo-col { position: static; }
  .about-photo-wrap img { height: 400px; }
  .security-layout { grid-template-columns: 1fr; }
  .security-rings-wrap { display: none; }
  .iac-layout { grid-template-columns: 1fr; }
  .missions-grid { grid-template-columns: 1fr 1fr; }
  .skills-groups { grid-template-columns: repeat(2, 1fr); }
  .fs-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
  .container { padding: 0 24px; }
  .nav-inner { padding: 0 24px; }
  .page-header-inner { padding: 0 24px; }
  .footer-inner { padding: 48px 24px 0; }
  .nav-links { gap: 2px; }
  .nav-link { padding: 6px 10px; font-size: 13px; }
  .about-stats { grid-template-columns: 1fr 1fr; }
  .security-cards { grid-template-columns: 1fr; }
  .missions-grid { grid-template-columns: 1fr; }
  .skills-groups { grid-template-columns: 1fr; }
  .obs-panels { grid-template-columns: 1fr; }
  .contact-links { grid-template-columns: 1fr; }
  .footer-brand-row { flex-direction: column; text-align: center; }
  .footer-nav { justify-content: center; }
  .k8s-nodes-row { grid-template-columns: 1fr; }
  .aws-services-row { grid-template-columns: repeat(3, 1fr); }
}
