:root {
  --bg: #f7f8fb;
  --bg-dark: #eef1f8;
  --surface: #ffffff;
  --border: #e3e7f0;
  --text: #12162b;
  --text-muted: #5b6274;
  --primary: #4f46e5;
  --primary-dark: #4338ca;
  --accent: #0ea5b7;
  --shadow: 0 10px 30px -12px rgba(18, 22, 43, 0.12);
  --shadow-lg: 0 25px 50px -15px rgba(18, 22, 43, 0.18);
  --radius: 16px;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-head: 'Space Grotesk', 'Inter', sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.container {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
}

a { color: inherit; text-decoration: none; }
ul { list-style: none; }
img { max-width: 100%; display: block; }
svg { width: 20px; height: 20px; }

/* ===== NAV ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(247, 248, 251, 0.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}
.logo {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.3rem;
  color: var(--text);
}
.logo span { color: var(--primary); }
.nav-links {
  display: flex;
  gap: 28px;
}
.nav-links a {
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: color 0.2s;
  position: relative;
  padding-bottom: 4px;
}
.nav-links a::after {
  content: '';
  position: absolute;
  left: 0; bottom: 0;
  width: 0%;
  height: 2px;
  background: var(--primary);
  border-radius: 2px;
  transition: width 0.25s ease;
}
.nav-links a:hover { color: var(--primary); }
.nav-links a:hover::after { width: 100%; }
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 4px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.nav-toggle span {
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 24px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.92rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.2s;
}
.btn-primary {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 8px 20px -6px rgba(79, 70, 229, 0.5);
}
.btn-primary:hover { background: var(--primary-dark); transform: translateY(-2px); }
.btn-outline {
  border-color: var(--border);
  color: var(--text);
  background: var(--surface);
}
.btn-outline:hover { border-color: var(--primary); color: var(--primary); transform: translateY(-2px); }

/* ===== HERO ===== */
.hero {
  padding: 90px 0 60px;
  position: relative;
  overflow: hidden;
}
.hero::before,
.hero::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
  z-index: 0;
  opacity: 0.35;
  animation: blobmove 18s ease-in-out infinite alternate;
}
.hero::before {
  width: 420px; height: 420px;
  background: var(--primary);
  top: -160px; left: -120px;
}
.hero::after {
  width: 380px; height: 380px;
  background: var(--accent);
  bottom: -160px; right: -100px;
  animation-delay: 4s;
}
@keyframes blobmove {
  0% { transform: translate(0, 0) scale(1); }
  100% { transform: translate(40px, 30px) scale(1.15); }
}
.hero-inner { position: relative; z-index: 1; }
.hero-inner {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 48px;
  align-items: center;
}
.eyebrow {
  color: var(--primary);
  font-weight: 600;
  font-size: 0.95rem;
  margin-bottom: 14px;
  letter-spacing: 0.02em;
}
.hero h1 {
  font-family: var(--font-head);
  font-size: clamp(2.2rem, 4vw, 3.4rem);
  line-height: 1.12;
  font-weight: 700;
  margin-bottom: 20px;
}
.hero h1 .highlight {
  color: var(--primary);
  background: linear-gradient(90deg, var(--primary), var(--accent));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hero-sub {
  color: var(--text-muted);
  font-size: 1.05rem;
  max-width: 540px;
  margin-bottom: 32px;
}

.stat-box {
  display: flex;
  align-items: center;
  gap: 22px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 26px;
  box-shadow: var(--shadow);
  margin-bottom: 34px;
  width: fit-content;
  flex-wrap: wrap;
}
.stat-item { display: flex; flex-direction: column; gap: 4px; }
.stat-value {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.3rem;
  display: flex;
  align-items: center;
  gap: 6px;
}
.icon-inline { width: 18px; height: 18px; color: var(--primary); flex-shrink: 0; }
.stat-label { font-size: 0.78rem; color: var(--text-muted); font-weight: 500; }
.stat-divider { width: 1px; height: 34px; background: var(--border); }

.hero-actions { display: flex; gap: 16px; margin-bottom: 30px; flex-wrap: wrap; }

.hero-social { display: flex; gap: 14px; }
.hero-social a {
  width: 42px; height: 42px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text-muted);
  transition: all 0.2s;
}
.hero-social a:hover { color: #fff; background: var(--primary); border-color: var(--primary); transform: translateY(-3px); }
.hero-social svg { width: 18px; height: 18px; fill: currentColor; }

.hero-visual {
  position: relative;
  height: 420px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.photo-card {
  position: relative;
  width: 300px;
  aspect-ratio: 4 / 5;
  border-radius: 28px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  z-index: 2;
  background: var(--surface);
}
.photo-card::before {
  content: '';
  position: absolute;
  inset: -3px;
  border-radius: 30px;
  background: linear-gradient(150deg, var(--primary), var(--accent));
  z-index: -1;
}
.photo-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.photo-comment {
  margin-top: 18px;
  color: var(--primary-dark);
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  padding: 10px 20px;
  border-radius: 999px;
  font-family: 'SF Mono', 'Fira Code', Menlo, monospace;
  font-size: 0.95rem;
  font-weight: 700;
}

.scroll-cue {
  display: flex; justify-content: center;
  margin-top: 20px;
}
.scroll-cue span {
  width: 24px; height: 38px;
  border: 2px solid var(--border);
  border-radius: 14px;
  position: relative;
}
.scroll-cue span::before {
  content: '';
  position: absolute;
  top: 6px; left: 50%;
  width: 4px; height: 8px;
  background: var(--primary);
  border-radius: 2px;
  transform: translateX(-50%);
  animation: dot 1.6s ease-in-out infinite;
}
@keyframes dot { 0% { top: 6px; opacity: 1; } 70% { top: 20px; opacity: 0; } 100% { top: 6px; opacity: 0; } }

/* ===== PIPELINE STRIP ===== */
.pipeline-strip {
  background: linear-gradient(180deg, var(--bg-dark), var(--bg));
  padding: 48px 0 38px;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.pipeline-track {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 0;
  max-width: 720px;
  margin: 0 auto;
}
.pipeline-stage {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
  width: 84px;
  position: relative;
}
.stage-icon {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: var(--surface);
  border: 2px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color 0.3s, box-shadow 0.3s, transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
  position: relative;
  box-shadow: var(--shadow);
}
.stage-icon img { width: 26px; height: 26px; object-fit: contain; filter: grayscale(1) opacity(0.45); transition: filter 0.3s; }
.stage-icon-generic { color: var(--text-muted); opacity: 0.5; transition: color 0.3s, opacity 0.3s; }
.stage-icon-generic svg { width: 26px; height: 26px; }
.stage-label {
  font-family: 'SF Mono', 'Fira Code', Menlo, monospace;
  font-size: 0.76rem;
  color: var(--text-muted);
  transition: color 0.3s;
}
.stage-check {
  position: absolute;
  top: -3px; right: -3px;
  width: 19px; height: 19px;
  border-radius: 50%;
  background: #22c55e;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  transform: scale(0);
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  border: 2px solid var(--bg-dark);
}
.stage-check svg { width: 11px; height: 11px; }

.pipeline-stage.is-active .stage-icon {
  border-color: var(--accent);
  box-shadow: 0 0 0 6px rgba(14, 165, 183, 0.15), var(--shadow);
  transform: scale(1.08);
  animation: stagepulse 1.4s ease-out infinite;
}
.pipeline-stage.is-active .stage-icon img { filter: none; }
.pipeline-stage.is-active .stage-icon-generic { color: var(--accent); opacity: 1; }
.pipeline-stage.is-active .stage-label { color: var(--text); font-weight: 700; }
@keyframes stagepulse {
  0% { box-shadow: 0 0 0 0 rgba(14, 165, 183, 0.35), var(--shadow); }
  70% { box-shadow: 0 0 0 10px rgba(14, 165, 183, 0), var(--shadow); }
  100% { box-shadow: 0 0 0 0 rgba(14, 165, 183, 0), var(--shadow); }
}

.pipeline-stage.is-done .stage-icon { border-color: #22c55e; transform: scale(1); animation: none; }
.pipeline-stage.is-done .stage-icon img { filter: none; }
.pipeline-stage.is-done .stage-icon-generic { color: #22c55e; opacity: 1; }
.pipeline-stage.is-done .stage-label { color: var(--text-muted); }
.pipeline-stage.is-done .stage-check { transform: scale(1); }

.pipeline-line {
  flex: 1;
  height: 3px;
  background: var(--border);
  border-radius: 2px;
  margin-top: 27px;
  min-width: 24px;
  position: relative;
}
.line-fill {
  position: absolute;
  inset: 0;
  width: 0%;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--accent), #22c55e);
  transition: width 1.1s cubic-bezier(0.65, 0, 0.35, 1);
}
.line-runner {
  position: absolute;
  top: 50%;
  left: 0%;
  width: 11px; height: 11px;
  border-radius: 50%;
  background: #fff;
  border: 2px solid var(--accent);
  box-shadow: 0 0 10px 2px rgba(14, 165, 183, 0.55);
  transform: translate(-50%, -50%);
  opacity: 0;
  transition: left 1.1s cubic-bezier(0.65, 0, 0.35, 1), opacity 0.2s ease 0.9s;
}
.pipeline-line.is-active .line-fill { width: 100%; }
.pipeline-line.is-active .line-runner { left: 100%; opacity: 1; transition: left 1.1s cubic-bezier(0.65, 0, 0.35, 1), opacity 0.2s ease; }

.pipeline-status {
  text-align: center;
  margin-top: 28px;
  font-family: 'SF Mono', 'Fira Code', Menlo, monospace;
  font-size: 0.82rem;
  color: var(--primary-dark);
}

/* ===== SECTIONS ===== */
.section { padding: 90px 0; }
.section-dark { background: var(--bg-dark); }
.section-tag {
  color: var(--primary);
  font-weight: 600;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 10px;
}
.section-tag-code {
  font-family: 'SF Mono', 'Fira Code', Menlo, monospace;
  text-transform: none;
  letter-spacing: 0;
  background: var(--surface);
  border: 1px solid var(--border);
  display: inline-block;
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 0.82rem;
}
.section-title {
  font-family: var(--font-head);
  font-size: clamp(1.7rem, 3vw, 2.4rem);
  font-weight: 700;
  margin-bottom: 16px;
}
.section-lead {
  color: var(--text-muted);
  max-width: 620px;
  margin-bottom: 44px;
  font-size: 1.02rem;
}

/* ===== ABOUT ===== */
.about-text {
  max-width: 800px;
  color: var(--text-muted);
  font-size: 1.05rem;
  margin-bottom: 44px;
}
.about-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.about-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px;
  box-shadow: var(--shadow);
}
.about-card h3 { font-family: var(--font-head); margin-bottom: 8px; font-size: 1.1rem; }
.about-card p { color: var(--text-muted); font-size: 0.92rem; }

.countries-block { margin-top: 28px; }
.countries-title {
  font-family: var(--font-head);
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 14px;
}
.countries-row { display: flex; flex-wrap: wrap; gap: 10px; }
.country-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 50%;
  box-shadow: var(--shadow);
  transition: transform 0.2s, border-color 0.2s;
  cursor: default;
}
.country-chip:hover { transform: translateY(-3px) scale(1.05); border-color: var(--primary); }
.country-chip img {
  width: 28px;
  height: 21px;
  object-fit: cover;
  border-radius: 3px;
  box-shadow: 0 0 0 1px rgba(18, 22, 43, 0.12);
}

/* ===== SKILLS / GLOBE ===== */
.skills-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}
.globe-wrap {
  display: flex;
  justify-content: center;
  width: 100%;
  min-width: 0;
}
.globe-stage {
  position: relative;
  width: 420px;
  height: 420px;
  max-width: 100%;
  cursor: grab;
}
.globe-stage:active { cursor: grabbing; }
.globe-tag {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--surface);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  will-change: transform, opacity;
  box-shadow: 0 6px 16px -4px rgba(18,22,43,0.18);
  user-select: none;
  transition: box-shadow 0.2s, border-color 0.2s;
}
.globe-tag:hover {
  border-color: var(--primary);
  box-shadow: 0 8px 20px -4px rgba(79,70,229,0.35);
  z-index: 999 !important;
}
.globe-tag img {
  width: 28px;
  height: 28px;
  object-fit: contain;
  pointer-events: none;
}
.skills-categories {
  display: grid;
  gap: 16px;
}
.skill-cat {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 18px 22px;
  box-shadow: var(--shadow);
}
.skill-cat h4 {
  font-family: var(--font-head);
  color: var(--primary);
  font-size: 0.95rem;
  margin-bottom: 6px;
}
.skill-cat p { color: var(--text-muted); font-size: 0.88rem; }
.skill-cat {
  transition: opacity 0.25s ease, transform 0.25s ease, max-height 0.25s ease, margin 0.25s ease, padding 0.25s ease;
  max-height: 200px;
  overflow: hidden;
}
.skill-cat.is-hidden {
  opacity: 0;
  transform: translateX(-8px) scale(0.98);
  max-height: 0;
  padding-top: 0; padding-bottom: 0;
  margin: 0;
  border-width: 0;
}

