/* ==========================================================================
   MUHAMMAD HAMMAD — LUXURY TECH / EDITORIAL PORTFOLIO
   Design Language: Obsidian Monochrome, Warm Gold & High-End Transitions
   Zero AI Clichés • Zero Purple/Indigo • Silky Smooth Scroll Animations
   ========================================================================== */

:root {
  /* Dark Theme Palette (Default) */
  --bg-page: #08090c;
  --bg-surface: #0f1117;
  --bg-surface-elevated: #151821;
  --bg-card: rgba(16, 19, 27, 0.82);
  --bg-card-hover: rgba(22, 26, 37, 0.95);
  --bg-input: #0b0d13;

  --border-subtle: transparent;
  --border-strong: transparent;
  --border-highlight: rgba(255, 255, 255, 0.35);

  --text-primary: #ffffff;
  --text-secondary: #9da4b2;
  --text-muted: #616876;
  --text-inverse: #08090c;

  /* Sophisticated Warm Gold / Platinum Tech Accents (No Purple!) */
  --accent-gold: #f59e0b;
  --accent-gold-hover: #d97706;
  --accent-gold-subtle: rgba(245, 158, 11, 0.12);
  --accent-cyan: #38bdf8;
  --accent-emerald: #10b981;
  --accent-rose: #f43f5e;

  --shadow-subtle: 0 4px 20px rgba(0, 0, 0, 0.35);
  --shadow-card: 0 16px 40px -10px rgba(0, 0, 0, 0.6);
  --shadow-portrait: 0 24px 60px -12px rgba(0, 0, 0, 0.8);
  --shadow-glow: 0 0 35px rgba(255, 255, 255, 0.08);

  --font-heading: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-body: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-pill: 9999px;

  --ease-smooth: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --transition: 0.35s var(--ease-smooth);
}

[data-theme="light"] {
  --bg-page: #f8fafc;
  --bg-surface: #ffffff;
  --bg-surface-elevated: #f1f5f9;
  --bg-card: rgba(255, 255, 255, 0.95);
  --bg-card-hover: #ffffff;
  --bg-input: #ffffff;

  --border-subtle: transparent;
  --border-strong: transparent;
  --border-highlight: rgba(0, 0, 0, 0.3);

  --text-primary: #090a0f;
  --text-secondary: #475569;
  --text-muted: #64748b;
  --text-inverse: #ffffff;

  --accent-gold: #d97706;
  --accent-gold-hover: #b45309;
  --accent-gold-subtle: rgba(217, 119, 6, 0.12);

  --shadow-subtle: 0 4px 16px rgba(15, 23, 42, 0.05);
  --shadow-card: 0 14px 34px -8px rgba(15, 23, 42, 0.09);
  --shadow-portrait: 0 20px 48px -10px rgba(15, 23, 42, 0.12);
}

/* --------------------------------------------------------------------------
   Reset & Document Base
   -------------------------------------------------------------------------- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  scroll-padding-top: 86px;
  -webkit-font-smoothing: antialiased;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-page);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  position: relative;
  transition: background-color var(--transition), color var(--transition);
}

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition), transform var(--transition);
}

ul { list-style: none; }
img { max-width: 100%; display: block; }
button, input, textarea { font-family: inherit; font-size: inherit; }

.container {
  width: 100%;
  max-width: 1220px;
  margin: 0 auto;
  padding: 0 24px;
}

/* --------------------------------------------------------------------------
   Dynamic Mouse Spotlight Effect
   -------------------------------------------------------------------------- */
.cursor-spotlight {
  position: fixed;
  top: 0;
  left: 0;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.04) 0%, transparent 70%);
  pointer-events: none;
  transform: translate(-50%, -50%);
  z-index: 0;
  opacity: 0;
  transition: opacity 0.5s ease;
}

[data-theme="light"] .cursor-spotlight {
  background: radial-gradient(circle, rgba(0, 0, 0, 0.03) 0%, transparent 70%);
}

/* --------------------------------------------------------------------------
   Scroll Reveal System (Silky Smooth Transitions)
   -------------------------------------------------------------------------- */
.reveal-on-scroll {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.8s var(--ease-smooth), transform 0.8s var(--ease-smooth);
  transition-delay: var(--reveal-delay, 0s);
  will-change: opacity, transform;
}

.reveal-on-scroll.reveal-visible {
  opacity: 1;
  transform: translateY(0);
}

/* --------------------------------------------------------------------------
   Page Load Hero Entrance Animations
   -------------------------------------------------------------------------- */
