/* ==========================================================================
   COMPONENT STYLES: CENTERED FLOATING NAVBAR, HERO PHOTO WITH TOP HEADER,
   PROJECT VIDEO CONTAINERS, & INTERACTIVE CERTIFICATE DECK
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. CENTERED FLOATING PILL NAVBAR
   -------------------------------------------------------------------------- */
.navbar-wrapper {
  position: fixed;
  top: 1.25rem;
  left: 0;
  right: 0;
  z-index: 1000;
  display: flex;
  justify-content: center;
  pointer-events: none;
  padding: 0 1rem;
}

/* Note: Detailed navbar track and liquid glass lens styling are defined in css/glass-surface.css */

/* Right Nav Actions */
.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding-left: 0.25rem;
  border-left: none !important;
}

.icon-btn {
  background: var(--bg-secondary);
  border: 1px solid var(--border-medium);
  color: var(--text-primary);
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.icon-btn:hover {
  background: var(--bg-elevated);
  border-color: var(--color-primary);
  transform: scale(1.06);
}

.nav-resume-btn {
  padding: 0.42rem 1rem;
  font-size: 0.82rem;
  font-weight: 600;
  border-radius: var(--radius-full);
  background: linear-gradient(135deg, #2563eb, #0891b2);
  color: #ffffff;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.28);
  transition: all var(--transition-fast);
  white-space: nowrap;
}

.nav-resume-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(37, 99, 235, 0.4);
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text-primary);
  font-size: 1.3rem;
  cursor: pointer;
}

/* --------------------------------------------------------------------------
   2. HERO SECTION & PHOTO WITH TOP NAME AND DEGREE HEADER
   -------------------------------------------------------------------------- */
.hero {
  min-height: 92vh;
  display: flex;
  align-items: center;
  position: relative;
  padding: 5.2rem 0 3rem;
  overflow: hidden;
}

.hero-container {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  align-items: flex-start;
  gap: 3.5rem;
  width: 100%;
}

.hero-content {
  display: flex;
  flex-direction: column;
  gap: 1.35rem;
  position: relative;
  z-index: 2;
  padding-top: 0.5rem;
}

/* Refined Status Row */
.hero-status-row {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.telemetry-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.35rem 0.85rem;
  border-radius: 9999px;
  background: rgba(37, 99, 235, 0.08);
  border: 1px solid rgba(37, 99, 235, 0.22);
  font-family: var(--font-mono);
  font-size: 0.76rem;
  font-weight: 600;
  color: var(--color-primary);
  letter-spacing: 0.04em;
}

[data-theme="dark"] .telemetry-badge {
  background: rgba(56, 189, 248, 0.1);
  border-color: rgba(56, 189, 248, 0.3);
  color: #38bdf8;
}

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

@keyframes radarPulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.85); }
}

.telemetry-loc {
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--text-secondary);
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.hero-title {
  font-size: clamp(2.6rem, 5.2vw, 4.4rem);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.03em;
  color: var(--text-primary);
}

.hero-title .name-highlight {
  display: inline-block;
  background: linear-gradient(135deg, #2563eb 0%, #06b6d4 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

[data-theme="dark"] .hero-title .name-highlight {
  background: linear-gradient(135deg, #38bdf8 0%, #a78bfa 100%);
  -webkit-background-clip: text;
  background-clip: text;
}

.hero-role-wrapper {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: clamp(1.15rem, 2.2vw, 1.55rem);
  font-weight: 600;
  color: var(--text-secondary);
}

.hero-role-text {
  color: var(--color-primary);
  font-family: var(--font-mono);
  border-right: 2px solid var(--color-primary);
  padding-right: 4px;
  animation: blink-caret 0.85s step-end infinite;
}

@keyframes blink-caret {
  from, to { border-color: transparent; }
  50% { border-color: var(--color-primary); }
}

.hero-bio {
  font-size: 1.06rem;
  line-height: 1.68;
  color: var(--text-secondary);
  max-width: 580px;
}

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

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.6rem;
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 0.95rem;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.55);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  color: var(--text-primary);
  border: 1px solid rgba(255, 255, 255, 0.7);
  cursor: pointer;
  text-decoration: none;
  transition: all var(--transition-fast);
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.05);
}

[data-theme="dark"] .btn-secondary {
  background: rgba(15, 22, 36, 0.6);
  border-color: rgba(255, 255, 255, 0.15);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.3);
}

.btn-secondary:hover {
  background: var(--bg-card);
  border-color: var(--color-primary);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

/* Bespoke Hero Metrics Telemetry Rail */
.hero-metrics-rail {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding: 1.25rem 1.75rem;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.45);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.68);
  box-shadow: 0 10px 32px rgba(15, 23, 42, 0.06);
  margin-top: 1.25rem;
  flex-wrap: wrap;
}

[data-theme="dark"] .hero-metrics-rail {
  background: rgba(12, 18, 30, 0.55);
  border-color: rgba(255, 255, 255, 0.12);
  box-shadow: 0 10px 32px rgba(0, 0, 0, 0.38);
}

.metric-segment {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.metric-num {
  font-size: 1.75rem;
  font-weight: 800;
  font-family: var(--font-mono);
  color: var(--text-primary);
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.metric-suffix {
  color: var(--color-primary);
  font-weight: 700;
}

[data-theme="dark"] .metric-suffix {
  color: #38bdf8;
}

.metric-caption {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.metric-divider {
  width: 1px;
  height: 38px;
  background: var(--border-medium);
}

/* --------------------------------------------------------------------------
   HERO PHOTO WITH ARCHITECTURAL GLASS CARD
   -------------------------------------------------------------------------- */
.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 2;
  margin-top: 2.5rem;
}

.photo-aura-backdrop {
  position: absolute;
  width: 380px;
  height: 520px;
  border-radius: 40px;
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.22), rgba(8, 145, 178, 0.18), rgba(124, 58, 237, 0.18));
  filter: blur(60px);
  pointer-events: none;
  z-index: 0;
  animation: aura-breathe 7s ease-in-out infinite alternate;
}

.hero-photo-card {
  position: relative;
  width: 100%;
  max-width: 410px;
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.45);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  padding: 1.1rem;
  border: 1px solid rgba(255, 255, 255, 0.7);
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.12), inset 0 1px 1px rgba(255, 255, 255, 0.8);
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 0.95rem;
}

