/* Md. Saiful Islam — Premium portfolio custom layer
   Complements Tailwind CDN. Tokens mirror design brief. */

:root {
  --color-bg-deep: #0f172a;
  --color-bg-mid: #111827;
  --color-bg-surface: #1e293b;
  --color-accent-sky: #38bdf8;
  --color-accent-violet: #8b5cf6;
  --color-accent-cyan: #06b6d4;
  --color-text-bright: #f8fafc;
  --color-text-muted: #cbd5e1;
  --glass-bg: rgba(15, 23, 42, 0.55);
  --glass-border: rgba(148, 163, 184, 0.12);
  --glow-sky: rgba(56, 189, 248, 0.35);
  --glow-violet: rgba(139, 92, 246, 0.35);
  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
}

html {
  scroll-behavior: smooth;
  /* Fixed header anchor jumps */
  scroll-padding-top: clamp(4.25rem, 12vw, 6rem);
}

/* Safe areas (notched phones) */
@supports (padding: max(0px)) {
  body {
    padding-left: max(0px, env(safe-area-inset-left));
    padding-right: max(0px, env(safe-area-inset-right));
    padding-bottom: max(0px, env(safe-area-inset-bottom));
  }
}

/* Portfolio filters — contained scroll inside main width */
.portfolio-filter-wrap {
  position: relative;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  overflow: hidden;
}

.portfolio-filter-wrap::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 2.5rem;
  height: 100%;
  pointer-events: none;
  background: linear-gradient(90deg, transparent, rgba(15, 23, 42, 0.92));
  opacity: 0;
  transition: opacity 0.25s ease;
}

.portfolio-filter-wrap.has-overflow::after {
  opacity: 1;
}

.portfolio-filter-strip {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 0.35rem;
  width: 100%;
  min-width: 0;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  touch-action: pan-x;
  overscroll-behavior-x: contain;
  scrollbar-width: none;
  -ms-overflow-style: none;
  scroll-behavior: smooth;
}

.portfolio-filter-strip::-webkit-scrollbar {
  display: none;
  width: 0;
  height: 0;
}

.portfolio-filter-strip .portfolio-filter {
  flex: 0 0 auto;
  white-space: nowrap;
  min-height: 2.25rem;
  padding: 0.4rem 0.65rem;
  border-radius: 9999px;
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  transition:
    border-color 0.25s ease,
    background 0.25s ease,
    color 0.25s ease;
}

.portfolio-filter-short {
  display: inline;
}

.portfolio-filter-long {
  display: none;
}

@media (max-width: 899px) {
  .portfolio-filter-strip {
    gap: 0.25rem;
  }
  .portfolio-filter-strip .portfolio-filter {
    min-height: 2rem;
    padding: 0.35rem 0.45rem;
    font-size: 0.54rem;
    letter-spacing: 0.02em;
  }
}

@media (min-width: 900px) {
  .portfolio-filter-strip {
    gap: 0.45rem;
  }
  .portfolio-filter-strip .portfolio-filter {
    min-height: 2.4rem;
    padding: 0.45rem 0.8rem;
    font-size: 0.68rem;
    letter-spacing: 0.08em;
  }
  .portfolio-filter-short {
    display: none;
  }
  .portfolio-filter-long {
    display: inline;
  }
}

@media (min-width: 1280px) {
  .portfolio-filter-strip .portfolio-filter {
    min-height: 2.5rem;
    padding: 0.5rem 0.9rem;
    font-size: 0.7rem;
  }
}

.portfolio-section {
  overflow-x: clip;
}

/* Fluid hero title */
.hero-title-fluid {
  font-size: clamp(1.65rem, 5.5vw + 0.55rem, 3.65rem);
  line-height: 1.08;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

body {
  background-color: var(--color-bg-deep);
  color: var(--color-text-bright);
  font-feature-settings: "cv02", "cv03", "cv04", "cv11";
}

body.nav-open {
  position: fixed;
  width: 100%;
  overflow: hidden;
}

/* Skip link */
.skip-link {
  position: absolute;
  top: -100%;
  left: 50%;
  transform: translateX(-50%);
  z-index: 100;
  padding: 0.75rem 1.25rem;
  background: var(--color-accent-cyan);
  color: var(--color-bg-deep);
  font-weight: 600;
  border-radius: 9999px;
  transition: top 0.2s var(--ease-out-expo);
}
.skip-link:focus {
  top: 1rem;
  outline: 2px solid white;
  outline-offset: 2px;
}

/* Hero canvas particles */
#particle-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  opacity: 0.85;
}

/* Cursor follower */
.cursor-glow {
  position: fixed;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  pointer-events: none;
  z-index: 50;
  background: radial-gradient(
    circle,
    rgba(56, 189, 248, 0.12) 0%,
    rgba(139, 92, 246, 0.08) 35%,
    transparent 70%
  );
  transform: translate(-50%, -50%) scale(0.9);
  opacity: 0;
  transition: opacity 0.4s ease;
  mix-blend-mode: screen;
  will-change: transform;
}
.cursor-glow.is-active {
  opacity: 1;
}

/* Glass panels */
.glass-panel {
  background: var(--glass-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.03) inset,
    0 24px 80px rgba(0, 0, 0, 0.35);
}

/* Hero portrait — luminous arch portal frame */
.hero-portrait-stage {
  position: relative;
  width: min(100%, 16.5rem);
  aspect-ratio: 493 / 658;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  margin-inline: auto;
}

