/* ==========================================================================
   Mahmoud Araby - Portfolio Design System & Stylesheet
   Design Tokens, Thmanyah Typeface & Boldonse Font Integration
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Font Declarations (@font-face)
   -------------------------------------------------------------------------- */

/* Boldonse - Custom Display & Numbers Font */
@font-face {
  font-family: 'Boldonse';
  src: url('./Boldonse/Boldonse-Regular.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Boldonse';
  src: url('./Boldonse/Boldonse-Regular.ttf') format('truetype');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Boldonse';
  src: url('./Boldonse/Boldonse-Regular.ttf') format('truetype');
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Boldonse';
  src: url('./Boldonse/Boldonse-Regular.ttf') format('truetype');
  font-weight: 900;
  font-style: normal;
  font-display: swap;
}

/* Thmanyah Serif Display - Bold */
@font-face {
  font-family: 'Thmanyah Serif Display';
  src: url('./thmanyah typeface/thmanyahserifdisplay/woff2/thmanyahserifdisplay-Bold.woff2') format('woff2'),
       url('./thmanyah typeface/thmanyahserifdisplay/otf/thmanyahserifdisplay-Bold.otf') format('opentype');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

/* Thmanyah Serif Display - Black */
@font-face {
  font-family: 'Thmanyah Serif Display';
  src: url('./thmanyah typeface/thmanyahserifdisplay/woff2/thmanyahserifdisplay-Black.woff2') format('woff2'),
       url('./thmanyah typeface/thmanyahserifdisplay/otf/thmanyahserifdisplay-Black.otf') format('opentype');
  font-weight: 900;
  font-style: normal;
  font-display: swap;
}

/* Thmanyah Serif Display - Medium */
@font-face {
  font-family: 'Thmanyah Serif Display';
  src: url('./thmanyah typeface/thmanyahserifdisplay/woff2/thmanyahserifdisplay-Medium.woff2') format('woff2'),
       url('./thmanyah typeface/thmanyahserifdisplay/otf/thmanyahserifdisplay-Medium.otf') format('opentype');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

/* Thmanyah Serif Display - Regular */
@font-face {
  font-family: 'Thmanyah Serif Display';
  src: url('./thmanyah typeface/thmanyahserifdisplay/woff2/thmanyahserifdisplay-Regular.woff2') format('woff2'),
       url('./thmanyah typeface/thmanyahserifdisplay/otf/thmanyahserifdisplay-Regular.otf') format('opentype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

/* Thmanyah Sans - Regular */
@font-face {
  font-family: 'Thmanyah Sans';
  src: url('./thmanyah typeface/thmanyahsans/woff2/thmanyahsans-Regular.woff2') format('woff2'),
       url('./thmanyah typeface/thmanyahsans/otf/thmanyahsans-Regular.otf') format('opentype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

/* Thmanyah Sans - Medium */
@font-face {
  font-family: 'Thmanyah Sans';
  src: url('./thmanyah typeface/thmanyahsans/woff2/thmanyahsans-Medium.woff2') format('woff2'),
       url('./thmanyah typeface/thmanyahsans/otf/thmanyahsans-Medium.otf') format('opentype');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

/* Thmanyah Sans - Bold */
@font-face {
  font-family: 'Thmanyah Sans';
  src: url('./thmanyah typeface/thmanyahsans/woff2/thmanyahsans-Bold.woff2') format('woff2'),
       url('./thmanyah typeface/thmanyahsans/otf/thmanyahsans-Bold.otf') format('opentype');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

/* Thmanyah Sans - Black */
@font-face {
  font-family: 'Thmanyah Sans';
  src: url('./thmanyah typeface/thmanyahsans/woff2/thmanyahsans-Black.woff2') format('woff2'),
       url('./thmanyah typeface/thmanyahsans/otf/thmanyahsans-Black.otf') format('opentype');
  font-weight: 900;
  font-style: normal;
  font-display: swap;
}

/* Thmanyah Sans - Black */
@font-face {
  font-family: 'Thmanyah Sans';
  src: url('./thmanyah typeface/thmanyahsans/woff2/thmanyahsans-Black.woff2') format('woff2'),
       url('./thmanyah typeface/thmanyahsans/otf/thmanyahsans-Black.otf') format('opentype');
  font-weight: 900;
  font-style: normal;
  font-display: swap;
}

/* Thmanyah Serif Text - Regular */
@font-face {
  font-family: 'Thmanyah Serif Text';
  src: url('./thmanyah typeface/thmanyahseriftext/woff2/thmanyahseriftext-Regular.woff2') format('woff2'),
       url('./thmanyah typeface/thmanyahseriftext/otf/thmanyahseriftext-Regular.otf') format('opentype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

/* --------------------------------------------------------------------------
   2. Design Tokens (Ramps & Semantics from Tokens System)
   -------------------------------------------------------------------------- */
:root {
  /* Purple Ramps */
  --purple-50: #f5f4ff;
  --purple-100: #eae8ff;
  --purple-200: #d7d3ff;
  --purple-300: #beb5ff;
  --purple-400: #a18eff;
  --purple-500: #8d6cff;
  --purple-600: #7653e1;
  --purple-700: #5f3cbf;
  --purple-800: #4a299b;
  --purple-900: #361a77;
  --purple-950: #210652;

  /* Green Ramps */
  --green-50: #e0ffe9;
  --green-100: #c2fbd5;
  --green-200: #99f0b8;
  --green-300: #60dd94;
  --green-400: #00c16f;
  --green-500: #00a65f;
  --green-600: #008b4e;
  --green-700: #006f3e;
  --green-800: #00562e;
  --green-900: #003f20;
  --green-950: #002611;

  /* Neutral Ramps */
  --neutral-50: #f5f5f9;
  --neutral-100: #ebeaef;
  --neutral-200: #d9d8de;
  --neutral-300: #c0bfc6;
  --neutral-400: #a2a1a8;
  --neutral-500: #8b8a91;
  --neutral-600: #73737a;
  --neutral-700: #5c5b62;
  --neutral-800: #47464c;
  --neutral-900: #333337;
  --neutral-950: #1e1e22;

  /* Core Brand Colors */
  --primary-purple: #8664F7;
  --primary-purple-rgb: 134, 100, 247;
  --primary-green: #66E299;
  --primary-green-rgb: 102, 226, 153;

  /* Semantic Design Tokens */
  --color-bg-canvas: #040404;
  --color-bg-surface: #100e1a;
  --color-bg-surface-raised: rgba(22, 19, 36, 0.75);
  --color-bg-brand: var(--primary-purple);
  --color-bg-brand-hover: var(--purple-600);
  --color-bg-accent: var(--primary-green);
  --color-bg-accent-hover: var(--green-300);

  --color-text-primary: #ffffff;
  --color-text-secondary: var(--neutral-300);
  --color-text-tertiary: var(--neutral-400);
  --color-text-muted: rgba(255, 255, 255, 0.68);
  --color-text-subtle: rgba(255, 255, 255, 0.45);
  --color-text-on-brand: #ffffff;
  --color-text-on-accent: var(--green-950);

  /* 10% White Stroke Requirement */
  --color-border-subtle: rgba(255, 255, 255, 0.10);
  --color-border-default: rgba(255, 255, 255, 0.16);
  --color-border-active: var(--primary-purple);

  /* Typography Families */
  --font-display: 'Thmanyah Sans', sans-serif;
  --font-sans: 'Thmanyah Sans', sans-serif;
  --font-badge-year: 'Boldonse', sans-serif;

  /* Layout & Animations */
  --header-height: 90px;
  --transition-smooth: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-slow: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

/* --------------------------------------------------------------------------
   3. Global Resets & Base
   -------------------------------------------------------------------------- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  background-color: var(--color-bg-canvas);
}

body {
  font-family: var(--font-sans);
  color: var(--color-text-primary);
  background-color: #040404;
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
  line-height: 1.6;
  direction: rtl;
  text-align: right;
}

::selection {
  background: var(--primary-purple);
  color: #ffffff;
}

/* --------------------------------------------------------------------------
   4. Ambient Glows & Grid System
   -------------------------------------------------------------------------- */
.ambient-glow {
  position: fixed;
  pointer-events: none;
  border-radius: 50%;
  filter: blur(120px);
  z-index: 1;
  opacity: 0.6;
}

.purple-glow {
  width: 550px;
  height: 400px;
  top: 15%;
  left: 50%;
  transform: translateX(-50%);
  background: radial-gradient(circle, rgba(var(--primary-purple-rgb), 0.28) 0%, rgba(var(--primary-purple-rgb), 0) 70%);
}

.top-glow {
  width: 700px;
  height: 250px;
  top: -80px;
  left: 50%;
  transform: translateX(-50%);
  background: radial-gradient(circle, rgba(134, 100, 247, 0.15) 0%, rgba(0, 0, 0, 0) 70%);
}

/* Vertical Decorative Grid Lines */
.grid-overlay {
  position: fixed;
  inset: 0;
  display: flex;
  justify-content: space-between;
  width: 100%;
  max-width: min(1400px, calc(100vw - 32px));
  margin: 0 auto;
  padding: 0;
  pointer-events: none;
  z-index: 2;
}

.grid-line {
  width: 1px;
  height: 100%;
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.01) 0%,
    rgba(255, 255, 255, 0.04) 20%,
    rgba(255, 255, 255, 0.06) 50%,
    rgba(255, 255, 255, 0.04) 80%,
    rgba(255, 255, 255, 0) 100%
  );
}

/* --------------------------------------------------------------------------
   5. Main Layout Structure
   -------------------------------------------------------------------------- */
.site-wrapper {
  --header-offset: 80px;
  position: relative;
  z-index: 10;
  display: flex;
  flex-direction: column;
  min-height: auto;
  justify-content: flex-start;
  background-color: #040404 !important;
  background-image: none !important;
  padding-top: var(--header-offset); /* Offset for fixed navbar */
}

/* --------------------------------------------------------------------------
   6. Header / Navigation Bar (Fixed on Scroll with #000000 38% Glass)
   -------------------------------------------------------------------------- */
.site-header {
  width: 100%;
  height: var(--header-offset, 80px);
  padding: 0;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 90;
  background: transparent !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  border-bottom: 2px solid rgba(196, 196, 196, 0.12) !important;
  transition: var(--transition-smooth);
  display: flex;
  align-items: center;
  box-sizing: border-box;
}

.header-container {
  max-width: min(1400px, calc(100vw - 32px));
  margin: 0 auto;
  padding: 0 clamp(1.2rem, 2vw, 2.2rem);
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  box-sizing: border-box;
}

/* Right: Consultation Button */
.header-right {
  display: flex;
  align-items: center;
}

.btn-consultation {
  background: #ffffff;
  color: #0b0914;
  border: none;
  outline: none;
  padding: 0.65rem 1.75rem;
  border-radius: 9999px 0 0 9999px;
  border-top-right-radius: 0 !important;
  border-bottom-right-radius: 0 !important;
  border-top-left-radius: 9999px !important;
  border-bottom-left-radius: 9999px !important;
  font-family: var(--font-display);
  font-feature-settings: "swsh" 1, "salt" 1, "calt" 1, "liga" 1;
  -webkit-font-feature-settings: "swsh" 1, "salt" 1, "calt" 1, "liga" 1;
  font-size: 0.98rem;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition-smooth);
  box-shadow: 0 4px 18px rgba(255, 255, 255, 0.12);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.btn-consultation:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 8px 26px rgba(255, 255, 255, 0.28), 0 0 15px rgba(var(--primary-purple-rgb), 0.35);
}

.btn-consultation:active {
  transform: translateY(0) scale(0.98);
}

/* Center: Logo */
.header-center {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  justify-content: center;
}

.logo-link {
  display: inline-block;
  transition: var(--transition-smooth);
}

.logo-img {
  height: 48px;
  width: auto;
  display: block;
  filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.6));
  transition: var(--transition-smooth);
}

.logo-link:hover .logo-img {
  transform: scale(1.05);
  filter: drop-shadow(0 0 12px rgba(var(--primary-purple-rgb), 0.5));
}

/* Left: Menu Button */
.header-left {
  display: flex;
  align-items: center;
}

.menu-toggle-btn {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.12);
  padding: 0.55rem 0.65rem;
  border-radius: 12px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  overflow: hidden;
}

.menu-toggle-btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at center, rgba(134, 100, 247, 0.45) 0%, transparent 70%);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.menu-toggle-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(134, 100, 247, 0.5);
  transform: translateY(-2px) scale(1.05);
  box-shadow: 0 4px 18px rgba(134, 100, 247, 0.35);
}

.menu-toggle-btn:hover::before {
  opacity: 1;
}

.menu-toggle-btn:active {
  transform: translateY(0) scale(0.92);
}

.menu-icon-img {
  width: 23px;
  height: 22px;
  display: block;
  opacity: 0.92;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  z-index: 2;
}

.menu-toggle-btn:hover .menu-icon-img {
  opacity: 1;
  transform: scale(1.12) rotate(-5deg);
  filter: drop-shadow(0 0 10px rgba(134, 100, 247, 0.9));
}

/* --------------------------------------------------------------------------
   7. Hero Section & Floating Animated Stickers
   -------------------------------------------------------------------------- */
.hero-section {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: clamp(1.8rem, 4vh, 3.5rem) 2rem clamp(2.5rem, 5.5vh, 4.5rem) 2rem;
  position: relative;
  z-index: 15;
  min-height: clamp(620px, 80vh, 790px);
  overflow: visible;
  background-color: #040404 !important;
  background-image: none !important;
  border-bottom: 2px solid rgba(196, 196, 196, 0.12) !important;
}

/* Hero Frame Container for Side Ruler Stripes matching the 1400px margin */
.hero-frame-container {
  position: absolute;
  top: calc(-1 * var(--header-offset, 80px));
  bottom: 0;
  left: 0;
  right: 0;
  max-width: min(1400px, calc(100vw - 32px));
  margin: 0 auto;
  pointer-events: none;
  z-index: 25;
}

.hero-stripe {
  position: absolute;
  top: 0;
  bottom: 0;
  height: 100% !important;
  width: 24px;
  pointer-events: none;
  z-index: 5;
  overflow: hidden;
}

.hero-stripe-right {
  right: 0;
}

.hero-stripe-left {
  left: 0;
}

.hero-stripe .stripe-svg,
.hero-stripe img {
  position: absolute;
  top: 0;
  left: 0;
  width: 24px !important;
  height: 100% !important;
  min-height: 100% !important;
  max-height: 100% !important;
  object-fit: fill !important;
  display: block !important;
}

.hero-container {
  max-width: min(1400px, calc(100vw - 32px));
  width: 100%;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 10;
  opacity: 1;
}

/* Hero Title Block Wrapper */
.hero-title-wrapper {
  position: relative;
  display: inline-block;
  width: auto;
  max-width: 100%;
  margin-bottom: 1.6rem;
}

/* Headline Typography with Swash OpenType feature */
.hero-title {
  font-family: var(--font-display);
  font-feature-settings: "swsh" 1, "salt" 1, "calt" 1, "liga" 1;
  -webkit-font-feature-settings: "swsh" 1, "salt" 1, "calt" 1, "liga" 1;
  font-size: clamp(2.4rem, 5.2vw, 4.9rem);
  font-weight: 800;
  line-height: 1.55;
  letter-spacing: -0.015em;
  color: var(--color-text-primary);
  margin-bottom: 0;
  text-wrap: pretty;
  filter: drop-shadow(0 4px 20px rgba(0, 0, 0, 0.5));
  position: relative;
  z-index: 5;
}

/* Typing Caret Animation for Hero Title */
.typing-cursor {
  display: inline-block;
  width: 4px;
  height: 0.82em;
  background-color: var(--primary-green);
  vertical-align: -0.04em;
  margin-right: 6px;
  border-radius: 2px;
  box-shadow: 0 0 12px rgba(var(--primary-green-rgb), 0.9), 0 0 20px rgba(var(--primary-green-rgb), 0.5);
  animation: cursorBlink 0.75s ease-in-out infinite;
  transition: opacity 0.6s ease;
}

.typing-cursor.finished {
  opacity: 0;
  animation: none;
}

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

/* Color Highlights (Clean text without glow/lighting effect) */
.purple-highlight {
  color: #8664F7;
  display: inline-block;
  background: linear-gradient(135deg, #a489fb 0%, #8664F7 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: none !important;
  text-shadow: none !important;
  transition: var(--transition-smooth);
}

.purple-highlight:hover {
  filter: none !important;
  text-shadow: none !important;
}

.green-highlight {
  color: #66E299;
  display: inline-block;
  background: linear-gradient(135deg, #81ebb0 0%, #66E299 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: none !important;
  text-shadow: none !important;
  transition: var(--transition-smooth);
}

.green-highlight:hover {
  filter: none !important;
  text-shadow: none !important;
}

/* Subtitle Description */
.hero-description {
  font-family: var(--font-sans);
  font-size: clamp(0.98rem, 1.35vw, 1.25rem);
  font-weight: 400;
  line-height: 1.85;
  color: var(--color-text-muted);
  max-width: 690px;
  margin: 0 auto;
  text-wrap: pretty;
  opacity: 1;
  position: relative;
  z-index: 5;
}

/* --------------------------------------------------------------------------
   8. Hero Floating Stickers & Organic Hover Animations
   -------------------------------------------------------------------------- */
.hero-sticker {
  position: absolute;
  pointer-events: auto !important;
  user-select: none;
  z-index: 26;
  transform: translateZ(0);
  will-change: transform;
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), filter 0.35s ease;
  cursor: pointer;
}

.hero-sticker .sticker-img {
  display: block;
  width: 100%;
  height: auto;
  filter: drop-shadow(0 8px 24px rgba(0, 0, 0, 0.65));
  transition: filter 0.35s ease;
}

/* Sticker: Fire (Centered above title) */
.hero-sticker-fire {
  top: -46px;
  left: 50%;
  transform: translateX(-50%);
  width: clamp(75px, 8.5vw, 110px);
  animation: floatFire 3.6s ease-in-out infinite alternate;
  z-index: 26;
}

.hero-sticker-fire:hover {
  filter: drop-shadow(0 0 20px rgba(255, 100, 50, 0.5));
}

.hero-sticker-fire:hover .sticker-img {
  filter: drop-shadow(0 12px 30px rgba(0, 0, 0, 0.8));
}

@keyframes floatFire {
  0% {
    transform: translateX(-50%) translateY(0px) rotate(0deg);
  }
  50% {
    transform: translateX(-50%) translateY(-9px) rotate(-2.5deg) scale(1.03);
  }
  100% {
    transform: translateX(-50%) translateY(3px) rotate(2deg) scale(0.98);
  }
}

/* Sticker: Me 3-Cards (Directly under أصمّم on the right in RTL) */
.hero-sticker-me {
  top: 30%;
  right: clamp(50px, 6.5vw, 105px);
  width: clamp(75px, 8.5vw, 115px);
  animation: floatMe 4.4s ease-in-out infinite alternate;
  z-index: 26;
}

.hero-sticker-me:hover {
  filter: drop-shadow(0 0 20px rgba(134, 100, 247, 0.5));
}

.hero-sticker-me:hover .sticker-img {
  filter: drop-shadow(0 14px 32px rgba(0, 0, 0, 0.8));
}

@keyframes floatMe {
  0% {
    transform: translateY(0px) rotate(-1deg);
  }
  50% {
    transform: translateY(-8px) rotate(4deg) scale(1.04);
  }
  100% {
    transform: translateY(5px) rotate(-3deg) scale(0.97);
  }
}

/* Sticker: Photo Polaroid + Vibe Check (Bottom Left - Safely Inside Side Stripes) */
.hero-sticker-photo,
.hero-sticker-vibe {
  bottom: clamp(24px, 5vh, 55px);
  left: clamp(45px, 4.5vw, 75px);
  width: clamp(160px, 17vw, 235px);
  animation: floatPhoto 5.2s ease-in-out infinite alternate;
}

.hero-sticker-photo:hover,
.hero-sticker-vibe:hover {
  filter: drop-shadow(0 0 25px rgba(134, 100, 247, 0.45));
}

.hero-sticker-photo:hover .sticker-img,
.hero-sticker-vibe:hover .sticker-img {
  filter: drop-shadow(0 16px 36px rgba(0, 0, 0, 0.85));
}

@keyframes floatPhoto {
  0% {
    transform: translateY(0px) rotate(-1.5deg);
  }
  50% {
    transform: translateY(-10px) rotate(1.8deg) scale(1.02);
  }
  100% {
    transform: translateY(6px) rotate(-2.5deg) scale(0.98);
  }
}

@keyframes floatVibe {
  0% {
    transform: translateY(0px) rotate(-2deg);
  }
  50% {
    transform: translateY(-11px) rotate(2.5deg) scale(1.03);
  }
  100% {
    transform: translateY(7px) rotate(-3.5deg) scale(0.98);
  }
}

/* Sticker: Component (Bottom Right - Safely Inside Side Stripes) */
.hero-sticker-component {
  bottom: clamp(28px, 6vh, 65px);
  right: clamp(45px, 4.5vw, 75px);
  width: clamp(135px, 15vw, 195px);
  animation: floatComponent 5.4s ease-in-out infinite alternate;
}

.hero-sticker-component:hover {
  filter: drop-shadow(0 0 25px rgba(134, 100, 247, 0.5));
}

.hero-sticker-component:hover .sticker-img {
  filter: drop-shadow(0 16px 36px rgba(0, 0, 0, 0.85));
}

@keyframes floatComponent {
  0% {
    transform: translateY(0px) rotate(1.5deg);
  }
  50% {
    transform: translateY(-10px) rotate(-2.5deg) scale(1.03);
  }
  100% {
    transform: translateY(6px) rotate(3deg) scale(0.98);
  }
}

/* Sticker: Duck (Bottom Center) */
.hero-sticker-duck {
  bottom: clamp(10px, 2vh, 22px);
  left: 50%;
  transform: translateX(-50%);
  width: clamp(50px, 5.2vw, 68px);
  animation: floatDuck 3.6s ease-in-out infinite alternate;
}

.hero-sticker-duck:hover {
  filter: drop-shadow(0 0 20px rgba(255, 220, 50, 0.6));
}

.hero-sticker-duck:hover .sticker-img {
  filter: drop-shadow(0 12px 28px rgba(0, 0, 0, 0.8));
}

@keyframes floatDuck {
  0% {
    transform: translateX(-50%) translateY(0px) rotate(0deg);
  }
  35% {
    transform: translateX(-50%) translateY(-9px) rotate(-6deg) scale(1.05);
  }
  70% {
    transform: translateX(-50%) translateY(-2px) rotate(5deg) scale(1.02);
  }
  100% {
    transform: translateX(-50%) translateY(5px) rotate(-3deg) scale(0.96);
  }
}

/* Responsive Adjustments for Mobile / Tablet */
@media (max-width: 900px) {
  .ambient-glow {
    display: none !important;
  }

  .hero-title {
    text-wrap: normal !important;
  }

  .site-wrapper {
    --header-offset: 85px;
    padding-top: var(--header-offset);
  }

  .hero-section {
    padding: 2.2rem 1.5rem 6.5rem 1.5rem;
    min-height: auto;
  }

  .hero-sticker-photo,
  .hero-sticker-vibe {
    bottom: 22px;
    left: 36px;
    width: clamp(135px, 23vw, 185px);
  }

  .hero-sticker-component {
    bottom: 25px;
    right: 36px;
    width: clamp(120px, 20vw, 165px);
  }

  .hero-sticker-me {
    right: clamp(25px, 4vw, 55px);
    width: clamp(68px, 11vw, 90px);
    display: block;
  }

  .services-stripe {
    display: none !important;
  }
}

@media (max-width: 640px) {
  .site-wrapper {
    padding-top: 60px;
  }

  .hero-section {
    padding: 0.2rem 1rem 9rem 1rem;
    min-height: 560px;
    height: auto;
    overflow: hidden;
    position: relative;
  }

  .hero-container {
    margin-top: -55px;
    padding-bottom: 0;
    position: relative;
    z-index: 10;
  }

  .hero-title-wrapper {
    margin-bottom: 0.9rem;
  }

  .hero-title {
    font-size: clamp(1.9rem, 7.5vw, 2.5rem);
    line-height: 1.42;
  }

  .hero-description {
    font-size: 0.92rem;
    line-height: 1.7;
    max-width: 92%;
    margin-bottom: 0;
  }

  .hero-frame-container {
    display: block !important;
    position: absolute !important;
    top: 0 !important;
    bottom: 0 !important;
    left: 0 !important;
    right: 0 !important;
    max-width: 100% !important;
    margin: 0 !important;
    pointer-events: none !important;
    z-index: 25 !important;
  }

  .hero-stripe {
    display: none !important;
  }

  .hero-sticker {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    pointer-events: auto !important;
  }

  .hero-sticker-fire {
    display: block !important;
    visibility: visible !important;
    top: -44px;
    left: 50%;
    transform: translateX(-50%);
    width: clamp(74px, 20vw, 86px);
    z-index: 26;
  }

  .hero-sticker-me {
    display: block !important;
    visibility: visible !important;
    top: 31%;
    right: clamp(8px, 3vw, 22px);
    width: clamp(54px, 14vw, 68px);
    z-index: 26;
  }

  .hero-sticker-photo,
  .hero-sticker-vibe {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    bottom: 12px;
    left: 6px;
    width: clamp(135px, 40vw, 165px);
    z-index: 26;
  }

  .hero-sticker-component {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    bottom: 16px;
    right: 6px;
    width: clamp(125px, 37vw, 155px);
    z-index: 26;
  }

  .hero-sticker-duck {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    bottom: 16px;
    left: 45%;
    transform: translateX(-50%);
    width: clamp(38px, 10vw, 46px);
    z-index: 26;
  }
}

@keyframes heroFadeUp {
  0% { opacity: 0; transform: translateY(22px); }
  100% { opacity: 1; transform: translateY(0); }
}

/* --------------------------------------------------------------------------
   9. Programs / Showcase Section (Pure Solid Black #000000 Background)
   -------------------------------------------------------------------------- */
.programs-section {
  width: 100%;
  background-color: #000000 !important;
  background-image: none !important;
  border: none !important;
  border-top: none !important;
  border-bottom: 2px solid rgba(196, 196, 196, 0.12) !important;
  padding: clamp(3rem, 5vw, 5rem) 1.5rem clamp(2.5rem, 4vw, 4rem) 1.5rem;
  position: relative;
  z-index: 20;
}

/* Outer Container with solid #000000 and 0 border */
.programs-container-border {
  width: 100%;
  max-width: min(1400px, calc(100vw - 32px));
  margin: 0 auto;
  background-color: #000000 !important;
  background-image: none !important;
  border: none !important;
  border-radius: 0 !important;
  padding: 0;
  box-shadow: none !important;
  position: relative;
  overflow: visible;
  box-sizing: border-box;
}

/* Section Header */
.programs-header {
  text-align: right;
  margin-bottom: clamp(2.5rem, 3.5vw, 4rem);
  padding: 0;
}

.programs-title {
  font-family: var(--font-display);
  font-feature-settings: "swsh" 1, "salt" 1, "calt" 1, "liga" 1;
  -webkit-font-feature-settings: "swsh" 1, "salt" 1, "calt" 1, "liga" 1;
  font-size: clamp(2.5rem, 4.5vw, 4.2rem);
  font-weight: 800;
  color: var(--color-text-primary);
  margin-bottom: 0.75rem;
  letter-spacing: -0.02em;
}

.programs-subtitle {
  font-family: var(--font-sans);
  font-size: clamp(0.95rem, 1.15vw, 1.18rem);
  color: rgba(255, 255, 255, 0.65);
  line-height: 1.65;
  margin: 0;
}

/* Projects Grid Layout: 3 Columns matching design mockup */
.programs-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(18px, 2.2vw, 32px);
  align-items: start;
  width: 100%;
  margin: 0;
  margin-bottom: clamp(1.5rem, 2.5vw, 3rem);
}

.program-card {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  border-radius: 0 !important;
  transition: var(--transition-smooth);
  min-width: 0;
  text-decoration: none;
  color: inherit;
  background: transparent !important;
  border: none !important;
}

.program-card:hover {
  transform: translateY(-6px);
}

/* Project Card Preview Wrapper (Transparent background, no box/border) */
.program-preview-wrapper {
  width: 100%;
  border-radius: 0 !important;
  overflow: visible;
  border: none !important;
  background: transparent !important;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-smooth);
  position: relative;
  box-shadow: none !important;
}

/* Images */
.project-card-image {
  width: 100%;
  height: auto;
  object-fit: contain;
  object-position: center;
  display: block;
  border-radius: 0 !important;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

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

.program-card:hover .program-preview-wrapper {
  border-color: transparent !important;
  box-shadow: none !important;
}

/* --------------------------------------------------------------------------
   Realistic Device Mockups (Phone & Monitors)
   -------------------------------------------------------------------------- */

/* 1. Phone Mockup (iPhone Style) */
.phone-mockup {
  width: 190px;
  height: 340px;
  background: #0f1015;
  border: 4px solid #2b2b35;
  border-radius: 36px;
  padding: 8px 6px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.45), 0 0 0 1px rgba(255, 255, 255, 0.1);
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}

.phone-screen {
  background: #081a12;
  border-radius: 28px;
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 8px 8px 4px 8px;
  overflow: hidden;
  font-size: 0.65rem;
  color: #ffffff;
  position: relative;
}

.app-status-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.6rem;
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 6px;
  padding: 0 4px;
}

.app-header-bar {
  background: linear-gradient(90deg, #103c28 0%, #0d281a 100%);
  padding: 6px 8px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 6px;
}

.app-avatar {
  width: 22px;
  height: 22px;
  background: #175439;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
}

.app-user-info {
  display: flex;
  flex-direction: column;
}

.app-username {
  font-weight: 700;
  font-size: 0.62rem;
  color: var(--primary-green);
}

.app-welcome {
  font-size: 0.5rem;
  color: rgba(255, 255, 255, 0.6);
}

.app-search-box {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 4px 8px;
  border-radius: 6px;
  font-size: 0.55rem;
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: 8px;
  text-align: right;
}

.app-cards-row {
  display: flex;
  gap: 4px;
  margin-bottom: 8px;
}

.app-mini-card {
  flex: 1;
  background: #ffffff;
  color: #111;
  border-radius: 6px;
  padding: 4px;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.mini-card-img {
  height: 30px;
  border-radius: 4px;
  background-size: cover;
  background-position: center;
}

.mini-card-img.img-1 {
  background: linear-gradient(135deg, #2b6c50 0%, #154530 100%);
}

.mini-card-img.img-2 {
  background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
}

.mini-card-title {
  font-size: 0.48rem;
  font-weight: 700;
  line-height: 1.2;
}

.app-promo-banner {
  background: #111;
  border-radius: 6px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: auto;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: linear-gradient(180deg, #1b2820 0%, #0d1510 100%);
  font-size: 0.52rem;
  font-weight: 600;
  color: var(--primary-green);
}

.app-bottom-nav {
  display: flex;
  justify-content: space-around;
  padding-top: 4px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.65rem;
}

/* 2. Desktop iMac Monitor Mockup */
.desktop-mockup {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 90%;
  max-width: 320px;
}

.desktop-monitor {
  width: 100%;
  height: 185px;
  background: #090a0f;
  border: 4px solid #1e1d28;
  border-radius: 12px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.45);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  position: relative;
}

.browser-bar {
  background: #194833;
  padding: 5px 8px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.55rem;
  color: rgba(255, 255, 255, 0.8);
}

.browser-bar.dark-bar {
  background: #0d0e14;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.browser-brand {
  font-weight: 700;
  font-size: 0.65rem;
  color: #fff;
}

.browser-dots {
  display: flex;
  gap: 3px;
}

.browser-dots span,
.browser-menu-dots span {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.4);
}

.browser-nav-items {
  display: flex;
  gap: 8px;
  font-size: 0.5rem;
}

.browser-content {
  flex: 1;
  padding: 10px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
}

/* Syndicate Theme */
.syndicate-theme {
  background: linear-gradient(135deg, #101914 0%, #080d0a 100%);
}

.syndicate-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.syndicate-text {
  text-align: right;
  flex: 1;
}

.syndicate-text h4 {
  font-family: var(--font-display);
  font-size: 0.68rem;
  line-height: 1.35;
  color: #ffffff;
  margin-bottom: 6px;
}

.mini-btn-green {
  background: #2b7a54;
  color: #fff;
  border: none;
  font-size: 0.45rem;
  padding: 2px 8px;
  border-radius: 4px;
}

.syndicate-portrait {
  width: 50px;
  height: 65px;
  background: linear-gradient(180deg, #374151 0%, #1f2937 100%);
  border-radius: 6px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
}

.portrait-silhouette {
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 38px;
  height: 48px;
  background: #111827;
  border-radius: 20px 20px 0 0;
}

/* Appy SEO Theme */
.appy-theme {
  background: #08070d;
  text-align: center;
  align-items: center;
  justify-content: center;
}

.appy-chatgpt-icon {
  margin-bottom: 3px;
}

.appy-title {
  font-size: 0.68rem;
  font-weight: 800;
  line-height: 1.25;
  color: #ffffff;
  margin-bottom: 6px;
  direction: ltr;
}

.appy-search-bar {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 9999px;
  padding: 2px 4px 2px 8px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 85%;
  font-size: 0.45rem;
  margin-bottom: 6px;
  direction: ltr;
}

.search-placeholder {
  color: rgba(255, 255, 255, 0.5);
}

.search-btn-pill {
  background: var(--primary-green);
  color: #07070a;
  font-weight: 700;
  padding: 1px 6px;
  border-radius: 9999px;
}

.appy-logos-row {
  display: flex;
  gap: 8px;
  font-size: 0.42rem;
  color: rgba(255, 255, 255, 0.4);
  direction: ltr;
}

/* Desktop Monitor Stand */
.desktop-stand {
  width: 48px;
  height: 24px;
  background: linear-gradient(180deg, #d1d5db 0%, #9ca3af 100%);
  clip-path: polygon(15% 0%, 85% 0%, 100% 100%, 0% 100%);
}

.desktop-base {
  width: 95px;
  height: 5px;
  background: #e5e7eb;
  border-radius: 3px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

/* Card Content / Info Footer */
.program-info {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  text-align: right;
  padding-bottom: 1rem;
}

/* Rightmost Card (ابلكيشن النيابة الادارية / Tall Cards): 18px padding on side and bottom so text doesn't touch the border */
.program-info {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  text-align: right;
  padding: 0;
}

.program-title-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  width: 100%;
}

.program-title {
  font-family: var(--font-display);
  font-feature-settings: "swsh" 1, "salt" 1, "calt" 1, "liga" 1;
  -webkit-font-feature-settings: "swsh" 1, "salt" 1, "calt" 1, "liga" 1;
  font-size: clamp(1.2rem, 1.45vw, 1.5rem);
  font-weight: 700;
  color: var(--color-text-primary);
  margin: 0;
}

/* Brand Badge with Boldonse Font for Project Year */
.program-badge {
  font-family: var(--font-badge-year);
  background: var(--primary-purple);
  color: #ffffff;
  font-size: 0.95rem;
  font-weight: 700;
  width: 53px !important;
  height: 38px !important;
  padding: 0 !important;
  margin: 0;
  border-radius: 0 !important;
  letter-spacing: 0.05em;
  box-shadow: none !important;
  filter: none !important;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  flex-shrink: 0;
}

/* Image-based Brand Badge for Project Year (53x38, square corners, no glow) */
.program-badge-img {
  width: 53px !important;
  height: 38px !important;
  max-width: 53px !important;
  max-height: 38px !important;
  object-fit: fill !important;
  border-radius: 0 !important;
  display: inline-block !important;
  flex-shrink: 0 !important;
  vertical-align: middle !important;
  filter: none !important;
  box-shadow: none !important;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.program-card:hover .program-badge-img {
  transform: scale(1.04) !important;
}

.program-description {
  font-family: var(--font-sans);
  font-size: 0.92rem;
  color: rgba(255, 255, 255, 0.65);
  line-height: 1.65;
  margin: 0;
}

/* View All CTA Button */
.programs-footer {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: clamp(2rem, 3.5vw, 3.5rem);
}

.btn-view-all {
  background: #ffffff !important;
  color: #0b0914 !important;
  border: none !important;
  outline: none !important;
  padding: 0.75rem 2.25rem !important;
  border-radius: 9999px !important;
  font-family: var(--font-display) !important;
  font-feature-settings: "swsh" 1, "salt" 1, "calt" 1, "liga" 1 !important;
  -webkit-font-feature-settings: "swsh" 1, "salt" 1, "calt" 1, "liga" 1 !important;
  font-size: 1.05rem !important;
  font-weight: 700 !important;
  cursor: pointer;
  transition: var(--transition-smooth) !important;
  box-shadow: 0 4px 18px rgba(255, 255, 255, 0.12) !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 0.65rem !important;
  text-decoration: none !important;
  position: relative;
  overflow: hidden;
}

.btn-view-all .btn-arrow-img {
  width: 22px;
  height: 22px;
  object-fit: contain;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  display: inline-block;
  vertical-align: middle;
}

.btn-view-all:hover {
  transform: translateY(-2px) scale(1.02) !important;
  box-shadow: 0 8px 26px rgba(255, 255, 255, 0.28), 0 0 15px rgba(var(--primary-purple-rgb), 0.35) !important;
  color: #0b0914 !important;
  text-shadow: none !important;
}

.btn-view-all:hover .btn-arrow-img {
  transform: translateX(-5px) scale(1.08) !important;
}

.btn-view-all:active {
  transform: translateY(0) scale(0.98) !important;
}

/* Responsive Styles for Programs / Projects Section */
@media (max-width: 1024px) {
  .programs-grid {
    grid-template-columns: 1fr !important;
    max-width: 500px;
    margin: 0 auto clamp(2rem, 3.5vw, 3rem) auto !important;
    gap: clamp(2rem, 4vw, 3rem) !important;
  }
}

@media (max-width: 640px) {
  .programs-section {
    padding: clamp(3.5rem, 7vw, 5rem) 1.25rem !important;
    margin: 0 auto !important;
  }

  .programs-header {
    margin-bottom: 2.25rem !important;
    padding: 0 0.25rem !important;
  }

  .programs-title {
    font-size: clamp(2.1rem, 7vw, 2.6rem) !important;
  }

  .programs-subtitle {
    font-size: 1rem !important;
    line-height: 1.65 !important;
  }

  .programs-grid {
    grid-template-columns: 1fr !important;
    max-width: 100% !important;
    gap: 2.75rem !important;
    padding: 0 0.25rem !important;
  }

  .program-card {
    gap: 1.15rem !important;
  }

  .program-title {
    font-size: 1.3rem !important;
  }
}

/* --------------------------------------------------------------------------
   10. Services Section ("خدماتي") - 2x2 Grid matching media_1790025443706.png
   -------------------------------------------------------------------------- */
.services-section {
  width: 100%;
  background-color: #000000 !important;
  background-image: none !important;
  border-top: none !important;
  border-bottom: 2px solid rgba(196, 196, 196, 0.12) !important;
  padding: clamp(4.5rem, 6.5vw, 7.5rem) 0;
  position: relative;
  z-index: 20;
  overflow: visible;
  box-sizing: border-box;
}

/* Side Ruler Stripes matching 1400px frame margin */
.services-frame-container {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  max-width: min(1400px, calc(100vw - 32px));
  margin: 0 auto;
  pointer-events: none;
  z-index: 5;
}

.services-stripe {
  position: absolute;
  top: 0;
  bottom: 0;
  height: 100% !important;
  width: 24px;
  pointer-events: none;
  z-index: 5;
  overflow: hidden;
}

.services-stripe-right {
  right: 0;
}

.services-stripe-left {
  left: 0;
}

.services-stripe .stripe-svg,
.services-stripe img {
  position: absolute;
  top: 0;
  left: 0;
  width: 24px !important;
  height: 100% !important;
  min-height: 100% !important;
  max-height: 100% !important;
  object-fit: fill !important;
  display: block !important;
}

/* Services Container holding header & grid */
.services-container {
  width: 100%;
  max-width: min(1400px, calc(100vw - 32px));
  margin: 0 auto;
  padding: 0 clamp(2.5rem, 5vw, 6rem);
  position: relative;
  z-index: 10;
  box-sizing: border-box;
}

/* Section Header (Centered) */
.services-header {
  text-align: center;
  margin-bottom: clamp(3rem, 5vw, 5.5rem);
}

.services-title {
  font-family: var(--font-display);
  font-feature-settings: "swsh" 1, "salt" 1, "calt" 1, "liga" 1;
  -webkit-font-feature-settings: "swsh" 1, "salt" 1, "calt" 1, "liga" 1;
  font-size: clamp(2.4rem, 4vw, 3.8rem);
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 0.75rem;
  letter-spacing: -0.02em;
}

.services-subtitle {
  font-family: var(--font-sans);
  font-size: clamp(0.95rem, 1.15vw, 1.2rem);
  color: rgba(255, 255, 255, 0.72);
  line-height: 1.75;
  max-width: 680px;
  margin: 0 auto;
  text-wrap: pretty;
}

/* Services 2x2 Grid */
.services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(2rem, 3.5vw, 3.5rem);
  width: 100%;
  box-sizing: border-box;
}

/* Individual Service Card */
.service-card {
  position: relative;
  background-color: #000000;
  border: 1px solid transparent;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  padding: clamp(2.5rem, 3.5vw, 3.5rem) clamp(1.5rem, 2.5vw, 2.5rem) clamp(2.5rem, 3.5vw, 3.2rem);
  min-height: clamp(480px, 38vw, 560px);
  cursor: pointer;
  box-sizing: border-box;
  overflow: visible;
  transition: background-color 0.4s cubic-bezier(0.16, 1, 0.3, 1),
              box-shadow 0.4s cubic-bezier(0.16, 1, 0.3, 1),
              border-color 0.4s ease,
              transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Number Badge at Top Right with Boldonse Font (53x38, square corners, no glow) */
.service-badge {
  position: absolute;
  top: 0;
  right: 0;
  width: 53px !important;
  height: 38px !important;
  max-width: 53px !important;
  max-height: 38px !important;
  box-sizing: border-box !important;
  background-color: #8664F7;
  color: #ffffff;
  font-family: 'Boldonse', sans-serif !important;
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  padding: 0 !important;
  line-height: 1;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  filter: none !important;
  text-shadow: none !important;
  z-index: 5;
  transition: background-color 0.35s ease, color 0.35s ease;
}

/* Monitor Mockup Area */
.service-mockup-wrap {
  width: 100%;
  max-width: 440px;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: clamp(1.5rem, 2.2vw, 2.5rem);
  transform: translateY(0) scale(1);
  transition: transform 0.45s cubic-bezier(0.16, 1, 0.3, 1), filter 0.45s ease;
  z-index: 2;
}

.service-mockup-img {
  width: 100%;
  height: auto;
  max-height: 290px;
  object-fit: contain;
  display: block;
  filter: drop-shadow(0 12px 28px rgba(0, 0, 0, 0.55));
  transition: filter 0.45s ease, transform 0.45s ease;
}

/* Text Content Area (Centered) */
.service-content {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.8rem;
  max-width: 480px;
  margin: 0 auto;
  z-index: 3;
}

.service-title {
  font-family: var(--font-display);
  font-feature-settings: "swsh" 1, "salt" 1, "calt" 1, "liga" 1;
  -webkit-font-feature-settings: "swsh" 1, "salt" 1, "calt" 1, "liga" 1;
  font-size: clamp(1.6rem, 2.2vw, 2.3rem);
  font-weight: 800;
  color: #ffffff;
  margin: 0;
  line-height: 1.35;
  text-wrap: pretty;
  transition: color 0.3s ease;
}

.service-description {
  font-family: var(--font-sans);
  font-size: clamp(0.92rem, 1.05vw, 1.05rem);
  color: rgba(255, 255, 255, 0.72);
  line-height: 1.75;
  margin: 0;
  text-wrap: pretty;
  transition: color 0.35s ease;
}

/* Interactive Hover State (as represented by Card 02 in media_1790025443706.png) */
.service-card:hover,
.service-card.active {
  background-color: #8664F7 !important;
  border-color: rgba(255, 255, 255, 0.2);
  box-shadow: 0 25px 65px rgba(134, 100, 247, 0.4);
}

.service-card:hover .service-badge,
.service-card.active .service-badge {
  background-color: #ffffff !important;
  color: #0b0914 !important;
}

.service-card:hover .service-mockup-wrap,
.service-card.active .service-mockup-wrap {
  transform: translateY(-12px) scale(1.05);
}

.service-card:hover .service-mockup-img,
.service-card.active .service-mockup-img {
  filter: drop-shadow(0 25px 50px rgba(0, 0, 0, 0.7));
}

.service-card:hover .service-description,
.service-card.active .service-description {
  color: rgba(255, 255, 255, 0.96);
}

/* Responsive Media Queries for Services Section */
@media (max-width: 900px) {
  .services-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .services-container {
    padding: 0 1.5rem;
  }

  .service-card {
    min-height: 440px;
    padding: 2.5rem 1.5rem;
  }

  .service-mockup-wrap {
    max-width: 360px;
  }
}

@media (max-width: 640px) {
  .services-section {
    padding: 3.5rem 0;
  }

  .services-header {
    margin-bottom: 2.5rem;
  }

  .service-card {
    min-height: auto;
    padding: 2rem 1.2rem;
  }

  .service-title {
    font-size: 1.45rem;
  }

  .service-description {
    font-size: 0.88rem;
    line-height: 1.65;
  }
}

/* --------------------------------------------------------------------------
   11. About Me Section ("من أنا") matching exact design mockup
   -------------------------------------------------------------------------- */
.about-section {
  width: 100%;
  background-color: #040404 !important;
  border-top: none;
  border-bottom: 2px solid rgba(196, 196, 196, 0.12) !important;
  padding: clamp(4.5rem, 7vw, 7rem) 0;
  position: relative;
  z-index: 20;
  box-sizing: border-box;
}

/* Side Ruler Stripes matching Hero frame margin (1400px) */
.about-frame-container {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  max-width: min(1400px, calc(100vw - 32px));
  margin: 0 auto;
  pointer-events: none;
  z-index: 5;
}

.about-stripe {
  position: absolute;
  top: 0;
  bottom: 0;
  height: 100% !important;
  width: 24px;
  pointer-events: none;
  z-index: 5;
  overflow: hidden;
}

.about-stripe-right {
  right: 0;
}

.about-stripe-left {
  left: 0;
}

.about-stripe .stripe-svg,
.about-stripe img {
  position: absolute;
  top: 0;
  left: 0;
  width: 24px !important;
  height: 100% !important;
  min-height: 100% !important;
  max-height: 100% !important;
  object-fit: fill !important;
  display: block !important;
}

/* About Container holding content and portrait */
.about-container {
  width: 100%;
  max-width: min(1400px, calc(100vw - 32px));
  margin: 0 auto;
  padding-top: 0;
  padding-bottom: 0;
  padding-right: clamp(2.5rem, 5vw, 6rem);
  padding-left: 24px;
  padding-inline-start: clamp(2.5rem, 5vw, 6rem);
  padding-inline-end: 24px;
  display: flex;
  flex-direction: row; /* In RTL: right is content, left is visual */
  align-items: center;
  justify-content: space-between;
  gap: clamp(2rem, 3.5vw, 5rem);
  position: relative;
  z-index: 10;
  box-sizing: border-box;
}

/* Right Content Column (Logo, Bio Statements, Stats) */
.about-content-column {
  flex: 1 1 56%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-align: right;
  gap: clamp(1.6rem, 2.5vw, 2.6rem);
  position: relative;
  z-index: 2;
  box-sizing: border-box;
}

/* Brand Logo (عربي) */
.about-logo-wrapper {
  display: flex;
  justify-content: flex-start; /* In RTL, flex-start is right */
  margin-bottom: 0.2rem;
}

.about-brand-logo {
  height: clamp(44px, 3.4vw, 56px);
  width: auto;
  display: block;
}

/* Bio Statements */
.about-statement-text {
  font-family: var(--font-sans);
  display: flex;
  flex-direction: column;
  gap: clamp(1rem, 1.4vw, 1.4rem);
  color: #ffffff;
  margin: 0;
}

.about-statement-lead,
.about-statement-desc {
  font-size: clamp(1.05rem, 1.3vw, 1.28rem);
  font-weight: 500;
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.92);
  margin: 0;
  text-wrap: pretty;
}

/* Stats Row: 3 Metrics aligned horizontally */
.about-stats-row {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: clamp(2.5rem, 4.5vw, 5.5rem);
  margin-top: clamp(0.6rem, 1.2vw, 1.2rem);
}

.about-stat-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.45rem;
  text-align: right;
}

.about-stat-item .stat-number {
  font-family: var(--font-display);
  font-size: clamp(3.2rem, 4.5vw, 5.2rem);
  font-weight: 800;
  line-height: 1;
  color: #ffffff;
  letter-spacing: -0.02em;
}

.about-stat-item .stat-label {
  font-family: var(--font-sans);
  font-size: clamp(0.95rem, 1.1vw, 1.15rem);
  font-weight: 500;
  color: rgba(255, 255, 255, 0.72);
}

/* CV Button in About Section matching media_1790039806816.jpg */
.about-cv-wrapper {
  margin-top: clamp(1.4rem, 2.4vw, 2.2rem);
  width: 100%;
}

.btn-about-cv {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: #ffffff !important;
  font-family: var(--font-sans);
  font-size: 1.05rem;
  font-weight: 700;
  padding: 0.9rem 2.4rem;
  border-radius: 9999px;
  text-decoration: none !important;
  cursor: pointer;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  box-sizing: border-box;
}

.btn-about-cv:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.35);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.5), 0 0 15px rgba(255, 255, 255, 0.1);
}

.btn-about-cv .cv-arrow-icon {
  width: 18px;
  height: 18px;
  stroke: #ffffff;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn-about-cv:hover .cv-arrow-icon {
  transform: translateX(-4px);
}

/* Left Visual Column (Portrait Photo Card) - Stuck to the left stripe, 0 corner radius */
.about-visual-column {
  flex: 0 0 clamp(320px, 36vw, 490px);
  max-width: 490px;
  width: 100%;
  display: flex;
  justify-content: flex-start;
  align-items: center;
  position: relative;
  z-index: 2;
  box-sizing: border-box;
  margin: 0;
}

.about-portrait-card {
  width: 100%;
  aspect-ratio: 1 / 1.05;
  border-radius: 0 !important;
  overflow: hidden;
  position: relative;
  background-color: #8b80f9;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.7);
  margin: 0;
}

.about-portrait-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
  border-radius: 0 !important;
}

/* Responsive Media Queries for About Section matching media_1790039806817.jpg & media_1790039806816.jpg */
@media (max-width: 1024px) {
  .about-section {
    padding: clamp(2rem, 4vw, 3.5rem) 0 clamp(3.5rem, 6vw, 5rem) 0 !important;
  }

  .about-frame-container,
  .about-stripe {
    display: none !important;
  }

  /* Full Bleed: 0 padding on container so portrait photo touches screen edges completely */
  .about-container {
    flex-direction: column-reverse !important;
    align-items: stretch !important;
    text-align: right !important;
    gap: 2.25rem !important;
    padding: 0 !important;
    max-width: 100% !important;
    width: 100% !important;
  }

  /* Image takes the entire frame width edge-to-edge on mobile */
  .about-visual-column {
    max-width: 100% !important;
    width: 100% !important;
    flex: 1 1 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    display: block !important;
  }

  .about-portrait-card {
    width: 100% !important;
    max-width: 100% !important;
    aspect-ratio: 1 / 1.08 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    margin: 0 !important;
  }

  .about-portrait-img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    object-position: center top !important;
    border-radius: 0 !important;
  }

  /* Content Column has generous side padding so text and button don't touch screen edges */
  .about-content-column {
    width: 100% !important;
    padding: 0 clamp(1.25rem, 5vw, 2rem) !important;
    box-sizing: border-box !important;
    align-items: flex-start !important;
    text-align: right !important;
    gap: 1.65rem !important;
  }

  .about-logo-wrapper {
    justify-content: flex-start !important;
    margin-bottom: 0.2rem !important;
  }

  .about-brand-logo {
    height: 48px !important;
  }

  .about-statement-text {
    gap: 1.35rem !important;
    text-align: right !important;
  }

  .about-statement-lead,
  .about-statement-desc {
    text-align: right !important;
    font-size: clamp(1.15rem, 4.4vw, 1.28rem) !important;
    line-height: 1.85 !important;
    font-weight: 500 !important;
    color: rgba(255, 255, 255, 0.95) !important;
  }

  .about-stats-row {
    display: flex !important;
    flex-direction: row !important;
    justify-content: space-between !important;
    align-items: flex-start !important;
    width: 100% !important;
    gap: 0.75rem !important;
    margin-top: 1rem !important;
    flex-wrap: nowrap !important;
  }

  .about-stat-item {
    align-items: flex-start !important;
    text-align: right !important;
    flex: 1 1 0 !important;
  }

  .about-stat-item .stat-number {
    font-size: clamp(2.8rem, 8.5vw, 3.8rem) !important;
    font-weight: 800 !important;
    line-height: 1 !important;
  }

  .about-stat-item .stat-label {
    font-size: clamp(0.92rem, 3vw, 1.08rem) !important;
    color: rgba(255, 255, 255, 0.75) !important;
  }

  .about-cv-wrapper {
    width: 100% !important;
    margin-top: 1.75rem !important;
  }

  .btn-about-cv {
    width: 100% !important;
    height: 54px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 0.75rem !important;
    font-size: 1.1rem !important;
    padding: 0 !important;
  }
}

@media (max-width: 640px) {
  .about-section {
    padding: 2rem 0 clamp(3rem, 5vw, 4rem) 0 !important;
  }

  .about-container {
    padding: 0 !important;
    gap: 1.85rem !important;
  }

  .about-content-column {
    padding: 0 1.25rem !important;
  }

  .about-statement-lead,
  .about-statement-desc {
    font-size: 1.18rem !important;
    line-height: 1.85 !important;
  }

  .about-stat-item .stat-number {
    font-size: 3rem !important;
  }
}


/* --------------------------------------------------------------------------
   11.2 Testimonials Section ("كلمات من القلب من عملائي")
   -------------------------------------------------------------------------- */
.testimonials-section {
  width: 100%;
  background-color: #000000;
  border-top: 1px solid rgba(255, 255, 255, 0.10);
  padding: clamp(3.5rem, 5.5vw, 6.5rem) 1rem clamp(3.5rem, 6vw, 7rem) 1rem;
  position: relative;
  z-index: 20;
  box-sizing: border-box;
}

.testimonials-container {
  width: 100%;
  max-width: min(1400px, calc(100vw - 32px));
  margin: 0 auto;
  position: relative;
  box-sizing: border-box;
}

/* Header with Title and Rating Badge */
.testimonials-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: clamp(2.2rem, 3.5vw, 3.8rem);
  padding: 0 clamp(0.5rem, 1vw, 1.5rem);
  flex-wrap: wrap;
  gap: 1.5rem;
}