[data-theme="dark"] .hero-photo-card {
  background: rgba(14, 20, 32, 0.58);
  border-color: rgba(255, 255, 255, 0.14);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45), inset 0 1px 1px rgba(255, 255, 255, 0.2);
}

/* Architectural Top Header */
.photo-top-header {
  padding: 0.85rem 1.1rem;
  background: rgba(255, 255, 255, 0.35);
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.5);
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

[data-theme="dark"] .photo-top-header {
  background: rgba(10, 15, 26, 0.5);
  border-color: rgba(255, 255, 255, 0.08);
}

.photo-top-name-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.photo-top-name {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: -0.01em;
}

.photo-top-badge {
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.2rem 0.65rem;
  border-radius: var(--radius-full);
  background: rgba(37, 99, 235, 0.1);
  color: var(--color-primary);
  border: 1px solid rgba(37, 99, 235, 0.25);
  font-family: var(--font-mono);
}

[data-theme="dark"] .photo-top-badge {
  background: rgba(56, 189, 248, 0.12);
  border-color: rgba(56, 189, 248, 0.3);
  color: #38bdf8;
}

.photo-top-degree {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-secondary);
  line-height: 1.35;
}

.photo-top-inst {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-family: var(--font-mono);
}

.hero-photo-frame {
  position: relative;
  width: 100%;
  height: 440px;
  border-radius: 20px;
  overflow: hidden;
  background: transparent;
}

.hero-photo-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 16%;
  transform: scale(1.10);
  transform-origin: center 20%;
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.hero-photo-card:hover .hero-photo-img {
  transform: scale(1.14);
}

.photo-frame-overlay {
  position: absolute;
  bottom: 12px;
  left: 12px;
  right: 12px;
  display: flex;
  justify-content: center;
  z-index: 2;
}

.photo-overlay-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.45rem 1rem;
  border-radius: 9999px;
  background: rgba(15, 23, 42, 0.78);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.22);
  color: #ffffff;
  font-size: 0.76rem;
  font-weight: 700;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.25);
  font-family: var(--font-mono);
}

/* --------------------------------------------------------------------------
   3. INTERACTIVE AI AGENT TERMINAL
   -------------------------------------------------------------------------- */
.terminal-window {
  background: var(--bg-terminal);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
  font-family: var(--font-mono);
  display: flex;
  flex-direction: column;
}

.terminal-header {
  background: var(--bg-terminal-header);
  padding: 0.75rem 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.terminal-dots {
  display: flex;
  gap: 6px;
}

.terminal-dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
}