@keyframes heroFadeUp {
  0% {
    opacity: 0;
    transform: translateY(28px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes heroPortraitPop {
  0% {
    opacity: 0;
    transform: scale(0.94) translateY(20px);
  }
  100% {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

.hero-anim {
  animation: heroFadeUp 0.9s var(--ease-smooth) forwards;
  opacity: 0;
}

.hero-anim-1 { animation-delay: 0.1s; }
.hero-anim-2 { animation-delay: 0.25s; }
.hero-anim-3 { animation-delay: 0.4s; }
.hero-anim-portrait {
  animation: heroPortraitPop 1.1s var(--ease-smooth) forwards;
  animation-delay: 0.35s;
}
.hero-anim-4 { animation-delay: 0.5s; }

/* --------------------------------------------------------------------------
   Header / Navigation
   -------------------------------------------------------------------------- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 72px;
  z-index: 500;
  background: rgba(8, 9, 12, 0.75);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: none;
  transition: background-color var(--transition), border-color var(--transition), box-shadow var(--transition);
}

[data-theme="light"] .site-header {
  background: rgba(255, 255, 255, 0.88);
  border-bottom: none;
}

.site-header.scrolled {
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
  background: rgba(8, 9, 12, 0.92);
}

[data-theme="light"] .site-header.scrolled {
  background: rgba(255, 255, 255, 0.96);
  border-bottom: none;
  box-shadow: 0 4px 20px rgba(15, 23, 42, 0.06);
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.brand-link {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.25rem;
  letter-spacing: -0.02em;
  color: var(--text-primary);
}

[data-theme="light"] .brand-link {
  color: #090a0f;
}

.brand-monogram {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  background: #ffffff;
  color: #08090c;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.92rem;
  font-weight: 900;
  transition: transform var(--transition);
}

[data-theme="light"] .brand-monogram {
  background: #090a0f;
  color: #ffffff;
}

.brand-link:hover .brand-monogram {
  transform: rotate(-6deg) scale(1.05);
}

.brand-name {
  color: var(--text-primary);
}

[data-theme="light"] .brand-name {
  color: #090a0f;
}

.brand-name .dot {
  color: var(--accent-gold);
}

.desktop-nav .nav-menu {
  display: flex;
  align-items: center;
  gap: 30px;
}

.nav-item {
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--text-secondary);
  position: relative;
  padding: 6px 0;
  transition: color 0.2s ease;
}

.nav-item::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0%;
  height: 2px;
  background: #ffffff;
  transition: width 0.3s var(--ease-smooth);
}

[data-theme="light"] .nav-item::after {
  background: #090a0f;
}

[data-theme="light"] .nav-item {
  color: #475569;
}

[data-theme="light"] .nav-item:hover,
[data-theme="light"] .nav-item.active {
  color: #090a0f;
}

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

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

.header-right {
  display: flex;
  align-items: center;
  gap: 14px;
}

.theme-btn {
  width: 38px;
  height: 38px;
  border-radius: var(--radius-sm);
  border: none;
  background: var(--bg-surface);
  color: var(--text-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition);
}

.theme-btn:hover {
  transform: translateY(-2px);
}

.theme-btn .icon-light { display: none; }
.theme-btn .icon-dark { display: block; }
[data-theme="light"] .theme-btn .icon-light { display: block; color: #f59e0b; }
[data-theme="light"] .theme-btn .icon-dark { display: none; }

[data-theme="light"] .theme-btn {
  background: #ffffff;
  color: #090a0f;
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.04);
}

[data-theme="light"] .theme-btn:hover {
  background: #f1f5f9;
}

.btn-outline-nav {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 18px;
  font-size: 0.88rem;
  font-weight: 600;
  border-radius: var(--radius-sm);
  border: none;
  color: var(--text-primary);
  transition: all var(--transition);
}

.btn-outline-nav:hover {
  border-color: #ffffff;
  color: #ffffff;
  transform: translateY(-2px);
}

[data-theme="light"] .btn-outline-nav {
  color: #090a0f;
}

[data-theme="light"] .btn-outline-nav:hover {
  border-color: #090a0f;
  background: rgba(15, 23, 42, 0.05);
  color: #090a0f;
}

.mobile-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  width: 38px;
  height: 38px;
  padding: 8px;
  border-radius: var(--radius-sm);
  background: var(--bg-surface);
  border: none;
  cursor: pointer;
  transition: all var(--transition);
}

[data-theme="light"] .mobile-toggle {
  background: #ffffff;
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.04);
}

[data-theme="light"] .mobile-toggle:hover {
  background: #f1f5f9;
}

.mobile-toggle span {
  width: 100%;
  height: 2px;
  background: var(--text-primary);
  transition: all 0.3s ease;
  transform-origin: center;
}

[data-theme="light"] .mobile-toggle span {
  background: #090a0f;
}

.mobile-toggle.active span:nth-child(1) {
  transform: translateY(4px) rotate(45deg);
}

.mobile-toggle.active span:nth-child(2) {
  transform: translateY(-4px) rotate(-45deg);
}

/* Mobile Drawer */
.mobile-drawer {
  position: fixed;
  inset: 0;
  z-index: 1000;
  visibility: hidden;
  opacity: 0;
  transition: all var(--transition);
}

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

.drawer-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(8px);
}

.drawer-panel {
  position: absolute;
  top: 0;
  right: 0;
  width: 80%;
  max-width: 320px;
  height: 100%;
  background: var(--bg-surface);
  border-left: none;
  padding: 24px;
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.35s var(--ease-smooth);
}

.mobile-drawer.active .drawer-panel {
  transform: translateX(0);
}

.drawer-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 20px;
  border-bottom: none;
}

.drawer-close {
  background: none;
  border: none;
  font-size: 1.3rem;
  color: var(--text-secondary);
  cursor: pointer;
}

.drawer-nav {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 28px;
}

.drawer-link {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 0;
  transition: color 0.2s ease;
}

.drawer-link:hover { color: #ffffff; }

[data-theme="light"] .drawer-panel {
  background: #ffffff;
  border-left: none;
  box-shadow: -8px 0 32px rgba(15, 23, 42, 0.12);
}

[data-theme="light"] .drawer-top .brand-name {
  color: #090a0f;
}

[data-theme="light"] .drawer-close {
  color: #64748b;
}

[data-theme="light"] .drawer-close:hover {
  color: #090a0f;
}

[data-theme="light"] .drawer-link {
  color: #334155;
}

[data-theme="light"] .drawer-link:hover {
  color: var(--accent-gold);
}

[data-theme="light"] .drawer-socials a {
  color: #475569;
}

[data-theme="light"] .drawer-socials a:hover {
  border-color: #090a0f;
  color: #090a0f;
  background: #f1f5f9;
}

.drawer-bottom {
  margin-top: auto;
  padding-top: 24px;
}

.drawer-socials {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-top: 16px;
}

.drawer-socials a {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  transition: all 0.2s ease;
}

.drawer-socials a:hover {
  border-color: #ffffff;
  color: #ffffff;
}

/* --------------------------------------------------------------------------
   Buttons & Badges (Clean Luxury Tech)
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 26px;
  font-weight: 600;
  font-size: 0.94rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all var(--transition);
  border: 1px solid transparent;
}

.btn-primary {
  background: #ffffff;
  color: #08090c;
  border-color: #ffffff;
}

.btn-primary:hover {
  background: #f1f5f9;
  transform: translateY(-3px);
  box-shadow: 0 10px 24px rgba(255, 255, 255, 0.18);
  color: #000000;
}

.btn-primary:active {
  transform: translateY(-1px) scale(0.98);
}

[data-theme="light"] .btn-primary {
  background: #090a0f;
  color: #ffffff;
  border-color: #090a0f;
}

[data-theme="light"] .btn-primary:hover {
  background: #1e293b;
  border-color: #1e293b;
  color: #ffffff;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.18);
}

.btn-secondary {
  background: var(--bg-surface-elevated);
  color: var(--text-primary);
  border-color: var(--border-subtle);
}

.btn-secondary:hover {
  background: var(--bg-card-hover);
  transform: translateY(-3px);
}

.btn-outline {
  background: transparent;
  color: var(--text-primary);
}

.btn-outline:hover {
  border-color: #ffffff;
  color: #ffffff;
  transform: translateY(-3px);
}

[data-theme="light"] .btn-outline:hover {
  border-color: #090a0f;
  color: #090a0f;
  background: rgba(15, 23, 42, 0.04);
}

.btn-sm {
  padding: 8px 18px;
  font-size: 0.85rem;
}

.btn-block { width: 100%; }

.btn-light {
  background: #ffffff;
  color: #0a0c10;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.2);
}

.btn-light:hover {
  background: #f1f5f9;
  transform: scale(1.04);
}

/* Glass Panels with Hover Glow */
.glass-panel {
  background: var(--bg-card);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: none;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-subtle);
  transition: transform var(--transition), border-color var(--transition), box-shadow var(--transition);
}

.glass-panel:hover {
  box-shadow: var(--shadow-card);
}

/* --------------------------------------------------------------------------
   HERO SECTION: CENTERPIECE SHOWCASE
   -------------------------------------------------------------------------- */
.hero-section {
  position: relative;
  z-index: 1;
  padding-top: 110px;
  padding-bottom: 74px;
  border-bottom: none;
}

.hero-top-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
  padding: 0 4px;
}

.hero-kicker {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1.2px;
  font-weight: 600;
}

.hero-location {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 6px;
}

.hero-location i {
  color: var(--accent-gold);
}

.hero-headline-wrap {
  text-align: center;
  margin-bottom: 44px;
}

.hero-name {
  font-family: var(--font-heading);
  font-size: clamp(3rem, 6.8vw, 5.8rem);
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: -0.04em;
  color: var(--text-primary);
  margin-bottom: 14px;
}

.hero-title-role {
  font-size: clamp(1rem, 2vw, 1.28rem);
  color: var(--text-secondary);
  font-weight: 500;
  letter-spacing: -0.01em;
}

.hero-title-role .sep {
  margin: 0 10px;
  color: var(--accent-gold);
}

/* 3-Column Centerpiece Layout */
.hero-centerpiece {
  display: grid;
  grid-template-columns: 1fr 1.35fr 1fr;
  align-items: center;
  gap: 30px;
  margin-top: 10px;
}

.hero-side {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* Left Card */
.hero-bio-card {
  padding: 30px 26px;
}

.card-label {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.74rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--accent-gold);
  margin-bottom: 12px;
  font-weight: 600;
}

.hero-bio-text {
  font-size: 0.98rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 24px;
}

.hero-bio-text strong {
  color: var(--text-primary);
  font-weight: 600;
}

.hero-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.hero-social-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.social-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 9px 14px;
  border-radius: var(--radius-sm);
  background: var(--bg-surface);
  border: none;
  color: var(--text-secondary);
  font-size: 0.84rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition);
  white-space: nowrap;
}

