:root {
  /* ================= MASTER GLASSMORPHISM SYSTEM (HERO REFERENCE) ================= */
  --card-glass-bg: rgba(255, 255, 255, 0.05);
  --card-glass-bg-hover: rgba(255, 255, 255, 0.08);
  --card-glass-blur: 50px;
  --card-glass-border: 1px solid rgba(255, 255, 255, 0.17);
  --card-glass-border-color: rgba(255, 255, 255, 0.17);
  --card-glass-border-hover: rgba(255, 255, 255, 0.28);
  --card-glass-radius: 1.5rem; /* 24px */
  --card-glass-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.35), inset 0 1px 1px 0 rgba(255, 255, 255, 0.1);
  --card-glass-shadow-hover: 0 35px 70px -15px rgba(0, 0, 0, 0.45), 0 0 30px rgba(255, 255, 255, 0.05), inset 0 1px 2px 0 rgba(255, 255, 255, 0.2);
  --card-glass-transition: border-color 0.4s ease, box-shadow 0.4s ease, background-color 0.3s ease;
}

/* Master Reusable Glassmorphism Class matching .hero-card */
.glass-master-card {
  background: var(--card-glass-bg) !important;
  backdrop-filter: blur(var(--card-glass-blur)) !important;
  -webkit-backdrop-filter: blur(var(--card-glass-blur)) !important;
  border: var(--card-glass-border) !important;
  box-shadow: var(--card-glass-shadow) !important;
  transition: var(--card-glass-transition);
}

.glass-master-card:hover,
.glass-master-card.is-hovered {
  background: var(--card-glass-bg-hover) !important;
  border-color: var(--card-glass-border-hover) !important;
  box-shadow: var(--card-glass-shadow-hover) !important;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html,
body {
  width: 100%;
  min-height: 100%;
  background-color: #000;
  color: #fff;
  font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

::selection {
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
}

.scroll-container {
  width: 100%;
  height: 2000vh;
  position: relative;
}

canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  display: block;
  pointer-events: none;
}

/* ================= STARTING FRAME HERO OVERLAY ================= */
.hero-overlay {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100vh;
  z-index: 10;
  display: flex;
  flex-direction: column;
  pointer-events: none;
}

.hero-header {
  width: 100%;
  padding: 1.5rem 1rem 1rem;
  display: flex;
  justify-content: center;
  pointer-events: auto;
  transform: translate3d(0, var(--header-scroll-ty, 0px), 0) scale(var(--header-scroll-scale, 1));
}

@media (min-width: 640px) {
  .hero-header {
    padding: 1.5rem 2rem 1rem;
  }
}

.hero-nav {
  width: 100%;
  max-width: 72rem;
  height: 68px;
  padding: 0 1.5rem;
  border-radius: 9999px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border: var(--card-glass-border);
  box-shadow: var(--card-glass-shadow);
  backdrop-filter: blur(var(--card-glass-blur));
  -webkit-backdrop-filter: blur(var(--card-glass-blur));
  background: var(--card-glass-bg);
  position: relative;
  overflow: hidden;
  transform-style: flat;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1),
    box-shadow 0.4s ease,
    border-color 0.4s ease,
    background-color 0.3s ease;
}

.hero-nav:hover,
.hero-nav.is-hovered {
  transform: scale(1.012) translateY(-1px);
  border-color: var(--card-glass-border-hover);
  background: var(--card-glass-bg-hover);
  box-shadow: var(--card-glass-shadow-hover);
}

/* Navbar Dynamic Glare matching .hero-card */
.hero-nav::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  opacity: 0;
  background: radial-gradient(circle 550px at var(--glare-x, 50%) var(--glare-y, 50%),
      rgba(255, 255, 255, 0.12) 0%,
      rgba(255, 255, 255, 0.03) 35%,
      transparent 70%);
  transition: opacity 0.45s ease;
  mix-blend-mode: overlay;
  z-index: 1;
}

.hero-nav:hover::before,
.hero-nav.is-hovered::before {
  opacity: 1;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  color: #ffffff;
  text-decoration: none;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  z-index: 2;
}

.nav-brand-icon {
  width: 1.5rem;
  height: 1.5rem;
  flex-shrink: 0;
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), filter 0.3s ease;
}

.nav-brand:hover .nav-brand-icon {
  transform: rotate(45deg) scale(1.1);
  filter: drop-shadow(0 0 8px rgba(255, 255, 255, 0.5));
}

.nav-brand-text {
  font-weight: 800;
  letter-spacing: 0.1em;
  font-size: 15px;
  color: rgba(215, 222, 225, 0.92);
  text-transform: uppercase;
  transition: letter-spacing 0.35s cubic-bezier(0.16, 1, 0.3, 1),
    color 0.3s ease,
    text-shadow 0.3s ease;
}

.nav-brand:hover .nav-brand-text {
  letter-spacing: 0.14em;
  color: #ffffff;
  text-shadow: 0 0 16px rgba(255, 255, 255, 0.4);
}

.nav-links {
  display: none;
  list-style: none;
  align-items: center;
  gap: 2.25rem;
  font-size: 15px;
  font-weight: 500;
  color: #404040;
  position: relative;
  z-index: 2;
}

@media (min-width: 768px) {
  .nav-links {
    display: flex;
  }
}

.nav-links a {
  position: relative;
  color: rgba(215, 222, 225, 0.88);
  text-decoration: none;
  padding: 0.35rem 0;
  display: inline-block;
  transition: color 0.25s ease, transform 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: transform;
}

/* Animated expanding underline */
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 1.5px;
  background: #ffffff;
  border-radius: 9999px;
  box-shadow: 0 0 8px rgba(255, 255, 255, 0.7);
  transform: translateX(-50%);
  transition: width 0.32s cubic-bezier(0.16, 1, 0.3, 1);
}

.nav-links a:hover {
  color: #ffffff;
}

.nav-links a:hover::after {
  width: 100%;
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.625rem 1.5rem;
  border-radius: 9999px;
  font-size: 14px;
  font-weight: 500;
  color: #ffffff;
  text-decoration: none;
  background: linear-gradient(180deg, #2b2b2b 0%, #111111 100%);
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
  position: relative;
  overflow: hidden;
  z-index: 2;
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1),
    box-shadow 0.35s cubic-bezier(0.16, 1, 0.3, 1),
    border-color 0.3s ease;
}

.nav-cta::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 9999px;
  background: radial-gradient(circle at 50% 0%, rgba(255, 255, 255, 0.22), transparent 70%);
  opacity: 0;
  transition: opacity 0.35s ease;
  pointer-events: none;
}

.nav-cta:hover {
  transform: translateY(-1.5px) scale(1.03);
  border-color: rgba(255, 255, 255, 0.35);
  box-shadow: 0 10px 22px -4px rgba(0, 0, 0, 0.45), 0 0 15px rgba(255, 255, 255, 0.1);
}

.nav-cta:hover::before {
  opacity: 1;
}