.dot-red { background-color: #ef4444; }
.dot-yellow { background-color: #f59e0b; }
.dot-green { background-color: #10b981; }

.terminal-title {
  color: #94a3b8;
  font-size: 0.8rem;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.terminal-chips {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.6rem 1rem;
  background: rgba(0, 0, 0, 0.25);
  overflow-x: auto;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.terminal-chip-label {
  color: #64748b;
  font-size: 0.75rem;
  white-space: nowrap;
}

.chip-btn {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: #38bdf8;
  padding: 0.22rem 0.65rem;
  border-radius: var(--radius-sm);
  font-size: 0.75rem;
  font-family: var(--font-mono);
  cursor: pointer;
  white-space: nowrap;
  transition: all var(--transition-fast);
}

.chip-btn:hover {
  background: rgba(56, 189, 248, 0.22);
  border-color: #38bdf8;
  color: #ffffff;
}

.terminal-body {
  padding: 1.25rem;
  min-height: 250px;
  max-height: 360px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  font-size: 0.85rem;
  line-height: 1.55;
  color: #e2e8f0;
}

.terminal-line {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.terminal-prompt-line {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: #38bdf8;
}

.terminal-output {
  color: #cbd5e1;
  padding-left: 1rem;
  white-space: pre-wrap;
  word-break: break-word;
}

.terminal-input-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding-top: 0.5rem;
}

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

/* --------------------------------------------------------------------------
   4. BENTO GRID LAYOUT
   -------------------------------------------------------------------------- */
.bento-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 1.5rem;
  width: 100%;
}

.architecture-bento-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.75rem;
  width: 100%;
}

@media (max-width: 860px) {
  .architecture-bento-grid {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }
}

.bento-col-8 { grid-column: span 8; }
.bento-col-4 { grid-column: span 4; }
.bento-col-6 { grid-column: span 6; }
.bento-col-12 { grid-column: span 12; }

.bento-card {
  padding: 2rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 1.25rem;
}

.bento-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
}

.bento-icon {
  width: 46px;
  height: 46px;
  border-radius: var(--radius-md);
  background: var(--badge-bg);
  border: 1px solid var(--badge-border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-primary);
  font-size: 1.25rem;
}

.bento-card h3 {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.4rem;
}

.bento-card p {
  font-size: 0.94rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* --------------------------------------------------------------------------
   5. EXPERIENCE TIMELINE
   -------------------------------------------------------------------------- */
.timeline-container {
  position: relative;
  max-width: 860px;
  margin: 0 auto;
  padding: 2rem 0;
}

.timeline-line {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 28px;
  width: 3px;
  background: var(--border-medium);
  border-radius: 3px;
}

.timeline-progress {
  position: absolute;
  top: 0;
  left: 28px;
  width: 3px;
  background: linear-gradient(to bottom, #2563eb, #0891b2);
  height: 0%;
  border-radius: 3px;
  transition: height 0.1s ease;
}

.timeline-item {
  position: relative;
  display: flex;
  gap: 2rem;
  margin-bottom: 3rem;
}

.timeline-marker {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: var(--bg-card);
  border: 2px solid var(--color-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  color: var(--color-primary);
  flex-shrink: 0;
  z-index: 2;
  box-shadow: 0 0 20px var(--color-primary-glow);
}

.timeline-content {
  flex: 1;
  padding: 2.25rem;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}

.timeline-role-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 0.5rem;
}

.timeline-role {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--text-primary);
}

.timeline-company {
  color: var(--color-primary);
  font-weight: 600;
}

.timeline-date {
  font-size: 0.85rem;
  font-family: var(--font-mono);
  padding: 0.35rem 0.8rem;
  border-radius: var(--radius-full);
  background: var(--badge-bg);
  border: 1px solid var(--badge-border);
  color: var(--text-secondary);
}

.timeline-points {
  list-style: none;
  padding: 0;
  margin: 1.25rem 0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.timeline-point {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  font-size: 0.94rem;
  line-height: 1.6;
  color: var(--text-secondary);
}

.timeline-point-bullet {
  color: var(--color-primary);
  font-weight: bold;
  margin-top: 1px;
}

/* --------------------------------------------------------------------------
   AMBIENT BACKGROUND VIDEO (LIVING ATMOSPHERE - DUAL THEME ENGINE)
   -------------------------------------------------------------------------- */
.site-bg-video-wrap,
.hero-bg-video-wrap {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  overflow: hidden;
  z-index: 0;
  pointer-events: none;
}

.site-bg-video,
.hero-bg-video {
  position: absolute;
  top: 50%;
  left: 50%;
  min-width: 100%;
  min-height: 100%;
  width: auto;
  height: auto;
  transform: translate(-50%, -50%);
  object-fit: cover;
  transition: opacity 0.85s cubic-bezier(0.16, 1, 0.3, 1), filter 0.85s ease, visibility 0.85s ease;
  pointer-events: none;
}

/* Light Mode Video: 5200-183786525_medium.mp4 (Luminous Cyan Cosmic Bokeh)
   mix-blend-mode: screen completely eliminates the black video background,
   allowing the bright, metallic studio titanium gradients & orbs to shine through! */
.site-bg-video--light,
.hero-bg-video--light {
  opacity: 0.48;
  visibility: visible;
  mix-blend-mode: screen;
  filter: contrast(1.2) brightness(1.1);
}

[data-theme="dark"] .site-bg-video--light,
[data-theme="dark"] .hero-bg-video--light {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

/* Dark Mode Video: 9574-220321570_medium.mp4 (Futuristic Cyber Wireframe Cityscape) */
.site-bg-video--dark,
.hero-bg-video--dark {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

[data-theme="dark"] .site-bg-video--dark,
[data-theme="dark"] .hero-bg-video--dark {
  opacity: 0.52;
  visibility: visible;
  mix-blend-mode: screen;
  filter: contrast(1.22) brightness(1.02);
}

/* Atmospheric Multi-Layer Shade Overlays */
.site-bg-video-overlay,
.hero-bg-video-overlay {
  position: absolute;
  inset: 0;
  pointer-events: none;
  transition: background 0.6s ease, opacity 0.6s ease;
  z-index: 1;
}

/* Light Mode Video Overlay Shades */
[data-theme="light"] .site-bg-video-overlay,
[data-theme="light"] .hero-bg-video-overlay {
  background:
    radial-gradient(ellipse at 50% 32%, rgba(248, 249, 252, 0.35) 0%, rgba(238, 243, 248, 0.7) 70%, rgba(230, 237, 245, 0.85) 100%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.25) 0%, rgba(240, 244, 250, 0.6) 50%, rgba(225, 234, 243, 0.8) 100%);
}

/* Dark Mode Video Overlay Shades */
[data-theme="dark"] .site-bg-video-overlay,
[data-theme="dark"] .hero-bg-video-overlay {
  background:
    radial-gradient(ellipse at 50% 35%, rgba(7, 10, 17, 0.35) 0%, rgba(7, 10, 17, 0.78) 65%, #070a11 100%),
    linear-gradient(180deg, rgba(7, 10, 17, 0.45) 0%, transparent 40%, #070a11 100%);
}

/* Subtle Ambient Tint Highlight Layer */
.site-bg-shade-tint {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 2;
  mix-blend-mode: overlay;
  transition: background 0.6s ease, opacity 0.6s ease;
}

[data-theme="light"] .site-bg-shade-tint {
  background: radial-gradient(circle at 80% 20%, rgba(6, 182, 212, 0.1), transparent 45%),
              radial-gradient(circle at 20% 80%, rgba(99, 102, 241, 0.08), transparent 50%);
}

[data-theme="dark"] .site-bg-shade-tint {
  background: radial-gradient(circle at 80% 20%, rgba(56, 189, 248, 0.14), transparent 50%),
              radial-gradient(circle at 20% 75%, rgba(139, 92, 246, 0.12), transparent 50%);
}

/* --------------------------------------------------------------------------
   6. PROJECTS GRID
   -------------------------------------------------------------------------- */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 2rem;
  width: 100%;
}

@media (max-width: 960px) {
  .projects-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
}

.project-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 2rem;
  border-radius: var(--radius-xl);
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-md);
  height: 100%;
  box-sizing: border-box;
  gap: 1.25rem;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.3s ease, box-shadow 0.3s ease;
}

.project-card:hover {
  transform: translateY(-4px);
  border-color: rgba(59, 130, 246, 0.4);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2), 0 0 20px rgba(59, 130, 246, 0.12);
}

.project-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.75rem;
}

.project-category-pill {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.28rem 0.8rem;
  border-radius: var(--radius-full);
  background: rgba(37, 99, 235, 0.1);
  color: var(--color-primary);
  border: 1px solid rgba(37, 99, 235, 0.25);
}

.project-card h3 {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 0.4rem;
}

.project-subtitle {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--color-accent-cyan);
  margin-bottom: 0.85rem;
}

.project-desc {
  font-size: 0.94rem;
  line-height: 1.65;
  color: var(--text-secondary);
  margin-bottom: 1rem;
}

.project-features {
  list-style: none;
  padding: 0;
  margin: 0 0 1.25rem 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.project-feature-item {
  font-size: 0.88rem;
  color: var(--text-secondary);
  display: flex;
  align-items: flex-start;
  gap: 0.55rem;
}

.project-feature-item svg {
  flex-shrink: 0;
  margin-top: 3px;
  color: var(--color-accent-emerald);
}

.project-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border-subtle);
  margin-top: auto;
}

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

.btn-pill-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.84rem;
  font-weight: 600;
  padding: 0.48rem 1rem;
  border-radius: var(--radius-full);
  background: var(--bg-secondary);
  border: 1px solid var(--border-medium);
  color: var(--text-primary);
  text-decoration: none;
  transition: all var(--transition-fast);
}

