:root {
  --bg: #0a0a0a;
  --bg-2: #111111;
  --fg: #e8e8e8;
  --muted: #8a8a8a;
  --border: #1f1f1f;
  --accent: #00ffa3; /* bright neon contrast */
  --accent-dim: rgba(0, 255, 163, 0.12);
  --maxw: 1080px;
  --radius: 6px;
  --mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
  --sans: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--sans);
  font-weight: 300;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

.grid-bg {
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(var(--border) 1px, transparent 1px),
    linear-gradient(90deg, var(--border) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse at center, black 30%, transparent 80%);
  opacity: 0.35;
  pointer-events: none;
  z-index: -1;
}

a { color: var(--fg); text-decoration: none; transition: color 0.15s ease; }
a:hover { color: var(--accent); }

.mono { font-family: var(--mono); font-weight: 400; }
.small { font-size: 0.85rem; }
.accent { color: var(--accent); }
.lead { color: var(--muted); font-size: 1.05rem; max-width: 60ch; }

/* NAV */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2rem;
  background: rgba(10, 10, 10, 0.75);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.logo {
  font-family: var(--mono);
  font-weight: 600;
  font-size: 1rem;
}
.nav nav { display: flex; gap: 1.5rem; }
.nav nav a {
  font-family: var(--mono);
  font-size: 0.85rem;
  color: var(--muted);
}
.nav nav a:hover { color: var(--accent); }

/* LAYOUT */
main { max-width: var(--maxw); margin: 0 auto; padding: 0 2rem; }

.section {
  padding: 6rem 0 2rem;
  scroll-margin-top: 4rem;
}
.section h2 {
  font-family: var(--mono);
  font-size: 1.4rem;
  font-weight: 600;
  margin-bottom: 2rem;
  letter-spacing: -0.01em;
}

/* HERO */
.hero {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 3rem;
  align-items: center;
  min-height: calc(100vh - 70px);
  padding: 2rem 0;
}
.hero-text h1 {
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  font-weight: 700;
  line-height: 1.1;
  margin: 0.5rem 0 1.5rem;
  letter-spacing: -0.02em;
}
.cursor {
  color: var(--accent);
  animation: blink 1s steps(2) infinite;
  font-weight: 400;
}
@keyframes blink { 50% { opacity: 0; } }

.cta { display: flex; gap: 1rem; margin-top: 2rem; flex-wrap: wrap; }

.btn {
  display: inline-block;
  padding: 0.75rem 1.4rem;
  font-family: var(--mono);
  font-size: 0.9rem;
  border-radius: var(--radius);
  border: 1px solid transparent;
  transition: all 0.2s ease;
  cursor: pointer;
}
.btn.primary {
  background: var(--accent);
  color: var(--bg);
  font-weight: 600;
}
.btn.primary:hover {
  background: transparent;
  color: var(--accent);
  border-color: var(--accent);
}
.btn.ghost {
  border: 1px solid var(--border);
  color: var(--fg);
}
.btn.ghost:hover {
  border-color: var(--accent);
  color: var(--accent);
}
.btn.small { padding: 0.4rem 0.9rem; font-size: 0.8rem; }

/* HERO IMAGE */
.hero-img { 
  display: flex; 
  justify-content: center; 
  border: none;        /* removes any default border */
  outline: none;       /* removes focus outline */
  box-shadow: none;    /* removes shadow if applied */

}

.frame {
  position: relative;
  width: 260px;
  height: 260px;
  border: none;
  border-radius: var(--radius);
  overflow: hidden;
  background: #111111;
}
.frame::before {
  content: '';
  position: absolute;
  inset: -1px;
  border: none;
  border-radius: var(--radius);
  transform: translate(10px, 10px);
  z-index: -1;
}
.frame img, .frame .placeholder {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--mono);
  color: var(--muted);
  font-size: 0.85rem;
  letter-spacing: 0.1em;
}

/* ABOUT */
.about-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 3rem;
}
.about-grid p { color: var(--muted); }
.meta { list-style: none; font-size: 0.9rem; color: var(--fg); }
.meta li { padding: 0.35rem 0; border-bottom: 1px dashed var(--border); }

/* STACK */
.stack-groups {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
}
.stack-group {
  padding: 1.5rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-2);
  transition: border-color 0.2s ease;
}
.stack-group:hover { border-color: var(--accent); }
.stack-group h3 {
  font-family: var(--mono);
  font-size: 0.85rem;
  color: var(--accent);
  margin-bottom: 1rem;
  font-weight: 600;
}
.chips { list-style: none; display: flex; flex-wrap: wrap; gap: 0.5rem; }
.chips li {
  font-family: var(--mono);
  font-size: 0.8rem;
  padding: 0.3rem 0.7rem;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--muted);
}

