:root {
  --ink: #0f172a;
  --muted: #475569;
  --accent: #0f766e;
  --accent-dark: #0b5f59;
  --card: #f8fafc;
  --surface: #ffffff;
  --line: rgba(15, 23, 42, 0.08);
  --shadow-lg: 0 18px 40px -24px rgba(15, 23, 42, 0.35);
  --shadow-md: 0 12px 28px -20px rgba(15, 23, 42, 0.25);
  --nav-height: 78px;
  --nav-offset: 20px;
}

.page {
  width: min(100%, 1200px);
  margin: 0 auto;
  padding: 24px 28px 32px;
  box-sizing: border-box;
}

.container {
  text-align: left;
  width: 100%;
  max-width: 440px;
}

/* Global modern typography */
html { -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", Roboto, Ubuntu, Cantarell, "Helvetica Neue", Arial, sans-serif;
  line-height: 1.6;
  color: var(--ink);
  /* Page background */
  min-height: 100vh;
  background-color: #efe3da; /* fallback */
  background:
    radial-gradient(1200px 800px at 8% -10%, rgba(16, 185, 129, 0.16), transparent 60%),
    radial-gradient(900px 700px at 95% 0%, rgba(59, 130, 246, 0.14), transparent 55%),
    linear-gradient(120deg, #f1e3d9 0%, #dfe9e4 52%, #f2e6db 100%);
  overflow-x: hidden; /* guard against accidental horizontal scroll */
}
h1, h2 {
  font-family: "Space Grotesk", "IBM Plex Sans", system-ui, sans-serif;
  font-weight: 700;          /* bold but clean */
  letter-spacing: -0.02em;   /* subtle modern tightening */
}

[data-nav-section] {
  scroll-margin-top: calc(var(--nav-height) + 34px);
}

.cyl-nav {
  position: sticky;
  top: 14px;
  z-index: 30;
  margin: 0 auto 36px;
  overflow: visible;
}

.cyl-nav__shell {
  --glow-x: 12%;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 8px;
  width: min(100%, 980px);
  margin: 0 auto;
  padding: 10px;
  border-radius: 999px;
  overflow: visible;
  background:
    radial-gradient(circle at var(--glow-x) 50%, rgba(125, 211, 252, 0.95) 0%, rgba(125, 211, 252, 0.42) 14%, rgba(125, 211, 252, 0.12) 30%, rgba(125, 211, 252, 0) 44%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.86), rgba(224, 242, 254, 0.72) 45%, rgba(255, 255, 255, 0.82));
  border: 1px solid rgba(148, 163, 184, 0.24);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.8),
    inset 0 -14px 34px rgba(14, 116, 144, 0.08),
    0 18px 38px -26px rgba(15, 23, 42, 0.5);
  backdrop-filter: blur(18px);
}

.cyl-nav__shell::before,
.cyl-nav__shell::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
}

.cyl-nav__shell::before {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.65), rgba(255, 255, 255, 0) 38%, rgba(255, 255, 255, 0.18) 100%);
  mix-blend-mode: screen;
}

.cyl-nav__shell::after {
  inset: 2px;
  border: 1px solid rgba(125, 211, 252, 0.28);
  box-shadow:
    0 0 26px rgba(125, 211, 252, 0.22),
    inset 0 0 20px rgba(125, 211, 252, 0.08);
}

.cyl-nav__link {
  position: relative;
  z-index: 1;
  flex: 0 0 auto;
  padding: 12px 18px;
  border-radius: 999px;
  color: rgba(15, 23, 42, 0.74);
  text-decoration: none;
  font-family: "Space Grotesk", "IBM Plex Sans", system-ui, sans-serif;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.01em;
  isolation: isolate;
  transition: color 0.28s ease, background 0.28s ease, transform 0.28s ease, box-shadow 0.28s ease;
}

.cyl-nav__link::before {
  content: "";
  position: absolute;
  inset: 2px;
  border-radius: inherit;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.82), rgba(224, 242, 254, 0.55));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.92),
    0 12px 24px -18px rgba(14, 116, 144, 0.55);
  opacity: 0;
  transform: scale(0.92);
  transition: opacity 0.32s ease, transform 0.32s cubic-bezier(0.22, 1, 0.36, 1);
  z-index: -1;
}

.cyl-nav__link:hover,
.cyl-nav__link:focus-visible {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.34);
  transform: translateY(-1px);
  outline: none;
}

.cyl-nav__link.is-active {
  color: #082f49;
}

.cyl-nav__link.is-active::before {
  opacity: 1;
  transform: scale(1);
}

