/* ==========================================================================
   Hansraj D — Luxury Obsidian & Chrome Component Stylesheets
   Navbar, Centered Hero with 3D Behind, Projects, Constellation & Contact
   ========================================================================== */

/* --------------------------------------------------------------------------
   0. Cinematic Experience Loader
   -------------------------------------------------------------------------- */
#experience-loader {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  z-index: 99999;
  background-color: #050507;
  color: #ffffff;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 16px;
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.7s;
}

#experience-loader.loaded {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.loader-badge {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.25em;
  color: #a0a0ab;
  text-transform: uppercase;
}

.loader-counter {
  font-family: var(--font-display);
  font-size: clamp(3.5rem, 11vw, 8rem);
  font-weight: 800;
  line-height: 0.9;
  letter-spacing: -0.05em;
  color: #ffffff;
}

.loader-bar-wrap {
  width: 220px;
  height: 2px;
  background: rgba(255, 255, 255, 0.1);
  position: relative;
  overflow: hidden;
  border-radius: 99px;
  margin-top: 8px;
}

#loader-bar-fill {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 0%;
  background: #ffffff;
  box-shadow: 0 0 12px rgba(255, 255, 255, 0.8);
  transition: width 0.12s ease-out;
}

/* --------------------------------------------------------------------------
   1. Floating Header & Navigation
   -------------------------------------------------------------------------- */
header#main-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 500;
  padding: 18px 5vw;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: background-color var(--transition-normal), backdrop-filter var(--transition-normal), padding var(--transition-normal), border-bottom var(--transition-normal);
}

header#main-header.scrolled {
  padding: 12px 5vw;
  background-color: var(--bg-glass);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-subtle);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.45);
}

.logo-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.logo-initials {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: -0.04em;
  color: #ffffff;
}

[data-theme="light"] .logo-initials {
  color: #08080a;
}

.status-dot-pulse {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: #ffffff;
  box-shadow: 0 0 8px rgba(255, 255, 255, 0.9);
  animation: pulse-dot 2.2s infinite ease-in-out;
}

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

nav.desktop-nav {
  display: flex;
  align-items: center;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  list-style: none;
  background: rgba(255, 255, 255, 0.03);
  padding: 6px 20px;
  border-radius: 99px;
  border: 1px solid var(--border-subtle);
  backdrop-filter: blur(10px);
}

[data-theme="light"] .nav-links {
  background: rgba(0, 0, 0, 0.05);
  border-color: rgba(0, 0, 0, 0.12);
}

.nav-item-link {
  text-decoration: none;
  font-family: var(--font-mono);
  font-size: 0.74rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-secondary);
  position: relative;
  padding: 6px 0;
  transition: color var(--transition-fast);
}

.nav-item-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 1.5px;
  background: var(--text-primary);
  box-shadow: 0 0 6px var(--accent-glow);
  transition: width var(--transition-fast);
}

.nav-item-link:hover,
.nav-item-link.active {
  color: var(--text-primary);
}

.nav-item-link:hover::after,
.nav-item-link.active::after {
  width: 100%;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.icon-btn {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  color: var(--text-primary);
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition-fast);
  text-decoration: none;
}

.icon-btn:hover {
  border-color: #ffffff;
  color: #ffffff;
  box-shadow: 0 0 12px rgba(255, 255, 255, 0.25);
  transform: translateY(-2px);
}

.icon-btn svg {
  width: 17px;
  height: 17px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.8;
}

.theme-btn-label {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 16px;
  border-radius: 99px;
  border: 1px solid var(--border-subtle);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-primary);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.theme-btn-label:hover {
  border-color: #ffffff;
  color: #ffffff;
  box-shadow: 0 0 12px rgba(255, 255, 255, 0.2);
}

#mobile-menu-btn {
  display: none;
}

/* Mobile Drawer */
#mobile-drawer {
  position: fixed;
  top: 0;
  right: -100%;
  width: 82vw;
  max-width: 360px;
  height: 100vh;
  background-color: var(--bg-secondary);
  border-left: 1px solid var(--border-subtle);
  z-index: 600;
  padding: 90px 28px 36px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: right 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: -15px 0 40px rgba(0, 0, 0, 0.7);
}

