@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@300;400;500;600;700&family=DM+Mono:wght@400;500&family=Fraunces:ital,wght@0,300;0,700;1,300&display=swap');

:root {
  --navy: #0a1628;
  --navy2: #0d1b2a;
  --navy3: #112240;
  --gold: #f5a623;
  --gold2: #ffc04d;
  --gold-muted: #c48a1a;
  --green: #00E87A;
  --green2: #00B860;
  --amber: #FFB800;
  --white: #FFFFFF;
  --ghost: #a0b8d0;
  --ghost2: #7a90b0;
  --panel: #1a2f4e;
  --panel2: #112240;
  --border: rgba(245,166,35,0.18);
  --border-hover: rgba(245,166,35,0.35);
  --fs-xs: 0.72rem;
  --fs-sm: 0.85rem;
  --fs-base: 1rem;
  --fs-lg: 1.15rem;
  --fs-xl: 1.4rem;
  --fs-2xl: 2rem;
  --fs-3xl: 3rem;
  --fs-4xl: 4.2rem;
  --mono: 'DM Mono', monospace;
  --serif: 'Fraunces', serif;
  --sans: 'DM Sans', sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--navy);
  color: var(--white);
  font-family: var(--sans);
  font-size: var(--fs-base);
  line-height: 1.65;
  overflow-x: hidden;
}

/* Background decoration */
body::before {
  content:'';
  position:fixed;
  inset:0;
  background-image:
    radial-gradient(circle at 15% 50%, rgba(245,166,35,0.04) 0%, transparent 40%),
    radial-gradient(circle at 85% 20%, rgba(17,34,64,0.6) 0%, transparent 40%);
  pointer-events:none;
  z-index:-1;
}

/* ── NAV ── */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(10, 22, 40, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 60px;
}

.nav-logo {
  font-family: var(--serif);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--white);
  text-decoration: none;
  letter-spacing: -0.02em;
}

.nav-logo span { color: var(--gold); }

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

.nav-links a {
  color: var(--ghost);
  text-decoration: none;
  font-size: var(--fs-sm);
  font-weight: 500;
  padding: 0.4rem 0.75rem;
  border-radius: 6px;
  transition: all .2s;
}

.nav-links a:hover {
  color: var(--white);
  background: var(--panel);
}

.nav-links .cv-btn {
  color: var(--gold);
  border: 1px solid rgba(245,166,35,0.35);
  padding: 0.4rem 1rem;
  border-radius: 6px;
}

.nav-links .cv-btn:hover {
  background: rgba(245,166,35,0.1);
  color: var(--gold);
}

.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: rgba(0, 232, 122, 0.1);
  border: 1px solid rgba(0, 232, 122, 0.3);
  color: var(--green);
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  font-size: var(--fs-xs);
  font-weight: 500;
}

.status-badge::before {
  content: '';
  width: 6px;
  height: 6px;
  background: var(--green);
  border-radius: 50%;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: .5; transform: scale(1.3); }
}

/* ── SECTIONS ── */
section {
  padding: 5rem 2rem;
}

.container {
  max-width: 1100px;
  margin: 0 auto;
}

.section-label {
  font-family: var(--mono);
  font-size: var(--fs-xs);
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  margin-bottom: 0.6rem;
}

.section-title {
  font-family: var(--serif);
  font-size: var(--fs-3xl);
  font-weight: 300;
  line-height: 1.15;
  margin-bottom: 1rem;
}

.section-title em {
  font-style: italic;
  color: var(--gold);
}

hr.divider {
  border: none;
  border-top: 1px solid var(--border);
  margin: 4rem 0;
}

/* ── HERO ── */
#home {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 80px;
  position: relative;
  overflow: hidden;
}

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

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--panel);
  border: 1px solid var(--border);
  padding: 0.35rem 0.85rem;
  border-radius: 6px;
  font-size: var(--fs-xs);
  color: var(--ghost);
  margin-bottom: 1.5rem;
  font-family: var(--mono);
}