.cyl-nav__item {
  position: relative;
  z-index: 1;
  flex: 0 0 auto;
}

.cyl-nav__toggle {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.cyl-nav__caret {
  width: 9px;
  height: 9px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg) translateY(-1px);
  opacity: 0;
  transition: transform 0.22s ease, opacity 0.22s ease;
}

.cyl-nav__toggle:hover .cyl-nav__caret,
.cyl-nav__toggle:focus-visible .cyl-nav__caret,
.cyl-nav__item.is-open .cyl-nav__caret {
  opacity: 1;
}

.cyl-nav__item.is-open .cyl-nav__caret {
  transform: rotate(-135deg) translateY(-1px);
}

.cyl-nav__menu {
  position: absolute;
  z-index: 60;
  top: calc(100% + 10px);
  left: 0;
  min-width: 210px;
  padding: 10px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(148, 163, 184, 0.22);
  box-shadow: 0 20px 36px -24px rgba(15, 23, 42, 0.48);
  backdrop-filter: blur(18px);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity 0.22s ease, transform 0.22s ease, visibility 0.22s ease;
}

.cyl-nav__item.is-open .cyl-nav__menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.cyl-nav__sublink {
  display: block;
  padding: 10px 12px;
  border-radius: 14px;
  color: var(--ink);
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  transition: background 0.2s ease, color 0.2s ease;
}

.cyl-nav__sublink:hover,
.cyl-nav__sublink:focus-visible,
.cyl-nav__sublink.is-active {
  background: rgba(224, 242, 254, 0.88);
  color: #082f49;
  outline: none;
}

/* Make all media shrink within their parent */
img, svg, video { max-width: 100%; height: auto; }

/* Keep original picture position and name below it */
.container .profile-photo {
  display: block;
  width: 100%;
  height: auto;
}

/* Modern photo card wrapper */
.photo-card {
  margin-top: 24px;          /* space below logo */
  width: 100%;               /* match container width */
  max-width: 480px;          /* slightly smaller visual size on desktop */
  border-radius: 16px;
  overflow: hidden;          /* clip scaled image corners */
  box-shadow: var(--shadow-lg);
  outline: 1px solid var(--line); /* subtle border */
  transition: box-shadow 0.25s ease, transform 0.25s ease;
}
.photo-card:hover {
  box-shadow: 0 22px 42px -26px rgba(15, 23, 42, 0.4);
  transform: translateY(-3px);
}
.photo-card img {
  transform: scale(1);
  transition: transform 0.35s ease, filter 0.35s ease;
  will-change: transform;
}
.photo-card:hover img {
  transform: scale(1.03);
  filter: saturate(1.05) contrast(1.03);
}

/* (intentionally no card styling for the TryHackMe badge per request) */

@media (prefers-reduced-motion: reduce) {
  .photo-card, .photo-card img { transition: none; }
  .hero-title-shimmer::after { animation: none; }
}

/* University logo above the picture */
.container .uni-logo {
  margin-top: 0;
  display: block;
  width: 140px;              /* modest logo size */
  height: auto;
}
.name-block { margin-left: 0; }
.container h1 {
  margin-top: 30px;
  margin-bottom: 4px;      /* tighter gap above taglines */
  font-size: clamp(28px, 6vw, 40px);
  margin-left: 0;         /* align to name-block start */
  white-space: nowrap;
}

/* Place a right-side heading without changing the left block */
.layout {
  display: grid;
  grid-template-columns: minmax(0, 440px) minmax(0, 1fr);
  align-items: start;
  gap: 56px;
}
.hero { margin-bottom: 36px; }
.intro-side { min-width: 0; }
.intro-side h1 {
  margin-top: 0;
  font-size: clamp(32px, 8vw, 60px);           /* match your heading size */
  white-space: nowrap;
}
.hero-title-shimmer {
  color: var(--ink);
  display: inline-block;
  position: relative;
  isolation: isolate;
}
.hero-title-shimmer::after {
  content: attr(data-text);
  position: absolute;
  inset: 0;
  color: transparent;
  pointer-events: none;
  background: linear-gradient(
    110deg,
    rgba(255, 255, 255, 0) 32%,
    rgba(255, 255, 255, 0.2) 42%,
    rgba(255, 255, 255, 0.98) 50%,
    rgba(255, 255, 255, 0.2) 58%,
    rgba(255, 255, 255, 0) 68%
  );
  background-size: 220% 100%;
  background-repeat: no-repeat;
  background-position: 140% 0;
  -webkit-background-clip: text;
  background-clip: text;
  animation: hero-title-shimmer 2.8s linear infinite;
  text-shadow: 0 0 18px rgba(255, 255, 255, 0.22);
}
.intro-side h2 {
  margin-top: 12px;
  font-size: clamp(18px, 2.1vw, 22px);
  color: var(--muted);
  max-width: 680px;
}
.hero-beat { max-width: 680px; }

