/* ==========================================================================
   ICON MEP - PREMIUM DESIGN SYSTEM (TRIONN INSPIRED)
   ========================================================================== */

/* Variables */
:root {
  --color-bg: #050608;
  --color-bg-offset: #0b0c10;
  
  /* Logo Colors & Glows */
  --color-primary: #e31e24;       /* Crimson Red from logo */
  --color-accent: #ff2a39;        /* Neon Red accent */
  --color-accent-rgb: 255, 42, 57;
  
  /* Text and details */
  --color-text: #ffffff;
  --color-text-muted: #8b8e9c;
  --color-border: rgba(255, 255, 255, 0.08);
  --color-border-glow: rgba(227, 30, 36, 0.2);
  --grid-color: rgba(255, 255, 255, 0.03);
  --grid-line-color: rgba(227, 30, 36, 0.06);
  
  /* Layout */
  --header-height: 80px;
  --container-width: 1400px;
  
  /* Cursor */
  --cursor-dot-size: 6px;
  --cursor-circle-size: 40px;
}

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

html {
  scroll-behavior: smooth;
  background-color: var(--color-bg);
  color: var(--color-text);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* Bilingual Font Routing & Visibility */
html[lang="en"] {
  font-family: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
}

html[lang="ar"] {
  font-family: 'Cairo', -apple-system, BlinkMacSystemFont, sans-serif;
}

html[lang="en"] .lang-ar { display: none !important; }
html[lang="ar"] .lang-en { display: none !important; }

body {
  overflow-x: hidden;
  position: relative;
  background-color: var(--color-bg);
  cursor: none; /* Hide default cursor to use custom LERP cursor */
}

body.no-custom-cursor,
body.no-custom-cursor a,
body.no-custom-cursor button,
body.no-custom-cursor select,
body.no-custom-cursor input,
body.no-custom-cursor textarea {
  cursor: auto;
}

body.no-custom-cursor a,
body.no-custom-cursor button {
  cursor: pointer;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 6px;
}
::-webkit-scrollbar-track {
  background: var(--color-bg);
}
::-webkit-scrollbar-thumb {
  background: var(--color-primary);
  border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--color-accent);
}

/* Selection */
::selection {
  background: var(--color-primary);
  color: #fff;
}

/* Common Layout Components */
a {
  color: inherit;
  text-decoration: none;
  cursor: none;
}

button {
  background: none;
  border: none;
  font-family: inherit;
  color: inherit;
  cursor: none;
  outline: none;
}

.uppercase {
  text-transform: uppercase;
}

/* Global Background Layout Grid */
.global-grid-bg {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background-image:
    radial-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: 24px 24px;
  animation: grid-drift 28s linear infinite;
}

.global-grid-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 50%, transparent 35%, var(--color-bg) 95%);
}

.global-lines-bg {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: 0.35;
  background-image:
    linear-gradient(rgba(227, 30, 36, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(227, 30, 36, 0.05) 1px, transparent 1px);
  background-size: 80px 80px;
  mask-image: radial-gradient(circle at 50% 45%, #000 15%, transparent 75%);
  -webkit-mask-image: radial-gradient(circle at 50% 45%, #000 15%, transparent 75%);
}

.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 2px;
  z-index: 10001;
  pointer-events: none;
  background: rgba(255, 255, 255, 0.04);
}

.scroll-progress-bar {
  display: block;
  width: 0;
  height: 100%;
  background: linear-gradient(90deg, var(--color-primary), var(--color-accent));
  box-shadow: 0 0 16px rgba(227, 30, 36, 0.55);
  transition: width 0.08s linear;
}

@keyframes grid-drift {
  0% { background-position: 0 0, 0 0; }
  100% { background-position: 24px 24px, 24px 24px; }
}

.section-deco {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
  opacity: 0.55;
}

.section-deco::before {
  content: '';
  position: absolute;
  inset: -40% -10%;
  background-image: repeating-linear-gradient(
    -32deg,
    transparent,
    transparent 38px,
    rgba(227, 30, 36, 0.035) 38px,
    rgba(227, 30, 36, 0.035) 39px
  );
  animation: deco-drift 18s linear infinite;
}

@keyframes deco-drift {
  0% { transform: translateX(0); }
  100% { transform: translateX(60px); }
}

.section-deco::after {
  display: none;
}

/* Custom Dual LERP Cursor */
.cursor-node {
  position: fixed;
  top: 0;
  left: 0;
  pointer-events: none;
  z-index: 10000;
  transform: translate(-50%, -50%);
  will-change: transform;
}

#custom-cursor-dot {
  width: var(--cursor-dot-size);
  height: var(--cursor-dot-size);
  background-color: var(--color-accent);
  border-radius: 50%;
  transition: width 0.2s, height 0.2s, background-color 0.2s;
}

#custom-cursor-circle {
  width: var(--cursor-circle-size);
  height: var(--cursor-circle-size);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  transition: width 0.3s, height 0.3s, background-color 0.3s, border-color 0.3s;
}

/* Hover States for Custom Cursor */
body.cursor-hovering #custom-cursor-dot {
  width: 10px;
  height: 10px;
  background-color: var(--color-accent);
}

body.cursor-hovering #custom-cursor-circle {
  width: 60px;
  height: 60px;
  background-color: rgba(227, 30, 36, 0.1);
  border-color: var(--color-accent);
}

body.cursor-clicking #custom-cursor-circle {
  width: 30px;
  height: 30px;
  background-color: rgba(227, 30, 36, 0.3);
  border-color: var(--color-accent);
}

/* Structural Grids & Crosshair Markers */
.crosshairs {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 5;
}

.crosshair {
  position: absolute;
  font-family: monospace;
  font-size: 14px;
  color: rgba(227, 30, 36, 0.4);
  line-height: 1;
  width: 12px;
  height: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.crosshair.tl { top: 20px; left: 20px; }
.crosshair.tr { top: 20px; right: 20px; }
.crosshair.bl { bottom: 20px; left: 20px; }
.crosshair.br { bottom: 20px; right: 20px; }

/* Preloader Screen */
#preloader {
  position: fixed;
  inset: 0;
  z-index: 99999;
  background-color: var(--color-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 1s cubic-bezier(0.85, 0, 0.15, 1);
  will-change: transform;
}

.preloader-grid {
  position: absolute;
  inset: 0;
  background-image: 
    linear-gradient(var(--grid-color) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-color) 1px, transparent 1px);
  background-size: 80px 80px;
  background-position: center;
  opacity: 0.5;
}

.preloader-content {
  position: relative;
  text-align: center;
  z-index: 10;
}

.preloader-brand {
  font-size: 18px;
  font-weight: 800;
  letter-spacing: 4px;
  margin-bottom: 24px;
  color: var(--color-text-muted);
}

.preloader-reel {
  font-size: 10vw;
  font-weight: 900;
  line-height: 1;
  color: var(--color-text);
  font-family: 'Outfit', monospace;
  margin-bottom: 16px;
}

.preloader-reel .percent {
  color: var(--color-primary);
}

.preloader-status {
  font-size: 11px;
  letter-spacing: 6px;
  color: var(--color-primary);
  animation: pulse 1.5s infinite;
}

#preloader.loaded {
  transform: translateY(-100%);
  pointer-events: none;
}

@keyframes pulse {
  0%, 100% { opacity: 0.4; }
  50% { opacity: 1; }
}

/* Header */
.main-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--header-height);
  z-index: 1000;
  background-color: rgba(5, 6, 8, 0.8);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--color-border);
}

.header-container {
  max-width: var(--container-width);
  height: 100%;
  margin: 0 auto;
  padding: 0 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand-logo {
  display: flex;
  align-items: center;
}

.logo-img {
  height: 76px;
  width: auto;
  display: block;
  /* filter: invert(1) brightness(2.5); */
  transition: transform 0.3s ease, filter 0.3s ease;
}

.brand-logo:hover .logo-img {
  transform: scale(1.05);
  filter: invert(1) brightness(2.5) drop-shadow(0 0 6px rgba(227, 30, 36, 0.6));
}

.desktop-nav > ul {
  display: flex;
  list-style: none;
  gap: 32px;
  align-items: center;
  margin: 0;
  padding: 0;
}

.desktop-nav .nav-item {
  position: relative;
}

.desktop-nav .nav-item.has-dropdown > .nav-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}

.desktop-nav .nav-item.has-dropdown > .nav-link::before {
  content: '';
  width: 0;
  height: 0;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 4px solid currentColor;
  opacity: 0.55;
  transition: transform 0.2s ease;
}

.desktop-nav .nav-item.has-dropdown:hover > .nav-link::before,
.desktop-nav .nav-item.has-dropdown:focus-within > .nav-link::before {
  transform: rotate(180deg);
}

.desktop-nav .nav-dropdown {
  position: absolute;
  top: calc(100% + 14px);
  inset-inline-start: 0;
  min-width: 190px;
  list-style: none;
  margin: 0;
  padding: 8px 0;
  display: flex;
  flex-direction: column;
  gap: 0;
  background: rgba(11, 12, 16, 0.98);
  border: 1px solid var(--color-border);
  border-radius: 4px;
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.45);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s;
  z-index: 1001;
}

.desktop-nav .nav-item.has-dropdown:hover .nav-dropdown,
.desktop-nav .nav-item.has-dropdown:focus-within .nav-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.nav-dropdown-link {
  display: block;
  padding: 11px 18px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 1.5px;
  color: var(--color-text-muted);
  white-space: nowrap;
  transition: color 0.2s ease, background-color 0.2s ease;
}

.nav-dropdown-link:hover {
  color: var(--color-text);
  background-color: rgba(227, 30, 36, 0.08);
}

