:root {
  --bg: #07111f;
  --bg-soft: #0c1a2e;
  --surface: rgba(12, 20, 37, 0.68);
  --surface-strong: rgba(16, 27, 48, 0.9);
  --surface-bright: rgba(232, 239, 255, 0.08);
  --text: #f4f7ff;
  --muted: #9fb1d1;
  --line: rgba(206, 221, 255, 0.12);
  --accent: #7ce0ff;
  --accent-strong: #6f87ff;
  --accent-warm: #7ce0ff;
  --success: #7ce0ff;
  --shadow: 0 26px 80px rgba(0, 0, 0, 0.35);
  --radius-xl: 32px;
  --radius-lg: 24px;
  --radius-md: 18px;
  --max-width: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 1rem;
}

body {
  margin: 0;
  font-family: "Outfit", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 20% 20%, rgba(111, 135, 255, 0.24), transparent 26%),
    radial-gradient(circle at 80% 10%, rgba(124, 224, 255, 0.18), transparent 24%),
    radial-gradient(circle at 50% 80%, rgba(124, 224, 255, 0.1), transparent 22%),
    linear-gradient(180deg, #040b15 0%, #091120 42%, #07111f 100%);
  min-height: 100vh;
  overflow-x: hidden;
}

body::before,
body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
}

body::before {
  background:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 90px 90px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.75), transparent 96%);
}

body::after {
  background: radial-gradient(circle at center, transparent 58%, rgba(3, 8, 15, 0.72) 100%);
}

main {
  position: relative;
}

main::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(115deg, transparent 0 42%, rgba(124, 224, 255, 0.045) 48%, transparent 54%),
    linear-gradient(65deg, transparent 0 58%, rgba(111, 135, 255, 0.04) 64%, transparent 70%);
  background-size: 160% 160%;
  animation: light-sweep 18s ease-in-out infinite alternate;
  z-index: 0;
}

.cursor-glow {
  position: fixed;
  width: 280px;
  height: 280px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(124, 224, 255, 0.16), transparent 68%);
  pointer-events: none;
  transform: translate(-50%, -50%);
  z-index: 0;
  transition: opacity 180ms ease;
}

.noise {
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.08;
  background-image:
    radial-gradient(circle at 20% 20%, rgba(255, 255, 255, 0.3) 0 1px, transparent 1px),
    radial-gradient(circle at 80% 30%, rgba(255, 255, 255, 0.2) 0 1px, transparent 1px),
    radial-gradient(circle at 60% 70%, rgba(255, 255, 255, 0.26) 0 1px, transparent 1px);
  background-size: 180px 180px;
}

a {
  color: inherit;
}

::selection {
  color: #04101d;
  background: var(--accent);
}

:focus-visible {
  outline: 2px solid rgba(124, 224, 255, 0.82);
  outline-offset: 4px;
}

.skip-link {
  position: fixed;
  left: 1rem;
  top: 1rem;
  z-index: 100;
  transform: translateY(-140%);
  padding: 0.75rem 1rem;
  border-radius: 999px;
  color: #04101d;
  background: var(--accent);
  text-decoration: none;
  font-weight: 800;
  transition: transform 180ms ease;
}

.skip-link:focus-visible {
  transform: translateY(0);
}

.site-header,
.section,
.marquee-strip {
  width: min(var(--max-width), calc(100% - 2rem));
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.65rem 0.95rem;
  position: relative;
  z-index: 20;
  border: 1px solid rgba(206, 221, 255, 0.12);
  border-radius: 12px;
  background: rgba(8, 12, 20, 0.72);
  backdrop-filter: blur(18px);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.28);
}

.brand,
.nav-links a,
.contact-actions a {
  text-decoration: none;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-family: "Sora", sans-serif;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.82rem;
}

.brand-mark {
  width: 4px;
  height: 18px;
  border-radius: 999px;
  background: var(--accent-warm);
  box-shadow: 7px 0 0 rgba(111, 135, 255, 0.32);
}

.nav-links {
  display: flex;
  gap: 0.2rem;
  flex-wrap: wrap;
  color: var(--muted);
}

.nav-links a {
  padding: 0.45rem 0.7rem;
  border: 1px solid transparent;
  border-radius: 8px;
  font-size: 0.82rem;
  font-weight: 600;
  transition: border-color 180ms ease, color 180ms ease, background-color 180ms ease;
}

.nav-icon-link {
  width: 34px;
  min-width: 34px;
  height: 34px;
  display: inline-grid;
  place-items: center;
  padding: 0;
}

.nav-icon {
  width: 17px;
  height: 17px;
  fill: currentColor;
}

.nav-links a:hover,
.nav-links a:focus-visible,
.nav-links a.is-active {
  color: var(--text);
  border-color: rgba(124, 224, 255, 0.22);
  background: rgba(124, 224, 255, 0.07);
}

.section {
  padding: 5rem 1.1rem;
  border: 1px solid transparent;
  border-radius: var(--radius-lg);
  transition: border-color 220ms ease, box-shadow 220ms ease, background-color 220ms ease;
}