@keyframes hero-title-shimmer {
  0% {
    background-position: 140% 0;
  }
  100% {
    background-position: -40% 0;
  }
}

/* Social icons under the right-side heading */
.social {
  display: flex;
  gap: 12px;
  margin-top: 12px;
}
.container .social { margin-left: 0; } /* follows name-block alignment */
.social__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(15, 23, 42, 0.06);
  color: var(--ink);
  text-decoration: none;
  transition: background 0.2s ease, color 0.2s ease, transform 0.1s ease;
}
.social__link:hover {
  background: var(--ink);
  color: #ffffff;
  transform: translateY(-1px);
}

/* Small taglines under social icons */
.taglines {
  margin-top: 6px;        /* reduced space below name */
  font-size: 16px;         /* smaller than the 40px name */
  color: var(--muted);
  line-height: 1.4;
}
.taglines p {
  margin: 0;               /* remove default p spacing */
}
.taglines p + p {
  margin-top: 4px;         /* small space between lines */
}

/* Section headings after the intro paragraph */
.content-sections { margin-top: 40px; }
.chapters { width: 100%; }
.sections .section-title {
  margin: 0;
  font-size: clamp(30px, 4vw, 38px);
  letter-spacing: -0.01em;
  position: relative;
  display: block;           /* ensure each heading is on its own line */
  color: var(--ink);
}
.sections .section-title::after {
  content: "";
  display: block;
  height: 3px;
  width: 56px;
  margin-top: 6px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--ink), rgba(15, 23, 42, 0.2));
}

.project-section-title {
  margin-bottom: 8px !important;
  scroll-margin-top: calc(var(--nav-height) + 44px);
}

.chapter {
  margin: 72px 0;
}
.chapter:first-child { margin-top: 0; }
.chapter-head {
  position: sticky;
  top: calc(var(--nav-height) + var(--nav-offset));
  z-index: 5;
  padding: 8px 0 12px;
  background: linear-gradient(180deg, rgba(248, 250, 252, 0.85), rgba(248, 250, 252, 0.65) 70%, rgba(248, 250, 252, 0));
  backdrop-filter: blur(10px);
}
.chapter-title { font-size: clamp(30px, 4vw, 40px); }
.chapter-body { padding-top: 16px; }
.chapter-progress {
  height: 2px;
  width: 100%;
  margin-top: 10px;
  background: rgba(15, 23, 42, 0.08);
  opacity: 0.5;
  transform-origin: 0 50%;
  transform: scaleX(1);
  transition: transform 0.2s ease;
}
.js-enabled .chapter-progress { transform: scaleX(var(--p, 0)); }
.chapter-title.section-zoom {
  opacity: 0;
  transform: scale(1.03) translateY(6px);
  transform-origin: 50% 60%;
  transition: transform 700ms cubic-bezier(0.22, 1, 0.36, 1), opacity 620ms ease;
  will-change: transform, opacity;
}
.chapter-title.section-zoom.is-visible {
  opacity: 1;
  transform: none;
}
.chapter-title.section-zoom.is-visible::after { transform: scaleX(1); }
.js-enabled .sections .section-title::after {
  transform: scaleX(0.2);
  transform-origin: left;
  transition: transform 0.45s ease;
}
.beat { margin-top: 28px; }
.chapter-body .beat:first-child { margin-top: 0; }

