/* ==========================================================================
   Mohammed Jouda Portfolio - Modern Bento & SPA Design System
   Crafted with Intentional Visual Hierarchy & 60fps Zero-Reload Transitions
   ========================================================================== */

:root {
  /* Core Color Palette - Exact Signature Navy Palette from Personal Photo (my-photo2.jpeg)
     • Top Background:  #113255 | rgb(17, 50, 85)   - Deep Navy
     • Mid/Right:       #1C477A | rgb(28, 71, 122)  - Medium Navy Accent
     • Left Highlight:  #265C91 | rgb(38, 92, 145)  - Luminous Marine Blue
     • Shirt:           #1C232B | rgb(28, 35, 43)   - Dark Navy Charcoal Foundation
  */
  --bg-canvas: #f6f8fb;
  --bg-card: #ffffff;
  --bg-card-subtle: #edf3fa;
  --bg-hover: #e0ecf8;
  --text-primary: #1C232B;
  /* Dark Navy Charcoal from photo shirt */
  --text-secondary: #2a3746;
  --text-muted: #53677d;
  --border-color: #d8e2ee;
  --border-subtle: #edf3fa;
  --border-hover: #b4c8df;
  --accent-color: #1C477A;
  /* Medium Navy from photo */
  --accent-light: #edf3fa;
  --accent-glow: rgba(28, 71, 122, 0.16);
  --spotlight-color: rgba(28, 71, 122, 0.10);
  --verified-color: #265C91;
  /* Vibrant Marine Blue from photo */
  --card-shadow: 0 1px 3px rgba(28, 35, 43, 0.05), 0 4px 14px rgba(28, 35, 43, 0.04);
  --card-shadow-hover: 0 12px 32px -8px rgba(28, 35, 43, 0.12), 0 0 24px rgba(28, 71, 122, 0.14);

  /* Layout Sizing */
  --sidebar-width: 250px;
  --header-height-mobile: 60px;
  --radius-lg: 20px;
  --radius-md: 14px;
  --radius-sm: 8px;
  --radius-pill: 9999px;

  /* Fonts */
  --font-en: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-ar: 'Tajawal', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-body: var(--font-en);
}

/* Dark Mode Tokens - Deep Navy Charcoal (#0c1117), Deep Navy (#113255) & Luminous Marine Blue (#265C91) */
html.dark {
  --bg-canvas: #0c1117;
  /* Deepest Navy Charcoal foundation derived from #1C232B */
  --bg-card: #121922;
  /* Elevated Navy Card surface */
  --bg-card-subtle: #17212d;
  --bg-hover: #1e2b3b;
  --text-primary: #f0f4f9;
  --text-secondary: #c5d3e2;
  --text-muted: #859cb4;
  --border-color: rgba(28, 71, 122, 0.28);
  /* Medium Navy border */
  --border-subtle: rgba(17, 50, 85, 0.35);
  /* Deep Navy subtle border */
  --border-hover: rgba(38, 92, 145, 0.65);
  /* Vibrant Marine Blue hover border */
  --accent-color: #3b82c4;
  /* Luminous Marine Blue for high-contrast dark readability */
  --accent-light: rgba(38, 92, 145, 0.18);
  --accent-glow: rgba(38, 92, 145, 0.35);
  --spotlight-color: rgba(38, 92, 145, 0.18);
  /* Dynamic Bento spotlight */
  --verified-color: #3b8cd9;
  --card-shadow: 0 4px 24px rgba(12, 17, 23, 0.7), 0 1px 4px rgba(17, 50, 85, 0.35);
  --card-shadow-hover: 0 16px 40px -8px rgba(8, 12, 17, 0.9), 0 0 30px rgba(38, 92, 145, 0.28);
}

/* Arabic Typography & RTL support */
html[dir="rtl"] {
  --font-body: var(--font-ar);
}

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

html,
body {
  width: 100%;
  min-height: 100vh;
  background-color: var(--bg-canvas);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  transition: background-color 0.3s cubic-bezier(0.16, 1, 0.3, 1), color 0.3s ease;
  overflow-x: hidden;
  background-image:
    radial-gradient(1000px circle at 15% 10%, rgba(38, 92, 145, 0.04), transparent 70%),
    radial-gradient(800px circle at 85% 25%, rgba(28, 71, 122, 0.03), transparent 60%);
  background-attachment: fixed;
}

html.dark body {
  background-image:
    radial-gradient(1000px circle at 15% 10%, rgba(38, 92, 145, 0.12), transparent 70%),
    radial-gradient(800px circle at 85% 25%, rgba(28, 71, 122, 0.09), transparent 60%),
    radial-gradient(700px circle at 50% 95%, rgba(17, 50, 85, 0.14), transparent 65%);
  background-attachment: fixed;
}

button,
a,
input,
textarea {
  font-family: inherit;
  color: inherit;
}

a {
  text-decoration: none;
}

button {
  cursor: pointer;
  border: none;
  background: none;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 7px;
  height: 7px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background: var(--border-color);
  border-radius: var(--radius-pill);
}

::-webkit-scrollbar-thumb:hover {
  background: var(--text-muted);
}

/* Hide default OS cursor on fine pointer devices */
@media (pointer: fine),
(any-pointer: fine) {

  html,
  body,
  *,
  *::before,
  *::after,
  a,
  button,
  input,
  textarea,
  select,
  label,
  svg,
  path {
    cursor: none !important;
  }
}

html.has-custom-cursor,
html.has-custom-cursor *,
html.has-custom-cursor *::before,
html.has-custom-cursor *::after {
  cursor: none !important;
}

/* ==========================================================================
   Unified Custom Blue Pointer Cursor (Single Cursor Replacing Default Mouse)
   ========================================================================== */
.custom-cursor {
  position: fixed;
  top: 0;
  left: 0;
  pointer-events: none !important;
  z-index: 999999 !important;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.12s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.12s ease;
  will-change: transform;
  user-select: none;
  -webkit-user-select: none;
}

.custom-cursor.visible {
  opacity: 1 !important;
  visibility: visible !important;
}

.custom-cursor * {
  pointer-events: none !important;
}

.cursor-arrow {
  width: 22px;
  height: 26px;
  display: block;
  margin-left: -1px;
  margin-top: -1px;
  filter: drop-shadow(0 2px 4px rgba(28, 35, 43, 0.45)) drop-shadow(0 0 10px rgba(38, 92, 145, 0.75));
  transform-origin: 0 0;
  transition: transform 0.12s cubic-bezier(0.16, 1, 0.3, 1), filter 0.2s ease;
}

.custom-cursor.clicking .cursor-arrow {
  transform: scale(0.82);
}

.custom-cursor.hovering .cursor-arrow {
  filter: drop-shadow(0 2px 6px rgba(28, 35, 43, 0.55)) drop-shadow(0 0 16px rgba(38, 92, 145, 0.95));
  transform: scale(1.1);
}

@media (pointer: coarse), (prefers-reduced-motion: reduce) {
  .custom-cursor {
    display: none !important;
  }
  html.has-custom-cursor,
  html.has-custom-cursor *,
  html.has-custom-cursor *::before,
  html.has-custom-cursor *::after {
    cursor: auto !important;
  }
}

/* ==========================================================================
   Layout Architecture
   ========================================================================== */
.app-layout {
  display: flex;
  min-height: 100vh;
  max-width: 1440px;
  margin: 0 auto;
  position: relative;
}

/* Mobile Header */
.mobile-header {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--header-height-mobile);
  background-color: rgba(248, 250, 252, 0.88);
  border-bottom: 1px solid var(--border-color);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: 40;
  padding: 0 16px;
  align-items: center;
  justify-content: space-between;
}

html.dark .mobile-header {
  background-color: rgba(12, 17, 23, 0.88);
}

.mobile-header-left,
.mobile-header-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

.mobile-profile-chip {
  display: flex;
  align-items: center;
  gap: 8px;
  color: inherit;
}

.avatar-sm {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
  border: 1.5px solid var(--border-color);
}

.avatar-md {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--border-color);
}

.mobile-name-col {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.user-name {
  font-size: 13.5px;
  font-weight: 600;
}

.handle-text {
  font-size: 11px;
  color: var(--text-muted);
}

/* Drawer & Overlay */
.drawer-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
  z-index: 50;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.drawer-overlay.open {
  display: block;
  opacity: 1;
}

.mobile-drawer {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  width: 280px;
  max-width: 80%;
  background: var(--bg-card);
  border-right: 1px solid var(--border-color);
  z-index: 51;
  padding: 24px;
  display: flex;
  flex-direction: column;
  transform: translateX(-100%);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

html[dir="rtl"] .mobile-drawer {
  left: auto;
  right: 0;
  border-right: none;
  border-left: 1px solid var(--border-color);
  transform: translateX(100%);
}

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

.drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
}

.drawer-title-row {
  display: flex;
  align-items: center;
  gap: 12px;
}

.drawer-name {
  font-size: 16px;
  font-weight: 700;
}

.drawer-nav {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.drawer-nav .nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-radius: var(--radius-md);
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: background 0.2s ease, color 0.2s ease;
}

.drawer-nav .nav-item:hover,
.drawer-nav .nav-item.active {
  background: var(--bg-card-subtle);
  color: var(--text-primary);
}

/* ==========================================================================
   Desktop Sidebar
   ========================================================================== */
.desktop-sidebar {
  width: var(--sidebar-width);
  flex-shrink: 0;
  padding: 36px 20px;
  border-right: 1px solid var(--border-color);
  height: 100vh;
  position: sticky;
  top: 0;
  display: flex;
  flex-direction: column;
  transition: border-color 0.3s ease;
}

html[dir="rtl"] .desktop-sidebar {
  border-right: none;
  border-left: 1px solid var(--border-color);
}

.sidebar-inner {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.profile-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.avatar-wrapper {
  position: relative;
  width: 96px;
  height: 96px;
  margin-bottom: 16px;
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  display: block;
  background: transparent;
  border: none;
  padding: 0;
  cursor: pointer;
  outline: none;
}

.avatar-wrapper::after {
  content: '';
  position: absolute;
  inset: -2px;
  border-radius: 50%;
  border: 2px solid transparent;
  transition: all 0.25s ease;
  pointer-events: none;
}

.avatar-wrapper:hover {
  transform: scale(1.05);
}

.avatar-wrapper:hover::after {
  border-color: #265C91;
  box-shadow: 0 0 16px rgba(38, 92, 145, 0.4);
}

.avatar-wrapper:focus-visible::after {
  border-color: #265C91;
  box-shadow: 0 0 0 3px rgba(38, 92, 145, 0.35);
}

.avatar-lg {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--border-color);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

.online-indicator {
  position: absolute;
  bottom: 4px;
  right: 6px;
  width: 14px;
  height: 14px;
  background-color: #10b981;
  border: 2.5px solid var(--bg-canvas);
  border-radius: 50%;
}

.sidebar-identity {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.name-badge-row {
  display: flex;
  align-items: center;
  gap: 6px;
}

.sidebar-name {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--text-primary);
  transition: color 0.2s ease;
}

.sidebar-name:hover {
  color: var(--accent-color);
}

.verified-icon {
  color: var(--verified-color);
  vertical-align: middle;
}

.sidebar-handle {
  font-size: 13px;
  color: var(--text-muted);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s ease;
}

.sidebar-handle:hover {
  color: var(--text-primary);
}

/* Controls: Lang & Theme */
.sidebar-controls {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 18px;
}

.lang-switch-pill {
  display: flex;
  background-color: var(--border-subtle);
  border: 1px solid var(--border-color);
  padding: 3px;
  border-radius: var(--radius-pill);
}

.lang-btn {
  padding: 4px 11px;
  font-size: 11px;
  font-weight: 600;
  border-radius: var(--radius-pill);
  color: var(--text-muted);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

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

.lang-btn.active {
  background-color: var(--text-primary);
  color: var(--bg-canvas);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.15);
}

.icon-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background-color: var(--border-subtle);
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
  transition: all 0.2s ease;
}

.icon-btn:hover {
  background-color: var(--bg-hover);
  color: var(--text-primary);
  transform: rotate(15deg);
}

.theme-sun-icon {
  display: none;
}

.theme-moon-icon {
  display: block;
}

html.dark .theme-sun-icon {
  display: block;
}

html.dark .theme-moon-icon {
  display: none;
}

.sidebar-divider {
  width: 100%;
  height: 1px;
  background-color: var(--border-color);
  margin: 24px 0 20px 0;
}

/* Sidebar Navigation */
.sidebar-nav {
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex-grow: 1;
}

.nav-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  border-radius: var(--radius-md);
  color: var(--text-secondary);
  font-size: 14px;
  font-weight: 500;
  transition: all 0.2s ease;
  width: 100%;
  text-align: left;
}

html[dir="rtl"] .nav-link {
  text-align: right;
}

.nav-link:hover {
  background-color: var(--bg-card-subtle);
  color: var(--text-primary);
  transform: translateX(4px);
}

html[dir="rtl"] .nav-link:hover {
  transform: translateX(-4px);
}

.nav-link.active {
  background-color: var(--bg-card);
  color: var(--text-primary);
  font-weight: 600;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
  border: 1px solid var(--border-color);
}

.nav-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  transition: transform 0.2s ease, color 0.2s ease;
}

.nav-link:hover .nav-icon,
.nav-link.active .nav-icon {
  color: var(--accent-color);
  transform: rotate(-8deg);
}

.sidebar-footer {
  margin-top: auto;
  font-size: 11.5px;
  color: var(--text-muted);
  line-height: 1.5;
  text-align: center;
}

/* ==========================================================================
   Main SPA Viewport & Dynamic Views
   ========================================================================== */
.main-content {
  flex: 1;
  padding: 40px 48px;
  overflow-y: auto;
  max-width: 1190px;
  scroll-behavior: smooth;
}

.content-container {
  display: flex;
  flex-direction: column;
}

/* Zero-Reload SPA Views Transitions */
.page-view {
  display: none;
  opacity: 0;
  transform: translateY(12px);
  will-change: opacity, transform;
}