.hero-name {
  font-family: var(--serif);
  font-size: var(--fs-4xl);
  font-weight: 300;
  line-height: 1.08;
  margin-bottom: 0.5rem;
  letter-spacing: -0.02em;
}

.hero-name span {
  color: var(--gold);
  font-style: italic;
}

.hero-role {
  font-size: var(--fs-lg);
  color: var(--ghost);
  margin-bottom: 1.5rem;
  font-weight: 400;
}

.hero-desc {
  color: var(--ghost);
  line-height: 1.75;
  margin-bottom: 2rem;
  max-width: 480px;
  font-size: var(--fs-sm);
}

.hero-certs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 2rem;
}

.cert-tag {
  background: var(--panel);
  border: 1px solid var(--border);
  padding: 0.25rem 0.6rem;
  border-radius: 4px;
  font-family: var(--mono);
  font-size: 0.68rem;
  color: var(--ghost);
}

.cert-tag.active {
  border-color: rgba(245,166,35,0.4);
  color: var(--gold);
}

.hero-btns {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.btn-primary {
  background: var(--gold);
  color: var(--navy);
  padding: 0.75rem 1.75rem;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  font-size: var(--fs-sm);
  transition: all .2s;
  border: none;
  cursor: pointer;
}

.btn-primary:hover {
  background: var(--gold2);
  transform: translateY(-1px);
}

.btn-secondary {
  border: 1px solid var(--border);
  color: var(--ghost);
  padding: 0.75rem 1.75rem;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 500;
  font-size: var(--fs-sm);
  transition: all .2s;
  background: transparent;
}

.btn-secondary:hover {
  border-color: var(--ghost2);
  color: var(--white);
}

.hero-right {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.stat-card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.5rem;
  position: relative;
  overflow: hidden;
  transition: border-color .2s;
}

.stat-card:hover {
  border-color: var(--gold);
}

.stat-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: var(--gold);
  opacity: 0;
  transition: opacity .2s;
}

.stat-card:hover::before {
  opacity: 1;
}

.stat-num {
  font-family: var(--serif);
  font-size: 2.4rem;
  font-weight: 700;
  line-height: 1;
  margin-bottom: 0.3rem;
}

.stat-num.gold { color: var(--gold); }
.stat-num.green { color: var(--green); }
.stat-num.amber { color: var(--amber); }
.stat-num.white { color: var(--white); }

.stat-label {
  font-size: var(--fs-xs);
  color: var(--ghost);
  line-height: 1.4;
  font-family: var(--mono);
}

/* hero bg decoration */
.hero-bg {
  position: absolute;
  right: -200px;
  top: 50%;
  transform: translateY(-50%);
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(245,166,35,0.04) 0%, transparent 70%);
  pointer-events: none;
}

.grid-lines {
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(245,166,35,0.02) 1px, transparent 1px), linear-gradient(90deg, rgba(245,166,35,0.02) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
}

/* ── HOW I WORK ── */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 2.5rem;
}

.step-card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 2rem;
  position: relative;
  transition: border-color .2s;
}

.step-card:hover {
  border-color: var(--gold);
}

.step-num {
  font-family: var(--mono);
  font-size: var(--fs-xs);
  color: var(--gold);
  margin-bottom: 1rem;
  letter-spacing: 0.1em;
}

.step-title {
  font-weight: 600;
  margin-bottom: 0.75rem;
  font-size: var(--fs-lg);
}

.step-desc {
  color: var(--ghost);
  font-size: var(--fs-sm);
  line-height: 1.7;
}

/* ── PROJECTS ── */
#projects {
  background: var(--navy2);
}

.projects-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin-top: 2.5rem;
}

.project-card {
  background: var(--navy3);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  transition: all .25s;
  cursor: pointer;
}

.project-card:hover {
  border-color: var(--gold);
  transform: translateY(-3px);
  box-shadow: 0 12px 40px rgba(245,166,35,0.08);
}