/* Qualifications list styling */
.sections .section-body { margin-top: 12px; }
/* Academic Projects intro paragraph: +2px */
.sections .section-body p { font-size: 20px; color: var(--muted); }
/* Subsection headings: +2px */
.sections .subsection-title { font-size: 24px; font-weight: 600; margin-top: 12px; }
.sections .subsection-space { height: 80px; }
/* Generic space for empty sections */
.sections .section-space { height: 100px; }
/* Project poster card styling */
.sections .project-poster {
  margin: 10px 0 16px;
  max-width: 640px;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow-md);
  outline: 1px solid var(--line);
}
.sections .beat > .project-poster {
  margin-left: auto;
  margin-right: auto;
}
.sections .project-poster--logo {
  /* Logo card: slightly larger, still compact */
  flex: 0 1 40%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  background: #ffffff;
  max-width: 720px; /* allow a bit wider than standard poster */
}
.sections .project-poster--logo img {
  max-height: 340px;
  width: auto;
  height: auto;
  object-fit: contain;
}
.sections .project-poster img {
  width: 100%;
  height: auto;
  display: block;
}
/* Make 2025 poster match 2024 poster width visually */
.sections .project-poster--match2024 {
  max-width: none;  /* allow percentage width */
  width: 100%;
}
@media (max-width: 900px) {
  .sections .project-poster--match2024 { width: 100%; }
}
/* Add extra space before a subsection title that follows a poster */
.sections .project-poster + .subsection-title {
  margin-top: 24px;
}
/* Poster + highlights side-by-side layout */
.sections .project-poster-row {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
  gap: 46px;
  align-items: center;       /* vertically center highlights with poster */
  margin: 16px 0 36px;       /* add more space below before 2025 title */
  padding: 18px 20px;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: var(--shadow-lg);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.sections .project-poster-row:hover {
  transform: translateY(-4px);
  box-shadow: 0 22px 42px -26px rgba(15, 23, 42, 0.45);
}
.sections .project-poster-row--top { align-items: flex-start; }
.sections .project-poster-row--top .project-highlights { margin-top: 0; }

/* Center highlights to the image, ignoring the button height */
.sections .project-poster-row--image-centered { align-items: center; }
.sections .project-poster-row--ascon .project-highlights { margin-top: 0; }
@media (max-width: 900px) {
  .sections .project-poster-row--ascon .project-highlights { margin-top: 0; }
}
.sections .project-poster-row .project-poster {
  margin: 0;              /* override default margins inside the row */
  width: 100%;
  max-width: none;        /* let grid control width */
}
.sections .project-poster-col {
  margin: 0;              /* align with poster when used as column */
  width: 100%;
  max-width: none;
}
.sections .project-poster-col > .project-poster + .project-poster {
  margin-top: 12px;
}
.sections .project-poster-col .project-actions { 
  margin: 8px 0 0;        /* simple spacing below image; no shadow */
}
.sections .project-poster-row .project-highlights {
  margin: 0;                 /* align with poster vertically */
  min-width: 0;              /* allow shrinking on narrow screens */
  max-width: none;
}
@media (max-width: 900px) {
  .sections .project-poster-row { grid-template-columns: 1fr; }
  .sections .project-poster-row .project-poster { margin: 0 0 8px; }
}
/* Bullet highlights card */
.sections .project-highlights {
  margin: 10px 0 20px;
  padding: 8px 0;
  list-style: none;          /* we draw our own bullets */
  font-size: 20px;           /* match paragraph size in section body */
  color: var(--ink);
  background: transparent;
  border-radius: 12px;
  box-shadow: none;
  outline: none;
}
.sections .project-highlights li { 
  margin: 8px 0;
  position: relative;
  padding-left: 28px;
}
.sections .project-actions { margin: 8px 0 22px; }
.sections .project-highlights li::before {
  content: "✓";
  color: var(--accent);
  font-weight: 700;
  position: absolute;
  left: 0;
  top: 0;
  line-height: 1.4;
}
.publication-card {
  display: flex;
  align-items: center;
  min-height: 280px;
  padding: 28px;
  background:
    radial-gradient(220px 220px at 15% 20%, rgba(15, 118, 110, 0.12), transparent 70%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.96), rgba(241, 245, 249, 0.92));
}
.publication-card__inner {
  width: 100%;
}
.publication-card__eyebrow {
  display: inline-flex;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(15, 118, 110, 0.12);
  color: var(--accent-dark);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}
.publication-card__title {
  margin: 18px 0 8px;
  font-size: clamp(30px, 4vw, 42px);
  line-height: 1.05;
  color: var(--ink);
}
.publication-card__copy {
  margin: 0;
  font-size: 19px;
  line-height: 1.55;
  color: var(--muted);
}
.publication-logo-band {
  margin-top: 20px;
  padding: 24px 28px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-md);
  display: flex;
  justify-content: center;
}
.publication-logo-band img {
  display: block;
  width: min(100%, 780px);
  height: auto;
}
.publication-content-card {
  margin-top: 20px;
  padding: 26px 28px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-md);
}
.publication-content-card .subsection-title {
  margin-top: 0;
}
.publication-content-card .project-desc {
  margin-bottom: 18px;
}
.publication-content-card .project-highlights {
  margin-bottom: 0;
}
.sections .qual-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 28px;                 /* keep distance between the two logos/cards */
  align-items: start;
}
.sections .qual-card {
  max-width: 320px;
  width: 100%;
  display: grid;
  grid-template-rows: 90px auto; /* reserve same space for logos */
  font-size: 20px;            /* match Academic Projects paragraph size */
  padding: 16px 18px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-md);
}
.sections .qual-logo {
  height: 80px;              /* uniform logo height for alignment */
  width: auto;
  display: block;
  margin-bottom: 8px;
  filter: drop-shadow(0 4px 10px rgba(15, 23, 42, 0.15));
  align-self: end;           /* sit at bottom of the reserved row */
}
.sections .qual-title { font-weight: 600; }
.sections .qual-meta { color: var(--muted); font-size: 20px; margin: 2px 0 6px; }
/* Academic projects: skills line */
.sections .project-skills { color: var(--muted); font-size: 18px; margin-top: 6px; }

