html {
  scroll-behavior: smooth;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  color: #333;
  background-color: #f6faff;
  line-height: 1.6;
  transition: opacity 0.5s ease;
  opacity: 1;
}

body.font-switching {
  transition: all 0.3s ease;
}

body.lang-en {
  font-family: "Plus Jakarta Sans", sans-serif;
  font-weight: 600;
}

body.lang-ar {
  font-family: "Tajawal", sans-serif;
  font-weight: 600;
}

/* Custom scrollbar styles for Webkit browsers (Chrome, Safari, etc.) */
body::-webkit-scrollbar {
  width: 4px;
}

body::-webkit-scrollbar-track {
  background: #f6faff;
}

body::-webkit-scrollbar-thumb {
  background-color: #333;
  /* Color of the scrollbar thumb */
  border-radius: 2px;
  /* Roundness of the scrollbar thumb */
  border: 1px solid #f6faff;
  /* Space around the thumb */
}

body::-webkit-scrollbar-thumb:hover {
  background-color: #555;
  /* Color of the scrollbar thumb when hovered */
}

/* ============================================================
   HEADER / NAV
============================================================ */
.header-container {
  width: 92%;
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 0 8px;
}

.container {
  width: 85%;
  max-width: 1300px;
  margin: 0 auto;
  padding: 20px;
}

.projects-container {
  width: 90%;
  margin: 0 auto;
  padding: 20px;
}

header {
  position: sticky;
  top: 0;
  z-index: 1000;
  /* Warm indigo + subtle #197ffc blue tint for brand consistency */
  background: linear-gradient(135deg,
      rgba(22, 20, 50, 0.84) 0%,
      rgba(15, 20, 45, 0.90) 60%,
      rgba(12, 22, 52, 0.86) 100%);
  backdrop-filter: blur(32px) saturate(170%);
  -webkit-backdrop-filter: blur(32px) saturate(170%);
  border-top: 1px solid rgba(25, 127, 252, 0.25);
  border-bottom: 1px solid rgba(25, 127, 252, 0.08);
  color: #fff;
  padding: 14px 0;
  animation: slideDown 0.55s cubic-bezier(0.22, 1, 0.36, 1) both;
  box-shadow:
    0 4px 30px rgba(0, 0, 0, 0.24),
    0 1px 0 rgba(25, 127, 252, 0.12) inset;
}

/* Brand link */
.nav-brand {
  display: flex;
  align-items: center;
  text-decoration: none;
  flex-shrink: 0;
}

header a,
header .logo {
  -webkit-tap-highlight-color: transparent;
}

header .logo {
  width: 90px;
  height: auto;
  display: block;
  /* Subtle infinite breathing glow — professional, not distracting */
  animation: logoPulse 4s ease-in-out infinite;
  will-change: filter;
}

@keyframes logoPulse {

  0%,
  100% {
    filter: drop-shadow(0 0 0px rgba(25, 127, 252, 0)) drop-shadow(0 2px 6px rgba(0, 0, 0, 0.18));
    transform: scale(1);
  }

  50% {
    filter: drop-shadow(0 0 8px rgba(25, 127, 252, 0.55)) drop-shadow(0 0 18px rgba(25, 127, 252, 0.2)) drop-shadow(0 2px 6px rgba(0, 0, 0, 0.12));
    transform: scale(1.04);
  }
}


/* Desktop nav */
#main-nav .nav-content {
  display: flex;
  align-items: center;
  gap: 8px;
}

#main-nav ul {
  list-style: none;
  display: flex;
  gap: 4px;
  margin: 0;
  padding: 0;
}

#main-nav ul li a {
  color: rgba(255, 255, 255, 0.78);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  padding: 6px 14px;
  border-radius: 8px;
  position: relative;
  cursor: pointer;
  transition: color 0.2s ease, background 0.2s ease;
  -webkit-tap-highlight-color: transparent;
}

#main-nav ul li a:hover,
#main-nav ul li a:focus-visible {
  color: #fff;
  background: rgba(25, 127, 252, 0.12);
}

/* Active nav link (set by JS on scroll / click) */
#main-nav ul li a.nav-link-active {
  color: #fff;
  background: rgba(25, 127, 252, 0.15);
}

#main-nav ul li a.nav-link-active::after {
  transform: translateX(-50%) scaleX(1);
  background: #197ffc;
  box-shadow: 0 0 8px rgba(25, 127, 252, 0.55);
}

#main-nav ul li a:hover::after {
  transform: translateX(-50%) scaleX(1);
}

/* Vertical separator dot between links and lang */
.nav-sep {
  display: inline-block;
  width: 1px;
  height: 20px;
  background: rgba(255, 255, 255, 0.15);
  margin: 0 8px;
  flex-shrink: 0;
}

