/* 
========================================================================
ZED Marketing | زد للتسويق
Premium Global CSS Design System & Visual Redesign
========================================================================
*/

/* --- Imports --- */
@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@300;400;600;700;800;900&family=IBM+Plex+Sans+Arabic:wght@300;400;500;600;700&family=Space+Grotesk:wght@400;500;600;700&display=swap');

/* --- CSS Variables --- */
:root {
  --bg-primary: #0F0F0F;
  --bg-secondary: #141414;
  --bg-tertiary: #1C1C1C;
  --accent: #FFC400;
  --accent-rgb: 255, 196, 0;
  --accent-hover: #E0AD00;
  --text-primary: #FFFFFF;
  --text-secondary: #E5E5E5;
  --text-muted: #8E8E8E;
  
  /* Borders & Grids */
  --border-color: #222222;
  --border-highlight: #333333;
  --border-yellow: rgba(255, 196, 0, 0.2);
  
  /* Fonts */
  --font-arabic: 'IBM Plex Sans Arabic', 'Cairo', sans-serif;
  --font-english: 'Space Grotesk', sans-serif;
  
  /* Transitions */
  --transition-smooth: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-fast: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  
  /* Layout Spacing */
  --container-width: 1280px;
  --header-height: 80px;
  --header-height-scrolled: 70px;
}

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

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

body {
  font-family: var(--font-arabic);
  direction: rtl;
  text-align: right;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: var(--bg-primary);
}
::-webkit-scrollbar-thumb {
  background: var(--bg-tertiary);
  border: 2px solid var(--bg-primary);
}
::-webkit-scrollbar-thumb:hover {
  background: var(--accent);
}

/* Selection */
::selection {
  background-color: var(--accent);
  color: #000000;
}

/* Typography Defaults */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-arabic);
  font-weight: 700;
  line-height: 1.25;
  color: var(--text-primary);
}

p {
  color: var(--text-secondary);
  font-size: 1rem;
  font-weight: 300;
}

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

/* --- Technical Grid Background & Cinematic Scanning --- */
.tech-grid-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: 
    linear-gradient(to right, rgba(255, 255, 255, 0.015) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.015) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
  z-index: 1;
  animation: gridMove 60s linear infinite;
}

.tech-grid-bg::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to bottom, transparent, rgba(255, 196, 0, 0.04) 10%, transparent 20%);
  animation: scanline 12s linear infinite;
  pointer-events: none;
}

.tech-grid-glow {
  position: absolute;
  width: 700px;
  height: 700px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 196, 0, 0.035) 0%, transparent 70%);
  pointer-events: none;
  z-index: 2;
  filter: blur(40px);
}

@keyframes gridMove {
  0% { background-position: 0 0; }
  100% { background-position: 120px 120px; }
}

@keyframes scanline {
  0% { transform: translateY(-100%); }
  100% { transform: translateY(500%); }
}

/* --- Layout Containers --- */
.container {
  width: 100%;
  max-width: var(--container-width);
  margin-right: auto;
  margin-left: auto;
  padding-right: 30px;
  padding-left: 30px;
}

.section-padding {
  padding-top: 120px;
  padding-bottom: 120px;
  position: relative;
  border-bottom: 1px solid var(--border-color);
}

@media (max-width: 768px) {
  .section-padding {
    padding-top: 80px;
    padding-bottom: 80px;
  }
}

/* --- Header / Navigation --- */
header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--header-height);
  background-color: rgba(10, 10, 10, 0.82);
  backdrop-filter: blur(20px) saturate(1.2);
  -webkit-backdrop-filter: blur(20px) saturate(1.2);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  z-index: 10000;
  transition: var(--transition-smooth);
  display: flex;
  align-items: center;
}

header.scrolled {
  height: var(--header-height-scrolled);
  background-color: rgba(10, 10, 10, 0.96);
  box-shadow: 0 4px 40px rgba(0, 0, 0, 0.6), 0 1px 0 rgba(var(--accent-rgb), 0.08);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

.logo-link {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.logo-icon {
  width: 32px;
  height: 32px;
  background-color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-english);
  font-weight: 700;
  font-size: 0.9rem;
  color: #000000;
  clip-path: polygon(20% 0%, 100% 0%, 80% 100%, 0% 100%);
  transition: var(--transition-fast);
}

.logo-link:hover .logo-icon {
  transform: scale(1.05);
  box-shadow: 0 0 16px rgba(var(--accent-rgb), 0.3);
}

.logo-text-en {
  font-family: var(--font-english);
  font-weight: 700;
  font-size: 1.3rem;
  letter-spacing: 3px;
  color: var(--text-primary);
  line-height: 1;
}

.logo-text-ar {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--accent);
  margin-right: 6px;
  opacity: 0.9;
}

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

.nav-link {
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text-secondary);
  position: relative;
  padding: 8px 0;
  transition: var(--transition-fast);
  white-space: nowrap;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  right: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), rgba(var(--accent-rgb), 0.3));
  transition: var(--transition-fast);
}

html[dir="ltr"] .nav-link::after {
  right: auto;
  left: 0;
}

.nav-link:hover, .nav-link.active {
  color: var(--accent);
}

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

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.header-phone-link {
  font-family: var(--font-english);
  font-weight: 700;
  font-size: 0.82rem;
  color: var(--text-muted);
  transition: var(--transition-fast);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  letter-spacing: 0.5px;
  padding: 6px 0;
  border-bottom: 1px solid transparent;
}
.header-phone-link:hover {
  color: var(--accent);
  border-bottom-color: rgba(var(--accent-rgb), 0.3);
}
.btn-whatsapp-header {
  border-color: rgba(37, 211, 102, 0.4) !important;
  color: #25D366 !important;
  font-weight: 700;
  font-size: 0.78rem !important;
  padding: 7px 14px !important;
}
.btn-whatsapp-header:hover {
  background-color: #25D366 !important;
  color: #fff !important;
  border-color: #25D366 !important;
}
.mobile-whatsapp-icon {
  display: none;
  font-size: 1.3rem;
  color: #25D366;
  margin-left: 4px;
  transition: var(--transition-fast);
}
.mobile-whatsapp-icon:hover {
  transform: scale(1.15);
}

/* Mobile Menu Trigger */
.menu-btn {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  width: 44px;
  height: 44px;
  position: relative;
  z-index: 10020;
  padding: 10px 7px;
  -webkit-tap-highlight-color: transparent;
}

.menu-btn span {
  display: block;
  width: 100%;
  height: 2px;
  background-color: var(--text-primary);
  margin-bottom: 6px;
  transition: var(--transition-fast);
}

.menu-btn span:last-child {
  margin-bottom: 0;
}

.menu-btn.active span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.menu-btn.active span:nth-child(2) {
  opacity: 0;
}

.menu-btn.active span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

/* Mobile Nav Drawer */
.mobile-nav {
  position: fixed;
  top: 0;
  right: 0;
  width: 100%;
  max-width: min(400px, 100vw);
  height: 100vh;
  height: 100dvh;
  background-color: #0F0F0F;
  border-left: 1px solid rgba(var(--accent-rgb), 0.12);
  padding: 0;
  display: none;
  flex-direction: column;
  z-index: 10010;
  transform: translateX(100%);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
  pointer-events: none;
}

.mobile-nav.active {
  transform: translateX(0);
  pointer-events: auto;
}

.mobile-nav-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background-color: rgba(0, 0, 0, 0.85);
  opacity: 0;
  visibility: hidden;
  z-index: 10005;
  transition: var(--transition-fast);
}

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

.mobile-nav .nav-link {
  font-size: 1.1rem;
  font-weight: 600;
  width: 100%;
  min-height: 48px;
  display: flex;
  align-items: center;
  padding: 14px 30px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  color: var(--text-secondary);
  transition: color 0.2s ease, background 0.2s ease;
  -webkit-tap-highlight-color: transparent;
}

.mobile-nav .nav-link:hover,
.mobile-nav .nav-link.active {
  color: var(--accent);
  background: rgba(var(--accent-rgb), 0.05);
}

.mobile-nav .nav-link.active {
  border-right: 3px solid var(--accent);
}

.mobile-nav .nav-link::after {
  display: none;
}

/* Mobile nav internal sections */
.mobile-nav .mobile-lang-switcher {
  padding: 20px 30px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  flex-shrink: 0;
}

.mobile-nav .mobile-menu-actions {
  margin-top: auto;
  flex-shrink: 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

/* Hide floating elements when menu is open */
body[style*="overflow: hidden"] .fixed-floating-contact,
body[style*="overflow: hidden"] .mobile-sticky-contact {
  opacity: 0 !important;
  pointer-events: none !important;
  transition: opacity 0.3s ease;
}

@media (max-width: 991px) {
  .nav-menu {
    display: none;
  }
  .menu-btn {
    display: block;
  }
  .header-actions .btn-consultation {
    display: none;
  }
  .header-phone-link,
  .btn-whatsapp-header {
    display: none !important;
  }
  .mobile-whatsapp-icon {
    display: inline-flex;
  }
}

@media (max-width: 575px) {
  .lang-switcher-flat {
    display: none;
  }
}

/* Header CTA button refinement */
.header-actions .btn-consultation {
  font-size: 0.78rem;
  padding: 8px 18px;
  font-weight: 700;
  letter-spacing: 0.3px;
}

/* --- Reusable Components --- */

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-arabic);
  font-size: 1rem;
  font-weight: 600;
  padding: 16px 32px;
  border-radius: 0; /* Strict masculine sharp layout */
  cursor: pointer;
  transition: var(--transition-smooth);
  position: relative;
  overflow: hidden;
  gap: 10px;
}

.btn::after {
  content: '';
  position: absolute;
  top: 0;
  left: -60%;
  width: 30%;
  height: 100%;
  background: linear-gradient(
    to right,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0.25) 50%,
    rgba(255, 255, 255, 0) 100%
  );
  transform: skewX(-25deg);
  transition: 0.75s cubic-bezier(0.16, 1, 0.3, 1);
  pointer-events: none;
}

.btn:hover::after {
  left: 130%;
}


.btn-primary {
  background-color: var(--accent);
  color: #000000;
  border: 1px solid var(--accent);
}

.btn-primary:hover {
  background-color: transparent;
  color: var(--accent);
}

.btn-secondary {
  background-color: transparent;
  color: var(--text-primary);
  border: 1px solid var(--border-highlight);
}

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

.btn-accent-outline {
  background-color: transparent;
  color: var(--accent);
  border: 1px solid var(--accent);
}

.btn-accent-outline:hover {
  background-color: var(--accent);
  color: #000000;
}

.btn-small {
  padding: 10px 22px;
  font-size: 0.88rem;
}

/* Badge / Section Tag */
.badge-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-english);
  color: var(--accent);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  border: 1px solid var(--border-color);
  background-color: rgba(255, 196, 0, 0.02);
  padding: 6px 16px;
  margin-bottom: 20px;
  border-left: 3px solid var(--accent);
}

/* Section Headings */
.section-header {
  margin-bottom: 70px;
  max-width: 800px;
  position: relative;
}

.section-header.center {
  margin-right: auto;
  margin-left: auto;
  text-align: center;
}

.section-header.center .badge-tag {
  border-left: 1px solid var(--border-color);
  border-bottom: 3px solid var(--accent);
}

.section-title {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 20px;
  line-height: 1.3;
}

.section-title span {
  color: var(--accent);
}

.section-desc {
  font-size: 1.15rem;
  color: var(--text-secondary);
  font-weight: 300;
}

@media (max-width: 768px) {
  .section-title {
    font-size: 2rem;
  }
}

/* Cards */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 30px;
}

.card {
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-color);
  padding: 40px;
  position: relative;
  transition: var(--transition-smooth);
}

.card::before {
  content: '';
  position: absolute;
  top: -1px;
  right: -1px;
  left: -1px;
  height: 3px;
  background-color: var(--accent);
  transform: scaleX(0);
  transform-origin: right;
  transition: var(--transition-smooth);
}

.card:hover {
  transform: translateY(-8px);
  border-color: var(--border-highlight);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.5);
}

.card:hover::before {
  transform: scaleX(1);
}

/* Statistics Strip */
.stats-container {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
  background-color: var(--bg-secondary);
}

.stat-item {
  padding: 40px;
  text-align: center;
  border-left: 1px solid var(--border-color);
}

.stat-item:last-child {
  border-left: none;
}

.stat-number {
  font-family: var(--font-english);
  font-size: 3rem;
  font-weight: 700;
  color: var(--accent);
  line-height: 1;
  margin-bottom: 10px;
}

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

/* --- UPGRADED HERO SECTION --- */
.hero {
  min-height: 100vh;
  padding-top: calc(var(--header-height) + 20px);
  padding-bottom: 100px;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--border-color);
}

.hero-layout {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  align-items: center;
  gap: 60px;
  position: relative;
  z-index: 5;
}

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

.hero-title {
  font-size: 4rem;
  font-weight: 900;
  color: var(--text-primary);
  line-height: 1.15;
  margin-bottom: 25px;
}

.hero-title span {
  color: var(--accent);
}

.hero-desc {
  font-size: 1.25rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 40px;
  font-weight: 300;
  max-width: 650px;
}

.hero-actions {
  display: flex;
  gap: 20px;
  margin-bottom: 50px;
}

.hero-features {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  padding-top: 30px;
  border-top: 1px solid var(--border-color);
  max-width: 600px;
}

.hero-feature-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.95rem;
  color: var(--text-muted);
}

.hero-feature-item svg {
  color: var(--accent);
}

/* Hero Custom Layered Machine Representation */
.hero-visual {
  position: relative;
  width: 100%;
  height: 550px;
  display: flex;
  justify-content: center;
  align-items: center;
  perspective: 1200px;
  transform-style: preserve-3d;
}

.hero-visual-bg-shape {
  position: absolute;
  width: 100%;
  height: 100%;
  transform: rotateY(-18deg) rotateX(10deg) rotateZ(-2deg);
  transform-style: preserve-3d;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Layered Panel Mockup Styles */
.hero-panel-node {
  position: absolute;
  background-color: rgba(18, 18, 18, 0.95);
  border: 1px solid var(--border-highlight);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.7);
  padding: 20px;
  transition: var(--transition-smooth);
  transform-style: preserve-3d;
}

.hero-panel-node:hover {
  border-color: var(--accent);
  box-shadow: 0 20px 60px rgba(255, 196, 0, 0.15);
}

/* Nodes specific layout placements */
.node-system-core {
  width: 215px;
  top: 38%;
  left: 35%;
  transform: translateZ(90px);
  z-index: 25;
  border: 2px solid var(--accent);
  box-shadow: 0 0 30px rgba(255, 196, 0, 0.15);
}

.node-websites {
  width: 200px;
  top: 8%;
  right: 5%;
  transform: translateZ(40px);
  z-index: 16;
}

.node-google-ads {
  width: 210px;
  top: 38%;
  left: 3%;
  transform: translateZ(80px);
  border-right: 3px solid var(--accent);
  z-index: 18;
}

.node-seo {
  width: 170px;
  top: 6%;
  left: 5%;
  transform: translateZ(30px);
  z-index: 15;
  background-color: rgba(10, 10, 10, 0.9);
}

.node-leads {
  width: 190px;
  top: 68%;
  right: 5%;
  transform: translateZ(100px);
  z-index: 21;
  background-color: rgba(22, 22, 22, 0.95);
  border-top: 3px solid #27c93f;
}

.node-calls {
  width: 190px;
  top: 38%;
  right: 3%;
  transform: translateZ(60px);
  z-index: 19;
  border-right: 3px solid var(--accent);
}

.node-social {
  width: 180px;
  top: 70%;
  left: 5%;
  transform: translateZ(50px);
  z-index: 20;
}

.node-tracking {
  width: 200px;
  top: 72%;
  left: 35%;
  transform: translateZ(110px);
  z-index: 22;
  border-top: 3px solid #27c93f;
}

/* Floating connections SVG paths */
.hero-machine-svg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 5;
  transform: translateZ(10px);
}

.hero-machine-path {
  stroke: rgba(255, 196, 0, 0.25);
  stroke-width: 1.5;
  stroke-dasharray: 8 8;
  animation: strokeDashMove 30s linear infinite;
}

@keyframes strokeDashMove {
  to {
    stroke-dashoffset: -1000;
  }
}

/* Float Animations for layered panels */
@keyframes panelFloatCore {
  0% { transform: translateZ(90px) translateY(0px) rotate(0deg); }
  50% { transform: translateZ(90px) translateY(-6px) rotate(0.2deg); }
  100% { transform: translateZ(90px) translateY(0px) rotate(0deg); }
}

@keyframes panelFloat1 {
  0% { transform: translateZ(40px) translateY(0px) rotate(0deg); }
  50% { transform: translateZ(40px) translateY(-10px) rotate(0.5deg); }
  100% { transform: translateZ(40px) translateY(0px) rotate(0deg); }
}

@keyframes panelFloat2 {
  0% { transform: translateZ(80px) translateY(0px) rotate(0deg); }
  50% { transform: translateZ(80px) translateY(12px) rotate(-0.5deg); }
  100% { transform: translateZ(80px) translateY(0px) rotate(0deg); }
}

@keyframes panelFloat3 {
  0% { transform: translateZ(30px) translateY(0px); }
  50% { transform: translateZ(30px) translateY(-8px); }
  100% { transform: translateZ(30px) translateY(0px); }
}

@keyframes panelFloat4 {
  0% { transform: translateZ(100px) translateY(0px); }
  50% { transform: translateZ(100px) translateY(10px); }
  100% { transform: translateZ(100px) translateY(0px); }
}

@keyframes panelFloat5 {
  0% { transform: translateZ(60px) translateY(0px) rotate(0deg); }
  50% { transform: translateZ(60px) translateY(-8px) rotate(-0.3deg); }
  100% { transform: translateZ(60px) translateY(0px) rotate(0deg); }
}

@keyframes panelFloat6 {
  0% { transform: translateZ(50px) translateY(0px) rotate(0deg); }
  50% { transform: translateZ(50px) translateY(10px) rotate(0.4deg); }
  100% { transform: translateZ(50px) translateY(0px) rotate(0deg); }
}

@keyframes panelFloat7 {
  0% { transform: translateZ(110px) translateY(0px); }
  50% { transform: translateZ(110px) translateY(-12px); }
  100% { transform: translateZ(110px) translateY(0px); }
}

.float-node-core { animation: panelFloatCore 6.5s ease-in-out infinite; }
.float-node-1 { animation: panelFloat1 7s ease-in-out infinite; }
.float-node-2 { animation: panelFloat2 8s ease-in-out infinite; }
.float-node-3 { animation: panelFloat3 6s ease-in-out infinite 1s; }
.float-node-4 { animation: panelFloat4 9s ease-in-out infinite 0.5s; }
.float-node-5 { animation: panelFloat5 7.5s ease-in-out infinite 0.2s; }
.float-node-6 { animation: panelFloat6 8.5s ease-in-out infinite 0.7s; }
.float-node-7 { animation: panelFloat7 9.5s ease-in-out infinite 0.4s; }