.social-chip:hover {
  border-color: #ffffff;
  color: #ffffff;
  transform: translateY(-2px);
}

[data-theme="light"] .social-chip {
  background: #ffffff;
  color: #334155;
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.04);
}

[data-theme="light"] .social-chip:hover {
  border-color: #090a0f;
  color: #090a0f;
  background: #f8fafc;
}

/* CENTERPIECE PORTRAIT STAGE: TALL, LARGE, PROMINENT */
.hero-portrait-stage {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
}

.portrait-halo {
  position: absolute;
  top: 10%;
  left: 50%;
  transform: translateX(-50%);
  width: 90%;
  height: 80%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.08) 0%, rgba(245, 158, 11, 0.06) 50%, transparent 75%);
  filter: blur(45px);
  z-index: 1;
  animation: ambientBreathing 8s ease-in-out infinite alternate;
}

@keyframes ambientBreathing {
  0% { transform: translateX(-50%) scale(0.95); opacity: 0.6; }
  100% { transform: translateX(-50%) scale(1.08); opacity: 1; }
}

.portrait-backplate {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 480px;
  height: 580px;
  border-radius: 240px 240px var(--radius-lg) var(--radius-lg);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0.01) 50%, rgba(8, 9, 12, 0.98) 100%);
  border: none;
  box-shadow: var(--shadow-portrait);
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  transition: border-color var(--transition);
}

.portrait-backplate:hover {
}

[data-theme="light"] .portrait-backplate {
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.03) 0%, rgba(248, 250, 252, 0.5) 60%, rgba(248, 250, 252, 0.98) 100%);
}

.hero-portrait-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 10%;
  filter: drop-shadow(0 15px 30px rgba(0, 0, 0, 0.5));
  transition: transform 0.5s var(--ease-smooth);
}

.portrait-backplate:hover .hero-portrait-image {
  transform: scale(1.03);
}

.portrait-fade-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 110px;
  background: linear-gradient(to top, var(--bg-page) 0%, transparent 100%);
  pointer-events: none;
  z-index: 3;
}

.portrait-caption {
  margin-top: 16px;
  text-align: center;
  z-index: 4;
}

.portrait-caption-title {
  display: block;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.98rem;
  color: var(--text-primary);
}

.portrait-caption-sub {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--text-muted);
}

/* Right Card */
.hero-stats-card {
  padding: 30px 26px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.stat-cell {
  display: flex;
  flex-direction: column;
  padding-bottom: 14px;
  border-bottom: none;
  transition: transform var(--transition);
}

.stat-cell:last-child {
  padding-bottom: 0;
  border-bottom: none;
}

.stat-cell:hover {
  transform: translateX(4px);
}

.stat-value {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.15rem;
  color: var(--text-primary);
  margin-bottom: 2px;
}

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

/* --------------------------------------------------------------------------
   Sections General
   -------------------------------------------------------------------------- */
.section {
  padding: 100px 0;
  position: relative;
  z-index: 1;
}

.section-intro {
  margin-bottom: 56px;
  max-width: 680px;
}

.section-badge {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--accent-gold);
  margin-bottom: 12px;
}