.project-card.featured {
  grid-column: span 2;
}

.project-top {
  padding: 1.5rem 1.5rem 0;
}

.project-badges {
  display: flex;
  gap: 0.4rem;
  flex-wrap: wrap;
  margin-bottom: 1rem;
}

.badge {
  background: rgba(245,166,35,0.1);
  border: 1px solid rgba(245,166,35,0.2);
  color: var(--gold);
  padding: 0.2rem 0.55rem;
  border-radius: 4px;
  font-family: var(--mono);
  font-size: 0.65rem;
}

.badge.green {
  background: rgba(0, 232, 122, 0.1);
  border-color: rgba(0, 232, 122, 0.2);
  color: var(--green);
}

.badge.amber {
  background: rgba(255, 184, 0, 0.1);
  border-color: rgba(255, 184, 0, 0.2);
  color: var(--amber);
}

.badge.red {
  background: rgba(255, 59, 59, 0.1);
  border-color: rgba(255, 59, 59, 0.2);
  color: #ff3b3b;
}

.project-title {
  font-family: var(--serif);
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.6rem;
  line-height: 1.3;
}

.project-desc {
  color: var(--ghost);
  font-size: var(--fs-sm);
  line-height: 1.7;
  margin-bottom: 1rem;
}

.project-impact {
  background: var(--panel2);
  border-left: 2px solid var(--gold);
  padding: 0.75rem 1rem;
  margin: 0 1.5rem;
  border-radius: 0 6px 6px 0;
  font-size: var(--fs-xs);
  color: var(--ghost);
  font-family: var(--mono);
  line-height: 1.6;
}

.project-impact strong {
  color: var(--gold);
  display: block;
  margin-bottom: 0.2rem;
}

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

.project-tags {
  display: flex;
  gap: 0.35rem;
  flex-wrap: wrap;
}

.project-tag {
  font-family: var(--mono);
  font-size: 0.62rem;
  color: var(--ghost2);
  background: var(--panel2);
  padding: 0.15rem 0.4rem;
  border-radius: 3px;
}

.project-link {
  color: var(--gold);
  text-decoration: none;
  font-size: var(--fs-xs);
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.3rem;
  white-space: nowrap;
}

.project-link:hover {
  text-decoration: underline;
}

/* ── SKILLS ── */
.skills-domains {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  margin-top: 2.5rem;
}

.domain-card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.75rem;
  transition: border-color .2s;
}

.domain-card:hover {
  border-color: var(--gold);
}

.domain-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border);
}

.domain-icon {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
}

.domain-icon.gold { background: rgba(245,166,35,0.1); }
.domain-icon.green { background: rgba(0, 232, 122, 0.1); }
.domain-icon.amber { background: rgba(255, 184, 0, 0.1); }
.domain-icon.red { background: rgba(255, 59, 59, 0.1); }

.domain-name {
  font-weight: 600;
  font-size: var(--fs-base);
}

.skill-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.skill-pill {
  background: var(--panel2);
  border: 1px solid var(--border);
  padding: 0.25rem 0.65rem;
  border-radius: 20px;
  font-size: var(--fs-xs);
  color: var(--ghost);
  font-family: var(--mono);
  transition: all .15s;
}

.skill-pill:hover {
  border-color: var(--ghost2);
  color: var(--white);
}

/* certs row */
.certs-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-top: 2rem;
}

.cert-card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  transition: border-color .2s, transform .2s, box-shadow .2s;
  text-decoration: none;
  color: inherit;
}

.cert-card-clickable {
  cursor: pointer;
}

.cert-card:hover {
  border-color: var(--gold);
  transform: translateY(-3px);
  box-shadow: 0 12px 40px rgba(245,166,35,0.08);
}

.cert-card:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}

.cert-thumb {
  width: 100%;
  aspect-ratio: 16 / 10;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--border);
  margin-bottom: 0.5rem;
  background: var(--panel2);
}

.cert-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.25s ease, border-color 0.2s;
}

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

