/* ==========================================================================
   ASHHAR - LEAD BIM COORDINATOR & COMPUTATIONAL DEVELOPER
   Color Ratio & Visual System Matched Exactly to azsynergygroup.com
   70% Crisp White & Off-White | 20% Deep Engineering Navy | 10% Electric Blue
   ========================================================================== */

:root {
  /* Exact azsynergygroup.com Design Tokens */
  --az-bg-body: #FFFFFF;
  --az-bg-subtle: #F8FAFC;
  --az-bg-card: #FFFFFF;
  
  --az-navy-primary: #0B1F33;       /* Deep Engineering Navy */
  --az-navy-secondary: #1E293B;     /* Slate Navy */
  --az-slate-muted: #475569;        /* Refined Slate Body Text */
  --az-slate-light: #64748B;        /* Secondary Meta Text */
  
  --az-accent: #0878D1;             /* Electric Blue */
  --az-accent-hover: #0766B2;       /* Deepened Electric Blue */
  --az-accent-light: #EBF5FF;       /* Minimalist Blue Tint */
  --az-accent-border: #BFDBFE;      /* Subtle Blue Border */
  
  --az-border-card: #E2E8F0;        /* Crisp Structural Border */
  --az-border-subtle: #F1F5F9;
  
  --az-color-hvac: #0878D1;
  --az-color-fire: #EF4444;
  --az-color-elec: #F59E0B;
  --az-color-plumb: #10B981;

  --az-font-heading: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --az-font-body: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --az-font-mono: 'JetBrains Mono', Consolas, monospace;

  --az-shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.05);
  --az-shadow-md: 0 4px 20px rgba(11, 31, 51, 0.06);
  --az-shadow-lg: 0 10px 30px rgba(11, 31, 51, 0.09);
  --az-shadow-btn: 0 4px 14px rgba(8, 120, 209, 0.25);
  
  --az-radius-sm: 6px;
  --az-radius-md: 10px;
  --az-radius-lg: 16px;
  --az-transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
  color-scheme: light;
}

body.az-corporate-theme {
  background-color: var(--az-bg-subtle);
  color: var(--az-slate-muted);
  font-family: var(--az-font-body);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  padding: 40px 0 80px 0;
}

.main-container {
  max-width: 1260px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  flex-direction: column;
  gap: 56px;
}

/* ==========================================================================
   EXECUTIVE PROFILE HERO (WITH ASHHAR'S PHOTO)
   ========================================================================== */
.profile-hero-section {
  position: relative;
  background-color: var(--az-bg-card);
  border: 1px solid var(--az-border-card);
  border-radius: var(--az-radius-lg);
  padding: 40px 48px;
  box-shadow: var(--az-shadow-md);
  overflow: hidden;
}

.hero-glow {
  display: none; /* Removed dark glow */
}

.hero-grid {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 40px;
  align-items: center;
}

.hero-photo-wrap {
  display: flex;
  justify-content: center;
}

.photo-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.photo-card {
  position: relative;
  width: 260px;
  height: 320px;
  border-radius: var(--az-radius-md);
  overflow: hidden;
  border: 2px solid var(--az-accent-border);
  box-shadow: var(--az-shadow-md);
  background-color: #0F172A;
}

.hero-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  transition: transform 0.35s ease;
}
.photo-card:hover .hero-photo {
  transform: scale(1.02);
}

.photo-status-beneath {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--az-bg-subtle);
  border: 1px solid var(--az-border-card);
  border-radius: 20px;
  padding: 6px 14px;
  font-family: var(--az-font-heading);
  font-size: 0.78rem;
  color: var(--az-navy-primary);
  font-weight: 700;
  box-shadow: var(--az-shadow-sm);
}

.photo-status-beneath .live-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: #10B981;
  box-shadow: 0 0 0 2px rgba(16, 185, 129, 0.2);
}

.live-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background-color: #10B981;
}