.section-heading {
  font-family: var(--font-heading);
  font-size: clamp(2.2rem, 3.8vw, 3rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--text-primary);
  line-height: 1.2;
  margin-bottom: 12px;
}

.section-sub {
  font-size: 1.05rem;
  color: var(--text-secondary);
}

/* --------------------------------------------------------------------------
   SELECTED PROJECTS FEED
   -------------------------------------------------------------------------- */
.projects-feed {
  display: flex;
  flex-direction: column;
  gap: 64px;
}

.project-showcase {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  align-items: center;
  gap: 52px;
  padding: 0;
  background: transparent;
  border: none;
  border-radius: 0;
  box-shadow: none;
  transition: transform 0.4s var(--ease-smooth);
}

.project-showcase:hover {
  transform: translateY(-4px);
  box-shadow: none;
}

.project-showcase.showcase-reverse {
  grid-template-columns: 0.8fr 1.2fr;
}

.project-showcase.showcase-reverse .showcase-visual {
  order: 2;
}

.project-showcase.showcase-reverse .showcase-details {
  order: 1;
}

/* Realistic Browser Mockup */
.browser-window {
  border-radius: var(--radius-md);
  overflow: hidden;
  border: none;
  background: #10121a;
  box-shadow: 0 20px 48px -10px rgba(0, 0, 0, 0.75);
  transition: transform 0.4s var(--ease-smooth), box-shadow 0.4s var(--ease-smooth);
}

.project-showcase:hover .browser-window {
  transform: translateY(-4px);
  box-shadow: 0 26px 56px -10px rgba(0, 0, 0, 0.9), 0 0 28px rgba(245, 158, 11, 0.12);
}

[data-theme="light"] .browser-window {
  background: #e2e8f0;
}

.browser-header {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 14px;
  background: rgba(0, 0, 0, 0.35);
  border-bottom: none;
}

.window-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
}

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

.browser-url {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-muted);
  margin-left: 10px;
}

.browser-body {
  position: relative;
  overflow: hidden;
  height: 320px;
  background: #0d0f15;
}

.project-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
  transition: transform 0.6s var(--ease-smooth);
}

.project-showcase:hover .project-img {
  transform: scale(1.04);
}

.showcase-hover-action {
  position: absolute;
  inset: 0;
  background: rgba(8, 9, 12, 0.65);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.browser-body:hover .showcase-hover-action {
  opacity: 1;
}

/* Showcase Details */
.project-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.project-category {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--accent-gold);
  text-transform: uppercase;
}

.category-probono {
  color: var(--accent-rose);
}

.project-year {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-muted);
}

.project-headline {
  font-family: var(--font-heading);
  font-size: 1.55rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text-primary);
  margin-bottom: 14px;
  line-height: 1.3;
}

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

.project-stack {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 24px;
}

.stack-tag {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  background: var(--bg-surface);
  border: none;
  color: var(--text-primary);
  transition: border-color var(--transition);
}

.stack-tag:hover {
  border-color: #ffffff;
}

[data-theme="light"] .stack-tag:hover {
  border-color: #090a0f;
}

.project-links {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* Experience Callout Banner (Extended Corner-to-Corner) */
.work-callout {
  margin-top: 64px;
  width: 100%;
  padding: 34px 0;
  border-radius: 0;
  border: none;
  background: var(--bg-surface);
  box-shadow: none;
  transition: background-color var(--transition);
}

[data-theme="light"] .work-callout {
  background: #f1f5f9;
}

.work-callout-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.callout-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--accent-gold);
  font-weight: 600;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.callout-content h4 {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 6px;
}

.callout-content h4 a {
  color: var(--text-primary);
  text-decoration: underline;
}

.callout-content p {
  font-size: 0.92rem;
  color: var(--text-secondary);
  max-width: 700px;
}

/* --------------------------------------------------------------------------
   ABOUT SECTION
   -------------------------------------------------------------------------- */
.about-editorial-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 64px;
}

.about-title {
  font-family: var(--font-heading);
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--text-primary);
  line-height: 1.25;
  margin-bottom: 32px;
}

.about-portrait-card {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: none;
  background: var(--bg-surface);
  max-width: 360px;
  transition: transform var(--transition);
}

.about-portrait-card:hover {
  transform: translateY(-4px);
}

.about-portrait-wrap {
  width: 100%;
  height: 380px;
  overflow: hidden;
}

.about-portrait-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.about-portrait-card:hover .about-portrait-img {
  transform: scale(1.04);
}

.about-caption {
  padding: 16px 20px;
  display: flex;
  flex-direction: column;
}

.about-caption strong {
  font-size: 1rem;
  color: var(--text-primary);
}

.about-caption span {
  font-size: 0.82rem;
  color: var(--text-muted);
}

.prose p {
  font-size: 1.02rem;
  color: var(--text-secondary);
  line-height: 1.75;
  margin-bottom: 20px;
}

.prose strong {
  color: var(--text-primary);
}

.about-principles-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-top: 36px;
}

.principle-box {
  padding: 22px;
  border-radius: var(--radius-md);
  background: var(--bg-card);
  border: none;
  transition: all var(--transition);
}

.principle-box:hover {
  transform: translateY(-3px);
}

.principle-num {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--accent-gold);
  display: block;
  margin-bottom: 8px;
}

.principle-box h4 {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 6px;
}

.principle-box p {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

/* --------------------------------------------------------------------------
   TECH STACK (Honest 3-Column Layout)
   -------------------------------------------------------------------------- */
.stack-columns {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 48px;
}

.stack-column-card {
  background: transparent;
  border: none;
  border-radius: 0;
  padding: 0;
  box-shadow: none;
  transition: transform var(--transition);
}

.stack-column-card:hover {
  transform: translateY(-4px);
}

.column-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 24px;
  padding-bottom: 20px;
  border-bottom: none;
}

.column-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  background: var(--bg-surface-elevated);
  color: var(--text-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  border: none;
}