#mobile-drawer.open {
  right: 0;
}

.mobile-nav-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.mobile-nav-link {
  font-family: var(--font-display);
  font-size: 1.6rem;
  text-decoration: none;
  color: var(--text-primary);
  transition: transform var(--transition-fast), color var(--transition-fast);
  display: block;
}

.mobile-nav-link:hover {
  transform: translateX(8px);
  color: #ffffff;
}

.mobile-drawer-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(6px);
  z-index: 590;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-normal);
}

.mobile-drawer-backdrop.visible {
  opacity: 1;
  visibility: visible;
}

/* --------------------------------------------------------------------------
   2. Centered Hero Section with 3D Behind Content
   -------------------------------------------------------------------------- */
#hero {
  position: relative;
  min-height: 100vh;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

#hero-canvas-container {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1; /* 3D Scene sits directly behind text */
  pointer-events: auto;
}

#hero-webgl-canvas {
  width: 100%;
  height: 100%;
  display: block;
}

.hero-vignette {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background: radial-gradient(circle at 50% 50%, transparent 40%, var(--bg-primary) 95%);
}

.hero-content {
  position: relative;
  z-index: 3; /* Content sits in front */
  width: 100%;
  max-width: 960px;
  padding: 130px 5vw 70px;
  pointer-events: none;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero-content > * {
  pointer-events: auto;
}

.hero-meta-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.hero-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-medium);
  border-radius: 99px;
  backdrop-filter: blur(12px);
  box-shadow: 0 0 20px var(--accent-glow-subtle);
}

.hero-name-heading {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 7.6vw, 6.6rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.04em;
  text-transform: uppercase;
  margin-bottom: 20px;
  white-space: nowrap; /* Strictly single line */
  text-shadow: 0 10px 40px rgba(0, 0, 0, 0.6);
}

.hero-name-heading span {
  display: inline-block;
  color: #ffffff;
}

[data-theme="light"] .hero-name-heading span {
  color: #08080a;
}

.hero-headline-sub {
  font-family: var(--font-body);
  font-size: clamp(1.15rem, 2.2vw, 1.9rem);
  font-weight: 400;
  line-height: 1.35;
  max-width: 26ch;
  color: var(--text-primary);
  margin-bottom: 12px;
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.7);
}

.hero-role-line {
  font-family: var(--font-mono);
  font-size: clamp(0.78rem, 1vw, 0.92rem);
  letter-spacing: 0.16em;
  color: var(--text-secondary);
  text-transform: uppercase;
  margin-bottom: 28px;
}

.hero-action-cluster {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin-bottom: 28px;
}

.hero-social-strip {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
}

.hero-social-link {
  font-family: var(--font-mono);
  font-size: 0.76rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-secondary);
  text-decoration: none;
  transition: color var(--transition-fast);
}

.hero-social-link:hover {
  color: #ffffff;
}

/* --------------------------------------------------------------------------
   3. Editorial About Section
   -------------------------------------------------------------------------- */
#about {
  border-top: 1px solid var(--border-subtle);
}

.about-editorial-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5vw;
  align-items: start;
  margin-bottom: 44px;
}

.about-statement {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3.2vw, 2.8rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.03em;
  text-transform: uppercase;
}

.about-body-text {
  display: flex;
  flex-direction: column;
  gap: 16px;
  color: var(--text-secondary);
  font-size: 1.05rem;
  line-height: 1.7;
}

.about-blocks-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background-color: var(--border-subtle);
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  overflow: hidden;
}

.about-block-card {
  background-color: var(--bg-secondary);
  padding: 24px 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: background-color var(--transition-normal);
}

.about-block-card:hover {
  background-color: var(--bg-tertiary);
}

.about-block-title {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #ffffff;
}

[data-theme="light"] .about-block-title {
  color: #08080a;
}

.about-block-desc {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

/* --------------------------------------------------------------------------
   4. Curated Project Showcase Section
   -------------------------------------------------------------------------- */
#projects {
  border-top: 1px solid var(--border-subtle);
}