/* ---- Language switcher (pill toggle) ---- */
.lang-switcher {
  display: flex;
  align-items: center;
  gap: 4px;
  background: rgba(255, 255, 255, 0.09);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 12px;
  padding: 4px;
  -webkit-tap-highlight-color: transparent;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.lang-btn {
  background: transparent;
  border: none;
  color: rgba(255, 255, 255, 0.6);
  font-family: "Plus Jakarta Sans", "Tajawal", sans-serif;
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  /* Minimum 44px touch target height */
  min-height: 36px;
  min-width: 44px;
  padding: 0 12px;
  border-radius: 9px;
  cursor: pointer;
  transition: background 0.18s ease, color 0.18s ease, box-shadow 0.18s ease;
  -webkit-tap-highlight-color: transparent;
  outline: none;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lang-btn.active {
  background: linear-gradient(135deg, #197ffc 0%, #346fff 100%);
  color: #fff;
  box-shadow: 0 2px 10px rgba(25, 127, 252, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

.lang-btn:not(.active):hover {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}

/* Hide the | divider — gap between buttons is enough */
.lang-divider {
  display: none;
}

/* ---- Hamburger / menu icon ---- */
.menu-icon {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 6px;
  width: 42px;
  height: 42px;
  background: rgba(25, 127, 252, 0.08);
  border: 1px solid rgba(25, 127, 252, 0.28);
  border-radius: 12px;
  cursor: pointer;
  outline: none;
  padding: 0;
  transition: background 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
  -webkit-tap-highlight-color: transparent;
  flex-shrink: 0;
}

.menu-icon:hover {
  background: rgba(25, 127, 252, 0.16);
  border-color: rgba(25, 127, 252, 0.5);
  box-shadow: 0 0 12px rgba(25, 127, 252, 0.2);
}

.menu-icon.open {
  background: rgba(25, 127, 252, 0.2);
  border-color: rgba(25, 127, 252, 0.6);
}

.bar {
  display: block;
  width: 20px;
  height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: transform 0.32s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.22s ease, width 0.22s ease;
}

/* Middle bar shortens slightly when open for a cleaner X */
.menu-icon.open .bar:nth-child(2) {
  opacity: 0;
  width: 12px;
}

/* Animate bars when menu is open */
.menu-icon.open .bar:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.menu-icon.open .bar:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}




#hero {
  background-color: #f6faff;
  margin-top: 0;
  padding-top: 28px;
  padding-bottom: 12px;
  animation: fadeIn 0.7s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.hero-content {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-direction: row;
}

/* More breathing room between image and text in Arabic layout */
[dir="rtl"] .hero-content {
  gap: 58px;
}



.hero-image {
  position: relative;
  width: 100%;
  max-width: 500px;
  aspect-ratio: 10 / 9;
  height: auto;
  margin-right: 40px;
  border-radius: 24px;
  overflow: hidden;
  box-shadow:
    0 4px 12px rgba(0, 0, 0, 0.12),
    0 16px 40px rgba(0, 0, 0, 0.18),
    0 32px 64px rgba(25, 127, 252, 0.10);

  flex-shrink: 0;
  animation: heroFloat 6s ease-in-out infinite;
}

@keyframes heroFloat {
  0% {
    transform: translateY(0px);
  }

  50% {
    transform: translateY(-10px);
  }

  100% {
    transform: translateY(0px);
  }
}

/* Shimmer effect placeholder */
.hero-image::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, #f0f4f8 25%, #e2e8f0 50%, #f0f4f8 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  z-index: 1;
  border-radius: 24px;
}

/* Image styling */
.hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 24px;
  opacity: 0;
  transition: opacity 0.5s ease-in-out;
  position: absolute;
  inset: 0;
  z-index: 2;
}

/* When the image is fully loaded */

.hero-image img.loaded {
  opacity: 1;
}

.hero-image img.loaded+ ::before {
  display: none;
  /* Hide shimmer once the image is loaded */
}

/* Shimmer animation */
@keyframes shimmer {
  0% {
    background-position: -200% 0;
  }

  100% {
    background-position: 200% 0;
  }
}

@keyframes badgePulse {

  0%,
  100% {
    box-shadow: 0 0 0 0 rgba(25, 127, 252, 0);
    border-color: rgba(25, 127, 252, 0.25);
  }

  50% {
    box-shadow: 0 0 0 6px rgba(25, 127, 252, 0.12), 0 0 18px 4px rgba(99, 179, 237, 0.2);
    border-color: rgba(25, 127, 252, 0.55);
  }
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: linear-gradient(135deg, rgba(25, 127, 252, 0.12), rgba(99, 179, 237, 0.15));
  border: 1px solid rgba(25, 127, 252, 0.25);
  color: #197ffc;
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 6px 14px;
  border-radius: 50px;
  margin-bottom: 18px;
  backdrop-filter: blur(8px);
  animation: fadeIn 1s ease-in-out 0s both, badgePulse 2.8s ease-in-out 1.2s infinite;
}

.hero-text {
  flex: 1;
  margin-left: 10px;
  text-align: left;
}

/* RTL: flip hero text to right-aligned */
[dir="rtl"] .hero-text {
  text-align: right;
  direction: rtl;
  margin-left: 0;
  margin-right: 10px;
}

[dir="rtl"] .hero-badge {
  direction: rtl;
}


@keyframes typing {
  from {
    width: 0;
  }

  to {
    width: 100%;
  }
}

@keyframes blink-caret {

  from,
  to {
    border-color: transparent;
  }

  50% {
    border-color: black;
  }
}

@keyframes heroFadeIn {
  from {
    opacity: 0;
    transform: translateY(18px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-heading,
#hero-heading {
  display: block;
  direction: inherit;
  font-size: clamp(1.6rem, 4.5vw, 3rem);
  font-weight: 900;
  line-height: 1.2;
  margin-bottom: 16px;
  background: #197ffc;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: heroFadeIn 0.9s cubic-bezier(0.22, 1, 0.36, 1) both;
}

/* RTL: restore direction so Arabic heading renders correctly */
[dir="rtl"] .hero-heading,
[dir="rtl"] #hero-heading {
  direction: rtl;
  unicode-bidi: plaintext;
}


.hero-text p,
.hero-subtitle {
  font-size: clamp(0.9rem, 2vw, 1.15rem);
  font-weight: 500;
  margin-bottom: 24px;
  background: linear-gradient(135deg, #4a90c4 0%, #197ffc 60%, #63b3ed 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: slideRight 1s ease-in-out 0.3s both;
  opacity: 0.9;
}

/* Hero CTA Button */
.hero-cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 28px;
  background: linear-gradient(135deg, #197ffc 0%, #346fff 100%);
  color: #fff;
  font-size: 1rem;
  font-weight: 900;
  text-decoration: none;
  border-radius: 14px;
  letter-spacing: 0.02em;
  box-shadow: 0 4px 20px rgba(25, 127, 252, 0.38);
  transition: transform 0.22s ease, box-shadow 0.25s ease;
  animation: heroFadeIn 0.9s cubic-bezier(0.22, 1, 0.36, 1) 0.5s both;
  -webkit-tap-highlight-color: transparent;
}

.hero-cta-btn i {
  transition: transform 0.25s ease;
}

.hero-cta-btn:hover {
  box-shadow: 0 8px 28px rgba(25, 127, 252, 0.5);
}

.hero-cta-btn:hover i {
  transform: translateX(5px);
}

.hero-cta-btn:active {
  transform: translateY(-1px);
}

/* RTL: icon moves LEFT on hover (arrow-left should slide leftward) */
[dir="rtl"] .hero-cta-btn:hover i {
  transform: translateX(-5px);
}


.hero-text .btn {
  background: #197ffc;
  color: #fff;
  padding: 10px 20px;
  text-decoration: none;
  border-radius: 5px;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.3s ease;
}

.hero-text .btn:hover {
  background: #0056b3;
}

/* ============================================================
   HERO BUBBLES — rising animated particles
============================================================ */
.hero-bubbles {
  position: relative;
  width: 100%;
  height: 56px;
  margin-top: 28px;
  overflow: visible;
  pointer-events: none;
}

.bubble {
  position: absolute;
  bottom: 0;
  left: var(--left, 50%);
  width: var(--size, 10px);
  height: var(--size, 10px);
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%,
      rgba(99, 179, 237, 0.9),
      #197ffc 60%,
      rgba(25, 80, 200, 0.8) 100%);
  opacity: 0;
  box-shadow:
    0 0 calc(var(--size, 10px) * 0.8) rgba(25, 127, 252, 0.5),
    0 0 calc(var(--size, 10px) * 1.6) rgba(25, 127, 252, 0.2);
  animation:
    bubbleRise var(--dur, 4s) ease-in var(--delay, 0s) infinite,
    bubbleSway calc(var(--dur, 4s) * 0.7) ease-in-out var(--delay, 0s) infinite alternate;
}

@keyframes bubbleRise {
  0% {
    transform: translateY(0) scale(1);
    opacity: 0;
  }

  8% {
    opacity: var(--op, 0.5);
  }

  85% {
    opacity: calc(var(--op, 0.5) * 0.6);
  }

  100% {
    transform: translateY(-90px) scale(0.45);
    opacity: 0;
  }
}

@keyframes bubbleSway {
  0% {
    margin-left: 0;
  }

  100% {
    margin-left: calc(var(--size, 10px) * 1.2);
  }
}


.section-divider {
  border: none;
  height: 1px;
  background: #333;
  margin: 0px auto;
  width: 75%;
  display: none;
}

/* ============================================================
   SCROLL OFFSET for sticky navbar
   Sections scroll to show their heading, not their midpoint.
   Value = header height (~68px) + breathing room.
============================================================ */
:root {
  --nav-height: 72px;
}

/* ============================================================
   ABOUT US
============================================================ */
#about-us {
  padding: 40px 10px;
  background-color: transparent;
  margin: 20px auto;
  position: relative;
  overflow: hidden;
}

.about-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 60px;
  position: relative;
  z-index: 1;
}

.about-text {
  flex: 1.5;
}

.about-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid rgba(25, 127, 252, 0.25);
  color: #197ffc;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 6px 14px;
  border-radius: 50px;
  margin-bottom: 24px;
  animation: fadeIn 1s ease-in-out 0s both, badgePulse 2.8s ease-in-out 1.2s infinite;
}