.cert-thumb-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
  color: var(--ghost2);
}

.cert-name {
  font-weight: 600;
  font-size: var(--fs-sm);
  line-height: 1.3;
}

.cert-date {
  font-family: var(--mono);
  font-size: 0.68rem;
  color: var(--amber);
}

.cert-note {
  font-size: 0.68rem;
  color: var(--ghost);
  line-height: 1.5;
}

/* ── BLOG ── */
#blog {
  background: var(--navy2);
}

.articles-list {
  margin-top: 2rem;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.article-row {
  display: grid;
  grid-template-columns: 100px 1fr auto;
  align-items: start;
  gap: 1.5rem;
  padding: 1.25rem 0;
  border-bottom: 1px solid var(--border);
  text-decoration: none;
  color: inherit;
  transition: background .15s;
  border-radius: 8px;
}

.article-row:hover {
  background: var(--panel);
  padding-left: 1rem;
  padding-right: 1rem;
  margin: 0 -1rem;
}

.article-row:last-child {
  border-bottom: none;
}

.article-date {
  font-family: var(--mono);
  font-size: var(--fs-xs);
  color: var(--ghost2);
  padding-top: 0.2rem;
}

.article-title {
  font-weight: 500;
  font-size: var(--fs-base);
  margin-bottom: 0.4rem;
  line-height: 1.4;
}

.article-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
}

.article-tag {
  background: var(--panel2);
  border: 1px solid var(--border);
  padding: 0.12rem 0.45rem;
  border-radius: 3px;
  font-family: var(--mono);
  font-size: 0.6rem;
  color: var(--ghost2);
}

.article-min {
  font-family: var(--mono);
  font-size: var(--fs-xs);
  color: var(--ghost2);
  white-space: nowrap;
  padding-top: 0.2rem;
}

.articles-cta {
  margin-top: 2rem;
  text-align: center;
}

.view-all {
  color: var(--gold);
  text-decoration: none;
  font-size: var(--fs-sm);
  font-weight: 600;
  border: 1px solid rgba(245,166,35,0.3);
  padding: 0.6rem 1.5rem;
  border-radius: 8px;
  display: inline-block;
  transition: all .2s;
}

.view-all:hover {
  background: rgba(245,166,35,0.08);
}

/* ── ABOUT ── */
.about-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 4rem;
  align-items: start;
  margin-top: 2.5rem;
}

.about-text p {
  color: var(--ghost);
  line-height: 1.8;
  margin-bottom: 1.25rem;
  font-size: var(--fs-sm);
}

.timeline {
  margin-top: 2rem;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.timeline-item {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 1rem;
  padding: 1rem 0;
  border-bottom: 1px solid var(--border);
  position: relative;
}

.timeline-item:last-child {
  border-bottom: none;
}

.tl-date {
  font-family: var(--mono);
  font-size: var(--fs-xs);
  color: var(--ghost2);
  padding-top: 0.1rem;
}

.tl-date.current {
  color: var(--green);
}

.tl-title {
  font-weight: 600;
  font-size: var(--fs-sm);
  margin-bottom: 0.2rem;
}

.tl-org {
  font-size: var(--fs-xs);
  color: var(--ghost);
}

.about-meta {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
}

.meta-label {
  font-family: var(--mono);
  font-size: var(--fs-xs);
  color: var(--ghost2);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 0.75rem;
}

.meta-value {
  font-size: var(--fs-sm);
  color: var(--white);
  line-height: 1.6;
}

.community-badges {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-top: 0.75rem;
}

.community-badge {
  background: var(--navy3);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 0.5rem 0.75rem;
  font-size: var(--fs-xs);
  color: var(--ghost);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.community-badge span {
  color: var(--white);
}

/* ── CONTACT ── */
#contact {
  background: var(--navy3);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  margin-top: 2.5rem;
  align-items: start;
}

.contact-desc {
  color: var(--ghost);
  line-height: 1.8;
  margin-bottom: 2rem;
  font-size: var(--fs-sm);
}

.contact-links {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.contact-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--ghost);
  text-decoration: none;
  font-size: var(--fs-sm);
  padding: 0.75rem 1rem;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 8px;
  transition: all .2s;
}