.btn-pill-link:hover {
  background: var(--bg-elevated);
  border-color: var(--color-primary);
  color: var(--color-primary);
}

/* --------------------------------------------------------------------------
   8. SKILLS MATRIX
   -------------------------------------------------------------------------- */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.skill-category-card {
  padding: 2rem;
  border-radius: var(--radius-lg);
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  box-shadow: var(--shadow-md);
}

.skill-cat-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.skill-cat-icon {
  width: 42px;
  height: 42px;
  border-radius: var(--radius-sm);
  background: rgba(37, 99, 235, 0.1);
  color: var(--color-primary);
  display: flex;
  align-items: center;
  justify-content: center;
}

.skill-pills-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.skill-pill {
  padding: 0.42rem 0.9rem;
  border-radius: var(--radius-full);
  background: var(--badge-bg);
  border: 1px solid var(--badge-border);
  font-size: 0.86rem;
  font-weight: 500;
  color: var(--text-primary);
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  transition: all var(--transition-fast);
}

.skill-pill:hover {
  border-color: var(--color-primary);
  transform: translateY(-2px);
  background: var(--bg-elevated);
}

/* --------------------------------------------------------------------------
   9. CONTACT SECTION
   -------------------------------------------------------------------------- */
.contact-container {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 2.5rem;
  align-items: stretch;
  max-width: 1100px;
  margin: 0 auto;
}

@media (max-width: 900px) {
  .contact-container {
    grid-template-columns: 1fr;
    gap: 1.75rem;
  }
}

.contact-cards-col {
  display: flex;
  flex-direction: column;
  gap: 0.95rem;
  justify-content: space-between;
  height: 100%;
}

.copy-contact-card {
  padding: 1.5rem;
  border-radius: var(--radius-lg);
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  transition: all var(--transition-fast);
  box-shadow: var(--shadow-sm);
}

.copy-contact-card:hover {
  border-color: var(--color-primary);
  transform: translateX(5px);
  box-shadow: var(--shadow-lg);
}

.contact-card-info h4 {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  margin-bottom: 0.25rem;
}

.contact-card-info p {
  font-size: 1.05rem;
  font-weight: 600;
  font-family: var(--font-mono);
  color: var(--text-primary);
}

.copy-badge {
  font-size: 0.75rem;
  padding: 0.35rem 0.75rem;
  border-radius: var(--radius-full);
  background: var(--badge-bg);
  border: 1px solid var(--badge-border);
  color: var(--color-primary);
  font-weight: 600;
}

.contact-form {
  padding: 2.25rem;
  border-radius: var(--radius-xl);
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  box-shadow: var(--shadow-xl);
}

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

.form-label {
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--text-primary);
}

.form-input,
.form-textarea {
  padding: 0.88rem 1.15rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-medium);
  background: var(--bg-secondary);
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-size: 0.95rem;
  outline: none;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.form-input:focus,
.form-textarea:focus {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px var(--color-primary-glow);
}

.form-textarea {
  resize: vertical;
  min-height: 120px;
}

/* --------------------------------------------------------------------------
   10. MODAL DIALOGS
   -------------------------------------------------------------------------- */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.modal-content {
  background: var(--bg-elevated);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-xl);
  width: min(920px, 95vw);
  max-height: 88vh;
  display: flex;
  flex-direction: column;
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.2);
  transform: scale(0.95) translateY(10px);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  overflow: hidden;
}

.modal-overlay.active .modal-content {
  transform: scale(1) translateY(0);
}

.modal-header {
  padding: 1.5rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border-subtle);
}

.modal-header h3 {
  font-size: 1.45rem;
  font-weight: 700;
  color: var(--text-primary);
}

.modal-close-btn {
  background: var(--badge-bg);
  border: 1px solid var(--badge-border);
  color: var(--text-primary);
  width: 38px;
  height: 38px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-fast);
}

.modal-close-btn:hover {
  background: #ef4444;
  color: #fff;
}

.modal-body {
  padding: 1.5rem 2rem;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

/* --------------------------------------------------------------------------
   11. TOAST NOTIFICATIONS
   -------------------------------------------------------------------------- */
.toast-container {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  pointer-events: none;
}

.toast {
  padding: 0.85rem 1.4rem;
  border-radius: var(--radius-md);
  background: var(--bg-elevated);
  border: 1px solid var(--border-medium);
  color: var(--text-primary);
  box-shadow: var(--shadow-xl);
  font-size: 0.9rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  animation: toast-in 0.35s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  pointer-events: auto;
}

@keyframes toast-in {
  from {
    transform: translateY(20px) scale(0.9);
    opacity: 0;
  }
  to {
    transform: translateY(0) scale(1);
    opacity: 1;
  }
}

/* ==========================================================================
   INTERACTIVE SYSTEMS ARCHITECTURE STUDIO COMPONENT
   ========================================================================== */

.systems-studio-wrapper {
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
  width: 100%;
}

/* Studio Control Bar */
.studio-control-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 0.25rem;
}

.studio-filter-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
}

.studio-tab-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 15px;
  border-radius: 9999px;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-secondary);
  background: rgba(15, 23, 42, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.12);
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.2, 0.8, 0.2, 1);
  white-space: nowrap;
}

[data-theme="light"] .studio-tab-btn {
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid rgba(0, 0, 0, 0.08);
  color: #334155;
}

.studio-tab-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.25);
  color: var(--text-primary);
  transform: translateY(-1px);
}

[data-theme="light"] .studio-tab-btn:hover {
  background: rgba(0, 0, 0, 0.04);
  border-color: rgba(0, 0, 0, 0.16);
  color: #0f172a;
}

.studio-tab-btn.active {
  background: rgba(59, 130, 246, 0.22);
  border-color: rgba(59, 130, 246, 0.65);
  color: #93c5fd;
  box-shadow: 0 0 16px rgba(59, 130, 246, 0.25);
}

[data-theme="light"] .studio-tab-btn.active {
  background: rgba(37, 99, 235, 0.14);
  border-color: rgba(37, 99, 235, 0.5);
  color: #1d4ed8;
  box-shadow: 0 0 16px rgba(37, 99, 235, 0.15);
}