.page-view.active {
  display: block;
  animation: spaFadeIn 0.35s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes spaFadeIn {
  from {
    opacity: 0;
    transform: translateY(14px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Common SPA Subpage Headers */
.page-view-header {
  margin-bottom: 32px;
}

.header-tag-pill {
  display: inline-flex;
  align-items: center;
  padding: 4px 12px;
  background-color: var(--accent-light);
  color: var(--accent-color);
  border-radius: var(--radius-pill);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.03em;
  margin-bottom: 12px;
  text-transform: uppercase;
}

.page-view-title {
  font-size: clamp(26px, 3vw, 36px);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.2;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.page-view-subtitle {
  font-size: 15px;
  color: var(--text-muted);
  max-width: 760px;
}

/* ==========================================================================
   VIEW 1: Hero & Bento Styles
   ========================================================================== */
.hero-header {
  margin-bottom: 24px;
}

.hero-top-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 12px;
}

.hero-title {
  font-size: clamp(28px, 3.2vw, 38px);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.15;
  color: var(--text-primary);
}

.hero-meta-badges {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 8px;
}

.meta-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13.5px;
  color: var(--text-muted);
  font-weight: 500;
}

.meta-dot {
  width: 6px;
  height: 6px;
  background-color: var(--accent-color);
  border-radius: 50%;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  background-color: var(--bg-card);
  color: var(--text-primary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-pill);
  font-size: 13.5px;
  font-weight: 600;
  box-shadow: 0 1px 3px rgba(28, 35, 43, 0.05);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  white-space: nowrap;
}

.btn-primary:hover {
  background: linear-gradient(135deg, #1C477A 0%, #265C91 100%);
  color: #ffffff;
  border-color: #265C91;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(28, 71, 122, 0.3);
}

.hero-bio {
  font-size: 15.5px;
  color: var(--text-secondary);
  max-width: 780px;
  line-height: 1.6;
}

.content-divider {
  width: 100%;
  height: 1px;
  background-color: var(--border-color);
  margin: 20px 0;
}

.section-lead {
  margin-bottom: 24px;
}

.lead-text {
  font-size: 14.5px;
  color: var(--text-muted);
  font-weight: 500;
}

/* Bento Grid */
.bento-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  perspective: 1200px;
}

.bento-card {
  position: relative;
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--card-shadow);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1),
    box-shadow 0.3s cubic-bezier(0.16, 1, 0.3, 1),
    border-color 0.25s ease;
  cursor: pointer;
}

.bento-card:hover,
.bento-card:focus-visible {
  transform: translateY(-4px);
  box-shadow: var(--card-shadow-hover);
  border-color: var(--border-hover);
  outline: none;
}

.card-spotlight {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(circle at var(--mouse-x, 50%) var(--mouse-y, 50%),
      var(--spotlight-color),
      transparent 70%);
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 1;
}

.bento-card:hover .card-spotlight {
  opacity: 1;
}

.bento-card-inner {
  position: relative;
  z-index: 2;
  padding: 24px;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.card-header-text {
  display: flex;
  flex-direction: column;
  margin-bottom: 16px;
}

.card-header-text.centered {
  align-items: center;
  text-align: center;
}

.card-header-text.centered .card-icon-box {
  margin-left: auto;
  margin-right: auto;
}

.card-icon-box {
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  background-color: var(--border-subtle);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  margin-bottom: 14px;
  transition: transform 0.2s ease, background-color 0.2s ease;
}

.bento-card:hover .card-icon-box {
  background-color: var(--accent-light);
  color: var(--accent-color);
  transform: scale(1.08);
}

.card-title {
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.card-subtitle {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.45;
}

/* Card 1: Projects Showcase */
.bento-projects {
  grid-column: span 2;
  min-height: 310px;
}

.bento-projects .bento-card-inner {
  display: grid;
  grid-template-columns: 1.1fr 1.3fr;
  align-items: center;
  gap: 20px;
  padding: 28px;
}

.card-action-indicator {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--accent-color);
  margin-top: 16px;
  transition: gap 0.2s ease;
}

.bento-projects:hover .card-action-indicator {
  gap: 10px;
}

.mockup-stack-container {
  position: relative;
  height: 240px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  perspective: 1000px;
}

.mockup-screen-item {
  position: absolute;
  width: 85%;
  border-radius: var(--radius-md);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  overflow: hidden;
  border: 1px solid var(--border-color);
}

.mockup-screen-item img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

.mockup-screen-item.item-1 {
  top: 0;
  transform: translateY(0) scale(0.92) rotate(-2deg);
  z-index: 1;
  opacity: 0.85;
}

.mockup-screen-item.item-2 {
  top: 40px;
  transform: translateY(0) scale(0.96) rotate(1deg);
  z-index: 2;
  opacity: 0.95;
}

.mockup-screen-item.item-3 {
  top: 80px;
  transform: translateY(0) scale(1) rotate(0deg);
  z-index: 3;
  opacity: 1;
}

.bento-projects:hover .mockup-screen-item.item-1 {
  transform: translateY(-16px) scale(0.9) rotate(-4deg);
}

.bento-projects:hover .mockup-screen-item.item-2 {
  transform: translateY(6px) scale(0.98) rotate(2deg);
}

.bento-projects:hover .mockup-screen-item.item-3 {
  transform: translateY(28px) scale(1.04) rotate(-1deg);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35);
}

/* Card 2: About Me Polaroid */
.bento-about {
  min-height: 310px;
}

.polaroid-stack-wrapper {
  position: relative;
  height: 180px;
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: center;
}

.polaroid-card {
  position: absolute;
  width: 140px;
  padding: 8px 8px 18px 8px;
  background: #ffffff;
  border-radius: 6px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
  border: 1px solid rgba(0, 0, 0, 0.08);
  transition: all 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}

html.dark .polaroid-card {
  background: #1c222e;
  border-color: rgba(255, 255, 255, 0.1);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
}

.polaroid-photo {
  width: 100%;
  height: 110px;
  border-radius: 4px;
  overflow: hidden;
  background: #000;
}

.polaroid-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.polaroid-caption {
  margin-top: 6px;
  font-size: 10.5px;
  font-weight: 600;
  text-align: center;
  color: #171717;
}

html.dark .polaroid-caption {
  color: #f1f5f9;
}

.under-card-2 {
  transform: rotate(-14deg) translateY(10px) scale(0.9);
  opacity: 0.6;
  z-index: 1;
}

.under-card-1 {
  transform: rotate(10deg) translateY(6px) scale(0.95);
  opacity: 0.8;
  z-index: 2;
}

.main-polaroid {
  transform: rotate(-2deg);
  z-index: 3;
}

.bento-about:hover .under-card-2 {
  transform: rotate(-22deg) translateX(-18px) translateY(8px) scale(0.92);
}

.bento-about:hover .under-card-1 {
  transform: rotate(18deg) translateX(18px) translateY(4px) scale(0.97);
}

.bento-about:hover .main-polaroid {
  transform: rotate(0deg) scale(1.05);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.25);
}

/* Card 3: Skills Marquee */
.bento-skills {
  grid-column: span 1;
  min-height: 290px;
}

.skills-marquee-container {
  position: relative;
  width: 100%;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: auto;
  padding: 8px 0;
  mask-image: linear-gradient(to right, transparent 0%, black 14%, black 86%, transparent 100%);
  -webkit-mask-image: linear-gradient(to right, transparent 0%, black 14%, black 86%, transparent 100%);
}

.skills-marquee-track {
  display: flex;
  width: max-content;
  user-select: none;
  will-change: transform;
}

.skills-marquee-group {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-right: 10px;
  flex-shrink: 0;
}

.track-forward {
  animation: marqueeScrollLeft 24s linear infinite;
}

.track-reverse {
  animation: marqueeScrollRight 24s linear infinite;
}

.bento-skills:hover .skills-marquee-track {
  animation-play-state: paused;
}

@keyframes marqueeScrollLeft {
  0% {
    transform: translateX(0);
  }

  100% {
    transform: translateX(-50%);
  }
}

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

  100% {
    transform: translateX(0);
  }
}

html[dir="rtl"] .track-forward {
  animation: marqueeScrollRight 24s linear infinite;
}

html[dir="rtl"] .track-reverse {
  animation: marqueeScrollLeft 24s linear infinite;
}

.tech-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px;
  background-color: var(--bg-card-subtle);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-pill);
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
  white-space: nowrap;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.tech-brand-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 17px;
  height: 17px;
  flex-shrink: 0;
}

.tech-brand-icon svg {
  width: 100%;
  height: 100%;
  display: block;
}

.tech-pill:hover {
  background-color: var(--bg-hover);
  border-color: var(--border-hover);
  color: var(--text-primary);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

/* Card 4: Achievements Fan */
.bento-achievements {
  grid-column: span 1;
  min-height: 290px;
}

.achievements-fan-wrapper {
  position: relative;
  height: 160px;
  margin-top: auto;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

.cert-card {
  position: absolute;
  bottom: 24px;
  width: 130px;
  height: 90px;
  border-radius: 6px;
  overflow: hidden;
  border: 1px solid var(--border-color);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.18);
  transition: all 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
  background-color: #000;
}

.cert-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.cert-left {
  transform: translateX(-40px) rotate(-12deg) scale(0.88);
  z-index: 1;
}

.cert-right {
  transform: translateX(40px) rotate(12deg) scale(0.88);
  z-index: 2;
}

.cert-center {
  transform: translateY(-8px) scale(0.98);
  z-index: 3;
}

.bento-achievements:hover .cert-left {
  transform: translateX(-65px) translateY(-14px) rotate(-18deg) scale(0.95);
}

.bento-achievements:hover .cert-right {
  transform: translateX(65px) translateY(-14px) rotate(18deg) scale(0.95);
}

.bento-achievements:hover .cert-center {
  transform: translateY(-26px) scale(1.06);
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.35);
}

.achievement-pocket-lip {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 8px 12px;
  background: var(--bg-card-subtle);
  border-top: 1px solid var(--border-color);
  border-radius: 0 0 var(--radius-lg) var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 4;
}

.pocket-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--accent-color);
}

/* Card 5: Career */
.bento-career {
  grid-column: span 1;
  min-height: 290px;
}

.career-logos-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-top: auto;
}

.career-logo-chip {
  aspect-ratio: 1;
  border-radius: var(--radius-md);
  background-color: var(--bg-card-subtle);
  border: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.career-logo-chip img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: grayscale(8%);
  transition: all 0.25s ease;
}

.career-logo-chip:hover {
  background-color: var(--bg-hover);
  border-color: var(--border-hover);
  transform: translateY(-4px) scale(1.06);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
}

.career-logo-chip:hover img {
  filter: grayscale(0%);
  transform: scale(1.08);
}

/* Card 6: Testimonials */
.bento-testimonials {
  grid-column: span 2;
  min-height: 290px;
}

.bento-testimonials .bento-card-inner {
  display: grid;
  grid-template-columns: 1fr 1.35fr;
  align-items: center;
  gap: 20px;
  padding: 24px;
}

.testimonial-marquee-wrapper {
  position: relative;
  height: 200px;
  overflow: hidden;
  margin-top: 0;
  mask-image: linear-gradient(to bottom, transparent 0%, black 15%, black 85%, transparent 100%);
  -webkit-mask-image: linear-gradient(to bottom, transparent 0%, black 15%, black 85%, transparent 100%);
}

.testimonial-track {
  display: flex;
  flex-direction: column;
  gap: 12px;
  animation: testimonialScroll 22s linear infinite;
}

.bento-testimonials:hover .testimonial-track {
  animation-play-state: paused;
}

@keyframes testimonialScroll {
  0% {
    transform: translateY(0);
  }

  100% {
    transform: translateY(-50%);
  }
}

.testimonial-bubble {
  padding: 12px 14px;
  background-color: var(--bg-card-subtle);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  transition: border-color 0.2s ease, background-color 0.2s ease;
}

.testimonial-bubble:hover {
  border-color: var(--border-hover);
  background-color: var(--bg-hover);
}

.bubble-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 6px;
}

.bubble-avatar-init {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--accent-light);
  color: var(--accent-color);
  font-size: 11px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

.bubble-author {
  display: flex;
  flex-direction: column;
  flex: 1;
  line-height: 1.2;
}

.author-name {
  font-size: 12.5px;
  font-weight: 700;
  color: var(--text-primary);
}

.author-role {
  font-size: 10.5px;
  color: var(--text-muted);
}

.linkedin-mini {
  color: #0a66c2;
}

.bubble-quote {
  font-size: 12px;
  color: var(--text-secondary);
  line-height: 1.45;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ==========================================================================
   VIEW 2: DEDICATED ABOUT ME PAGE (Modern Bento Grid Architecture)
   ========================================================================== */
.about-bento-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 24px;
  perspective: 1200px;
}

.about-bento-card {
  position: relative;
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--card-shadow);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1),
    box-shadow 0.3s cubic-bezier(0.16, 1, 0.3, 1),
    border-color 0.25s ease;
}

.about-bento-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--card-shadow-hover);
  border-color: var(--border-hover);
}

.about-bento-card:hover .card-spotlight {
  opacity: 1;
}

/* --------------------------------------------------------------------------
   Card 1: Multi-Photo Interactive Presentation Slider
   -------------------------------------------------------------------------- */
.about-card-hero-slider {
  grid-column: span 5;
  min-height: 420px;
  display: flex;
}

.about-slider-container {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 420px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background-color: #070a10;
}

.about-slider-viewport {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.about-slider-slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  visibility: hidden;
  transform: scale(1.04);
  transition: opacity 0.5s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.6s cubic-bezier(0.16, 1, 0.3, 1),
    visibility 0.5s ease;
  cursor: pointer;
  z-index: 1;
}

.about-slider-slide.active {
  opacity: 1;
  visibility: visible;
  transform: scale(1);
  z-index: 2;
}

.about-slide-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.about-slider-slide:hover .about-slide-img {
  transform: scale(1.04);
}

.about-slide-gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg,
    rgba(12, 17, 23, 0.05) 0%,
    rgba(12, 17, 23, 0.35) 45%,
    rgba(12, 17, 23, 0.92) 100%);
  pointer-events: none;
}

.about-slide-caption {
  position: absolute;
  bottom: 52px;
  left: 18px;
  right: 18px;
  z-index: 3;
  display: flex;
  flex-direction: column;
  gap: 6px;
  pointer-events: none;
}

.slide-caption-meta {
  display: flex;
  align-items: center;
  gap: 8px;
}

.slide-caption-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-pill);
  color: #ffffff;
  font-size: 11.5px;
  font-weight: 600;
}

.slide-caption-chip.status-chip {
  border-color: rgba(16, 185, 129, 0.35);
}

.slide-caption-title {
  font-size: 15px;
  font-weight: 700;
  color: #ffffff;
  line-height: 1.35;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
  margin: 0;
}

/* Slider Controls: Arrows & Pagination */
.about-slider-controls {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 4;
}

.about-slider-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(12, 17, 23, 0.65);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  pointer-events: auto;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.about-slider-arrow.prev {
  left: 12px;
}

.about-slider-arrow.next {
  right: 12px;
}

.about-slider-arrow:hover {
  background: #1C477A;
  border-color: #265C91;
  transform: translateY(-50%) scale(1.1);
  box-shadow: 0 6px 16px rgba(28, 71, 122, 0.5);
}

.about-slider-footer {
  position: absolute;
  bottom: 14px;
  left: 18px;
  right: 18px;
  z-index: 4;
  display: flex;
  align-items: center;
  justify-content: space-between;
  pointer-events: auto;
}

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

.slider-dot {
  width: 8px;
  height: 8px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.35);
  border: none;
  padding: 0;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.slider-dot:hover {
  background: rgba(255, 255, 255, 0.7);
}

.slider-dot.active {
  width: 22px;
  background: #ffffff;
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.6);
}

.about-slider-counter {
  font-size: 11px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.8);
  font-family: var(--font-mono, monospace);
  letter-spacing: 0.05em;
  background: rgba(0, 0, 0, 0.4);
  padding: 2px 8px;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

/* --------------------------------------------------------------------------
   Card 2: Executive Bio & Engineering Specialization
   -------------------------------------------------------------------------- */
.about-card-bio {
  grid-column: span 7;
  padding: 32px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 20px;
}

.bio-eyebrow-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
}

.bio-badge-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border-radius: var(--radius-pill);
  background-color: var(--accent-light);
  color: var(--accent-color);
  font-size: 12px;
  font-weight: 700;
}

.bio-experience-chip {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
}

.bio-headline {
  font-size: 21px;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.35;
  letter-spacing: -0.01em;
  margin: 0;
}

.bio-paragraphs-stack {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.bio-paragraphs-stack .about-paragraph {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.7;
  margin: 0;
}

.bio-paragraphs-stack .about-paragraph strong {
  color: var(--text-primary);
}

.bio-pillars-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding-top: 8px;
  border-top: 1px solid var(--border-color);
}

.pillar-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  background: var(--bg-hover);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-pill);
  font-size: 12px;
  font-weight: 600;
  color: var(--text-primary);
  transition: all 0.2s ease;
}

.pillar-tag:hover {
  background: var(--accent-light);
  color: var(--accent-color);
  border-color: var(--accent-color);
}

/* --------------------------------------------------------------------------
   Card 3: Key Engineering Impact Metrics Matrix
   -------------------------------------------------------------------------- */
.about-card-metrics {
  grid-column: span 12;
  padding: 24px 28px;
}

.metrics-card-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
}

.metrics-header-icon {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: var(--accent-light);
  color: var(--accent-color);
  display: flex;
  align-items: center;
  justify-content: center;
}

.metrics-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0;
}

.about-metrics-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.about-metric-tile {
  background: var(--bg-hover);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 18px 16px;
  text-align: center;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.about-metric-tile:hover {
  transform: translateY(-3px);
  border-color: var(--accent-color);
  background: var(--bg-card);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.06);
}

.about-metric-tile .metric-num {
  display: block;
  font-size: 26px;
  font-weight: 800;
  color: var(--accent-color);
  font-family: var(--font-heading);
  letter-spacing: -0.02em;
  margin-bottom: 4px;
}

.about-metric-tile .metric-label {
  display: block;
  font-size: 13px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 3px;
}

.about-metric-tile .metric-sub {
  display: block;
  font-size: 11.5px;
  color: var(--text-muted);
}

/* --------------------------------------------------------------------------
   Card 4: Academic Foundation & Degree Showcase
   -------------------------------------------------------------------------- */
.about-card-education {
  grid-column: span 6;
  padding: 28px;
}

.edu-bento-inner {
  display: flex;
  gap: 20px;
}

.edu-bento-icon-box {
  width: 50px;
  height: 50px;
  border-radius: var(--radius-md);
  background: var(--accent-light);
  color: var(--accent-color);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  border: 1px solid var(--border-color);
}

.edu-bento-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.edu-badge-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.edu-timeline-badge {
  font-size: 11.5px;
  font-weight: 700;
  color: var(--accent-color);
  background: var(--accent-light);
  padding: 3px 8px;
  border-radius: var(--radius-pill);
}

.edu-degree-status {
  font-size: 11.5px;
  font-weight: 600;
  color: #10b981;
}

.edu-bento-title {
  font-size: 16.5px;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0;
  line-height: 1.35;
}

.edu-bento-institution {
  font-size: 13px;
  color: var(--text-muted);
  margin: 0;
}

.edu-bento-desc {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.6;
  margin: 4px 0 0 0;
}

.edu-curriculum-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 6px;
}

.edu-tag {
  font-size: 11px;
  padding: 3px 8px;
  background: var(--bg-hover);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  color: var(--text-muted);
}

.edu-action-row {
  margin-top: 10px;
}