.testimonials-title-wrap {
  text-align: right;
}

.testimonials-title {
  font-family: var(--font-display);
  font-feature-settings: "swsh" 1, "salt" 1, "calt" 1, "liga" 1;
  -webkit-font-feature-settings: "swsh" 1, "salt" 1, "calt" 1, "liga" 1;
  font-size: clamp(2.4rem, 4.2vw, 4.2rem);
  font-weight: 800;
  color: #ffffff;
  line-height: 1.25;
  margin: 0;
  letter-spacing: -0.02em;
  display: flex;
  flex-direction: column;
}

.testimonials-title-sub {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 4.2vw, 4.2rem);
  font-weight: 800;
  color: #ffffff;
}

/* Left Rating Badge */
.testimonials-rating-badge {
  display: inline-flex;
  align-items: center;
  gap: 1.25rem;
  background: transparent;
  padding: 0;
}

.rating-stars-col {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.45rem;
}

.rating-stars-row {
  display: flex;
  align-items: center;
  gap: 4px;
}

.rating-star-icon {
  width: 15px;
  height: 15px;
  object-fit: contain;
  display: block;
}

.rating-count-text {
  font-family: var(--font-sans);
  font-size: 0.9rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.85);
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.rating-hearts-wrap {
  display: flex;
  align-items: center;
}