.nav-cta:active {
  transform: translateY(0.5px) scale(0.97);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.hero-main {
  flex: 1;
  width: 100%;
  max-width: 72rem;
  margin: 0 auto;
  padding: 2rem 1rem;
  display: flex;
  align-items: center;
  perspective: 1100px;
}

@media (min-width: 640px) {
  .hero-main {
    padding: clamp(1.5rem, 4vh, 4rem) 2rem;
  }
}

.hero-card {
  width: 100%;
  max-width: 48rem;
  border-radius: var(--card-glass-radius);
  padding: 2rem;
  border: var(--card-glass-border);
  box-shadow: var(--card-glass-shadow);
  backdrop-filter: blur(var(--card-glass-blur));
  -webkit-backdrop-filter: blur(var(--card-glass-blur));
  background: var(--card-glass-bg);
  will-change: transform, opacity;
  pointer-events: auto;
  position: relative;
  overflow: hidden;
  transform: translate3d(0, var(--card-scroll-ty, 0px), 0) scale(var(--card-scroll-scale, 1)) perspective(1100px) rotateX(var(--tilt-rx, 0deg)) rotateY(var(--tilt-ry, 0deg)) scale3d(var(--tilt-scale, 1), var(--tilt-scale, 1), 1);
  transition: border-color 0.4s ease, box-shadow 0.4s ease, background-color 0.3s ease;
}

@media (min-width: 640px) {
  .hero-card {
    padding: 3.5rem;
  }
}

.hero-card:hover,
.hero-card.is-hovered {
  border-color: var(--card-glass-border-hover);
  background: var(--card-glass-bg-hover);
  box-shadow: var(--card-glass-shadow-hover);
}

/* Dynamic glare light reflection following cursor */
.hero-card-glare {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  opacity: 0;
  background: radial-gradient(circle 550px at var(--glare-x, 50%) var(--glare-y, 50%),
      rgba(255, 255, 255, 0.12) 0%,
      rgba(255, 255, 255, 0.03) 35%,
      transparent 70%);
  transition: opacity 0.45s ease;
  mix-blend-mode: overlay;
  z-index: 1;
}

.hero-card.is-hovered .hero-card-glare {
  opacity: 1;
}

.hero-stagger {
  will-change: transform, opacity;
  position: relative;
  z-index: 2;
}

.hero-label {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 1.5rem;
  display: inline-block;
  cursor: default;
  transition: letter-spacing 0.35s cubic-bezier(0.16, 1, 0.3, 1),
    color 0.3s ease,
    text-shadow 0.3s ease;
}

@media (min-width: 640px) {
  .hero-label {
    font-size: 0.875rem;
  }
}

.hero-label:hover {
  letter-spacing: 0.33em;
  color: #ffffff;
  text-shadow: 0 0 16px rgba(255, 255, 255, 0.4);
}

.hero-title {
  font-size: 2.25rem;
  font-weight: 700;
  letter-spacing: -0.025em;
  color: #ffffff;
  line-height: 1.08;
  margin-bottom: 1.5rem;
  cursor: default;
}

@media (min-width: 640px) {
  .hero-title {
    font-size: 3.75rem;
  }
}

@media (min-width: 768px) {
  .hero-title {
    font-size: 4.5rem;
  }
}

.title-line {
  display: inline-block;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1),
    color 0.3s ease,
    text-shadow 0.3s ease;
}

.hero-title:hover .title-line {
  color: #ffffff;
  text-shadow: 0 4px 24px rgba(255, 255, 255, 0.3);
}

.hero-title:hover .title-line-1 {
  transform: translateY(-2.5px);
}

.hero-title:hover .title-line-2 {
  transform: translateY(-1.5px);
}

.hero-bio {
  font-size: 1rem;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.625;
  max-width: 42rem;
  margin-bottom: 2.25rem;
  transition: color 0.3s ease;
}

@media (min-width: 640px) {
  .hero-bio {
    font-size: 1.125rem;
  }
}

.hero-bio:hover {
  color: rgba(255, 255, 255, 0.95);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
}

.btn-primary,
.btn-secondary {
  padding: 0.625rem 1.5rem;
  border-radius: 9999px;
  font-size: 0.875rem;
  font-weight: 500;
  text-decoration: none;
  position: relative;
  overflow: hidden;
  will-change: transform;
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1),
    box-shadow 0.35s cubic-bezier(0.16, 1, 0.3, 1),
    border-color 0.3s ease,
    background-color 0.3s ease;
}

/* Download CV light sweep */
.btn-primary::after {
  content: '';
  position: absolute;
  top: 0;
  left: -160%;
  width: 130%;
  height: 100%;
  background: linear-gradient(105deg,
      transparent 20%,
      rgba(255, 255, 255, 0.22) 50%,
      transparent 80%);
  transform: skewX(-20deg);
  pointer-events: none;
  transition: transform 0.85s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn-primary {
  color: #ffffff;
  background: linear-gradient(180deg, #2b2b2b 0%, #111111 100%);
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
}

.btn-primary:hover {
  transform: translateY(-2px) scale(1.025);
  border-color: rgba(255, 255, 255, 0.3);
  box-shadow: 0 12px 25px -5px rgba(0, 0, 0, 0.5), 0 0 16px rgba(255, 255, 255, 0.12);
}

.btn-primary:hover::after {
  transform: translateX(260%) skewX(-20deg);
}

.btn-primary:active {
  transform: translateY(1px) scale(0.96);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.4);
}

.btn-secondary {
  color: rgba(255, 255, 255, 0.95);
  border: 1px solid #3f454f;
  background: transparent;
}

.btn-secondary:hover {
  transform: translateY(-2px) scale(1.025);
  border-color: rgba(255, 255, 255, 0.55);
  background-color: rgba(255, 255, 255, 0.08);
  box-shadow: 0 0 22px rgba(255, 255, 255, 0.12), 0 10px 25px -5px rgba(0, 0, 0, 0.4);
}

.btn-secondary:active {
  transform: translateY(1px) scale(0.96);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.4);
}

/* ================= INITIAL LOAD ENTRANCE ANIMATIONS ================= */
@keyframes entranceNav {
  0% {
    opacity: 0;
    transform: translate3d(0, -18px, 0);
  }

  100% {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
}

@keyframes entranceCard {
  0% {
    opacity: 0;
    transform: translate3d(0, 24px, 0) scale(0.985);
  }

  100% {
    opacity: 1;
    transform: translate3d(0, 0, 0) scale(1);
  }
}

@keyframes entranceFadeUp {
  0% {
    opacity: 0;
    transform: translate3d(0, 16px, 0);
  }

  100% {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
}

body.hero-entering .hero-header {
  animation: entranceNav 0.75s cubic-bezier(0.16, 1, 0.3, 1) 0.06s both;
}

body.hero-entering .hero-card {
  animation: entranceCard 0.85s cubic-bezier(0.16, 1, 0.3, 1) 0.18s both;
}

body.hero-entering .hero-label {
  animation: entranceFadeUp 0.65s cubic-bezier(0.16, 1, 0.3, 1) 0.32s both;
}

body.hero-entering .title-line-1 {
  animation: entranceFadeUp 0.7s cubic-bezier(0.16, 1, 0.3, 1) 0.44s both;
}

body.hero-entering .title-line-2 {
  animation: entranceFadeUp 0.7s cubic-bezier(0.16, 1, 0.3, 1) 0.54s both;
}

body.hero-entering .hero-bio {
  animation: entranceFadeUp 0.7s cubic-bezier(0.16, 1, 0.3, 1) 0.68s both;
}

body.hero-entering .hero-actions {
  animation: entranceFadeUp 0.7s cubic-bezier(0.16, 1, 0.3, 1) 0.82s both;
}

/* While loading screen is active, hide hero content until ready */
body.is-loading .hero-overlay {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

/* ================= CINEMATIC MINIMAL LOADER ================= */
.cinematic-loader {
  position: fixed;
  inset: 0;
  z-index: 999999;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #030407;
  color: #ffffff;
  overflow: hidden;
  opacity: 1;
  visibility: visible;
  transition: opacity 0.65s cubic-bezier(0.16, 1, 0.3, 1),
              visibility 0.65s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, visibility;
  pointer-events: auto;
}

.cinematic-loader.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

/* Ambient subtle background glow */
.loader-backdrop {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(circle 600px at 50% 50%, rgba(255, 255, 255, 0.035) 0%, transparent 70%);
}

.loader-content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  max-width: 440px;
  width: 90%;
  padding: 2.5rem 2rem;
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--card-glass-radius, 1.5rem);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 20px 50px -10px rgba(0, 0, 0, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.loader-brand {
  margin-bottom: 1.25rem;
}

.loader-brand-tag {
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.6);
  padding: 0.35rem 0.85rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 9999px;
  display: inline-block;
}

.loader-title {
  font-size: 1.35rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: #ffffff;
  margin-bottom: 0.35rem;
}

.loader-subtitle {
  font-size: 0.875rem;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.55);
  margin-bottom: 1.75rem;
  letter-spacing: 0.01em;
}

/* Minimalist thin progress track */
.loader-track {
  width: 100%;
  height: 2px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 9999px;
  overflow: hidden;
  position: relative;
  margin-bottom: 1.25rem;
}

.loader-bar {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 0%;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.35) 0%, rgba(255, 255, 255, 0.95) 100%);
  border-radius: 9999px;
  transition: width 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.4);
}