.section:not(.hero):hover {
  border-color: rgba(206, 221, 255, 0.18);
  background: rgba(255, 255, 255, 0.015);
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.18);
}

.top-showcase {
  width: min(var(--max-width), calc(100% - 2rem));
  margin: 1.4rem auto 0;
  position: relative;
  z-index: 1;
}

.top-showcase-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  align-items: center;
  gap: 2rem;
  perspective: 1400px;
}

.top-kicker {
  margin: 0;
  font-family: "Sora", sans-serif;
  font-size: clamp(0.95rem, 2.2vw, 1.25rem);
  font-weight: 800;
  letter-spacing: 0.16em;
  color: var(--accent);
  text-align: center;
}

.top-photo-frame {
  width: 100%;
  aspect-ratio: 16 / 9;
  position: relative;
  overflow: hidden;
  border-radius: 20px;
  border: 1px solid rgba(206, 221, 255, 0.18);
  background: rgba(255, 255, 255, 0.04);
  box-shadow:
    0 28px 80px rgba(0, 0, 0, 0.46),
    0 0 0 1px rgba(124, 224, 255, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
  transform: perspective(1200px) rotateX(1.2deg);
}

.top-photo-frame img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 7%;
}

.top-photo-frame::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(7, 17, 31, 0.08), transparent 35%, rgba(7, 17, 31, 0.35)),
    linear-gradient(90deg, rgba(124, 224, 255, 0.08), transparent 28%, transparent 72%, rgba(111, 135, 255, 0.08));
  z-index: 1;
}

.top-photo-badge {
  position: absolute;
  left: 1rem;
  bottom: 1rem;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.7rem 0.9rem;
  border-radius: 999px;
  border: 1px solid rgba(206, 221, 255, 0.16);
  background: rgba(7, 17, 31, 0.72);
  color: var(--text);
  font-size: 0.86rem;
  font-weight: 700;
  backdrop-filter: blur(14px);
}

.top-photo-badge span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 18px rgba(124, 224, 255, 0.78);
}

.cloud-cube-scene {
  position: relative;
  min-height: 320px;
  display: grid;
  place-items: center;
  transform-style: preserve-3d;
}

.cloud-cube-scene::before {
  content: "";
  position: absolute;
  width: 210px;
  height: 210px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(124, 224, 255, 0.18), transparent 68%);
  filter: blur(4px);
  transform: translateZ(-80px);
}

.cloud-cube {
  position: relative;
  width: 132px;
  height: 132px;
  transform-style: preserve-3d;
  animation: cloud-cube-spin 16s linear infinite;
}

.cube-face {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  border: 1px solid rgba(206, 221, 255, 0.22);
  background:
    linear-gradient(135deg, rgba(124, 224, 255, 0.24), rgba(111, 135, 255, 0.1)),
    rgba(7, 17, 31, 0.72);
  color: var(--text);
  font-family: "Sora", sans-serif;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  box-shadow: inset 0 0 28px rgba(124, 224, 255, 0.08);
  backface-visibility: hidden;
}

.cube-front {
  transform: translateZ(66px);
}

.cube-back {
  transform: rotateY(180deg) translateZ(66px);
}

.cube-right {
  transform: rotateY(90deg) translateZ(66px);
}

.cube-left {
  transform: rotateY(-90deg) translateZ(66px);
}

.cube-top {
  transform: rotateX(90deg) translateZ(66px);
}

.cube-bottom {
  transform: rotateX(-90deg) translateZ(66px);
}

.orbit-ring,
.orbit-node {
  position: absolute;
  pointer-events: none;
}

.orbit-ring {
  width: 260px;
  height: 260px;
  border: 1px solid rgba(124, 224, 255, 0.16);
  border-radius: 50%;
  transform-style: preserve-3d;
}

.orbit-ring-a {
  transform: rotateX(68deg) rotateZ(20deg);
  animation: orbit-roll-a 12s linear infinite;
}

.orbit-ring-b {
  width: 310px;
  height: 310px;
  transform: rotateY(68deg) rotateZ(-18deg);
  animation: orbit-roll-b 15s linear infinite reverse;
}

.orbit-node {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 20px rgba(124, 224, 255, 0.9);
}

.node-a {
  top: 42px;
  right: 78px;
}

.node-b {
  left: 52px;
  bottom: 62px;
}

.node-c {
  right: 46px;
  bottom: 92px;
}

.hero {
  min-height: auto;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 2.4rem;
  align-items: center;
  margin-top: 4rem;
}

.eyebrow,
.project-tag,
.panel-label {
  text-transform: uppercase;
  letter-spacing: 0.22em;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--accent);
}

h1,
h2,
h3 {
  margin: 0;
  font-family: "Sora", sans-serif;
}

h1 {
  font-size: clamp(2.6rem, 6vw, 4.6rem);
  line-height: 1;
  max-width: 10ch;
  margin-top: 0.8rem;
}

h2 {
  font-size: clamp(1.5rem, 3vw, 2.5rem);
  line-height: 1.12;
}