.rating-hearts-img {
  height: 42px;
  width: auto;
  object-fit: contain;
  display: block;
}

/* Cards Outer Frame with 12% White Border */
.testimonials-cards-frame {
  width: 100%;
  background-color: #000000;
  border: 1px solid rgba(255, 255, 255, 0.12); /* FFFFFF 12% stroke */
  border-radius: 0 !important;
  padding: 0 !important; /* Flush with outer border */
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.9);
  overflow: hidden;
  box-sizing: border-box;
}

/* 3x2 Grid with 12px gap requested by user */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  width: 100%;
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  background-color: #000000;
}

/* Single Testimonial Card */
.testimonial-card {
  background-color: #040404; /* Card color #040404 */
  border: none !important;
  border-radius: 0 !important;
  padding: clamp(2rem, 2.8vw, 3rem) clamp(1.8rem, 2.5vw, 2.6rem);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: clamp(300px, 24vw, 360px);
  position: relative;
  box-sizing: border-box;
  transition: background-color 0.35s ease, transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.35s ease;
}

.testimonial-card:hover {
  background-color: #0c0a14;
  transform: translateY(-4px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.6), 0 0 25px rgba(134, 100, 247, 0.15);
}

/* Top Quote Mark (Aligned to right in Arabic writing direction) */
.testimonial-top {
  display: flex;
  justify-content: flex-start; /* Right-aligned in RTL (Arabic writing direction) */
  align-items: center;
  width: 100%;
  margin-bottom: 1.5rem;
}