.btn-edu-casestudy {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  background: var(--border-subtle);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-pill);
  font-size: 12px;
  font-weight: 600;
  color: var(--text-primary);
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn-edu-casestudy:hover {
  background: var(--accent-color);
  color: #ffffff;
  border-color: var(--accent-color);
  transform: translateY(-2px);
}

/* --------------------------------------------------------------------------
   Card 5: Core Architectural Philosophy Matrix
   -------------------------------------------------------------------------- */
.about-card-philosophy {
  grid-column: span 6;
  padding: 28px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.phil-bento-header {
  margin-bottom: 18px;
}

.phil-eyebrow {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--accent-color);
  display: block;
  margin-bottom: 4px;
}

.phil-main-title {
  font-size: 16.5px;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0 0 4px 0;
}

.phil-subtitle {
  font-size: 12.5px;
  color: var(--text-muted);
  margin: 0;
}

.philosophy-bento-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}

.phil-bento-item {
  background: var(--bg-hover);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 16px;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.phil-bento-item:hover {
  transform: translateY(-3px);
  border-color: var(--border-hover);
  background: var(--bg-card);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.06);
}

.phil-item-icon-box {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 10px;
  transition: transform 0.25s ease;
}

.phil-bento-item:hover .phil-item-icon-box {
  transform: scale(1.1);
}

.phil-item-icon-box.perf {
  background: rgba(245, 158, 11, 0.12);
  color: #f59e0b;
}

.phil-item-icon-box.sec {
  background: var(--accent-glow);
  color: var(--accent-color);
}

.phil-item-icon-box.ai {
  background: rgba(16, 185, 129, 0.12);
  color: #10b981;
}

.phil-item-icon-box.arch {
  background: rgba(168, 85, 247, 0.12);
  color: #a855f7;
}

.phil-item-title {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0 0 4px 0;
}

.phil-item-desc {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.5;
  margin: 0;
}

/* --------------------------------------------------------------------------
   Card 6: Interactive Filterable Skills & Tools Showcase
   -------------------------------------------------------------------------- */
.about-card-skills-bento {
  grid-column: span 12;
  padding: 30px;
}

.skills-bento-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border-color);
}

.skills-title-group {
  display: flex;
  align-items: center;
  gap: 12px;
}

.skills-icon-badge {
  width: 38px;
  height: 38px;
  border-radius: var(--radius-sm);
  background: var(--accent-light);
  color: var(--accent-color);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.skills-bento-title {
  font-size: 17px;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0 0 2px 0;
}

.skills-bento-subtitle {
  font-size: 13px;
  color: var(--text-muted);
  margin: 0;
}

.skills-filter-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.skill-filter-pill {
  padding: 6px 14px;
  font-size: 12px;
  font-weight: 600;
  border-radius: var(--radius-pill);
  background: var(--border-subtle);
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.skill-filter-pill:hover {
  color: var(--text-primary);
  border-color: var(--border-hover);
  background: var(--bg-hover);
}

.skill-filter-pill.active {
  background: var(--accent-color);
  color: #ffffff;
  border-color: var(--accent-color);
  box-shadow: 0 2px 8px rgba(38, 92, 145, 0.35);
}

.about-skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 14px;
  margin-top: 22px;
}

.skill-card-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  background: var(--bg-hover);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  cursor: default;
}

.skill-card-item:hover {
  transform: translateY(-3px);
  border-color: var(--accent-color);
  background: var(--bg-card);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
}

.skill-card-icon-box {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: transform 0.25s ease;
}

.skill-card-item:hover .skill-card-icon-box {
  transform: scale(1.12);
}

.skill-card-meta {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.skill-card-name {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.skill-card-tag {
  font-size: 11px;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

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

/* --------------------------------------------------------------------------
   Card 7: Engineering Workflow & Call To Action
   -------------------------------------------------------------------------- */
.about-card-cta {
  grid-column: span 12;
  padding: 32px 28px;
  text-align: center;
}

.about-cta-content {
  max-width: 620px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.cta-badge-wrap {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 4px 12px;
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.25);
  border-radius: var(--radius-pill);
}

.cta-pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 8px #10b981;
}

.cta-badge-text {
  font-size: 12px;
  font-weight: 700;
  color: #10b981;
}

.about-cta-title {
  font-size: 20px;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0;
}

.about-cta-desc {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.6;
  margin: 0;
}

.about-cta-buttons {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 8px;
  flex-wrap: wrap;
  justify-content: center;
}

/* --------------------------------------------------------------------------
   Responsive Breakpoints for About Bento Grid
   -------------------------------------------------------------------------- */
@media (max-width: 1024px) {
  .about-card-hero-slider {
    grid-column: span 12;
    min-height: 380px;
  }

  .about-card-bio {
    grid-column: span 12;
  }

  .about-card-education {
    grid-column: span 12;
  }

  .about-card-philosophy {
    grid-column: span 12;
  }
}

@media (max-width: 768px) {
  .about-metrics-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .philosophy-bento-grid {
    grid-template-columns: 1fr;
  }

  .about-skills-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .skills-bento-header {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 540px) {
  .about-metrics-grid {
    grid-template-columns: 1fr;
  }

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

  .about-card-bio,
  .about-card-education,
  .about-card-philosophy,
  .about-card-skills-bento,
  .about-card-cta {
    padding: 22px 18px;
  }
}


/* ==========================================================================
   VIEW 3: DEDICATED CAREER EXPERIENCE PAGE (Modern UX/UI & Interactive Journey)
   ========================================================================== */

/* Header & Quick Action Pills */
.career-page-header {
  position: relative;
  margin-bottom: 24px;
}

.career-header-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.career-action-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: var(--radius-pill);
  font-size: 12.5px;
  font-weight: 600;
  text-decoration: none;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: var(--card-shadow);
}

.career-action-pill:hover {
  transform: translateY(-2px);
  border-color: var(--border-hover);
  background: var(--bg-hover);
  box-shadow: 0 4px 16px var(--accent-glow);
}

.career-action-pill.highlight {
  background: linear-gradient(135deg, var(--accent-color), #265C91);
  border-color: transparent;
  color: #ffffff;
  box-shadow: 0 4px 14px var(--accent-glow);
}

.career-action-pill.highlight:hover {
  background: linear-gradient(135deg, #265C91, #3b82c4);
  box-shadow: 0 6px 20px rgba(38, 92, 145, 0.4);
}

.career-action-pill.outline {
  background: transparent;
  border-color: var(--border-color);
}

/* Executive Impact Metrics Dashboard */
.career-metrics-dashboard {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 16px;
  margin-bottom: 32px;
}

.career-metric-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 18px 20px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  box-shadow: var(--card-shadow);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  overflow: hidden;
}

.career-metric-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent-color), transparent);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.career-metric-card:hover {
  transform: translateY(-2px);
  border-color: var(--border-hover);
  box-shadow: var(--card-shadow-hover);
}

.career-metric-card:hover::before {
  opacity: 1;
}

.metric-num-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 2px;
}

.metric-val {
  font-size: 24px;
  font-weight: 800;
  color: var(--accent-color);
  letter-spacing: -0.02em;
  line-height: 1.1;
}

html.dark .metric-val {
  color: #5aa7ea;
}

.metric-pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 8px rgba(16, 185, 129, 0.7);
  animation: metricPulse 2s infinite ease-in-out;
}

@keyframes metricPulse {

  0%,
  100% {
    transform: scale(1);
    opacity: 0.9;
  }

  50% {
    transform: scale(1.3);
    opacity: 0.5;
  }
}

.metric-label {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-primary);
}

.metric-sub {
  font-size: 11.5px;
  color: var(--text-muted);
  line-height: 1.4;
}

/* Career Category Filters & View Mode Controls */
.career-controls-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 28px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--border-subtle);
}

.career-filter-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.career-filter-btn {
  padding: 7px 16px;
  border-radius: var(--radius-pill);
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.career-filter-btn:hover {
  background: var(--bg-hover);
  color: var(--text-primary);
  border-color: var(--border-hover);
}

.career-filter-btn.active {
  background: var(--accent-color);
  border-color: var(--accent-color);
  color: #ffffff;
  box-shadow: 0 2px 10px var(--accent-glow);
}

.career-view-switcher {
  display: inline-flex;
  align-items: center;
  background: var(--bg-card-subtle);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-pill);
  padding: 3px;
  gap: 2px;
}

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

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

.career-view-btn.active {
  background: var(--bg-card);
  color: var(--text-primary);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
}

/* Main Career Track Container */
.career-main-track {
  display: flex;
  flex-direction: column;
  gap: 32px;
  position: relative;
  margin-bottom: 48px;
}

/* Mode: Grid Transform */
.career-main-track.mode-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(420px, 1fr));
  gap: 24px;
}

.career-main-track.mode-grid .milestone-spine {
  display: none;
}

.career-main-track.mode-grid .career-milestone-node {
  display: block;
}

/* Mode: Timeline Node Structure */
.career-milestone-node {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 20px;
  position: relative;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.career-milestone-node.filtered-out {
  display: none !important;
}

.milestone-spine {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
}

.milestone-badge-dot {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--bg-card);
  border: 2px solid var(--accent-color);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 2;
  box-shadow: 0 0 12px var(--accent-glow);
  margin-top: 20px;
}

.beacon-core {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #10b981;
}

.beacon-core.static {
  background: var(--accent-color);
}

.milestone-badge-dot.pulse-beacon {
  border-color: #10b981;
}

.beacon-ring {
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 2px solid #10b981;
  opacity: 0.7;
  animation: beaconPulse 2s cubic-bezier(0.25, 1, 0.5, 1) infinite;
}

@keyframes beaconPulse {
  0% {
    transform: scale(0.9);
    opacity: 0.9;
  }

  100% {
    transform: scale(1.6);
    opacity: 0;
  }
}

.milestone-spine-line {
  flex: 1;
  width: 2px;
  background: linear-gradient(180deg, var(--border-color) 0%, var(--border-subtle) 100%);
  margin-top: 8px;
  border-radius: 1px;
}

/* Elevated Career Role Card - Compact & Scannable Hierarchy */
.career-role-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 22px 24px;
  box-shadow: var(--card-shadow);
  display: flex;
  flex-direction: column;
  gap: 13px;
  transition: all 0.28s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
}

.career-role-card:hover {
  transform: translateY(-2px);
  border-color: var(--border-hover);
  box-shadow: var(--card-shadow-hover);
}

.role-card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
}

.role-header-lead {
  display: flex;
  align-items: center;
  gap: 14px;
  flex: 1;
  min-width: 250px;
}

.company-brand-box {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  background: var(--bg-card-subtle);
  border: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 7px;
  flex-shrink: 0;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.career-role-card:hover .company-brand-box {
  transform: scale(1.05);
  border-color: var(--border-hover);
}

.company-brand-box img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.role-title-meta {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.career-card-title {
  font-size: 16.5px;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.3;
  margin: 0;
}

.role-subline-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  font-size: 12.5px;
  color: var(--text-muted);
}

.company-entity {
  font-weight: 600;
  color: var(--text-secondary);
}

.meta-separator {
  color: var(--border-color);
  font-size: 10px;
}

.milestone-date-chip {
  font-weight: 700;
  color: var(--accent-color);
}

html.dark .milestone-date-chip {
  color: #5aa7ea;
}

.role-status-col {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
}

.status-badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 10px;
  border-radius: var(--radius-pill);
  font-size: 11px;
  font-weight: 700;
  background: var(--border-subtle);
  color: var(--text-muted);
}

.status-badge-pill.live-pill {
  background: rgba(16, 185, 129, 0.12);
  color: #10b981;
  border: 1px solid rgba(16, 185, 129, 0.28);
}

.live-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 6px rgba(16, 185, 129, 0.8);
}

.status-badge-pill.completed-pill {
  background: rgba(38, 92, 145, 0.12);
  color: var(--accent-color);
  border: 1px solid rgba(38, 92, 145, 0.24);
}

html.dark .status-badge-pill.completed-pill {
  color: #72b2ec;
}

.status-badge-pill.contract-pill {
  background: rgba(124, 58, 237, 0.12);
  color: #8b5cf6;
  border: 1px solid rgba(124, 58, 237, 0.24);
}

.duration-counter {
  font-size: 11px;
  color: var(--text-muted);
  font-weight: 500;
}

/* Role Executive Summary - Scannable & Crisp */
.role-card-summary {
  font-size: 13.5px;
  color: var(--text-secondary);
  line-height: 1.6;
  margin: 0;
}

/* High-Impact Quick Metrics */
.role-impact-metrics {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.impact-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  background: var(--bg-card-subtle);
  border: 1px solid var(--border-subtle);
  font-size: 11.5px;
  font-weight: 600;
  color: var(--text-secondary);
  transition: border-color 0.2s ease, background-color 0.2s ease;
}

.impact-chip:hover {
  border-color: var(--border-hover);
  background: var(--bg-hover);
}

.impact-chip svg {
  color: var(--accent-color);
  flex-shrink: 0;
}

html.dark .impact-chip svg {
  color: #5aa7ea;
}

/* Role Tech Stack Tags */
.role-tech-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 1px;
}

.tech-tag-badge {
  padding: 3px 9px;
  background: var(--bg-card-subtle);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-pill);
  font-size: 11px;
  font-weight: 600;
  color: var(--text-muted);
  transition: all 0.2s ease;
}

.tech-tag-badge.primary {
  border-color: rgba(38, 92, 145, 0.4);
  color: var(--text-primary);
  font-weight: 700;
}

.tech-tag-badge:hover {
  background: var(--bg-hover);
  border-color: var(--border-hover);
  color: var(--text-primary);
}

/* Deep-Dive Collapsible Accordion Action Bar */
.career-accordion-wrap {
  margin-top: 2px;
}

.career-deep-dive-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  gap: 10px;
  background: var(--bg-card-subtle);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  font-size: 12.5px;
  font-weight: 600;
  color: var(--accent-color);
  cursor: pointer;
  padding: 8px 14px;
  transition: all 0.24s cubic-bezier(0.16, 1, 0.3, 1);
  user-select: none;
  text-decoration: none;
}

html.dark .career-deep-dive-toggle {
  color: #5aa7ea;
  background: rgba(255, 255, 255, 0.02);
  border-color: rgba(255, 255, 255, 0.08);
}

.career-deep-dive-toggle:hover {
  background: var(--bg-hover);
  border-color: var(--accent-color);
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.toggle-lead-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-color);
  flex-shrink: 0;
}

html.dark .toggle-lead-icon {
  color: #5aa7ea;
}

.toggle-text {
  flex: 1;
  text-align: left;
}

html[dir="rtl"] .toggle-text {
  text-align: right;
}

.toggle-icon-chevron {
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  flex-shrink: 0;
}

.career-deep-dive-toggle[aria-expanded="true"] .toggle-icon-chevron {
  transform: rotate(180deg);
}

/* Deep-Dive Collapsible Drawer */
.career-deepdive-drawer {
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transition: max-height 0.45s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.35s ease;
}

.career-deepdive-drawer.open {
  max-height: 1200px;
  opacity: 1;
  margin-top: 14px;
}

.deepdive-inner-card {
  background: var(--bg-card-subtle);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 18px 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.deepdive-section-heading {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-muted);
  margin: 0 0 10px 0;
}

.deepdive-section-heading svg {
  color: var(--accent-color);
}

html.dark .deepdive-section-heading svg {
  color: #5aa7ea;
}

/* Structured Bullet Achievements inside Drawer */
.role-card-bullets {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 9px;
  padding: 0;
  margin: 0;
}

.role-card-bullets li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.5;
}

.bullet-icon-box {
  width: 26px;
  height: 26px;
  border-radius: 6px;
  background: rgba(38, 92, 145, 0.08);
  border: 1px solid rgba(38, 92, 145, 0.18);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--accent-color);
  margin-top: 1px;
  transition: all 0.2s ease;
}

html.dark .bullet-icon-box {
  background: rgba(90, 167, 234, 0.12);
  border-color: rgba(90, 167, 234, 0.25);
  color: #72b2ec;
}

.role-card-bullets li:hover .bullet-icon-box {
  background: var(--accent-color);
  color: #ffffff;
  border-color: var(--accent-color);
  transform: scale(1.06);
}

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

/* Deep-Dive Grid */
.deepdive-inner-card .deepdive-section+.deepdive-section {
  border-top: 1px solid var(--border-color);
  padding-top: 14px;
}

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

.deepdive-col-title {
  font-size: 12px;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0 0 5px 0;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.deepdive-col p {
  font-size: 12.5px;
  color: var(--text-secondary);
  line-height: 1.55;
  margin: 0;
}

/* Shipped Deliverables Section inside Drawer */
.deepdive-inner-card .career-shipped-section {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-top: 14px;
  border-top: 1px solid var(--border-color);
}

.shipped-label {
  font-size: 11.5px;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.shipped-chips-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.shipped-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 12px;
  border-radius: var(--radius-pill);
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  font-size: 12px;
  font-weight: 600;
  color: var(--text-primary);
  text-decoration: none;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.shipped-chip-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent-color);
}