/* Status text & pulsing dot */
.loader-status {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-size: 0.8125rem;
  color: rgba(255, 255, 255, 0.5);
  letter-spacing: 0.02em;
  min-height: 1.25rem;
  font-variant-numeric: tabular-nums;
}

.loader-counter {
  font-weight: 500;
  color: rgba(255, 255, 255, 0.75);
}

.loader-status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.7);
  box-shadow: 0 0 8px rgba(255, 255, 255, 0.5);
  animation: loaderPulse 1.8s ease-in-out infinite;
}

/* Retry container */
.loader-retry {
  margin-top: 1.25rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}

.loader-error-text {
  font-size: 0.775rem;
  color: rgba(255, 140, 140, 0.85);
  margin-bottom: 0.25rem;
}

.loader-retry-btn,
.loader-continue-btn {
  font-family: inherit;
  font-size: 0.8125rem;
  font-weight: 500;
  padding: 0.45rem 1.15rem;
  border-radius: 9999px;
  cursor: pointer;
  transition: all 0.25s ease;
}

.loader-retry-btn {
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.25);
}

.loader-retry-btn:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.45);
}

.loader-continue-btn {
  background: transparent;
  color: rgba(255, 255, 255, 0.6);
  border: 1px solid transparent;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.loader-continue-btn:hover {
  color: #ffffff;
}

@keyframes loaderPulse {
  0%, 100% {
    opacity: 0.3;
    transform: scale(0.85);
  }
  50% {
    opacity: 1;
    transform: scale(1.15);
  }
}

@media (max-width: 640px) {
  .loader-content {
    padding: 2rem 1.5rem;
  }
  .loader-title {
    font-size: 1.15rem;
  }
  .loader-subtitle {
    font-size: 0.8125rem;
    margin-bottom: 1.35rem;
  }
}

/* ================= CUSTOM CINEMATIC CURSOR ================= */
@media (hover: hover) and (pointer: fine) {

  body,
  a,
  button {
    cursor: none !important;
  }

  .cursor-dot {
    position: fixed;
    top: 0;
    left: 0;
    width: 6px;
    height: 6px;
    background: #ffffff;
    border-radius: 50%;
    pointer-events: none;
    z-index: 99999;
    transform: translate3d(-50%, -50%, 0);
    opacity: 0;
    transition: opacity 0.3s ease, transform 0.15s ease, background-color 0.25s ease;
    will-change: transform;
  }

  .cursor-ring {
    position: fixed;
    top: 0;
    left: 0;
    width: 36px;
    height: 36px;
    border: 1.5px solid rgba(255, 255, 255, 0.45);
    background: rgba(255, 255, 255, 0.02);
    border-radius: 50%;
    pointer-events: none;
    z-index: 99998;
    transform: translate3d(-50%, -50%, 0);
    opacity: 0;
    transition: opacity 0.3s ease,
      border-color 0.25s ease,
      background-color 0.25s ease,
      width 0.25s cubic-bezier(0.16, 1, 0.3, 1),
      height 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: transform;
  }

  /* Hovering buttons / CTA */
  .cursor-ring.cursor-hover-btn {
    width: 52px;
    height: 52px;
    border-color: rgba(255, 255, 255, 0.85);
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(2px);
  }

  /* Hovering links / interactive text */
  .cursor-ring.cursor-hover-link {
    width: 26px;
    height: 26px;
    border-color: rgba(255, 255, 255, 0.7);
    background: rgba(255, 255, 255, 0.04);
  }

  /* Clicking feedback */
  .cursor-ring.cursor-click {
    transform: translate3d(-50%, -50%, 0) scale(0.82) !important;
    border-color: #ffffff;
    background: rgba(255, 255, 255, 0.15);
  }

  .cursor-dot.cursor-click {
    transform: translate3d(-50%, -50%, 0) scale(1.3) !important;
  }
}

@media (hover: none) or (pointer: coarse),
(max-width: 768px) {

  body,
  a,
  button {
    cursor: auto !important;
  }

  .cursor-dot,
  .cursor-ring {
    display: none !important;
  }
}

/* Minimal dark scrollbar */
::-webkit-scrollbar {
  width: 6px;
}

::-webkit-scrollbar-track {
  background: #000;
}

::-webkit-scrollbar-thumb {
  background: #262626;
  border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
  background: #3e3e3e;
}

/* ================= SECTION 2: PROBLEMS SOLVED ================= */
.problems-section {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100vh;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  visibility: hidden;
  opacity: 0;
  transition: opacity 0.3s ease;
  overflow: visible;
  perspective: none;
  transform-style: flat;
}

.problems-container {
  width: 100%;
  max-width: 100vw;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 1.5rem 0;
  transform-origin: center center;
  transform-style: flat;
}

.problems-header {
  text-align: center;
  margin-bottom: 2rem;
  pointer-events: auto;
}

.problems-title {
  font-size: clamp(2rem, 3.8vw, 3.25rem);
  font-weight: 700;
  letter-spacing: -0.025em;
  color: #ffffff;
  text-shadow: 0 4px 30px rgba(0, 0, 0, 0.7), 0 0 40px rgba(255, 255, 255, 0.12);
}

.problems-viewport {
  width: 100vw;
  overflow: visible;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 1.5rem 0 2rem;
  perspective: none;
  transform-style: flat;
}

.problems-track {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.65rem;
  padding: 1rem 4rem;
  pointer-events: auto;
  /* Flat transform-style ensures backdrop-filter on cards can sample and blur underlying canvas */
  transform-style: flat;
}

/* Stable Outer Wrapper - reliable hit-test detection */
.problem-card-wrapper {
  position: relative;
  flex-shrink: 0;
  height: 550px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transform-style: flat;
  transition: width 0.38s cubic-bezier(0.2, 0.9, 0.25, 1);
}

/* Symmetrical Size Tiers on Outer Wrappers: Large -> Medium -> Small (center) -> Medium -> Large */
.problem-card-wrapper.card-large {
  width: 330px;
}

.problem-card-wrapper.card-medium {
  width: 295px;
}

.problem-card-wrapper.card-small {
  width: 265px;
}

/* When hovered, wrapper expands width smoothly - pushes adjacent cards naturally */
.problem-card-wrapper:hover,
.problem-card-wrapper.is-hovered {
  width: 395px;
  z-index: 30;
}

/* Base Problem Card Glassmorphism - exact match of hero card */
.problem-card {
  position: relative;
  width: 100%;
  border-radius: var(--card-glass-radius);
  padding: 1.85rem 1.65rem;
  border: var(--card-glass-border);
  background: var(--card-glass-bg);
  backdrop-filter: blur(var(--card-glass-blur));
  -webkit-backdrop-filter: blur(var(--card-glass-blur));
  box-shadow: var(--card-glass-shadow);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
  transform-style: flat;
  transition: height 0.38s cubic-bezier(0.2, 0.9, 0.25, 1),
    transform 0.38s cubic-bezier(0.2, 0.9, 0.25, 1),
    border-color 0.4s ease,
    box-shadow 0.4s ease,
    background-color 0.3s ease;
}

/* Resting heights and 3D perspective curves */
.problem-card-wrapper.card-large .problem-card {
  height: 490px;
}

.problem-card-wrapper[data-card-index="0"] .problem-card {
  transform: perspective(1000px) rotateY(8deg) translateZ(0);
}

.problem-card-wrapper[data-card-index="4"] .problem-card {
  transform: perspective(1000px) rotateY(-8deg) translateZ(0);
}

.problem-card-wrapper.card-medium .problem-card {
  height: 440px;
}

.problem-card-wrapper[data-card-index="1"] .problem-card {
  transform: perspective(1000px) rotateY(4deg) translateZ(0);
}

.problem-card-wrapper[data-card-index="3"] .problem-card {
  transform: perspective(1000px) rotateY(-4deg) translateZ(0);
}

.problem-card-wrapper.card-small .problem-card {
  height: 390px;
  transform: perspective(1000px) rotateY(0deg) translateZ(0);
}

/* Card Hovered State: clean transform transition without fighting rAF tilt */
.problem-card-wrapper:hover .problem-card,
.problem-card-wrapper.is-hovered .problem-card {
  height: 520px;
  border-color: var(--card-glass-border-hover);
  background: var(--card-glass-bg-hover);
  box-shadow: var(--card-glass-shadow-hover);
  transform: perspective(1000px) rotateY(0deg) translateY(-8px) scale(1.02);
}

/* Soft Dynamic Glass Glare - exact match of hero card */
.problem-card-glare {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background: radial-gradient(circle 550px at var(--glare-x, 50%) var(--glare-y, 50%),
      rgba(255, 255, 255, 0.12) 0%,
      rgba(255, 255, 255, 0.03) 35%,
      transparent 70%);
  opacity: 0;
  transition: opacity 0.45s ease;
  mix-blend-mode: overlay;
  z-index: 1;
}

.problem-card-wrapper:hover .problem-card-glare,
.problem-card-wrapper.is-hovered .problem-card-glare {
  opacity: 1;
}

/* Decoupled Tilt Layer on .problem-card-inner for silky 60fps tilt without transition fighting */
.problem-card-inner {
  position: relative;
  z-index: 2;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transform: rotateX(var(--tilt-rx, 0deg)) rotateY(var(--tilt-ry, 0deg));
  will-change: transform;
}

.problem-card-top {
  display: flex;
  flex-direction: column;
  gap: 1.05rem;
}

.problem-project-name {
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -0.015em;
  color: #ffffff;
  line-height: 1.25;
  transition: color 0.3s ease;
}

.problem-card-wrapper:hover .problem-project-name,
.problem-card-wrapper.is-hovered .problem-project-name {
  color: #ffffff;
  text-shadow: 0 0 16px rgba(255, 255, 255, 0.4);
}

.problem-block {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.problem-label {
  font-size: 0.725rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: rgba(255, 255, 255, 0.52);
}

.problem-card-wrapper:hover .problem-label,
.problem-card-wrapper.is-hovered .problem-label {
  color: rgba(255, 255, 255, 0.75);
}

.problem-desc {
  font-size: 0.8125rem;
  line-height: 1.52;
  color: rgba(255, 255, 255, 0.76);
  transition: color 0.3s ease, -webkit-line-clamp 0.3s ease;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.problem-card-wrapper.card-small .problem-desc {
  -webkit-line-clamp: 2;
}

.problem-card-wrapper.card-medium .problem-desc {
  -webkit-line-clamp: 3;
}

.problem-card-wrapper.card-large .problem-desc {
  -webkit-line-clamp: 4;
}

/* On hover, smoothly expand line clamp without destroying box layout */
.problem-card-wrapper:hover .problem-desc,
.problem-card-wrapper.is-hovered .problem-desc {
  -webkit-line-clamp: 7;
  color: rgba(255, 255, 255, 0.94);
}

/* Action Buttons in Cards - Permanent Default Styling matching Hero */
.problem-card-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-top: auto;
  padding-top: 0.85rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  width: 100%;
}

.problem-card-actions .btn-primary,
.problem-card-actions .btn-secondary {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  white-space: nowrap;
}

/* Mobile and Responsive Styles */
@media (max-width: 768px) {
  .problems-viewport {
    overflow-y: auto;
    max-height: 80vh;
    padding: 0.5rem 1rem;
  }

  .problems-track {
    flex-direction: column;
    gap: 1.25rem;
    padding: 0.5rem;
  }

  .problem-card-wrapper,
  .problem-card-wrapper.card-large,
  .problem-card-wrapper.card-medium,
  .problem-card-wrapper.card-small {
    width: 100% !important;
    max-width: 340px;
    height: auto !important;
  }

  .problem-card {
    width: 100% !important;
    min-height: auto !important;
    height: auto !important;
    transform: none !important;
  }

  .problem-desc {
    -webkit-line-clamp: unset !important;
    display: block !important;
  }
}

/* ================= SECTION 3: EXPERIENCE ================= */
.experience-section {
  position: fixed;
  inset: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  visibility: hidden;
  opacity: 0;
  transition: opacity 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  perspective: none;
  transform-style: flat;
}

.experience-container {
  position: relative;
  width: 100%;
  height: 100%;
  max-width: 1440px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(1rem, 2.5vh, 2.5rem) clamp(1.5rem, 4vw, 4rem);
  will-change: auto;
  transform-style: flat;
  box-sizing: border-box;
}

.experience-header {
  text-align: center;
  margin-bottom: clamp(1rem, 3vh, 2.5rem);
  flex-shrink: 0;
  position: relative;
  z-index: 15;
}

.experience-title {
  font-size: clamp(2rem, 3.8vw, 3.25rem);
  font-weight: 700;
  letter-spacing: -0.025em;
  color: #ffffff;
  margin: 0;
  text-shadow: 0 0 32px rgba(255, 255, 255, 0.18);
}

.experience-stage {
  position: relative;
  flex: 1;
  width: 100%;
  min-height: 480px;
  display: flex;
  align-items: center;
  overflow: visible;
}

/* Half-circle Timeline Dial Viewport anchored to the left */
.experience-dial-viewport {
  position: absolute;
  left: clamp(-300px, -18vw, -160px);
  top: 50%;
  transform: translateY(-50%);
  width: clamp(620px, 50vw, 780px);
  height: clamp(620px, 50vw, 780px);
  pointer-events: none;
  user-select: none;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 5;
}

.experience-dial {
  position: relative;
  width: 100%;
  height: 100%;
  transform-origin: 50% 50%;
  will-change: transform;
  transition: transform 0.08s linear;
}

.experience-ring-svg {
  width: 100%;
  height: 100%;
  overflow: visible;
}

/* Markers on Dial */
.experience-marker {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  pointer-events: none;
  transform-origin: 0 0;
}

.marker-dot-wrap {
  position: absolute;
  top: 0;
  left: 0;
  transform: translate(-50%, -50%);
  display: flex;
  align-items: center;
  justify-content: center;
}

.marker-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.5);
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 0 8px rgba(255, 255, 255, 0.2);
}