/* ===== EXPERIENCE ===== */
.exp-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.exp-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: box-shadow 0.2s;
}
.exp-header {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 22px 26px;
  text-align: left;
  font: inherit;
  color: inherit;
  flex-wrap: wrap;
}
.exp-header-main {
  display: flex;
  align-items: center;
  gap: 16px;
}
.exp-logo {
  flex-shrink: 0;
  width: 56px;
  height: 56px;
  border-radius: 12px;
  background: var(--surface);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px;
}
.exp-logo img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}
.exp-header-main h3 {
  font-family: var(--font-head);
  font-size: 1.08rem;
  margin-bottom: 4px;
}
.exp-company { color: var(--primary); font-weight: 600; font-size: 0.9rem; }
.exp-header-meta {
  display: flex;
  align-items: center;
  gap: 18px;
  color: var(--text-muted);
  font-size: 0.85rem;
  flex-shrink: 0;
}
.exp-loc { display: flex; align-items: center; gap: 6px; }
.exp-loc svg { width: 15px; height: 15px; color: var(--primary); }
.exp-dates { font-weight: 500; white-space: nowrap; }
.exp-chevron { width: 18px; height: 18px; transition: transform 0.25s; color: var(--text-muted); }
.exp-item.is-open .exp-chevron { transform: rotate(180deg); }

