/* ============================================================
   Akbar Ali — Portfolio v2 · Dark Editorial Luxury
   ============================================================ */

/* ── CSS VARIABLES ── */
:root {
  --bg: #071422;
  --bg2: #0c203c;
  --bg3: #112a52;
  --surface: rgba(14, 29, 52, 0.88);
  --surface2: #173455;
  --border: rgba(255,255,255,0.08);
  --border-md: rgba(255,255,255,0.14);

  --gold: #f0c95f;
  --gold-light: #fde3a2;
  --gold-dim: rgba(240,201,95,0.16);
  --teal: #66e2d7;
  --teal-dim: rgba(102,226,215,0.14);

  --text: #f6f9ff;
  --text2: #b1bfd3;
  --text3: #8e9fb9;

  --font-display: 'Playfair Display', Georgia, serif;
  --font-mono: 'Space Mono', 'Courier New', monospace;
  --font-body: 'Outfit', -apple-system, sans-serif;
}

/* ── RESET ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  background: var(--bg2);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
  overflow-x: hidden;
}

/* ── GLOBAL TYPE ── */
h1 {
  font-size: 56px;
  font-weight: 700;
  letter-spacing: -1px;
}

h2 {
  color: #9FB3C8;
}

p {
  color: #8AA0B8;
  line-height: 1.6;
}
button {
  background: #FACC15;
  color: #000;
  padding: 12px 20px;
  border-radius: 8px;
  border: none;
  transition: 0.3s;
}

button:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(250,204,21,0.3);
}
.tag {
  padding: 6px 12px;
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 6px;
  font-size: 12px;
  color: #9FB3C8;
}
h2 { font-family: var(--font-display); font-size: clamp(2rem, 4vw, 3.2rem); font-weight: 700; line-height: 1.1; letter-spacing: -0.02em; }
h3 { font-family: var(--font-display); font-size: 1.3rem; font-weight: 600; }
h4 { font-family: var(--font-body); font-size: 0.9rem; font-weight: 600; letter-spacing: 0.02em; }
p { color: var(--text2); font-size: 0.95rem; line-height: 1.75; }
em { font-style: italic; color: var(--gold); }
strong { color: var(--text); font-weight: 600; }

a { text-decoration: none; color: inherit; }

.section-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 6rem 2rem;
}

.section-eyebrow {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--gold);
  letter-spacing: 0.25em;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  margin-bottom: 3rem;
  line-height: 1.1;
}

/* ── FADE IN ANIMATION ── */
.fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}
.hero {
  position: relative;
  min-height: 100vh;

  background: 
    linear-gradient(rgba(10,15,30,0.85), rgba(10,15,30,0.95)),
    url('./images/hero-bg.png'); /* <-- apni image ka path */

  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}
.card, .box, .container {
  background: rgba(255,255,255,0.04);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 12px;
}

/* ── NAVIGATION ── */
#navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.2rem 3rem;
  background: rgba(11,25,41,0.92);
  backdrop-filter: blur(24px);
  border-bottom: 1px solid var(--border);
  transition: all 0.3s;
}

.nav-logo {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 900;
  color: var(--text);
  letter-spacing: -0.03em;
}
.nav-logo .dot { color: var(--gold); }

#nav-links {
  display: flex;
  list-style: none;
  gap: 2rem;
  align-items: center;
}
#nav-links a {
  font-family: var(--font-mono);
  font-size: 0.67rem;
  color: var(--text3);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  transition: color 0.2s;
}
#nav-links a:hover { color: var(--text); }

.nav-cta {
  padding: 0.45rem 1.1rem !important;
  border: 1px solid var(--gold) !important;
  color: var(--gold) !important;
  border-radius: 2px;
  transition: all 0.2s !important;
}
.nav-cta:hover {
  background: var(--gold) !important;
  color: var(--bg) !important;
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 4px;
}
.hamburger span {
  display: block;
  width: 22px; height: 1.5px;
  background: var(--text);
  transition: all 0.3s;
}