.projects-showcase-list {
  display: flex;
  flex-direction: column;
  gap: 36px;
}

.project-exhibition-item {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 4vw;
  align-items: center;
  padding: 32px 0;
  border-top: 1px solid var(--border-subtle);
  position: relative;
  transition: border-color var(--transition-normal);
}

.project-exhibition-item:first-child {
  border-top: none;
}

.project-index-num {
  display: none;
}

.project-info-column {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.project-category-badge {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  color: var(--text-secondary);
  text-transform: uppercase;
}

.project-title {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 2.8vw, 2.6rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.1;
  color: var(--text-primary);
  text-decoration: none;
  transition: transform var(--transition-normal);
}

.project-exhibition-item:hover .project-title {
  transform: translateX(8px);
}

.project-tagline {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.55;
}

.project-highlights-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin: 4px 0;
}

.project-highlights-list li {
  font-size: 0.85rem;
  color: var(--text-muted);
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

.project-highlights-list li::before {
  content: "—";
  color: #ffffff;
}

.project-tech-stack-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 4px;
}

.project-links-row {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 8px;
}

/* 3D Interactive Window Card */
.project-3d-window {
  background: var(--bg-glass-card);
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transform: perspective(1000px) rotateY(var(--ry, 0deg)) rotateX(var(--rx, 0deg));
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.4s, box-shadow 0.4s;
  will-change: transform;
}

.project-3d-window:hover {
  border-color: rgba(255, 255, 255, 0.35);
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.6);
}

.window-chrome-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 16px;
  background: var(--bg-tertiary);
  border-bottom: 1px solid var(--border-subtle);
}

.window-dots {
  display: flex;
  align-items: center;
  gap: 6px;
}

.window-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--border-medium);
}

.window-path {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.05em;
  color: var(--text-muted);
}

.window-code-preview {
  padding: 18px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  line-height: 1.6;
  color: var(--text-secondary);
  background: var(--bg-secondary);
  white-space: pre-wrap;
  word-break: break-all;
  max-height: 190px;
  overflow-y: auto;
}

/* --------------------------------------------------------------------------
   5. Interactive Tech Stack Constellation Section
   -------------------------------------------------------------------------- */
#skills {
  border-top: 1px solid var(--border-subtle);
}

.constellation-wrapper {
  position: relative;
  width: 100%;
  background: var(--bg-secondary);
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  overflow: hidden;
}

#constellation-canvas {
  width: 100%;
  height: clamp(340px, 46vh, 460px);
  display: block;
  cursor: crosshair;
}

.constellation-hud-overlay {
  position: absolute;
  bottom: 20px;
  left: 20px;
  right: 20px;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  pointer-events: none;
}

.constellation-hud-card {
  background: var(--bg-glass-card);
  border: 1px solid var(--border-medium);
  backdrop-filter: blur(14px);
  padding: 16px 20px;
  max-width: 440px;
  border-radius: 6px;
  pointer-events: auto;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

.constellation-hud-title {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  font-weight: 600;
  color: #ffffff;
  margin-bottom: 4px;
}

[data-theme="light"] .constellation-hud-title {
  color: #08080a;
}

.constellation-hud-desc {
  font-size: 0.82rem;
  color: var(--text-secondary);
  line-height: 1.45;
}

.constellation-tip {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  text-transform: uppercase;
}

/* --------------------------------------------------------------------------
   6. Learning Journey & Experience Section
   -------------------------------------------------------------------------- */
#journey {
  border-top: 1px solid var(--border-subtle);
}

.timeline-track {
  position: relative;
  border-left: 1px solid var(--border-subtle);
  margin-left: 8px;
  padding-left: 32px;
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.timeline-item {
  position: relative;
}

.timeline-item::before {
  content: "";
  position: absolute;
  left: -37px;
  top: 6px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background-color: #ffffff;
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.8);
}

[data-theme="light"] .timeline-item::before {
  background-color: #08080a;
  box-shadow: 0 0 10px rgba(8, 8, 10, 0.4);
}

