/* ==========================================================================
   PORTFOLIO STYLESHEET - YASHWANTH K R
   Clean, Modern Space Theme with High-Performance Glassmorphism
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Design Tokens & Color System
   -------------------------------------------------------------------------- */
:root {
  --space-bg: #07070a;
  --space-card: rgba(255, 255, 255, 0.025);
  --space-card-border: rgba(255, 255, 255, 0.08);
  --space-card-hover-border: rgba(0, 245, 255, 0.35);

  --color-white: #ffffff;
  --color-muted: rgba(255, 255, 255, 0.48);
  --color-faint: rgba(255, 255, 255, 0.2);
  --color-cyan: #00f5ff;
  --color-blue: #00d4ff;
  --color-purple: #8a7aff;
  --color-pink: #ff2d75;
  --color-yellow: #facc15;
  --color-orange: #ff9800;
  --color-green: #10b981;

  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'Fira Code', monospace;
  --container-max-w: 1140px;
}

/* --------------------------------------------------------------------------
   2. Base Reset & System Cursor Visibility (Guaranteed 100% visible!)
   -------------------------------------------------------------------------- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  background-color: var(--space-bg);
  color: var(--color-white);
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body.site-body {
  min-height: 100vh;
  background: var(--space-bg);
  overflow-x: hidden;
  position: relative;
  line-height: 1.6;
}

/* Globally hide default mouse cursor so White Comet Cursor is always the active pointer */
*, *::before, *::after {
  cursor: none !important;
}

/* --------------------------------------------------------------------------
   3. White Comet & Shooting Star Motion Cursor
   -------------------------------------------------------------------------- */
.comet-tail-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 2147483646;
}

.comet-head {
  position: fixed;
  top: 0;
  left: 0;
  pointer-events: none;
  z-index: 2147483647;
  transform: translate3d(-100px, -100px, 0) translate(-50%, -50%);
  opacity: 0;
  transition: opacity 0.15s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
}

.comet-head.active {
  opacity: 1 !important;
}

/* Intense luminous white comet core nucleus */
.comet-nucleus {
  width: 8px;
  height: 8px;
  background: #ffffff;
  border-radius: 50%;
  position: absolute;
  box-shadow:
    0 0 5px #ffffff,
    0 0 12px #ffffff,
    0 0 22px rgba(255, 255, 255, 0.95),
    0 0 35px rgba(0, 245, 255, 0.8),
    0 0 50px rgba(0, 245, 255, 0.4);
  transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.2s ease;
}

/* 4-point celestial diamond star glint */
.comet-glint {
  position: absolute;
  width: 22px;
  height: 22px;
  pointer-events: none;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.comet-glint::before,
.comet-glint::after {
  content: '';
  position: absolute;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.95), transparent);
  border-radius: 1px;
}

.comet-glint::before {
  width: 20px;
  height: 1.5px;
}

.comet-glint::after {
  width: 1.5px;
  height: 20px;
  background: linear-gradient(180deg, transparent, rgba(255, 255, 255, 0.95), transparent);
}

/* Soft celestial starlight aura */
.comet-aura {
  position: absolute;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.25) 0%, rgba(0, 245, 255, 0.1) 50%, transparent 75%);
  pointer-events: none;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

/* Cosmic orbit dashed target ring - activates on interactive elements */
.comet-orbit-ring {
  position: absolute;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1.5px dashed rgba(255, 255, 255, 0.45);
  pointer-events: none;
  opacity: 0;
  transform: scale(0.65) rotate(0deg);
  transition: opacity 0.25s ease, transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1), border-color 0.25s ease, box-shadow 0.25s ease;
}

@keyframes cometOrbitSpin {
  from { transform: scale(1.18) rotate(0deg); }
  to { transform: scale(1.18) rotate(360deg); }
}

/* Hover state on clickable links/buttons */
.comet-head.hover .comet-nucleus {
  transform: scale(1.45);
  background: #ffffff;
  box-shadow:
    0 0 8px #ffffff,
    0 0 18px #00f5ff,
    0 0 32px rgba(0, 245, 255, 0.85),
    0 0 45px rgba(255, 45, 117, 0.4);
}

.comet-head.hover .comet-glint {
  transform: rotate(45deg) scale(1.3);
}

.comet-head.hover .comet-aura {
  transform: scale(1.5);
  background: radial-gradient(circle, rgba(0, 245, 255, 0.3) 0%, rgba(255, 45, 117, 0.15) 55%, transparent 75%);
}