.testimonial-quote-icon {
  width: 26px;
  height: auto;
  object-fit: contain;
  opacity: 0.95;
  display: block;
}

/* Testimonial Text */
.testimonial-text {
  font-family: var(--font-sans);
  font-size: clamp(0.95rem, 1.1vw, 1.1rem);
  font-weight: 500;
  line-height: 1.85;
  color: rgba(255, 255, 255, 0.92);
  margin: 0;
  margin-bottom: 2rem;
  text-align: right;
  flex: 1;
}

/* Author Info Row (Bottom Right) */
.testimonial-author {
  display: flex;
  align-items: center;
  justify-content: flex-start; /* In RTL, right-aligned */
  gap: 0.9rem;
  margin-top: auto;
  text-align: right;
}

.author-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  border: 1.5px solid rgba(255, 255, 255, 0.18);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
}

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

.author-name {
  font-family: var(--font-sans);
  font-size: 1.02rem;
  font-weight: 700;
  color: #ffffff;
  margin: 0;
  line-height: 1.3;
}

.author-title {
  font-family: var(--font-sans);
  font-size: 0.82rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.52);
  margin: 0;
  line-height: 1.3;
}

/* Responsive Styles for Testimonials */
@media (max-width: 1024px) {
  .testimonials-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }
}

@media (max-width: 680px) {
  .testimonials-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .testimonials-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 1.25rem;
  }

  .testimonial-card {
    min-height: auto;
    padding: 1.75rem 1.4rem;
  }
}

/* --------------------------------------------------------------------------
   11.3 Articles / My Writings Section ("كتاباتي") matching media_1790027385731.png
   -------------------------------------------------------------------------- */
.articles-section {
  width: 100%;
  background-color: #040404 !important;
  border-top: none;
  border-bottom: 2px solid rgba(196, 196, 196, 0.12) !important;
  padding: clamp(4.5rem, 6.5vw, 6.5rem) 0 clamp(4.5rem, 6.5vw, 6.5rem) 0;
  position: relative;
  z-index: 20;
  box-sizing: border-box;
}

/* Side Ruler Stripes matching Hero frame margin (1400px) */
.articles-frame-container {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  max-width: min(1400px, calc(100vw - 32px));
  margin: 0 auto;
  pointer-events: none;
  z-index: 5;
}

.articles-stripe {
  position: absolute;
  top: 0;
  bottom: 0;
  height: 100% !important;
  width: 24px;
  pointer-events: none;
  z-index: 5;
  overflow: hidden;
}

.articles-stripe-right {
  right: 0;
}

.articles-stripe-left {
  left: 0;
}

.articles-stripe .stripe-svg,
.articles-stripe img {
  position: absolute;
  top: 0;
  left: 0;
  width: 24px !important;
  height: 100% !important;
  min-height: 100% !important;
  max-height: 100% !important;
  object-fit: fill !important;
  display: block !important;
}

/* Container holding header and 3 articles */
.articles-container {
  width: 100%;
  max-width: min(1400px, calc(100vw - 32px));
  margin: 0 auto;
  padding: 0 clamp(1.5rem, 3vw, 3rem);
  position: relative;
  z-index: 10;
  box-sizing: border-box;
}

/* Section Header (Centered with Animated Say Less Sticker) */
.articles-header {
  text-align: center;
  margin-bottom: clamp(2.8rem, 4vw, 4.2rem);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
  position: relative;
}

.articles-title {
  font-family: var(--font-display);
  font-feature-settings: "swsh" 1, "salt" 1, "calt" 1, "liga" 1;
  -webkit-font-feature-settings: "swsh" 1, "salt" 1, "calt" 1, "liga" 1;
  font-size: clamp(2.5rem, 4vw, 3.8rem);
  font-weight: 800;
  color: #ffffff;
  margin: 0;
  line-height: 1.25;
  letter-spacing: -0.02em;
}

/* Floating "Say less" Sticker matching hero floating stickers */
.article-sticker-sayless {
  display: inline-block;
  margin-top: 0.35rem;
  width: clamp(120px, 11vw, 155px);
  user-select: none;
  cursor: pointer;
  animation: floatSayLess 4.5s ease-in-out infinite alternate;
  will-change: transform;
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), filter 0.35s ease;
  z-index: 10;
}

.article-sticker-sayless .sayless-img {
  display: block;
  width: 100%;
  height: auto;
  filter: drop-shadow(0 8px 22px rgba(0, 0, 0, 0.7));
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), filter 0.35s ease;
}

.article-sticker-sayless:hover {
  filter: drop-shadow(0 0 20px rgba(134, 100, 247, 0.45));
}

.article-sticker-sayless:hover .sayless-img {
  transform: scale(1.08) rotate(-2.5deg);
  filter: drop-shadow(0 14px 28px rgba(0, 0, 0, 0.85));
}

@keyframes floatSayLess {
  0% {
    transform: translateY(0px) rotate(-1deg);
  }
  50% {
    transform: translateY(-8px) rotate(2.5deg) scale(1.03);
  }
  100% {
    transform: translateY(4px) rotate(-2deg) scale(0.98);
  }
}

/* 3 Articles Grid */
.articles-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: start;
  gap: clamp(16px, 2vw, 28px);
  width: 100%;
  box-sizing: border-box;
}

/* Card Base Structure */
.article-card {
  display: flex;
  flex-direction: column;
  background: transparent;
  border: none !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  overflow: visible;
  text-align: right;
  position: relative;
  box-sizing: border-box;
  width: 100%;
}

.article-card-link {
  display: flex;
  flex-direction: column;
  text-decoration: none !important;
  color: inherit;
  width: 100%;
}

/* Card Cover Wrappers */
.article-cover-wrap {
  width: 100%;
  overflow: hidden;
  position: relative;
  background-color: #111111;
  border-radius: 0 !important;
}

.article-cover-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  border-radius: 0 !important;
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1), filter 0.4s ease;
}

.article-card:hover .article-cover-img {
  transform: scale(1.035);
}

/* First child (Smartwatch) & Middle child (Phone mockup) are tall cards */
.articles-grid > .article-card:first-child .article-cover-wrap,
.articles-grid > .article-card:nth-child(2) .article-cover-wrap {
  width: 100%;
  aspect-ratio: 1 / 1.3;
}

/* Last Card (knitted creature - moved to last as requested) is small square card */
.articles-grid > .article-card:last-child .article-cover-wrap {
  width: 100%;
  aspect-ratio: 1 / 0.98;
}

/* Article Card Body (Text Below Image) */
.article-body {
  padding-top: clamp(1rem, 1.4vw, 1.35rem);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.35rem;
  text-align: right;
  width: 100%;
}

.article-category {
  font-family: var(--font-sans);
  font-size: clamp(0.85rem, 0.95vw, 0.95rem);
  font-weight: 600;
  color: #8664F7;
  letter-spacing: 0.01em;
  margin-bottom: 0.1rem;
}

.article-heading {
  font-family: var(--font-sans);
  font-size: clamp(1.1rem, 1.3vw, 1.3rem);
  font-weight: 700;
  color: #ffffff;
  margin: 0;
  line-height: 1.38;
  transition: color 0.3s ease;
}

.article-card:hover .article-heading {
  color: #a88eff;
}