.timeline-period {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 6px;
}

.timeline-role {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.02em;
}

.timeline-org {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--text-secondary);
  margin-bottom: 8px;
}

.timeline-desc {
  font-size: 0.92rem;
  color: var(--text-secondary);
  max-width: 65ch;
  line-height: 1.55;
  margin-bottom: 12px;
}

/* --------------------------------------------------------------------------
   7. Education & Credentials Section
   -------------------------------------------------------------------------- */
#education {
  border-top: 1px solid var(--border-subtle);
}

.edu-cert-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5vw;
}

.edu-card,
.cert-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: border-color var(--transition-fast), transform var(--transition-fast), box-shadow var(--transition-fast);
}

.edu-card:hover,
.cert-card:hover {
  border-color: rgba(255, 255, 255, 0.35);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
  transform: translateY(-3px);
}

.edu-subhead {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  color: var(--text-muted);
  text-transform: uppercase;
}

.edu-title {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.25;
}

.edu-note {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.55;
}

/* --------------------------------------------------------------------------
   8. Contact Section & Cinematic Callout
   -------------------------------------------------------------------------- */
#contact {
  border-top: 1px solid var(--border-subtle);
  padding: clamp(80px, 11vh, 120px) 0 80px;
}

.contact-manifesto-heading {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 7vw, 6.5rem);
  font-weight: 800;
  line-height: 0.95;
  letter-spacing: -0.04em;
  text-transform: uppercase;
  margin-bottom: 40px;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 5vw;
  align-items: start;
}

.contact-direct-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.contact-direct-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.contact-direct-item a {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text-primary);
  text-decoration: none;
  transition: color var(--transition-fast);
}

.contact-direct-item a:hover {
  color: #ffffff;
}

.contact-actions-cluster {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.contact-actions-cluster .btn {
  width: 100%;
}

/* --------------------------------------------------------------------------
   9. Interactive Terminal HUD Easter Egg
   -------------------------------------------------------------------------- */
#terminal-hud {
  position: fixed;
  bottom: 24px;
  left: 24px;
  z-index: 2000;
  width: 90vw;
  max-width: 500px;
  background: #08080c;
  border: 1px solid var(--border-medium);
  border-radius: 8px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.8), 0 0 20px rgba(255, 255, 255, 0.08);
  display: none;
  flex-direction: column;
  overflow: hidden;
}

#terminal-hud.active {
  display: flex;
}

.terminal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 16px;
  background: #111116;
  border-bottom: 1px solid var(--border-subtle);
}

.terminal-title {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  color: #a0a0ab;
}

.terminal-close-btn {
  background: none;
  border: none;
  color: #707078;
  cursor: pointer;
  font-size: 1rem;
  line-height: 1;
}

.terminal-close-btn:hover {
  color: #ffffff;
}

.terminal-body {
  padding: 16px;
  max-height: 220px;
  overflow-y: auto;
  font-family: var(--font-mono);
  font-size: 0.76rem;
  line-height: 1.55;
  color: #e2e2e8;
}

.terminal-output-log {
  margin-bottom: 10px;
  white-space: pre-wrap;
}

.terminal-prompt-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.terminal-prompt-sym {
  color: #ffffff;
  font-weight: 700;
}

#terminal-input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  font-family: var(--font-mono);
  font-size: 0.76rem;
  color: #ffffff;
}

/* --------------------------------------------------------------------------
   10. Minimal Cinematic Footer
   -------------------------------------------------------------------------- */
footer#main-footer {
  border-top: 1px solid var(--border-subtle);
  padding: 36px 5vw;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-brand {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  color: var(--text-muted);
}

.footer-curiosity {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  color: var(--text-secondary);
}

.footer-social-links {
  display: flex;
  align-items: center;
  gap: 18px;
}

.footer-social-links a {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  letter-spacing: 0.1em;
  color: var(--text-secondary);
  text-decoration: none;
}

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

/* --------------------------------------------------------------------------
   Responsive Media Queries
   -------------------------------------------------------------------------- */