.hero-portrait-ring {
  position: absolute;
  left: 50%;
  top: 2%;
  width: 88%;
  aspect-ratio: 1;
  transform: translateX(-50%);
  border-radius: 50%;
  background: conic-gradient(
    from 210deg,
    transparent 0deg,
    rgba(56, 189, 248, 0.55) 70deg,
    rgba(139, 92, 246, 0.65) 140deg,
    rgba(6, 182, 212, 0.45) 210deg,
    transparent 280deg
  );
  -webkit-mask: radial-gradient(circle, transparent 58%, #000 59%, #000 64%, transparent 65%);
  mask: radial-gradient(circle, transparent 58%, #000 59%, #000 64%, transparent 65%);
  opacity: 0.85;
  animation: hero-ring-spin 18s linear infinite;
}

.hero-portrait-arch {
  position: absolute;
  left: 50%;
  top: 5%;
  width: 86%;
  height: 74%;
  transform: translateX(-50%);
  border-radius: 50% 50% 22% 22% / 42% 42% 10% 10%;
  background:
    radial-gradient(ellipse 80% 55% at 50% 18%, rgba(56, 189, 248, 0.16), transparent 72%),
    radial-gradient(ellipse 70% 40% at 50% 100%, rgba(139, 92, 246, 0.12), transparent 70%);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow:
    inset 0 0 48px rgba(56, 189, 248, 0.08),
    0 0 72px rgba(56, 189, 248, 0.14);
}

.hero-portrait-pedestal {
  position: absolute;
  left: 50%;
  bottom: 0;
  z-index: 1;
  width: 92%;
  height: 32%;
  transform: translateX(-50%);
  border-radius: 50%;
  background: radial-gradient(
    ellipse 90% 80% at 50% 100%,
    rgba(56, 189, 248, 0.32) 0%,
    rgba(139, 92, 246, 0.14) 38%,
    transparent 72%
  );
  filter: blur(14px);
}

.hero-portrait-ground {
  position: absolute;
  left: 50%;
  bottom: -4%;
  z-index: 1;
  width: 108%;
  height: 26%;
  transform: translateX(-50%);
  border-radius: 50%;
  background: radial-gradient(
    ellipse 85% 70% at 50% 100%,
    rgba(15, 23, 42, 0.95) 0%,
    rgba(15, 23, 42, 0.55) 45%,
    transparent 78%
  );
  filter: blur(6px);
}

.hero-portrait-figure {
  position: relative;
  z-index: 2;
  display: flex;
  width: 94%;
  height: 100%;
  align-items: flex-end;
  justify-content: center;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(
    to bottom,
    #000 0%,
    #000 68%,
    rgba(0, 0, 0, 0.55) 82%,
    transparent 100%
  );
  mask-image: linear-gradient(
    to bottom,
    #000 0%,
    #000 68%,
    rgba(0, 0, 0, 0.55) 82%,
    transparent 100%
  );
}

.hero-portrait-fade {
  position: absolute;
  inset-inline: -10%;
  bottom: 0;
  z-index: 3;
  height: 42%;
  pointer-events: none;
  background: linear-gradient(
    to bottom,
    transparent 0%,
    rgba(15, 23, 42, 0.25) 28%,
    rgba(15, 23, 42, 0.72) 62%,
    #0f172a 92%,
    #111827 100%
  );
}

.hero-portrait-orb {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}

.hero-portrait-orb--cyan {
  top: 18%;
  right: 2%;
  width: 0.65rem;
  height: 0.65rem;
  background: #38bdf8;
  box-shadow: 0 0 18px rgba(56, 189, 248, 0.9);
  animation: hero-orb-float 4.5s ease-in-out infinite;
}

.hero-portrait-orb--violet {
  bottom: 28%;
  left: 0;
  width: 0.5rem;
  height: 0.5rem;
  background: #a78bfa;
  box-shadow: 0 0 16px rgba(139, 92, 246, 0.85);
  animation: hero-orb-float 5.2s ease-in-out infinite reverse;
}

.hero-portrait-img {
  position: relative;
  z-index: 2;
  width: 100%;
  height: auto;
  max-height: 106%;
  object-fit: contain;
  object-position: center bottom;
  transform: translateY(2%);
  filter:
    drop-shadow(0 16px 32px rgba(15, 23, 42, 0.7))
    drop-shadow(0 0 24px rgba(56, 189, 248, 0.12));
}

@keyframes hero-ring-spin {
  to {
    transform: translateX(-50%) rotate(360deg);
  }
}

@keyframes hero-orb-float {
  0%,
  100% {
    transform: translateY(0);
    opacity: 0.85;
  }
  50% {
    transform: translateY(-8px);
    opacity: 1;
  }
}

@media (min-width: 640px) {
  .hero-portrait-stage {
    width: min(100%, 18rem);
  }
}

@media (min-width: 1024px) {
  .hero-portrait-stage {
    width: min(100%, 20rem);
    margin-inline: 0 0;
    margin-left: auto;
  }
}

@media (min-width: 1280px) {
  .hero-portrait-stage {
    width: min(100%, 21.5rem);
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-portrait-ring,
  .hero-portrait-orb {
    animation: none;
  }
}

/* About / Biography section */
.about-section {
  border-top: 1px solid rgba(255, 255, 255, 0.04);
}

.about-intro {
  padding-bottom: 0.25rem;
}

.about-intro-label {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
}

.about-intro-label::before {
  content: "";
  width: 1.75rem;
  height: 1px;
  background: linear-gradient(90deg, var(--color-accent-sky), transparent);
}

.about-intro::after {
  content: "";
  display: block;
  width: min(100%, 18rem);
  height: 1px;
  margin-top: 1.25rem;
  background: linear-gradient(90deg, rgba(56, 189, 248, 0.45), rgba(255, 255, 255, 0.06) 55%, transparent);
}

@media (min-width: 1024px) {
  .about-intro {
    padding-top: 0.35rem;
  }

  .about-intro::after {
    width: 100%;
    max-width: none;
  }
}

.about-profile-card {
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.04) inset,
    0 28px 80px rgba(0, 0, 0, 0.35);
}

.about-profile-visual {
  position: relative;
  overflow: hidden;
  min-height: 12rem;
}

.about-profile-glow {
  position: absolute;
  inset: 10% 8% auto;
  height: 55%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(56, 189, 248, 0.22), transparent 68%);
  filter: blur(18px);
}

.about-profile-photo {
  position: relative;
  z-index: 1;
  display: block;
  width: 78%;
  max-width: 14rem;
  margin-inline: auto;
  object-fit: contain;
  object-position: center bottom;
  -webkit-mask-image: linear-gradient(to bottom, #000 0%, #000 72%, transparent 100%);
  mask-image: linear-gradient(to bottom, #000 0%, #000 72%, transparent 100%);
  filter: drop-shadow(0 16px 28px rgba(15, 23, 42, 0.65));
}

.about-tag {
  display: inline-flex;
  align-items: center;
  border-radius: 9999px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.04);
  padding: 0.35rem 0.7rem;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: #cbd5e1;
}

.about-quote {
  position: relative;
}

.about-quote::before {
  content: "“";
  position: absolute;
  top: 0.35rem;
  left: 1rem;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 3rem;
  line-height: 1;
  color: rgba(56, 189, 248, 0.28);
  pointer-events: none;
}

.about-pillar {
  transition:
    transform 0.35s var(--ease-out-expo),
    box-shadow 0.35s ease,
    border-color 0.35s ease;
}

.about-pillar:hover {
  transform: translateY(-2px);
  border-color: rgba(56, 189, 248, 0.28);
  box-shadow: 0 0 36px rgba(56, 189, 248, 0.12);
}

/* Hero section — full first screen; next section stays below fold */
.hero-section {
  display: flex;
  flex-direction: column;
  min-height: 100svh;
  min-height: 100dvh;
  padding-top: clamp(5.25rem, 8vw, 6.25rem);
  padding-bottom: clamp(1.25rem, 3vw, 2rem);
}

#hero-inner {
  flex: 1 1 auto;
  width: 100%;
  align-content: end;
}

.hero-scroll-cue {
  padding-bottom: max(0.25rem, env(safe-area-inset-bottom));
}

/* Gradient orb backgrounds */
.hero-gradient {
  background:
    radial-gradient(ellipse 100% 80% at 20% -20%, rgba(56, 189, 248, 0.28), transparent),
    radial-gradient(ellipse 80% 60% at 90% 10%, rgba(139, 92, 246, 0.25), transparent),
    radial-gradient(ellipse 70% 50% at 50% 110%, rgba(6, 182, 212, 0.2), transparent),
    linear-gradient(180deg, #0f172a 0%, #111827 50%, #0f172a 100%);
}

/* Scroll indicator */
.scroll-indicator {
  animation: bounce-y 2.2s ease-in-out infinite;
}
@keyframes bounce-y {
  0%, 100% { transform: translateY(0); opacity: 0.85; }
  50% { transform: translateY(10px); opacity: 0.5; }
}

/* Typing cursor */
.typing-cursor::after {
  content: "|";
  margin-left: 2px;
  color: var(--color-accent-sky);
  animation: blink 1s step-end infinite;
}
@keyframes blink {
  50% { opacity: 0; }
}

/* Progress bar fill animation (width set via JS) */
.skill-bar-fill {
  height: 100%;
  border-radius: 9999px;
  background: linear-gradient(90deg, var(--color-accent-cyan), var(--color-accent-violet));
  transform-origin: left;
  transition: transform 1.2s var(--ease-out-expo);
}

/* Skills section */
.skills-intro-label {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
}

.skills-intro-label::before {
  content: "";
  width: 1.75rem;
  height: 1px;
  background: linear-gradient(90deg, var(--color-accent-sky), transparent);
}

.skill-level {
  display: inline-flex;
  align-items: center;
  border-radius: 9999px;
  padding: 0.3rem 0.65rem;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.skill-level--expert {
  border: 1px solid rgba(56, 189, 248, 0.35);
  background: rgba(56, 189, 248, 0.12);
  color: #7dd3fc;
}

.skill-level--advanced {
  border: 1px solid rgba(139, 92, 246, 0.35);
  background: rgba(139, 92, 246, 0.12);
  color: #c4b5fd;
}

.skill-level--proficient {
  border: 1px solid rgba(148, 163, 184, 0.28);
  background: rgba(148, 163, 184, 0.1);
  color: #cbd5e1;
}

.skill-focus-card {
  transition:
    transform 0.35s var(--ease-out-expo),
    box-shadow 0.35s ease;
}

.skill-focus-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 32px rgba(56, 189, 248, 0.1);
}

.skill-tool-tag {
  display: inline-flex;
  border-radius: 9999px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.04);
  padding: 0.35rem 0.7rem;
  font-size: 0.72rem;
  font-weight: 600;
  color: #94a3b8;
}

.skill-category {
  transition:
    border-color 0.35s ease,
    box-shadow 0.35s ease;
}

.skill-category:hover {
  border-color: rgba(56, 189, 248, 0.22);
  box-shadow: 0 0 28px rgba(56, 189, 248, 0.08);
}

.skill-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.skill-row-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.skill-name {
  font-size: 0.9rem;
  font-weight: 600;
  color: #e2e8f0;
}

.skill-track {
  margin-top: 0.55rem;
  height: 0.4rem;
  overflow: hidden;
  border-radius: 9999px;
  background: rgba(15, 23, 42, 0.85);
}

/* Focus rings */
a:focus-visible,
button:focus-visible,
[role="button"]:focus-visible {
  outline: 2px solid var(--color-accent-cyan);
  outline-offset: 3px;
}

/* Modal */
/* Portfolio section */
.portfolio-head {
  display: grid;
  gap: 1.5rem;
  padding-bottom: 0.25rem;
}

@media (min-width: 1024px) {
  .portfolio-head {
    grid-template-columns: minmax(0, 1fr) minmax(22rem, 34rem);
    align-items: end;
    gap: 2rem 2.5rem;
  }
}

.portfolio-intro-label {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
}

.portfolio-intro-label::before {
  content: "";
  width: 1.75rem;
  height: 1px;
  background: linear-gradient(90deg, var(--color-accent-sky), transparent);
}

.portfolio-controls {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 0.5rem;
  width: 100%;
  min-width: 0;
}

@media (min-width: 640px) {
  .portfolio-controls {
    gap: 0.65rem;
  }
}

@media (min-width: 1024px) {
  .portfolio-controls {
    justify-self: end;
    max-width: 34rem;
  }
}

.portfolio-controls .portfolio-search {
  flex: 1 1 auto;
  min-width: 0;
  width: auto;
}

.portfolio-controls .portfolio-view-toggle {
  flex: 0 0 auto;
}

.portfolio-card {
  overflow: hidden;
  border-radius: 1.35rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(17, 24, 39, 0.82);
  outline: none;
  cursor: pointer;
  transition:
    transform 0.35s var(--ease-out-expo),
    border-color 0.35s ease,
    box-shadow 0.35s ease;
}

.portfolio-card:hover,
.portfolio-card:focus-visible {
  transform: translateY(-3px);
  border-color: rgba(56, 189, 248, 0.35);
  box-shadow: 0 0 40px rgba(56, 189, 248, 0.14);
}

.portfolio-thumb {
  position: relative;
  display: grid;
  height: 10.5rem;
  place-items: center;
  overflow: hidden;
}

.portfolio-thumb-label {
  position: relative;
  z-index: 1;
  font-family: var(--font-display, "Space Grotesk", system-ui, sans-serif);
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  color: rgba(255, 255, 255, 0.88);
}

.portfolio-thumb--graphic {
  background: linear-gradient(135deg, rgba(56, 189, 248, 0.55), rgba(139, 92, 246, 0.45));
}

.portfolio-thumb--editing {
  background: linear-gradient(135deg, rgba(244, 63, 94, 0.45), rgba(139, 92, 246, 0.4));
}

.portfolio-thumb--web {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.45), rgba(56, 189, 248, 0.4));
}

