/* ==========================================================================
   ATEF ELASKLANY PORTFOLIO — COMPLETE UNIFIED DESIGN SYSTEM
   Theme: Refined Technical Dark Mode (Data & Systems Focused)
   ========================================================================== */

/* ----------------- CSS Custom Properties (Design Tokens) ----------------- */
:root {
  /* Color Palette: Canvas & Surfaces */
  --bg-canvas: #08111F;
  --bg-surface: #0E1420;
  --bg-surface-elevated: #151D2E;
  --bg-card: rgba(18, 26, 42, 0.75);
  --bg-card-hover: rgba(26, 37, 59, 0.9);
  --bg-glass: rgba(14, 20, 32, 0.75);

  /* Borders & Dividers */
  --border-subtle: rgba(255, 255, 255, 0.07);
  --border-medium: rgba(255, 255, 255, 0.12);
  --border-focus: rgba(14, 165, 233, 0.4);
  --border-slate: #1E293B;

  /* Accent Colors (Analytical & Action) */
  --accent-cyan: #0EA5E9;
  --accent-cyan-light: #38BDF8;
  --accent-cyan-glow: rgba(14, 165, 233, 0.18);
  --accent-emerald: #10B981;
  --accent-emerald-light: #34D399;
  --accent-emerald-glow: rgba(16, 185, 129, 0.18);
  --accent-warning: #F59E0B;
  --accent-danger: #EF4444;

  /* Typography Colors */
  --text-primary: #F8FAFC;
  --text-secondary: #94A3B8;
  --text-muted: #64748B;
  --text-inverse: #080B11;

  /* Typography Font Stacks */
  --font-heading: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  /* Spacing Scale */
  --spacing-xs: 0.5rem;
  --spacing-sm: 0.75rem;
  --spacing-md: 1.25rem;
  --spacing-lg: 2rem;
  --spacing-xl: 3.5rem;
  --spacing-2xl: 5rem;

  /* Shadows & Radius */
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 22px;
  --shadow-subtle: 0 4px 20px rgba(0, 0, 0, 0.35);
  --shadow-glow: 0 0 30px rgba(14, 165, 233, 0.15);

  /* Transitions */
  --transition-fast: 0.18s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-smooth: 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body.dark-theme {
  background-color: var(--bg-canvas);
  color: var(--text-primary);
  font-family: var(--font-body);
  line-height: 1.65;
  background-image: 
    radial-gradient(rgba(59, 130, 246, 0.12) 1px, transparent 1px),
    radial-gradient(circle at 50% 0%, rgba(37, 99, 235, 0.16) 0%, transparent 55%),
    radial-gradient(circle at 88% 22%, rgba(99, 102, 241, 0.09) 0%, transparent 45%),
    radial-gradient(circle at 12% 58%, rgba(14, 165, 233, 0.08) 0%, transparent 48%),
    radial-gradient(circle at 78% 85%, rgba(37, 99, 235, 0.09) 0%, transparent 50%);
  background-size: 36px 36px, 100% 100%, 100% 100%, 100% 100%, 100% 100%;
  background-attachment: fixed;
  min-height: 100vh;
}

/* Container */
.container {
  width: 100%;
  max-width: 1160px;
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--spacing-lg);
  padding-right: var(--spacing-lg);
}

/* Section Spacing */
.section-spacing {
  padding-top: var(--spacing-xl);
  padding-bottom: var(--spacing-xl);
  border-bottom: 1px solid var(--border-subtle);
}

/* Section Headers */
.section-header {
  margin-bottom: var(--spacing-xl);
}

.section-header.flex-between {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 1.5rem;
}

.section-tag {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--accent-cyan-light);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: var(--spacing-xs);
}

.section-heading {
  font-family: var(--font-heading);
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.02em;
  line-height: 1.25;
  margin-bottom: var(--spacing-xs);
}

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

.gradient-text {
  background: linear-gradient(135deg, #38BDF8 0%, #0EA5E9 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.gradient-text-emerald {
  background: linear-gradient(135deg, #34D399 0%, #10B981 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* ----------------- Buttons & Badges ----------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.4rem;
  border-radius: var(--radius-md);
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: all var(--transition-fast);
  border: 1px solid transparent;
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent-cyan) 0%, #0284C7 100%);
  color: #FFFFFF;
  box-shadow: 0 2px 10px rgba(14, 165, 233, 0.3);
}

.btn-primary:hover {
  background: linear-gradient(135deg, var(--accent-cyan-light) 0%, var(--accent-cyan) 100%);
  transform: translateY(-2px);
  box-shadow: 0 4px 18px rgba(14, 165, 233, 0.4);
}

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

.btn-secondary:hover {
  background-color: var(--border-slate);
  transform: translateY(-2px);
  border-color: var(--accent-cyan);
}

.btn-sm {
  padding: 0.45rem 0.95rem;
  font-size: 0.85rem;
}

.badge {
  display: inline-flex;
  align-items: center;
  padding: 0.3rem 0.8rem;
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.badge-primary {
  background-color: var(--accent-cyan-glow);
  color: var(--accent-cyan-light);
  border: 1px solid rgba(14, 165, 233, 0.3);
}

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

/* ----------------- Header Navigation ----------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background-color: var(--bg-glass);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border-subtle);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 var(--spacing-lg);
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 1rem;
  text-decoration: none;
}

.logo-name {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.01em;
}

.status-indicator {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.2rem 0.6rem;
  background-color: var(--accent-emerald-glow);
  border: 1px solid rgba(16, 185, 129, 0.3);
  border-radius: 999px;
  font-size: 0.75rem;
  color: var(--accent-emerald);
  font-family: var(--font-body);
  font-weight: 500;
}

.status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: var(--accent-emerald);
  box-shadow: 0 0 8px var(--accent-emerald);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.nav-links a {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-secondary);
  text-decoration: none;
  transition: color var(--transition-fast);
}

.nav-links a:hover {
  color: var(--text-primary);
}

/* ----------------- 01. Homepage Hero Section ----------------- */
.hp-hero {
  padding-top: var(--spacing-2xl);
  padding-bottom: var(--spacing-xl);
}

.hero-badge-wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: var(--spacing-md);
}

.hp-hero-title {
  font-family: var(--font-heading);
  font-size: 3.4rem;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.03em;
  color: var(--text-primary);
  margin-bottom: 1.25rem;
  max-width: 960px;
}

.hp-hero-description {
  font-size: 1.2rem;
  color: var(--text-secondary);
  line-height: 1.7;
  max-width: 820px;
  margin-bottom: var(--spacing-lg);
}

.hp-hero-actions {
  display: flex;
  gap: 1rem;
  margin-bottom: var(--spacing-2xl);
}

.hero-trust-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  padding-top: var(--spacing-xl);
  border-top: 1px solid var(--border-subtle);
}

.trust-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.25rem;
}

.trust-icon {
  font-size: 1.5rem;
  line-height: 1;
}

.trust-title {
  display: block;
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.2rem;
}

.trust-desc {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

/* ----------------- 02. Core Differentiator (The BIS Triad) ----------------- */
.differentiator-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.diff-card {
  background: var(--bg-card);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 2rem 1.75rem;
  position: relative;
  transition: all var(--transition-smooth);
}

.diff-card:hover {
  border-color: var(--accent-cyan);
  transform: translateY(-4px);
  box-shadow: var(--shadow-subtle);
}

.diff-number {
  font-family: var(--font-mono);
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--accent-cyan-light);
  opacity: 0.5;
  margin-bottom: 0.75rem;
}

.diff-title {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.75rem;
}

.diff-desc {
  font-size: 0.92rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 1.25rem;
}

.diff-tags {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.diff-tags span {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--accent-cyan-light);
  background: var(--accent-cyan-glow);
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
  display: inline-block;
  width: fit-content;
}

/* ----------------- 03. Selected Work (Project Grid System) ----------------- */
.project-filter-note .filter-status {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--accent-emerald);
  background: var(--accent-emerald-glow);
  padding: 0.3rem 0.75rem;
  border-radius: 999px;
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.project-filters {
  display: flex;
  gap: 0.75rem;
  margin-bottom: 2.5rem;
  flex-wrap: wrap;
}

.filter-btn {
  background: var(--bg-surface);
  border: 1px solid var(--border-medium);
  color: var(--text-secondary);
  font-family: var(--font-heading);
  font-size: 0.9rem;
  font-weight: 600;
  padding: 0.5rem 1.25rem;
  border-radius: 999px;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.filter-btn:hover {
  border-color: var(--accent-cyan);
  color: var(--text-primary);
}

.filter-btn.active {
  background: var(--accent-cyan-glow);
  border-color: var(--accent-cyan);
  color: var(--accent-cyan-light);
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}

@media (max-width: 768px) {
  .project-grid {
    grid-template-columns: 1fr;
  }
}

.project-card {
  background: var(--bg-card);
  backdrop-filter: blur(14px);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-xl);
  overflow: hidden;
  transition: all var(--transition-smooth), opacity 0.3s ease, transform 0.3s ease;
  display: flex;
  flex-direction: column;
}

.project-card.hidden {
  display: none;
}

.project-card:hover {
  border-color: var(--accent-cyan);
  box-shadow: var(--shadow-subtle), var(--shadow-glow);
  transform: translateY(-4px);
}

.grid-cover-wrapper {
  overflow: hidden;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-bottom: 1px solid var(--border-medium);
}

.grid-cover {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-smooth);
}

.project-card:hover .grid-cover {
  transform: scale(1.03);
}

.grid-content {
  padding: 2rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.grid-meta {
  margin-bottom: 1rem;
}

.grid-title {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.3;
  margin-bottom: 0.75rem;
}

.grid-summary {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 1.5rem;
  flex-grow: 1;
}

.grid-footer {
  margin-top: auto;
}

/* Projects Page Specific Styles */
.projects-page-header {
  padding-top: var(--spacing-xl);
  padding-bottom: var(--spacing-lg);
  border-bottom: 1px solid var(--border-subtle);
  margin-bottom: var(--spacing-lg);
  background: linear-gradient(180deg, rgba(10, 15, 26, 0.4) 0%, var(--bg-canvas) 100%);
}

.view-all-cta {
  display: flex;
  justify-content: center;
  margin-top: 3.5rem;
}

.view-all-cta .btn-lg {
  padding: 1rem 2.5rem;
  font-size: 1.05rem;
}

/* Card Visual Mockup Side */
.visual-window {
  background-color: #0A0F1A;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  overflow: hidden;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.v-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.65rem 1rem;
  background-color: var(--bg-surface-elevated);
  border-bottom: 1px solid var(--border-subtle);
}

.v-dots {
  display: flex;
  gap: 5px;
}

.v-dots span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--text-muted);
}

.v-title {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-secondary);
}

.v-badge {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--accent-cyan-light);
  background: var(--accent-cyan-glow);
  padding: 0.15rem 0.4rem;
  border-radius: 4px;
}

.v-preview-content {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  flex: 1;
  gap: 1.25rem;
}

.v-kpis {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
}

.v-kpi-item {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: 6px;
  padding: 0.75rem;
  display: flex;
  flex-direction: column;
}

.v-trend-line {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: 6px;
  padding: 0.75rem;
  display: flex;
  flex-direction: column;
  position: relative;
}

.trend-peak-tag {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: var(--accent-emerald);
  position: absolute;
  top: 6px;
  left: 10px;
}

.trend-low-tag {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: var(--accent-danger);
  position: absolute;
  bottom: 6px;
  right: 10px;
}

.mini-chart {
  width: 100%;
  height: 60px;
  margin-top: 10px;
}

/* Card Details Side */
.card-details {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.card-meta {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}

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

.card-title {
  font-family: var(--font-heading);
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.25;
  margin-bottom: 0.85rem;
}

.card-summary {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.65;
  margin-bottom: 1.25rem;
}

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

.card-metrics-strip {
  display: flex;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}

.metric-pill {
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: 6px;
  padding: 0.5rem 0.85rem;
  display: flex;
  flex-direction: column;
}

.m-val {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--text-primary);
  line-height: 1.1;
}

.m-lbl {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: var(--text-muted);
  text-transform: uppercase;
  margin-top: 0.15rem;
}

.card-tools {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

.tool-tag {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  padding: 0.25rem 0.6rem;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: 4px;
  color: var(--text-secondary);
}

/* ----------------- 04. Capabilities Section ----------------- */
.capabilities-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

.cap-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 2rem 1.75rem;
  transition: all var(--transition-fast);
}

.cap-card:hover {
  border-color: var(--border-medium);
  transform: translateY(-3px);
}

.cap-icon {
  font-size: 1.75rem;
  margin-bottom: 1rem;
  line-height: 1;
}

.cap-title {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

.cap-desc {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ----------------- 05. Methodology Section ----------------- */
.framework-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
}

.f-step {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 1.75rem 1.5rem;
}

.f-num {
  font-family: var(--font-mono);
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--accent-cyan-light);
  margin-bottom: 0.5rem;
}

.f-title {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

.f-desc {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.55;
}

/* ----------------- 06. About Section ----------------- */
.about-grid {
  display: grid;
  grid-template-columns: 7fr 5fr;
  gap: 2.5rem;
  align-items: center;
}

.about-p {
  font-size: 1.05rem;
  color: var(--text-secondary);
  line-height: 1.75;
  margin-bottom: 1.25rem;
}

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

.about-highlights {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  margin-top: 1.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border-subtle);
}

.ah-item {
  font-size: 0.92rem;
  color: var(--text-secondary);
}

.ah-item strong {
  color: var(--accent-cyan-light);
  font-family: var(--font-mono);
  font-size: 0.85rem;
}

.about-stat-col {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.about-stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 2rem;
  text-align: center;
}

.stat-big-num {
  font-family: var(--font-heading);
  font-size: 3rem;
  font-weight: 800;
  color: var(--accent-cyan-light);
  line-height: 1;
  margin-bottom: 0.4rem;
}

.stat-label {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.4rem;
}

.stat-desc {
  font-size: 0.88rem;
  color: var(--text-secondary);
}

/* ----------------- 07. Skills Matrix ----------------- */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.skill-category {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
}

.cat-title {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 1.25rem;
  border-bottom: 1px solid var(--border-subtle);
  padding-bottom: 0.6rem;
}

.pill-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.skill-pill {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--text-secondary);
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: 6px;
  padding: 0.35rem 0.65rem;
}

/* ----------------- 08. Services & Engagement ----------------- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

.service-box {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 2rem 1.75rem;
}

.s-icon {
  font-size: 1.75rem;
  margin-bottom: 0.75rem;
  line-height: 1;
}

.s-title {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

.s-desc {
  font-size: 0.92rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ----------------- 09. Contact Section ----------------- */
.contact-card {
  background: linear-gradient(135deg, rgba(14, 165, 233, 0.08) 0%, rgba(16, 185, 129, 0.04) 100%);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-xl);
  padding: 3.5rem 3rem;
  text-align: center;
}

.contact-title {
  font-family: var(--font-heading);
  font-size: 2.4rem;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 1rem;
}

.contact-desc {
  font-size: 1.1rem;
  color: var(--text-secondary);
  max-width: 680px;
  margin: 0 auto 2.25rem;
  line-height: 1.7;
}

.contact-channels {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.channel-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.85rem 1.4rem;
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  text-decoration: none;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.95rem;
  transition: all var(--transition-fast);
}

.channel-btn:hover {
  border-color: var(--accent-cyan);
  background: var(--border-slate);
  transform: translateY(-2px);
}

.channel-btn.primary {
  background: linear-gradient(135deg, var(--accent-cyan) 0%, #0284C7 100%);
  color: #FFFFFF;
  border-color: transparent;
}

.channel-btn.primary:hover {
  background: linear-gradient(135deg, var(--accent-cyan-light) 0%, var(--accent-cyan) 100%);
}

/* ----------------- Site Footer ----------------- */
.site-footer {
  background-color: var(--bg-canvas);
  border-top: 1px solid var(--border-subtle);
  padding: 2.5rem 0;
}

.footer-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-brand {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--text-primary);
}

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

.footer-links {
  display: flex;
  gap: 1.5rem;
}

.footer-link {
  font-size: 0.9rem;
  color: var(--text-secondary);
  text-decoration: none;
  transition: color var(--transition-fast);
}

.footer-link:hover {
  color: var(--accent-cyan-light);
}

/* ==========================================================================
   DEDICATED CASE STUDY STYLES (Used in projects/shopeasy.html)
   ========================================================================== */