.contact-link:hover {
  border-color: var(--gold);
  color: var(--white);
}

.contact-link .link-label {
  font-family: var(--mono);
  font-size: 0.68rem;
  color: var(--ghost2);
  display: block;
  margin-bottom: 0.1rem;
}

.contact-link .link-val {
  font-size: var(--fs-sm);
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

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

.form-group label {
  font-family: var(--mono);
  font-size: var(--fs-xs);
  color: var(--ghost2);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.form-group input,
.form-group textarea {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0.75rem 1rem;
  color: var(--white);
  font-family: var(--sans);
  font-size: var(--fs-sm);
  outline: none;
  transition: border-color .2s;
  resize: none;
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--gold);
}

.form-group textarea {
  height: 130px;
}

.form-submit {
  background: var(--gold);
  color: var(--navy);
  border: none;
  padding: 0.85rem 2rem;
  border-radius: 8px;
  font-weight: 700;
  font-size: var(--fs-sm);
  cursor: pointer;
  transition: all .2s;
  font-family: var(--sans);
}

.form-submit:hover {
  background: var(--gold2);
}

/* ── CV PAGE ── */
.cv-box {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 2.5rem;
  margin-top: 2rem;
}

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

.cv-title {
  font-family: var(--serif);
  font-size: var(--fs-xl);
  font-weight: 700;
}

.cv-btns {
  display: flex;
  gap: 0.75rem;
}

.cv-btn-dl {
  background: var(--gold);
  color: var(--navy);
  padding: 0.6rem 1.25rem;
  border-radius: 8px;
  text-decoration: none;
  font-size: var(--fs-sm);
  font-weight: 600;
}

.cv-btn-li {
  border: 1px solid var(--border);
  color: var(--ghost);
  padding: 0.6rem 1.25rem;
  border-radius: 8px;
  text-decoration: none;
  font-size: var(--fs-sm);
  transition: all .2s;
}

.cv-btn-li:hover {
  border-color: var(--gold);
  color: var(--white);
}

.cv-preview {
  background: var(--navy2);
  border: 1px solid var(--border);
  border-radius: 10px;
  height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 1rem;
  color: var(--ghost2);
  font-family: var(--mono);
  font-size: var(--fs-sm);
}

.cv-preview .icon {
  font-size: 3rem;
  opacity: 0.3;
}

.cv-certs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.cv-cert {
  background: var(--navy3);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0.75rem 1rem;
  text-align: center;
}

.cv-cert-name {
  font-size: var(--fs-xs);
  font-weight: 600;
  margin-bottom: 0.2rem;
}

.cv-cert-year {
  font-family: var(--mono);
  font-size: 0.65rem;
  color: var(--amber);
}

/* ── FOOTER ── */
footer {
  background: var(--navy2);
  border-top: 1px solid var(--border);
  padding: 2.5rem;
  text-align: center;
}

.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
}

.footer-name {
  font-family: var(--serif);
  font-size: var(--fs-lg);
  margin-bottom: 0.5rem;
}

.footer-subtitle {
  font-family: var(--mono);
  font-size: var(--fs-xs);
  color: var(--ghost2);
  margin-bottom: 1.5rem;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}

.footer-links a {
  color: var(--ghost);
  text-decoration: none;
  font-size: var(--fs-sm);
  transition: color .2s;
}

.footer-links a:hover {
  color: var(--white);
}

.footer-copy {
  font-size: 0.7rem;
  color: var(--ghost2);
  font-family: var(--mono);
}