.portfolio-thumb--apps {
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.5), rgba(6, 182, 212, 0.42));
}

.portfolio-thumb--photo {
  background: linear-gradient(135deg, rgba(236, 72, 153, 0.42), rgba(56, 189, 248, 0.38));
}

.portfolio-thumb--motion {
  background: linear-gradient(135deg, rgba(168, 85, 247, 0.48), rgba(244, 63, 94, 0.4));
}

.portfolio-thumb--has-img .portfolio-thumb-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.portfolio-thumb--has-img .portfolio-thumb-label {
  z-index: 2;
  padding: 0.35rem 0.65rem;
  border-radius: 0.5rem;
  background: rgba(15, 23, 42, 0.55);
  backdrop-filter: blur(6px);
}

.portfolio-search {
  border-color: rgba(255, 255, 255, 0.1);
}

.portfolio-view-btn,
.portfolio-filter,
.portfolio-page-btn {
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: rgba(255, 255, 255, 0.05);
  color: #cbd5e1;
  transition:
    border-color 0.25s ease,
    background 0.25s ease,
    color 0.25s ease;
}

.portfolio-view-btn:hover,
.portfolio-filter:hover,
.portfolio-page-btn:hover:not(:disabled) {
  border-color: rgba(56, 189, 248, 0.35);
  color: #e0f2fe;
}

.portfolio-view-btn.is-active,
.portfolio-filter.is-active,
.portfolio-page-btn.is-current {
  border-color: rgba(56, 189, 248, 0.45);
  background: rgba(56, 189, 248, 0.25);
  color: #ecfeff;
}

.portfolio-page-btn {
  min-width: 2.5rem;
  min-height: 2.5rem;
  border-radius: 9999px;
  padding: 0 0.75rem;
  font-size: 0.75rem;
  font-weight: 600;
}

.portfolio-page-btn.is-disabled,
.portfolio-page-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.portfolio-empty {
  grid-column: 1 / -1;
}

.portfolio-thumb--social {
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.5), rgba(6, 182, 212, 0.42));
}

.portfolio-thumb--seo {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.42), rgba(56, 189, 248, 0.35));
}

.portfolio-thumb--marketing {
  background: linear-gradient(135deg, rgba(249, 115, 22, 0.42), rgba(139, 92, 246, 0.38));
}

.portfolio-thumb--wikipedia {
  background: linear-gradient(135deg, rgba(148, 163, 184, 0.35), rgba(56, 189, 248, 0.32));
}

.portfolio-thumb--blogging {
  background: linear-gradient(135deg, rgba(52, 211, 153, 0.4), rgba(30, 41, 59, 0.85));
}

.portfolio-card-body {
  padding: 1.15rem 1.25rem 1.35rem;
}

@media (min-width: 640px) {
  .portfolio-card-body {
    padding: 1.25rem 1.5rem 1.5rem;
  }
}

.portfolio-cat {
  display: inline-flex;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #7dd3fc;
}

.portfolio-title {
  margin-top: 0.55rem;
  font-family: var(--font-display, "Space Grotesk", system-ui, sans-serif);
  font-size: 1.2rem;
  font-weight: 600;
  line-height: 1.3;
  color: #f8fafc;
}

.portfolio-desc {
  margin-top: 0.55rem;
  font-size: 0.84rem;
  line-height: 1.55;
  color: #94a3b8;
}