.hero-tag-strip {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 4px 12px;
  background: var(--az-accent-light);
  border: 1px solid var(--az-accent-border);
  border-radius: 999px;
  margin-bottom: 16px;
}

.hero-tag {
  font-family: var(--az-font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  color: var(--az-accent);
  font-weight: 700;
}

.hero-tag-badge {
  background: var(--az-accent);
  color: #FFFFFF;
  font-size: 0.65rem;
  font-family: var(--az-font-mono);
  padding: 2px 8px;
  border-radius: 4px;
  font-weight: 700;
}

.hero-name {
  font-family: var(--az-font-heading);
  font-size: clamp(2.4rem, 4vw, 3.2rem);
  font-weight: 800;
  color: var(--az-navy-primary);
  line-height: 1.12;
  letter-spacing: -0.025em;
}

.hero-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--az-accent);
  margin-top: 4px;
  margin-bottom: 18px;
}

.hero-bullets {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 24px;
}
.hero-bullets li {
  font-size: 0.94rem;
  line-height: 1.6;
  color: var(--az-slate-muted);
  position: relative;
  padding-left: 18px;
}
.hero-bullets li::before {
  content: '▸';
  color: var(--az-accent);
  position: absolute;
  left: 0;
  font-weight: 700;
  font-size: 1.1rem;
}
.hero-bullets li strong {
  color: var(--az-navy-primary);
}

/* Metrics Grid */
.metrics-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-bottom: 22px;
}

.metric-card {
  background: var(--az-bg-subtle);
  border: 1px solid var(--az-border-card);
  border-radius: var(--az-radius-sm);
  padding: 12px 16px;
  border-left: 3px solid var(--az-accent);
  transition: var(--az-transition);
}
.metric-card:hover {
  border-color: #CBD5E1;
  transform: translateY(-2px);
}

.metric-num {
  font-family: var(--az-font-heading);
  font-size: 1.45rem;
  font-weight: 800;
  color: var(--az-navy-primary);
}
.metric-lbl {
  font-size: 0.74rem;
  color: var(--az-slate-light);
  font-weight: 600;
  text-transform: uppercase;
  margin-top: 2px;
}

.tech-pills-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.tech-pill {
  background: #FFFFFF;
  border: 1px solid var(--az-border-card);
  color: var(--az-navy-primary);
  font-family: var(--az-font-heading);
  font-size: 0.78rem;
  padding: 5px 14px;
  border-radius: 20px;
  font-weight: 600;
  box-shadow: var(--az-shadow-sm);
}

/* ==========================================================================
   SECTION COMMON STYLING
   ========================================================================== */
.section-block {
  display: flex;
  flex-direction: column;
}

.section-header {
  margin-bottom: 20px;
}

.projects-master-header {
  margin-top: 8px;
  padding-bottom: 20px;
  border-bottom: 2px solid var(--az-border-card);
}

