/* ========================================
   LabeNat - Company Website
   Author: Mavis Agent
   Brand: Dark Navy + Orange, RTL Arabic
   ======================================== */

/* ---------- CSS Variables ---------- */
:root {
  /* Brand colors */
  --navy-900: #0A1F33;
  --navy-800: #0F2A44;
  --navy-700: #14304F;
  --navy-600: #1B3A5C;
  --navy-500: #244A75;
  --navy-400: #3B6895;
  --navy-300: #6E91B8;
  --navy-200: #B5C7DC;
  --navy-100: #E5ECF4;

  --orange-600: #E55A0E;
  --orange-500: #FF6B1A;
  --orange-400: #FF8A47;
  --orange-300: #FFB37E;
  --orange-200: #FFD7B5;
  --orange-100: #FFEEDF;

  --bg: #FFFFFF;
  --bg-alt: #F7F9FC;
  --bg-dark: var(--navy-800);
  --text: #1A2433;
  --text-soft: #4A5568;
  --text-mute: #6B7785;
  --border: #E2E8F0;

  /* Effects */
  --shadow-sm: 0 2px 8px rgba(10, 31, 51, 0.06);
  --shadow-md: 0 6px 24px rgba(10, 31, 51, 0.08);
  --shadow-lg: 0 18px 60px rgba(10, 31, 51, 0.15);
  --shadow-xl: 0 30px 100px rgba(10, 31, 51, 0.25);
  --shadow-orange: 0 14px 40px rgba(255, 107, 26, 0.35);

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;
  --radius-xl: 32px;

  /* Typography */
  --font-ar: 'Cairo', 'Tajawal', 'Segoe UI', system-ui, sans-serif;
  --font-en: 'Cairo', 'Tajawal', system-ui, sans-serif;

  /* Layout */
  --container-w: 1240px;
  --header-h: 80px;
  --section-py: clamp(60px, 8vw, 110px);

  /* Motion */
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-bounce: cubic-bezier(0.34, 1.56, 0.64, 1);

  /* Container padding (fluid) */
  --container-pad: clamp(16px, 4vw, 32px);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 90px;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  font-family: var(--font-ar);
  font-size: clamp(15px, 1.1vw, 17px);
  line-height: 1.7;
  color: var(--text);
  background: var(--navy-900);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  direction: rtl;
  text-align: right;
  cursor: auto;
}

body.loaded {
  background: var(--bg);
}

@media (hover: hover) and (pointer: fine) {
  /* We intentionally do NOT set `cursor: none` here.
     The OS cursor stays visible so the user always has a working cursor.
     The custom cursor is a visual decoration on top of the OS cursor. */
}

img,
svg {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color 0.25s var(--ease);
}

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

input,
select,
textarea {
  font-family: inherit;
  font-size: 1rem;
}

ul {
  list-style: none;
}

::selection {
  background: var(--orange-500);
  color: #fff;
}

/* ---------- Container ---------- */
.container {
  width: 100%;
  max-width: var(--container-w);
  margin: 0 auto;
  padding: 0 var(--container-pad);
}

/* ============================================
   PROGRESS BAR (top)
   ============================================ */
.progress-bar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: rgba(255, 255, 255, 0.05);
  z-index: 10000;
  pointer-events: none;
}

.progress-bar__fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--orange-500), var(--orange-300));
  box-shadow: 0 0 10px rgba(255, 107, 26, 0.6);
  transition: width 0.05s linear;
}

/* ============================================
   CUSTOM CURSOR (desktop only)
   Note: We do NOT hide the OS cursor so the user always has a working cursor.
   The custom cursor is a visual decoration that follows the mouse.
   ============================================ */
.cursor {
  position: fixed;
  top: 0;
  left: 0;
  pointer-events: none;
  z-index: 99999;
  display: none;
  opacity: 1;
  transition: opacity 0.2s var(--ease);
  isolation: isolate;
}

.cursor.is-hidden {
  opacity: 0;
}

/* Show on devices that have a fine pointer (mouse / trackpad).
   We do NOT add a `cursor: none` rule on body — the OS cursor always stays visible.
   This ensures the user always has a working cursor no matter what. */
@media (hover: hover) and (pointer: fine) {
  .cursor { display: block; }
}

.cursor__dot {
  position: absolute;
  top: 0;
  left: 0;
  width: 10px;
  height: 10px;
  background: var(--orange-500);
  border: 2px solid #fff;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: width 0.25s var(--ease), height 0.25s var(--ease), background 0.25s var(--ease);
  will-change: transform;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
}

.cursor__ring {
  position: absolute;
  top: 0;
  left: 0;
  width: 36px;
  height: 36px;
  border: 1.5px solid var(--orange-500);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: width 0.3s var(--ease), height 0.3s var(--ease), border-color 0.25s var(--ease), border-width 0.25s var(--ease);
  will-change: transform;
  opacity: 0.6;
}

.cursor.is-hover .cursor__dot {
  width: 14px;
  height: 14px;
  background: var(--orange-600);
  border-color: #fff;
  box-shadow: 0 4px 10px rgba(255, 107, 26, 0.5);
}

.cursor.is-hover .cursor__ring {
  width: 56px;
  height: 56px;
  border-color: var(--orange-500);
  border-width: 2px;
  opacity: 1;
}

/* ============================================
   PRELOADER
   ============================================ */
.preloader {
  position: fixed;
  inset: 0;
  background: var(--navy-900);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 99999;
  transition: opacity 0.6s var(--ease), visibility 0.6s var(--ease);
}

.preloader.hide {
  opacity: 0;
  visibility: hidden;
}

.preloader__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}

.preloader__logo {
  width: 90px;
  height: 90px;
  animation: preloader-bounce 1.2s var(--ease-bounce) infinite;
}

.preloader__logo svg,
.preloader__logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.preloader__bar {
  width: 200px;
  height: 3px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 100px;
  overflow: hidden;
  position: relative;
}

.preloader__bar-fill {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, var(--orange-500), transparent);
  animation: preloader-shimmer 1.5s linear infinite;
}

.preloader__text {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--orange-400);
  letter-spacing: 0.3em;
  text-transform: uppercase;
  font-family: 'Cairo', sans-serif;
}

@keyframes preloader-bounce {
  0%, 100% { transform: scale(1) rotate(0); }
  50% { transform: scale(0.85) rotate(-8deg); }
}

@keyframes preloader-shimmer {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}

/* ============================================
   PARTICLES CANVAS
   ============================================ */
.particles {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
  opacity: 0.5;
}

/* ============================================
   HEADER
   ============================================ */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--header-h);
  z-index: 1000;
  background: rgba(10, 31, 51, 0.6);
  backdrop-filter: blur(16px) saturate(180%);
  -webkit-backdrop-filter: blur(16px) saturate(180%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  transition: background 0.3s var(--ease), box-shadow 0.3s var(--ease), transform 0.3s var(--ease);
}

.header.scrolled {
  background: rgba(10, 31, 51, 0.95);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.25);
}

.header.hide-on-scroll {
  transform: translateY(-100%);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: #fff;
  font-weight: 700;
  flex-shrink: 0;
  position: relative;
}

.brand__mark {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  background: linear-gradient(135deg, var(--orange-500), var(--orange-600));
  border-radius: 12px;
  box-shadow: 0 6px 20px rgba(255, 107, 26, 0.4);
  transition: transform 0.4s var(--ease-bounce);
  position: relative;
  overflow: hidden;
}

.brand__mark::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  transform: translateX(-100%);
  transition: transform 0.6s var(--ease);
}

.brand:hover .brand__mark {
  transform: rotate(-10deg) scale(1.08);
}

.brand:hover .brand__mark::before {
  transform: translateX(100%);
}

.brand__mark svg,
.brand__mark img {
  width: 28px;
  height: 28px;
  position: relative;
  z-index: 1;
  object-fit: contain;
}

.brand__text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.brand__name {
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.brand__sub {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--orange-400);
  letter-spacing: 0.15em;
  font-family: 'Cairo', sans-serif;
}

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

.nav__link {
  position: relative;
  color: rgba(255, 255, 255, 0.85);
  padding: 10px 14px;
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: 8px;
  transition: color 0.25s var(--ease), background 0.25s var(--ease);
}

.nav__link::after {
  content: '';
  position: absolute;
  bottom: 4px;
  right: 14px;
  left: 14px;
  height: 2px;
  background: var(--orange-500);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.3s var(--ease);
}

.nav__link:hover {
  color: #fff;
}

.nav__link:hover::after,
.nav__link.active::after {
  transform: scaleX(1);
}

.nav__link--cta {
  background: var(--orange-500);
  color: #fff;
  padding: 10px 20px;
  margin-right: 8px;
  position: relative;
  overflow: hidden;
}

.nav__link--cta::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  transform: translateX(-100%);
  transition: transform 0.5s var(--ease);
}

.nav__link--cta:hover::before {
  transform: translateX(100%);
}

.nav__link--cta::after {
  display: none;
}

.nav__link--cta:hover {
  background: var(--orange-600);
  transform: translateY(-1px);
}

.burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 10px;
  transition: background 0.3s var(--ease);
  position: relative;
  z-index: 1002;
}

.burger:hover {
  background: rgba(255, 255, 255, 0.12);
}

.burger span {
  display: block;
  width: 22px;
  height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: transform 0.3s var(--ease), opacity 0.3s var(--ease);
}

.burger.open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.burger.open span:nth-child(2) {
  opacity: 0;
}

.burger.open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ============================================
   HERO
   ============================================ */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  padding: calc(var(--header-h) + 60px) 0 100px;
  color: #fff;
  overflow: hidden;
  display: flex;
  align-items: center;
  isolation: isolate;
}

.hero__bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(ellipse 80% 60% at top right, rgba(255, 107, 26, 0.18), transparent 60%),
    radial-gradient(ellipse 60% 50% at bottom left, rgba(36, 74, 117, 0.55), transparent 60%),
    linear-gradient(135deg, var(--navy-900), var(--navy-700));
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse at center, #000 30%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse at center, #000 30%, transparent 70%);
  animation: grid-pulse 8s ease-in-out infinite;
}

@keyframes grid-pulse {
  0%, 100% { opacity: 0.6; }
  50% { opacity: 1; }
}

.hero__grid {
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 200'%3E%3Cdefs%3E%3Cpattern id='hex' x='0' y='0' width='80' height='70' patternUnits='userSpaceOnUse'%3E%3Cpath d='M40 0 L80 23 L80 70 L40 93 L0 70 L0 23 Z' fill='none' stroke='%23ffffff' stroke-width='0.8' opacity='0.05'/%3E%3C/pattern%3E%3C/defs%3E%3Crect width='200' height='200' fill='url(%23hex)'/%3E%3C/svg%3E");
  background-size: 240px 210px;
  opacity: 0.6;
  animation: hex-drift 60s linear infinite;
}

@keyframes hex-drift {
  from { background-position: 0 0; }
  to { background-position: 240px 210px; }
}

.hero__inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 60px;
  align-items: center;
}

.hero__content {
  max-width: 700px;
}

.hero__chip {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 18px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 100px;
  font-size: 0.85rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 28px;
  backdrop-filter: blur(10px);
  animation: chip-in 0.8s var(--ease-out) 0.2s backwards;
}

@keyframes chip-in {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.hero__chip-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--orange-500);
  box-shadow: 0 0 0 4px rgba(255, 107, 26, 0.25);
  animation: pulse-dot 2s var(--ease) infinite;
}

@keyframes pulse-dot {
  0%, 100% { box-shadow: 0 0 0 4px rgba(255, 107, 26, 0.25); }
  50% { box-shadow: 0 0 0 10px rgba(255, 107, 26, 0.05); }
}

.hero__title {
  font-size: clamp(2.4rem, 6vw, 5rem);
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin-bottom: 24px;
  perspective: 1000px;
}

.hero__title-line {
  display: block;
  position: relative;
  overflow: hidden;
  padding: 0.05em 0;
}

.hero__title-line {
  opacity: 0;
  transform: translateY(110%);
  animation: title-up 1s var(--ease-out) forwards;
}

.hero__title-line:nth-child(1) { animation-delay: 0.3s; }
.hero__title-line:nth-child(2) { animation-delay: 0.55s; }

@keyframes title-up {
  to { opacity: 1; transform: translateY(0); }
}

.hero__title-main {
  color: #fff;
}

.hero__title-accent {
  background: linear-gradient(135deg, var(--orange-400), var(--orange-500));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
  position: relative;
  display: inline-block;
}

.hero__title-accent::after {
  content: '';
  position: absolute;
  bottom: -4px;
  right: 0;
  width: 0;
  height: 4px;
  background: var(--orange-500);
  border-radius: 2px;
  animation: title-underline 1s var(--ease) 1.4s forwards;
}

@keyframes title-underline {
  to { width: 60%; }
}

.hero__subtitle {
  font-size: clamp(1rem, 1.4vw, 1.2rem);
  line-height: 1.85;
  color: rgba(255, 255, 255, 0.75);
  max-width: 600px;
  margin-bottom: 40px;
  animation: fade-up 0.8s var(--ease-out) 0.9s backwards;
}

@keyframes fade-up {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.hero__subtitle strong {
  color: var(--orange-400);
  font-weight: 700;
}

.hero__actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 60px;
  animation: fade-up 0.8s var(--ease-out) 1.1s backwards;
}

.hero__stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  padding-top: 40px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  animation: fade-up 0.8s var(--ease-out) 1.3s backwards;
}

.hero__stat {
  text-align: right;
  position: relative;
  transition: transform 0.3s var(--ease);
}

.hero__stat:hover {
  transform: translateY(-4px);
}

.hero__stat::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 0;
  height: 2px;
  background: var(--orange-500);
  transition: width 0.4s var(--ease);
}

.hero__stat:hover::before {
  width: 100%;
}

.hero__stat-num {
  font-size: clamp(1.8rem, 3.5vw, 3rem);
  font-weight: 900;
  color: var(--orange-500);
  line-height: 1;
  margin-bottom: 6px;
  font-family: 'Cairo', sans-serif;
  display: inline-block;
  background: linear-gradient(180deg, #fff 0%, var(--orange-300) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero__stat-label {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.7);
  font-weight: 500;
}

.hero__logo {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  animation: fade-left 1s var(--ease-out) 0.5s backwards;
}

@keyframes fade-left {
  from { opacity: 0; transform: translateX(-30px); }
  to { opacity: 1; transform: translateX(0); }
}

.hero__logo-card {
  position: relative;
  width: 100%;
  max-width: 420px;
  aspect-ratio: 1;
  background: linear-gradient(135deg, rgba(255, 107, 26, 0.15), rgba(255, 107, 26, 0.03));
  border: 1px solid rgba(255, 107, 26, 0.3);
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(20px);
  animation: float 6s var(--ease) infinite;
  transition: transform 0.3s var(--ease);
  will-change: transform;
}

.hero__logo-glow {
  position: absolute;
  inset: -40px;
  background: radial-gradient(circle, rgba(255, 107, 26, 0.4), transparent 60%);
  border-radius: 50%;
  filter: blur(40px);
  z-index: -1;
  animation: glow-pulse 4s var(--ease) infinite;
}

@keyframes glow-pulse {
  0%, 100% { opacity: 0.4; transform: scale(1); }
  50% { opacity: 0.8; transform: scale(1.1); }
}

.hero__logo-card::before {
  content: '';
  position: absolute;
  inset: 20px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 50%;
  animation: rotate 30s linear infinite;
}

.hero__logo-card::after {
  content: '';
  position: absolute;
  inset: 50px;
  border: 1px dashed rgba(255, 107, 26, 0.25);
  border-radius: 50%;
  animation: rotate 20s linear infinite reverse;
}

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

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

.hero__logo-card svg,
.hero__logo-card img {
  width: 55%;
  height: 55%;
  object-fit: contain;
  position: relative;
  z-index: 2;
  filter: drop-shadow(0 10px 30px rgba(255, 107, 26, 0.4));
  animation: pulse-logo 3s var(--ease) infinite;
}

@keyframes pulse-logo {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.04); }
}

.hero__logo-text {
  font-size: 3rem;
  font-weight: 900;
  color: #fff;
  margin-top: -2.5rem;
  position: relative;
  z-index: 2;
  letter-spacing: -0.02em;
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.hero__logo-sub {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.6);
  margin-top: 10px;
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 80%;
  font-weight: 500;
}

.hero__scroll {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  width: 30px;
  height: 50px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 100px;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding-top: 8px;
  z-index: 2;
  transition: border-color 0.3s var(--ease);
}

.hero__scroll:hover {
  border-color: var(--orange-500);
}

.hero__scroll span {
  width: 4px;
  height: 8px;
  background: var(--orange-500);
  border-radius: 2px;
  animation: scroll-bounce 1.5s var(--ease) infinite;
}

@keyframes scroll-bounce {
  0%, 100% { transform: translateY(0); opacity: 1; }
  50% { transform: translateY(15px); opacity: 0.3; }
}

/* ============================================
   MARQUEE
   ============================================ */
.marquee {
  position: relative;
  background: var(--orange-500);
  color: #fff;
  padding: 18px 0;
  overflow: hidden;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.marquee::before,
.marquee::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  width: 80px;
  z-index: 2;
  pointer-events: none;
}

.marquee::before {
  right: 0;
  background: linear-gradient(90deg, var(--orange-500), transparent);
}

.marquee::after {
  left: 0;
  background: linear-gradient(-90deg, var(--orange-500), transparent);
}

.marquee__track {
  display: flex;
  gap: 0;
  width: max-content;
  /* Keep the track's own direction consistent with the page (rtl) so items
     read naturally, right item first. The animation below moves it in the
     negative X direction, which visually pulls content from right to left. */
  direction: rtl;
  /* --marquee-distance is set by JS to the exact pixel width of one group
     (see script.js initMarquee). JS also clones extra copies of the group
     as needed so the track is always wide enough for the screen, which a
     fixed "-50%" can't guarantee once spacing gets tight or the screen
     gets wide. 50% is only a fallback for the rare case JS hasn't run. */
  animation: marquee-scroll 20s linear infinite;
}