.experience-marker.is-active .marker-dot {
  width: 13px;
  height: 13px;
  background: #ffffff;
  border-color: #ffffff;
  box-shadow: 0 0 16px rgba(255, 255, 255, 1), 0 0 32px rgba(255, 255, 255, 0.5);
  transform: scale(1.15);
}

.marker-num {
  position: absolute;
  left: 28px;
  top: 50%;
  transform: translateY(-50%);
  font-family: inherit;
  font-size: clamp(2.2rem, 3.5vw, 3.2rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1;
  color: rgba(255, 255, 255, 0.28);
  white-space: nowrap;
  transition: color 0.4s ease, text-shadow 0.4s ease, transform 0.4s ease, opacity 0.4s ease;
  opacity: 0.45;
}

.experience-marker.is-active .marker-num {
  color: #ffffff;
  opacity: 1;
  transform: translateY(-50%) scale(1.08);
  text-shadow: 0 0 28px rgba(255, 255, 255, 0.65);
}

/* Cards Wrapper on Right side of Apex */
.experience-cards-wrapper {
  position: relative;
  margin-left: auto;
  margin-right: clamp(1rem, 6vw, 6rem);
  width: clamp(380px, 42vw, 560px);
  height: 320px;
  display: flex;
  align-items: center;
  perspective: none;
  transform-style: flat;
  z-index: 10;
}

.experience-card {
  position: absolute;
  inset: 0;
  margin: auto;
  height: fit-content;
  max-height: 100%;
  padding: clamp(1.8rem, 2.6vw, 2.4rem);
  border-radius: var(--card-glass-radius);
  background: var(--card-glass-bg);
  backdrop-filter: blur(var(--card-glass-blur));
  -webkit-backdrop-filter: blur(var(--card-glass-blur));
  border: var(--card-glass-border);
  box-shadow: var(--card-glass-shadow);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(30px) scale(0.97);
  transition: opacity 0.45s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.45s cubic-bezier(0.16, 1, 0.3, 1),
    visibility 0.45s ease,
    border-color 0.4s ease,
    box-shadow 0.4s ease,
    background-color 0.3s ease;
  transform-style: flat;
  will-change: auto;
  box-sizing: border-box;
  overflow: hidden;
}

.experience-card:hover,
.experience-card.is-hovered {
  border-color: var(--card-glass-border-hover);
  background: var(--card-glass-bg-hover);
  box-shadow: var(--card-glass-shadow-hover);
}

.experience-card.is-active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0) scale(1) rotateX(var(--exp-tilt-rx, 0deg)) rotateY(var(--exp-tilt-ry, 0deg));
}

