/* ================================================================
   PREMIUM.CSS — Exact 1:1 Reference Match Design System (Screenshots 2 & 3)
   ================================================================ */

@import url('https://fonts.googleapis.com/css2?family=JetBrains+Mono:ital,wght@0,300;0,400;0,500;0,700;1,400&family=Inter:ital,wght@0,300;0,400;0,500;0,600;0,700;1,400&display=swap');

:root {
  --c-bg: #050505;
  --c-container-bg: #080808;
  --c-card-bg: #111114;
  --c-card-border: rgba(255, 255, 255, 0.08);
  --c-card-border-hover: rgba(255, 255, 255, 0.2);
  --c-white: #ffffff;
  --c-text-muted: #8e8e93;
  --c-text-dark: #080808;

  --font-mono: 'JetBrains Mono', Courier, monospace;
  --font-sans: 'Inter', system-ui, -apple-system, sans-serif;

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
  background-color: var(--c-bg);
  color: var(--c-white);
}

body {
  background-color: var(--c-bg);
  color: var(--c-white);
  font-family: var(--font-sans);
  overflow-x: hidden;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  padding: 1.5rem 1rem;
}

@media (max-width: 768px) {
  body {
    padding: 0.5rem;
  }
}

/* ----------------------------------------------------------------
   CONSTRAINED NARROW EDITORIAL PAGE CONTAINER (SCREENSHOT 3)
   ---------------------------------------------------------------- */
.page-container {
  max-width: 1240px;
  margin: 0 auto;
  background-color: var(--c-container-bg);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 24px;
  position: relative;
  overflow: clip;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.8);
}

/* ----------------------------------------------------------------
   TOP RIGHT NAV CIRCLE & GEOMETRIC ARCS
   ---------------------------------------------------------------- */
.nav-top-right-circle {
  position: absolute;
  top: -110px;
  right: -110px;
  width: 320px;
  height: 320px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 50%;
  pointer-events: none;
  display: flex;
  align-items: flex-end;
  justify-content: flex-start;
  padding: 4.5rem;
  z-index: 10;
}

.lang-switch {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--c-white);
  pointer-events: auto;
  line-height: 1.3;
}

.lang-switch span {
  color: var(--c-text-muted);
}

.bg-arc-about-large {
  position: absolute;
  top: 50px;
  right: -240px;
  width: 750px;
  height: 750px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 50%;
  pointer-events: none;
}

.bg-arc-projects {
  position: absolute;
  top: 15%;
  left: -320px;
  width: 900px;
  height: 900px;
  border: 1px solid rgba(255, 255, 255, 0.04);
  border-radius: 50%;
  pointer-events: none;
}

.bg-arc-footer {
  position: absolute;
  bottom: -150px;
  left: -180px;
  width: 700px;
  height: 700px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 50%;
  pointer-events: none;
}

/* ----------------------------------------------------------------
   HEADER NAV (TECHNICAL EDITORIAL STYLE)
   ---------------------------------------------------------------- */
.header-nav {
  position: relative;
  padding: 2.5rem 3.5rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  z-index: 20;
}

.nav-brand-name {
  font-family: var(--font-sans);
  font-size: 0.9rem;
  font-weight: 500;
  line-height: 1.3;
  color: var(--c-white);
}

.nav-links-center {
  display: flex;
  gap: 2.5rem;
  list-style: none;
  margin-right: 4rem;
}

.nav-links-center a {
  font-family: var(--font-sans);
  font-size: 0.85rem;
  color: var(--c-text-muted);
  text-decoration: none;
  transition: color 0.2s ease;
}

.nav-links-center a:hover {
  color: var(--c-white);
}

/* ----------------------------------------------------------------
   HERO SECTION (ASYMMETRIC HEADING - MATCHING SCREENSHOT 3)
   ---------------------------------------------------------------- */
.hero-wrapper {
  position: relative;
  padding: 3rem 3.5rem 5rem;
}

#hero-canvas {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.35;
  z-index: 1;
}

.hero-main-content {
  position: relative;
  z-index: 2;
}

.hero-title-line-1 {
  font-family: var(--font-mono);
  font-size: clamp(3.2rem, 7.5vw, 6.8rem);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.02em;
  margin-bottom: 0.5rem;
  color: var(--c-white);
}

.hero-title-line-2 {
  display: grid;
  grid-template-columns: 1fr auto auto;
  align-items: center;
  gap: 1.5rem;
  margin-bottom: 2.5rem;
}

.hero-sub-paragraph {
  max-width: 340px;
  font-size: 0.85rem;
  color: var(--c-text-muted);
  line-height: 1.6;
}

.hero-sub-paragraph em {
  font-style: italic;
  color: var(--c-white);
}

.hero-title-word-right {
  font-family: var(--font-mono);
  font-size: clamp(3.2rem, 7.5vw, 6.8rem);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--c-white);
  /* pushes to far right in the grid */
  justify-self: end;
}

/* Inline White Pill Button inside Hero */
.hero-projects-pill {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  background: var(--c-white);
  color: var(--c-text-dark);
  padding: 8px 10px 8px 24px;
  border-radius: 50px;
  font-family: var(--font-sans);
  font-size: 0.88rem;
  font-weight: 600;
  gap: 1.25rem;
  text-decoration: none;
  transition: all 0.3s var(--ease-out);
  cursor: pointer;
}

.hero-projects-pill:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 20px rgba(255, 255, 255, 0.25);
}

.hero-pill-arrow-circle {
  width: 30px;
  height: 30px;
  background: var(--c-text-dark);
  color: var(--c-white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
}

/* Social Pills Row */
.social-row {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-bottom: 4rem;
}

.social-btn-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 7px 16px;
  border-radius: 50px;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--c-text-muted);
  text-decoration: none;
  transition: color 0.25s ease, border-color 0.25s ease, background 0.25s ease, transform 0.25s ease;
  cursor: pointer;
}

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

/* Font Awesome icon inside pills */
.social-btn-pill i {
  font-size: 0.9rem;
  color: var(--c-white);
  width: 14px;
  text-align: center;
  flex-shrink: 0;
}

/* Legacy span icon inside pills (fallback) */
.social-btn-pill span {
  font-size: 0.8rem;
  color: var(--c-white);
}

/* ----------------------------------------------------------------
   HERO ARTICLE / PREVIEW STRIP (CAROUSEL SLIDER MATCHING SCREENSHOT 3)
   ---------------------------------------------------------------- */
.hero-strip-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.strip-nav-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--c-card-border);
  color: var(--c-white);
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.25s ease;
  flex-shrink: 0;
  z-index: 5;
}

.strip-nav-btn:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.3);
  transform: scale(1.05);
}

.hero-cards-grid {
  display: flex;
  gap: 1.5rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  flex: 1;
  padding-bottom: 0.5rem;
  scrollbar-width: none;
}

.hero-cards-grid::-webkit-scrollbar {
  display: none;
}

.h-card {
  min-width: 300px;
  max-width: 360px;
  flex: 0 0 auto;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--c-card-border);
  border-radius: 20px;
  padding: 1.25rem;
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 1rem;
  scroll-snap-align: center;
  transition: all 0.4s var(--ease-out);
}

.h-card-dim {
  opacity: 0.4;
  filter: blur(0.3px);
}

.h-card-dim:hover {
  opacity: 0.7;
  filter: blur(0);
}

.h-card-featured {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}

.h-card-media-slot {
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  background: linear-gradient(135deg, #1e1e24 0%, #0d0d11 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 160px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.glowing-orb-bg {
  position: absolute;
  width: 120px;
  height: 120px;
  background: radial-gradient(circle, rgba(160, 120, 255, 0.4) 0%, rgba(0, 210, 255, 0.2) 50%, transparent 70%);
  filter: blur(15px);
  animation: pulseOrb 6s infinite alternate ease-in-out;
}

@keyframes pulseOrb {
  0% { transform: scale(0.8) rotate(0deg); }
  100% { transform: scale(1.2) rotate(180deg); }
}

.media-placeholder-graphic {
  position: relative;
  z-index: 2;
  text-align: center;
}

.ph-3d-blob {
  width: 50px;
  height: 50px;
  margin: 0 auto 6px;
  background: linear-gradient(135deg, #e0c3fc 0%, #8ec5fc 100%);
  border-radius: 35% 65% 60% 40% / 45% 45% 55% 55%;
  animation: morphBlob 8s infinite alternate ease-in-out;
  box-shadow: 0 8px 25px rgba(0,0,0,0.4);
}

@keyframes morphBlob {
  0% { border-radius: 35% 65% 60% 40% / 45% 45% 55% 55%; }
  100% { border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%; }
}

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

.h-card-info {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.h-card-code-title {
  font-family: var(--font-mono);
  font-size: 1.1rem;
  font-weight: 700;
  line-height: 1.25;
  color: var(--c-white);
  margin-bottom: 0.5rem;
}

.h-card-body-text {
  font-size: 0.8rem;
  color: var(--c-text-muted);
  line-height: 1.5;
  margin-bottom: 1rem;
}

.h-card-action-row {
  display: flex;
  gap: 10px;
  align-items: center;
  margin-top: auto;
}

.read-more-pill {
  display: inline-flex;
  align-items: center;
  background: var(--c-white);
  color: var(--c-text-dark);
  padding: 6px 18px;
  border-radius: 50px;
  font-family: var(--font-sans);
  font-size: 0.78rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.25s ease;
}

.read-more-pill:hover {
  background: #e4e4e7;
  transform: translateY(-1px);
}

.arrow-circle-btn {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid var(--c-card-border);
  color: var(--c-white);
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  font-size: 0.85rem;
  transition: all 0.25s ease;
}

.arrow-circle-btn:hover {
  background: var(--c-white);
  color: var(--c-text-dark);
  border-color: var(--c-white);
}

/* ----------------------------------------------------------------
   SECTION TITLE TAG (EDITORIAL MONO TAG)
   ---------------------------------------------------------------- */
.section-tag-mono {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--c-text-muted);
  margin-bottom: 2rem;
}

/* ----------------------------------------------------------------
   ABOUT SECTION (SKILLS + STANDALONE EDITORIAL PORTRAIT)
   ---------------------------------------------------------------- */
.about-wrapper {
  position: relative;
  padding: 5rem 3.5rem;
  border-top: 1px solid var(--c-card-border);
}

.about-top-right-paragraph {
  position: absolute;
  top: 5rem;
  right: 3.5rem;
  max-width: 440px;
  font-size: 1.1rem;
  line-height: 1.5;
  color: var(--c-text-muted);
}

.about-top-right-paragraph em {
  font-style: italic;
  color: var(--c-white);
  font-weight: 500;
}

/* Premium Glassmorphic Editorial Intro Badge Card */
.about-intro-badge {
  position: relative;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.03) 0%, rgba(255, 255, 255, 0.01) 100%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 24px;
  padding: 2rem 2.25rem;
  margin-bottom: 2.5rem;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  transition: border-color 0.35s ease, transform 0.35s ease, box-shadow 0.35s ease;
  overflow: hidden;
}

.about-intro-badge::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, 0.25) 50%, transparent 100%);
}