.studio-tab-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  display: inline-block;
  flex-shrink: 0;
}

.studio-tab-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 1px 6px;
  border-radius: 9999px;
  font-size: 0.68rem;
  font-family: var(--font-mono);
  font-weight: 700;
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-muted);
}

[data-theme="light"] .studio-tab-badge {
  background: rgba(0, 0, 0, 0.06);
  color: #64748b;
}

.studio-tab-btn.active .studio-tab-badge {
  background: rgba(255, 255, 255, 0.2);
  color: #ffffff;
}

[data-theme="light"] .studio-tab-btn.active .studio-tab-badge {
  background: rgba(37, 99, 235, 0.2);
  color: #1e40af;
}

/* View Mode Switcher */
.studio-view-toggle {
  display: inline-flex;
  align-items: center;
  padding: 3px;
  border-radius: 12px;
  background: rgba(15, 23, 42, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
}

[data-theme="light"] .studio-view-toggle {
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid rgba(0, 0, 0, 0.08);
}

.view-toggle-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border-radius: 9px;
  font-family: var(--font-mono);
  font-size: 0.74rem;
  font-weight: 600;
  color: var(--text-muted);
  background: transparent;
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
}

.view-toggle-btn:hover {
  color: var(--text-primary);
}

.view-toggle-btn.active {
  background: rgba(255, 255, 255, 0.14);
  color: var(--text-primary);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

[data-theme="light"] .view-toggle-btn.active {
  background: #ffffff;
  color: #0f172a;
  box-shadow: 0 2px 8px rgba(100, 120, 160, 0.15);
}

/* MAIN STAGE: Flagship Studio Card */
.studio-flagship-card {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 2.25rem;
  padding: 2.5rem;
  border-radius: 24px;
  background: rgba(15, 23, 42, 0.68);
  border: 1px solid rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
  align-items: stretch;
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
}

[data-theme="light"] .studio-flagship-card {
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.95);
  box-shadow: 0 20px 50px rgba(100, 120, 160, 0.12);
}

/* Left Spec Panel */
.studio-spec-panel {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 1.25rem;
}

.studio-header-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.studio-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 10px;
  border-radius: 9999px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid;
}

[data-theme="light"] .studio-status-pill {
  background: rgba(0, 0, 0, 0.03);
}

.studio-live-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  animation: pulseLiveDot 2s infinite ease-in-out;
}

.studio-title {
  font-size: 2.1rem;
  font-weight: 800;
  color: var(--text-primary);
  margin: 0;
  letter-spacing: -0.02em;
  font-family: var(--font-sans);
}

.studio-subtitle {
  font-size: 0.98rem;
  font-weight: 600;
  color: var(--color-accent-cyan);
  margin: 0;
}

.studio-desc {
  font-size: 0.94rem;
  line-height: 1.65;
  color: var(--text-secondary);
  margin: 0;
}

.studio-features-block {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.studio-features-title {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
}

.studio-features-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.studio-feature-item {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.45;
}

.studio-tags-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.studio-actions-row {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 0.5rem;
}

.studio-deepdive-btn {
  background: rgba(59, 130, 246, 0.15) !important;
  color: #60a5fa !important;
  border-color: rgba(59, 130, 246, 0.4) !important;
  cursor: pointer;
}

.studio-deepdive-btn:hover {
  background: rgba(59, 130, 246, 0.25) !important;
  border-color: rgba(59, 130, 246, 0.7) !important;
  transform: translateY(-2px);
}

/* Right Interactive Architecture Blueprint Flowchart */
.studio-blueprint-panel {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 1.6rem;
  border-radius: 18px;
  background: rgba(9, 13, 22, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(12px);
  gap: 1.25rem;
}

[data-theme="light"] .studio-blueprint-panel {
  background: rgba(241, 245, 249, 0.85);
  border: 1px solid rgba(0, 0, 0, 0.06);
}

.blueprint-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding-bottom: 0.75rem;
}

[data-theme="light"] .blueprint-card-header {
  border-color: rgba(0, 0, 0, 0.08);
}

.blueprint-header-left {
  display: flex;
  align-items: center;
  gap: 8px;
}

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

.blueprint-code {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--text-secondary);
}

.blueprint-sys-tag {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: 6px;
  background: rgba(59, 130, 246, 0.15);
  color: #60a5fa;
  border: 1px solid rgba(59, 130, 246, 0.3);
}

