:root {

  --uicard-expanded-window-h: calc(292px - 12px - 12px);


  --color-primary: #0066ff;
  --color-secondary: #9a00ff;
  --color-accent: #00d459;
  --site-bg: #0f1115;

  --bg: #070a0f;
  --text: #eaf0ff;

  --nav-h: 74px;
  --pin-top: calc(var(--nav-h) + 26px);

  --shadow: 0 18px 60px rgba(0, 0, 0, 0.55);
  --radius: 18px;

  --gear-gutter: 110px;
  --seam-h: 44px;

  --stage-scale: 1;
  --stage-origin-y: 100%;

  --projects-header-o: 1;

  --frame-o: 1;
  --frame-fill: 0.22;
  --frame-border: 0.14;
  --frame-radius: 18px;

  --projects-card-o: 0.82;

  --belt-ty: 0px;
  --gear-a: 0deg;
  --gear-b: 0deg;

  --bg-projects-o: 0;

  --edu-x: 0px;
  --edu-chain-x: 0px;

  --content-w: min(1180px, calc(100vw - 48px));
  --content-pad: calc((100vw - var(--content-w)) / 2);
  --chain-center: 55%;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--text);
  background: var(--site-bg);
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial,
    "Apple Color Emoji", "Segoe UI Emoji";
  overflow-x: hidden;
  position: relative;

}

a { color: inherit; text-decoration: none; }

.container {
  width: min(1180px, calc(100% - 48px));
  margin: 0 auto;
  z-index: 2;
}

/* Sections */
.section {
  position: relative;
  min-height: 100vh;
  background: transparent;
}
.hero {
  background: transparent;
}

.bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  background: transparent;
  pointer-events: none;
}

.hero .bg {
  position: fixed;
  top: var(--nav-h);
  left: 0;
  right: 0;
  height: calc(100vh - var(--nav-h));
  z-index: 0;
  overflow: hidden;
}

.bg-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: translate3d(0, 0, 0);
  will-change: transform, opacity;
  filter: saturate(1.12) contrast(1.08);
}

.bg-vignette {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(
    1200px 650px at 55% 35%,
    rgba(0, 0, 0, 0.05),
    rgba(0, 0, 0, 0.52)
  );
}

.bg-gradient {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(
    90deg,
    rgba(5, 7, 10, 0.82) 0%,
    rgba(5, 7, 10, 0.72) 35%,
    rgba(5, 7, 10, 0.48) 60%,
    rgba(5, 7, 10, 0.10) 100%
  );
}

.bg-gradient-soft {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(
    90deg,
    rgba(5, 7, 10, 0.70) 0%,
    rgba(5, 7, 10, 0.56) 45%,
    rgba(5, 7, 10, 0.38) 75%,
    rgba(5, 7, 10, 0.18) 100%
  );
}


.bg-seam {
  position: absolute;
  left: 0;
  right: 0;
  height: var(--seam-h);
  pointer-events: none;
  z-index: 3;
}

.bg-seam-top {
  top: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 1), rgba(0, 0, 0, 0));
}

.bg-seam-bottom {
  bottom: 0;
  background: linear-gradient(0deg, rgba(0, 0, 0, 1), rgba(0, 0, 0, 0));
}

/* NAV */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--nav-h);
  z-index: 80;
  background: rgba(8, 10, 14, 0.68);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.nav-inner {
  height: 100%;
  width: min(1180px, calc(100% - 48px));
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 16px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  letter-spacing: 0.08em;
  font-weight: 800;
  font-size: 14px;
}

.brand-mark {
  width: 12px;
  height: 12px;
  border-radius: 3px;
  background: var(--color-primary);
  box-shadow: 0 0 0 4px rgba(0, 102, 255, 0.16);
}
.brand-logo {
  height: 50px;          /* adjust this */
  width: auto;           /* keep aspect ratio */
  display: block;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 22px;
  margin-left: 10px;
}

.nav-link {
  font-size: 12px;
  letter-spacing: 0.12em;
  color: rgba(234, 240, 255, 0.8);
  padding: 10px 8px;
  transition: color 0.2s ease, transform 0.2s ease;
}

.nav-link:hover {
  color: rgba(234, 240, 255, 1);
  transform: translateY(-1px);
}

.socialbar {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  padding: 0;
  margin-left: auto;
}

.socialbar .icon-content { position: relative; }