[data-theme="light"] .column-icon {
  background: #f1f5f9;
  color: #090a0f;
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.04);
}

.column-header h3 {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-primary);
}

.column-sub {
  font-size: 0.78rem;
  color: var(--text-muted);
}

.tech-list {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.tech-list li {
  display: flex;
  flex-direction: column;
  gap: 3px;
  transition: transform var(--transition);
}

.tech-list li:hover {
  transform: translateX(4px);
}

.tech-item-name {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1rem;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 10px;
}

.tech-item-name i { font-size: 1.15rem; }
.icon-laravel { color: #ff2d20; }
.icon-php { color: #777bb3; }
.icon-mysql { color: #00758f; }
.icon-api { color: var(--accent-emerald); }
.icon-react { color: #61dafb; }
.icon-vue { color: #42b883; }
.icon-js { color: #f7df1e; }
.icon-css { color: #38bdf8; }
.icon-git { color: #f05032; }
.icon-postman { color: #ff6c37; }
.icon-deploy { color: var(--accent-cyan); }
.icon-security { color: var(--accent-gold); }

[data-theme="light"] .icon-js { color: #d97706; }
[data-theme="light"] .icon-react { color: #0284c7; }
[data-theme="light"] .icon-css { color: #0284c7; }

.tech-item-role {
  font-size: 0.8rem;
  color: var(--text-muted);
  padding-left: 26px;
}

/* --------------------------------------------------------------------------
   EXPERIENCE SECTION
   -------------------------------------------------------------------------- */
.experience-list {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.experience-list {
  display: flex;
  flex-direction: column;
  gap: 52px;
}

.experience-item {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 40px;
  padding: 0;
  background: transparent;
  border: none;
  border-radius: 0;
  box-shadow: none;
  transition: transform var(--transition);
}

.experience-item:hover {
  transform: translateX(4px);
}

.exp-left {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.exp-period {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-primary);
}

.exp-location {
  font-size: 0.82rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 6px;
}

.exp-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 16px;
}

.exp-title {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1.2;
}

.exp-company {
  font-size: 1rem;
  font-weight: 600;
  color: var(--accent-gold);
}

.exp-type-badge {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  background: var(--bg-surface-elevated);
  border: none;
  color: var(--text-primary);
}

.exp-type-badge.badge-edu {
  color: var(--accent-emerald);
}

.exp-points {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 20px;
}

.exp-points li {
  font-size: 0.94rem;
  color: var(--text-secondary);
  line-height: 1.6;
  position: relative;
  padding-left: 18px;
}

.exp-points li::before {
  content: '—';
  position: absolute;
  left: 0;
  color: var(--accent-gold);
}

.exp-desc {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 20px;
}

.exp-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.exp-tags span {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  background: var(--bg-surface);
  border: none;
  color: var(--text-secondary);
}

/* --------------------------------------------------------------------------
   CERTIFICATIONS SECTION
   -------------------------------------------------------------------------- */
.certs-editorial-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.cert-box {
  background: transparent;
  border: none;
  border-radius: 0;
  overflow: visible;
  padding: 0;
  box-shadow: none;
  display: flex;
  flex-direction: column;
  transition: transform var(--transition);
}

.cert-box:hover {
  transform: translateY(-4px);
}

.cert-thumb-wrap {
  width: 100%;
  height: 165px;
  background: #0d0f15;
  overflow: hidden;
  border: none;
  border-radius: var(--radius-md);
  box-shadow: 0 16px 36px -10px rgba(0, 0, 0, 0.65);
  transition: transform var(--transition), box-shadow var(--transition);
}

.cert-box:hover .cert-thumb-wrap {
  transform: translateY(-4px);
  box-shadow: 0 22px 48px -10px rgba(0, 0, 0, 0.85), 0 0 24px rgba(245, 158, 11, 0.12);
}

.cert-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
  border-radius: inherit;
  transition: transform 0.5s ease;
}

.cert-box:hover .cert-thumb {
  transform: scale(1.04);
}

.cert-details {
  padding: 20px 0 0 0;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.cert-org {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--accent-gold);
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.cert-name {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 8px;
  line-height: 1.3;
}

.cert-summary {
  font-size: 0.86rem;
  color: var(--text-secondary);
  line-height: 1.5;
  margin-bottom: 14px;
  flex-grow: 1;
}

.cert-id-row {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-bottom: 18px;
}

.cert-id-row code {
  color: var(--text-primary);
  background: var(--bg-surface-elevated);
  padding: 3px 8px;
  border-radius: 4px;
  border: none;
  font-weight: 600;
}

[data-theme="light"] .cert-id-row code {
  color: #090a0f;
  background: #f1f5f9;
}

.cert-btns {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: auto;
}

/* --------------------------------------------------------------------------
   CONTACT SECTION
   -------------------------------------------------------------------------- */
.contact-editorial-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  padding: 0;
  border-radius: 0;
  background: transparent;
  border: none;
  box-shadow: none;
}

.contact-headline {
  font-family: var(--font-heading);
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--text-primary);
  line-height: 1.25;
  margin: 12px 0 16px;
}

.contact-sub {
  font-size: 1rem;
  color: var(--text-secondary);
  margin-bottom: 32px;
}

.contact-channel-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.channel-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 10px 0;
  border-radius: 0;
  background: transparent;
  border: none;
  box-shadow: none;
  transition: transform var(--transition);
}

.channel-item:hover {
  transform: translateX(4px);
}

.channel-icon {
  width: 42px;
  height: 42px;
  border-radius: var(--radius-sm);
  background: var(--bg-surface-elevated);
  color: var(--text-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  flex-shrink: 0;
  border: none;
}

[data-theme="light"] .channel-icon {
  background: #f1f5f9;
  color: #090a0f;
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.04);
}

.channel-label {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-muted);
  text-transform: uppercase;
}

.channel-val {
  font-family: var(--font-heading);
  font-size: 0.96rem;
  font-weight: 700;
  color: var(--text-primary);
}

.channel-copy-btn, .channel-ext-btn {
  margin-left: auto;
  width: 34px;
  height: 34px;
  border-radius: var(--radius-sm);
  background: transparent;
  border: none;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition);
}

.channel-copy-btn:hover, .channel-ext-btn:hover {
  border-color: #ffffff;
  color: #ffffff;
  transform: scale(1.08);
}

[data-theme="light"] .channel-copy-btn:hover,
[data-theme="light"] .channel-ext-btn:hover {
  border-color: #090a0f;
  color: #090a0f;
}

.contact-right-col {
  padding-left: 20px;
  border-left: none;
}

.form-heading {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 6px;
}

.form-desc {
  font-size: 0.88rem;
  color: var(--text-secondary);
  margin-bottom: 24px;
}

.direct-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-field label {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-secondary);
}

.form-field input, .form-field textarea {
  width: 100%;
  padding: 12px 16px;
  background: var(--bg-input);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-size: 0.92rem;
  transition: border-color var(--transition), box-shadow var(--transition);
}

.form-field input:focus, .form-field textarea:focus {
  outline: none;
  border-color: #ffffff;
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.1);
}

[data-theme="light"] .form-field input:focus,
[data-theme="light"] .form-field textarea:focus {
  border-color: #090a0f;
  box-shadow: 0 0 0 3px rgba(15, 23, 42, 0.08);
}

/* --------------------------------------------------------------------------
   FOOTER
   -------------------------------------------------------------------------- */
.site-footer {
  border-top: none;
  padding: 48px 0;
  margin-top: 60px;
}

.footer-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 24px;
}

.footer-name {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.15rem;
  color: var(--text-primary);
}

.footer-sub {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.footer-links {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 8px;
}

.footer-links a {
  font-size: 0.88rem;
  color: var(--text-secondary);
}

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

[data-theme="light"] .footer-links a:hover {
  color: #090a0f;
}

.copyright {
  font-size: 0.82rem;
  color: var(--text-muted);
}

/* --------------------------------------------------------------------------
   GALLERY MODAL
   -------------------------------------------------------------------------- */
.modal {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.modal.active {
  opacity: 1;
  visibility: visible;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.9);
  backdrop-filter: blur(10px);
}

.modal-dialog {
  position: relative;
  z-index: 2010;
  width: 100%;
  max-width: 1000px;
}

.modal-card {
  background: var(--bg-surface);
  border: none;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.8);
}

.modal-header {
  padding: 16px 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: none;
}

.modal-title {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-primary);
}

.modal-counter {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--accent-gold);
}

.modal-close {
  background: none;
  border: none;
  color: var(--text-secondary);
  font-size: 1.2rem;
  cursor: pointer;
  transition: color 0.2s ease;
}

.modal-close:hover { color: #ffffff; }

[data-theme="light"] .modal-close:hover { color: #090a0f; }

.modal-body {
  position: relative;
  padding: 16px;
  background: #06070a;
  min-height: 380px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-img-stage {
  max-height: 55vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-main-img {
  max-height: 52vh;
  max-width: 100%;
  object-fit: contain;
  border-radius: var(--radius-sm);
  transition: opacity 0.2s ease;
}

.nav-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(18, 22, 32, 0.85);
  border: none;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  transition: all 0.2s ease;
}

.nav-arrow:hover {
  background: #ffffff;
  color: #000000;
}

.prev-arrow { left: 20px; }
.next-arrow { right: 20px; }

.modal-footer {
  padding: 14px 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: none;
  gap: 16px;
}

.thumb-strip {
  display: flex;
  gap: 8px;
  overflow-x: auto;
}

.thumb-item {
  width: 60px;
  height: 38px;
  border-radius: 4px;
  overflow: hidden;
  border: 2px solid transparent;
  cursor: pointer;
  opacity: 0.5;
  transition: opacity var(--transition);
  flex-shrink: 0;
}

.thumb-item.active, .thumb-item:hover {
  border-color: #ffffff;
  opacity: 1;
}

.thumb-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* --------------------------------------------------------------------------
   TOAST SHELF
   -------------------------------------------------------------------------- */
.toast-shelf {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 3000;
  display: flex;
  flex-direction: column;
  gap: 8px;
  pointer-events: none;
}

.toast {
  pointer-events: auto;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 18px;
  border-radius: var(--radius-sm);
  background: var(--bg-surface);
  border: none;
  color: var(--text-primary);
  font-size: 0.88rem;
  box-shadow: var(--shadow-card);
}

[data-theme="light"] .toast {
  background: #ffffff;
  color: #090a0f;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.12);
}

.toast i { color: var(--accent-emerald); }

/* --------------------------------------------------------------------------
   RESPONSIVE QUERIES
   -------------------------------------------------------------------------- */
@media (max-width: 1080px) {
  .hero-centerpiece {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 40px;
  }

  .portrait-backplate {
    max-width: 400px;
    height: 480px;
    margin: 0 auto;
  }

  .hero-actions {
    flex-direction: row;
    justify-content: center;
  }

  .hero-social-row {
    max-width: 440px;
    margin: 0 auto;
    width: 100%;
  }

  .project-showcase, .project-showcase.showcase-reverse {
    grid-template-columns: 1fr;
  }

  .project-showcase.showcase-reverse .showcase-visual {
    order: 1;
  }

  .project-showcase.showcase-reverse .showcase-details {
    order: 2;
  }

  .about-editorial-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .frameworks-grid {
    grid-template-columns: 1fr;
    gap: 22px;
  }

  .about-portrait-card {
    margin: 0 auto;
  }

  .stack-columns {
    grid-template-columns: 1fr;
  }

  .certs-editorial-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
  }

  .contact-editorial-card {
    grid-template-columns: 1fr;
    padding: 0;
  }

  .contact-right-col {
    padding-left: 0;
    border-left: none;
    border-top: none;
    padding-top: 32px;
  }
}

@media (max-width: 768px) {
  .desktop-nav { display: none; }
  .mobile-toggle { display: flex; }
  .btn-outline-nav { display: none; }

  .hero-section {
    padding-top: 96px;
    padding-bottom: 54px;
  }

  .experience-item {
    grid-template-columns: 1fr;
    gap: 16px;
    padding: 0;
  }

  .work-callout {
    padding: 30px 0;
  }

  .work-callout-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
  }

  .hero-name {
    font-size: clamp(2.4rem, 8vw, 3.4rem);
  }

  .portrait-backplate {
    max-width: min(340px, 86vw);
    height: min(460px, 56vh);
    border-radius: 170px 170px var(--radius-lg) var(--radius-lg);
  }

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

@media (max-width: 640px) {
  .certs-editorial-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .container {
    padding-left: 18px;
    padding-right: 18px;
  }

  .section {
    padding: 70px 0;
  }

  .hero-top-bar {
    flex-direction: column;
    align-items: center;
    gap: 8px;
    text-align: center;
  }

  .hero-kicker {
    font-size: 0.74rem;
    letter-spacing: 0.8px;
  }

  .hero-location {
    font-size: 0.76rem;
  }

  .hero-headline-wrap {
    margin-bottom: 30px;
  }

  .hero-name {
    font-size: 2.35rem;
    line-height: 1.1;
  }

  .hero-title-role {
    font-size: 0.92rem;
    line-height: 1.5;
  }

  .hero-title-role .sep {
    margin: 0 4px;
  }

  .hero-bio-card {
    padding: 22px 18px;
  }

  .hero-actions {
    flex-direction: column;
    width: 100%;
  }

  .hero-actions .btn {
    width: 100%;
  }

  .hero-social-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    width: 100%;
  }

  .hero-social-row .social-chip {
    justify-content: center;
    padding: 10px 12px;
  }

  .hero-stats-card {
    padding: 22px 18px;
  }

  .project-showcase, .project-showcase.showcase-reverse {
    padding: 0;
    gap: 24px;
  }

  .browser-body {
    height: 220px;
  }

  .browser-url {
    max-width: 170px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .project-headline {
    font-size: 1.25rem;
  }

  .project-desc {
    font-size: 0.9rem;
  }

  .project-links {
    flex-direction: column;
    width: 100%;
  }

  .project-links .btn {
    width: 100%;
  }

  .about-portrait-card {
    max-width: 100%;
  }

  .about-portrait-wrap {
    height: 300px;
  }

  .about-principles-grid {
    grid-template-columns: 1fr;
  }

  .about-frameworks-block {
    margin-top: 48px;
    padding-top: 38px;
  }

  .framework-card {
    padding: 24px 18px;
  }

  .breakdown-row {
    padding: 8px 10px;
  }

  .contact-editorial-card {
    padding: 0;
  }

  .channel-item {
    padding: 8px 0;
  }

  .channel-val {
    font-size: 0.88rem;
    word-break: break-all;
  }

  /* Prevent iOS Safari 16px input zoom bug */
  .form-field input, .form-field textarea {
    font-size: 16px;
  }

  .footer-wrap {
    flex-direction: column;
    text-align: center;
    gap: 20px;
  }

  .footer-links {
    justify-content: center;
    flex-wrap: wrap;
    gap: 14px;
  }

  /* Gallery Modal on Mobile */
  .modal {
    padding: 10px;
  }

  .modal-dialog {
    max-width: 100%;
  }

  .modal-header {
    padding: 12px 16px;
  }

  .modal-title {
    font-size: 0.98rem;
  }

  .modal-body {
    min-height: 220px;
    max-height: 48vh;
    padding: 8px;
  }

  .modal-main-img {
    max-height: 44vh;
  }

  .nav-arrow {
    width: 36px;
    height: 36px;
    font-size: 0.9rem;
  }

  .prev-arrow { left: 8px; }
  .next-arrow { right: 8px; }

  .modal-footer {
    padding: 12px 16px;
    flex-direction: column;
    align-items: stretch;
  }

  .modal-footer .btn {
    width: 100%;
  }

  .thumb-strip {
    justify-content: center;
    padding: 4px 0;
    -webkit-overflow-scrolling: touch;
  }

  .thumb-item {
    width: 52px;
    height: 34px;
  }
}

@media (max-width: 400px) {
  .hero-name {
    font-size: 2.1rem;
  }

  .portrait-backplate {
    max-width: 270px;
    height: 360px;
  }

  .browser-body {
    height: 180px;
  }
}


/* --------------------------------------------------------------------------
   INTERACTIVE LINKEDIN COLLABORATIVE QR SECTION
   -------------------------------------------------------------------------- */
.linkedin-qr-block {
  margin-top: 32px;
  padding: 0;
  background: transparent;
  border: none;
  border-radius: 0;
  position: relative;
  overflow: hidden;
  box-shadow: none;
}

.linkedin-qr-block:hover {
  box-shadow: none;
}

.qr-block-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
}

.qr-block-title {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-primary);
}

.qr-block-title i {
  color: #0a66c2;
  font-size: 1.25rem;
}

.qr-block-tag {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--accent-gold);
  background: var(--accent-gold-subtle);
  border: 1px solid rgba(245, 158, 11, 0.35);
  padding: 2px 8px;
  border-radius: var(--radius-pill);
}

.qr-block-desc {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.5;
  margin-bottom: 18px;
}

.qr-interactive-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

/* The Scan Card Stage */
.qr-scan-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 16px;
  background: #ffffff;
  border-radius: 18px;
  box-shadow: 0 14px 34px -8px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(255, 255, 255, 0.1);
  text-decoration: none;
  cursor: pointer;
  transition: transform var(--transition), box-shadow var(--transition);
  max-width: 250px;
  width: 100%;
}

.qr-scan-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 42px -8px rgba(0, 0, 0, 0.65), 0 0 24px rgba(10, 102, 194, 0.25);
}