/* ── HERO ── */
#hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 8rem 2rem 4rem;
  position: relative;
  overflow: hidden;
  background: var(--bg2);
}

#hero::before {
  content: '';
  position: absolute;
  top: 0; right: 0;
  width: 52%;
  height: 100%;
  background: url("images/hero-bg.jpg") center center / cover no-repeat;
  opacity: 0.18;
  z-index: 0;
}

#hero::after {
  content: '';
  position: absolute;
  top: 0; right: 0;
  width: 52%;
  height: 100%;
  background: linear-gradient(
    to right,
    var(--bg2) 0%,
    transparent 25%,
    transparent 80%,
    var(--bg2) 100%
  );
  z-index: 0;
}

#hero-canvas {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  pointer-events: none; z-index: 0;
}

.hero-overlay {
  display: none;
}

.hero-inner {
  max-width: 1200px;
  margin: 0 auto; width: 100%;
  display: grid;
  grid-template-columns: 1fr 730px;
  gap: 4rem;
  align-items: center;
  position: relative; z-index: 2;
}

.hero-tag {
  font-family: var(--font-mono);
  font-size: 0.67rem;
  color: var(--teal);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin-bottom: 2rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.blink {
  animation: blink 1.4s infinite;
}
@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.2; }
}

h1 {
  font-family: var(--font-display);
  margin-bottom: 1.8rem;
  line-height: 1;
}
.h1-name {
  display: block;
  font-size: clamp(3rem, 6vw, 5.5rem);
  font-weight: 900;
  letter-spacing: -0.03em;
  color: var(--text);
}
.h1-rule {
  display: block;
  width: 60px; height: 2px;
  background: var(--gold);
  margin: 1rem 0;
}
.h1-title {
  display: block;
  font-size: clamp(1.6rem, 3vw, 2.8rem);
  font-weight: 400;
  font-style: italic;
  color: var(--text2);
}

.hero-desc {
  max-width: 480px;
  margin-bottom: 2rem;
  font-size: 1rem;
  color: var(--text2);
}

.hero-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 2.5rem;
}
.hero-pills span {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: var(--text3);
  border: 1px solid var(--border-md);
  padding: 0.3rem 0.8rem;
  border-radius: 2px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: all 0.2s;
}
.hero-pills span:hover {
  border-color: var(--gold);
  color: var(--gold);
}

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

.btn-primary {
  display: inline-block;
  padding: 0.8rem 2rem;
  background: var(--gold);
  color: var(--bg);
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border-radius: 2px;
  transition: all 0.2s;
  cursor: pointer;
  border: none;
}
.btn-primary:hover { background: var(--gold-light); transform: translateY(-1px); }
.btn-primary.full { width: 100%; text-align: center; font-size: 0.72rem; }

.btn-ghost {
  display: inline-block;
  padding: 0.8rem 2rem;
  border: 1px solid var(--border-md);
  color: var(--text2);
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border-radius: 2px;
  transition: all 0.2s;
}
.btn-ghost:hover { border-color: var(--text2); color: var(--text); }

/* Hero Photo */
.hero-right {
  display: grid;
  grid-template-columns: 210px 280px 200px;
  gap: 1rem;
  align-items: stretch;
}

/* Left column: stats only */
.hero-col-left {
  display: flex;
  flex-direction: column;
}

.hero-photo-frame {
  position: relative;
  width: 280px;
  height: 100%;
  min-height: 340px;
  margin: 0;
  border-radius: 4px;
  overflow: hidden;
  border: 1px solid var(--border-md);
  background: var(--surface2);
  cursor: pointer;
}
.hero-photo-frame::before {
  content: '';
  position: absolute;
  inset: -2px;
  border: 1px solid var(--gold);
  border-radius: 4px;
  transform: translate(8px, 8px);
  z-index: -1;
  opacity: 0.4;
}
.hero-photo {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}