.about-intro-badge:hover {
  border-color: rgba(255, 255, 255, 0.18);
  transform: translateY(-2px);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.14);
}

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

.about-status-indicator {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.45rem 1rem;
  background: rgba(34, 197, 94, 0.08);
  border: 1px solid rgba(34, 197, 94, 0.25);
  border-radius: 50px;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 500;
  color: #4ade80;
  letter-spacing: 0.02em;
}

.status-dot-pulse {
  width: 8px;
  height: 8px;
  background-color: #22c55e;
  border-radius: 50%;
  position: relative;
  box-shadow: 0 0 10px #22c55e;
  flex-shrink: 0;
}

.status-dot-pulse::after {
  content: '';
  position: absolute;
  top: -3px;
  left: -3px;
  right: -3px;
  bottom: -3px;
  border-radius: 50%;
  border: 1.5px solid #22c55e;
  animation: pulseStatusRing 2s cubic-bezier(0.24, 0, 0.38, 1) infinite;
}

@keyframes pulseStatusRing {
  0% { transform: scale(0.5); opacity: 0.9; }
  70% { transform: scale(1.9); opacity: 0; }
  100% { transform: scale(1.9); opacity: 0; }
}

.about-geo-tag {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--c-text-muted);
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}

.about-geo-tag i {
  color: #f87171;
  font-size: 0.75rem;
}

.about-intro-text {
  font-size: 1.15rem;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.82);
  margin-bottom: 1.75rem;
  font-weight: 350;
  max-width: 950px;
}

.about-intro-text strong.text-glow {
  color: #ffffff;
  font-weight: 600;
  text-shadow: 0 0 20px rgba(255, 255, 255, 0.3);
}

.about-intro-text em {
  color: rgba(255, 255, 255, 0.98);
  font-style: normal;
  font-weight: 500;
  border-bottom: 1px dashed rgba(255, 255, 255, 0.25);
  padding-bottom: 1px;
}

.about-stats-mini-row {
  display: flex;
  align-items: center;
  gap: 2.75rem;
  padding-top: 1.35rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  flex-wrap: wrap;
}

.mini-stat-item {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.mini-stat-num {
  font-family: var(--font-mono);
  font-size: 1.85rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1;
  background: linear-gradient(135deg, #ffffff 40%, #c7d2fe 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.mini-stat-lbl {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--c-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 500;
}

.mini-stat-divider {
  width: 1px;
  height: 36px;
  background: rgba(255, 255, 255, 0.08);
}

.about-main-grid {
  display: grid;
  grid-template-columns: 1fr 420px;
  gap: 3.5rem;
  align-items: start;
  margin-top: 3rem;
}

.about-cards-stack {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.ab-card {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--c-card-border);
  border-radius: 20px;
  padding: 1.5rem 1.75rem;
  transition: border-color 0.3s ease;
}

.ab-card:hover {
  border-color: var(--c-card-border-hover);
}

.ab-card-white {
  background: var(--c-white);
  color: var(--c-text-dark);
  border: none;
  padding: 1.75rem;
}

.ab-card-white .ab-card-title {
  color: var(--c-text-dark);
}

.ab-card-white .ab-card-text {
  color: #333333;
}

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

.ab-arrow-btn {
  width: 42px;
  height: 42px;
  font-size: 1.1rem;
  flex-shrink: 0;
}

.ab-card-title {
  font-family: var(--font-sans);
  font-size: 1.15rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--c-white);
}

.ab-card-text {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  line-height: 1.6;
  color: var(--c-text-muted);
}

.about-tech-note {
  font-size: 0.82rem;
  color: var(--c-text-muted);
  margin: 0.5rem 0;
}

.about-tech-note em {
  color: var(--c-white);
  font-style: italic;
}

/* Standalone Editorial Portrait Frame */
.about-portrait-frame {
  position: relative;
  width: 100%;
}

.portrait-image-holder {
  aspect-ratio: 3 / 4;
  border-radius: 28px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  position: relative;
  overflow: hidden;
  background: linear-gradient(145deg, #18181c, #0b0b0e);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.4s var(--ease-out), border-color 0.3s ease;
}

.portrait-image-holder:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 255, 255, 0.3);
}

/* ─── Portrait zoom button wrapper ─── */
.portrait-zoom-trigger {
  display: block;
  width: 100%;
  height: 100%;
  background: none;
  border: none;
  padding: 0;
  margin: 0;
  cursor: zoom-in;
  position: relative;
  line-height: 0;
  overflow: hidden;
}

.portrait-zoom-trigger img,
.portrait-image-holder img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  border-radius: 26px;
  image-rendering: auto;
  image-rendering: smooth;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  transform: translateZ(0);
}

/* Zoom icon badge — appears on hover */
.portrait-zoom-icon {
  position: absolute;
  bottom: 12px;
  right: 12px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(10, 10, 15, 0.75);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: #fff;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transform: scale(0.8);
  transition: opacity 0.25s ease, transform 0.25s ease;
  pointer-events: none;
  z-index: 5;
}

.portrait-zoom-trigger:hover .portrait-zoom-icon,
.portrait-zoom-trigger:focus .portrait-zoom-icon {
  opacity: 1;
  transform: scale(1);
}

/* ─── Portrait Lightbox Overlay ─── */
.portrait-lightbox {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  box-sizing: border-box;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.portrait-lightbox.is-open {
  opacity: 1;
  pointer-events: all;
}

.portrait-lightbox-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(4, 4, 8, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  cursor: zoom-out;
}

.portrait-lightbox-frame {
  position: relative;
  z-index: 2;
  width: min(500px, 92vw);
  max-height: 88vh;
  aspect-ratio: 3 / 4;
  border-radius: 28px;
  overflow: hidden;
  background: #0d0d12;
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: 0 40px 100px rgba(0, 0, 0, 0.95);
  transform: scale(0.95);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.portrait-lightbox.is-open .portrait-lightbox-frame {
  transform: scale(1);
}

.portrait-lightbox-frame img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  image-rendering: auto;
  image-rendering: smooth;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  transform: translateZ(0);
}

.portrait-lightbox-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(10, 10, 15, 0.8);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff;
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  transition: background 0.2s ease, transform 0.2s ease;
}

.portrait-lightbox-close:hover {
  background: rgba(255, 255, 255, 0.12);
  transform: scale(1.1);
}

.portrait-ph-bg {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.08) 1px, transparent 1px);
  background-size: 16px 16px;
  opacity: 0.6;
}

.portrait-ph-overlay {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 2rem;
}

.portrait-ph-icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  opacity: 0.8;
}

.portrait-ph-title {
  font-family: var(--font-mono);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: var(--c-white);
  margin-bottom: 0.75rem;
}

.portrait-ph-specs {
  font-size: 0.8rem;
  color: var(--c-text-muted);
  line-height: 1.5;
}

/* ----------------------------------------------------------------
   WORK / EXPERIENCE SECTION (EXACT MATCHING SCREENSHOT 3)
   ---------------------------------------------------------------- */
.work-wrapper {
  position: relative;
  padding: 5rem 3.5rem;
  border-top: 1px solid var(--c-card-border);
}

.work-header-right {
  text-align: right;
  margin-bottom: 2.5rem;
}

.work-giant-title {
  font-family: var(--font-mono);
  font-size: clamp(3.5rem, 8vw, 6.5rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1;
  color: var(--c-white);
}

.work-list {
  display: flex;
  flex-direction: column;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: #0d0d10;
}

.work-item-row {
  display: grid;
  grid-template-columns: 200px 1.2fr 1fr;
  padding: 1.5rem 2.25rem;
  background: rgba(255, 255, 255, 0.02);
  align-items: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  transition: background 0.3s ease;
  cursor: pointer;
}

.work-item-row:last-child {
  border-bottom: none;
}

.work-item-row:hover {
  background: rgba(255, 255, 255, 0.05);
}

.work-date {
  font-family: var(--font-mono);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--c-white);
  line-height: 1.4;
}

.work-date span {
  display: block;
  font-size: 0.72rem;
  color: var(--c-text-muted);
  font-weight: 400;
  margin-top: 2px;
}

.work-company {
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: 600;
  color: var(--c-white);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.work-role {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: var(--c-text-muted);
}

/* ACTIVE HIGHLIGHTED ROW — WHITE ROW MATCHING SCREENSHOT 3 */
.work-item-row.row-active {
  background: #ffffff !important;
  border-radius: 14px;
  margin: 4px;
  border: none;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.3);
}

.work-item-row.row-active .work-date {
  color: #111111 !important;
}