h3 {
  font-size: 1.15rem;
}

.hero-text,
.about-card p,
.project-body p,
.process-copy p,
.contact-shell p,
.stack-card p,
.journey-body p,
.edu-card p,
.journey-body li,
.resume-card p,
.tool-card p,
.cert-listing li,
.contact-form label span,
.repo-item p,
.stat-box p {
  font-size: 0.95rem;
  line-height: 1.7;
  color: var(--muted);
}

.hero-actions,
.hero-metrics,
.chip-row,
.signal-row,
.contact-actions,
.cert-list,
.resume-actions,
.github-stats,
.modal-points {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.hero-actions {
  margin-top: 2rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 168px;
  padding: 0.95rem 1.4rem;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 700;
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-2px);
}

.button-primary {
  color: #04101d;
  background: linear-gradient(135deg, var(--accent), #c6f4ff);
  box-shadow: 0 16px 42px rgba(124, 224, 255, 0.26);
}

.button-secondary {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.04);
}

.button-ghost {
  border: 1px solid rgba(124, 224, 255, 0.22);
  background: rgba(124, 224, 255, 0.08);
}

.button-ghost:hover,
.button-ghost:focus-visible {
  box-shadow: 0 16px 32px rgba(124, 224, 255, 0.18);
}

.hero-metrics {
  margin-top: 2.4rem;
}

.hero-metrics article,
.about-card,
.project-card,
.blog-card,
.stack-card,
.journey-card,
.contact-shell,
.floating-panel,
.panel-section,
.edu-card,
.github-card,
.modal-card,
.resume-card,
.tool-card,
.cert-column,
.contact-form,
.repo-item,
.stat-box {
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.02));
  box-shadow: var(--shadow);
  backdrop-filter: blur(22px);
}

.about-card,
.resume-card,
.tool-card,
.project-card,
.blog-card,
.edu-card,
.cert-column,
.contact-form,
.github-dashboard img {
  transition: transform 220ms ease, border-color 220ms ease, box-shadow 220ms ease;
  transform-style: preserve-3d;
}

.about-card:hover,
.resume-card:hover,
.tool-card:hover,
.project-card:hover,
.blog-card:hover,
.edu-card:hover,
.cert-column:hover,
.contact-form:hover,
.github-dashboard img:hover {
  border-color: rgba(124, 224, 255, 0.28);
  box-shadow:
    0 26px 70px rgba(0, 0, 0, 0.34),
    0 0 42px rgba(124, 224, 255, 0.08);
  transform: perspective(900px) rotateX(2deg) rotateY(-2deg) translateY(-5px);
}

.hero-metrics article {
  flex: 1 1 160px;
  padding: 1.2rem;
  border-radius: var(--radius-md);
}

.hero-metrics span,
.journey-meta span,
.edu-card span {
  display: inline-block;
  font-family: "Sora", sans-serif;
  font-size: 1rem;
  color: var(--accent);
  margin-bottom: 0.45rem;
}

.hero-visual {
  perspective: 1800px;
}

.orbital-scene {
  position: relative;
  min-height: 700px;
  border-radius: 38px;
  overflow: hidden;
  transform-style: preserve-3d;
  background:
    radial-gradient(circle at 50% 35%, rgba(124, 224, 255, 0.16), transparent 16%),
    linear-gradient(180deg, rgba(13, 24, 45, 0.96), rgba(6, 13, 24, 0.9));
  border: 1px solid rgba(206, 221, 255, 0.14);
  box-shadow: 0 34px 100px rgba(0, 0, 0, 0.45);
}

.orbital-scene::before {
  content: "";
  position: absolute;
  inset: 9%;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.06);
  transform: translateZ(30px);
}

.scene-ring,
.hero-sphere,
.floating-panel {
  position: absolute;
}

.scene-ring {
  left: 50%;
  top: 50%;
  border-radius: 50%;
  border: 1px solid rgba(124, 224, 255, 0.18);
  transform-style: preserve-3d;
}

.ring-one {
  width: 420px;
  height: 420px;
  transform: translate(-50%, -50%) rotateX(72deg);
}

.ring-two {
  width: 520px;
  height: 520px;
  transform: translate(-50%, -50%) rotateX(72deg) rotateY(30deg);
}

.ring-three {
  width: 620px;
  height: 620px;
  transform: translate(-50%, -50%) rotateX(72deg) rotateY(-25deg);
}

.floating-panel {
  border-radius: var(--radius-lg);
  padding: 1.25rem;
}

.panel-main {
  top: 10%;
  left: 8%;
  width: min(360px, 70%);
  transform: translateZ(90px);
}

.panel-side {
  top: 22%;
  right: 6%;
  width: 220px;
  transform: translateZ(130px);
}

.panel-bottom {
  left: 12%;
  bottom: 12%;
  width: 300px;
  transform: translateZ(110px);
}

.mini-list {
  margin: 1rem 0 0;
  padding-left: 1rem;
  color: var(--muted);
  line-height: 1.8;
}