.hero-stats {
  display: flex;
  flex-direction: column;
  gap: 0;
  flex: 1;
  height: 100%;
  border: 1px solid var(--border-md);
  border-radius: 4px;
  overflow: hidden;
  background: var(--surface2);
}

/* Right column: experience mini card */
.hero-side-card {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--border-md);
  border-radius: 4px;
  overflow: hidden;
  background: var(--surface2);
}

.hsc-header {
  padding: 0.65rem 1rem;
  border-bottom: 1px solid var(--border);
  background: rgba(240, 201, 95, 0.06);
}

.hsc-label {
  font-family: var(--font-mono);
  font-size: 0.58rem;
  color: var(--teal);
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.hsc-body {
  flex: 1;
  padding: 0.75rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.hsc-exp-item {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  padding: 0.6rem 0;
}

.hsc-exp-year {
  font-family: var(--font-mono);
  font-size: 0.56rem;
  color: var(--gold);
  letter-spacing: 0.08em;
}

.hsc-exp-role {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--text);
  line-height: 1.2;
}

.hsc-exp-co {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  color: var(--text3);
}

.hsc-sep {
  height: 1px;
  background: var(--border);
  margin: 0;
}
.stat {
  display: flex;
  flex-direction: column;
  padding: 1rem 1.5rem;
  flex: 1;
  background: var(--surface2);
}
.stat-sep { height: 1px; background: var(--border); }
.stat-n {
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 900;
  color: var(--gold);
  line-height: 1;
}
.stat-n sup { font-size: 0.9rem; }
.stat-l {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  color: var(--text3);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-top: 0.2rem;
}

.hero-scroll-hint {
  position: absolute;
  bottom: 2rem; left: 50%;
  transform: translateX(-50%);
  font-family: var(--font-mono);
  font-size: 0.62rem;
  color: var(--text3);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  animation: fadeup 2s ease infinite;
  z-index: 2;
}
@keyframes fadeup {
  0%, 100% { opacity: 0.4; transform: translateX(-50%) translateY(0); }
  50% { opacity: 1; transform: translateX(-50%) translateY(-4px); }
}

/* Photo fallback & overlay */
.photo-fallback {
  display: none;
  align-items: center;
  justify-content: center;
  text-align: center;
  width: 100%; height: 100%;
  background: var(--surface);
  color: var(--text3);
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
}
.photo-fallback.small { font-size: 0.65rem; }

.upload-overlay {
  position: absolute; inset: 0;
  background: rgba(8,20,36,0.75);
  display: none;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 0.5rem;
  color: var(--gold);
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.1em;
  z-index: 5;
  cursor: pointer;
}
.img-upload-zone:hover .upload-overlay { display: flex; }
.upload-overlay.logo-overlay { gap: 0; }

.logo-fallback {
  display: none;
  align-items: center;
  justify-content: center;
  width: 100%; height: 100%;
  background: var(--surface2);
  font-size: 0.6rem;
  color: var(--text3);
  font-family: var(--font-mono);
}
.logo-fallback.small { font-size: 0.55rem; }

/* ── ABOUT ── */
#about { background: var(--bg2); border-top: 1px solid var(--border); }

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  margin-bottom: 4rem;
}
.about-heading h2 { font-size: clamp(2.2rem, 4vw, 3.5rem); }
.about-body { display: flex; flex-direction: column; gap: 1rem; padding-top: 0.5rem; }

.highlights-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: 4px;
  overflow: hidden;
}
.highlight {
  background: var(--surface);
  padding: 2rem 1.5rem;
  position: relative;
}
.highlight:hover { background: var(--surface2); }
.hl-num {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: var(--gold);
  letter-spacing: 0.15em;
  margin-bottom: 1rem;
}
.highlight h4 { color: var(--text); margin-bottom: 0.5rem; font-size: 0.85rem; }
.highlight p { font-size: 0.82rem; }

/* ── ORIGIN ── */
#origin { background: var(--bg3); border-top: 1px solid var(--border); }