@media (max-width: 991px) {
  .hero {
    padding-top: calc(var(--header-height) + 15px);
    padding-bottom: 80px;
  }
  .hero-layout {
    grid-template-columns: 1fr;
    gap: 50px;
    text-align: center;
  }
  .hero-content {
    align-items: center;
  }
  .hero-title {
    font-size: 2.8rem;
  }
  .hero-desc {
    margin-right: auto;
    margin-left: auto;
  }
  .hero-actions {
    justify-content: center;
    width: 100%;
  }
  .hero-features {
    justify-content: center;
  }
  .hero-visual {
    height: 480px;
    max-width: 500px;
    margin-right: auto;
    margin-left: auto;
  }
  .node-websites { width: 260px; right: 0; top: 30px; bottom: auto; left: auto; }
  .node-google-ads { width: 220px; left: 0; bottom: 50px; top: auto; right: auto; }
  .node-seo { width: 140px; top: 10px; left: 30px; bottom: auto; right: auto; }
  .node-leads { width: 180px; bottom: 10px; right: 10px; top: auto; left: auto; }
}

/* --- CREATIVE JOURNEY SECTION ("مش بنعمل شكل حلو وخلاص") --- */
.journey-section {
  background-color: #0A0A0A;
}

.journey-container {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 20px;
  position: relative;
  margin-top: 60px;
  z-index: 5;
}

.journey-node {
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-color);
  padding: 30px 24px;
  position: relative;
  transition: var(--transition-smooth);
}

.journey-node::after {
  content: '';
  position: absolute;
  top: 50%;
  left: -20px;
  width: 20px;
  height: 1px;
  background-color: var(--accent);
  z-index: 1;
}

/* Connect stages */
.journey-node:last-child::after {
  display: none;
}

.journey-node-step {
  font-family: var(--font-english);
  font-size: 0.85rem;
  color: var(--accent);
  font-weight: 700;
  margin-bottom: 15px;
  display: block;
}

.journey-node-title {
  font-size: 1.4rem;
  font-weight: 800;
  margin-bottom: 12px;
}

.journey-node-desc {
  font-size: 0.88rem;
  color: var(--text-secondary);
  font-weight: 300;
}

.journey-node:hover {
  border-color: var(--accent);
  box-shadow: 0 0 25px rgba(255, 196, 0, 0.08);
}

@media (max-width: 991px) {
  .journey-container {
    grid-template-columns: 1fr;
    gap: 30px;
    position: relative;
    padding-right: 25px;
  }
  .journey-container::before {
    content: '';
    position: absolute;
    top: 15px;
    bottom: 15px;
    right: 8px;
    width: 2px;
    background-color: var(--accent);
    z-index: 1;
  }
  .journey-node {
    position: relative;
    z-index: 2;
  }
  .journey-node::after {
    top: 50%;
    bottom: auto;
    right: -25px;
    left: auto;
    width: 25px;
    height: 1px;
    background-color: var(--accent);
    transform: translateY(-50%);
  }
}

/* --- SERVICE COMMAND CENTER UPGRADE --- */
.command-center-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: repeat(3, auto);
  gap: 30px;
  position: relative;
  margin-top: 60px;
}

/* Core center node */
.service-core-card {
  grid-area: 2 / 2 / 3 / 3;
  background-color: #050505;
  border: 2px solid var(--accent);
  padding: 50px 30px;
  text-align: center;
  z-index: 10;
  box-shadow: 0 0 40px rgba(255, 196, 0, 0.1);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  height: 100%;
}

.service-core-title {
  font-size: 1.8rem;
  font-weight: 800;
  margin-bottom: 15px;
}

.service-core-desc {
  font-size: 0.95rem;
  color: var(--text-secondary);
  font-weight: 300;
}

/* Peripheral service items styling */
.command-center-module {
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-color);
  padding: 35px;
  position: relative;
  z-index: 2;
  transition: var(--transition-smooth);
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.command-center-module::before {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  right: 0;
  width: 2px;
  background-color: var(--accent);
  transform: scaleY(0);
  transform-origin: top;
  transition: var(--transition-smooth);
}

.command-center-module:hover {
  border-color: var(--border-highlight);
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

.command-center-module:hover::before {
  transform: scaleY(1);
}

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

.module-tag {
  font-family: var(--font-english);
  font-size: 0.72rem;
  color: var(--accent);
  font-weight: 700;
  letter-spacing: 1.5px;
  border: 1px solid var(--border-color);
  padding: 3px 8px;
}

.module-title {
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 15px;
}

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

@media (max-width: 991px) {
  .command-center-grid {
    display: flex;
    flex-direction: column;
    gap: 24px;
    position: relative;
    padding-right: 25px;
  }
  .command-center-grid::before {
    content: '';
    position: absolute;
    top: 15px;
    bottom: 15px;
    right: 8px;
    width: 2px;
    background-color: var(--accent);
    z-index: 1;
  }
  .service-core-card {
    grid-area: auto !important;
    order: -1 !important; /* Keep core card on top of stacking */
    padding: 40px 30px;
    position: relative;
    z-index: 2;
  }
  .command-center-module {
    grid-area: auto !important;
    position: relative;
    z-index: 2;
  }
  .command-center-module::after {
    content: '';
    position: absolute;
    top: 50%;
    right: -25px;
    width: 25px;
    height: 1px;
    background-color: var(--accent);
    z-index: 1;
    transform: translateY(-50%);
  }
  .service-core-card::after {
    content: '';
    position: absolute;
    top: 50%;
    right: -25px;
    width: 25px;
    height: 1px;
    background-color: var(--accent);
    z-index: 1;
    transform: translateY(-50%);
  }
}

/* --- PERFORMANCE PHILOSOPHY SECTION ("النتائج أهم من الشكل") --- */
.philosophy-section {
  background-color: #0A0A0A;
  position: relative;
  overflow: hidden;
}

/* Background grid glow specifically for this section */
.philosophy-section::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(255, 196, 0, 0.02) 0%, transparent 70%);
  z-index: 1;
  pointer-events: none;
}

.philosophy-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-top: 50px;
  position: relative;
  z-index: 2;
}

.philosophy-card {
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-color);
  padding: 35px 25px;
  text-align: right;
  position: relative;
  transition: var(--transition-smooth);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
}

/* Corner bracket accents */
.philosophy-card::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 0;
  height: 0;
  border-top: 2px solid var(--accent);
  border-right: 2px solid var(--accent);
  transition: var(--transition-fast);
  opacity: 0;
}
.philosophy-card::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 0;
  border-bottom: 2px solid var(--accent);
  border-left: 2px solid var(--accent);
  transition: var(--transition-fast);
  opacity: 0;
}

.philosophy-card:hover {
  border-color: var(--border-highlight);
  transform: translateY(-8px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.6), 0 0 20px rgba(255, 196, 0, 0.05);
}

.philosophy-card:hover::before,
.philosophy-card:hover::after {
  width: 15px;
  height: 15px;
  opacity: 1;
}

.philosophy-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.philosophy-tag {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--accent);
  background-color: rgba(255, 196, 0, 0.04);
  border: 1px solid rgba(255, 196, 0, 0.15);
  padding: 4px 10px;
  font-family: var(--font-arabic);
}

.philosophy-icon-wrapper {
  color: rgba(255, 255, 255, 0.2);
  transition: var(--transition-fast);
  display: inline-flex;
}
.philosophy-card:hover .philosophy-icon-wrapper {
  color: var(--accent);
  transform: scale(1.1);
}

.philosophy-title {
  font-size: 1.45rem;
  font-weight: 800;
  margin-bottom: 12px;
  color: var(--text-primary);
}

.philosophy-desc {
  font-size: 0.88rem;
  color: var(--text-secondary);
  font-weight: 300;
  line-height: 1.65;
}

/* Micro performance indicator line */
.philosophy-indicator-bar {
  width: 100%;
  height: 2px;
  background-color: var(--border-color);
  margin-top: 25px;
  position: relative;
  overflow: hidden;
}
.philosophy-indicator-bar::after {
  content: '';
  position: absolute;
  top: 0;
  right: 0; /* RTL orientation */
  width: 30%;
  height: 100%;
  background-color: var(--accent);
  transition: var(--transition-smooth);
}
.philosophy-card:hover .philosophy-indicator-bar::after {
  width: 100%;
  box-shadow: 0 0 8px var(--accent);
}

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

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

/* --- PORTFOLIO WALL UPGRADE --- */
.portfolio-wall-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
  gap: 30px;
  margin-top: 50px;
}

.portfolio-card-premium {
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-color);
  position: relative;
  overflow: hidden;
  transition: var(--transition-smooth);
}

.portfolio-card-premium:hover {
  border-color: var(--accent);
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.7), 0 0 25px rgba(255, 196, 0, 0.15);
}

.portfolio-card-media {
  aspect-ratio: 16/9;
  height: auto;
  width: 100%;
  background-color: #111111;
  position: relative;
  overflow: hidden;
  display: block;
  border-bottom: 1px solid var(--border-color);
  /* Fallback styling: abstract technical grid pattern */
  background-image: 
    radial-gradient(var(--accent) 0.5px, transparent 0.5px),
    linear-gradient(to right, rgba(255, 196, 0, 0.02) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 196, 0, 0.02) 1px, transparent 1px);
  background-size: 15px 15px, 30px 30px, 30px 30px;
}

.portfolio-media-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  transition: var(--transition-smooth);
  z-index: 1;
}

.portfolio-card-premium:hover .portfolio-media-bg {
  transform: scale(1.05);
}

.portfolio-card-media-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to bottom, rgba(15, 15, 15, 0.35) 0%, rgba(15, 15, 15, 0.95) 100%);
  z-index: 2;
  transition: var(--transition-smooth);
}

.portfolio-card-premium:hover .portfolio-card-media-overlay {
  background: linear-gradient(to bottom, rgba(15, 15, 15, 0.2) 0%, rgba(15, 15, 15, 0.88) 100%);
}

.portfolio-card-accent-line {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 0%;
  height: 3px;
  background-color: var(--accent);
  z-index: 5;
  transition: var(--transition-smooth);
}

.portfolio-card-premium:hover .portfolio-card-accent-line {
  width: 100%;
}

.portfolio-category-pill {
  position: absolute;
  top: 15px;
  right: 15px;
  background-color: var(--accent);
  color: #000000;
  font-family: var(--font-arabic);
  font-size: 0.72rem;
  font-weight: 800;
  padding: 4px 10px;
  z-index: 4;
  border-radius: 0;
  letter-spacing: 0.5px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
  transition: var(--transition-fast);
}

.portfolio-media-overlay-content {
  position: absolute;
  bottom: 0;
  right: 0;
  left: 0;
  padding: 20px;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: right;
  direction: rtl;
}

.portfolio-overlay-title {
  font-family: var(--font-arabic);
  font-size: 1.25rem;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 4px;
  line-height: 1.3;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8);
}

.portfolio-overlay-subtitle {
  font-family: var(--font-english);
  font-size: 0.8rem;
  color: var(--text-muted);
  display: block;
  margin-bottom: 8px;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.8);
}

.portfolio-overlay-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  font-family: var(--font-english);
  font-size: 0.72rem;
  color: var(--accent);
  font-weight: 600;
}

.portfolio-card-content {
  padding: 25px;
}

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

/* Hover reveal area */
.portfolio-card-hover-info {
  border-top: 1px solid var(--border-color);
  padding-top: 15px;
  margin-top: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
  color: var(--text-muted);
  transform: translateY(10px);
  opacity: 0;
  transition: var(--transition-fast);
}

.portfolio-card-premium:hover .portfolio-card-hover-info {
  transform: translateY(0);
  opacity: 1;
}

@media (max-width: 575px) {
  .portfolio-wall-grid {
    grid-template-columns: 1fr;
  }
}

/* --- MEDICAL MARKETING UPGRADE (Strict color theme) --- */
.medical-cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  margin-top: 50px;
}

.medical-card-premium {
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-color);
  padding: 45px 35px;
  position: relative;
  transition: var(--transition-smooth);
  display: flex;
  flex-direction: column;
}

.medical-card-premium::before {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  right: 0;
  width: 3px;
  background-color: var(--accent);
  transform: scaleY(0);
  transform-origin: top;
  transition: var(--transition-smooth);
}

.medical-card-premium:hover {
  transform: translateY(-8px);
  border-color: var(--border-highlight);
}

.medical-card-premium:hover::before {
  transform: scaleY(1);
}

.medical-card-badge {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--accent);
  border: 1px solid var(--border-yellow);
  background-color: rgba(255, 196, 0, 0.02);
  padding: 4px 10px;
  margin-bottom: 25px;
}

.medical-card-title {
  font-size: 1.4rem;
  font-weight: 800;
  margin-bottom: 15px;
}

.medical-card-desc {
  font-size: 0.92rem;
  color: var(--text-secondary);
  font-weight: 300;
  line-height: 1.7;
  margin-bottom: 25px;
}

.medical-card-bullets {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 0.88rem;
  color: var(--text-muted);
  margin-bottom: 25px;
  flex-grow: 1;
}

.medical-card-bullets li {
  display: flex;
  align-items: center;
  gap: 8px;
}

.medical-card-bullets li::before {
  content: '▪';
  color: var(--accent);
}

.medical-card-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--accent);
  text-decoration: none;
  font-weight: 700;
  font-size: 0.9rem;
  margin-top: 15px;
  transition: var(--transition-smooth);
  border-bottom: 1px solid transparent;
  width: fit-content;
}

.medical-card-link:hover {
  color: #fff;
  border-bottom-color: var(--accent);
}

.medical-card-link span {
  transition: transform var(--transition-smooth);
}

.medical-card-link:hover span {
  transform: translateX(-5px);
}

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

/* --- ROADMAP TIMELINE UPGRADE --- */
.roadmap-timeline {
  position: relative;
  margin-top: 60px;
  max-width: 950px;
  margin-right: auto;
  margin-left: auto;
}

.roadmap-timeline::before {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  right: 40px;
  width: 2px;
  background-color: var(--accent);
  z-index: 1;
}

.roadmap-step {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 30px;
  position: relative;
  z-index: 2;
  margin-bottom: 50px;
}

.roadmap-step:last-child {
  margin-bottom: 0;
}

.roadmap-node {
  width: 80px;
  height: 80px;
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-english);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--accent);
  transition: var(--transition-smooth);
}

.roadmap-step:hover .roadmap-node {
  border-color: var(--accent);
  box-shadow: 0 0 20px rgba(255, 196, 0, 0.2);
}

.roadmap-content {
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-color);
  padding: 30px 40px;
  transition: var(--transition-smooth);
}

.roadmap-step:hover .roadmap-content {
  border-color: var(--border-highlight);
  transform: translateX(-8px);
}

.roadmap-step-title {
  font-size: 1.35rem;
  font-weight: 800;
  margin-bottom: 12px;
}

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

@media (max-width: 768px) {
  .roadmap-timeline::before {
    right: 25px;
  }
  .roadmap-step {
    grid-template-columns: 50px 1fr;
    gap: 20px;
  }
  .roadmap-node {
    width: 50px;
    height: 50px;
    font-size: 1.25rem;
  }
}

/* --- NEW INDUSTRIES TILE GRID — CREATIVE EDITION --- */
.industries-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  margin-top: 50px;
  perspective: 1000px;
}

.industry-tile {
  background:
    linear-gradient(135deg, rgba(var(--accent-rgb), 0.03) 0%, transparent 60%),
    var(--bg-secondary);
  border: 1px solid var(--border-color);
  padding: 30px 24px 26px;
  position: relative;
  transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 10px;
  cursor: default;
  isolation: isolate;
}

/* Corner accent shape */
.industry-tile::before {
  content: '';
  position: absolute;
  top: -1px;
  right: -1px;
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, var(--accent) 0%, rgba(var(--accent-rgb), 0.3) 50%, transparent 50.1%);
  opacity: 0.15;
  transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 0;
}

/* Bottom accent sweep line */
.industry-tile::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), rgba(var(--accent-rgb), 0.2));
  transition: width 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 1;
}

/* === ICON CONTAINER === */
.industry-tile-icon {
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  line-height: 1;
  background: rgba(var(--accent-rgb), 0.06);
  border: 1px solid rgba(var(--accent-rgb), 0.12);
  border-radius: 12px;
  position: relative;
  transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  flex-shrink: 0;
  animation: industryIconFloat 4s ease-in-out infinite;
  animation-play-state: paused;
}

/* Stagger the float animation for each tile */
.industry-tile:nth-child(1) .industry-tile-icon { animation-delay: 0s; }
.industry-tile:nth-child(2) .industry-tile-icon { animation-delay: -0.5s; }
.industry-tile:nth-child(3) .industry-tile-icon { animation-delay: -1s; }
.industry-tile:nth-child(4) .industry-tile-icon { animation-delay: -1.5s; }
.industry-tile:nth-child(5) .industry-tile-icon { animation-delay: -2s; }
.industry-tile:nth-child(6) .industry-tile-icon { animation-delay: -0.3s; }
.industry-tile:nth-child(7) .industry-tile-icon { animation-delay: -0.8s; }
.industry-tile:nth-child(8) .industry-tile-icon { animation-delay: -1.3s; }
.industry-tile:nth-child(9) .industry-tile-icon { animation-delay: -1.8s; }
.industry-tile:nth-child(10) .industry-tile-icon { animation-delay: -0.6s; }
.industry-tile:nth-child(11) .industry-tile-icon { animation-delay: -1.1s; }
.industry-tile:nth-child(12) .industry-tile-icon { animation-delay: -1.6s; }

@keyframes industryIconFloat {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-5px); }
}

/* Icon glow ring on hover */
.industry-tile-icon::after {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 14px;
  border: 1px solid rgba(var(--accent-rgb), 0);
  transition: all 0.4s ease;
}

.industry-tile-title {
  font-size: 1.1rem;
  font-weight: 800;
  color: #fff;
  margin: 0;
  line-height: 1.4;
  transition: all 0.35s ease;
  position: relative;
  z-index: 1;
}

.industry-tile-desc {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-weight: 600;
  font-family: var(--font-english);
  letter-spacing: 0.8px;
  text-transform: uppercase;
  line-height: 1.5;
  position: relative;
  z-index: 1;
  opacity: 0.6;
  transition: all 0.35s ease;
}