/* Flowchart Nodes Sequence */
.blueprint-nodes-flow {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.blueprint-node-item {
  position: relative;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 11px 16px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: all 0.25s ease;
}

[data-theme="light"] .blueprint-node-item {
  background: rgba(255, 255, 255, 0.75);
  border: 1px solid rgba(0, 0, 0, 0.06);
}

.blueprint-node-item:hover {
  border-color: rgba(59, 130, 246, 0.4);
  background: rgba(255, 255, 255, 0.07);
}

.blueprint-node-index {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 800;
  color: var(--color-primary);
  width: 24px;
}

.blueprint-node-content {
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.blueprint-node-label {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text-primary);
  font-family: var(--font-sans);
}

.blueprint-node-sub {
  font-size: 0.74rem;
  font-family: var(--font-mono);
  color: var(--text-muted);
}

.blueprint-connector {
  display: none;
}

/* Telemetry Benchmarks Bar */
.blueprint-telemetry-bar {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  padding-top: 0.75rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

[data-theme="light"] .blueprint-telemetry-bar {
  border-color: rgba(0, 0, 0, 0.08);
}

.blueprint-telemetry-col {
  display: flex;
  flex-direction: column;
  gap: 2px;
  text-align: center;
}

.telemetry-col-label {
  font-family: var(--font-mono);
  font-size: 0.66rem;
  color: var(--text-muted);
  text-transform: uppercase;
}

.telemetry-col-val {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text-primary);
}

/* SYSTEM SELECTOR DOCK: Clickable Interactive Project Rail */
.studio-dock-rail {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  width: 100%;
}

.studio-dock-card {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 14px 16px;
  border-radius: 16px;
  background: rgba(15, 23, 42, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(12px);
  cursor: pointer;
  text-align: left;
  transition: all 0.25s cubic-bezier(0.2, 0.8, 0.2, 1);
  outline: none;
}

[data-theme="light"] .studio-dock-card {
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(0, 0, 0, 0.08);
}

.studio-dock-card:hover {
  border-color: rgba(59, 130, 246, 0.5);
  transform: translateY(-2px);
}

.studio-dock-card.active {
  background: rgba(30, 41, 59, 0.85);
  border-color: rgba(59, 130, 246, 0.8);
  box-shadow: 0 0 20px rgba(59, 130, 246, 0.25);
  transform: translateY(-2px);
}

[data-theme="light"] .studio-dock-card.active {
  background: #ffffff;
  border-color: rgba(37, 99, 235, 0.7);
  box-shadow: 0 0 20px rgba(37, 99, 235, 0.2);
}

.dock-card-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.dock-card-index {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-muted);
  font-weight: 700;
}

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

.dock-card-title {
  font-size: 0.96rem;
  font-weight: 700;
  color: var(--text-primary);
  font-family: var(--font-sans);
}

.dock-card-tag {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* MATRIX GRID VIEW (Toggleable alternate view) */
.studio-matrix-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 2rem;
  width: 100%;
}

/* Responsive Studio Layout */
@media (max-width: 1024px) {
  .studio-flagship-card {
    grid-template-columns: 1fr;
    gap: 1.75rem;
    padding: 1.75rem;
  }
  .studio-dock-rail {
    grid-template-columns: repeat(2, 1fr);
  }
  .studio-matrix-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
}

@media (max-width: 768px) {
  .studio-control-bar {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }
  .studio-filter-tabs {
    overflow-x: auto;
    flex-wrap: nowrap;
    -webkit-overflow-scrolling: touch;
    width: 100%;
    padding-bottom: 6px;
    scrollbar-width: none;
  }
  .studio-filter-tabs::-webkit-scrollbar {
    display: none;
  }
  .studio-tab-btn {
    padding: 6px 12px;
    font-size: 0.73rem;
    flex-shrink: 0;
  }
  .studio-view-toggle {
    align-self: flex-start;
  }
}

@media (max-width: 640px) {
  .studio-flagship-card {
    padding: 1.15rem 0.95rem;
    border-radius: 18px;
    gap: 1.25rem;
  }
  .studio-title {
    font-size: 1.45rem;
  }
  .studio-subtitle {
    font-size: 0.86rem;
  }
  .studio-desc {
    font-size: 0.86rem;
    line-height: 1.55;
  }
  .studio-features-list {
    gap: 0.45rem;
  }
  .studio-feature-item {
    font-size: 0.82rem;
  }
  .studio-actions-row {
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    gap: 8px;
  }
  .studio-actions-row .shiny-btn,
  .studio-actions-row .btn-secondary,
  .studio-actions-row .studio-deepdive-btn {
    width: 100%;
    justify-content: center;
  }
  .studio-blueprint-panel {
    padding: 0.95rem 0.85rem;
    border-radius: 14px;
    gap: 0.75rem;
  }
  .blueprint-node-item {
    padding: 8px 10px;
    gap: 10px;
    border-radius: 10px;
  }
  .blueprint-node-index {
    font-size: 0.75rem;
    width: 20px;
  }
  .blueprint-node-label {
    font-size: 0.82rem;
  }
  .blueprint-node-sub {
    font-size: 0.68rem;
  }
  .blueprint-telemetry-bar {
    gap: 4px;
    padding-top: 0.55rem;
  }
  .telemetry-col-label {
    font-size: 0.58rem;
  }
  .telemetry-col-val {
    font-size: 0.72rem;
  }
  .studio-dock-rail {
    grid-template-columns: 1fr;
    gap: 8px;
  }
  .studio-dock-card {
    padding: 10px 13px;
    border-radius: 14px;
  }
  .dock-card-title {
    font-size: 0.88rem;
  }
}

/* ==========================================================================
   HERO ACTIONS SOCIAL BUTTONS
   ========================================================================== */

.hero-actions {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  flex-wrap: wrap;
  margin-top: 1.5rem;
  margin-bottom: 2rem;
}

.hero-actions .shiny-btn,
.hero-actions .btn-secondary {
  padding: 0.72rem 1.25rem;
  font-size: 0.9rem;
}

.hero-social-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 0.72rem 1.05rem !important;
  font-size: 0.88rem !important;
  border-radius: var(--radius-full, 9999px);
  background: var(--bg-card, rgba(15, 23, 42, 0.7));
  border: 1px solid var(--border-subtle, rgba(255, 255, 255, 0.12));
  color: var(--text-primary, #f8fafc);
  font-weight: 600;
  transition: all 0.25s cubic-bezier(0.2, 0.8, 0.2, 1);
  text-decoration: none;
}

.hero-social-btn:hover {
  transform: translateY(-2px);
  border-color: var(--color-primary, #6366f1);
  box-shadow: 0 8px 20px -6px var(--color-primary-glow, rgba(99, 102, 241, 0.35));
  color: #ffffff;
}

[data-theme="light"] .hero-social-btn {
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(0, 0, 0, 0.1);
  color: #0f172a;
}

[data-theme="light"] .hero-social-btn:hover {
  border-color: #3b82f6;
  color: #1d4ed8;
  box-shadow: 0 8px 20px -6px rgba(59, 130, 246, 0.25);
}

@media (max-width: 600px) {
  .hero-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    width: 100%;
  }
  .hero-actions .shiny-btn,
  .hero-actions .btn-secondary,
  .hero-actions .hero-social-btn {
    padding: 0.68rem 0.85rem !important;
    font-size: 0.84rem !important;
    justify-content: center;
    width: 100%;
  }
}

/* ==========================================================================
   CSS LIQUID GLASS UI DESIGN SYSTEM
   Ref: https://freefrontend.com/css-liquid-glass/
   Optical Refraction, Inset Specular Highlights & Fluid Kinetic Hover
   ========================================================================== */

.liquid-glass-panel,
.liquid-glass-card {
  position: relative;
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.07) 0%,
    rgba(255, 255, 255, 0.02) 42%,
    rgba(255, 255, 255, 0.005) 100%
  );
  backdrop-filter: blur(24px) saturate(190%) brightness(1.06);
  -webkit-backdrop-filter: blur(24px) saturate(190%) brightness(1.06);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-top-color: rgba(255, 255, 255, 0.45);
  border-left-color: rgba(255, 255, 255, 0.3);
  border-radius: var(--radius-xl, 20px);
  box-shadow:
    0 24px 60px -15px rgba(0, 0, 0, 0.65),
    inset 0 1px 2px 0 rgba(255, 255, 255, 0.45),
    inset 0 0 20px 2px rgba(255, 255, 255, 0.04),
    inset 0 -2px 8px rgba(0, 0, 0, 0.35);
  overflow: hidden;
  transition: all 0.32s cubic-bezier(0.16, 1, 0.3, 1);
}