[dir="rtl"] .about-badge {
  direction: rtl;
}

.section-heading {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 800;
  line-height: 1.25;
  color: #0d1b2a;
  margin-bottom: 20px;
}

[dir="rtl"] .section-heading,
[dir="rtl"] .section-description {
  text-align: right;
}

.section-description {
  color: #4a5568;
  font-size: clamp(0.95rem, 2vw, 1.15rem);
  line-height: 1.8;
  margin-bottom: 15px;
}

.about-stats {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.stat-item {
  background: linear-gradient(135deg, rgba(246, 250, 255, 0.8) 0%, rgba(255, 255, 255, 0.9) 100%);
  border: 1px solid rgba(25, 127, 252, 0.15);
  border-radius: 24px;
  padding: 40px 30px;
  text-align: center;
  box-shadow: 0 10px 30px rgba(25, 127, 252, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  backdrop-filter: blur(10px);
}

.stat-item:hover {
  transform: translateY(-8px);
  box-shadow: 0 16px 40px rgba(25, 127, 252, 0.15);
}

.stat-number {
  font-size: 3.5rem;
  font-weight: 900;
  color: #197ffc;
  margin-bottom: 12px;
  line-height: 1;
}

.stat-label {
  font-size: 1.05rem;
  color: #4a5568;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

#about-us,
#services,
#ui-ux-works,
#contact-us {
  scroll-margin-top: var(--nav-height);
}

#services {
  padding: 18px 0;
}

#services h2 {
  text-align: center;
  margin-bottom: 20px;
  font-size: 2.5em;
  font-weight: 800;
  color: #0f172a;
  letter-spacing: -0.4px;
  animation: fadeIn 1.5s ease-in-out;
}

.services {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  justify-content: center;
  align-items: stretch;
}

.service {
  background: #fff;
  padding: 20px;
  border-radius: 24px;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.10), 0 1px 4px rgba(25, 127, 252, 0.07);
  text-align: center;
  flex: 1 1 500px;
  max-width: 500px;
  animation: fadeInUp 1.5s ease-in-out;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 350px;
  position: relative;
  transition: transform 0.4s ease, box-shadow 0.4s ease;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  tap-highlight-color: transparent;
}

.service:hover {
  transform: scale(1.04);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.16), 0 4px 12px rgba(25, 127, 252, 0.12);
}

.service img {
  width: 100%;
  height: clamp(250px, 30vw, 400px);
  border-radius: 18px;
  animation: zoomIn 1s ease-in-out;
  opacity: 0;
  transition: opacity 0.5s ease-in-out, transform 0.4s ease;
  z-index: 2;
  position: relative;
}

.service:hover img {
  transform: scale(1.02);
}

/* Shimmer effect for placeholder */
.service::before {
  content: "";
  position: absolute;
  top: 20px;
  left: 20px;
  right: 20px;
  height: clamp(250px, 30vw, 400px);
  background: linear-gradient(90deg, #f4f4f4 25%, #e0e0e0 50%, #f4f4f4 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: 18px;
  z-index: 1;
}

/* When the image is loaded */
.service img.loaded {
  opacity: 1;
}

.service img.loaded+ ::before {
  display: none;
}

/* Shimmer animation */
@keyframes shimmer {
  0% {
    background-position: -200% 0;
  }

  100% {
    background-position: 200% 0;
  }
}

.service h3 {
  font-size: 1.5em;
  font-weight: 800;
  margin: 20px 0;
  color: #0f172a;
}

/* Section Styling */
#ui-ux-works {
  padding: 40px 20px;
  margin-top: 24px;
  margin-bottom: 32px;
  background-color: #ffffff;
  text-align: center;
  border-radius: 24px;
  box-shadow: 0 4px 28px rgba(0, 0, 0, 0.09), 0 1px 4px rgba(25, 127, 252, 0.06);
}