/* ===== HOVER STATE ===== */
.industry-tile:hover {
  transform: translateY(-6px) scale(1.02);
  border-color: rgba(var(--accent-rgb), 0.35);
  box-shadow:
    0 12px 40px rgba(0, 0, 0, 0.35),
    0 0 30px rgba(var(--accent-rgb), 0.06),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
  background:
    linear-gradient(135deg, rgba(var(--accent-rgb), 0.06) 0%, transparent 60%),
    var(--bg-secondary);
}

.industry-tile:hover::before {
  width: 55px;
  height: 55px;
  opacity: 0.3;
}

.industry-tile:hover::after {
  width: 100%;
}

.industry-tile:hover .industry-tile-icon {
  background: rgba(var(--accent-rgb), 0.12);
  border-color: rgba(var(--accent-rgb), 0.35);
  transform: translateY(-3px) scale(1.08);
  animation-play-state: running;
  box-shadow: 0 6px 20px rgba(var(--accent-rgb), 0.1);
}

.industry-tile:hover .industry-tile-icon::after {
  border-color: rgba(var(--accent-rgb), 0.2);
  box-shadow: 0 0 16px rgba(var(--accent-rgb), 0.08);
}

.industry-tile:hover .industry-tile-title {
  color: var(--accent);
  transform: translateX(-3px);
}

html[dir="ltr"] .industry-tile:hover .industry-tile-title {
  transform: translateX(3px);
}

.industry-tile:hover .industry-tile-desc {
  opacity: 1;
  color: rgba(var(--accent-rgb), 0.7);
}

/* === ANIMATED BORDER GLOW on intersection === */
.industry-tile.revealed {
  animation: tileBorderReveal 0.8s ease forwards;
}

@keyframes tileBorderReveal {
  0%   { border-color: var(--border-color); }
  50%  { border-color: rgba(var(--accent-rgb), 0.3); }
  100% { border-color: var(--border-color); }
}

/* === RESPONSIVE === */
@media (max-width: 991px) {
  .industries-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 768px) {
  .industries-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .industry-tile-icon {
    width: 44px;
    height: 44px;
    font-size: 1.3rem;
  }
}

@media (max-width: 480px) {
  .industries-grid {
    grid-template-columns: 1fr;
  }
  .industry-tile {
    padding: 24px 20px;
    flex-direction: row;
    align-items: center;
    gap: 16px;
  }
  .industry-tile-icon {
    width: 48px;
    height: 48px;
    border-radius: 10px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .industry-tile-icon {
    animation: none !important;
  }
  .industry-tile.revealed {
    animation: none !important;
  }
  .industry-tile:hover {
    transform: none;
  }
  .industry-tile:hover .industry-tile-icon {
    transform: none;
  }
}

/* --- UPGRADED CTA SECTION --- */
.cta-upgraded {
  background-color: #0A0A0A;
}

.cta-container-block {
  border: 1px solid var(--border-color);
  border-right: 5px solid var(--accent);
  background-color: var(--bg-secondary);
  padding: 80px 60px;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 50px;
  align-items: center;
  position: relative;
}

.cta-container-block::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: linear-gradient(135deg, rgba(255, 196, 0, 0.02) 0%, transparent 100%);
  pointer-events: none;
}

.cta-header-title {
  font-size: 2.8rem;
  font-weight: 900;
  line-height: 1.25;
  margin-bottom: 20px;
}

.cta-header-title span {
  color: var(--accent);
}

.cta-header-desc {
  font-size: 1.2rem;
  color: var(--text-secondary);
  font-weight: 300;
  line-height: 1.7;
}

.cta-panel-actions {
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: stretch;
  max-width: 360px;
  margin-right: auto;
}

@media (max-width: 991px) {
  .cta-container-block {
    grid-template-columns: 1fr;
    padding: 60px 40px;
    gap: 40px;
  }
  .cta-panel-actions {
    margin-right: 0;
    max-width: 100%;
  }
}

/* --- Footer --- */
footer {
  background-color: #060606;
  border-top: 1px solid var(--border-color);
  padding-top: 90px;
  padding-bottom: 40px;
  position: relative;
  z-index: 10;
}

/* Premium Top Border Accent */
footer::before {
  content: '';
  position: absolute;
  top: -1px;
  left: 0;
  width: 100%;
  height: 1px;
  background: linear-gradient(to right, transparent, var(--accent), transparent);
  opacity: 0.6;
  z-index: 2;
}

.footer-top {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 60px;
  margin-bottom: 60px;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.footer-brand-desc {
  font-size: 0.95rem;
  color: var(--text-secondary);
  font-weight: 300;
  line-height: 1.7;
}

.footer-title {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 25px;
  position: relative;
  padding-bottom: 10px;
}

.footer-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  right: 0;
  width: 30px;
  height: 2px;
  background-color: var(--accent);
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-link-item a {
  font-size: 0.9rem;
  color: var(--text-muted);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.footer-link-item a:hover {
  color: var(--accent);
}

.footer-contact-info {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.footer-contact-item {
  display: flex;
  gap: 12px;
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.footer-contact-icon {
  color: var(--accent);
  margin-top: 2px;
}

.footer-contact-text span {
  display: block;
  font-size: 0.75rem;
  color: var(--text-muted);
}

.footer-contact-link {
  color: #ffffff;
  text-decoration: none;
  font-weight: 700;
  font-family: var(--font-english);
  transition: var(--transition-fast);
}

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

.footer-socials {
  display: flex;
  gap: 12px;
  margin-top: 20px;
}

.footer-social-btn {
  width: 38px;
  height: 38px;
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  transition: var(--transition-fast);
}

.footer-social-btn:hover {
  background-color: var(--accent);
  border-color: var(--accent);
  color: #000000;
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(255, 196, 0, 0.35);
}

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

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

.footer-bottom-links {
  display: flex;
  gap: 24px;
}

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

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

@media (max-width: 991px) {
  .footer-top {
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
  }
}

@media (max-width: 575px) {
  .footer-top {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }
}

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

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

.reveal-left {
  transform: translateX(-35px);
}

.reveal-right {
  transform: translateX(35px);
}

.reveal-on-scroll.revealed.reveal-left,
.reveal-on-scroll.revealed.reveal-right {
  transform: translateX(0);
}

.stagger-container > *.reveal-on-scroll {
  transition-delay: calc(var(--stagger-index, 0) * 0.12s);
}

/* --- SERVICE DETAIL PAGES UTILITIES --- */
.problem-box {
  border-right: 4px solid var(--accent);
  background-color: var(--bg-secondary);
  border-top: 1px solid var(--border-color);
  border-left: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
  padding: 40px;
  margin-top: 40px;
}

.problem-box h3 {
  font-size: 1.5rem;
  margin-bottom: 15px;
  color: var(--text-primary);
  font-weight: 800;
}

.deliverables-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin-top: 40px;
}

.deliverable-item {
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-color);
  padding: 24px;
  display: flex;
  align-items: flex-start;
  gap: 16px;
  transition: var(--transition-smooth);
}

.deliverable-item:hover {
  border-color: var(--border-highlight);
  transform: translateY(-2px);
}

.deliverable-icon {
  color: var(--accent);
  margin-top: 2px;
}

.deliverable-text h4 {
  font-size: 1.15rem;
  margin-bottom: 6px;
  font-weight: 700;
}

.deliverable-text p {
  font-size: 0.9rem;
  color: var(--text-muted);
}

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

/* Pyramidal Authority Visual Layout (SEO Page) */
.pyramid-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  margin-top: 50px;
  max-width: 600px;
  margin-right: auto;
  margin-left: auto;
}

.pyramid-level {
  width: 100%;
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-color);
  padding: 16px;
  text-align: center;
  font-family: var(--font-arabic);
  font-weight: 700;
  font-size: 1.1rem;
  position: relative;
  transition: var(--transition-fast);
}

.pyramid-level:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.pyramid-level::after {
  content: '↓';
  position: absolute;
  bottom: -22px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 1.2rem;
  color: var(--text-muted);
}

.pyramid-level:last-child::after {
  display: none;
}

.pyramid-level.l1 { max-width: 250px; border-color: var(--accent); }
.pyramid-level.l2 { max-width: 330px; }
.pyramid-level.l3 { max-width: 410px; }
.pyramid-level.l4 { max-width: 490px; }
.pyramid-level.l5 { max-width: 570px; }

/* --- TRUST STRIP --- */
.trust-strip {
  background-color: var(--bg-secondary);
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
  padding: 24px 0;
  position: relative;
  z-index: 10;
}
.trust-strip-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
}
.trust-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.95rem;
  color: var(--text-secondary);
  font-weight: 600;
}
.trust-item svg {
  color: var(--accent);
  flex-shrink: 0;
}
@media (max-width: 991px) {
  .trust-strip-container {
    justify-content: center;
    flex-direction: column;
    align-items: flex-start;
    padding-right: 20px;
    padding-left: 20px;
  }
}

/* --- BROWSER MOCKUP PORTFOLIO CARDS --- */
.portfolio-browser-header {
  background-color: #141414;
  border-bottom: 1px solid var(--border-color);
  padding: 10px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.browser-dots {
  display: flex;
  gap: 6px;
}
.browser-dots span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--border-highlight);
}
.portfolio-card-premium:hover .browser-dots span:nth-child(1) { background-color: #ff5f56; }
.portfolio-card-premium:hover .browser-dots span:nth-child(2) { background-color: #ffbd2e; }
.portfolio-card-premium:hover .browser-dots span:nth-child(3) { background-color: #27c93f; }

.browser-domain {
  font-family: var(--font-english);
  font-size: 0.75rem;
  color: var(--text-muted);
  letter-spacing: 0.5px;
}
.portfolio-card-premium:hover .browser-domain {
  color: var(--accent);
}

.portfolio-card-media-link {
  display: block;
  width: 100%;
  text-decoration: none;
}

.portfolio-card-actions {
  display: flex;
  gap: 12px;
  margin-top: 20px;
  border-top: 1px solid var(--border-color);
  padding-top: 15px;
  z-index: 10;
  position: relative;
}
.btn-visit-site {
  flex: 1.2;
  background-color: var(--accent);
  color: #000000;
  font-weight: 700;
  font-size: 0.8rem;
  padding: 10px 12px;
  text-align: center;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: var(--transition-fast);
}
.btn-visit-site:hover {
  background-color: #ffffff;
  color: #000000;
}
.btn-view-details {
  flex: 0.8;
  background-color: transparent;
  color: var(--text-primary);
  border: 1px solid var(--border-highlight);
  font-weight: 600;
  font-size: 0.8rem;
  padding: 10px 16px;
  text-align: center;
  transition: var(--transition-fast);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.btn-view-details:hover {
  border-color: var(--accent);
  color: var(--accent);
}

/* --- HERO CONTACT & CONVERSION UPGRADES --- */
.btn-whatsapp-hero {
  border-color: #25D366 !important;
  color: #25D366 !important;
  font-weight: 700;
}
.btn-whatsapp-hero:hover {
  background-color: #25D366 !important;
  color: #fff !important;
  border-color: #25D366 !important;
}
.btn-phone-hero {
  font-family: var(--font-english);
  border-color: rgba(255, 255, 255, 0.2) !important;
  color: var(--text-secondary) !important;
}
.btn-phone-hero:hover {
  border-color: var(--accent) !important;
  color: var(--accent) !important;
}
.hero-contact-strip {
  margin-top: -30px;
  margin-bottom: 30px;
  font-size: 0.95rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 8px;
}
.hero-contact-strip .contact-num {
  font-family: var(--font-english);
  font-weight: 700;
  color: var(--accent);
  font-size: 1.05rem;
  border-bottom: 1px dashed var(--accent);
  padding-bottom: 2px;
}
.hero-contact-strip .contact-num:hover {
  color: #fff;
  border-bottom-color: #fff;
}

/* ============================================================
   Fixed Floating Contact Sidebar (Desktop Only)
   Premium glassmorphism design with GPU-accelerated animations
   ============================================================ */
.fixed-floating-contact {
  position: fixed;
  bottom: 32px;
  left: 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  z-index: 9999;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.4s ease, transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  pointer-events: none;
}

.fixed-floating-contact.is-visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.floating-btn {
  display: flex;
  align-items: center;
  gap: 0;
  background: rgba(20, 20, 20, 0.85);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 0;
  width: 48px;
  height: 48px;
  justify-content: center;
  font-family: var(--font-arabic);
  font-size: 0.82rem;
  font-weight: 700;
  border-radius: 14px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.45), 0 0 0 1px rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(16px) saturate(1.4);
  -webkit-backdrop-filter: blur(16px) saturate(1.4);
  transition: width 0.35s cubic-bezier(0.16, 1, 0.3, 1),
              background 0.25s ease,
              border-color 0.25s ease,
              box-shadow 0.25s ease;
  overflow: hidden;
  cursor: pointer;
  position: relative;
  will-change: width;
}

.floating-btn-icon {
  font-size: 1.3rem;
  flex-shrink: 0;
  width: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

.floating-btn-text {
  white-space: nowrap;
  opacity: 0;
  transform: translateX(-8px);
  transition: opacity 0.25s ease 0.05s, transform 0.25s ease 0.05s;
  pointer-events: none;
  padding-left: 2px;
  padding-right: 14px;
}

.floating-btn:hover {
  width: 175px;
  border-color: rgba(255, 255, 255, 0.18);
}

.floating-btn:hover .floating-btn-text {
  opacity: 1;
  transform: translateX(0);
}

/* WhatsApp button */
.floating-btn-whatsapp {
  border-color: rgba(37, 211, 102, 0.25);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.45), 0 0 12px rgba(37, 211, 102, 0.08);
}
.floating-btn-whatsapp:hover {
  background: rgba(37, 211, 102, 0.15);
  border-color: rgba(37, 211, 102, 0.5);
  box-shadow: 0 8px 40px rgba(37, 211, 102, 0.2), 0 0 20px rgba(37, 211, 102, 0.1);
}

/* Phone button */
.floating-btn-phone {
  border-color: rgba(var(--accent-rgb), 0.2);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.45), 0 0 12px rgba(var(--accent-rgb), 0.06);
}
.floating-btn-phone:hover {
  background: rgba(var(--accent-rgb), 0.12);
  border-color: rgba(var(--accent-rgb), 0.45);
  box-shadow: 0 8px 40px rgba(var(--accent-rgb), 0.15), 0 0 20px rgba(var(--accent-rgb), 0.08);
}

/* Subtle pulse on WhatsApp to attract attention */
@keyframes floatingPulse {
  0%, 100% { box-shadow: 0 8px 32px rgba(0,0,0,0.45), 0 0 12px rgba(37,211,102,0.08); }
  50%      { box-shadow: 0 8px 32px rgba(0,0,0,0.45), 0 0 20px rgba(37,211,102,0.2); }
}
.fixed-floating-contact.is-visible .floating-btn-whatsapp {
  animation: floatingPulse 3s ease-in-out infinite;
}
.floating-btn-whatsapp:hover {
  animation: none;
}

/* Mobile Sticky Bottom Contact Bar */
.mobile-sticky-contact {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: 60px;
  grid-template-columns: 1fr 1fr;
  z-index: 999;
  box-shadow: 0 -5px 20px rgba(0, 0, 0, 0.5);
}
.sticky-contact-item {
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-arabic);
  font-size: 1rem;
  font-weight: 700;
  text-align: center;
  height: 100%;
}
.sticky-phone {
  background-color: #141414;
  color: var(--accent);
  border-top: 2px solid var(--accent);
}
.sticky-whatsapp {
  background-color: #25D366;
  color: #fff;
  border-top: 2px solid #25D366;
}

@keyframes pulseGlow {
  0% {
    transform: scale(0.9);
    box-shadow: 0 0 0 0 rgba(255, 196, 0, 0.7);
  }
  70% {
    transform: scale(1.1);
    box-shadow: 0 0 0 8px rgba(255, 196, 0, 0);
  }
  100% {
    transform: scale(0.9);
    box-shadow: 0 0 0 0 rgba(255, 196, 0, 0);
  }
}

/* Mobile Hero Node overrides to prevent coordinate stretching */
@media (max-width: 991px) {
  body {
    padding-bottom: 60px; /* Offset for mobile sticky contact bar */
  }
  .hero-actions {
    flex-direction: column;
    gap: 12px;
    align-items: stretch;
  }
  .hero-actions .btn {
    width: 100%;
  }
  .hero-contact-strip {
    margin-top: -15px;
    margin-bottom: 25px;
    justify-content: center;
  }
  .mobile-sticky-contact {
    display: grid;
  }
  .hero {
    overflow: visible !important;
  }
  .hero-visual {
    height: auto !important;
    min-height: unset !important;
    padding: 20px 0;
    perspective: none !important;
    transform-style: flat !important;
  }
  .hero-visual-bg-shape {
    transform: none !important;
    position: relative !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 15px !important;
    align-items: center !important;
    height: auto !important;
    width: 100% !important;
  }
  /* Hide 5 nodes and SVG paths */
  .node-system-core,
  .node-seo,
  .node-social,
  .node-tracking,
  .node-calls,
  .hero-machine-svg {
    display: none !important;
  }
  /* Stack the remaining 3 nodes as clean cards */
  .node-websites,
  .node-google-ads,
  .node-leads {
    position: relative !important;
    top: auto !important;
    bottom: auto !important;
    left: auto !important;
    right: auto !important;
    transform: none !important;
    width: 100% !important;
    max-width: 100% !important;
    animation: none !important;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3) !important;
    margin: 0 !important;
    display: flex !important;
    align-items: center;
    padding: 18px 20px !important;
    border: 1px solid rgba(var(--accent-rgb), 0.15) !important;
    border-radius: 0 !important;
    background: #141414 !important;
    min-height: 48px !important;
  }
}

/* --- PORTFOLIO FILTER BUTTONS --- */
.portfolio-filter-container {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 50px;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 24px;
}

.filter-btn {
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
  font-family: var(--font-arabic);
  font-size: 0.88rem;
  font-weight: 600;
  padding: 12px 22px;
  cursor: pointer;
  transition: var(--transition-fast);
  border-radius: 0;
  letter-spacing: 0.5px;
}

.filter-btn:hover {
  border-color: var(--accent);
  color: var(--accent);
  background-color: rgba(255, 196, 0, 0.05);
}

.filter-btn.active {
  background-color: var(--accent);
  border-color: var(--accent);
  color: #000000;
  font-weight: 700;
}

/* Responsive horizontal scroll for filters on mobile */
@media (max-width: 768px) {
  .portfolio-filter-container {
    justify-content: flex-start;
    overflow-x: auto;
    white-space: nowrap;
    padding-bottom: 15px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none; /* Firefox */
  }
  
  .portfolio-filter-container::-webkit-scrollbar {
    display: none; /* Safari and Chrome */
  }
  
  .filter-btn {
    flex-shrink: 0;
  }
}

/* --- PREMIUM CTA FORM & INPUT STYLES --- */
.cta-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
  width: 100%;
}