.origin-top {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 4rem;
  margin-bottom: 4rem;
  align-items: start;
}
.origin-text { display: flex; flex-direction: column; gap: 1rem; }

.origin-photos {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
.origin-photo-wrap {
  position: relative;
  border-radius: 3px;
  overflow: hidden;
  aspect-ratio: 3/4;
  border: 1px solid var(--border-md);
  cursor: pointer;
  background: var(--surface);
}
.origin-photo {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  filter: saturate(0.8) contrast(1.05);
  transition: filter 0.3s;
}
.origin-photo-wrap:hover .origin-photo { filter: saturate(1) contrast(1); }
.photo-caption {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  background: linear-gradient(transparent, rgba(8,20,36,0.85));
  padding: 1.5rem 0.75rem 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.6rem;
  color: rgba(255,255,255,0.7);
  letter-spacing: 0.08em;
  pointer-events: none;
}

/* Origin Timeline (horizontal) */
.origin-timeline {
  position: relative;
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  gap: 0;
  padding-top: 3rem;
}
.origin-timeline::before {
  content: '';
  position: absolute;
  top: 1.6rem; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}
.ot-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.5rem;
  padding: 0 0.5rem;
  position: relative;
}
.ot-year {
  font-family: var(--font-mono);
  font-size: 0.58rem;
  color: var(--gold);
  letter-spacing: 0.05em;
  white-space: nowrap;
}
.ot-dot {
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--surface2);
  border: 1.5px solid var(--gold);
  flex-shrink: 0;
  margin-top: -0.1rem;
}
.ot-dot.active { background: var(--gold); }
.ot-text {
  font-size: 0.72rem;
  color: var(--text2);
  line-height: 1.4;
}
.ot-text strong { color: var(--text); font-size: 0.7rem; display: block; }

/* ── CAREER TIMELINE ── */
#journey { background: var(--bg2); border-top: 1px solid var(--border); }

.timeline { display: flex; flex-direction: column; gap: 2px; }

.tl-item {
  display: grid;
  grid-template-columns: 100px 1fr;
  gap: 2rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 2rem;
  transition: border-color 0.2s;
}
.tl-item:hover { border-color: var(--border-md); }

.tl-year {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: var(--gold);
  letter-spacing: 0.08em;
  line-height: 1.4;
  padding-top: 0.2rem;
}

.tl-header {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1rem;
}
.tl-logo-wrap {
  width: 40px; height: 40px;
  border-radius: 4px;
  overflow: hidden;
  flex-shrink: 0;
  background: var(--surface2);
  border: 1px solid var(--border-md);
  cursor: pointer;
  position: relative;
}
.tl-logo { width: 100%; height: 100%; object-fit: contain; }

.tl-duration {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  color: var(--text3);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 0.25rem;
}
.tl-role {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0.2rem;
}
.tl-company {
  font-size: 0.8rem;
  color: var(--text3);
}

.tl-desc {
  margin-bottom: 1rem;
  font-size: 0.88rem;
}
.tl-bullets {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  margin-bottom: 1rem;
}
.tl-bullets li {
  font-size: 0.82rem;
  color: var(--text2);
  padding-left: 1.2rem;
  position: relative;
}
.tl-bullets li::before {
  content: '→';
  position: absolute; left: 0;
  color: var(--gold);
  font-size: 0.75rem;
}
.tl-award {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: var(--gold);
  letter-spacing: 0.08em;
  padding: 0.5rem 0.8rem;
  background: var(--gold-dim);
  border-radius: 2px;
  display: inline-block;
}

/* ── SKILLS ── */
#skills { background: var(--bg3); border-top: 1px solid var(--border); }

.skills-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: 4px;
  overflow: hidden;
}

.sk-card {
  background: var(--surface);
  padding: 2rem;
  transition: background 0.2s;
}
.sk-card:hover { background: var(--surface2); }