.exp-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease;
  padding: 0 26px;
}
.exp-body ul { padding-bottom: 24px; display: flex; flex-direction: column; gap: 10px; }
.exp-body li {
  position: relative;
  padding-left: 20px;
  color: var(--text-muted);
  font-size: 0.94rem;
}
.exp-body li::before {
  content: '';
  position: absolute;
  left: 0; top: 9px;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--accent);
}
.exp-item.is-open .exp-body { max-height: 900px; }

/* ===== CERTIFICATIONS ===== */
.cert-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 4px 0;
}
.cert-card {
  background: transparent;
  border: 1px solid transparent;
  border-radius: 14px;
  padding: 26px 18px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 10px;
  transition: transform 0.25s ease, border-color 0.25s ease, background 0.25s ease;
}
.cert-card:hover {
  transform: translateY(-5px);
  border-color: var(--border);
  background: var(--surface);
  box-shadow: var(--shadow);
}
.cert-logo {
  width: 60px; height: 60px;
  object-fit: contain;
  flex-shrink: 0;
  margin-bottom: 4px;
}
.cert-card h4 { font-size: 0.92rem; line-height: 1.35; font-weight: 600; }
.cert-card p { font-size: 0.8rem; color: var(--text-muted); }
.edu-title {
  font-family: var(--font-head);
  font-size: 1.2rem;
  margin: 44px 0 12px;
}