.cta-input-group {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  width: 100%;
  position: relative;
}

.cta-input-label {
  display: block;
  font-family: var(--font-arabic);
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 8px;
  text-align: right;
  width: 100%;
  transition: var(--transition-fast);
}

.cta-input {
  width: 100% !important;
  background-color: var(--bg-primary) !important;
  border: 1px solid var(--border-color) !important;
  color: #ffffff !important;
  padding: 16px 20px !important;
  font-family: var(--font-arabic);
  font-size: 0.95rem;
  font-weight: 500;
  border-radius: 0 !important; /* Strict sharp edges */
  transition: var(--transition-fast) !important;
  outline: none !important;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.4);
}

/* Specific styling for inputs when they are focused */
.cta-input:focus {
  border-color: var(--accent) !important;
  background-color: #080808 !important;
  box-shadow: 0 0 12px rgba(255, 196, 0, 0.12), inset 0 2px 4px rgba(0, 0, 0, 0.4) !important;
}

/* Change label color when corresponding input is focused */
.cta-input-group:focus-within .cta-input-label {
  color: #ffffff;
  text-shadow: 0 0 8px rgba(255, 255, 255, 0.2);
}

/* Custom placeholder styling with transitions */
.cta-input::placeholder {
  color: var(--text-muted) !important;
  font-size: 0.88rem;
  transition: var(--transition-fast);
}

.cta-input:focus::placeholder {
  transform: translateX(-8px);
  opacity: 0.5;
}

/* Custom styled select elements */
select.cta-input {
  appearance: none !important;
  -webkit-appearance: none !important;
  -moz-appearance: none !important;
  background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23FFC400' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E") !important;
  background-repeat: no-repeat !important;
  background-position: left 20px center !important;
  background-size: 16px !important;
  padding-left: 45px !important; /* spacing for arrow */
  cursor: pointer;
}

/* Custom styled select dropdown menu list items */
select.cta-input option {
  background-color: var(--bg-secondary);
  color: #ffffff;
  padding: 10px;
}

/* Custom styled textareas */
textarea.cta-input {
  resize: vertical;
  min-height: 120px;
  line-height: 1.6;
}

/* Hover effects for inputs */
.cta-input:hover {
  border-color: var(--border-highlight) !important;
}
.cta-input:focus:hover {
  border-color: var(--accent) !important;
}

/* Interactive focus animated highlights (Border light line) */
.cta-input-group::after {
  content: '';
  position: absolute;
  bottom: 0;
  right: 0;
  width: 0;
  height: 2px;
  background-color: var(--accent);
  transition: var(--transition-fast);
}
.cta-input-group:focus-within::after {
  width: 100%;
}

/* --- HOMEPAGE PREMIUM POLISH PASS --- */
#journey,
#services,
#portfolio,
#medical,
#process,
#industries,
.cta-upgraded {
  isolation: isolate;
}

#services,
#portfolio,
#process {
  position: relative;
  overflow: hidden;
}

#services::before,
#portfolio::before,
#process::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: -1;
  background-image:
    linear-gradient(to left, rgba(var(--accent-rgb), 0.035), transparent 38%),
    linear-gradient(to bottom, rgba(255,255,255,0.018) 1px, transparent 1px),
    linear-gradient(to left, rgba(255,255,255,0.014) 1px, transparent 1px);
  background-size: auto, 72px 72px, 72px 72px;
}

.section-header {
  max-width: 850px;
}

.section-header.center {
  margin-right: auto;
  margin-left: auto;
}

.section-title span {
  position: relative;
  display: inline-block;
}

.section-title span::after {
  content: '';
  position: absolute;
  right: 0;
  bottom: -8px;
  width: 72%;
  height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.9s cubic-bezier(0.16, 1, 0.3, 1);
}

.section-header.revealed .section-title span::after {
  transform: scaleX(1);
}

.trust-strip {
  background:
    linear-gradient(to left, rgba(var(--accent-rgb), 0.08), transparent 24%),
    #101010;
  padding: 18px 0;
}

.trust-strip::before {
  content: '';
  position: absolute;
  top: -1px;
  right: 0;
  width: 100%;
  height: 1px;
  background: linear-gradient(to left, transparent, var(--accent), transparent);
  opacity: 0.75;
}

.trust-strip-container {
  flex-wrap: nowrap;
  gap: 14px;
}

.trust-item {
  flex: 1;
  min-height: 54px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  background: rgba(0, 0, 0, 0.22);
  padding: 14px 16px;
  position: relative;
  overflow: hidden;
  animation: trustItemReveal 0.8s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.trust-item:nth-child(2) { animation-delay: 0.08s; }
.trust-item:nth-child(3) { animation-delay: 0.16s; }
.trust-item:nth-child(4) { animation-delay: 0.24s; }

.trust-item::after {
  content: '';
  position: absolute;
  right: 0;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--accent);
  opacity: 0.9;
}

.trust-item span:first-child {
  width: 9px;
  height: 9px;
  background: var(--accent);
  color: transparent !important;
  display: inline-block;
  flex: 0 0 auto;
}

.journey-section {
  border-top: 1px solid rgba(255, 255, 255, 0.04);
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.journey-container::before {
  content: '';
  position: absolute;
  top: 50%;
  right: 8%;
  left: 8%;
  height: 2px;
  background: linear-gradient(to left, var(--accent), rgba(var(--accent-rgb), 0.1));
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 1.2s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: -1;
}

.journey-container.line-drawn::before {
  transform: scaleX(1);
}

.journey-node {
  min-height: 248px;
  background:
    linear-gradient(to bottom, rgba(255,255,255,0.035), transparent),
    #121212;
}

.journey-node::before {
  content: '';
  position: absolute;
  inset: 0;
  border-top: 3px solid transparent;
  pointer-events: none;
  transition: var(--transition-smooth);
}

.journey-node.is-active,
.journey-node:hover {
  border-color: rgba(var(--accent-rgb), 0.75);
  transform: translateY(-6px);
}

.journey-node.is-active::before,
.journey-node:hover::before {
  border-top-color: var(--accent);
}

.journey-node.is-active .journey-node-title,
.journey-node:hover .journey-node-title {
  color: var(--accent);
}

.connector-line-path {
  stroke-dasharray: 8 10;
  animation: connectorPulse 2.8s linear infinite;
}

.command-center-grid {
  min-height: 720px;
  align-items: stretch;
}

.command-center-grid::before {
  content: '';
  position: absolute;
  inset: 12%;
  border: 1px solid rgba(var(--accent-rgb), 0.08);
  pointer-events: none;
  z-index: 0;
}

.service-core-card {
  position: relative;
  overflow: hidden;
}

.service-core-card::after {
  content: '';
  position: absolute;
  inset: 16px;
  border: 1px solid rgba(var(--accent-rgb), 0.18);
  pointer-events: none;
}

.command-center-module {
  min-height: 260px;
}

.command-center-module .card-action,
.medical-card-link,
.btn-visit-site,
.btn-view-details,
.cta-direct-btn {
  white-space: normal;
}

.command-center-module:hover .card-action,
.medical-card-link:hover,
.btn-visit-site:hover,
.btn-view-details:hover,
.cta-direct-btn:hover span {
  transform: translateX(-4px);
}

.philosophy-card {
  min-height: 280px;
}

.philosophy-card.revealed .philosophy-indicator-bar::after {
  animation: performanceScan 1.1s cubic-bezier(0.16, 1, 0.3, 1) both;
  animation-delay: calc(var(--stagger-index, 0) * 0.08s);
}

#portfolio .section-header {
  max-width: 780px;
}

.portfolio-wall-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  align-items: stretch;
}

.portfolio-card-premium {
  min-width: 0;
  background:
    linear-gradient(to bottom, rgba(255,255,255,0.035), transparent 42%),
    var(--bg-secondary);
}

.portfolio-card-premium:nth-child(1),
.portfolio-card-premium:nth-child(7) {
  grid-column: span 2;
}

.portfolio-card-premium::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  right: 0;
  width: 4px;
  background: var(--accent);
  transform: scaleY(0);
  transform-origin: top;
  transition: var(--transition-smooth);
  z-index: 6;
}

.portfolio-card-premium:hover::after {
  transform: scaleY(1);
}

.portfolio-card-content {
  display: flex;
  flex-direction: column;
  min-height: 205px;
}

.portfolio-card-desc {
  flex: 1;
}

.portfolio-card-actions {
  align-items: stretch;
}

.portfolio-filter-container {
  background: rgba(0, 0, 0, 0.18);
  border: 1px solid var(--border-color);
  padding: 14px;
}

.medical-journey {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  margin: 52px auto 0;
  max-width: 920px;
  border: 1px solid var(--border-color);
  background: #0d0d0d;
  position: relative;
  overflow: hidden;
}

.medical-journey::before {
  content: '';
  position: absolute;
  top: 50%;
  right: 10%;
  left: 10%;
  height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 1s cubic-bezier(0.16, 1, 0.3, 1);
  opacity: 0.78;
}

.medical-journey.revealed::before {
  transform: scaleX(1);
}

.medical-journey-step {
  min-height: 126px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 8px;
  padding: 26px 20px;
  position: relative;
  z-index: 1;
  border-left: 1px solid var(--border-color);
}

.medical-journey-step:last-child {
  border-left: 0;
}

.medical-journey-step span {
  font-family: var(--font-english);
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 700;
}

.medical-journey-step strong {
  font-size: 1.25rem;
}

.medical-card-premium {
  min-height: 510px;
  background:
    linear-gradient(to bottom, rgba(255,255,255,0.035), transparent),
    #121212;
}

.medical-card-premium::after {
  content: '';
  position: absolute;
  left: 24px;
  top: 24px;
  width: 34px;
  height: 34px;
  border-left: 1px solid rgba(var(--accent-rgb), 0.45);
  border-top: 1px solid rgba(var(--accent-rgb), 0.45);
  opacity: 0;
  transition: var(--transition-smooth);
}

.medical-card-premium:hover::after {
  opacity: 1;
}

.roadmap-timeline {
  max-width: 1120px;
}