.comet-head.hover .comet-orbit-ring {
  opacity: 1;
  border-color: rgba(0, 245, 255, 0.85);
  box-shadow: 0 0 14px rgba(0, 245, 255, 0.4);
  animation: cometOrbitSpin 3s linear infinite;
}

/* Click micro-pulse burst */
.comet-head.clicking .comet-nucleus {
  transform: scale(0.75);
}

.comet-click-burst {
  position: fixed;
  pointer-events: none;
  z-index: 2147483645;
  border-radius: 50%;
  border: 1.5px solid rgba(255, 255, 255, 0.95);
  box-shadow: 0 0 12px rgba(0, 245, 255, 0.8);
  animation: cometBurstAnim 0.45s ease-out forwards;
}

@keyframes cometBurstAnim {
  0% {
    width: 6px;
    height: 6px;
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
  }
  100% {
    width: 48px;
    height: 48px;
    opacity: 0;
    transform: translate(-50%, -50%) scale(1.6);
  }
}

/* --------------------------------------------------------------------------
   4. Typography & Utility Classes (Matched to Inter modern styling)
   -------------------------------------------------------------------------- */
body, button, input, select, textarea {
  font-family: var(--font-sans);
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-sans);
  letter-spacing: -0.025em;
  font-weight: 700;
}

.page-heading {
  font-family: var(--font-sans);
  font-size: clamp(2rem, 4.5vw, 3rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.03em;
  margin-bottom: 2rem;
}

.section-tag {
  font-family: var(--font-sans);
  font-weight: 600;
  letter-spacing: 0.12em;
}

.font-mono { font-family: var(--font-mono); }
.text-white { color: var(--color-white) !important; }
.text-cyan { color: var(--color-cyan) !important; }
.text-purple { color: var(--color-purple) !important; }
.text-pink { color: var(--color-pink) !important; }
.text-orange { color: var(--color-orange) !important; }
.text-yellow { color: var(--color-yellow) !important; }
.text-green { color: var(--color-green) !important; }
.text-muted { color: var(--color-muted) !important; }
.text-xs { font-size: 0.75rem; }
.text-sm { font-size: 0.875rem; }
.mt-2 { margin-top: 0.5rem; }
.mt-3 { margin-top: 0.75rem; }
.mt-4 { margin-top: 1rem; }
.mb-4 { margin-bottom: 1rem; }

/* --------------------------------------------------------------------------
   5. Background Three.js WebGL Canvas
   -------------------------------------------------------------------------- */
#space-canvas {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 0;
  opacity: 0.95;
}

/* Top Progress Bar */
.scroll-progress-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 2.5px;
  z-index: 10000;
  background: transparent;
}

.scroll-progress-bar {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--color-cyan), var(--color-purple), var(--color-pink));
  box-shadow: 0 0 10px var(--color-cyan);
  transition: width 0.08s ease-out;
}

/* --------------------------------------------------------------------------
   6. Navigation Bar & Heart Logo
   -------------------------------------------------------------------------- */
.space-nav-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 500;
  padding: 0.85rem 1.5rem;
  background: rgba(7, 7, 10, 0.78);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.nav-container {
  max-width: var(--container-max-w);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Pixel Heart Logo */
.nav-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  font-weight: 700;
  font-size: 1.125rem;
  letter-spacing: -0.02em;
}

.brand-heart-pixel {
  width: 28px;
  height: auto;
  image-rendering: pixelated;
  image-rendering: -moz-crisp-edges;
  image-rendering: crisp-edges;
  filter: drop-shadow(0 0 6px rgba(255, 45, 117, 0.6));
  transition: transform 0.25s ease, filter 0.25s ease;
}

.nav-brand:hover .brand-heart-pixel {
  transform: scale(1.18);
  filter: drop-shadow(0 0 12px rgba(255, 45, 117, 0.9));
}

.brand-title {
  display: flex;
  gap: 0.35rem;
}

/* Navigation Pills */
.nav-pills {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.nav-pill {
  padding: 0.45rem 1rem;
  border-radius: 9999px;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.55);
  text-decoration: none;
  transition: all 0.25s ease;
  position: relative;
}

.nav-pill:hover {
  color: var(--color-white);
}

.nav-pill.active {
  color: var(--color-white);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 0 15px rgba(0, 245, 255, 0.1);
}