.liquid-glass-panel::before,
.liquid-glass-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(
    125deg,
    rgba(255, 255, 255, 0.22) 0%,
    rgba(255, 255, 255, 0.06) 26%,
    transparent 48%,
    transparent 74%,
    rgba(255, 255, 255, 0.08) 100%
  );
  pointer-events: none;
  mix-blend-mode: overlay;
}

.liquid-glass-panel::after,
.liquid-glass-card::after {
  content: '';
  position: absolute;
  top: 1px;
  left: 12%;
  right: 12%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.8), transparent);
  pointer-events: none;
  filter: blur(0.3px);
}

/* Liquid Glass Buttons */
.liquid-glass-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0.72rem 1.35rem;
  border-radius: var(--radius-full, 9999px);
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.14) 0%,
    rgba(255, 255, 255, 0.04) 48%,
    rgba(255, 255, 255, 0.01) 100%
  );
  backdrop-filter: blur(20px) saturate(180%) brightness(1.1);
  -webkit-backdrop-filter: blur(20px) saturate(180%) brightness(1.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-top-color: rgba(255, 255, 255, 0.6);
  border-left-color: rgba(255, 255, 255, 0.35);
  box-shadow:
    0 10px 25px -6px rgba(0, 0, 0, 0.4),
    inset 0 1px 2px 0 rgba(255, 255, 255, 0.5),
    inset 0 0 12px rgba(255, 255, 255, 0.06),
    inset 0 -1.5px 4px rgba(0, 0, 0, 0.25);
  color: #ffffff;
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 0.92rem;
  text-decoration: none;
  cursor: pointer;
  overflow: hidden;
  transition: all 0.28s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.liquid-glass-btn::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(
    115deg,
    rgba(255, 255, 255, 0.35) 0%,
    rgba(255, 255, 255, 0.1) 32%,
    transparent 55%,
    transparent 80%,
    rgba(255, 255, 255, 0.12) 100%
  );
  pointer-events: none;
  mix-blend-mode: overlay;
  transition: opacity 0.3s ease;
}

.liquid-glass-btn::after {
  content: '';
  position: absolute;
  top: 1px;
  left: 15%;
  right: 15%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.95), transparent);
  pointer-events: none;
  filter: blur(0.3px);
}

.liquid-glass-btn:hover {
  transform: translateY(-2.5px);
  border-color: rgba(255, 255, 255, 0.38);
  border-top-color: rgba(255, 255, 255, 0.85);
  box-shadow:
    0 16px 36px -8px rgba(0, 0, 0, 0.6),
    0 0 25px rgba(99, 102, 241, 0.4),
    inset 0 1px 3px rgba(255, 255, 255, 0.7),
    inset 0 0 16px rgba(255, 255, 255, 0.12);
  color: #ffffff;
}

.liquid-glass-btn:active {
  transform: translateY(1px) scale(0.985);
  box-shadow:
    0 6px 16px -4px rgba(0, 0, 0, 0.45),
    inset 0 1px 2px rgba(255, 255, 255, 0.3);
}

/* Primary Accent Variant of Liquid Glass */
.liquid-glass-btn--primary {
  background: linear-gradient(
    135deg,
    rgba(99, 102, 241, 0.72) 0%,
    rgba(79, 70, 229, 0.52) 50%,
    rgba(67, 56, 202, 0.38) 100%
  );
  border-color: rgba(165, 180, 252, 0.45);
  border-top-color: rgba(255, 255, 255, 0.75);
  box-shadow:
    0 12px 30px -6px rgba(99, 102, 241, 0.5),
    inset 0 1px 2px 0 rgba(255, 255, 255, 0.6),
    inset 0 0 14px rgba(255, 255, 255, 0.15),
    inset 0 -1.5px 4px rgba(0, 0, 0, 0.3);
}

.liquid-glass-btn--primary:hover {
  box-shadow:
    0 18px 40px -6px rgba(99, 102, 241, 0.65),
    0 0 30px rgba(99, 102, 241, 0.55),
    inset 0 1px 3px rgba(255, 255, 255, 0.85);
}

/* Liquid Glass Form Inputs */
.liquid-glass-input {
  width: 100%;
  padding: 0.85rem 1.15rem;
  border-radius: var(--radius-md, 12px);
  background: rgba(255, 255, 255, 0.04) !important;
  border: 1px solid rgba(255, 255, 255, 0.14) !important;
  border-top-color: rgba(255, 255, 255, 0.3) !important;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  color: #ffffff !important;
  font-family: var(--font-sans);
  font-size: 0.94rem;
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.4), 0 4px 14px rgba(0, 0, 0, 0.1);
  transition: all 0.25s ease;
}

.liquid-glass-input:focus {
  border-color: rgba(99, 102, 241, 0.7) !important;
  box-shadow: 0 0 20px rgba(99, 102, 241, 0.3), inset 0 1px 2px rgba(0, 0, 0, 0.3) !important;
  outline: none;
}

/* Light Mode for Liquid Glass */
[data-theme="light"] .liquid-glass-panel,
[data-theme="light"] .liquid-glass-card {
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.85) 0%,
    rgba(255, 255, 255, 0.65) 100%
  );
  border-color: rgba(255, 255, 255, 0.95);
  border-top-color: #ffffff;
  box-shadow:
    0 16px 40px -10px rgba(70, 90, 130, 0.16),
    inset 0 1px 2px #ffffff,
    inset 0 0 16px rgba(255, 255, 255, 0.7);
}