.nav-link {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 2px;
  color: var(--color-text-muted);
  position: relative;
  padding: 8px 0;
  transition: color 0.3s;
  white-space: nowrap;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--color-primary);
  transition: width 0.3s ease;
}

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

.nav-link:hover {
  color: var(--color-text);
}

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

.header-actions {
  display: flex;
  align-items: center;
  gap: 24px;
}

/* Action Button Styles */
.action-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid var(--color-border);
  padding: 10px 18px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1px;
  transition: all 0.3s;
}

.action-btn:hover {
  border-color: var(--color-primary);
  background-color: rgba(227, 30, 36, 0.05);
}

.header-profile-btn {
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  line-height: 1.2;
  padding: 8px 14px;
}

.header-profile-btn__short {
  display: none;
  font-size: 10px;
  color: var(--color-text-muted);
}

@media (max-width: 1200px) {
  .desktop-nav > ul {
    gap: 22px;
  }

  .header-profile-btn__label {
    display: none;
  }

  .header-profile-btn__short {
    display: block;
  }

  .header-profile-btn {
    align-items: center;
    padding: 10px 14px;
  }
}

/* Hamburger Menu Toggle */
.menu-hamburger {
  width: 44px;
  height: 44px;
  border: 1px solid var(--color-border);
  border-radius: 4px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  transition: all 0.3s;
}

.menu-hamburger span {
  display: block;
  width: 20px;
  height: 2px;
  background-color: var(--color-text);
  transition: transform 0.3s, width 0.3s;
}

.menu-hamburger:hover {
  border-color: var(--color-primary);
  background-color: rgba(227, 30, 36, 0.05);
}

.menu-hamburger:hover span:nth-child(2) {
  width: 14px;
}

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

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

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

/* Fullscreen Menu Overlay */
#fullscreen-menu {
  position: fixed;
  inset: 0;
  background-color: var(--color-bg);
  z-index: 10050;
  display: flex;
  align-items: center;
  justify-content: center;
  transform: translateY(100%);
  transition: transform 0.8s cubic-bezier(0.85, 0, 0.15, 1);
  overflow: hidden;
  will-change: transform;
  pointer-events: none;
  visibility: hidden;
}

#fullscreen-menu.open {
  transform: translateY(0);
  pointer-events: auto;
  visibility: visible;
}

body.menu-open {
  overflow: hidden;
}

body.menu-open .main-header {
  z-index: 10051;
}

.menu-grid-bg {
  position: absolute;
  inset: 0;
  background-image: 
    linear-gradient(var(--grid-color) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-color) 1px, transparent 1px);
  background-size: 100px 100px;
  background-position: center;
}

.menu-crosshairs {
  position: absolute;
  inset: 60px;
  border: 1px solid rgba(255, 255, 255, 0.03);
}

.menu-wrapper {
  position: relative;
  z-index: 10;
  max-width: var(--container-width);
  width: 100%;
  padding: 0 80px;
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  align-items: center;
  gap: 80px;
}

.menu-nav ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.menu-item {
  font-size: 5vw;
  font-weight: 900;
  line-height: 1;
  display: flex;
  align-items: flex-start;
  color: var(--color-text-muted);
  transition: color 0.3s, transform 0.3s;
}

.menu-item::before {
  content: attr(data-num);
  font-size: 16px;
  font-weight: 600;
  font-family: 'Outfit', monospace;
  color: var(--color-primary);
  margin-right: 20px;
  margin-top: 10px;
}

html[lang="ar"] .menu-item::before {
  margin-right: 0;
  margin-inline-end: 20px;
}

.menu-item:hover {
  color: var(--color-text);
  transform: translateX(20px);
}

html[lang="ar"] .menu-item:hover {
  transform: translateX(-20px);
}

.menu-info {
  border-inline-start: 1px solid var(--color-border);
  padding-inline-start: 60px;
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.menu-info-block h4 {
  font-size: 11px;
  letter-spacing: 2px;
  color: var(--color-primary);
  margin-bottom: 12px;
}

.menu-info-block p {
  font-size: 18px;
  color: var(--color-text-muted);
  line-height: 1.6;
}

.menu-info-block a:hover {
  color: var(--color-text);
}

.menu-socials {
  display: flex;
  gap: 24px;
}

.menu-socials a {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 1px;
  color: var(--color-text-muted);
}

.menu-socials a:hover {
  color: var(--color-primary);
}

/* Sections Core Design */
section {
  position: relative;
  width: 100%;
  padding: 140px 0;
  border-bottom: 1px solid var(--color-border);
}

section:not(.hero-section) {
  content-visibility: auto;
  contain-intrinsic-size: auto 760px;
}

.about-container,
.services-container,
.projects-container,
.gallery-container,
.blogs-container,
.contact-container,
.logos-container,
.partners-header,
.partners-showcase,
.footer-container {
  position: relative;
  z-index: 2;
}

.section-header {
  margin-bottom: 80px;
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
}

.section-header h2 {
  flex: 1;
  min-width: 200px;
}

.section-more {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 2px;
  color: var(--color-primary);
  white-space: nowrap;
  transition: letter-spacing 0.3s, opacity 0.3s;
}

.section-more:hover {
  letter-spacing: 3px;
  opacity: 0.85;
}

.section-num {
  font-family: monospace;
  color: var(--color-primary);
  font-size: 14px;
  letter-spacing: 2px;
  display: block;
  margin-bottom: 12px;
  width: 100%;
}

.section-header h2 {
  font-size: 3.5rem;
  font-weight: 900;
  letter-spacing: 1px;
  position: relative;
}

.section-header h2::after {
  content: '';
  display: block;
  width: 0;
  height: 2px;
  margin-top: 18px;
  background: linear-gradient(90deg, var(--color-primary), transparent);
  transition: width 1.1s cubic-bezier(0.215, 0.61, 0.355, 1) 0.25s;
}

.scroll-reveal.revealed .section-header h2::after {
  width: 72px;
}

/* Hero Section */
.hero-section {
  height: 100vh;
  min-height: 750px;
  padding: 0;
  display: flex;
  align-items: stretch;
  overflow: hidden;
}

.hero-section .crosshairs {
  position: absolute;
  inset: 40px;
  border: 1px solid rgba(255, 255, 255, 0.02);
}

.section-lines {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
}

.vertical-line {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 1px;
  background-color: var(--grid-line-color);
}

.vertical-line.l1 { left: 20%; }
.vertical-line.l2 { left: 40%; }
.vertical-line.l3 { left: 60%; }
.vertical-line.l4 { left: 80%; }

.hero-container {
  max-width: var(--container-width);
  width: 100%;
  margin: 0 auto;
  padding: 0 40px;
  position: relative;
  z-index: 10;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding-top: calc(var(--header-height) + 30px);
  padding-bottom: 30px;
  height: 100vh;
  min-height: 750px;
}

/* Hero Meta Row */
.hero-meta-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--color-border);
}

.hero-tag {
  display: flex;
  align-items: center;
  gap: 10px;
}

.hero-tag-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--color-primary);
  box-shadow: 0 0 12px rgba(227, 30, 36, 0.6);
  animation: pulse-dot 2s infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; box-shadow: 0 0 12px rgba(227, 30, 36, 0.6); }
  50% { opacity: 0.5; box-shadow: 0 0 4px rgba(227, 30, 36, 0.2); }
}

.hero-tag-text {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--color-text-muted);
}

.hero-tag-text.mono {
  font-family: monospace;
  letter-spacing: 1px;
  color: rgba(255, 255, 255, 0.3);
}

/* Hero Split Grid */
.hero-split {
  display: flex;
  align-items: center;
  flex: 1;
  max-width: 720px;
}

.hero-headline-col {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 40px;
}

.hero-headline {
  margin: 0;
}

.hero-line {
  font-weight: 900;
  line-height: 0.85;
  letter-spacing: -3px;
  text-transform: uppercase;
  display: block;
  opacity: 0;
  transform: translateY(28px);
}

body.site-ready .hero-line {
  animation: hero-rise 0.9s cubic-bezier(0.215, 0.61, 0.355, 1) forwards;
}

body.site-ready .hero-line.line-1 { animation-delay: 0.1s; }
body.site-ready .hero-line.line-2 { animation-delay: 0.22s; }
body.site-ready .hero-line.line-3 { animation-delay: 0.34s; }

body.site-ready .hero-description,
body.site-ready .hero-meta-row,
body.site-ready .hero-bottom-row {
  animation: hero-rise 0.9s cubic-bezier(0.215, 0.61, 0.355, 1) forwards;
  opacity: 0;
}

body.site-ready .hero-description { animation-delay: 0.48s; }
body.site-ready .hero-meta-row { animation-delay: 0.05s; }
body.site-ready .hero-bottom-row { animation-delay: 0.62s; }

@keyframes hero-rise {
  from {
    opacity: 0;
    transform: translateY(28px);
    filter: blur(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0);
  }
}

.hero-line.line-1 {
  font-size: 6vw;
  color: var(--color-text-muted);
}

.hero-line.line-2 {
  font-size: 120px;
  color: var(--color-text);
}

.hero-line.line-3 {
  font-size: 80px;
}

.hero-line.accent {
  color: var(--color-primary);
  text-shadow: 0 0 60px rgba(227, 30, 36, 0.12);
  -webkit-text-stroke: 0;
}

.hero-description {
  max-width: 420px;
  font-size: 15px;
  line-height: 1.7;
  color: var(--color-text-muted);
  border-left: 2px solid var(--color-primary);
  padding-left: 20px;
}

html[lang="ar"] .hero-description {
  border-left: none;
  padding-left: 0;
  border-right: 2px solid var(--color-primary);
  padding-right: 20px;
}

