:root { scroll-padding-top: 90px; }
html { scroll-behavior: smooth; }

:root {
  --fg: rgba(255,255,255,0.92);
  --fg-muted: rgba(255,255,255,0.62);

  /* Deep purple accent */
  --accent: rgb(138, 92, 255);
  --accent-soft: rgba(138, 92, 255, 0.25);

  --border: rgba(255,255,255,0.12);
  --border-strong: var(--accent-soft);

  /* Cursor position (set by JS) */
  --mx: 50%;
  --my: 50%;
}

/* Make sure Bootstrap never leaves us on white */
html, body {
  height: 100%;
  margin: 0;
  background: #070A0F !important;
  color: var(--fg);
}

/* ====== Page background ====== */
.page-shell {
  min-height: 100vh;

  /* ✅ Purple circle follows cursor now */
  background:
    radial-gradient(1200px 600px at var(--mx) var(--my), rgba(138, 92, 255, 0.10), transparent 60%),
    radial-gradient(900px 500px at 80% 30%, rgba(138, 92, 255, 0.06), transparent 55%),
    #070A0F !important;

  color: var(--fg);
}

/* Subtle grid */
.grid-bg {
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.55;
  background-image:
    linear-gradient(to right, rgba(255,255,255,0.06) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255,255,255,0.06) 1px, transparent 1px);
  background-size: 44px 44px;
  -webkit-mask-image: radial-gradient(circle at 30% 25%, black 40%, transparent 80%);
  mask-image: radial-gradient(circle at 30% 25%, black 40%, transparent 80%);
}

.bg-glow {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;

  /* Uses same vars (now from :root) */
  background: radial-gradient(
    800px 500px at var(--mx) var(--my),
    rgba(138,92,255,0.22),
    transparent 60%
  );
  opacity: 0.9;
}

.vignette {
  position: fixed;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(circle at center, transparent 40%, rgba(0,0,0,0.65) 100%);
}

/* ====== Nav + footer ====== */
.nav-glass {
  background: rgba(0,0,0,0.35) !important;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  backdrop-filter: blur(10px);
}

.footer-glass {
  background: rgba(0,0,0,0.20);
  border-top: 1px solid rgba(255,255,255,0.08) !important;
  backdrop-filter: blur(10px);
}

/* Make the hamburger visible */
.navbar-toggler {
  border: 1px solid rgba(255,255,255,0.18) !important;
}
.navbar-toggler-icon {
  filter: invert(1);
  opacity: 0.9;
}

/* ====== Glass cards ====== */
.glass {
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  border-radius: 18px;
  box-shadow: 0 18px 55px rgba(0,0,0,0.45);
  backdrop-filter: blur(10px);
}

.glass-soft {
  background: rgba(0,0,0,0.25);
  border: 1px solid rgba(255,255,255,0.10);
  border-radius: 16px;
  backdrop-filter: blur(10px);
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease, background-color 180ms ease;

}

.glass-soft:hover {
  border-color: rgba(138,92,255,0.45);
  background-color: rgba(138,92,255,0.08);
  box-shadow:
    0 22px 60px rgba(0,0,0,0.55),
    0 0 0 1px rgba(138,92,255,0.25),
    0 0 0 3px rgba(138,92,255,0.12);
}

/* ====== Typography ====== */
.kicker {
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-size: 0.75rem;
  color: var(--fg-muted);
}

.big-title {
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.02;
}

.badge-pill {
  border-radius: 999px;
}

/* ====== Hover lift ====== */
.hover-lift {
  transform: translateY(0);
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}
.hover-lift:hover {
  transform: translateY(-4px);
  border-color: var(--border-strong);
  box-shadow:
    0 22px 60px rgba(0,0,0,0.55),
    0 0 0 1px rgba(138,92,255,0.25);
}

/* ====== Cursor blink ====== */
.cursor::after {
  content: "▍";
  margin-left: 6px;
  opacity: 0.9;
  animation: blink 1.1s steps(1) infinite;
}
@keyframes blink { 50% { opacity: 0.15; } }

/* ====== Scroll reveal ====== */
[data-scroll] { opacity: 1; transform: translateY(0); }
html.js [data-scroll] {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 520ms ease, transform 520ms ease;
}
html.js [data-scroll].in-view { opacity: 1; transform: translateY(0); }

/* ====== Prevent images from exploding layout ====== */
img {
  max-width: 100%;
  height: auto;
}

/* ====== Headshot next to name ====== */
.name-row{
  display:flex;
  align-items:center;
  gap:14px;
}

.headshot-name {
  width: 96px;
  height: 96px;
  min-width: 96px;
  min-height: 96px;
  border-radius: 18px;
  object-fit: cover;
  flex: 0 0 auto;
  border: 1px solid rgba(255,255,255,0.18);
  box-shadow:
    0 0 0 2px rgba(138,92,255,0.18),
    0 12px 30px rgba(0,0,0,0.45);
  background: #0b1220;
}

/* Mobile: keep the nice look you already like */
@media (max-width: 991px) {
  .headshot-name {
    width: 84px;
    height: 84px;
    min-width: 84px;
    min-height: 84px;
    border-radius: 18px;
  }
  .name-row { gap: 16px; }
}


@media (max-width: 991px) {
  .headshot-name {
    width: 84px;
    height: 84px;
    min-width: 84px;
    min-height: 84px;
    border-radius: 18px;
  }
  .name-row { gap: 16px; }
}

/* ====== Purple "ACTIVE" badge ====== */
.badge-accent {
  background: rgba(138,92,255,0.14) !important;
  border: 1px solid rgba(138,92,255,0.40) !important;
  color: rgba(255,255,255,0.92) !important;
}

/* ====== Certs dropdown ====== */
.certs-dropdown {
  border-radius: 16px;
}

.certs-summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: baseline;
  gap: 10px;
}

.certs-dropdown summary::-webkit-details-marker { display: none; }

.certs-dropdown[open] .certs-summary {
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.cert-row + .cert-row {
  border-top: 1px solid rgba(255,255,255,0.08);
}

/* ===== Smooth expanding details (certs + education + about) ===== */
.smooth-details {
  border-radius: 16px;
}

.smooth-summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: baseline;
  gap: 10px;
  user-select: none;
}

.smooth-details summary::-webkit-details-marker { display: none; }

/* We animate the inner wrapper instead of details itself */
.smooth-content {
  overflow: hidden;
  max-height: 0;
  opacity: 0;
  transform: translateY(-6px);
  transition: max-height 420ms ease, opacity 320ms ease, transform 320ms ease;
}

/* When open, allow content to expand */
.smooth-details[open] .smooth-content {
  max-height: 1200px; /* big enough to cover your lists */
  opacity: 1;
  transform: translateY(0);
}

/* Optional: subtle divider when open */
.smooth-details[open] .smooth-summary {
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