.article-date {
  font-family: var(--font-sans);
  font-size: clamp(0.8rem, 0.9vw, 0.88rem);
  color: rgba(255, 255, 255, 0.55);
  margin-top: 0.15rem;
}

/* White Pill CTA Button ("جميع كتاباتي") - Exact match for media_1790028929950.png */
.article-middle-btn-wrap {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: clamp(1.4rem, 2.2vw, 2.4rem);
  width: 100%;
}

.btn-all-articles {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background-color: #ffffff;
  color: #040404 !important;
  font-family: var(--font-sans);
  font-size: clamp(0.95rem, 1.05vw, 1.05rem);
  font-weight: 700;
  padding: 0.75rem 2.2rem;
  border-radius: 9999px;
  text-decoration: none !important;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1),
              background-color 0.3s ease,
              color 0.3s ease,
              box-shadow 0.3s ease;
}

.btn-all-articles:hover {
  background-color: #8664F7;
  color: #ffffff !important;
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 8px 25px rgba(134, 100, 247, 0.45);
}

.articles-footer {
  display: none !important;
}

/* Responsive Breakpoints */
@media (max-width: 1024px) {
  .articles-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.25rem;
  }

  .articles-grid > .article-card:first-child .article-cover-wrap,
  .articles-grid > .article-card:nth-child(2) .article-cover-wrap {
    aspect-ratio: 1 / 1.3;
  }

  .articles-grid > .article-card:last-child .article-cover-wrap {
    aspect-ratio: 1 / 0.98;
  }
}

@media (max-width: 900px) {
  .articles-grid {
    grid-template-columns: 1fr;
    max-width: 445px;
    margin: 0 auto;
    gap: 2.75rem;
  }

  .article-middle-btn-wrap {
    display: flex;
    justify-content: center;
    margin-top: 1.5rem;
  }

  .articles-footer {
    display: none !important;
  }
}

@media (max-width: 640px) {
  .articles-section {
    padding: 3.5rem 0;
  }

  .articles-container {
    padding: 0 1.25rem;
  }

  .articles-header {
    margin-bottom: 2.2rem;
  }

  .articles-title {
    font-size: 2.2rem;
  }

  .article-sticker-sayless {
    width: clamp(100px, 28vw, 130px);
  }

  .articles-grid {
    gap: 2.2rem;
  }
}

/* --------------------------------------------------------------------------
   11. Consultation Modal (Glassmorphism)
   -------------------------------------------------------------------------- */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(4, 3, 8, 0.75);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition-smooth);
}

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

.modal-card {
  background: rgba(16, 14, 26, 0.92);
  border: 1px solid var(--color-border-default);
  border-radius: 24px;
  padding: 2.75rem 2.5rem;
  width: 100%;
  max-width: 540px;
  position: relative;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.8), 0 0 40px rgba(var(--primary-purple-rgb), 0.15);
  transform: scale(0.94) translateY(20px);
  transition: var(--transition-smooth);
}

.modal-backdrop.active .modal-card {
  transform: scale(1) translateY(0);
}

.modal-close-btn {
  position: absolute;
  top: 1.25rem;
  left: 1.25rem;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--color-text-primary);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-smooth);
}

.modal-close-btn:hover {
  background: rgba(255, 255, 255, 0.15);
  transform: rotate(90deg);
}

.modal-header {
  text-align: center;
  margin-bottom: 2rem;
}

.modal-badge {
  display: inline-block;
  background: rgba(var(--primary-purple-rgb), 0.15);
  color: var(--primary-purple);
  border: 1px solid rgba(var(--primary-purple-rgb), 0.3);
  padding: 0.3rem 0.9rem;
  border-radius: 9999px;
  font-size: 0.8rem;
  font-weight: 600;
  margin-bottom: 0.85rem;
}

.modal-title {
  font-family: var(--font-display);
  font-feature-settings: "swsh" 1, "salt" 1, "calt" 1, "liga" 1;
  -webkit-font-feature-settings: "swsh" 1, "salt" 1, "calt" 1, "liga" 1;
  font-size: 1.85rem;
  font-weight: 700;
  color: var(--color-text-primary);
  margin-bottom: 0.5rem;
}

.modal-subtitle {
  font-size: 0.92rem;
  color: var(--color-text-muted);
  line-height: 1.6;
}

.consultation-form {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  text-align: right;
}

.form-group label {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--color-text-secondary);
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--color-border-subtle);
  border-radius: 12px;
  padding: 0.85rem 1.1rem;
  color: #ffffff;
  font-family: var(--font-sans);
  font-size: 0.95rem;
  outline: none;
  transition: var(--transition-smooth);
}

.form-group select option {
  background: #141122;
  color: #ffffff;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--primary-purple);
  background: rgba(var(--primary-purple-rgb), 0.06);
  box-shadow: 0 0 0 3px rgba(var(--primary-purple-rgb), 0.2);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--color-text-subtle);
  font-size: 0.88rem;
}

.submit-btn {
  background: linear-gradient(135deg, #997cfd 0%, #8664F7 100%);
  color: #ffffff;
  border: none;
  padding: 0.95rem;
  border-radius: 12px;
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  margin-top: 0.5rem;
  transition: var(--transition-smooth);
  box-shadow: 0 8px 25px rgba(var(--primary-purple-rgb), 0.35);
}

.submit-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(var(--primary-purple-rgb), 0.55);
  background: linear-gradient(135deg, #a88eff 0%, #8664F7 100%);
}

.submit-btn:active {
  transform: translateY(0);
}

/* --------------------------------------------------------------------------
   11.1 Specializations Modal Popup (مجالات التخصص)
   -------------------------------------------------------------------------- */
.modal-card.specializations-modal-card {
  max-width: 860px;
  max-height: 88vh;
  overflow-y: auto;
  border-radius: 0 !important;
  background: rgba(10, 8, 18, 0.97);
  border: 1px solid rgba(255, 255, 255, 0.12);
  padding: clamp(2rem, 3vw, 3rem) clamp(1.5rem, 2.5vw, 2.75rem);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.9), 0 0 50px rgba(var(--primary-purple-rgb), 0.2);
  scrollbar-width: thin;
  scrollbar-color: rgba(134, 100, 247, 0.4) transparent;
}

.specializations-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(1rem, 1.4vw, 1.25rem);
  margin-top: 1.5rem;
}

.specialization-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 0 !important;
  padding: 1.25rem 1.2rem;
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  text-align: right;
  transition: var(--transition-smooth);
}

.specialization-card:hover {
  background: rgba(134, 100, 247, 0.08);
  border-color: rgba(134, 100, 247, 0.35);
  transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4), 0 0 20px rgba(134, 100, 247, 0.15);
}

.spec-icon-wrapper {
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 0 !important;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-smooth);
}

.specialization-card:hover .spec-icon-wrapper {
  background: rgba(134, 100, 247, 0.15);
  border-color: rgba(134, 100, 247, 0.4);
}

.spec-details {
  flex: 1;
  min-width: 0;
}

.spec-title {
  font-family: var(--font-display);
  font-feature-settings: "swsh" 1, "salt" 1, "calt" 1, "liga" 1;
  -webkit-font-feature-settings: "swsh" 1, "salt" 1, "calt" 1, "liga" 1;
  font-size: 1.15rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 0.35rem;
  letter-spacing: -0.01em;
}

.spec-description {
  font-family: var(--font-sans);
  font-size: 0.88rem;
  line-height: 1.6;
  color: var(--color-text-muted);
}

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

  .about-bottom-actions-wrap {
    flex-direction: column;
    align-items: flex-start;
    gap: 1.75rem;
  }
}

/* --------------------------------------------------------------------------
   11. Studio X-Style Fullscreen Navigation Menu Overlay (Dynamic Interactive Reveal)
   -------------------------------------------------------------------------- */
.menu-overlay {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  background: radial-gradient(circle at 10% 10%, #9b7bff 0%, #8664F7 40%, #683ee3 85%, #5021d1 100%);
  z-index: 9999;
  opacity: 0;
  visibility: hidden;
  clip-path: circle(0% at 50px 45px);
  -webkit-clip-path: circle(0% at 50px 45px);
  transition: clip-path 0.65s cubic-bezier(0.77, 0, 0.175, 1),
              -webkit-clip-path 0.65s cubic-bezier(0.77, 0, 0.175, 1),
              opacity 0.45s ease,
              visibility 0.65s;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.menu-overlay::before {
  content: '';
  position: absolute;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  top: -150px;
  left: -150px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.25) 0%, rgba(255, 255, 255, 0) 70%);
  pointer-events: none;
  filter: blur(60px);
}

.menu-overlay::after {
  content: '';
  position: absolute;
  width: 700px;
  height: 700px;
  border-radius: 50%;
  bottom: -200px;
  right: -200px;
  background: radial-gradient(circle, rgba(102, 226, 153, 0.18) 0%, rgba(102, 226, 153, 0) 70%);
  pointer-events: none;
  filter: blur(80px);
}

.menu-overlay.active {
  opacity: 1;
  visibility: visible;
  clip-path: circle(160% at 50px 45px);
  -webkit-clip-path: circle(160% at 50px 45px);
}

.menu-fullscreen-content {
  width: 100%;
  height: 100%;
  max-width: min(1400px, calc(100vw - 48px));
  margin: 0 auto;
  padding: clamp(1.5rem, 3vw, 2.5rem) clamp(1rem, 2vw, 2rem);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-sizing: border-box;
  position: relative;
  z-index: 2;
}

/* Top Bar */
.menu-top-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.22);
  transform: translateY(-25px);
  opacity: 0;
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.4s ease;
}

.menu-overlay.active .menu-top-bar {
  transform: translateY(0);
  opacity: 1;
  transition-delay: 0.15s;
}

.menu-logo-img {
  height: 46px;
  width: auto;
  display: block;
  transition: transform 0.3s ease, opacity 0.2s ease;
  filter: brightness(0) invert(1);
}

.menu-logo-link:hover .menu-logo-img {
  transform: scale(1.08);
  opacity: 0.9;
}

.menu-close-btn {
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.28);
  color: #ffffff;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
}

.menu-close-btn:hover {
  background: #ffffff;
  color: #8664F7;
  border-color: #ffffff;
  transform: rotate(180deg) scale(1.1);
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.25), 0 0 15px rgba(255, 255, 255, 0.5);
}

.menu-close-btn:active {
  transform: rotate(180deg) scale(0.92);
}

/* Centered Navigation Links */
.fullscreen-nav {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem 0;
}

.fullscreen-nav-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: clamp(0.6rem, 2vh, 1.25rem);
  text-align: center;
}

.fullscreen-nav-item {
  transform: translateY(40px) scale(0.92);
  opacity: 0;
  filter: blur(4px);
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1),
              opacity 0.5s ease,
              filter 0.5s ease;
}

.menu-overlay.active .fullscreen-nav-item {
  transform: translateY(0) scale(1);
  opacity: 1;
  filter: blur(0);
}

.menu-overlay.active .fullscreen-nav-item:nth-child(1) { transition-delay: 0.18s; }
.menu-overlay.active .fullscreen-nav-item:nth-child(2) { transition-delay: 0.24s; }
.menu-overlay.active .fullscreen-nav-item:nth-child(3) { transition-delay: 0.30s; }
.menu-overlay.active .fullscreen-nav-item:nth-child(4) { transition-delay: 0.36s; }
.menu-overlay.active .fullscreen-nav-item:nth-child(5) { transition-delay: 0.42s; }

/* Interactive Hover Sibling Dimming on Link list */
.fullscreen-nav-list:hover .fullscreen-nav-link {
  opacity: 0.4;
  transform: scale(0.96);
}

.fullscreen-nav-list:hover .fullscreen-nav-link:hover {
  opacity: 1;
  transform: scale(1.08) translateX(-10px);
}

.fullscreen-nav-link {
  font-family: var(--font-display);
  font-feature-settings: "swsh" 1, "salt" 1, "calt" 1, "liga" 1;
  -webkit-font-feature-settings: "swsh" 1, "salt" 1, "calt" 1, "liga" 1;
  font-size: clamp(1.9rem, 3.8vw, 56px);
  font-weight: 700;
  color: #ffffff;
  text-decoration: none;
  display: inline-flex;
  align-items: baseline;
  gap: clamp(0.6rem, 1.3vw, 1.25rem);
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  letter-spacing: -0.02em;
  padding: 0.2rem 1rem;
  border-radius: 9999px;
}

.fullscreen-nav-link .nav-num {
  font-family: 'Boldonse', var(--font-sans);
  font-size: clamp(0.85rem, 1.2vw, 1.05rem);
  color: rgba(255, 255, 255, 0.6);
  font-weight: 600;
  letter-spacing: 0.05em;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.fullscreen-nav-link .nav-label {
  position: relative;
  transition: all 0.3s ease;
}

.fullscreen-nav-link:hover,
.fullscreen-nav-link.active {
  color: #ffffff;
  text-shadow: 0 0 30px rgba(255, 255, 255, 0.6);
}

.fullscreen-nav-link:hover .nav-num,
.fullscreen-nav-link.active .nav-num {
  color: #ffffff;
  opacity: 1;
  transform: translateY(-4px);
  text-shadow: 0 0 12px rgba(255, 255, 255, 0.8);
}

/* Menu CTA Consultation Button */
.menu-cta-section {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 0.5rem 0 1.25rem 0;
  transform: translateY(20px);
  opacity: 0;
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.4s ease;
}

.menu-overlay.active .menu-cta-section {
  transform: translateY(0);
  opacity: 1;
  transition-delay: 0.32s;
}

.btn-menu-consultation {
  background: #ffffff;
  color: #0b0914;
  border: none;
  outline: none;
  padding: 0.8rem 2.2rem;
  border-radius: 9999px;
  font-family: var(--font-display);
  font-feature-settings: "swsh" 1, "salt" 1, "calt" 1, "liga" 1;
  -webkit-font-feature-settings: "swsh" 1, "salt" 1, "calt" 1, "liga" 1;
  font-size: 1.05rem;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25), 0 0 20px rgba(255, 255, 255, 0.25);
  text-decoration: none;
}

.btn-menu-consultation .btn-arrow-img {
  width: 16px;
  height: 16px;
  filter: brightness(0);
  transition: transform 0.3s ease;
}

.btn-menu-consultation:hover {
  transform: translateY(-3px) scale(1.03);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.35), 0 0 25px rgba(255, 255, 255, 0.5);
  background: #ffffff;
  color: #8664F7;
}

.btn-menu-consultation:hover .btn-arrow-img {
  transform: translateX(-4px);
  filter: invert(41%) sepia(85%) saturate(3015%) hue-rotate(233deg) brightness(98%) contrast(98%);
}

.btn-menu-consultation:active {
  transform: translateY(0) scale(0.97);
}

/* Bottom Bar */
.menu-bottom-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.25rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.22);
  width: 100%;
  transform: translateY(25px);
  opacity: 0;
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.4s ease;
}

.menu-overlay.active .menu-bottom-bar {
  transform: translateY(0);
  opacity: 1;
  transition-delay: 0.35s;
}

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

.menu-social-item {
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
  font-family: var(--font-sans);
  font-size: 0.95rem;
  font-weight: 600;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
}

.menu-social-item:hover {
  color: #ffffff;
  transform: translateY(-3px);
  text-shadow: 0 0 12px rgba(255, 255, 255, 0.7);
}

.menu-copyright {
  font-family: var(--font-sans);
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.75);
  margin: 0;
}

@media (max-width: 640px) {
  .menu-overlay {
    clip-path: circle(0% at 35px 35px);
    -webkit-clip-path: circle(0% at 35px 35px);
  }
  .menu-overlay.active {
    clip-path: circle(160% at 35px 35px);
    -webkit-clip-path: circle(160% at 35px 35px);
  }
  .menu-fullscreen-content {
    padding: 1.25rem 1rem;
  }
  .fullscreen-nav-list {
    gap: 0.95rem;
  }
  .fullscreen-nav-link {
    font-size: clamp(1.8rem, 6.5vw, 2.3rem);
    gap: 0.5rem;
  }
  .menu-bottom-bar {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 0.85rem;
  }
  .menu-social-links {
    justify-content: center;
    gap: 1.25rem;
  }
}

/* --------------------------------------------------------------------------
   12. Toast Notifications
   -------------------------------------------------------------------------- */
.toast-container {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 200;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  pointer-events: none;
}