.work-item-row.row-active .work-date span {
  color: #666666 !important;
}

.work-item-row.row-active .work-company {
  color: #111111 !important;
}

.work-item-row.row-active .work-role {
  color: #555555 !important;
}

.row-cursor-arrow {
  font-size: 0.85rem;
  opacity: 0.5;
}

.work-total-exp {
  text-align: right;
  margin-top: 2rem;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--c-text-muted);
}

.work-total-exp strong {
  display: block;
  color: var(--c-white);
  font-weight: 700;
  font-size: 1.1rem;
}

/* ----------------------------------------------------------------
   PROJECTS SECTION (ARTISTIC COMPOSITIONS MATCHING SCREENSHOT 2)
   ---------------------------------------------------------------- */
.projects-wrapper {
  position: relative;
  padding: 5rem 3.5rem;
  border-top: 1px solid var(--c-card-border);
}

.project-bento-card {
  display: grid;
  grid-template-columns: 1fr 1.35fr;
  gap: 3rem;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--c-card-border);
  border-radius: 24px;
  padding: 2.5rem;
  align-items: center;
  margin-bottom: 4rem;
  transition: border-color 0.3s ease;
}

.project-bento-card:hover {
  border-color: var(--c-card-border-hover);
}

.project-bento-card.alt-bento {
  grid-template-columns: 1.35fr 1fr;
}

.project-bento-info {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.project-bento-title {
  font-family: var(--font-mono);
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--c-white);
  margin-bottom: 1rem;
}

.project-tech-tags {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-bottom: 1.25rem;
}

.p-tag {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 4px 12px;
  border-radius: 50px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--c-text-muted);
}

.project-bento-desc {
  font-size: 0.88rem;
  color: var(--c-text-muted);
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

.project-bullet-list {
  list-style: none;
  font-size: 0.82rem;
  color: var(--c-text-muted);
  margin-bottom: 1.5rem;
}

.project-bullet-list li {
  position: relative;
  padding-left: 1.25rem;
  margin-bottom: 0.4rem;
}

.project-bullet-list li::before {
  content: '•';
  position: absolute;
  left: 0;
  color: var(--c-white);
}

.lg-btn {
  width: 44px;
  height: 44px;
  font-size: 1.1rem;
}

/* Multi-Image Composition Container */
.project-multi-media-cluster {
  position: relative;
  width: 100%;
  height: 380px;
  border-radius: 20px;
  overflow: hidden;
  padding: 1.5rem;
  transition: transform 0.4s var(--ease-out);
}

.project-multi-media-cluster:hover {
  transform: scale(1.015);
}

.project-multi-media-cluster.theme-dark {
  background: linear-gradient(145deg, #131317 0%, #0a0a0d 100%);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.project-multi-media-cluster.theme-cream {
  background: linear-gradient(145deg, #f4f3ee 0%, #e6e4de 100%);
  border: 1px solid rgba(0, 0, 0, 0.1);
}

.cluster-circle-bg {
  position: absolute;
  width: 320px;
  height: 320px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 50%;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
}

.theme-cream .cluster-circle-bg {
  border-color: rgba(0, 0, 0, 0.06);
}

.cluster-action-floating {
  position: absolute;
  bottom: 1.25rem;
  left: 1.25rem;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--c-white);
  color: var(--c-text-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
  font-weight: bold;
  z-index: 10;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

/* Floating Cluster Cards Layout with Realistic Mockup & Imagery */
.cluster-card {
  position: absolute;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.45);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.35s ease;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: #15151a;
}

.theme-cream .cluster-card {
  border-color: rgba(0, 0, 0, 0.08);
  box-shadow: 0 14px 35px rgba(0, 0, 0, 0.12);
}

.cluster-card:hover {
  transform: translateY(-6px) scale(1.03);
  z-index: 10 !important;
  box-shadow: 0 24px 50px rgba(0, 0, 0, 0.6);
}

.cluster-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  display: block;
  transition: transform 0.4s ease;
}

.cluster-card:hover .cluster-card-img {
  transform: scale(1.05);
}

/* Browser-style mini toolbar header */
.cluster-browser-header {
  height: 18px;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 0 8px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.theme-cream .cluster-browser-header {
  background: rgba(255, 255, 255, 0.85);
  border-bottom-color: rgba(0, 0, 0, 0.08);
}

.browser-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
}

.theme-cream .browser-dot {
  background: rgba(0, 0, 0, 0.25);
}

.browser-dot:nth-child(1) { background: #ff5f56; }
.browser-dot:nth-child(2) { background: #ffbd2e; }
.browser-dot:nth-child(3) { background: #27c93f; }

.cluster-card-badge {
  position: absolute;
  bottom: 8px;
  left: 8px;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(6px);
  color: var(--c-white);
  padding: 3px 8px;
  border-radius: 6px;
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.04em;
  border: 1px solid rgba(255, 255, 255, 0.1);
  z-index: 5;
}

.theme-cream .cluster-card-badge {
  background: rgba(255, 255, 255, 0.9);
  color: #111111;
  border-color: rgba(0, 0, 0, 0.1);
}

.ph-screen-inner {
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
}

.theme-cream .ph-screen-inner {
  background: rgba(0, 0, 0, 0.03);
  border-color: rgba(0, 0, 0, 0.08);
}

.ph-icon {
  font-size: 1.4rem;
}

.ph-label {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: var(--c-text-muted);
}

.theme-cream .ph-label {
  color: #666666;
}

/* Card 1 Positions (Jaikisansolar) */
.c-screen-main {
  width: 52%;
  height: 70%;
  top: 15%;
  left: 24%;
  z-index: 4;
  background: #18181c;
}

.c-screen-left {
  width: 24%;
  height: 75%;
  top: 12.5%;
  left: 4%;
  z-index: 3;
  background: #111115;
}

.c-screen-top-right {
  width: 26%;
  height: 38%;
  top: 12.5%;
  right: 4%;
  z-index: 2;
  background: #15151a;
}

.c-screen-bottom-right {
  width: 26%;
  height: 38%;
  bottom: 12.5%;
  right: 4%;
  z-index: 2;
  background: #15151a;
}


/* Card 2 Positions (Citysceneglobal - Cream) */
.c-cream-main {
  width: 32%;
  height: 72%;
  top: 14%;
  left: 34%;
  z-index: 4;
  background: #ffffff;

}

.c-cream-art {
  width: 26%;
  height: 44%;
  top: 14%;
  left: 5%;
  z-index: 3;
  background: #e8e6e0;
}

.c-cream-canvas {
  width: 30%;
  height: 52%;
  top: 24%;
  right: 5%;
  z-index: 2;
  background: #ffffff;
}

.c-cream-photo {
  width: 24%;
  height: 36%;
  bottom: 14%;
  left: 7%;
  z-index: 2;
  background: #dfdddc;
}

/* Card 3 Positions (Bsunafrica - Staggered) */
.c-stagger-left-top {
  width: 22%;
  height: 42%;
  top: 10%;
  left: 5%;
  z-index: 3;
  background: #16161c;
}

.mini-arrow-circle {
  position: absolute;
  bottom: 8px;
  right: 8px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--c-white);
  color: #000;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.65rem;
  font-weight: bold;
}

.c-stagger-left-bottom {
  width: 22%;
  height: 40%;
  bottom: 10%;
  left: 5%;
  z-index: 2;
  background: #121217;
}

.c-stagger-center {
  width: 34%;
  height: 72%;
  top: 14%;
  left: 30%;
  z-index: 4;
  background: #1c1c22;
}

.c-stagger-right-tall {
  width: 28%;
  height: 80%;
  top: 10%;
  right: 5%;
  z-index: 3;
  background: #141419;
}

/* Card 4 Positions (A Kids Care - Pastel Theme) */
.project-multi-media-cluster.theme-pastel {
  background: linear-gradient(145deg, #1b1a24 0%, #100f17 100%);
  border: 1px solid rgba(168, 85, 247, 0.2);
}

.c-pastel-main {
  width: 50%;
  height: 72%;
  top: 14%;
  left: 25%;
  z-index: 4;
  background: #1e1b2e;
  border-color: rgba(168, 85, 247, 0.3);
}

.c-pastel-left {
  width: 26%;
  height: 48%;
  top: 24%;
  left: 4%;
  z-index: 3;
  background: #242036;
}

.c-pastel-right {
  width: 26%;
  height: 52%;
  top: 18%;
  right: 4%;
  z-index: 2;
  background: #171522;
}

/* View All Projects CTA Banner */
.projects-bottom-cta {
  display: flex;
  justify-content: center;
  margin-top: 4rem;
  padding-top: 2rem;
  border-top: 1px dashed rgba(255, 255, 255, 0.08);
}

.btn-view-all-projects {
  display: inline-flex;
  align-items: center;
  gap: 1rem;
  background: var(--c-white);
  color: #080808;
  padding: 14px 36px;
  border-radius: 50px;
  font-family: var(--font-sans);
  font-size: 0.95rem;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 10px 30px rgba(255, 255, 255, 0.15);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn-view-all-projects:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 16px 40px rgba(255, 255, 255, 0.28);
}

.btn-view-all-projects i {
  transition: transform 0.3s ease;
}

.btn-view-all-projects:hover i {
  transform: translateX(4px);
}

/* ----------------------------------------------------------------
   RESUME / CV SECTION & UPLOAD SYSTEM
   ---------------------------------------------------------------- */
.resume-wrapper {
  position: relative;
  padding: 5rem 3.5rem;
  border-top: 1px solid var(--c-card-border);
}

.resume-top-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 3rem;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.resume-giant-title {
  font-family: var(--font-mono);
  font-size: clamp(3rem, 7vw, 5.5rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--c-white);
  line-height: 1;
}

.resume-main-bento {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 2rem;
}

@media (max-width: 900px) {
  .resume-main-bento {
    grid-template-columns: 1fr;
  }
}

.resume-card-box {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  padding: 2.25rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.resume-box-title {
  font-family: var(--font-mono);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--c-white);
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.resume-summary-text {
  font-family: var(--font-sans);
  font-size: 0.88rem;
  color: var(--c-text-muted);
  line-height: 1.7;
}

.resume-summary-text strong {
  color: var(--c-white);
}

.resume-details-list {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  list-style: none;
}

.resume-detail-row {
  display: flex;
  align-items: flex-start;
  gap: 0.8rem;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.8);
}

.resume-detail-row i {
  color: #60a5fa;
  font-size: 0.95rem;
  margin-top: 2px;
}

/* Download & Upload Action Card */
.resume-download-card {
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0.01) 100%);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 20px;
  padding: 2.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  justify-content: center;
  gap: 1.5rem;
  position: relative;
  overflow: hidden;
}

.resume-pdf-icon-badge {
  width: 72px;
  height: 72px;
  border-radius: 20px;
  background: rgba(239, 68, 68, 0.12);
  border: 1px solid rgba(239, 68, 68, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ef4444;
  font-size: 2rem;
}

.resume-doc-info {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.resume-doc-name {
  font-family: var(--font-mono);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--c-white);
}

.resume-doc-meta {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--c-text-muted);
}

.resume-action-buttons {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  width: 100%;
  max-width: 280px;
}

.btn-download-resume {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  background: var(--c-white);
  color: #080808;
  padding: 12px 28px;
  border-radius: 50px;
  font-family: var(--font-sans);
  font-size: 0.9rem;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 8px 24px rgba(255, 255, 255, 0.2);
  transition: all 0.25s ease;
  cursor: pointer;
  border: none;
}

.btn-download-resume:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(255, 255, 255, 0.35);
}

.btn-upload-trigger {
  background: transparent;
  border: 1px dashed rgba(255, 255, 255, 0.2);
  color: var(--c-text-muted);
  padding: 9px 20px;
  border-radius: 50px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  cursor: pointer;
  transition: all 0.25s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.btn-upload-trigger:hover {
  border-color: var(--c-white);
  color: var(--c-white);
  background: rgba(255, 255, 255, 0.05);
}

/* Upload Modal */
.upload-modal-dropzone {
  border: 2px dashed rgba(255, 255, 255, 0.2);
  border-radius: 16px;
  padding: 2.5rem 1.5rem;
  text-align: center;
  background: rgba(255, 255, 255, 0.02);
  cursor: pointer;
  transition: all 0.25s ease;
  margin: 1.5rem 0;
}

.upload-modal-dropzone:hover,
.upload-modal-dropzone.dragover {
  border-color: #60a5fa;
  background: rgba(96, 165, 250, 0.06);
}

/* ----------------------------------------------------------------
   ARTICLES SECTION (2X2 GRID MATCHING SCREENSHOT 2 & 3)
   ---------------------------------------------------------------- */
.articles-wrapper {
  position: relative;
  padding: 5rem 3.5rem;
  border-top: 1px solid var(--c-card-border);
}

.articles-title-huge {
  font-family: var(--font-mono);
  font-size: clamp(3.5rem, 8vw, 6.5rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 3rem;
  color: var(--c-white);
}

.articles-main-flex {
  display: flex;
  gap: 3.5rem;
  align-items: start;
}

.articles-pagination-nums {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  font-family: var(--font-mono);
  font-size: 1.1rem;
  color: var(--c-text-muted);
}

.articles-pagination-nums span {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.2s ease;
}

.articles-pagination-nums span.active-num {
  border-color: var(--c-card-border);
  color: var(--c-white);
  background: rgba(255, 255, 255, 0.05);
}

.articles-2x2-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  flex: 1;
}

.art-card {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--c-card-border);
  border-radius: 20px;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 220px;
  opacity: 1;
  visibility: visible;
  transition: border-color 0.3s ease, transform 0.25s ease;
}

.art-card.art-card-hidden {
  display: none !important;
}

.art-card:hover {
  border-color: var(--c-card-border-hover);
}

.art-card-title {
  font-family: var(--font-mono);
  font-size: 1.15rem;
  font-weight: 700;
  line-height: 1.3;
  color: var(--c-white);
  margin-bottom: 0.75rem;
}

.art-card-desc {
  font-size: 0.85rem;
  color: var(--c-text-muted);
  line-height: 1.5;
  margin-bottom: 1.5rem;
}

.art-card-footer {
  display: flex;
  gap: 10px;
  align-items: center;
  margin-top: auto;
}

/* ----------------------------------------------------------------
   FOOTER / CONTACTS SECTION (EDITORIAL MATCHING SCREENSHOT 2 & 3)
   ---------------------------------------------------------------- */
.footer-wrapper {
  position: relative;
  padding: 5rem 3.5rem 3rem;
  border-top: 1px solid var(--c-card-border);
}

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

.footer-giant-name {
  font-family: var(--font-mono);
  font-size: clamp(3rem, 6.5vw, 5.5rem);
  font-weight: 700;
  line-height: 0.95;
  letter-spacing: -0.02em;
  color: var(--c-white);
  margin-bottom: 1rem;
}

.footer-subtitle-role {
  font-family: var(--font-sans);
  font-size: 0.9rem;
  color: var(--c-text-muted);
}

.footer-right-block {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 2rem;
}

.footer-nav-menu {
  display: flex;
  gap: 2rem;
  list-style: none;
}

.footer-nav-menu a {
  font-family: var(--font-sans);
  font-size: 0.85rem;
  color: var(--c-text-muted);
  text-decoration: none;
  transition: color 0.2s ease;
}

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

.footer-credits-box {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--c-card-border);
  border-radius: 16px;
  padding: 1.25rem 1.5rem;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--c-text-muted);
  line-height: 1.6;
  text-align: right;
  min-width: 260px;
}

