/* ========================================================
   RAMAN SHUKLA — PORTFOLIO DESIGN SYSTEM
   Exact 1:1 Match to pranjulrathour.scult.in
   ======================================================== */

@import url('https://fonts.googleapis.com/css2?family=Instrument+Sans:ital,wght@0,400..700;1,400..700&family=Instrument+Serif:ital@0;1&family=JetBrains+Mono:ital,wght@0,100..800;1,100..800&display=swap');

:root {
  --font-instrument-sans: 'Instrument Sans', ui-sans-serif, system-ui, -apple-system, sans-serif;
  --font-instrument-serif: 'Instrument Serif', ui-serif, Georgia, serif;
  --font-jetbrains-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
  --font-sans: var(--font-instrument-sans);
  --font-serif: var(--font-instrument-serif);
  --font-mono: var(--font-jetbrains-mono);

  --gap: clamp(10px, 1.48vh, 22px);
  --pad: clamp(14px, 2.22vh, 30px);
  --radius: clamp(18px, 2.5vh, 32px);
  --radius-sm: clamp(10px, 1.2vh, 16px);
  --radius-pill: 9999px;

  /* Fluid Typography Scale */
  --fs-2xs: clamp(9px, 1vh, 13px);
  --fs-xs: clamp(10px, 1.11vh, 14px);
  --fs-sm: clamp(11px, 1.3vh, 16px);
  --fs-base: clamp(12.5px, 1.48vh, 18px);
  --fs-lg: clamp(14px, 1.67vh, 21px);
  --fs-xl: clamp(17px, 2.2vh, 28px);
  --fs-2xl: clamp(21px, 2.96vh, 38px);
  --fs-3xl: clamp(28px, 4.44vh, 58px);
  --fs-4xl: clamp(36px, 6.5vh, 84px);

  /* Light Theme (Default fallback) */
  --bg: #dcdfe6;
  --card: #f7f7f8;
  --card-raised: #ffffff;
  --card-sunken: #eceef2;
  --fg: #15151a;
  --fg-2: #4a4a55;
  --muted: #84848e;
  --line: rgba(21, 21, 26, 0.08);
  --line-strong: rgba(21, 21, 26, 0.14);
  --accent: #ff4d2e;
  --accent-soft: rgba(255, 77, 46, 0.12);
  --ok: #22c55e;
  --primary: #1c1b22;
  --primary-hover: #2c2b36;
  --primary-fg: #ffffff;
  --shadow-card: 0 4px 16px rgba(0, 25, 185, 0.05);
  --shadow-pop: 0 18px 50px rgba(0, 25, 185, 0.12), 0 4px 12px rgba(0, 0, 0, 0.06);
  --shadow-icon: 0 3px 8px rgba(0, 27, 102, 0.08), 0 1px 3px rgba(0, 27, 102, 0.04);
  --marquee-ink: #e3e5ea;
  --scrim: rgba(220, 223, 230, 0.86);

  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* Dark Theme (Primary look) */
[data-theme="dark"], .dark {
  --bg: #0c0c10;
  --card: #16161b;
  --card-raised: #1f1f26;
  --card-sunken: #101014;
  --fg: #f2f2f5;
  --fg-2: #c3c3cc;
  --muted: #8b8b97;
  --line: rgba(255, 255, 255, 0.08);
  --line-strong: rgba(255, 255, 255, 0.14);
  --accent: #ff6a4d;
  --accent-soft: rgba(255, 106, 77, 0.16);
  --primary: #f2f2f5;
  --primary-hover: #ffffff;
  --primary-fg: #15151a;
  --shadow-card: 0 4px 18px rgba(0, 0, 0, 0.35);
  --shadow-pop: 0 20px 60px rgba(0, 0, 0, 0.6);
  --shadow-icon: 0 2px 6px rgba(0, 0, 0, 0.4);
  --marquee-ink: #1d1d24;
  --scrim: rgba(12, 12, 16, 0.88);
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  overflow-x: clip;
}

body {
  width: 100%;
  min-height: 100%;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
  transition: background-color 0.35s ease, color 0.35s ease;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  cursor: pointer;
}

ul, ol {
  list-style: none;
}

/* ========================================================
   KEYFRAME ANIMATIONS (1:1 FROM SOURCE)
   ======================================================== */
@keyframes marquee-up {
  0% { transform: translateY(0); }
  100% { transform: translateY(-50%); }
}

@keyframes marquee-down {
  0% { transform: translateY(-50%); }
  100% { transform: translateY(0); }
}

@keyframes marquee-x {
  0% { transform: translate(0); }
  100% { transform: translate(-50%); }
}

@keyframes spin-slow {
  100% { transform: rotate(360deg); }
}

@keyframes spin-rev {
  100% { transform: rotate(-360deg); }
}

@keyframes sparkle {
  0%, 100% { opacity: 0.15; transform: scale(0.6) rotate(0); }
  50% { opacity: 1; transform: scale(1.1) rotate(90deg); }
}

@keyframes ping-soft {
  75%, 100% { opacity: 0; transform: scale(2.2); }
}

@keyframes word-reveal {
  0% { opacity: 0; transform: translateY(6px); }
  100% { opacity: 1; transform: translateY(0); }
}

@keyframes spotlight-a {
  0%, 100% { transform: translate(-50%) rotate(-4deg); }
  50% { transform: translate(-50%) rotate(2deg); }
}

@keyframes spotlight-b {
  0%, 100% { transform: translate(-50%) rotate(3deg); }
  50% { transform: translate(-50%) rotate(-3deg); }
}

@keyframes float-y {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-4%); }
}

@keyframes ai-blink {
  0%, 92%, 100% { transform: scaleY(1); }
  95% { transform: scaleY(0.1); }
}

@keyframes typing-dot {
  0%, 80%, 100% { opacity: 0.4; transform: scale(0.4); }
  40% { opacity: 1; transform: scale(1); }
}

@keyframes fade-up {
  0% { opacity: 0; transform: translateY(8px); }
  100% { opacity: 1; transform: translateY(0); }
}

/* ========================================================
   BENTO GRID LAYOUT SYSTEM
   ======================================================== */

/* Mobile & Tablet Mode (<1024px or short screens): Exact 2-Column Responsive Layout */
@media (max-width: 1023px), (max-height: 600px) {
  .bento {
    max-width: 760px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-auto-flow: row dense;
    grid-auto-rows: minmax(0, auto);
    margin-inline: auto;
    height: auto;
    display: grid;
    gap: var(--gap);
    padding: var(--gap);
    padding-bottom: 88px;
  }

  .bento-col,
  .bento-right,
  .bento-right-top {
    display: contents;
  }

  .card {
    aspect-ratio: 1;
    min-width: 0;
    min-height: 0;
  }

  .card[data-span="2"] {
    aspect-ratio: auto;
    grid-column: span 2;
  }

  /* Exact Mobile Card Order: Seamless 2-Column Packing With Zero Holes & Zero Excess Spacing */
  .card[data-card="hero"] {
    order: 1;
    height: clamp(340px, 60vw, 440px);
  }

  .card[data-card="about"] {
    order: 2;
    aspect-ratio: auto !important;
    min-height: auto !important;
    height: auto !important;
  }

  .card[data-card="dock"] {
    order: 3;
    position: static;
    aspect-ratio: auto;
    height: auto;
    min-height: 52px;
    box-shadow: var(--shadow-card);
    margin: 2px 0;
  }

  .card[data-card="awards"] {
    order: 4;
  }

  .card[data-card="role"] {
    order: 5;
  }

  .card[data-card="experience"] {
    order: 6;
    aspect-ratio: auto !important;
    min-height: auto !important;
    height: auto !important;
  }

  .card[data-card="github"] {
    order: 7;
  }

  .card[data-card="techstack"] {
    order: 8;
  }

  .card[data-card="ai"] {
    order: 9;
  }

  .card[data-card="models"] {
    order: 10;
  }

  .card[data-card="education"] {
    order: 11;
    aspect-ratio: auto !important;
    min-height: auto !important;
    height: auto !important;
  }
  .card[data-card="education"] .edu-card-inner {
    height: auto !important;
    justify-content: flex-start !important;
    gap: 8px !important;
    padding: 14px !important;
  }

  .card[data-card="clock"] {
    order: 12;
  }

  .card[data-card="team"] {
    order: 13;
  }

  .card[data-card="status"] {
    order: 14;
    aspect-ratio: auto !important;
    min-height: auto !important;
    height: auto !important;
  }
  .card[data-card="status"] .status-card-inner {
    height: auto !important;
    padding: 12px !important;
    gap: 8px !important;
    justify-content: flex-start !important;
  }
}