.roadmap-timeline::before {
  background: linear-gradient(to bottom, var(--accent), rgba(var(--accent-rgb), 0.08));
  transform: scaleY(0);
  transform-origin: top;
  transition: transform 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.roadmap-timeline.line-drawn::before {
  transform: scaleY(1);
}

.roadmap-step {
  width: min(860px, 100%);
}

.roadmap-step:nth-child(even) {
  margin-right: auto;
}

.roadmap-step:nth-child(odd) {
  margin-left: auto;
}

.roadmap-step.is-active .roadmap-node,
.roadmap-step:hover .roadmap-node {
  background: var(--accent);
  color: #000000;
}

.roadmap-step.is-active .roadmap-content {
  border-color: rgba(var(--accent-rgb), 0.55);
}

/* industries override: use clean 4-col grid (consolidated above) */
.industries-grid {
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.cta-upgraded {
  padding-top: 110px;
  padding-bottom: 110px;
}

.cta-container-block {
  background:
    linear-gradient(to left, rgba(var(--accent-rgb), 0.08), transparent 34%),
    #111111;
  overflow: hidden;
}

.cta-container-block::before {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  right: 0;
  width: 5px;
  background: var(--accent);
  box-shadow: 0 0 28px rgba(var(--accent-rgb), 0.35);
}

.cta-container-block::after {
  animation: ctaAccentSweep 7s ease-in-out infinite;
}

.cta-panel-actions {
  position: relative;
  z-index: 1;
}

.cta-direct-btn {
  width: 100%;
  justify-content: center;
  min-height: 58px;
  text-align: center;
}

.cta-direct-btn span {
  display: inline-block;
  transition: transform var(--transition-fast);
}

.cta-phone-btn {
  font-family: var(--font-arabic);
}

.cta-phone-btn span {
  font-family: var(--font-english);
  color: var(--accent);
}

@keyframes trustItemReveal {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes connectorPulse {
  to {
    stroke-dashoffset: -36;
  }
}

@keyframes performanceScan {
  from {
    width: 0;
  }
  to {
    width: 64%;
  }
}

@keyframes ctaAccentSweep {
  0%, 100% {
    opacity: 0.35;
    transform: translateX(0);
  }
  50% {
    opacity: 0.85;
    transform: translateX(-18px);
  }
}

@media (max-width: 1200px) {
  .portfolio-wall-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .portfolio-card-premium:nth-child(1),
  .portfolio-card-premium:nth-child(7) {
    grid-column: span 1;
  }

  .industries-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 991px) {
  .section-padding {
    padding-top: 82px;
    padding-bottom: 82px;
  }

  .trust-strip-container {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: 100%;
    padding-right: 0;
    padding-left: 0;
  }

  .trust-item {
    width: 100%;
  }

  .journey-container::before {
    top: 0;
    bottom: 0;
    right: 18px;
    left: auto;
    width: 2px;
    height: auto;
    transform: scaleY(0);
    transform-origin: top;
  }

  .journey-container.line-drawn::before {
    transform: scaleY(1);
  }

  .journey-node {
    min-height: 0;
    padding-right: 36px;
  }

  .journey-node::after {
    right: 17px;
    left: auto;
    background-color: var(--accent);
  }

  .command-center-grid {
    min-height: 0;
    gap: 18px;
  }

  .command-center-grid::before {
    inset: 70px 22px 24px auto;
    width: 2px;
    border: 0;
    background: rgba(var(--accent-rgb), 0.35);
  }

  .command-center-module,
  .service-core-card {
    min-height: 0;
    padding: 28px 24px;
  }

  .medical-journey {
    grid-template-columns: 1fr;
    max-width: 520px;
  }

  .medical-journey::before {
    top: 22px;
    bottom: 22px;
    right: 22px;
    left: auto;
    width: 2px;
    height: auto;
    transform: scaleY(0);
    transform-origin: top;
  }

  .medical-journey.revealed::before {
    transform: scaleY(1);
  }

  .medical-journey-step {
    min-height: 92px;
    padding-right: 54px;
    border-left: 0;
    border-bottom: 1px solid var(--border-color);
  }

  .medical-journey-step:last-child {
    border-bottom: 0;
  }

  .medical-card-premium {
    min-height: 0;
  }

  .roadmap-step,
  .roadmap-step:nth-child(even),
  .roadmap-step:nth-child(odd) {
    width: 100%;
    margin-right: 0;
    margin-left: 0;
  }

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

@media (max-width: 768px) {
  .portfolio-wall-grid {
    grid-template-columns: 1fr;
    gap: 22px;
  }

  .portfolio-card-actions {
    flex-direction: column;
  }

  .btn-visit-site,
  .btn-view-details {
    flex: unset;
    width: 100%;
    min-height: 46px;
  }

  .cta-container-block {
    padding: 48px 26px;
  }

  .cta-header-title {
    font-size: 2.1rem;
  }

  .cta-header-title br {
    display: none;
  }
}

@media (max-width: 480px) {
  .section-padding {
    padding-top: 68px;
    padding-bottom: 68px;
  }

  .trust-strip-container,
  .industries-grid {
    grid-template-columns: 1fr;
  }

  .industry-tile {
    padding: 22px 20px;
  }

  .trust-item {
    min-height: 48px;
  }

  .portfolio-filter-container {
    margin-bottom: 30px;
  }

  .portfolio-card-content,
  .medical-card-premium,
  .roadmap-content,
  .industry-tile {
    padding: 24px 20px;
  }

  .portfolio-card-content {
    min-height: 0;
  }

  .roadmap-step {
    grid-template-columns: 44px 1fr;
    gap: 14px;
  }

  .roadmap-timeline::before {
    right: 21px;
  }

  .roadmap-node {
    width: 44px;
    height: 44px;
    font-size: 1rem;
  }

  .roadmap-step:hover .roadmap-content {
    transform: none;
  }

  .industry-tile {
    min-height: auto;
  }

  .cta-upgraded {
    padding-top: 76px;
    padding-bottom: 76px;
  }

  .cta-container-block {
    padding: 42px 20px;
  }

  .cta-header-title {
    font-size: 1.75rem;
  }

  .cta-header-desc {
    font-size: 1rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}

/* --- FINAL HOMEPAGE WOW SAFETY OVERRIDES --- */
.homepage-showreel::before,
.homepage-showreel.section-in-view::before {
  content: 'ZED';
  position: absolute;
  left: 4vw;
  top: 50%;
  right: auto;
  bottom: auto;
  width: auto;
  height: auto;
  transform: translateY(-50%);
  font-family: var(--font-english);
  font-size: clamp(7rem, 20vw, 19rem);
  line-height: 1;
  color: rgba(255,255,255,0.025);
  font-weight: 700;
  opacity: 1;
  background: none;
  pointer-events: none;
}

.hero-live-card.is-live,
.hero-live-card.is-active,
.showreel-step.is-live,
.showreel-step.is-active {
  will-change: transform;
}

@media (max-width: 640px) {
  .homepage-showreel::before,
  .homepage-showreel.section-in-view::before {
    display: none;
  }
}

/* --- EXTRA HOMEPAGE DELIGHT ADDITIONS --- */
.hero-scroll-cue {
  position: absolute;
  right: 50%;
  bottom: 28px;
  z-index: 8;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  transform: translateX(50%);
  color: rgba(255,255,255,0.72);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0;
}

.hero-scroll-cue i {
  position: relative;
  width: 22px;
  height: 36px;
  border: 1px solid rgba(var(--accent-rgb), 0.5);
  border-radius: 999px;
  box-shadow: inset 0 0 18px rgba(var(--accent-rgb), 0.08), 0 0 18px rgba(var(--accent-rgb), 0.08);
}

.hero-scroll-cue i::before {
  content: '';
  position: absolute;
  top: 7px;
  right: 50%;
  width: 4px;
  height: 8px;
  border-radius: 999px;
  background: var(--accent);
  transform: translateX(50%);
  animation: scrollCueDrop 1.55s ease-in-out infinite;
}

.impact-cockpit-section {
  overflow: hidden;
  background:
    radial-gradient(circle at 12% 40%, rgba(var(--accent-rgb), 0.09), transparent 32%),
    linear-gradient(180deg, #090909, #111);
}

.impact-cockpit-shell {
  position: relative;
  min-height: 560px;
  padding: 46px;
  border: 1px solid rgba(255,255,255,0.08);
  background:
    linear-gradient(135deg, rgba(255,255,255,0.05), transparent 42%),
    rgba(13,13,13,0.88);
  box-shadow: 0 32px 100px rgba(0,0,0,0.42);
  overflow: hidden;
}

.impact-cockpit-shell::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(to right, rgba(255,255,255,0.028) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255,255,255,0.02) 1px, transparent 1px);
  background-size: 46px 46px;
  mask-image: radial-gradient(circle at 72% 50%, #000, transparent 68%);
}

.impact-cockpit-header {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 42px;
  align-items: end;
  margin-bottom: 42px;
}

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

.impact-cockpit-grid {
  position: relative;
  z-index: 3;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  max-width: 880px;
}

.impact-card {
  position: relative;
  min-height: 230px;
  padding: 26px 22px;
  border: 1px solid rgba(255,255,255,0.08);
  background:
    linear-gradient(to bottom, rgba(255,255,255,0.045), transparent),
    #101010;
  overflow: hidden;
  transition: transform 0.55s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.35s ease, box-shadow 0.35s ease, background 0.35s ease;
}

.impact-card::before {
  content: '';
  position: absolute;
  right: 0;
  top: 0;
  width: 3px;
  height: 100%;
  background: var(--accent);
  transform: scaleY(0);
  transform-origin: top;
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.impact-card::after {
  content: '';
  position: absolute;
  inset: auto 18px 18px 18px;
  height: 1px;
  background: linear-gradient(to left, var(--accent), transparent);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.impact-card span {
  font-family: var(--font-english);
  color: var(--accent);
  font-weight: 800;
  letter-spacing: 1px;
}

.impact-card strong {
  display: block;
  margin-top: 16px;
  color: #fff;
  font-size: 1.25rem;
  line-height: 1.45;
}

.impact-card p {
  margin-top: 12px;
  color: var(--text-secondary);
  font-size: 0.94rem;
  line-height: 1.75;
}

.impact-card.is-active,
.impact-card:hover {
  transform: translateY(-10px);
  border-color: rgba(var(--accent-rgb), 0.42);
  background:
    radial-gradient(circle at 80% 10%, rgba(var(--accent-rgb), 0.16), transparent 42%),
    #151515;
  box-shadow: 0 22px 64px rgba(0,0,0,0.4), 0 0 28px rgba(var(--accent-rgb), 0.1);
}

.impact-card.is-active::before,
.impact-card:hover::before,
.impact-card.is-active::after,
.impact-card:hover::after {
  transform: scale(1);
}

.impact-radar {
  position: absolute;
  left: 52px;
  bottom: 42px;
  width: 265px;
  height: 265px;
  border: 1px solid rgba(var(--accent-rgb), 0.24);
  border-radius: 50%;
  background:
    repeating-radial-gradient(circle, rgba(255,255,255,0.05) 0 1px, transparent 1px 48px),
    radial-gradient(circle, rgba(var(--accent-rgb), 0.12), transparent 64%);
  opacity: 0.9;
}

.impact-radar::before {
  content: '';
  position: absolute;
  inset: 50% 50% auto auto;
  width: 50%;
  height: 1px;
  background: linear-gradient(to left, var(--accent), transparent);
  transform-origin: right center;
  animation: radarSweep 3.8s linear infinite;
}

.impact-radar-core {
  position: absolute;
  top: 50%;
  right: 50%;
  width: 70px;
  height: 70px;
  display: flex;
  align-items: center;
  justify-content: center;
  transform: translate(50%, -50%);
  border: 1px solid rgba(var(--accent-rgb), 0.55);
  border-radius: 50%;
  background: #0d0d0d;
  color: var(--accent);
  font-family: var(--font-english);
  font-weight: 800;
  box-shadow: 0 0 30px rgba(var(--accent-rgb), 0.16);
}

.radar-dot {
  position: absolute;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 18px rgba(var(--accent-rgb), 0.6);
  animation: radarDotPulse 1.8s ease-in-out infinite;
}

.dot-a { top: 28%; right: 22%; }
.dot-b { bottom: 25%; right: 35%; animation-delay: -0.55s; }
.dot-c { top: 45%; left: 20%; animation-delay: -1.1s; }

/* (floating contact animations are now consolidated above) */

@keyframes scrollCueDrop {
  0% {
    opacity: 0;
    transform: translate(50%, 0);
  }
  40% {
    opacity: 1;
  }
  100% {
    opacity: 0;
    transform: translate(50%, 13px);
  }
}

@keyframes radarSweep {
  to {
    transform: rotate(360deg);
  }
}

@keyframes radarDotPulse {
  0%, 100% {
    transform: scale(0.86);
    opacity: 0.58;
  }
  50% {
    transform: scale(1.25);
    opacity: 1;
  }
}

@media (max-width: 1100px) {
  .impact-cockpit-header {
    grid-template-columns: 1fr;
  }

  .impact-cockpit-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    max-width: none;
  }

  .impact-radar {
    position: relative;
    left: auto;
    bottom: auto;
    margin: 34px auto 0;
  }
}

@media (max-width: 768px) {
  .hero-scroll-cue {
    display: none;
  }

  .impact-cockpit-shell {
    padding: 26px;
    min-height: 0;
  }

  .impact-cockpit-grid {
    grid-template-columns: 1fr;
  }

  .impact-card,
  .impact-card.is-active {
    min-height: 0;
    transform: none;
  }

  .impact-radar {
    width: 220px;
    height: 220px;
  }

  .fixed-floating-contact {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-scroll-cue i::before,
  .impact-radar::before,
  .radar-dot {
    animation: none !important;
  }

  .fixed-floating-contact {
    opacity: 1;
    transform: none;
  }
}

/* --- FINAL HOMEPAGE WOW LAYER: CINEMATIC ORDER + TEXT-SAFE MOTION --- */
.hero {
  isolation: isolate;
  background:
    radial-gradient(circle at 78% 22%, rgba(var(--accent-rgb), 0.12), transparent 28%),
    radial-gradient(circle at 18% 72%, rgba(255,255,255,0.045), transparent 32%),
    linear-gradient(135deg, #0a0a0a 0%, #101010 46%, #070707 100%);
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    linear-gradient(115deg, transparent 0 42%, rgba(var(--accent-rgb), 0.075) 43%, transparent 44% 100%),
    radial-gradient(circle at 50% 50%, transparent 0 46%, rgba(255,255,255,0.04) 47%, transparent 50%);
  background-size: 120% 120%, 520px 520px;
  animation: heroCinematicSweep 9s ease-in-out infinite alternate;
}

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

.hero-title {
  letter-spacing: 0;
  text-wrap: balance;
}

.hero-title span {
  position: relative;
  display: inline-block;
  text-shadow: 0 0 30px rgba(var(--accent-rgb), 0.16);
}

.hero-title span::after {
  content: '';
  position: absolute;
  right: 0;
  bottom: 0.04em;
  width: 100%;
  height: 0.14em;
  z-index: -1;
  background: rgba(var(--accent-rgb), 0.22);
  transform: scaleX(0.18);
  transform-origin: right;
  animation: titleUnderlineBreath 2.8s ease-in-out infinite;
}

.hero-live-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  max-width: 650px;
  margin: -26px 0 34px;
  direction: ltr;
}

.hero-live-card {
  position: relative;
  overflow: hidden;
  min-height: 104px;
  padding: 18px 18px 16px;
  border: 1px solid rgba(255,255,255,0.08);
  background:
    linear-gradient(to bottom, rgba(255,255,255,0.045), transparent),
    rgba(18,18,18,0.84);
  text-align: left;
  transform: translateY(0);
  transition: transform 0.45s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.35s ease, background 0.35s ease;
}

.hero-live-card::before {
  content: '';
  position: absolute;
  top: 16px;
  right: 16px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 0 rgba(var(--accent-rgb), 0.35);
  animation: liveDotPulse 1.6s ease-in-out infinite;
}

.hero-live-card::after {
  content: '';
  position: absolute;
  right: 0;
  bottom: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(to right, transparent, var(--accent), transparent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.55s cubic-bezier(0.16, 1, 0.3, 1);
}

.hero-live-card.is-live,
.hero-live-card.is-active,
.hero-live-card:hover {
  border-color: rgba(var(--accent-rgb), 0.38);
  background:
    linear-gradient(135deg, rgba(var(--accent-rgb), 0.12), transparent 42%),
    rgba(18,18,18,0.94);
  transform: translateY(-5px);
}

.hero-live-card.is-live::after,
.hero-live-card.is-active::after,
.hero-live-card:hover::after {
  transform: scaleX(1);
}

.live-card-kicker {
  display: block;
  margin-bottom: 8px;
  font-family: var(--font-english);
  font-size: 0.68rem;
  letter-spacing: 1.4px;
  color: var(--accent);
  font-weight: 700;
}

.hero-live-card strong {
  display: block;
  color: #fff;
  font-family: var(--font-english);
  font-size: 1.28rem;
  line-height: 1.1;
}

.hero-live-card small {
  display: block;
  margin-top: 7px;
  color: var(--text-muted);
  font-size: 0.78rem;
  line-height: 1.45;
}

.hero-panel-node {
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.hero-panel-node::after {
  content: '';
  position: absolute;
  inset: -1px;
  pointer-events: none;
  border: 1px solid transparent;
  background: linear-gradient(135deg, rgba(var(--accent-rgb), 0.24), transparent 34%, rgba(255,255,255,0.08)) border-box;
  -webkit-mask: linear-gradient(#000 0 0) padding-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity 0.35s ease;
}

.hero-panel-node:hover::after,
.hero-panel-node.is-current-stage::after {
  opacity: 1;
}

.homepage-showreel {
  overflow: hidden;
  background:
    linear-gradient(to left, rgba(var(--accent-rgb), 0.09), transparent 38%),
    linear-gradient(180deg, #101010, #080808);
}

.homepage-showreel::before {
  content: 'ZED';
  position: absolute;
  left: 4vw;
  top: 50%;
  transform: translateY(-50%);
  font-family: var(--font-english);
  font-size: clamp(7rem, 20vw, 19rem);
  line-height: 1;
  color: rgba(255,255,255,0.025);
  font-weight: 700;
  pointer-events: none;
}

.showreel-shell {
  --showreel-progress: 0%;
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 0.82fr 1.18fr;
  gap: 50px;
  align-items: center;
  min-height: 520px;
  padding: 42px;
  border: 1px solid rgba(255,255,255,0.08);
  background:
    linear-gradient(135deg, rgba(255,255,255,0.055), transparent 40%),
    rgba(15,15,15,0.76);
  box-shadow: 0 34px 100px rgba(0,0,0,0.42);
}

.showreel-shell::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: var(--showreel-progress);
  max-width: 100%;
  height: 3px;
  background: linear-gradient(to left, var(--accent), rgba(var(--accent-rgb), 0.08));
  box-shadow: 0 0 26px rgba(var(--accent-rgb), 0.28);
  transition: width 0.18s linear;
}

.showreel-copy {
  position: relative;
  z-index: 2;
}

.showreel-stage {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  min-height: 320px;
  align-items: center;
}

.showreel-stage::before {
  content: '';
  position: absolute;
  top: 50%;
  right: 8%;
  left: 8%;
  height: 2px;
  background: rgba(255,255,255,0.08);
  transform: translateY(-50%);
}

.showreel-stage::after {
  content: '';
  position: absolute;
  top: 50%;
  right: 8%;
  width: var(--showreel-progress);
  max-width: 84%;
  height: 2px;
  background: var(--accent);
  box-shadow: 0 0 22px rgba(var(--accent-rgb), 0.44);
  transform: translateY(-50%);
}

.showreel-orbit {
  position: absolute;
  inset: 20px 10%;
  border: 1px solid rgba(var(--accent-rgb), 0.12);
  pointer-events: none;
}

.showreel-orbit span {
  position: absolute;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 18px rgba(var(--accent-rgb), 0.62);
  animation: showreelParticle 4.4s linear infinite;
}

.showreel-orbit span:nth-child(1) { top: -4px; right: 12%; }
.showreel-orbit span:nth-child(2) { bottom: -4px; right: 48%; animation-delay: -1.4s; }
.showreel-orbit span:nth-child(3) { top: 50%; left: -4px; animation-delay: -2.6s; }

.showreel-step {
  position: relative;
  z-index: 2;
  min-height: 210px;
  padding: 26px 22px;
  border: 1px solid rgba(255,255,255,0.08);
  background:
    linear-gradient(to bottom, rgba(255,255,255,0.045), transparent),
    #101010;
  display: flex;
  flex-direction: column;
  justify-content: center;
  transition: transform 0.55s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.35s ease, box-shadow 0.35s ease, background 0.35s ease;
}

.showreel-step:nth-child(3) {
  transform: translateY(-36px);
}

.showreel-step:nth-child(4) {
  transform: translateY(36px);
}

.showreel-step span {
  font-family: var(--font-english);
  color: var(--accent);
  font-weight: 800;
  letter-spacing: 1px;
}

.showreel-step strong {
  margin-top: 10px;
  color: #fff;
  font-family: var(--font-english);
  font-size: 1.55rem;
}

.showreel-step p {
  margin-top: 10px;
  color: var(--text-secondary);
  line-height: 1.75;
}

.showreel-step.is-live,
.showreel-step.is-active,
.showreel-step:hover {
  border-color: rgba(var(--accent-rgb), 0.45);
  background:
    radial-gradient(circle at 70% 24%, rgba(var(--accent-rgb), 0.16), transparent 42%),
    #141414;
  box-shadow: 0 24px 70px rgba(0,0,0,0.38), 0 0 28px rgba(var(--accent-rgb), 0.1);
}

.showreel-step.is-live {
  transform: translateY(-10px) scale(1.025);
}

.homepage-stage-rail {
  position: fixed;
  top: 50%;
  left: 18px;
  z-index: 950;
  display: flex;
  flex-direction: column;
  gap: 9px;
  transform: translateY(-50%);
  pointer-events: auto;
}

.homepage-stage-rail a {
  width: 8px;
  height: 32px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(12,12,12,0.72);
  color: transparent;
  font-family: var(--font-english);
  font-size: 0.64rem;
  letter-spacing: 1px;
  white-space: nowrap;
  transition: width 0.35s cubic-bezier(0.16, 1, 0.3, 1), color 0.2s ease, padding 0.35s ease, background 0.35s ease, border-color 0.35s ease;
}

.homepage-stage-rail a:hover,
.homepage-stage-rail a.is-active {
  width: 78px;
  padding: 8px 10px;
  color: #000;
  background: var(--accent);
  border-color: var(--accent);
}

.section-padding,
.trust-strip,
.hero {
  transition: filter 0.45s ease, opacity 0.45s ease, transform 0.45s ease;
}

.section-padding.is-current-stage,
.hero.is-current-stage {
  filter: saturate(1.12);
}

#services,
#portfolio,
#medical,
#process,
#industries {
  position: relative;
}

#services::after,
#portfolio::after,
#medical::after,
#process::after,
#industries::after {
  content: '';
  position: absolute;
  top: 24px;
  bottom: 24px;
  right: 18px;
  width: 1px;
  background: linear-gradient(to bottom, transparent, rgba(var(--accent-rgb), 0.32), transparent);
  opacity: 0;
  transform: scaleY(0.3);
  transition: opacity 0.55s ease, transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
  pointer-events: none;
}

#services.section-in-view::after,
#portfolio.section-in-view::after,
#medical.section-in-view::after,
#process.section-in-view::after,
#industries.section-in-view::after {
  opacity: 1;
  transform: scaleY(1);
}

.journey-container.line-drawn .journey-node,
.growth-os-grid.line-drawn .growth-os-card,
.portfolio-card-premium.revealed,
.medical-card-premium.revealed {
  animation: cardCinematicEntrance 0.85s cubic-bezier(0.16, 1, 0.3, 1) both;
  animation-delay: calc(var(--stagger-index, 0) * 0.08s);
}

.portfolio-wall-grid {
  align-items: stretch;
}

.portfolio-card-premium {
  transform-origin: center;
}

.portfolio-card-premium:nth-child(3n + 1) {
  margin-top: 18px;
}

.portfolio-card-premium:nth-child(3n + 2) {
  margin-top: -10px;
}

.portfolio-card-premium.is-spotlight {
  transform: translateY(-8px) scale(1.012);
}

.portfolio-card-media::before {
  content: '';
  position: absolute;
  inset: 12px;
  border: 1px solid rgba(var(--accent-rgb), 0.24);
  z-index: 3;
  pointer-events: none;
  opacity: 0;
  transform: scale(1.06);
  transition: opacity 0.4s ease, transform 0.55s cubic-bezier(0.16, 1, 0.3, 1);
}

.portfolio-card-premium.is-spotlight .portfolio-card-media::before,
.portfolio-card-premium:hover .portfolio-card-media::before {
  opacity: 1;
  transform: scale(1);
}

.command-center-grid {
  perspective: 1000px;
}

.command-center-module.is-spotlight {
  transform: translateY(-8px) rotateX(1.5deg);
}

.service-core-card {
  position: relative;
  overflow: hidden;
}

.service-core-card::after {
  content: '';
  position: absolute;
  inset: -35%;
  background: conic-gradient(from 90deg, transparent, rgba(var(--accent-rgb), 0.14), transparent 32%);
  animation: coreHaloSpin 5.8s linear infinite;
  pointer-events: none;
  opacity: 0.55;
}

.service-core-card > * {
  position: relative;
  z-index: 1;
}

.before-after-grid {
  position: relative;
}

.before-after-grid::before {
  content: '';
  position: absolute;
  top: 18px;
  bottom: 18px;
  right: 50%;
  width: 2px;
  background: linear-gradient(to bottom, transparent, var(--accent), transparent);
  box-shadow: 0 0 20px rgba(var(--accent-rgb), 0.3);
  transform: scaleY(0);
  transform-origin: top;
  transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.before-after-grid.revealed::before {
  transform: scaleY(1);
}

@keyframes heroCinematicSweep {
  0% {
    opacity: 0.55;
    transform: translate3d(-1.5%, -1%, 0) scale(1);
  }
  100% {
    opacity: 0.95;
    transform: translate3d(1.5%, 1%, 0) scale(1.025);
  }
}

@keyframes titleUnderlineBreath {
  0%, 100% {
    transform: scaleX(0.22);
    opacity: 0.6;
  }
  50% {
    transform: scaleX(1);
    opacity: 1;
  }
}

@keyframes liveDotPulse {
  0%, 100% {
    box-shadow: 0 0 0 0 rgba(var(--accent-rgb), 0.34);
  }
  60% {
    box-shadow: 0 0 0 10px rgba(var(--accent-rgb), 0);
  }
}

@keyframes showreelParticle {
  0% { transform: translate3d(0, 0, 0) scale(0.9); opacity: 0.45; }
  35% { transform: translate3d(-34px, 18px, 0) scale(1.15); opacity: 1; }
  70% { transform: translate3d(24px, -20px, 0) scale(0.95); opacity: 0.72; }
  100% { transform: translate3d(0, 0, 0) scale(0.9); opacity: 0.45; }
}

@keyframes cardCinematicEntrance {
  from {
    opacity: 0;
    transform: translateY(26px) scale(0.97);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes coreHaloSpin {
  to {
    transform: rotate(360deg);
  }
}

@media (max-width: 1100px) {
  .hero-live-strip,
  .showreel-shell {
    grid-template-columns: 1fr;
  }

  .showreel-stage {
    min-height: 280px;
  }
}

@media (max-width: 991px) {
  .homepage-stage-rail {
    display: none;
  }

  .hero-live-strip {
    margin-top: -18px;
  }

  .showreel-shell {
    padding: 30px;
    min-height: 0;
  }

  .showreel-stage {
    grid-template-columns: 1fr;
    min-height: 0;
  }

  .showreel-stage::before,
  .showreel-stage::after,
  .showreel-orbit {
    display: none;
  }

  .showreel-step,
  .showreel-step:nth-child(3),
  .showreel-step:nth-child(4),
  .showreel-step.is-live {
    min-height: 0;
    transform: none;
  }

  .portfolio-card-premium:nth-child(n) {
    margin-top: 0;
  }
}

@media (max-width: 640px) {
  .hero-live-strip {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .hero-live-card {
    min-height: 88px;
  }

  .homepage-showreel::before {
    display: none;
  }

  .showreel-shell {
    padding: 24px;
  }

  #services::after,
  #portfolio::after,
  #medical::after,
  #process::after,
  #industries::after,
  .before-after-grid::before {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero::before,
  .hero-title span::after,
  .hero-live-card::before,
  .showreel-orbit span,
  .service-core-card::after,
  .journey-container.line-drawn .journey-node,
  .growth-os-grid.line-drawn .growth-os-card,
  .portfolio-card-premium.revealed,
  .medical-card-premium.revealed {
    animation: none !important;
  }
}

/* --- SITE-WIDE DISTINCTIVE MOTION PASS --- */
.site-scroll-progress {
  position: fixed;
  top: 0;
  right: 0;
  width: var(--site-scroll-progress, 0%);
  height: 3px;
  background: linear-gradient(to left, var(--accent), #fff3a3);
  z-index: 10025;
  pointer-events: none;
  box-shadow: 0 0 22px rgba(var(--accent-rgb), 0.45);
  transform-origin: right;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background:
    linear-gradient(115deg, transparent 0 40%, rgba(var(--accent-rgb), 0.025) 40% 41%, transparent 41% 100%),
    linear-gradient(to bottom, transparent, rgba(255,255,255,0.012), transparent);
  opacity: 0.9;
}

header,
main,
footer {
  position: relative;
}

main,
footer {
  z-index: 1;
}

.section-padding {
  overflow: hidden;
}

.section-padding::before {
  content: '';
  position: absolute;
  top: 0;
  right: 30px;
  width: 64px;
  height: 1px;
  background: var(--accent);
  opacity: 0;
  transform: translateX(24px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1), width 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.section-padding.section-in-view::before {
  width: 180px;
  opacity: 0.75;
  transform: translateX(0);
}

.hero {
  overflow: hidden;
}

.hero::after {
  content: '';
  position: absolute;
  inset: auto 0 0 0;
  height: 120px;
  pointer-events: none;
  background:
    linear-gradient(to top, rgba(15,15,15,0.96), transparent),
    repeating-linear-gradient(90deg, transparent 0 34px, rgba(var(--accent-rgb), 0.05) 34px 35px);
  opacity: 0.7;
  z-index: 1;
}

.hero > .container,
.hero-layout {
  position: relative;
  z-index: 2;
}

.hero-title span,
.section-title span {
  text-shadow: 0 0 30px rgba(var(--accent-rgb), 0.12);
}

.badge-tag {
  position: relative;
  overflow: hidden;
}

.badge-tag::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  width: 34px;
  right: -44px;
  background: linear-gradient(to left, transparent, rgba(255,255,255,0.28), transparent);
  transform: skewX(-18deg);
}

.section-in-view .badge-tag::after,
.reveal-on-scroll.revealed .badge-tag::after {
  animation: badgeSweep 1.2s ease both;
}

.btn,
.card-action,
.medical-card-link,
.footer-social-btn {
  will-change: transform;
}

.btn:hover,
.card-action:hover,
.footer-social-btn:hover {
  transform: translateY(-2px);
}

.btn::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  border: 1px solid rgba(255,255,255,0);
  transform: scale(1.04);
  opacity: 0;
  transition: var(--transition-fast);
}

.btn:hover::after {
  transform: scale(1);
  opacity: 1;
  border-color: rgba(var(--accent-rgb), 0.35);
}

.card,
.portfolio-card-premium,
.project-card,
.case-card,
.deliverable-item,
.industry-tile,
.medical-card-premium,
.philosophy-card,
.command-center-module,
.roadmap-content {
  position: relative;
  overflow: hidden;
  transform-style: preserve-3d;
}

.card::after,
.project-card::after,
.case-card::after,
.deliverable-item::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(360px circle at var(--mx, 80%) var(--my, 20%), rgba(var(--accent-rgb), 0.13), transparent 42%),
    linear-gradient(to bottom, rgba(255,255,255,0.035), transparent 44%);
  opacity: 0;
  transition: opacity 0.35s ease;
}

.card:hover::after,
.project-card:hover::after,
.case-card:hover::after,
.deliverable-item:hover::after {
  opacity: 1;
}

.card:hover,
.project-card:hover,
.case-card:hover,
.deliverable-item:hover {
  transform: translateY(-8px);
  border-color: rgba(var(--accent-rgb), 0.55) !important;
  box-shadow: 0 22px 55px rgba(0, 0, 0, 0.52), 0 0 24px rgba(var(--accent-rgb), 0.08);
}

.card-title,
.project-card-title,
.case-card-title {
  transition: color var(--transition-fast), transform var(--transition-fast);
}

.card:hover .card-title,
.project-card:hover .project-card-title,
.case-card:hover .case-card-title {
  color: var(--accent);
  transform: translateX(-4px);
}

.card-grid,
.portfolio-wall-grid,
.medical-cards-grid,
.industries-grid,
.philosophy-grid,
.deliverables-grid {
  perspective: 1200px;
}

.stagger-container > *.revealed {
  animation: premiumRise 0.9s cubic-bezier(0.16, 1, 0.3, 1) both;
  animation-delay: calc(var(--stagger-index, 0) * 0.07s);
}

.portfolio-card-premium,
.project-card {
  backface-visibility: hidden;
}

.portfolio-card-premium:hover,
.project-card:hover {
  transform: translateY(-10px) rotateX(1deg);
}

.portfolio-card-media::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(120deg, transparent 0 34%, rgba(255,255,255,0.13) 45%, transparent 58% 100%);
  transform: translateX(120%);
  transition: transform 0.85s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 5;
}

.portfolio-card-premium:hover .portfolio-card-media::after,
.project-card:hover .portfolio-card-media::after {
  transform: translateX(-120%);
}

.cta-box,
.cta-container-block,
#contact-form-section .card {
  position: relative;
  overflow: hidden;
}

.cta-box::before,
#contact-form-section .card::before {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  right: 0;
  width: 5px;
  background: var(--accent);
  box-shadow: 0 0 25px rgba(var(--accent-rgb), 0.32);
}

.cta-box::after,
#contact-form-section .card::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(110deg, transparent, rgba(var(--accent-rgb), 0.07), transparent);
  transform: translateX(70%);
  animation: ctaAccentSweep 8s ease-in-out infinite;
}

.cta-form,
.cta-actions {
  position: relative;
  z-index: 1;
}

.cta-input {
  transform: translateZ(0);
}

.cta-input:focus {
  transform: translateY(-1px);
}

footer::after {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 120px;
  height: 120px;
  pointer-events: none;
  background:
    linear-gradient(to left, rgba(var(--accent-rgb), 0.12), transparent),
    linear-gradient(to bottom, rgba(var(--accent-rgb), 0.1), transparent);
  opacity: 0.28;
}

@keyframes badgeSweep {
  from {
    right: -44px;
  }
  to {
    right: 110%;
  }
}

@keyframes premiumRise {
  from {
    opacity: 0;
    transform: translateY(26px) scale(0.985);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@media (max-width: 991px) {
  body::before {
    opacity: 0.55;
  }

  .section-padding::before {
    right: 20px;
  }

  .section-padding.section-in-view::before {
    width: 96px;
  }

  .card:hover,
  .project-card:hover,
  .case-card:hover,
  .deliverable-item:hover,
  .portfolio-card-premium:hover,
  .project-card:hover {
    transform: translateY(-4px);
  }
}

@media (max-width: 768px) {
  .container,
  .hero .container {
    padding-right: 22px;
    padding-left: 22px;
  }

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

  .card,
  .cta-box,
  #contact-form-section .card {
    padding: 28px 22px !important;
  }

  [style*="grid-template-columns: 1fr 1fr"],
  [style*="grid-template-columns: repeat(3, 1fr)"],
  [style*="grid-template-columns: 1.15fr 0.85fr"],
  [style*="grid-template-columns: 1.2fr 0.8fr"],
  [style*="grid-template-columns: 0.85fr 1.15fr"],
  [style*="grid-template-columns: repeat(4, 1fr)"] {
    grid-template-columns: 1fr !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  .site-scroll-progress,
  body::before,
  .badge-tag::after,
  .portfolio-card-media::after,
  .cta-box::after,
  #contact-form-section .card::after {
    animation: none !important;
    transition: none !important;
  }
}

/* --- INNER PAGES: PREMIUM PAGE SYSTEM --- */
.hero-visual-bg-shape:not(:has(.hero-machine-svg)) {
  border: 1px solid rgba(var(--accent-rgb), 0.12);
  background:
    linear-gradient(135deg, rgba(var(--accent-rgb), 0.055), transparent 36%),
    linear-gradient(to bottom, rgba(255,255,255,0.035), transparent),
    rgba(12, 12, 12, 0.92);
}

.hero-panel-node {
  transition: transform 0.7s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.35s ease, box-shadow 0.35s ease;
}

.hero-panel-node:hover {
  border-color: rgba(var(--accent-rgb), 0.55);
  box-shadow: 0 22px 60px rgba(0,0,0,0.42), 0 0 26px rgba(var(--accent-rgb), 0.12);
}

.problem-box {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(to left, rgba(var(--accent-rgb), 0.08), transparent 32%),
    var(--bg-secondary);
}

.problem-box::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 5px;
  height: 100%;
  background: var(--accent);
  box-shadow: 0 0 26px rgba(var(--accent-rgb), 0.35);
}

.problem-box::after {
  content: '';
  position: absolute;
  left: 30px;
  top: 30px;
  width: 58px;
  height: 58px;
  border-left: 1px solid rgba(var(--accent-rgb), 0.45);
  border-top: 1px solid rgba(var(--accent-rgb), 0.45);
  opacity: 0.75;
}

.problem-box h3,
.problem-box p {
  position: relative;
  z-index: 1;
}

.deliverable-item {
  min-height: 150px;
  background:
    linear-gradient(to bottom, rgba(255,255,255,0.028), transparent),
    var(--bg-secondary);
}

.deliverable-icon {
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  border: 1px solid rgba(var(--accent-rgb), 0.34);
  background: rgba(var(--accent-rgb), 0.055);
}

.deliverable-item:hover .deliverable-icon {
  background: var(--accent);
  color: #000;
}

.roadmap-timeline .roadmap-step.revealed .roadmap-node,
.roadmap-timeline .roadmap-step:hover .roadmap-node {
  animation: nodePulse 1.4s ease both;
}

.pyramid-container,
.roadmap-timeline,
.deliverables-grid {
  position: relative;
}

.pyramid-level {
  background:
    linear-gradient(to left, rgba(var(--accent-rgb), 0.045), transparent 36%),
    var(--bg-secondary);
}

.pyramid-level:hover {
  transform: translateY(-4px) scale(1.015);
  box-shadow: 0 16px 45px rgba(0,0,0,0.42);
}

.footer-link-item a,
.nav-link {
  transition: color var(--transition-fast), transform var(--transition-fast);
}

.footer-link-item a:hover,
.nav-link:hover {
  transform: translateX(-4px);
}

[style*="border-right: 4px solid var(--accent)"],
[style*="border-right: 3px solid var(--accent)"],
[style*="border-left: 4px solid var(--accent)"] {
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.015);
}

[style*="grid-template-columns: 1.2fr 0.8fr"] > div:last-child,
[style*="grid-template-columns: 1.15fr 0.85fr"] > div:last-child,
[style*="grid-template-columns: 0.85fr 1.15fr"] > div:first-child {
  position: relative;
}

[style*="grid-template-columns: 1.2fr 0.8fr"] > div:last-child::before,
[style*="grid-template-columns: 1.15fr 0.85fr"] > div:last-child::before,
[style*="grid-template-columns: 0.85fr 1.15fr"] > div:first-child::before {
  content: '';
  position: absolute;
  top: -18px;
  right: -18px;
  width: 58px;
  height: 58px;
  border-top: 1px solid rgba(var(--accent-rgb), 0.45);
  border-right: 1px solid rgba(var(--accent-rgb), 0.45);
  pointer-events: none;
  opacity: 0.7;
}

#contact-form-section form {
  position: relative;
  z-index: 1;
}

#contact-form-section .card {
  box-shadow: 0 28px 80px rgba(0,0,0,0.34);
}

.contact-method-card,
.cta-box,
#contact-form-section .card {
  border-color: rgba(255,255,255,0.08) !important;
}

.footer-social-btn {
  position: relative;
  overflow: hidden;
}

.footer-social-btn::after {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--accent);
  transform: translateY(100%);
  transition: transform var(--transition-fast);
  z-index: -1;
}

.footer-social-btn:hover::after {
  transform: translateY(0);
}

@keyframes nodePulse {
  0% {
    box-shadow: 0 0 0 0 rgba(var(--accent-rgb), 0.24);
  }
  70% {
    box-shadow: 0 0 0 12px rgba(var(--accent-rgb), 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(var(--accent-rgb), 0);
  }
}

@media (max-width: 768px) {
  .problem-box::after,
  [style*="grid-template-columns: 1.2fr 0.8fr"] > div:last-child::before,
  [style*="grid-template-columns: 1.15fr 0.85fr"] > div:last-child::before,
  [style*="grid-template-columns: 0.85fr 1.15fr"] > div:first-child::before {
    display: none;
  }

  .deliverable-item {
    min-height: 0;
  }

  [style*="grid-template-columns: repeat(auto-fit, minmax(450px, 1fr))"],
  [style*="grid-template-columns: repeat(auto-fit, minmax(320px, 1fr))"],
  [style*="grid-template-columns: repeat(auto-fill, minmax(260px, 1fr))"] {
    grid-template-columns: 1fr !important;
  }
}

/* --- HOMEPAGE CONVICTION CONTENT UPGRADES --- */
.conviction-diagnosis,
.growth-os-section,
.before-after-section,
.decision-section {
  position: relative;
  overflow: hidden;
}

.conviction-diagnosis {
  background:
    linear-gradient(to left, rgba(var(--accent-rgb), 0.055), transparent 34%),
    #0b0b0b;
}

.conviction-diagnosis::after,
.growth-os-section::after,
.decision-section::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(to right, rgba(255,255,255,0.018) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255,255,255,0.014) 1px, transparent 1px);
  background-size: 52px 52px;
  opacity: 0.7;
}

.diagnosis-layout,
.decision-layout {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 56px;
  align-items: center;
  position: relative;
  z-index: 1;
}

.diagnosis-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 34px;
}