/* Hero Full-Width Video */
.hero-video-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  z-index: 0;
  pointer-events: none;
}

.hero-video-card {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  border-radius: 0;
  border: none;
  background-color: var(--color-bg-offset);
}

.hero-video-card .hero-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.55;
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.hero-video-bg:hover .hero-video {
  opacity: 0.7;
  transform: scale(1.02);
}

/* Matterport 3D Tour (hero background) */
.hero-matterport-bg {
  pointer-events: auto;
}

.hero-matterport {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  opacity: 0.55;
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.hero-matterport-bg:hover .hero-matterport {
  opacity: 0.7;
  transform: scale(1.02);
}

.video-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    rgba(5, 6, 8, 0.92) 0%,
    rgba(5, 6, 8, 0.75) 35%,
    rgba(5, 6, 8, 0.45) 65%,
    rgba(5, 6, 8, 0.3) 100%
  );
  z-index: 1;
  pointer-events: none;
}

html[lang="ar"] .video-card-overlay {
  background: linear-gradient(
    270deg,
    rgba(5, 6, 8, 0.92) 0%,
    rgba(5, 6, 8, 0.75) 35%,
    rgba(5, 6, 8, 0.45) 65%,
    rgba(5, 6, 8, 0.3) 100%
  );
}

.video-card-border {
  position: absolute;
  inset: 40px;
  border: 1px solid rgba(255, 255, 255, 0.04);
  border-radius: 0;
  pointer-events: none;
  z-index: 2;
}

.video-card-corner {
  position: absolute;
  font-family: monospace;
  font-size: 12px;
  color: rgba(227, 30, 36, 0.5);
  z-index: 3;
  line-height: 1;
}

.video-card-corner.tl { top: 32px; left: 32px; }
.video-card-corner.tr { top: 32px; right: 32px; }
.video-card-corner.bl { bottom: 32px; left: 32px; }
.video-card-corner.br { bottom: 32px; right: 32px; }

.video-card-label {
  position: absolute;
  bottom: 40px;
  right: 40px;
  left: auto;
  transform: none;
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: monospace;
  font-size: 10px;
  letter-spacing: 2px;
  color: rgba(255, 255, 255, 0.5);
  z-index: 3;
  background-color: rgba(5, 6, 8, 0.6);
  padding: 6px 14px;
  border-radius: 40px;
  backdrop-filter: blur(4px);
}

.accent-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background-color: var(--color-primary);
  display: inline-block;
  animation: pulse-dot 2s infinite;
}

/* Hero Bottom Row */
.hero-bottom-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-top: 24px;
  border-top: 1px solid var(--color-border);
}

/* Hero CTA */
.hero-cta {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 28px 14px 16px;
  border: 1px solid var(--color-border);
  border-radius: 50px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--color-text);
  transition: all 0.3s ease;
  white-space: nowrap;
}

.hero-cta:hover {
  border-color: var(--color-primary);
  background-color: var(--color-primary);
  color: #fff;
}

.cta-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background-color: var(--color-primary);
  color: #fff;
  transition: transform 0.3s;
}

.hero-cta:hover .cta-arrow {
  transform: rotate(45deg);
  background-color: #fff;
  color: var(--color-bg);
}

/* Scroll Indicator */
.hero-scroll-indicator {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.scroll-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, var(--color-primary), transparent);
  animation: scroll-pulse 2s infinite;
}

@keyframes scroll-pulse {
  0% { opacity: 0; transform: scaleY(0); transform-origin: top; }
  50% { opacity: 1; transform: scaleY(1); }
  100% { opacity: 0; transform: scaleY(0); transform-origin: bottom; }
}

.scroll-text {
  font-family: monospace;
  font-size: 9px;
  letter-spacing: 3px;
  color: var(--color-text-muted);
}

/* Services Marquee */
.hero-services-marquee {
  overflow: hidden;
  max-width: 360px;
  mask-image: linear-gradient(to right, transparent, black 20%, black 80%, transparent);
  -webkit-mask-image: linear-gradient(to right, transparent, black 20%, black 80%, transparent);
}

.marquee-track {
  display: flex;
  align-items: center;
  gap: 16px;
  white-space: nowrap;
  animation: marquee 20s linear infinite;
  font-family: monospace;
  font-size: 11px;
  letter-spacing: 1px;
  color: var(--color-text-muted);
}

.marquee-track .sep {
  color: var(--color-primary);
  font-size: 16px;
}

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

/* Magnetic Button */
.magnetic-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 24px 48px;
  border-radius: 50px;
  border: 1px solid var(--color-border);
  overflow: hidden;
  transition: border-color 0.3s;
}

.btn-circle {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background-color: var(--color-primary);
  transform: translate(-50%, -50%);
  transition: width 0.6s cubic-bezier(0.85, 0, 0.15, 1), height 0.6s cubic-bezier(0.85, 0, 0.15, 1);
  z-index: 1;
}

.btn-text {
  position: relative;
  z-index: 2;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 2px;
  color: #fff;
  transition: transform 0.3s;
}

.magnetic-btn:hover {
  border-color: var(--color-primary);
}

.magnetic-btn:hover .btn-circle {
  width: 300px;
  height: 300px;
}

/* About Section */
.about-section {
  background-color: var(--color-bg);
}

.about-container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 40px;
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.about-text-block h3 {
  font-size: 2.2rem;
  font-weight: 800;
  line-height: 1.3;
  margin-bottom: 24px;
}

.about-text-block p {
  color: var(--color-text-muted);
  font-size: 16px;
  line-height: 1.7;
  margin-bottom: 48px;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.stat-box {
  border: 1px solid var(--color-border);
  padding: 30px 20px;
  border-radius: 4px;
  text-align: center;
  position: relative;
  background-color: var(--color-bg-offset);
}

.stat-num {
  font-size: 3.5rem;
  font-weight: 900;
  color: var(--color-primary);
  margin-bottom: 8px;
  font-family: 'Outfit', sans-serif;
}

.stat-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 1px;
  color: var(--color-text-muted);
}

/* About profile strip (home — about / mission / vision) */
.about-profile-section {
  background-color: var(--color-bg);
  border-bottom: 1px solid var(--color-border);
}

.about-profile-container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 40px;
}

.about-profile-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
}

.about-profile-col {
  position: relative;
  padding: 56px 44px;
  min-height: 100%;
}

.about-profile-col:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 12%;
  bottom: 12%;
  inset-inline-end: 0;
  width: 1px;
  background: linear-gradient(
    to bottom,
    transparent,
    rgba(255, 255, 255, 0.14),
    transparent
  );
  pointer-events: none;
}

.about-profile-num {
  display: block;
  font-size: clamp(3rem, 5vw, 4.25rem);
  font-weight: 900;
  line-height: 1;
  color: var(--color-primary);
  margin-bottom: 36px;
}

.about-profile-heading {
  font-size: clamp(1.35rem, 2.2vw, 1.75rem);
  font-weight: 800;
  letter-spacing: 1px;
  text-transform: uppercase;
  line-height: 1.25;
  margin-bottom: 28px;
}

.about-profile-text {
  color: var(--color-text-muted);
  font-size: 15px;
  line-height: 1.8;
  margin-bottom: 40px;
}

.about-profile-text p:last-child {
  margin-bottom: 0;
}

.about-profile-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 16px 30px;
  background-color: var(--color-primary);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  border-radius: 6px;
  transition: transform 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease;
}

.about-profile-btn:hover {
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(227, 30, 36, 0.28);
}

.about-profile-item-title {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 28px;
}

.about-profile-icon {
  width: 48px;
  height: 48px;
  margin-bottom: 28px;
}

.about-profile-icon img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.about-profile-item-text {
  color: var(--color-text-muted);
  font-size: 15px;
  line-height: 1.8;
}

.about-profile-item-text p:last-child {
  margin-bottom: 0;
}

/* Stats Bar (homepage strip below hero) */
.stats-bar-section {
  position: relative;
  z-index: 2;
  padding: 0;
  background-color: var(--color-bg-offset);
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
}

.stats-bar {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 40px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.stats-bar .stat-item {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 28px 32px;
  border-inline-end: 1px solid var(--color-border);
  transition: background-color 0.3s ease;
}

.stats-bar .stat-item:last-child {
  border-inline-end: none;
}

.stats-bar .stat-item:hover {
  background-color: rgba(227, 30, 36, 0.03);
}

.stats-bar .stat-icon {
  flex-shrink: 0;
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--color-border);
  border-radius: 4px;
  background-color: rgba(227, 30, 36, 0.05);
}

.stats-bar .stat-icon img {
  width: 28px;
  height: 28px;
  object-fit: contain;
  display: block;
}

.stats-bar .stat-content {
  min-width: 0;
}

.stats-bar .stat-num {
  font-size: clamp(2rem, 3vw, 2.75rem);
  line-height: 1;
  margin-bottom: 6px;
}

.stats-bar .stat-label {
  line-height: 1.45;
  text-transform: uppercase;
}

.about-images {
  position: relative;
  height: 500px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.image-box {
  position: absolute;
  border: 1px solid var(--color-border);
  padding: 10px;
  background-color: var(--color-bg);
  border-radius: 4px;
}

.image-box img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 2px;
  transition: transform 0.5s;
}

.image-box:hover img {
  transform: scale(1.03);
}

.primary-img {
  width: 320px;
  height: 400px;
  top: 0;
  left: 40px;
  z-index: 2;
}

.secondary-img {
  width: 260px;
  height: 320px;
  bottom: 0;
  right: 40px;
  z-index: 3;
  box-shadow: -20px 20px 40px rgba(0, 0, 0, 0.5);
}

