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

:root {
  --bg: #07090f;
  --bg-card: #0c1120;
  --bg-card-2: #0f1527;
  --border: rgba(0,212,200,0.12);
  --teal: #00d4c8;
  --teal-dim: rgba(0,212,200,0.08);
  --blue: #4f8eff;
  --text: #dde2ee;
  --text-muted: #7a87a0;
  --heading: 'Barlow Condensed', sans-serif;
  --body: 'DM Sans', sans-serif;
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { background: var(--bg); color: var(--text); font-family: var(--body); line-height: 1.6; overflow-x: hidden; }
img { display: block; max-width: 100%; }
a { color: inherit; }

/* ─── NAVBAR ─────────────────────────────────────────────── */
.navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 200;
  padding: 22px 48px;
  transition: background 0.35s, padding 0.35s, border-color 0.35s;
  border-bottom: 1px solid transparent;
}
.navbar.scrolled {
  background: rgba(7,9,15,0.90);
  backdrop-filter: blur(20px);
  padding: 14px 48px;
  border-bottom-color: var(--border);
}
.nav-inner { max-width: 1200px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; }
.nav-logo {
  font-family: var(--heading); font-size: 1.5rem; font-weight: 800;
  color: var(--teal); text-decoration: none; letter-spacing: 3px;
}
.nav-links { display: flex; gap: 40px; list-style: none; }
.nav-links a {
  color: var(--text-muted); text-decoration: none;
  font-size: 0.78rem; font-weight: 500; letter-spacing: 1.8px; text-transform: uppercase;
  transition: color 0.2s; position: relative; padding-bottom: 2px;
}
.nav-links a::after {
  content: ''; position: absolute; bottom: -2px; left: 0; width: 0; height: 1px;
  background: var(--teal); transition: width 0.25s;
}
.nav-links a:hover, .nav-links a.active { color: var(--teal); }
.nav-links a:hover::after, .nav-links a.active::after { width: 100%; }
.nav-hamburger { display: none; background: none; border: 1px solid var(--border); color: var(--text); width: 36px; height: 36px; cursor: pointer; font-size: 1rem; transition: border-color 0.2s; }
.nav-hamburger:hover { border-color: var(--teal); color: var(--teal); }

/* ─── BUTTONS ─────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 11px 28px; font-family: var(--body); font-size: 0.78rem;
  font-weight: 600; letter-spacing: 1.5px; text-transform: uppercase;
  text-decoration: none; cursor: pointer; border: none; transition: all 0.22s;
}
.btn-primary {
  background: var(--teal); color: #07090f;
  clip-path: polygon(0 0, 100% 0, 100% 72%, 93% 100%, 0 100%);
}
.btn-primary:hover { background: #00ece4; transform: translateY(-2px); }
.btn-outline {
  background: transparent; color: var(--teal);
  border: 1px solid rgba(0,212,200,0.4);
}
.btn-outline:hover { background: var(--teal-dim); border-color: var(--teal); }
.btn-ghost { background: transparent; color: var(--text-muted); border: 1px solid var(--border); }
.btn-ghost:hover { color: var(--text); border-color: rgba(255,255,255,0.2); }

/* ─── HERO ─────────────────────────────────────────────────── */
.hero {
  position: relative; min-height: 100vh;
  display: flex; align-items: center; overflow: hidden;
}
#hero-canvas { position: absolute; inset: 0; z-index: 0; }
.hero-scanlines {
  position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background-image: repeating-linear-gradient(0deg, transparent, transparent 3px, rgba(0,0,0,0.08) 3px, rgba(0,0,0,0.08) 4px);
}
.hero-grid-overlay {
  position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background-image: linear-gradient(rgba(0,212,200,0.025) 1px, transparent 1px), linear-gradient(90deg, rgba(0,212,200,0.025) 1px, transparent 1px);
  background-size: 64px 64px;
}
.hero-inner {
  position: relative; z-index: 2;
  max-width: 1200px; margin: 0 auto; padding: 0 48px;
  display: flex; align-items: center; gap: 80px; width: 100%;
}
.hero-text { flex: 1; }
.hero-eyebrow {
  font-size: 0.7rem; font-weight: 600; letter-spacing: 4px; text-transform: uppercase;
  color: var(--teal); margin-bottom: 18px;
  display: flex; align-items: center; gap: 14px;
}
.hero-eyebrow::before { content: ''; width: 32px; height: 1px; background: var(--teal); flex-shrink: 0; }
.hero-name {
  font-family: var(--heading); font-size: clamp(3.8rem, 8.5vw, 7.5rem);
  font-weight: 800; line-height: 0.93; letter-spacing: -1px; color: #fff; margin-bottom: 14px;
}
.hero-name .accent { color: var(--teal); }
.hero-title {
  font-family: var(--heading); font-size: clamp(1.1rem, 2.5vw, 1.7rem);
  font-weight: 600; color: var(--blue); letter-spacing: 3px; text-transform: uppercase; margin-bottom: 26px;
}
.hero-tagline { font-size: 1.05rem; color: var(--text-muted); max-width: 440px; margin-bottom: 42px; line-height: 1.75; text-wrap: pretty; }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-photo { flex-shrink: 0; width: 320px; }
.hero-photo-frame {
  position: relative;
  width: 100%;
}
.hero-photo-frame img {
  width: 100%; max-height: 420px; object-fit: contain;
  filter: grayscale(12%) contrast(1.05);
  clip-path: polygon(0 0, 100% 0, 100% 87%, 87% 100%, 0 100%);
  border: 1px solid var(--border); background: transparent;
}
.hero-photo-frame::after {
  content: ''; position: absolute; bottom: -8px; right: -8px;
  width: 100%; height: 100%;
  border: 1px solid rgba(0,212,200,0.2);
  clip-path: polygon(0 0, 100% 0, 100% 87%, 87% 100%, 0 100%);
  z-index: -1;
}