/* Desktop Mode (>=1024px and >600px): Clean Single-Screen 4-Column Layout */
@media (min-width: 1024px) and (min-height: 601px) {
  html, body {
    height: 100dvh;
    overflow: hidden;
  }

  .bento {
    gap: var(--gap);
    padding: var(--gap);
    box-sizing: border-box;
    width: 100%;
    height: 100dvh;
    min-height: 0;
    display: grid;
    grid-template-rows: minmax(0, 1fr);
    grid-template-columns: 1fr 1fr 1.8fr 2.15fr;
    align-items: stretch;
    overflow: hidden;
  }

  .bento-col {
    gap: var(--gap);
    flex-direction: column;
    min-width: 0;
    min-height: 0;
    display: flex;
  }

  .bento-col > .card {
    flex: var(--w, 1) 1 0;
    min-width: 0;
    min-height: 0;
  }

  .bento-right {
    gap: var(--gap);
    flex-direction: column;
    min-width: 0;
    min-height: 0;
    display: flex;
    height: 100%;
  }

  .bento-right-top {
    gap: var(--gap);
    flex: 510 1 0;
    grid-template-columns: 1fr 1fr;
    min-height: 0;
    display: grid;
  }

  .bento-right > .card[data-card="education"] {
    flex: 220 1 0;
    min-height: 0;
  }

  .bento-right-top > .bento-col {
    flex: 1 1 0;
    min-height: 0;
    height: 100%;
  }
}

/* ========================================================
   BASE CARD STYLES & COMMON UTILITIES
   ======================================================== */
.card {
  box-sizing: border-box;
  border-radius: var(--radius);
  background: var(--card);
  box-shadow: var(--shadow-card);
  padding: var(--pad);
  isolation: isolate;
  min-width: 0;
  min-height: 0;
  transition: background-color 0.35s ease, box-shadow 0.35s ease;
  position: relative;
  overflow: hidden;
}

.card:after {
  content: "";
  border-radius: inherit;
  pointer-events: none;
  box-shadow: inset 0 0 0 1px var(--line);
  z-index: 40;
  position: absolute;
  inset: 0;
}

.card[data-flush="true"] {
  padding: 0;
}

.card-title {
  font-size: var(--fs-base);
  color: var(--muted);
  letter-spacing: 0.01em;
  line-height: 1.1;
}

.pill {
  font-size: var(--fs-xs);
  background: var(--card-sunken);
  color: var(--fg-2);
  box-shadow: inset 0 0 0 1px var(--line);
  border-radius: 999px;
  align-items: center;
  gap: 0.4em;
  padding: 0.3em 0.75em;
  line-height: 1;
  display: inline-flex;
}

.arrow-btn {
  position: absolute;
  top: var(--pad);
  right: var(--pad);
  background: var(--primary);
  width: clamp(26px, 3vh, 36px);
  height: clamp(26px, 3vh, 36px);
  color: var(--primary-fg);
  opacity: 0;
  transform: scale(0.8);
  transition: opacity 0.35s var(--ease-out-expo), transform 0.35s var(--ease-out-expo);
  z-index: 30;
  border-radius: 999px;
  place-items: center;
  display: grid;
  pointer-events: none;
}

.card:hover .arrow-btn, .card:focus-within .arrow-btn {
  opacity: 1;
  transform: scale(1);
}

/* Squircle Icon Tiles */
.icon-tile {
  box-shadow: var(--shadow-icon), inset 0 0 0 1px rgba(255, 255, 255, 0.5);
  background: linear-gradient(#ffffff 0%, #f3f3f5 100%);
  border-radius: clamp(9px, 1.05vh, 14px);
  place-items: center;
  display: grid;
}

.dark .icon-tile, [data-theme="dark"] .icon-tile {
  color: #f2f2f5;
  box-shadow: var(--shadow-icon), inset 0 0 0 1px rgba(255, 255, 255, 0.06);
  background: linear-gradient(#262630 0%, #1c1c23 100%);
}

/* Fluid Typography Utility Classes */
.text-fl-2xs { font-size: var(--fs-2xs); }
.text-fl-xs { font-size: var(--fs-xs); }
.text-fl-sm { font-size: var(--fs-sm); }
.text-fl-base { font-size: var(--fs-base); }
.text-fl-lg { font-size: var(--fs-lg); }
.text-fl-xl { font-size: var(--fs-xl); }
.text-fl-2xl { font-size: var(--fs-2xl); }
.text-fl-3xl { font-size: var(--fs-3xl); }
.text-fl-4xl { font-size: var(--fs-4xl); }

.font-sans { font-family: var(--font-sans); }
.font-serif { font-family: var(--font-serif); }
.font-mono { font-family: var(--font-mono); }
.tabular-nums { font-variant-numeric: tabular-nums; }

.text-fg { color: var(--fg); }
.text-fg-2 { color: var(--fg-2); }
.text-muted { color: var(--muted); }
.text-accent { color: var(--accent); }

/* ========================================================
   CARD 1: GITHUB (DYNAMIC METRICS & COMMIT GRID)
   ======================================================== */
.gh {
  cursor: pointer;
  transition: transform 0.35s var(--ease-out-expo), box-shadow 0.35s ease;
}

.gh:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-pop);
}

.gh-body {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
  padding: clamp(8px, 1.1vh, 12px);
  gap: clamp(4px, 0.6vh, 6px);
  box-sizing: border-box;
}

.gh-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  gap: 6px;
  padding-right: 36px;
  box-sizing: border-box;
}

.gh-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  background: var(--card-sunken);
  color: var(--fg);
  border: 1px solid var(--line);
  flex-shrink: 0;
}

.gh-badge {
  font-size: 9.5px;
  padding: 2px 6px;
  border-radius: 999px;
  background: rgba(34, 197, 94, 0.15);
  color: #22c55e;
  border: 1px solid rgba(34, 197, 94, 0.3);
  font-weight: 600;
  white-space: nowrap;
  flex-shrink: 0;
  transition: opacity 0.2s, transform 0.2s;
}

.card.gh:hover .gh-badge {
  opacity: 0.15;
}

.gh-stats-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 4px;
  width: 100%;
  box-sizing: border-box;
}

@media (max-width: 480px) {
  .gh-badge {
    display: none;
  }
  .gh-header {
    padding-right: 0;
  }
}

.gh-stat-chip {
  min-width: 0;
  padding: 3px 2px;
  border-radius: 6px;
  background: var(--card-raised);
  border: 1px solid var(--line);
  font-size: clamp(9px, 0.95vh, 10.5px);
  color: var(--muted);
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.gh-stat-chip strong {
  color: var(--fg);
  font-weight: 600;
}

.gh-grid {
  display: grid;
  grid-template-columns: repeat(15, minmax(0, 1fr));
  gap: 2px;
  width: 100%;
  box-sizing: border-box;
  flex: 1 1 auto;
  min-height: 0;
  align-content: center;
  padding: 1px 0 0;
  overflow: visible;
}

.gh-week {
  display: grid;
  grid-template-rows: repeat(7, minmax(0, 1fr));
  gap: 2px;
  width: 100%;
  height: 100%;
}

.gh-day {
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.03);
  transition: transform 0.15s, background-color 0.2s;
}