.cs-hero { padding-top: var(--spacing-xl); }
.hero-top-meta { display: flex; align-items: center; gap: 1rem; margin-bottom: var(--spacing-md); }
.back-link { display: inline-flex; align-items: center; gap: 0.4rem; color: var(--text-secondary); text-decoration: none; font-size: 0.85rem; font-weight: 500; transition: color var(--transition-fast); }
.back-link:hover { color: var(--accent-cyan-light); }
.cs-title { font-family: var(--font-heading); font-size: 3.2rem; font-weight: 800; line-height: 1.15; letter-spacing: -0.03em; color: var(--text-primary); margin-bottom: 0.5rem; }
.cs-subtitle { font-size: 1.35rem; color: var(--text-secondary); font-weight: 400; line-height: 1.4; margin-bottom: var(--spacing-lg); max-width: 820px; }

.hero-summary-grid { display: grid; grid-template-columns: 2fr 1fr; gap: 1.5rem; margin-bottom: var(--spacing-xl); }
.summary-card { background: var(--bg-card); backdrop-filter: blur(10px); border: 1px solid var(--border-subtle); border-radius: var(--radius-lg); padding: 1.75rem; }
.summary-label { font-family: var(--font-mono); font-size: 0.78rem; font-weight: 600; color: var(--accent-cyan-light); text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 0.75rem; }
.summary-text { font-size: 1.05rem; color: var(--text-secondary); line-height: 1.7; }
.summary-text strong { color: var(--text-primary); }

/* --- Executive Snapshot Box (Project At A Glance) --- */
.executive-snapshot-card {
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.85) 0%, rgba(11, 16, 26, 0.95) 100%);
  border: 1px solid rgba(59, 130, 246, 0.3);
  border-radius: var(--radius-xl);
  padding: 1.85rem 2rem;
  margin-top: 2rem;
  margin-bottom: 2.5rem;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.35), 0 0 25px rgba(37, 99, 235, 0.1);
  position: relative;
  overflow: hidden;
}

.executive-snapshot-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #38BDF8, #818CF8, #34D399);
}

.snapshot-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  padding-bottom: 1.15rem;
  margin-bottom: 1.35rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.snapshot-title-wrap {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.snapshot-badge {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #38BDF8;
  background: rgba(56, 189, 248, 0.12);
  padding: 0.3rem 0.75rem;
  border-radius: 9999px;
  border: 1px solid rgba(56, 189, 248, 0.25);
}

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

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

.snapshot-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
}

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

@media (max-width: 576px) {
  .snapshot-grid {
    grid-template-columns: 1fr;
    padding: 1.25rem;
  }
}

.snapshot-item {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-md);
  padding: 1.15rem;
  transition: all var(--transition-fast);
}

.snapshot-item:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(59, 130, 246, 0.35);
  transform: translateY(-2px);
}

.snapshot-item-label {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.snapshot-item-label.client { color: #93C5FD; }
.snapshot-item-label.problem { color: #F87171; }
.snapshot-item-label.solution { color: #60A5FA; }
.snapshot-item-label.impact { color: #34D399; }

.snapshot-item-text {
  font-size: 0.92rem;
  color: var(--text-secondary);
  line-height: 1.55;
  margin: 0;
}

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

.meta-sidebar { display: flex; flex-direction: column; justify-content: center; gap: 0.85rem; }
.meta-row { display: flex; flex-direction: column; gap: 0.2rem; border-bottom: 1px solid var(--border-subtle); padding-bottom: 0.6rem; }
.meta-row:last-child { border-bottom: none; padding-bottom: 0; }
.meta-label { font-family: var(--font-mono); font-size: 0.72rem; color: var(--text-muted); text-transform: uppercase; }
.meta-val { font-size: 0.95rem; font-weight: 600; color: var(--text-primary); }
.highlight-kpi { color: var(--accent-cyan-light); font-family: var(--font-mono); font-size: 0.85rem; }

/* Hero Visual Browser Frame */
.hero-visual-frame { background-color: var(--bg-surface); border: 1px solid var(--border-medium); border-radius: var(--radius-xl); overflow: hidden; box-shadow: var(--shadow-subtle), var(--shadow-glow); }
.window-header { display: flex; align-items: center; justify-content: space-between; padding: 0.8rem 1.25rem; background-color: var(--bg-surface-elevated); border-bottom: 1px solid var(--border-subtle); }
.window-dots { display: flex; gap: 6px; }
.window-dots .dot { width: 10px; height: 10px; border-radius: 50%; }
.dot.red { background-color: #EF4444; }
.dot.yellow { background-color: #F59E0B; }
.dot.green { background-color: #10B981; }
.window-title { font-family: var(--font-mono); font-size: 0.8rem; color: var(--text-secondary); }
.window-tag { font-family: var(--font-mono); font-size: 0.72rem; padding: 0.2rem 0.5rem; background-color: var(--accent-cyan-glow); color: var(--accent-cyan-light); border-radius: 4px; }

/* Simulated BI Dashboard UI */
.bi-mockup { padding: 1.5rem; background-color: #0B101A; }
.bi-topbar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1.25rem; border-bottom: 1px solid var(--border-subtle); padding-bottom: 0.75rem; }
.bi-brand { font-family: var(--font-heading); font-weight: 700; font-size: 1rem; color: var(--text-primary); }
.bi-brand span { font-weight: 400; color: var(--text-muted); }
.bi-filters { display: flex; gap: 0.5rem; }
.filter-pill { font-family: var(--font-mono); font-size: 0.72rem; padding: 0.25rem 0.6rem; background-color: var(--bg-surface-elevated); border: 1px solid var(--border-subtle); border-radius: 4px; color: var(--text-secondary); }
.filter-pill.active { border-color: var(--accent-cyan); color: var(--accent-cyan-light); }

.bi-kpi-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; margin-bottom: 1.25rem; }
.bi-kpi-tile { background-color: var(--bg-surface); border: 1px solid var(--border-subtle); border-radius: var(--radius-md); padding: 1rem; }
.kpi-title { font-family: var(--font-mono); font-size: 0.72rem; color: var(--text-muted); text-transform: uppercase; margin-bottom: 0.35rem; }
.kpi-number { font-family: var(--font-heading); font-size: 1.65rem; font-weight: 800; color: var(--text-primary); line-height: 1.1; margin-bottom: 0.25rem; }
.kpi-number.text-accent { color: var(--accent-cyan-light); }
.kpi-number.text-warning { color: var(--accent-warning); }
.kpi-sub { font-size: 0.75rem; color: var(--text-secondary); }
.trend.down { color: var(--accent-danger); font-weight: 600; }

.bi-charts-grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: 1rem; }
.col-span-8 { grid-column: span 8; }
.col-span-4 { grid-column: span 4; }
.bi-card { background-color: var(--bg-surface); border: 1px solid var(--border-subtle); border-radius: var(--radius-md); padding: 1rem 1.25rem; }
.card-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 0.75rem; }
.card-title { font-family: var(--font-heading); font-size: 0.85rem; font-weight: 600; color: var(--text-primary); }
.card-badge { font-family: var(--font-mono); font-size: 0.7rem; color: var(--accent-emerald); }
.chart-container { width: 100%; height: 180px; }
.chart-svg { width: 100%; height: 100%; }

.product-bars { display: flex; flex-direction: column; gap: 0.75rem; padding-top: 0.25rem; }
.bar-item { display: flex; flex-direction: column; gap: 0.25rem; }
.bar-meta { display: flex; justify-content: space-between; font-size: 0.8rem; }
.item-name { color: var(--text-primary); font-weight: 500; }
.item-val { font-family: var(--font-mono); font-size: 0.72rem; color: var(--accent-emerald); }
.item-val.text-muted { color: var(--text-muted); }
.bar-track { height: 8px; background-color: var(--bg-surface-elevated); border-radius: 4px; overflow: hidden; }
.bar-fill { height: 100%; background: linear-gradient(90deg, var(--accent-cyan) 0%, var(--accent-emerald) 100%); border-radius: 4px; }
.bar-fill.muted { background: var(--text-muted); }

/* Challenge, Objectives, Approach, Tabs, Insights, Recs, Value, Gallery, Takeaway */
.grid-3-col { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.glass-card { background: var(--bg-card); backdrop-filter: blur(12px); border: 1px solid var(--border-subtle); border-radius: var(--radius-lg); padding: 2rem 1.75rem; transition: all var(--transition-smooth); }
.glass-card:hover { background: var(--bg-card-hover); border-color: var(--border-medium); transform: translateY(-4px); box-shadow: var(--shadow-subtle); }
.card-icon { width: 46px; height: 46px; border-radius: var(--radius-md); display: flex; align-items: center; justify-content: center; margin-bottom: 1.25rem; }
.warning-icon { background: rgba(245, 158, 11, 0.15); color: var(--accent-warning); }
.alert-icon { background: rgba(239, 68, 68, 0.15); color: var(--accent-danger); }
.info-icon { background: rgba(14, 165, 233, 0.15); color: var(--accent-cyan-light); }
.card-h { font-family: var(--font-heading); font-size: 1.2rem; font-weight: 700; color: var(--text-primary); margin-bottom: 0.6rem; }
.card-p { font-size: 0.95rem; color: var(--text-secondary); line-height: 1.6; }

.objectives-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; margin-bottom: 1.5rem; }
.objective-box { background: var(--bg-surface); border: 1px solid var(--border-subtle); border-radius: var(--radius-lg); padding: 1.75rem; position: relative; }
.obj-number { font-family: var(--font-mono); font-size: 1.5rem; font-weight: 800; color: var(--accent-cyan-light); opacity: 0.6; margin-bottom: 0.5rem; }
.obj-title { font-family: var(--font-heading); font-size: 1.15rem; font-weight: 700; color: var(--text-primary); margin-bottom: 0.85rem; }
.obj-list { list-style: none; display: flex; flex-direction: column; gap: 0.5rem; }
.obj-list li { font-size: 0.9rem; color: var(--text-secondary); position: relative; padding-left: 1.2rem; line-height: 1.5; }
.obj-list li::before { content: "→"; position: absolute; left: 0; color: var(--accent-cyan); font-family: var(--font-mono); }

.kpi-banner { display: grid; grid-template-columns: repeat(4, 1fr); background: var(--bg-surface-elevated); border: 1px solid var(--border-medium); border-radius: var(--radius-lg); padding: 1.5rem 2rem; gap: 1.5rem; }
.kpi-banner-item { display: flex; flex-direction: column; }
.k-label { font-family: var(--font-mono); font-size: 0.72rem; color: var(--text-muted); text-transform: uppercase; margin-bottom: 0.2rem; }
.k-val { font-family: var(--font-heading); font-size: 1.05rem; font-weight: 700; color: var(--text-primary); }
.k-desc { font-family: var(--font-mono); font-size: 0.78rem; color: var(--accent-cyan-light); margin-top: 0.2rem; }

.journey-flow { display: grid; grid-template-columns: 1fr auto 1fr auto 1fr; align-items: center; gap: 1rem; }
.journey-step { display: flex; flex-direction: column; gap: 0.5rem; }
.step-badge { font-family: var(--font-mono); font-size: 0.72rem; font-weight: 600; color: var(--accent-cyan-light); text-transform: uppercase; letter-spacing: 0.05em; }
.step-card { background: var(--bg-surface); border: 1px solid var(--border-subtle); border-radius: var(--radius-lg); padding: 1.5rem; height: 100%; }
.step-icon { width: 40px; height: 40px; border-radius: var(--radius-sm); background: var(--accent-cyan-glow); color: var(--accent-cyan-light); display: flex; align-items: center; justify-content: center; margin-bottom: 1rem; }
.step-title { font-family: var(--font-heading); font-size: 1.1rem; font-weight: 700; color: var(--text-primary); margin-bottom: 0.5rem; }
.step-desc { font-size: 0.9rem; color: var(--text-secondary); line-height: 1.55; margin-bottom: 1rem; }
.step-metric { font-family: var(--font-mono); font-size: 0.8rem; font-weight: 600; color: var(--accent-emerald); background: var(--accent-emerald-glow); padding: 0.35rem 0.6rem; border-radius: 4px; display: inline-block; }
.journey-arrow { color: var(--border-slate); display: flex; align-items: center; justify-content: center; }

/* Dashboard Tabs */
.dashboard-tabs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0.75rem; margin-bottom: 1.5rem; }
.tab-btn { display: flex; align-items: center; gap: 0.75rem; padding: 0.85rem 1.25rem; background-color: var(--bg-surface); border: 1px solid var(--border-subtle); border-radius: var(--radius-md); color: var(--text-secondary); cursor: pointer; transition: all var(--transition-fast); text-align: left; }
.tab-btn:hover { background-color: var(--bg-surface-elevated); border-color: var(--border-medium); color: var(--text-primary); }
.tab-btn.active { background-color: var(--bg-surface-elevated); border-color: var(--accent-cyan); color: var(--text-primary); box-shadow: 0 0 16px rgba(14, 165, 233, 0.15); }
.tab-index { font-family: var(--font-mono); font-size: 0.8rem; font-weight: 700; color: var(--accent-cyan-light); }
.tab-text { font-family: var(--font-heading); font-size: 0.95rem; font-weight: 600; }
.tab-panel { display: none; }
.tab-panel.active { display: block; animation: fadeIn 0.3s ease-in-out; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: translateY(0); } }

.eco-card-grid { display: grid; grid-template-columns: 7fr 5fr; gap: 1.5rem; background: var(--bg-card); border: 1px solid var(--border-medium); border-radius: var(--radius-xl); overflow: hidden; padding: 1.75rem; }
.eco-screen-wrap { background: #0B101A; border: 1px solid var(--border-subtle); border-radius: var(--radius-lg); overflow: hidden; }
.mockup-header { display: flex; justify-content: space-between; align-items: center; padding: 0.65rem 1rem; background: var(--bg-surface-elevated); border-bottom: 1px solid var(--border-subtle); font-family: var(--font-mono); font-size: 0.75rem; color: var(--text-secondary); }
.status-pill { color: var(--accent-cyan-light); background: var(--accent-cyan-glow); padding: 0.15rem 0.45rem; border-radius: 4px; }
.mockup-content { padding: 1.25rem; }
.eco-info-wrap { display: flex; flex-direction: column; justify-content: center; }
.eco-title { font-family: var(--font-heading); font-size: 1.5rem; font-weight: 700; color: var(--text-primary); margin-bottom: 0.75rem; }
.eco-desc { font-size: 0.95rem; color: var(--text-secondary); line-height: 1.65; margin-bottom: 1.25rem; }
.eco-feature-list { display: flex; flex-direction: column; gap: 0.75rem; }
.eco-item { font-size: 0.9rem; color: var(--text-secondary); line-height: 1.5; padding-left: 1rem; border-left: 2px solid var(--accent-cyan); }
.eco-item strong { color: var(--text-primary); }

.sim-row-kpi { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0.5rem; margin-bottom: 1rem; }
.sim-kpi { background: var(--bg-surface); border: 1px solid var(--border-subtle); border-radius: 6px; padding: 0.6rem; display: flex; flex-direction: column; }
.sim-kpi span { font-size: 0.65rem; color: var(--text-muted); font-family: var(--font-mono); }
.sim-kpi strong { font-size: 1.05rem; color: var(--text-primary); }
.sim-box { background: var(--bg-surface); border: 1px solid var(--border-subtle); border-radius: 6px; padding: 0.75rem; }
.sim-head { font-family: var(--font-mono); font-size: 0.72rem; color: var(--text-muted); margin-bottom: 0.75rem; }
.sim-chart-bars { display: grid; grid-template-columns: repeat(12, 1fr); gap: 4px; height: 120px; align-items: flex-end; }
.sim-bar-col { display: flex; flex-direction: column; align-items: center; height: 100%; justify-content: flex-end; }
.bar-val { width: 100%; background: var(--accent-cyan); border-radius: 2px; }
.bar-val.peak { background: var(--accent-emerald); }
.bar-val.low { background: var(--accent-danger); }
.sim-bar-col span { font-family: var(--font-mono); font-size: 0.55rem; color: var(--text-muted); margin-top: 4px; }

.funnel-diagram { display: flex; flex-direction: column; gap: 0.75rem; }
.funnel-stage { background: var(--bg-surface); border: 1px solid var(--border-subtle); border-radius: 6px; padding: 0.6rem 0.85rem; }
.stage-info { display: flex; justify-content: space-between; font-size: 0.8rem; margin-bottom: 0.35rem; }
.stage-name { font-weight: 500; color: var(--text-primary); }
.stage-count { font-family: var(--font-mono); font-size: 0.75rem; color: var(--accent-cyan-light); }
.stage-bar { height: 6px; background: linear-gradient(90deg, var(--accent-cyan) 0%, var(--accent-emerald) 100%); border-radius: 3px; }

.sparkline-wrap { display: flex; flex-direction: column; gap: 0.5rem; }
.decay-line { height: 40px; background: linear-gradient(90deg, rgba(14,165,233,0.3) 0%, rgba(239,68,68,0.3) 100%); border-radius: 4px; border-left: 3px solid var(--accent-cyan); border-right: 3px solid var(--accent-danger); }
.badge-anno { font-family: var(--font-mono); font-size: 0.7rem; color: var(--accent-warning); }

.sentiment-grid { display: grid; grid-template-columns: 1fr 2fr; gap: 1rem; align-items: center; }
.sentiment-score-box { background: var(--bg-surface); border: 1px solid var(--border-subtle); border-radius: 8px; padding: 1rem; text-align: center; }
.score-num { font-family: var(--font-heading); font-size: 2.2rem; font-weight: 800; color: var(--accent-warning); line-height: 1; }
.score-stars { color: var(--accent-warning); font-size: 0.9rem; margin: 0.2rem 0; }
.score-label { font-size: 0.7rem; font-family: var(--font-mono); color: var(--text-muted); }
.sentiment-bars { display: flex; flex-direction: column; gap: 0.6rem; }
.sent-bar-row { display: flex; align-items: center; gap: 0.5rem; font-size: 0.75rem; }
.sent-bar-row span:first-child { width: 140px; color: var(--text-secondary); }
.sent-track { flex: 1; height: 8px; background: var(--bg-surface-elevated); border-radius: 4px; }
.sent-fill.pos { height: 100%; background: var(--accent-emerald); border-radius: 4px; }
.sent-fill.neg { height: 100%; background: var(--accent-danger); border-radius: 4px; }
.sent-count { font-family: var(--font-mono); font-weight: 600; color: var(--text-primary); }

.insights-bento { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.25rem; }
.insight-tile { background: var(--bg-card); border: 1px solid var(--border-subtle); border-radius: var(--radius-lg); padding: 1.5rem; display: flex; flex-direction: column; justify-content: space-between; }
.insight-tile.highlight-green { border-color: rgba(16, 185, 129, 0.3); background: linear-gradient(180deg, rgba(16, 185, 129, 0.08) 0%, var(--bg-card) 100%); }
.insight-tile.highlight-red { border-color: rgba(239, 68, 68, 0.3); background: linear-gradient(180deg, rgba(239, 68, 68, 0.08) 0%, var(--bg-card) 100%); }
.insight-tile.full-width { grid-column: span 4; }
.tile-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 0.75rem; }
.tile-tag { font-family: var(--font-mono); font-size: 0.72rem; color: var(--text-muted); text-transform: uppercase; }
.tile-metric { font-family: var(--font-heading); font-size: 2.3rem; font-weight: 800; color: var(--text-primary); line-height: 1.1; margin-bottom: 0.5rem; }
.highlight-green .tile-metric { color: var(--accent-emerald); }
.highlight-red .tile-metric { color: var(--accent-danger); }
.tile-title { font-family: var(--font-heading); font-size: 1.05rem; font-weight: 700; color: var(--text-primary); margin-bottom: 0.4rem; }
.tile-desc { font-size: 0.88rem; color: var(--text-secondary); line-height: 1.55; }
.tile-split { display: flex; justify-content: space-between; align-items: center; gap: 2rem; }
.badge-cluster { display: flex; gap: 0.5rem; }
.badge-chip { font-family: var(--font-mono); font-size: 0.78rem; padding: 0.4rem 0.8rem; background: var(--bg-surface-elevated); border: 1px solid var(--border-medium); border-radius: 6px; color: var(--accent-cyan-light); white-space: nowrap; }

.rec-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.rec-card { background: var(--bg-surface); border: 1px solid var(--border-subtle); border-radius: var(--radius-lg); padding: 1.75rem; transition: all var(--transition-fast); }
.rec-card:hover { border-color: var(--accent-cyan); transform: translateY(-3px); }
.rec-header { display: flex; align-items: flex-start; gap: 0.75rem; margin-bottom: 0.75rem; }
.rec-number { font-family: var(--font-mono); font-size: 0.85rem; font-weight: 700; color: var(--accent-cyan-light); background: var(--accent-cyan-glow); padding: 0.2rem 0.5rem; border-radius: 4px; }
.rec-title { font-family: var(--font-heading); font-size: 1.05rem; font-weight: 700; color: var(--text-primary); line-height: 1.35; }
.rec-p { font-size: 0.9rem; color: var(--text-secondary); line-height: 1.6; }

.value-matrix { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }
.value-item { display: flex; gap: 1.25rem; background: var(--bg-card); border: 1px solid var(--border-subtle); border-radius: var(--radius-lg); padding: 1.75rem; }
.val-icon { width: 48px; height: 48px; border-radius: var(--radius-md); background: var(--accent-cyan-glow); color: var(--accent-cyan-light); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.val-h { font-family: var(--font-heading); font-size: 1.15rem; font-weight: 700; color: var(--text-primary); margin-bottom: 0.35rem; }
.val-p { font-size: 0.9rem; color: var(--text-secondary); line-height: 1.6; }

.gallery-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }
.gallery-card { background: var(--bg-surface); border: 1px solid var(--border-subtle); border-radius: var(--radius-lg); overflow: hidden; transition: all var(--transition-smooth); }
.gallery-card:hover { border-color: var(--border-medium); transform: translateY(-3px); }
.gal-preview { height: 180px; background: #0B101A; border-bottom: 1px solid var(--border-subtle); position: relative; padding: 1.25rem; display: flex; align-items: center; justify-content: center; }
.gal-badge { position: absolute; top: 1rem; left: 1rem; font-family: var(--font-mono); font-size: 0.7rem; padding: 0.2rem 0.5rem; background: var(--bg-surface-elevated); border: 1px solid var(--border-subtle); border-radius: 4px; color: var(--text-secondary); }
.gal-screen-sim { width: 80%; height: 80%; display: flex; flex-direction: column; justify-content: center; align-items: center; }
.sim-strip { display: flex; gap: 0.5rem; margin-bottom: 0.75rem; }
.strip-item { font-family: var(--font-mono); font-size: 0.7rem; padding: 0.25rem 0.5rem; background: var(--bg-surface); border-radius: 4px; color: var(--text-secondary); }
.strip-item.accent { color: var(--accent-cyan-light); border: 1px solid var(--accent-cyan); }
.sim-graph-line { width: 100%; height: 4px; background: linear-gradient(90deg, var(--accent-cyan) 0%, var(--accent-emerald) 100%); border-radius: 2px; }
.sim-funnel-stack { width: 100%; display: flex; flex-direction: column; gap: 6px; }
.f-bar { height: 8px; border-radius: 4px; background: var(--accent-cyan); }
.f-bar.f1 { width: 100%; }
.f-bar.f2 { width: 60%; }
.f-bar.f3 { width: 30%; background: var(--accent-emerald); }
.sim-social-chart { display: flex; align-items: flex-end; gap: 8px; height: 60px; }
.sc-col { width: 16px; background: var(--accent-cyan); border-radius: 2px 2px 0 0; }
.sc-col:nth-child(1) { height: 90%; }
.sc-col:nth-child(2) { height: 75%; }
.sc-col:nth-child(3) { height: 45%; }
.sc-col:nth-child(4) { height: 30%; background: var(--accent-danger); }
.sim-donut-wrap { display: flex; align-items: center; gap: 1rem; }
.sim-donut { width: 44px; height: 44px; border-radius: 50%; border: 6px solid var(--accent-emerald); border-top-color: var(--accent-danger); }
.donut-stats { font-family: var(--font-mono); font-size: 0.8rem; color: var(--text-primary); }
.gal-info { padding: 1.25rem; }
.gal-title { font-family: var(--font-heading); font-size: 1.05rem; font-weight: 700; color: var(--text-primary); margin-bottom: 0.35rem; }
.gal-desc { font-size: 0.85rem; color: var(--text-secondary); line-height: 1.5; }

.takeaway-box { background: linear-gradient(135deg, rgba(14, 165, 233, 0.08) 0%, rgba(16, 185, 129, 0.04) 100%); border: 1px solid var(--border-medium); border-radius: var(--radius-xl); padding: 3rem 2.5rem; }
.takeaway-tag { font-family: var(--font-mono); font-size: 0.78rem; font-weight: 600; color: var(--accent-cyan-light); text-transform: uppercase; margin-bottom: 0.75rem; }
.takeaway-heading { font-family: var(--font-heading); font-size: 2.2rem; font-weight: 800; color: var(--text-primary); line-height: 1.2; margin-bottom: 1rem; }
.takeaway-p { font-size: 1.1rem; color: var(--text-secondary); line-height: 1.75; margin-bottom: 2rem; max-width: 900px; }
.takeaway-p strong { color: var(--text-primary); }
.takeaway-footer { display: flex; justify-content: space-between; align-items: center; border-top: 1px solid var(--border-subtle); padding-top: 1.75rem; }
.author-block { display: flex; align-items: center; gap: 1rem; }
.author-avatar { width: 44px; height: 44px; border-radius: 50%; background: var(--bg-surface-elevated); border: 1px solid var(--accent-cyan); color: var(--accent-cyan-light); font-family: var(--font-heading); font-weight: 700; font-size: 0.95rem; display: flex; align-items: center; justify-content: center; }
.author-name { font-family: var(--font-heading); font-weight: 700; color: var(--text-primary); font-size: 1rem; }
.author-title { font-size: 0.82rem; color: var(--text-muted); }
.takeaway-actions { display: flex; gap: 1rem; }

/* ----------------- Editorial & Storytelling Additions ----------------- */
.hero-editorial-wrapper {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-xl);
}

.trust-icon-box {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-medium);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  flex-shrink: 0;
}

.editorial-quote {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 600;
  line-height: 1.6;
  color: var(--text-primary);
  border-left: 3px solid var(--accent-cyan);
  padding-left: 1.25rem;
  margin-bottom: 1.5rem;
  font-style: italic;
  background: linear-gradient(90deg, rgba(14, 165, 233, 0.06) 0%, transparent 100%);
  padding: 1rem 1.25rem;
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
}

.ah-label {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.2rem;
}

.stat-badge {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--accent-cyan-light);
  letter-spacing: 0.1em;
  margin-bottom: 0.5rem;
}

.cap-icon-wrap {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  background: var(--accent-cyan-glow);
  border: 1px solid rgba(14, 165, 233, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
  margin-bottom: 1.25rem;
}

.cap-list {
  list-style: none;
  padding: 0;
  margin: 1.25rem 0 0 0;
  border-top: 1px solid var(--border-subtle);
  padding-top: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.cap-list li {
  font-size: 0.85rem;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.cap-list li::before {
  content: "→";
  color: var(--accent-cyan-light);
  font-weight: 700;
}

.f-deliverable {
  margin-top: 1rem;
  padding-top: 0.75rem;
  border-top: 1px solid var(--border-subtle);
  font-size: 0.8rem;
  color: var(--text-secondary);
  line-height: 1.45;
}

.f-deliverable strong {
  color: var(--accent-cyan-light);
  font-family: var(--font-mono);
}

/* ----------------- Journey Timeline ----------------- */
.journey-timeline {
  display: flex;
  flex-direction: column;
  position: relative;
  max-width: 920px;
  margin: 0 auto;
}

.journey-timeline::before {
  content: "";
  position: absolute;
  top: 10px;
  bottom: 10px;
  left: 20px;
  width: 2px;
  background: linear-gradient(180deg, var(--accent-cyan) 0%, rgba(14, 165, 233, 0.1) 100%);
}

.timeline-item {
  position: relative;
  display: flex;
  gap: 2rem;
  padding-left: 56px;
  padding-bottom: 2.5rem;
}

.timeline-item:last-child {
  padding-bottom: 0;
}

.timeline-marker {
  position: absolute;
  left: 12px;
  top: 4px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--bg-surface-elevated);
  border: 3px solid var(--accent-cyan);
  box-shadow: 0 0 12px rgba(14, 165, 233, 0.4);
  z-index: 2;
  transition: transform var(--transition-fast);
}

.timeline-item:hover .timeline-marker {
  transform: scale(1.25);
  background: var(--accent-cyan);
}

.timeline-content {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 1.5rem 1.75rem;
  width: 100%;
  transition: all var(--transition-smooth);
}

.timeline-item:hover .timeline-content {
  border-color: var(--border-medium);
  background: var(--bg-card-hover);
  transform: translateX(4px);
}

.timeline-period {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--accent-cyan-light);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.35rem;
}

.timeline-title {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.25rem;
}

.timeline-meta {
  display: block;
  font-size: 0.88rem;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
}

.timeline-desc {
  font-size: 0.92rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ----------------- Scroll Reveal Animation ----------------- */
.reveal-on-scroll {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1), transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}

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

/* ----------------- Mobile Navigation ----------------- */
.mobile-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  flex-direction: column;
  gap: 5px;
}

.mobile-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background-color: var(--text-primary);
  border-radius: 2px;
  transition: all var(--transition-fast);
}