.toast {
  background: rgba(18, 15, 30, 0.95);
  border: 1px solid rgba(var(--primary-green-rgb), 0.4);
  color: #ffffff;
  padding: 1rem 1.5rem;
  border-radius: 14px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6), 0 0 20px rgba(var(--primary-green-rgb), 0.2);
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.92rem;
  font-weight: 600;
  animation: toastIn 0.4s cubic-bezier(0.16, 1, 0.3, 1) both;
  pointer-events: auto;
}

@keyframes toastIn {
  from {
    opacity: 0;
    transform: translateY(20px) scale(0.9);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* --------------------------------------------------------------------------
   13. Responsive Media Queries
   -------------------------------------------------------------------------- */
@media (max-width: 1200px) {
  .programs-grid {
    gap: 1.5rem;
  }

  .programs-container-border {
    padding: 2.5rem 1.5rem;
  }
}

@media (max-width: 1680px) {
  .programs-grid {
    overflow-x: auto;
    padding-bottom: 1rem;
    scrollbar-width: thin;
    scrollbar-color: rgba(134, 100, 247, 0.4) transparent;
  }
}

@media (max-width: 992px) {
  .site-header {
    padding: 1.75rem 2rem 1rem 2rem;
  }

  .grid-overlay {
    padding: 0 20px;
  }

  .hero-title {
    font-size: clamp(2rem, 6vw, 3.5rem);
  }

  .hero-description {
    font-size: 1.05rem;
    padding: 0 1rem;
  }

  .programs-grid {
    flex-direction: column;
    align-items: center;
    gap: 2.5rem;
  }

  .program-card.card-wide,
  .program-card.card-tall {
    width: 100%;
    max-width: 556px;
    flex: 1 1 100%;
  }
}

@media (max-width: 768px) {
  .site-header {
    padding: 1rem 1.25rem;
  }

  .header-container {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    width: 100% !important;
    position: relative !important;
    gap: 0 !important;
  }

  /* 1. Hide consultation button on mobile navbar */
  .header-right,
  .site-header .header-right,
  .site-header .btn-consultation {
    display: none !important;
  }

  /* 2. Logo on one side (Right in RTL) */
  .header-center {
    position: static !important;
    left: auto !important;
    right: auto !important;
    transform: none !important;
    display: flex !important;
    align-items: center !important;
    order: 1 !important;
    margin: 0 !important;
  }

  /* 3. Menu button on the other side (Left in RTL) */
  .header-left {
    display: flex !important;
    align-items: center !important;
    order: 2 !important;
    margin: 0 !important;
  }

  .logo-img {
    height: 40px;
  }

  .menu-icon-img {
    width: 24px;
    height: 23px;
  }
}

@media (max-width: 640px) {
  .site-header {
    padding: 0.85rem 1.15rem;
  }

  .logo-img {
    height: 36px;
  }

  .menu-icon-img {
    width: 22px;
    height: 21px;
  }

  .hero-section {
    padding: 1rem 1.25rem 2rem 1.25rem;
  }

  .hero-title {
    font-size: 2.15rem;
    line-height: 1.55;
    margin-bottom: 1.25rem;
  }

  .hero-description {
    font-size: 0.94rem;
    line-height: 1.75;
  }

  .scroll-indicator-container {
    margin-top: 2rem;
  }

  .programs-container-border {
    padding: 2rem 1.25rem;
    border-radius: 0 !important;
  }

  .programs-title {
    font-size: 2.2rem;
  }

  .services-section {
    padding: 2.5rem 1rem;
  }

  .services-title {
    font-size: 2.2rem;
  }

  .service-card {
    flex-direction: column !important;
    align-items: stretch !important;
    padding: 2.25rem 1.25rem 1.75rem 1.25rem !important;
    height: auto !important;
    min-height: auto !important;
    overflow: visible !important;
    gap: 1rem;
  }

  .service-content {
    width: 100% !important;
    max-width: 100% !important;
    padding-right: 0 !important;
    text-align: right;
  }

  .service-mockup-wrap {
    position: relative !important;
    left: auto !important;
    top: auto !important;
    bottom: auto !important;
    right: auto !important;
    transform: none !important;
    margin: 0.75rem auto 0 auto !important;
    align-self: center !important;
    width: 100% !important;
    max-width: 320px !important;
    height: auto !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    pointer-events: auto !important;
    z-index: 5 !important;
    opacity: 1 !important;
    visibility: visible !important;
  }

  .service-mockup-img {
    width: 100% !important;
    max-width: 300px !important;
    height: auto !important;
    max-height: 220px !important;
    object-fit: contain !important;
    display: block !important;
    filter: drop-shadow(0 14px 28px rgba(0, 0, 0, 0.75)) !important;
  }

  .service-card:hover .service-mockup-wrap,
  .service-card.active .service-mockup-wrap {
    left: auto !important;
    top: auto !important;
    transform: scale(1.04) !important;
  }

  .btn-view-all {
    font-size: 1.5rem;
  }

  .modal-card {
    padding: 2rem 1.5rem;
  }

  .menu-drawer-content {
    max-width: 100%;
    padding: 2rem 1.5rem;
  }
}

/* --------------------------------------------------------------------------
   14. Floating Quick Actions (Scroll Top & WhatsApp)
   -------------------------------------------------------------------------- */
.floating-quick-actions {
  position: fixed;
  bottom: clamp(1.5rem, 2.5vw, 2.5rem);
  left: clamp(1.5rem, 2.5vw, 2.5rem);
  z-index: 95;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.85rem;
}

.btn-floating-action {
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50% !important;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s ease, opacity 0.3s ease, background 0.3s ease;
  position: relative;
  outline: none;
}

/* Scroll to top button (Dark circular button with white chevron) */
.btn-scroll-top {
  width: 46px;
  height: 46px;
  background: #212124;
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: #ffffff;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.6);
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px) scale(0.9);
  pointer-events: none;
}

.btn-scroll-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

.btn-scroll-top:hover {
  background: #323238;
  border-color: rgba(255, 255, 255, 0.3);
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.7), 0 0 15px rgba(255, 255, 255, 0.15);
}

.btn-scroll-top:active {
  transform: translateY(0) scale(0.95);
}

/* WhatsApp button (Vibrant Green with official Whatsapp-02.svg icon) */
.btn-whatsapp {
  width: 50px;
  height: 50px;
  background: transparent;
  border: none;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 28px rgba(37, 211, 102, 0.4), 0 4px 12px rgba(0, 0, 0, 0.5);
  border-radius: 50% !important;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s ease;
}

.whatsapp-icon-img {
  width: 100%;
  height: 100%;
  display: block;
  border-radius: 50%;
  object-fit: cover;
}

.btn-whatsapp:hover {
  transform: translateY(-4px) scale(1.08);
  box-shadow: 0 14px 34px rgba(37, 211, 102, 0.6), 0 0 20px rgba(37, 211, 102, 0.4);
}

.btn-whatsapp:active {
  transform: translateY(0) scale(0.96);
}


/* Remove text decoration / line / highlight from homepage project cards */
a.program-card,
.program-card {
  text-decoration: none !important;
  color: inherit !important;
  -webkit-tap-highlight-color: transparent !important;
  outline: none !important;
  border: none !important;
}

a.program-card:hover,
.program-card:hover {
  text-decoration: none !important;
}

a.program-card *,
.program-card * {
  text-decoration: none !important;
  border-bottom: none !important;
}

.program-title {
  text-decoration: none !important;
  border-bottom: none !important;
}


/* --------------------------------------------------------------------------
   Remove underline / highlight from project cards on homepage
   -------------------------------------------------------------------------- */
a.program-card,
.program-card {
  text-decoration: none !important;
  color: inherit !important;
  -webkit-tap-highlight-color: transparent !important;
  outline: none !important;
  border: none !important;
}

a.program-card:hover,
.program-card:hover {
  text-decoration: none !important;
}

a.program-card *,
.program-card * {
  text-decoration: none !important;
  border-bottom: none !important;
  box-shadow: none !important;
}

.program-title {
  text-decoration: none !important;
  border-bottom: none !important;
}


/* --------------------------------------------------------------------------
   15. Case Study & Project Details Page Styles (Pure Minimal Editorial #000000)
   -------------------------------------------------------------------------- */
html:has(.case-study-body) {
  background: #000000 !important;
  background-color: #000000 !important;
  background-image: none !important;
}

body.case-study-body {
  background: #000000 !important;
  background-color: #000000 !important;
  background-image: none !important;
  color: #ffffff;
  overflow-x: hidden;
}

body.case-study-body .site-wrapper {
  background: #000000 !important;
  background-color: #000000 !important;
  background-image: none !important;
}

body.case-study-body .case-site-header {
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: #000000 !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}

body.case-study-body .ambient-glow,
body.case-study-body .grid-overlay {
  display: none !important;
}

/* Main Container: 1400px width matching site standard */
.case-study-container {
  width: 100%;
  max-width: min(1400px, calc(100vw - 32px));
  margin: 0 auto;
  padding: clamp(2rem, 3.5vw, 4rem) 0 clamp(5rem, 7vw, 7rem) 0;
  display: flex;
  flex-direction: column;
  gap: clamp(3rem, 4.5vw, 5rem);
  box-sizing: border-box;
  background: transparent !important;
}

/* 1. Back Button on its own row */
.case-back-wrapper {
  display: flex;
  justify-content: flex-start;
  margin-bottom: 0.25rem;
}

.case-back-icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: #ffffff;
  border-radius: 50% !important;
  cursor: pointer;
  text-decoration: none;
  transition: var(--transition-smooth);
  flex-shrink: 0;
}

.case-back-icon-btn:hover {
  background: rgba(126, 96, 250, 0.2);
  border-color: var(--primary-purple);
  color: #ffffff;
  transform: translateX(3px) scale(1.06);
  box-shadow: 0 4px 18px rgba(126, 96, 250, 0.35);
}

/* Hero Section Header (Title + Metadata Grid + Full Cover) */
.case-hero-intro {
  display: flex;
  flex-direction: column;
  gap: clamp(1.5rem, 2.5vw, 2.5rem);
  text-align: right;
  background: transparent !important;
}

/* Big Display Title - 2 lines max */
.case-main-title {
  font-family: var(--font-display);
  font-feature-settings: "swsh" 1, "salt" 1, "calt" 1, "liga" 1;
  -webkit-font-feature-settings: "swsh" 1, "salt" 1, "calt" 1, "liga" 1;
  font-size: clamp(2rem, 3.8vw, 56px);
  font-weight: 800;
  line-height: 1.25;
  color: #ffffff;
  margin: 0;
  padding: 0;
  letter-spacing: -0.02em;
  width: 100%;
  max-width: 1050px;
  text-wrap: balance;
}

/* Horizontal Metadata Grid directly under Title */
.case-meta-grid-horizontal {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  width: 100%;
  padding: 1.5rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.10);
  border-bottom: 1px solid rgba(255, 255, 255, 0.10);
  margin-top: 0.25rem;
  background: transparent !important;
}

.case-meta-grid-horizontal .case-meta-cell {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  text-align: right;
}

.case-meta-grid-horizontal .meta-label {
  font-family: var(--font-sans);
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.45);
  font-weight: 500;
  letter-spacing: 0.02em;
}

.case-meta-grid-horizontal .meta-val {
  font-family: var(--font-sans);
  font-size: 1.05rem;
  font-weight: 700;
  color: #ffffff;
  line-height: 1.4;
}

@media (max-width: 900px) {
  .case-meta-grid-horizontal {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem 1.25rem;
  }
}

@media (max-width: 550px) {
  .case-meta-grid-horizontal {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }
}

/* Full Width Images (Clean, no extra border/padding) */
.case-hero-image-wrap,
.case-section-image-wrap {
  width: 100%;
  margin-top: 1.5rem;
  background: #000000 !important;
  overflow: hidden;
}

.case-clean-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  border-radius: 0 !important;
}

/* Clean Editorial Text Sections (01, 02, 03, 04) */
.case-text-section {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  text-align: right;
  border-top: 1px solid rgba(255, 255, 255, 0.10);
  padding-top: clamp(2.5rem, 4vw, 3.5rem);
  background: transparent !important;
}

.case-section-heading {
  font-family: var(--font-display);
  font-feature-settings: "swsh" 1, "salt" 1, "calt" 1, "liga" 1;
  -webkit-font-feature-settings: "swsh" 1, "salt" 1, "calt" 1, "liga" 1;
  font-size: clamp(1.8rem, 2.6vw, 2.8rem);
  font-weight: 800;
  color: #ffffff;
  margin: 0;
  letter-spacing: -0.01em;
}

.case-section-content {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  max-width: 1050px;
}

.case-section-content p {
  font-family: var(--font-sans);
  font-size: clamp(1.05rem, 1.25vw, 1.3rem);
  font-weight: 400;
  line-height: 1.85;
  color: rgba(255, 255, 255, 0.78);
  margin: 0;
  text-wrap: balance;
}

/* Screens Showcase Gallery (2 Images per Row) */
.case-screens-section {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  text-align: right;
  border-top: 1px solid rgba(255, 255, 255, 0.10);
  padding-top: clamp(2.5rem, 4vw, 3.5rem);
  background: transparent !important;
}

.case-gallery-grid-2col {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(1.5rem, 2.5vw, 2.5rem);
  width: 100%;
}

.case-gallery-card {
  width: 100%;
  background: #040404;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.06);
  transition: transform 0.35s ease, border-color 0.35s ease, box-shadow 0.35s ease;
}

.case-gallery-card:hover {
  transform: translateY(-4px);
  border-color: rgba(134, 100, 247, 0.35);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.85);
}

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

@media (max-width: 768px) {
  .case-gallery-grid-2col {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
}

.case-screen-item {
  width: 100%;
  background: #000000 !important;
  overflow: hidden;
}

/* Next Project Link */
.case-next-project-wrap {
  border-top: 1px solid rgba(255, 255, 255, 0.10);
  padding-top: clamp(3rem, 4.5vw, 4.5rem);
  background: transparent !important;
}

.case-next-link {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  text-align: right;
  text-decoration: none;
  transition: var(--transition-smooth);
}

.next-link-label {
  font-family: monospace;
  font-size: 0.95rem;
  color: var(--primary-purple);
  font-weight: 700;
  letter-spacing: 0.05em;
}

.next-link-title {
  font-family: var(--font-display);
  font-feature-settings: "swsh" 1, "salt" 1, "calt" 1, "liga" 1;
  font-size: clamp(2rem, 3.2vw, 3.2rem);
  font-weight: 800;
  color: #ffffff;
  margin: 0;
  transition: color 0.3s ease;
}

.next-link-action {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-sans);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--primary-green);
  margin-top: 0.5rem;
  transition: transform 0.3s ease;
}

.next-link-action .next-arrow {
  font-size: 1.4rem;
  transition: transform 0.3s ease;
}

.case-next-link:hover .next-link-title {
  color: var(--primary-purple);
}

.case-next-link:hover .next-link-action {
  transform: translateX(-8px);
}

/* ==========================================================================
   16. All Projects Page (صفحة كل المشاريع — Inspired by shfrah.com/work/)
   ========================================================================== */
.projects-page-body {
  background-color: #000000 !important;
  background: #000000 !important;
  color: #ffffff;
  min-height: 100vh;
  position: relative;
}

.projects-page-body .site-wrapper {
  background-image: none !important;
  background: #000000 !important;
  background-color: #000000 !important;
}

.projects-page-body .ambient-glow {
  display: none !important;
}

.projects-hero-section {
  width: 100%;
  max-width: min(1400px, calc(100vw - 32px));
  margin: 0 auto;
  padding: clamp(3rem, 5vw, 5.5rem) clamp(1rem, 2vw, 2rem) clamp(2rem, 3vw, 3rem) clamp(1rem, 2vw, 2rem);
  text-align: right;
  position: relative;
}

.projects-hero-badge {
  display: inline-block;
  font-family: var(--font-sans);
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--primary-purple);
  background: rgba(134, 100, 247, 0.12);
  border: 1px solid rgba(134, 100, 247, 0.32);
  padding: 0.4rem 1.25rem;
  border-radius: 9999px;
  margin-bottom: 1.5rem;
  letter-spacing: 0.02em;
}

.projects-hero-title {
  font-family: var(--font-display);
  font-feature-settings: "swsh" 1, "salt" 1, "calt" 1, "liga" 1;
  -webkit-font-feature-settings: "swsh" 1, "salt" 1, "calt" 1, "liga" 1;
  font-size: clamp(2.4rem, 4.8vw, 4.4rem);
  font-weight: 800;
  line-height: 1.25;
  color: #ffffff;
  margin-bottom: 1.25rem;
  letter-spacing: -0.02em;
}