.project-subtitle {
  margin-top: 18px;
  font-size: 20px;
  letter-spacing: -0.01em;
  color: var(--ink);
}

.aws-pipeline-row {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 12px 0 16px;
  flex-wrap: wrap;
}
.aws-node {
  width: 200px;
  height: auto;
  object-fit: contain;
}
.aws-arrow {
  font-size: 0;
  width: 200px;
  height: 3px;
  background: linear-gradient(90deg, rgba(71, 85, 105, 0.2), rgba(71, 85, 105, 0.7));
  position: relative;
}
.aws-arrow::after {
  content: "";
  position: absolute;
  right: -6px;
  top: 50%;
  transform: translateY(-50%);
  border-left: 10px solid rgba(71, 85, 105, 0.7);
  border-top: 6px solid transparent;
  border-bottom: 6px solid transparent;
}
.aws-pipeline {
  width: min(100%, 680px);
  height: auto;
  border-radius: 12px;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--line);
}

.network {
  margin-top: 16px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  align-items: center;
  justify-items: center;
}
.network-text p {
  margin: 0;
  font-size: 18px;
  color: var(--muted);
  text-align: center;
}
.network-viz {
  position: relative;
  width: 100%;
  max-width: 760px;
  aspect-ratio: 16 / 10;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-md);
  overflow: hidden;
  margin: 0 auto;
}
.network-lines {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  fill: none;
  stroke: rgba(15, 23, 42, 0.35);
  stroke-width: 1.4;
  stroke-dasharray: 6 6;
  animation: line-dash 2.8s linear infinite;
}
.sink-node {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  display: grid;
  justify-items: center;
  gap: 6px;
}
.sink-screen {
  width: 86px;
  height: 56px;
  background: linear-gradient(180deg, #ffffff, #e2e8f0);
  border-radius: 10px;
  border: 1px solid rgba(15, 23, 42, 0.12);
  position: relative;
}
.sink-screen::after {
  content: "";
  position: absolute;
  inset: 8px;
  border-radius: 6px;
  background: linear-gradient(135deg, rgba(15, 118, 110, 0.25), rgba(59, 130, 246, 0.2));
  box-shadow: inset 0 0 0 1px rgba(15, 23, 42, 0.1);
}
.sink-base {
  width: 46px;
  height: 8px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.2);
}
.sink-label {
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.node {
  position: absolute;
  width: 82px;
  height: 82px;
  display: grid;
  place-items: center;
}
.node img {
  width: 70px;
  height: 70px;
  object-fit: contain;
  filter: drop-shadow(0 6px 12px rgba(15, 23, 42, 0.2));
}
.node::before,
.node::after {
  content: "";
  position: absolute;
  width: 82px;
  height: 82px;
  border-radius: 50%;
  border: 1px solid rgba(15, 118, 110, 0.35);
  animation: node-pulse 2.8s ease-out infinite;
}
.node::after {
  animation-delay: 1.4s;
}
.node-1 { top: 12%; left: 12%; }
.node-2 { top: 12%; right: 12%; }
.node-3 { bottom: 12%; left: 12%; }
.node-4 { bottom: 12%; right: 12%; }
.node-5 { top: 45%; left: 8%; }

.lwc-tag {
  position: absolute;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: rgba(15, 118, 110, 0.12);
  color: var(--ink);
  border: 1px solid rgba(15, 118, 110, 0.28);
  animation: lwc-pulse 2.6s ease-in-out infinite;
}
.tag-main {
  left: 50%;
  bottom: 10%;
  transform: translate(-50%, 0);
  animation: lwc-pulse-center 2.6s ease-in-out infinite;
}

.side-project-card {
  position: relative;
  display: grid;
  grid-template-columns: minmax(300px, 1.05fr) minmax(0, 1fr);
  gap: 28px;
  align-items: center;
  margin-top: 18px;
  padding: 26px;
  border-radius: 24px;
  overflow: hidden;
  background:
    radial-gradient(320px 180px at 18% 24%, rgba(56, 189, 248, 0.2), transparent 62%),
    radial-gradient(280px 160px at 84% 76%, rgba(59, 130, 246, 0.12), transparent 60%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.9), rgba(226, 232, 240, 0.84));
  border: 1px solid rgba(59, 130, 246, 0.12);
  box-shadow:
    0 22px 44px -28px rgba(15, 23, 42, 0.45),
    inset 0 1px 0 rgba(255, 255, 255, 0.85);
}