html[lang="ar"] .primary-img {
  left: auto;
  right: 40px;
}

html[lang="ar"] .secondary-img {
  right: auto;
  left: 40px;
  box-shadow: 20px 20px 40px rgba(0, 0, 0, 0.5);
}

/* Image corner notches */
.box-corner {
  position: absolute;
  width: 8px;
  height: 8px;
  border: 2px solid var(--color-primary);
  z-index: 4;
}

.box-corner.tl { top: -2px; left: -2px; border-right: none; border-bottom: none; }
.box-corner.tr { top: -2px; right: -2px; border-left: none; border-bottom: none; }
.box-corner.bl { bottom: -2px; left: -2px; border-right: none; border-top: none; }
.box-corner.br { bottom: -2px; right: -2px; border-left: none; border-top: none; }

/* Services Section */
.services-section {
  background-color: var(--color-bg);
}

.services-container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 40px;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px; /* Outlines via grid gaps with background */
  background-color: var(--color-border);
  border: 1px solid var(--color-border);
  border-radius: 4px;
  overflow: hidden;
}

.service-card {
  background-color: var(--color-bg);
  padding: 0;
  position: relative;
  transition: background-color 0.3s;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  min-height: 280px;
}

a.service-card {
  display: flex;
  flex-direction: column;
  color: inherit;
  text-decoration: none;
}

.service-card--has-image {
  min-height: 360px;
  justify-content: flex-end;
  background-color: var(--color-bg-offset);
}

.service-card--has-image::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background-image:
    linear-gradient(
      to top,
      rgba(5, 6, 8, 0.96) 0%,
      rgba(5, 6, 8, 0.82) 42%,
      rgba(5, 6, 8, 0.45) 100%
    ),
    var(--service-image);
  background-size: cover;
  background-position: center;
  transition: transform 0.55s ease, filter 0.55s ease;
}

.service-card--has-image:hover::before {
  transform: scale(1.06);
  filter: brightness(1.08);
}

.service-card-body {
  padding: 60px 40px;
  flex: 1;
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.service-card--has-image .service-card-body {
  padding: 40px 40px 56px;
  margin-top: auto;
  width: 100%;
}

.service-card--has-image:hover {
  background-color: transparent;
}

.service-card-num {
  font-size: 14px;
  font-weight: 700;
  color: var(--color-primary);
  font-family: monospace;
  margin-bottom: 40px;
  display: block;
}

.service-card h3 {
  font-size: 1.8rem;
  font-weight: 800;
  margin-bottom: 16px;
}

.service-card p {
  color: var(--color-text-muted);
  font-size: 14px;
  line-height: 1.6;
  margin-bottom: 40px;
}

.service-details {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.service-details span {
  font-size: 11px;
  font-weight: 600;
  padding: 6px 12px;
  border: 1px solid var(--color-border);
  border-radius: 40px;
  color: var(--color-text-muted);
}

/* Service Card Hover States */
.service-card::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 0px;
  background-color: var(--color-primary);
  transition: height 0.3s cubic-bezier(0.85, 0, 0.15, 1);
  z-index: 3;
}

.service-card:hover {
  background-color: var(--color-bg-offset);
}

.service-card:hover::after {
  height: 4px;
}

/* Projects Section */
.projects-section {
  background-color: var(--color-bg);
}

.projects-container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 40px;
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 60px;
}

.project-card {
  border: 1px solid var(--color-border);
  border-radius: 4px;
  overflow: hidden;
  background-color: var(--color-bg-offset);
  transition: border-color 0.3s, box-shadow 0.3s;
}

.project-card:hover {
  border-color: var(--color-primary);
  box-shadow: 0 20px 40px rgba(227, 30, 36, 0.05);
}

.project-image {
  position: relative;
  height: 380px;
  overflow: hidden;
  border-bottom: 1px solid var(--color-border);
}

.project-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s;
}

.project-card:hover .project-image img {
  transform: scale(1.03);
}

.project-category {
  position: absolute;
  top: 20px;
  left: 20px;
  background-color: rgba(5, 6, 8, 0.85);
  border: 1px solid var(--color-primary);
  padding: 6px 12px;
  font-size: 11px;
  font-weight: 700;
  border-radius: 2px;
  letter-spacing: 1px;
  color: var(--color-text);
  z-index: 2;
}

html[lang="ar"] .project-category {
  left: auto;
  right: 20px;
}

.project-info {
  padding: 40px;
}

.project-info h3 {
  font-size: 1.5rem;
  font-weight: 800;
  margin-bottom: 12px;
}

.project-info p {
  color: var(--color-text-muted);
  font-size: 14px;
  line-height: 1.6;
}

/* Asymmetric shifts for projects section */
.projects-grid .project-card:nth-child(even) {
  transform: translateY(60px);
}

/* Video Gallery Section */
.gallery-section {
  background-color: var(--color-bg-offset);
}

.gallery-container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 40px;
}

.gallery-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
  grid-template-rows: repeat(2, minmax(0, auto));
  gap: 28px;
}

.gallery-card {
  border: 1px solid var(--color-border);
  border-radius: 6px;
  overflow: hidden;
  background-color: var(--color-bg);
  transition: border-color 0.35s ease, box-shadow 0.35s ease, transform 0.35s ease;
}

.gallery-card:hover {
  border-color: rgba(227, 30, 36, 0.45);
  box-shadow: 0 20px 48px rgba(227, 30, 36, 0.08);
}

.gallery-card--featured {
  grid-row: span 2;
  display: flex;
  flex-direction: column;
}

.video-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background-color: #000;
  overflow: hidden;
}

.gallery-card--featured .video-frame {
  flex: 1;
  aspect-ratio: auto;
  min-height: 320px;
}

.video-frame::before {
  content: '';
  position: absolute;
  inset: 12px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 2px;
  pointer-events: none;
  z-index: 2;
}

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

.video-play-btn {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  padding: 0;
  border: 0;
  background: none;
  cursor: none;
  overflow: hidden;
}

.video-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease, filter 0.5s ease;
  filter: brightness(0.72);
}

.video-play-icon {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 68px;
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(227, 30, 36, 0.92);
  color: #fff;
  box-shadow: 0 12px 32px rgba(227, 30, 36, 0.35);
  transition: transform 0.3s ease, background-color 0.3s ease;
}

.video-play-btn:hover .video-thumb {
  transform: scale(1.04);
  filter: brightness(0.85);
}

.video-play-btn:hover .video-play-icon {
  transform: translate(-50%, -50%) scale(1.08);
  background: var(--color-accent);
}

.video-frame.is-playing .video-play-btn {
  display: none;
}

.gallery-info {
  padding: 22px 24px 24px;
  border-top: 1px solid var(--color-border);
}

.gallery-tag {
  display: inline-block;
  margin-bottom: 10px;
  padding: 5px 10px;
  border: 1px solid rgba(227, 30, 36, 0.35);
  border-radius: 2px;
  font-family: monospace;
  font-size: 10px;
  letter-spacing: 2px;
  color: var(--color-primary);
}

.gallery-info h3 {
  font-size: 1.15rem;
  font-weight: 800;
  line-height: 1.35;
}

.gallery-card--featured .gallery-info h3 {
  font-size: 1.45rem;
}

.gallery-card.reveal-item.revealed:hover {
  transform: translateY(-4px);
}

/* Partners Section */
.partners-section {
  padding: 100px 0 90px;
  background-color: var(--color-bg-offset);
  border-bottom: 1px solid var(--color-border);
  overflow: hidden;
}

.partners-header {
  text-align: center;
  margin-bottom: 56px;
  padding: 0 40px;
}

.partners-header .section-num {
  color: var(--color-primary);
}

.partners-header h2 {
  font-size: clamp(2.2rem, 4vw, 3.2rem);
  font-weight: 900;
  letter-spacing: -1px;
  color: var(--color-text);
}

.partners-showcase {
  display: flex;
  flex-direction: column;
  gap: 28px;
  width: 100%;
}

.partners-band {
  overflow: hidden;
  width: 100%;
  mask-image: linear-gradient(
    to right,
    transparent 0%,
    #000 10%,
    #000 90%,
    transparent 100%
  );
  -webkit-mask-image: linear-gradient(
    to right,
    transparent 0%,
    #000 10%,
    #000 90%,
    transparent 100%
  );
}

.partners-band--offset {
  margin-top: 4px;
}

.partners-band:hover .partners-track {
  animation-play-state: paused;
}

.partners-track {
  display: flex;
  align-items: center;
  gap: 32px;
  width: max-content;
  padding: 8px 16px;
  will-change: transform;
}

.partners-track--left {
  animation: partners-scroll-left 40s linear infinite;
}

.partners-track--right {
  animation: partners-scroll-right 46s linear infinite;
}

@keyframes partners-scroll-left {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

@keyframes partners-scroll-right {
  0% { transform: translateX(-50%); }
  100% { transform: translateX(0); }
}

.partner-badge {
  flex: 0 0 auto;
  width: 148px;
  height: 148px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px;
  border-radius: 18px;
  background-color: #000000;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow:
    0 0 0 1px rgba(227, 30, 36, 0.04),
    0 18px 40px rgba(0, 0, 0, 0.22);
  transition: transform 0.35s ease, border-color 0.35s ease, box-shadow 0.35s ease;
}

.partner-badge:hover {
  transform: scale(1.06);
  border-color: rgba(227, 30, 36, 0.45);
  box-shadow:
    0 0 0 1px rgba(227, 30, 36, 0.2),
    0 0 32px rgba(227, 30, 36, 0.12),
    0 22px 48px rgba(0, 0, 0, 0.28);
}

.partner-badge img {
  display: block;
  width: 100%;
  height: 100%;
  max-width: 112px;
  max-height: 112px;
  object-fit: contain;
  pointer-events: none;
  filter: none;
  opacity: 1;
  transition: transform 0.4s ease, opacity 0.4s ease;
}

.partner-badge:hover img {
  transform: scale(1.06);
}

/* Logos / Clients & Partners */
.logos-section {
  position: relative;
  padding: 100px 0;
  background-color: var(--color-bg);
  border-bottom: 1px solid var(--color-border);
  overflow: hidden;
}

.logos-section--partners {
  background-color: var(--color-bg-offset);
}

.logos-container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 40px;
}