.nav-resume-pill {
  color: var(--color-cyan) !important;
  border: 1px solid rgba(0, 245, 255, 0.25);
  background: rgba(0, 245, 255, 0.04);
}

.nav-resume-pill:hover {
  background: rgba(0, 245, 255, 0.12);
  border-color: var(--color-cyan);
}

.nav-right-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.nav-social-btn {
  color: rgba(255, 255, 255, 0.45);
  font-size: 1.15rem;
  padding: 0.4rem;
  transition: color 0.25s ease, transform 0.25s ease;
  text-decoration: none;
}

.nav-social-btn:hover {
  color: var(--color-white);
  transform: translateY(-2px);
}

.nav-mobile-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--color-white);
  font-size: 1.25rem;
  padding: 0.4rem;
}

/* --------------------------------------------------------------------------
   7. SPA View Management
   -------------------------------------------------------------------------- */
.spa-main {
  position: relative;
  z-index: 10;
  max-width: var(--container-max-w);
  margin: 0 auto;
  padding: 4.75rem 1.5rem 5rem;
  min-height: calc(100vh - 120px);
}

.page-view {
  display: none;
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.35s ease, transform 0.35s ease;
}

.page-view.active {
  display: block;
  opacity: 1;
  transform: translateY(0);
}

/* --------------------------------------------------------------------------
   8. Glassmorphic 3D Tilt Cards
   -------------------------------------------------------------------------- */
.modern-card {
  position: relative;
  background: var(--space-card);
  border: 1px solid var(--space-card-border);
  border-radius: 1.1rem;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  overflow: hidden;
  transition: border-color 0.3s ease, box-shadow 0.3s ease, transform 0.12s ease-out;
  transform-style: preserve-3d;
  will-change: transform;
}

.modern-card:hover {
  border-color: var(--space-card-hover-border);
  box-shadow: 0 14px 35px rgba(0, 0, 0, 0.6), 0 0 25px rgba(0, 245, 255, 0.09);
}

.card-glass-glow {
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  background: radial-gradient(
    450px circle at var(--mouse-x, 50%) var(--mouse-y, 50%),
    rgba(0, 245, 255, 0.12) 0%,
    rgba(138, 122, 255, 0.05) 35%,
    transparent 65%
  );
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
  z-index: 1;
}

.modern-card:hover .card-glass-glow {
  opacity: 1;
}

.card-inner-content {
  position: relative;
  z-index: 2;
  padding: 1.75rem;
}

.card-top-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.25rem;
}

.card-icon-box {
  width: 44px;
  height: 44px;
  border-radius: 0.75rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  transition: background 0.3s ease, border-color 0.3s ease;
}

.modern-card:hover .card-icon-box {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.2);
}

.card-actions {
  display: flex;
  gap: 0.5rem;
  position: relative;
  z-index: 15;
  pointer-events: auto;
}

.card-action-icon {
  width: 32px;
  height: 32px;
  border-radius: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.65);
  text-decoration: none;
  transition: all 0.2s ease;
  position: relative;
  z-index: 15;
  pointer-events: auto;
}

.card-action-icon:hover {
  color: var(--color-cyan);
  background: rgba(0, 245, 255, 0.12);
  border: 1px solid rgba(0, 245, 255, 0.3);
}

.card-title {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 0.6rem;
  color: var(--color-white);
  letter-spacing: -0.01em;
}

.card-description {
  color: var(--color-muted);
  font-size: 0.9rem;
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

.card-collaborator {
  font-size: 0.8rem;
  color: var(--color-cyan);
  margin-top: -0.5rem;
  margin-bottom: 1.25rem;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.25rem 0.65rem;
  background: rgba(0, 245, 255, 0.05);
  border: 1px solid rgba(0, 245, 255, 0.16);
  border-radius: 6px;
}

.card-collaborator a {
  color: #ffffff;
  text-decoration: underline;
  text-underline-offset: 3px;
  font-weight: 500;
  transition: color 0.2s ease;
}

.card-collaborator a:hover {
  color: var(--color-cyan);
}

.card-bottom-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  flex-wrap: wrap;
  gap: 0.75rem;
}

.card-tags-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.tech-pill {
  padding: 0.25rem 0.65rem;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.65);
  font-size: 0.72rem;
}

.card-live-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.35rem 0.85rem;
  border-radius: 0.5rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.75rem;
  text-decoration: none;
  transition: all 0.2s ease;
}