@keyframes marquee-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(calc(-1 * var(--marquee-distance, 50%))); }
}

.marquee__group {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-shrink: 0;
  direction: rtl;
  /* Trailing gap replaces the old track-level gap so each group's total
     width (item gap + trailing gap) is identical, keeping the -50% loop
     point exact and seamless instead of jumping. */
  padding-inline-end: 16px;
}

.marquee__item {
  font-size: clamp(1rem, 1.5vw, 1.25rem);
  font-weight: 800;
  white-space: nowrap;
  letter-spacing: -0.01em;
}

.marquee__sep {
  color: rgba(255, 255, 255, 0.55);
  font-size: 0.6rem;
}

/* ============================================
   BUTTONS
   ============================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 28px;
  font-size: 1rem;
  font-weight: 700;
  border-radius: 12px;
  transition: all 0.3s var(--ease);
  cursor: pointer;
  position: relative;
  overflow: hidden;
  white-space: nowrap;
}

.btn svg {
  width: 18px;
  height: 18px;
  transition: transform 0.3s var(--ease);
  position: relative;
  z-index: 1;
}

.btn--primary {
  background: linear-gradient(135deg, var(--orange-500), var(--orange-600));
  color: #fff;
  box-shadow: var(--shadow-orange);
}

.btn--primary::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--orange-600), var(--orange-500));
  opacity: 0;
  transition: opacity 0.3s var(--ease);
}

.btn--primary::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent, rgba(255, 255, 255, 0.4), transparent);
  transform: translateX(-100%);
  transition: transform 0.6s var(--ease);
}

.btn--primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 20px 50px rgba(255, 107, 26, 0.5);
}

.btn--primary:hover::before {
  opacity: 1;
}

.btn--primary:hover::after {
  transform: translateX(100%);
}

.btn--primary span {
  position: relative;
  z-index: 1;
}

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

.btn--ghost {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(10px);
}

.btn--ghost:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.3);
  transform: translateY(-3px);
}

.btn--lg {
  padding: 18px 36px;
  font-size: 1.05rem;
}

.btn--block {
  width: 100%;
  justify-content: center;
}

/* Ripple effect */
.btn .ripple {
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  transform: scale(0);
  animation: ripple-anim 0.6s var(--ease-out);
  pointer-events: none;
}

@keyframes ripple-anim {
  to { transform: scale(4); opacity: 0; }
}

/* ============================================
   SECTIONS
   ============================================ */
.section {
  padding: var(--section-py) 0;
  position: relative;
}

.section__head {
  text-align: center;
  max-width: 720px;
  margin: 0 auto clamp(40px, 5vw, 70px);
}

.section__head--light .section__title {
  color: #fff;
}

.section__head--light .section__eyebrow {
  color: var(--orange-400);
}

.section__eyebrow {
  display: inline-block;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--orange-500);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  margin-bottom: 14px;
  position: relative;
  padding: 0 30px;
}

.section__eyebrow::before,
.section__eyebrow::after {
  content: '';
  position: absolute;
  top: 50%;
  width: 20px;
  height: 1.5px;
  background: var(--orange-500);
  opacity: 0.5;
}

.section__eyebrow::before { right: 0; }
.section__eyebrow::after { left: 0; }

.section__title {
  font-size: clamp(1.8rem, 3.6vw, 3.2rem);
  font-weight: 900;
  color: var(--navy-800);
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin-bottom: 18px;
}

.section__line {
  width: 80px;
  height: 4px;
  background: linear-gradient(90deg, var(--orange-500), var(--orange-300));
  border-radius: 2px;
  margin: 0 auto;
  position: relative;
  overflow: hidden;
}

.section__line::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, #fff, transparent);
  animation: line-shine 3s var(--ease) infinite;
}

@keyframes line-shine {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}

.section__line--center {
  background: linear-gradient(90deg, var(--orange-400), var(--orange-200));
}

.section__desc {
  margin-top: 22px;
  font-size: clamp(1rem, 1.3vw, 1.1rem);
  color: var(--text-soft);
  line-height: 1.85;
}

/* ============================================
   ABOUT
   ============================================ */
.about {
  background: var(--bg);
}

.about__grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: clamp(40px, 5vw, 70px);
  align-items: center;
}

.about__text p {
  font-size: clamp(1rem, 1.15vw, 1.1rem);
  line-height: 1.9;
  color: var(--text-soft);
  margin-bottom: 20px;
}

.about__text p strong {
  color: var(--navy-800);
  font-weight: 700;
}

.about__text p em {
  color: var(--orange-500);
  font-style: normal;
  font-weight: 600;
}

.about__points {
  margin-top: 30px;
  display: grid;
  gap: 14px;
}

.about__points li {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 1rem;
  font-weight: 600;
  color: var(--navy-800);
  transition: transform 0.3s var(--ease);
}

.about__points li:hover {
  transform: translateX(-6px);
}

.about__icon {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  background: var(--orange-100);
  color: var(--orange-600);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s var(--ease);
}

.about__points li:hover .about__icon {
  background: var(--orange-500);
  color: #fff;
  transform: rotate(360deg);
}

.about__icon svg {
  width: 16px;
  height: 16px;
}

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

.about__card {
  position: relative;
  padding: 30px 24px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  transition: all 0.4s var(--ease);
  overflow: hidden;
}

.about__card::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--orange-500), var(--orange-300));
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.4s var(--ease);
}

.about__card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
  border-color: transparent;
}

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

.about__card-icon {
  width: 56px;
  height: 56px;
  background: linear-gradient(135deg, var(--navy-800), var(--navy-600));
  color: var(--orange-400);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  transition: transform 0.4s var(--ease-bounce), background 0.3s var(--ease), color 0.3s var(--ease);
}

.about__card:hover .about__card-icon {
  transform: scale(1.08) rotate(-8deg);
  background: linear-gradient(135deg, var(--orange-500), var(--orange-600));
  color: #fff;
}

.about__card-icon svg {
  width: 28px;
  height: 28px;
}

.about__card-num {
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--navy-800);
  margin-bottom: 6px;
}

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

/* ============================================
   PILLARS (Vision/Mission/Goals)
   ============================================ */
.pillars {
  background: var(--bg-alt);
  position: relative;
  overflow: hidden;
}

.pillars::before {
  content: '';
  position: absolute;
  top: 0;
  right: -200px;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(255, 107, 26, 0.08), transparent 70%);
  border-radius: 50%;
  animation: bg-drift 20s var(--ease) infinite;
}

.pillars::after {
  content: '';
  position: absolute;
  bottom: -200px;
  left: -200px;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(36, 74, 117, 0.08), transparent 70%);
  border-radius: 50%;
  animation: bg-drift 25s var(--ease) infinite reverse;
}

@keyframes bg-drift {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(50px, -50px); }
}

.pillars__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  position: relative;
  z-index: 1;
}

.pillar {
  position: relative;
  padding: 50px 36px 40px;
  background: var(--bg);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  transition: all 0.5s var(--ease);
  border: 1px solid transparent;
  overflow: hidden;
  will-change: transform;
}

.pillar::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(255, 107, 26, 0.08), transparent 50%);
  opacity: 0;
  transition: opacity 0.4s var(--ease);
}

.pillar:hover {
  transform: translateY(-12px);
  box-shadow: var(--shadow-xl);
  border-color: rgba(255, 107, 26, 0.2);
}

.pillar:hover::before {
  opacity: 1;
}

.pillar--accent {
  background: linear-gradient(160deg, var(--navy-800), var(--navy-700));
  color: #fff;
  border-color: transparent;
}

.pillar--accent::before {
  background: radial-gradient(circle, rgba(255, 107, 26, 0.15), transparent 50%);
}

.pillar__num {
  position: absolute;
  top: 20px;
  left: 30px;
  font-size: 5rem;
  font-weight: 900;
  line-height: 1;
  color: var(--navy-100);
  font-family: 'Cairo', sans-serif;
  letter-spacing: -0.05em;
  transition: color 0.3s var(--ease), transform 0.4s var(--ease);
}

.pillar--accent .pillar__num {
  color: rgba(255, 255, 255, 0.06);
}

.pillar:hover .pillar__num {
  color: var(--orange-200);
  transform: scale(1.1) rotate(-5deg);
}

.pillar__icon {
  position: relative;
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--orange-500), var(--orange-600));
  color: #fff;
  border-radius: 16px;
  margin-bottom: 24px;
  box-shadow: 0 10px 30px rgba(255, 107, 26, 0.3);
  transition: transform 0.4s var(--ease-bounce);
}

.pillar:hover .pillar__icon {
  transform: rotate(-15deg) scale(1.1);
}

.pillar__icon svg {
  width: 28px;
  height: 28px;
}

.pillar__title {
  position: relative;
  font-size: clamp(1.4rem, 1.8vw, 1.6rem);
  font-weight: 800;
  color: var(--navy-800);
  margin-bottom: 16px;
  letter-spacing: -0.01em;
}