.fc-label {
  font-weight: 700;
  color: var(--c-white);
  margin-bottom: 0.25rem;
}

.footer-direct-links {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  margin-top: 1.5rem;
}

.footer-direct-link {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  font-family: var(--font-mono);
  font-size: 0.84rem;
  color: var(--c-text-muted);
  text-decoration: none;
  transition: all 0.2s ease;
}

.footer-direct-link i {
  color: var(--c-white);
  font-size: 0.95rem;
  width: 18px;
  text-align: center;
}

.footer-direct-link:hover {
  color: var(--c-white);
  transform: translateX(4px);
}

.footer-form-wrapper {
  max-width: 600px;
  margin-bottom: 3.5rem;
  background: rgba(255, 255, 255, 0.015);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  padding: 2rem;
}

.footer-form-heading {
  font-family: var(--font-mono);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--c-white);
  margin-bottom: 1.25rem;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.cf-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.85rem;
}

@media (max-width: 600px) {
  .cf-row {
    grid-template-columns: 1fr;
  }
}

.cf-input {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 12px 18px;
  color: var(--c-white);
  font-family: var(--font-mono);
  font-size: 0.85rem;
  outline: none;
  transition: border-color 0.25s ease, background 0.25s ease;
  width: 100%;
}

.cf-input:focus {
  border-color: rgba(255, 255, 255, 0.35);
  background: rgba(255, 255, 255, 0.05);
}

.cf-textarea {
  resize: vertical;
  min-height: 100px;
}

.cf-submit-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  align-self: flex-start;
  margin-top: 0.5rem;
  background: var(--c-white);
  color: #080808;
  border: none;
  cursor: pointer;
  padding: 10px 24px;
  border-radius: 50px;
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 0.85rem;
  transition: all 0.25s ease;
}

.cf-submit-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255, 255, 255, 0.2);
}

.form-feedback {
  margin-top: 1rem;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  display: none;
}

.form-feedback.success {
  display: block;
  color: #4ade80;
}

.form-feedback.error {
  display: block;
  color: #f87171;
}

.footer-social {
  margin-bottom: 0;
  border-top: 1px solid var(--c-card-border);
  padding-top: 2rem;
}

.footer-bottom-bar {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--c-text-muted);
}


/* ----------------------------------------------------------------
   MOBILE NAV HAMBURGER & OVERLAY
   ---------------------------------------------------------------- */
.hamburger-btn {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 36px;
  height: 36px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 10px;
  padding: 8px;
  cursor: pointer;
  transition: background 0.25s ease;
  z-index: 30;
  align-items: center;
  justify-content: center;
}

.hamburger-btn:hover {
  background: rgba(255,255,255,0.12);
}

.hamburger-btn span {
  display: block;
  width: 18px;
  height: 1.5px;
  background: var(--c-white);
  border-radius: 2px;
  transition: all 0.3s ease;
  transform-origin: center;
}

.hamburger-btn.open span:nth-child(1) {
  transform: translateY(6.5px) rotate(45deg);
}

.hamburger-btn.open span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}

.hamburger-btn.open span:nth-child(3) {
  transform: translateY(-6.5px) rotate(-45deg);
}

.mobile-nav-overlay {
  position: fixed;
  inset: 0;
  background: rgba(8, 8, 8, 0.97);
  backdrop-filter: blur(12px);
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease;
}

.mobile-nav-overlay.open {
  opacity: 1;
  pointer-events: all;
}

.mobile-nav-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3rem;
}

.mobile-nav-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}

.mnav-link {
  font-family: var(--font-mono);
  font-size: clamp(2rem, 8vw, 3.5rem);
  font-weight: 700;
  color: var(--c-white);
  text-decoration: none;
  line-height: 1.2;
  transition: opacity 0.2s ease;
  opacity: 0.85;
}

.mnav-link:hover {
  opacity: 1;
}

.mobile-nav-social {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: center;
}

/* ----------------------------------------------------------------
   RESPONSIVE BREAKPOINTS — 1440px+, 1280px, 1024px, 768px, 480px, 375px
   ---------------------------------------------------------------- */