.card-live-pill:hover {
  background: rgba(0, 245, 255, 0.1);
  border-color: rgba(0, 245, 255, 0.3);
  color: var(--color-white);
}

/* --------------------------------------------------------------------------
   9. Buttons
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.6rem;
  border-radius: 9999px;
  font-size: 0.875rem;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.25s ease;
}

.btn-primary {
  background: var(--color-cyan);
  color: #050508;
  font-weight: 600;
  box-shadow: 0 0 20px rgba(0, 245, 255, 0.35);
}

.btn-primary:hover {
  background: #38f8ff;
  box-shadow: 0 0 35px rgba(0, 245, 255, 0.6);
  transform: translateY(-2px);
}

.btn-outline {
  background: transparent;
  color: var(--color-white);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-outline:hover {
  border-color: var(--color-cyan);
  color: var(--color-cyan);
  background: rgba(0, 245, 255, 0.05);
  transform: translateY(-2px);
}

.btn-pill-lg {
  padding: 0.9rem 2.2rem;
  border-radius: 9999px;
  background: var(--color-white);
  color: #050508;
  font-weight: 600;
  box-shadow: 0 0 30px rgba(255, 255, 255, 0.15);
}

.btn-pill-lg:hover {
  background: #f0f0f5;
  box-shadow: 0 0 45px rgba(0, 245, 255, 0.3);
  transform: translateY(-2px);
}

/* --------------------------------------------------------------------------
   10. Page 1: Home View Specifics
   -------------------------------------------------------------------------- */
.hero-wrapper {
  text-align: center;
  padding: 1.25rem 1rem 3.5rem;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.45rem 1.1rem;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.775rem;
  color: rgba(255, 255, 255, 0.75);
  margin-bottom: 1rem;
}

.pulse-indicator {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--color-green);
  box-shadow: 0 0 8px var(--color-green);
  animation: pulse-dot 2s infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(1.3); }
}

/* Magnetic Letter Effect */
.hero-name-heading {
  font-size: clamp(3.2rem, 9vw, 6.8rem);
  font-weight: 900;
  letter-spacing: -0.04em;
  line-height: 0.95;
  margin-bottom: 1.5rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.8rem;
}

.magnetic-char-group {
  display: inline-flex;
}

.magnetic-letter {
  display: inline-block;
  transition: transform 0.2s cubic-bezier(0.2, 0.8, 0.2, 1), color 0.2s ease;
  will-change: transform;
}

.hero-tagline-roles {
  font-size: clamp(0.95rem, 2vw, 1.2rem);
  color: var(--color-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-bottom: 1.25rem;
}

.role-hover-item {
  transition: color 0.25s ease, transform 0.25s ease;
  padding: 0.1rem 0.3rem;
}

.role-hover-item:hover {
  color: var(--color-cyan);
  transform: translateY(-2px);
}

.role-sep {
  color: rgba(255, 255, 255, 0.2);
}

.hero-mission-statement {
  max-width: 680px;
  margin: 0 auto 2.5rem;
  color: rgba(255, 255, 255, 0.6);
  font-size: 1rem;
  line-height: 1.7;
}

/* Metrics Row */
.hero-stats-row {
  display: flex;
  justify-content: center;
  gap: clamp(1.5rem, 5vw, 4.5rem);
  margin-bottom: 3rem;
}

.stat-item {
  text-align: center;
}

.stat-number {
  font-size: clamp(1.5rem, 3.5vw, 2.3rem);
  font-weight: 700;
  color: var(--color-white);
  line-height: 1.1;
}

.stat-label {
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  color: rgba(255, 255, 255, 0.4);
  margin-top: 0.35rem;
}

.hero-cta-group {
  display: flex;
  justify-content: center;
  gap: 1rem;
}

/* Featured Section on Home */
.featured-section {
  padding-top: 4.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.section-tag {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.85rem;
  margin-bottom: 1rem;
}

.tag-num {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.35);
}

.tag-line {
  width: 32px;
  height: 1px;
  background: rgba(255, 255, 255, 0.2);
}

.tag-label {
  font-size: 0.8rem;
  letter-spacing: 0.15em;
  color: rgba(255, 255, 255, 0.35);
}

.featured-heading, .page-heading {
  font-size: clamp(2.2rem, 5vw, 3.8rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.1;
  text-align: center;
  margin-bottom: 1.5rem;
}

.featured-link-wrap {
  text-align: center;
  margin-bottom: 3rem;
}

.view-all-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: rgba(255, 255, 255, 0.45);
  font-size: 0.875rem;
  text-decoration: none;
  transition: color 0.2s ease, transform 0.2s ease;
}

.view-all-link:hover {
  color: var(--color-white);
  transform: translateX(4px);
}

.featured-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1.5rem;
  margin-bottom: 3.5rem;
}