#ui-ux-works h2 {
  font-size: 2rem;
  font-weight: 800;
  color: #0f172a;
  letter-spacing: -0.3px;
  margin-bottom: 30px;
  animation: fadeIn 1s ease-in-out;
}

/* Works List Layout */
.works-list {
  display: flex;
  gap: 26px;
  overflow-x: auto;
  padding: 10px;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
}

.works-list::-webkit-scrollbar {
  display: none;
}

/* Work Item Styling */
.work-item {
  min-width: 350px;
  max-width: 900px;
  height: clamp(250px, 30vw, 480px);
  flex: 0 0 auto;
  position: relative;
  border-radius: 18px;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  scroll-snap-align: center;
  background: #f9f9f9;
  cursor: pointer;
}

/* Hover effect */
.work-item:hover {
  transform: translateY(-5px);
}

/* Shimmer loading effect */
.work-item.loading::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(90deg, #f4f4f4 25%, #e0e0e0 50%, #f4f4f4 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: 18px;
  z-index: 1;
}

/* Image Styling */
.work-item img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  opacity: 0;
  transition: opacity 0.5s ease-in-out;
  position: relative;
  z-index: 2;
}

.work-item img.loaded {
  opacity: 1;
}

/* Page Indicator Styling */
.page-indicator {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 15px;
  /* Space between list and indicator */
}

.dot {
  width: 10px;
  height: 10px;
  background: #ddd;
  /* Inactive dot color */
  border-radius: 50%;
  transition: background-color 0.3s ease, transform 0.3s ease;
  cursor: pointer;
  /* indicate clickable */
}

.dot.active {
  background: #555;
  /* Active dot color */
  transform: scale(1.3);
  /* Slightly enlarge the active dot */
}

/* Modal base styles */
.modal {
  display: none;
  position: fixed;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.85);
  /* slightly darker background for better focus */
  backdrop-filter: blur(10px);
  justify-content: center;
  align-items: center;
  z-index: 99999;
  /* Higher than navbar which is 1000 */
  transition: opacity 0.3s ease;
  opacity: 0;
}

.modal.show {
  display: flex;
  opacity: 1;
}

/* Modal image with scale-in animation */
.modal img {
  max-width: 100vw;
  max-height: 100vh;
  width: 100vw;
  height: 100vh;
  object-fit: contain;
  cursor: pointer;
  transition: transform 0.3s ease;
  transform: scale(0.95);
  opacity: 0;
}

.modal.show img {
  transform: scale(1);
  opacity: 1;
}

.modal img,
.work-item,
.close-btn {
  -webkit-tap-highlight-color: transparent;
  tap-highlight-color: transparent;
  /* For completeness, non-standard */
}

/* Optional: prevent outline on tap/focus (if you don't use keyboard focus) */
.modal img,
.work-item,
.close-btn {
  outline: none;
}

/* Optional close button */
.modal .close-btn {
  position: absolute;
  top: 20px;
  right: 30px;
  font-size: 28px;
  color: white;
  cursor: pointer;
  z-index: 1000;
}

/* Optional spinner while loading */
.modal .spinner {
  position: absolute;
  width: 40px;
  height: 40px;
  border: 4px solid #fff;
  border-top: 4px solid transparent;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  z-index: 1;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* Animations */
@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

/* Animations */
@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}


@keyframes fadeInOut {

  0%,
  100% {
    opacity: 0;
  }

  50% {
    opacity: 1;
  }
}

#banner .text-banner {
  text-align: center;
  padding: 60px 20px;
  position: relative;
  border-radius: 32px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.7) 0%, rgba(255, 255, 255, 0.95) 100%);
  box-shadow:
    0 10px 40px rgba(25, 127, 252, 0.05),
    0 1px 3px rgba(0, 0, 0, 0.04);
  border: 1px solid rgba(25, 127, 252, 0.15);
  overflow: hidden;
  animation: bannerGlow 6s ease-in-out infinite alternate;
  z-index: 1;
}

#banner .text-banner::before {
  content: '';
  position: absolute;
  top: -100%;
  left: -100%;
  width: 300%;
  height: 300%;
  background: conic-gradient(from 0deg at 50% 50%,
      transparent 0deg,
      rgba(25, 127, 252, 0.08) 90deg,
      transparent 180deg,
      rgba(99, 179, 237, 0.08) 270deg,
      transparent 360deg);
  animation: rotateGrad 12s linear infinite;
  z-index: 0;
  pointer-events: none;
}

#banner .text-banner h1 {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 900;
  letter-spacing: -0.5px;
  margin-bottom: 16px;
  background: linear-gradient(to right, #0f172a 0%, #197ffc 50%, #0f172a 100%);
  background-size: 200% auto;
  color: transparent;
  -webkit-background-clip: text;
  background-clip: text;
  animation: shimmerText 5s linear infinite;
  position: relative;
  z-index: 1;
}

#banner .text-banner p {
  font-size: clamp(1.1rem, 3vw, 1.25rem);
  color: #4a5568;
  font-weight: 600;
  position: relative;
  z-index: 1;
  margin-bottom: 0px;
}

@keyframes rotateGrad {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(360deg);
  }
}

@keyframes shimmerText {
  to {
    background-position: 200% center;
  }
}

@keyframes bannerGlow {
  0% {
    box-shadow: 0 6px 20px rgba(25, 127, 252, 0.06);
    transform: scale(1);
  }

  100% {
    box-shadow: 0 10px 28px rgba(25, 127, 252, 0.12);
    transform: scale(1.01);
  }
}

/* ============================================================
   FOOTER
============================================================ */
footer {
  /* Warm indigo + #197ffc blue tint — mirrors navbar palette */
  background: linear-gradient(to top,
      rgba(12, 16, 36, 0.96) 0%,
      rgba(18, 20, 48, 0.90) 100%);
  backdrop-filter: blur(32px) saturate(170%);
  -webkit-backdrop-filter: blur(32px) saturate(170%);
  border-top: 1px solid rgba(25, 127, 252, 0.18);
  color: #fff;
  padding: 32px 0 20px;
  box-shadow:
    0 -4px 32px rgba(0, 0, 0, 0.28),
    inset 0 1px 0 rgba(25, 127, 252, 0.10);
}