/* ===== PROJECTS ===== */
.project-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.project-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px;
  box-shadow: var(--shadow);
  position: relative;
}
.project-thumb {
  width: 52px; height: 52px;
  border-radius: 12px;
  background: var(--bg-dark);
  display: flex; align-items: center; justify-content: center;
  color: var(--primary);
  margin-bottom: 18px;
}
.project-thumb svg { width: 26px; height: 26px; }
.project-status {
  position: absolute;
  top: 22px; right: 22px;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--accent);
  background: rgba(14, 165, 183, 0.1);
  padding: 4px 10px;
  border-radius: 999px;
}
.project-card h3 { font-family: var(--font-head); font-size: 1.05rem; margin-bottom: 8px; }
.project-card p { color: var(--text-muted); font-size: 0.9rem; margin-bottom: 18px; }
.project-tags { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 18px; }
.project-tags span {
  font-size: 0.76rem;
  font-weight: 600;
  padding: 5px 11px;
  border-radius: 999px;
  background: var(--bg-dark);
  color: var(--text-muted);
}
.project-links { display: flex; gap: 14px; }
.project-link-disabled {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-muted);
  opacity: 0.5;
  cursor: not-allowed;
}

/* ===== CONTACT ===== */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}
.contact-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 24px 18px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  text-align: center;
  box-shadow: var(--shadow);
  transition: transform 0.2s, border-color 0.2s;
  font-size: 0.88rem;
  font-weight: 600;
}
.contact-card svg { width: 26px; height: 26px; color: var(--primary); }
.contact-card:not(.no-link):hover { transform: translateY(-4px); border-color: var(--primary); }
button.contact-card {
  font-family: inherit;
  cursor: pointer;
  width: 100%;
}
button.contact-card.is-copied { border-color: var(--accent); color: var(--accent); }