.portfolio-note {
  max-width: 36rem;
  margin-inline: auto;
}

.portfolio-modal-backdrop {
  background: rgba(15, 23, 42, 0.78);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

/* Credentials — education, courses, platforms, experience */
.cred-intro-label {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
}

.cred-intro-label::before {
  content: "";
  width: 1.75rem;
  height: 1px;
  background: linear-gradient(90deg, var(--color-accent-sky), transparent);
}

.cred-card {
  border-radius: 1.35rem;
  border: 1px solid rgba(255, 255, 255, 0.09);
  background: rgba(17, 24, 39, 0.72);
  padding: 1.25rem 1.35rem;
  transition:
    border-color 0.3s ease,
    box-shadow 0.3s ease;
}

@media (min-width: 640px) {
  .cred-card {
    padding: 1.5rem 1.65rem;
  }
}

.cred-card:hover {
  border-color: rgba(56, 189, 248, 0.28);
  box-shadow: 0 0 32px rgba(56, 189, 248, 0.08);
}

.cred-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}

.cred-badge {
  display: inline-flex;
  border-radius: 9999px;
  background: rgba(56, 189, 248, 0.14);
  padding: 0.28rem 0.65rem;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #a5f3fc;
}

.cred-badge--violet {
  background: rgba(139, 92, 246, 0.16);
  color: #ddd6fe;
}

.cred-badge--emerald {
  background: rgba(16, 185, 129, 0.14);
  color: #a7f3d0;
}

.cred-title {
  margin-top: 0.65rem;
  font-family: var(--font-display, "Space Grotesk", system-ui, sans-serif);
  font-size: 1.15rem;
  font-weight: 600;
  line-height: 1.35;
  color: #f8fafc;
}

@media (min-width: 640px) {
  .cred-title {
    font-size: 1.25rem;
  }
}

.cred-org {
  margin-top: 0.35rem;
  font-size: 0.88rem;
  color: #94a3b8;
}

.cred-year,
.cred-duration {
  flex-shrink: 0;
  font-family: var(--font-display, "Space Grotesk", system-ui, sans-serif);
  font-size: 0.95rem;
  font-weight: 600;
  color: #7dd3fc;
}

.cred-duration {
  border-radius: 9999px;
  border: 1px solid rgba(56, 189, 248, 0.25);
  background: rgba(56, 189, 248, 0.08);
  padding: 0.35rem 0.75rem;
  font-size: 0.75rem;
  letter-spacing: 0.04em;
}

.cred-meta {
  display: grid;
  gap: 0.75rem 1.25rem;
  margin-top: 1.15rem;
  padding-top: 1.15rem;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
}

@media (min-width: 640px) {
  .cred-meta {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.cred-meta--compact {
  margin-top: 0;
  padding-top: 0;
  border-top: none;
}

.cred-meta dt {
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #64748b;
}

.cred-meta dd {
  margin-top: 0.2rem;
  font-size: 0.86rem;
  line-height: 1.5;
  color: #cbd5e1;
}

.cred-bullets {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.55rem;
}

.cred-bullets li {
  position: relative;
  padding-left: 1rem;
  font-size: 0.86rem;
  line-height: 1.55;
  color: #94a3b8;
}

.cred-bullets li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55rem;
  width: 0.35rem;
  height: 0.35rem;
  border-radius: 9999px;
  background: rgba(56, 189, 248, 0.75);
}

.platform-icon {
  display: inline-grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 0.85rem;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  color: #f8fafc;
}

.platform-icon--fb {
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
}

.platform-icon--ig {
  background: linear-gradient(135deg, #db2777, #7c3aed);
}

.platform-icon--yt {
  background: linear-gradient(135deg, #dc2626, #991b1b);
}

.platform-icon--web {
  background: linear-gradient(135deg, #059669, #0ea5e9);
}

/* Education — academic ladder layout */
.edu-section {
  position: relative;
}

.edu-stat {
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.04) inset;
}

.edu-stat-value {
  background: linear-gradient(135deg, #f8fafc, #c4b5fd);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.edu-ladder {
  position: relative;
  display: grid;
  gap: 0.75rem;
}

@media (min-width: 768px) {
  .edu-ladder {
    gap: 0.85rem;
    padding-left: 4rem;
  }
}

@media (min-width: 1024px) {
  .edu-ladder {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: stretch;
    gap: 0.85rem 1rem;
    padding-left: 0;
  }
}

.edu-ladder-line {
  display: none;
}

@media (min-width: 768px) {
  .edu-ladder-line {
    display: block;
    position: absolute;
    left: 1.45rem;
    top: 1.25rem;
    bottom: 1.25rem;
    width: 2px;
    background: linear-gradient(
      180deg,
      rgba(56, 189, 248, 0.7),
      rgba(139, 92, 246, 0.55) 38%,
      rgba(16, 185, 129, 0.45) 72%,
      rgba(245, 158, 11, 0.35)
    );
  }
}

@media (min-width: 1024px) {
  .edu-ladder-line {
    display: none;
  }
}

.edu-entry {
  position: relative;
  display: grid;
  gap: 0.5rem;
}

@media (min-width: 768px) {
  .edu-entry {
    grid-template-columns: auto 1fr;
    gap: 0.75rem;
    align-items: start;
  }
}

@media (min-width: 1024px) {
  .edu-entry {
    height: 100%;
    align-items: stretch;
  }

  .edu-level {
    align-self: start;
  }
}

.edu-level {
  display: grid;
  place-items: center;
  width: 2.65rem;
  height: 2.65rem;
  border-radius: 0.85rem;
  font-family: var(--font-display, "Space Grotesk", system-ui, sans-serif);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  color: #f8fafc;
  box-shadow: 0 0 20px rgba(56, 189, 248, 0.15);
}

@media (min-width: 768px) {
  .edu-level {
    position: relative;
    z-index: 2;
    margin-top: 0.85rem;
    width: 2.75rem;
    height: 2.75rem;
  }
}

.edu-level--cyan {
  background: linear-gradient(135deg, rgba(56, 189, 248, 0.55), rgba(14, 165, 233, 0.35));
}

.edu-level--violet {
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.52), rgba(99, 102, 241, 0.34));
}

.edu-level--emerald {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.48), rgba(6, 182, 212, 0.32));
}

.edu-level--amber {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.48), rgba(249, 115, 22, 0.34));
}

.edu-level--rose {
  background: linear-gradient(135deg, rgba(244, 63, 94, 0.48), rgba(225, 29, 72, 0.34));
}

.edu-level--sky {
  background: linear-gradient(135deg, rgba(14, 165, 233, 0.48), rgba(56, 189, 248, 0.32));
}

.edu-panel {
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
  border-radius: 1.25rem;
  padding: 1rem 1.1rem;
  transition:
    transform 0.35s var(--ease-out-expo, ease),
    border-color 0.35s ease,
    box-shadow 0.35s ease;
}

@media (min-width: 640px) {
  .edu-panel {
    padding: 1.1rem 1.25rem;
  }
}

.edu-entry--highlight .edu-panel {
  border-color: rgba(139, 92, 246, 0.28);
  box-shadow:
    0 0 0 1px rgba(139, 92, 246, 0.1) inset,
    0 18px 48px rgba(139, 92, 246, 0.08);
}

.edu-panel:hover {
  transform: translateY(-2px);
  border-color: rgba(56, 189, 248, 0.28);
  box-shadow: 0 0 36px rgba(56, 189, 248, 0.09);
}

.edu-panel-top {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  gap: 0.65rem;
}

@media (min-width: 640px) {
  .edu-panel-top {
    flex-direction: row;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.85rem;
  }
}