.footer-container {
  width: 88%;
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* Top row: brand left, social right */
.footer-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.footer-brand {
  font-size: 1.25rem;
  letter-spacing: 0.01em;
  color: rgba(255, 255, 255, 0.9);
}

.footer-brand strong {
  font-weight: 900;
  color: #fff;
}

.footer-brand span {
  font-weight: 900;
  color: #197ffc;
}

/* Social pills */
.footer-social {
  display: flex;
  align-items: center;
  gap: 10px;
}

.footer-social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.07);
  border: 1.5px solid rgba(255, 255, 255, 0.12);
  border-radius: 10px;
  color: rgba(255, 255, 255, 0.75);
  font-size: 1rem;
  text-decoration: none;
  transition: background 0.22s ease, border-color 0.22s ease, color 0.22s ease, transform 0.2s ease;
  -webkit-tap-highlight-color: transparent;
}

.footer-social a:hover {
  background: rgba(25, 127, 252, 0.28);
  border-color: rgba(25, 127, 252, 0.55);
  color: #fff;
  transform: translateY(-3px);
}

/* Gradient divider */
.footer-hr {
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, 0.12) 30%, rgba(25, 127, 252, 0.4) 50%, rgba(255, 255, 255, 0.12) 70%, transparent 100%);
  border: none;
  margin: 0;
}

/* Info row */
.footer-info {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  /* Centers on small screens, natural on large */
  justify-content: center;
}

.footer-info-item {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 0.93rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.75);
  letter-spacing: 0.01em;
  white-space: nowrap;
}

.footer-info-item i {
  color: #197ffc;
  font-size: 0.85rem;
  flex-shrink: 0;
}

/* RTL support — icons stay on left visually */
[dir="rtl"] .footer-info-item {
  flex-direction: row-reverse;
}

/* Phone number ALWAYS left-to-right, even in Arabic */
#footer-tel {
  direction: ltr;
  unicode-bidi: isolate;
  display: inline-block;
}

.footer-dot {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.25);
  flex-shrink: 0;
  display: inline-block;
}

/* Copyright */
.footer-copy {
  font-size: 0.74rem;
  color: rgba(255, 255, 255, 0.28);
  font-weight: 500;
  letter-spacing: 0.03em;
  text-align: center;
  margin: 0;
}

.footer-copy strong {
  color: rgba(255, 255, 255, 0.48);
  font-weight: 700;
}

/* RTL: direction fix for footer text */
[dir="rtl"] .footer-copy {
  direction: rtl;
}

[dir="rtl"] .footer-info {
  direction: rtl;
}

/* ========== ANIMATIONS ========== */
@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(28px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes zoomIn {
  from {
    opacity: 0;
    transform: scale(0.94);
  }

  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes slideLeft {
  from {
    opacity: 0;
    transform: translateX(-24px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slideRight {
  from {
    opacity: 0;
    transform: translateX(20px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* Media Queries */
@media (max-width: 1400px) {
  .container {
    width: 90%;
  }

  /*.hero-text {
        margin-left: 0;
        text-align: center;
    }*/

  .hero-image {
    margin-right: 0;
    max-width: 450px;
    height: 420px;
  }

  .hero-image img {
    width: 100%;
    max-width: 450px;
    margin-right: 50px;
    height: 420px;
    border-radius: 20px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    animation: zoomIn 1s ease-in-out;
  }

  .hero-image::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    max-width: 450px;
    height: 420px;
    background: linear-gradient(90deg, #f4f4f4 25%, #e0e0e0 50%, #f4f4f4 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    z-index: 1;
    border-radius: 24px;
    /* Matches the image's border-radius */
  }

  .hero-heading,
  #hero-heading {
    font-size: clamp(1.6rem, 3.5vw, 2.4rem);
  }

  .service {
    max-width: 450px;
  }
}

/* ===== CONTACT SECTION ===== */
#contact-us {
  padding: 20px;
  margin: 20px auto;
  max-width: 860px;
}

.contact-inner {
  background: #fff;
  border-radius: 28px;
  padding: 48px 52px;
  box-shadow: 0 8px 48px rgba(25, 127, 252, 0.13), 0 2px 16px rgba(0, 0, 0, 0.09);
  border: 1px solid rgba(25, 127, 252, 0.12);
  position: relative;
  overflow: hidden;
}

.contact-inner::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #197ffc 0%, #63b3ed 50%, #197ffc 100%);
  background-size: 200% 100%;
  animation: shimmer 3s linear infinite;
}

/* Contact header block */
.contact-header {
  text-align: center;
  margin-bottom: 40px;
}

.contact-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: linear-gradient(135deg, rgba(25, 127, 252, 0.1), rgba(99, 179, 237, 0.12));
  border: 1px solid rgba(25, 127, 252, 0.2);
  color: #197ffc;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 5px 14px;
  border-radius: 50px;
  margin-bottom: 26px;
  animation: fadeIn 0.8s ease both, badgePulse 2.8s ease-in-out 1s infinite;
}

#contact-us h2 {
  font-size: 2.3rem;
  font-weight: 800;
  color: #0f172a;
  margin-bottom: 10px;
  letter-spacing: -0.5px;
}

.contact-subheading {
  font-size: 0.97rem;
  color: #64748b;
  font-weight: 500;
  max-width: 420px;
  margin: 0 auto;
}

/* Form layout */
form {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

/* Two-column row for name + email */
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

/* Group wrapper */
.form-group {
  display: flex;
  flex-direction: column;
}

/* Label styles */
.form-group label {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  color: #64748b;
  margin-bottom: 8px;
  letter-spacing: 0.07em;
}

/* Icon wrapper */
.input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.input-icon {
  position: absolute;
  left: 16px;
  color: #94a3b8;
  font-size: 0.9rem;
  pointer-events: none;
  z-index: 1;
  transition: color 0.3s ease;
}

.textarea-wrapper {
  align-items: flex-start;
}

.textarea-icon {
  top: 15px;
}

/* Input / Select / Textarea shared styles */
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 13px 16px 13px 44px;
  border: 1.5px solid #e2e8f0;
  border-radius: 14px;
  font-family: inherit;
  font-size: 0.97rem;
  font-weight: 500;
  color: #0f172a;
  background-color: #f8fafc;
  transition: all 0.25s ease;
  appearance: none;
  -webkit-appearance: none;
}

/* Textarea tweaks */
.form-group textarea {
  resize: vertical;
  min-height: 150px;
  line-height: 1.6;
  padding-top: 13px;
}

/* On focus */
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: #197ffc;
  box-shadow: 0 0 0 3px rgba(25, 127, 252, 0.15);
  background-color: #ffffff;
}

.form-group input:focus~.input-icon,
.form-group select:focus~.input-icon,
.form-group textarea:focus~.input-icon,
.input-wrapper:focus-within .input-icon {
  color: #197ffc;
}

/* Placeholder */
.form-group input::placeholder,
.form-group textarea::placeholder {
  color: #94a3b8;
  font-weight: 400;
}

/* RTL: Flip icons and padding */
[dir="rtl"] .input-icon {
  left: auto;
  right: 16px;
}

[dir="rtl"] .form-group input,
[dir="rtl"] .form-group select,
[dir="rtl"] .form-group textarea {
  padding: 13px 44px 13px 16px;
  text-align: right;
}

[dir="rtl"] .form-group select {
  background-position: left 16px center;
}

/* Submit button */
#submit-btn {
  width: 100%;
  padding: 15px;
  background: linear-gradient(135deg, #197ffc 0%, #346fff 100%);
  color: white;
  font-size: 1rem;
  font-weight: 700;
  border: none;
  border-radius: 14px;
  cursor: pointer;
  font-family: inherit;
  letter-spacing: 0.02em;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition: transform 0.2s ease, box-shadow 0.3s ease;
  box-shadow: 0 4px 18px rgba(25, 127, 252, 0.35);
  -webkit-tap-highlight-color: transparent;
  tap-highlight-color: transparent;
}

#submit-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(25, 127, 252, 0.45);
}

#submit-btn:active {
  transform: translateY(0);
}