.eyebrow {
  font-family: var(--az-font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  color: var(--az-accent);
  text-transform: uppercase;
  font-weight: 700;
  margin-bottom: 6px;
}

.section-title {
  font-family: var(--az-font-heading);
  font-size: 1.85rem;
  font-weight: 800;
  color: var(--az-navy-primary);
  letter-spacing: -0.02em;
}

.section-desc {
  font-size: 0.98rem;
  color: var(--az-slate-muted);
  margin-top: 4px;
  max-width: 820px;
}

/* ==========================================================================
   3D VIEWPORT STYLING (AUTHENTIC REVIT BIM ENGINE & DEPTH SCRUBBER)
   ========================================================================== */
.viewer-card {
  background: #FFFFFF;
  border: 1px solid var(--az-border-card);
  border-radius: var(--az-radius-md);
  box-shadow: var(--az-shadow-md);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

/* 3D Viewport Stage */
.az-hero-3d-wrapper {
  position: relative;
  width: 100%;
  min-height: 540px;
  height: 540px;
  background: radial-gradient(circle at center, #F8FAFC 0%, #EEF2F6 100%);
  border: none;
  box-shadow: none;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.az-hero-3d-canvas-container {
  width: 100%;
  height: 100%;
  position: absolute;
  top: 0;
  left: 0;
  cursor: grab;
  overflow: hidden;
}

.az-hero-3d-canvas-container canvas {
  width: 100% !important;
  height: 100% !important;
  touch-action: none !important;
  pointer-events: auto !important;
  display: block;
}

.az-hero-3d-canvas-container:active {
  cursor: grabbing;
}

/* Loading Overlay */
.model-loading-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(4px);
  z-index: 10;
  transition: opacity 0.35s ease, visibility 0.35s ease;
  font-family: var(--az-font-heading);
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--az-navy-primary);
}
.model-loading-overlay.loaded {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}
.loader-spinner {
  width: 38px;
  height: 38px;
  border: 3px solid #E2E8F0;
  border-top-color: var(--az-accent);
  border-radius: 50%;
  animation: azSpin 0.8s linear infinite;
}
@keyframes azSpin {
  to { transform: rotate(360deg); }
}

/* Horizontal Depth Scrubber Controller (Beneath 3D Viewport) */
.az-hero-scrubber-wrap {
  width: 100%;
  padding: 32px 52px 52px 52px;
  box-sizing: border-box;
  background: #FFFFFF;
  border-top: 1px solid var(--az-border-card);
}

.az-hero-scrubber-track-bar {
  position: relative;
  height: 28px;
  display: flex;
  align-items: center;
  width: 100%;
  cursor: pointer;
  touch-action: none;
  box-sizing: border-box;
  user-select: none;
}

.az-hero-track-rail {
  position: absolute;
  left: 20px;
  right: 20px;
  height: 3px;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
}

.az-hero-track-line-base {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background: #E2E8F0;
  border-radius: 3px;
}

.az-hero-track-line-active {
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  background: var(--az-accent);
  border-radius: 3px;
  transition: width 0.28s cubic-bezier(0.16, 1, 0.3, 1);
}

.az-hero-scrubber-thumb {
  position: absolute;
  top: 50%;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--az-accent);
  border: 3px solid #FFFFFF;
  box-shadow: 0 0 0 4px rgba(8, 120, 209, 0.22), 0 2px 6px rgba(0, 0, 0, 0.15);
  transform: translate(-50%, -50%);
  pointer-events: none;
  transition: left 0.28s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 5;
}

.az-hero-scrubber-nodes {
  position: absolute;
  left: 20px;
  right: 20px;
  top: 0;
  height: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.az-hero-detent-stop {
  all: unset !important;
  box-sizing: border-box !important;
  position: relative !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  cursor: pointer !important;
  width: 26px !important;
  height: 26px !important;
}

.az-hero-node-circle-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
}

.az-hero-detent-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #CBD5E1;
  transition: all 0.2s ease;
}

.az-hero-detent-stop:hover .az-hero-detent-dot {
  background: #94A3B8;
  transform: scale(1.3);
}

.az-hero-detent-stop.completed .az-hero-detent-dot {
  background: var(--az-accent);
}

.az-hero-detent-stop.active .az-hero-detent-dot {
  opacity: 0;
}

.az-hero-detent-label {
  position: absolute;
  top: calc(100% + 9px);
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--az-font-heading) !important;
  font-size: 11px !important;
  font-weight: 700 !important;
  color: var(--az-slate-light) !important;
  text-transform: uppercase !important;
  letter-spacing: 0.04em !important;
  white-space: nowrap !important;
  transition: color 0.2s ease !important;
}

.az-hero-detent-stop[data-index="0"] .az-hero-detent-label {
  left: 0 !important;
  transform: translateX(0) !important;
}

.az-hero-detent-stop[data-index="5"] .az-hero-detent-label {
  left: auto !important;
  right: 0 !important;
  transform: translateX(0) !important;
}

.az-hero-detent-stop.active .az-hero-detent-label {
  color: var(--az-navy-primary) !important;
  font-weight: 800 !important;
}