.projects-hero-subtitle {
  font-family: var(--font-sans);
  font-size: clamp(1.05rem, 1.3vw, 1.25rem);
  font-weight: 400;
  line-height: 1.85;
  color: var(--color-text-muted);
  max-width: 820px;
  margin-bottom: 2.5rem;
}

/* Category Filter Bar */
.projects-filter-wrapper {
  margin-top: 1.5rem;
  margin-bottom: 1rem;
}

.projects-filter-bar {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  align-items: center;
}

.filter-btn {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--color-text-muted);
  padding: 0.65rem 1.6rem;
  border-radius: 9999px;
  font-family: var(--font-sans);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition-smooth);
  outline: none;
}

.filter-btn:hover:not(.active) {
  background: rgba(134, 100, 247, 0.16);
  border-color: rgba(134, 100, 247, 0.45);
  color: #ffffff;
}

.filter-btn.active {
  background: #ffffff;
  color: #0b0914;
  border-color: #ffffff;
  font-weight: 800;
  box-shadow: 0 4px 20px rgba(255, 255, 255, 0.25);
}

/* Projects Showcase Grid Container */
.all-projects-wrapper {
  width: 100%;
  max-width: min(1400px, calc(100vw - 32px));
  margin: 0 auto;
  padding: 0 clamp(1rem, 2vw, 2rem) clamp(4rem, 6vw, 6rem) clamp(1rem, 2vw, 2rem);
  display: flex;
  flex-direction: column;
  gap: clamp(2.5rem, 4vw, 4.5rem);
}

/* 3-Cards Row with Alternating Layout */
.projects-row {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: flex-start;
  gap: clamp(14px, 1.5vw, 24px);
  width: 100%;
}

/* Alternating rows logic */
.projects-row-standard .card-slot-1 { flex: 1 1 0; max-width: 440px; }
.projects-row-standard .card-slot-2 { flex: 1.26 1 0; max-width: 556px; }
.projects-row-standard .card-slot-3 { flex: 1.26 1 0; max-width: 556px; }

.projects-row-inverted .card-slot-1 { flex: 1.26 1 0; max-width: 556px; }
.projects-row-inverted .card-slot-2 { flex: 1.26 1 0; max-width: 556px; }
.projects-row-inverted .card-slot-3 { flex: 1 1 0; max-width: 440px; }

/* Filter animation */
.program-card.hidden-filtered {
  display: none !important;
}

@media (max-width: 1024px) {
  .projects-row {
    flex-direction: column;
    gap: 2.5rem;
  }

  .projects-row .program-card {
    max-width: 100% !important;
    width: 100% !important;
    flex: 1 1 100% !important;
  }
}

/* --------------------------------------------------------------------------
   14. Shfrah-Inspired Modern Multi-Column Footer
   -------------------------------------------------------------------------- */
.site-footer {
  width: 100%;
  background: #000000;
  border-top: 1px solid rgba(255, 255, 255, 0.10);
  padding: clamp(3.5rem, 6vw, 5.5rem) clamp(1rem, 2vw, 2rem) clamp(2rem, 3vw, 3rem);
  position: relative;
  z-index: 10;
  box-sizing: border-box;
}

.footer-container {
  width: 100%;
  max-width: min(1400px, calc(100vw - 32px));
  margin: 0 auto;
}

/* Footer Main Grid */
.footer-main-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1.25fr 1.25fr;
  gap: clamp(2rem, 4vw, 4.5rem);
  align-items: start;
}

/* Brand Column */
.footer-brand-col {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.footer-logo-link {
  display: inline-block;
  width: fit-content;
  transition: var(--transition-smooth);
}

.footer-logo-link:hover {
  opacity: 0.85;
  transform: translateY(-2px);
}

.footer-logo-img {
  height: 38px;
  width: auto;
  object-fit: contain;
  display: block;
}

.footer-bio {
  font-family: var(--font-sans);
  font-size: 0.95rem;
  line-height: 1.75;
  color: rgba(255, 255, 255, 0.65);
  max-width: 380px;
  margin: 0;
  font-weight: 400;
}

/* Status / Availability Pill */
.footer-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.10);
  padding: 0.5rem 1rem;
  border-radius: 9999px;
  width: fit-content;
  font-family: var(--font-sans);
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.85);
  font-weight: 500;
  margin-top: 0.25rem;
  transition: var(--transition-smooth);
}

.footer-status-pill:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.18);
}

.status-pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--primary-green);
  box-shadow: 0 0 10px rgba(102, 226, 153, 0.8);
  position: relative;
  flex-shrink: 0;
}

.status-pulse-dot::after {
  content: '';
  position: absolute;
  inset: -3px;
  border-radius: 50%;
  border: 1.5px solid var(--primary-green);
  animation: footerPulseRing 2s cubic-bezier(0.215, 0.61, 0.355, 1) infinite;
}

@keyframes footerPulseRing {
  0% {
    transform: scale(0.8);
    opacity: 1;
  }
  100% {
    transform: scale(2.2);
    opacity: 0;
  }
}

/* Navigation & List Columns */
.footer-col {
  display: flex;
  flex-direction: column;
}

.footer-heading {
  font-family: var(--font-display);
  font-feature-settings: "swsh" 1, "salt" 1, "calt" 1, "liga" 1;
  -webkit-font-feature-settings: "swsh" 1, "salt" 1, "calt" 1, "liga" 1;
  font-size: 1.1rem;
  font-weight: 700;
  color: #ffffff;
  margin: 0 0 1.25rem 0;
  letter-spacing: -0.01em;
}

.footer-nav-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.footer-nav-link {
  font-family: var(--font-sans);
  font-size: 0.92rem;
  color: rgba(255, 255, 255, 0.60);
  text-decoration: none;
  font-weight: 400;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: color 0.2s ease, transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  width: fit-content;
}

.footer-contact-link {
  font-family: var(--font-sans);
  font-size: 0.92rem;
  color: rgba(255, 255, 255, 0.60);
  text-decoration: none;
  font-weight: 400;
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  transition: color 0.2s ease, transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  width: fit-content;
}

.footer-contact-link:hover {
  color: #ffffff;
  transform: translateX(-5px);
}

.footer-link-icon {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  opacity: 0.7;
  transition: opacity 0.2s ease;
}

.footer-contact-link:hover .footer-link-icon {
  opacity: 1;
}

/* Footer Bottom Bar */
.footer-bottom-bar {
  margin-top: clamp(3rem, 5vw, 4.5rem);
  padding-top: 1.75rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.25rem;
}

.footer-copyright {
  font-family: var(--font-sans);
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.50);
  margin: 0;
}

.footer-copyright strong {
  color: rgba(255, 255, 255, 0.85);
  font-weight: 600;
}

.footer-note {
  font-family: var(--font-sans);
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.40);
  margin: 0;
}

/* Responsive Breakpoints */
@media (max-width: 1024px) {
  .footer-main-grid {
    grid-template-columns: 1fr 1fr;
    gap: 3rem 2rem;
  }
  .footer-brand-col {
    grid-column: span 2;
  }
}

@media (max-width: 640px) {
  .site-footer {
    padding: 3.5rem 1.25rem 2rem;
  }
  .footer-main-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
  .footer-brand-col {
    grid-column: span 1;
  }
  .footer-bottom-bar {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
  }
}/* --------------------------------------------------------------------------
   11. All Projects Page (projects.html)
   -------------------------------------------------------------------------- */
.projects-page-body {
  background-color: #000000;
  color: #ffffff;
  overflow-x: hidden;
}

.projects-hero-section {
  width: 100%;
  max-width: min(1400px, calc(100vw - 32px));
  margin: 0 auto;
  padding: clamp(3.5rem, 5vw, 5.5rem) 1rem clamp(2rem, 3vw, 3rem);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.25rem;
}

.projects-hero-title {
  font-family: var(--font-display);
  font-feature-settings: "swsh" 1, "salt" 1, "calt" 1, "liga" 1;
  -webkit-font-feature-settings: "swsh" 1, "salt" 1, "calt" 1, "liga" 1;
  font-size: clamp(2.5rem, 4.5vw, 4.2rem);
  font-weight: 800;
  color: var(--color-text-primary);
  margin: 0;
  letter-spacing: -0.02em;
}

.projects-hero-subtitle {
  font-family: var(--font-sans);
  font-size: clamp(1rem, 1.25vw, 1.25rem);
  color: var(--color-text-secondary);
  line-height: 1.7;
  max-width: 780px;
  margin: 0;
}

.projects-filter-wrapper {
  margin-top: 1.5rem;
  width: 100%;
  display: flex;
  justify-content: center;
}

.projects-filter-bar {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  padding: 0.4rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.10);
  border-radius: 9999px;
  justify-content: center;
}

.filter-btn {
  background: transparent;
  border: none;
  color: rgba(255, 255, 255, 0.7);
  font-family: var(--font-sans);
  font-size: 0.92rem;
  font-weight: 600;
  padding: 0.55rem 1.4rem;
  border-radius: 9999px;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.filter-btn:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.08);
}

.filter-btn.active {
  background: #ffffff;
  color: #0b0914;
  font-weight: 700;
  box-shadow: 0 4px 14px rgba(255, 255, 255, 0.15);
}

.all-projects-wrapper {
  width: 100%;
  max-width: min(1400px, calc(100vw - 32px));
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: clamp(3rem, 4.5vw, 5rem);
  padding-bottom: clamp(5rem, 7vw, 8rem);
}

.projects-row {
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.10);
  background-color: #000000;
  display: grid;
  gap: clamp(14px, 1.5vw, 24px);
  padding: 0 0 clamp(3rem, 4.5vw, 4.5rem) 0;
  box-sizing: border-box;
  transition: all 0.3s ease;
  position: relative;
}

.projects-row .program-preview-wrapper {
  border-top: none;
}

.projects-row-standard {
  grid-template-columns: 440px 1fr 1fr;
}

.projects-row-inverted {
  grid-template-columns: 1fr 1fr 440px;
}

.projects-row .program-info {
  padding: 0 18px 1.5rem 18px !important;
  box-sizing: border-box;
}

.projects-row .program-title-row {
  display: flex !important;
  justify-content: space-between !important;
  align-items: center !important;
  gap: 1rem !important;
  width: 100% !important;
  box-sizing: border-box;
}

.projects-row .program-description {
  padding-bottom: 0.75rem;
  margin: 0;
}

/* --------------------------------------------------------------------------
   12. Case Study Editorial Layout (project-details.html)
   -------------------------------------------------------------------------- */
.case-study-body {
  background-color: #000000;
  color: #ffffff;
  overflow-x: hidden;
}

.case-study-container {
  width: 100%;
  max-width: min(1200px, calc(100vw - 32px));
  margin: 0 auto;
  padding: clamp(1.5rem, 3vw, 3rem) 0 clamp(4rem, 6vw, 6rem) 0;
  display: flex;
  flex-direction: column;
  gap: clamp(3.5rem, 5vw, 6rem);
  box-sizing: border-box;
}

/* Back Button */
.case-back-wrapper {
  display: flex;
  justify-content: flex-start;
}

.case-back-icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #ffffff;
  border-radius: 50%;
  transition: var(--transition-smooth);
  text-decoration: none;
}

.case-back-icon-btn:hover {
  background: rgba(126, 96, 250, 0.15);
  border-color: var(--primary-purple);
  color: var(--primary-green);
  transform: translateX(4px);
}

/* Hero Intro: Title + Meta Grid + Cover */
.case-hero-intro {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  width: 100%;
}

.case-main-title {
  font-family: var(--font-display);
  font-feature-settings: "swsh" 1, "salt" 1, "calt" 1, "liga" 1;
  -webkit-font-feature-settings: "swsh" 1, "salt" 1, "calt" 1, "liga" 1;
  font-size: clamp(2.4rem, 4.2vw, 4.2rem);
  font-weight: 800;
  line-height: 1.3;
  color: #ffffff;
  margin: 0;
  letter-spacing: -0.02em;
  max-width: 960px;
}

/* Metadata Details (Clean, Frameless, 2x2 on Desktop, 1col on Mobile) */
.case-meta-grid-horizontal {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem 3.5rem;
  background: transparent !important;
  border: none !important;
  width: 100%;
  margin: 0.5rem 0 1rem 0;
  padding: 0 !important;
}

.case-meta-cell {
  background: transparent !important;
  border: none !important;
  padding: 0 !important;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  text-align: right;
}

.case-meta-cell .meta-label {
  font-family: var(--font-sans);
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.50);
  font-weight: 500;
  letter-spacing: 0.02em;
}

.case-meta-cell .meta-val {
  font-family: var(--font-sans);
  font-size: 1.15rem;
  font-weight: 700;
  color: #ffffff;
  line-height: 1.5;
}

/* Full Width Clean Image Wrappers (No borders) */
.case-hero-image-wrap {
  width: 100%;
  background: transparent !important;
  border: none !important;
  overflow: hidden;
  margin-top: 1rem;
}

.case-clean-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  border: none !important;
  border-radius: 0;
}

/* Editorial Content Sections (01, 02, 03, 04) (No borders, No background box) */
.case-text-section {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  padding: 0 !important;
  background: transparent !important;
  border: none !important;
  box-sizing: border-box;
}

.case-section-heading {
  font-family: var(--font-display);
  font-feature-settings: "swsh" 1, "salt" 1, "calt" 1, "liga" 1;
  -webkit-font-feature-settings: "swsh" 1, "salt" 1, "calt" 1, "liga" 1;
  font-size: clamp(1.8rem, 2.6vw, 2.6rem);
  font-weight: 800;
  color: #ffffff;
  margin: 0;
  padding-bottom: 0;
  border-bottom: none !important;
}