.shipped-chip-arrow {
  font-size: 12px;
  color: var(--text-muted);
  transition: transform 0.2s ease;
}

.shipped-chip:hover {
  border-color: var(--accent-color);
  background: var(--bg-hover);
  transform: translateY(-1px);
}

.shipped-chip:hover .shipped-chip-arrow {
  transform: translate(2px, -2px);
  color: var(--accent-color);
}

/* Academic & Ecosystem Foundations Section - Prominent Timeline Architecture */
.career-foundations-section {
  margin-top: 10px;
  margin-bottom: 48px;
}

.foundations-header.section-prominent-header {
  margin-top: 36px;
  margin-bottom: 26px;
  padding-top: 32px;
  border-top: 1px solid var(--border-color);
}

.foundations-header .header-tag-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.foundations-main-title {
  font-size: clamp(22px, 2.5vw, 30px);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.25;
  color: var(--text-primary);
  margin: 6px 0 8px 0;
}

.foundations-subtitle {
  font-size: 14px;
  color: var(--text-muted);
  max-width: 760px;
  margin: 0;
  line-height: 1.6;
}

.foundations-timeline-track {
  display: flex;
  flex-direction: column;
  gap: 28px;
  position: relative;
  margin-bottom: 36px;
}

/* Capstone Project Showcase Box inside Academic Degree Card */
.capstone-project-box {
  margin-top: 14px;
  padding: 18px 20px;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, rgba(38, 92, 145, 0.06) 0%, rgba(38, 92, 145, 0.02) 100%);
  border: 1px solid rgba(38, 92, 145, 0.22);
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

html.dark .capstone-project-box {
  background: linear-gradient(135deg, rgba(90, 167, 234, 0.09) 0%, rgba(255, 255, 255, 0.02) 100%);
  border-color: rgba(90, 167, 234, 0.28);
}

.capstone-project-box:hover {
  border-color: var(--accent-color);
  box-shadow: 0 4px 20px rgba(38, 92, 145, 0.12);
  transform: translateY(-1px);
}

.capstone-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.capstone-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 11px;
  border-radius: var(--radius-pill);
  font-size: 11.5px;
  font-weight: 700;
  background: rgba(16, 185, 129, 0.12);
  color: #10b981;
  border: 1px solid rgba(16, 185, 129, 0.28);
}

.capstone-route-indicator {
  font-size: 11.5px;
  font-weight: 600;
  color: var(--text-muted);
  font-family: var(--font-mono, monospace);
  letter-spacing: 0.02em;
}

.capstone-content-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
}

.capstone-details {
  flex: 1;
  min-width: 280px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.capstone-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0;
  line-height: 1.35;
}

.capstone-summary {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.55;
  margin: 0;
}

.capstone-metrics-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 4px;
}

.capstone-metric-chip {
  font-size: 11px;
  font-weight: 600;
  color: var(--accent-color);
  background: var(--bg-card);
  padding: 3px 8px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-color);
}

html.dark .capstone-metric-chip {
  color: #72b2ec;
}

.capstone-cta-col {
  flex-shrink: 0;
}

.capstone-launch-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 18px;
  border-radius: var(--radius-pill);
  font-size: 12.5px;
  font-weight: 700;
  background: var(--accent-color);
  color: #ffffff;
  text-decoration: none;
  transition: all 0.22s ease;
  box-shadow: 0 2px 8px rgba(38, 92, 145, 0.25);
  white-space: nowrap;
}

.capstone-launch-btn:hover {
  background: #1b4b7a;
  transform: translateY(-1px);
  box-shadow: 0 5px 16px rgba(38, 92, 145, 0.4);
}

html.dark .capstone-launch-btn {
  background: var(--verified-color);
}

html.dark .capstone-launch-btn:hover {
  background: var(--accent-color);
}

html[dir="rtl"] .capstone-launch-btn svg {
  transform: scaleX(-1);
}

html[dir="rtl"] .header-tag-pill svg {
  margin-right: 0 !important;
  margin-left: 5px !important;
}

@media (max-width: 768px) {
  .capstone-content-row {
    flex-direction: column;
    align-items: stretch;
    gap: 14px;
  }

  .capstone-launch-btn {
    justify-content: center;
    width: 100%;
  }
}

/* Mentorship & Client Endorsements */
.endorsement-card {
  padding: 26px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  box-shadow: var(--card-shadow);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 16px;
  position: relative;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.endorsement-card:hover {
  transform: translateY(-2px);
  border-color: var(--border-hover);
  box-shadow: var(--card-shadow-hover);
}

.endorsement-quote-icon {
  font-size: 32px;
  line-height: 1;
  color: var(--accent-color);
  opacity: 0.3;
  font-family: Georgia, serif;
}

.endorsement-quote-text {
  font-size: 13.5px;
  color: var(--text-secondary);
  line-height: 1.65;
  font-style: italic;
}

.endorsement-author-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--border-subtle);
}

.author-avatar-chip {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--bg-card-subtle);
  border: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  flex-shrink: 0;
}

.author-info {
  display: flex;
  flex-direction: column;
}

.author-name {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-primary);
}

.author-role {
  font-size: 11.5px;
  color: var(--text-muted);
}

/* High-Converting Career Call-to-Action Banner */
.career-cta-banner {
  background: linear-gradient(135deg, var(--bg-card) 0%, var(--bg-card-subtle) 100%);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 36px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 24px;
  box-shadow: var(--card-shadow);
  position: relative;
  overflow: hidden;
}

.career-cta-banner::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: linear-gradient(180deg, var(--accent-color), #265C91);
}

.cta-banner-content {
  flex: 1;
  min-width: 300px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.cta-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 700;
  color: #10b981;
}

.cta-beacon-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 6px rgba(16, 185, 129, 0.8);
}

.cta-title {
  font-size: 20px;
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1.3;
}

.cta-description {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.55;
}

.cta-banner-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.career-cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 22px;
  border-radius: var(--radius-pill);
  font-weight: 700;
  font-size: 13.5px;
  text-decoration: none;
  background: var(--accent-color);
  color: #ffffff;
  box-shadow: 0 4px 14px var(--accent-glow);
  transition: all 0.25s ease;
}

.career-cta-btn:hover {
  background: #265C91;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(38, 92, 145, 0.4);
}

.career-cta-cv {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: var(--radius-pill);
  font-weight: 600;
  font-size: 13.5px;
  text-decoration: none;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  transition: all 0.25s ease;
}

.career-cta-cv:hover {
  background: var(--bg-hover);
  border-color: var(--border-hover);
  transform: translateY(-2px);
}

/* RTL Layout Enhancements for Career View */
html[dir="rtl"] .career-milestone-node {
  grid-template-columns: 1fr 48px;
}

html[dir="rtl"] .career-milestone-node .milestone-spine {
  grid-column: 2;
  grid-row: 1;
}

html[dir="rtl"] .career-milestone-node .career-role-card {
  grid-column: 1;
  grid-row: 1;
}

html[dir="rtl"] .career-cta-banner::before {
  left: auto;
  right: 0;
}

html[dir="rtl"] .shipped-chip-arrow {
  transform: scaleX(-1);
}

html[dir="rtl"] .shipped-chip:hover .shipped-chip-arrow {
  transform: scaleX(-1) translate(-2px, -2px);
}

html[dir="rtl"] .role-status-col {
  align-items: flex-start;
}

/* Responsive Rules for Career View */
@media (max-width: 860px) {
  .career-milestone-node {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .milestone-spine {
    display: none;
  }

  html[dir="rtl"] .career-milestone-node {
    grid-template-columns: 1fr;
  }

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

  .career-metrics-dashboard {
    grid-template-columns: repeat(2, 1fr);
  }

  .foundations-grid,
  .endorsements-grid {
    grid-template-columns: 1fr;
  }

  .career-cta-banner {
    padding: 24px;
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 540px) {
  .career-metrics-dashboard {
    grid-template-columns: 1fr;
  }

  .career-role-card {
    padding: 16px;
    gap: 11px;
  }

  .deepdive-inner-card {
    padding: 14px 12px;
  }

  .career-header-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .career-action-pill {
    justify-content: center;
  }

  .cta-banner-actions {
    width: 100%;
    flex-direction: column;
    align-items: stretch;
  }

  .career-cta-btn,
  .career-cta-cv {
    justify-content: center;
  }
}

/* ==========================================================================
   VIEW 4: DEDICATED PROJECTS SHOWCASE PAGE
   ========================================================================== */
.project-filter-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 20px;
}

.filter-btn {
  padding: 8px 18px;
  border-radius: var(--radius-pill);
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
  cursor: pointer;
  transform: translateY(0);
  transition: transform 0.24s cubic-bezier(0.16, 1, 0.3, 1),
    background 0.24s ease,
    color 0.24s ease,
    border-color 0.24s ease,
    box-shadow 0.24s ease;
}

.filter-btn:hover:not(.active) {
  background: var(--bg-hover);
  color: var(--text-primary);
  border-color: var(--accent-color);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(17, 50, 85, 0.08);
}

.filter-btn.active {
  background: linear-gradient(135deg, #113255 0%, #1C477A 100%);
  color: #ffffff;
  border-color: transparent;
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(17, 50, 85, 0.28);
}

html.dark .filter-btn.active {
  background: linear-gradient(135deg, #1C477A 0%, #265C91 100%);
  box-shadow: 0 6px 20px rgba(38, 92, 145, 0.4);
}

.filter-btn:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px var(--accent-light);
}

.projects-spa-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(420px, 1fr));
  gap: 28px;
  align-items: start;
  perspective: 1200px;
}

.project-full-card {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--card-shadow);
  display: flex;
  flex-direction: column;
  contain: content;
  transform-style: preserve-3d;
  will-change: transform, box-shadow;
  transition: transform 0.32s cubic-bezier(0.16, 1, 0.3, 1),
    box-shadow 0.32s cubic-bezier(0.16, 1, 0.3, 1),
    border-color 0.25s ease,
    opacity 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  cursor: pointer;
}

.project-full-card .card-spotlight {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(circle at var(--mouse-x, 50%) var(--mouse-y, 50%),
      var(--spotlight-color),
      transparent 70%);
  opacity: 0;
  transition: opacity 0.35s ease;
  z-index: 4;
  border-radius: var(--radius-lg);
}

.project-full-card:hover .card-spotlight {
  opacity: 1;
}

.project-full-card:hover {
  border-color: var(--border-hover);
  box-shadow: 0 20px 42px -12px rgba(17, 50, 85, 0.16), 0 0 0 1px var(--border-hover);
}

html.dark .project-full-card:hover {
  box-shadow: 0 24px 48px -12px rgba(0, 0, 0, 0.6), 0 0 25px rgba(38, 92, 145, 0.22), 0 0 0 1px var(--border-hover);
}

.project-full-card:focus-visible {
  outline: none;
  border-color: var(--accent-color);
  box-shadow: 0 0 0 3px var(--accent-light), var(--card-shadow-hover);
  transform: translateY(-4px);
}

/* Category Filter Motion States */
.project-full-card.filtering-out {
  opacity: 0 !important;
  transform: scale(0.95) translateY(12px) !important;
  pointer-events: none;
  transition: opacity 0.22s cubic-bezier(0.16, 1, 0.3, 1), transform 0.22s cubic-bezier(0.16, 1, 0.3, 1);
}

.project-full-card.filtering-hidden {
  display: none !important;
}

.project-full-card.filtering-in {
  animation: projectCardEnter 0.38s cubic-bezier(0.16, 1, 0.3, 1) both;
}

@keyframes projectCardEnter {
  0% {
    opacity: 0;
    transform: scale(0.95) translateY(16px);
  }
  100% {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

.project-preview-wrap {
  position: relative;
  width: 100%;
  height: 220px;
  background: #0c1117;
  overflow: hidden;
  border-bottom: 1px solid var(--border-subtle);
}

.project-preview-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: translateZ(0);
  will-change: transform;
  transition: transform 0.55s cubic-bezier(0.16, 1, 0.3, 1), filter 0.4s ease;
}

.project-full-card:hover .project-preview-wrap img {
  transform: scale(1.06) translateZ(0);
  filter: brightness(1.03);
}

.preview-overlay-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  padding: 5px 12px;
  background: rgba(12, 17, 23, 0.88);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: #ffffff;
  border-radius: var(--radius-pill);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.02em;
  border: 1px solid rgba(255, 255, 255, 0.18);
  z-index: 2;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.35);
  transition: transform 0.25s ease, border-color 0.25s ease;
}

.project-full-card:hover .preview-overlay-badge {
  border-color: rgba(255, 255, 255, 0.35);
  transform: translateY(-1px);
}

html[dir="rtl"] .preview-overlay-badge {
  right: auto;
  left: 12px;
}

/* Image Hover Overlay (View Project Action) */
.project-preview-hover-overlay {
  position: absolute;
  inset: 0;
  background: rgba(12, 17, 23, 0.62);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.28s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 3;
}

.project-full-card:hover .project-preview-hover-overlay {
  opacity: 1;
}

.btn-preview-action {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 22px;
  background: linear-gradient(135deg, #1C477A 0%, #265C91 100%);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: var(--radius-pill);
  font-size: 13px;
  font-weight: 700;
  box-shadow: 0 6px 20px rgba(17, 50, 85, 0.6);
  transform: translateY(8px) scale(0.96);
  transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1),
    background 0.2s ease,
    box-shadow 0.2s ease;
}

.btn-preview-action svg {
  transition: transform 0.24s cubic-bezier(0.16, 1, 0.3, 1);
}

.project-full-card:hover .btn-preview-action {
  transform: translateY(0) scale(1.02);
  box-shadow: 0 8px 24px rgba(17, 50, 85, 0.75);
}

.project-full-card:hover .btn-preview-action svg {
  transform: translate(3px, -3px);
}

html[dir="rtl"] .project-full-card:hover .btn-preview-action svg {
  transform: translate(-3px, -3px);
}

.project-info-wrap {
  position: relative;
  z-index: 2;
  padding: 22px 24px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.project-meta-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}

.project-type {
  font-size: 11.5px;
  font-weight: 700;
  color: var(--accent-color);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.project-year {
  font-size: 11.5px;
  color: var(--text-muted);
  font-weight: 500;
}

.project-heading {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 8px;
  line-height: 1.35;
  transition: color 0.2s ease;
}

.project-full-card:hover .project-heading {
  color: var(--accent-color);
}

.project-description {
  font-size: 13.5px;
  color: var(--text-secondary);
  line-height: 1.55;
  margin-bottom: 16px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Tech Stack SVG Icons Strip */
.project-tech-icons {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 18px;
  flex-wrap: wrap;
}

.tech-icon-item {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 9px;
  background: var(--bg-card-subtle);
  border: 1px solid var(--border-subtle);
  transition: transform 0.24s cubic-bezier(0.16, 1, 0.3, 1),
    border-color 0.2s ease,
    background 0.2s ease,
    box-shadow 0.2s ease;
}

.project-full-card:hover .tech-icon-item:hover {
  transform: translateY(-3px) scale(1.15);
  border-color: var(--accent-color);
  background: var(--accent-light);
  box-shadow: 0 4px 12px rgba(28, 71, 122, 0.18);
}

.tech-icon-svg {
  display: block;
}

/* Card Provenance Footer */
.project-card-footer {
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.project-origin-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 600;
  color: var(--text-muted);
  background: var(--bg-card-subtle);
  padding: 5px 12px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border-subtle);
  max-width: 82%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.project-full-card:hover .project-origin-pill {
  border-color: var(--border-hover);
}

.project-origin-pill .origin-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.card-arrow-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  color: var(--text-muted);
  background: var(--bg-card-subtle);
  border: 1px solid var(--border-subtle);
  transition: transform 0.24s cubic-bezier(0.16, 1, 0.3, 1),
    color 0.2s ease,
    border-color 0.2s ease,
    background 0.2s ease;
  flex-shrink: 0;
}

.project-full-card:hover .card-arrow-action {
  color: var(--accent-color);
  border-color: var(--accent-color);
  background: var(--accent-light);
  transform: translateX(4px) scale(1.08);
}

html[dir="rtl"] .project-full-card:hover .card-arrow-action {
  transform: translateX(-4px) scale(1.08);
}

/* ==========================================================================
   PROFILE PHOTO LIGHTBOX MODAL
   Distinctive Lightroom-grade Focus Presentation & Motion
   ========================================================================== */
.photo-lightbox-backdrop {
  position: fixed;
  inset: 0;
  z-index: 10005;
  background: rgba(8, 12, 18, 0.84);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.photo-lightbox-backdrop.open {
  opacity: 1;
  pointer-events: auto;
}

.photo-lightbox-card {
  position: relative;
  width: 100%;
  max-width: 440px;
  border-radius: 24px;
  overflow: hidden;
  background: var(--bg-card);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 28px 65px -12px rgba(0, 0, 0, 0.75), 0 0 45px rgba(38, 92, 145, 0.3);
  transform: scale(0.92) translateY(16px);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: transform;
}

html.dark .photo-lightbox-card {
  border: 1px solid rgba(38, 92, 145, 0.4);
}

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

.photo-lightbox-close-btn {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 10;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(12, 17, 23, 0.65);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.photo-lightbox-close-btn:hover {
  background: #265C91;
  border-color: rgba(255, 255, 255, 0.4);
  transform: scale(1.08) rotate(90deg);
  box-shadow: 0 6px 18px rgba(38, 92, 145, 0.5);
}

.photo-lightbox-media-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background-color: #0c1117;
}

.photo-lightbox-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  user-select: none;
  -webkit-user-select: none;
}

.photo-lightbox-gradient {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(to top, rgba(10, 14, 20, 0.95) 0%, rgba(10, 14, 20, 0.55) 32%, transparent 68%);
}

.photo-lightbox-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 24px 22px 20px 22px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  z-index: 2;
  pointer-events: none;
}