.edu-panel-main {
  min-width: 0;
  flex: 1;
}

.edu-tier-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

.edu-tier {
  display: inline-flex;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.06);
  padding: 0.25rem 0.62rem;
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #cbd5e1;
}

.edu-year {
  font-family: var(--font-display, "Space Grotesk", system-ui, sans-serif);
  font-size: 0.82rem;
  font-weight: 600;
  color: #7dd3fc;
}

.edu-degree {
  margin-top: 0.45rem;
  min-height: calc(1.32em * 2);
  font-family: var(--font-display, "Space Grotesk", system-ui, sans-serif);
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.32;
  color: #f8fafc;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
}

@media (min-width: 640px) {
  .edu-degree {
    font-size: 1.08rem;
    min-height: calc(1.32em * 2);
  }
}

.edu-institution {
  margin-top: 0.25rem;
  min-height: 1.4em;
  font-size: 0.84rem;
  line-height: 1.4;
  color: #94a3b8;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 1;
  overflow: hidden;
  text-overflow: ellipsis;
}

.edu-result-box {
  flex-shrink: 0;
  align-self: flex-start;
  display: grid;
  justify-items: center;
  align-content: center;
  width: 5.75rem;
  min-width: 5.75rem;
  max-width: 5.75rem;
  height: 4.75rem;
  padding: 0.55rem 0.75rem;
  border-radius: 0.95rem;
  border: 1px solid rgba(56, 189, 248, 0.22);
  background: linear-gradient(160deg, rgba(56, 189, 248, 0.14), rgba(15, 23, 42, 0.5));
  text-align: center;
}

.edu-result-box--cyan {
  border-color: rgba(56, 189, 248, 0.24);
  background: linear-gradient(160deg, rgba(56, 189, 248, 0.14), rgba(15, 23, 42, 0.5));
}

.edu-result-box--violet {
  border-color: rgba(139, 92, 246, 0.24);
  background: linear-gradient(160deg, rgba(139, 92, 246, 0.14), rgba(15, 23, 42, 0.5));
}

.edu-result-box--emerald {
  border-color: rgba(16, 185, 129, 0.24);
  background: linear-gradient(160deg, rgba(16, 185, 129, 0.14), rgba(15, 23, 42, 0.5));
}

.edu-result-box--amber {
  border-color: rgba(245, 158, 11, 0.24);
  background: linear-gradient(160deg, rgba(245, 158, 11, 0.14), rgba(15, 23, 42, 0.5));
}

.edu-result-box--rose {
  border-color: rgba(244, 63, 94, 0.24);
  background: linear-gradient(160deg, rgba(244, 63, 94, 0.14), rgba(15, 23, 42, 0.5));
}

.edu-result-box--sky {
  border-color: rgba(14, 165, 233, 0.24);
  background: linear-gradient(160deg, rgba(14, 165, 233, 0.14), rgba(15, 23, 42, 0.5));
}

.edu-result-label {
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #64748b;
}

.edu-result-value {
  margin-top: 0.15rem;
  font-family: var(--font-display, "Space Grotesk", system-ui, sans-serif);
  font-size: 1.35rem;
  font-weight: 700;
  line-height: 1;
  color: #f8fafc;
}

.edu-result-note {
  margin-top: 0.15rem;
  min-height: 1.25em;
  font-size: 0.62rem;
  font-weight: 600;
  line-height: 1.25;
  color: #94a3b8;
}

.edu-result-note--hold {
  visibility: hidden;
}

.edu-chips {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.35rem;
  margin-top: auto;
  padding-top: 0.7rem;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  min-height: 2.55rem;
}

.edu-chips .exp-chip {
  justify-content: center;
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  padding-inline: 0.45rem;
  font-size: 0.62rem;
}

/* Experience — timeline layout */
.exp-section {
  position: relative;
}

.exp-stat {
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.04) inset;
}

.exp-stat-value {
  background: linear-gradient(135deg, #f8fafc, #7dd3fc);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.exp-timeline {
  position: relative;
  display: grid;
  gap: 0.75rem;
}

@media (min-width: 768px) and (max-width: 1023px) {
  .exp-timeline {
    gap: 0.85rem;
    padding-left: 7rem;
  }
}

@media (min-width: 1024px) {
  .exp-timeline {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.85rem 1rem;
    padding-left: 0;
  }
}

.exp-timeline-line {
  display: none;
}

@media (min-width: 768px) and (max-width: 1023px) {
  .exp-timeline-line {
    display: block;
    position: absolute;
    left: 1.15rem;
    top: 0.5rem;
    bottom: 0.5rem;
    width: 2px;
    background: linear-gradient(
      180deg,
      rgba(56, 189, 248, 0.75),
      rgba(139, 92, 246, 0.55) 45%,
      rgba(255, 255, 255, 0.08)
    );
  }
}

.exp-entry {
  position: relative;
  display: grid;
  gap: 0.4rem;
}

@media (min-width: 768px) and (max-width: 1023px) {
  .exp-entry {
    gap: 0;
  }
}

@media (min-width: 1024px) {
  .exp-entry {
    gap: 0.35rem;
  }
}

.exp-entry::before {
  content: "";
  position: absolute;
  left: -6.35rem;
  top: 1.65rem;
  z-index: 2;
  width: 0.85rem;
  height: 0.85rem;
  border-radius: 9999px;
  border: 2px solid rgba(56, 189, 248, 0.65);
  background: #0f172a;
  box-shadow: 0 0 16px rgba(56, 189, 248, 0.45);
  display: none;
}

@media (min-width: 768px) and (max-width: 1023px) {
  .exp-entry::before {
    display: block;
  }
}

.exp-entry--current::before {
  width: 1rem;
  height: 1rem;
  left: -6.5rem;
  top: 1.55rem;
  border-color: #38bdf8;
  background: radial-gradient(circle at 35% 35%, #e0f2fe, #38bdf8 55%, #0f172a 56%);
  box-shadow: 0 0 22px rgba(56, 189, 248, 0.65);
}

.exp-date {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 0.5rem;
  font-family: var(--font-display, "Space Grotesk", system-ui, sans-serif);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: #94a3b8;
}

@media (min-width: 768px) and (max-width: 1023px) {
  .exp-date {
    position: absolute;
    left: -7.5rem;
    top: 1.35rem;
    width: 6.5rem;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.2rem;
    text-align: right;
    line-height: 1.35;
  }
}

@media (min-width: 1024px) {
  .exp-date {
    position: static;
    left: auto;
    top: auto;
    width: auto;
    flex-direction: row;
    align-items: center;
    text-align: left;
    gap: 0.35rem;
    line-height: 1.35;
  }
}

.exp-date time,
.exp-date-present {
  color: #e2e8f0;
}

.exp-date-sep {
  color: #64748b;
}

@media (min-width: 768px) and (max-width: 1023px) {
  .exp-date-sep {
    display: none;
  }
}

.exp-tenure {
  display: inline-flex;
  border-radius: 9999px;
  border: 1px solid rgba(56, 189, 248, 0.22);
  background: rgba(56, 189, 248, 0.08);
  padding: 0.2rem 0.55rem;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #7dd3fc;
}

.exp-panel {
  overflow: hidden;
  border-radius: 1.25rem;
  padding: 1rem 1.1rem;
  transition:
    transform 0.35s var(--ease-out-expo, ease),
    border-color 0.35s ease,
    box-shadow 0.35s ease;
}

@media (min-width: 640px) {
  .exp-panel {
    padding: 1.1rem 1.25rem;
  }
}

.exp-entry--current .exp-panel {
  border-color: rgba(56, 189, 248, 0.28);
  box-shadow:
    0 0 0 1px rgba(56, 189, 248, 0.12) inset,
    0 20px 50px rgba(56, 189, 248, 0.08);
}

.exp-panel:hover {
  transform: translateY(-2px);
  border-color: rgba(56, 189, 248, 0.32);
  box-shadow: 0 0 40px rgba(56, 189, 248, 0.1);
}

.exp-panel-top {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
}

.exp-org-mark {
  flex-shrink: 0;
  display: grid;
  place-items: center;
  width: 2.65rem;
  height: 2.65rem;
  border-radius: 0.85rem;
  font-family: var(--font-display, "Space Grotesk", system-ui, sans-serif);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  color: #f8fafc;
}

.exp-org-mark--cyan {
  background: linear-gradient(135deg, rgba(56, 189, 248, 0.55), rgba(14, 165, 233, 0.35));
  box-shadow: 0 0 24px rgba(56, 189, 248, 0.2);
}

.exp-org-mark--violet {
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.5), rgba(99, 102, 241, 0.35));
}