.socialbar .icon-content .tooltip {
  position: absolute;
  top: -34px;
  left: 50%;
  transform: translateX(-50%);
  color: #fff;
  padding: 6px 10px;
  border-radius: 8px;
  opacity: 0;
  visibility: hidden;
  font-size: 12px;
  letter-spacing: 0.04em;
  white-space: nowrap;
  background: rgba(0, 0, 0, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.12);
  transition: all 0.25s ease;
  backdrop-filter: blur(10px);
  z-index: 90;
}

.socialbar .icon-content:hover .tooltip {
  opacity: 1;
  visibility: visible;
  top: -48px;
}

.socialbar .icon-content a {
  position: relative;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  color: rgba(234, 240, 255, 0.85);
  background-color: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  transition: transform 0.2s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.socialbar .icon-content a:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 44px rgba(0, 0, 0, 0.35);
  border-color: rgba(255, 255, 255, 0.2);
  color: #fff;
}

.socialbar .icon-content a svg {
  position: relative;
  z-index: 1;
  width: 22px;
  height: 22px;
}

.socialbar .icon-content a .filled {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 0;
  transition: height 0.28s ease-in-out;
}

.socialbar .icon-content a:hover .filled { height: 100%; }

.socialbar .icon-content a[data-social="phone"] .filled { background: var(--color-accent); }
.socialbar .icon-content a[data-social="email"] .filled { background: var(--color-primary); }
.socialbar .icon-content a[data-social="instagram"] .filled {
  background: linear-gradient(45deg, #405de6, #5b51db, #b33ab4, #e1306c, #fd1f1f);}
.socialbar .icon-content a[data-social="linkedin"] .filled { background: #0274b3; }
.socialbar .icon-content a[data-social="github"] .filled { background: #24262a; }  




.edu-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  background: var(--site-bg);
}

/* Gear rig */
.gear-rig {
  z-index: 1;
  position: fixed;
  top: 0;
  right: 0;
  width: var(--gear-gutter);
  height: 100vh;
  pointer-events: none;
  opacity: 0.52;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.7));

  /* Mirror around its own center so the belt sits at the right edge */
  transform: scaleX(-1);
  transform-origin: center;
}

.gear-belt {
  z-index: 1;
  --belt-color: rgba(255, 255, 255, 0.88);
  --belt-size: calc(var(--gear-gutter) / 6);
  width: var(--belt-size);
  position: absolute;
  top: 0;
  left: 0;
  right: auto;
  background:
    linear-gradient(var(--belt-color), var(--belt-color)) 0 0 / calc(var(--belt-size) / 2) var(--belt-size) no-repeat repeat,
    linear-gradient(-10deg, transparent 80%, var(--belt-color) 81%) 0 0 / calc(var(--belt-size) * 0.8) var(--belt-size) no-repeat repeat,
    linear-gradient(10deg, var(--belt-color) 20%, transparent 21%) 0 0 / calc(var(--belt-size) * 0.8) var(--belt-size) no-repeat repeat;
  filter: drop-shadow(0 0 6px rgba(0, 0, 0, 0.55));
  clip-path: inset(0 -200% 0 0);
  height: calc(100vh + (var(--belt-size) * 20));
  transform: translate3d(0, var(--belt-ty), 0);
  will-change: transform;
}

.gear-gears {
  color: rgba(234, 240, 255, 0.64);
  position: absolute;
  z-index: 1;

  top: 0;
  right: 0;
  width: var(--gear-gutter);
  height: 240px;
}

.gear-big {
  width: 96%;
  position: absolute;
  left: 100%;
  transform: translate3d(-80%, -22%, 0) rotate(var(--gear-a));
  transform-origin: 50% 50%;
}

.gear-small {
  width: 66%;
  position: absolute;
  top: 0;
  left: 0;
  transform: translate3d(16%, 102%, 0) rotate(var(--gear-b));
  transform-origin: 50% 50%;
}

/* Typography */
.section-title {
  position: relative; 
  z-index: 2;
  margin: 0;
  font-size: clamp(26px, 3vw, 38px);
  letter-spacing: 0.02em;
  font-weight: 900;
}

.section-lede {
  margin: 0;
  color: rgba(234, 240, 255, 0.75);
  line-height: 1.6;
  max-width: 80ch;
}

/* HERO */
.hero { padding-top: var(--nav-h); display: grid; align-items: center; }

.hero-grid {
  min-height: calc(100vh - var(--nav-h));
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  align-items: center;
  gap: 34px;
  padding: 40px 0 70px;
  position: relative;
  z-index: 2;
}

.kicker {
  margin: 0 0 14px;
  color: var(--color-accent);
  letter-spacing: 0.18em;
  font-size: 12px;
  font-weight: 800;
}

.hero-title {
  margin: 0;
  line-height: 0.9;
  letter-spacing: 0.02em;
  font-weight: 900;
  font-size: clamp(50px, 5.5vw, 82px);
  text-transform: uppercase;
}

.hero-subtitle {
  margin: 18px 0 22px;
  max-width: 56ch;
  color: rgba(234, 240, 255, 0.78);
  font-size: 15px;
  line-height: 1.55;
}

.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }

.portrait-frame {
  width: min(360px, 100%);
  height: min(520px, 75vh);
  margin-left: auto;
  border-radius: 22px;
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.06);
}

.portrait-frame img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center;
}

.scroll-hint {
  position: absolute;
  left: 50%;
  bottom: 22px;
  transform: translateX(-50%);
  width: 26px;
  height: 46px;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  display: grid;
  place-items: center;
  opacity: 0.7;
  z-index: 2;
}

.scroll-dot {
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.85);
  animation: dot 1.35s ease-in-out infinite;
}

@keyframes dot {
  0% { transform: translateY(-7px); opacity: 0.2; }
  55% { transform: translateY(7px); opacity: 1; }
  100% { transform: translateY(-7px); opacity: 0.2; }
}

/* Buttons */
.ui-btn {
  --color: var(--color-primary);
  font-family: inherit;
  display: inline-block;
  width: 10.2em;
  height: 2.8em;
  line-height: 2.7em;
  position: relative;
  cursor: pointer;
  overflow: hidden;
  border: 2px solid var(--color);
  transition: color 0.5s, transform 0.2s ease, filter 0.2s ease;
  z-index: 2;
  font-size: 15px;
  border-radius: 10px;
  font-weight: 650;
  color: var(--color);
  text-align: center;
  user-select: none;
  box-shadow: 0 10px 34px rgba(0, 0, 0, 0.4);
}

.ui-btn::before {
  content: "";
  position: absolute;
  z-index: -1;
  background: var(--color);
  height: 160px;
  width: 220px;
  border-radius: 50%;
  top: 120%;
  left: 120%;
  transition: all 0.7s;
}

.ui-btn:hover { color: #fff; transform: translateY(-1px); filter: brightness(1.03); }
.ui-btn:hover::before { top: -30px; left: -30px; }
.ui-btn:active::before { background: #3a0ca3; transition: background 0s; }

.btn-primary { --color: var(--color-primary); }
.btn-secondary { --color: var(--color-secondary); }

.stage {
  position: relative;
}



#projects .stage-bg,
#projects .bg-projects {
  background: var(--site-bg);
}
#projects .bg-gradient-soft,
#projects .bg-vignette,
#projects .bg-seam {
  display: none;
}


.stage .stage-bg .bg-projects {
  position: absolute;
  inset: 0;

}

.stage .stage-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}


.stage-pin {
  position: sticky;
  top: var(--pin-top);
  height: calc(100vh - var(--pin-top));
  display: grid;
  align-items: stretch;
  z-index: 2;
  overflow: visible;
}

.stage.unpin .stage-pin {
  position: relative;
  top: 0;
  height: auto;
}

.stage.unpin .stage-camera {
  height: auto;
  min-height: calc(100vh - var(--pin-top));
}

#projects { position: relative; }


.stage-camera {
  height: calc(100vh - var(--pin-top));
  display: grid;
  grid-template-rows: auto 1fr;
  align-content: start;
  padding: 24px 0 0;
  gap: 14px;
  position: relative;
  z-index: 2;
}

/* Projects header */
.projects-header {
  display: grid;
  gap: 10px;
  opacity: var(--projects-header-o);
  transform: translate3d(0, calc((1 - var(--projects-header-o)) * 12px), 0);
  position: relative;
  z-index: 6;
}

/* Projects frame */
.projects-frame {
  transform-origin: 50% var(--stage-origin-y);
  transform: scale(var(--stage-scale));
  will-change: transform, opacity;

  opacity: var(--frame-o);

  border-radius: var(--frame-radius);
  border: 1px solid rgba(255, 255, 255, var(--frame-border));
  background: rgba(10, 14, 20, var(--frame-fill));
  box-shadow: 0 22px 70px rgba(0, 0, 0, 0.52);

  padding: 10px;

  height: min(420px, calc(100vh - var(--pin-top) - 160px));
  display: grid;

  position: relative;
  z-index: 6;
}