/* .error-message {
  display: none;
  color: #d93025;
  font-size: 0.85rem;
  margin-top: 4px;
} */

.invalid {
  border: 1px solid #dc3545;
}

.valid {
  border: 1px solid #28a745;
}

.error-message {
  display: none;
  color: #dc3545;
  font-size: 0.8rem;
  margin: 5px;
}

.toast-message {
  position: fixed;
  top: 30px;
  /* Default visual spacing */
  top: max(30px, env(safe-area-inset-top));
  /* Support for notched devices */
  left: 50%;
  transform: translate(-50%, -200%);
  /* Start hidden upwards */
  padding: 16px 28px;
  border-radius: 50px;
  /* Pill shape */
  font-size: 1rem;
  text-align: center;
  font-weight: 800;
  color: white;
  z-index: 10000;
  /* Ensure it's above everything including overlay */

  /* Glassmorphism base */
  background: rgba(40, 44, 52, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);

  display: flex;
  align-items: center;
  gap: 12px;

  transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.5s ease;
  opacity: 0;
  pointer-events: none;
}

/* Visible state */
.toast-message.show {
  opacity: 1;
  transform: translate(-50%, 0);
  pointer-events: auto;
}

/* Success styling */
.toast-success {
  background-color: rgba(18, 140, 140, 0.9);
  /* More opacity for visibility */
  border-color: rgba(18, 140, 140, 0.4);
}

/* Error styling */
.toast-error {
  background-color: rgba(217, 48, 37, 0.9);
  border-color: rgba(217, 48, 37, 0.4);
}


/* -------------------------------------------------------------------------------- */

@media (max-width: 1400px) {
  .container {
    width: 90%;
  }

  .hero-text {
    padding: 20px;
  }

  .hero-image {
    max-width: 450px;
    height: 420px;
  }

  .hero-image img {
    width: 100%;
    max-width: 450px;
    margin-right: 50px;
    height: 420px;
    border-radius: 20px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    animation: zoomIn 1s ease-in-out;
  }

  .hero-image::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    max-width: 450px;
    height: 420px;
    background: linear-gradient(90deg, #f4f4f4 25%, #e0e0e0 50%, #f4f4f4 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    z-index: 1;
    border-radius: 24px;
    /* Matches the image's border-radius */
  }

  #typewriter {
    font-size: 2.4em;
    margin-bottom: 20px;
  }

  .hero-text p {
    font-size: 1.2em;
    margin-bottom: 20px;
    color: #555;
  }

  .service {
    max-width: 450px;
  }

  #ui-ux-works h2 {
    font-size: 1.85rem;
  }

  .work-item {
    min-width: 300px;
    max-width: 775px;
  }

  #contact-us h2 {
    font-size: 1.85rem;
  }
}

@media (max-width: 1200px) {
  .container {
    width: 90%;
  }

  .hero-image {
    margin-right: 0;
    max-width: 450px;
    height: 400px;
  }

  .hero-image img {
    width: 100%;
    max-width: 450px;
    margin-right: 50px;
    height: 400px;
    border-radius: 20px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    animation: zoomIn 1s ease-in-out;
  }

  .hero-image::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    max-width: 450px;
    height: 400px;
    background: linear-gradient(90deg, #f4f4f4 25%, #e0e0e0 50%, #f4f4f4 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    z-index: 1;
    border-radius: 24px;
    /* Matches the image's border-radius */
  }

  .hero-heading,
  #hero-heading {
    font-size: clamp(1.5rem, 3vw, 2rem);
  }

  .service {
    max-width: 400px;
  }

  #ui-ux-works h2 {
    font-size: 1.65rem;
  }

  .work-item {
    min-width: 300px;
    max-width: 650px;
  }

  #contact-us h2 {
    font-size: 1.65rem;
  }
}