.nav-link.active {
  color: var(--accent-cyan-light) !important;
  font-weight: 600;
}

/* ==========================================================================
   KHALED HABIB INSPIRED EDITORIAL DESIGN SYSTEM & TRANSITIONS
   ========================================================================== */

/* ----------------- Header Right Group & Social Pills ----------------- */
.header-right-group {
  display: flex;
  align-items: center;
  gap: 1.75rem;
}

.header-social-pills {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.btn-pill-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  border: 1px solid var(--border-medium);
  color: var(--text-secondary);
  font-size: 0.82rem;
  font-weight: 600;
  text-decoration: none;
  background: rgba(255, 255, 255, 0.02);
  transition: all var(--transition-fast);
}

.btn-pill-outline svg {
  flex-shrink: 0;
  transition: transform var(--transition-fast);
}

.btn-pill-outline:hover {
  border-color: var(--accent-cyan);
  color: var(--text-primary);
  background: var(--bg-surface-elevated);
  transform: translateY(-1px);
}

.btn-pill-outline:hover svg {
  transform: scale(1.1);
}

.btn-pill-linkedin:hover {
  border-color: #0A66C2;
  color: #38BDF8;
  background: rgba(10, 102, 194, 0.12);
  box-shadow: 0 0 12px rgba(10, 102, 194, 0.25);
}

.btn-pill-github:hover {
  border-color: #E2E8F0;
  color: #FFFFFF;
  background: rgba(255, 255, 255, 0.08);
  box-shadow: 0 0 12px rgba(255, 255, 255, 0.15);
}

.btn-pill-whatsapp:hover {
  border-color: #25D366;
  color: #25D366;
  background: rgba(37, 211, 102, 0.12);
  box-shadow: 0 0 12px rgba(37, 211, 102, 0.25);
}

.btn-pill-primary {
  padding: 0.38rem 1rem;
  border-radius: 999px;
  background: var(--accent-cyan);
  color: #FFFFFF;
  font-size: 0.82rem;
  font-weight: 700;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  transition: all var(--transition-fast);
}

.btn-pill-primary:hover {
  background: var(--accent-cyan-light);
  transform: translateY(-1px);
}

.channel-btn.whatsapp-channel:hover {
  border-color: #25D366;
  color: #25D366;
  background: rgba(37, 211, 102, 0.1);
  box-shadow: 0 4px 20px rgba(37, 211, 102, 0.2);
}

/* ----------------- Editorial Highlight Scribble & Typography ----------------- */
.heading-highlight-svg {
  position: relative;
  display: inline-block;
  color: var(--accent-cyan-light);
}

.highlight-scribble {
  position: absolute;
  bottom: -8px;
  left: 0;
  width: 100%;
  height: 18px;
  fill: none;
  stroke: var(--accent-cyan);
  stroke-width: 5;
  stroke-linecap: round;
  pointer-events: none;
}

.editorial-divider {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.35rem 0.95rem 0.35rem 0.75rem;
  background: rgba(15, 23, 42, 0.7);
  border: 1px solid rgba(59, 130, 246, 0.28);
  border-radius: 9999px;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.06);
  margin-bottom: 1.25rem;
  transition: all var(--transition-fast);
}