.pillar--accent .pillar__title {
  color: #fff;
}

.pillar__text {
  position: relative;
  font-size: 1rem;
  line-height: 1.85;
  color: var(--text-soft);
}

.pillar--accent .pillar__text {
  color: rgba(255, 255, 255, 0.85);
}

.pillar__text strong {
  color: var(--orange-500);
  font-weight: 700;
}

.pillar--accent .pillar__text strong {
  color: var(--orange-300);
}

/* ============================================
   VALUES
   ============================================ */
.values {
  background: var(--bg);
}

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

.value {
  position: relative;
  padding: 40px 28px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  text-align: center;
  transition: all 0.4s var(--ease);
  overflow: hidden;
}

.value::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(160deg, var(--navy-800), var(--navy-700));
  opacity: 0;
  transition: opacity 0.4s var(--ease);
  z-index: 0;
}

.value::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  background: radial-gradient(circle, rgba(255, 107, 26, 0.3), transparent 70%);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: width 0.6s var(--ease), height 0.6s var(--ease);
  z-index: 0;
}

.value:hover::after {
  width: 400px;
  height: 400px;
}

.value > * {
  position: relative;
  z-index: 1;
}

.value:hover {
  transform: translateY(-10px);
  border-color: transparent;
  box-shadow: var(--shadow-xl);
}

.value:hover::before {
  opacity: 1;
}

.value__icon {
  width: 70px;
  height: 70px;
  margin: 0 auto 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--orange-100);
  color: var(--orange-600);
  border-radius: 20px;
  transition: all 0.4s var(--ease-bounce);
}

.value:hover .value__icon {
  background: var(--orange-500);
  color: #fff;
  transform: scale(1.1) rotate(-8deg);
}

.value__icon svg {
  width: 32px;
  height: 32px;
}

.value__title {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--navy-800);
  margin-bottom: 12px;
  transition: color 0.3s var(--ease);
}

.value:hover .value__title {
  color: #fff;
}

.value__text {
  font-size: 0.95rem;
  line-height: 1.75;
  color: var(--text-soft);
  transition: color 0.3s var(--ease);
}

.value:hover .value__text {
  color: rgba(255, 255, 255, 0.85);
}

/* ============================================
   SERVICES
   ============================================ */
.services {
  background: var(--bg-alt);
}

.services__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.service {
  position: relative;
  padding: 36px 28px;
  background: var(--bg);
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  transition: all 0.4s var(--ease);
  overflow: hidden;
}

.service::after {
  content: '';
  position: absolute;
  bottom: 0;
  right: 0;
  width: 0;
  height: 3px;
  background: var(--orange-500);
  transition: width 0.4s var(--ease);
}

.service:hover {
  transform: translateY(-8px);
  border-color: transparent;
  box-shadow: var(--shadow-md);
}

.service:hover::after {
  width: 100%;
}

.service__num {
  font-size: 2.5rem;
  font-weight: 900;
  color: var(--orange-100);
  font-family: 'Cairo', sans-serif;
  margin-bottom: 8px;
  line-height: 1;
  transition: color 0.3s var(--ease), transform 0.4s var(--ease-bounce);
}

.service:hover .service__num {
  color: var(--orange-200);
  transform: scale(1.1);
}

.service__title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--navy-800);
  margin-bottom: 10px;
  line-height: 1.5;
}

.service__text {
  font-size: 0.92rem;
  color: var(--text-soft);
  line-height: 1.7;
}

/* ============================================
   FIELDS (dark section)
   ============================================ */
.fields {
  background: var(--navy-800);
  color: #fff;
  position: relative;
  overflow: hidden;
}

.fields::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 50%;
  height: 100%;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 200'%3E%3Cdefs%3E%3Cpattern id='hex2' x='0' y='0' width='100' height='88' patternUnits='userSpaceOnUse'%3E%3Cpath d='M50 0 L100 28 L100 86 L50 114 L0 86 L0 28 Z' fill='none' stroke='%23ffffff' stroke-width='0.8' opacity='0.04'/%3E%3C/pattern%3E%3C/defs%3E%3Crect width='200' height='200' fill='url(%23hex2)'/%3E%3C/svg%3E");
  background-size: 280px 246px;
  opacity: 0.7;
}

.fields__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  position: relative;
  z-index: 1;
}

.field {
  position: relative;
  padding: 40px 30px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-lg);
  transition: all 0.4s var(--ease);
  backdrop-filter: blur(10px);
  overflow: hidden;
}

.field::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 4px;
  height: 0;
  background: var(--orange-500);
  transition: height 0.4s var(--ease);
}

.field:hover {
  background: rgba(255, 107, 26, 0.08);
  border-color: rgba(255, 107, 26, 0.3);
  transform: translateY(-8px);
}

.field:hover::before {
  height: 100%;
}

.field--wide {
  grid-column: span 3;
}

.field__icon {
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--orange-500), var(--orange-600));
  color: #fff;
  border-radius: 14px;
  margin-bottom: 22px;
  box-shadow: 0 8px 24px rgba(255, 107, 26, 0.3);
  transition: transform 0.4s var(--ease-bounce);
}

.field:hover .field__icon {
  transform: scale(1.1) rotate(-10deg);
}

.field__icon svg {
  width: 28px;
  height: 28px;
}

.field__title {
  font-size: 1.35rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: 12px;
}

.field__text {
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.75);
  line-height: 1.8;
}

.field__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.field__tags span {
  padding: 6px 14px;
  background: rgba(255, 107, 26, 0.15);
  color: var(--orange-300);
  border-radius: 100px;
  font-size: 0.85rem;
  font-weight: 600;
  border: 1px solid rgba(255, 107, 26, 0.25);
  transition: all 0.3s var(--ease);
}

.field__tags span:hover {
  background: var(--orange-500);
  color: #fff;
  transform: translateY(-2px);
}

/* ============================================
   PROJECT MANAGEMENT
   ============================================ */
.pm {
  background: var(--bg);
}

.pm__grid {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 60px;
  align-items: center;
}

.pm__heading {
  font-size: clamp(1.5rem, 2.2vw, 1.8rem);
  font-weight: 800;
  color: var(--navy-800);
  margin-bottom: 18px;
  line-height: 1.3;
}

.pm__intro p {
  font-size: 1.05rem;
  line-height: 1.9;
  color: var(--text-soft);
}

.pm__list {
  display: grid;
  gap: 20px;
}

.pm__item {
  display: flex;
  gap: 20px;
  padding: 26px;
  background: var(--bg-alt);
  border-radius: var(--radius-md);
  border-right: 4px solid var(--orange-500);
  transition: all 0.4s var(--ease);
}

.pm__item:hover {
  background: #fff;
  box-shadow: var(--shadow-md);
  transform: translateX(-8px);
  border-right-width: 6px;
}

.pm__item-icon {
  flex-shrink: 0;
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--orange-100);
  color: var(--orange-600);
  border-radius: 12px;
  transition: all 0.3s var(--ease-bounce);
}

.pm__item:hover .pm__item-icon {
  background: var(--orange-500);
  color: #fff;
  transform: rotate(-10deg) scale(1.05);
}

.pm__item-icon svg {
  width: 24px;
  height: 24px;
}

.pm__item h4 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--navy-800);
  margin-bottom: 6px;
}

.pm__item p {
  font-size: 0.95rem;
  color: var(--text-soft);
  line-height: 1.7;
}

/* ============================================
   SOLUTIONS
   ============================================ */
.solutions {
  background: var(--bg-alt);
}

.solutions__wrap {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 60px;
  align-items: center;
}

.solutions__visual {
  display: flex;
  align-items: center;
  justify-content: center;
}

.solutions__visual-card {
  width: 100%;
  max-width: 360px;
  aspect-ratio: 1;
  background: linear-gradient(160deg, var(--navy-800), var(--navy-600));
  border-radius: var(--radius-xl);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-xl);
  position: relative;
  overflow: hidden;
  transition: transform 0.5s var(--ease);
}

.solutions__visual-card:hover {
  transform: scale(1.03) rotate(-2deg);
}

.solutions__visual-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at top right, rgba(255, 107, 26, 0.3), transparent 50%),
    radial-gradient(circle at bottom left, rgba(36, 74, 117, 0.5), transparent 50%);
}

.solutions__visual-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent 30%, rgba(255, 255, 255, 0.1) 50%, transparent 70%);
  transform: translateX(-100%);
  transition: transform 0.8s var(--ease);
}

.solutions__visual-card:hover::after {
  transform: translateX(100%);
}

.solutions__visual-card svg {
  position: relative;
  width: 65%;
  height: 65%;
  z-index: 2;
  filter: drop-shadow(0 10px 30px rgba(255, 107, 26, 0.5));
  animation: pulse-logo 3s var(--ease) infinite;
}

@keyframes pulse-logo {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.05); }
}

.solutions__content p {
  font-size: 1.05rem;
  line-height: 1.9;
  color: var(--text-soft);
  margin-bottom: 16px;
}

.solutions__lead {
  font-size: 1.15rem !important;
  color: var(--navy-800) !important;
  font-weight: 500;
}