.experience-card.is-prev {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(-30px) scale(0.97);
}

.experience-card.is-next {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(30px) scale(0.97);
}

/* Subtle Glass Glare on active experience card */
.experience-card-glare {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background: radial-gradient(circle 550px at var(--exp-glare-x, 50%) var(--exp-glare-y, 50%),
      rgba(255, 255, 255, 0.12) 0%,
      rgba(255, 255, 255, 0.03) 35%,
      transparent 70%);
  opacity: 0;
  transition: opacity 0.35s ease;
  mix-blend-mode: overlay;
  z-index: 1;
}

.experience-card:hover .experience-card-glare,
.experience-card.is-hovered .experience-card-glare {
  opacity: 1;
}

.experience-card-inner {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.experience-card-header {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.experience-role {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: rgba(255, 255, 255, 0.55);
}

.experience-company {
  font-size: clamp(1.4rem, 2.2vw, 1.85rem);
  font-weight: 700;
  letter-spacing: -0.015em;
  color: #ffffff;
  line-height: 1.25;
  margin: 0;
  text-shadow: 0 0 20px rgba(255, 255, 255, 0.3);
}

.experience-desc {
  font-size: clamp(0.85rem, 1.05vw, 0.95rem);
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.78);
  margin: 0;
}

/* ================= SECTION 4: ABOUT ================= */
.about-section:not(.is-active) {
  pointer-events: none !important;
  visibility: hidden !important;
}

.about-section:not(.is-active) * {
  pointer-events: none !important;
}

.experience-section:not(.is-active) {
  pointer-events: none !important;
  visibility: hidden !important;
}

.experience-section:not(.is-active) * {
  pointer-events: none !important;
}

.problems-section.is-active {
  z-index: 35;
  pointer-events: auto;
}

.about-section {
  position: fixed;
  inset: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  visibility: hidden;
  opacity: 0;
  transition: opacity 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  perspective: none;
  transform-style: flat;
}

.about-container {
  position: relative;
  width: 100%;
  height: 100%;
  max-width: 1440px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(1rem, 2.5vh, 2.5rem) clamp(1.5rem, 4vw, 4rem);
  box-sizing: border-box;
  z-index: 10;
  pointer-events: none;
}

.about-header {
  text-align: center;
  margin-bottom: clamp(0.8rem, 2.2vh, 1.8rem);
  flex-shrink: 0;
  position: relative;
  z-index: 25;
  pointer-events: auto;
}

.about-title {
  font-size: clamp(2rem, 3.8vw, 3.25rem);
  font-weight: 700;
  letter-spacing: -0.025em;
  color: #ffffff;
  margin: 0;
  text-shadow: 0 0 32px rgba(255, 255, 255, 0.18);
}

.about-stage {
  position: relative;
  flex: 1;
  width: 100%;
  min-height: 480px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: visible;
  pointer-events: none;
}

/* Road SVG Wrapper - Spans full 100vw x 100vh viewport edge-to-edge */
.about-road-svg-wrap {
  position: absolute;
  inset: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 5;
  overflow: visible;
}

.about-road-svg {
  width: 100vw;
  height: 100vh;
  display: block;
  overflow: visible;
}

/* Road markers */
.road-marker {
  pointer-events: auto;
  cursor: pointer;
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.road-marker .marker-base-dot {
  fill: rgba(255, 255, 255, 0.4);
  stroke: rgba(255, 255, 255, 0.2);
  stroke-width: 1.5;
  transition: all 0.35s ease;
}

.road-marker .marker-pin-path {
  fill: rgba(255, 255, 255, 0.35);
  stroke: rgba(255, 255, 255, 0.6);
  stroke-width: 1.2;
  transition: all 0.35s ease;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.5));
}

.road-marker .marker-pin-inner {
  fill: #0c111c;
  transition: fill 0.35s ease;
}

.road-marker.is-active .marker-base-dot {
  fill: #ffffff;
  stroke: #ffffff;
  filter: drop-shadow(0 0 8px rgba(255, 255, 255, 0.9));
  r: 6.5;
}