.signal-row span,
.chip-row span,
.cert-list span {
  border-radius: 999px;
  border: 1px solid rgba(206, 221, 255, 0.14);
  background: rgba(255, 255, 255, 0.05);
  padding: 0.55rem 0.85rem;
  font-size: 0.92rem;
}

.hero-sphere {
  inset: 0;
  display: grid;
  place-items: center;
  transform: translateZ(150px);
}

.sphere-core,
.sphere-halo {
  position: absolute;
  border-radius: 50%;
}

.sphere-core {
  width: 210px;
  height: 210px;
  background:
    radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.85), rgba(124, 224, 255, 0.35) 35%, rgba(111, 135, 255, 0.22) 60%, rgba(3, 8, 15, 0.05) 100%);
  box-shadow:
    inset -24px -24px 60px rgba(0, 0, 0, 0.28),
    0 0 80px rgba(111, 135, 255, 0.32);
}

.sphere-halo {
  width: 320px;
  height: 320px;
  border: 1px solid rgba(124, 224, 255, 0.18);
  box-shadow: 0 0 60px rgba(124, 224, 255, 0.18);
}

.marquee-strip {
  overflow: hidden;
  padding-bottom: 1rem;
}

.marquee-track {
  display: flex;
  gap: 1rem;
  min-width: max-content;
  animation: marquee 22s linear infinite;
}

.marquee-track span {
  padding: 0.8rem 1.15rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.04);
  color: var(--muted);
}

.about-layout .section-heading,
.section-heading {
  margin-bottom: 2rem;
  max-width: 940px;
}

.section-heading .eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  margin-bottom: 0.85rem;
  font-size: 0.82rem;
}

.section-heading .eyebrow::after {
  content: "";
  width: 58px;
  height: 1px;
  background: linear-gradient(90deg, var(--accent), transparent);
}

.section-heading h2 {
  font-size: clamp(2rem, 4.4vw, 3.35rem);
  line-height: 1.04;
  max-width: 920px;
}

.centered-heading {
  margin-inline: auto;
  text-align: center;
}

.centered-heading .eyebrow {
  justify-content: center;
}

.centered-heading .eyebrow::before {
  content: "";
  width: 58px;
  height: 1px;
  background: linear-gradient(270deg, var(--accent), transparent);
}

.centered-heading h2 {
  margin-inline: auto;
}

.section-heading.compact {
  margin-bottom: 1.25rem;
}

.about-grid-pro,
.stack-grid,
.projects-grid,
.blog-grid,
.dual-grid,
.github-grid {
  display: grid;
  gap: 1.4rem;
}

.resume-grid,
.tool-grid,
.education-grid,
.cert-columns,
.contact-grid {
  display: grid;
  gap: 1.4rem;
}

.about-grid-pro,
.stack-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.resume-grid,
.github-grid,
.education-grid,
.contact-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.cert-columns {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.resume-card,
.tool-card,
.cert-column,
.contact-form {
  padding: 1.6rem;
  border-radius: var(--radius-lg);
}

.resume-note {
  margin-top: 1rem;
}

.tool-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-bottom: 1.4rem;
}

.filter-pill {
  padding: 0.8rem 1rem;
  border-radius: 999px;
  border: 1px solid rgba(206, 221, 255, 0.12);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
  cursor: pointer;
  font: inherit;
  font-weight: 600;
  transition: transform 180ms ease, background-color 180ms ease, border-color 180ms ease;
}

.filter-pill:hover,
.filter-pill:focus-visible {
  transform: translateY(-2px);
  border-color: rgba(124, 224, 255, 0.45);
}

.filter-pill.is-active {
  background: linear-gradient(135deg, var(--accent), var(--accent-strong));
  border-color: transparent;
  box-shadow: 0 14px 36px rgba(124, 224, 255, 0.28);
}

.tool-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 18px;
}

.tool-card {
  padding: 16px;
  border-radius: 16px;
  text-decoration: none;
  transition: all 0.25s ease;
  min-height: auto; /* ✅ IMPORTANT FIX */
}

.tool-card:hover,
.tool-card:focus-within {
  transform: translateY(-4px);
  border-color: rgba(124, 224, 255, 0.34);
}

.tool-inner {
  display: flex;
  align-items: center;
  gap: 14px;
}

.tool-logo {
  width: 36px;
  height: 36px;
  flex-shrink: 0;
}

.tool-content h3 {
  font-size: 16px;
  margin-bottom: 4px;
}

.tool-content p {
  font-size: 13px;
  color: rgba(255,255,255,0.65);
}

.tool-card.is-hidden {
  display: none;
}

.tool-card {
  background: rgba(255,255,255,0.04);
}

.tool-card:hover {
  transform: translateY(-6px);
  border-color: rgba(255,255,255,0.2);
  box-shadow: 0 10px 30px rgba(0,0,0,0.4);
}