.logos-group-header {
  margin-bottom: 48px;
}

.logos-group-header .section-num {
  display: block;
  font-family: monospace;
  font-size: 12px;
  color: var(--color-text-muted);
  margin-bottom: 12px;
}

.logos-group-header h2 {
  font-size: clamp(2rem, 3.5vw, 2.8rem);
  font-weight: 900;
  letter-spacing: -1px;
}

.logos-swiper {
  overflow: hidden;
  padding: 8px 0 16px;
}

.logos-swiper .swiper-slide {
  display: flex;
  align-items: center;
  justify-content: center;
  height: auto;
}

.logo-item {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 110px;
  padding: 18px 24px;
}

.logo-item img {
  display: block;
  max-width: 240px;
  max-height: 96px;
  width: auto;
  height: auto;
  object-fit: contain;
}

.logos-section--partners .logo-item img,
.logos-section--clients .logo-item img {
  filter: none;
  opacity: 1;
  transition: transform 0.4s ease, opacity 0.4s ease;
}

.logos-section--partners .logo-item:hover img,
.logos-section--partners .swiper-slide:hover .logo-item img,
.logos-section--clients .logo-item:hover img,
.logos-section--clients .swiper-slide:hover .logo-item img {
  transform: scale(1.06);
}

.logos-swiper .swiper-wrapper {
  transition-timing-function: linear !important;
}

/* Blogs Section */
.blogs-section {
  background-color: var(--color-bg);
}

.blogs-container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 40px;
}

.blogs-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}

.blog-card {
  border: 1px solid var(--color-border);
  border-radius: 4px;
  overflow: hidden;
  background-color: var(--color-bg-offset);
  transition: all 0.3s;
}

.blog-card:hover {
  border-color: var(--color-primary);
  transform: translateY(-5px);
}

.blog-image {
  height: 220px;
  overflow: hidden;
  border-bottom: 1px solid var(--color-border);
}

.blog-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s;
}

.blog-card:hover .blog-image img {
  transform: scale(1.04);
}

.blog-info {
  padding: 30px;
}

.blog-meta {
  font-family: monospace;
  font-size: 10px;
  color: var(--color-primary);
  letter-spacing: 1px;
  margin-bottom: 16px;
}

.blog-info h3 {
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1.4;
  margin-bottom: 12px;
}

.blog-info p {
  font-size: 13px;
  color: var(--color-text-muted);
  line-height: 1.6;
}

/* Blogs Showcase (Homepage) */
.blogs-showcase {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  gap: 32px;
  align-items: stretch;
}

.blogs-stack {
  display: grid;
  grid-template-rows: 1fr 1fr;
  gap: 24px;
  min-height: 100%;
}

a.blog-card.blog-card--featured {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.blog-card--featured .blog-image {
  flex: 1;
  min-height: 280px;
  height: auto;
  position: relative;
}

a.blog-card.blog-card--compact {
  display: flex;
  flex-direction: column;
  min-height: 0;
  height: 100%;
}

.blog-card--compact .blog-image {
  flex-shrink: 0;
  height: 300px;
  border-bottom: 1px solid var(--color-border);
  border-inline-end: none;
}

html[lang="ar"] .blog-card--compact .blog-image {
  border-inline-start: none;
}

.blog-card--compact .blog-info {
  flex: 1;
  padding: 18px 20px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  min-width: 0;
}

.blog-card--compact .blog-info h3 {
  font-size: 0.95rem;
  line-height: 1.35;
  margin-bottom: 10px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.blog-card--compact .blog-meta {
  margin-bottom: 10px;
}

.blog-card--compact .blog-read-more {
  margin-top: auto;
  padding-top: 10px;
}

.blog-image {
  position: relative;
}

.blog-tag {
  position: absolute;
  top: 16px;
  left: 16px;
  background: var(--color-primary);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 2px;
  padding: 6px 12px;
  z-index: 2;
}

html[lang="ar"] .blog-tag {
  left: auto;
  right: 16px;
}

a.blog-card {
  color: inherit;
  text-decoration: none;
}

a.blog-card:not(.blog-card--compact):not(.blog-card--featured) {
  display: block;
}

.blog-read-more {
  display: inline-block;
  margin-top: 16px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2px;
  color: var(--color-primary);
  transition: letter-spacing 0.3s;
}

a.blog-card:hover .blog-read-more {
  letter-spacing: 3px;
}

/* Blogs Page */
.blogs-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  margin-bottom: 48px;
  padding-bottom: 32px;
  border-bottom: 1px solid var(--color-border);
}

.blog-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.blog-filter {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2px;
  padding: 10px 18px;
  border: 1px solid var(--color-border);
  color: var(--color-text-muted);
  transition: all 0.3s;
}

.blog-filter:hover,
.blog-filter.is-active {
  color: var(--color-text);
  border-color: var(--color-primary);
  background: rgba(227, 30, 36, 0.08);
}

.blogs-count {
  font-family: monospace;
  font-size: 12px;
  letter-spacing: 2px;
  color: var(--color-text-muted);
}

#blog-count-num {
  color: var(--color-primary);
  font-weight: 700;
}

.blog-card--page {
  display: grid;
  grid-template-columns: 1fr 1fr;
  margin-bottom: 48px;
}

.blog-card--page .blog-image {
  height: 100%;
  min-height: 320px;
}

.blog-card--page .blog-info {
  padding: 48px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.blog-card--page .blog-info h3 {
  font-size: 1.75rem;
}

.blogs-grid--page {
  margin-top: 0;
}

.blog-card.is-hidden {
  display: none;
}

.blog-card--page.is-hidden {
  display: none;
}

.blogs-newsletter {
  margin-top: 80px;
  padding: 48px;
  border: 1px solid var(--color-border);
  background: rgba(255, 255, 255, 0.02);
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 40px;
  align-items: center;
}

.blogs-newsletter-label {
  font-family: monospace;
  font-size: 11px;
  letter-spacing: 3px;
  color: var(--color-primary);
  display: block;
  margin-bottom: 16px;
}

.blogs-newsletter h3 {
  font-size: 1.5rem;
  font-weight: 800;
  margin-bottom: 12px;
  line-height: 1.3;
}

.blogs-newsletter p {
  font-size: 14px;
  color: var(--color-text-muted);
  line-height: 1.6;
}

.blogs-newsletter-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
  position: relative;
}

.blogs-newsletter-form input {
  width: 100%;
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--color-border);
  padding: 12px 0;
  font-size: 14px;
  color: var(--color-text);
  font-family: inherit;
  outline: none;
}

.blogs-newsletter-form label {
  position: absolute;
  top: 12px;
  left: 0;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2px;
  color: var(--color-text-muted);
  pointer-events: none;
  transition: transform 0.3s, font-size 0.3s, color 0.3s;
}

html[lang="ar"] .blogs-newsletter-form label {
  left: auto;
  right: 0;
}

.blogs-newsletter-form input:focus + label,
.blogs-newsletter-form input:not(:placeholder-shown) + label {
  transform: translateY(-22px);
  font-size: 9px;
  color: var(--color-primary);
}

.blogs-newsletter-form .submit-btn {
  align-self: flex-start;
}

/* Contact Section */
.contact-section {
  background-color: var(--color-bg);
}

.contact-container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 40px;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 80px;
}

.contact-info-block h3 {
  font-size: 2.2rem;
  font-weight: 800;
  line-height: 1.3;
  margin-bottom: 24px;
}

.contact-info-block p {
  color: var(--color-text-muted);
  font-size: 16px;
  line-height: 1.7;
  margin-bottom: 48px;
}

.contact-details {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.contact-detail-item {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.contact-detail-item .label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2px;
  color: var(--color-primary);
}

.contact-detail-item .value {
  font-size: 20px;
  font-weight: 600;
}

.contact-detail-item a.value {
  transition: color 0.3s;
}

.contact-detail-item a.value:hover {
  color: var(--color-primary);
}

/* Form Styles */
.form-grid {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.form-group {
  position: relative;
  width: 100%;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  background: none;
  border: none;
  border-bottom: 1px solid var(--color-border);
  padding: 12px 0;
  font-size: 16px;
  color: var(--color-text);
  font-family: inherit;
  outline: none;
  transition: border-color 0.3s;
}

.form-group select {
  cursor: none;
  color: var(--color-text-muted);
}

.form-group select option {
  background-color: var(--color-bg);
  color: var(--color-text);
}

.form-group label {
  position: absolute;
  left: 0;
  top: 12px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 2px;
  color: var(--color-text-muted);
  pointer-events: none;
  transition: all 0.3s ease;
}

html[lang="ar"] .form-group label {
  left: auto;
  right: 0;
}

/* Floating labels */
.form-group input:focus ~ label,
.form-group input:not(:placeholder-shown) ~ label,
.form-group textarea:focus ~ label,
.form-group textarea:not(:placeholder-shown) ~ label,
.form-group select:focus ~ label,
.form-group select:valid ~ label {
  top: -20px;
  font-size: 10px;
  color: var(--color-primary);
}

/* Bottom highlight line */
.input-line {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--color-primary);
  transition: width 0.3s ease;
}

html[lang="ar"] .input-line {
  left: auto;
  right: 0;
}

.form-group input:focus ~ .input-line,
.form-group textarea:focus ~ .input-line,
.form-group select:focus ~ .input-line {
  width: 100%;
}

/* Custom dropdown arrow for select */
.form-group::after {
  content: 'â–¼';
  font-size: 8px;
  position: absolute;
  right: 0;
  bottom: 16px;
  color: var(--color-text-muted);
  pointer-events: none;
}

html[lang="ar"] .form-group::after {
  right: auto;
  left: 0;
}

/* Submit Button */
.submit-btn {
  position: relative;
  padding: 20px 40px;
  border: 1px solid var(--color-border);
  border-radius: 4px;
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 2px;
  overflow: hidden;
  text-align: center;
  transition: all 0.3s;
}

.btn-fill {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 0;
  background-color: var(--color-primary);
  transition: height 0.3s cubic-bezier(0.85, 0, 0.15, 1);
  z-index: 1;
}

.submit-btn:hover {
  border-color: var(--color-primary);
}

.submit-btn:hover .btn-fill {
  height: 100%;
}

.submit-btn .btn-text {
  position: relative;
  z-index: 2;
}

/* Footer */
.main-footer {
  position: relative;
  padding: 0 0 32px;
  background-color: var(--color-bg);
  border-top: 1px solid var(--color-border);
  overflow: hidden;
}

.footer-accent-bar {
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--color-primary) 20%, var(--color-accent) 50%, var(--color-primary) 80%, transparent);
}