.side-project-card::before {
  content: "";
  position: absolute;
  inset: -20% 42% auto -10%;
  height: 160%;
  background: linear-gradient(90deg, rgba(125, 211, 252, 0), rgba(125, 211, 252, 0.24), rgba(59, 130, 246, 0));
  transform: rotate(12deg);
  animation: brand-sweep 4.4s linear infinite;
  pointer-events: none;
}

.side-project-card__visual {
  position: relative;
  min-height: 320px;
  display: grid;
  place-items: center;
  border-radius: 20px;
  overflow: hidden;
  background:
    radial-gradient(circle at center, rgba(56, 189, 248, 0.26), rgba(30, 41, 59, 0.08) 50%, rgba(15, 23, 42, 0.24) 100%),
    linear-gradient(180deg, rgba(15, 23, 42, 0.12), rgba(15, 23, 42, 0.28));
  border: 1px solid rgba(148, 163, 184, 0.2);
}

.brand-beacon {
  position: absolute;
  width: 66%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(34, 211, 238, 0.95) 0%, rgba(59, 130, 246, 0.55) 28%, rgba(59, 130, 246, 0.12) 56%, rgba(59, 130, 246, 0) 76%);
  filter: blur(10px);
  animation: brand-flash 2.8s ease-in-out infinite;
}

.side-project-logo-wrap {
  position: relative;
  z-index: 1;
  width: min(100%, 520px);
  margin: 0;
  padding: 10px 18px;
}

.side-project-logo {
  display: block;
  width: 100%;
  height: auto;
  transform: scale(1.32);
  transform-origin: center;
  filter:
    drop-shadow(0 0 18px rgba(56, 189, 248, 0.52))
    drop-shadow(0 0 42px rgba(59, 130, 246, 0.34));
  animation: logo-breathe 3.4s ease-in-out infinite;
}

.side-project-card__content {
  position: relative;
  z-index: 1;
}

.side-project-kicker {
  margin: 0 0 10px;
  font-size: 13px !important;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #0369a1 !important;
}

.side-project-title {
  margin: 0 0 12px;
  font-family: "Space Grotesk", "IBM Plex Sans", system-ui, sans-serif;
  font-size: clamp(34px, 4vw, 46px);
  line-height: 1;
  letter-spacing: -0.04em;
  color: var(--ink);
}

.side-project-copy {
  margin: 0 0 14px;
}

.side-project-card--wpify {
  background:
    radial-gradient(320px 180px at 18% 24%, rgba(74, 222, 128, 0.18), transparent 62%),
    radial-gradient(280px 160px at 84% 76%, rgba(34, 197, 94, 0.12), transparent 60%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.9), rgba(236, 253, 245, 0.9));
  border: 1px solid rgba(34, 197, 94, 0.14);
}

.side-project-card--wpify::before {
  background: linear-gradient(90deg, rgba(134, 239, 172, 0), rgba(74, 222, 128, 0.24), rgba(22, 163, 74, 0));
}

.side-project-card--wpify .side-project-card__visual {
  background:
    radial-gradient(circle at center, rgba(74, 222, 128, 0.18), rgba(15, 23, 42, 0.08) 50%, rgba(15, 23, 42, 0.24) 100%),
    linear-gradient(180deg, rgba(21, 128, 61, 0.12), rgba(6, 78, 59, 0.28));
  border-color: rgba(74, 222, 128, 0.18);
}

.side-project-card--wpify .side-project-logo-wrap {
  width: min(100%, 460px);
  padding: 0 12px;
}

.side-project-card--wpify .side-project-kicker {
  color: #15803d !important;
}

.side-project-logo--wpify {
  width: 100%;
  max-width: 460px;
  margin-inline: auto;
  filter:
    drop-shadow(0 0 18px rgba(74, 222, 128, 0.3))
    drop-shadow(0 0 36px rgba(22, 163, 74, 0.2));
  animation: logo-breathe-wide 3.4s ease-in-out infinite;
}