[data-theme="light"] .liquid-glass-btn {
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.9) 0%,
    rgba(240, 244, 250, 0.75) 100%
  );
  border-color: rgba(255, 255, 255, 0.95);
  border-top-color: #ffffff;
  color: #0f172a;
  box-shadow:
    0 8px 22px -5px rgba(70, 90, 130, 0.14),
    inset 0 1px 2px #ffffff,
    inset 0 0 12px rgba(255, 255, 255, 0.8);
}

[data-theme="light"] .liquid-glass-btn:hover {
  border-color: rgba(59, 130, 246, 0.4);
  color: #1d4ed8;
  box-shadow:
    0 14px 30px -6px rgba(59, 130, 246, 0.25),
    0 0 20px rgba(59, 130, 246, 0.2);
}

[data-theme="light"] .liquid-glass-btn--primary {
  background: linear-gradient(
    135deg,
    #2563eb 0%,
    #1d4ed8 100%
  );
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.4);
  box-shadow:
    0 12px 28px -6px rgba(37, 99, 235, 0.4),
    inset 0 1px 2px rgba(255, 255, 255, 0.4);
}

[data-theme="light"] .liquid-glass-input {
  background: rgba(255, 255, 255, 0.75) !important;
  border-color: rgba(0, 0, 0, 0.1) !important;
  color: #0f172a !important;
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.05);
}

[data-theme="light"] .liquid-glass-input:focus {
  border-color: #3b82f6 !important;
  box-shadow: 0 0 18px rgba(59, 130, 246, 0.2) !important;
}

/* ==========================================================================
   AUTONOMOUS COLLABORATION & DISPATCH STATION
   ========================================================================== */

.dispatch-station-grid {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 2.5rem;
  align-items: start;
  margin-top: 2rem;
}

.dispatch-telemetry-panel,
.dispatch-console-panel {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 0;
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}

/* Symmetrical Header Baselines */
.telemetry-panel-header,
.console-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 48px;
  margin-bottom: 1.75rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--border-subtle, rgba(255, 255, 255, 0.08));
  box-sizing: border-box;
}

[data-theme="light"] .telemetry-panel-header,
[data-theme="light"] .console-panel-header {
  border-bottom-color: rgba(0, 0, 0, 0.08);
}

.radar-status-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.radar-pulse-dot {
  position: relative;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 12px #10b981;
  flex-shrink: 0;
}

.radar-pulse-dot::after {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 1.5px solid #10b981;
  animation: radarPing 1.8s cubic-bezier(0, 0, 0.2, 1) infinite;
}

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

.radar-status-text {
  font-family: var(--font-mono, monospace);
  font-size: 0.82rem;
  font-weight: 700;
  color: #10b981;
  letter-spacing: 0.5px;
}

.telemetry-avail-badge {
  font-family: var(--font-mono, monospace);
  font-size: 0.72rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 6px;
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid rgba(16, 185, 129, 0.35);
  color: #10b981;
}

/* Direct Beacons List */
.direct-beacons-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 1rem;
}

.beacon-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.1rem 1.35rem;
  border-radius: var(--radius-lg, 16px);
  transition: all 0.25s ease;
  box-sizing: border-box;
}

.beacon-card:hover {
  transform: translateY(-2px);
}

.beacon-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.beacon-email {
  background: rgba(99, 102, 241, 0.15);
  color: #818cf8;
  border: 1px solid rgba(99, 102, 241, 0.3);
}

.beacon-details {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.beacon-label {
  font-family: var(--font-mono, monospace);
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--text-muted, #94a3b8);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.beacon-val {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-primary, #ffffff);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

[data-theme="light"] .beacon-val {
  color: #0f172a;
}

.beacon-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.beacon-action-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px 14px !important;
  font-size: 0.78rem !important;
  font-weight: 600;
  border-radius: 9999px !important;
  cursor: pointer;
  text-decoration: none;
}

/* End Action Buttons Stack (Resume, LinkedIn, GitHub) */
.end-action-buttons-stack {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.end-liquid-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 1.05rem 1.35rem;
  border-radius: var(--radius-lg, 14px);
  text-decoration: none;
  box-sizing: border-box;
}

.end-btn-left {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.93rem;
  font-weight: 600;
}

.end-btn-tag {
  font-family: var(--font-mono, monospace);
  font-size: 0.74rem;
  font-weight: 700;
  color: var(--color-primary, #818cf8);
  background: rgba(99, 102, 241, 0.12);
  padding: 3px 8px;
  border-radius: 6px;
}

[data-theme="light"] .end-btn-tag {
  color: #4f46e5;
  background: rgba(79, 70, 229, 0.1);
}

/* Console Panel (Right Form) */
.console-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.75rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--border-subtle, rgba(255, 255, 255, 0.08));
}

.console-header-left {
  display: flex;
  align-items: center;
  gap: 8px;
}

.console-signal-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #3b82f6;
  box-shadow: 0 0 10px #3b82f6;
}

.console-title {
  font-family: var(--font-mono, monospace);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 1px;
  color: var(--text-primary, #ffffff);
}

[data-theme="light"] .console-title {
  color: #0f172a;
}

.console-protocol-badge {
  font-family: var(--font-mono, monospace);
  font-size: 0.72rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 6px;
  background: rgba(59, 130, 246, 0.15);
  border: 1px solid rgba(59, 130, 246, 0.35);
  color: #60a5fa;
}

.dispatch-form {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.form-row-2col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.dispatch-submit-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 0.95rem 1.5rem;
  font-size: 0.98rem;
  font-weight: 700;
  cursor: pointer;
  border: none;
}

.dispatch-status-banner {
  padding: 0.9rem 1.25rem;
  border-radius: 10px;
  font-size: 0.88rem;
  font-weight: 600;
  text-align: center;
  animation: fadeInStatus 0.3s ease forwards;
}

@keyframes fadeInStatus {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.dispatch-status-banner.success {
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid rgba(16, 185, 129, 0.4);
  color: #34d399;
}

@media (max-width: 900px) {
  .dispatch-station-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  .form-row-2col {
    grid-template-columns: 1fr;
  }
  .dispatch-telemetry-panel,
  .dispatch-console-panel {
    padding: 1.5rem;
  }
}

@media (max-width: 600px) {
  .beacon-card {
    padding: 0.85rem 1rem;
  }
  .beacon-val {
    font-size: 0.86rem;
  }
}