/* High-tech Corner Brackets */
.qr-corner-bracket {
  position: absolute;
  width: 14px;
  height: 14px;
  border-color: #0a66c2;
  border-style: solid;
  pointer-events: none;
  transition: border-color var(--transition);
  opacity: 0.85;
}
.qr-corner-bracket.tl { top: 8px; left: 8px; border-width: 2px 0 0 2px; border-top-left-radius: 4px; }
.qr-corner-bracket.tr { top: 8px; right: 8px; border-width: 2px 2px 0 0; border-top-right-radius: 4px; }
.qr-corner-bracket.bl { bottom: 8px; left: 8px; border-width: 0 0 2px 2px; border-bottom-left-radius: 4px; }
.qr-corner-bracket.br { bottom: 8px; right: 8px; border-width: 0 2px 2px 0; border-bottom-right-radius: 4px; }

/* QR Canvas where left and right parts collaborate */
.qr-canvas {
  position: relative;
  width: 200px;
  height: 200px;
  background: #ffffff;
  overflow: hidden;
  border-radius: 10px;
}

/* Collaborative Matrix Shards (Multiple Pieces from Left & Right) */
.qr-shard {
  position: absolute;
  width: 50px;
  height: 50px;
  background-image: url('../images/linkedin-qr.png');
  background-size: 200px 200px;
  background-repeat: no-repeat;
  transition: transform 0.8s cubic-bezier(0.18, 0.89, 0.32, 1.28),
              opacity 0.65s ease,
              filter 0.65s ease;
  will-change: transform, opacity, filter;
  z-index: 2;
  border-radius: 2px;
}