.sk-icon { font-size: 1.5rem; margin-bottom: 0.75rem; }
.sk-card h3 {
  font-family: var(--font-display);
  font-size: 1rem;
  color: var(--text);
  margin-bottom: 1rem;
}

.sk-pills { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.pill {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  color: var(--text3);
  border: 1px solid var(--border-md);
  padding: 0.28rem 0.65rem;
  border-radius: 2px;
  letter-spacing: 0.05em;
  transition: all 0.15s;
}
.pill:hover, .pill.hot {
  border-color: var(--gold);
  color: var(--gold);
  background: var(--gold-dim);
}

/* ── PROJECTS ── */
#projects { background: var(--bg3); border-top: 1px solid var(--border); }

.projects-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: 4px;
  overflow: hidden;
}

.proj-card {
  background: var(--surface);
  padding: 2rem;
  transition: background 0.2s;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.proj-card:hover { background: var(--surface2); }
.proj-card.personal-proj {
  border-left: 2px solid var(--gold);
}

.personal-tag {
  font-family: var(--font-mono);
  font-size: 0.58rem;
  color: var(--gold);
  background: var(--gold-dim);
  border: 1px solid rgba(201,168,76,0.25);
  padding: 0.18rem 0.55rem;
  border-radius: 2px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.proj-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  margin: 0.25rem 0;
}
.proj-features li {
  font-size: 0.8rem;
  color: var(--text2);
  padding-left: 1.1rem;
  position: relative;
  line-height: 1.5;
}
.proj-features li::before {
  content: '→';
  position: absolute; left: 0;
  color: var(--gold);
  font-size: 0.7rem;
}

.proj-highlights {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin: 0.25rem 0;
}
.proj-hl {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  color: var(--teal);
  background: var(--teal-dim);
  border: 1px solid rgba(45,212,191,0.2);
  padding: 0.22rem 0.6rem;
  border-radius: 2px;
  letter-spacing: 0.04em;
}

.proj-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.25rem;
}
.proj-badge {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.2rem 0.6rem;
  border-radius: 2px;
}
.proj-badge.building { color: var(--teal); border: 1px solid var(--teal); background: var(--teal-dim); }
.proj-badge.live { color: #4ade80; border: 1px solid rgba(74,222,128,0.3); background: rgba(74,222,128,0.08); }
.proj-badge.done { color: var(--text3); border: 1px solid var(--border-md); }

.proj-logo {
  width: 36px; height: 36px;
  border-radius: 3px;
  overflow: hidden;
  background: var(--surface2);
  border: 1px solid var(--border-md);
  cursor: pointer;
  position: relative;
  flex-shrink: 0;
}
.proj-logo-img { width: 100%; height: 100%; object-fit: contain; }

.proj-card h3 { font-size: 1.1rem; color: var(--text); margin: 0; }
.proj-card p { font-size: 0.85rem; }

.proj-stack {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-top: 0.5rem;
}
.proj-stack span {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  color: var(--text3);
  border: 1px solid var(--border);
  padding: 0.2rem 0.55rem;
  border-radius: 2px;
  letter-spacing: 0.05em;
}

/* ── CREDENTIALS ── */
#certifications { background: var(--bg3); border-top: 1px solid var(--border); }

.creds-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
}
.creds-heading {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--gold);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
}

.cert-list { display: flex; flex-direction: column; gap: 1px; }
.cert-row {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 1rem 1.2rem;
  border-radius: 3px;
  transition: background 0.2s;
}
.cert-row:hover { background: var(--surface2); }
.cert-check {
  color: var(--gold);
  font-size: 0.9rem;
  margin-top: 0.1rem;
  flex-shrink: 0;
}
.cert-row p { font-size: 0.82rem; }

.awards-list { display: flex; flex-direction: column; gap: 1px; }
.award-row {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 1rem 1.2rem;
  border-radius: 3px;
  transition: background 0.2s;
}
.award-row:hover { background: var(--surface2); }
.aw-icon { font-size: 1.1rem; flex-shrink: 0; margin-top: 0.1rem; }
.award-row strong { color: var(--text); font-size: 0.87rem; display: block; margin-bottom: 0.2rem; }
.award-row p { font-size: 0.8rem; }