/* — 1280px — */
@media (max-width: 1280px) {
  .page-container {
    margin: 0.75rem;
  }

  .hero-cards-grid {
    grid-template-columns: 200px 1fr 200px;
  }
}

/* — 1024px (Tablet landscape) — */
@media (max-width: 1024px) {
  body {
    padding: 0.5rem;
  }

  .page-container {
    border-radius: 18px;
    margin: 0;
  }

  .header-nav,
  .hero-wrapper,
  .about-wrapper,
  .work-wrapper,
  .projects-wrapper,
  .articles-wrapper,
  .footer-wrapper {
    padding-left: 2rem;
    padding-right: 2rem;
  }

  .about-top-right-paragraph {
    position: static;
    max-width: 100%;
    margin-bottom: 2rem;
  }

  .about-main-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .about-portrait-frame {
    max-width: 400px;
    margin: 0 auto;
  }

  .project-bento-card,
  .project-bento-card.alt-bento {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .project-multi-media-cluster {
    height: 320px;
  }

  .hero-cards-grid {
    grid-template-columns: 180px 1fr 180px;
    gap: 1rem;
  }
}

/* — 768px (Tablet portrait) — */
@media (max-width: 768px) {
  body {
    padding: 0;
  }

  .page-container {
    border-radius: 0;
    border-left: none;
    border-right: none;
    overflow: clip;
  }

  .header-nav {
    padding: 1.25rem 1.5rem;
  }

  .nav-links-center {
    display: none;
  }

  .hamburger-btn {
    display: flex;
  }

  .nav-top-right-circle {
    display: none;
  }

  /* ── HERO MOBILE ── */
  .hero-wrapper {
    padding: 5rem 1.5rem 2rem;
  }

  /* Full-stack (line 1) — spans full width, big bold mono */
  .hero-title-line-1 {
    font-size: clamp(2.6rem, 11.5vw, 4rem);
    line-height: 1.0;
    margin-bottom: 0;
    display: block;
  }

  /* Line 2: stack Engineer below Full-stack, then paragraph + pill below */
  .hero-title-line-2 {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1.75rem;
  }

  /* "Engineer" word — same size, sits directly under Full-stack */
  .hero-title-word-right {
    font-size: clamp(2.6rem, 11.5vw, 4rem);
    line-height: 1.0;
    justify-self: unset;
    align-self: unset;
    margin-left: 0;
    margin-bottom: 0;
    order: 1;
  }

  /* Paragraph below the two-line title */
  .hero-sub-paragraph {
    max-width: 100%;
    font-size: 0.88rem;
    line-height: 1.55;
    order: 2;
  }

  /* Projects pill — below paragraph */
  .hero-projects-pill {
    order: 3;
  }

  /* Social pill row — compact, wrapping */
  .social-row {
    margin-bottom: 1.5rem;
    gap: 0.45rem;
    flex-wrap: wrap;
  }

  /* ── ARTICLE STRIP (CAROUSEL) ── */
  /* Remove padding-based arrow gutter — arrows float absolutely */
  .hero-strip-wrapper {
    position: relative;
    width: 100%;
    box-sizing: border-box;
    margin-top: 0;
  }

  /* Left/right arrows: small circles floating at card mid-height */
  .strip-nav-btn {
    position: absolute;
    top: 38%;
    transform: translateY(-50%);
    width: 32px;
    height: 32px;
    min-width: 32px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--c-white);
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 25;
    transition: background 0.2s ease, border-color 0.2s ease;
    flex-shrink: 0;
  }

  .strip-nav-btn:hover {
    background: rgba(255, 255, 255, 0.18);
    border-color: rgba(255, 255, 255, 0.4);
  }

  .strip-prev { left: -2px; }
  .strip-next { right: -2px; }

  /* Cards grid: horizontal snap scroll, no extra padding needed */
  .hero-cards-grid {
    display: flex;
    gap: 0;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    width: 100%;
    padding: 0;
    margin: 0;
    scrollbar-width: none;
  }

  .hero-cards-grid::-webkit-scrollbar { display: none; }

  /* Each card: full-width vertical layout (image top, text bottom) */
  .h-card,
  .h-card-dim,
  .h-card-featured {
    display: flex !important;
    flex-direction: column !important;
    grid-template-columns: unset !important;
    align-items: flex-start !important;
    min-width: 100% !important;
    max-width: 100% !important;
    width: 100% !important;
    flex: 0 0 100% !important;
    box-sizing: border-box !important;
    padding: 1rem 1rem 1.25rem !important;
    border-radius: 20px !important;
    scroll-snap-align: start !important;
    opacity: 1 !important;
    filter: none !important;
    background: rgba(255, 255, 255, 0.03) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    gap: 0 !important;
  }

  /* Image slot: full width, taller on mobile */
  .h-card-media-slot {
    width: 100% !important;
    height: 180px !important;
    min-height: 180px !important;
    max-height: 180px !important;
    border-radius: 14px !important;
    overflow: hidden !important;
  }

  /* Info block: below image */
  .h-card-info {
    margin-top: 1rem !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 0.5rem !important;
    min-width: 0 !important;
  }

  .h-card-code-title {
    font-size: 1.05rem !important;
    line-height: 1.3 !important;
    font-family: var(--font-mono) !important;
    font-weight: 700 !important;
    color: var(--c-white) !important;
  }

  .h-card-body-text {
    font-size: 0.82rem !important;
    line-height: 1.5 !important;
    color: var(--c-text-muted) !important;
    overflow: visible !important;
    display: block !important;
    -webkit-line-clamp: unset !important;
  }

  .h-card-action-row {
    margin-top: 0.25rem;
  }

  .read-more-pill {
    padding: 7px 18px !important;
    font-size: 0.78rem !important;
  }

  /* ── ABOUT ── */
  .about-wrapper {
    padding: 3rem 1.5rem;
  }

  .about-intro-badge {
    padding: 1.5rem 1.25rem;
    margin-bottom: 2rem;
    border-radius: 18px;
  }

  .about-badge-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
  }

  .about-intro-text {
    font-size: 1.02rem;
    line-height: 1.6;
    margin-bottom: 1.25rem;
  }

  .about-stats-mini-row {
    gap: 1.5rem;
    padding-top: 1rem;
  }

  .mini-stat-num {
    font-size: 1.5rem;
  }

  .mini-stat-divider {
    display: none;
  }

  .about-top-right-paragraph {
    position: static;
    max-width: 100%;
    margin-bottom: 2rem;
    font-size: 1rem;
    line-height: 1.55;
  }

  .about-main-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    margin-top: 1.5rem;
  }

  .about-portrait-frame {
    width: 100%;
    max-width: 100%;
    margin: 0;
  }

  .portrait-image-holder {
    width: 100%;
    height: auto;
    aspect-ratio: auto;
    border-radius: 24px;
    background: transparent;
    border: none;
    box-shadow: none;
    display: block;
  }

  .portrait-zoom-trigger {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 24px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: #0d0d12;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.6);
  }

  .portrait-zoom-trigger img,
  .portrait-image-holder img {
    width: 100% !important;
    height: auto !important;
    max-height: none !important;
    display: block !important;
    object-fit: contain !important;
    object-position: unset !important;
    border-radius: 24px !important;
  }

  .portrait-lightbox-frame {
    width: auto !important;
    max-width: 92vw !important;
    max-height: 88vh !important;
    aspect-ratio: auto !important;
    border-radius: 20px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    background: #0d0d12 !important;
  }

  .portrait-lightbox-frame img {
    width: auto !important;
    height: auto !important;
    max-width: 92vw !important;
    max-height: 88vh !important;
    display: block !important;
    object-fit: contain !important;
    object-position: unset !important;
    border-radius: 20px !important;
  }

  /* ── WORK ── */
  .work-wrapper {
    padding: 2.5rem 1.5rem;
  }

  /* On mobile: keep a 2-column layout date|company, then role spans full width */
  .work-item-row {
    display: grid;
    grid-template-columns: auto 1fr;
    grid-template-rows: auto auto;
    gap: 0.3rem 1rem;
    padding: 1.25rem 1.25rem;
  }

  .work-date {
    grid-column: 1;
    grid-row: 1;
    font-size: 0.82rem;
  }

  .work-company {
    grid-column: 2;
    grid-row: 1;
    font-size: 0.95rem;
  }

  .work-role {
    grid-column: 1 / -1;
    grid-row: 2;
    font-size: 0.78rem;
  }

  /* ── PROJECTS ── */
  .projects-wrapper {
    padding: 2.5rem 1.5rem;
  }

  .project-bento-card,
  .project-bento-card.alt-bento {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    padding: 1.5rem;
    margin-bottom: 2.5rem;
  }

  .project-multi-media-cluster {
    height: 280px;
    order: -1;
  }

  .project-bento-card.alt-bento .project-multi-media-cluster {
    order: -1;
  }

  /* ── ARTICLES ── */
  .articles-wrapper {
    padding: 2.5rem 1.5rem;
  }

  .articles-main-flex {
    flex-direction: column;
    gap: 1.5rem;
  }

  .articles-pagination-nums {
    flex-direction: row;
    gap: 0.75rem;
  }

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

  /* ── FOOTER ── */
  .footer-wrapper {
    padding: 2.5rem 1.5rem 2rem;
  }

  .footer-top-layout {
    flex-direction: column;
    gap: 1.5rem;
    margin-bottom: 2rem;
  }

  .footer-right-block {
    align-items: flex-start;
    width: 100%;
  }

  .footer-nav-menu {
    flex-wrap: wrap;
    gap: 1rem;
  }

  .footer-credits-box {
    text-align: left;
    min-width: auto;
    width: 100%;
  }

  .footer-form-wrapper {
    max-width: 100%;
    margin-bottom: 2.5rem;
  }

  .footer-social {
    flex-wrap: wrap;
    gap: 0.6rem;
  }
}