@media (max-width: 1024px) {
  .about-editorial-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .about-blocks-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .project-exhibition-item {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .contact-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 820px) {
  nav.desktop-nav {
    display: none;
  }
  .header-actions .soc-link {
    display: none;
  }
  #mobile-menu-btn {
    display: inline-flex;
  }
  .about-blocks-grid {
    grid-template-columns: 1fr;
  }
  .edu-cert-grid {
    grid-template-columns: 1fr;
  }
  #constellation-canvas {
    height: 320px;
  }
  .constellation-hud-overlay {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }
}

/* ==========================================================================
   Comprehensive Light Theme Overrides (High-Contrast Luxury Editorial)
   ========================================================================== */
[data-theme="light"] header#main-header.scrolled {
  background-color: rgba(251, 251, 250, 0.92);
  border-bottom-color: #e5e5e0;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
}

[data-theme="light"] .icon-btn {
  background: #f3f3f0;
  border-color: #e5e5e0;
  color: #08080a;
}

[data-theme="light"] .icon-btn:hover {
  background: #08080a;
  color: #ffffff;
  border-color: #08080a;
}

[data-theme="light"] .theme-btn-label {
  background: #f3f3f0;
  border-color: #e5e5e0;
  color: #08080a;
}

[data-theme="light"] .theme-btn-label:hover {
  background: #08080a;
  color: #ffffff;
  border-color: #08080a;
}

[data-theme="light"] .hero-status-pill {
  background: rgba(0, 0, 0, 0.04);
  border-color: rgba(0, 0, 0, 0.12);
  color: #08080a;
}

[data-theme="light"] .hero-name-heading span {
  color: #08080a;
  text-shadow: none;
}

[data-theme="light"] .hero-headline-sub {
  color: #08080a;
  text-shadow: none;
}

[data-theme="light"] .hero-role-line {
  color: #555560;
}

[data-theme="light"] .hero-social-link:hover {
  color: #08080a;
}

[data-theme="light"] .btn {
  background: #ffffff;
  color: #08080a;
  border-color: rgba(0, 0, 0, 0.18);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

[data-theme="light"] .btn::before {
  background: #08080a;
}

[data-theme="light"] .btn:hover {
  border-color: #08080a;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.15);
}

[data-theme="light"] .btn:hover span {
  color: #ffffff;
}

[data-theme="light"] .btn-primary {
  background: #08080a;
  color: #ffffff;
  border-color: #08080a;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}

[data-theme="light"] .btn-primary span {
  color: #ffffff;
}

[data-theme="light"] .btn-primary::before {
  background: #ffffff;
}

[data-theme="light"] .btn-primary:hover span {
  color: #08080a;
}

[data-theme="light"] .btn-secondary {
  background: rgba(0, 0, 0, 0.04);
  border-color: rgba(0, 0, 0, 0.14);
  color: #08080a;
}

[data-theme="light"] .about-block-card,
[data-theme="light"] .edu-card,
[data-theme="light"] .cert-card,
[data-theme="light"] .contact-direct-card {
  background-color: #ffffff;
  border-color: #e5e5e0;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
}

[data-theme="light"] .project-3d-window {
  background: #ffffff;
  border-color: #e5e5e0;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.06);
}

[data-theme="light"] .window-chrome-bar {
  background: #f4f4f0;
  border-bottom-color: #e5e5e0;
}

[data-theme="light"] .window-code-preview {
  background: #fafaf8;
  color: #2a2a30;
}

[data-theme="light"] .constellation-wrapper {
  background: #f4f4f0;
  border-color: #e5e5e0;
}

[data-theme="light"] .constellation-hud-card {
  background: rgba(255, 255, 255, 0.94);
  border-color: #e5e5e0;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
}

[data-theme="light"] .constellation-hud-title {
  color: #08080a;
}

[data-theme="light"] .constellation-hud-desc {
  color: #484850;
}

[data-theme="light"] .timeline-item::before {
  background-color: #08080a;
  box-shadow: 0 0 8px rgba(8, 8, 10, 0.5);
}

[data-theme="light"] .contact-direct-item a:hover {
  color: #08080a;
}