.editorial-divider:hover {
  border-color: rgba(96, 165, 250, 0.5);
  background: rgba(30, 41, 59, 0.85);
  box-shadow: 0 6px 18px rgba(37, 99, 235, 0.18), inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.editorial-divider .divider-line {
  width: 14px;
  height: 3px;
  border-radius: 3px;
  background: linear-gradient(90deg, #38BDF8, #818CF8);
  box-shadow: 0 0 8px rgba(56, 189, 248, 0.6);
  flex-shrink: 0;
}

.editorial-divider .divider-text {
  font-family: var(--font-mono);
  font-size: 0.76rem;
  font-weight: 700;
  color: #93C5FD;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  line-height: 1;
}

.editorial-divider.center {
  margin-left: auto;
  margin-right: auto;
  justify-content: center;
}

/* ----------------- Editorial Action Buttons ----------------- */
.btn-light-editorial {
  background: #F8FAFC;
  color: #080B11;
  font-family: var(--font-heading);
  font-weight: 700;
  padding: 0.85rem 1.6rem;
  border-radius: var(--radius-md);
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  transition: all var(--transition-fast);
  border: 1px solid transparent;
}

.btn-light-editorial:hover {
  background: #FFFFFF;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255, 255, 255, 0.15);
}

.btn-light-editorial.hover-icon-down:hover svg {
  transform: translateY(3px);
}

.btn-light-editorial svg {
  transition: transform var(--transition-fast);
}

.btn-outline-editorial {
  background: transparent;
  color: var(--text-primary);
  border: 1px solid var(--border-medium);
  font-family: var(--font-heading);
  font-weight: 600;
  padding: 0.85rem 1.6rem;
  border-radius: var(--radius-md);
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  transition: all var(--transition-fast);
}

.btn-outline-editorial:hover {
  border-color: var(--accent-cyan);
  color: var(--accent-cyan-light);
  background: var(--bg-surface-elevated);
}

/* ----------------- Hero Section (Khaled Habib Inspired) ----------------- */
.kh-hero-section {
  padding-top: var(--spacing-2xl);
  padding-bottom: var(--spacing-2xl);
}

.kh-hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 4rem;
  align-items: center;
  min-height: calc(80vh - 70px);
}

.kh-hero-title {
  font-family: var(--font-heading);
  font-size: 3.2rem;
  font-weight: 800;
  line-height: 1.18;
  letter-spacing: -0.03em;
  color: var(--text-primary);
  margin-bottom: 1.5rem;
}

.kh-hero-subtitle {
  font-size: 1.15rem;
  color: var(--text-secondary);
  line-height: 1.7;
  max-width: 600px;
  margin-bottom: 2.25rem;
}

.kh-hero-actions {
  display: flex;
  gap: 1rem;
  align-items: center;
}

.kh-visual-card {
  position: relative;
  border-radius: var(--radius-xl);
}

.kh-visual-media {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  aspect-ratio: 1/1;
  border: 1px solid var(--border-medium);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6);
}

.kh-cover-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform var(--transition-smooth);
}

.kh-visual-card:hover .kh-cover-img {
  transform: scale(1.03);
}

.kh-visual-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 50%, rgba(8, 11, 17, 0.85) 100%);
}

/* ----------------- Circular Portrait & Floating Top-Left Badge ----------------- */
.kh-circular-frame-wrapper {
  position: relative;
  width: 320px;
  height: 320px;
  margin: 0 auto;
}

.kh-circular-frame {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  overflow: hidden;
  border: 3px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.6);
  position: relative;
}

.kh-circular-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 55% 20%;
  display: block;
}

/* ----------------- Creative Floating Glass Badges ----------------- */
.hero-glass-pill {
  position: absolute;
  background: rgba(14, 20, 32, 0.88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 14px;
  padding: 0.65rem 1rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.5), 0 0 15px rgba(14, 165, 233, 0.1);
  z-index: 10;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  white-space: nowrap;
}

.hero-glass-pill:hover {
  transform: translateY(-3px) scale(1.03);
  border-color: rgba(56, 189, 248, 0.5);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.6), 0 0 25px rgba(14, 165, 233, 0.2);
}

.hero-glass-pill.top-left {
  top: 10px;
  left: -40px;
  animation: floatGentle 4s ease-in-out infinite alternate;
}

.hero-glass-pill.bottom-right {
  bottom: 15px;
  right: -30px;
  animation: floatGentle 4s ease-in-out infinite alternate 2s;
}

@keyframes floatGentle {
  0% { transform: translateY(0); }
  100% { transform: translateY(-6px); }
}

.live-pulse-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #34d399;
  box-shadow: 0 0 10px #34d399;
  flex-shrink: 0;
  animation: liveDotPulse 2s infinite ease-in-out;
}

@keyframes liveDotPulse {
  0%, 100% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(52, 211, 153, 0.7);
  }
  50% {
    transform: scale(1.2);
    box-shadow: 0 0 0 6px rgba(52, 211, 153, 0);
  }
}

.h-pill-icon {
  font-size: 1.15rem;
  line-height: 1;
}

.h-pill-text {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  text-align: left;
}

.h-pill-role {
  font-family: var(--font-heading);
  font-size: 0.82rem;
  font-weight: 700;
  color: #f8fafc;
  line-height: 1.2;
}

.h-pill-detail {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 600;
  color: #38bdf8;
  line-height: 1.2;
}

@media (max-width: 768px) {
  .hero-glass-pill.top-left {
    left: -10px;
    top: -10px;
    padding: 0.5rem 0.8rem;
  }
  .hero-glass-pill.bottom-right {
    right: -10px;
    bottom: -10px;
    padding: 0.5rem 0.8rem;
  }
  .h-pill-role { font-size: 0.75rem; }
  .h-pill-detail { font-size: 0.65rem; }
}

/* ----------------- About Me Section (Exact Khaled Habib Match) ----------------- */
.kh-about-top-grid {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 4rem;
  align-items: center;
  margin-bottom: 3.5rem;
}

.kh-lead-statement {
  font-family: var(--font-heading);
  font-size: 2.15rem;
  font-weight: 500;
  line-height: 1.45;
  color: var(--text-primary);
  letter-spacing: -0.01em;
}

.kh-about-bottom-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 200px;
  gap: 3rem;
  border-top: 1px solid var(--border-subtle);
  padding-top: 3rem;
  align-items: flex-start;
}

.kh-about-pillar.align-btn {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
}

.kh-pillar-title {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 400;
  color: var(--text-secondary);
  line-height: 1.65;
}

.btn-link-editorial {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-primary);
  text-decoration: none;
  transition: all var(--transition-fast);
  margin-top: 1.5rem;
}

.btn-link-editorial:hover {
  color: var(--accent-cyan-light);
}

.btn-link-editorial.hover-icon-down:hover svg {
  transform: translateY(4px);
}

.btn-link-editorial svg {
  transition: transform var(--transition-fast);
}

/* ----------------- Merged 1 + 3 Featured Showcase Layout ----------------- */
.kh-projects-showcase {
  padding-top: var(--spacing-xl);
  padding-bottom: var(--spacing-xl);
}

.hero-project-spotlight {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 3.5rem;
  background: var(--bg-surface);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-xl);
  padding: 3.25rem;
  margin-bottom: 3.5rem;
  align-items: center;
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.5);
  position: relative;
  transition: all var(--transition-smooth);
}

.hero-project-spotlight:hover {
  border-color: var(--border-focus);
}

.spotlight-badge-row {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-bottom: 1rem;
}

.spotlight-title {
  font-family: var(--font-heading);
  font-size: 1.9rem;
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1.25;
  margin-bottom: 1rem;
}

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

.spotlight-metrics-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.spotlight-metric {
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 0.85rem 1rem;
}

.spotlight-metric .s-val {
  display: block;
  font-family: var(--font-mono);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--accent-cyan-light);
}

.spotlight-metric .s-lbl {
  font-size: 0.76rem;
  color: var(--text-muted);
}

.spotlight-tools {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 1.75rem;
}

.spotlight-actions-group {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
}

.hero-spotlight-media {
  position: relative;
}

.spotlight-image-frame {
  border-radius: var(--radius-xl);
  overflow: hidden;
  border: 1px solid var(--border-medium);
  box-shadow: var(--shadow-subtle);
  aspect-ratio: 16/10;
  position: relative;
}

.spotlight-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-smooth);
}

.hero-project-spotlight:hover .spotlight-img {
  transform: scale(1.03);
}

/* ----------------- Projects Gateway Banner (Homepage -> Catalog) ----------------- */
.projects-gateway-banner {
  margin-top: 3rem;
  background: linear-gradient(135deg, rgba(14, 165, 233, 0.08) 0%, rgba(16, 185, 129, 0.05) 100%), var(--bg-surface);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-xl);
  padding: 3rem 2.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 2rem;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-subtle);
}

.projects-gateway-banner::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: linear-gradient(180deg, var(--accent-cyan-light), var(--accent-emerald-light));
}

.pgb-content {
  max-width: 680px;
}

.pgb-tag {
  font-family: var(--font-mono);
  font-size: 0.76rem;
  font-weight: 700;
  color: var(--accent-cyan-light);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 0.5rem;
  display: block;
}

.pgb-title {
  font-family: var(--font-heading);
  font-size: 1.65rem;
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1.3;
  margin-bottom: 0.5rem;
}

.pgb-desc {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.65;
}

.pgb-action {
  flex-shrink: 0;
}

/* ----------------- Supporting 3-Column Projects Grid ----------------- */
.supporting-projects-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.supporting-project-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: all var(--transition-smooth);
}

.supporting-project-card:hover {
  border-color: var(--accent-cyan);
  transform: translateY(-5px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4);
}

.s-card-media {
  height: 220px;
  position: relative;
  overflow: hidden;
}

.s-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-smooth);
}

.supporting-project-card:hover .s-card-img {
  transform: scale(1.05);
}

.s-card-circle-tag {
  position: absolute;
  top: 0.9rem;
  right: 0.9rem;
  background: rgba(14, 20, 32, 0.85);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 999px;
  padding: 0.25rem 0.75rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--accent-cyan-light);
  font-weight: 700;
}

.s-card-body {
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  gap: 0.65rem;
}

.s-card-badge {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--accent-cyan-light);
  font-weight: 600;
  text-transform: uppercase;
}

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

.s-card-desc {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.6;
  flex-grow: 1;
}

.s-card-metrics {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin: 0.5rem 0 1rem 0;
}

.m-pill {
  padding: 0.25rem 0.6rem;
  border-radius: 6px;
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-subtle);
  font-size: 0.78rem;
  color: var(--text-secondary);
}

.m-pill strong {
  color: var(--accent-cyan-light);
  font-family: var(--font-mono);
}

.s-card-footer {
  margin-top: auto;
}

.s-card-footer .btn {
  width: 100%;
}

/* ----------------- Mid-Page Manifesto Section ----------------- */
.kh-manifesto-box {
  background: radial-gradient(circle at 50% 50%, rgba(14, 165, 233, 0.08) 0%, transparent 70%), var(--bg-surface);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-xl);
  padding: 4.5rem 3rem;
  text-align: center;
}

.kh-manifesto-heading {
  font-family: var(--font-heading);
  font-size: 2.1rem;
  font-weight: 700;
  line-height: 1.45;
  color: var(--text-primary);
  max-width: 900px;
  margin: 1.5rem auto;
}

/* ----------------- About Me Contact Card (Replaces Duplicate Portrait) ----------------- */
.about-contact-card {
  background: linear-gradient(135deg, rgba(14, 165, 233, 0.08) 0%, rgba(16, 185, 129, 0.04) 100%), var(--bg-surface);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-xl);
  padding: 2.25rem;
  display: flex;
  flex-direction: column;
  gap: 1.15rem;
  box-shadow: var(--shadow-subtle);
  position: relative;
  overflow: hidden;
}

.about-contact-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: linear-gradient(180deg, var(--accent-cyan-light), var(--accent-emerald-light));
}

.acc-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.76rem;
  font-weight: 600;
  color: var(--accent-emerald-light);
}

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

.acc-desc {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

.acc-email {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-top: 0.25rem;
}

/* ----------------- What I Do (3 Focused Pillars) ----------------- */
.what-i-do-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.75rem;
}

@media (max-width: 991px) {
  .what-i-do-grid {
    grid-template-columns: 1fr;
  }
}

.what-card {
  background: #0f172a;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-lg);
  padding: 2.25rem 2rem;
  display: flex;
  flex-direction: column;
  transition: all var(--transition-smooth);
  position: relative;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
}

.what-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: transparent;
  transition: background var(--transition-smooth);
}

.what-card:hover {
  border-color: rgba(56, 189, 248, 0.4);
  transform: translateY(-4px);
  background: #131d35;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.5);
}

.what-card:hover::before {
  background: linear-gradient(90deg, var(--accent-cyan), var(--accent-emerald));
}

.what-icon-wrap {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-md);
  background: rgba(14, 165, 233, 0.12);
  border: 1px solid rgba(14, 165, 233, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
  color: var(--accent-cyan-light);
}

.what-card-title {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.85rem;
}

.what-card-desc {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* ----------------- Technical & Analytical Skills Toolkit ----------------- */
.skills-categories-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.75rem;
}

@media (max-width: 991px) {
  .skills-categories-grid {
    grid-template-columns: 1fr;
  }
}

.skill-category-card {
  background: #0f172a;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-lg);
  padding: 2.25rem 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  transition: all var(--transition-smooth);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
  position: relative;
  overflow: hidden;
}

.skill-category-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: transparent;
  transition: background var(--transition-smooth);
}

.skill-category-card:hover {
  border-color: rgba(56, 189, 248, 0.4);
  transform: translateY(-5px);
  background: #131d35;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.55), 0 0 25px rgba(14, 165, 233, 0.1);
}

.skill-category-card:hover::before {
  background: linear-gradient(90deg, #38bdf8, #34d399);
}

.skill-card-top {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding-bottom: 1rem;
}

.skill-card-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  background: rgba(14, 165, 233, 0.1);
  border: 1px solid rgba(14, 165, 233, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  color: var(--accent-cyan-light);
  flex-shrink: 0;
}

.skill-card-title {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.3;
  margin: 0;
}

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

.skill-pill {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 500;
  padding: 0.35rem 0.8rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 8px;
  color: #cbd5e1;
  transition: all 0.2s ease;
}

.skill-category-card:hover .skill-pill:hover {
  background: rgba(56, 189, 248, 0.12);
  border-color: rgba(56, 189, 248, 0.4);
  color: #f8fafc;
  transform: translateY(-2px);
}

/* ----------------- My Journey (Sleek Connected Timeline) ----------------- */
.journey-timeline {
  position: relative;
  padding-left: 3rem;
  max-width: 900px;
  margin: 0 auto;
}

.journey-timeline::before {
  content: "";
  position: absolute;
  left: 11px;
  top: 10px;
  bottom: 10px;
  width: 2px;
  background: linear-gradient(180deg, #38bdf8 0%, rgba(56, 189, 248, 0.4) 60%, #34d399 100%);
}

.timeline-milestone {
  position: relative;
  margin-bottom: 3.25rem;
  transition: transform var(--transition-smooth);
}

.timeline-milestone:last-child {
  margin-bottom: 0;
}

.timeline-node {
  position: absolute;
  left: -3rem;
  top: 0;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #080b11;
  border: 2px solid #38bdf8;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
  box-shadow: 0 0 12px rgba(56, 189, 248, 0.35);
  transition: all var(--transition-fast);
}

.timeline-milestone:hover .timeline-node {
  transform: scale(1.15);
  border-color: #67e8f9;
  box-shadow: 0 0 16px rgba(56, 189, 248, 0.6);
}

.node-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #38bdf8;
  transition: background var(--transition-fast);
}

.timeline-milestone.highlight .timeline-node {
  border-color: #34d399;
  box-shadow: 0 0 14px rgba(52, 211, 153, 0.45);
}

.timeline-milestone.highlight .node-dot {
  background: #34d399;
}

.timeline-content {
  background: transparent;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.timeline-top-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.timeline-org {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  font-weight: 700;
  color: #38bdf8;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.timeline-duration {
  font-family: var(--font-mono);
  font-size: 0.76rem;
  font-weight: 600;
  padding: 0.25rem 0.85rem;
  background: rgba(14, 165, 233, 0.1);
  border: 1px solid rgba(14, 165, 233, 0.25);
  border-radius: 999px;
  color: #38bdf8;
  white-space: nowrap;
}

.timeline-milestone.highlight .timeline-org {
  color: #34d399;
}

.timeline-milestone.highlight .timeline-duration {
  background: rgba(16, 185, 129, 0.12);
  border-color: rgba(16, 185, 129, 0.35);
  color: #34d399;
}

.timeline-title {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 800;
  color: #f8fafc;
  line-height: 1.35;
  margin: 0;
}

.timeline-body {
  font-size: 0.98rem;
  color: #94a3b8;
  line-height: 1.7;
  margin: 0;
}

.timeline-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.25rem;
}

.t-tag {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  padding: 0.2rem 0.65rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 6px;
  color: #94a3b8;
  transition: all var(--transition-fast);
}

.timeline-milestone:hover .t-tag {
  border-color: rgba(56, 189, 248, 0.25);
  color: #cbd5e1;
}

@media (max-width: 768px) {
  .journey-timeline {
    padding-left: 2.25rem;
  }
  .timeline-node {
    left: -2.25rem;
    width: 20px;
    height: 20px;
  }
  .journey-timeline::before {
    left: 9px;
  }
  .node-dot {
    width: 6px;
    height: 6px;
  }
  .timeline-title {
    font-size: 1.2rem;
  }
}

/* ==========================================================================
   MOTION & INTERACTION SYSTEM (PREMIUM MOTION LAYER)
   ========================================================================== */

/* ----------------- 01. Hero Layered Cinematic Entrance ----------------- */
.kh-hero-text-col .hero-badge-wrap {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.75s cubic-bezier(0.16, 1, 0.3, 1) 0.1s, transform 0.75s cubic-bezier(0.16, 1, 0.3, 1) 0.1s;
}

.kh-hero-text-col .kh-hero-title {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.85s cubic-bezier(0.16, 1, 0.3, 1) 0.22s, transform 0.85s cubic-bezier(0.16, 1, 0.3, 1) 0.22s;
}

.kh-hero-text-col .highlight-scribble path {
  stroke-dasharray: 800;
  stroke-dashoffset: 800;
  transition: stroke-dashoffset 1.2s cubic-bezier(0.16, 1, 0.3, 1) 0.65s;
}

.kh-hero-text-col .kh-hero-subtitle {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.75s cubic-bezier(0.16, 1, 0.3, 1) 0.38s, transform 0.75s cubic-bezier(0.16, 1, 0.3, 1) 0.38s;
}

.kh-hero-text-col .kh-hero-actions {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.75s cubic-bezier(0.16, 1, 0.3, 1) 0.52s, transform 0.75s cubic-bezier(0.16, 1, 0.3, 1) 0.52s;
}

.kh-hero-visual-col .kh-circular-frame-wrapper {
  opacity: 0;
  transform: scale(0.93);
  transition: opacity 0.9s cubic-bezier(0.16, 1, 0.3, 1) 0.3s, transform 0.9s cubic-bezier(0.16, 1, 0.3, 1) 0.3s;
}

/* When Hero has .is-revealed */
.kh-hero-text-col.is-revealed .hero-badge-wrap,
.kh-hero-text-col.is-revealed .kh-hero-title,
.kh-hero-text-col.is-revealed .kh-hero-subtitle,
.kh-hero-text-col.is-revealed .kh-hero-actions {
  opacity: 1;
  transform: translateY(0);
}

.kh-hero-text-col.is-revealed .highlight-scribble path {
  stroke-dashoffset: 0;
}

.kh-hero-visual-col.is-revealed .kh-circular-frame-wrapper {
  opacity: 1;
  transform: scale(1);
}

/* ----------------- 02. About Me Progressive Discovery ----------------- */
.about-contact-card {
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.35s ease, box-shadow 0.35s ease;
}

.about-contact-card:hover {
  transform: translateY(-4px);
  border-color: rgba(56, 189, 248, 0.45);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.5), 0 0 25px rgba(14, 165, 233, 0.12);
}