@media (max-width: 640px) {
  .az-hero-3d-wrapper {
    min-height: 380px;
    height: 380px;
  }
  .az-hero-scrubber-wrap {
    padding: 24px 16px 44px 16px;
  }
  .az-hero-track-rail,
  .az-hero-scrubber-nodes {
    left: 8px;
    right: 8px;
  }
  .az-hero-detent-label {
    font-size: 8.5px !important;
    letter-spacing: -0.02em !important;
  }
}

/* ==========================================================================
   PROJECT CARDS & ONE-PROJECT-PER-PAGE LAYOUT
   ========================================================================== */
.project-card {
  background: var(--az-bg-card);
  border: 1px solid var(--az-border-card);
  border-radius: var(--az-radius-md);
  padding: 32px;
  box-shadow: var(--az-shadow-md);
  transition: var(--az-transition);
}
.project-card:hover {
  border-color: #CBD5E1;
  box-shadow: var(--az-shadow-lg);
}

.project-grid {
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  gap: 32px;
  align-items: flex-start;
}

.media-col {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.main-frame {
  position: relative;
  width: 100%;
  height: 360px;
  background: #0F172A;
  border: 1px solid var(--az-border-card);
  border-radius: var(--az-radius-sm);
  overflow: hidden;
  cursor: pointer;
}
.main-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}
.main-frame:hover img {
  transform: scale(1.02);
}

.frame-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 10px 14px;
  background: linear-gradient(to top, rgba(15, 23, 42, 0.95), transparent);
  font-family: var(--az-font-mono);
  font-size: 0.74rem;
  color: #FFFFFF;
}

.thumbs-reel {
  display: flex;
  gap: 8px;
}

.thumb-item {
  flex: 1;
  height: 60px;
  background: #F1F5F9;
  border: 1px solid var(--az-border-card);
  border-radius: 4px;
  overflow: hidden;
  cursor: pointer;
  padding: 0;
  transition: var(--az-transition);
}
.thumb-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.65;
}
.thumb-item:hover img, .thumb-item.active img {
  opacity: 1;
}
.thumb-item.active {
  border-color: var(--az-accent);
  box-shadow: 0 0 0 2px rgba(8, 120, 209, 0.3);
}
.thumb-item span {
  display: none;
}