.road-marker.is-active .marker-pin-path {
  fill: #ffffff;
  stroke: #ffffff;
  filter: drop-shadow(0 0 12px rgba(255, 255, 255, 0.9)) drop-shadow(0 0 24px rgba(255, 255, 255, 0.5));
  transform: scale(1.18);
  transform-origin: 0 0;
}

.road-marker.is-active .marker-pin-inner {
  fill: #090d16;
}

/* Car on Road */
.road-car {
  pointer-events: none;
  will-change: transform;
  filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.65));
  transition: transform 0.05s linear;
}

/* Destination Cards Wrapper */
.about-cards-wrapper {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 20;
}

.about-card {
  position: absolute;
  padding: clamp(1.8rem, 2.6vw, 2.5rem);
  border-radius: var(--card-glass-radius);
  background: var(--card-glass-bg);
  backdrop-filter: blur(var(--card-glass-blur));
  -webkit-backdrop-filter: blur(var(--card-glass-blur));
  border: var(--card-glass-border);
  box-shadow: var(--card-glass-shadow);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translate3d(0, 24px, 0) scale(0.97);
  transition: transform 0.45s cubic-bezier(0.16, 1, 0.3, 1),
    visibility 0.35s ease,
    border-color 0.4s ease,
    box-shadow 0.4s ease,
    background-color 0.3s ease;
  transform-style: flat;
  will-change: auto;
  box-sizing: border-box;
  overflow: hidden;
}

.about-card:hover,
.about-card.is-hovered {
  border-color: var(--card-glass-border-hover);
  background: var(--card-glass-bg-hover);
  box-shadow: var(--card-glass-shadow-hover);
}

.about-card.is-active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translate3d(0, 0, 0) scale(1) rotateX(var(--about-tilt-rx, 0deg)) rotateY(var(--about-tilt-ry, 0deg));
}

.about-card-glare {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background: radial-gradient(500px circle at var(--about-glare-x, 50%) var(--about-glare-y, 50%),
      rgba(255, 255, 255, 0.14),
      transparent 65%);
  opacity: 0;
  transition: opacity 0.35s ease;
  z-index: 1;
}

.about-card:hover .about-card-glare,
.about-card.is-hovered .about-card-glare {
  opacity: 1;
}

.about-card-inner {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
}

.about-card-badge {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: rgba(255, 255, 255, 0.7);
}

.about-card-title {
  font-size: clamp(1.5rem, 2.4vw, 2rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #ffffff;
  line-height: 1.25;
  margin: 0;
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.6);
}

.about-card-desc {
  font-size: clamp(0.92rem, 1.1vw, 1.02rem);
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.94);
  margin: 0;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
}

/* Destination 1 Position */
#aboutCard0 {
  left: 58%;
  top: 48%;
  transform: translate(-50%, -50%) translate3d(0, 24px, 0) scale(0.97);
  width: clamp(380px, 44vw, 580px);
}

#aboutCard0.is-active {
  transform: translate(-50%, -50%) translate3d(0, 0, 0) scale(1) rotateX(var(--about-tilt-rx, 0deg)) rotateY(var(--about-tilt-ry, 0deg));
}

/* Destination 2 (My Journey) Position & Components */
#aboutCard1 {
  left: 50%;
  top: 60%;
  transform: translate(-50%, -50%) translate3d(0, 24px, 0) scale(0.97);
  width: clamp(400px, 68vw, 860px);
}

#aboutCard1.is-active {
  transform: translate(-50%, -50%) translate3d(0, 0, 0) scale(1) rotateX(var(--about-tilt-rx, 0deg)) rotateY(var(--about-tilt-ry, 0deg));
}

.journey-header-block {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.journey-subtitle {
  font-size: 0.74rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: rgba(255, 255, 255, 0.6);
  font-style: italic;
}

/* Stepper Styling */
.journey-stepper-wrap {
  position: relative;
  margin: 1.2rem 0 1.4rem;
  padding: 0 0.5rem;
}

.journey-stepper-bar-bg {
  position: absolute;
  top: 17px;
  left: 36px;
  right: 36px;
  height: 3px;
  background: rgba(255, 255, 255, 0.22);
  border-radius: 2px;
  z-index: 1;
}

.journey-stepper-bar-fill {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: var(--stepper-fill, 0%);
  background: linear-gradient(90deg, #e2e8f0, #ffffff);
  box-shadow: 0 0 12px rgba(255, 255, 255, 0.7);
  border-radius: 2px;
  transition: width 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.journey-stepper-nodes {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: space-between;
  list-style: none;
  margin: 0;
  padding: 0;
}

.journey-node {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
  width: 72px;
  cursor: pointer;
}

/* Solid circular number indicators for maximum contrast */
.node-circle {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  font-weight: 800;
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  box-sizing: border-box;
  background: #cbd5e1;
  /* Solid soft silver */
  border: 2px solid #94a3b8;
  color: #0f172a;
  /* Dark bold text */
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.35);
}

.node-label {
  font-size: 0.74rem;
  font-weight: 500;
  text-align: center;
  color: rgba(255, 255, 255, 0.6);
  line-height: 1.25;
  transition: color 0.35s ease, font-weight 0.35s ease;
  white-space: normal;
}

/* Completed state: Solid filled white circle with dark checkmark */
.journey-node.is-completed .node-circle {
  background: #ffffff;
  /* Solid white */
  border: 2px solid #ffffff;
  color: #090d16;
  /* Dark checkmark */
  font-weight: 900;
  font-size: 1.05rem;
  box-shadow: 0 0 14px rgba(255, 255, 255, 0.6);
  transform: scale(1.0);
}

.journey-node.is-completed .node-label {
  color: rgba(255, 255, 255, 0.88);
  font-weight: 600;
}

/* Active state: Solid highlighted white circle with luminous halo ring and dark number */
.journey-node.is-active .node-circle {
  background: #ffffff;
  /* Solid bright white */
  border: 2.5px solid #ffffff;
  color: #090d16;
  /* Deep dark bold number */
  font-weight: 900;
  font-size: 0.95rem;
  box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.4), 0 0 24px rgba(255, 255, 255, 0.9);
  transform: scale(1.18);
}

.journey-node.is-active .node-label {
  color: #ffffff;
  font-weight: 700;
  text-shadow: 0 0 12px rgba(255, 255, 255, 0.6);
}

/* Milestone Stage Content Container */
.journey-stage-viewport {
  position: relative;
  min-height: 110px;
  margin-top: 0.5rem;
}

.journey-stage {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity 0.35s ease, transform 0.35s ease, visibility 0.35s ease;
}

.journey-stage.is-active {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  position: relative;
}

.journey-stage-badge {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: rgba(255, 255, 255, 0.65);
}

.journey-stage-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: #ffffff;
  margin: 0;
}

.journey-stage-desc {
  font-size: 0.92rem;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.94);
  margin: 0;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
}

/* Destination 3 (What I Work With) Position & Grid */
#aboutCard2 {
  left: 45%;
  top: 40%;
  transform: translate(-50%, -50%) translate3d(0, 24px, 0) scale(0.97);
  width: clamp(380px, 62vw, 780px);
}

#aboutCard2.is-active {
  transform: translate(-50%, -50%) translate3d(0, 0, 0) scale(1) rotateX(var(--about-tilt-rx, 0deg)) rotateY(var(--about-tilt-ry, 0deg));
}

.tech-categories-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem 1.4rem;
}

.tech-category {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.tech-cat-title {
  font-size: 0.74rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: rgba(255, 255, 255, 0.6);
  margin: 0;
}

.tech-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.tech-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.35rem 0.75rem;
  font-size: 0.82rem;
  font-weight: 600;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.28);
  color: #ffffff;
  transition: background 0.25s ease, border-color 0.25s ease;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