.caption-name-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.caption-name {
  font-size: 18px;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: -0.01em;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.6);
}

.caption-verified-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--verified-color);
  filter: drop-shadow(0 0 6px var(--accent-glow));
}

.caption-title-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 7px;
  font-size: 13px;
  color: rgba(240, 244, 249, 0.88);
  font-weight: 500;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.7);
}

.caption-role {
  color: #c5d3e2;
  font-weight: 500;
}

.caption-dot-sep {
  color: rgba(255, 255, 255, 0.4);
  font-size: 11px;
}

.caption-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11.5px;
  font-weight: 600;
  color: #34d399;
  background: rgba(16, 185, 129, 0.14);
  border: 1px solid rgba(16, 185, 129, 0.28);
  padding: 2px 8px;
  border-radius: var(--radius-pill);
  backdrop-filter: blur(6px);
}

.status-pulse-dot {
  width: 6.5px;
  height: 6.5px;
  border-radius: 50%;
  background-color: #10b981;
  box-shadow: 0 0 8px #10b981;
  animation: pulseStatus 2s infinite;
}

@keyframes pulseStatus {
  0% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
  }

  70% {
    transform: scale(1);
    box-shadow: 0 0 0 6px rgba(16, 185, 129, 0);
  }

  100% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0);
  }
}

/* RTL Support for Photo Lightbox */
html[dir="rtl"] .photo-lightbox-close-btn {
  right: auto;
  left: 16px;
}

html[dir="rtl"] .photo-lightbox-caption {
  text-align: right;
  align-items: flex-start;
}

html[dir="rtl"] .caption-name-row {
  flex-direction: row;
}

html[dir="rtl"] .caption-title-row {
  flex-direction: row;
}

@media (max-width: 480px) {
  .photo-lightbox-card {
    max-width: 92vw;
    border-radius: 20px;
  }

  .photo-lightbox-caption {
    padding: 16px;
  }

  .caption-name {
    font-size: 16.5px;
  }

  .caption-title-row {
    font-size: 12px;
  }
}

/* ==========================================================================
   INTERACTIVE QUICK PREVIEW MODAL
   ========================================================================== */
.quick-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: rgba(10, 14, 20, 0.75);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

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

.quick-modal-dialog {
  position: relative;
  width: 100%;
  max-width: 640px;
  max-height: 90vh;
  overflow-y: auto;
  overscroll-behavior: contain;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(38, 92, 145, 0.2);
  display: flex;
  flex-direction: column;
  transform: scale(0.95) translateY(10px);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

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

.quick-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px 12px;
  border-bottom: 1px solid var(--border-subtle);
  position: sticky;
  top: 0;
  background: var(--bg-card);
  z-index: 5;
}

.quick-modal-badges {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.quick-badge {
  font-size: 11px;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: var(--radius-pill);
}

.quick-badge.category-badge {
  background: var(--accent-light);
  color: var(--accent-color);
  border: 1px solid rgba(38, 92, 145, 0.25);
}

.quick-badge.status-badge {
  background: var(--bg-card-subtle);
  color: var(--text-secondary);
  border: 1px solid var(--border-subtle);
}

.quick-badge.year-badge {
  background: var(--bg-card-subtle);
  color: var(--text-muted);
  border: 1px solid var(--border-subtle);
}

.quick-modal-close-btn {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--bg-card-subtle);
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.quick-modal-close-btn:hover {
  background: var(--border-subtle);
  color: var(--text-primary);
  transform: rotate(90deg);
}

.quick-modal-body {
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.quick-modal-media-wrap {
  position: relative;
  width: 100%;
  height: 220px;
  border-radius: 14px;
  overflow: hidden;
  background: #000;
  border: 1px solid var(--border-subtle);
}

.quick-modal-media-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.quick-modal-media-gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0) 60%, rgba(12, 17, 23, 0.7) 100%);
}

.quick-modal-info {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.quick-modal-title {
  font-size: 21px;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.3;
}

.quick-modal-desc {
  font-size: 13.5px;
  color: var(--text-secondary);
  line-height: 1.6;
}

.quick-modal-provenance {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-secondary);
  background: var(--bg-card-subtle);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-pill);
  padding: 5px 12px;
  width: fit-content;
}

.quick-modal-metrics-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.quick-metric-card,
.quick-metric-chip {
  padding: 10px;
  border-radius: 12px;
  background: var(--bg-card-subtle);
  border: 1px solid var(--border-subtle);
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.quick-metric-val {
  font-size: 16px;
  font-weight: 800;
  color: var(--accent-color);
}

.quick-metric-label {
  font-size: 11px;
  color: var(--text-muted);
  font-weight: 500;
}

.quick-modal-section {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.quick-modal-section-title {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--accent-color);
}

.quick-modal-highlights-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  background: var(--bg-card-subtle);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 10px 14px;
}

.quick-highlight-item {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 12.5px;
  color: var(--text-secondary);
  line-height: 1.45;
}

.quick-highlight-item .check,
.quick-highlight-item .quick-highlight-check {
  color: #10B981;
  font-weight: 700;
  flex-shrink: 0;
}

.quick-modal-tech-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.quick-tech-tag {
  padding: 4px 10px;
  background: var(--border-subtle);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-pill);
  font-size: 11.5px;
  font-weight: 600;
  color: var(--text-secondary);
}

.quick-modal-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  padding: 14px 20px;
  border-top: 1px solid var(--border-subtle);
  background: var(--bg-card-subtle);
  border-bottom-left-radius: 20px;
  border-bottom-right-radius: 20px;
}

.quick-modal-links {
  display: flex;
  align-items: center;
  gap: 10px;
}

.btn-modal-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-secondary);
  padding: 6px 12px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border-color);
  background: var(--bg-card);
  transition: all 0.2s ease;
  text-decoration: none;
}

.btn-modal-link:hover {
  color: var(--accent-color);
  border-color: var(--accent-color);
}

.quick-modal-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.btn-modal-dismiss {
  padding: 8px 16px;
  border-radius: var(--radius-pill);
  background: transparent;
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-modal-dismiss:hover {
  background: var(--border-subtle);
  color: var(--text-primary);
}

.btn-modal-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 18px;
  background: linear-gradient(135deg, #1C477A 0%, #265C91 100%);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius-pill);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(28, 71, 122, 0.35);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn-modal-primary:hover {
  background: linear-gradient(135deg, #225694 0%, #2e6fae 100%);
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(38, 92, 145, 0.5);
}

.btn-modal-primary svg {
  transition: transform 0.25s ease;
}

.btn-modal-primary:hover svg {
  transform: translateX(3px);
}

html[dir="rtl"] .btn-modal-primary:hover svg {
  transform: translateX(-3px);
}

@media (max-width: 640px) {
  .quick-modal-metrics-grid {
    grid-template-columns: 1fr;
  }

  .quick-modal-footer {
    flex-direction: column-reverse;
    align-items: stretch;
  }

  .quick-modal-actions {
    width: 100%;
    justify-content: space-between;
  }

  .btn-modal-primary {
    flex: 1;
    justify-content: center;
  }
}

/* ==========================================================================
   VIEW 5: DEDICATED ACHIEVEMENTS & CERTIFICATIONS (Modern Grid & Lightbox)
   ========================================================================== */
.achievements-spa-grid,
.cert-modern-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px;
  width: 100%;
}

.cert-modern-card {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: var(--card-shadow);
  transform-style: preserve-3d;
  will-change: transform, box-shadow;
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1),
    border-color 0.25s ease,
    box-shadow 0.35s ease;
  cursor: pointer;
  user-select: none;
  --spotlight-color: rgba(38, 92, 145, 0.12);
}

/* Dynamic Radial Mouse Spotlight */
.cert-modern-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background: radial-gradient(
    circle at var(--mouse-x, 50%) var(--mouse-y, 50%),
    var(--spotlight-color),
    transparent 70%
  );
  opacity: 0;
  transition: opacity 0.35s ease;
  z-index: 1;
}

.cert-modern-card:hover::before {
  opacity: 1;
}

.cert-modern-card:hover {
  transform: translateY(-6px);
  border-color: var(--border-hover);
  box-shadow: var(--card-shadow-hover);
}

html.dark .cert-modern-card {
  --spotlight-color: rgba(56, 189, 248, 0.16);
  box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.45);
}

html.dark .cert-modern-card:hover {
  border-color: rgba(56, 189, 248, 0.5);
  box-shadow: 0 20px 42px -12px rgba(0, 0, 0, 0.7),
    0 0 28px -4px rgba(56, 189, 248, 0.28);
}

.cert-modern-card:focus-visible {
  outline: 2px solid var(--accent-color);
  outline-offset: 3px;
}

/* Staggered Cascade Entrance for Achievements Cards */
@keyframes certCardCascadeIn {
  0% {
    opacity: 0;
    transform: translateY(24px) scale(0.97);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.page-view.active .cert-modern-card {
  animation: certCardCascadeIn 0.52s cubic-bezier(0.16, 1, 0.3, 1) backwards;
}

.page-view.active .cert-modern-card:nth-child(1) { animation-delay: 0.04s; }
.page-view.active .cert-modern-card:nth-child(2) { animation-delay: 0.09s; }
.page-view.active .cert-modern-card:nth-child(3) { animation-delay: 0.14s; }
.page-view.active .cert-modern-card:nth-child(4) { animation-delay: 0.19s; }
.page-view.active .cert-modern-card:nth-child(5) { animation-delay: 0.24s; }
.page-view.active .cert-modern-card:nth-child(6) { animation-delay: 0.29s; }

.cert-media-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 10.5;
  background: var(--bg-card-subtle);
  overflow: hidden;
  border-bottom: 1px solid var(--border-color);
  z-index: 2;
}

html.dark .cert-media-wrap {
  background: #080c14;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.cert-media-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transform: translateZ(0);
  will-change: transform;
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.cert-modern-card:hover .cert-media-wrap img {
  transform: scale(1.06);
}

.cert-hover-scrim {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  pointer-events: none;
}

html.dark .cert-hover-scrim {
  background: rgba(8, 14, 24, 0.72);
}

.cert-modern-card:hover .cert-hover-scrim {
  opacity: 1;
}

.cert-view-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 20px;
  background: #ffffff;
  color: #0c1117;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.35);
  transform: translateY(8px) scale(0.94);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), background 0.2s ease;
}

.cert-modern-card:hover .cert-view-btn {
  transform: translateY(0) scale(1);
}

.cert-view-btn:hover {
  background: #f1f5f9;
}

.cert-view-btn svg {
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.cert-modern-card:hover .cert-view-btn svg {
  transform: translate(2px, -2px);
}

[dir="rtl"] .cert-modern-card:hover .cert-view-btn svg {
  transform: translate(-2px, -2px);
}

.cert-content {
  padding: 20px 22px 18px;
  display: flex;
  flex-direction: column;
  flex: 1;
  position: relative;
  z-index: 2;
}

.cert-title {
  font-size: 16.5px;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.4;
  margin-bottom: 6px;
  letter-spacing: -0.01em;
  transition: color 0.25s ease;
}

.cert-modern-card:hover .cert-title {
  color: var(--accent-color);
}

html.dark .cert-modern-card:hover .cert-title {
  color: var(--verified-color);
}

.cert-org {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-secondary);
  margin-bottom: 14px;
  line-height: 1.4;
}

.cert-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}

.cert-tag {
  display: inline-flex;
  align-items: center;
  padding: 4px 12px;
  background: var(--bg-card-subtle);
  border: 1px solid var(--border-color);
  border-radius: 999px;
  font-size: 11.5px;
  font-weight: 500;
  color: var(--text-secondary);
  transition: border-color 0.25s, color 0.25s, transform 0.25s, background 0.25s;
}

html.dark .cert-tag {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-muted);
}

.cert-modern-card:hover .cert-tag {
  border-color: var(--border-hover);
}

html.dark .cert-modern-card:hover .cert-tag {
  border-color: rgba(255, 255, 255, 0.22);
  color: var(--text-secondary);
}

.cert-tag:hover {
  transform: translateY(-1px);
  border-color: var(--accent-color) !important;
  color: var(--text-primary) !important;
}

.cert-footer-meta {
  margin-top: auto;
  padding-top: 13px;
  border-top: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

html.dark .cert-footer-meta {
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.cert-issue-date {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
  transition: color 0.25s ease;
}

.cert-modern-card:hover .cert-issue-date {
  color: var(--text-secondary);
}

/* ==========================================================================
   CERTIFICATE DETAIL LIGHTBOX MODAL
   ========================================================================== */
.cert-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.65);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  z-index: 10004;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s cubic-bezier(0.16, 1, 0.3, 1),
    visibility 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

html.dark .cert-modal-backdrop {
  background: rgba(6, 10, 16, 0.86);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.cert-modal-backdrop.active {
  opacity: 1;
  visibility: visible;
}

.cert-modal-dialog {
  position: relative;
  width: 100%;
  max-width: 1040px;
  max-height: 88vh;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 24px;
  box-shadow: 0 25px 65px -15px rgba(28, 35, 43, 0.22),
    0 0 0 1px rgba(28, 71, 122, 0.08);
  display: grid;
  grid-template-columns: 1.45fr 1fr;
  overflow: hidden;
  transform: scale(0.94);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

html.dark .cert-modal-dialog {
  background: #0d1522;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 30px 70px -15px rgba(0, 0, 0, 0.75),
    0 0 40px -10px rgba(38, 92, 145, 0.25);
}

.cert-modal-backdrop.active .cert-modal-dialog {
  transform: scale(1);
}

.cert-modal-close-btn {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--bg-card-subtle);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  transition: background 0.2s, transform 0.2s, border-color 0.2s;
}

.cert-modal-close-btn:hover {
  background: var(--bg-hover);
  border-color: var(--border-hover);
  transform: rotate(90deg);
}

html.dark .cert-modal-close-btn {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: var(--text-primary);
}

html.dark .cert-modal-close-btn:hover {
  background: rgba(255, 255, 255, 0.18);
  border-color: rgba(255, 255, 255, 0.3);
}

[dir="rtl"] .cert-modal-close-btn {
  right: auto;
  left: 18px;
}

.cert-modal-preview-pane {
  background: #f1f5f9;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px 24px;
  overflow: hidden;
  border-right: 1px solid var(--border-color);
}

html.dark .cert-modal-preview-pane {
  background: #070a10;
  border-right: 1px solid rgba(255, 255, 255, 0.07);
}

[dir="rtl"] .cert-modal-preview-pane {
  border-right: none;
  border-left: 1px solid var(--border-color);
}

html.dark [dir="rtl"] .cert-modal-preview-pane {
  border-left: 1px solid rgba(255, 255, 255, 0.07);
}

.cert-modal-frame {
  width: 100%;
  max-width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
  background: #ffffff;
}

html.dark .cert-modal-frame {
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.5);
}

.cert-modal-img {
  width: 100%;
  height: auto;
  max-height: 72vh;
  object-fit: contain;
  display: block;
}

.cert-modal-sidebar-pane {
  padding: 36px 32px 32px;
  display: flex;
  flex-direction: column;
  gap: 22px;
  overflow-y: auto;
  background: var(--bg-card);
}

html.dark .cert-modal-sidebar-pane {
  background: transparent;
}

.cert-modal-header-block {
  padding-right: 36px;
}

[dir="rtl"] .cert-modal-header-block {
  padding-right: 0;
  padding-left: 36px;
}

.cert-modal-title {
  font-size: 21px;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.35;
  margin-bottom: 8px;
}

.cert-modal-issuer {
  font-size: 14.5px;
  font-weight: 500;
  color: var(--text-secondary);
}

.cert-modal-meta-grid {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding-top: 4px;
}

.cert-meta-item {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.cert-meta-label {
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.cert-meta-val {
  font-size: 14.5px;
  font-weight: 600;
  color: var(--text-primary);
}

.cert-modal-actions-wrap {
  padding-top: 4px;
}

.cert-modal-url-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 22px;
  background: #111827;
  color: #ffffff;
  border-radius: 999px;
  font-size: 13.5px;
  font-weight: 700;
  text-decoration: none;
  transition: background 0.2s, transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 4px 14px rgba(17, 24, 39, 0.2);
  width: fit-content;
}

.cert-modal-url-btn:hover {
  background: #1f2937;
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(17, 24, 39, 0.3);
}

html.dark .cert-modal-url-btn {
  background: #ffffff;
  color: #0c1117;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);
}

html.dark .cert-modal-url-btn:hover {
  background: #e2e8f0;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.35);
}

.cert-modal-career-block {
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px solid var(--border-color);
}

html.dark .cert-modal-career-block {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.cert-career-header {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 10px;
  color: var(--text-muted);
}

.cert-career-label {
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.cert-career-card {
  background: var(--bg-card-subtle);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

html.dark .cert-career-card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.cert-career-role {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary);
}

.cert-career-desc {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.5;
}

/* Responsive Grid & Modal */
@media (max-width: 1080px) {

  .achievements-spa-grid,
  .cert-modern-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
  }
}

@media (max-width: 880px) {
  .cert-modal-dialog {
    grid-template-columns: 1fr;
    max-height: 92vh;
    overflow-y: auto;
  }

  .cert-modal-preview-pane {
    border-right: none;
    border-bottom: 1px solid var(--border-color);
    padding: 24px 18px;
  }

  html.dark .cert-modal-preview-pane {
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  }

  [dir="rtl"] .cert-modal-preview-pane {
    border-left: none;
    border-bottom: 1px solid var(--border-color);
  }

  html.dark [dir="rtl"] .cert-modal-preview-pane {
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  }

  .cert-modal-img {
    max-height: 42vh;
  }

  .cert-modal-sidebar-pane {
    padding: 24px 20px 24px;
  }
}

@media (max-width: 680px) {

  .achievements-spa-grid,
  .cert-modern-grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }
}

/* ==========================================================================
   VIEW 6: DEDICATED CONTACT PORTAL (Bento Cards & Brand Hovers)
   ========================================================================== */
.contact-bento-container {
  display: grid;
  grid-template-columns: 1fr 1.28fr;
  gap: 32px;
  width: 100%;
}

.contact-bento-sidebar {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* 1. Live Availability & Response Card */
.contact-status-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--card-shadow);
  display: flex;
  flex-direction: column;
  gap: 12px;
  transform-style: preserve-3d;
  will-change: transform, box-shadow;
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1),
    border-color 0.25s ease,
    box-shadow 0.35s ease;
  position: relative;
  overflow: hidden;
  --spotlight-color: rgba(16, 185, 129, 0.10);
}