/* Content Column */
.content-col {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

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

.badge {
  font-family: var(--az-font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 4px;
  text-transform: uppercase;
}
.badge-accent { background: var(--az-accent-light); color: var(--az-accent); border: 1px solid var(--az-accent-border); }
.badge-cyan { background: #E0F2FE; color: #0284C7; border: 1px solid #BAE6FD; }
.badge-dark { background: #0E2942; color: #FFFFFF; }
.badge-outline { border: 1px solid var(--az-border-card); color: var(--az-slate-light); background: #FFFFFF; }

.spec-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.spec-label {
  font-family: var(--az-font-heading);
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--az-navy-primary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.spec-text {
  font-size: 0.92rem;
  color: var(--az-slate-muted);
  line-height: 1.6;
}

.bullet-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.bullet-list li {
  font-size: 0.88rem;
  line-height: 1.55;
  color: var(--az-slate-muted);
  position: relative;
  padding-left: 16px;
}
.bullet-list li::before {
  content: '▸';
  color: var(--az-accent);
  position: absolute;
  left: 0;
  font-weight: 700;
}
.bullet-list li strong {
  color: var(--az-navy-primary);
}

.bullet-list.small li {
  font-size: 0.82rem;
}

.deliverables-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.d-chip {
  background: var(--az-bg-subtle);
  border: 1px solid var(--az-border-card);
  color: var(--az-navy-secondary);
  font-family: var(--az-font-mono);
  font-size: 0.72rem;
  padding: 4px 10px;
  border-radius: 4px;
  font-weight: 600;
}

/* Infographic Panel (VHT) */
.infographic-panel {
  background: #0F172A;
  border-radius: var(--az-radius-sm);
  padding: 32px 28px;
  color: #fff;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.info-top {
  font-family: var(--az-font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  color: #38BDF8;
  font-weight: 700;
  margin-bottom: 24px;
}
.stat-grid-2x2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
.stat-box {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 16px;
  border-radius: 6px;
}
.s-num {
  font-family: var(--az-font-heading);
  font-size: 1.8rem;
  font-weight: 800;
  color: #FFFFFF;
  display: block;
}
.s-label {
  font-size: 0.74rem;
  color: #94A3B8;
  margin-top: 4px;
  display: block;
}
.info-footer {
  font-family: var(--az-font-mono);
  font-size: 0.7rem;
  color: #64748B;
  margin-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 10px;
}

/* ==========================================================================
   CUSTOM ADD-INS & AUTOMATION (LAYMAN & YOUTUBE SHOWCASE)
   ========================================================================== */
.addins-summary-card {
  background: #FFFFFF;
  border: 1px solid var(--az-border-card);
  border-radius: var(--az-radius-md);
  padding: 28px 32px;
  box-shadow: var(--az-shadow-md);
  margin-bottom: 24px;
}

.addins-summary-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 16px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--az-border-card);
}

.addins-head-title {
  font-family: var(--az-font-heading);
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--az-navy-primary);
}

.addins-count-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #EF4444;
  color: #FFFFFF;
  font-family: var(--az-font-heading);
  font-size: 0.8rem;
  font-weight: 700;
  padding: 5px 14px;
  border-radius: 999px;
  letter-spacing: 0.02em;
}

.addins-count-badge svg {
  fill: #FFFFFF;
}

.addins-layman-p {
  font-size: 0.98rem;
  color: var(--az-slate-muted);
  line-height: 1.6;
  margin-bottom: 22px;
}

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

.benefit-card {
  background: var(--az-bg-subtle);
  border: 1px solid var(--az-border-card);
  border-radius: var(--az-radius-sm);
  padding: 18px 16px;
  transition: var(--az-transition);
}
.benefit-card:hover {
  border-color: var(--az-accent);
  background: #FFFFFF;
  transform: translateY(-2px);
}
.benefit-icon {
  font-size: 1.45rem;
  margin-bottom: 8px;
  display: block;
}
.benefit-title {
  font-family: var(--az-font-heading);
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--az-navy-primary);
  margin-bottom: 6px;
}
.benefit-desc {
  font-size: 0.8rem;
  color: var(--az-slate-muted);
  line-height: 1.45;
}

/* Featured Video Player Box */
.video-showcase-wrapper {
  background: #0B1F33;
  border-radius: var(--az-radius-md);
  padding: 24px;
  color: #FFFFFF;
  margin-bottom: 24px;
  border: 1px solid var(--az-border-card);
  box-shadow: var(--az-shadow-md);
}

.video-showcase-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
  flex-wrap: wrap;
  gap: 12px;
}

.video-showcase-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--az-font-heading);
  font-size: 1.05rem;
  font-weight: 700;
  color: #FFFFFF;
}

.video-help-hint {
  font-family: var(--az-font-mono);
  font-size: 0.72rem;
  color: #94A3B8;
  background: rgba(255, 255, 255, 0.08);
  padding: 4px 10px;
  border-radius: 4px;
}