/* ─── SECTION SHARED ─────────────────────────────────────── */
.section { padding: 100px 48px; max-width: 1200px; margin: 0 auto; }
.section-header { margin-bottom: 56px; }
.section-label {
  font-size: 0.68rem; font-weight: 600; letter-spacing: 4px;
  text-transform: uppercase; color: var(--teal); margin-bottom: 10px;
}
.section-title {
  font-family: var(--heading); font-size: clamp(2rem, 5vw, 3.6rem);
  font-weight: 800; color: #fff; line-height: 0.97; letter-spacing: -0.5px;
}
.section-title .accent { color: var(--teal); }
.section-rule { width: 56px; height: 2px; background: linear-gradient(90deg, var(--teal), transparent); margin-top: 16px; }
.section-footer { margin-top: 50px; display: flex; justify-content: center; }

/* ─── FADE IN ─────────────────────────────────────────────── */
.fade-in { opacity: 0; transform: translateY(28px); transition: opacity 0.65s ease, transform 0.65s ease; }
.fade-in.visible { opacity: 1; transform: none; }
.fade-in.delay-1 { transition-delay: 0.1s; }
.fade-in.delay-2 { transition-delay: 0.2s; }
.fade-in.delay-3 { transition-delay: 0.3s; }

/* ─── ABOUT PREVIEW ──────────────────────────────────────── */
.about-preview-grid { display: grid; grid-template-columns: 260px 1fr; gap: 56px; align-items: center; }
.about-preview-photo img {
  width: 100%; max-height: 340px; object-fit: contain;
  background: #000;
  clip-path: polygon(0 0, 100% 0, 100% 88%, 88% 100%, 0 100%);
  border: 1px solid var(--border); filter: grayscale(10%);
}
.about-bio { font-size: 1.02rem; color: var(--text-muted); line-height: 1.82; margin-bottom: 28px; text-wrap: pretty; }
.hud-badges { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 28px; }
.hud-badge {
  padding: 7px 16px; border: 1px solid rgba(0,212,200,0.4); color: var(--teal);
  font-size: 0.7rem; font-weight: 600; letter-spacing: 2px; text-transform: uppercase;
  background: var(--teal-dim);
  clip-path: polygon(0 0, 100% 0, 100% 65%, 88% 100%, 0 100%);
}