[data-theme="light"] .gh-day {
  background: #ebedf0;
  border: 1px solid rgba(0, 0, 0, 0.05);
}

.gh-day[data-level="x"] { opacity: 0; }
.gh-day[data-level="0"] { background: rgba(255, 255, 255, 0.08); }
[data-theme="light"] .gh-day[data-level="0"] { background: #ebedf0; }
.gh-day[data-level="1"] { background: #0e4429; }
[data-theme="light"] .gh-day[data-level="1"] { background: #9be9a8; }
.gh-day[data-level="2"] { background: #006d32; }
[data-theme="light"] .gh-day[data-level="2"] { background: #40c463; }
.gh-day[data-level="3"] { background: #26a641; }
[data-theme="light"] .gh-day[data-level="3"] { background: #30a14e; }
.gh-day[data-level="4"] { background: #39d353; box-shadow: 0 0 6px rgba(57, 211, 83, 0.4); }
[data-theme="light"] .gh-day[data-level="4"] { background: #216e39; }

.gh-day:hover {
  transform: scale(1.3);
  z-index: 5;
}

/* ========================================================
   CARD 2: TECH STACK (3-COL MARQUEE WITH SQUIRCLES)
   ======================================================== */
.tech-grid {
  position: absolute;
  inset: 0;
  display: flex;
  justify-content: center;
  gap: clamp(8px, 1vh, 14px);
  padding: 0 var(--pad);
}

.tech-col {
  flex: 1 1 0;
  max-width: clamp(44px, 6.4vh, 72px);
  overflow: hidden;
  height: 100%;
}

.tech-track {
  display: flex;
  flex-direction: column;
  gap: clamp(8px, 1vh, 14px);
  align-items: center;
  width: 100%;
  will-change: transform;
}

.tech-track[data-direction="up"] {
  animation: marquee-up 38s linear infinite;
}

.tech-track[data-direction="down"] {
  animation: marquee-down 38s linear infinite;
}

.tech:hover .tech-track {
  animation-play-state: paused;
}

.tech-tile {
  position: relative;
  width: 100%;
  aspect-ratio: 1;
  color: var(--fg);
  transition: transform 0.35s var(--ease-out-expo), box-shadow 0.35s var(--ease-out-expo);
  outline: none;
}

.tech-tile:hover, .tech-tile:focus-visible {
  transform: translateY(-2px) scale(1.06);
  z-index: 3;
}

.tech-tile::after {
  content: attr(data-tip);
  position: absolute;
  left: 50%;
  bottom: calc(100% + 6px);
  transform: translateX(-50%) translateY(4px);
  background: var(--primary);
  color: var(--primary-fg);
  font-size: var(--fs-2xs);
  padding: 0.35em 0.6em;
  border-radius: 6px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s, transform 0.2s;
  z-index: 50;
  box-shadow: var(--shadow-pop);
}

.tech-tile:hover::after, .tech-tile:focus-visible::after {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.tech-fade {
  position: absolute;
  left: 0;
  right: 0;
  height: 22%;
  z-index: 10;
  pointer-events: none;
}

.tech-fade-top {
  top: 0;
  background: linear-gradient(to bottom, var(--card), transparent);
}

.tech-fade-bottom {
  bottom: 0;
  background: linear-gradient(to top, var(--card), transparent);
}

/* ========================================================
   CARD 3: PRODUCTION SYSTEMS (HORIZONTAL MARQUEE CHIPS)
   ======================================================== */
.models-row {
  overflow: hidden;
  width: 100%;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}

.models-track {
  display: flex;
  gap: 0.8vh;
  width: max-content;
  animation: marquee-x 28s linear infinite;
  padding-left: 0.8vh;
}

.models:hover .models-track {
  animation-play-state: paused;
}

.models-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
  white-space: nowrap;
  font-size: var(--fs-sm);
  color: var(--fg-2);
  padding: 0.55em 0.9em;
  border-radius: 999px;
  background: var(--card-raised);
  box-shadow: var(--shadow-icon), inset 0 0 0 1px var(--line);
}

@media (max-width: 1023px) {
  .models-chip {
    font-size: 12px;
    padding: 0.45em 0.8em;
  }
}

/* ========================================================
   CARD 4: ACHIEVEMENTS / HACKATHON AWARDS
   ======================================================== */
.awards {
  overflow: hidden;
}

/* ── Animated photo strip (shown on card, main page) ── */
.awards-card-content {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
  width: 100%;
  padding: clamp(12px, 1.8vh, 18px);
  position: relative;
  z-index: 2;
  box-sizing: border-box;
}

.awards-header-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 6px;
}

.awards-photo-strip-wrap {
  position: relative;
  width: 100%;
  flex: 1;
  min-height: 95px;
  max-height: 120px;
  overflow: hidden;
  border-radius: 12px;
  mask-image: linear-gradient(to right, transparent 0%, black 8%, black 92%, transparent 100%);
  -webkit-mask-image: linear-gradient(to right, transparent 0%, black 8%, black 92%, transparent 100%);
}

.awards-photo-strip {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
}

.awards-photo-track {
  display: flex;
  gap: 10px;
  animation: strip-scroll 24s linear infinite;
  width: max-content;
  will-change: transform;
  align-items: center;
}

.awards-photo-track:hover {
  animation-play-state: paused;
}

.awards-strip-img {
  height: 105px;
  width: auto;
  min-width: 80px;
  max-width: 175px;
  object-fit: cover;
  object-position: center 15%;
  border-radius: 10px;
  flex-shrink: 0;
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease, filter 0.3s ease;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.12);
  opacity: 0.95;
  background: rgba(0, 0, 0, 0.3);
}

.awards-strip-img.is-portrait,
.awards-strip-img[data-orient="portrait"] {
  object-position: center top !important;
}

.awards-strip-img:hover {
  transform: scale(1.08) translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.6);
  border-color: var(--accent);
  opacity: 1;
  z-index: 5;
}

.awards-footer-highlights {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
  margin-top: 6px;
}

.highlight-chip {
  display: inline-flex;
  align-items: center;
  padding: 3px 8px;
  border-radius: 6px;
  background: var(--card-raised);
  border: 1px solid var(--line);
  font-size: clamp(9px, 1.1vh, 10.5px);
  font-weight: 500;
  color: var(--fg);
  white-space: nowrap;
}

@keyframes strip-scroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* Pause strip scroll on reduced-motion preference */
@media (prefers-reduced-motion: reduce) {
  .awards-photo-track {
    animation: none;
  }
  .awards-photo-strip-wrap {
    overflow-x: auto;
    mask-image: none;
    -webkit-mask-image: none;
  }
}

.awards-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

.awards-blob {
  position: absolute;
  border-radius: 999px;
  filter: blur(5vh);
  opacity: 0.32;
}

.awards-blob-a {
  width: 60%;
  aspect-ratio: 1;
  left: -18%;
  top: -18%;
  background: rgba(255, 106, 77, 0.45);
}

.awards-blob-b {
  width: 60%;
  aspect-ratio: 1;
  right: -18%;
  top: -14%;
  background: rgba(245, 179, 42, 0.42);
}

.awards-spot {
  position: absolute;
  top: 0;
  height: 60%;
  width: 30%;
  transform-origin: top;
  background: linear-gradient(rgba(255, 255, 255, 0.22), rgba(255, 255, 255, 0.06), transparent);
  clip-path: polygon(35% 0, 65% 0, 100% 100%, 0 100%);
}

.awards-spot-a {
  left: 42%;
  animation: spotlight-a 7s ease-in-out infinite;
  opacity: 0.7;
}

.awards-spot-b {
  left: 58%;
  animation: spotlight-b 8s ease-in-out infinite;
  opacity: 0.55;
}

.awards-spark {
  position: absolute;
  color: #ffe08a;
  font-size: var(--fs-sm);
  animation: sparkle 2.8s ease-in-out infinite;
}

.awards-trophy-wrap {
  flex: 1;
  min-height: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 0.6vh 0 1vh;
}

.trophy-svg {
  height: 100%;
  max-height: 100%;
  width: auto;
  animation: float-y 6s ease-in-out infinite;
}

.awards-list {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

/* ========================================================
   CARD 5: ROLE (FULL STACK DEVELOPER AT SCULT.IN)
   ======================================================== */
.role {
  cursor: pointer;
}

.role-glow {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(70% 60% at 100% 0%, rgba(255, 106, 77, 0.12), transparent 70%),
    radial-gradient(60% 50% at 0% 100%, rgba(124, 92, 255, 0.10), transparent 70%);
}

.role-panel {
  position: absolute;
  inset: 0;
  padding: clamp(10px, 1.4vh, 16px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: clamp(4px, 0.7vh, 8px);
  transition: opacity 0.45s var(--ease-out-expo), transform 0.45s var(--ease-out-expo);
}

.role-panel-hover {
  opacity: 0;
  transform: scale(0.95);
  pointer-events: none;
}

.role:hover .role-panel-hover, .role:focus-within .role-panel-hover {
  opacity: 1;
  transform: scale(1);
}

.role:hover .role-panel-default, .role:focus-within .role-panel-default {
  opacity: 0;
  transform: scale(0.95);
}

.role-title {
  font-size: clamp(16px, 2.2vh, 22px);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  color: var(--fg);
  margin: 2px 0;
}

.role-count {
  font-size: var(--fs-4xl);
  font-weight: 500;
  line-height: 1;
  letter-spacing: -0.05em;
  color: var(--fg);
}

/* ========================================================
   CARD 6: LIVE CLOCK
   ======================================================== */
.clock-body {
  display: flex;
  height: 100%;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
}

/* ========================================================
   CARD 7: TEAM / MENTORSHIP
   ======================================================== */
.team-pile {
  position: relative;
  height: clamp(34px, 5.2vh, 56px);
  width: clamp(140px, 21vh, 230px);
}

.team-av {
  position: absolute;
  top: 0;
  left: calc(var(--i) * clamp(26px, 4vh, 44px));
  width: clamp(34px, 5.2vh, 56px);
  height: clamp(34px, 5.2vh, 56px);
  border-radius: 999px;
  border: 3px solid var(--card);
  overflow: hidden;
  display: grid;
  place-items: center;
  transition: transform 0.5s var(--ease-out-expo);
}

.team-more {
  background: var(--card-sunken);
  color: var(--muted);
  font-size: var(--fs-xs);
  font-family: var(--font-mono);
}

.dark .team-av, [data-theme="dark"] .team-av {
  filter: brightness(0.85);
}

.team:hover .team-av {
  transform: translateX(calc((var(--i) - 2) * 0.55vh)) translateY(-0.4vh);
}

/* ========================================================
   CARD 8: MAIN HEADING & POSITIONING
   ======================================================== */
.about-card {
  padding: var(--pad);
}

.main-heading-container {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.8vh;
  height: 100%;
}

.main-heading-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  align-self: flex-start;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: clamp(9px, 1vh, 10.5px);
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  border: 1px solid rgba(255, 106, 77, 0.25);
}

.pulse-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 8px var(--accent);
  animation: pulse-glow 2s ease-in-out infinite;
}

@keyframes pulse-glow {
  0%, 100% { opacity: 0.6; transform: scale(0.9); }
  50% { opacity: 1; transform: scale(1.15); }
}

.main-heading-hero {
  font-size: clamp(24px, 3.4vh, 34px);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.08;
  color: var(--fg);
  margin: 0;
}

.main-heading-sub {
  font-size: clamp(12px, 1.35vh, 14px);
  line-height: 1.45;
  color: var(--muted);
  margin: 0;
}

/* ========================================================
   CARD 9: HERO (WATERMARK, PORTRAIT & METADATA)
   ======================================================== */
.hero {
  container-type: inline-size;
}

.hero::after {
  display: none;
}

.hero-body {
  position: absolute;
  inset: 0;
  border-radius: var(--radius);
  background: var(--card);
  box-shadow: var(--shadow-card);
  overflow: hidden;
  transition: background-color 0.35s ease;
}

.hero-bg-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 6%;
  filter: contrast(1.04) brightness(0.98);
  border-radius: inherit;
  z-index: 1;
}

.hero-body::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  box-shadow: inset 0 0 0 1px var(--line);
  z-index: 4;
}

.hero-tint {
  position: absolute;
  inset: 0;
  z-index: 2;
  opacity: 0.85;
  background: linear-gradient(180deg, rgba(12, 12, 16, 0.05) 0%, rgba(12, 12, 16, 0.25) 55%, rgba(12, 12, 16, 0.88) 100%);
  transition: opacity 0.6s var(--ease-out-expo);
}

.hero:hover .hero-tint {
  opacity: 0.95;
}

.hero-name {
  position: absolute;
  left: 0;
  right: 0;
  top: clamp(14px, 2.2vh, 24px);
  bottom: auto;
  display: flex;
  justify-content: center;
  align-items: center;
  font-weight: 700;
  font-size: clamp(16px, 9.2cqw, 34px);
  line-height: 1;
  letter-spacing: -0.02em;
  color: rgba(255, 255, 255, 0.16);
  user-select: none;
  white-space: nowrap;
  transition: color 0.6s var(--ease-out-expo);
  z-index: 4;
  pointer-events: none;
  padding: 0 10px;
  box-sizing: border-box;
}

[data-theme="light"] .hero-name {
  color: rgba(0, 0, 0, 0.14);
}

.hero:hover .hero-name {
  color: rgba(255, 106, 77, 0.35);
}

.hero-meta {
  position: absolute;
  left: var(--pad);
  right: var(--pad);
  bottom: calc(var(--pad) * 1.2);
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 8px;
  z-index: 5;
  flex-wrap: wrap;
}

.hero-tag-badge {
  display: inline-block;
  padding: 4px 10px;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  font-family: var(--font-mono);
  font-size: clamp(9px, 1.05vh, 11px);
  letter-spacing: 0.04em;
  color: #ffffff;
  font-weight: 500;
  white-space: nowrap;
}

.hero-portrait {
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  height: 105%;
  width: 100%;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  pointer-events: none;
  z-index: 10;
}

.hero-img {
  height: 100%;
  width: auto;
  max-width: 100%;
  object-fit: contain;
  object-position: bottom center;
  filter: drop-shadow(0 18px 30px rgba(0,0,0,0.25)) saturate(1.08) contrast(1.03);
  -webkit-mask-image: linear-gradient(to bottom, #000 92%, transparent 100%);
  mask-image: linear-gradient(to bottom, #000 92%, transparent 100%);
}

@media (max-width: 1023px), (max-height: 600px) {
  .hero-portrait { height: 100%; }
  .hero-name { font-size: clamp(18px, 9cqw, 32px); top: 14px; bottom: auto; }
}

/* ========================================================
   CARD 10: DOCK (INVITE ME / HIRE ME PILLS)
   ======================================================== */
.dock-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  height: 100%;
  gap: 0.8vh;
  padding: 0.8vh;
}

.dock-cta {
  position: relative;
  display: flex;
  align-items: center;
  gap: 1vh;
  min-width: 0;
  padding: 0 1.2vh 0 1vh;
  border-radius: calc(var(--radius) - 0.8vh);
  text-decoration: none;
  overflow: hidden;
  isolation: isolate;
  transition: transform 0.35s var(--ease-out-expo), box-shadow 0.35s var(--ease-out-expo), background-color 0.35s;
}

.dock-cta:hover, .dock-cta:focus-visible { transform: translateY(-1px); }
.dock-cta:active { transform: translateY(0) scale(0.995); }

/* Invite Pill */
.dock-cta-invite {
  background: linear-gradient(135deg, #ff5e3a 0%, #ff3b14 100%);
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(255, 77, 46, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.dock-cta-invite .dock-cta-title {
  color: #ffffff;
  font-weight: 600;
}

.dock-cta-invite .dock-cta-sub {
  color: rgba(255, 255, 255, 0.85);
}

.dock-cta-invite .dock-cta-icon {
  background: rgba(255, 255, 255, 0.22);
  color: #ffffff;
}

.dock-cta-invite .dock-cta-arrow {
  color: #ffffff;
}

.dock-cta-invite:hover {
  box-shadow: 0 8px 24px rgba(255, 77, 46, 0.5);
  transform: translateY(-2px);
}

/* Hire Pill */
.dock-cta-hire {
  background: var(--card-raised);
  color: var(--fg);
  border: 1px solid var(--line-strong);
  box-shadow: var(--shadow-card);
}

.dock-cta-hire .dock-cta-title {
  color: var(--fg);
  font-weight: 600;
}

.dock-cta-hire .dock-cta-sub {
  color: var(--muted);
}

.dock-cta-hire .dock-cta-icon {
  background: rgba(34, 197, 94, 0.15);
  color: var(--ok);
}

.dock-cta-hire .dock-cta-arrow {
  color: var(--muted);
}

.dock-cta-hire:hover {
  border-color: rgba(34, 197, 94, 0.45);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
  transform: translateY(-2px);
}

.dock-cta-icon {
  display: grid;
  place-items: center;
  flex: none;
  width: 3.4vh;
  height: 3.4vh;
  min-width: 30px;
  min-height: 30px;
  border-radius: 999px;
  font-size: clamp(13px, 1.6vh, 18px);
  transition: transform 0.5s var(--ease-spring), color 0.3s;
}

.dock-cta:hover .dock-cta-icon {
  transform: rotate(-8deg) scale(1.06);
}

.dock-cta-text {
  display: flex;
  flex-direction: column;
  min-width: 0;
  gap: 0.25vh;
  line-height: 1.1;
}

.dock-cta-title {
  font-size: clamp(11px, 1.25vh, 13px);
  font-weight: 600;
  letter-spacing: -0.01em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.dock-cta-sub {
  font-size: var(--fs-2xs);
  letter-spacing: 0.01em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.dock-cta-arrow {
  margin-left: auto;
  flex: none;
  font-size: clamp(13px, 1.6vh, 18px);
  opacity: 0.55;
  transition: transform 0.35s var(--ease-out-expo), opacity 0.35s;
}

.dock-cta:hover .dock-cta-arrow {
  transform: translate(2px, -2px);
  opacity: 1;
}

@media (max-width: 1023px), (max-height: 600px) {
  .dock-inner { gap: 8px; padding: 8px; }
  .dock-cta { gap: 9px; padding: 0 10px 0 8px; border-radius: 16px; }
  .dock-cta-icon { width: 32px; height: 32px; font-size: 15px; }
  .dock-cta-title { font-size: 13.5px; }
  .dock-cta-sub { font-size: 10.5px; }
  .dock-cta-arrow { display: none; }
}

/* ========================================================
   CARD 11: EXPERIENCE TIMELINE
   ======================================================== */
.exp-list {
  position: relative;
  margin-top: 1.2vh;
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
  justify-content: space-evenly;
  padding-left: 2.2vh;
}

.exp-list::before {
  content: "";
  position: absolute;
  left: 0.55vh;
  top: 1vh;
  bottom: 1vh;
  width: 2px;
  border-radius: 2px;
  background: var(--line-strong);
}

.exp-item {
  position: relative;
}

.exp-dot {
  position: absolute;
  left: calc(-2.2vh + 0.55vh + 1px - 0.45vh);
  top: 0.8vh;
  width: 0.9vh;
  height: 0.9vh;
  min-width: 8px;
  min-height: 8px;
  border-radius: 999px;
  background: var(--muted);
  box-shadow: 0 0 0 3px var(--card);
  transition: background 0.3s, transform 0.3s;
}

.exp-item[data-open="true"] .exp-dot {
  background: var(--accent);
  transform: scale(1.25);
}

.exp-dot[data-current="true"]::after {
  content: "";
  position: absolute;
  inset: -3px;
  border-radius: 999px;
  border: 1.5px solid var(--accent);
  opacity: 0.6;
  animation: ping-soft 2.4s cubic-bezier(0,0,0.2,1) infinite;
}

.exp-head {
  display: block;
  width: 100%;
  text-align: left;
  background: none;
  border: 0;
  padding: 0;
  color: inherit;
  cursor: pointer;
}

.exp-period {
  font-size: var(--fs-2xs);
  color: var(--muted);
  white-space: nowrap;
  opacity: 0.85;
}

.exp-body {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.45s var(--ease-out-expo), opacity 0.35s;
  opacity: 0;
}

.exp-body > p {
  overflow: hidden;
}

.exp-item[data-open="true"] .exp-body {
  grid-template-rows: 1fr;
  opacity: 1;
  margin-top: 0.5vh;
}

@media (max-width: 1023px) {
  .exp-list { padding-left: 22px; }
  .exp-dot { left: -19px; }
}

/* ========================================================
   CARD 12: SIGNATURE AI ORB & ROTATING TEXT RING
   ======================================================== */
.ai-idle {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background: none;
  border: 0;
  cursor: pointer;
  transition: transform 0.35s var(--ease-out-expo);
}

.ai-ring {
  position: absolute;
  width: 86%;
  height: 86%;
  max-width: 86%;
  max-height: 86%;
  aspect-ratio: 1;
  animation: spin-rev 26s linear infinite;
}

.ai-ring-text {
  font-size: 15.5px;
  fill: var(--fg-2);
  letter-spacing: 0.06em;
  font-family: var(--font-sans);
}

.ai-card-orb {
  --orb: 46%;
}

.ai-orb {
  width: var(--orb);
  aspect-ratio: 1;
  max-width: 100%;
  transition: transform 0.5s var(--ease-spring);
  flex: none;
  place-items: center;
  display: grid;
  position: relative;
}

.ai-idle:hover .ai-card-orb {
  transform: scale(1.06);
}

.ai-orb-glow {
  background: var(--accent);
  filter: blur(calc(var(--orb) * 0.18));
  opacity: 0.45;
  border-radius: 999px;
  position: absolute;
  inset: 6%;
}

.ai-orb-core {
  background: radial-gradient(circle at 35% 30%, #ffb199 0%, var(--accent) 45%, #c93516 100%);
  width: 100%;
  height: 100%;
  box-shadow: inset 0 2px 4px rgba(255, 255, 255, 0.4), inset 0 -4px 8px rgba(0, 0, 0, 0.4);
  border-radius: 999px;
  place-items: center;
  display: flex;
  justify-content: center;
  gap: calc(var(--orb) * 0.14);
}

.ai-eye {
  width: calc(var(--orb) * 0.09);
  height: calc(var(--orb) * 0.28);
  background: #ffffff;
  border-radius: 999px;
  animation: ai-blink 4s ease-in-out infinite;
}

.ai-cta {
  position: absolute;
  left: 50%;
  bottom: calc(var(--pad) * 0.75);
  transform: translate(-50%, 4px);
  padding: 0.35em 0.8em;
  border-radius: 999px;
  background: var(--card-raised);
  color: var(--fg);
  font-size: var(--fs-2xs);
  font-weight: 500;
  letter-spacing: 0.02em;
  white-space: nowrap;
  box-shadow: var(--shadow-card), inset 0 0 0 1px var(--line);
  opacity: 0;
  transition: opacity 0.3s var(--ease-out-expo), transform 0.3s var(--ease-out-expo);
}

.ai-idle:hover .ai-cta, .ai-idle:focus-visible .ai-cta {
  opacity: 1;
  transform: translate(-50%, 0);
}

@media (max-width: 1023px) {
  .ai-ring-text { font-size: 15px; }
  .ai-cta { opacity: 1; transform: translate(-50%, 0); }
}

/* ========================================================
   CARD 13: STATUS, AVAILABILITY & DIRECT CONTACT
   ======================================================== */
.status {
  overflow: visible;
}

.status-card-inner {
  display: flex;
  height: 100%;
  flex-direction: column;
  justify-content: flex-start;
  padding: clamp(8px, 1.1vh, 12px);
  gap: clamp(4px, 0.7vh, 7px);
  box-sizing: border-box;
}

.status-indicator-row {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 1px;
}

.status-live-dot {
  position: relative;
  display: grid;
  width: 14px;
  height: 14px;
  flex: none;
  place-items: center;
}

.status-ping {
  position: absolute;
  inset: 0;
  border-radius: 999px;
  background: var(--ok);
  opacity: 0.45;
  animation: ping-soft 2.2s cubic-bezier(0,0,.2,1) infinite;
}

.status-dot-core {
  position: relative;
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: var(--ok);
  box-shadow: 0 0 8px var(--ok);
}

.status-badge-text {
  font-family: var(--font-mono);
  font-size: 9.5px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--ok);
}

.status-title {
  font-size: clamp(10.5px, 1.25vh, 12px);
  font-weight: 600;
  line-height: 1.2;
  color: var(--fg);
  text-wrap: balance;
  margin: 1px 0 0 0;
}

.status-loc {
  font-size: clamp(8px, 0.95vh, 9.5px);
  color: var(--muted);
  margin-top: 1px;
}

.status-notice-tag {
  display: inline-block;
  margin-left: 4px;
  font-size: 9px;
  padding: 1px 5px;
  border-radius: 4px;
  background: rgba(34, 197, 94, 0.12);
  color: #22c55e;
  border: 1px solid rgba(34, 197, 94, 0.25);
  font-weight: 500;
}

.status-chips-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 2.5px;
  margin: 1px 0;
}

.status-chip {
  display: inline-flex;
  align-items: center;
  padding: 1px 4.5px;
  border-radius: 4px;
  background: var(--card-sunken);
  border: 1px solid var(--border-soft);
  font-size: clamp(8px, 0.9vh, 9px);
  font-weight: 500;
  color: var(--fg-2);
  white-space: nowrap;
}

.status-actions-row {
  display: flex;
  align-items: center;
  gap: 5px;
  margin-top: 1px;
}

.status-btn-primary {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 4px 7px;
  border-radius: 7px;
  background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
  color: #ffffff;
  font-size: clamp(9.5px, 1.05vh, 11px);
  font-weight: 600;
  text-decoration: none;
  box-shadow: 0 2px 8px rgba(37, 211, 102, 0.22);
  transition: transform 0.2s, box-shadow 0.2s, filter 0.2s;
}

.status-btn-primary:hover {
  transform: translateY(-2px);
  filter: brightness(1.08);
  box-shadow: 0 5px 14px rgba(37, 211, 102, 0.35);
}

.status-btn-secondary {
  display: inline-grid;
  place-items: center;
  width: 30px;
  height: 30px;
  min-width: 30px;
  min-height: 30px;
  flex-shrink: 0;
  border-radius: 8px;
  background: var(--card-raised);
  border: 1px solid var(--border-soft);
  color: var(--fg);
  text-decoration: none;
  transition: transform 0.2s, background 0.2s;
}

.status-btn-secondary:hover {
  transform: translateY(-2px);
  background: var(--card-sunken);
}

.status-socials-row {
  width: 100%;
}

.status-links {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 0.5vh;
}

.status-links a {
  position: relative;
  display: grid;
  place-items: center;
  aspect-ratio: 1;
  width: 100%;
  max-height: 3.8vh;
  border-radius: clamp(6px, 0.9vh, 10px);
  background: var(--card-sunken);
  color: var(--fg-2);
  font-size: clamp(11px, 1.4vh, 15px);
  box-shadow: inset 0 0 0 1px var(--line);
  transition: background-color 0.25s, color 0.25s, transform 0.3s var(--ease-spring);
}

.status-links a:hover, .status-links a:focus-visible {
  background: var(--primary);
  color: var(--primary-fg);
  transform: translateY(-2px);
}

.status-links a::after {
  content: attr(data-tip);
  position: absolute;
  left: 50%;
  bottom: calc(100% + 8px);
  transform: translateX(-50%) translateY(4px);
  padding: 0.4em 0.65em;
  border-radius: 7px;
  background: var(--card-raised);
  color: var(--fg);
  font-size: var(--fs-2xs);
  white-space: nowrap;
  box-shadow: var(--shadow-pop), inset 0 0 0 1px var(--line);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s, transform 0.25s var(--ease-spring);
  z-index: 80;
}

.status-links a:hover::after, .status-links a:focus-visible::after {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

@media (max-width: 1023px), (max-height: 600px) {
  .status-links { grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 8px; }
  .status-links a { max-height: none; border-radius: 12px; font-size: 18px; }
  .status-links a::after { display: none; }
}

/* ========================================================
   CARD 14: EDUCATION & ACADEMIC CREDENTIALS
   ======================================================== */
.edu {
  overflow: hidden;
  position: relative;
}

.edu-card-inner {
  display: flex;
  height: 100%;
  flex-direction: column;
  justify-content: space-between;
  padding: clamp(10px, 1.4vh, 16px);
  gap: clamp(5px, 0.8vh, 8px);
  box-sizing: border-box;
  position: relative;
  z-index: 6;
}

.edu-badge-row {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 2px;
}

.edu-degree {
  font-size: clamp(13px, 1.6vh, 16px);
  font-weight: 600;
  line-height: 1.2;
  color: var(--fg);
  letter-spacing: -0.01em;
  margin: 0;
}

.edu-institute {
  font-size: clamp(10px, 1.2vh, 12px);
  color: var(--muted);
  line-height: 1.25;
  margin-top: 2px;
}

.edu-coursework {
  margin-top: 1px;
}

.edu-coursework-title {
  font-family: var(--font-mono);
  font-size: 9.5px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 3px;
}

.edu-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

.edu-chip {
  padding: 2px 5px;
  border-radius: 4px;
  background: var(--card-sunken);
  border: 1px solid var(--border-soft);
  font-family: var(--font-mono);
  font-size: clamp(8.5px, 1vh, 10px);
  color: var(--fg-2);
}

/* ========================================================
   CARD 14: EDUCATION & 3D GRADUATION STICKER
   ======================================================== */
.edu-sticker {
  position: absolute;
  right: -2%;
  bottom: -6%;
  width: 46%;
  max-width: 150px;
  transform: rotate(-10deg);
  transition: transform 0.6s var(--ease-out-expo);
  z-index: 5;
  pointer-events: none;
}

.card:hover .edu-sticker {
  transform: rotate(0deg) translateY(-2%);
}

/* ========================================================
   CARD 15: COMMUNITY & RESEARCH PUBLICATION
   ======================================================== */
.comm-fade {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, var(--card) 22%, transparent 70%);
  pointer-events: none;
}

/* ========================================================
   CARD 16: PROJECTS 3D STAGE & SLIDER
   ======================================================== */
.proj-btn {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: stretch;
  background: none;
  border: 0;
  padding: var(--pad);
  text-align: left;
  cursor: pointer;
  color: inherit;
}

.proj-left {
  display: flex;
  flex-direction: column;
  justify-content: center;
  flex: 0 0 34%;
  z-index: 2;
}

.proj-count {
  font-size: var(--fs-4xl);
  font-weight: 500;
  line-height: 0.9;
  letter-spacing: -0.06em;
  color: var(--fg);
}

.proj-label {
  margin-top: 0.9vh;
  font-size: var(--fs-xs);
  line-height: 1.15;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--muted);
  font-weight: 500;
}

.proj-cta {
  margin-top: 1.6vh;
  display: inline-flex;
  align-items: center;
  gap: 0.3em;
  font-size: var(--fs-xs);
  color: var(--fg-2);
  opacity: 0;
  transform: translateY(4px);
  transition: opacity 0.3s, transform 0.3s var(--ease-out-expo);
}

.proj:hover .proj-cta, .proj:focus-within .proj-cta {
  opacity: 1;
  transform: translateY(0);
}

.proj-stage {
  position: relative;
  flex: 1;
  min-width: 0;
  perspective: 1400px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

.proj-frame {
  position: relative;
  width: 100%;
  margin-right: -6%;
  transform: rotate(-2deg) rotateY(-7deg) rotateX(4deg) translateY(4%);
  transform-origin: center;
  transition: transform 0.7s var(--ease-out-expo);
}

.proj:hover .proj-frame {
  transform: rotate(0deg) rotateY(-3deg) rotateX(1.5deg) translateY(2%);
}

.proj-screen {
  position: relative;
  aspect-ratio: 16/10;
  border-radius: 1.6vh;
  overflow: hidden;
  background: transparent;
  box-shadow: 0 22px 50px rgba(0,0,0,0.22), 0 4px 12px rgba(0,0,0,0.08);
  container-type: inline-size;
}

.proj-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: scale(1.03);
  transition: opacity 0.7s var(--ease-out-expo), transform 0.9s var(--ease-out-expo);
}

.proj-slide[data-active="true"] {
  opacity: 1;
  transform: scale(1);
}

.proj-caption {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1vh;
  padding: 0.9vh 0.4vh 0;
  font-size: var(--fs-2xs);
  color: var(--muted);
  font-family: var(--font-mono);
}

.proj-dots {
  display: inline-flex;
  gap: 3px;
  flex: none;
}

.proj-dots i {
  width: 4px;
  height: 4px;
  border-radius: 999px;
  background: var(--line-strong);
  transition: background 0.3s, width 0.3s;
}

.proj-dots i[data-active="true"] {
  background: var(--fg);
  width: 10px;
}

@media (max-width: 1023px) {
  .proj-left { flex-basis: 38%; }
  .proj-frame {
    width: 100%;
    margin-right: -3%;
    transform: rotate(-1.5deg) rotateY(-5deg) rotateX(2deg) translateY(2%);
  }
  .proj-cta { opacity: 1; transform: none; }
}

/* ========================================================
   MODAL DIALOGS (PROJECT DETAIL & AI CHAT)
   ======================================================== */
.modal-scrim {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: var(--scrim);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  display: grid;
  place-items: center;
  padding: 16px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease;
}

.modal-scrim[data-open="true"] {
  opacity: 1;
  pointer-events: auto;
}

.modal-card {
  background: var(--card);
  width: min(760px, 100%);
  max-height: min(840px, 90vh);
  border-radius: 28px;
  box-shadow: var(--shadow-pop), inset 0 0 0 1px var(--line);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transform: scale(0.96) translateY(8px);
  transition: transform 0.4s var(--ease-out-expo);
}

.modal-scrim[data-open="true"] .modal-card {
  transform: scale(1) translateY(0);
}

.modal-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 22px;
  border-bottom: 1px solid var(--line);
}

.modal-close-btn {
  width: 36px;
  height: 36px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  color: var(--muted);
  background: var(--card-sunken);
  transition: color 0.2s, background 0.2s;
}

.modal-close-btn:hover {
  color: var(--fg);
  background: var(--card-raised);
}

.modal-body {
  padding: 24px;
  overflow-y: auto;
  scrollbar-width: thin;
}

/* AI Chat Styling */
.chat-body {
  flex: 1;
  min-height: 280px;
  max-height: 420px;
  overflow-y: auto;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.chat-bubble {
  max-width: 82%;
  padding: 12px 16px;
  border-radius: 18px;
  font-size: var(--fs-sm);
  line-height: 1.5;
}

.chat-bubble-ai {
  align-self: flex-start;
  background: var(--card-raised);
  color: var(--fg);
  border-bottom-left-radius: 4px;
  box-shadow: inset 0 0 0 1px var(--line);
}

.chat-bubble-user {
  align-self: flex-end;
  background: var(--primary);
  color: var(--primary-fg);
  border-bottom-right-radius: 4px;
}

.chat-input-bar {
  display: flex;
  gap: 10px;
  padding: 16px 20px;
  border-top: 1px solid var(--line);
  background: var(--card-sunken);
}

.chat-input {
  flex: 1;
  padding: 10px 16px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--fg);
  font-size: var(--fs-sm);
  outline: none;
}

.chat-input:focus {
  border-color: var(--accent);
}

.chat-send-btn {
  padding: 10px 20px;
  border-radius: 999px;
  background: var(--accent);
  color: #ffffff;
  font-size: var(--fs-sm);
  font-weight: 500;
  transition: opacity 0.2s;
}

.chat-send-btn:hover {
  opacity: 0.9;
}

/* Floating WhatsApp Redirect Button (IQ Home Tuitions Style) - LEFT SIDE */
.floating-whatsapp-btn {
  position: fixed;
  bottom: 24px;
  left: 24px;
  right: auto;
  z-index: 1000;
  width: 54px;
  height: 54px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.3s var(--ease-spring), filter 0.3s ease;
}

.floating-whatsapp-btn:hover {
  transform: scale(1.12);
}

.wa-img-icon {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 14px;
  filter: drop-shadow(0 6px 18px rgba(37, 211, 102, 0.55)) drop-shadow(0 2px 6px rgba(0, 0, 0, 0.3));
}

.wa-ripple-ring {
  position: absolute;
  inset: -4px;
  border-radius: 18px;
  border: 2px solid #25D366;
  opacity: 0.6;
  animation: wa-pulse 2.2s cubic-bezier(0, 0, 0.2, 1) infinite;
  pointer-events: none;
}

@keyframes wa-pulse {
  0% { transform: scale(0.95); opacity: 0.8; }
  50% { transform: scale(1.22); opacity: 0; }
  100% { transform: scale(1.28); opacity: 0; }
}

.wa-btn-tooltip {
  position: absolute;
  left: 66px;
  right: auto;
  background: #111827;
  color: #ffffff;
  padding: 5px 11px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 600;
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  transform: translateX(-6px);
  transition: opacity 0.2s, transform 0.2s;
  box-shadow: 0 4px 12px rgba(0,0,0,0.25);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.floating-whatsapp-btn:hover .wa-btn-tooltip {
  opacity: 1;
  transform: translateX(0);
}

/* Floating Theme Switcher Button - RIGHT SIDE */
.theme-switch-btn {
  position: fixed;
  bottom: 24px;
  right: 24px;
  top: auto;
  left: auto;
  z-index: 999;
  width: 44px;
  height: 44px;
  border-radius: 999px;
  background: var(--card-raised);
  color: var(--fg);
  border: 1px solid var(--border-soft);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.28), inset 0 0 0 1px var(--line-strong);
  display: grid;
  place-items: center;
  cursor: pointer;
  backdrop-filter: blur(12px);
  transition: transform 0.3s var(--ease-spring), background-color 0.3s, color 0.2s, box-shadow 0.3s;
}

.theme-switch-btn:hover {
  transform: scale(1.1) rotate(15deg);
  color: var(--accent);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.38), 0 0 14px var(--accent-soft);
}

@media (max-width: 640px) {
  .floating-whatsapp-btn {
    bottom: 18px;
    left: 18px;
    right: auto;
    width: 48px;
    height: 48px;
  }
  .wa-btn-tooltip {
    display: none;
  }
  .theme-switch-btn {
    bottom: 18px;
    right: 18px;
    width: 42px;
    height: 42px;
  }
}

/* Floating Visual Editor Shortcut */
.editor-shortcut-btn {
  position: fixed;
  bottom: 22px;
  right: 76px;
  top: auto;
  left: auto;
  z-index: 1000;
  width: 44px;
  height: 44px;
  border-radius: 999px;
  background: var(--card-raised);
  color: var(--fg);
  border: 1px solid var(--border-soft);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.32), inset 0 0 0 1px var(--line-strong);
  display: grid;
  place-items: center;
  cursor: pointer;
  text-decoration: none;
  backdrop-filter: blur(12px);
  transition: transform 0.3s var(--ease-spring), background-color 0.3s, color 0.2s, box-shadow 0.3s;
}

.editor-shortcut-btn:hover {
  transform: scale(1.1);
  color: var(--accent);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.45), 0 0 16px var(--accent-soft);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ========================================================
   ACHIEVEMENT GALLERY MODAL & PHOTO LIGHTBOX
   ======================================================== */
.gallery-nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.65);
  color: #ffffff;
  display: grid;
  place-items: center;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
  z-index: 10;
  border: 1px solid rgba(255, 255, 255, 0.2);
  transition: background-color 0.2s, transform 0.2s;
  backdrop-filter: blur(8px);
}

.gallery-prev-btn {
  left: 12px;
}

.gallery-next-btn {
  right: 12px;
}

.gallery-nav-btn:hover {
  background: rgba(0, 0, 0, 0.85);
  transform: translateY(-50%) scale(1.08);
}

.gallery-thumb-item {
  width: 80px;
  height: 56px;
  flex: none;
  border-radius: 10px;
  overflow: hidden;
  cursor: pointer;
  position: relative;
  opacity: 0.55;
  border: 2px solid transparent;
  transition: opacity 0.2s, border-color 0.2s, transform 0.2s;
}

.gallery-thumb-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 15%;
  display: block;
}

.gallery-thumb-item:hover {
  opacity: 0.85;
}

.gallery-thumb-item[data-active="true"] {
  opacity: 1;
  border-color: var(--accent);
  transform: translateY(-2px);
  box-shadow: var(--shadow-pop);
}

.thumb-badge {
  position: absolute;
  top: 3px;
  right: 3px;
  font-size: 9px;
  color: #f5b52a;
  line-height: 1;
  text-shadow: 0 1px 3px rgba(0,0,0,0.8);
  pointer-events: none;
}

/* Responsive micro-adjustments matching reference */
@media (max-width: 1023px), (max-height: 600px) {
  .status-links {
    grid-template-columns: repeat(6, minmax(0, 1fr)) !important;
    gap: 6px !important;
  }
  .status-links a {
    max-height: none !important;
    border-radius: 12px !important;
    font-size: 18px !important;
  }
  .status-links a::after {
    display: none !important;
  }
  .dock-inner {
    gap: 8px !important;
    padding: 8px !important;
  }
  .dock-cta {
    gap: 9px !important;
    padding: 0 10px 0 8px !important;
    border-radius: 16px !important;
  }
  .dock-cta-icon {
    width: 32px !important;
    height: 32px !important;
    font-size: 15px !important;
  }
  .dock-cta-title {
    font-size: 13.5px !important;
  }
  .dock-cta-sub {
    font-size: 10.5px !important;
  }
  .dock-cta-arrow {
    display: none !important;
  }
  .proj-left {
    flex-basis: 38% !important;
  }
  .proj-cta {
    opacity: 1 !important;
    transform: none !important;
  }
  .hero-portrait {
    height: 100% !important;
  }
  .hero-name {
    font-size: clamp(18px, 9cqw, 32px) !important;
    top: 14px !important;
    bottom: auto !important;
  }
  .awards-list {
    font-size: 13px !important;
  }
  .awards-trophy-wrap {
    padding: 0 0 6px !important;
  }
  .awards-strip-img {
    height: 70px !important;
    width: 100px !important;
  }
  .exp-list {
    padding-left: 22px !important;
  }
  .exp-dot {
    left: -19px !important;
  }
}

@media (max-width: 380px) {
  .dock-cta-sub {
    display: none !important;
  }
}


/* ─── IQ Home Tuitions Feature Card ─── */
.iq-brand-card {
  display: flex;
  height: 100%;
  flex-direction: column;
  justify-content: space-between;
  text-decoration: none;
  color: inherit;
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  background: linear-gradient(135deg, rgba(255, 122, 0, 0.08) 0%, rgba(20, 20, 26, 0.95) 100%);
  border: 1px solid rgba(255, 122, 0, 0.22);
  padding: var(--pad);
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.iq-brand-card:hover {
  transform: translateY(-2px);
  border-color: #ff7a00;
  box-shadow: 0 12px 32px rgba(255, 122, 0, 0.2);
}

.iq-logo-wrap {
  width: 48px;
  height: 48px;
  min-width: 48px;
  min-height: 48px;
  flex-shrink: 0;
  border-radius: 12px;
  background: #ffffff;
  display: grid;
  place-items: center;
  box-shadow: 0 4px 14px rgba(0,0,0,0.25);
  overflow: hidden;
  padding: 4px;
}

.iq-logo-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.iq-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 8px;
  border-radius: 999px;
  background: rgba(255, 122, 0, 0.15);
  color: #ff9d3b;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

/* Enhanced auto moving image transitions with cross-fade */
.awards-photo-track {
  animation: strip-scroll 28s linear infinite !important;
}

.awards-strip-img {
  transition: transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.4s ease, filter 0.4s ease, opacity 0.3s ease !important;
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.awards-strip-img:hover {
  transform: scale(1.08) translateY(-4px) !important;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.6) !important;
  border-color: var(--accent) !important;
  opacity: 1 !important;
}

/* Adjust experience list for 5+ roles without overflowing */
.exp-list {
  display: flex;
  flex-direction: column;
  gap: 1.1vh;
  margin-top: 1vh;
  overflow-y: auto;
  flex: 1;
  padding-right: 6px;
  padding-top: 4px;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.2) transparent;
}

[data-theme="light"] .exp-list {
  scrollbar-color: rgba(0, 0, 0, 0.2) transparent;
}

.exp-list::-webkit-scrollbar {
  width: 4px;
}

.exp-list::-webkit-scrollbar-track {
  background: transparent;
}

.exp-list::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.2);
  border-radius: 4px;
}