@keyframes line-dash {
  to { stroke-dashoffset: -120; }
}
@keyframes node-pulse {
  0% { transform: scale(0.7); opacity: 0.7; }
  70% { transform: scale(1.2); opacity: 0; }
  100% { opacity: 0; }
}
@keyframes lwc-pulse {
  0%, 100% { transform: translateY(0); opacity: 0.8; }
  50% { transform: translateY(-4px); opacity: 1; }
}
@keyframes lwc-pulse-center {
  0%, 100% { transform: translate(-50%, 0); opacity: 0.8; }
  50% { transform: translate(-50%, -4px); opacity: 1; }
}
@keyframes brand-flash {
  0%, 100% { opacity: 0.78; transform: scale(0.96); }
  50% { opacity: 1; transform: scale(1.08); }
}
@keyframes logo-breathe {
  0%, 100% { transform: scale(1.28); }
  50% { transform: scale(1.36); }
}
@keyframes logo-breathe-wide {
  0%, 100% { transform: scale(0.96); }
  50% { transform: scale(1.01); }
}
@keyframes brand-sweep {
  0% { transform: translateX(-18%) rotate(12deg); opacity: 0; }
  12% { opacity: 0.7; }
  50% { opacity: 0.9; }
  88% { opacity: 0.7; }
  100% { transform: translateX(140%) rotate(12deg); opacity: 0; }
}

/* -------------------------
   Page load animations
   ------------------------- */
/* Subtle fade-in for the whole page */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* Fade-and-rise for main sections */
@keyframes fadeInUp {
  0% { opacity: 0; transform: translateY(12px); }
  100% { opacity: 1; transform: translateY(0); }
}

/* Start with a quick page fade */
body {
  opacity: 0;
  animation: fadeIn 520ms ease-out both;
}

/* Stagger the two primary columns */
.layout > * {
  opacity: 0;
  transform: translateY(8px);
  will-change: opacity, transform;
  animation: fadeInUp 680ms ease-out both;
}
.layout > :nth-child(1) { animation-delay: 140ms; }
.layout > :nth-child(2) { animation-delay: 280ms; }

/* Respect user motion preferences */
@media (prefers-reduced-motion: reduce) {
  body, .layout > * {
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
  }
  html { scroll-behavior: auto; }
  .cyl-nav__link { transition: none; }
  .cyl-nav__menu,
  .cyl-nav__caret { transition: none; }
  .cyl-nav__shell {
    background:
      linear-gradient(145deg, rgba(255, 255, 255, 0.9), rgba(224, 242, 254, 0.74) 45%, rgba(255, 255, 255, 0.86));
  }
}

/* Work & Research Interests list */
.sections .interests-list {
  margin: 8px 0 20px;
  padding-left: 22px;
  font-size: 20px;
  color: var(--ink);
  display: grid;
  grid-template-columns: 1fr;
  row-gap: 8px;
}
.sections .interests-list li { margin: 6px 0; }

/* Certifications list styling (same feel as interests) */
.sections .cert-list {
  margin: 8px 0 20px;
  padding-left: 0;
  font-size: 20px;
  color: var(--ink);
  max-width: 100%;
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px 28px;
  list-style: none;
}
.sections .cert-list li { margin: 10px 0 18px; }

/* Certification item layout */
.sections .cert-item {
  display: grid;             /* align button column consistently */
  grid-template-columns: 1fr auto; /* title grows, button stays tight */
  align-items: center;
  column-gap: 12px;
  width: 100%;
  padding: 10px 12px;
  border-radius: 14px;
  border: 1px solid transparent;
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}
.sections .cert-item:hover {
  background: rgba(255, 255, 255, 0.7);
  border-color: var(--line);
  transform: translateY(-2px);
}
.sections .cert-title { font-weight: 600; }

/* Verify credential button */
.sections .btn-verify {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 18px;
  border-radius: 9999px;
  background: var(--accent);
  color: #ffffff;
  text-decoration: none;
  font-size: 15px;
  font-weight: 600;
  box-shadow: 0 12px 24px -16px rgba(15, 118, 110, 0.55);
  transition: background 0.2s ease, transform 0.12s ease, box-shadow 0.25s ease;
  width: fit-content;
}
.sections .btn-verify:hover { background: var(--accent-dark); transform: translateY(-2px); box-shadow: 0 16px 26px -14px rgba(15, 118, 110, 0.5); }
.sections .btn-verify:active { transform: translateY(0); }
.sections .btn-verify:focus-visible { outline: 2px solid rgba(15, 118, 110, 0.35); outline-offset: 2px; }