/* ─── AWARDS STRIP ───────────────────────────────────────── */
.awards-strip {
  background: var(--bg-card); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border);
  padding: 44px 48px;
}
.awards-strip-inner { max-width: 1200px; margin: 0 auto; display: flex; gap: 64px; flex-wrap: wrap; align-items: center; }
.award-item { display: flex; align-items: center; gap: 18px; }
.award-icon { font-size: 2rem; }
.award-text strong { display: block; color: #fff; font-weight: 600; font-size: 0.95rem; margin-bottom: 2px; }
.award-text span { color: var(--text-muted); font-size: 0.8rem; }

/* ─── TIMELINE ───────────────────────────────────────────── */
.timeline { position: relative; padding-left: 36px; }
.timeline::before {
  content: ''; position: absolute; left: 0; top: 8px; bottom: 0; width: 1px;
  background: linear-gradient(to bottom, var(--teal) 0%, transparent 100%);
}
.timeline-entry { position: relative; margin-bottom: 52px; padding-bottom: 52px; border-bottom: 1px solid var(--border); }
.timeline-entry:last-child { border-bottom: none; margin-bottom: 0; padding-bottom: 0; }
.timeline-dot {
  position: absolute; left: -40px; top: 5px;
  width: 9px; height: 9px; border-radius: 50%;
  background: var(--teal); box-shadow: 0 0 10px var(--teal), 0 0 20px rgba(0,212,200,0.3);
}
.timeline-date { font-size: 0.7rem; font-weight: 600; letter-spacing: 2.5px; text-transform: uppercase; color: var(--teal); margin-bottom: 8px; }
.timeline-role { font-family: var(--heading); font-size: 1.7rem; font-weight: 700; color: #fff; margin-bottom: 4px; }
.timeline-org { color: var(--blue); font-size: 0.88rem; font-weight: 500; margin-bottom: 18px; letter-spacing: 0.5px; }
.timeline-desc { color: var(--text-muted); font-size: 0.92rem; line-height: 1.75; }
.timeline-bullets { color: var(--text-muted); font-size: 0.92rem; line-height: 1.75; padding-left: 18px; }
.timeline-bullets li { margin-bottom: 6px; }

/* ─── PROJECT CARDS ──────────────────────────────────────── */
.projects-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.projects-grid.three-col { grid-template-columns: repeat(3, 1fr); }
.project-card {
  background: var(--bg-card); border: 1px solid var(--border);
  overflow: hidden; transition: border-color 0.25s, transform 0.25s, box-shadow 0.25s;
  position: relative; display: flex; flex-direction: column;
}
.project-card:hover {
  border-color: var(--teal); transform: translateY(-4px);
  box-shadow: 0 16px 48px rgba(0,212,200,0.1);
}
.project-card.featured { grid-column: span 1; }
.project-thumb {
  width: 100%; height: 220px; object-fit: contain;
  background: #000; display: block;
  filter: brightness(0.82); transition: filter 0.3s;
}
.project-card:hover .project-thumb { filter: brightness(0.97); }
.project-thumb-placeholder {
  width: 100%; height: 200px;
  background: repeating-linear-gradient(45deg, #0d1221, #0d1221 8px, #111829 8px, #111829 16px);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.72rem; color: var(--text-muted); letter-spacing: 1px; font-family: monospace;
  text-align: center; padding: 20px;
}
.project-body { padding: 22px; flex: 1; display: flex; flex-direction: column; }
.project-type { font-size: 0.63rem; letter-spacing: 3px; text-transform: uppercase; color: var(--teal); margin-bottom: 8px; }
.project-name { font-family: var(--heading); font-size: 1.5rem; font-weight: 700; color: #fff; margin-bottom: 8px; }
.project-desc { font-size: 0.875rem; color: var(--text-muted); line-height: 1.65; margin-bottom: 16px; flex: 1; text-wrap: pretty; }
.tag-list { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 18px; }
.tag {
  padding: 3px 10px; font-size: 0.65rem; font-weight: 600; letter-spacing: 1px; text-transform: uppercase;
  background: rgba(79,142,255,0.08); color: var(--blue); border: 1px solid rgba(79,142,255,0.2);
}
.tag.teal { background: var(--teal-dim); color: var(--teal); border-color: rgba(0,212,200,0.25); }
.project-link {
  font-size: 0.75rem; font-weight: 600; letter-spacing: 1.5px; text-transform: uppercase;
  color: var(--teal); text-decoration: none; display: inline-flex; align-items: center; gap: 6px;
  transition: gap 0.2s; margin-top: auto;
}
.project-link:hover { gap: 10px; }

/* ─── SKILLS ─────────────────────────────────────────────── */
.skills-preview-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 20px; }
.skill-group { background: var(--bg-card); border: 1px solid var(--border); padding: 24px; transition: border-color 0.22s; }
.skill-group:hover { border-color: rgba(0,212,200,0.35); }
.skill-group-label { font-size: 0.65rem; font-weight: 700; letter-spacing: 3px; text-transform: uppercase; color: var(--teal); margin-bottom: 16px; }
.skill-pills { display: flex; flex-wrap: wrap; gap: 7px; }
.skill-pill {
  padding: 5px 12px; font-size: 0.76rem; font-weight: 500;
  background: rgba(255,255,255,0.03); color: var(--text); border: 1px solid var(--border);
  transition: border-color 0.2s, color 0.2s;
}
.skill-pill:hover { border-color: var(--teal); color: var(--teal); }

/* ─── EXTRAS CARDS ───────────────────────────────────────── */
.extras-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 24px; }
.extra-card { background: var(--bg-card); border: 1px solid var(--border); overflow: hidden; transition: border-color 0.25s, transform 0.25s; }
.extra-card:hover { border-color: var(--teal); transform: translateY(-4px); }
.extra-thumb {
  width: 100%; height: 280px; object-fit: contain;
  background: #000; display: block;
  filter: brightness(0.7) saturate(0.8); transition: filter 0.3s;
}
.extra-card:hover .extra-thumb { filter: brightness(0.85) saturate(0.9); }
.extra-body { padding: 22px; }
.extra-title { font-family: var(--heading); font-size: 1.45rem; font-weight: 700; color: #fff; margin-bottom: 5px; }
.extra-sub { color: var(--teal); font-size: 0.7rem; font-weight: 600; letter-spacing: 2.5px; text-transform: uppercase; margin-bottom: 12px; }
.extra-desc { color: var(--text-muted); font-size: 0.87rem; line-height: 1.65; }

/* ─── FOOTER ─────────────────────────────────────────────── */
.site-footer { background: var(--bg-card); border-top: 1px solid var(--border); padding: 64px 48px; text-align: center; }
.footer-inner { max-width: 560px; margin: 0 auto; }
.footer-name { font-family: var(--heading); font-size: 2rem; font-weight: 800; color: #fff; letter-spacing: 2px; margin-bottom: 8px; }
.footer-tagline { color: var(--text-muted); font-size: 0.95rem; margin-bottom: 32px; }
.footer-links { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin-bottom: 32px; }
.footer-copy { color: var(--text-muted); font-size: 0.72rem; letter-spacing: 1.5px; text-transform: uppercase; }

/* ─── PAGE HERO ──────────────────────────────────────────── */
.page-hero { padding: 148px 48px 72px; max-width: 1200px; margin: 0 auto; }
.page-hero-label {
  font-size: 0.68rem; letter-spacing: 4px; text-transform: uppercase; color: var(--teal);
  margin-bottom: 12px; display: flex; align-items: center; gap: 14px;
}
.page-hero-label::before { content: ''; width: 24px; height: 1px; background: var(--teal); }
.page-hero-title {
  font-family: var(--heading); font-size: clamp(3rem, 7vw, 5.5rem);
  font-weight: 800; color: #fff; line-height: 0.95; margin-bottom: 22px;
}
.page-hero-title .accent { color: var(--teal); }
.page-hero-sub { color: var(--text-muted); font-size: 1.05rem; max-width: 540px; line-height: 1.75; text-wrap: pretty; }
.page-content { max-width: 1200px; margin: 0 auto; padding: 0 48px 100px; }

/* ─── ABOUT FULL ─────────────────────────────────────────── */
.about-full-grid { display: grid; grid-template-columns: 300px 1fr; gap: 64px; align-items: start; }
.about-full-photo img {
  width: 100%; height: auto; object-fit: contain; background: #000;
  border: 1px solid var(--border);
  clip-path: polygon(0 0, 100% 0, 100% 88%, 88% 100%, 0 100%); filter: grayscale(8%);
}
.about-photo-caption { color: var(--text-muted); font-size: 0.75rem; margin-top: 12px; letter-spacing: 1px; }
.about-body-text { font-size: 1.02rem; color: var(--text-muted); line-height: 1.85; margin-bottom: 28px; text-wrap: pretty; }
.about-section-heading {
  font-family: var(--heading); font-size: 0.82rem; font-weight: 700;
  letter-spacing: 3px; text-transform: uppercase; color: var(--teal);
  margin-bottom: 16px; margin-top: 36px;
  display: flex; align-items: center; gap: 12px;
}
.about-section-heading::before { content: '//'; opacity: 0.5; }
.about-extra-photos { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin-top: 20px; }
.about-extra-photos img { width: 100%; height: 300px; object-fit: contain; background: #000; filter: brightness(0.8); border: 1px solid var(--border); }

/* ─── SKILLS FULL ────────────────────────────────────────── */
.skills-tree { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 20px; }
.skills-node { background: var(--bg-card); border: 1px solid var(--border); padding: 28px; transition: border-color 0.22s; }
.skills-node:hover { border-color: rgba(0,212,200,0.3); }
.skills-node-head {
  display: flex; align-items: center; gap: 12px;
  padding-bottom: 18px; margin-bottom: 20px; border-bottom: 1px solid var(--border);
}
.skills-node-icon { font-size: 1.4rem; }
.skills-node-title { font-family: var(--heading); font-size: 0.88rem; font-weight: 700; letter-spacing: 3px; text-transform: uppercase; color: var(--teal); }
.cert-card {
  background: var(--bg-card-2); border: 1px solid var(--border);
  padding: 20px 24px; display: flex; align-items: center; gap: 16px;
  transition: border-color 0.22s;
}
.cert-card:hover { border-color: var(--teal); }
.cert-icon { font-size: 1.8rem; }
.cert-name { color: #fff; font-weight: 600; font-size: 0.92rem; margin-bottom: 3px; }
.cert-meta { color: var(--text-muted); font-size: 0.78rem; }

/* ─── DIVIDER ────────────────────────────────────────────── */
.full-divider { border: none; border-top: 1px solid var(--border); margin: 0; }

/* ─── RESPONSIVE ─────────────────────────────────────────── */
@media (max-width: 960px) {
  .hero-inner { flex-direction: column-reverse; text-align: center; gap: 40px; padding: 0 32px; }
  .hero-photo { width: 240px; }
  .hero-eyebrow { justify-content: center; }
  .hero-tagline { margin-left: auto; margin-right: auto; }
  .hero-cta { justify-content: center; }
  .about-preview-grid { grid-template-columns: 1fr; }
  .about-preview-photo { max-width: 260px; margin: 0 auto; }
  .about-full-grid { grid-template-columns: 1fr; }
  .projects-grid { grid-template-columns: 1fr; }
  .projects-grid.three-col { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 700px) {
  .navbar { padding: 16px 24px; }
  .navbar.scrolled { padding: 12px 24px; }
  .nav-links {
    display: none; position: fixed; top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(7,9,15,0.98); flex-direction: column; align-items: center;
    justify-content: center; gap: 32px; z-index: 199;
  }
  .nav-links a { font-size: 1.1rem; letter-spacing: 3px; }
  .nav-links.open { display: flex; }
  .nav-hamburger { display: block; }
  .section { padding: 64px 24px; }
  .page-hero { padding: 120px 24px 56px; }
  .page-content { padding: 0 24px 72px; }
  .awards-strip { padding: 32px 24px; }
  .awards-strip-inner { gap: 32px; }
  .site-footer { padding: 48px 24px; }
  .projects-grid.three-col { grid-template-columns: 1fr; }
  .hero-photo-frame img { height: 300px; }
}