.footer-container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 64px 40px 0;
  position: relative;
  z-index: 2;
}

.footer-main {
  display: grid;
  grid-template-columns: minmax(280px, 1.1fr) minmax(0, 1.6fr);
  gap: 72px;
  padding-bottom: 56px;
  border-bottom: 1px solid var(--color-border);
}

.footer-logo-link {
  display: inline-flex;
  margin-bottom: 24px;
}

.footer-logo {
  height: 120px;
  width: auto;
  display: block;
  transition: transform 0.3s ease, filter 0.3s ease;
}

.footer-logo-link:hover .footer-logo {
  transform: scale(1.04);
  filter: drop-shadow(0 0 12px rgba(227, 30, 36, 0.35));
}

.footer-tagline {
  max-width: 340px;
  font-size: 14px;
  line-height: 1.75;
  color: var(--color-text-muted);
  margin-bottom: 28px;
}

.footer-cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 22px;
  border: 1px solid var(--color-border);
  border-radius: 50px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--color-text);
  transition: all 0.3s ease;
}

.footer-cta:hover {
  border-color: var(--color-primary);
  background-color: var(--color-primary);
  color: #fff;
}

.footer-cta svg {
  transition: transform 0.3s ease;
}

.footer-cta:hover svg {
  transform: translate(2px, -2px);
}

.footer-nav-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 40px;
}

.footer-label {
  display: block;
  font-family: monospace;
  font-size: 11px;
  letter-spacing: 2px;
  color: var(--color-primary);
  margin-bottom: 22px;
}

.footer-block ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.footer-block ul a,
.footer-block ul li {
  font-size: 14px;
  color: var(--color-text-muted);
  line-height: 1.5;
  transition: color 0.3s ease;
}

.footer-block ul a:hover {
  color: var(--color-text);
}

.footer-contact-list li:not(:has(a)) {
  color: var(--color-text-muted);
}

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

.footer-socials a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border: 1px solid var(--color-border);
  border-radius: 50%;
  font-family: monospace;
  font-size: 11px;
  font-weight: 700;
  color: var(--color-text-muted);
  transition: all 0.3s ease;
}

.footer-socials a:hover {
  color: #fff;
  border-color: var(--color-primary);
  background-color: var(--color-primary);
}

.footer-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-top: 28px;
}

.footer-copy {
  font-size: 12px;
  color: var(--color-text-muted);
  letter-spacing: 0.5px;
}

.footer-bar-meta {
  display: flex;
  align-items: center;
  gap: 24px;
}

.footer-version {
  font-family: monospace;
  font-size: 11px;
  letter-spacing: 1px;
  color: rgba(255, 255, 255, 0.35);
}

.footer-top {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2px;
  color: var(--color-text);
  transition: color 0.3s ease;
}

.footer-top:hover {
  color: var(--color-primary);
}

.footer-top svg {
  transition: transform 0.3s ease;
}

.footer-top:hover svg {
  transform: translateY(-2px);
}

/* Fixed Floating Contact */
.floating-contact {
  position: fixed;
  right: 28px;
  bottom: 32px;
  z-index: 9990;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

html[lang="ar"] .floating-contact {
  right: auto;
  left: 28px;
}

.floating-contact-btn {
  display: flex;
  align-items: center;
  gap: 0;
  width: 54px;
  height: 54px;
  padding: 0;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #fff;
  overflow: hidden;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.35);
  transition: width 0.35s cubic-bezier(0.215, 0.61, 0.355, 1), gap 0.35s ease, transform 0.3s ease, box-shadow 0.3s ease;
}

.floating-contact-btn svg {
  flex-shrink: 0;
  margin-inline: 16px;
}

.floating-contact-label {
  white-space: nowrap;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  opacity: 0;
  max-width: 0;
  overflow: hidden;
  transition: opacity 0.25s ease, max-width 0.35s ease;
}

.floating-contact-btn:hover,
.floating-contact-btn:focus-visible {
  width: 148px;
  gap: 4px;
  transform: translateY(-3px);
}

.floating-contact-btn:hover .floating-contact-label,
.floating-contact-btn:focus-visible .floating-contact-label {
  opacity: 1;
  max-width: 80px;
}

