:root {
  --bg: #000;
  --text: #fff;
  --muted: rgba(255,255,255,0.85);
}

* { box-sizing: border-box; }

html, body { height: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji", "Segoe UI Emoji";
}

/* Background (image + overlay) */
.wrap {
  position: relative;
  min-height: 100vh;
  overflow-x: hidden;
  overflow-y: auto;
  z-index: 1;
}
.wrap::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  background: url('image3.png') center/cover no-repeat fixed;
}
.wrap::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  background: linear-gradient(to bottom, rgba(0,0,0,.25), rgba(0,0,0,.55) 50%, rgba(0,0,0,.7));
}

/* Layout */
.container { max-width: 1120px; margin: 0 auto; padding: 24px; }
.content { position: relative; z-index: 1; padding-top: 88px; }

/* Sticky Top Bar */
.topbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  -webkit-backdrop-filter: saturate(140%) blur(6px);
  backdrop-filter: saturate(140%) blur(6px);
  background: rgba(0,0,0,.55);
  border-bottom: 1px solid rgba(255,255,255,.12);
}
.topbar .container {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; padding: 12px 24px; min-height: 56px;
}
.brand { display: flex; align-items: center; gap: 12px; }
.brand img { width: 40px; height: 40px; object-fit: cover; border-radius: 50%; border: 2px solid rgba(255,255,255,.25); }
.brand .name { font-weight: 600; }

/* Header */
header {
  display: flex; gap: 16px; align-items: center; margin-top: 8px;
}
header img.profile {
  width: 120px; height: 120px; object-fit: cover;
  border-radius: 50%; border: 3px solid rgba(255,255,255,.25);
}
header h1 {
  margin: 0;
  font-weight: 700;
  font-size: clamp(28px, 4vw, 52px);
}
header p { margin: .25rem 0; color: var(--muted); }

/* Navigation Chips */
.nav { display: flex; flex-wrap: wrap; gap: .5rem; }
.chip {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .45rem .75rem; border-radius: 999px;
  background: rgba(255,255,255,.22);
  border: 1px solid rgba(255,255,255,.35);
  color: #fff; text-decoration: none;
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  text-shadow: 0 1px 2px rgba(0,0,0,.6);
}
.chip.primary {
  background: rgba(255,255,255,.25); font-weight: 600;
  border: 1px solid rgba(255,255,255,.5);
}

/* Section Titles */
h2 { font-size: clamp(20px, 2.4vw, 30px); margin: 24px 0 8px; }
.section { margin-top: 28px; }

/* === TIMELINE === */
.timeline {
  position: relative;
  margin-left: 18px;
  padding-left: 24px;
  --axis: -24px;      /* controls horizontal alignment of line/dots */
  --dot-top: 18px;
  --dot-size: 12px;
  --line-width: 2px;
}
.timeline::before { display: none; }

/* Each event */
.item {
  position: relative;
  margin: 18px 0;
}
/* Connecting line */
.item::after {
  content: "";
  position: absolute;
  left: var(--axis);
  transform: translateX(-50%);
  top: calc(var(--dot-top) + var(--dot-size) / 2 + 2px);
  bottom: -18px;
  width: var(--line-width);
  background: linear-gradient(to bottom, rgba(255,255,255,.5), rgba(255,255,255,.15));
}
.item:last-child::after { display: none; }

/* Dot */
.dot {
  position: absolute;
  left: var(--axis);
  top: var(--dot-top);
  transform: translateX(-50%);
  width: var(--dot-size);
  height: var(--dot-size);
  border-radius: 50%;
  background: #fff;
  border: 2px solid rgba(255,255,255,.85);
  box-shadow: 0 0 6px rgba(255,255,255,.4);
}

/* Event Card */
.card {
  background: rgba(255,255,255,.18);
  border: 1px solid rgba(255,255,255,.3);
  border-radius: 16px;
  padding: 16px;
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  color: #fff;
}
.top { display: flex; flex-direction: column; gap: 6px; }
@media(min-width:760px){
  .top { flex-direction: row; justify-content: space-between; align-items: baseline; }
}
.title { font-weight: 600; font-size: 18px; }
.subtitle { color: rgba(255,255,255,.85); font-size: 12px; margin-left: .5rem; }
.date { color: rgba(255,255,255,.9); font-size: 14px; }

/* Badges */
.badge {
  display: inline-flex; align-items: center;
  padding: .35rem .6rem; border-radius: 999px;
  border: 1px solid rgba(255,255,255,.35);
  background: rgba(255,255,255,.22);
  text-shadow: 0 1px 2px rgba(0,0,0,.6);
}

/* Certifications Grid */
.cert-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  grid-template-rows: repeat(4, auto);
  grid-auto-flow: column;
  gap: 10px;
}

/* Panels */
.panel {
  background: rgba(255,255,255,.14);
  border: 1px solid rgba(255,255,255,.28);
  border-radius: 16px;
  padding: 16px;
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  color: #fff;
}

/* Lists — no bullets, simple dash markers */
.timeline .details ul { list-style: none; padding-left: 0; margin: 8px 0 0; }
.list-dash { list-style: none; padding-left: 0; }
.list-dash li { position: relative; padding-left: 16px; margin: .35rem 0; }
.list-dash li::before { content: "–"; position: absolute; left: 0; }

/* === MASTERCLASSES — Grid of Elegant Cards with Sparkle Effect === */
.masterclass-grid {
  margin-top: 8px;
}

.mc-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  gap: 12px;
  padding: 8px 4px 8px 2px;
}

.mc-card {
  position: relative;
  overflow: hidden;
  flex: 1 1 clamp(180px, 32%, 260px);
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,.28);
  background:
    radial-gradient(120% 120% at 10% 10%, rgba(255,255,255,.22), rgba(255,255,255,.10) 60%),
    rgba(255,255,255,.14);
  padding: 16px;
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease, background .25s ease;
}

/* Sparkling light sweep on hover */
.mc-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: -75%;
  width: 50%;
  height: 100%;
  background: linear-gradient(
    120deg,
    rgba(255,255,255,0) 0%,
    rgba(255,255,255,0.7) 50%,
    rgba(255,255,255,0) 100%
  );
  transform: skewX(-20deg);
  opacity: 0;
}

@keyframes sparkle {
  0% {
    left: -75%;
    opacity: 0;
  }
  20% {
    opacity: 1;
  }
  100% {
    left: 125%;
    opacity: 0;
  }
}

.mc-card:hover::before {
  animation: sparkle 0.9s ease-in-out forwards;
}

.mc-card:hover {
  transform: translateY(-2px);
  border-color: rgba(255,255,255,.45);
  box-shadow: 0 6px 22px rgba(0,0,0,.35);
  background:
    radial-gradient(140% 140% at 0% 0%, rgba(255,255,255,.28), rgba(255,255,255,.10) 60%),
    rgba(255,255,255,.16);
}

.mc-name {
  font-weight: 600;
  font-size: clamp(16px, 2vw, 18px);
  line-height: 1.2;
  letter-spacing: .2px;
  position: relative;
  z-index: 1;
}

.mc-accent {
  margin-top: 8px;
  height: 2px;
  width: 28%;
  border-radius: 2px;
  background: linear-gradient(90deg, rgba(255,255,255,.9), rgba(2


/* Footer */
footer { margin: 36px 0 56px; }
footer .panel {
  background: rgba(255,255,255,.14);
  border: 1px solid rgba(255,255,255,.28);
  border-radius: 18px;
  padding: 12px;
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  color: #fff;
}
footer .panel p { margin: .35rem 0; }