.tool-icon {
  width: 46px;
  height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  margin-bottom: 1rem;
  font-family: "Sora", sans-serif;
  font-size: 0.9rem;
  font-weight: 700;
  background: linear-gradient(135deg, rgba(124, 224, 255, 0.24), rgba(111, 135, 255, 0.24));
  color: var(--text);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.tool-card h3 {
  margin-bottom: 0.35rem;
}

.about-card,
.stack-card,
.panel-section {
  padding: 1.6rem;
  border-radius: var(--radius-lg);
}

.projects-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.blog-section {
  perspective: 1600px;
}

.blog-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.blog-card {
  position: relative;
  min-height: 280px;
  padding: 1.35rem;
  border-radius: 22px;
  overflow: hidden;
  text-decoration: none;
  transform-style: preserve-3d;
}

.blog-card::before,
.blog-card::after {
  content: "";
  position: absolute;
  pointer-events: none;
}

.blog-card::before {
  inset: 0;
  background:
    radial-gradient(circle at 20% 12%, rgba(124, 224, 255, 0.2), transparent 32%),
    linear-gradient(135deg, rgba(124, 224, 255, 0.08), rgba(111, 135, 255, 0.035));
  opacity: 0.9;
}

.blog-card::after {
  width: 150px;
  height: 150px;
  right: -54px;
  bottom: -54px;
  border-radius: 50%;
  border: 1px solid rgba(124, 224, 255, 0.18);
  box-shadow: inset 0 0 40px rgba(124, 224, 255, 0.08);
}

.blog-card > * {
  position: relative;
  z-index: 1;
}

.blog-card h3 {
  margin-top: 1rem;
  font-size: 1.18rem;
}

.blog-card p:not(.project-tag) {
  color: var(--muted);
  line-height: 1.7;
}

.blog-card a {
  display: inline-flex;
  width: fit-content;
  margin-top: 1rem;
  padding: 0.75rem 0.9rem;
  border-radius: 999px;
  border: 1px solid rgba(206, 221, 255, 0.16);
  color: var(--text);
  background: rgba(255, 255, 255, 0.045);
  text-decoration: none;
  font-weight: 700;
  transition: transform 180ms ease, border-color 180ms ease, background-color 180ms ease;
}

.blog-card a:hover,
.blog-card a:focus-visible {
  transform: translateY(-2px);
  border-color: rgba(124, 224, 255, 0.45);
  background: rgba(124, 224, 255, 0.08);
}

.github-dashboard {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.github-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.github-row:last-child {
  grid-template-columns: 1fr;
}

.github-dashboard img {
  width: 100%;
  border-radius: 12px;
}

.readme-preview {
  margin-top: 1rem;
  padding: 1rem;
  border-radius: 18px;
  border: 1px solid rgba(206, 221, 255, 0.12);
  background: rgba(255, 255, 255, 0.03);
  color: var(--muted);
  white-space: pre-wrap;
  font-size: 0.92rem;
  line-height: 1.7;
  max-height: 420px;
  overflow: auto;
}

.stat-box {
  flex: 1 1 150px;
  padding: 1.1rem;
  border-radius: 18px;
}

.stat-box span {
  display: block;
  font-family: "Sora", sans-serif;
  font-size: 1.8rem;
  margin-bottom: 0.35rem;
}

.inline-link {
  display: inline-flex;
  margin-top: 1rem;
  color: var(--accent);
  text-decoration: none;
  font-weight: 700;
}

.repo-list {
  display: grid;
  gap: 0.9rem;
  margin-top: 1rem;
}

.repo-item {
  padding: 1rem;
  border-radius: 18px;
}

.repo-item h3 {
  font-size: 1.1rem;
  margin-bottom: 0.35rem;
}

.activity-list {
  display: grid;
  gap: 0.9rem;
  margin-top: 1rem;
}

.project-card {
  border-radius: 22px;
  overflow: hidden;
  transform-style: preserve-3d;
}

.project-visual {
  position: relative;
  min-height: 150px;
  overflow: hidden;
  perspective: 900px;
}

.project-visual::before,
.project-visual::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 44%;
  height: 42%;
  border: 1px solid rgba(206, 221, 255, 0.14);
  border-radius: 16px;
  background:
    linear-gradient(135deg, rgba(124, 224, 255, 0.18), rgba(111, 135, 255, 0.08)),
    rgba(255, 255, 255, 0.035);
  box-shadow: 0 18px 32px rgba(0, 0, 0, 0.22);
  transform-style: preserve-3d;
}

.project-visual::before {
  transform: translate(-50%, -42%) rotateX(62deg) rotateZ(-35deg) translateZ(22px);
}

.project-visual::after {
  transform: translate(-50%, -22%) rotateX(62deg) rotateZ(-35deg) translateZ(-18px);
  opacity: 0.56;
}

.gradient-a {
  background: linear-gradient(135deg, rgba(111, 135, 255, 0.32), rgba(8, 18, 35, 0.2));
}

.gradient-b {
  background: linear-gradient(135deg, rgba(124, 224, 255, 0.28), rgba(8, 18, 35, 0.2));
}

.gradient-c {
  background: linear-gradient(135deg, rgba(111, 135, 255, 0.24), rgba(124, 224, 255, 0.14));
}

.project-orb {
  position: absolute;
  width: 118px;
  height: 118px;
  border-radius: 50%;
  top: 24%;
  left: 16%;
  background: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.78), rgba(255, 255, 255, 0.12) 38%, transparent 72%);
  box-shadow: 0 0 60px rgba(255, 255, 255, 0.16);
}