html.dark .contact-status-card {
  --spotlight-color: rgba(16, 185, 129, 0.16);
}

.contact-status-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background: radial-gradient(
    circle at var(--mouse-x, 50%) var(--mouse-y, 50%),
    var(--spotlight-color),
    transparent 70%
  );
  opacity: 0;
  transition: opacity 0.35s ease;
  z-index: 1;
}

.contact-status-card:hover::before {
  opacity: 1;
}

.contact-status-card:hover {
  transform: translateY(-4px);
  border-color: rgba(16, 185, 129, 0.5);
  box-shadow: 0 16px 36px -8px rgba(16, 185, 129, 0.18), var(--card-shadow);
}

.status-indicator-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
  position: relative;
  z-index: 2;
}

.status-badge-text {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.01em;
}

.status-sub-text {
  font-size: 13.5px;
  color: var(--text-secondary);
  line-height: 1.55;
  position: relative;
  z-index: 2;
}

.status-meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  padding-top: 8px;
  border-top: 1px solid var(--border-color);
  position: relative;
  z-index: 2;
}

.status-meta-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
}

.status-meta-item svg {
  color: var(--accent-color);
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.contact-status-card:hover .status-meta-item svg {
  transform: scale(1.18);
}

/* 2. Direct Communication Cards Stack */
.contact-methods-stack {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.method-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 18px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  box-shadow: var(--card-shadow);
  text-decoration: none;
  color: inherit;
  transform-style: preserve-3d;
  will-change: transform, box-shadow;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1),
    border-color 0.25s ease,
    box-shadow 0.3s ease,
    background 0.25s ease;
  position: relative;
  overflow: hidden;
  --spotlight-color: rgba(38, 92, 145, 0.10);
}

.method-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background: radial-gradient(
    circle at var(--mouse-x, 50%) var(--mouse-y, 50%),
    var(--spotlight-color),
    transparent 68%
  );
  opacity: 0;
  transition: opacity 0.32s ease;
  z-index: 1;
}

.method-card:hover::before {
  opacity: 1;
}

.method-card:active {
  transform: scale(0.98);
}

.method-icon-box {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--bg-card-subtle);
  border: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-primary);
  flex-shrink: 0;
  position: relative;
  z-index: 2;
  transition: background 0.25s ease, color 0.25s ease, border-color 0.25s ease, transform 0.28s cubic-bezier(0.16, 1, 0.3, 1);
}

.method-details {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 1;
  min-width: 0;
  position: relative;
  z-index: 2;
}

.method-label {
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.method-value {
  font-size: 14.5px;
  font-weight: 700;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.method-action-badge {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--bg-card-subtle);
  border: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  flex-shrink: 0;
  position: relative;
  z-index: 2;
  transition: all 0.25s ease;
}

.method-action-badge svg {
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.method-status-pill {
  font-size: 11px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(16, 185, 129, 0.12);
  color: #10b981;
  border: 1px solid rgba(16, 185, 129, 0.25);
  flex-shrink: 0;
  position: relative;
  z-index: 2;
  transition: all 0.25s ease;
}

/* Brand Hover Transitions for Contact Cards */
.method-card-email {
  --spotlight-color: rgba(37, 99, 235, 0.12);
}

html.dark .method-card-email {
  --spotlight-color: rgba(59, 130, 246, 0.18);
}

.method-card-email:hover {
  transform: translateY(-3px);
  border-color: var(--verified-color);
  box-shadow: 0 12px 28px -6px var(--accent-glow);
}

.method-card-email:hover .method-icon-box {
  background: var(--accent-light);
  color: var(--verified-color);
  border-color: var(--border-hover);
  transform: scale(1.08);
}

.method-card-email:hover .method-action-badge {
  background: var(--verified-color);
  color: #ffffff;
  border-color: var(--verified-color);
}

.method-card-email:hover .method-action-badge svg {
  transform: translate(2px, -2px);
}

[dir="rtl"] .method-card-email:hover .method-action-badge svg {
  transform: translate(-2px, -2px);
}

.method-card-phone {
  --spotlight-color: rgba(37, 211, 102, 0.12);
}

html.dark .method-card-phone {
  --spotlight-color: rgba(37, 211, 102, 0.18);
}

.method-card-phone:hover {
  transform: translateY(-3px);
  border-color: #25d366;
  box-shadow: 0 12px 28px -6px rgba(37, 211, 102, 0.25);
}

.method-card-phone:hover .method-icon-box {
  background: rgba(37, 211, 102, 0.14);
  color: #25d366;
  border-color: rgba(37, 211, 102, 0.35);
  transform: scale(1.08);
}

.method-card-phone:hover .method-action-badge {
  background: #25d366;
  color: #ffffff;
  border-color: #25d366;
}

.method-card-phone:hover .method-action-badge svg {
  transform: translate(2px, -2px);
}

[dir="rtl"] .method-card-phone:hover .method-action-badge svg {
  transform: translate(-2px, -2px);
}

.method-card-location {
  --spotlight-color: rgba(234, 67, 53, 0.10);
}

html.dark .method-card-location {
  --spotlight-color: rgba(248, 113, 113, 0.16);
}

.method-card-location:hover {
  transform: translateY(-3px);
  border-color: #ea4335;
  box-shadow: 0 12px 28px -6px rgba(234, 67, 53, 0.2);
}

.method-card-location:hover .method-icon-box {
  background: rgba(234, 67, 53, 0.14);
  color: #ea4335;
  border-color: rgba(234, 67, 53, 0.35);
  transform: scale(1.08);
}

.method-card-location:hover .method-status-pill {
  background: rgba(16, 185, 129, 0.22);
  border-color: rgba(16, 185, 129, 0.45);
  transform: scale(1.04);
}

/* 3. Social Media Ecosystem Showcase */
.contact-social-section {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding-top: 6px;
}

.social-section-title {
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.contact-social-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.social-brand-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  box-shadow: var(--card-shadow);
  text-decoration: none;
  color: var(--text-primary);
  transform-style: preserve-3d;
  will-change: transform, box-shadow;
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1),
    border-color 0.25s ease,
    box-shadow 0.25s ease,
    background 0.25s ease;
  position: relative;
  overflow: hidden;
  --spotlight-color: rgba(38, 92, 145, 0.10);
}

.social-brand-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background: radial-gradient(
    circle at var(--mouse-x, 50%) var(--mouse-y, 50%),
    var(--spotlight-color),
    transparent 68%
  );
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 1;
}

.social-brand-card:hover::before {
  opacity: 1;
}

.social-brand-card:active {
  transform: scale(0.97);
}

.social-brand-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: var(--bg-card-subtle);
  border: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--text-secondary);
  position: relative;
  z-index: 2;
  transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1), background 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}

.social-brand-info {
  display: flex;
  flex-direction: column;
  min-width: 0;
  flex: 1;
  position: relative;
  z-index: 2;
}

.social-name {
  font-size: 13px;
  font-weight: 700;
  line-height: 1.25;
  color: var(--text-primary);
  transition: color 0.25s ease;
}

.social-handle {
  font-size: 11px;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.social-arrow {
  opacity: 0.35;
  flex-shrink: 0;
  position: relative;
  z-index: 2;
  transition: transform 0.25s ease, opacity 0.25s ease, color 0.25s ease;
}

.social-brand-card:hover .social-arrow {
  opacity: 1;
  transform: translate(2px, -2px);
}

[dir="rtl"] .social-brand-card:hover .social-arrow {
  transform: translate(-2px, -2px);
}

/* Dedicated Platform Hover Colors & Spotlights */

/* LinkedIn Hover: #0A66C2 */
.social-card-linkedin {
  --spotlight-color: rgba(10, 102, 194, 0.14);
}

html.dark .social-card-linkedin {
  --spotlight-color: rgba(10, 102, 194, 0.22);
}

.social-card-linkedin:hover {
  transform: translateY(-3px);
  border-color: #0a66c2;
  box-shadow: 0 12px 28px -6px rgba(10, 102, 194, 0.32);
  background: rgba(10, 102, 194, 0.04);
}

html.dark .social-card-linkedin:hover {
  background: rgba(10, 102, 194, 0.12);
}

.social-card-linkedin:hover .social-brand-icon {
  background: #0a66c2;
  color: #ffffff;
  border-color: #0a66c2;
  transform: scale(1.08) rotate(3deg);
}

[dir="rtl"] .social-card-linkedin:hover .social-brand-icon {
  transform: scale(1.08) rotate(-3deg);
}

.social-card-linkedin:hover .social-name,
.social-card-linkedin:hover .social-arrow {
  color: #0a66c2;
}

/* GitHub Hover: #24292e / #ffffff */
.social-card-github {
  --spotlight-color: rgba(36, 41, 46, 0.10);
}

html.dark .social-card-github {
  --spotlight-color: rgba(255, 255, 255, 0.10);
}

.social-card-github:hover {
  transform: translateY(-3px);
  border-color: var(--text-primary);
  box-shadow: 0 12px 28px -6px rgba(36, 41, 46, 0.25);
  background: var(--bg-card-subtle);
}

.social-card-github:hover .social-brand-icon {
  background: var(--text-primary);
  color: var(--bg-card);
  border-color: var(--text-primary);
  transform: scale(1.08) rotate(3deg);
}

[dir="rtl"] .social-card-github:hover .social-brand-icon {
  transform: scale(1.08) rotate(-3deg);
}

.social-card-github:hover .social-name,
.social-card-github:hover .social-arrow {
  color: var(--text-primary);
}

/* X (Twitter) Hover: #0f1419 / #1da1f2 */
.social-card-x {
  --spotlight-color: rgba(15, 20, 25, 0.10);
}

html.dark .social-card-x {
  --spotlight-color: rgba(29, 161, 242, 0.16);
}

.social-card-x:hover {
  transform: translateY(-3px);
  border-color: var(--text-primary);
  box-shadow: 0 12px 28px -6px rgba(15, 20, 25, 0.28);
  background: var(--bg-card-subtle);
}

.social-card-x:hover .social-brand-icon {
  background: var(--text-primary);
  color: var(--bg-card);
  border-color: var(--text-primary);
  transform: scale(1.08) rotate(3deg);
}

[dir="rtl"] .social-card-x:hover .social-brand-icon {
  transform: scale(1.08) rotate(-3deg);
}

.social-card-x:hover .social-name,
.social-card-x:hover .social-arrow {
  color: var(--text-primary);
}

/* Instagram Hover: Instagram Signature Gradient / #E1306C */
.social-card-instagram {
  --spotlight-color: rgba(225, 48, 108, 0.14);
}

html.dark .social-card-instagram {
  --spotlight-color: rgba(225, 48, 108, 0.20);
}

.social-card-instagram:hover {
  transform: translateY(-3px);
  border-color: #e1306c;
  box-shadow: 0 12px 28px -6px rgba(225, 48, 108, 0.35);
  background: rgba(225, 48, 108, 0.04);
}

html.dark .social-card-instagram:hover {
  background: rgba(225, 48, 108, 0.12);
}

.social-card-instagram:hover .social-brand-icon {
  background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
  color: #ffffff;
  border-color: transparent;
  transform: scale(1.08) rotate(3deg);
}

[dir="rtl"] .social-card-instagram:hover .social-brand-icon {
  transform: scale(1.08) rotate(-3deg);
}

.social-card-instagram:hover .social-name,
.social-card-instagram:hover .social-arrow {
  color: #e1306c;
}

/* 4. High-Performance Contact Form Panel */
.contact-bento-form-panel {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 34px 34px 30px;
  box-shadow: var(--card-shadow);
  display: flex;
  flex-direction: column;
  transform-style: preserve-3d;
  will-change: transform, box-shadow;
  position: relative;
  overflow: hidden;
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1),
    border-color 0.25s ease,
    box-shadow 0.35s ease;
  --spotlight-color: rgba(28, 71, 122, 0.08);
}

html.dark .contact-bento-form-panel {
  --spotlight-color: rgba(38, 92, 145, 0.14);
}

.contact-bento-form-panel::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background: radial-gradient(
    circle at var(--mouse-x, 50%) var(--mouse-y, 50%),
    var(--spotlight-color),
    transparent 72%
  );
  opacity: 0;
  transition: opacity 0.35s ease;
  z-index: 1;
}

.contact-bento-form-panel:hover::before {
  opacity: 1;
}

.contact-bento-form-panel:hover {
  border-color: var(--border-hover);
  box-shadow: var(--card-shadow-hover);
}

.form-header-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 4px 12px;
  background: var(--accent-light);
  border: 1px solid rgba(28, 71, 122, 0.18);
  border-radius: 999px;
  font-size: 11.5px;
  font-weight: 700;
  color: var(--accent-color);
  width: fit-content;
  margin-bottom: 14px;
  position: relative;
  z-index: 2;
}

.form-badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent-color);
  box-shadow: 0 0 8px var(--accent-color);
  animation: statusBadgePulse 2.4s infinite;
}

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

.form-title {
  font-size: 22px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 8px;
  letter-spacing: -0.01em;
  position: relative;
  z-index: 2;
}

.form-desc {
  font-size: 13.5px;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 24px;
  position: relative;
  z-index: 2;
}

.spa-form {
  display: flex;
  flex-direction: column;
  gap: 18px;
  position: relative;
  z-index: 2;
}

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

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

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

.input-wrap {
  position: relative;
  width: 100%;
}

.form-field input,
.form-field textarea {
  width: 100%;
  padding: 12px 16px;
  background: var(--bg-card-subtle);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  font-size: 14px;
  font-family: inherit;
  color: var(--text-primary);
  outline: none;
  transition: border-color 0.25s cubic-bezier(0.16, 1, 0.3, 1),
    box-shadow 0.25s cubic-bezier(0.16, 1, 0.3, 1),
    background-color 0.25s ease,
    transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

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

.form-field input:focus,
.form-field textarea:focus {
  border-color: var(--accent-color);
  box-shadow: 0 0 0 4px var(--accent-glow), 0 8px 24px -6px rgba(38, 92, 145, 0.2);
  transform: translateY(-2px);
  background-color: var(--bg-card);
}

html.dark .form-field input:focus,
html.dark .form-field textarea:focus {
  border-color: var(--verified-color);
  box-shadow: 0 0 0 4px var(--accent-glow), 0 8px 24px -6px rgba(0, 0, 0, 0.5);
  background-color: #0b1322;
}

.spa-submit-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 28px;
  font-size: 14.5px;
  font-weight: 700;
  margin-top: 6px;
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.25s ease, background 0.2s ease;
}

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