.explore-btn-container {
  text-align: center;
}

/* --------------------------------------------------------------------------
   11. Page 2: About (Bento Grid & Backend Arsenal)
   -------------------------------------------------------------------------- */
.bento-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 3rem;
}

.bento-span-2 { grid-column: span 2; }
.bento-span-3 { grid-column: span 3; }

.bento-card-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.bento-title {
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--color-white);
}

.bento-subtitle {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.4);
}

.bento-paragraph {
  color: var(--color-muted);
  font-size: 0.925rem;
  line-height: 1.7;
  margin-bottom: 1rem;
}

.bento-paragraph:last-child {
  margin-bottom: 0;
}

.focus-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.focus-list li {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.75);
}

.bullet-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
}

.bg-cyan { background: var(--color-cyan); }
.bg-purple { background: var(--color-purple); }
.bg-pink { background: var(--color-pink); }
.bg-green { background: var(--color-green); }

.education-details {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.edu-inst {
  font-size: 1.05rem;
  font-weight: 600;
}

.edu-degree {
  font-size: 0.85rem;
}

.edu-year {
  font-size: 0.75rem;
}

.profile-links-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.profile-pill-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 1.2rem;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.65);
  font-size: 0.825rem;
  text-decoration: none;
  transition: all 0.25s ease;
}

.profile-pill-btn:hover {
  background: rgba(255, 255, 255, 0.09);
  color: var(--color-white);
  border-color: rgba(255, 255, 255, 0.25);
  transform: translateY(-2px);
}

/* Technical Arsenal Detailed 3-Column Grid */
.tech-arsenal-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 1rem;
}

.arsenal-column {
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 0.85rem;
  padding: 1.25rem;
}

.arsenal-col-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  letter-spacing: 0.1em;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.skills-pill-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.skill-cloud-item {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.45rem 0.85rem;
  border-radius: 0.6rem;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.75);
  transition: all 0.2s ease;
}

.skill-cloud-item:hover {
  background: rgba(0, 245, 255, 0.06);
  border-color: rgba(0, 245, 255, 0.3);
  color: var(--color-white);
}

/* --------------------------------------------------------------------------
   12. Page 3: Creations View
   -------------------------------------------------------------------------- */
.project-filters-row {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin: 2.5rem 0 3.5rem;
}

.filter-pill {
  padding: 0.5rem 1.25rem;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(255, 255, 255, 0.09);
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.8rem;
  transition: all 0.2s ease;
}

.filter-pill:hover {
  color: var(--color-white);
  border-color: rgba(255, 255, 255, 0.2);
}

.filter-pill.active {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.25);
  color: var(--color-white);
  box-shadow: 0 0 15px rgba(255, 255, 255, 0.05);
}

.projects-grid-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1.5rem;
}

/* --------------------------------------------------------------------------
   13. Page 4: Journey Roadmap View & GitHub Metric
   -------------------------------------------------------------------------- */
.journey-roadmap-stream {
  position: relative;
  max-width: 820px;
  margin: 3rem auto 4.5rem;
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.journey-step-item {
  display: flex;
  position: relative;
  gap: 2rem;
  align-items: stretch;
}

.journey-step-left {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 44px;
  flex-shrink: 0;
  position: relative;
}

.journey-step-node {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(12px);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 2;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.3);
}

.journey-node-num {
  font-size: 0.85rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.85);
  letter-spacing: -0.02em;
}

.journey-node-pulse {
  position: absolute;
  inset: -3px;
  border-radius: 15px;
  border: 1px solid transparent;
  pointer-events: none;
  transition: all 0.3s ease;
}

.journey-step-item:hover .journey-step-node {
  border-color: rgba(0, 245, 255, 0.6);
  background: rgba(0, 245, 255, 0.08);
  box-shadow: 0 0 20px rgba(0, 245, 255, 0.3);
  transform: translateY(-2px);
}

.journey-step-item:hover .journey-node-num {
  color: var(--color-cyan);
}

.journey-step-item:hover .journey-node-pulse {
  border-color: rgba(0, 245, 255, 0.3);
  animation: pulseNodeRing 2s infinite ease-out;
}