[data-theme="light"] .exp-list::-webkit-scrollbar-thumb {
  background: rgba(0, 0, 0, 0.15);
}

.exp-period {
  color: var(--muted);
  font-size: 10px !important;
}

/* ========================================================
   LIGHT MODE OVERRIDES ([data-theme="light"])
   ======================================================== */
[data-theme="light"] {
  --bg: #eceef2;
  --card: #ffffff;
  --card-raised: #f7f8fa;
  --card-sunken: #e5e7ec;
  --fg: #0f1117;
  --fg-2: #383b45;
  --muted: #6b7280;
  --line: rgba(0, 0, 0, 0.08);
  --line-strong: rgba(0, 0, 0, 0.14);
  --accent: #ff4d2e;
  --accent-soft: rgba(255, 77, 46, 0.12);
  --shadow-card: 0 4px 16px rgba(0, 0, 0, 0.06);
  --shadow-pop: 0 16px 40px rgba(0, 0, 0, 0.12);
}

[data-theme="light"] .role-panel-default {
  background: linear-gradient(135deg, rgba(255, 122, 0, 0.08) 0%, rgba(255, 255, 255, 0.95) 100%);
}

[data-theme="light"] .hero-name {
  color: rgba(0, 0, 0, 0.12);
}

[data-theme="light"] .hero:hover .hero-name {
  color: rgba(255, 77, 46, 0.22);
}

[data-theme="light"] .icon-tile {
  background: #ffffff;
  box-shadow: 0 1px 4px rgba(0,0,0,0.08);
  border-color: rgba(0,0,0,0.08);
}