@media (max-width: 992px) {
  .hero-text {
    margin-top: 5px;
    margin-left: 0;
    text-align: center;
  }

  [dir="rtl"] .hero-text {
    text-align: center;
    margin-right: 0;
  }

  .hero-image {
    margin-right: 0;
    max-width: 400px;
    height: 350px;
  }

  .section-divider {
    display: flex;
  }

  .hero-image img {
    width: 100%;
    max-width: 400px;
    height: 350px;
    margin: 0 auto;
    border-radius: 20px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    animation: zoomIn 1s ease-in-out;
  }

  .hero-image::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    max-width: 450px;
    height: 300px;
    background: linear-gradient(90deg, #f4f4f4 25%, #e0e0e0 50%, #f4f4f4 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    z-index: 1;
    border-radius: 24px;
    /* Matches the image's border-radius */
  }

  .service {
    flex: 1 1 300px;
    max-width: 300px;
  }

  #services h2 {
    font-size: 1.85rem;
  }

  .hero-heading,
  #hero-heading {
    font-size: clamp(1.4rem, 2.8vw, 2rem);
  }

  #services {
    padding: 36px 0;
  }

  #ui-ux-works h2 {
    font-size: 1.55rem;
  }

  .dot {
    width: 8px;
    height: 8px;
  }

  .hero-content {
    flex-direction: column;
    gap: 20px;
  }

  [dir="rtl"] .hero-content {
    gap: 20px;
  }

  .service {
    max-width: 350px;
  }

  #banner .text-banner h1 {
    font-size: 1.6em;
    margin-bottom: 10px;
  }

  #banner .text-banner p {
    font-size: 1em;
    color: #555;
  }

  #contact-us {
    max-width: 600px;
    padding: 20px 16px;
  }

  .contact-inner {
    padding: 36px 32px;
  }

  #contact-us h2 {
    font-size: 1.55rem;
  }
}

@media (max-width: 768px) {
  header nav ul {
    right: 10px;
  }

  .hero-image img {
    width: 100%;
  }

  .hero-image {
    margin-right: 0;
    max-width: 450px;
    height: 280px;
  }

  #about-us {
    padding: 20px 10px;
    margin-top: 10px;
    margin-bottom: 0;
  }

  .about-content {
    flex-direction: column;
    text-align: center;
    gap: 30px;
  }

  [dir="rtl"] .section-heading,
  [dir="rtl"] .section-description {
    text-align: center;
  }

  .about-stats {
    width: 100%;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
  }

  .stat-item {
    padding: 20px 15px;
    flex: 1 1 140px;
    border-radius: 16px;
  }

  .stat-number {
    font-size: 1.8rem;
    margin-bottom: 6px;
  }

  .stat-label {
    font-size: 0.8rem;
  }

  .hero-image img {
    width: 100%;
    max-width: 450px;
    height: 300px;
    margin: 0 auto;
    border-radius: 20px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    animation: zoomIn 1s ease-in-out;
  }

  .hero-heading,
  #hero-heading {
    font-size: clamp(1.35rem, 5vw, 1.9rem);
  }

  #ui-ux-works h2 {
    font-size: 1.45rem;
  }

  .works-list {
    gap: 12px;
  }

  .dot {
    width: 7px;
    height: 7px;
  }

  .work-item {
    min-width: 250px;
    max-width: 450px;
  }

  #contact-us {
    max-width: 550px;
    padding: 20px 12px;
  }

  .contact-inner {
    padding: 30px 24px;
  }

  .form-row {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 650px) {

  .container,
  .header-container {
    width: 96%;
    padding: 0 8px;
  }

  #contact-us {
    max-width: 100%;
    padding: 12px 0;
    margin: 12px auto;
  }

  .contact-inner {
    border-radius: 20px;
    padding: 28px 18px;
  }

  #contact-us h2 {
    font-size: 1.5rem;
  }

  .contact-subheading {
    font-size: 0.9rem;
  }

  .form-row {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .form-group label {
    font-size: 0.65rem;
    margin-bottom: 6px;
  }

  /* Full-width touch-friendly inputs on mobile */
  .form-group input,
  .form-group select,
  .form-group textarea {
    min-height: 48px;
    font-size: 0.75rem;
    padding: 12px 16px 12px 44px;
    border-radius: 12px;
  }

  [dir="rtl"] .form-group input,
  [dir="rtl"] .form-group select,
  [dir="rtl"] .form-group textarea {
    padding: 12px 44px 12px 16px;
  }

  .form-group textarea {
    min-height: 120px;
  }

  #submit-btn {
    padding: 14px;
    font-size: 1rem;
    border-radius: 12px;
  }
}