.solutions__lead strong {
  color: var(--orange-600);
  font-weight: 700;
}

.solutions__features {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  margin-top: 30px;
}

.solutions__feature {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--navy-800);
  transition: transform 0.3s var(--ease);
}

.solutions__feature:hover {
  transform: translateX(-4px);
}

.solutions__check {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  background: var(--orange-500);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s var(--ease-bounce);
}

.solutions__feature:hover .solutions__check {
  transform: rotate(360deg) scale(1.1);
}

.solutions__check svg {
  width: 14px;
  height: 14px;
}

/* ============================================
   CTA
   ============================================ */
.cta {
  padding: clamp(60px, 8vw, 100px) 0;
  background: var(--navy-900);
  position: relative;
  overflow: hidden;
}

.cta::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 80% at center, rgba(255, 107, 26, 0.2), transparent 60%),
    radial-gradient(ellipse 40% 50% at 20% 50%, rgba(36, 74, 117, 0.4), transparent 60%);
  z-index: 0;
}

.cta__inner {
  position: relative;
  text-align: center;
  color: #fff;
  z-index: 1;
}

.cta__bg {
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 200'%3E%3Cdefs%3E%3Cpattern id='hex3' x='0' y='0' width='80' height='70' patternUnits='userSpaceOnUse'%3E%3Cpath d='M40 0 L80 23 L80 70 L40 93 L0 70 L0 23 Z' fill='none' stroke='%23ffffff' stroke-width='0.8' opacity='0.04'/%3E%3C/pattern%3E%3C/defs%3E%3Crect width='200' height='200' fill='url(%23hex3)'/%3E%3C/svg%3E");
  background-size: 200px 175px;
  opacity: 0.5;
  z-index: -1;
}

.cta__title {
  font-size: clamp(1.8rem, 4vw, 3rem);
  font-weight: 900;
  color: #fff;
  margin-bottom: 16px;
  letter-spacing: -0.02em;
}

.cta__text {
  font-size: clamp(1rem, 1.3vw, 1.15rem);
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 36px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

/* ============================================
   CONTACT
   ============================================ */
.contact {
  background: var(--bg);
}

.contact__grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 60px;
}

.contact__heading {
  font-size: clamp(1.4rem, 2vw, 1.8rem);
  font-weight: 800;
  color: var(--navy-800);
  margin-bottom: 14px;
}

.contact__lead {
  font-size: 1rem;
  color: var(--text-soft);
  line-height: 1.8;
  margin-bottom: 32px;
}

.contact__list {
  display: grid;
  gap: 18px;
  margin-bottom: 36px;
}

.contact__list li {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: 18px 20px;
  background: var(--bg-alt);
  border-radius: var(--radius-md);
  transition: all 0.3s var(--ease);
}

.contact__list li:hover {
  background: var(--orange-100);
  transform: translateX(-6px);
}

.contact__icon {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--orange-500), var(--orange-600));
  color: #fff;
  border-radius: 12px;
  box-shadow: 0 6px 18px rgba(255, 107, 26, 0.25);
  transition: transform 0.3s var(--ease-bounce);
}

.contact__list li:hover .contact__icon {
  transform: rotate(-10deg) scale(1.05);
}

.contact__icon svg {
  width: 22px;
  height: 22px;
}

.contact__list strong {
  display: block;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--navy-800);
  margin-bottom: 4px;
}

.contact__list span,
.contact__list a {
  display: block;
  font-size: 0.95rem;
  color: var(--text-soft);
  line-height: 1.6;
  transition: color 0.25s var(--ease);
}

/* .contact__icon is itself a <span>, so the generic rule above (which is
   more specific: .contact__list + span beats a lone .contact__icon class)
   was overriding the intended white icon color with the muted text color.
   This re-establishes white for the icon specifically. */
.contact__list .contact__icon {
  color: #fff;
}

.contact__list a:hover {
  color: var(--orange-600);
}

.contact__social h4 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--navy-800);
  margin-bottom: 16px;
}

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

.social {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--orange-500);
  color: #fff;
  border-radius: 12px;
  transition: all 0.4s var(--ease-bounce);
  position: relative;
  overflow: hidden;
}

.social::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--navy-800);
  transform: scale(0);
  transition: transform 0.3s var(--ease);
  border-radius: 12px;
  z-index: 0;
}

.social:hover::before {
  transform: scale(1);
}

.social svg {
  width: 20px;
  height: 20px;
  position: relative;
  z-index: 1;
}

.social:hover {
  transform: translateY(-4px) rotate(-8deg);
  box-shadow: 0 12px 28px rgba(255, 107, 26, 0.5);
}

/* Social media icons — each platform uses its natural brand color */
.social--wa {
  background: #25D366;          /* WhatsApp green */
  color: #fff;
}

.social--ig {
  background: linear-gradient(
    45deg,
    #f09433 0%,
    #e6683c 25%,
    #dc2743 50%,
    #cc2366 75%,
    #bc1888 100%
  );                            /* Instagram gradient */
  color: #fff;
}

.social--x {
  background: #000000;          /* X (Twitter) black */
  color: #fff;
}

.social--sc {
  background: #FFFC00;          /* Snapchat yellow */
  color: #000;                  /* black ghost on yellow */
}

.social--tt {
  background: #000000;          /* TikTok black */
  color: #fff;
}

.social--yt {
  background: #FF0000;           /* YouTube red */
  color: #fff;
}

/* Hover: keep platform color, just lift + glow */
.social--wa:hover { box-shadow: 0 12px 28px rgba(37, 211, 102, 0.5); }
.social--ig:hover { box-shadow: 0 12px 28px rgba(225, 48, 108, 0.5); }
.social--x:hover  { box-shadow: 0 12px 28px rgba(0, 0, 0, 0.5); }
.social--sc:hover { box-shadow: 0 12px 28px rgba(255, 252, 0, 0.5); }
.social--tt:hover { box-shadow: 0 12px 28px rgba(0, 0, 0, 0.5); }
.social--yt:hover { box-shadow: 0 12px 28px rgba(255, 0, 0, 0.5); }

/* ============================================
   FORM
   ============================================ */
.contact__form {
  padding: 40px;
  background: var(--bg-alt);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  transition: box-shadow 0.3s var(--ease);
}

.contact__form:focus-within {
  box-shadow: var(--shadow-md);
}

.form__group {
  margin-bottom: 20px;
  position: relative;
}

.form__group label {
  display: block;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--navy-800);
  margin-bottom: 8px;
}

.form__group input,
.form__group select,
.form__group textarea {
  width: 100%;
  padding: 14px 18px;
  background: #fff;
  border: 1.5px solid var(--border);
  border-radius: 12px;
  color: var(--text);
  font-size: 1rem;
  transition: all 0.25s var(--ease);
}

.form__group input:focus,
.form__group select:focus,
.form__group textarea:focus {
  outline: none;
  border-color: var(--orange-500);
  box-shadow: 0 0 0 4px rgba(255, 107, 26, 0.12);
  transform: translateY(-2px);
}

.form__group textarea {
  resize: vertical;
  min-height: 120px;
}

.form__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
  background: var(--navy-900);
  color: rgba(255, 255, 255, 0.7);
  padding: 80px 0 0;
  position: relative;
  overflow: hidden;
}

.footer::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--orange-500), transparent);
}

.footer__grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.3fr;
  gap: 50px;
  padding-bottom: 50px;
}

.brand--footer {
  margin-bottom: 20px;
}

.brand--footer .brand__mark {
  background: rgba(255, 255, 255, 0.05);
  box-shadow: none;
}

.footer__about {
  font-size: 0.95rem;
  line-height: 1.85;
  color: rgba(255, 255, 255, 0.65);
}

.footer__title {
  font-size: 1.1rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: 22px;
  position: relative;
  padding-bottom: 12px;
}

.footer__title::after {
  content: '';
  position: absolute;
  bottom: 0;
  right: 0;
  width: 30px;
  height: 2px;
  background: var(--orange-500);
}

.footer__links li,
.footer__contact li {
  margin-bottom: 12px;
}

.footer__links a {
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.65);
  transition: all 0.25s var(--ease);
  display: inline-block;
}

.footer__links a:hover {
  color: var(--orange-400);
  transform: translateX(-4px);
}

.footer__contact li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.92rem;
  color: rgba(255, 255, 255, 0.65);
}

.footer__contact svg {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  color: var(--orange-400);
  margin-top: 3px;
}

.footer__contact a {
  color: rgba(255, 255, 255, 0.65);
  transition: color 0.25s var(--ease);
}

.footer__contact a:hover {
  color: var(--orange-400);
}

.socials--footer {
  margin-top: 20px;
}

.socials--footer .social {
  width: 38px;
  height: 38px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 10px;
}

.socials--footer .social:hover {
  background: var(--orange-500);
}

.socials--footer .social svg {
  width: 18px;
  height: 18px;
}

.footer__bottom {
  padding: 24px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.5);
  flex-wrap: wrap;
  gap: 16px;
}

/* Developer credit */
.footer__credit {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
  text-align: right;
}