.project-grid {
  position: absolute;
  inset: 12%;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  transform: perspective(1200px) rotateX(68deg) translateZ(36px);
}

.project-body {
  padding: 1.15rem;
}

.project-body h3 {
  font-size: 1rem;
}

.project-body p {
  font-size: 0.88rem;
  line-height: 1.55;
}

.project-body .chip-row {
  gap: 0.55rem;
}

.project-body .chip-row span {
  padding: 0.42rem 0.68rem;
  font-size: 0.78rem;
}

.detail-button,
.modal-close {
  font: inherit;
  cursor: pointer;
  border: 0;
}

.detail-button {
  margin-top: 1.2rem;
  padding: 0.85rem 1rem;
  border-radius: 999px;
  color: var(--text);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(206, 221, 255, 0.14);
  transition: transform 180ms ease, border-color 180ms ease, background-color 180ms ease;
}

.detail-button:hover,
.detail-button:focus-visible {
  transform: translateY(-2px);
  border-color: rgba(124, 224, 255, 0.4);
  background: rgba(124, 224, 255, 0.08);
}

.journey-list,
.education-list {
  display: grid;
  gap: 1rem;
}

.journey-card {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 1rem;
  padding: 1.5rem;
  border-radius: var(--radius-lg);
}

.journey-meta strong {
  display: block;
  font-family: "Sora", sans-serif;
  font-size: 1.2rem;
}

.journey-body ul {
  margin: 1rem 0 0;
  padding-left: 1.2rem;
}

.experience-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 1.2rem;
}

.experience-panel {
  padding: 1rem;
  border-radius: 16px;
  border: 1px solid rgba(206, 221, 255, 0.12);
  background: rgba(255, 255, 255, 0.03);
}

.experience-panel h4 {
  margin: 0 0 0.4rem;
  font-family: "Sora", sans-serif;
  font-size: 0.98rem;
}

.dual-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.edu-card {
  padding: 1.5rem;
  border-radius: var(--radius-lg);
}

.edu-top {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 1rem;
}

.edu-badge {
  padding: 0.55rem 0.9rem;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(102, 156, 255, 0.95), rgba(61, 122, 255, 0.88));
  color: #eaf2ff;
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 700;
}

.edu-subtitle {
  margin: 0.3rem 0 1rem;
  font-weight: 600;
  color: #c6f4ff;
}

.edu-meta {
  padding: 0.85rem 1rem;
  border-radius: 14px;
  border-left: 3px solid var(--accent);
  background: rgba(124, 224, 255, 0.08);
  margin-bottom: 0.85rem;
}

.edu-meta.secondary {
  border-left-color: rgba(102, 156, 255, 0.95);
  background: rgba(102, 156, 255, 0.08);
}

.cert-listing {
  margin: 1rem 0 0;
  padding-left: 1.1rem;
  line-height: 1.9;
}

.cert-column {
  min-height: 100%;
}

.contact-grid {
  align-items: start;
  grid-template-columns: minmax(0, 0.9fr);
  justify-content: center;
}

.contact-shell {
  padding: 2.2rem;
  border-radius: 34px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.direct-reach-bar {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 180px;
  align-items: center;
  gap: 2rem;
  width: min(var(--max-width), calc(100% - 2rem));
  margin: 1rem auto 1.4rem;
  padding: 1.45rem;
  border-radius: 28px;
  border: 1px solid var(--line);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.025));
  box-shadow: var(--shadow);
  backdrop-filter: blur(22px);
}

.direct-reach-copy {
  display: grid;
  gap: 0.95rem;
}

.direct-reach-copy h3 {
  font-size: clamp(1.45rem, 3vw, 2.35rem);
}

.direct-reach-details {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  color: var(--muted);
}

.direct-reach-details span,
.direct-reach-details a {
  padding: 0.65rem 0.85rem;
  border-radius: 999px;
  border: 1px solid rgba(206, 221, 255, 0.14);
  background: rgba(255, 255, 255, 0.04);
  text-decoration: none;
}

.direct-reach-photo {
  width: 180px;
  aspect-ratio: 1;
  border-radius: 24px;
  object-fit: contain;
  border: 1px solid rgba(206, 221, 255, 0.2);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.28);
}

.contact-actions a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.9rem 1rem;
  min-width: 140px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.04);
  transition: transform 180ms ease, border-color 180ms ease;
}

.contact-actions a:hover,
.contact-actions a:focus-visible {
  transform: translateY(-2px);
  border-color: rgba(124, 224, 255, 0.35);
}

.contact-form label {
  display: grid;
  gap: 0.45rem;
}