.exp-org-mark--emerald {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.48), rgba(6, 182, 212, 0.32));
}

.exp-org-mark--amber {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.45), rgba(249, 115, 22, 0.32));
}

.exp-panel-head {
  min-width: 0;
  flex: 1;
}

.exp-panel-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.exp-role-badge {
  display: inline-flex;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.06);
  padding: 0.25rem 0.6rem;
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #cbd5e1;
}

.exp-role-badge--current {
  background: rgba(56, 189, 248, 0.18);
  color: #a5f3fc;
}

.exp-role {
  margin-top: 0.45rem;
  font-family: var(--font-display, "Space Grotesk", system-ui, sans-serif);
  font-size: 1.02rem;
  font-weight: 600;
  line-height: 1.32;
  color: #f8fafc;
}

@media (min-width: 640px) {
  .exp-role {
    font-size: 1.1rem;
  }
}

.exp-company {
  margin-top: 0.25rem;
  font-size: 0.84rem;
  color: #94a3b8;
}

.exp-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-top: 0.7rem;
  padding-top: 0.7rem;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
}

.exp-chip {
  display: inline-flex;
  border-radius: 9999px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.04);
  padding: 0.28rem 0.62rem;
  font-size: 0.68rem;
  font-weight: 600;
  color: #94a3b8;
}

.exp-duties {
  list-style: none;
  padding: 0;
  margin: 0.65rem 0 0;
  display: grid;
  gap: 0.35rem;
}

.exp-duties li {
  position: relative;
  padding-left: 1rem;
  font-size: 0.8rem;
  line-height: 1.45;
  color: #94a3b8;
}

.exp-duties li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.58rem;
  width: 0.4rem;
  height: 0.4rem;
  border-radius: 9999px;
  background: linear-gradient(135deg, #38bdf8, #8b5cf6);
}

/* Custom scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: var(--color-bg-mid);
}
::-webkit-scrollbar-thumb {
  background: linear-gradient(
    180deg,
    var(--color-accent-cyan),
    var(--color-accent-violet)
  );
  border-radius: 9999px;
}

/* Reduced particles on small screens helper */
@media (max-width: 640px) {
  .cursor-glow {
    display: none;
  }
}

/* ---------- Journey — site-harmonized chapter stage ---------- */
.journey-stat-value {
  background: linear-gradient(135deg, #f8fafc, #7dd3fc);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.journey-stat {
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.04) inset;
}

.journey-progress-track {
  height: 3px;
  margin-bottom: 1.1rem;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.06);
  overflow: hidden;
}

.journey-progress-fill {
  width: 25%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #38bdf8, #8b5cf6);
  box-shadow: 0 0 16px rgba(56, 189, 248, 0.45);
  transition: width 0.35s var(--ease-out-expo);
}

.journey-layout {
  display: grid;
  gap: 1rem;
}

@media (min-width: 900px) {
  .journey-layout {
    grid-template-columns: minmax(0, 15.5rem) minmax(0, 1fr);
    gap: 1.35rem;
    align-items: stretch;
  }
}

.journey-rail-nav {
  display: flex;
  gap: 0.55rem;
  overflow-x: auto;
  padding-bottom: 0.15rem;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.journey-rail-nav::-webkit-scrollbar {
  display: none;
}

@media (min-width: 900px) {
  .journey-rail-nav {
    flex-direction: column;
    overflow: visible;
    padding-bottom: 0;
    gap: 0.5rem;
  }
}

.journey-rail-item {
  position: relative;
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 0.65rem;
  min-width: 11.5rem;
  padding: 0.7rem 0.8rem;
  border-radius: 1.1rem;
  text-align: left;
  color: #94a3b8;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition:
    color 0.22s ease,
    background 0.22s ease,
    border-color 0.22s ease,
    box-shadow 0.22s ease,
    transform 0.22s var(--ease-out-expo);
}

@media (min-width: 900px) {
  .journey-rail-item {
    min-width: 0;
    width: 100%;
  }
}

.journey-rail-item:hover {
  color: #e2e8f0;
  border-color: rgba(56, 189, 248, 0.28);
  background: rgba(56, 189, 248, 0.05);
}

.journey-rail-item.is-active {
  color: #f8fafc;
  border-color: rgba(56, 189, 248, 0.42);
  background: linear-gradient(135deg, rgba(56, 189, 248, 0.12), rgba(139, 92, 246, 0.08));
  box-shadow:
    0 0 0 1px rgba(56, 189, 248, 0.1) inset,
    0 12px 32px rgba(0, 0, 0, 0.22);
  transform: translateX(2px);
}

@media (min-width: 900px) {
  .journey-rail-item.is-active {
    transform: translateX(4px);
  }
}

.journey-rail-marker {
  position: absolute;
  left: 0;
  top: 0.85rem;
  bottom: 0.85rem;
  width: 3px;
  border-radius: 0 9999px 9999px 0;
  background: transparent;
  transition: background 0.22s ease;
}

.journey-rail-item.is-active .journey-rail-marker {
  background: linear-gradient(180deg, #38bdf8, #8b5cf6);
  box-shadow: 0 0 12px rgba(56, 189, 248, 0.45);
}

.journey-rail-icon {
  flex-shrink: 0;
  display: grid;
  place-items: center;
  width: 2.35rem;
  height: 2.35rem;
  border-radius: 0.8rem;
  color: #e2e8f0;
}

.journey-rail-icon--cyan {
  background: linear-gradient(135deg, rgba(56, 189, 248, 0.42), rgba(14, 165, 233, 0.22));
  box-shadow: 0 0 18px rgba(56, 189, 248, 0.15);
}

.journey-rail-icon--violet {
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.42), rgba(99, 102, 241, 0.22));
}

.journey-rail-icon--emerald {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.4), rgba(6, 182, 212, 0.22));
}

.journey-rail-icon--current {
  background: linear-gradient(135deg, rgba(56, 189, 248, 0.55), rgba(167, 139, 250, 0.45));
  box-shadow: 0 0 20px rgba(56, 189, 248, 0.25);
}

.journey-rail-text {
  display: flex;
  flex-direction: column;
  gap: 0.08rem;
  min-width: 0;
}

.journey-rail-step {
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #64748b;
}

.journey-rail-item.is-active .journey-rail-step {
  color: #67e8f9;
}

.journey-rail-label {
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1.2;
}

.journey-rail-years {
  font-size: 0.68rem;
  font-weight: 600;
  color: #64748b;
}

.journey-detail {
  display: flex;
  flex-direction: column;
  min-height: 100%;
}