.footer__credit-label {
  display: block;
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.45);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.footer__credit-name {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.95rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: 0.01em;
  transition: color 0.25s var(--ease);
  position: relative;
}

.footer__credit-name::after {
  content: '';
  position: absolute;
  bottom: -3px;
  right: 0;
  left: 0;
  height: 1px;
  background: linear-gradient(90deg, var(--orange-500), transparent);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.3s var(--ease);
}

.footer__credit-name:hover {
  color: var(--orange-400);
}

.footer__credit-name:hover::after {
  transform: scaleX(1);
}

.footer__credit-name svg {
  width: 16px;
  height: 16px;
  color: var(--orange-500);
}

.footer__credit-socials {
  display: flex;
  gap: 8px;
  margin-top: 4px;
}

.footer__credit-socials a {
  width: 30px;
  height: 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.7);
  border-radius: 8px;
  transition: all 0.25s var(--ease);
}

.footer__credit-socials a:hover {
  background: var(--orange-500);
  color: #fff;
  transform: translateY(-2px);
}

/* Developer credit socials — natural brand colors (higher specificity to override above) */
.footer__credit-socials a.credit-social--wa { color: #25D366; }     /* WhatsApp */
.footer__credit-socials a.credit-social--fb { color: #1877F2; }     /* Facebook */
.footer__credit-socials a.credit-social--ig {
  color: #E1306C;                          /* Instagram */
  background: rgba(225, 48, 108, 0.1);
}
.footer__credit-socials a.credit-social--li { color: #0A66C2; }     /* LinkedIn */

.footer__credit-socials a.credit-social--wa:hover { background: #25D366; color: #fff; }
.footer__credit-socials a.credit-social--fb:hover { background: #1877F2; color: #fff; }
.footer__credit-socials a.credit-social--ig:hover { background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%); color: #fff; }
.footer__credit-socials a.credit-social--li:hover { background: #0A66C2; color: #fff; }

.footer__credit-socials svg {
  width: 14px;
  height: 14px;
}

/* ============================================
   FLOATING BUTTONS
   ============================================ */
.float-wa {
  position: fixed;
  bottom: 24px;
  left: 24px;
  width: 60px;
  height: 60px;
  background: #25D366;
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 30px rgba(37, 211, 102, 0.4);
  z-index: 999;
  transition: all 0.3s var(--ease-bounce);
  animation: float-pulse 2s var(--ease) infinite;
}

.float-wa:hover {
  transform: scale(1.15) rotate(-8deg);
  box-shadow: 0 16px 40px rgba(37, 211, 102, 0.6);
  animation: none;
}

.float-wa svg {
  width: 32px;
  height: 32px;
}

@keyframes float-pulse {
  0%, 100% { box-shadow: 0 10px 30px rgba(37, 211, 102, 0.4), 0 0 0 0 rgba(37, 211, 102, 0.4); }
  50% { box-shadow: 0 10px 30px rgba(37, 211, 102, 0.4), 0 0 0 14px rgba(37, 211, 102, 0); }
}

.scroll-top {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 56px;
  height: 56px;
  background: var(--navy-800);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 999;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px) scale(0.8);
  transition: all 0.4s var(--ease);
  box-shadow: 0 6px 20px rgba(10, 31, 51, 0.3);
  overflow: hidden;
}

.scroll-top.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
}

.scroll-top:hover {
  background: var(--orange-500);
  transform: translateY(-4px) scale(1.05);
}

.scroll-top__progress {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
}

.scroll-top__track {
  fill: none;
  stroke: rgba(255, 255, 255, 0.1);
  stroke-width: 3;
}

.scroll-top__indicator {
  fill: none;
  stroke: var(--orange-500);
  stroke-width: 3;
  stroke-linecap: round;
  stroke-dasharray: 125.66;
  stroke-dashoffset: 125.66;
  transition: stroke-dashoffset 0.05s linear;
}

.scroll-top:hover .scroll-top__indicator {
  stroke: #fff;
}

.scroll-top__arrow {
  width: 22px;
  height: 22px;
  position: relative;
  z-index: 1;
}

/* ============================================
   ANIMATIONS ON SCROLL
   ============================================ */
[data-animate] {
  transition: opacity 0.9s var(--ease-out), transform 0.9s var(--ease-out);
}

[data-animate].js-animate {
  opacity: 0;
}

[data-animate="fade-up"].js-animate {
  transform: translateY(50px);
}

[data-animate="fade-right"].js-animate {
  transform: translateX(50px);
}

[data-animate="fade-left"].js-animate {
  transform: translateX(-50px);
}

[data-animate="zoom-in"].js-animate {
  transform: scale(0.85);
}

[data-animate="rotate-in"].js-animate {
  transform: rotate(-8deg) scale(0.9);
  opacity: 0;
}

[data-animate].visible {
  opacity: 1;
  transform: translate(0, 0) scale(1) rotate(0);
}

/* ============================================
   RESPONSIVE — Comprehensive breakpoints
   ============================================ */

/* ---- Large desktops (1600px+) ---- */
@media (min-width: 1600px) {
  :root { --container-w: 1400px; }
  .hero__title { font-size: 5.5rem; }
}

/* ---- Standard desktops (1280-1599) ---- */
@media (min-width: 1280px) and (max-width: 1599px) {
  .hero__title { font-size: 4.5rem; }
}

/* ---- Laptops (1024-1279) ---- */
@media (max-width: 1279px) {
  .hero__title { font-size: 4rem; }
  .pillars__grid { grid-template-columns: repeat(3, 1fr); gap: 24px; }
  .values__grid { grid-template-columns: repeat(2, 1fr); }
  .services__grid { grid-template-columns: repeat(2, 1fr); }
}

/* ---- Tablets landscape & small laptops (1024px) ---- */
@media (max-width: 1024px) {
  :root { --header-h: 72px; }
  .hero__inner {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 40px;
  }
  .hero__content { max-width: 100%; margin: 0 auto; }
  .hero__subtitle { margin-left: auto; margin-right: auto; }
  .hero__actions { justify-content: center; }
  .hero__stat { text-align: center; }
  .hero__logo { max-width: 360px; margin: 0 auto; }
  .hero__chip { margin-left: auto; margin-right: auto; }
  .hero__title { font-size: 3.5rem; }
  .hero__stats { grid-template-columns: repeat(4, 1fr); }

  .about__grid { grid-template-columns: 1fr; gap: 50px; }
  .pillars__grid { grid-template-columns: 1fr; }
  .values__grid { grid-template-columns: repeat(2, 1fr); }
  .services__grid { grid-template-columns: repeat(2, 1fr); }
  .fields__grid { grid-template-columns: repeat(2, 1fr); }
  .field--wide { grid-column: span 2; }
  .pm__grid { grid-template-columns: 1fr; }
  .solutions__wrap { grid-template-columns: 1fr; }
  .solutions__visual { order: -1; }
  .contact__grid { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .pm__item:hover { transform: translateY(-4px); }
}

/* ---- Tablets portrait (768-1023) ---- */
@media (max-width: 900px) {
  .nav__link { padding: 10px 10px; font-size: 0.9rem; }
  .nav__link--cta { padding: 10px 16px; }
}

/* ---- Mobile landscape & small tablets (768px) ---- */
@media (max-width: 768px) {
  :root { --header-h: 68px; }
  .section { padding: clamp(50px, 8vw, 70px) 0; }
  .container { padding: 0 20px; }

  /* Mobile menu */
  .burger { display: flex; }

  .nav {
    position: fixed;
    top: var(--header-h);
    right: 0;
    left: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: rgba(10, 31, 51, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 0 20px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s var(--ease), padding 0.5s var(--ease);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    z-index: 1001;
  }
  .nav.open {
    max-height: calc(100vh - var(--header-h));
    padding: 20px;
    overflow-y: auto;
  }
  .nav__link {
    padding: 16px;
    border-radius: 10px;
    text-align: right;
    font-size: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    transform: translateX(20px);
    opacity: 0;
    transition: all 0.3s var(--ease);
  }
  .nav.open .nav__link {
    transform: translateX(0);
    opacity: 1;
  }
  .nav.open .nav__link:nth-child(1) { transition-delay: 0.05s; }
  .nav.open .nav__link:nth-child(2) { transition-delay: 0.1s; }
  .nav.open .nav__link:nth-child(3) { transition-delay: 0.15s; }
  .nav.open .nav__link:nth-child(4) { transition-delay: 0.2s; }
  .nav.open .nav__link:nth-child(5) { transition-delay: 0.25s; }
  .nav.open .nav__link:nth-child(6) { transition-delay: 0.3s; }
  .nav.open .nav__link:nth-child(7) { transition-delay: 0.35s; }
  .nav.open .nav__link:nth-child(8) { transition-delay: 0.4s; }
  .nav.open .nav__link:nth-child(9) { transition-delay: 0.45s; }

  .nav__link:hover {
    background: rgba(255, 255, 255, 0.06);
  }
  .nav__link::after { display: none; }
  .nav__link--cta {
    text-align: center;
    margin-top: 8px;
    border-bottom: none;
  }

  .hero { padding-top: calc(var(--header-h) + 30px); padding-bottom: 60px; min-height: 100svh; }
  .hero__title { font-size: clamp(2.2rem, 9vw, 3.2rem); }
  .hero__stats { grid-template-columns: repeat(2, 1fr); gap: 16px; text-align: center; }
  .hero__stat { text-align: center; }
  .hero__logo { max-width: 280px; }
  .hero__logo-text { font-size: 2.2rem; }
  .hero__actions { flex-direction: column; align-items: stretch; }
  .btn { justify-content: center; }
  .hero__scroll { display: none; }

  .pillar { padding: 40px 28px 32px; }
  .pillar__num { font-size: 3.5rem; }
  .values__grid { grid-template-columns: 1fr; }
  .services__grid { grid-template-columns: 1fr; }
  .fields__grid { grid-template-columns: 1fr; }
  .field--wide { grid-column: span 1; }
  .form__row { grid-template-columns: 1fr; }
  .contact__form { padding: 28px 22px; }
  .footer__grid { grid-template-columns: 1fr; gap: 36px; }
  .footer__bottom { flex-direction: column; text-align: center; gap: 20px; }
  .footer__credit { align-items: center; text-align: center; width: 100%; }
  .solutions__features { grid-template-columns: 1fr; }
  .section__head { margin-bottom: 50px; }
  .marquee__item { font-size: 1rem; }
  .float-wa { width: 52px; height: 52px; bottom: 16px; left: 16px; }
  .float-wa svg { width: 28px; height: 28px; }
  .scroll-top { width: 46px; height: 46px; bottom: 16px; right: 16px; }
  .scroll-top__arrow { width: 18px; height: 18px; }
  .about__visual { grid-template-columns: 1fr 1fr; }
}

/* ---- Large phones (600-767) ---- */
@media (max-width: 600px) {
  .hero__title { font-size: 2.4rem; }
  .hero__stats { grid-template-columns: repeat(2, 1fr); }
  .hero__logo { max-width: 240px; }
  .hero__logo-text { font-size: 1.8rem; }
  .hero__logo-sub { font-size: 0.7rem; }
  .hero__chip { font-size: 0.75rem; padding: 6px 14px; }
  .brand__name { font-size: 1.1rem; }
  .brand__sub { font-size: 0.65rem; }
  .brand__mark { width: 40px; height: 40px; }
  .brand__mark svg { width: 24px; height: 24px; }
  .pillar { padding: 36px 24px 28px; }
  .pillar__num { font-size: 3rem; top: 12px; left: 20px; }
  .field { padding: 30px 24px; }
  .solutions__visual-card { max-width: 280px; }
  .pm__item { flex-direction: column; gap: 14px; padding: 22px 18px; }
  .contact__form { padding: 24px 18px; }
  .section__eyebrow { font-size: 0.8rem; }
  .nav__link { padding: 14px 0; }
  .float-wa { width: 48px; height: 48px; bottom: 14px; left: 14px; }
  .float-wa svg { width: 26px; height: 26px; }
  .scroll-top { width: 42px; height: 42px; bottom: 14px; right: 14px; }
}

/* ---- Standard phones (480-599) ---- */
@media (max-width: 480px) {
  :root { --container-pad: 14px; }
  .hero__title { font-size: 2rem; }
  .hero__title-line { letter-spacing: -0.02em; }
  .hero__chip { font-size: 0.7rem; }
  .hero__logo { max-width: 220px; }
  .hero__logo-text { font-size: 1.6rem; margin-top: -2rem; }
  .about__visual { grid-template-columns: 1fr; }
  .pillar__title { font-size: 1.3rem; }
  .pillar__num { font-size: 2.5rem; }
  .field__title { font-size: 1.2rem; }
  .service { padding: 28px 22px; }
  .service__num { font-size: 2rem; }
  .service__title { font-size: 1rem; }
  .contact__list li { padding: 14px 16px; gap: 12px; }
  .contact__icon { width: 38px; height: 38px; }
  .contact__icon svg { width: 18px; height: 18px; }
  .social { width: 40px; height: 40px; }
  .social svg { width: 18px; height: 18px; }
  .form__group input,
  .form__group select,
  .form__group textarea { padding: 12px 14px; font-size: 0.95rem; }
  .footer__credit-name { font-size: 0.85rem; }
  .footer__credit-label { font-size: 0.7rem; }
  .section__title { letter-spacing: -0.01em; }
  .hero__stats { grid-template-columns: repeat(2, 1fr); gap: 14px; }
}

/* ---- Small phones (iPhone SE, 375px) ---- */
@media (max-width: 380px) {
  .hero__title { font-size: 1.85rem; }
  .hero__stats { grid-template-columns: repeat(2, 1fr); gap: 10px; padding-top: 30px; }
  .hero__stat-num { font-size: 1.4rem; }
  .hero__stat-label { font-size: 0.7rem; }
  .hero__logo { max-width: 200px; }
  .hero__logo-text { font-size: 1.4rem; }
  .hero__chip { font-size: 0.65rem; padding: 5px 12px; }
  .brand__text { display: none; }
  .brand__mark { width: 44px; height: 44px; }
  .btn { padding: 12px 22px; font-size: 0.95rem; }
  .pillar { padding: 30px 20px 26px; }
  .pillar__title { font-size: 1.2rem; }
  .pillar__text { font-size: 0.95rem; }
  .pillar__num { font-size: 2.2rem; top: 10px; left: 16px; }
  .field { padding: 26px 20px; }
  .field__title { font-size: 1.1rem; }
  .pm__item { padding: 20px 16px; }
  .pm__item h4 { font-size: 1rem; }
  .solutions__visual-card { max-width: 240px; }
  .marquee__item { font-size: 0.9rem; }
  .marquee__group { gap: 12px; padding-inline-end: 12px; }
  .marquee__track { gap: 0; }
}

/* ---- Very small phones (320px - iPhone 5) ---- */
@media (max-width: 340px) {
  :root { --container-pad: 10px; }
  .hero__title { font-size: 1.55rem; }
  .hero__chip { font-size: 0.6rem; padding: 4px 10px; }
  .hero__actions { gap: 10px; }
  .btn { padding: 11px 18px; font-size: 0.9rem; }
  .btn svg { width: 16px; height: 16px; }
  .nav__link { font-size: 0.9rem; padding: 12px 0; }
  .field__tags { gap: 6px; }
  .field__tags span { font-size: 0.75rem; padding: 4px 10px; }
  .footer__credit-socials a { width: 26px; height: 26px; }
  .footer__credit-socials svg { width: 12px; height: 12px; }
  .hero__subtitle { font-size: 0.85rem; line-height: 1.7; }
  .hero__stat-num { font-size: 1.25rem; }
  .hero__stat-label { font-size: 0.65rem; }
  .pillar__title { font-size: 1.1rem; }
  .section__title { font-size: 1.5rem; }
}

/* ============================================
   TOUCH DEVICE OPTIMIZATIONS
   ============================================ */
@media (hover: none) {
  /* Disable hover transforms on touch */
  .value:hover::after,
  .pillar:hover,
  .field:hover,
  .service:hover,
  .pm__item:hover,
  .contact__list li:hover,
  .social:hover,
  .btn--primary:hover,
  .btn--ghost:hover {
    transform: none;
  }
  .btn--primary:hover::after,
  .btn--primary:hover::before {
    opacity: 0;
    transform: none;
  }
  /* Hide custom cursor on touch */
  .cursor { display: none !important; }
}

/* ============================================
   ACCESSIBILITY
   ============================================ */

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  [data-animate] { opacity: 1; transform: none; }
  .hero__title-line > span { opacity: 1; transform: none; }
  .hero__logo-card { animation: none; }
  .hero__chip-dot { animation: none; }
  .float-wa { animation: none; }
  .cursor { display: none !important; }
  .progress-bar { display: none; }
  /* Keep the brand marquee moving even with reduced-motion enabled */
  .marquee__track {
    animation-duration: 20s !important;
    animation-iteration-count: infinite !important;
  }
}

/* Focus visible */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--orange-500);
  outline-offset: 3px;
  border-radius: 4px;
}

/* High contrast support */
@media (prefers-contrast: more) {
  .nav__link { color: #fff; }
  .hero__subtitle { color: rgba(255, 255, 255, 0.95); }
  .pillar__text { color: var(--text); }
}

/* ============================================
   SOLUTIONS VISUAL — photo variant
   ============================================ */
.solutions__visual-card--photo {
  background: var(--navy-800);
}

.solutions__visual-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
}

.solutions__visual-card--photo::before {
  z-index: 2;
  background:
    linear-gradient(180deg, rgba(10, 31, 51, 0.05) 40%, rgba(10, 31, 51, 0.55) 100%),
    radial-gradient(circle at top right, rgba(255, 107, 26, 0.25), transparent 55%);
}

.solutions__visual-card--photo::after { z-index: 3; }

.solutions__visual-accent {
  position: absolute;
  bottom: -26px;
  right: -26px;
  width: 42%;
  aspect-ratio: 1;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 4px solid var(--bg);
  box-shadow: var(--shadow-xl);
  z-index: 4;
  transition: transform 0.5s var(--ease);
}

.solutions__visual-card--photo:hover .solutions__visual-accent {
  transform: scale(1.06) rotate(-3deg);
}

.solutions__visual-accent img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

@media (max-width: 780px) {
  .solutions__visual-accent { width: 38%; bottom: -18px; right: -18px; border-width: 3px; }
}

/* ============================================
   CONTACT — QR / files card
   ============================================ */
.contact__qr {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-top: 32px;
  padding: 22px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
}

.contact__qr-img {
  flex-shrink: 0;
  width: 96px;
  height: 96px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 1px solid var(--border);
}

.contact__qr-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.contact__qr-info h4 {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--navy-800);
  margin-bottom: 6px;
}

.contact__qr-info p {
  font-size: 0.9rem;
  color: var(--text-soft);
  line-height: 1.7;
  margin-bottom: 14px;
}

@media (max-width: 560px) {
  .contact__qr { flex-direction: column; text-align: center; }
}

/* ============================================
   GALLERY SECTION
   ============================================ */
.gallery {
  background: var(--bg-alt);
}

/* Standalone gallery page: add clearance under the fixed header, since
   this section is the very first thing in <main> here (no hero above it
   like on the homepage). */
.gallery--page {
  padding-top: calc(var(--header-h) + 60px);
}

.gallery__back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-ar);
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--navy-600);
  margin-bottom: 18px;
  transition: color 0.25s var(--ease), gap 0.25s var(--ease);
}