@keyframes pulseNodeRing {
  0% { transform: scale(1); opacity: 0.8; }
  100% { transform: scale(1.3); opacity: 0; }
}

.journey-scroll-tracker {
  position: absolute;
  left: 21px;
  top: 21px;
  bottom: 21px;
  width: 2px;
  pointer-events: none;
  z-index: 4;
}

.journey-scroll-dot {
  position: absolute;
  left: 50%;
  top: 0;
  transform: translate(-50%, -50%);
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #00f5ff;
  border: 2px solid #ffffff;
  box-shadow: 0 0 12px #00f5ff, 0 0 25px rgba(0, 245, 255, 0.9), 0 0 40px rgba(0, 245, 255, 0.5);
  pointer-events: none;
  transition: top 0.05s linear;
}

.journey-scroll-dot::after {
  content: '';
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  border: 1px solid rgba(0, 245, 255, 0.6);
  animation: pulseNodeRing 1.8s infinite ease-out;
}

.journey-step-line {
  flex-grow: 1;
  width: 2px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.15) 0%, rgba(255, 255, 255, 0.05) 100%);
  margin-top: 8px;
  border-radius: 2px;
}

.journey-step-item:last-child .journey-step-line {
  display: none;
}

.journey-card {
  flex: 1;
  border-radius: 16px;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.journey-step-item:hover .journey-card {
  border-color: rgba(0, 245, 255, 0.3);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4), 0 0 20px rgba(0, 245, 255, 0.06);
  transform: translateY(-3px);
}

.journey-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.85rem;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.journey-badge-group {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  flex-wrap: wrap;
}

.journey-year-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.28rem 0.75rem;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.78rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.85);
  letter-spacing: -0.01em;
}

.journey-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.25rem 0.65rem;
  border-radius: 9999px;
  font-size: 0.72rem;
  font-weight: 600;
}

.journey-status-pill.current {
  background: rgba(0, 245, 255, 0.1);
  border: 1px solid rgba(0, 245, 255, 0.3);
  color: var(--color-cyan);
}

.journey-status-pill.active {
  background: rgba(255, 152, 0, 0.1);
  border: 1px solid rgba(255, 152, 0, 0.3);
  color: var(--color-orange);
}

.journey-status-pill.done {
  background: rgba(138, 122, 255, 0.1);
  border: 1px solid rgba(138, 122, 255, 0.3);
  color: var(--color-purple);
}

.journey-title {
  font-size: 1.18rem;
  font-weight: 700;
  color: var(--color-white);
  letter-spacing: -0.02em;
  margin-bottom: 0.3rem;
}

.journey-subtitle {
  font-size: 0.88rem;
  font-weight: 500;
  margin-bottom: 0.8rem;
}

.journey-desc {
  font-size: 0.9rem;
  line-height: 1.65;
  color: var(--color-muted);
  margin-bottom: 1.25rem;
}

.journey-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

@media (max-width: 640px) {
  .journey-step-item {
    gap: 1.2rem;
  }
  .journey-step-left {
    width: 36px;
  }
  .journey-step-node {
    width: 36px;
    height: 36px;
    border-radius: 10px;
  }
  .journey-title {
    font-size: 1.05rem;
  }
}

/* GitHub Metric Card */
.github-activity-card {
  max-width: 860px;
  margin: 0 auto;
}

.github-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
  gap: 1rem;
}

.github-title {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.github-subtitle {
  font-size: 0.875rem;
}

.github-handle {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.875rem;
  text-decoration: none;
  transition: opacity 0.2s ease;
}

.github-handle:hover {
  opacity: 0.8;
}

.github-chart-wrapper {
  overflow-x: auto;
  padding: 1.25rem;
  border-radius: 0.85rem;
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.05);
  display: flex;
  justify-content: center;
}

.github-chart-img {
  width: 100%;
  max-width: 760px;
  height: auto;
}

.github-chart-hint {
  text-align: center;
  margin-top: 0.75rem;
}

/* --------------------------------------------------------------------------
   14. Page 5: Connect View (Form & Channels)
   -------------------------------------------------------------------------- */
.contact-grid-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin-top: 3.5rem;
}