.case-section-content {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.case-section-content p {
  font-family: var(--font-sans);
  font-size: clamp(1.05rem, 1.25vw, 1.25rem);
  color: rgba(255, 255, 255, 0.85);
  line-height: 1.85;
  margin: 0;
}

.case-section-image-wrap {
  width: 100%;
  background: transparent !important;
  border: none !important;
  overflow: hidden;
  margin-top: 1.5rem;
}

/* Section 05: 2-Column Gallery Grid (No borders) */
.case-screens-section {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  padding: 0 !important;
  background: transparent !important;
  border: none !important;
}

.case-gallery-grid-2col {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  width: 100%;
  background: transparent !important;
  border: none !important;
}

.case-gallery-card {
  width: 100%;
  background: transparent !important;
  border: none !important;
  overflow: hidden;
  transition: transform 0.3s ease;
  box-shadow: none !important;
}

.case-gallery-card:hover {
  transform: translateY(-4px);
  border-color: transparent !important;
}

/* Next Project Navigation Card */
.case-next-project-wrap {
  width: 100%;
  margin-top: 2rem;
}

.case-next-link {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding: clamp(2.25rem, 4vw, 3.5rem);
  background: linear-gradient(135deg, rgba(126, 96, 250, 0.12) 0%, rgba(15, 12, 28, 0.95) 100%);
  border: 1px solid rgba(126, 96, 250, 0.35);
  text-decoration: none;
  transition: var(--transition-smooth);
  text-align: right;
}

.case-next-link:hover {
  background: linear-gradient(135deg, rgba(126, 96, 250, 0.22) 0%, rgba(22, 18, 42, 0.98) 100%);
  border-color: var(--primary-purple);
  transform: translateY(-4px);
  box-shadow: 0 20px 50px rgba(126, 96, 250, 0.25);
}

.next-link-label {
  font-family: var(--font-sans);
  font-size: 0.95rem;
  color: var(--primary-green);
  font-weight: 700;
  letter-spacing: 0.05em;
}

.next-link-title {
  font-family: var(--font-display);
  font-feature-settings: "swsh" 1, "salt" 1, "calt" 1, "liga" 1;
  -webkit-font-feature-settings: "swsh" 1, "salt" 1, "calt" 1, "liga" 1;
  font-size: clamp(1.8rem, 2.8vw, 2.8rem);
  font-weight: 800;
  color: #ffffff;
  margin: 0;
}

/* Responsive Case Study & Projects Grid */
@media (max-width: 1024px) {
  .projects-row-standard,
  .projects-row-inverted {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .case-gallery-grid-2col {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .case-meta-grid-horizontal {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  .case-text-section,
  .case-screens-section {
    padding: 0 !important;
  }
}

/* --------------------------------------------------------------------------
   Custom Button Arrow Icon (arrow big.svg)
   -------------------------------------------------------------------------- */
.btn-arrow-img {
  width: 22px;
  height: 22px;
  object-fit: contain;
  display: inline-block;
  vertical-align: middle;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.submit-btn .btn-arrow-img {
  width: 22px;
  height: 22px;
  filter: brightness(0) invert(1);
}

.submit-btn:hover .btn-arrow-img {
  transform: translateX(-4px);
}

/* --------------------------------------------------------------------------
   12. Testimonials ("كلمات من عملائي") Section matching exact design mockup
   -------------------------------------------------------------------------- */
.testimonials-section {
  width: 100%;
  background-color: #040404 !important;
  border-top: none;
  border-bottom: 2px solid rgba(196, 196, 196, 0.12) !important;
  padding: 0 1rem;
  position: relative;
  z-index: 20;
  overflow: visible;
  box-sizing: border-box;
}

.testimonials-container {
  width: 100%;
  max-width: min(1400px, calc(100vw - 32px));
  margin: 0 auto;
  background-color: #040404;
  border-radius: 0 !important;
  position: relative;
  padding: clamp(3.5rem, 5vw, 6rem) 0 clamp(4rem, 6vw, 7rem) 0;
  box-sizing: border-box;
}

/* Side Ruler Stripes (SVG) */
.testimonials-stripe {
  position: absolute;
  top: 0;
  bottom: 0;
  height: 100%;
  width: 24px;
  pointer-events: none;
  z-index: 5;
  display: flex;
  align-items: stretch;
  overflow: hidden;
}

.testimonials-stripe-right {
  right: 0;
}

.testimonials-stripe-left {
  left: 0;
}

/* Grid: 3 columns, 2 rows flush with stripes */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  width: 100%;
  padding: 0 24px;
  box-sizing: border-box;
  position: relative;
  z-index: 2;
}

/* Center Header Cell (Top Center) */
.testimonials-center-cell {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: clamp(1rem, 1.6vw, 1.8rem) 1rem;
  box-sizing: border-box;
  gap: clamp(1rem, 1.4vw, 1.6rem);
}

.testimonials-center-title {
  font-family: var(--font-display);
  font-feature-settings: "swsh" 1, "salt" 1, "calt" 1, "liga" 1;
  -webkit-font-feature-settings: "swsh" 1, "salt" 1, "calt" 1, "liga" 1;
  font-size: clamp(1.6rem, 2.3vw, 2.6rem);
  font-weight: 800;
  color: #ffffff;
  line-height: 1.15;
  margin: 0;
  letter-spacing: -0.02em;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.testimonials-center-title .title-sub {
  font-size: clamp(1.8rem, 2.6vw, 3rem);
}

/* Rating Badge with Hearts and Stars */
.testimonials-rating-badge {
  display: inline-flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

.rating-hearts-wrap {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.rating-hearts-img {
  height: clamp(28px, 2.4vw, 36px);
  width: auto;
  object-fit: contain;
  display: block;
}

.rating-stars-col {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
}

.rating-stars-row {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 3px;
}

.rating-star-icon {
  width: clamp(11px, 0.9vw, 13px);
  height: clamp(11px, 0.9vw, 13px);
  object-fit: contain;
  display: block;
}

.rating-count-text {
  font-family: var(--font-sans);
  font-size: clamp(0.75rem, 0.85vw, 0.9rem);
  color: rgba(255, 255, 255, 0.75);
  font-weight: 600;
  white-space: nowrap;
}

/* Individual Testimonial Card */
.testimonial-card {
  position: relative;
  background-color: #040404;
  border: 1px solid rgba(255, 255, 255, 0.06) !important;
  border-radius: 0 !important;
  padding: clamp(1.8rem, 2.2vw, 2.6rem) clamp(1.8rem, 2.4vw, 2.8rem);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: clamp(280px, 23vw, 340px);
  gap: 1.4rem;
  box-sizing: border-box;
  text-align: right;
  transition: border-color 0.3s ease, background-color 0.3s ease;
}

/* Side Cards: 3-sided border on desktop (no border adjacent to side ruler stripes) */
@media (min-width: 769px) {
  .testimonials-grid .testimonial-card.card-side-right,
  .testimonials-grid > .testimonial-card:nth-child(1),
  .testimonials-grid > .testimonial-card:nth-child(4) {
    border-top: 1px solid rgba(255, 255, 255, 0.06) !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06) !important;
    border-left: 1px solid rgba(255, 255, 255, 0.06) !important;
    border-right: none !important;
  }

  .testimonials-grid .testimonial-card.card-side-left,
  .testimonials-grid > .testimonial-card:nth-child(3),
  .testimonials-grid > .testimonial-card:nth-child(6) {
    border-top: 1px solid rgba(255, 255, 255, 0.06) !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06) !important;
    border-right: 1px solid rgba(255, 255, 255, 0.06) !important;
    border-left: none !important;
  }
}

.testimonial-card:hover {
  border-color: rgba(255, 255, 255, 0.20) !important;
  background-color: #070707;
}

/* Quote Icon Top-Right */
.testimonial-top {
  display: flex;
  justify-content: flex-start; /* In RTL, flex-start is right */
  width: 100%;
}

.testimonial-quote-icon {
  width: clamp(22px, 1.9vw, 28px);
  height: auto;
  object-fit: contain;
  opacity: 0.9;
  display: block;
}

/* Testimonial Quote Text */
.testimonial-text {
  font-family: var(--font-sans);
  font-size: clamp(0.95rem, 1.08vw, 1.1rem);
  font-weight: 400;
  color: rgba(255, 255, 255, 0.90);
  line-height: 1.75;
  margin: 0;
  flex-grow: 1;
  text-wrap: pretty;
}

/* Author Row (Avatar + Info) */
.testimonial-author {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 12px;
  margin-top: auto;
}

.author-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
  background-color: #222222;
  border: 1px solid rgba(255, 255, 255, 0.15);
  flex-shrink: 0;
}

.author-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
  text-align: right;
}

.author-name {
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: 700;
  color: #ffffff;
  margin: 0;
  line-height: 1.3;
}

.author-title {
  font-family: var(--font-sans);
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.55);
  margin: 0;
  line-height: 1.3;
}

/* --------------------------------------------------------------------------
   Universal Side Ruler Stripes
   -------------------------------------------------------------------------- */
.section-stripe,
.services-stripe,
.testimonials-stripe,
.programs-stripe,
.about-stripe,
.articles-stripe {
  position: absolute;
  top: 0;
  bottom: 0;
  height: 100%;
  width: 24px;
  pointer-events: none;
  z-index: 5;
  display: flex;
  align-items: stretch;
  overflow: hidden;
}

.section-stripe-right,
.services-stripe-right,
.testimonials-stripe-right,
.programs-stripe-right,
.about-stripe-right,
.articles-stripe-right {
  right: 0;
}

.section-stripe-left,
.services-stripe-left,
.testimonials-stripe-left,
.programs-stripe-left,
.about-stripe-left,
.articles-stripe-left {
  left: 0;
}

/* --------------------------------------------------------------------------
   13. Articles Section ("كتاباتي") matching media_1790027385731.png
   -------------------------------------------------------------------------- */
.articles-section {
  width: 100%;
  background-color: #040404 !important;
  background-image: none !important;
  border-top: none !important;
  border-bottom: 2px solid rgba(196, 196, 196, 0.12) !important;
  padding: clamp(4.5rem, 6.5vw, 7.5rem) 0;
  position: relative;
  z-index: 20;
  overflow: visible;
  box-sizing: border-box;
}

/* Side Ruler Stripes matching 1400px frame margin */
.articles-frame-container {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  max-width: min(1400px, calc(100vw - 32px));
  margin: 0 auto;
  pointer-events: none;
  z-index: 5;
}

.articles-stripe {
  position: absolute;
  top: 0;
  bottom: 0;
  height: 100% !important;
  width: 24px;
  pointer-events: none;
  z-index: 5;
  overflow: hidden;
}

.articles-stripe-right {
  right: 0;
}

.articles-stripe-left {
  left: 0;
}

.articles-stripe .stripe-svg,
.articles-stripe img {
  position: absolute;
  top: 0;
  left: 0;
  width: 24px !important;
  height: 100% !important;
  min-height: 100% !important;
  max-height: 100% !important;
  object-fit: fill !important;
  display: block !important;
}

.articles-container {
  width: 100%;
  max-width: min(1400px, calc(100vw - 32px));
  margin: 0 auto;
  padding: 0 clamp(2.5rem, 5vw, 6rem);
  position: relative;
  z-index: 10;
  box-sizing: border-box;
}

/* Header (Centered) */
.articles-header {
  text-align: center;
  margin-bottom: clamp(3rem, 5vw, 5rem);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 0;
}

.articles-title {
  font-family: var(--font-display);
  font-feature-settings: "swsh" 1, "salt" 1, "calt" 1, "liga" 1;
  -webkit-font-feature-settings: "swsh" 1, "salt" 1, "calt" 1, "liga" 1;
  font-size: clamp(2.4rem, 4vw, 3.8rem);
  font-weight: 800;
  color: #ffffff;
  margin: 0 0 0.75rem 0;
  letter-spacing: -0.02em;
}

.articles-subtitle {
  font-family: var(--font-sans);
  font-size: clamp(0.95rem, 1.15vw, 1.15rem);
  color: rgba(255, 255, 255, 0.72);
  line-height: 1.75;
  max-width: 680px;
  margin: 0 auto;
  text-align: center;
  text-wrap: pretty;
}

/* 3 Articles Grid */
.articles-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(18px, 2.2vw, 32px);
  width: 100%;
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

.article-card {
  position: relative;
  background-color: transparent !important;
  border: none !important;
  border-radius: 0 !important;
  overflow: visible;
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.article-card:hover {
  transform: translateY(-6px);
}

.article-card-link {
  display: flex;
  flex-direction: column;
  height: 100%;
  text-decoration: none;
  color: inherit;
}

.article-cover-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1.05;
  overflow: hidden;
  background-color: #0b0914;
  border-radius: 0 !important;
}

.article-cover-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  border-radius: 0 !important;
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.article-card:hover .article-cover-img {
  transform: scale(1.04);
}

/* Card Body (Category, Title, Date) */
.article-body {
  display: flex;
  flex-direction: column;
  text-align: right;
  padding: 1.25rem 0 0 0;
  gap: 0.45rem;
  box-sizing: border-box;
}

.article-category {
  font-family: var(--font-sans);
  font-size: clamp(0.85rem, 1vw, 0.95rem);
  font-weight: 700;
  color: #8664F7;
  margin: 0;
  line-height: 1.3;
}

.article-heading {
  font-family: var(--font-display);
  font-feature-settings: "swsh" 1, "salt" 1, "calt" 1, "liga" 1;
  -webkit-font-feature-settings: "swsh" 1, "salt" 1, "calt" 1, "liga" 1;
  font-size: clamp(1.1rem, 1.35vw, 1.35rem);
  font-weight: 700;
  color: #ffffff;
  margin: 0;
  line-height: 1.45;
  transition: color 0.3s ease;
}

.article-card:hover .article-heading {
  color: #8664F7;
}

.article-date {
  font-family: var(--font-sans);
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.55);
  margin: 0;
  line-height: 1.3;
}

/* View All CTA Button */
.articles-footer {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: clamp(2.5rem, 4.5vw, 4.5rem);
  width: 100%;
}

.btn-all-articles {
  background: #ffffff !important;
  color: #040404 !important;
  border: none !important;
  outline: none !important;
  padding: 0.8rem 2.5rem !important;
  border-radius: 9999px !important;
  font-family: var(--font-display) !important;
  font-feature-settings: "swsh" 1, "salt" 1, "calt" 1, "liga" 1 !important;
  -webkit-font-feature-settings: "swsh" 1, "salt" 1, "calt" 1, "liga" 1 !important;
  font-size: 1.05rem !important;
  font-weight: 700 !important;
  text-decoration: none !important;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(255, 255, 255, 0.15);
  transition: var(--transition-smooth);
}

.btn-all-articles:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 8px 28px rgba(255, 255, 255, 0.28);
  color: #040404 !important;
}

.btn-all-articles:active {
  transform: translateY(0) scale(0.98);
}

/* Responsive Media Queries */
@media (max-width: 1024px) {
  .testimonials-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .testimonials-center-cell {
    grid-column: 1 / -1;
    order: -1;
    padding-bottom: 2rem;
  }

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

@media (max-width: 768px) {
  /* Hide side ruler stripes completely on mobile */
  .services-stripe,
  .testimonials-stripe,
  .programs-stripe,
  .about-stripe,
  .articles-stripe,
  .section-stripe,
  .hero-stripe {
    display: none !important;
  }

  /* Keep hero frame container active on mobile for floating stickers */
  .hero-frame-container {
    display: block !important;
    position: absolute !important;
    top: 0 !important;
    bottom: 0 !important;
    left: 0 !important;
    right: 0 !important;
    max-width: 100% !important;
    margin: 0 !important;
    pointer-events: none !important;
    z-index: 25 !important;
  }

  .hero-sticker {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    pointer-events: auto !important;
  }

  /* Reset section and container padding on mobile */
  .services-section,
  .testimonials-section,
  .articles-section {
    padding: 0 1rem !important;
  }

  .services-container,
  .testimonials-container,
  .articles-container {
    padding: 2.5rem 0 !important;
  }

  /* Projects Section Mobile Margins & Spacing */
  .programs-section {
    padding: clamp(3.5rem, 6vw, 4.5rem) 1.25rem !important;
    margin: 0 !important;
  }

  .programs-container-border {
    padding: 0 !important;
    max-width: 100% !important;
  }

  .articles-grid {
    grid-template-columns: 1fr !important;
    padding: 0 !important;
    gap: 24px !important;
    max-width: 100% !important;
  }

  .programs-grid {
    grid-template-columns: 1fr !important;
    padding: 0 0.25rem !important;
    gap: 2.75rem !important;
    max-width: 100% !important;
  }

  .articles-header {
    padding: 0 0.5rem !important;
    margin-bottom: 1.75rem !important;
  }

  .services-header {
    padding: 0 0.5rem !important;
    margin-bottom: 1.75rem !important;
  }

  .services-list {
    padding: 0 !important;
    gap: 12px !important;
  }

  /* Natural Card Size & Layout on Mobile for Services */
  .service-card {
    height: auto !important;
    min-height: auto !important;
    flex-direction: column !important;
    align-items: stretch !important;
    padding: 2.2rem 1.25rem 1.5rem 1.25rem !important;
    gap: 1.25rem !important;
  }

  .service-content {
    flex: 1 1 100% !important;
    max-width: 100% !important;
    width: 100% !important;
    padding-right: 0 !important;
    text-align: right !important;
  }

  .service-title {
    font-size: 1.35rem !important;
  }

  .service-description {
    font-size: 0.92rem !important;
    line-height: 1.65 !important;
  }

  .service-mockup-wrap {
    position: relative !important;
    left: auto !important;
    top: auto !important;
    bottom: auto !important;
    width: 100% !important;
    height: 140px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    margin-top: 0.5rem !important;
    transform: none !important;
  }

  .service-mockup-img {
    height: 100% !important;
    max-height: 140px !important;
    width: auto !important;
    object-fit: contain !important;
    object-position: center !important;
    margin: 0 auto !important;
  }

  .service-card:hover .service-mockup-wrap,
  .service-card.active .service-mockup-wrap {
    left: auto !important;
    top: auto !important;
    transform: scale(1.04) !important;
  }

  /* Testimonials Grid on mobile */
  .testimonials-grid {
    grid-template-columns: 1fr !important;
    padding: 0 !important;
    gap: 12px !important;
  }

  .testimonials-center-cell {
    padding: 1.5rem 0.5rem !important;
    gap: 1.2rem !important;
  }

  .testimonials-center-title {
    font-size: 1.6rem !important;
  }

  .testimonials-center-title .title-sub {
    font-size: 1.8rem !important;
  }

  .testimonial-card {
    min-height: auto !important;
    height: auto !important;
    padding: 1.5rem 1.25rem !important;
    gap: 1.2rem !important;
  }

  .testimonial-text {
    font-size: 0.95rem !important;
    line-height: 1.7 !important;
  }
}