/* — 480px (Large phones) — */
@media (max-width: 480px) {
  .hero-title-line-1,
  .hero-title-word-right {
    font-size: clamp(2.2rem, 11vw, 3rem);
  }

  .work-giant-title,
  .articles-title-huge,
  .footer-giant-name {
    font-size: 3.2rem;
  }

  .work-item-row {
    grid-template-columns: 1fr;
  }

  .work-date {
    grid-column: 1;
    grid-row: 1;
  }

  .work-company {
    grid-column: 1;
    grid-row: 2;
  }

  .work-role {
    grid-column: 1;
    grid-row: 3;
  }

  .articles-2x2-grid {
    grid-template-columns: 1fr;
  }

  .project-multi-media-cluster {
    height: 240px;
  }

  .c-screen-main { width: 55%; height: 60%; top: 20%; left: 22%; }
  .c-screen-left { width: 28%; height: 68%; top: 16%; left: 3%; }
  .c-screen-top-right { width: 28%; height: 32%; top: 16%; right: 3%; }
  .c-screen-bottom-right { width: 28%; height: 32%; bottom: 16%; right: 3%; }

  .c-stagger-center { width: 36%; height: 68%; }
  .c-stagger-left-top { width: 24%; height: 38%; }
  .c-stagger-left-bottom { width: 24%; height: 36%; }
  .c-stagger-right-tall { width: 28%; height: 72%; }

  .footer-giant-name {
    font-size: 2.8rem;
  }

  .ab-card-styles {
    flex-wrap: wrap;
  }

  .ab-card {
    padding: 1.25rem;
  }
}

/* — 375px (Small phones) — */
@media (max-width: 375px) {
  .hero-title-line-1,
  .hero-title-word-right {
    font-size: 2rem;
  }

  .project-bento-title {
    font-size: 1.4rem;
  }

  .h-card-featured {
    padding: 1rem;
  }

  .social-btn-pill {
    padding: 6px 12px;
    font-size: 0.72rem;
  }

  .work-giant-title,
  .articles-title-huge {
    font-size: 2.6rem;
  }

  .footer-giant-name {
    font-size: 2.4rem;
  }
}

/* ----------------------------------------------------------------
   ARTICLE READER MODAL
   ---------------------------------------------------------------- */
.article-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.82);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: 1200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease;
}

.article-modal-backdrop.open {
  opacity: 1;
  pointer-events: auto;
}

.article-modal-card {
  background: #0d0d12;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 24px;
  width: 100%;
  max-width: 720px;
  max-height: 85vh;
  overflow-y: auto;
  padding: 3rem;
  position: relative;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.85);
  transform: translateY(20px) scale(0.97);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.article-modal-backdrop.open .article-modal-card {
  transform: translateY(0) scale(1);
}

.article-modal-close {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--c-white);
  font-size: 1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.article-modal-close:hover {
  background: rgba(255, 255, 255, 0.15);
  transform: rotate(90deg);
}

.article-modal-tag {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: #60a5fa;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 0.75rem;
}

.article-modal-title {
  font-family: var(--font-mono);
  font-size: clamp(1.5rem, 3.5vw, 2.2rem);
  font-weight: 700;
  line-height: 1.2;
  color: var(--c-white);
  margin-bottom: 1rem;
}

.article-modal-meta {
  display: flex;
  gap: 1.5rem;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--c-text-muted);
  padding-bottom: 1.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  margin-bottom: 2rem;
  flex-wrap: wrap;
}

.article-modal-meta span {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.article-modal-body {
  font-family: var(--font-sans);
  font-size: 0.95rem;
  line-height: 1.75;
  color: rgba(255, 255, 255, 0.85);
}

.article-modal-body p {
  margin-bottom: 1.25rem;
}

.article-modal-body h4 {
  font-family: var(--font-mono);
  color: var(--c-white);
  font-size: 1.15rem;
  margin: 1.75rem 0 0.75rem;
}

.article-code-block {
  background: #060608;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 1.25rem;
  margin: 1.5rem 0;
  overflow-x: auto;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: #93c5fd;
  line-height: 1.6;
}

@media (max-width: 600px) {
  .article-modal-card {
    padding: 2rem 1.5rem;
    border-radius: 18px;
  }
}


/* ================================================================
   WORKSTATION STAGE VIEW PANELS & RESPONSIVE FIXES
   ================================================================ */
.stage-view-panel {
  display: none !important;
  animation: fadeInPanel 0.3s ease;
}

.stage-view-panel.active {
  display: block !important;
}

@keyframes fadeInPanel {
  0% { opacity: 0; transform: translateY(4px) scale(0.99); }
  100% { opacity: 1; transform: translateY(0) scale(1); }
}

/* Ensure navbar links in header are styled correctly across all pages */
.header-nav .nav-brand-name {
  font-family: var(--font-sans);
  font-size: 0.9rem;
  font-weight: 600;
  line-height: 1.3;
  color: var(--c-white);
  text-decoration: none;
}

.header-nav .nav-links-center {
  display: flex;
  gap: 2rem;
  list-style: none;
}

.header-nav .nav-links-center a {
  font-family: var(--font-sans);
  font-size: 0.85rem;
  color: var(--c-text-muted);
  text-decoration: none;
  transition: color 0.2s ease;
}

.header-nav .nav-links-center a:hover,
.header-nav .nav-links-center a.active {
  color: var(--c-white);
}

/* Fix overlapping issues on mobile & desktop */
@media (max-width: 1024px) {
  .projects-hero {
    padding: 6rem 2rem 2rem;
  }
  .projects-controls-bar {
    padding: 0 2rem 2rem;
  }
  .section-title-divider {
    padding: 0 2rem 1.5rem;
  }
  .cyber-workstation-wrapper,
  .cyber-workstation-reversed {
    grid-template-columns: 1fr !important;
    padding: 0 2rem 3rem !important;
    gap: 1.5rem !important;
  }
  .cyber-sidebar-directory {
    position: relative !important;
    top: 0 !important;
    max-height: 360px !important;
  }
}

@media (max-width: 768px) {
  .header-nav {
    padding: 1.5rem 1.25rem;
  }
  .header-nav .nav-links-center {
    display: none;
  }
  .hamburger-btn {
    display: flex;
  }
  .projects-hero {
    padding: 5rem 1.25rem 1.5rem;
  }
  .projects-controls-bar {
    padding: 0 1.25rem 1.5rem;
    flex-direction: column;
    align-items: stretch;
  }
  .search-capsule {
    max-width: 100%;
  }
  .section-title-divider {
    padding: 0 1.25rem 1.25rem;
  }
  .cyber-workstation-wrapper,
  .cyber-workstation-reversed {
    padding: 0 1.25rem 2.5rem !important;
  }
  .stage-top-bar {
    padding: 1rem 1.25rem;
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }
  .stage-controls-right {
    width: 100%;
    justify-content: space-between;
    gap: 0.5rem;
  }
  .vmode-stack-text {
    display: none;
  }
  .vmode-btn,
  .portal-vmode-btn {
    padding: 5px 10px;
    font-size: 0.72rem;
    gap: 0.25rem;
  }
  .stage-viewport-canvas {
    padding: 1.25rem;
  }
  .stage-bottom-bar {
    padding: 1.25rem;
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }
  .stage-metrics-block {
    align-self: flex-start;
  }
  .archi-features-grid {
    grid-template-columns: 1fr;
  }
}

/* ================================================================
   FIXES: HERO OVERLAP & FOOTER STYLING
   ================================================================ */

/* Ensure Header Nav has clean spacing and doesn't get overlapped by Hero Title */
.header-nav {
  position: sticky;
  top: 0;
  z-index: 50;
  padding: 2rem 3.5rem 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(12, 12, 16, 0.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.hero-wrapper {
  position: relative;
  padding: 2.5rem 3.5rem 4rem !important;
  margin-top: 0.5rem;
}

.hero-title-line-1 {
  margin-top: 0.5rem;
}

/* Footer layout fixes */
.footer-wrapper {
  position: relative;
  padding: 4rem 3.5rem 2.5rem;
  border-top: 1px solid var(--c-card-border);
  min-height: auto !important;
}

.footer-top-layout {
  display: flex;
  justify-content: space-between;
  gap: 3rem;
  margin-bottom: 3rem;
  flex-wrap: wrap;
}

.footer-giant-name {
  font-family: var(--font-mono);
  font-size: clamp(3rem, 6vw, 5.5rem);
  font-weight: 700;
  line-height: 0.95;
  letter-spacing: -0.03em;
  color: var(--c-white);
  margin-bottom: 1rem;
}

.footer-subtitle-role {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--c-text-muted);
  margin-bottom: 1.5rem;
}

.footer-contact-items {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer-contact-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--c-text-muted);
}

.footer-contact-row i {
  color: var(--c-white);
  width: 16px;
}

.footer-contact-row a {
  color: var(--c-white);
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer-contact-row a:hover {
  color: #60a5fa;
}

.footer-right-col {
  display: flex;
  gap: 4rem;
}

.footer-nav-group {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.fnav-label {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--c-white);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.5rem;
}

.footer-nav-group a {
  font-family: var(--font-sans);
  font-size: 0.88rem;
  color: var(--c-text-muted);
  text-decoration: none;
  transition: color 0.2s ease;
}

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

.footer-bottom-bar {
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--c-text-muted);
  flex-wrap: wrap;
  gap: 1rem;
}

/* ================================================================
   NAVBAR LINKS & RESUME OVERLAP PERMANENT FIX
   ================================================================ */
.header-nav {
  position: sticky;
  top: 0;
  z-index: 50;
  padding: 2rem 3.5rem 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  max-width: 100%;
  background: rgba(12, 12, 16, 0.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

#cyberWorkstation,
#cyberPortalWorkstation {
  scroll-margin-top: 90px;
}

.nav-brand-name {
  font-family: var(--font-sans);
  font-size: 0.9rem;
  font-weight: 600;
  line-height: 1.3;
  color: var(--c-white);
  flex-shrink: 0;
}

.nav-links-center {
  display: flex;
  align-items: center;
  gap: clamp(1rem, 2.2vw, 2.25rem) !important;
  list-style: none;
  margin-right: 0 !important;
  flex-wrap: nowrap;
}

.nav-links-center li {
  white-space: nowrap;
}

.nav-links-center a {
  font-family: var(--font-sans);
  font-size: 0.85rem;
  color: var(--c-text-muted);
  text-decoration: none;
  transition: color 0.2s ease;
  white-space: nowrap;
}

.nav-links-center a:hover,
.nav-links-center a.active {
  color: var(--c-white);
}

.nav-top-right-circle {
  pointer-events: none !important;
  z-index: 5 !important;
}

/* Resume section layout scaling */
.resume-wrapper {
  position: relative;
  padding: 4.5rem 3.5rem;
  border-top: 1px solid var(--c-card-border);
  overflow: hidden;
}

.resume-main-bento {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 2.25rem;
  align-items: start;
  margin-top: 2rem;
}

@media (max-width: 960px) {
  .page-container {
    overflow: clip;
  }
  .header-nav {
    position: sticky;
    top: 0;
    z-index: 50;
    padding: 1rem 1.5rem 1rem;
    background: rgba(8, 8, 8, 0.9);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
  }
  #cyberWorkstation,
  #cyberPortalWorkstation {
    scroll-margin-top: 80px;
  }
  .nav-links-center {
    display: none !important;
  }
  .hamburger-btn {
    display: flex !important;
  }
  .resume-wrapper {
    padding: 3rem 1.5rem;
  }
  .resume-main-bento {
    grid-template-columns: 1fr !important;
    gap: 1.5rem;
  }
}

/* ================================================================
   PORTAL CASE STUDY — REUSABLE COMPONENTS
   ================================================================ */

/* User Flow Diagram */
.portal-arch-container {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.arch-flow-section,
.arch-stack-section {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.arch-flow-title,
.arch-stack-title {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--c-text-muted);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.arch-flow-title i,
.arch-stack-title i {
  color: #818cf8;
  font-size: 0.9rem;
}

.flow-nodes-container {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 0;
  overflow-x: auto;
  padding-bottom: 0.5rem;
}

.flow-node {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  min-width: 120px;
  max-width: 160px;
  flex: 1 0 0;
  position: relative;
}

.flow-node-num {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  font-weight: 700;
  color: #818cf8;
  background: rgba(129,140,248,0.1);
  border: 1px solid rgba(129,140,248,0.25);
  padding: 2px 8px;
  border-radius: 4px;
  margin-bottom: 0.5rem;
}

.flow-node-card {
  width: 100%;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 12px;
  padding: 1rem 0.75rem;
  transition: all 0.25s ease;
  cursor: default;
}

.flow-node:hover .flow-node-card {
  background: rgba(129,140,248,0.06);
  border-color: rgba(129,140,248,0.25);
  transform: translateY(-3px);
}

.flow-node-title {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--c-white);
  margin-bottom: 0.35rem;
  line-height: 1.3;
}

.flow-node-sub {
  font-family: var(--font-sans);
  font-size: 0.72rem;
  color: var(--c-text-muted);
  line-height: 1.4;
}

.flow-connector {
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(129,140,248,0.5);
  font-size: 0.85rem;
  padding: 0.35rem 0.15rem;
  flex-shrink: 0;
}

.flow-branch {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
  margin-top: 0.25rem;
}

.flow-branch-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.flow-branch-line {
  width: 1px;
  height: 18px;
  background: rgba(129,140,248,0.3);
}

.flow-branch-label {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: #818cf8;
  background: rgba(129,140,248,0.08);
  border: 1px solid rgba(129,140,248,0.2);
  padding: 2px 8px;
  border-radius: 4px;
  white-space: nowrap;
}

/* ============================================================
   SYSTEM ARCHITECTURE — TOP-DOWN BRANCHING DIAGRAM
   (replaces the horizontal user-flow visualization)
   ============================================================ */
.sa-pipeline {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  --sa-line: rgba(129, 140, 248, 0.45);
}

.sa-tier {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: stretch;
  gap: 16px 22px;
  width: 100%;
  position: relative;
}

.sa-link {
  position: relative;
  width: 2px;
  height: 34px;
  margin: 0 auto;
  background: var(--sa-line);
}
.sa-link::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: -1px;
  transform: translateX(-50%);
  width: 0;
  height: 0;
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-top: 7px solid var(--sa-line);
}

/* Branch tiers: a horizontal bus with a vertical stub into each node */
.sa-tier--branch::before {
  content: '';
  position: absolute;
  top: -18px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--sa-line);
}
.sa-tier--branch .sa-node::before {
  content: '';
  position: absolute;
  top: -18px;
  left: 50%;
  width: 2px;
  height: 18px;
  background: var(--sa-line);
  transform: translateX(-50%);
}