.projects-rail {
  height: 100%;
  border-radius: var(--radius);
  padding: 10px;
  display: flex;
  gap: 10px;
  overflow: hidden;

  background: transparent;
  border: 0;
  box-shadow: none;
}

.project-panel {
  position: relative;
  height: 100%;
  flex: 1;
  overflow: hidden;
  cursor: pointer;
  border-radius: 14px;
  border: 1px solid rgba(0, 212, 89, calc(0.22 + (var(--projects-card-o) * 0.20)));
  background: rgba(13, 17, 26, var(--projects-card-o));
  transition: flex 0.6s cubic-bezier(0.2, 0.9, 0.2, 1), transform 0.35s ease, border-color 0.3s ease;
  display: grid;
  place-items: stretch;
  will-change: transform;
}

.project-panel:hover { flex: 4; transform: translateY(-2px); border-color: rgba(0, 212, 89, 0.68); }


.panel-label {
  height: 100%;
  display: grid;
  place-items: center;
  padding: 10px;
  transition: opacity 0.35s ease, transform 0.35s ease;
}

.panel-label span {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  width: min(18em, 92%);
  transform-origin: 50% 50%;
  transform: rotate(0deg) scaleX(1) scaleY(1);

  text-transform: uppercase;
  color: rgba(0, 212, 89, 0.92);
  letter-spacing: 0.12em;
  font-weight: 850;
  font-size: 12px;

  text-shadow: 0 10px 24px rgba(0, 0, 0, 0.55);
  transition: transform 0.55s ease, width 0.55s ease, opacity 0.35s ease;
}

.projects-rail.has-hover .project-panel:not(:hover) .panel-label span {
  width: 3.2em;
  transform: rotate(-90deg) scaleX(0.92) scaleY(1.10);
}

.project-panel:hover .panel-label { opacity: 0; transform: scale(0.98); pointer-events: none; }

.panel-content {
  position: absolute;
  inset: 0;
  padding: 16px;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.45s ease, transform 0.45s ease;
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 14px;
  align-items: center;
}

.project-panel:hover .panel-content { opacity: 1; transform: translateY(0); }

.panel-details {
  background: rgba(7, 10, 15, 0.52);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 14px;
  padding: 12px 12px 10px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
  transform: translateY(8px);
  opacity: 0;
  transition: transform 0.45s ease, opacity 0.45s ease;
}

.project-panel:hover .panel-details { transform: translateY(0); opacity: 1; }

.panel-details h3 { margin: 0 0 8px; font-size: 16px; font-weight: 900; }

.panel-details p {
  margin: 0 0 10px;
  color: rgba(234, 240, 255, 0.78);
  line-height: 1.55;
  font-size: 13.5px;
}

.panel-details ul {
  margin: 0 0 12px;
  padding-left: 18px;
  color: rgba(234, 240, 255, 0.74);
  line-height: 1.55;
  font-size: 13px;
}

.meta { display: flex; flex-wrap: wrap; gap: 8px; }

.pill {
  font-size: 12px;
  font-weight: 750;
  letter-spacing: 0.06em;
  padding: 7px 10px;
  border-radius: 999px;
  border: 1px solid rgba(0, 212, 89, 0.35);
  background: rgba(0, 212, 89, 0.08);
  color: rgba(234, 240, 255, 0.92);
}

/* Inner media card */
.uicard {
  position: relative;
  width: 100%;
  max-width: 360px;
  height: 292px;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.222);
  backdrop-filter: blur(20px);
  border-radius: 0.7rem;
  overflow: hidden;
  transition: box-shadow 0.3s ease, border-color 0.3s ease, transform 0.25s ease;
  z-index: 1;
}