.tech-chip:hover {
  background: rgba(255, 255, 255, 0.22);
  border-color: rgba(255, 255, 255, 0.5);
}

.tech-chip.is-learning {
  background: rgba(255, 255, 255, 0.06);
  border-style: dashed;
  border-color: rgba(255, 255, 255, 0.35);
  color: rgba(255, 255, 255, 0.85);
}

.chip-learning-tag {
  font-size: 0.64rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.6);
}

/* Destination 4 (Always Learning. Always Building.) Position */
#aboutCard3 {
  left: 44%;
  top: 50%;
  transform: translate(-50%, -50%) translate3d(0, 24px, 0) scale(0.97);
  width: clamp(380px, 48vw, 620px);
}

#aboutCard3.is-active {
  transform: translate(-50%, -50%) translate3d(0, 0, 0) scale(1) rotateX(var(--about-tilt-rx, 0deg)) rotateY(var(--about-tilt-ry, 0deg));
}

.horizon-list {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  margin-top: 0.2rem;
}

.horizon-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  border-radius: 0.85rem;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: #ffffff;
  font-size: 0.88rem;
  font-weight: 600;
  transition: background 0.25s ease, border-color 0.25s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
}

.horizon-item:hover {
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.35);
}

.horizon-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #ffffff;
  box-shadow: 0 0 8px rgba(255, 255, 255, 0.8);
}

/* Mobile and Responsive Styles */
@media (max-width: 768px) {
  .problems-viewport {
    overflow-y: auto;
    max-height: 80vh;
    padding: 0.5rem 1rem;
  }

  .problems-track {
    flex-direction: column;
    gap: 1.25rem;
    padding: 0.5rem;
  }

  .problem-card-wrapper,
  .problem-card-wrapper.card-large,
  .problem-card-wrapper.card-medium,
  .problem-card-wrapper.card-small {
    width: 100% !important;
    max-width: 340px;
    height: auto !important;
  }

  .problem-card {
    width: 100% !important;
    min-height: auto !important;
    height: auto !important;
    transform: none !important;
  }

  .problem-desc {
    -webkit-line-clamp: unset !important;
    display: block !important;
  }

  /* Experience Mobile adjustments */
  .experience-stage {
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: auto;
  }

  .experience-dial-viewport {
    position: relative;
    left: 0;
    top: 0;
    transform: none;
    width: 280px;
    height: 160px;
    margin-bottom: 1.5rem;
    overflow: hidden;
  }

  .experience-cards-wrapper {
    margin: 0 auto;
    width: 100%;
    max-width: 340px;
    height: auto;
    min-height: 240px;
  }

  .experience-card {
    position: relative;
    inset: auto;
    transform: none !important;
  }

  .experience-card:not(.is-active) {
    display: none;
  }

  /* About Mobile adjustments */
  .about-stage {
    flex-direction: column;
    justify-content: center;
  }

  .about-cards-wrapper {
    position: relative;
    inset: auto;
    width: 100%;
    display: flex;
    justify-content: center;
  }

  #aboutCard0,
  #aboutCard1,
  #aboutCard2,
  #aboutCard3 {
    position: relative;
    left: 0 !important;
    top: 0 !important;
    transform: none !important;
    width: 100% !important;
    max-width: 360px !important;
  }

  .about-card:not(.is-active) {
    display: none;
  }

  .journey-node {
    width: 48px;
    gap: 0.35rem;
  }

  .node-circle {
    width: 26px;
    height: 26px;
    font-size: 0.7rem;
  }

  .node-label {
    font-size: 0.58rem;
  }

  .journey-stepper-bar-bg {
    top: 14px;
    left: 24px;
    right: 24px;
  }

  .tech-categories-grid {
    grid-template-columns: 1fr;
    gap: 0.85rem;
  }
}

/* ================= SECTION 5: CONTACT ================= */
.contact-section {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100vh;
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  opacity: 0;
  will-change: auto;
  transform-style: flat;
  transform: translate3d(0, 40px, 0);
  transition: opacity 0.4s ease, transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.contact-section.is-active {
  pointer-events: auto;
}

.contact-container {
  width: 100%;
  max-width: 1120px;
  padding: 1.5rem 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 0 auto;
}

.contact-header {
  width: 100%;
  text-align: center;
  margin-bottom: 2rem;
}

.contact-title {
  font-size: clamp(2rem, 3.8vw, 3.25rem);
  font-weight: 700;
  letter-spacing: -0.025em;
  color: #ffffff;
  margin: 0;
  text-shadow: 0 0 32px rgba(255, 255, 255, 0.18);
}

.contact-grid {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2.5rem;
  width: 100%;
  max-width: 820px;
  margin: 0 auto;
}

@media (max-width: 850px) {
  .contact-grid {
    flex-direction: column;
    gap: 2rem;
  }

  .contact-container {
    padding: 1rem 1rem;
  }

  .contact-header {
    margin-bottom: 1.25rem;
  }
}

/* Common Card Styling matching .problem-card */
.contact-card {
  position: relative;
  border-radius: var(--card-glass-radius);
  padding: 2.25rem 2rem;
  border: var(--card-glass-border);
  background: var(--card-glass-bg);
  backdrop-filter: blur(var(--card-glass-blur));
  -webkit-backdrop-filter: blur(var(--card-glass-blur));
  box-shadow: var(--card-glass-shadow);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
  transform-style: flat;
  will-change: auto;
  transition: transform 0.45s cubic-bezier(0.16, 1, 0.3, 1),
    border-color 0.4s ease,
    box-shadow 0.4s ease,
    background-color 0.3s ease;
}

.contact-card:hover,
.contact-card.is-hovered {
  border-color: var(--card-glass-border-hover);
  background: var(--card-glass-bg-hover);
  box-shadow: var(--card-glass-shadow-hover);
}

.contact-card-glare {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background: radial-gradient(circle 550px at var(--mouse-x, 50%) var(--mouse-y, 50%),
      rgba(255, 255, 255, 0.12) 0%,
      rgba(255, 255, 255, 0.03) 35%,
      transparent 70%);
  opacity: 0;
  transition: opacity 0.35s ease;
  mix-blend-mode: overlay;
  z-index: 1;
}

.contact-card:hover .contact-card-glare {
  opacity: 1;
}

.contact-card-content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.contact-card-heading {
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #ffffff;
  margin-bottom: 0.4rem;
}

.contact-card-subheading {
  font-size: 0.88rem;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.65);
  margin-bottom: 1.35rem;
}

/* Contact Form Styling */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.05rem;
  width: 100%;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.form-label {
  font-size: 0.78rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: rgba(255, 255, 255, 0.7);
}

.contact-input,
.contact-textarea {
  width: 100%;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 0.75rem;
  padding: 0.7rem 0.95rem;
  color: #ffffff;
  font-family: inherit;
  font-size: 0.925rem;
  outline: none;
  transition: border-color 0.25s ease, background-color 0.25s ease, box-shadow 0.25s ease;
}

.contact-input::placeholder,
.contact-textarea::placeholder {
  color: rgba(255, 255, 255, 0.35);
}

.contact-input:focus,
.contact-textarea:focus {
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(255, 255, 255, 0.4);
  box-shadow: 0 0 16px rgba(255, 255, 255, 0.08);
}