.sa-node {
  position: relative;
  min-width: 150px;
  max-width: 215px;
  flex: 1 1 150px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 14px 14px 16px;
  text-align: center;
  transition: all 0.25s ease;
}
.sa-node:hover {
  background: rgba(129, 140, 248, 0.06);
  border-color: rgba(129, 140, 248, 0.3);
  transform: translateY(-3px);
}
.sa-node-cap {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: #818cf8;
  margin-bottom: 7px;
  text-transform: uppercase;
}
.sa-node-main {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--c-white);
  line-height: 1.3;
}
.sa-node--root { border-color: rgba(129, 140, 248, 0.4); }
.sa-node--auth { border-left: 3px solid #fbbf24; }
.sa-node--fe { border-left: 3px solid #60a5fa; }
.sa-node--api { border-left: 3px solid #34d399; }
.sa-node--module { border-left: 3px solid #818cf8; }
.sa-node--biz { border-left: 3px solid #f472b6; }
.sa-node--db { border-left: 3px solid #fbbf24; }
.sa-node--ext { border-left: 3px solid #a78bfa; }

.sa-perm {
  list-style: none;
  margin: 11px 0 0;
  padding: 10px 0 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  flex-direction: column;
  gap: 4px;
  text-align: left;
}
.sa-perm li {
  position: relative;
  padding-left: 13px;
  font-family: var(--font-sans);
  font-size: 0.68rem;
  color: var(--c-text-muted);
  line-height: 1.35;
}
.sa-perm li::before {
  content: '\251C';
  position: absolute;
  left: 0;
  color: rgba(129, 140, 248, 0.55);
}
.sa-perm li:last-child::before {
  content: '\2514';
}

/* Compact "System Working" flow kept inside the Architecture tab */
.sa-working {
  margin-top: 1.5rem;
  padding-top: 1.25rem;
  border-top: 1px dashed rgba(255, 255, 255, 0.1);
  width: 100%;
}
.sa-working-title {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--c-text-muted);
  margin-bottom: 0.75rem;
}
.sa-working-flow {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem 0.5rem;
}
.sa-working-step {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: rgba(255, 255, 255, 0.85);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 6px;
  padding: 4px 10px;
  white-space: nowrap;
}
.sa-working-arrow {
  color: rgba(129, 140, 248, 0.6);
  font-size: 0.8rem;
}

/* Architecture Stack Strip */
.arch-stack-strip {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.arch-stack-item {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--c-white);
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.1);
  padding: 8px 16px;
  border-radius: 8px;
  white-space: nowrap;
  transition: all 0.2s ease;
}

.arch-stack-item:hover {
  background: rgba(129,140,248,0.08);
  border-color: rgba(129,140,248,0.3);
}

.arch-stack-arrow {
  color: rgba(129,140,248,0.4);
  font-size: 0.75rem;
  flex-shrink: 0;
}

/* Enhanced Features & Impact (STAR) */
.star-grid-enhanced {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.star-card-enhanced {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 14px;
  padding: 1.25rem;
  position: relative;
  overflow: hidden;
  transition: all 0.25s ease;
}

.star-card-enhanced::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
}

.star-card-enhanced:hover {
  background: rgba(255,255,255,0.05);
  border-color: rgba(255,255,255,0.15);
  transform: translateY(-2px);
}

.star-card-enhanced.star-situation::before { background: #818cf8; }
.star-card-enhanced.star-target::before { background: #fbbf24; }
.star-card-enhanced.star-action::before { background: #34d399; }
.star-card-enhanced.star-result::before { background: #f87171; }

.star-card-label {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 0.6rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.star-situation .star-card-label { color: #818cf8; }
.star-target .star-card-label { color: #fbbf24; }
.star-action .star-card-label { color: #34d399; }
.star-result .star-card-label { color: #f87171; }

.star-card-text {
  font-family: var(--font-sans);
  font-size: 0.88rem;
  color: rgba(255,255,255,0.85);
  line-height: 1.6;
}

/* Categorized Tech Stack */
.tech-cat-container {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.tech-cat-section {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.tech-cat-title {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--c-text-muted);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.tech-cat-title i {
  color: #818cf8;
  font-size: 0.8rem;
}

.tech-cat-grid {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
}

.tech-cat-badge {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: rgba(255,255,255,0.9);
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.1);
  padding: 7px 14px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  transition: all 0.2s ease;
}

.tech-cat-badge:hover {
  background: rgba(129,140,248,0.08);
  border-color: rgba(129,140,248,0.3);
}

.tech-cat-badge i {
  color: #818cf8;
  font-size: 0.75rem;
}

/* ================================================================
   RESPONSIVE — PORTAL CASE STUDY COMPONENTS
   ================================================================ */
@media (max-width: 1100px) {
  .flow-nodes-container {
    flex-wrap: wrap;
    gap: 0.5rem;
  }
  .flow-connector {
    display: none;
  }
  .flow-node {
    min-width: auto;
    flex: 0 0 calc(50% - 0.25rem);
    max-width: none;
  }
}

@media (max-width: 768px) {
  .star-grid-enhanced {
    grid-template-columns: 1fr;
  }
  .flow-nodes-container {
    flex-direction: column;
  }
  .flow-connector {
    display: flex;
    padding: 0.15rem 0;
    transform: rotate(90deg);
  }
  .flow-node {
    flex: 0 0 100%;
    max-width: 100%;
  }
  .arch-stack-strip {
    flex-direction: column;
    align-items: stretch;
  }
  .arch-stack-arrow {
    text-align: center;
    transform: rotate(90deg);
  }
  .sa-tier {
    flex-direction: column;
    align-items: stretch;
  }
  .sa-node {
    max-width: none;
    flex: 1 1 auto;
  }
  .sa-working-flow {
    flex-direction: column;
    align-items: stretch;
  }
  .sa-working-arrow {
    align-self: center;
    transform: rotate(90deg);
  }
}

@media (max-width: 480px) {
  .flow-node-card {
    padding: 0.85rem 0.6rem;
  }
  .flow-node-title {
    font-size: 0.75rem;
  }
  .flow-node-sub {
    font-size: 0.68rem;
  }
  .star-card-enhanced {
    padding: 1rem;
  }
  .tech-cat-badge {
    font-size: 0.72rem;
    padding: 6px 10px;
  }
}

/* ================================================================
   MULTI-DEVICE RESPONSIVE MOCKUPS & HOMEPAGE LAYOUT PAINT STUDIO
   ================================================================ */

/* Dynamic Paint Color Themes & Variables */
.project-bento-card {
  --card-accent: #6366f1;
  --card-glow: rgba(99, 102, 241, 0.18);
  --card-border: rgba(99, 102, 241, 0.25);
  --card-bg: rgba(18, 18, 24, 0.85);
  position: relative;
  transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
}

.project-bento-card.theme-amber {
  --card-accent: #f59e0b;
  --card-glow: rgba(245, 158, 11, 0.2);
  --card-border: rgba(245, 158, 11, 0.3);
}
.project-bento-card.theme-indigo {
  --card-accent: #6366f1;
  --card-glow: rgba(99, 102, 241, 0.2);
  --card-border: rgba(99, 102, 241, 0.3);
}
.project-bento-card.theme-emerald {
  --card-accent: #10b981;
  --card-glow: rgba(16, 185, 129, 0.2);
  --card-border: rgba(16, 185, 129, 0.3);
}
.project-bento-card.theme-violet {
  --card-accent: #8b5cf6;
  --card-glow: rgba(139, 92, 246, 0.2);
  --card-border: rgba(139, 92, 246, 0.3);
}
.project-bento-card.theme-crimson {
  --card-accent: #ef4444;
  --card-glow: rgba(239, 68, 68, 0.2);
  --card-border: rgba(239, 68, 68, 0.3);
}
.project-bento-card.theme-cyan {
  --card-accent: #06b6d4;
  --card-glow: rgba(6, 182, 212, 0.2);
  --card-border: rgba(6, 182, 212, 0.3);
}
.project-bento-card.theme-gold {
  --card-accent: #d97706;
  --card-glow: rgba(217, 119, 6, 0.2);
  --card-border: rgba(217, 119, 6, 0.3);
}
.project-bento-card.theme-cream {
  --card-accent: #3b82f6;
  --card-glow: rgba(59, 130, 246, 0.12);
  --card-border: rgba(0, 0, 0, 0.08);
}

/* Card Glow Effect */
.project-bento-card::before {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  background: radial-gradient(circle at 50% 0%, var(--card-glow), transparent 70%);
  pointer-events: none;
  z-index: 0;
  opacity: 0.7;
}

/* Layout Orientations */
.project-bento-card.layout-reversed {
  flex-direction: row-reverse;
}
@media (max-width: 900px) {
  .project-bento-card.layout-reversed {
    flex-direction: column;
  }
}

/* Layout: Multi-Device Responsive Frame Container */
.device-cluster-stage {
  position: relative;
  width: 100%;
  min-height: 410px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  perspective: 1200px;
  padding: 12px;
}

/* 1. Desktop Browser Frame */
.mockup-desktop-frame {
  position: relative;
  width: 76%;
  height: 305px;
  background: #0b0b10;
  border-radius: 14px;
  border: 2px solid #222230;
  box-shadow: 0 25px 65px rgba(0, 0, 0, 0.8), 0 0 0 1px rgba(255, 255, 255, 0.08), 0 0 35px var(--card-glow);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  z-index: 2;
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}
.mockup-desktop-frame:hover {
  transform: translateY(-5px) scale(1.015);
  box-shadow: 0 32px 75px rgba(0, 0, 0, 0.85), 0 0 35px var(--card-glow);
}

.mockup-desktop-bar {
  height: 28px;
  background: rgba(18, 18, 24, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  padding: 0 10px;
  gap: 8px;
  flex-shrink: 0;
}
.mockup-window-controls {
  display: flex;
  gap: 5px;
}
.mockup-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  display: inline-block;
}
.mockup-dot.dot-red { background: #ff5f56; }
.mockup-dot.dot-yellow { background: #ffbd2e; }
.mockup-dot.dot-green { background: #27c93f; }

.mockup-url-bar {
  flex: 1;
  max-width: 280px;
  height: 18px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 4px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  padding: 0 8px;
  font-family: var(--font-mono);
  font-size: 0.62rem;
  color: var(--c-text-muted);
  gap: 5px;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.mockup-url-bar i {
  font-size: 0.55rem;
  color: var(--card-accent);
}

.mockup-desktop-viewport {
  flex: 1;
  position: relative;
  overflow: hidden;
  background: #09090d;
  display: flex;
  align-items: flex-start;
}

/* 2. Mobile Smartphone Frame (Overlapping Bottom Right - Authentic 9:19.5 Aspect Ratio) */
.mockup-mobile-frame {
  position: absolute;
  bottom: -8px;
  right: -8px;
  width: 155px;
  height: 315px;
  background: #000000;
  border-radius: 28px;
  border: 4px solid #232330;
  box-shadow: -15px 25px 60px rgba(0, 0, 0, 0.95), 0 0 25px var(--card-glow);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  z-index: 4;
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.35s ease;
}
.mockup-mobile-frame:hover {
  transform: translateY(-10px) scale(1.04);
  box-shadow: -18px 35px 70px rgba(0, 0, 0, 0.98), 0 0 35px var(--card-glow);
}

.mockup-mobile-notch {
  height: 18px;
  background: #000;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  z-index: 5;
  padding-top: 3px;
}
.mockup-notch-bar {
  width: 44px;
  height: 9px;
  border-radius: 12px;
  background: #0a0a0f;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.mockup-mobile-viewport {
  flex: 1;
  position: relative;
  overflow: hidden;
  background: #050508;
  display: flex;
  align-items: flex-start;
}

/* 3. Tablet Preview / Floating Metric Badge (Top Left Floating) */
.mockup-tablet-badge {
  position: absolute;
  top: -10px;
  left: -10px;
  background: rgba(18, 18, 26, 0.92);
  backdrop-filter: blur(12px);
  border: 1px solid var(--card-border);
  border-radius: 10px;
  padding: 8px 12px;
  display: flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
  z-index: 5;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--c-white);
  transition: transform 0.3s ease;
}
.mockup-tablet-badge:hover {
  transform: scale(1.05);
}
.mockup-badge-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--card-accent);
  box-shadow: 0 0 8px var(--card-accent);
  animation: pulse-badge 2s infinite ease-in-out;
}
@keyframes pulse-badge {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.3); opacity: 0.6; }
}

/* Universal Image Fit & Crisp Sizing */
.mockup-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top left;
  display: block;
  transition: transform 0.5s ease;
  image-rendering: -webkit-optimize-contrast;
}
.mockup-mobile-viewport .mockup-img {
  width: 100%;
  height: 100%;
  object-position: top center;
  object-fit: cover;
}
.mockup-img.fit-contain {
  object-fit: contain;
  background: #08080c;
}
.mockup-img.pos-center {
  object-position: center center;
}
.mockup-img.pos-bottom {
  object-position: bottom center;
}

.mockup-desktop-viewport:hover .mockup-img,
.mockup-mobile-viewport:hover .mockup-img {
  transform: scale(1.03);
}

@media (max-width: 900px) {
  .device-cluster-stage {
    min-height: 320px;
    height: auto;
    padding: 8px;
  }
  .mockup-desktop-frame {
    width: 82%;
    height: 240px;
  }
  .mockup-mobile-frame {
    width: 125px;
    height: 255px;
    border-radius: 22px;
    bottom: -10px;
    right: -5px;
  }
}

@media (max-width: 540px) {
  .device-cluster-stage {
    min-height: 270px;
  }
  .mockup-desktop-frame {
    width: 86%;
    height: 200px;
  }
  .mockup-mobile-frame {
    width: 105px;
    height: 215px;
    border-radius: 18px;
    border-width: 3px;
  }
}

/* Layout Variation: Cinema Split */
.layout-cinema-split {
  display: flex;
  flex-direction: column !important;
  gap: 1.5rem;
}
.layout-cinema-split .device-cluster-stage {
  min-height: 420px;
}
.layout-cinema-split .mockup-desktop-frame {
  width: 90%;
  height: 90%;
}

/* Layout Variation: Minimal Frame */
.layout-minimal .mockup-mobile-frame {
  display: none;
}
.layout-minimal .mockup-desktop-frame {
  width: 94%;
  height: 92%;
}

/* Quick Layout Paint Picker Bar on Cards */
.card-layout-paint-tag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 2px 8px;
  border-radius: 4px;
  font-family: var(--font-mono);
  font-size: 0.62rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--card-border);
  color: var(--card-accent);
  margin-top: 4px;
}