.spa-submit-btn:active {
  transform: scale(0.97);
}

.spa-submit-btn svg {
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.spa-submit-btn:hover svg {
  transform: translate(3px, -3px);
}

[dir="rtl"] .spa-submit-btn:hover svg {
  transform: translate(-3px, -3px);
}

.form-feedback {
  padding: 14px 18px;
  border-radius: var(--radius-md);
  font-size: 13.5px;
  line-height: 1.55;
  text-align: center;
}

.form-feedback.success {
  background: rgba(16, 185, 129, 0.14);
  color: #10b981;
  border: 1px solid rgba(16, 185, 129, 0.32);
}

.form-feedback.error {
  background: rgba(239, 68, 68, 0.12);
  color: #ef4444;
  border: 1px solid rgba(239, 68, 68, 0.3);
}

html.dark .form-feedback.error {
  background: rgba(239, 68, 68, 0.16);
  color: #f87171;
  border-color: rgba(239, 68, 68, 0.36);
}

.form-feedback.warning {
  background: rgba(245, 158, 11, 0.14);
  color: #b45309;
  border: 1px solid rgba(245, 158, 11, 0.35);
}

html.dark .form-feedback.warning {
  background: rgba(245, 158, 11, 0.16);
  color: #fbbf24;
  border-color: rgba(245, 158, 11, 0.4);
}

.form-feedback a.error-action-link {
  display: inline-flex;
  align-items: center;
  padding: 4px 12px;
  background: rgba(239, 68, 68, 0.18);
  border-radius: 999px;
  color: inherit;
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
  transition: background 0.2s ease;
}

.form-feedback a.error-action-link:hover {
  background: rgba(239, 68, 68, 0.3);
}

.spa-submit-btn:disabled {
  opacity: 0.7;
  cursor: not-allowed;
  transform: none !important;
}

.spa-submit-spinner {
  width: 16px;
  height: 16px;
  border: 2px solid rgba(255, 255, 255, 0.35);
  border-top-color: #ffffff;
  border-radius: 50%;
  display: inline-block;
  animation: btnSpinnerRotate 0.7s linear infinite;
}

@keyframes btnSpinnerRotate {
  to {
    transform: rotate(360deg);
  }
}

/* Quick Direct Consultation Banner in Form Panel */
.form-quick-consult {
  margin-top: 18px;
  padding: 12px 16px;
  border-radius: var(--radius-md);
  background: var(--bg-card-subtle);
  border: 1px dashed var(--border-color);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 12.5px;
  transition: all 0.25s ease;
}

html.dark .form-quick-consult {
  background: rgba(255, 255, 255, 0.03);
  border-color: rgba(255, 255, 255, 0.1);
}

.form-quick-consult:hover {
  border-color: #25d366;
  background: rgba(37, 211, 102, 0.05);
}

.consult-content {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text-secondary);
}

.consult-icon {
  color: #25d366;
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.consult-link {
  font-weight: 700;
  color: #25d366;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: transform 0.2s ease, color 0.2s ease;
  white-space: nowrap;
}

.consult-link:hover {
  color: #20ba5a;
  transform: translateX(3px);
}

[dir="rtl"] .consult-link:hover {
  transform: translateX(-3px);
}

@media (max-width: 600px) {
  .form-quick-consult {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
}

.hidden {
  display: none !important;
}

/* Staggered View Entrance Cascade Animations for Contact Portal */
@keyframes contactItemCascadeIn {
  0% {
    opacity: 0;
    transform: translateY(20px) scale(0.98);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes contactFormSlideIn {
  0% {
    opacity: 0;
    transform: translateY(26px) scale(0.98);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.page-view.active .contact-status-card {
  animation: contactItemCascadeIn 0.48s cubic-bezier(0.16, 1, 0.3, 1) 0.05s backwards;
}

.page-view.active .method-card:nth-child(1) {
  animation: contactItemCascadeIn 0.48s cubic-bezier(0.16, 1, 0.3, 1) 0.10s backwards;
}
.page-view.active .method-card:nth-child(2) {
  animation: contactItemCascadeIn 0.48s cubic-bezier(0.16, 1, 0.3, 1) 0.15s backwards;
}
.page-view.active .method-card:nth-child(3) {
  animation: contactItemCascadeIn 0.48s cubic-bezier(0.16, 1, 0.3, 1) 0.20s backwards;
}

.page-view.active .contact-social-section {
  animation: contactItemCascadeIn 0.48s cubic-bezier(0.16, 1, 0.3, 1) 0.22s backwards;
}

.page-view.active .social-brand-card:nth-child(1) {
  animation: contactItemCascadeIn 0.48s cubic-bezier(0.16, 1, 0.3, 1) 0.26s backwards;
}
.page-view.active .social-brand-card:nth-child(2) {
  animation: contactItemCascadeIn 0.48s cubic-bezier(0.16, 1, 0.3, 1) 0.30s backwards;
}
.page-view.active .social-brand-card:nth-child(3) {
  animation: contactItemCascadeIn 0.48s cubic-bezier(0.16, 1, 0.3, 1) 0.34s backwards;
}
.page-view.active .social-brand-card:nth-child(4) {
  animation: contactItemCascadeIn 0.48s cubic-bezier(0.16, 1, 0.3, 1) 0.38s backwards;
}

.page-view.active .contact-bento-form-panel {
  animation: contactFormSlideIn 0.56s cubic-bezier(0.16, 1, 0.3, 1) 0.14s backwards;
}

/* Accessibility: Prefers-Reduced-Motion Override */
@media (prefers-reduced-motion: reduce) {
  .page-view.active .cert-modern-card,
  .page-view.active .contact-status-card,
  .page-view.active .method-card,
  .page-view.active .contact-social-section,
  .page-view.active .social-brand-card,
  .page-view.active .contact-bento-form-panel {
    animation: none !important;
    transform: none !important;
    opacity: 1 !important;
  }
}

/* Responsive Breakpoints for Contact Portal */
@media (max-width: 960px) {
  .contact-bento-container {
    grid-template-columns: 1fr;
    gap: 24px;
  }
}

@media (max-width: 580px) {
  .contact-social-grid {
    grid-template-columns: 1fr;
  }

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

  .contact-bento-form-panel {
    padding: 24px 20px;
  }
}

/* ==========================================================================
   Responsive Breakpoints
   ========================================================================== */
@media (max-width: 1024px) {
  .desktop-sidebar {
    display: none;
  }

  .mobile-header {
    display: flex;
  }

  .app-layout {
    flex-direction: column;
    padding-top: var(--header-height-mobile);
  }

  .main-content {
    padding: 24px 20px;
  }

  .bento-grid {
    grid-template-columns: repeat(2, 1fr);
  }

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

  .bento-about {
    grid-column: span 1;
  }

  .bento-skills {
    grid-column: span 1;
  }

  .bento-achievements {
    grid-column: span 1;
  }

  .bento-career {
    grid-column: span 1;
  }

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

  .bento-testimonials .bento-card-inner {
    grid-template-columns: 1fr 1.3fr;
  }

  .about-spa-grid,
  .contact-spa-container,
  .timeline-card {
    grid-template-columns: 1fr;
  }

  .projects-spa-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 680px) {
  .hero-top-row {
    flex-direction: column;
    align-items: flex-start;
  }

  .cv-download-btn {
    width: 100%;
    justify-content: center;
  }

  .bento-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .bento-projects,
  .bento-about,
  .bento-skills,
  .bento-achievements,
  .bento-career,
  .bento-testimonials {
    grid-column: span 1;
  }

  .bento-projects .bento-card-inner,
  .bento-testimonials .bento-card-inner {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .mockup-stack-container {
    height: 190px;
  }

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

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

/* ==========================================================================
   Sidebar Search / Command Palette Trigger
   ========================================================================== */
.sidebar-search-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 9px 12px;
  background-color: var(--bg-card-subtle);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  color: var(--text-muted);
  font-size: 12.5px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  margin-bottom: 16px;
  text-align: left;
}

html[dir="rtl"] .sidebar-search-btn {
  text-align: right;
}

.sidebar-search-btn:hover {
  background-color: var(--bg-card);
  border-color: var(--accent-color);
  color: var(--text-primary);
  box-shadow: 0 4px 14px rgba(28, 71, 122, 0.12);
  transform: translateY(-1px);
}

.search-btn-icon {
  display: flex;
  align-items: center;
  color: var(--text-muted);
  transition: color 0.2s ease;
}

.sidebar-search-btn:hover .search-btn-icon {
  color: var(--accent-color);
}

.search-btn-text {
  flex: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.search-kbd {
  font-family: inherit;
  font-size: 10.5px;
  font-weight: 600;
  padding: 2px 6px;
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 4px;
  color: var(--text-muted);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

html.dark .search-kbd {
  background-color: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.1);
}

/* Project Card Footer & Case Study Button */
.project-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--border-color);
}

.btn-case-study {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  background-color: var(--accent-light);
  color: var(--accent-color);
  border: 1px solid transparent;
  border-radius: var(--radius-pill);
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  white-space: nowrap;
}

.btn-case-study:hover {
  background-color: var(--accent-color);
  color: #ffffff;
  transform: translateX(3px);
  box-shadow: 0 4px 14px var(--accent-glow);
}

html[dir="rtl"] .btn-case-study:hover {
  transform: translateX(-3px);
}

/* ==========================================================================
   Command Palette (Spotlight Search: Ctrl+K / Cmd+K)
   ========================================================================== */
.palette-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  background-color: rgba(12, 17, 23, 0.72);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  z-index: 11000;
  align-items: flex-start;
  justify-content: center;
  padding: 10vh 20px 20px;
  opacity: 0;
  transition: opacity 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.palette-backdrop.open {
  display: flex;
  opacity: 1;
}

.palette-container {
  width: 100%;
  max-width: 620px;
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  box-shadow: 0 24px 64px -12px rgba(8, 12, 17, 0.8), 0 0 32px rgba(38, 92, 145, 0.2);
  overflow: hidden;
  transform: scale(0.96) translateY(-10px);
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
}

.palette-backdrop.open .palette-container {
  transform: scale(1) translateY(0);
}

.palette-search-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border-color);
}

.palette-search-icon {
  color: var(--accent-color);
  flex-shrink: 0;
}

.palette-input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  font-size: 15.5px;
  font-weight: 500;
  color: var(--text-primary);
  font-family: inherit;
}

.palette-input::placeholder {
  color: var(--text-muted);
  font-size: 14px;
}

.palette-esc-badge {
  font-size: 10.5px;
  font-weight: 700;
  padding: 3px 7px;
  border-radius: 5px;
  background: var(--bg-card-subtle);
  border: 1px solid var(--border-color);
  color: var(--text-muted);
  cursor: pointer;
}

.palette-results {
  max-height: 380px;
  overflow-y: auto;
  padding: 10px 8px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.palette-empty {
  padding: 32px 16px;
  text-align: center;
  color: var(--text-muted);
  font-size: 13.5px;
  font-weight: 500;
}

.palette-group-title {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  padding: 8px 12px 4px;
}

.palette-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  border-radius: var(--radius-md);
  color: var(--text-primary);
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.15s ease, transform 0.15s ease;
  user-select: none;
}

.palette-item:hover,
.palette-item.active {
  background-color: var(--accent-light);
  color: var(--accent-color);
}

.palette-item-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: var(--bg-card-subtle);
  color: var(--text-secondary);
  flex-shrink: 0;
  font-size: 13.5px;
}

.palette-item.active .palette-item-icon {
  background: var(--accent-color);
  color: #ffffff;
}

.palette-item-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  line-height: 1.3;
}

.palette-item-title {
  font-size: 13.5px;
  font-weight: 600;
}

.palette-item-desc {
  font-size: 11.5px;
  color: var(--text-muted);
}

.palette-item-badge {
  font-size: 10.5px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: var(--radius-pill);
  background: var(--bg-card-subtle);
  color: var(--text-muted);
  border: 1px solid var(--border-color);
}

.palette-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 18px;
  background-color: var(--bg-card-subtle);
  border-top: 1px solid var(--border-color);
  font-size: 11px;
  color: var(--text-muted);
}

.palette-shortcuts {
  display: flex;
  align-items: center;
  gap: 12px;
}

.palette-shortcuts kbd {
  font-family: inherit;
  font-size: 10px;
  font-weight: 600;
  padding: 1px 5px;
  border-radius: 3px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
}


/* ==========================================================================
   VIEW 7: DEDICATED PROJECT DETAIL VIEW (Deep-Dive Engineering Showcase)
   ========================================================================== */
#view-project-detail {
  display: none;
  flex-direction: column;
  gap: 36px;
  max-width: 1160px;
  margin: 0 auto;
  width: 100%;
}

#view-project-detail.active {
  display: flex !important;
  opacity: 1 !important;
  transform: translateY(0) !important;
  animation: spaFadeIn 0.35s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* Breadcrumb & Back Navigation Ribbon */
.project-detail-nav-ribbon {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border-subtle);
}

.btn-detail-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-pill);
  color: var(--text-primary);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  box-shadow: var(--card-shadow);
  transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn-detail-back:hover {
  background: var(--bg-hover);
  border-color: var(--border-hover);
  color: var(--accent-color);
  transform: translateY(-1px);
}

.btn-detail-back .back-arrow-icon {
  transition: transform 0.22s ease;
}

.btn-detail-back:hover .back-arrow-icon {
  transform: translateX(-3px);
}

html[dir="rtl"] .btn-detail-back .back-arrow-icon {
  transform: rotate(180deg);
}

html[dir="rtl"] .btn-detail-back:hover .back-arrow-icon {
  transform: rotate(180deg) translateX(-3px);
}

.breadcrumb-trail {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--text-muted);
}

.breadcrumb-root {
  cursor: pointer;
  color: var(--text-secondary);
  font-weight: 500;
  transition: color 0.15s ease;
}

.breadcrumb-root:hover {
  color: var(--accent-color);
}

.breadcrumb-sep {
  opacity: 0.45;
  font-size: 12px;
}

.breadcrumb-current {
  color: var(--text-primary);
  font-weight: 600;
  max-width: 320px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Project Hero Header */
.project-detail-header {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 4px;
}

.project-detail-badge-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.detail-badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11.5px;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  letter-spacing: 0.02em;
}

.detail-badge-pill.badge-category {
  background-color: var(--accent-light);
  color: var(--accent-color);
  border: 1px solid rgba(28, 71, 122, 0.25);
}

.detail-badge-pill.badge-year {
  background-color: var(--bg-card-subtle);
  color: var(--text-muted);
  border: 1px solid var(--border-color);
}

.detail-badge-pill.badge-status {
  background-color: rgba(16, 185, 129, 0.12);
  color: #10b981;
  border: 1px solid rgba(16, 185, 129, 0.28);
}

.detail-badge-pill.badge-origin {
  background-color: var(--bg-card);
  color: var(--text-secondary);
  border: 1px solid var(--border-subtle);
}

.project-detail-title {
  font-size: clamp(28px, 4.2vw, 38px);
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: -0.025em;
  line-height: 1.22;
}

.project-detail-subtitle {
  font-size: 16px;
  color: var(--text-secondary);
  line-height: 1.65;
  max-width: 840px;
  font-weight: 400;
}

.project-detail-actions-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 4px;
}

.btn-detail-action {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: var(--radius-pill);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn-detail-action.primary {
  background: linear-gradient(135deg, #113255 0%, #1C477A 100%);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 4px 16px rgba(17, 50, 85, 0.4);
}

.btn-detail-action.primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(17, 50, 85, 0.55);
}

.btn-detail-action.secondary {
  background: var(--bg-card);
  color: var(--text-primary);
  border: 1px solid var(--border-color);
  box-shadow: var(--card-shadow);
}

.btn-detail-action.secondary:hover {
  background: var(--bg-hover);
  border-color: var(--border-hover);
  color: var(--accent-color);
  transform: translateY(-2px);
}

.btn-detail-action.accent {
  background: var(--accent-light);
  color: var(--accent-color);
  border: 1px solid rgba(28, 71, 122, 0.3);
}

.btn-detail-action.accent:hover {
  background: rgba(28, 71, 122, 0.22);
  border-color: var(--accent-color);
  transform: translateY(-2px);
}

/* Interactive Media Showcase & Gallery */
.project-media-showcase {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 4px;
}

.gallery-viewport {
  position: relative;
  width: 100%;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border-color);
  background: #0c1117;
  box-shadow: 0 20px 42px -15px rgba(0, 0, 0, 0.38);
  cursor: zoom-in;
}

.gallery-window-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 18px;
  background: rgba(12, 17, 23, 0.94);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(8px);
}

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

.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  display: inline-block;
}

.dot-red {
  background: #ef4444;
}

.dot-yellow {
  background: #f59e0b;
}

.dot-green {
  background: #10b981;
}