.uicard-imgbox {
  position: absolute;
  top: 12px;
  left: 12px;
  bottom: 86px;
  right: 12px;
  background: rgba(10, 14, 20, 0.55);
  transition: bottom 0.5s ease;
  z-index: 1;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.uicard:hover .uicard-imgbox { bottom: 12px; }

.uicard-media {
  position: absolute;
  left: 0;
  width: 100%;

  /* force the media to always be the expanded window height */
  height: var(--uicard-expanded-window-h);

  object-fit: cover;
  display: none;

  /* center that fixed height inside the current imgbox mask */
  top: 0;
  transform: none;
}


.uicard-media.is-show { display: block; }

.uicard-details {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 10px;
  height: 72px;
  text-align: center;
  text-transform: uppercase;
  display: grid;
  align-content: center;
  gap: 4px;
  pointer-events: none;
  z-index: 2;
}

/* Hide the inner card text only when hovering the media card */
.uicard:hover .uicard-details {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

/* Smooth fade in and out */
.uicard-details {
  transition: opacity 0.2s ease, visibility 0.2s ease;
}


.uicard-title {
  margin: 0;
  font-weight: 800;
  font-size: 18px;
  color: rgba(234, 240, 255, 0.82);
  letter-spacing: 0.04em;
}

.uicard-caption {
  font-weight: 750;
  font-size: 14px;
  color: rgba(0, 212, 89, 0.95);
  display: block;
}

.uicard-edge {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 18%;
  border: 0;
  background: transparent;
  color: rgba(234, 240, 255, 0.92);
  font-size: 30px;
  font-weight: 900;
  cursor: pointer;
  opacity: 0;
  transition: opacity 0.25s ease, background 0.25s ease;
  z-index: 3;
}

.uicard-left { left: 0; }
.uicard-right { right: 0; }

.uicard:hover .uicard-edge { opacity: 1; }
.uicard-edge:hover { background: rgba(0, 0, 0, 0.18); }
.uicard-edge:active { background: rgba(0, 0, 0, 0.28); }

/* Freeze mode */
.stage.is-freeze .projects-rail { pointer-events: auto; }
.stage.is-freeze .project-panel { flex: 1 !important; }

/* Shared sideways section layout, used by work and education */
.hscroll-header {
  width: 100%;
  max-width: var(--content-w);
  margin: 0 auto;
  padding: 0 var(--content-pad);
  display: grid;
  gap: 10px;
  opacity: 0.98;
}


.hscroll-area {
  position: absolute;
  left: 50%;
  width: 100vw;
  transform: translateX(-50%);
  top: 92px;
  bottom: 0;

  overflow: visible;

  z-index: 2;
}

.hscroll-track {
  display: flex;
  gap: clamp(120px, 9vw, 200px);
  padding: 0 var(--content-pad);
  will-change: transform;
  height: 100%;
  align-items: center;

  position: relative;
  z-index: 3;
}


#education .hscroll-track {
  transform: translate3d(var(--edu-x), 0, 0);
}



#experience .hscroll-track {
  transform: translate3d(var(--exp-x), 0, 0);
}

#experience .hscroll-chain {
  transform: translate3d(var(--chain-x), 0, 0);
}


.hscroll-item {
  width: min(420px, calc((100vw - 220px) / 3));
  flex: 0 0 auto;
}

.hscroll-chain {
  position: absolute;
  top: 0;
  bottom: 0;

  left: -240vw;
  width: 560vw;

  z-index: 2;
  opacity: 0.28;
  pointer-events: none;

  background-image: url("../assets/chain_h.png");
  background-repeat: repeat-x;
  background-position: 0 var(--chain-center);
  background-size: 1280px auto;

  will-change: transform;
}


/* Education chain uses edu vars */
#education .hscroll-chain { transform: translate3d(var(--edu-chain-x), 0, 0); }