/* Scattered Pre-Assembly State */
.qr-shard.qr-side-left {
  transform: translate(var(--dx), var(--dy)) rotate(var(--rot)) scale(0.6);
  opacity: 0;
  filter: blur(5px);
}

.qr-shard.qr-side-right {
  transform: translate(var(--dx), var(--dy)) rotate(var(--rot)) scale(0.6);
  opacity: 0;
  filter: blur(5px);
}

/* Assembled State: Shards collaborate and lock into unified matrix */
.qr-canvas.is-assembled .qr-shard {
  transform: translate(0, 0) rotate(0deg) scale(1);
  opacity: 1;
  filter: blur(0);
  transition-delay: var(--delay);
}

/* Unified base image that guarantees seamless 100% phone camera scannability */
.qr-unified-img {
  position: absolute;
  top: 0;
  left: 0;
  width: 200px;
  height: 200px;
  display: block;
  opacity: 0;
  transition: opacity 0.35s ease 0.65s;
  z-index: 3;
  pointer-events: none;
  user-select: none;
}

.qr-canvas.is-assembled .qr-unified-img {
  opacity: 1;
}

/* Central Seam Collision Flash */
.qr-lock-flash {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 8px;
  margin-left: -4px;
  background: linear-gradient(180deg, rgba(245, 158, 11, 0) 0%, rgba(245, 158, 11, 0.95) 50%, rgba(245, 158, 11, 0) 100%);
  opacity: 0;
  transform: scaleY(0.2);
  transition: opacity 0.3s ease, transform 0.3s ease;
  z-index: 4;
  pointer-events: none;
}