/* ── PERSONAL ── */
#personal { background: var(--bg2); border-top: 1px solid var(--border); }

.personal-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: 4px;
  overflow: hidden;
}
.pers-card {
  background: var(--surface);
  padding: 1.8rem;
  transition: background 0.2s;
}
.pers-card:hover { background: var(--surface2); }
.pers-card > span { font-size: 1.6rem; display: block; margin-bottom: 0.75rem; }
.pers-card h4 { color: var(--text); margin-bottom: 0.4rem; }
.pers-card p { font-size: 0.82rem; }

/* ── CONTACT ── */
#contact {
  background: var(--bg3);
  border-top: 1px solid var(--border);
}

.contact-wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: start;
}
.contact-left h2 { margin-bottom: 1rem; }
.contact-left > p { margin-bottom: 2rem; }

.contact-links { display: flex; flex-direction: column; gap: 1px; }
.cl-link {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.2rem;
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: 3px;
  transition: all 0.2s;
}
.cl-link:hover { border-color: var(--gold); background: var(--surface); }
.cl-icon {
  width: 36px; height: 36px;
  border-radius: 3px;
  background: var(--gold-dim);
  color: var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 700;
  flex-shrink: 0;
}
.cl-link strong { color: var(--text); font-size: 0.9rem; display: block; }
.cl-link span { font-size: 0.75rem; color: var(--text3); }

.contact-form { display: flex; flex-direction: column; gap: 1.2rem; }
.form-group label {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: var(--text3);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}
.form-group input,
.form-group textarea {
  width: 100%;
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: 3px;
  padding: 0.85rem 1rem;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 0.9rem;
  outline: none;
  transition: border-color 0.2s;
  resize: vertical;
}
.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--gold);
}

/* ── FOOTER ── */
footer {
  background: var(--bg3);
  border-top: 1px solid var(--border);
  padding: 3rem 2rem;
}
.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  flex-direction: column;
  gap: 0.5rem;
  text-align: center;
}
.footer-logo {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 900;
  color: var(--text);
  letter-spacing: -0.03em;
  margin-bottom: 0.5rem;
}
.footer-logo span { color: var(--gold); }
footer p { font-size: 0.8rem; color: var(--text3); }
.footer-sub { color: var(--text3); font-size: 0.72rem; }