.gallery__back svg {
  width: 18px;
  height: 18px;
}

.gallery__back:hover {
  color: var(--orange-500);
  gap: 12px;
}

/* ============================================
   GALLERY TEASER (homepage preview strip)
   ============================================ */
.gallery-teaser {
  background: var(--bg-alt);
}

.gallery-teaser__wrap {
  position: relative;
  margin-top: 20px;
}

.gallery-teaser__grid {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  scroll-snap-type: x proximity;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 6px;
  cursor: grab;
  /* Hide scrollbar across browsers while keeping native touch/drag scroll */
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.gallery-teaser__grid.is-dragging {
  cursor: grabbing;
  scroll-snap-type: none;
  scroll-behavior: auto;
}

.gallery-teaser__grid::-webkit-scrollbar {
  display: none;
}

.gallery-teaser__item {
  position: relative;
  flex: 0 0 calc(25% - 12px);
  aspect-ratio: 4 / 3.2;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--navy-800);
  box-shadow: var(--shadow-sm);
  scroll-snap-align: start;
}

.gallery-teaser__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s var(--ease);
  pointer-events: none;
  -webkit-user-drag: none;
}

.gallery-teaser__item:hover img {
  transform: scale(1.08);
}

.gallery-teaser__arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  color: var(--navy-800);
  border-radius: 50%;
  box-shadow: var(--shadow-md, 0 8px 20px rgba(15, 42, 68, 0.15));
  transition: background 0.25s var(--ease), color 0.25s var(--ease), opacity 0.25s var(--ease);
}