.contact-textarea {
  resize: vertical;
  min-height: 90px;
  max-height: 180px;
}

.contact-submit-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  align-self: flex-start;
  margin-top: 0.35rem;
  padding: 0.75rem 1.85rem;
  cursor: pointer;
  font-size: 0.925rem;
  font-weight: 600;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.contact-submit-btn .btn-spinner {
  display: none;
  width: 14px;
  height: 14px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-top-color: #ffffff;
  border-radius: 50%;
  animation: contactSpin 0.8s linear infinite;
}

.contact-submit-btn.is-loading .btn-text {
  opacity: 0.7;
}

.contact-submit-btn.is-loading .btn-icon {
  display: none;
}

.contact-submit-btn.is-loading .btn-spinner {
  display: inline-block;
}

.contact-submit-btn.is-loading {
  pointer-events: none;
  opacity: 0.8;
}

@keyframes contactSpin {
  to {
    transform: rotate(360deg);
  }
}

/* Status Alert Banner */
.contact-alert {
  display: none;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  border-radius: 0.75rem;
  font-size: 0.875rem;
  line-height: 1.4;
  margin-top: 0.6rem;
  transition: all 0.3s ease;
}

.contact-alert.is-success {
  display: flex;
  background: rgba(34, 197, 94, 0.12);
  border: 1px solid rgba(34, 197, 94, 0.35);
  color: #86efac;
}

.contact-alert.is-error {
  display: flex;
  background: rgba(239, 68, 68, 0.12);
  border: 1px solid rgba(239, 68, 68, 0.35);
  color: #fca5a5;
}

/* ================= SOCIAL RAIL (MATCHING REFERENCE IMAGE) ================= */
.social-rail-container {
  display: flex;
  align-items: stretch;
  gap: 1.5rem;
  width: 100%;
  margin-top: auto;
}

/* Vertical Rail matching reference image (65px wide, dark obsidian pillar) */
.social-vertical-rail {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  width: 65px;
  min-width: 65px;
  background: rgba(10, 10, 14, 0.88);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 36px;
  padding: 0.85rem 0.35rem;
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.65), inset 0 1px 1px rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(28px);
  -webkit-backdrop-filter: blur(28px);
  gap: 0.45rem;
  position: relative;
  z-index: 10;
}

.social-rail-link {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  text-decoration: none;
  position: relative;
  background: transparent;
  transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1),
    background-color 0.25s ease,
    filter 0.28s ease,
    color 0.25s ease;
  outline: none;
}

.social-rail-link:hover,
.social-rail-link.is-active {
  transform: scale(1.18);
  background: rgba(255, 255, 255, 0.14);
  filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.75));
  color: #ffffff;
}

.social-rail-link:focus-visible {
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.8);
}

.social-rail-link:active {
  transform: scale(0.92);
}

.social-rail-icon {
  width: 20px;
  height: 20px;
  fill: currentColor;
  transition: transform 0.25s ease;
}

/* Floating Tooltip to the right */
.social-tooltip {
  position: absolute;
  left: calc(100% + 14px);
  top: 50%;
  transform: translateY(-50%) translateX(-8px);
  background: rgba(14, 14, 20, 0.94);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 9999px;
  padding: 0.38rem 0.85rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: #ffffff;
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.15);
  transition: opacity 0.25s ease, transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  align-items: center;
  gap: 0.45rem;
  z-index: 60;
}

.social-tooltip::before {
  content: '';
  position: absolute;
  right: 100%;
  top: 50%;
  transform: translateY(-50%);
  border: 5px solid transparent;
  border-right-color: rgba(255, 255, 255, 0.18);
}

.social-rail-link:hover .social-tooltip,
.social-rail-link:focus-visible .social-tooltip {
  opacity: 1;
  transform: translateY(-50%) translateX(0);
}

.social-tooltip-handle {
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.55);
  font-weight: 400;
}

/* Companion Details Panel */
.social-companion {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 1.1rem;
  padding: 1.25rem 1.35rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 1.25rem;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

.social-status-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  align-self: flex-start;
  padding: 0.32rem 0.75rem;
  border-radius: 9999px;
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.25);
  font-size: 0.75rem;
  font-weight: 500;
  color: #6ee7b7;
  letter-spacing: 0.01em;
}

.status-pulse-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 10px #10b981;
  animation: pulseGlow 2s infinite ease-in-out;
}

@keyframes pulseGlow {

  0%,
  100% {
    transform: scale(1);
    opacity: 1;
  }

  50% {
    transform: scale(1.4);
    opacity: 0.6;
  }
}

.social-preview-card {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  padding: 1rem;
  border-radius: 0.85rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.12);
  transition: background-color 0.3s ease, border-color 0.3s ease;
}

.preview-badge {
  font-size: 0.68rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.45);
}

.preview-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: -0.01em;
  transition: color 0.25s ease;
}

.preview-desc {
  font-size: 0.825rem;
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.65);
  min-height: 48px;
}

.preview-action-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.5rem 0.95rem;
  border-radius: 0.6rem;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: #ffffff;
  text-decoration: none;
  font-size: 0.8rem;
  font-weight: 600;
  align-self: flex-start;
  margin-top: 0.35rem;
  transition: background-color 0.25s ease, border-color 0.25s ease, transform 0.25s ease;
}

.preview-action-btn:hover {
  background: rgba(255, 255, 255, 0.18);
  border-color: rgba(255, 255, 255, 0.35);
  transform: translateY(-2px);
}

.social-quick-footer {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  padding-top: 0.75rem;
}

.quick-footer-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.78rem;
}

.quick-label {
  color: rgba(255, 255, 255, 0.45);
}

.quick-link {
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s ease;
}

.quick-link:hover {
  color: #ffffff;
  text-decoration: underline;
}

@media (max-width: 850px) {
  .social-vertical-rail {
    flex-direction: row;
    width: 100%;
    max-width: 380px;
    height: 60px;
    padding: 0.35rem 0.85rem;
  }

  .social-tooltip {
    left: 50%;
    top: auto;
    bottom: calc(100% + 10px);
    transform: translateX(-50%) translateY(8px);
  }

  .social-tooltip::before {
    right: auto;
    left: 50%;
    top: 100%;
    transform: translateX(-50%);
    border-right-color: transparent;
    border-top-color: rgba(255, 255, 255, 0.18);
  }

  .social-rail-link:hover .social-tooltip,
  .social-rail-link:focus-visible .social-tooltip {
    transform: translateX(-50%) translateY(0);
  }
}

/* ================= SECTION 6: FOOTER ================= */
.site-footer {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  background: var(--card-glass-bg);
  backdrop-filter: blur(var(--card-glass-blur));
  -webkit-backdrop-filter: blur(var(--card-glass-blur));
  border-top: var(--card-glass-border);
  box-shadow: 0 -20px 45px -10px rgba(0, 0, 0, 0.4), inset 0 1px 1px 0 rgba(255, 255, 255, 0.1);
  padding: 3rem 2rem 2.25rem;
  color: #ffffff;
  z-index: 20;
  transition: var(--card-glass-transition);
}

.footer-container {
  max-width: 1120px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
}

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

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #ffffff;
  text-decoration: none;
}

.footer-tagline {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.55);
  max-width: 320px;
  line-height: 1.5;
}

.footer-nav {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-nav a {
  font-size: 0.875rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.65);
  text-decoration: none;
  transition: color 0.25s ease;
}

.footer-nav a:hover {
  color: #ffffff;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.45);
}