@media (max-width: 576px) {
  header {
    padding: 16px 0;
  }

  /* Show hamburger */
  .menu-icon {
    display: flex;
  }

  /* ---- Mobile nav dropdown ---- */
  #main-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    z-index: 999;
    /* Match header blue-tinted glass */
    background: linear-gradient(180deg,
        rgba(15, 20, 45, 0.97) 0%,
        rgba(12, 18, 42, 0.99) 100%);
    backdrop-filter: blur(32px) saturate(170%);
    -webkit-backdrop-filter: blur(32px) saturate(170%);
    border-bottom: 1px solid rgba(25, 127, 252, 0.18);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.28), 0 2px 0 rgba(25, 127, 252, 0.08) inset;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-height 0.38s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.28s ease;
  }

  #main-nav.active {
    max-height: 420px;
    opacity: 1;
  }

  #main-nav .nav-content {
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    padding: 12px 16px 18px;
  }

  #main-nav ul {
    flex-direction: column;
    gap: 2px;
    width: 100%;
  }

  /* Each nav link: full-width, tall tap target, blue left accent on active */
  #main-nav ul li {
    width: 100%;
  }

  #main-nav ul li a {
    display: flex;
    align-items: center;
    min-height: 48px;
    padding: 0 14px;
    font-size: 0.97rem;
    font-weight: 600;
    border-radius: 12px;
    color: rgba(255, 255, 255, 0.78);
    border-left: 2px solid transparent;
    transition: background 0.18s ease, color 0.18s ease, border-color 0.18s ease;
  }

  #main-nav ul li a:hover {
    background: rgba(25, 127, 252, 0.10);
    color: #fff;
    border-left-color: rgba(25, 127, 252, 0.4);
  }

  #main-nav ul li a.nav-link-active {
    background: rgba(25, 127, 252, 0.14);
    color: #fff;
    border-left-color: #197ffc;
  }

  /* Hide the underline ::after on mobile — use border-left instead */
  #main-nav ul li a::after {
    display: none;
  }

  /* Thin blue divider between links and lang switcher */
  .nav-sep {
    display: block;
    width: 100%;
    height: 1px;
    background: rgba(25, 127, 252, 0.15);
    margin: 6px 0;
    flex-shrink: 0;
  }

  /* Lang switcher: full row, centered */
  .lang-switcher {
    align-self: center;
    margin-top: 4px;
  }

  .hero-heading,
  #hero-heading {
    font-size: clamp(1.25rem, 5.5vw, 1.75rem);
  }

  .hero-subtitle,
  .hero-text p {
    font-size: clamp(0.88rem, 3.5vw, 1rem);
  }

  .hero-cta-btn {
    padding: 12px 22px;
    font-size: 0.93rem;
  }

  #ui-ux-works h2 {
    font-size: 1.3rem;
  }

  #services h2 {
    font-size: 1.6em;
  }

  .service h3 {
    font-size: 1.25em;
  }

  .service p {
    font-size: 0.9em;
  }

  .hero-image {
    margin-right: 0;
    max-width: 375px;
    height: 250px;
  }

  .hero-image img {
    width: 100%;
    max-width: 375px;
    height: 250px;
    margin: 0 auto;
    border-radius: 20px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    animation: zoomIn 1s ease-in-out;
  }

  .service,
  .member {
    width: 100%;
    margin: 0 auto;
  }

  #contact-us {
    max-width: 95%;
  }

  .contact-inner {
    padding: 24px 16px;
  }

  /* footer on mobile: stack brand + social vertically */
  .footer-top {
    flex-direction: column;
    gap: 14px;
    align-items: center;
    text-align: center;
  }

  /* Tighten container padding to use 94% of screen width */
  .container {
    width: 95%;
    padding: 16px 0;
  }

  .projects-container {
    width: 100%;
    padding: 10px 0;
  }

  #hero {
    padding-top: 26px;
  }

  #services {
    padding: 12px 0;
  }

  #ui-ux-works {
    margin: 16px 0;
    padding: 24px 14px;
  }
}




@media (max-width: 480px) {
  .container {
    width: 95%;
    padding: 12px 0;
  }

  #ui-ux-works h2 {
    font-size: 1.25rem;
  }

  .dot {
    width: 5px;
    height: 5px;
  }

  /* #contact-us {
    padding: 8px 0;
  } */

  .contact-inner {
    padding: 22px 14px;
    border-radius: 16px;
  }

  .contact-header {
    margin-bottom: 24px;
  }

  .hero-heading,
  #hero-heading {
    font-size: clamp(1.1rem, 6vw, 1.5rem);
  }

  .hero-subtitle,
  .hero-text p {
    font-size: clamp(0.82rem, 3.8vw, 0.95rem);
  }

  .services {
    gap: 20px;
  }
}

@media (max-width: 400px) {
  .container {
    width: 95%;
    padding: 10px 0;
  }

  .contact-inner {
    padding: 18px 12px;
  }
}


/* ============================================================
   LOADING OVERLAY — light premium glass card
============================================================ */
.loading-overlay {
  position: fixed;
  inset: 0;
  /* Light frosted-glass backdrop compatible with main bright colors */
  background: rgba(255, 255, 255, 0.5);
  backdrop-filter: blur(20px) saturate(160%);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 99999;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  /* Block all touch interaction from reaching the page beneath */
  touch-action: none;
  overscroll-behavior: none;
}

/* General simple scroll lock for html and body */
html.no-scroll,
body.no-scroll {
  overflow: hidden !important;
  touch-action: none;
}

.loading-overlay.show {
  opacity: 1;
  visibility: visible;
}

/* Glass card matching main colors */
.loading-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(24px) saturate(160%);
  -webkit-backdrop-filter: blur(24px) saturate(160%);
  border: 1px solid rgba(25, 127, 252, 0.15);
  border-radius: 22px;
  padding: 30px 42px;
  box-shadow:
    0 10px 40px rgba(25, 127, 252, 0.08),
    0 0 0 1px rgba(255, 255, 255, 0.5) inset;
  animation: cardFadeUp 0.35s cubic-bezier(0.22, 1, 0.36, 1) both;
}

@keyframes cardFadeUp {
  from {
    opacity: 0;
    transform: translateY(16px) scale(0.96);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* Dual concentric rings container */
.loading-rings {
  position: relative;
  width: 64px;
  height: 64px;
}

/* Shared ring base */
.ring {
  position: absolute;
  border-radius: 50%;
  border: 3px solid transparent;
}

/* Outer ring — slower, clockwise */
.ring-outer {
  inset: 0;
  border-top-color: #197ffc;
  border-right-color: rgba(25, 127, 252, 0.25);
  animation: spinCW 1.1s linear infinite;
}

/* Inner ring — faster, counter-clockwise */
.ring-inner {
  inset: 10px;
  border-bottom-color: #63b3ed;
  border-left-color: rgba(99, 179, 237, 0.25);
  animation: spinCCW 0.75s linear infinite;
}

/* Pulsing center dot */
.ring-dot {
  position: absolute;
  width: 10px;
  height: 10px;
  background: #197ffc;
  border-radius: 50%;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  box-shadow: 0 0 10px rgba(25, 127, 252, 0.8), 0 0 24px rgba(25, 127, 252, 0.4);
  animation: dotPulse 1.1s ease-in-out infinite;
}

@keyframes spinCW {
  to {
    transform: rotate(360deg);
  }
}

@keyframes spinCCW {
  to {
    transform: rotate(-360deg);
  }
}

@keyframes dotPulse {

  0%,
  100% {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
  }

  50% {
    opacity: 0.5;
    transform: translate(-50%, -50%) scale(0.65);
  }
}

/* Loading label */
.loading-label {
  margin: 0;
  color: #197ffc;
  font-family: "Plus Jakarta Sans", "Tajawal", sans-serif;
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  animation: labelBlink 1.6s ease-in-out infinite;
}

@keyframes labelBlink {

  0%,
  100% {
    opacity: 0.82;
  }

  50% {
    opacity: 0.38;
  }
}