.floating-contact-btn--whatsapp {
  background: linear-gradient(135deg, #25d366, #128c7e);
}

.floating-contact-btn--whatsapp:hover,
.floating-contact-btn--whatsapp:focus-visible {
  box-shadow: 0 16px 36px rgba(37, 211, 102, 0.35);
}

.floating-contact-btn--phone {
  background: linear-gradient(135deg, var(--color-primary), #b5181d);
}

.floating-contact-btn--phone:hover,
.floating-contact-btn--phone:focus-visible {
  box-shadow: 0 16px 36px rgba(227, 30, 36, 0.35);
}

/* Scroll Animations */
.scroll-reveal {
  opacity: 0;
  transform: translateY(48px);
  transition: opacity 0.9s cubic-bezier(0.215, 0.61, 0.355, 1), transform 0.9s cubic-bezier(0.215, 0.61, 0.355, 1);
}

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

.reveal-item {
  opacity: 0;
  transform: translateY(36px);
  filter: blur(6px);
  transition:
    opacity 0.75s cubic-bezier(0.215, 0.61, 0.355, 1),
    transform 0.75s cubic-bezier(0.215, 0.61, 0.355, 1),
    filter 0.75s ease;
  transition-delay: var(--reveal-delay, 0ms);
  will-change: opacity, transform;
}

.reveal-item.revealed {
  opacity: 1;
  transform: translateY(0);
  filter: blur(0);
}

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

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

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

.service-card.reveal-item.revealed:hover,
.project-card.reveal-item.revealed:hover,
.blog-card.reveal-item.revealed:hover {
  transform: translateY(-5px);
}

.stat-box.reveal-item.revealed {
  animation: stat-pop 0.6s cubic-bezier(0.215, 0.61, 0.355, 1) both;
  animation-delay: var(--reveal-delay, 0ms);
}

@keyframes stat-pop {
  0% { transform: scale(0.92); }
  60% { transform: scale(1.03); }
  100% { transform: scale(1); }
}

@media (prefers-reduced-motion: reduce) {
  .global-grid-bg,
  .section-deco::before,
  .section-deco::after {
    animation: none;
  }

  section:not(.hero-section) {
    content-visibility: visible;
    contain-intrinsic-size: auto;
  }

  .scroll-reveal,
  .reveal-item,
  .hero-line,
  .hero-description,
  .hero-meta-row,
  .hero-bottom-row {
    opacity: 1;
    transform: none;
    filter: none;
    transition: none;
    animation: none;
  }

  .section-header h2::after {
    width: 72px;
    transition: none;
  }
}

/* Responsive Grid / Media Queries */
@media (max-width: 1200px) {
  :root {
    --container-width: 960px;
  }
  .hero-split {
    max-width: 100%;
  }
  .hero-line.line-2,
  .hero-line.line-3 {
    font-size: 8vw;
  }
  .hero-line.line-1 {
    font-size: 5vw;
  }
  .about-grid {
    grid-template-columns: 1fr;
    gap: 60px;
  }
  .about-images {
    height: 450px;
  }
  .about-profile-grid {
    grid-template-columns: 1fr;
  }
  .about-profile-col:not(:last-child)::after {
    top: auto;
    bottom: 0;
    inset-inline: 8%;
    width: auto;
    height: 1px;
    background: linear-gradient(
      to right,
      transparent,
      rgba(255, 255, 255, 0.14),
      transparent
    );
  }
  html[lang="ar"] .about-profile-col:not(:last-child)::after {
    background: linear-gradient(
      to left,
      transparent,
      rgba(255, 255, 255, 0.14),
      transparent
    );
  }
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-main {
    gap: 56px;
  }

  .footer-nav-grid {
    gap: 32px;
  }

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

@media (max-width: 768px) {
  :root {
    --container-width: 100%;
    --header-height: 70px;
  }
  
  /* Mobile Spacings */
  section {
    padding: 80px 0;
  }
  
  .header-container {
    padding: 0 20px;
  }
  
  .desktop-nav {
    display: none; /* Mobile menu overlay handles navigation */
  }
  
  /* Fullscreen Menu on mobile */
  .menu-wrapper {
    grid-template-columns: 1fr;
    gap: 40px;
    padding: 0 40px;
  }
  
  .menu-item {
    font-size: 8vw;
  }
  
  .menu-info {
    border-inline-start: none;
    padding-inline-start: 0;
    gap: 24px;
  }

  .hero-container {
    padding: 0 20px;
    padding-top: calc(var(--header-height) + 16px);
    padding-bottom: 16px;
    min-height: auto;
    height: 100vh;
  }

  .hero-meta-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
  
  .hero-split {
    max-width: 100%;
  }

  .video-card-overlay {
    background: linear-gradient(
      180deg,
      rgba(5, 6, 8, 0.55) 0%,
      rgba(5, 6, 8, 0.85) 60%,
      rgba(5, 6, 8, 0.95) 100%
    );
  }

  html[lang="ar"] .video-card-overlay {
    background: linear-gradient(
      180deg,
      rgba(5, 6, 8, 0.55) 0%,
      rgba(5, 6, 8, 0.85) 60%,
      rgba(5, 6, 8, 0.95) 100%
    );
  }

  .video-card-label {
    bottom: 24px;
    right: 20px;
  }

  .hero-line.line-1 {
    font-size: 8vw;
  }

  .hero-line.line-2,
  .hero-line.line-3 {
    font-size: 12vw;
  }

  .hero-headline-col {
    gap: 20px;
  }

  .hero-description {
    font-size: 13px;
    max-width: 100%;
  }
  
  .hero-bottom-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }

  .hero-services-marquee {
    max-width: 100%;
  }

  .hero-scroll-indicator {
    display: none;
  }
  
  .about-container,
  .services-container,
  .projects-container,
  .gallery-container,
  .blogs-container,
  .contact-container,
  .footer-container {
    padding: 0 20px;
  }
  
  .about-text-block h3 {
    font-size: 1.6rem;
  }
  
  .stats-grid {
    grid-template-columns: 1fr;
  }

  .stats-bar {
    padding: 0 20px;
    grid-template-columns: 1fr;
  }

  .stats-bar .stat-item {
    padding: 22px 0;
    border-inline-end: none;
    border-bottom: 1px solid var(--color-border);
  }

  .stats-bar .stat-item:last-child {
    border-bottom: none;
  }
  
  .about-images {
    display: none; /* Hide complex image absolute positions on mobile to save layout */
  }
  
  .services-grid {
    grid-template-columns: 1fr;
  }
  
  .service-card {
    min-height: 260px;
  }

  .service-card--has-image {
    min-height: 300px;
  }

  .service-card-body,
  .service-card--has-image .service-card-body {
    padding: 32px 24px 44px;
  }
  
  .projects-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  
  .projects-grid .project-card:nth-child(even) {
    transform: translateY(0); /* Remove asymmetric shifts on mobile */
  }

  .gallery-grid {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
    gap: 20px;
  }

  .gallery-card--featured {
    grid-row: auto;
  }

  .gallery-card--featured .video-frame {
    min-height: 220px;
  }
  
  .project-image {
    height: 260px;
  }
  
  .blogs-grid {
    grid-template-columns: 1fr;
  }

  .blogs-showcase {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .blogs-stack {
    grid-template-rows: auto;
    gap: 20px;
  }

  a.blog-card.blog-card--compact {
    height: auto;
  }

  .blog-card--compact .blog-image {
    height: 180px;
  }

  .blog-card--featured .blog-image {
    min-height: 220px;
  }

  .blog-card--compact .blog-info h3 {
    -webkit-line-clamp: unset;
    display: block;
  }

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

  .blog-card--page .blog-image {
    min-height: 220px;
  }

  .blog-card--page .blog-info {
    padding: 28px;
  }

  .blog-card--page .blog-info h3 {
    font-size: 1.25rem;
  }

  .blogs-toolbar {
    flex-direction: column;
    align-items: flex-start;
  }

  .blogs-newsletter {
    grid-template-columns: 1fr;
    padding: 28px;
  }

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

  .partners-header {
    margin-bottom: 36px;
    padding: 0 20px;
  }

  .partners-showcase {
    gap: 18px;
  }

  .partners-track {
    gap: 20px;
  }

  .partners-track--left {
    animation-duration: 30s;
  }

  .partners-track--right {
    animation-duration: 34s;
  }

  .partner-badge {
    width: 118px;
    height: 118px;
    padding: 14px;
    border-radius: 14px;
  }

  .partner-badge img {
    max-width: 90px;
    max-height: 90px;
  }

  .logos-container {
    padding: 0 20px;
  }

  .logos-group-header {
    margin-bottom: 32px;
  }

  .logo-item {
    min-height: 88px;
    padding: 14px 16px;
  }

  .logo-item img {
    max-width: 180px;
    max-height: 72px;
  }

  .about-profile-container {
    padding: 0 20px;
  }

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

  .about-profile-col {
    padding: 40px 24px;
  }

  .about-profile-col:not(:last-child)::after {
    top: auto;
    bottom: 0;
    inset-inline: 8%;
    width: auto;
    height: 1px;
    background: linear-gradient(
      to right,
      transparent,
      rgba(255, 255, 255, 0.14),
      transparent
    );
  }

  html[lang="ar"] .about-profile-col:not(:last-child)::after {
    background: linear-gradient(
      to left,
      transparent,
      rgba(255, 255, 255, 0.14),
      transparent
    );
  }
  
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 50px;
  }
  
  .contact-info-block h3 {
    font-size: 1.6rem;
  }
  
  .footer-main {
    grid-template-columns: 1fr;
    gap: 48px;
    padding-bottom: 40px;
  }

  .footer-nav-grid {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }

  .footer-block:last-child {
    grid-column: 1 / -1;
  }

  .footer-bar {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }

  .footer-bar-meta {
    width: 100%;
    justify-content: space-between;
  }

  .floating-contact {
    right: 16px;
    bottom: 20px;
    gap: 10px;
  }

  html[lang="ar"] .floating-contact {
    right: auto;
    left: 16px;
  }

  .floating-contact-btn {
    width: 48px;
    height: 48px;
  }

  .floating-contact-btn svg {
    margin-inline: 13px;
    width: 20px;
    height: 20px;
  }

  .floating-contact-btn:hover,
  .floating-contact-btn:focus-visible {
    width: 48px;
    gap: 0;
  }

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

  .page-hero {
    min-height: auto;
    padding: calc(var(--header-height) + 48px) 0 56px;
  }

  .page-hero-title {
    font-size: clamp(2.4rem, 10vw, 3.4rem);
  }

  .detail-hero-image {
    height: 280px;
  }

  .project-album-grid {
    grid-template-columns: 1fr;
  }

  .detail-specs {
    grid-template-columns: 1fr;
  }

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

  .page-hero-container,
  .detail-container {
    padding: 0 20px;
  }

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

/* ==========================================================================
   INNER PAGES
   ========================================================================== */

.inner-page .main-header {
  background-color: rgba(5, 6, 8, 0.92);
  backdrop-filter: blur(12px);
}

.inner-page main {
  position: relative;
  z-index: 2;
}

.page-hero {
  position: relative;
  min-height: 42vh;
  display: flex;
  align-items: flex-end;
  padding: calc(var(--header-height) + 64px) 0 72px;
  background-color: var(--color-bg);
  border-bottom: 1px solid var(--color-border);
  overflow: hidden;
}

.page-hero-deco {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 85% 20%, rgba(227, 30, 36, 0.08), transparent 42%),
    radial-gradient(circle at 10% 80%, rgba(227, 30, 36, 0.04), transparent 35%);
  pointer-events: none;
}

.page-hero-container {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 40px;
}

.page-breadcrumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 24px;
  font-family: monospace;
  font-size: 11px;
  letter-spacing: 2px;
  color: var(--color-text-muted);
}

.page-breadcrumb a {
  color: var(--color-text-muted);
  transition: color 0.3s ease;
}

.page-breadcrumb a:hover {
  color: var(--color-primary);
}

.breadcrumb-sep {
  color: rgba(255, 255, 255, 0.2);
}

.page-hero-title {
  font-size: clamp(3rem, 7vw, 5rem);
  font-weight: 900;
  letter-spacing: -2px;
  line-height: 0.95;
  margin-bottom: 20px;
}

.page-hero-sub {
  max-width: 640px;
  font-size: 16px;
  line-height: 1.7;
  color: var(--color-text-muted);
}

.inner-section {
  padding: 100px 0;
}

.nav-link.is-active {
  color: var(--color-primary);
}

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

.values-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 80px;
  padding-top: 60px;
  border-top: 1px solid var(--color-border);
}

.value-card {
  border: 1px solid var(--color-border);
  border-radius: 4px;
  padding: 36px 28px;
  background-color: var(--color-bg-offset);
  transition: border-color 0.3s ease, transform 0.3s ease;
}

.value-card:hover {
  border-color: rgba(227, 30, 36, 0.45);
  transform: translateY(-4px);
}

.value-num {
  display: block;
  font-family: monospace;
  font-size: 12px;
  font-weight: 700;
  color: var(--color-primary);
  letter-spacing: 2px;
  margin-bottom: 20px;
}

.value-card h4 {
  font-size: 1.2rem;
  font-weight: 800;
  margin-bottom: 12px;
}

.value-card p {
  font-size: 14px;
  line-height: 1.65;
  color: var(--color-text-muted);
}

.inner-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-top: 64px;
  padding: 36px 40px;
  border: 1px solid var(--color-border);
  border-radius: 4px;
  background-color: var(--color-bg-offset);
}

.inner-cta p {
  font-size: 1.25rem;
  font-weight: 700;
  max-width: 520px;
}