/* Use the same green button style in the left column */
.container .btn-verify {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 18px;
  border-radius: 9999px;
  background: var(--accent);
  color: #ffffff;
  text-decoration: none;
  font-size: 15px;
  font-weight: 600;
  box-shadow: 0 12px 24px -16px rgba(15, 118, 110, 0.55);
  transition: background 0.2s ease, transform 0.12s ease, box-shadow 0.25s ease;
  width: fit-content;
}
.container .btn-verify:hover { background: var(--accent-dark); transform: translateY(-2px); box-shadow: 0 16px 26px -14px rgba(15, 118, 110, 0.5); }
.container .btn-verify:active { transform: translateY(0); }
.container .btn-verify:focus-visible { outline: 2px solid rgba(15, 118, 110, 0.35); outline-offset: 2px; }

/* -------------------------
   Responsive adjustments
   ------------------------- */
@media (max-width: 1100px) {
  .layout { grid-template-columns: 1fr; gap: 32px; }
  .intro-side h1 { margin-top: 24px; white-space: normal; }
}

@media (max-width: 900px) {
  :root {
    --nav-height: 70px;
    --nav-offset: 14px;
  }
  .chapter-head {
    position: static;
    backdrop-filter: none;
    background: transparent;
  }
  .chapter-progress { display: none; }
  .network {
    grid-template-columns: 1fr;
  }
  .side-project-card {
    grid-template-columns: 1fr;
  }
  .side-project-card__visual {
    min-height: 260px;
  }
}

@media (min-width: 900px) {
  .sections .cert-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .sections .interests-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 24px;
  }
}

@media (max-width: 700px) {
  .page { padding: 18px 20px 24px; }
  .cyl-nav { margin-bottom: 28px; }
  .cyl-nav__shell {
    flex-wrap: wrap;
    gap: 6px;
    padding: 8px;
  }
  .cyl-nav__link {
    padding: 11px 15px;
    font-size: 14px;
  }
  .cyl-nav__menu {
    min-width: 190px;
  }
  .layout { gap: 24px; }
  .container h1 { white-space: normal; }
  .intro-side h1 { white-space: normal; }
  .chapter { margin: 48px 0; }
  .chapter-body { padding-top: 10px; }
  .sections .section-title { font-size: clamp(24px, 7vw, 30px); }
  .sections .project-poster-row { padding: 14px 14px; gap: 20px; }
  .sections .project-highlights { font-size: 18px; }
  .sections .section-body p { font-size: 18px; }
  .network-viz { max-width: 100%; }
  .network-viz { aspect-ratio: 4 / 3; }
  .node { width: 68px; height: 68px; }
  .node img { width: 58px; height: 58px; }
  .node::before,
  .node::after { width: 68px; height: 68px; }
  .lwc-tag { font-size: 10px; padding: 4px 8px; }
  .side-project-card {
    padding: 18px;
    gap: 18px;
  }
  .side-project-card__visual {
    min-height: 210px;
  }
  .side-project-logo-wrap {
    padding: 0 10px;
  }
  .side-project-logo {
    transform: scale(1.22);
  }
  .side-project-logo--wpify {
    max-width: 100%;
    animation: logo-breathe-wide 3.4s ease-in-out infinite;
  }
}

/* -------------------------
   Scroll reveal animations
   ------------------------- */
.js-enabled .reveal {
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 520ms ease, transform 700ms cubic-bezier(0.22, 1, 0.36, 1);
  will-change: opacity, transform;
}
.js-enabled .reveal-up { transform: translateY(10px); }
.js-enabled .reveal-down { transform: translateY(-10px); }
.js-enabled .reveal-left { transform: translateY(10px); }
.js-enabled .reveal-right { transform: translateY(10px); }
.js-enabled .reveal-scale { transform: scale(0.98); }
.js-enabled .reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* Optional subtle stagger when grouped */
.js-enabled [data-reveal-group] > .reveal { transition-delay: 60ms; }
.js-enabled [data-reveal-group] > .reveal:nth-child(2) { transition-delay: 120ms; }
.js-enabled [data-reveal-group] > .reveal:nth-child(3) { transition-delay: 180ms; }
.js-enabled [data-reveal-group] > .reveal:nth-child(4) { transition-delay: 240ms; }
.js-enabled [data-reveal-group] > .reveal:nth-child(5) { transition-delay: 300ms; }

@media (prefers-reduced-motion: reduce) {
  .chapter-head { position: static; }
  .chapter-progress { opacity: 0; }
  .chapter-title.section-zoom {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
  .js-enabled .reveal { opacity: 1 !important; transform: none !important; transition: none !important; }
  .network-lines,
  .node::before,
  .node::after,
  .lwc-tag,
  .side-project-card::before,
  .brand-beacon,
  .side-project-logo { animation: none !important; }
}