.about-contact-card .status-dot {
  animation: pulseDot 2.4s infinite ease-in-out;
}

@keyframes pulseDot {
  0%, 100% {
    transform: scale(1);
    opacity: 1;
    box-shadow: 0 0 0 0 rgba(52, 211, 153, 0.6);
  }
  50% {
    transform: scale(1.15);
    opacity: 0.85;
    box-shadow: 0 0 0 6px rgba(52, 211, 153, 0);
  }
}

.kh-about-bottom-grid .kh-about-pillar {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.75s cubic-bezier(0.16, 1, 0.3, 1), transform 0.75s cubic-bezier(0.16, 1, 0.3, 1);
}

.kh-about-bottom-grid.is-revealed .kh-about-pillar:nth-child(1) {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0.1s;
}

.kh-about-bottom-grid.is-revealed .kh-about-pillar:nth-child(2) {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0.22s;
}

.kh-about-bottom-grid.is-revealed .kh-about-pillar:nth-child(3) {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0.34s;
}

/* ----------------- 03. What I Do Staggered Cards & Hover ----------------- */
.what-i-do-grid .what-card {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.75s cubic-bezier(0.16, 1, 0.3, 1), transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.35s ease, background 0.35s ease, box-shadow 0.35s ease;
}

.what-i-do-grid.is-revealed .what-card:nth-child(1) {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0.08s;
}

.what-i-do-grid.is-revealed .what-card:nth-child(2) {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0.2s;
}

.what-i-do-grid.is-revealed .what-card:nth-child(3) {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0.32s;
}

.what-card:hover {
  transform: translateY(-6px) !important;
  border-color: rgba(56, 189, 248, 0.45);
  background: #131d35;
  box-shadow: 0 20px 42px rgba(0, 0, 0, 0.55), 0 0 25px rgba(14, 165, 233, 0.12);
}

.what-card .what-icon-wrap {
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), background 0.35s ease;
}

.what-card:hover .what-icon-wrap {
  transform: scale(1.08);
  background: rgba(14, 165, 233, 0.2);
}

/* ----------------- 04. Selected Work Motion & Exploration ----------------- */
.hero-project-spotlight {
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.35s ease, box-shadow 0.35s ease;
}

.hero-project-spotlight:hover {
  transform: translateY(-4px);
  border-color: rgba(56, 189, 248, 0.4);
  box-shadow: 0 24px 50px rgba(0, 0, 0, 0.6), 0 0 30px rgba(14, 165, 233, 0.1);
}

.spotlight-metric {
  transition: transform 0.25s ease, border-color 0.25s ease, background 0.25s ease;
}

.spotlight-metric:hover {
  transform: translateY(-3px);
  border-color: rgba(56, 189, 248, 0.35);
  background: rgba(21, 29, 46, 0.9);
}

.projects-gateway-banner {
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.35s ease, box-shadow 0.35s ease;
}

.projects-gateway-banner:hover {
  transform: translateY(-3px);
  border-color: rgba(56, 189, 248, 0.4);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.5);
}

.projects-gateway-banner:hover .btn svg {
  transform: translateX(4px);
}

/* ----------------- 05. My Journey Timeline Progression ----------------- */
.timeline-milestone {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.75s cubic-bezier(0.16, 1, 0.3, 1), transform 0.75s cubic-bezier(0.16, 1, 0.3, 1);
}

.timeline-milestone.is-revealed {
  opacity: 1;
  transform: translateY(0);
}

.timeline-milestone:nth-child(1).is-revealed { transition-delay: 0.05s; }
.timeline-milestone:nth-child(2).is-revealed { transition-delay: 0.16s; }
.timeline-milestone:nth-child(3).is-revealed { transition-delay: 0.27s; }
.timeline-milestone:nth-child(4).is-revealed { transition-delay: 0.38s; }
.timeline-milestone:nth-child(5).is-revealed { transition-delay: 0.49s; }

.timeline-milestone.highlight .node-dot {
  animation: emeraldNodePulse 2.4s infinite ease-in-out;
}

@keyframes emeraldNodePulse {
  0%, 100% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(52, 211, 153, 0.7);
  }
  50% {
    transform: scale(1.2);
    box-shadow: 0 0 0 8px rgba(52, 211, 153, 0);
  }
}

/* ----------------- 06. Contact Section Calm Reveal ----------------- */
.hp-contact .contact-card {
  transition: border-color 0.35s ease, box-shadow 0.35s ease;
}

.hp-contact .contact-card:hover {
  border-color: rgba(56, 189, 248, 0.3);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.55);
}

.channel-btn {
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.25s ease, background 0.25s ease, box-shadow 0.25s ease;
}

.channel-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.4);
}

.channel-btn.primary:hover {
  background: #0284c7;
  box-shadow: 0 10px 28px rgba(14, 165, 233, 0.35);
}

.channel-btn:active,
.btn:active {
  transform: scale(0.97) !important;
}

/* ----------------- 07. Global Button & Link Micro-Interactions ----------------- */
.btn {
  transition: transform 0.22s cubic-bezier(0.16, 1, 0.3, 1), background 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease, color 0.22s ease;
}

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

.btn-icon-right:hover svg {
  transform: translateX(4px);
}

.hover-icon-down:hover svg {
  transform: translateY(4px);
}

.nav-link {
  position: relative;
  transition: color 0.25s ease;
}

.nav-link::after {
  content: "";
  position: absolute;
  bottom: -4px;
  left: 50%;
  width: 0;
  height: 2px;
  background: #38bdf8;
  transition: width 0.25s cubic-bezier(0.16, 1, 0.3, 1), left 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  transform: translateX(-50%);
}

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

/* ----------------- 08. General Scroll Reveal Classes ----------------- */
.reveal-on-scroll {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.75s cubic-bezier(0.16, 1, 0.3, 1), transform 0.75s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}

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

.reveal-delay-1 { transition-delay: 0.12s; }
.reveal-delay-2 { transition-delay: 0.24s; }
.reveal-delay-3 { transition-delay: 0.36s; }

/* ----------------- 09. Accessibility & Reduced Motion ----------------- */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .reveal-on-scroll,
  .hero-badge-wrap,
  .kh-hero-title,
  .kh-hero-subtitle,
  .kh-hero-actions,
  .kh-circular-frame-wrapper,
  .timeline-milestone,
  .what-card,
  .kh-about-pillar {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
  .highlight-scribble path {
    stroke-dashoffset: 0 !important;
  }
}

/* ----------------- 10. Responsive Adjustments ----------------- */
@media (max-width: 992px) {
  .kh-hero-grid { grid-template-columns: 1fr; gap: 3rem; }
  .kh-hero-title { font-size: 2.6rem; }
  .kh-about-top-grid { grid-template-columns: 1fr; gap: 2rem; }
  .kh-about-bottom-grid { grid-template-columns: 1fr; gap: 2rem; }
  .what-i-do-grid { grid-template-columns: 1fr; }
  .capabilities-grid { grid-template-columns: 1fr; }
  .skills-grid { grid-template-columns: 1fr; }
  .journey-story-card { padding: 2rem 1.5rem; }
  .supporting-projects-grid { grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }
  .hero-project-spotlight { grid-template-columns: 1fr; gap: 2.25rem; padding: 2.25rem 2rem; }
}

@media (max-width: 768px) {
  .header-right-group {
    gap: 0.75rem;
  }
  .header-social-pills {
    display: flex;
    align-items: center;
    gap: 0.4rem;
  }
  .header-social-pills .btn-pill-outline span {
    display: none;
  }
  .header-social-pills .btn-pill-outline {
    width: 36px;
    height: 36px;
    padding: 0;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-surface-elevated);
  }
  .header-social-pills .btn-pill-outline svg {
    width: 16px;
    height: 16px;
  }
  .header-talk-btn {
    display: none;
  }
  .mobile-toggle { display: flex; }
  .nav-links {
    position: fixed;
    top: 70px;
    left: 0;
    right: 0;
    background: var(--bg-surface-elevated);
    border-bottom: 1px solid var(--border-medium);
    flex-direction: column;
    padding: 1.5rem;
    gap: 1.25rem;
    display: none;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  }
  .nav-links.open { display: flex; }
  .kh-strip-card { width: 320px; }
  .kh-strip-media { height: 260px; }
  
  .projects-gateway-banner {
    flex-direction: column;
    align-items: flex-start;
    padding: 2.25rem 1.75rem;
    gap: 1.5rem;
  }
  .pgb-action {
    width: 100%;
  }
  .pgb-action .btn {
    width: 100%;
    justify-content: center;
  }
}

@media (max-width: 640px) {
  .kh-hero-title { font-size: 2.1rem; }
  .kh-manifesto-heading { font-size: 1.5rem; }
  .kh-lead-statement { font-size: 1.35rem; }
  .kh-hero-actions { flex-direction: column; }
  .contact-channels { flex-direction: column; }
  .supporting-projects-grid { grid-template-columns: 1fr; }
  
  /* Hero Project Spotlight on Mobile */
  .hero-project-spotlight {
    padding: 1.5rem 1.25rem;
    gap: 1.5rem;
    border-radius: var(--radius-lg);
    margin-bottom: 2.5rem;
  }
  .hero-spotlight-content {
    padding: 0;
  }
  .spotlight-title {
    font-size: 1.4rem;
    line-height: 1.3;
    margin-bottom: 0.75rem;
  }
  .spotlight-desc {
    font-size: 0.92rem;
    line-height: 1.6;
    margin-bottom: 1.25rem;
  }
  .spotlight-metrics-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 0.5rem;
    margin-bottom: 1.25rem;
  }
  .spotlight-metric {
    padding: 0.65rem 0.4rem;
    text-align: center;
    border-radius: var(--radius-sm);
  }
  .spotlight-metric .s-val {
    font-size: 1.05rem;
  }
  .spotlight-metric .s-lbl {
    font-size: 0.68rem;
  }
  .spotlight-tools {
    gap: 0.35rem;
    margin-bottom: 1.35rem;
  }
  .spotlight-actions-group {
    flex-direction: column;
    width: 100%;
    gap: 0.75rem;
  }
  .spotlight-actions-group .btn {
    width: 100%;
    justify-content: center;
    text-align: center;
    padding: 0.85rem 1.25rem;
  }
  .spotlight-image-frame {
    aspect-ratio: 16/10;
    border-radius: var(--radius-md);
  }
  
  /* Circular Frame on Mobile */
  .kh-circular-frame-wrapper {
    width: 250px;
    height: 250px;
  }
  .rotate-badge-badge-top-left {
    width: 105px;
    height: 105px;
    top: -10px;
    left: -10px;
  }
  
  /* Timeline on Mobile */
  .journey-timeline {
    padding-left: 2rem;
  }
  .timeline-node {
    left: -2rem;
    width: 18px;
    height: 18px;
  }
  .journey-timeline::before {
    left: 8px;
  }
  .node-dot {
    width: 6px;
    height: 6px;
  }
  .timeline-top-bar {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.35rem;
  }
  .timeline-title {
    font-size: 1.15rem;
  }
  .timeline-body {
    font-size: 0.92rem;
  }
}

@media (max-width: 480px) {
  .nav-container {
    padding: 0 1rem;
  }
  .brand-logo {
    gap: 0.5rem;
  }
  .brand-logo .status-text {
    display: none;
  }
  .brand-logo .status-indicator {
    padding: 0.3rem;
  }
  .header-right-group {
    gap: 0.4rem;
  }
  .header-social-pills {
    gap: 0.3rem;
  }
  .header-social-pills .btn-pill-outline {
    width: 34px;
    height: 34px;
  }
  .header-social-pills .btn-pill-outline svg {
    width: 15px;
    height: 15px;
  }
}

/* ==========================================================================
   BUSINESS SOLUTIONS COMPANY — COMPONENT SYSTEM
   ========================================================================== */

/* --- Abstract Hero Workflow Visual --- */
.hero-workflow-visual {
  background: var(--bg-surface);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-xl);
  padding: 2rem 1.8rem;
  box-shadow: var(--shadow-subtle);
  position: relative;
  overflow: hidden;
}
.hero-workflow-visual::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -50%;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle, var(--accent-cyan-glow) 0%, transparent 70%);
  pointer-events: none;
}
.workflow-nodes-flow {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  position: relative;
  z-index: 1;
}
.workflow-node-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.95rem 1.15rem;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  transition: all var(--transition-fast);
}
.workflow-node-card:hover {
  border-color: var(--border-focus);
  transform: translateX(4px);
}
.workflow-node-icon {
  width: 38px;
  height: 38px;
  border-radius: var(--radius-sm);
  background: rgba(14, 165, 233, 0.12);
  color: var(--accent-cyan-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
}
.workflow-node-text h4 {
  font-family: var(--font-heading);
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.15rem;
}
.workflow-node-text p {
  font-size: 0.8rem;
  color: var(--text-secondary);
  line-height: 1.35;
}
.workflow-connector-line {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-cyan);
  opacity: 0.6;
}