.contact-form label span {
  font-weight: 600;
}

.form-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  border: 1px solid rgba(206, 221, 255, 0.14);
  border-radius: 16px;
  padding: 0.95rem 1rem;
  font: inherit;
  color: var(--text);
  background: rgba(255, 255, 255, 0.04);
}

.contact-form textarea {
  resize: vertical;
}

.contact-form {
  display: grid;
  gap: 1rem;
}

.submit-button {
  width: fit-content;
}

.site-footer {
  width: min(var(--max-width), calc(100% - 2rem));
  margin: 5rem auto 0;
  padding: 3.5rem 0 2.2rem;
  position: relative;
  z-index: 1;
  color: var(--muted);
}

.footer-brand {
  display: grid;
  justify-items: center;
  gap: 1rem;
  text-align: center;
  padding-bottom: 3rem;
}

.footer-logo {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  font-family: "Sora", sans-serif;
  font-size: clamp(1.65rem, 4vw, 2.35rem);
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text);
  text-decoration: none;
}

.footer-logo span:last-child {
  color: var(--accent);
}

.footer-brand p,
.footer-column p,
.footer-bottom p {
  margin: 0;
}

.footer-divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(206, 221, 255, 0.2), transparent);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1.25fr;
  gap: 3rem;
  padding: 3rem 0;
}

.footer-column {
  display: grid;
  align-content: start;
  gap: 0.85rem;
}

.footer-column h2 {
  font-size: 0.85rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.4rem;
}

.footer-column a {
  width: fit-content;
  color: var(--text);
  text-decoration: none;
  font-size: 1.05rem;
  transition: color 180ms ease, transform 180ms ease;
}

.footer-column a:hover,
.footer-column a:focus-visible {
  color: var(--accent);
  transform: translateX(3px);
}

.footer-direct {
  justify-self: end;
  max-width: 440px;
}

.footer-contact-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 0.4rem;
}

.footer-contact-row a {
  padding: 0.75rem 0.95rem;
  border: 1px solid rgba(206, 221, 255, 0.14);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  font-size: 0.95rem;
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  padding-top: 2rem;
}

.footer-socials {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.footer-socials a {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: var(--muted);
  text-decoration: none;
  border: 1px solid transparent;
  transition: color 180ms ease, border-color 180ms ease, background-color 180ms ease;
}

.footer-socials a:hover,
.footer-socials a:focus-visible {
  color: var(--text);
  border-color: rgba(206, 221, 255, 0.2);
  background: rgba(255, 255, 255, 0.04);
}

.footer-status {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.8rem 1rem;
  border-radius: 12px;
  border: 1px solid rgba(206, 221, 255, 0.12);
  background: rgba(255, 255, 255, 0.03);
  color: var(--accent);
  font-weight: 700;
}

.footer-status span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 18px rgba(124, 224, 255, 0.7);
}

.scroll-top-button {
  position: fixed;
  right: 1.25rem;
  bottom: 1.25rem;
  z-index: 30;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: linear-gradient(135deg, var(--accent), var(--accent-strong));
  color: var(--text);
  box-shadow: 0 14px 34px rgba(124, 224, 255, 0.28);
  backdrop-filter: blur(16px);
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);
  transition: opacity 180ms ease, transform 180ms ease, border-color 180ms ease;
}

.scroll-top-button:hover,
.scroll-top-button:focus-visible {
  border-color: rgba(124, 224, 255, 0.5);
  transform: translateY(6px);
}

.scroll-top-button.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(2, 8, 18, 0.7);
  backdrop-filter: blur(10px);
  z-index: 39;
}

.modal-backdrop[hidden],
.project-modal[hidden] {
  display: none !important;
}

.project-modal {
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 1rem;
  z-index: 40;
}

.modal-card {
  position: relative;
  width: min(760px, 100%);
  padding: 2rem;
  border-radius: 28px;
}

.modal-card p {
  color: var(--muted);
  line-height: 1.8;
}

.modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  color: var(--text);
  background: rgba(255, 255, 255, 0.08);
}

.modal-points {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 1.2rem;
}

.modal-points span {
  padding: 0.7rem 0.9rem;
  border-radius: 999px;
  border: 1px solid rgba(206, 221, 255, 0.14);
  background: rgba(255, 255, 255, 0.05);
}

.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 700ms ease, transform 700ms ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@keyframes marquee {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(-50%);
  }
}

@keyframes light-sweep {
  from {
    background-position: 0% 30%;
  }

  to {
    background-position: 100% 70%;
  }
}

@keyframes cloud-cube-spin {
  from {
    transform: rotateX(-18deg) rotateY(0deg) rotateZ(4deg);
  }

  to {
    transform: rotateX(-18deg) rotateY(360deg) rotateZ(4deg);
  }
}

@keyframes orbit-roll-a {
  from {
    transform: rotateX(68deg) rotateZ(20deg);
  }

  to {
    transform: rotateX(68deg) rotateZ(380deg);
  }
}