.gallery-teaser__arrow:hover {
  background: var(--orange-500);
  color: #fff;
}

.gallery-teaser__arrow svg {
  width: 20px;
  height: 20px;
}

.gallery-teaser__arrow--prev { right: -14px; }
.gallery-teaser__arrow--next { left: -14px; }

.gallery-teaser__arrow.is-hidden {
  opacity: 0;
  pointer-events: none;
}

@media (max-width: 900px) {
  .gallery-teaser__arrow { display: none; }
}

.gallery-teaser__cta {
  display: flex;
  justify-content: center;
  margin-top: 40px;
}

.gallery-teaser__cta .btn svg {
  width: 18px;
  height: 18px;
}

@media (max-width: 900px) {
  .gallery-teaser__item { flex-basis: calc(33.333% - 11px); }
}

@media (max-width: 640px) {
  .gallery-teaser__grid { gap: 10px; }
  .gallery-teaser__item { flex-basis: calc(58% - 6px); }
}

.gallery__intro {
  max-width: 640px;
  margin: 0 auto;
  color: var(--text-soft);
  font-size: 1.02rem;
  line-height: 1.9;
}

.gallery__filters {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 40px;
}

.gallery__filter {
  font-family: var(--font-ar);
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--navy-700);
  background: #fff;
  border: 1.5px solid var(--border);
  padding: 10px 24px;
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.3s var(--ease);
}

.gallery__filter:hover {
  border-color: var(--orange-400);
  color: var(--orange-600);
}

.gallery__filter.is-active {
  background: var(--orange-500);
  border-color: var(--orange-500);
  color: #fff;
  box-shadow: var(--shadow-orange);
}

.gallery__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.gallery__item {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3.4;
  border: none;
  padding: 0;
  margin: 0;
  border-radius: var(--radius-md);
  overflow: hidden;
  cursor: zoom-in;
  background: var(--navy-800);
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.35s var(--ease), transform 0.35s var(--ease);
}

.gallery__item.is-hidden {
  display: none;
}

.gallery__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.6s var(--ease);
}

.gallery__item::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(10, 31, 51, 0) 55%, rgba(10, 31, 51, 0.75) 100%);
  opacity: 0;
  transition: opacity 0.35s var(--ease);
}

.gallery__item::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 44px;
  height: 44px;
  transform: translate(-50%, -50%) scale(0.6);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.95) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23FF6B1A' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cline x1='21' y1='21' x2='16.65' y2='16.65'/%3E%3Cline x1='11' y1='8' x2='11' y2='14'/%3E%3Cline x1='8' y1='11' x2='14' y2='11'/%3E%3C/svg%3E") center/20px no-repeat;
  opacity: 0;
  z-index: 1;
  transition: all 0.35s var(--ease);
}

.gallery__item:hover,
.gallery__item:focus-visible {
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
}

.gallery__item:hover img,
.gallery__item:focus-visible img {
  transform: scale(1.08);
}

.gallery__item:hover::after,
.gallery__item:focus-visible::after,
.gallery__item:hover::before,
.gallery__item:focus-visible::before {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

/* ============================================
   LIGHTBOX
   ============================================ */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.35s var(--ease), visibility 0.35s;
}

.lightbox.is-open {
  opacity: 1;
  visibility: visible;
}

.lightbox__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(6, 16, 27, 0.94);
  backdrop-filter: blur(6px);
}

.lightbox__inner {
  position: relative;
  z-index: 1;
  width: min(92vw, 1000px);
  max-height: 88vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox__figure {
  margin: 0;
  max-width: 100%;
  max-height: 88vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  transform: scale(0.94);
  opacity: 0;
  transition: all 0.4s var(--ease);
}

.lightbox.is-open .lightbox__figure {
  transform: scale(1);
  opacity: 1;
}

.lightbox__figure img {
  max-width: 100%;
  max-height: 76vh;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-xl);
  display: block;
}

.lightbox__caption {
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.95rem;
  margin-top: 16px;
  text-align: center;
}

.lightbox__close {
  position: absolute;
  top: -6px;
  left: 0;
  transform: translateY(-100%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1.5px solid rgba(255, 255, 255, 0.25);
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s var(--ease);
}

.lightbox__close svg { width: 20px; height: 20px; }

.lightbox__close:hover {
  background: var(--orange-500);
  border-color: var(--orange-500);
}

.lightbox__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: 1.5px solid rgba(255, 255, 255, 0.25);
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s var(--ease);
  z-index: 2;
}

.lightbox__nav svg { width: 24px; height: 24px; }

.lightbox__nav:hover {
  background: var(--orange-500);
  border-color: var(--orange-500);
}

.lightbox__nav--prev { right: -10px; }
.lightbox__nav--next { left: -10px; }

.lightbox__count {
  position: absolute;
  bottom: -6px;
  transform: translateY(100%);
  right: 0;
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.85rem;
  letter-spacing: 0.05em;
}

@media (max-width: 780px) {
  .gallery__grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .gallery__filters { gap: 8px; }
  .gallery__filter { padding: 8px 18px; font-size: 0.85rem; }
  .lightbox__nav { width: 42px; height: 42px; }
  .lightbox__nav--prev { right: 4px; }
  .lightbox__nav--next { left: 4px; }
  .lightbox__close { top: 4px; left: 4px; transform: none; }
  .lightbox__figure img { max-height: 64vh; }
}

/* Print friendly */
@media print {
  .header, .float-wa, .scroll-top, .burger, .cursor, .progress-bar, .particles, .marquee { display: none; }
  .section { padding: 30px 0; }
  body { color: #000; background: #fff; }
  .hero { min-height: auto; padding: 30px 0; color: #000; }
  .hero__bg { display: none; }
}

/* Landscape orientation adjustments (mobile) */
@media (max-height: 500px) and (orientation: landscape) {
  .hero { min-height: 100vh; padding: calc(var(--header-h) + 20px) 0 60px; }
  .hero__logo { display: none; }
  .hero__stats { padding-top: 20px; margin-bottom: 0; }
  .hero__actions { margin-bottom: 20px; }
}