/* --- Section 2: Built for the Way You Work (5 Problem Cards) --- */
.problems-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.25rem;
  margin-bottom: 2rem;
}
.problem-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 1.75rem 1.5rem;
  transition: all var(--transition-smooth);
  display: flex;
  flex-direction: column;
}
.problem-card:hover {
  border-color: var(--border-medium);
  background: var(--bg-surface-elevated);
  transform: translateY(-4px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.25);
}
.problem-card-icon {
  width: 42px;
  height: 42px;
  border-radius: var(--radius-md);
  background: rgba(14, 165, 233, 0.08);
  border: 1px solid rgba(14, 165, 233, 0.2);
  color: var(--accent-cyan-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  margin-bottom: 1.15rem;
}
.problem-card-title {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}
.problem-card-desc {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.55;
}
.section-anchor-banner {
  background: linear-gradient(135deg, rgba(14, 165, 233, 0.08), rgba(16, 185, 129, 0.08));
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-lg);
  padding: 1.4rem 1.8rem;
  text-align: center;
}
.section-anchor-banner p {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text-primary);
}

/* --- Section 03: Business Solutions (4 Solution Cards) --- */
.solutions-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  margin-bottom: 2rem;
}
.solution-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 2.25rem 2rem;
  transition: all var(--transition-smooth);
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.solution-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--solv-gradient);
  opacity: 0;
  transition: opacity var(--transition-smooth);
}
.solution-card:hover {
  border-color: rgba(37, 99, 235, 0.35);
  background: var(--bg-surface-elevated);
  transform: translateY(-4px);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.28), 0 0 24px rgba(37, 99, 235, 0.08);
}
.solution-card:hover::before {
  opacity: 1;
}
.solution-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.25rem;
}
.solution-num {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--accent-cyan-light);
  background: rgba(37, 99, 235, 0.12);
  border: 1px solid rgba(37, 99, 235, 0.25);
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius-sm);
  display: inline-block;
}
.solution-card-icon,
.solution-card-icon-wrap {
  width: 46px;
  height: 46px;
  border-radius: var(--radius-md);
  background: rgba(37, 99, 235, 0.1);
  border: 1px solid rgba(37, 99, 235, 0.25);
  color: #38BDF8;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
  transition: all 0.3s ease;
}
.solution-card:hover .solution-card-icon-wrap {
  background: var(--solv-gradient);
  color: #FFFFFF;
  border-color: transparent;
  transform: translateY(-2px);
}
.solution-card-title {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.65rem;
  line-height: 1.3;
}
.solution-card-desc {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* Section 2 Closing Statement & Action Banner */
.solutions-cta-banner {
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.08) 0%, rgba(124, 58, 237, 0.08) 100%);
  border: 1px solid rgba(37, 99, 235, 0.2);
  border-radius: var(--radius-lg);
  padding: 1.75rem 2.25rem;
  margin-top: 1.5rem;
}
.solutions-cta-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1.25rem;
}
.solutions-cta-statement {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--text-primary);
  margin: 0;
}

@media (max-width: 860px) {
  .solutions-grid {
    grid-template-columns: 1fr;
  }
  .solutions-cta-content {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* --- RTL (Arabic) Support --- */
.rtl-mode, [dir="rtl"] {
  font-family: 'Cairo', 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  direction: rtl;
  text-align: right;
}
.rtl-mode .btn-icon-right svg,
[dir="rtl"] .btn-icon-right svg {
  transform: scaleX(-1);
}
.rtl-mode .brand-logo-text-group,
[dir="rtl"] .brand-logo-text-group {
  text-align: right;
}

/* --- Section 4: Our Approach (5-Step Visual Flow) --- */
.approach-steps-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1rem;
  margin-bottom: 2rem;
}
.step-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 1.5rem 1.2rem;
  position: relative;
  transition: all var(--transition-smooth);
  display: flex;
  flex-direction: column;
}
.step-card:hover {
  border-color: var(--accent-cyan);
  background: var(--bg-surface-elevated);
  transform: translateY(-4px);
}
.step-number {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--accent-cyan-light);
  background: rgba(14, 165, 233, 0.1);
  padding: 0.2rem 0.55rem;
  border-radius: var(--radius-sm);
  display: inline-block;
  align-self: flex-start;
  margin-bottom: 0.85rem;
}
.step-title {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.45rem;
}
.step-desc {
  font-size: 0.86rem;
  color: var(--text-secondary);
  line-height: 1.45;
}

/* Secondary Approach Principles */
.principles-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 1.25rem 1.5rem;
}
.principle-item {
  padding: 0.35rem 0.65rem;
  border-left: 2px solid var(--border-medium);
}
.principle-item:first-child {
  border-left-color: var(--accent-cyan);
}
.principle-item:nth-child(2) {
  border-left-color: var(--accent-emerald);
}
.principle-item:nth-child(3) {
  border-left-color: var(--accent-warning);
}
.principle-title {
  font-family: var(--font-heading);
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.25rem;
}
.principle-desc {
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.4;
}

/* --- Section 4: Selected Work Grid --- */
.work-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  margin-bottom: 2rem;
}
.work-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: all var(--transition-smooth);
}
.work-card:hover {
  border-color: var(--border-medium);
  transform: translateY(-4px);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.3);
}
.work-card-media {
  position: relative;
  height: 220px;
  overflow: hidden;
}
.work-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.work-card:hover .work-card-img {
  transform: scale(1.03);
}
.work-card-body {
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}
.work-meta-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.75rem;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.work-title {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.6rem;
}
.work-details-list {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  margin-bottom: 1.25rem;
  flex-grow: 1;
}
.work-detail-item {
  font-size: 0.88rem;
  line-height: 1.5;
  color: var(--text-secondary);
}
.work-detail-label {
  font-weight: 600;
  color: var(--text-primary);
  display: inline-block;
  min-width: 75px;
}
.work-tags-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 1.25rem;
}

/* --- Section 5: About Us Pillars --- */
.about-pillars-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
  margin-top: 2rem;
}
.about-pillar-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 1.75rem 1.4rem;
  transition: all var(--transition-smooth);
}
.about-pillar-card:hover {
  border-color: var(--border-medium);
  background: var(--bg-surface-elevated);
  transform: translateY(-3px);
}
.pillar-card-icon {
  font-size: 1.5rem;
  margin-bottom: 1rem;
}
.pillar-card-title {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.45rem;
}
.pillar-card-desc {
  font-size: 0.86rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

/* About Section Supporting Statement */
.about-footer-line {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  margin-top: 2.25rem;
  text-align: center;
}

.about-footer-bullet {
  color: #38BDF8;
  font-size: 1rem;
  opacity: 0.9;
}

.about-footer-text {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--text-primary);
  margin: 0;
  letter-spacing: -0.01em;
}

.rtl-mode .about-footer-line,
[dir="rtl"] .about-footer-line {
  flex-direction: row-reverse;
}

/* --- Section 6: Business Discovery Form --- */
.discovery-container {
  max-width: 860px;
  margin: 0 auto;
}
.discovery-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-xl);
  padding: 3rem 2.5rem;
  box-shadow: var(--shadow-subtle);
  position: relative;
}
.form-group-title {
  font-family: var(--font-heading);
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent-cyan-light);
  margin-bottom: 1rem;
  margin-top: 1.5rem;
}
.form-group-title:first-of-type {
  margin-top: 0;
}
.form-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
  margin-bottom: 1rem;
}
.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  margin-bottom: 1.2rem;
}
.form-label {
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text-primary);
}
.form-label .req {
  color: var(--accent-danger);
}
.form-input,
.form-select,
.form-textarea {
  width: 100%;
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-md);
  padding: 0.85rem 1rem;
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 0.95rem;
  transition: all var(--transition-fast);
}
.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--accent-cyan);
  box-shadow: 0 0 0 3px var(--accent-cyan-glow);
}
.form-textarea {
  min-height: 100px;
  resize: vertical;
}
.form-input[type="date"] {
  color-scheme: dark;
}
.form-input[type="date"]::-webkit-calendar-picker-indicator {
  filter: invert(0.85);
  cursor: pointer;
}

/* Multi-select Checkbox Pills */
.pills-checkbox-group {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 0.65rem;
  margin-bottom: 1.25rem;
}
.pill-checkbox {
  position: relative;
}
.pill-checkbox input {
  position: absolute;
  opacity: 0;
  cursor: pointer;
  height: 0;
  width: 0;
}
.pill-checkbox label {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.75rem 0.95rem;
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  color: var(--text-secondary);
  font-size: 0.88rem;
  font-weight: 500;
  cursor: pointer;
  transition: all var(--transition-fast);
  user-select: none;
}
.pill-checkbox input:checked + label {
  background: rgba(14, 165, 233, 0.12);
  border-color: var(--accent-cyan);
  color: var(--text-primary);
}
.pill-checkbox .check-indicator {
  width: 16px;
  height: 16px;
  border-radius: 4px;
  border: 1.5px solid var(--border-medium);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all var(--transition-fast);
}
.pill-checkbox input:checked + label .check-indicator {
  background: var(--accent-cyan);
  border-color: var(--accent-cyan);
}
.pill-checkbox input:checked + label .check-indicator::after {
  content: '✓';
  color: #fff;
  font-size: 11px;
  font-weight: bold;
}

/* Meeting Type Radio Buttons */
.meeting-type-group {
  display: flex;
  gap: 1rem;
  margin-bottom: 1.75rem;
  flex-wrap: wrap;
}
.radio-pill {
  flex: 1;
  min-width: 180px;
  position: relative;
}
.radio-pill input {
  position: absolute;
  opacity: 0;
  cursor: pointer;
}
.radio-pill label {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 0.85rem 1.25rem;
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  color: var(--text-secondary);
  font-size: 0.92rem;
  font-weight: 500;
  cursor: pointer;
  transition: all var(--transition-fast);
}
.radio-pill input:checked + label {
  background: rgba(16, 185, 129, 0.12);
  border-color: var(--accent-emerald);
  color: var(--text-primary);
}

/* Submit & Confirmation Feedback */
.form-submit-btn {
  width: 100%;
  padding: 1rem 1.5rem;
  font-size: 1rem;
  font-weight: 600;
  justify-content: center;
}
.confirmation-state {
  text-align: center;
  padding: 3rem 1.5rem;
}
.confirmation-icon {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid var(--accent-emerald);
  color: var(--accent-emerald-light);
  font-size: 1.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
}
.confirmation-title {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.75rem;
}
.confirmation-desc {
  font-size: 1rem;
  color: var(--text-secondary);
  line-height: 1.6;
  max-width: 500px;
  margin: 0 auto;
}

/* Responsive adjustments for new components */
@media (max-width: 1024px) {
  .approach-steps-grid {
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  }
  .principles-row {
    grid-template-columns: 1fr;
  }
  .work-grid {
    grid-template-columns: 1fr;
  }
  .about-pillars-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .why-us-grid {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  }
}

@media (max-width: 768px) {
  .form-grid-2 {
    grid-template-columns: 1fr;
  }
  .discovery-card {
    padding: 2rem 1.25rem;
  }
  .approach-steps-grid {
    grid-template-columns: 1fr;
  }
  .about-pillars-grid {
    grid-template-columns: 1fr;
  }
  .pills-checkbox-group {
    grid-template-columns: 1fr;
  }
  .why-us-grid {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   WHY CHOOSE US COMPONENT (COMPACT VALUE SNAPSHOT)
   ========================================================================== */
.why-us-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 1rem;
}
.why-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 1.4rem 1.25rem;
  transition: all var(--transition-smooth);
  display: flex;
  flex-direction: column;
}
.why-card:hover {
  border-color: var(--accent-cyan);
  background: var(--bg-surface-elevated);
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
}
.why-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.85rem;
}
.why-num {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--accent-cyan-light);
  background: rgba(14, 165, 233, 0.1);
  padding: 0.2rem 0.5rem;
  border-radius: var(--radius-sm);
}
.why-title {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.4rem;
}
.why-desc {
  font-size: 0.86rem;
  color: var(--text-secondary);
  line-height: 1.45;
}

/* ==========================================================================
   LANGUAGE SWITCHER BUTTONS
   ========================================================================== */
.lang-switch-wrap {
  display: inline-flex;
  align-items: center;
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: 50px;
  padding: 0.2rem 0.5rem;
  gap: 0.25rem;
}
.lang-btn {
  background: none;
  border: none;
  color: var(--text-muted);
  font-family: var(--font-heading);
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  padding: 0.25rem 0.55rem;
  border-radius: 50px;
  transition: all var(--transition-fast);
}
.lang-btn:hover {
  color: var(--text-primary);
}
.lang-btn.active {
  background: var(--accent-cyan);
  color: var(--text-inverse);
  box-shadow: 0 0 10px rgba(14, 165, 233, 0.35);
}
.lang-sep {
  color: var(--border-medium);
  font-size: 0.75rem;
}

/* ==========================================================================
   RTL (ARABIC) COMPREHENSIVE STYLING
   ========================================================================== */
[dir="rtl"] {
  direction: rtl;
  text-align: right;
  font-family: 'Cairo', 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}
[dir="rtl"] h1, 
[dir="rtl"] h2, 
[dir="rtl"] h3, 
[dir="rtl"] h4, 
[dir="rtl"] h5, 
[dir="rtl"] h6,
[dir="rtl"] .font-heading {
  font-family: 'Cairo', 'Plus Jakarta Sans', sans-serif;
  letter-spacing: normal;
}
[dir="rtl"] .section-header.center,
[dir="rtl"] .editorial-divider.center,
[dir="rtl"] .section-anchor-banner,
[dir="rtl"] .confirmation-state {
  text-align: center;
}
[dir="rtl"] .editorial-divider:not(.center) {
  flex-direction: row-reverse;
  justify-content: flex-start;
}
[dir="rtl"] .editorial-divider:not(.center) .divider-line {
  margin-left: 0;
  margin-right: 0.75rem;
}
[dir="rtl"] .principle-item {
  border-left: none;
  border-right: 2px solid var(--border-medium);
}
[dir="rtl"] .principle-item:first-child {
  border-right-color: var(--accent-cyan);
}
[dir="rtl"] .principle-item:nth-child(2) {
  border-right-color: var(--accent-emerald);
}
[dir="rtl"] .principle-item:nth-child(3) {
  border-right-color: var(--accent-warning);
}
[dir="rtl"] .workflow-node-card:hover {
  transform: translateX(-4px);
}
[dir="rtl"] .work-detail-label {
  margin-left: 0.4rem;
}
[dir="rtl"] .btn-icon-right svg {
  transform: rotate(180deg);
}
[dir="rtl"] .btn-icon-right.hover-icon-down svg {
  transform: none;
}
/* ==========================================================================
   SOLVEXA BRAND IDENTITY & OPENING EXPERIENCE
   ========================================================================== */

/* Brand Custom Variables */
:root {
  --solv-blue: #2563EB;
  --solv-blue-light: #38BDF8;
  --solv-purple: #7C3AED;
  --solv-purple-light: #A855F7;
  --solv-gradient: linear-gradient(135deg, #2563EB 0%, #7C3AED 100%);
  --solv-gradient-text: linear-gradient(135deg, #38BDF8 0%, #C084FC 100%);
  --solv-glow: rgba(124, 58, 237, 0.25);
  --solv-glow-blue: rgba(37, 99, 235, 0.2);
}

/* Header Brand Lockup */
.brand-logo-lockup {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  text-decoration: none;
}
.brand-logo-icon {
  width: 36px;
  height: 36px;
  flex-shrink: 0;
  filter: drop-shadow(0 2px 8px var(--solv-glow-blue));
}
.brand-logo-text-group {
  display: flex;
  flex-direction: column;
}
.brand-wordmark-title {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  background: var(--solv-gradient-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  line-height: 1.1;
}
.brand-descriptor-tag {
  font-family: var(--font-heading);
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--text-muted);
  text-transform: uppercase;
}

/* --- SOLVEXA Intro Overlay --- */
.solvexa-intro-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: var(--bg-canvas);
  background-image: 
    radial-gradient(circle at 50% 35%, rgba(37, 99, 235, 0.18) 0%, transparent 60%),
    radial-gradient(circle at 50% 65%, rgba(124, 58, 237, 0.15) 0%, transparent 60%);
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  opacity: 1;
  visibility: visible;
  transition: opacity 0.75s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.75s cubic-bezier(0.16, 1, 0.3, 1), transform 0.75s cubic-bezier(0.16, 1, 0.3, 1);
}
.solvexa-intro-overlay.fade-out {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: scale(1.02);
}

/* Skip Button */
.solvexa-skip-btn {
  position: absolute;
  top: 2rem;
  right: 2rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-medium);
  border-radius: 50px;
  color: var(--text-muted);
  font-family: var(--font-heading);
  font-size: 0.8rem;
  font-weight: 600;
  padding: 0.4rem 1.1rem;
  cursor: pointer;
  transition: all var(--transition-fast);
  z-index: 10;
}
.solvexa-skip-btn:hover {
  background: rgba(255, 255, 255, 0.12);
  color: var(--text-primary);
  border-color: var(--border-focus);
}