.journey-panels {
  position: relative;
  flex: 1;
  min-height: 13.5rem;
}

@media (min-width: 640px) {
  .journey-panels {
    min-height: 12.5rem;
  }
}

.journey-panel {
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition:
    opacity 0.28s ease,
    transform 0.28s var(--ease-out-expo),
    visibility 0.28s ease;
}

.journey-panel.is-active {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.journey-panel[hidden] {
  display: none;
}

.journey-panel:not([hidden]).is-active {
  display: block;
}

.journey-panel-card {
  padding: 1.1rem 1.15rem 1.15rem;
  border-radius: 1.35rem;
}

.journey-panel-card--current {
  border-color: rgba(56, 189, 248, 0.32);
  background:
    linear-gradient(145deg, rgba(56, 189, 248, 0.07), rgba(139, 92, 246, 0.05)),
    var(--glass-bg);
  box-shadow: 0 0 32px rgba(56, 189, 248, 0.1);
}

.journey-desc {
  margin-top: 0.85rem;
  font-size: 0.9rem;
  line-height: 1.6;
  color: #94a3b8;
}

.journey-panel-card .exp-chips {
  margin-top: 0.85rem;
}

.journey-stage-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-top: 1rem;
  padding-top: 0.85rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.journey-nav-label {
  min-width: 3.5rem;
  text-align: center;
  font-family: var(--font-display, "Space Grotesk", system-ui, sans-serif);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: #64748b;
}

.journey-nav-label span {
  color: #67e8f9;
}

.journey-nav-btn {
  display: grid;
  place-items: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 9999px;
  color: #cbd5e1;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition:
    color 0.2s ease,
    background 0.2s ease,
    border-color 0.2s ease,
    box-shadow 0.2s ease;
}

.journey-nav-btn:hover {
  color: #ecfeff;
  background: rgba(56, 189, 248, 0.14);
  border-color: rgba(56, 189, 248, 0.35);
  box-shadow: 0 0 18px rgba(56, 189, 248, 0.18);
}

.journey-cta-link {
  text-decoration: underline;
  text-underline-offset: 0.2em;
  text-decoration-color: rgba(148, 163, 184, 0.45);
}

@media (prefers-reduced-motion: reduce) {
  .journey-panel,
  .journey-rail-item,
  .journey-progress-fill,
  .journey-nav-btn {
    transition: none;
  }
}

/* ---------- Research & communication ---------- */
.research-stat-value {
  background: linear-gradient(135deg, #f8fafc, #a5b4fc);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.research-stat {
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.04) inset;
}

.research-grid {
  display: grid;
  gap: 1rem;
}

.research-pillars-row {
  display: block;
}

@media (min-width: 768px) {
  .research-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.1rem;
  }

  /* Let pillar cards participate in the parent grid on tablet+ */
  .research-pillars-row {
    display: contents;
  }
}

.research-pillar {
  display: flex;
  flex-direction: column;
  min-height: 100%;
  height: 100%;
}

.research-pillar-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.research-pillar-icon {
  display: grid;
  place-items: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 0.85rem;
  color: #f8fafc;
}

.research-pillar-icon--cyan {
  background: linear-gradient(135deg, rgba(56, 189, 248, 0.45), rgba(14, 165, 233, 0.22));
  box-shadow: 0 0 18px rgba(56, 189, 248, 0.15);
}

.research-pillar-icon--violet {
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.45), rgba(99, 102, 241, 0.22));
}

.research-pillar-icon--emerald {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.42), rgba(6, 182, 212, 0.22));
}

.research-pillar-desc {
  margin-top: 0.55rem;
  font-size: 0.86rem;
  line-height: 1.55;
  color: #94a3b8;
}

.research-points {
  margin-top: auto;
  padding-top: 0.9rem;
  display: grid;
  gap: 0.45rem;
}

.research-points li {
  position: relative;
  padding-left: 0.85rem;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: #cbd5e1;
}

.research-points li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 0.28rem;
  height: 0.28rem;
  border-radius: 9999px;
  background: linear-gradient(135deg, #38bdf8, #8b5cf6);
}

.research-pillar--cyan:hover {
  border-color: rgba(56, 189, 248, 0.35);
  box-shadow: 0 0 36px rgba(56, 189, 248, 0.1);
}

.research-pillar--violet:hover {
  border-color: rgba(139, 92, 246, 0.35);
  box-shadow: 0 0 36px rgba(139, 92, 246, 0.1);
}

.research-pillar--emerald:hover {
  border-color: rgba(16, 185, 129, 0.35);
  box-shadow: 0 0 36px rgba(16, 185, 129, 0.1);
}

.research-feature-wrap {
  grid-column: 1 / -1;
  margin-top: 0.35rem;
}

.research-feature-grid {
  display: grid;
  gap: 1.5rem;
}

@media (min-width: 900px) {
  .research-feature-grid {
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
    gap: 2rem;
    align-items: start;
  }
}

.research-feature-title {
  margin-top: 0.85rem;
  line-height: 1.25;
}

.research-feature-metrics {
  padding-top: 0.25rem;
}

.research-metric {
  padding: 0.65rem 0.7rem;
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.07);
  text-align: center;
}

.research-focus-panel {
  padding: 1rem 1.05rem;
  border-radius: 1.25rem;
  background:
    linear-gradient(145deg, rgba(56, 189, 248, 0.08), rgba(139, 92, 246, 0.06)),
    rgba(15, 23, 42, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.09);
}

.research-focus-item {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  font-size: 0.86rem;
  line-height: 1.45;
  color: #cbd5e1;
}

.research-focus-dot {
  flex-shrink: 0;
  width: 0.45rem;
  height: 0.45rem;
  margin-top: 0.42rem;
  border-radius: 9999px;
  background: linear-gradient(135deg, #38bdf8, #8b5cf6);
  box-shadow: 0 0 10px rgba(56, 189, 248, 0.4);
}

/* ---------- Impact / achievements ---------- */
.impact-badge {
  display: inline-flex;
  align-items: center;
  min-height: 2rem;
  padding: 0.35rem 0.75rem;
  border-radius: 9999px;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: #a5f3fc;
  background: rgba(56, 189, 248, 0.1);
  border: 1px solid rgba(56, 189, 248, 0.22);
}

.impact-badge--violet {
  color: #ddd6fe;
  background: rgba(139, 92, 246, 0.12);
  border-color: rgba(139, 92, 246, 0.25);
}

.impact-badge--emerald {
  color: #a7f3d0;
  background: rgba(16, 185, 129, 0.1);
  border-color: rgba(16, 185, 129, 0.22);
}

.impact-kpi-grid {
  display: grid;
  gap: 0.9rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

@media (min-width: 1024px) {
  .impact-kpi-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1rem;
  }
}

.impact-kpi {
  display: flex;
  flex-direction: column;
  padding: 1rem 1.05rem 1.1rem;
  border-radius: 1.35rem;
  min-height: 100%;
}

.impact-kpi-label {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #64748b;
}

.impact-kpi-icon {
  display: grid;
  place-items: center;
  width: 2rem;
  height: 2rem;
  border-radius: 0.7rem;
  color: #f8fafc;
}

.impact-kpi-icon--cyan {
  background: linear-gradient(135deg, rgba(56, 189, 248, 0.45), rgba(14, 165, 233, 0.22));
}

.impact-kpi-icon--violet {
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.45), rgba(99, 102, 241, 0.22));
}

.impact-kpi-icon--emerald {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.42), rgba(6, 182, 212, 0.22));
}

.impact-kpi-icon--amber {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.42), rgba(249, 115, 22, 0.24));
}