.diagnosis-scanner {
  border: 1px solid var(--border-color);
  background:
    linear-gradient(to bottom, rgba(255,255,255,0.035), transparent),
    var(--bg-secondary);
  position: relative;
  overflow: hidden;
}

.diagnosis-scanner::before {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  right: 0;
  width: 4px;
  background: var(--accent);
  box-shadow: 0 0 28px rgba(var(--accent-rgb), 0.35);
}

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

.scanner-header span {
  font-family: var(--font-english);
  color: var(--accent);
  font-size: 0.78rem;
  letter-spacing: 1.8px;
  font-weight: 700;
}

.scanner-header strong {
  font-size: 1.05rem;
}

.scanner-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.scanner-card {
  min-height: 190px;
  padding: 30px 28px;
  border-left: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
  position: relative;
  transition: var(--transition-smooth);
}

.scanner-card:nth-child(2n) {
  border-left: 0;
}

.scanner-card:nth-last-child(-n + 2) {
  border-bottom: 0;
}

.scanner-card span,
.growth-os-step,
.decision-point span {
  font-family: var(--font-english);
  color: var(--accent);
  font-weight: 800;
  font-size: 0.82rem;
  letter-spacing: 1px;
}

.scanner-card h3,
.growth-os-card h3 {
  font-size: 1.35rem;
  margin: 12px 0 10px;
  font-weight: 900;
}

.scanner-card p,
.growth-os-card p,
.decision-point p {
  color: var(--text-secondary);
  font-size: 0.94rem;
  line-height: 1.75;
}

.scanner-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to left, rgba(var(--accent-rgb), 0.08), transparent 52%);
  opacity: 0;
  transition: var(--transition-smooth);
  pointer-events: none;
}

.scanner-card.is-active,
.scanner-card:hover {
  background-color: #171717;
}

.scanner-card.is-active::after,
.scanner-card:hover::after {
  opacity: 1;
}

.scanner-card.is-active h3,
.scanner-card:hover h3 {
  color: var(--accent);
}

.growth-os-section {
  background:
    radial-gradient(circle at 50% 0%, rgba(var(--accent-rgb), 0.05), transparent 42%),
    var(--bg-primary);
}

.growth-os-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  position: relative;
  z-index: 1;
}

/* Remove the old connecting line */
.growth-os-grid::before {
  display: none;
}

.growth-os-card {
  padding: 36px 28px 32px;
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  position: relative;
  transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0;
  margin-left: -1px;
  overflow: visible;
}

.growth-os-card:first-child {
  margin-left: 0;
}

/* ===== Step Circle with SVG Ring ===== */
.gos-step-circle {
  width: 56px;
  height: 56px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  flex-shrink: 0;
}

.gos-step-num {
  font-family: var(--font-english);
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--accent);
  letter-spacing: 1px;
  position: relative;
  z-index: 1;
}