/* TIMELINE */
.timeline { list-style: none; display: flex; flex-direction: column; gap: 2rem; }

.company {
  position: relative;
  padding: 1.5rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-2);
  transition: border-color 0.2s ease;
}
.company:hover { border-color: var(--accent); }

.company-head {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.25rem;
}
.logo-wrap {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  border-radius: var(--radius);
  background: var(--bg);
  border: 1px solid var(--border);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.logo-wrap img { width: 100%; height: 100%; object-fit: contain;  }
.logo-fallback {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--mono);
  font-size: 0.85rem;
  color: var(--accent);
  font-weight: 600;
}
.company-name { font-size: 1.1rem; font-weight: 600; margin-bottom: 0.15rem; }
.muted { color: var(--muted); }

/* Roles grouped under a company */
.roles {
  list-style: none;
  position: relative;
  margin-left: 23px; /* aligns connector under center of logo (48/2 - 1) */
  padding-left: 1.75rem;
  border-left: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}
.roles > li {
  position: relative;
}
.roles > li::before {
  content: '';
  position: absolute;
  left: calc(-1.75rem - 5px);
  top: 0.55rem;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 3px var(--bg-2);
}
.role-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 0.5rem;
}
.role-head h4 { font-size: 1rem; font-weight: 500; }

.impact {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}
.impact li {
  position: relative;
  padding-left: 1rem;
  color: var(--muted);
  font-size: 0.95rem;
}
.impact li::before {
  content: '▸';
  position: absolute;
  left: 0;
  color: var(--accent);
}

/* PROJECTS */
.projects {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}
.card {
  padding: 1.5rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-2);
  display: flex;
  flex-direction: column;
  gap: 1rem;
  transition: all 0.2s ease;
}
.card:hover { border-color: var(--accent); transform: translateY(-2px); }
.card header { display: flex; justify-content: space-between; align-items: baseline; }
.card h3 { font-size: 1.05rem; font-weight: 500; }
.card p { color: var(--muted); font-size: 0.95rem; flex: 1; }
.tags { list-style: none; display: flex; flex-wrap: wrap; gap: 0.4rem; }
.tags li { color: var(--accent); }
.tags li:not(:last-child)::after { content: ' ·'; color: var(--muted); margin-left: 0.4rem; }
.card footer { display: flex; gap: 1rem; font-family: var(--mono); font-size: 0.85rem; }
.card footer a { color: var(--accent); }

/* CERTS */
.badges iframe {
  border: none !important;        /* kill border */
  background: transparent !important; /* kill white background */
  box-shadow: none !important;    /* kill shadow */
}


.badges {
  display: flex;
  grid-template-columns: repeat(auto-fit, minmax(80%, 1fr));
  gap: 1rem;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-2);
  justify-content: center;
}

.badges img {
  width: 80%;
  height: auto;
}


.certs { list-style: none; display: flex; flex-direction: column; gap: 0.75rem; }
.certs li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 1.25rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-2);
  transition: border-color 0.2s ease;
}
.certs li:hover { border-color: var(--accent); }
.certs h3 { font-size: 1rem; font-weight: 500; margin-bottom: 0.2rem; }
.certs p { color: var(--muted); }

/* CONTACT */
.contact .links {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 1.5rem;
}

/* FOOTER */
.foot {
  max-width: var(--maxw);
  margin: 4rem auto 0;
  padding: 2rem;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  color: var(--muted);
}

/* RESPONSIVE */
@media (max-width: 768px) {
  .nav { padding: 1rem; }
  .nav nav { gap: 1rem; }
  .nav nav a:nth-child(n+4) { display: none; }
  main { padding: 0 1.25rem; }
  .hero { grid-template-columns: 1fr; gap: 2rem; text-align: left; padding-top: 3rem; min-height: auto; }
  .hero-img { order: -1; justify-content: flex-start; }
  .frame { width: 160px; height: 160px; }
  .about-grid { grid-template-columns: 1fr; gap: 1.5rem; }
  .company { padding: 1.25rem; }
  .roles { margin-left: 18px; padding-left: 1.25rem; }
  .section { padding: 4rem 0 1rem; }
  .certs li { flex-direction: column; align-items: flex-start; gap: 0.75rem; }
  .foot { flex-direction: column; gap: 0.5rem; text-align: center; }
}

/* SELECTION */
::selection { background: var(--accent); color: var(--bg); }

/* SCROLLBAR */
::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--accent); }