/* Intro Content Layout */
.intro-content-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  max-width: 640px;
  padding: 2rem;
  position: relative;
  z-index: 2;
}

/* Symbol SVG Animation */
.intro-symbol-wrapper {
  width: 120px;
  height: 120px;
  margin-bottom: 1.35rem;
  position: relative;
  filter: drop-shadow(0 0 20px var(--solv-glow));
  opacity: 0;
  transform: scale(0.92);
  animation: symbolIntroFade 0.65s cubic-bezier(0.16, 1, 0.3, 1) 0.1s forwards;
}

@keyframes symbolIntroFade {
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.intro-symbol-svg {
  width: 100%;
  height: 100%;
}

/* Step 2 Keyframe animations */
.intro-circle {
  stroke-dasharray: 470;
  stroke-dashoffset: 470;
  animation: drawCircle 0.65s cubic-bezier(0.25, 1, 0.5, 1) 0.15s forwards;
}
@keyframes drawCircle {
  to {
    stroke-dashoffset: 0;
  }
}

.intro-arrow-group {
  opacity: 0;
  transform: translate(-10px, 10px);
  animation: arrowGlide 0.6s cubic-bezier(0.16, 1, 0.3, 1) 0.4s forwards;
}
@keyframes arrowGlide {
  to {
    opacity: 1;
    transform: translate(0, 0);
  }
}

.intro-s-curve {
  stroke-dasharray: 380;
  stroke-dashoffset: 380;
  animation: drawS 0.65s cubic-bezier(0.25, 1, 0.5, 1) 0.25s forwards;
}
@keyframes drawS {
  to {
    stroke-dashoffset: 0;
  }
}

/* Step 3: Brand Wordmark */
.intro-brand-block {
  opacity: 0;
  transform: translateY(8px);
  animation: introReveal 0.5s cubic-bezier(0.16, 1, 0.3, 1) 0.75s forwards;
}
.intro-wordmark {
  font-family: var(--font-heading);
  font-size: 2.6rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  background: var(--solv-gradient-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 0.15rem;
  line-height: 1;
}
.intro-descriptor {
  font-family: var(--font-heading);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  color: var(--text-secondary);
  text-transform: uppercase;
  display: block;
  margin-bottom: 1.75rem;
}

/* Step 4: Emotional Positioning */
.intro-core-statement {
  font-family: var(--font-heading);
  font-size: 1.45rem;
  font-weight: 700;
  color: var(--text-primary);
  opacity: 0;
  transform: translateY(8px);
  animation: introReveal 0.5s cubic-bezier(0.16, 1, 0.3, 1) 1.25s forwards;
  margin-bottom: 1rem;
  letter-spacing: -0.01em;
}

/* Step 5: Philosophy Statement */
.intro-philosophy-line {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: var(--font-heading);
  font-size: 1.05rem;
  flex-wrap: wrap;
}
.intro-phil-1 {
  font-weight: 700;
  color: #38BDF8;
  opacity: 0;
  transform: translateY(6px);
  animation: introReveal 0.45s cubic-bezier(0.16, 1, 0.3, 1) 1.65s forwards;
  letter-spacing: 0.01em;
}
.intro-phil-2 {
  font-weight: 500;
  color: var(--text-secondary);
  opacity: 0;
  transform: translateY(6px);
  animation: introReveal 0.45s cubic-bezier(0.16, 1, 0.3, 1) 1.85s forwards;
}

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

/* Accessibility: Reduced Motion */
@media (prefers-reduced-motion: reduce) {
  .intro-circle,
  .intro-s-curve,
  .intro-arrow-group,
  .intro-symbol-wrapper,
  .intro-brand-block,
  .intro-core-statement,
  .intro-phil-1,
  .intro-phil-2 {
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
    stroke-dashoffset: 0 !important;
  }
  .solvexa-intro-overlay {
    transition: opacity 0.3s ease !important;
  }
}

/* RTL Adjustments for Intro */
[dir="rtl"] .solvexa-skip-btn {
  right: auto;
  left: 2rem;
}
[dir="rtl"] .brand-logo-lockup {
  flex-direction: row;
}
[dir="rtl"] .brand-logo-text-group {
  text-align: right;
}

/* ==========================================================================
   SOLVEXA BRAND SYMBOL — VISUAL IDENTITY SYSTEM
   Subtle background SVG symbols woven into the page architecture
   ========================================================================== */

/* --- Base Brand Symbol Container --- */
.brand-symbol-section {
  position: relative;
  overflow: hidden;
}

.brand-symbol-bg {
  position: absolute;
  pointer-events: none;
  z-index: 0;
  opacity: 0;
  transition: opacity 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.brand-symbol-section .container {
  position: relative;
  z-index: 1;
}

/* Symbol becomes visible when section scrolls into view */
.brand-symbol-section.is-symbol-visible .brand-symbol-bg {
  opacity: 1;
}

/* --- About Us Section: Right-anchored, partially cropped --- */
.brand-symbol-about {
  width: 520px;
  height: 520px;
  right: -120px;
  top: 50%;
  transform: translateY(-50%);
  opacity: 0;
  filter: blur(1.2px);
}

.brand-symbol-about svg {
  width: 100%;
  height: 100%;
  opacity: 0.04;
}

/* Subtle radial glow behind the symbol */
.brand-symbol-about::after {
  content: '';
  position: absolute;
  inset: -40%;
  background: radial-gradient(
    ellipse at center,
    rgba(37, 99, 235, 0.08) 0%,
    rgba(124, 58, 237, 0.04) 35%,
    transparent 70%
  );
  z-index: -1;
  border-radius: 50%;
}

/* --- CTA Section: Center-bottom, partially cropped below --- */
.brand-symbol-cta {
  width: 440px;
  height: 440px;
  left: 50%;
  bottom: -140px;
  transform: translateX(-50%);
  opacity: 0;
  filter: blur(0.8px);
}

.brand-symbol-cta svg {
  width: 100%;
  height: 100%;
  opacity: 0.035;
}

/* Subtle upward glow from symbol */
.brand-symbol-cta::after {
  content: '';
  position: absolute;
  inset: -50%;
  background: radial-gradient(
    ellipse at center bottom,
    rgba(124, 58, 237, 0.06) 0%,
    rgba(37, 99, 235, 0.03) 40%,
    transparent 70%
  );
  z-index: -1;
  border-radius: 50%;
}

/* --- Extremely slow floating drift (elegant, no performance impact) --- */
@keyframes brandSymbolFloat {
  0%, 100% { transform: translateY(-50%) rotate(0deg); }
  50% { transform: translateY(calc(-50% + 8px)) rotate(1.5deg); }
}

@keyframes brandSymbolFloatCta {
  0%, 100% { transform: translateX(-50%) rotate(0deg); }
  50% { transform: translateX(-50%) translateY(-6px) rotate(-1deg); }
}

.brand-symbol-section.is-symbol-visible .brand-symbol-about {
  animation: brandSymbolFloat 20s ease-in-out infinite;
}

.brand-symbol-section.is-symbol-visible .brand-symbol-cta {
  animation: brandSymbolFloatCta 24s ease-in-out infinite;
}

/* --- Reduced motion: no animation, static symbol --- */
@media (prefers-reduced-motion: reduce) {
  .brand-symbol-about,
  .brand-symbol-cta {
    animation: none !important;
  }
}

/* --- RTL mirror for About Us symbol (move to left side) --- */
[dir="rtl"] .brand-symbol-about {
  right: auto;
  left: -120px;
}

/* --- Responsive scaling --- */
@media (max-width: 1024px) {
  .brand-symbol-about {
    width: 380px;
    height: 380px;
    right: -100px;
  }
  .brand-symbol-cta {
    width: 340px;
    height: 340px;
    bottom: -100px;
  }
}

@media (max-width: 768px) {
  .brand-symbol-about {
    width: 280px;
    height: 280px;
    right: -80px;
  }
  .brand-symbol-about svg {
    opacity: 0.03;
  }
  .brand-symbol-cta {
    width: 260px;
    height: 260px;
    bottom: -80px;
  }
  .brand-symbol-cta svg {
    opacity: 0.025;
  }
}

@media (max-width: 480px) {
  .brand-symbol-about {
    width: 200px;
    height: 200px;
    right: -60px;
  }
  .brand-symbol-cta {
    width: 200px;
    height: 200px;
    bottom: -60px;
  }
}

/* ==========================================================================
   VISUAL POLISH — SECTION TRANSITIONS & AMBIENT ACCENTS
   ========================================================================== */

/* --- Subtle brand-echo gradient accent between key sections --- */
#our-approach {
  position: relative;
}
#our-approach::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 200px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(37, 99, 235, 0.35), rgba(124, 58, 237, 0.35), transparent);
}

#about-us::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 180px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(37, 99, 235, 0.3), rgba(124, 58, 237, 0.3), transparent);
}

/* --- Ambient glow accent on the CTA section top border --- */
#discovery-form::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 240px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(37, 99, 235, 0.4), rgba(124, 58, 237, 0.4), transparent);
}

/* --- Discovery card: elevated branded border glow on hover --- */
.discovery-card {
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.discovery-card:hover {
  border-color: rgba(37, 99, 235, 0.2);
  box-shadow:
    var(--shadow-subtle),
    0 0 40px rgba(37, 99, 235, 0.06),
    0 0 80px rgba(124, 58, 237, 0.03);
}

/* --- About pillar cards: subtle brand accent on hover --- */
.about-pillar-card {
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}
.about-pillar-card:hover {
  border-color: rgba(37, 99, 235, 0.18);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.2), 0 0 20px rgba(37, 99, 235, 0.04);
}

/* --- Step cards: gradient top-line accent on hover --- */
.step-card {
  overflow: hidden;
}
.step-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--solv-gradient);
  opacity: 0;
  transition: opacity var(--transition-smooth);
}
.step-card:hover::before {
  opacity: 1;
}

/* --- Problem cards: consistent hover accent --- */
.problem-card {
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

/* --- Why cards: brand-accent top stripe --- */
.why-card {
  overflow: hidden;
  position: relative;
}
.why-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--solv-gradient);
  opacity: 0;
  transition: opacity var(--transition-smooth);
}
.why-card:hover::before {
  opacity: 0.7;
}

/* --- Work cards: enhanced media overlay for brand presence --- */
.work-card-media::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 50%;
  background: linear-gradient(to top, var(--bg-surface) 0%, transparent 100%);
  pointer-events: none;
  z-index: 1;
}

/* --- Footer: subtle brand gradient line above --- */
.site-footer {
  position: relative;
}
.site-footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 120px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(37, 99, 235, 0.3), rgba(124, 58, 237, 0.3), transparent);
}

/* --- Section header: brand-colored editorial divider line --- */
.editorial-divider .divider-line {
  background: var(--solv-gradient);
  height: 2px;
}

/* ==========================================================================
   VISUAL POLISH — SPACING & CONSISTENCY REFINEMENTS
   ========================================================================== */

/* Ensure footer flex container wraps cleanly */
.footer-container {
  flex-wrap: wrap;
  gap: 1.5rem;
}

.footer-left {
  max-width: 400px;
}

/* Footer links: tighter spacing on mobile */
@media (max-width: 768px) {
  .footer-container {
    flex-direction: column;
    align-items: flex-start;
  }
  .footer-links {
    flex-wrap: wrap;
    gap: 0.75rem 1rem;
  }
}

/* Section border-bottom: replace hard border with gradient fade */
.section-spacing {
  border-bottom: none;
  position: relative;
}
.section-spacing::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: min(85%, 900px);
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border-subtle) 30%, var(--border-subtle) 70%, transparent);
}

/* Remove double line on last section before footer */
#discovery-form::after {
  display: none;
}

/* ==========================================================================
   SOLVEXA REFINEMENT: LIGHT / DARK SECTION RHYTHM & BRAND VISUALS
   ========================================================================== */

/* --- 1. Unified Dark Theme Across All Sections --- */
.section-dark,
.section-light,
.section-light-neutral {
  background-color: var(--bg-canvas);
  color: var(--text-primary);
  position: relative;
}

.section-dark .section-heading,
.section-light .section-heading,
.section-light-neutral .section-heading {
  color: var(--text-primary);
}

.section-dark .section-sub,
.section-light .section-sub,
.section-light-neutral .section-sub {
  color: var(--text-secondary);
}

/* --- 2. Understanding Your Business Section (Refined Technical & Process Layout) --- */
.understanding-section {
  position: relative;
  overflow: hidden;
  padding-top: var(--spacing-2xl);
  padding-bottom: var(--spacing-2xl);
  background-color: var(--bg-canvas);
}

.relative-z {
  position: relative;
  z-index: 1;
}

/* Ambient Blueprint Layer (Subtle, non-distracting) */
.understanding-bg-layer {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 0;
  opacity: 0.85;
}

.understanding-bg-svg {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Part 1: Narrative Intro & Hero Grid */
.understanding-hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 3.5rem;
  align-items: start;
  margin-bottom: 4.5rem;
}

.understanding-hero-content {
  display: flex;
  flex-direction: column;
}

.understanding-heading {
  font-size: clamp(2.2rem, 3.8vw, 3rem);
  font-weight: 800;
  line-height: 1.15;
  margin-top: 0.75rem;
  margin-bottom: 1.5rem;
  color: var(--text-primary);
  letter-spacing: -0.02em;
}

.understanding-narrative {
  margin-bottom: 2rem;
}

.narrative-lead {
  font-size: 1.18rem;
  line-height: 1.65;
  color: var(--text-primary);
  font-weight: 600;
  margin-bottom: 0.85rem;
}

.narrative-body {
  font-size: 1.02rem;
  line-height: 1.75;
  color: var(--text-secondary);
}

/* Value Proposition Box */
.understanding-value-box {
  background: var(--bg-surface);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-lg);
  padding: 1.65rem 2rem;
  position: relative;
  overflow: hidden;
}

.understanding-value-box::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  width: 4px;
  background: linear-gradient(180deg, #2563EB, #7C3AED);
}

.value-line {
  margin: 0;
  font-family: var(--font-heading);
  line-height: 1.5;
}

.value-line-bold {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

.value-line-accent {
  font-size: 1.05rem;
  font-weight: 600;
  color: #3B82F6;
}

/* Business Mapping Card (Req #3 & #4) */
.business-mapping-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-xl);
  padding: 1.75rem 1.85rem;
  box-shadow: var(--shadow-subtle);
  position: relative;
}

.mapping-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.4rem;
  padding-bottom: 0.85rem;
  border-bottom: 1px solid var(--border-subtle);
}

.mapping-eyebrow {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--text-muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.mapping-status-pill {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  color: #38BDF8;
  background: rgba(14, 165, 233, 0.12);
  padding: 0.2rem 0.65rem;
  border-radius: 9999px;
  border: 1px solid rgba(14, 165, 233, 0.25);
}

.mapping-flow-list {
  display: flex;
  flex-direction: column;
  position: relative;
}

.mapping-flow-item {
  display: flex;
  gap: 1.15rem;
  position: relative;
  padding-bottom: 1.15rem;
}

.mapping-flow-item:last-child {
  padding-bottom: 0;
}

.mapping-node {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 28px;
  flex-shrink: 0;
  position: relative;
}

.mapping-node-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--bg-surface-elevated);
  border: 2px solid #3B82F6;
  margin-top: 4px;
  z-index: 2;
  transition: all 0.25s ease;
}

.node-dot-origin {
  border-color: var(--text-muted);
  background: var(--text-muted);
  width: 10px;
  height: 10px;
  margin-top: 5px;
}

.mapping-node-stem {
  width: 2px;
  flex-grow: 1;
  background: linear-gradient(180deg, rgba(59, 130, 246, 0.35) 0%, rgba(124, 58, 237, 0.35) 100%);
  margin-top: 4px;
  margin-bottom: -4px;
  z-index: 1;
}

.mapping-flow-item:last-child .mapping-node-stem {
  display: none;
}

.mapping-info {
  flex-grow: 1;
  background: rgba(14, 20, 32, 0.45);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 0.75rem 1rem;
  transition: all 0.25s ease;
}

.mapping-flow-item:hover .mapping-info {
  background: var(--bg-surface-elevated);
  border-color: rgba(59, 130, 246, 0.35);
  transform: translateX(3px);
}

.mapping-title-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.2rem;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.mapping-name {
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0;
}

.mapping-tag {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

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

.mapping-solvexa-icon-wrap {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
  margin-top: 2px;
}

.mapping-solvexa-svg {
  width: 100%;
  height: 100%;
}

.mapping-flow-final .mapping-info {
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.12) 0%, rgba(124, 58, 237, 0.12) 100%);
  border-color: rgba(59, 130, 246, 0.4);
}