@keyframes orbit-roll-b {
  from {
    transform: rotateY(68deg) rotateZ(-18deg);
  }

  to {
    transform: rotateY(68deg) rotateZ(342deg);
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation: none !important;
    transition-duration: 0.01ms !important;
  }

  .cursor-glow {
    display: none;
  }
}

@media (max-width: 1024px) {
  .top-showcase-grid {
    grid-template-columns: 1fr;
  }

  .cloud-cube-scene {
    min-height: 250px;
    order: -1;
  }

  .hero,
  .about-grid-pro,
  .stack-grid,
  .projects-grid,
  .blog-grid,
  .dual-grid,
  .journey-card,
  .github-grid,
  .resume-grid,
  .education-grid,
  .contact-grid,
  .form-row {
    grid-template-columns: 1fr;
  }

  .experience-grid {
    grid-template-columns: 1fr;
  }

  .tool-grid,
  .cert-columns {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hero {
    min-height: auto;
    padding-top: 3rem;
  }

  .contact-shell {
    flex-direction: column;
    align-items: flex-start;
  }

  .direct-reach-bar {
    grid-template-columns: 1fr;
  }

  .direct-reach-photo {
    justify-self: start;
  }

  .orbital-scene {
    min-height: 620px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .footer-direct {
    justify-self: stretch;
    max-width: none;
  }
}

@media (max-width: 760px) {
  .site-header {
    align-items: center;
    gap: 0.9rem;
    overflow-x: auto;
  }

  .section,
  .marquee-strip {
    width: min(var(--max-width), calc(100% - 1.2rem));
  }

  h1 {
    font-size: clamp(2.2rem, 12vw, 3.8rem);
  }

  .top-showcase {
    width: min(100% - 1.2rem, var(--max-width));
    gap: 1.6rem;
  }

  .cloud-cube-scene {
    min-height: 210px;
    transform: scale(0.82);
  }

  .top-photo-frame {
    aspect-ratio: 4 / 5;
  }

  .top-photo-frame img {
    object-position: center top;
  }

  .site-footer {
    width: min(var(--max-width), calc(100% - 1.2rem));
    margin-top: 3rem;
  }

  .footer-brand {
    justify-items: start;
    text-align: left;
  }

  .footer-bottom {
    align-items: flex-start;
    flex-direction: column;
  }

  .orbital-scene {
    min-height: 560px;
  }

  .panel-main,
  .panel-side,
  .panel-bottom {
    width: auto;
    left: 1rem;
    right: 1rem;
  }

  .panel-main {
    top: 1.2rem;
  }

  .panel-side {
    top: auto;
    bottom: 8.6rem;
  }

  .panel-bottom {
    bottom: 1rem;
  }

  .ring-three {
    width: 540px;
    height: 540px;
  }

  .tool-grid,
  .cert-columns {
    grid-template-columns: 1fr;
  }

  .direct-reach-bar {
    padding: 1.1rem;
  }

  .direct-reach-photo {
    width: min(160px, 100%);
  }

  .scroll-top-button {
    right: 0.85rem;
    bottom: 0.85rem;
  }
}

.timeline {
  position: relative;
  width: min(900px, 100%);
  margin: 60px auto 0;
}

/* center line */
.timeline::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 0;
  width: 2px;
  height: 100%;
  background: linear-gradient(
    to bottom,
    transparent,
    rgba(124, 224, 255, 0.8),
    transparent
  );
  transform: translateX(-50%);
}

/* each item */
.timeline-item {
  position: relative;
  width: 100%;
  display: flex;
  margin-bottom: 50px;
}

/* 🔥 auto alternate */
.timeline-item:nth-child(odd) {
  justify-content: flex-start;
  padding-right: calc(50% + 40px);
}

.timeline-item:nth-child(even) {
  justify-content: flex-end;
  padding-left: calc(50% + 40px);
}

/* card */
.timeline-card {
  width: 100%;
  max-width: 380px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 16px;
  padding: 20px;
  backdrop-filter: blur(10px);
  transition: 0.3s;
}

/* spacing from line */
.timeline-item:nth-child(odd) .timeline-card {
  margin-left: 0;
}

.timeline-item:nth-child(even) .timeline-card {
  margin-right: 0;
}

/* 🔥 center dots (perfect fix) */
.timeline-item::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 30px;
  width: 14px;
  height: 14px;
  background: var(--accent);
  border-radius: 50%;
  transform: translateX(-50%);
  box-shadow: 0 0 12px rgba(124, 224, 255, 0.8);
}

/* hover */
.timeline-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 50px rgba(0,0,0,0.6);
}

@media (max-width: 760px) {
  .timeline {
    width: 100%;
    margin-top: 36px;
  }

  .timeline::before {
    left: 12px;
  }

  .timeline-item,
  .timeline-item:nth-child(odd),
  .timeline-item:nth-child(even) {
    justify-content: flex-start;
    padding-left: 36px;
    padding-right: 0;
    margin-bottom: 28px;
  }

  .timeline-item::before {
    left: 12px;
  }

  .timeline-card {
    max-width: 100%;
  }
}