/* ── RESPONSIVE ── */
@media(max-width:900px) {
  .hero-grid,
  .about-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }
  .hero-right {
    grid-template-columns: repeat(2, 1fr);
  }
  .projects-grid,
  .skills-domains {
    grid-template-columns: 1fr;
  }
  .project-card.featured {
    grid-column: span 1;
  }
  .steps-grid,
  .certs-grid {
    grid-template-columns: 1fr 1fr;
  }
  .cv-certs {
    grid-template-columns: repeat(2, 1fr);
  }
  .nav-links .nav-item {
    display: none;
  }
  .hero-name {
    font-size: var(--fs-3xl);
  }
}

@media(max-width:600px) {
  .hero-right {
    grid-template-columns: 1fr 1fr;
  }
  .steps-grid,
  .certs-grid {
    grid-template-columns: 1fr;
  }
  .cv-certs {
    grid-template-columns: 1fr 1fr;
  }
  .article-row {
    grid-template-columns: 70px 1fr;
    gap: 1rem;
  }
  .article-min {
    display: none;
  }
  .cv-header {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* Mobile nav */
.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  color: var(--gold);
  font-size: 1.5rem;
  cursor: pointer;
}

@media(max-width:768px) {
  .nav-links a.nav-item { display: none; }
  .mobile-menu-btn { display: block; }
  .nav-links.mobile-open {
    display: flex;
    position: absolute;
    top: 60px;
    left: 0;
    right: 0;
    background: rgba(10,22,40,0.98);
    flex-direction: column;
    padding: 1rem 2rem;
    border-bottom: 1px solid var(--border);
    gap: 0.5rem;
  }
  .nav-links.mobile-open a.nav-item { display: block; }
}

/* fade in */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.fade-up {
  animation: fadeUp .6s ease forwards;
}
.fade-up-2 {
  animation: fadeUp .6s .15s ease both;
}
.fade-up-3 {
  animation: fadeUp .6s .3s ease both;
}

/* Upload hints */
.upload-hint {
  background: var(--panel2);
  border: 1px dashed var(--border);
  padding: 0.75rem;
  border-radius: 6px;
  font-size: var(--fs-xs);
  color: var(--ghost2);
  text-align: center;
  margin-top: 0.75rem;
  font-family: var(--mono);
}
.upload-hint.small {
  padding: 0.5rem;
  font-size: 0.65rem;
}
.upload-hint code {
  color: var(--gold);
  background: rgba(245,166,35,0.1);
  padding: 0.1rem 0.3rem;
  border-radius: 3px;
}

/* Project images */
.project-images {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.5rem;
  margin: 0 1.5rem 1rem;
}
.project-images img {
  width: 100%;
  height: 100px;
  object-fit: cover;
  border-radius: 6px;
  border: 1px solid var(--border);
  transition: transform 0.2s, border-color 0.2s;
  cursor: pointer;
}
.project-images img:hover {
  transform: scale(1.03);
  border-color: var(--gold);
}

/* Certificate modal */
.cert-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}

.cert-modal.active {
  display: flex;
}

.cert-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(10, 22, 40, 0.92);
  backdrop-filter: blur(8px);
  cursor: pointer;
}

.cert-modal-content {
  position: relative;
  max-width: 900px;
  max-height: 90vh;
  width: 100%;
  background: var(--navy3);
  border: 1px solid var(--border-hover);
  border-radius: 12px;
  padding: 1rem;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.5);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.cert-modal-close {
  position: absolute;
  top: -12px;
  right: -12px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--gold);
  color: var(--navy);
  border: none;
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .2s, transform .2s;
  z-index: 10;
}

.cert-modal-close:hover {
  background: var(--gold2);
  transform: scale(1.05);
}

.cert-modal-content img {
  max-width: 100%;
  max-height: calc(90vh - 4rem);
  object-fit: contain;
  border-radius: 8px;
  border: 1px solid var(--border);
}

@media(max-width:600px) {
  .cert-modal {
    padding: 1rem;
  }
  .cert-modal-content {
    padding: 0.75rem;
  }
  .cert-modal-close {
    top: -10px;
    right: -10px;
    width: 32px;
    height: 32px;
    font-size: 1.25rem;
  }
}