.impact-kpi-value {
  margin-top: 0.75rem;
  font-size: clamp(1.85rem, 4vw, 2.35rem);
  font-weight: 700;
  line-height: 1;
  background: linear-gradient(135deg, #f8fafc, #7dd3fc);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.impact-kpi--violet .impact-kpi-value {
  background: linear-gradient(135deg, #f8fafc, #c4b5fd);
  -webkit-background-clip: text;
  background-clip: text;
}

.impact-kpi--emerald .impact-kpi-value {
  background: linear-gradient(135deg, #f8fafc, #6ee7b7);
  -webkit-background-clip: text;
  background-clip: text;
}

.impact-kpi--amber .impact-kpi-value {
  background: linear-gradient(135deg, #f8fafc, #fcd34d);
  -webkit-background-clip: text;
  background-clip: text;
}

.impact-kpi-note {
  margin-top: 0.45rem;
  font-size: 0.76rem;
  line-height: 1.45;
  color: #64748b;
}

.impact-kpi--cyan:hover {
  border-color: rgba(56, 189, 248, 0.28);
  box-shadow: 0 0 32px rgba(56, 189, 248, 0.08);
}

.impact-kpi--violet:hover {
  border-color: rgba(139, 92, 246, 0.28);
  box-shadow: 0 0 32px rgba(139, 92, 246, 0.08);
}

.impact-kpi--emerald:hover {
  border-color: rgba(16, 185, 129, 0.28);
  box-shadow: 0 0 32px rgba(16, 185, 129, 0.08);
}

.impact-kpi--amber:hover {
  border-color: rgba(245, 158, 11, 0.28);
  box-shadow: 0 0 32px rgba(245, 158, 11, 0.08);
}

.impact-event-list {
  list-style: none;
}

.impact-event-item {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 0.75rem;
  align-items: center;
  padding: 0.75rem 0.8rem;
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.06);
  transition:
    border-color 0.2s ease,
    background 0.2s ease;
}

.impact-event-item:hover {
  border-color: rgba(56, 189, 248, 0.22);
  background: rgba(56, 189, 248, 0.04);
}

.impact-event-mark {
  display: grid;
  place-items: center;
  width: 2rem;
  height: 2rem;
  border-radius: 0.65rem;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  color: #e2e8f0;
}

.impact-event-mark--cyan {
  background: rgba(56, 189, 248, 0.14);
  color: #a5f3fc;
}

.impact-event-mark--violet {
  background: rgba(139, 92, 246, 0.14);
  color: #ddd6fe;
}

.impact-event-mark--emerald {
  background: rgba(16, 185, 129, 0.14);
  color: #a7f3d0;
}

.impact-event-mark--amber {
  background: rgba(245, 158, 11, 0.14);
  color: #fde68a;
}

.impact-event-name {
  font-size: 0.9rem;
  font-weight: 600;
  color: #f1f5f9;
  line-height: 1.3;
}

.impact-event-role {
  margin-top: 0.15rem;
  font-size: 0.76rem;
  color: #64748b;
}

.impact-substat {
  padding: 0.65rem 0.75rem;
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.impact-outcome {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  font-size: 0.84rem;
  line-height: 1.45;
  color: #cbd5e1;
}

.impact-outcome-dot {
  flex-shrink: 0;
  width: 0.42rem;
  height: 0.42rem;
  margin-top: 0.42rem;
  border-radius: 9999px;
  background: linear-gradient(135deg, #38bdf8, #8b5cf6);
  box-shadow: 0 0 10px rgba(56, 189, 248, 0.35);
}

/* ---------- Site footer ---------- */
.site-footer {
  position: relative;
  overflow: hidden;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  background:
    linear-gradient(180deg, rgba(15, 23, 42, 0.35) 0%, rgba(2, 6, 23, 0.98) 100%),
    #020617;
  padding-top: clamp(2.5rem, 5vw, 3.25rem);
  padding-bottom: max(1.25rem, env(safe-area-inset-bottom));
}

.site-footer-glow {
  pointer-events: none;
  position: absolute;
  inset: 0 0 auto;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(56, 189, 248, 0.55),
    rgba(139, 92, 246, 0.45),
    transparent
  );
  box-shadow: 0 0 42px rgba(56, 189, 248, 0.18);
}

.site-footer-grid {
  display: grid;
  gap: 2rem;
}

@media (min-width: 640px) {
  .site-footer-grid {
    grid-template-columns: minmax(0, 1.35fr) minmax(0, 0.95fr) minmax(0, 1fr);
    gap: 2rem 2.5rem;
    align-items: start;
  }
}

@media (min-width: 1024px) {
  .site-footer-grid {
    gap: 2.5rem 3.5rem;
  }
}

.site-footer-brand {
  padding: 1.1rem 1.15rem 1.2rem;
  border-radius: 1.35rem;
  border: 1px solid rgba(255, 255, 255, 0.07);
  background: rgba(15, 23, 42, 0.42);
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.22);
}

.site-footer-contact-link {
  color: #94a3b8;
  transition: color 0.2s ease;
}

.site-footer-contact-link:hover {
  color: #67e8f9;
}

.site-footer-social-btn {
  display: grid;
  place-items: center;
  min-height: 2.5rem;
  min-width: 2.5rem;
  border-radius: 9999px;
  color: #cbd5e1;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.09);
  transition:
    color 0.2s ease,
    background 0.2s ease,
    border-color 0.2s ease,
    box-shadow 0.2s ease;
}

.site-footer-social-btn:hover {
  color: #ecfeff;
  background: rgba(56, 189, 248, 0.18);
  border-color: rgba(56, 189, 248, 0.35);
  box-shadow: 0 0 22px rgba(56, 189, 248, 0.22);
}

.site-footer-link {
  display: inline-flex;
  align-items: center;
  min-height: 1.75rem;
  color: inherit;
  transition: color 0.2s ease;
}

.site-footer-link:hover {
  color: #22d3ee;
}

.site-footer-practice-item {
  position: relative;
  padding-left: 0.85rem;
}

.site-footer-practice-item::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 0.3rem;
  height: 0.3rem;
  border-radius: 9999px;
  background: linear-gradient(135deg, #38bdf8, #8b5cf6);
  opacity: 0.85;
}

.site-footer-bar {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  margin-top: clamp(1.75rem, 4vw, 2.25rem);
  padding-top: 1.1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

@media (min-width: 640px) {
  .site-footer-bar {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
  }
}

.site-footer-resume {
  white-space: nowrap;
}

/* Floating back-to-top */
.scroll-top-fab {
  position: fixed;
  right: max(1rem, env(safe-area-inset-right));
  bottom: max(1rem, env(safe-area-inset-bottom));
  z-index: 55;
  display: grid;
  place-items: center;
  width: 2.85rem;
  height: 2.85rem;
  border-radius: 9999px;
  color: #f8fafc;
  background: rgba(15, 23, 42, 0.88);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow:
    0 10px 30px rgba(0, 0, 0, 0.35),
    0 0 0 1px rgba(255, 255, 255, 0.04) inset;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  transition:
    opacity 0.25s ease,
    transform 0.25s var(--ease-out-expo),
    background 0.2s ease,
    border-color 0.2s ease,
    box-shadow 0.2s ease;
}

.scroll-top-fab:hover {
  background: rgba(56, 189, 248, 0.2);
  border-color: rgba(56, 189, 248, 0.4);
  box-shadow: 0 0 28px rgba(56, 189, 248, 0.28);
  transform: translateY(-2px);
}

.scroll-top-fab:focus-visible {
  outline: 2px solid #38bdf8;
  outline-offset: 3px;
}