.gos-step-ring {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.gos-step-ring circle {
  stroke: rgba(var(--accent-rgb), 0.15);
  stroke-dasharray: 176;
  stroke-dashoffset: 176;
  transform: rotate(-90deg);
  transform-origin: center;
  transition: stroke-dashoffset 1.2s cubic-bezier(0.16, 1, 0.3, 1), stroke 0.4s ease;
}

.growth-os-card.revealed .gos-step-ring circle,
.growth-os-card.is-active .gos-step-ring circle {
  stroke-dashoffset: 0;
  stroke: rgba(var(--accent-rgb), 0.4);
}

/* ===== Card Body ===== */
.gos-card-body {
  display: flex;
  flex-direction: column;
  flex: 1;
}

.growth-os-card h3 {
  font-size: 1.4rem;
  margin: 0 0 10px;
  font-weight: 900;
  color: #fff;
  transition: all 0.35s ease;
}

.growth-os-card p {
  color: var(--text-secondary);
  font-size: 0.92rem;
  line-height: 1.75;
  flex: 1;
}

/* ===== Tag Badge ===== */
.gos-tag {
  display: inline-flex;
  align-items: center;
  margin-top: 20px;
  color: var(--accent) !important;
  background: rgba(var(--accent-rgb), 0.08) !important;
  border: 1px solid rgba(var(--accent-rgb), 0.2);
  padding: 6px 14px;
  font-size: 0.78rem;
  font-weight: 700;
  border-radius: 4px;
  transition: all 0.35s ease;
}

/* ===== Connector Arrow between cards ===== */
.gos-connector {
  position: absolute;
  left: -12px;
  top: 58px;
  width: 24px;
  height: 24px;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: center;
}

html[dir="ltr"] .gos-connector {
  left: auto;
  right: -12px;
}

.gos-connector span {
  width: 10px;
  height: 10px;
  background: var(--accent);
  border-radius: 50%;
  box-shadow: 0 0 12px rgba(var(--accent-rgb), 0.3);
  position: relative;
  animation: connectorPulse 2.5s ease-in-out infinite;
}

.gos-connector span::before,
.gos-connector span::after {
  content: '';
  position: absolute;
  top: 50%;
  height: 2px;
  background: linear-gradient(90deg, rgba(var(--accent-rgb), 0.4), transparent);
  transform: translateY(-50%);
}

.gos-connector span::before {
  right: 100%;
  width: 22px;
}

.gos-connector span::after {
  left: 100%;
  width: 22px;
  background: linear-gradient(270deg, rgba(var(--accent-rgb), 0.4), transparent);
}

.growth-os-card:last-child .gos-connector {
  display: none;
}

@keyframes connectorPulse {
  0%, 100% { box-shadow: 0 0 8px rgba(var(--accent-rgb), 0.2); transform: scale(1); }
  50%      { box-shadow: 0 0 18px rgba(var(--accent-rgb), 0.5); transform: scale(1.2); }
}

/* ===== Hover & Active States ===== */
.growth-os-card:hover {
  transform: translateY(-8px);
  border-color: rgba(var(--accent-rgb), 0.4);
  box-shadow:
    0 20px 50px rgba(0, 0, 0, 0.4),
    0 0 40px rgba(var(--accent-rgb), 0.05),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
  background:
    linear-gradient(135deg, rgba(var(--accent-rgb), 0.04), transparent 60%),
    var(--bg-secondary);
  z-index: 3;
}

.growth-os-card:hover h3 {
  color: var(--accent);
  transform: translateX(-4px);
}

html[dir="ltr"] .growth-os-card:hover h3 {
  transform: translateX(4px);
}

.growth-os-card:hover .gos-tag {
  background: var(--accent) !important;
  color: #000 !important;
  border-color: var(--accent);
}

.growth-os-card:hover .gos-step-ring circle {
  stroke-dashoffset: 0;
  stroke: var(--accent);
}

.growth-os-card:hover .gos-step-num {
  text-shadow: 0 0 12px rgba(var(--accent-rgb), 0.3);
}

/* Active card state */
.growth-os-card.is-active {
  background:
    linear-gradient(135deg, rgba(var(--accent-rgb), 0.06), transparent 60%),
    var(--bg-secondary);
  border-color: rgba(var(--accent-rgb), 0.25);
}

.growth-os-card.is-active h3 {
  color: var(--accent);
}

.growth-os-card.is-active .gos-tag {
  background: var(--accent) !important;
  color: #000 !important;
  border-color: var(--accent);
}

/* ===== Responsive ===== */
@media (max-width: 991px) {
  .growth-os-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .gos-connector {
    display: none;
  }
}

@media (max-width: 575px) {
  .growth-os-grid {
    grid-template-columns: 1fr;
  }
  .growth-os-card {
    flex-direction: row;
    align-items: flex-start;
    gap: 20px;
    padding: 28px 24px;
  }
  .gos-step-circle {
    margin-bottom: 0;
    width: 48px;
    height: 48px;
  }
  .growth-os-card h3 {
    font-size: 1.2rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .gos-connector span {
    animation: none;
  }
  .gos-step-ring circle {
    stroke-dashoffset: 0 !important;
    transition: none !important;
  }
  .growth-os-card:hover {
    transform: none;
  }
}

.before-after-section {
  background:
    linear-gradient(to right, rgba(255,255,255,0.018), transparent 36%),
    #0a0a0a;
}

.before-after-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border: 1px solid var(--border-color);
  position: relative;
}

.before-after-grid::before {
  content: 'VS';
  position: absolute;
  top: 50%;
  right: 50%;
  transform: translate(50%, -50%);
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  background: var(--accent);
  color: #000;
  font-family: var(--font-english);
  font-weight: 900;
  z-index: 2;
}

.before-panel,
.after-panel {
  padding: 48px 42px;
  min-height: 470px;
  background: var(--bg-secondary);
  position: relative;
}

.before-panel {
  border-left: 1px solid var(--border-color);
  background:
    linear-gradient(to bottom, rgba(255,255,255,0.025), transparent),
    #111111;
}

.after-panel {
  background:
    linear-gradient(to left, rgba(var(--accent-rgb), 0.09), transparent 45%),
    #141414;
}

.compare-label {
  color: var(--accent);
  font-family: var(--font-english);
  font-weight: 800;
  letter-spacing: 1.8px;
  margin-bottom: 16px;
}

.before-panel h3,
.after-panel h3 {
  font-size: 1.65rem;
  margin-bottom: 24px;
  font-weight: 900;
}

.before-panel ul,
.after-panel ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.before-panel li,
.after-panel li {
  color: var(--text-secondary);
  line-height: 1.7;
  position: relative;
  padding-right: 22px;
}

.before-panel li::before,
.after-panel li::before {
  content: '';
  position: absolute;
  right: 0;
  top: 0.72em;
  width: 8px;
  height: 8px;
  background: var(--accent);
}

.decision-section {
  background:
    linear-gradient(to left, rgba(var(--accent-rgb), 0.045), transparent 32%),
    var(--bg-primary);
}

.decision-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
  position: relative;
  z-index: 1;
}

.decision-point {
  display: grid;
  grid-template-columns: 58px 1fr;
  gap: 18px;
  align-items: center;
  border: 1px solid var(--border-color);
  background: var(--bg-secondary);
  padding: 22px 24px;
  transition: var(--transition-smooth);
}

.decision-point.is-active,
.decision-point:hover {
  border-color: rgba(var(--accent-rgb), 0.62);
  transform: translateX(-8px);
  background:
    linear-gradient(to left, rgba(var(--accent-rgb), 0.08), transparent 45%),
    var(--bg-secondary);
}

.decision-point.is-active p,
.decision-point:hover p {
  color: #fff;
}

@media (max-width: 991px) {
  .diagnosis-layout,
  .decision-layout,
  .before-after-grid {
    grid-template-columns: 1fr;
  }

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

  .gos-connector {
    display: none;
  }



  .before-after-grid::before {
    top: 50%;
    right: 32px;
    transform: translateY(-50%);
  }

  .before-panel {
    border-left: 0;
    border-bottom: 1px solid var(--border-color);
  }
}

@media (max-width: 575px) {
  .scanner-list {
    grid-template-columns: 1fr;
  }

  .scanner-card,
  .scanner-card:nth-child(2n),
  .scanner-card:nth-last-child(-n + 2) {
    border-left: 0;
    border-bottom: 1px solid var(--border-color);
    min-height: 0;
  }

  .scanner-card:last-child {
    border-bottom: 0;
  }

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

  .before-panel,
  .after-panel {
    padding: 34px 24px;
    min-height: 0;
  }

  .before-after-grid::before {
    display: none;
  }

  .decision-point {
    grid-template-columns: 42px 1fr;
    padding: 18px 16px;
  }

  .decision-point.is-active,
  .decision-point:hover {
    transform: none;
  }
}

/* --- HOMEPAGE CONVICTION READING + MOTION BOOST --- */
.diagnosis-copy,
.decision-copy {
  position: relative;
}

.diagnosis-copy::before,
.decision-copy::before {
  content: '';
  position: absolute;
  top: 2px;
  bottom: 4px;
  right: -24px;
  width: 2px;
  background: linear-gradient(to bottom, var(--accent), rgba(var(--accent-rgb), 0.06));
  transform: scaleY(0);
  transform-origin: top;
  transition: transform 1s cubic-bezier(0.16, 1, 0.3, 1);
}

.section-in-view .diagnosis-copy::before,
.section-in-view .decision-copy::before {
  transform: scaleY(1);
}

.diagnosis-copy .section-title,
.decision-copy .section-title {
  max-width: 760px;
}

.diagnosis-copy .section-desc,
.decision-copy .section-desc {
  border-right: 1px solid rgba(var(--accent-rgb), 0.22);
  padding-right: 20px;
  margin-top: 22px;
  background: linear-gradient(to left, rgba(var(--accent-rgb), 0.035), transparent 58%);
}

.diagnosis-scanner {
  box-shadow: 0 28px 80px rgba(0,0,0,0.42);
}

.diagnosis-scanner::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(115deg, transparent 0 42%, rgba(255,255,255,0.09) 50%, transparent 58% 100%);
  transform: translateX(110%);
  animation: scannerSweep 5.4s ease-in-out infinite;
  opacity: 0.55;
}

.scanner-header {
  background:
    linear-gradient(to left, rgba(var(--accent-rgb), 0.08), transparent 42%),
    rgba(0,0,0,0.2);
}

.scanner-header::before {
  content: '';
  width: 10px;
  height: 10px;
  background: var(--accent);
  box-shadow: 0 0 0 8px rgba(var(--accent-rgb), 0.08);
  order: 3;
}

.scanner-card {
  isolation: isolate;
}

.scanner-card::before {
  content: '';
  position: absolute;
  top: 22px;
  left: 22px;
  width: 28px;
  height: 28px;
  border-top: 1px solid rgba(var(--accent-rgb), 0.34);
  border-left: 1px solid rgba(var(--accent-rgb), 0.34);
  opacity: 0;
  transform: translate(-8px, 8px);
  transition: var(--transition-smooth);
}

.scanner-card.is-active::before,
.scanner-card:hover::before {
  opacity: 1;
  transform: translate(0, 0);
}

.scanner-card span {
  display: inline-flex;
  width: 38px;
  height: 38px;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(var(--accent-rgb), 0.24);
  background: rgba(var(--accent-rgb), 0.04);
}

.scanner-card.is-active span,
.scanner-card:hover span {
  background: var(--accent);
  color: #000;
}

.scanner-card p {
  max-width: 32ch;
}

.scanner-card.is-active {
  transform: translateY(-4px);
  box-shadow: inset 0 0 0 1px rgba(var(--accent-rgb), 0.22), 0 18px 45px rgba(0,0,0,0.28);
  z-index: 2;
}

/* Growth OS grid shadow enhancement */
.growth-os-grid {
  box-shadow: 0 26px 80px rgba(0,0,0,0.36);
}

.before-after-grid {
  box-shadow: 0 28px 82px rgba(0,0,0,0.38);
}

.before-panel,
.after-panel {
  overflow: hidden;
}

.before-panel::after,
.after-panel::after {
  content: '';
  position: absolute;
  right: 0;
  bottom: 0;
  width: 0;
  height: 3px;
  background: var(--accent);
  transition: width 1.1s cubic-bezier(0.16, 1, 0.3, 1);
}

.before-after-grid.revealed .before-panel::after,
.before-after-grid.revealed .after-panel::after {
  width: 100%;
}

.before-panel li,
.after-panel li {
  transition: transform var(--transition-fast), color var(--transition-fast);
}

.before-panel li:hover,
.after-panel li:hover {
  color: #fff;
  transform: translateX(-4px);
}

.after-panel .compare-label {
  color: #000;
  background: var(--accent);
  display: inline-flex;
  padding: 4px 10px;
}

.decision-list {
  counter-reset: decision;
}

.decision-point {
  overflow: hidden;
}

.decision-point::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(to left, rgba(var(--accent-rgb), 0.1), transparent 48%);
  opacity: 0;
  transform: translateX(22px);
  transition: var(--transition-smooth);
}

.decision-point.is-active::before,
.decision-point:hover::before {
  opacity: 1;
  transform: translateX(0);
}

.decision-point span {
  width: 42px;
  height: 42px;
  display: inline-grid;
  place-items: center;
  border: 1px solid rgba(var(--accent-rgb), 0.3);
  background: #0f0f0f;
  position: relative;
  z-index: 1;
}

.decision-point.is-active span,
.decision-point:hover span {
  background: var(--accent);
  color: #000;
}

.decision-point p {
  position: relative;
  z-index: 1;
  font-weight: 500;
}

@keyframes scannerSweep {
  0%, 28% {
    transform: translateX(110%);
  }
  58%, 100% {
    transform: translateX(-110%);
  }
}

@media (max-width: 991px) {
  .diagnosis-copy::before,
  .decision-copy::before {
    right: 0;
  }

  .diagnosis-copy,
  .decision-copy {
    padding-right: 18px;
  }

  .growth-os-card.is-active {
    transform: none;
  }
}

@media (max-width: 575px) {
  .diagnosis-copy .section-desc,
  .decision-copy .section-desc {
    padding-right: 14px;
  }

  .scanner-card.is-active {
    transform: none;
  }
}

/* --- TEXT-SAFE CREATIVE MOTION OVERRIDES --- */
.badge-tag::after {
  top: auto;
  right: 0;
  bottom: 0;
  left: auto;
  width: 0;
  height: 2px;
  background: var(--accent);
  transform: none;
  opacity: 0.9;
}

.section-in-view .badge-tag::after,
.reveal-on-scroll.revealed .badge-tag::after {
  animation: none;
  width: 100%;
}

.btn::after {
  top: auto;
  right: 0;
  bottom: 0;
  left: auto;
  width: 0;
  height: 2px;
  background: var(--accent);
  transform: none;
  opacity: 1;
  border: 0;
}

.btn:hover::after {
  width: 100%;
  transform: none;
  border: 0;
}

.diagnosis-scanner::after {
  inset: auto 0 auto auto;
  top: 0;
  width: 4px;
  height: 92px;
  background: linear-gradient(to bottom, transparent, var(--accent), transparent);
  transform: translateY(-120%);
  animation: scannerRail 3.8s ease-in-out infinite;
  opacity: 0.85;
}

.cta-container-block::after,
.cta-box::after,
#contact-form-section .card::after {
  display: none;
}

.conviction-diagnosis::before,
.growth-os-section::before,
.before-after-section::before,
.decision-section::before {
  content: '';
  position: absolute;
  inset: 18px;
  pointer-events: none;
  border: 1px solid rgba(var(--accent-rgb), 0.06);
  opacity: 0;
  transform: scaleX(0.96);
  transition: opacity 0.9s cubic-bezier(0.16, 1, 0.3, 1), transform 0.9s cubic-bezier(0.16, 1, 0.3, 1);
}

.conviction-diagnosis.section-in-view::before,
.growth-os-section.section-in-view::before,
.before-after-section.section-in-view::before,
.decision-section.section-in-view::before {
  opacity: 1;
  transform: scaleX(1);
}

.scanner-card h3,
.scanner-card p,
.growth-os-card h3,
.growth-os-card p,
.decision-point p,
.before-panel li,
.after-panel li {
  position: relative;
  z-index: 2;
}

.scanner-card.is-active h3::after,
.growth-os-card.is-active h3::after {
  content: '';
  display: block;
  width: 42px;
  height: 2px;
  background: var(--accent);
  margin-top: 10px;
  animation: textSafeLine 0.65s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.growth-os-card::after {
  content: '';
  position: absolute;
  inset: auto 24px 24px 24px;
  height: 1px;
  background: linear-gradient(to left, var(--accent), transparent);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
  pointer-events: none;
}

.growth-os-card.is-active::after,
.growth-os-card:hover::after {
  transform: scaleX(1);
}

.before-panel li::after,
.after-panel li::after {
  content: '';
  position: absolute;
  right: 0;
  bottom: -4px;
  width: 0;
  height: 1px;
  background: rgba(var(--accent-rgb), 0.55);
  transition: width var(--transition-fast);
}

.before-panel li:hover::after,
.after-panel li:hover::after {
  width: min(100%, 220px);
}

.decision-point.is-active {
  animation: decisionFocus 1.6s ease-in-out both;
}

@keyframes scannerRail {
  0%, 18% {
    transform: translateY(-120%);
  }
  58%, 100% {
    transform: translateY(520%);
  }
}

@keyframes textSafeLine {
  from {
    width: 0;
  }
  to {
    width: 42px;
  }
}

@keyframes decisionFocus {
  0%, 100% {
    box-shadow: 0 0 0 rgba(var(--accent-rgb), 0);
  }
  45% {
    box-shadow: 0 18px 42px rgba(0,0,0,0.32), 0 0 22px rgba(var(--accent-rgb), 0.12);
  }
}

@media (prefers-reduced-motion: reduce) {
  .diagnosis-scanner::after,
  .decision-point.is-active,
  .scanner-card.is-active h3::after,
  .growth-os-card.is-active h3::after {
    animation: none !important;
  }
}

/* --- HOMEPAGE CREATIVE SPOTLIGHT STATES --- */
.command-center-module,
.portfolio-card-premium,
.medical-card-premium,
.industry-tile,
.philosophy-card {
  --spotlight-strength: 0;
}

.command-center-module.is-spotlight,
.portfolio-card-premium.is-spotlight,
.medical-card-premium.is-spotlight,
.industry-tile.is-spotlight,
.philosophy-card.is-spotlight {
  --spotlight-strength: 1;
  border-color: rgba(var(--accent-rgb), 0.42);
  box-shadow: 0 18px 48px rgba(0,0,0,0.34), 0 0 calc(18px * var(--spotlight-strength)) rgba(var(--accent-rgb), 0.08);
}

.command-center-module.is-spotlight::after,
.medical-card-premium.is-spotlight::after,
.industry-tile.is-spotlight::after,
.philosophy-card.is-spotlight::after {
  opacity: 1;
}

.command-center-module {
  background-image:
    linear-gradient(to bottom, rgba(255,255,255,0.028), transparent),
    linear-gradient(to left, rgba(var(--accent-rgb), calc(0.035 * var(--spotlight-strength))), transparent 48%);
}

.command-center-module.is-spotlight .module-tag,
.medical-card-premium.is-spotlight .medical-card-badge,
.philosophy-card.is-spotlight .philosophy-tag {
  background: var(--accent);
  color: #000;
}

.portfolio-card-premium.is-spotlight .portfolio-card-accent-line {
  width: 100%;
}

.portfolio-card-premium.is-spotlight .portfolio-media-bg {
  transform: scale(1.035);
}

.medical-card-premium.is-spotlight::before,
.command-center-module.is-spotlight::before {
  transform: scaleY(1);
}

.industry-tile.is-spotlight {
  transform: translateY(-4px);
  border-right-color: var(--accent);
}

.journey-node.is-active {
  animation: sectionNodePulse 1.8s ease-in-out infinite;
}

.service-core-card.revealed {
  animation: coreSignal 2.8s ease-in-out infinite;
}

.connector-line-path {
  filter: drop-shadow(0 0 5px rgba(var(--accent-rgb), 0.25));
}

@keyframes sectionNodePulse {
  0%, 100% {
    box-shadow: 0 0 0 rgba(var(--accent-rgb), 0);
  }
  50% {
    box-shadow: 0 16px 42px rgba(0,0,0,0.32), 0 0 24px rgba(var(--accent-rgb), 0.11);
  }
}

@keyframes coreSignal {
  0%, 100% {
    box-shadow: 0 0 40px rgba(var(--accent-rgb), 0.1);
  }
  50% {
    box-shadow: 0 0 58px rgba(var(--accent-rgb), 0.22);
  }
}

@media (max-width: 768px) {
  .journey-node.is-active,
  .service-core-card.revealed {
    animation: none;
  }

  .industry-tile.is-spotlight {
    transform: none;
  }
}

/* Final overflow guards for responsive QA */

main,
section:not(.hero),
footer {
  overflow-x: clip;
}

@media (max-width: 991px) {
  .mobile-nav {
    display: flex;
  }

  .tech-grid-glow {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}

/* --- Additional Upgrades & Fixes --- */

/* Trust strip marker */
.trust-marker {
  color: var(--accent);
  font-size: 0.85rem;
  line-height: 1;
  margin-top: 2px;
}

/* Patient Journey Visual (Medical Section) */
.patient-journey-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-color);
  padding: 30px;
  margin-bottom: 50px;
  position: relative;
}