.mapping-name-highlight {
  color: #60A5FA;
}

.mapping-tag-solution {
  color: #A78BFA;
  font-weight: 700;
}

/* Part 2: What We Look For & Problem Cards (Req #5 & #6) */
.understanding-problems-area {
  margin-bottom: 4rem;
}

.understanding-problems-area .editorial-divider {
  margin-bottom: 1.75rem;
}

.problems-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.25rem;
}

.problem-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 1.65rem 1.75rem;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  cursor: default;
}

.problem-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  width: 3px;
  background: transparent;
  transition: background 0.3s ease;
}

.problem-card-top {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  margin-bottom: 0.65rem;
}

.problem-card-num {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 700;
  color: #3B82F6;
  background: rgba(37, 99, 235, 0.12);
  padding: 0.15rem 0.5rem;
  border-radius: 4px;
  border: 1px solid rgba(37, 99, 235, 0.25);
  flex-shrink: 0;
}

.problem-card .problem-title {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0;
}

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

/* Diagnostic Reveal Block (Req #6: Hover Interaction) */
.problem-card-diagnostic {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.diagnostic-block {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.diagnostic-label {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.diagnostic-question {
  font-family: var(--font-heading);
  font-size: 0.9rem;
  font-weight: 600;
  color: #60A5FA;
  line-height: 1.45;
  margin: 0;
}

.diagnostic-direction {
  font-size: 0.88rem;
  font-weight: 500;
  color: #34D399;
  line-height: 1.45;
  margin: 0;
}

/* Smooth Desktop Hover State */
@media (hover: hover) {
  .problem-card-diagnostic {
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    margin-top: 0;
    padding-top: 0;
    border-top: 1px solid transparent;
    transform: translateY(6px);
    transition: max-height 0.35s cubic-bezier(0.16, 1, 0.3, 1),
                opacity 0.25s ease,
                transform 0.3s cubic-bezier(0.16, 1, 0.3, 1),
                margin-top 0.3s ease,
                padding-top 0.3s ease,
                border-color 0.3s ease;
  }

  .problem-card:hover,
  .problem-card:focus-within {
    border-color: rgba(59, 130, 246, 0.35);
    background: var(--bg-surface-elevated);
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(10, 16, 28, 0.5);
  }

  .problem-card:hover::before,
  .problem-card:focus-within::before {
    background: linear-gradient(180deg, #2563EB, #7C3AED);
  }

  .problem-card:hover .problem-card-diagnostic,
  .problem-card:focus-within .problem-card-diagnostic {
    max-height: 180px;
    opacity: 1;
    transform: translateY(0);
    margin-top: 1rem;
    padding-top: 0.85rem;
    border-top-color: var(--border-subtle);
  }
}

/* Touch devices fallback */
@media (hover: none) {
  .problem-card-diagnostic {
    max-height: none;
    opacity: 0.95;
    overflow: visible;
    margin-top: 1rem;
    padding-top: 0.85rem;
    border-top: 1px solid var(--border-subtle);
    transform: none;
  }
}

/* Part 3: This Is Where We Start (Closing Card & Flow - Req #8) */
.understanding-closing {
  max-width: 820px;
  margin: 0 auto;
  padding-top: 1.5rem;
}

.closing-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-xl);
  padding: 2.25rem 2rem;
  text-align: center;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-subtle);
}

.closing-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 10%;
  right: 10%;
  height: 2px;
  background: linear-gradient(90deg, transparent, #3B82F6, #7C3AED, transparent);
}

.understanding-closing .editorial-divider {
  justify-content: center;
  margin-bottom: 0.75rem;
}

.closing-lead {
  font-family: var(--font-heading);
  font-size: clamp(1.15rem, 2.5vw, 1.45rem);
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.5;
  margin-bottom: 1.75rem;
  margin-top: 0.5rem;
}

.closing-flow {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.85rem;
  flex-wrap: wrap;
  margin-bottom: 1.5rem;
}

.flow-step {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-medium);
  padding: 0.6rem 1.15rem;
  border-radius: var(--radius-md);
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-primary);
  transition: all 0.25s ease;
}

.flow-step-num {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-muted);
  font-weight: 700;
}

.flow-step-highlight {
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.15) 0%, rgba(124, 58, 237, 0.15) 100%);
  border-color: rgba(59, 130, 246, 0.5);
  color: #60A5FA;
}

.flow-step-highlight .flow-step-num {
  color: #93C5FD;
}

.flow-step:hover {
  border-color: rgba(37, 99, 235, 0.5);
  color: #3B82F6;
  transform: translateY(-2px);
}

.flow-arrow {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-muted);
}

.closing-lead-to-solutions {
  margin-top: 0.5rem;
}

.closing-next-hint {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: #38BDF8;
  font-family: var(--font-heading);
  font-size: 0.88rem;
  font-weight: 600;
  text-decoration: none;
  padding: 0.45rem 1rem;
  border-radius: 9999px;
  transition: all 0.25s ease;
  border: 1px solid rgba(56, 189, 248, 0.25);
  background: rgba(56, 189, 248, 0.06);
}

.closing-next-hint:hover {
  background: rgba(56, 189, 248, 0.15);
  border-color: #38BDF8;
  transform: translateY(2px);
  color: #FFFFFF;
}

/* Responsive */
@media (max-width: 992px) {
  .understanding-hero-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
  
  .understanding-hero-visual {
    max-width: 600px;
    width: 100%;
  }
}

@media (max-width: 768px) {
  .problems-grid {
    grid-template-columns: 1fr;
  }
  .understanding-value-box {
    max-width: 100%;
  }
  .closing-flow {
    gap: 0.5rem;
  }
  .flow-step {
    font-size: 0.85rem;
    padding: 0.45rem 0.85rem;
  }
  .closing-card {
    padding: 1.75rem 1.25rem;
  }
}

/* RTL support */
.rtl-mode .understanding-hero-grid,
[dir="rtl"] .understanding-hero-grid {
  text-align: right;
}

.rtl-mode .understanding-value-box::before,
[dir="rtl"] .understanding-value-box::before {
  left: auto;
  right: 0;
}

.rtl-mode .problem-card::before,
[dir="rtl"] .problem-card::before {
  left: auto;
  right: 0;
}

.rtl-mode .mapping-flow-item:hover .mapping-info,
[dir="rtl"] .mapping-flow-item:hover .mapping-info {
  transform: translateX(-3px);
}

.rtl-mode .flow-arrow,
[dir="rtl"] .flow-arrow {
  transform: scaleX(-1);
}

/* ==========================================================================
   Three-Stage Journey & Visual Transitions (UNDERSTAND -> IDENTIFY -> SOLVE)
   ========================================================================== */

/* Chapter / Stage Indicator Badges */
.chapter-badge {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 700;
  color: #38BDF8;
  background: rgba(56, 189, 248, 0.1);
  border: 1px solid rgba(56, 189, 248, 0.25);
  padding: 0.12rem 0.5rem;
  border-radius: 4px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  line-height: 1.4;
  flex-shrink: 0;
}

/* Common Transition Container */
.stage-transition {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  position: relative;
  z-index: 2;
  max-width: 640px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

.stage-transition-one {
  margin-top: 3.75rem;
  margin-bottom: 2.75rem;
}

.stage-transition-two {
  margin-top: 1.25rem;
  margin-bottom: 3rem;
}

/* Connectors */
.transition-connector {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  width: 100%;
  max-width: 320px;
  margin-bottom: 0.85rem;
}

.transition-connector-vertical {
  flex-direction: column;
  gap: 0.4rem;
  margin-bottom: 1rem;
}

.connector-line {
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(56, 189, 248, 0.35), transparent);
  flex: 1;
  max-width: 120px;
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.transition-connector-vertical .connector-line {
  width: 1px;
  height: 22px;
  background: linear-gradient(180deg, transparent, rgba(56, 189, 248, 0.45), transparent);
  transform: scaleY(0);
  transform-origin: top;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.connector-node {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #38BDF8;
  box-shadow: 0 0 8px rgba(56, 189, 248, 0.6);
  opacity: 0;
  transform: scale(0.4);
  transition: opacity 0.4s ease 0.15s, transform 0.4s ease 0.15s;
}

.transition-marker-emblem {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(15, 23, 42, 0.85);
  border: 1px solid rgba(56, 189, 248, 0.32);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 14px rgba(56, 189, 248, 0.18);
  opacity: 0;
  transform: scale(0.7);
  transition: opacity 0.5s ease 0.15s, transform 0.5s cubic-bezier(0.16, 1, 0.3, 1) 0.15s;
}

.transition-solvexa-icon {
  width: 16px;
  height: 16px;
  display: block;
}

/* Transition Copy */
.transition-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.3rem;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.55s cubic-bezier(0.16, 1, 0.3, 1) 0.2s,
              transform 0.55s cubic-bezier(0.16, 1, 0.3, 1) 0.2s;
}

.transition-lead {
  font-family: var(--font-heading);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #38BDF8;
}

.transition-sub {
  font-family: var(--font-heading);
  font-size: clamp(0.92rem, 2vw, 1.04rem);
  font-weight: 400;
  font-style: italic;
  color: var(--text-secondary);
  line-height: 1.5;
  margin: 0;
}

/* Downward indicator in Transition 2 */
.transition-arrow-wrap {
  margin-top: 0.85rem;
  color: #38BDF8;
  opacity: 0;
  transform: translateY(-4px);
  transition: opacity 0.5s ease 0.35s, transform 0.5s ease 0.35s;
}

.transition-down-arrow {
  display: block;
  animation: subtleDownArrowFloat 2.2s ease-in-out infinite;
}

@keyframes subtleDownArrowFloat {
  0%, 100% {
    transform: translateY(0);
    opacity: 0.65;
  }
  50% {
    transform: translateY(4px);
    opacity: 1;
  }
}

/* Reveal states when in viewport */
.stage-transition.is-revealed .connector-line {
  transform: scaleX(1);
}
.stage-transition.is-revealed .transition-connector-vertical .connector-line {
  transform: scaleY(1);
}
.stage-transition.is-revealed .connector-node {
  opacity: 1;
  transform: scale(1);
}
.stage-transition.is-revealed .transition-marker-emblem {
  opacity: 1;
  transform: scale(1);
}
.stage-transition.is-revealed .transition-content {
  opacity: 1;
  transform: translateY(0);
}
.stage-transition.is-revealed .transition-arrow-wrap {
  opacity: 1;
  transform: translateY(0);
}

/* Stage 02 Section Header */
.problems-section-header {
  margin-bottom: 2.25rem;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.problems-stage-heading {
  font-family: var(--font-heading);
  font-size: clamp(1.35rem, 2.6vw, 1.85rem);
  font-weight: 700;
  color: var(--text-primary);
  margin-top: 0.65rem;
  margin-bottom: 0.45rem;
  line-height: 1.3;
}

.problems-stage-subtitle {
  font-size: 0.96rem;
  color: var(--text-secondary);
  line-height: 1.6;
  max-width: 660px;
  margin: 0;
}

/* RTL Support for Journey Components */
.rtl-mode .problems-section-header,
[dir="rtl"] .problems-section-header {
  align-items: flex-start;
  text-align: right;
}

.rtl-mode .stage-transition,
[dir="rtl"] .stage-transition {
  text-align: center;
}

/* Reduced motion accessibility */
@media (prefers-reduced-motion: reduce) {
  .connector-line,
  .connector-node,
  .transition-marker-emblem,
  .transition-content,
  .transition-arrow-wrap,
  .transition-down-arrow {
    transition: none !important;
    animation: none !important;
    transform: none !important;
    opacity: 1 !important;
  }
}

/* --- 3. Approach Section: Directional Path (Req #9) --- */
.solutions-section {
  position: relative;
  overflow: hidden;
}

.solutions-section::before {
  content: '';
  position: absolute;
  top: 20%;
  left: -120px;
  width: 450px;
  height: 450px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(37, 99, 235, 0.09) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

.solutions-section::after {
  content: '';
  position: absolute;
  bottom: 10%;
  right: -100px;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(124, 58, 237, 0.07) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

.approach-section-directional {
  position: relative;
  overflow: hidden;
}

.approach-section-directional::before {
  content: '';
  position: absolute;
  top: 50%;
  right: -120px;
  transform: translateY(-50%);
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(14, 165, 233, 0.07) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

.directional-flow-grid {
  position: relative;
  z-index: 1;
}

.directional-flow-grid .step-card {
  position: relative;
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.directional-flow-grid .step-card::after {
  content: '→';
  position: absolute;
  right: -14px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--accent-cyan);
  opacity: 0.5;
  z-index: 2;
  pointer-events: none;
}

.directional-flow-grid .step-card:last-child::after {
  display: none;
}

/* --- 4. Why Choose Us Light Section --- */
/* All sections unified with dark theme surface styles */

/* --- 6. Footer Social Channels & Connect Section (Req #12 & #14) --- */
.footer-social-section {
  margin-top: 1.5rem;
}

.footer-social-title {
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-primary);
  margin-bottom: 0.75rem;
}

.footer-social-links {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  flex-wrap: wrap;
}

.social-icon-btn {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-md);
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-medium);
  color: var(--text-primary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: all var(--transition-fast);
}

.social-icon-btn:hover {
  background: var(--solv-gradient);
  color: #FFFFFF;
  border-color: transparent;
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(37, 99, 235, 0.25);
}

.social-icon-btn:focus-visible {
  outline: 2px solid var(--accent-cyan);
  outline-offset: 2px;
}

.social-wa-soon {
  opacity: 0.65;
  position: relative;
  cursor: pointer;
}

.social-wa-soon:hover {
  opacity: 1;
}

.footer-bottom-bar {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border-subtle);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

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

/* --- 7. Mobile Floating Contact Button (Req #15) --- */
.floating-contact-btn {
  display: none;
  position: fixed;
  bottom: calc(20px + env(safe-area-inset-bottom, 0px));
  right: 20px;
  z-index: 990;
  align-items: center;
  gap: 0.5rem;
  background: var(--solv-gradient);
  color: #FFFFFF;
  padding: 0.65rem 1.15rem;
  border-radius: 9999px;
  text-decoration: none;
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 700;
  box-shadow: 0 8px 24px rgba(37, 99, 235, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.2);
  transition: all 0.25s ease;
}

.floating-contact-btn:hover {
  transform: scale(1.05);
  box-shadow: 0 10px 28px rgba(37, 99, 235, 0.5);
  color: #FFFFFF;
}

.floating-contact-btn:active {
  transform: scale(0.97);
}

@media (max-width: 768px) {
  .floating-contact-btn {
    display: inline-flex;
  }
  
  .editorial-understanding-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  .understanding-left-col {
    position: static;
  }
  
  .directional-flow-grid {
    grid-template-columns: 1fr;
  }
  
  .directional-flow-grid .step-card::after {
    display: none;
  }
}

/* --- Comprehensive RTL Support for Arabic Experience --- */
html[dir="rtl"],
body.rtl-mode {
  font-family: 'Cairo', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  text-align: right;
  direction: rtl;
}

html[dir="rtl"] h1,
html[dir="rtl"] h2,
html[dir="rtl"] h3,
html[dir="rtl"] h4,
html[dir="rtl"] h5,
html[dir="rtl"] h6,
body.rtl-mode h1,
body.rtl-mode h2,
body.rtl-mode h3,
body.rtl-mode h4,
body.rtl-mode h5,
body.rtl-mode h6 {
  font-family: 'Cairo', 'Plus Jakarta Sans', sans-serif;
  letter-spacing: normal;
}

[dir="rtl"] .hero-top-meta,
body.rtl-mode .hero-top-meta {
  flex-direction: row-reverse;
}

[dir="rtl"] .back-link svg,
body.rtl-mode .back-link svg {
  transform: scaleX(-1);
}

[dir="rtl"] .btn svg,
body.rtl-mode .btn svg {
  transform: scaleX(-1);
}

[dir="rtl"] .snapshot-item,
body.rtl-mode .snapshot-item {
  text-align: right;
}

[dir="rtl"] .section-header.center,
body.rtl-mode .section-header.center {
  text-align: center;
}

[dir="rtl"] .eco-item,
body.rtl-mode .eco-item {
  text-align: right;
}

[dir="rtl"] .value-item,
body.rtl-mode .value-item {
  text-align: right;
}

[dir="rtl"] .footer-left,
body.rtl-mode .footer-left {
  text-align: right;
}

[dir="rtl"] .footer-links,
body.rtl-mode .footer-links {
  justify-content: flex-end;
}