/* Plugin card, identical for work and education */
.plugin-card.futuristic {
  --bg-dark: rgba(14, 17, 27, 0.80);
  --text-main: #e6edf3;
  --text-sub: rgba(230, 237, 243, 0.72);

  position: relative;
  padding: 1.25rem;
  border-radius: 1.25rem;
  background: var(--bg-dark);
  backdrop-filter: blur(14px) saturate(1.25);
  color: var(--text-main);
  overflow: hidden;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;

  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 14px 44px rgba(0, 0, 0, 0.35);

  transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.plugin-card.futuristic::before {
  content: "";
  position: absolute;
  inset: -10px;
  background: linear-gradient(
    90deg,
    rgba(0, 220, 130, 0.55),
    rgba(0, 255, 255, 0.35),
    rgba(255, 0, 255, 0.35)
  );
  filter: blur(16px);
  opacity: 0.55;
  z-index: 0;
}

.plugin-card.futuristic::after {
  content: "";
  position: absolute;
  inset: 1px;
  border-radius: inherit;
  background: rgba(14, 17, 27, 0.80);
  z-index: 0;
}

.plugin-card.futuristic > * { position: relative; z-index: 1; }

.plugin-card.futuristic:hover {
  transform: translateY(-0.3rem) scale(1.02);
  box-shadow: 0 0 2.4rem rgba(0, 220, 130, 0.35);
}

.card-header { display: flex; flex-direction: column; gap: 0.5rem; }
.logo-svg { width: 2.5rem; height: auto; }

.title {
  font-size: 1.25rem;
  font-weight: 800;
  color: #e6edf3;
  line-height: 1.35rem;
  position: relative;
  overflow: hidden;
  white-space: nowrap;
}

.description {
  font-size: 0.98rem;
  line-height: 1.5;
  color: var(--text-sub);
  margin: 0;
}

.card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.stats { display: flex; gap: 0.75rem; font-size: 0.85rem; flex-wrap: wrap; }

.stat-item {
  display: inline-flex;
  align-items: center;
  gap: 0.4em;
  color: rgba(230, 237, 243, 0.70);
  padding: 0.25rem 0.5rem;
  border-radius: 999px;
  border: 1px solid rgba(0, 220, 130, 0.22);
  background: rgba(0, 220, 130, 0.06);
}

.actions { display: flex; gap: 0.5rem; }

.action-btn {
  width: 2rem;
  height: 2rem;
  background: rgba(33, 38, 45, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 0.5rem;
  border: none;
  cursor: pointer;
  color: rgba(230, 237, 243, 0.75);
  transition: background 0.25s ease, transform 0.15s ease, color 0.25s ease;
}

.action-btn:hover {
  background: rgba(0, 220, 130, 0.18);
  transform: scale(1.05);
  color: #e6edf3;
}

.action-btn svg { width: 1.5rem; height: 1.5rem; }

/* EDUCATION section */
.edu { min-height: 240vh; }


.edu-pin {
  position: sticky;
  top: var(--pin-top);
  height: calc(100vh - var(--pin-top));
  display: grid;
  align-items: stretch;
  z-index: 2;
  overflow: visible;
}

.edu-camera {
  height: calc(100vh - var(--pin-top));
  display: grid;
  grid-template-rows: auto 1fr;
  gap: 14px;
  padding: 24px 0 0;
  position: relative;
  z-index: 2;
}

/* Plain sections and footer */
.plain {
  min-height: 62vh;
  padding-top: calc(var(--nav-h) + 34px);
  padding-bottom: 80px;
  background: var(--site-bg);
}

.footer {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(7, 10, 15, 0.95);
  padding: 18px 0;
  position: relative;
  z-index: 2;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  color: rgba(234, 240, 255, 0.7);
  font-size: 13px;
}

/* Responsive */
@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; padding-bottom: 40px; }
  .portrait-frame { margin-left: 0; width: min(340px, 100%); height: min(520px, 70vh); }

  .projects-rail { flex-direction: column; }
  .project-panel:hover { flex: 1; }
  .panel-content { grid-template-columns: 1fr; align-content: start; gap: 12px; }

  /* Experience and education become normal vertical scroll */
  .hscroll-area {
    position: relative;
    left: auto;
    width: auto;
    transform: none;
    top: auto;
    bottom: auto;
    overflow: visible;
  }

  .hscroll-track {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: clamp(26px, 4vh, 70px);
    padding: 0 24px;
    transform: none !important;
    will-change: auto;
    height: auto;
  }

  /* Never show chains on mobile, no horizontal, no vertical */
  .hscroll-chain {
    display: none !important;
    background: none !important;
  }

  /* Disable sticky behavior */
  .edu-pin {
    position: relative;
    top: auto;
    height: auto;
  }

  .stage-pin {
    position: relative;
    top: auto;
    height: auto;
  }

  .projects-frame {
    transform: none !important;
    height: auto;
  }

  .hscroll-item { width: min(520px, calc(100vw - 90px)); }


  .projects-frame { height: auto !important; }
  .projects-rail { height: auto !important; overflow: visible !important; padding: 10px; }

  .project-panel { height: auto !important; flex: 0 0 auto !important; cursor: default; }
  .project-panel:hover { flex: 0 0 auto !important; transform: none !important; }

  .panel-label { display: none !important; }

  .panel-content {
    position: relative !important;
    inset: auto !important;
    opacity: 1 !important;
    transform: none !important;

    display: grid;
    grid-template-columns: 1fr !important;
    align-items: start;
    gap: 12px;
    padding: 14px !important;
  }

  .panel-details { opacity: 1 !important; transform: none !important; }

  .uicard { max-width: none !important; width: 100% !important; }




}


@media (max-width: 860px) {
  .nav-links { display: none; }
  :root { --gear-gutter: 70px; }
  .brand-logo { height: 30px; }
}