.patient-journey-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  flex: 1;
  z-index: 2;
}

.patient-journey-dot {
  width: 32px;
  height: 32px;
  background-color: var(--bg-primary);
  border: 2px solid var(--accent);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-english);
  font-weight: 700;
  font-size: 0.9rem;
  margin-bottom: 12px;
}

.patient-journey-label {
  font-size: 1.15rem;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 6px;
}

.patient-journey-desc {
  font-size: 0.8rem;
  color: var(--text-muted);
  max-width: 180px;
}

.patient-journey-connector {
  flex: 0.5;
  height: 2px;
  background-color: var(--border-color);
  margin-top: -35px;
  position: relative;
}

.patient-journey-connector::after {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  height: 100%;
  background-color: var(--accent);
  transform: scaleX(0);
  transform-origin: right;
  transition: var(--transition-smooth);
}

.patient-journey-container:hover .patient-journey-connector::after {
  transform: scaleX(1);
}

@media (max-width: 991px) {
  .patient-journey-container {
    flex-direction: column;
    gap: 25px;
    align-items: flex-start;
    text-align: right;
    padding-right: 40px;
  }
  .patient-journey-step {
    flex-direction: row;
    align-items: flex-start;
    text-align: right;
    gap: 15px;
    width: 100%;
  }
  .patient-journey-dot {
    margin-bottom: 0;
    flex-shrink: 0;
  }
  .patient-journey-desc {
    max-width: 100%;
  }
  .patient-journey-connector {
    display: none;
  }
}

/* Industry tiles: desc is always visible in new design */

/* Final cascade: medical patient journey polish */
.patient-journey-container {
  display: grid;
  grid-template-columns: 1fr 70px 1fr 70px 1fr 70px 1fr;
  align-items: stretch;
  gap: 0;
  max-width: 1040px;
  margin: 52px auto 50px;
  padding: 0;
  background:
    linear-gradient(to left, rgba(var(--accent-rgb), 0.055), transparent 36%),
    #0d0d0d;
  overflow: hidden;
}

.patient-journey-step {
  min-height: 150px;
  justify-content: center;
  padding: 28px 18px;
  border-left: 1px solid var(--border-color);
}

.patient-journey-step:last-child {
  border-left: 0;
}

.patient-journey-dot {
  width: 38px;
  height: 38px;
  background-color: #0f0f0f;
  box-shadow: 0 0 0 7px rgba(var(--accent-rgb), 0.045);
}

.patient-journey-connector {
  align-self: center;
  width: 100%;
  margin: 0;
  background-color: rgba(255, 255, 255, 0.08);
}

.patient-journey-container.revealed .patient-journey-connector::after,
.patient-journey-container:hover .patient-journey-connector::after {
  transform: scaleX(1);
}

@media (max-width: 991px) {
  .patient-journey-container {
    grid-template-columns: 1fr;
    padding: 0;
    gap: 0;
    align-items: stretch;
  }

  .patient-journey-step {
    min-height: 110px;
    padding: 24px;
    border-left: 0;
    border-bottom: 1px solid var(--border-color);
  }

  .patient-journey-step:last-child {
    border-bottom: 0;
  }

  .patient-journey-connector {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}

/* --- TRUE FINAL HOMEPAGE WOW SAFETY OVERRIDES --- */
.homepage-showreel::before,
.homepage-showreel.section-in-view::before {
  content: 'ZED';
  position: absolute;
  left: 4vw;
  top: 50%;
  right: auto;
  bottom: auto;
  width: auto;
  height: auto;
  transform: translateY(-50%);
  font-family: var(--font-english);
  font-size: clamp(7rem, 20vw, 19rem);
  line-height: 1;
  color: rgba(255,255,255,0.025);
  font-weight: 700;
  opacity: 1;
  background: none;
  pointer-events: none;
}

.hero-live-card.is-live,
.hero-live-card.is-active,
.showreel-step.is-live,
.showreel-step.is-active {
  will-change: transform;
}

@media (max-width: 640px) {
  .homepage-showreel::before,
  .homepage-showreel.section-in-view::before {
    display: none;
  }
}

/* --- TRUE FINAL EXTRA DELIGHT CASCADE --- */
.impact-cockpit-section {
  position: relative;
  overflow: hidden;
}

.impact-cockpit-shell,
.impact-card,
.impact-radar,
.hero-scroll-cue {
  position: relative;
}

.impact-cockpit-shell {
  z-index: 1;
}

.impact-card.is-active,
.impact-card:hover {
  border-color: rgba(var(--accent-rgb), 0.42);
}

/* (floating contact styles consolidated in main block) */

@media (max-width: 768px) {
  .hero-scroll-cue,
  .fixed-floating-contact {
    display: none;
  }
}

/* --- Multilingual (LTR/RTL) Layout Overrides --- */

/* Set up direction and text alignments based on html dir */
html {
  direction: rtl;
  text-align: right;
}

html[dir="ltr"] {
  direction: ltr;
  text-align: left;
}

html[dir="ltr"] body {
  direction: ltr;
  text-align: left;
  font-family: var(--font-english);
}

/* Force English font family across LTR elements */
html[dir="ltr"] body,
html[dir="ltr"] input,
html[dir="ltr"] textarea,
html[dir="ltr"] select,
html[dir="ltr"] button,
html[dir="ltr"] .btn,
html[dir="ltr"] .nav-link,
html[dir="ltr"] .philosophy-title,
html[dir="ltr"] .philosophy-desc,
html[dir="ltr"] .portfolio-overlay-title,
html[dir="ltr"] .portfolio-card-desc,
html[dir="ltr"] .cta-input-label,
html[dir="ltr"] .cta-input,
html[dir="ltr"] .badge-tag,
html[dir="ltr"] .fixed-floating-contact,
html[dir="ltr"] .mobile-sticky-contact {
  font-family: var(--font-english) !important;
}

html[dir="ltr"] .fixed-floating-contact {
  left: auto;
  right: 24px;
}

/* Text alignment overrides for LTR layout elements */
html[dir="ltr"] .portfolio-media-overlay-content {
  direction: ltr;
  text-align: left;
  align-items: flex-start;
}

html[dir="ltr"] .philosophy-card,
html[dir="ltr"] .cta-input-label,
html[dir="ltr"] .patient-journey-container,
html[dir="ltr"] .patient-journey-step {
  text-align: left;
}

/* Header & Mobile Menu LTR overrides */
html[dir="ltr"] .logo-text-ar {
  margin-right: 0;
  margin-left: 6px;
}

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

html[dir="ltr"] .mobile-nav.active {
  transform: translateX(0);
}

/* Journey Section LTR overrides */
html[dir="ltr"] .journey-container::before {
  transform-origin: left;
  background: linear-gradient(to right, var(--accent), rgba(var(--accent-rgb), 0.1));
}

html[dir="ltr"] .journey-node::after {
  left: auto;
  right: -20px;
}

@media (max-width: 991px) {
  html[dir="ltr"] .journey-container {
    padding-right: 0;
    padding-left: 25px;
  }
  html[dir="ltr"] .journey-container::before {
    right: auto;
    left: 8px;
  }
  html[dir="ltr"] .journey-node {
    padding-right: 24px;
    padding-left: 36px;
  }
  html[dir="ltr"] .journey-node::after {
    right: auto;
    left: -25px;
  }
}

/* Services Section LTR overrides */
@media (max-width: 991px) {
  html[dir="ltr"] .command-center-grid {
    padding-right: 0;
    padding-left: 25px;
  }
  html[dir="ltr"] .command-center-grid::before {
    right: auto;
    left: 8px;
    inset: 70px auto 24px 22px;
  }
  html[dir="ltr"] .command-center-module::after,
  html[dir="ltr"] .service-core-card::after {
    right: auto;
    left: -25px;
  }
}

/* Roadmap Timeline LTR overrides */
html[dir="ltr"] .roadmap-timeline::before {
  right: auto;
  left: 40px;
  background: linear-gradient(to bottom, var(--accent), rgba(var(--accent-rgb), 0.08));
}

html[dir="ltr"] .roadmap-step:nth-child(even) {
  margin-right: 0;
  margin-left: auto;
}

html[dir="ltr"] .roadmap-step:nth-child(odd) {
  margin-left: 0;
  margin-right: auto;
}

@media (max-width: 480px) {
  html[dir="ltr"] .roadmap-timeline::before {
    right: auto;
    left: 21px;
  }
  html[dir="ltr"] .roadmap-step {
    grid-template-columns: 44px 1fr;
  }
}

/* CTA Container LTR overrides */
html[dir="ltr"] .cta-container-block::before {
  right: auto;
  left: 0;
}

html[dir="ltr"] .cta-container-block {
  border-right: 1px solid var(--border-color);
  border-left: 5px solid var(--accent);
  background:
    linear-gradient(to right, rgba(var(--accent-rgb), 0.08), transparent 34%),
    #111111;
}

/* Sleek Flat Language Switcher in Header */
.lang-switcher-flat {
  display: flex;
  align-items: center;
  gap: 0;
  font-family: var(--font-english);
  font-size: 0.78rem;
  font-weight: 700;
  background-color: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 6px;
  padding: 5px 4px;
  transition: var(--transition-fast);
}

.lang-switcher-flat:hover {
  border-color: rgba(var(--accent-rgb), 0.25);
  background-color: rgba(255, 255, 255, 0.06);
}

.lang-flat-option {
  color: var(--text-muted);
  text-decoration: none;
  transition: var(--transition-fast);
  padding: 3px 8px;
  border-radius: 4px;
}

.lang-flat-option:first-child {
  font-family: var(--font-arabic);
  font-size: 0.75rem;
}

.lang-flat-option:hover {
  color: var(--text-primary);
  background-color: rgba(255, 255, 255, 0.06);
}

.lang-flat-option.active {
  color: var(--accent);
  background-color: rgba(var(--accent-rgb), 0.1);
}

.lang-flat-separator {
  color: rgba(255, 255, 255, 0.12);
  font-weight: 300;
  font-size: 0.75rem;
  user-select: none;
}

/* --- SITE-WIDE ENERGY EXPERIENCE LAYER --- */
body {
  position: relative;
}

.site-energy-layer {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
  opacity: 0.95;
}

.site-energy-layer::before,
.site-energy-layer::after {
  content: '';
  position: absolute;
  width: 42vw;
  height: 42vw;
  min-width: 360px;
  min-height: 360px;
  border-radius: 50%;
  filter: blur(42px);
  opacity: 0.42;
  background: radial-gradient(circle, rgba(var(--accent-rgb), 0.12), transparent 68%);
  animation: energyOrbDrift 14s ease-in-out infinite alternate;
}

.site-energy-layer::before {
  top: -16%;
  right: -10%;
}

.site-energy-layer::after {
  left: -12%;
  bottom: 8%;
  animation-delay: -5s;
  opacity: 0.28;
}

.site-energy-layer span {
  position: absolute;
  width: 2px;
  height: 120px;
  top: calc((var(--energy-index) * 15%) + 4%);
  right: calc((var(--energy-index) * 17%) - 8%);
  background: linear-gradient(to bottom, transparent, rgba(var(--accent-rgb), 0.34), transparent);
  transform: rotate(38deg);
  opacity: 0.34;
  animation: energyLineTravel 8s linear infinite;
  animation-delay: calc(var(--energy-index) * -1.15s);
}

.site-energy-layer.is-static,
.site-energy-layer.is-static::before,
.site-energy-layer.is-static::after,
.site-energy-layer.is-static span {
  animation: none !important;
}

header,
section,
footer {
  position: relative;
  z-index: 1;
}

.page-transition-wash {
  position: fixed;
  inset: 0;
  z-index: 20000;
  pointer-events: none;
  background:
    linear-gradient(115deg, transparent 0 38%, rgba(var(--accent-rgb), 0.96) 39% 47%, #050505 48% 100%);
  transform: translateX(110%);
  transition: transform 0.45s cubic-bezier(0.76, 0, 0.24, 1);
}

.page-transition-wash.is-active {
  transform: translateX(0);
}

.section-header,
.hero-content,
.cta-container-block,
.impact-cockpit-shell,
.showreel-shell,
.command-center-grid {
  --kinetic-line: 0;
}

.section-header::after,
.hero-content::after,
.impact-cockpit-shell::after,
.showreel-shell::after,
.command-center-grid::after {
  content: '';
  position: absolute;
  pointer-events: none;
  opacity: var(--kinetic-line);
  transition: opacity 0.55s ease, transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.section-header::after,
.hero-content::after {
  right: 0;
  bottom: -18px;
  width: min(220px, 44vw);
  height: 1px;
  background: linear-gradient(to left, var(--accent), transparent);
  transform: scaleX(var(--kinetic-line));
  transform-origin: right;
}

.impact-cockpit-shell::after,
.showreel-shell::after,
.command-center-grid::after {
  inset: 14px;
  border: 1px solid rgba(var(--accent-rgb), 0.12);
  transform: scale(calc(0.985 + (var(--kinetic-line) * 0.015)));
}

.kinetic-focus {
  --kinetic-line: 1;
}

.cta-container-block.kinetic-focus {
  box-shadow: 0 30px 90px rgba(0,0,0,0.42), 0 0 32px rgba(var(--accent-rgb), 0.08);
}

.btn-primary,
.cta-direct-btn,
.header-phone-link {
  isolation: isolate;
}

.intent-pulse {
  animation: intentPulse 1.25s ease-in-out both;
}

.nav-link {
  overflow: hidden;
}

.nav-link::before {
  content: '';
  position: absolute;
  inset: auto 0 0 0;
  height: 1px;
  background: linear-gradient(to left, transparent, rgba(var(--accent-rgb), 0.65), transparent);
  transform: translateX(120%);
  opacity: 0;
}

.nav-link:hover::before,
.nav-link.active::before {
  animation: navSignalSweep 1.2s ease both;
}

.card,
.portfolio-card-premium,
.medical-card-premium,
.command-center-module,
.industry-tile,
.impact-card,
.showreel-step {
  will-change: transform;
}

.card:hover,
.portfolio-card-premium:hover,
.medical-card-premium:hover,
.command-center-module:hover,
.industry-tile:hover,
.impact-card:hover,
.showreel-step:hover {
  filter: saturate(1.08);
}

@keyframes energyOrbDrift {
  0% {
    transform: translate3d(0, 0, 0) scale(1);
  }
  100% {
    transform: translate3d(-5vw, 6vh, 0) scale(1.16);
  }
}

@keyframes energyLineTravel {
  0% {
    transform: translate3d(0, -25vh, 0) rotate(38deg);
    opacity: 0;
  }
  18% {
    opacity: 0.36;
  }
  100% {
    transform: translate3d(-55vw, 95vh, 0) rotate(38deg);
    opacity: 0;
  }
}

@keyframes intentPulse {
  0%, 100% {
    box-shadow: 0 0 0 rgba(var(--accent-rgb), 0);
  }
  45% {
    box-shadow: 0 0 0 8px rgba(var(--accent-rgb), 0.12), 0 0 28px rgba(var(--accent-rgb), 0.18);
  }
}

@keyframes navSignalSweep {
  0% {
    transform: translateX(120%);
    opacity: 0;
  }
  35% {
    opacity: 1;
  }
  100% {
    transform: translateX(-120%);
    opacity: 0;
  }
}

@media (max-width: 768px) {
  .site-energy-layer span {
    display: none;
  }

  .site-energy-layer::before,
  .site-energy-layer::after {
    width: 520px;
    height: 520px;
    opacity: 0.22;
  }

  .section-header::after,
  .hero-content::after,
  .impact-cockpit-shell::after,
  .showreel-shell::after,
  .command-center-grid::after {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .site-energy-layer::before,
  .site-energy-layer::after,
  .site-energy-layer span,
  .intent-pulse,
  .nav-link:hover::before,
  .nav-link.active::before {
    animation: none !important;
  }

  .page-transition-wash {
    display: none;
  }
}

/* --- FINAL FOOTER END-STOP FIX --- */
html,
body {
  min-height: 100%;
  padding-bottom: 0 !important;
}

body {
  overflow-x: hidden;
}

footer {
  margin-bottom: 0 !important;
  overflow: hidden;
}

.site-energy-layer,
.page-transition-wash {
  contain: layout style paint;
}

.site-energy-layer,
.page-transition-wash {
  position: fixed !important;
  inset: 0 !important;
}

/* floating contact position is set in main block */

.mobile-sticky-contact {
  position: fixed !important;
  right: 0;
  bottom: 0;
  left: 0;
}

@media (max-width: 991px) {
  body {
    padding-bottom: 0 !important;
  }

  footer {
    padding-bottom: calc(40px + 60px + env(safe-area-inset-bottom, 0px)) !important;
  }

  .mobile-sticky-contact {
    height: calc(60px + env(safe-area-inset-bottom, 0px));
    padding-bottom: env(safe-area-inset-bottom, 0px);
  }
}