.window-title-bar {
  font-size: 11.5px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.6);
  letter-spacing: 0.02em;
}

.zoom-hint {
  color: rgba(255, 255, 255, 0.5);
  display: flex;
  align-items: center;
  transition: color 0.2s ease;
}

.gallery-viewport:hover .zoom-hint {
  color: rgba(255, 255, 255, 0.95);
}

.gallery-image-stage {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  max-height: 520px;
  overflow: hidden;
  background: #0c1117;
}

.gallery-main-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transform: translateZ(0);
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.25s ease, filter 0.3s ease;
}

.gallery-viewport:hover .gallery-main-img {
  transform: scale(1.02) translateZ(0);
  filter: brightness(1.02);
}

.gallery-overlay-controls {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px;
  pointer-events: none;
  z-index: 5;
}

.gallery-nav-btn {
  pointer-events: auto;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(12, 17, 23, 0.78);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35);
}

.gallery-nav-btn:hover {
  background: var(--accent-color);
  border-color: var(--accent-color);
  transform: scale(1.08);
}

.gallery-counter-badge {
  position: absolute;
  bottom: 16px;
  right: 18px;
  padding: 5px 14px;
  background: rgba(12, 17, 23, 0.88);
  color: #ffffff;
  border-radius: var(--radius-pill);
  font-size: 11.5px;
  font-weight: 700;
  border: 1px solid rgba(255, 255, 255, 0.18);
  pointer-events: auto;
  backdrop-filter: blur(8px);
  letter-spacing: 0.04em;
}

html[dir="rtl"] .gallery-counter-badge {
  right: auto;
  left: 18px;
}

.gallery-thumbnails-strip {
  display: flex;
  align-items: center;
  gap: 12px;
  overflow-x: auto;
  padding: 4px 2px 8px;
  scroll-behavior: smooth;
}

.gallery-thumb-item {
  width: 96px;
  height: 60px;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 2px solid transparent;
  cursor: pointer;
  opacity: 0.55;
  flex-shrink: 0;
  transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
  background: #0c1117;
  box-shadow: var(--card-shadow);
}

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

.gallery-thumb-item:hover {
  opacity: 0.85;
  transform: translateY(-2px);
}

.gallery-thumb-item.active {
  opacity: 1;
  border-color: var(--accent-color);
  box-shadow: 0 0 16px rgba(28, 71, 122, 0.5);
  transform: translateY(-2px);
}

/* Key Metrics Impact Grid */
.project-detail-section-block {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.detail-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 2px;
}

.section-badge-pill {
  display: inline-flex;
  align-items: center;
  padding: 4px 14px;
  border-radius: var(--radius-pill);
  background: var(--accent-light);
  color: var(--accent-color);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.03em;
  border: 1px solid rgba(28, 71, 122, 0.2);
}

.detail-section-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 8px;
}

.detail-metrics-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.detail-metric-card {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 22px 24px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  box-shadow: var(--card-shadow);
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
  overflow: hidden;
}

.detail-metric-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #113255, #265C91);
  opacity: 0;
  transition: opacity 0.25s ease;
}

.detail-metric-card:hover {
  transform: translateY(-3px);
  border-color: var(--border-hover);
  box-shadow: var(--card-shadow-hover);
}

.detail-metric-card:hover::before {
  opacity: 1;
}

.detail-metric-val {
  font-size: 32px;
  font-weight: 800;
  color: var(--accent-color);
  letter-spacing: -0.025em;
  line-height: 1.1;
}

.detail-metric-label {
  font-size: 13px;
  color: var(--text-secondary);
  font-weight: 600;
}

/* Asymmetrical Deep-Dive Layout (Narrative + Sticky Specs Sidebar) */
.project-detail-layout-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 32px;
  align-items: start;
  margin-top: 4px;
}

.project-detail-main-col {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

/* Two-Column Problem & Solution */
.project-detail-two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.detail-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 26px;
  box-shadow: var(--card-shadow);
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.detail-card:hover {
  border-color: var(--border-hover);
  box-shadow: var(--card-shadow-hover);
}

.problem-card {
  border-inline-start: 3px solid #f59e0b;
}

.solution-card {
  border-inline-start: 3px solid var(--accent-color);
}

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

.card-header-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.alert-icon {
  background: rgba(245, 158, 11, 0.12);
  color: #f59e0b;
  border: 1px solid rgba(245, 158, 11, 0.25);
}

.rocket-icon {
  background: var(--accent-light);
  color: var(--accent-color);
  border: 1px solid rgba(28, 71, 122, 0.25);
}

.detail-card-header h3 {
  font-size: 16.5px;
  font-weight: 700;
  color: var(--text-primary);
}

.detail-card-text {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.75;
}

/* Highlights List */
.detail-highlights-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

.detail-highlight-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 18px 20px;
  display: flex;
  align-items: flex-start;
  gap: 14px;
  box-shadow: var(--card-shadow);
  transition: transform 0.2s ease, border-color 0.2s ease;
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.65;
}

.detail-highlight-card:hover {
  transform: translateX(4px);
  border-color: var(--border-hover);
}

html[dir="rtl"] .detail-highlight-card:hover {
  transform: translateX(-4px);
}

.detail-highlight-card .check-icon {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--accent-light);
  color: var(--accent-color);
  font-weight: 800;
  font-size: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 2px;
  border: 1px solid rgba(28, 71, 122, 0.25);
}

/* Right Column: Sticky Specs Sidebar */
.project-detail-sidebar-col {
  display: flex;
  flex-direction: column;
}

.detail-sidebar-sticky {
  position: sticky;
  top: 24px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.sidebar-spec-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 22px 24px;
  box-shadow: var(--card-shadow);
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.sidebar-spec-heading {
  font-size: 14.5px;
  font-weight: 700;
  color: var(--text-primary);
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border-subtle);
}

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

.detail-tech-tag {
  display: inline-flex;
  align-items: center;
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  font-size: 12px;
  font-weight: 600;
  background: var(--bg-card-subtle);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  transition: all 0.2s ease;
}

.detail-tech-tag:hover {
  border-color: var(--accent-color);
  color: var(--accent-color);
  background: var(--accent-light);
  transform: translateY(-2px);
}

.sidebar-meta-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.sidebar-meta-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 9px 0;
  border-bottom: 1px solid var(--border-subtle);
  font-size: 13px;
}

.sidebar-meta-row:last-child {
  border-bottom: none;
}

.meta-label {
  color: var(--text-muted);
  font-weight: 500;
}

.meta-value {
  color: var(--text-primary);
  font-weight: 600;
  text-align: right;
}

html[dir="rtl"] .meta-value {
  text-align: left;
}

.consultation-box {
  background: linear-gradient(135deg, rgba(28, 71, 122, 0.12) 0%, rgba(17, 50, 85, 0.22) 100%);
  border: 1px solid rgba(38, 92, 145, 0.35);
}

.consultation-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-primary);
}

.consultation-desc {
  font-size: 12.5px;
  color: var(--text-secondary);
  line-height: 1.55;
}

.btn-sidebar-discuss {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 10px 16px;
  background: linear-gradient(135deg, #1C477A 0%, #265C91 100%);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius-pill);
  font-size: 12.5px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.22s ease;
  box-shadow: 0 4px 14px rgba(17, 50, 85, 0.35);
}

.btn-sidebar-discuss:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(17, 50, 85, 0.5);
}

/* Sequential Previous / Next Project Footer Navigation */
.project-seq-nav {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-top: 8px;
  padding-top: 24px;
  border-top: 1px solid var(--border-subtle);
}

.seq-nav-card {
  padding: 20px 24px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  cursor: pointer;
  transition: all 0.24s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: var(--card-shadow);
}

.seq-nav-card:hover {
  border-color: var(--accent-color);
  transform: translateY(-3px);
  box-shadow: var(--card-shadow-hover);
}

.seq-direction {
  font-size: 11.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--accent-color);
  margin-bottom: 4px;
  display: block;
}

.seq-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-primary);
  transition: color 0.15s ease;
}

.seq-nav-card:hover .seq-title {
  color: var(--accent-color);
}

/* CTA Conversion Banner */
.project-detail-cta-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 24px;
  padding: 32px 36px;
  background: linear-gradient(135deg, rgba(28, 71, 122, 0.16) 0%, rgba(17, 50, 85, 0.28) 100%);
  border: 1px solid rgba(38, 92, 145, 0.35);
  border-radius: var(--radius-lg);
  margin-top: 6px;
  box-shadow: var(--card-shadow);
}

.cta-banner-content {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.cta-banner-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-primary);
}

.cta-banner-desc {
  font-size: 13.5px;
  color: var(--text-secondary);
  max-width: 600px;
  line-height: 1.55;
}

.btn-cta-contact {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  background: linear-gradient(135deg, #113255 0%, #1C477A 100%);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: var(--radius-pill);
  font-size: 13.5px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.22s ease;
  box-shadow: 0 4px 16px rgba(17, 50, 85, 0.4);
  white-space: nowrap;
}

.btn-cta-contact:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(17, 50, 85, 0.55);
}

.hidden {
  display: none !important;
}

@media (max-width: 992px) {
  .project-detail-layout-grid {
    grid-template-columns: 1fr;
  }

  .detail-sidebar-sticky {
    position: static;
  }

  .detail-metrics-grid {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  }
}

@media (max-width: 680px) {
  .project-detail-two-col {
    grid-template-columns: 1fr;
  }

  .project-seq-nav {
    grid-template-columns: 1fr;
  }

  .gallery-image-stage {
    max-height: 280px;
  }

  .project-detail-cta-banner {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* ==========================================================================
   Toast Notification System
   ========================================================================== */
.toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 12000;
  display: flex;
  flex-direction: column;
  gap: 10px;
  pointer-events: none;
}

html[dir="rtl"] .toast-container {
  right: auto;
  left: 24px;
}

.toast-item {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 18px;
  background-color: rgba(18, 25, 34, 0.95);
  color: #ffffff;
  border: 1px solid rgba(38, 92, 145, 0.45);
  border-radius: var(--radius-pill);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.4), 0 0 14px rgba(38, 92, 145, 0.25);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  font-size: 13px;
  font-weight: 600;
  pointer-events: auto;
  animation: toastSlideUp 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

html.dark .toast-item {
  background-color: rgba(240, 244, 249, 0.96);
  color: #0c1117;
  border-color: rgba(38, 92, 145, 0.3);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.6), 0 0 18px var(--accent-glow);
}

@keyframes toastSlideUp {
  from {
    opacity: 0;
    transform: translateY(12px) scale(0.95);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.toast-item.fade-out {
  animation: toastFadeOut 0.25s ease forwards;
}

@keyframes toastFadeOut {
  from {
    opacity: 1;
    transform: translateY(0) scale(1);
  }

  to {
    opacity: 0;
    transform: translateY(6px) scale(0.95);
  }
}

/* ==========================================================================
   404 Page Not Found (In-App View & Standalone System)
   ========================================================================== */
.not-found-header {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.error-tag-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.28);
  color: #ef4444;
  font-weight: 600;
}

html.dark .error-tag-pill {
  background: rgba(239, 68, 68, 0.16);
  border-color: rgba(239, 68, 68, 0.4);
  color: #f87171;
}

.error-dot {
  background-color: #ef4444 !important;
  box-shadow: 0 0 10px rgba(239, 68, 68, 0.7) !important;
}

.not-found-card {
  max-width: 760px;
  margin: 32px auto 60px;
  padding: 48px 40px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  box-shadow: var(--card-shadow);
  position: relative;
  overflow: hidden;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.not-found-card:hover {
  border-color: var(--accent-color);
  box-shadow: var(--card-shadow-hover);
}

.not-found-visual {
  position: relative;
  width: 100%;
  height: 180px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
}

.not-found-glitch-wrap {
  position: relative;
  z-index: 2;
}

.not-found-code {
  font-family: var(--font-en);
  font-size: 110px;
  font-weight: 900;
  line-height: 1;
  letter-spacing: -0.04em;
  background: linear-gradient(135deg, var(--text-primary) 20%, var(--verified-color) 70%, var(--accent-color) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  user-select: none;
  filter: drop-shadow(0 4px 20px var(--accent-glow));
}

html.dark .not-found-code {
  background: linear-gradient(135deg, #ffffff 10%, var(--verified-color) 60%, var(--accent-color) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 0 35px rgba(38, 92, 145, 0.45));
}

.not-found-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 200px;
  height: 200px;
  background: radial-gradient(circle, var(--accent-glow) 0%, transparent 70%);
  transform: translate(-50%, -50%);
  pointer-events: none;
  z-index: -1;
  filter: blur(20px);
}

.not-found-orbit-ring {
  position: absolute;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  border: 1px dashed var(--border-color);
  animation: orbitRotate 30s linear infinite;
  pointer-events: none;
}

@keyframes orbitRotate {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.orbit-particle {
  position: absolute;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--verified-color);
  box-shadow: 0 0 10px var(--verified-color);
}

.orbit-particle.p1 { top: -4px; left: 50%; transform: translateX(-50%); }
.orbit-particle.p2 { bottom: 20px; left: 15px; }
.orbit-particle.p3 { top: 60px; right: 10px; }

.not-found-content {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}

.not-found-terminal-box {
  width: 100%;
  max-width: 580px;
  background: var(--bg-card-subtle);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 14px 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  text-align: left;
  font-family: 'JetBrains Mono', Consolas, Monaco, monospace;
}

html[dir="rtl"] .not-found-terminal-box {
  text-align: left;
  direction: ltr;
}

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

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

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

.terminal-body {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 13px;
  color: var(--text-primary);
}

.terminal-prompt {
  color: var(--verified-color);
  font-weight: 700;
}

.terminal-text {
  color: var(--text-secondary);
}

.terminal-text #not-found-path-display {
  color: var(--accent-color);
  font-weight: 600;
}

.terminal-badge.error {
  margin-left: auto;
  font-size: 10.5px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 4px;
  background: rgba(239, 68, 68, 0.12);
  color: #ef4444;
  border: 1px solid rgba(239, 68, 68, 0.25);
}

.not-found-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 8px;
}

.not-found-hint {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--text-muted);
}

.not-found-hint kbd {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  font-weight: 600;
  padding: 2px 7px;
  background: var(--bg-card-subtle);
  border: 1px solid var(--border-color);
  border-radius: 5px;
  color: var(--text-primary);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.08);
}

/* ==========================================================================
   Projects Dynamic Filter Empty State
   ========================================================================== */
.projects-empty-state {
  padding: 48px 32px;
  margin: 20px 0;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  background: var(--bg-card);
  border: 1px dashed var(--border-color);
  border-radius: var(--radius-lg);
  animation: emptyFadeIn 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.projects-empty-state.hidden {
  display: none !important;
}

.empty-state-icon-box {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--accent-light);
  color: var(--verified-color);
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border-hover);
}

.empty-state-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-primary);
}

.empty-state-desc {
  font-size: 14px;
  color: var(--text-secondary);
  max-width: 440px;
  line-height: 1.5;
}

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

/* ==========================================================================
   Floating Back-to-Top Button
   ========================================================================== */
.floating-back-to-top {
  position: fixed;
  bottom: 28px;
  right: 28px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--card-shadow);
  cursor: pointer;
  z-index: 99;
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px) scale(0.9);
  transition: all 0.28s cubic-bezier(0.16, 1, 0.3, 1);
}

.floating-back-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
}

.floating-back-to-top:hover {
  background: var(--bg-hover);
  border-color: var(--accent-color);
  color: var(--accent-color);
  transform: translateY(-3px) scale(1.05);
  box-shadow: var(--card-shadow-hover);
}

.floating-back-to-top:active {
  transform: translateY(-1px) scale(0.96);
}

html[dir="rtl"] .floating-back-to-top {
  right: auto;
  left: 28px;
}

@media (max-width: 768px) {
  .floating-back-to-top {
    bottom: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
  }
  html[dir="rtl"] .floating-back-to-top {
    left: 20px;
    right: auto;
  }
}

/* ==========================================================================
   Sequential Project Navigation - RTL Arrow Mirrors
   ========================================================================== */
.seq-direction {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.seq-arrow-icon {
  flex-shrink: 0;
  transition: transform 0.2s ease;
}

.seq-nav-card:hover .prev-arrow {
  transform: translateX(-3px);
}

.seq-nav-card:hover .next-arrow {
  transform: translateX(3px);
}

html[dir="rtl"] .seq-arrow-icon {
  transform: scaleX(-1);
}

html[dir="rtl"] .seq-nav-card:hover .prev-arrow {
  transform: scaleX(-1) translateX(-3px);
}

html[dir="rtl"] .seq-nav-card:hover .next-arrow {
  transform: scaleX(-1) translateX(3px);
}

/* ==========================================================================
   Comprehensive Reduced Motion Accessibility
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }

  .not-found-orbit-ring {
    animation: none !important;
  }

  .status-pulse-dot,
  .pulse-beacon .beacon-ring {
    animation: none !important;
  }
}