/* ===== FOOTER ===== */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 28px 0;
}
.footer-inner {
  color: var(--text-muted);
  font-size: 0.85rem;
  text-align: center;
}

/* ===== DEVOPS DASHBOARD ===== */
.devops-dashboard { padding-top: 64px; padding-bottom: 64px; }
.dashboard-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  align-items: stretch;
}
.dashboard-grid-single {
  grid-template-columns: 1fr;
  max-width: 560px;
}
.term-card {
  background: #10131f;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 1px solid #262b3f;
  display: flex;
  flex-direction: column;
}
.term-card-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 14px;
  background: #1a1e2e;
  border-bottom: 1px solid #262b3f;
}
.term-card-title {
  margin-left: 8px;
  font-family: 'SF Mono', 'Fira Code', monospace;
  font-size: 0.76rem;
  color: #8b93b0;
}
.term-card-body {
  padding: 20px 22px;
  font-family: 'SF Mono', 'Fira Code', Menlo, monospace;
  font-size: 0.82rem;
  color: #c9d4ff;
  overflow-x: auto;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.k8s-table { width: 100%; border-collapse: collapse; font-size: 0.78rem; }
.k8s-table th {
  text-align: left;
  color: #5b6685;
  font-weight: 500;
  padding: 0 10px 10px 0;
  border-bottom: 1px solid #262b3f;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.k8s-table td {
  padding: 9px 10px 9px 0;
  border-bottom: 1px solid #1c2033;
  color: #c9d4ff;
  white-space: nowrap;
}
.pod-status { font-weight: 700; }
.status-running { color: #4ade80; }
.status-pending { color: #facc15; }
.status-creating { color: #60a5fa; }
.k8s-hint { margin-top: 16px; color: #5b6685; font-size: 0.76rem; }

/* ===== ABOUT LAYOUT + TERMINAL ===== */
#about { position: relative; overflow: hidden; }
.about-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}
.about-bg::before {
  content: '';
  position: absolute;
  inset: -20%;
  background-image:
    linear-gradient(rgba(79, 70, 229, 0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(79, 70, 229, 0.07) 1px, transparent 1px);
  background-size: 42px 42px;
  animation: aboutgrid 22s linear infinite;
}
@keyframes aboutgrid {
  from { transform: translate(0, 0); }
  to { transform: translate(-42px, -42px); }
}
.about-bg-glow {
  position: absolute;
  width: 340px;
  height: 340px;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.16;
  animation: aboutglow 16s ease-in-out infinite;
}
.glow1 { background: var(--primary); top: -80px; left: -60px; }
.glow2 { background: var(--accent); bottom: -100px; right: -60px; animation-delay: 4s; animation-direction: reverse; }
@keyframes aboutglow {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(50px, 30px) scale(1.2); }
}
.about-layout {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: start;
}
.terminal-wrap { display: flex; justify-content: center; }
.terminal-window {
  width: 100%;
  max-width: 440px;
  background: #10131f;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 1px solid #262b3f;
}
.terminal-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 14px;
  background: #1a1e2e;
  border-bottom: 1px solid #262b3f;
}
.dot { width: 11px; height: 11px; border-radius: 50%; }
.dot-red { background: #ff5f57; }
.dot-yellow { background: #febc2e; }
.dot-green { background: #28c840; }
.terminal-title {
  margin-left: 8px;
  font-family: 'SF Mono', 'Fira Code', monospace;
  font-size: 0.76rem;
  color: #8b93b0;
}
.terminal-body {
  padding: 20px 22px;
  height: 260px;
  overflow-y: auto;
  overflow-x: hidden;
  scrollbar-width: none;
  font-family: 'SF Mono', 'Fira Code', Menlo, monospace;
  font-size: 0.86rem;
  line-height: 1.7;
  color: #c9d4ff;
  white-space: pre-wrap;
}
.terminal-body::-webkit-scrollbar { display: none; }
.terminal-body .t-prompt { color: #4ade80; }
.terminal-body .t-path { color: #60a5fa; }
.terminal-body .t-out { color: #9aa4c4; }
.terminal-body .t-cursor {
  display: inline-block;
  width: 8px; height: 1em;
  background: #4ade80;
  margin-left: 2px;
  vertical-align: text-bottom;
  animation: blink 1s step-end infinite;
}
@keyframes blink { 50% { opacity: 0; } }

/* ===== SKILL TABS ===== */
.skill-tabs {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 36px;
}
.skill-tab {
  font: inherit;
  font-size: 0.86rem;
  font-weight: 600;
  padding: 9px 18px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.2s;
}
.skill-tab:hover { border-color: var(--primary); color: var(--primary); }
.skill-tab.is-active {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
  box-shadow: 0 6px 16px -6px rgba(79, 70, 229, 0.5);
}

/* ===== SCROLL REVEAL ===== */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* stagger cert / project / exp cards within a visible group */
.cert-card.reveal.is-visible { transition-delay: calc(var(--stagger, 0) * 60ms); }
.project-card.reveal.is-visible,
.exp-item.reveal.is-visible,
.contact-card.reveal.is-visible { transition-delay: calc(var(--stagger, 0) * 90ms); }

/* ===== RESPONSIVE ===== */
@media (max-width: 980px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-visual { height: 300px; order: -1; }
  .about-layout { grid-template-columns: 1fr; }
  .terminal-wrap { order: -1; }
  .dashboard-grid { grid-template-columns: 1fr; }
  .skills-layout { grid-template-columns: 1fr; }
  .about-grid { grid-template-columns: 1fr; }
  .cert-grid { grid-template-columns: repeat(3, 1fr); }
  .project-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 720px) {
  .nav-links { display: none; }
  .nav-toggle { display: flex; }
  .nav-links.is-open {
    display: flex;
    position: absolute;
    top: 72px; left: 0; right: 0;
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    padding: 16px 24px;
    gap: 14px;
  }
  .stat-box { gap: 16px; padding: 18px; }
  .stat-divider { display: none; }
  .exp-header { flex-direction: column; align-items: flex-start; gap: 10px; }
  .exp-header-meta { gap: 12px; }
  .cert-grid { grid-template-columns: repeat(2, 1fr); }
  .contact-grid { grid-template-columns: 1fr; }

  .pipeline-track { max-width: 100%; }
  .pipeline-stage { width: 56px; gap: 6px; }
  .stage-icon { width: 42px; height: 42px; }
  .stage-icon img, .stage-icon-generic svg { width: 20px; height: 20px; }
  .stage-label { font-size: 0.62rem; }
  .stage-check { width: 16px; height: 16px; top: -2px; right: -2px; }
  .stage-check svg { width: 9px; height: 9px; }
  .pipeline-line { min-width: 10px; margin-top: 21px; }
  .pipeline-status { font-size: 0.72rem; padding: 0 10px; }
}

@media (max-width: 400px) {
  .pipeline-stage { width: 44px; }
  .stage-icon { width: 34px; height: 34px; }
  .stage-icon img, .stage-icon-generic svg { width: 16px; height: 16px; }
  .stage-label { font-size: 0.55rem; }
  .pipeline-line { min-width: 5px; margin-top: 17px; }
}

@media (max-width: 480px) {
  .k8s-table { font-size: 0.7rem; }
  .k8s-table th, .k8s-table td { padding-right: 6px; }
  .k8s-table th:nth-child(4),
  .k8s-table td:nth-child(4) { display: none; }
}