.qr-canvas.is-assembled .qr-lock-flash {
  animation: qrFlashBurst 0.65s ease-out 0.5s forwards;
}

@keyframes qrFlashBurst {
  0% { opacity: 0; transform: scaleY(0.2); }
  50% { opacity: 1; transform: scaleY(1.25); }
  100% { opacity: 0; transform: scaleY(1); }
}

/* Laser Scan Line */
.qr-laser-beam {
  position: absolute;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, #0a66c2 50%, transparent);
  box-shadow: 0 0 8px #0a66c2, 0 0 14px rgba(10, 102, 194, 0.85);
  top: 0;
  opacity: 0;
  z-index: 5;
  pointer-events: none;
}

.qr-canvas.is-assembled .qr-laser-beam {
  animation: qrLaserScan 1.6s ease-in-out 0.8s 2;
}

@keyframes qrLaserScan {
  0% { top: 0; opacity: 0.9; }
  50% { top: 198px; opacity: 0.9; }
  100% { top: 0; opacity: 0.9; }
}

/* Center LinkedIn Badge */
.qr-center-badge {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 32px;
  height: 32px;
  margin-top: -16px;
  margin-left: -16px;
  background: #0a66c2;
  color: #ffffff;
  border: 3px solid #ffffff;
  border-radius: 7px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
  z-index: 6;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.35);
  transform: scale(0);
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1) 0.7s;
  pointer-events: none;
}

.qr-canvas.is-assembled .qr-center-badge {
  transform: scale(1);
}

/* Scan Prompt */
.qr-scan-prompt {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-top: 10px;
  font-family: var(--font-mono);
  font-size: 0.74rem;
  font-weight: 600;
  color: #1f2937;
}

.qr-live-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
  animation: qrPulse 2s infinite;
}

@keyframes qrPulse {
  0% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
  70% { box-shadow: 0 0 0 6px rgba(16, 185, 129, 0); }
  100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}



/* --------------------------------------------------------------------------
   REVOLUTION QUOTE SLIDER RIBBON (Right above Get in Touch)
   -------------------------------------------------------------------------- */
.revolution-ticker-wrap {
  width: 100%;
  overflow: hidden;
  padding: 16px 0;
  margin-top: 10px;
  margin-bottom: 24px;
  background: rgba(15, 17, 23, 0.45);
  border: none;
  position: relative;
  mask-image: linear-gradient(90deg, transparent 0%, #000000 7%, #000000 93%, transparent 100%);
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000000 7%, #000000 93%, transparent 100%);
}

[data-theme="light"] .revolution-ticker-wrap {
  background: rgba(241, 245, 249, 0.6);
}

.revolution-ticker-track {
  display: flex;
  align-items: center;
  gap: 60px;
  width: max-content;
  will-change: transform;
  animation: revTickerSlide 32s linear infinite;
}

.revolution-ticker-wrap:hover .revolution-ticker-track {
  animation-play-state: paused;
}

@keyframes revTickerSlide {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.rev-ticker-item {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  white-space: nowrap;
}

.rev-quote-spark {
  color: var(--accent-gold);
  font-size: 1rem;
  text-shadow: 0 0 12px rgba(245, 158, 11, 0.6);
  flex-shrink: 0;
}

.rev-quote-text {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--text-primary);
  font-style: italic;
}

.rev-quote-author {
  font-family: var(--font-mono);
  font-size: 0.76rem;
  font-weight: 700;
  color: var(--accent-gold);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  background: var(--accent-gold-subtle);
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  flex-shrink: 0;
}