.contact-channels-column {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.contact-method-card .card-inner-content.flex-row {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  padding: 1.25rem 1.5rem;
}

.contact-card-value {
  font-size: 0.95rem;
  font-weight: 600;
}

.contact-card-btn {
  margin-left: auto;
  color: rgba(255, 255, 255, 0.4);
  font-size: 0.9rem;
  text-decoration: none;
  transition: color 0.2s ease, transform 0.2s ease;
}

.contact-card-btn:hover {
  color: var(--color-white);
  transform: translateX(3px);
}

.contact-form-card .form-title {
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.space-form {
  display: flex;
  flex-direction: column;
  gap: 1.15rem;
}

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

.form-label {
  color: rgba(255, 255, 255, 0.45);
  letter-spacing: 0.08em;
}

.form-input, .form-textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 0.65rem;
  color: var(--color-white);
  font-family: inherit;
  font-size: 0.875rem;
  outline: none;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.form-input:focus, .form-textarea:focus {
  border-color: var(--color-cyan);
  background: rgba(0, 245, 255, 0.03);
}

.w-full {
  width: 100%;
}

/* --------------------------------------------------------------------------
   15. Unified Modern Footer
   -------------------------------------------------------------------------- */
.site-footer {
  position: relative;
  z-index: 50;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(7, 7, 10, 0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  padding: 4.5rem 1.5rem 2.5rem;
}

.footer-container {
  max-width: var(--container-max-w);
  margin: 0 auto;
}

.footer-top-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3.5rem;
}

.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  font-weight: 700;
  font-size: 1.25rem;
  margin-bottom: 0.85rem;
}

.footer-bio {
  max-width: 320px;
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

.footer-social-links {
  display: flex;
  gap: 0.75rem;
}

.footer-social-icon {
  width: 36px;
  height: 36px;
  border-radius: 0.5rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.4);
  text-decoration: none;
  transition: all 0.25s ease;
}

.footer-social-icon:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.2);
  color: var(--color-white);
  transform: translateY(-2px);
}

.footer-col-title {
  letter-spacing: 0.12em;
  color: rgba(255, 255, 255, 0.4);
  margin-bottom: 1.25rem;
}

.footer-nav-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.footer-nav-list a {
  color: rgba(255, 255, 255, 0.4);
  text-decoration: none;
  transition: color 0.2s ease;
  position: relative;
  z-index: 100;
  pointer-events: auto;
}

.footer-nav-list a:hover {
  color: var(--color-white);
}

.footer-bottom-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.04);
  flex-wrap: wrap;
  gap: 1rem;
  padding-right: 120px; /* Ample clearance from floating mascot */
}

.footer-source-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  text-decoration: none;
  transition: color 0.2s ease;
  position: relative;
  z-index: 100;
  pointer-events: auto;
}

.footer-source-link:hover {
  color: var(--color-white);
}

/* --------------------------------------------------------------------------
   16. Responsive Layout Breakpoints
   -------------------------------------------------------------------------- */
@media (max-width: 960px) {
  .bento-grid {
    grid-template-columns: 1fr;
  }
  .bento-span-2, .bento-span-3 {
    grid-column: span 1;
  }
  .tech-arsenal-grid {
    grid-template-columns: 1fr;
  }
  .contact-grid-layout {
    grid-template-columns: 1fr;
  }
  .footer-top-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .timeline-center-line {
    left: 20px;
  }
  .timeline-item {
    width: 100%;
    left: 0 !important;
    padding-left: 50px !important;
    padding-right: 0 !important;
  }
  .timeline-marker {
    left: 15px !important;
  }
  .footer-bottom-bar {
    padding-right: 0;
    padding-bottom: 95px;
  }
}

@media (max-width: 768px) {
  .nav-pills {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(7, 7, 10, 0.96);
    backdrop-filter: blur(25px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    flex-direction: column;
    padding: 1.25rem;
    gap: 0.6rem;
  }
  .nav-pills.mobile-open {
    display: flex;
  }
  .nav-mobile-toggle {
    display: block;
  }
  .hero-stats-row {
    flex-direction: column;
    gap: 1.5rem;
  }
  .featured-cards-grid, .projects-grid-container {
    grid-template-columns: 1fr;
  }
}

/* --------------------------------------------------------------------------
   Rover Video Embed
   -------------------------------------------------------------------------- */
.rover-video-embed {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
  margin: 1rem 0 1.25rem 0;
  border-radius: 0.75rem;
  overflow: hidden;
  border: 1px solid rgba(0, 245, 255, 0.18);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
  background: #000;
}

.rover-video-embed iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
}