.video-responsive-frame {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
  height: 0;
  border-radius: var(--az-radius-sm);
  overflow: hidden;
  background: #000000;
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.video-responsive-frame iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* 8 Video Cards Grid */
.addins-videos-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.addin-video-card {
  background: #FFFFFF;
  border: 1px solid var(--az-border-card);
  border-radius: var(--az-radius-sm);
  padding: 18px 16px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: var(--az-shadow-sm);
  transition: var(--az-transition);
}
.addin-video-card:hover {
  border-color: #EF4444;
  box-shadow: var(--az-shadow-md);
  transform: translateY(-2px);
}

.av-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}
.av-badge {
  font-family: var(--az-font-mono);
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--az-accent);
  background: var(--az-accent-light);
  padding: 2px 7px;
  border-radius: 4px;
}
.av-yt-icon {
  width: 22px;
  height: 16px;
  fill: #EF4444;
}
.av-title {
  font-family: var(--az-font-heading);
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--az-navy-primary);
  margin-bottom: 6px;
  line-height: 1.35;
}
.av-desc {
  font-size: 0.78rem;
  color: var(--az-slate-muted);
  line-height: 1.45;
  margin-bottom: 14px;
  flex-grow: 1;
}
.av-link-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 7px 12px;
  background: #FEF2F2;
  color: #DC2626;
  border: 1px solid #FECACA;
  border-radius: 6px;
  font-family: var(--az-font-heading);
  font-size: 0.76rem;
  font-weight: 700;
  text-decoration: none;
  transition: var(--az-transition);
}
.addin-video-card:hover .av-link-btn {
  background: #DC2626;
  color: #FFFFFF;
  border-color: #DC2626;
}

/* ==========================================================================
   LOD PROGRESSION (LOD 100 - 500)
   ========================================================================== */
.lod-grid-6 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

/* ==========================================================================
   INTERACTIVE CLASH COMPARISON SLIDER
   ========================================================================== */
.clash-widget-card {
  background: #FFFFFF;
  border: 1px solid var(--az-border-card);
  border-radius: var(--az-radius-md);
  padding: 24px;
  box-shadow: var(--az-shadow-md);
  margin-bottom: 24px;
}

.slider-viewport {
  position: relative;
  width: 100%;
  height: 480px;
  border-radius: var(--az-radius-sm);
  overflow: hidden;
  user-select: none;
  cursor: ew-resize;
  background: #0F172A;
}

.pane {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}
.pane img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
}

.after-pane {
  width: 50%;
  overflow: hidden;
  z-index: 2;
  border-right: 2px solid #FFFFFF;
}
.after-pane img {
  width: 1260px;
  max-width: none;
}

.pane-badge {
  position: absolute;
  top: 14px;
  padding: 5px 12px;
  font-family: var(--az-font-mono);
  font-size: 0.74rem;
  font-weight: 700;
  border-radius: 4px;
}
.red-badge {
  right: 14px;
  background: #EF4444;
  color: #FFFFFF;
}
.green-badge {
  left: 14px;
  background: #10B981;
  color: #FFFFFF;
}

.slider-divider {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 4px;
  z-index: 3;
  transform: translateX(-50%);
  pointer-events: none;
}
.divider-line {
  width: 2px;
  height: 100%;
  background: #FFFFFF;
  margin: 0 auto;
}
.divider-knob {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 14px rgba(0, 0, 0, 0.25);
}

.slider-hint {
  text-align: center;
  font-family: var(--az-font-mono);
  font-size: 0.76rem;
  color: var(--az-slate-light);
  margin-top: 12px;
}

/* Priority Table */
.table-card {
  background: #FFFFFF;
  border: 1px solid var(--az-border-card);
  border-radius: var(--az-radius-md);
  padding: 24px;
  box-shadow: var(--az-shadow-md);
}
.table-title {
  font-family: var(--az-font-heading);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--az-navy-primary);
  margin-bottom: 16px;
}
.table-scroll {
  overflow-x: auto;
}
.dark-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
}
.dark-table th, .dark-table td {
  padding: 14px 18px;
  text-align: left;
  border-bottom: 1px solid var(--az-border-card);
}
.dark-table th {
  background: var(--az-bg-subtle);
  font-family: var(--az-font-mono);
  font-size: 0.76rem;
  color: var(--az-navy-primary);
  text-transform: uppercase;
  font-weight: 700;
}
.dark-table tbody tr:hover {
  background: var(--az-accent-light);
}