a.project-card,
a.blog-card:not(.blog-card--compact):not(.blog-card--featured) {
  display: block;
  color: inherit;
  text-decoration: none;
}

.project-link,
.blog-read-more {
  display: inline-block;
  margin-top: 20px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2px;
  color: var(--color-primary);
  transition: transform 0.3s ease;
}

.project-card:hover .project-link,
.blog-card:hover .blog-read-more {
  transform: translateX(4px);
}

html[lang="ar"] .project-card:hover .project-link,
html[lang="ar"] .blog-card:hover .blog-read-more {
  transform: translateX(-4px);
}

.section-view-all {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 48px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2px;
  color: var(--color-primary);
  transition: gap 0.3s ease;
}

.section-view-all:hover {
  gap: 14px;
}

.section-header-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.detail-section {
  background-color: var(--color-bg);
}

.detail-container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 40px;
}

.detail-hero-image {
  position: relative;
  height: 480px;
  border-radius: 4px;
  overflow: hidden;
  border: 1px solid var(--color-border);
  margin-bottom: 48px;
}

.detail-hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.detail-category {
  position: absolute;
  top: 24px;
  left: 24px;
  background-color: rgba(5, 6, 8, 0.85);
  border: 1px solid var(--color-primary);
  padding: 8px 14px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1px;
  border-radius: 2px;
  z-index: 2;
}

html[lang="ar"] .detail-category {
  left: auto;
  right: 24px;
}

.detail-content {
  max-width: 820px;
}

.detail-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 16px;
  font-family: monospace;
  font-size: 11px;
  letter-spacing: 2px;
  color: var(--color-primary);
}

.meta-sep {
  color: rgba(255, 255, 255, 0.25);
}

.detail-title {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 900;
  line-height: 1.15;
  margin-bottom: 24px;
}

.detail-body {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-bottom: 40px;
}

.detail-body p,
.article-body p {
  font-size: 16px;
  line-height: 1.8;
  color: var(--color-text-muted);
}

.detail-specs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 48px;
}

.spec-item {
  border: 1px solid var(--color-border);
  border-radius: 4px;
  padding: 24px 20px;
  background-color: var(--color-bg-offset);
}

.spec-label {
  display: block;
  font-family: monospace;
  font-size: 10px;
  letter-spacing: 2px;
  color: var(--color-primary);
  margin-bottom: 10px;
}

.spec-value {
  font-size: 15px;
  font-weight: 700;
  line-height: 1.4;
}

.detail-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2px;
  color: var(--color-text);
  border: 1px solid var(--color-border);
  border-radius: 50px;
  padding: 12px 22px;
  transition: all 0.3s ease;
}

.detail-back:hover {
  color: #fff;
  border-color: var(--color-primary);
  background-color: var(--color-primary);
}

.project-album {
  margin-bottom: 48px;
  padding-top: 12px;
  border-top: 1px solid var(--color-border);
}

.project-album-header {
  margin-bottom: 28px;
}

.project-album-label {
  display: block;
  font-family: monospace;
  font-size: 11px;
  letter-spacing: 2px;
  color: var(--color-primary);
  margin-bottom: 10px;
}

.project-album-title {
  font-size: clamp(1.4rem, 2.5vw, 2rem);
  font-weight: 800;
  margin-bottom: 0;
}

.project-album-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.project-album-grid--single {
  grid-template-columns: minmax(0, 420px);
}

.project-album-item {
  display: block;
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border: 1px solid var(--color-border);
  border-radius: 4px;
  background-color: var(--color-bg-offset);
}

.project-album-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.project-album-zoom {
  position: absolute;
  right: 14px;
  bottom: 14px;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 50%;
  background: rgba(5, 6, 8, 0.72);
  color: #fff;
  font-size: 20px;
  line-height: 1;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.25s ease, transform 0.25s ease, border-color 0.25s ease;
}

html[lang="ar"] .project-album-zoom {
  right: auto;
  left: 14px;
}

.project-album-item:hover img {
  transform: scale(1.05);
}

.project-album-item:hover .project-album-zoom {
  opacity: 1;
  transform: translateY(0);
  border-color: var(--color-primary);
}

.detail-container--article {
  max-width: 860px;
}

.article-header {
  margin-bottom: 32px;
}

.article-header .detail-title {
  margin-bottom: 0;
}

.article-body {
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin: 40px 0 48px;
}

.form-success {
  padding: 20px 24px;
  border: 1px solid rgba(37, 211, 102, 0.35);
  border-radius: 4px;
  background-color: rgba(37, 211, 102, 0.08);
  color: #25d366;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.5px;
}

/* Service / blog detail — sidebar layout */
.detail-container--with-sidebar {
  max-width: var(--container-width);
}

.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 340px);
  gap: 48px;
  align-items: start;
}

.detail-layout__main {
  min-width: 0;
}

.detail-sidebar {
  position: sticky;
  top: 120px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.detail-sidebar__block {
  border: 1px solid var(--color-border);
  border-radius: 4px;
  background-color: var(--color-bg-offset);
  padding: 28px 24px;
}

.detail-sidebar__title {
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 20px;
  color: var(--color-text);
}

.detail-sidebar-nav {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.detail-sidebar-nav a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 4px;
  border: 1px solid transparent;
  color: var(--color-text-muted);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.4;
  transition: color 0.25s ease, border-color 0.25s ease, background-color 0.25s ease;
}

.detail-sidebar-nav a i {
  font-size: 11px;
  opacity: 0.5;
  transition: opacity 0.25s ease, transform 0.25s ease;
}

html[lang="ar"] .detail-sidebar-nav a i {
  transform: scaleX(-1);
}

.detail-sidebar-nav a:hover {
  color: var(--color-text);
  border-color: var(--color-border);
  background-color: rgba(255, 255, 255, 0.02);
}

.detail-sidebar-nav a:hover i {
  opacity: 1;
  color: var(--color-primary);
}

.detail-sidebar-nav .is-active a {
  color: #fff;
  border-color: var(--color-primary);
  background-color: rgba(227, 30, 36, 0.12);
}

.detail-sidebar-nav .is-active a i {
  opacity: 1;
  color: var(--color-primary);
}

.detail-sidebar-form.form-grid {
  gap: 28px;
}

.detail-sidebar-form__submit {
  width: 100%;
}

.detail-sidebar-download {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 16px 20px;
  border: 1px solid var(--color-border);
  border-radius: 4px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--color-text);
  transition: border-color 0.25s ease, color 0.25s ease, background-color 0.25s ease;
}

.detail-sidebar-download i {
  font-size: 16px;
  color: var(--color-primary);
}

.detail-sidebar-download:hover {
  border-color: var(--color-primary);
  color: #fff;
  background-color: rgba(227, 30, 36, 0.1);
}

.service-detail-page .detail-content {
  max-width: none;
}

.service-detail-page .faq-section {
  margin: 48px 0;
  padding-top: 48px;
  border-top: 1px solid var(--color-border);
}

.faq-section__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  margin-bottom: 28px;
}

.faq-section__intro {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.faq-section__icon {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--color-border);
  border-radius: 4px;
  color: var(--color-primary);
  flex-shrink: 0;
}

.faq-section__icon img {
  width: 22px;
  height: 22px;
  object-fit: contain;
}

.faq-section__title {
  font-size: clamp(1.25rem, 2vw, 1.75rem);
  font-weight: 800;
  margin-bottom: 8px;
}

.faq-section__subtitle {
  font-size: 14px;
  line-height: 1.6;
  color: var(--color-text-muted);
  margin: 0;
}

.faq-filter {
  display: flex;
  align-items: center;
}

.faq-filter__label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 1px;
  color: var(--color-text-muted);
  cursor: pointer;
}

.faq-accordion {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.faq-item {
  border: 1px solid var(--color-border);
  border-radius: 4px;
  background-color: var(--color-bg-offset);
  overflow: hidden;
}

.faq-item__trigger {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px 20px;
  background: none;
  border: none;
  color: var(--color-text);
  font-size: 15px;
  font-weight: 700;
  line-height: 1.45;
  text-align: start;
  box-shadow: none;
}

.faq-item__trigger::after {
  flex-shrink: 0;
  margin-inline-start: auto;
  content: "+";
  font-size: 18px;
  font-weight: 400;
  line-height: 1;
  color: var(--color-primary);
  transition: transform 0.25s ease;
}

.faq-item__trigger:not(.collapsed)::after {
  content: "−";
}

.accordion-collapse.collapse:not(.show) {
  display: none;
}

.faq-item__trigger:not(.collapsed) {
  color: var(--color-primary);
}

.faq-item__index {
  font-family: monospace;
  font-size: 11px;
  letter-spacing: 1px;
  color: var(--color-primary);
  flex-shrink: 0;
}

.faq-item__badge {
  flex-shrink: 0;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 4px 8px;
  border: 1px solid var(--color-border);
  border-radius: 40px;
  color: var(--color-text-muted);
}

.faq-item__body {
  padding: 0 20px 20px 54px;
  font-size: 14px;
  line-height: 1.75;
  color: var(--color-text-muted);
}

html[lang="ar"] .faq-item__body {
  padding: 0 54px 20px 20px;
}

.faq-item__body p:last-child {
  margin-bottom: 0;
}

@media (max-width: 1200px) {
  .detail-layout {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .detail-sidebar {
    position: static;
    top: auto;
  }
}

@media (max-width: 768px) {
  .detail-container--with-sidebar {
    padding: 0 20px;
  }

  .detail-sidebar__block {
    padding: 22px 18px;
  }

  .faq-item__body {
    padding-inline-start: 20px;
    padding-inline-end: 20px;
  }
}