/* ── IMAGE UPLOAD MODAL ── */
.upload-modal-backdrop {
  position: fixed; inset: 0;
  background: rgba(8,20,36,0.88);
  backdrop-filter: blur(8px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
}
.upload-modal {
  background: var(--surface2);
  border: 1px solid var(--border-md);
  border-radius: 6px;
  width: 420px;
  max-width: 95vw;
  overflow: hidden;
}
.um-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.2rem 1.5rem;
  border-bottom: 1px solid var(--border);
}
.um-title {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.um-close {
  background: none; border: none;
  color: var(--text3); font-size: 1.3rem;
  cursor: pointer; line-height: 1;
  transition: color 0.2s;
}
.um-close:hover { color: var(--text); }

.um-body { padding: 1.5rem; }
.um-preview {
  width: 100%; height: 200px;
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: 4px;
  overflow: hidden;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
}
.um-preview img { max-width: 100%; max-height: 100%; object-fit: contain; }
.um-preview-placeholder {
  display: flex; flex-direction: column; align-items: center; gap: 0.5rem;
  color: var(--text3); font-size: 0.75rem;
}

.um-actions { margin-bottom: 0.8rem; }
.um-choose {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.6rem 1.2rem;
  border: 1px solid var(--border-md);
  border-radius: 3px;
  color: var(--text2);
  font-size: 0.8rem;
  cursor: pointer;
  transition: all 0.2s;
}
.um-choose:hover { border-color: var(--gold); color: var(--gold); }
.um-hint { font-size: 0.72rem; color: var(--text3); }

.um-footer {
  padding: 1rem 1.5rem;
  border-top: 1px solid var(--border);
  display: flex; gap: 0.75rem; justify-content: flex-end;
}
.um-cancel {
  padding: 0.55rem 1.2rem;
  background: none;
  border: 1px solid var(--border-md);
  border-radius: 3px;
  color: var(--text2);
  font-size: 0.8rem;
  cursor: pointer;
  transition: all 0.2s;
}
.um-cancel:hover { border-color: var(--text2); color: var(--text); }
.um-save {
  padding: 0.55rem 1.2rem;
  background: var(--gold);
  border: none;
  border-radius: 3px;
  color: var(--bg);
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
}
.um-save:disabled { opacity: 0.4; cursor: not-allowed; }
.um-save:not(:disabled):hover { background: var(--gold-light); }






/* ── HERO — z-index & solid card fixes ── */
#hero .hero-stats {
  background: var(--surface2);
  border: 1px solid var(--border-md);
  position: relative;
  z-index: 2;
}
#hero .stat { background: var(--surface2); }
#hero .hero-photo-frame {
  position: relative;
  z-index: 2;
  border: 2px solid rgba(201,168,76,0.35);
  box-shadow: 0 0 0 1px rgba(201,168,76,0.15), 0 8px 32px rgba(0,0,0,0.4);
}
#hero .hero-side-card {
  position: relative;
  z-index: 2;
  background: var(--surface2);
  border: 1px solid var(--border-md);
}
#hero .hero-col-left { position: relative; z-index: 2; }
#hero .hero-right { position: relative; z-index: 2; }
#hero .hero-left  { position: relative; z-index: 2; }

/* ── RESPONSIVE ── */
@media (max-width: 1150px) {
  .hero-inner { grid-template-columns: 1fr 680px; gap: 3.5rem; max-width: 100%; }
  .hero-right { grid-template-columns: 185px 260px 180px; }
  .hero-photo-frame { width: 260px; min-height: 320px; }
}

@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; gap: 3rem; }
  .hero-right { display: flex; flex-direction: column; align-items: center; gap: 1.5rem; }
  .hero-col-left { width: 100%; max-width: 360px; }
  .hero-photo-frame { width: 220px; height: 270px; min-height: unset; }
  .hero-side-card { width: 100%; max-width: 360px; }
  .hero-stats { flex-direction: row; flex-wrap: wrap; width: 100%; }
  .stat { flex: 1; min-width: 100px; }
  .stat-sep { display: none; }
  .about-grid { grid-template-columns: 1fr; gap: 2rem; }
  .highlights-row { grid-template-columns: repeat(2, 1fr); }
  .origin-top { grid-template-columns: 1fr; }
  .origin-timeline { grid-template-columns: repeat(4, 1fr); }
  .tl-item { grid-template-columns: 1fr; gap: 0.5rem; }
  .skills-grid { grid-template-columns: 1fr; }
  .projects-grid { grid-template-columns: 1fr; }
  .creds-grid { grid-template-columns: 1fr; gap: 2rem; }
  .personal-grid { grid-template-columns: repeat(2, 1fr); }
  .contact-wrap { grid-template-columns: 1fr; gap: 2.5rem; }
}

@media (max-width: 640px) {
  #navbar { padding: 1rem 1.2rem; }
  .section-inner { padding: 4rem 1.2rem; }
  #nav-links { display: none; position: fixed; top: 0; left: 0; right: 0; bottom: 0; background: var(--bg); flex-direction: column; align-items: center; justify-content: center; gap: 2rem; z-index: 99; }
  #nav-links.open { display: flex; }
  .hamburger { display: flex; z-index: 101; }
  .highlights-row { grid-template-columns: 1fr; }
  .origin-timeline { grid-template-columns: repeat(2, 1fr); }
  .personal-grid { grid-template-columns: 1fr; }
}