.p-chip {
  font-family: var(--az-font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 4px;
  display: inline-block;
}
.p1 { background: #FEE2E2; color: #991B1B; }
.p2 { background: #FEF3C7; color: #92400E; }
.p3 { background: #E0F2FE; color: #075985; }
.p4 { background: #D1FAE5; color: #065F46; }
.p5 { background: #EDE9FE; color: #5B21B6; }

/* ==========================================================================
   LOD PROGRESSION QUAD GRID
   ========================================================================== */
.lod-quad-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.lod-item {
  background: var(--az-bg-card);
  border: 1px solid var(--az-border-card);
  border-radius: var(--az-radius-sm);
  padding: 20px;
  display: flex;
  flex-direction: column;
  box-shadow: var(--az-shadow-sm);
}
.lod-item.highlight-item {
  background: var(--az-accent-light);
  border-color: var(--az-accent-border);
}
.lod-level-tag {
  font-family: var(--az-font-mono);
  font-size: 0.74rem;
  font-weight: 700;
  color: var(--az-slate-light);
  margin-bottom: 4px;
}
.lod-level-tag.active {
  color: var(--az-accent);
}
.lod-heading {
  font-family: var(--az-font-heading);
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--az-navy-primary);
}
.lod-sub {
  font-size: 0.76rem;
  color: var(--az-slate-light);
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--az-border-card);
  font-weight: 600;
}

/* ==========================================================================
   VISUAL VAULT GALLERY
   ========================================================================== */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 20px;
}

.gallery-cell {
  position: relative;
  height: 240px;
  background: #0F172A;
  border: 1px solid var(--az-border-card);
  border-radius: var(--az-radius-sm);
  overflow: hidden;
  cursor: pointer;
  transition: var(--az-transition);
}
.gallery-cell img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}
.gallery-cell:hover img {
  transform: scale(1.05);
}

.gallery-badge {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 12px 16px;
  background: linear-gradient(to top, rgba(11, 31, 51, 0.95), transparent);
  color: #FFFFFF;
  font-family: var(--az-font-heading);
  font-size: 0.84rem;
  font-weight: 600;
}

/* ==========================================================================
   MODAL LIGHTBOX
   ========================================================================== */
.dark-modal {
  position: fixed;
  inset: 0;
  background: rgba(11, 31, 51, 0.88);
  backdrop-filter: blur(8px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  visibility: hidden;
  transition: all 0.22s;
}
.dark-modal.active {
  opacity: 1;
  visibility: visible;
}
.modal-box {
  background: #FFFFFF;
  border-radius: var(--az-radius-md);
  max-width: 1100px;
  width: 100%;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}
.modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 22px;
  background: #FFFFFF;
  border-bottom: 1px solid var(--az-border-card);
  font-family: var(--az-font-heading);
  font-weight: 700;
  color: var(--az-navy-primary);
}
.modal-close {
  background: transparent;
  border: none;
  font-size: 1.25rem;
  cursor: pointer;
  color: var(--az-slate-light);
}
.modal-close:hover {
  color: var(--az-navy-primary);
}
.modal-body {
  padding: 18px;
  background: #0F172A;
  display: flex;
  align-items: center;
  justify-content: center;
}
.modal-body img {
  max-width: 100%;
  max-height: 70vh;
  object-fit: contain;
}

/* Responsive */
@media (max-width: 1024px) {
  .hero-grid { grid-template-columns: 1fr; }
  .project-grid { grid-template-columns: 1fr; }
  .addins-benefit-grid { grid-template-columns: repeat(2, 1fr); }
  .addins-videos-grid { grid-template-columns: repeat(2, 1fr); }
  .lod-grid-6 { grid-template-columns: repeat(2, 1fr); }
  .metrics-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
  .addins-benefit-grid { grid-template-columns: 1fr; }
  .addins-videos-grid { grid-template-columns: 1fr; }
  .lod-grid-6 { grid-template-columns: 1fr; }
  .metrics-grid { grid-template-columns: 1fr; }
  .profile-hero-section { padding: 28px 20px; }
  .project-card { padding: 22px 18px; }
  .main-frame { height: 240px; }
  .slider-viewport { height: 280px; }
}
