/* ============================================================
   FIRST Import & Export — Main Stylesheet
   ------------------------------------------------------------
   HOW TO EDIT:
   • Brand colors, fonts, radii and shadows are all defined as
     CSS variables in :root below. Change once, applies site-wide.
   • Dark mode overrides live in [data-theme="dark"].
   • Sections are ordered top-to-bottom exactly as the page flows.
   ============================================================ */

/* ==================== 1. DESIGN TOKENS ==================== */
:root {
  /* Brand palette (EDIT ME) */
  --primary:    #0D6EFD;
  --secondary:  #00C6FF;
  --accent:     #00E5A8;
  --highlight:  #FFC107;
  --bg:         #F7FAFC;
  --dark:       #0F172A;

  /* Derived surface / text tokens */
  --surface:        #FFFFFF;
  --surface-2:      #EEF4FB;
  --text:           #1E293B;
  --text-muted:     #5B6B84;
  --line:           rgba(15, 23, 42, .08);

  /* Glassmorphism */
  --glass-bg:      rgba(255, 255, 255, .62);
  --glass-border:  rgba(255, 255, 255, .75);
  --glass-blur:    18px;

  /* Gradients */
  --grad-brand:  linear-gradient(120deg, var(--primary), var(--secondary));
  --grad-mint:   linear-gradient(120deg, var(--secondary), var(--accent));
  --grad-warm:   linear-gradient(120deg, var(--highlight), var(--accent));

  /* Typography (EDIT ME) */
  --font-display: 'Poppins', sans-serif;
  --font-body:    'Manrope', sans-serif;

  /* Shape & elevation */
  --radius-sm: 12px;
  --radius:    20px;
  --radius-lg: 28px;
  --shadow-soft:  0 10px 34px rgba(13, 110, 253, .10);
  --shadow-hover: 0 22px 54px rgba(13, 110, 253, .20);

  /* Motion */
  --ease:  cubic-bezier(.22, .8, .3, 1);
  --t-fast: .3s;
  --t-mid:  .45s;
  --t-slow: .8s;

  /* Layout */
  --container: 1180px;
  --nav-h: 78px;
}

/* Dark theme overrides */
[data-theme="dark"] {
  --bg:            #0B1120;
  --surface:       #101a30;
  --surface-2:     #16233f;
  --text:          #E7EEF9;
  --text-muted:    #93A4C0;
  --line:          rgba(231, 238, 249, .09);
  --glass-bg:      rgba(20, 32, 58, .58);
  --glass-border:  rgba(255, 255, 255, .10);
  --shadow-soft:   0 10px 34px rgba(0, 0, 0, .40);
  --shadow-hover:  0 22px 54px rgba(0, 0, 0, .55);
}

/* ==================== 2. BASE / RESET ==================== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 12px); }

body {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  overflow-x: hidden;
  transition: background var(--t-mid) var(--ease), color var(--t-mid) var(--ease);
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }

:focus-visible { outline: 3px solid var(--secondary); outline-offset: 3px; border-radius: 6px; }

.container { width: min(var(--container), 92%); margin-inline: auto; }
.container--narrow { width: min(860px, 92%); }

/* Shared glass panel */
.glass {
  background: var(--glass-bg);
  -webkit-backdrop-filter: blur(var(--glass-blur));
  backdrop-filter: blur(var(--glass-blur));
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
}

/* Gradient text helpers */
.text-gradient,
.text-gradient--warm {
  background: var(--grad-brand);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.text-gradient--warm { background-image: var(--grad-warm); }

/* ==================== 3. SECTION SCAFFOLDING ==================== */
.section { padding: clamp(4.5rem, 9vw, 7.5rem) 0; position: relative; }

.section__head { text-align: center; max-width: 720px; margin: 0 auto clamp(2.5rem, 6vw, 4rem); }

.section__eyebrow {
  display: inline-flex; align-items: center; gap: .55rem;
  font-family: var(--font-display);
  font-size: .8rem; font-weight: 600;
  letter-spacing: .18em; text-transform: uppercase;
  color: var(--primary);
  padding: .45rem 1.1rem;
  border-radius: 999px;
  background: color-mix(in srgb, var(--primary) 9%, transparent);
  margin-bottom: 1.1rem;
}
/* Cable-tie serration motif inside every eyebrow chip */
.section__eyebrow::before {
  content: ""; width: 26px; height: 8px; border-radius: 3px;
  background: repeating-linear-gradient(90deg, var(--primary) 0 3px, transparent 3px 6px);
}
.section__eyebrow--light { color: #9cd2ff; background: rgba(255, 255, 255, .08); }
.section__eyebrow--light::before { background: repeating-linear-gradient(90deg, #9cd2ff 0 3px, transparent 3px 6px); }

.section__title {
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 4.2vw, 2.9rem);
  font-weight: 800; line-height: 1.18;
  letter-spacing: -.02em;
}
.section__title--light { color: #fff; }

.section__lead { margin-top: 1rem; color: var(--text-muted); font-size: 1.06rem; }

/* ==================== 4. PRELOADER ==================== */
.preloader {
  position: fixed; inset: 0; z-index: 10000;
  display: grid; place-items: center;
  background: var(--dark);
  transition: opacity .6s var(--ease), visibility .6s;
}
.preloader.is-done { opacity: 0; visibility: hidden; pointer-events: none; }
.preloader__inner { text-align: center; }

/* Animated cable tie: strap slides through the head */
.preloader__tie { position: relative; width: 150px; height: 34px; margin: 0 auto 1.4rem; }
.preloader__strap {
  position: absolute; left: 0; top: 12px; height: 10px; width: 112px; border-radius: 4px;
  background: repeating-linear-gradient(90deg, var(--secondary) 0 7px, #0a90c4 7px 11px);
  animation: strapSlide 1.4s var(--ease) infinite;
}
.preloader__head {
  position: absolute; right: 0; top: 5px; width: 30px; height: 24px; border-radius: 6px;
  background: var(--accent); box-shadow: 0 0 24px rgba(0, 229, 168, .6);
}
.preloader__head::after {
  content: ""; position: absolute; inset: 7px 6px; border-radius: 3px; background: var(--dark);
}
@keyframes strapSlide {
  0%   { width: 40px; }
  60%  { width: 112px; }
  100% { width: 40px; }
}
.preloader__brand {
  font-family: var(--font-display); font-weight: 800; font-size: 1.35rem; color: #fff; letter-spacing: .04em;
}
.preloader__brand span { display: block; font-size: .72rem; font-weight: 500; letter-spacing: .3em; text-transform: uppercase; color: var(--secondary); margin-top: .2rem; }
.preloader__bar { width: 180px; height: 4px; border-radius: 2px; background: rgba(255,255,255,.14); margin: 1.3rem auto 0; overflow: hidden; }
.preloader__bar span { display: block; height: 100%; width: 40%; border-radius: 2px; background: var(--grad-mint); animation: loadBar 1.2s ease-in-out infinite; }
@keyframes loadBar { 0% { transform: translateX(-120%); } 100% { transform: translateX(480%); } }

/* ==================== 5. SCROLL PROGRESS BAR ==================== */
/* Styled like a tightening tie strap — serrated gradient */
.scroll-progress {
  position: fixed; top: 0; left: 0; z-index: 9500;
  height: 4px; width: 0%;
  background:
    repeating-linear-gradient(90deg, rgba(255,255,255,.35) 0 6px, transparent 6px 12px),
    var(--grad-brand);
  box-shadow: 0 0 12px rgba(0, 198, 255, .55);
  transition: width .08s linear;
}

/* ==================== 6. CUSTOM CURSOR ==================== */
.cursor-dot, .cursor-ring {
  position: fixed; top: 0; left: 0; z-index: 9800;
  border-radius: 50%; pointer-events: none;
  transform: translate(-50%, -50%);
}
.cursor-dot  { width: 8px; height: 8px; background: var(--secondary); }
.cursor-ring {
  width: 38px; height: 38px; border: 2px solid color-mix(in srgb, var(--primary) 55%, transparent);
  transition: width .25s var(--ease), height .25s var(--ease), border-color .25s, background .25s;
}
.cursor-ring.is-hover { width: 62px; height: 62px; border-color: var(--accent); background: rgba(0, 229, 168, .08); }
@media (hover: none), (max-width: 900px) { .cursor-dot, .cursor-ring { display: none; } }

/* ==================== 7. FLOATING BACKGROUND SHAPES ==================== */
.bg-shapes { position: fixed; inset: 0; z-index: -1; overflow: hidden; }
.bg-shape { position: absolute; border-radius: 50%; filter: blur(70px); opacity: .35; animation: floatShape 16s ease-in-out infinite alternate; }
.bg-shape--1 { width: 420px; height: 420px; top: -6%; left: -8%;  background: var(--primary);   animation-delay: 0s; }
.bg-shape--2 { width: 340px; height: 340px; top: 34%;  right: -10%; background: var(--secondary); animation-delay: -4s; }
.bg-shape--3 { width: 300px; height: 300px; bottom: 8%; left: 12%;  background: var(--accent);    animation-delay: -8s; opacity: .22; }
.bg-shape--4 { width: 230px; height: 230px; bottom: -6%; right: 22%; background: var(--highlight); animation-delay: -12s; opacity: .18; }
@keyframes floatShape {
  from { transform: translate(0, 0) scale(1); }
  to   { transform: translate(50px, -60px) scale(1.15); }
}

/* ==================== 8. NAVIGATION ==================== */
.header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 9000;
  transition: background var(--t-fast) var(--ease), box-shadow var(--t-fast) var(--ease);
}
.header.is-scrolled {
  background: var(--glass-bg);
  -webkit-backdrop-filter: blur(var(--glass-blur));
  backdrop-filter: blur(var(--glass-blur));
  box-shadow: 0 6px 28px rgba(15, 23, 42, .10);
  border-bottom: 1px solid var(--line);
}

.nav { height: var(--nav-h); display: flex; align-items: center; justify-content: space-between; gap: 1rem; }

.nav__logo { display: inline-flex; align-items: center; gap: .65rem; }
.nav__logo-mark { display: grid; place-items: center; filter: drop-shadow(0 6px 14px rgba(13,110,253,.35)); transition: transform var(--t-fast) var(--ease); }
.nav__logo:hover .nav__logo-mark { transform: rotate(-8deg) scale(1.06); }
.nav__logo-text {
  font-family: var(--font-display); font-weight: 800; font-size: 1.28rem; letter-spacing: .02em;
  color: #fff; line-height: 1; display: flex; flex-direction: column; gap: .18rem;
  transition: color var(--t-fast);
}
.header.is-scrolled .nav__logo-text { color: var(--text); }
.nav__logo-text small { font-size: .6rem; font-weight: 600; letter-spacing: .26em; text-transform: uppercase; color: var(--secondary); }

.nav__menu { display: flex; align-items: center; gap: .4rem; }
.nav__link {
  position: relative; display: inline-block;
  padding: .55rem .85rem; font-weight: 600; font-size: .95rem;
  color: rgba(255, 255, 255, .92);
  transition: color var(--t-fast);
}
.header.is-scrolled .nav__link { color: var(--text); }
/* Hover underline animation */
.nav__link::after {
  content: ""; position: absolute; left: .85rem; right: .85rem; bottom: .3rem;
  height: 2.5px; border-radius: 2px; background: var(--grad-mint);
  transform: scaleX(0); transform-origin: left;
  transition: transform var(--t-fast) var(--ease);
}
.nav__link:hover::after, .nav__link.active::after { transform: scaleX(1); }
.nav__link.active { color: var(--secondary); }
.header.is-scrolled .nav__link.active { color: var(--primary); }

.nav__link--cta {
  background: var(--grad-brand); color: #fff !important;
  border-radius: 999px; padding: .55rem 1.25rem; margin-left: .4rem;
  box-shadow: 0 8px 22px rgba(13, 110, 253, .35);
  transition: transform var(--t-fast) var(--ease), box-shadow var(--t-fast) var(--ease);
}
.nav__link--cta::after { display: none; }
.nav__link--cta:hover { transform: translateY(-2px); box-shadow: 0 12px 28px rgba(13, 110, 253, .5); }

.nav__actions { display: flex; align-items: center; gap: .5rem; }

/* Dark mode toggle */
.theme-toggle {
  position: relative; width: 42px; height: 42px; border-radius: 50%;
  display: grid; place-items: center; color: #fff;
  background: rgba(255, 255, 255, .12); border: 1px solid rgba(255, 255, 255, .2);
  transition: background var(--t-fast), color var(--t-fast), transform var(--t-fast) var(--ease);
}
.header.is-scrolled .theme-toggle { color: var(--text); background: color-mix(in srgb, var(--text) 7%, transparent); border-color: var(--line); }
.theme-toggle:hover { transform: rotate(18deg) scale(1.06); }
.theme-toggle svg { position: absolute; transition: opacity var(--t-mid) var(--ease), transform var(--t-mid) var(--ease); }
.theme-toggle__moon { opacity: 0; transform: rotate(-90deg) scale(.5); }
[data-theme="dark"] .theme-toggle__moon { opacity: 1; transform: rotate(0) scale(1); }
[data-theme="dark"] .theme-toggle__sun  { opacity: 0; transform: rotate(90deg) scale(.5); }

/* Hamburger */
.nav__toggle { display: none; flex-direction: column; gap: 5px; padding: .6rem; }
.nav__toggle span {
  width: 24px; height: 2.5px; border-radius: 2px; background: #fff;
  transition: transform var(--t-fast) var(--ease), opacity var(--t-fast), background var(--t-fast);
}
.header.is-scrolled .nav__toggle span { background: var(--text); }
.nav__toggle.is-open span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.nav__toggle.is-open span:nth-child(2) { opacity: 0; }
.nav__toggle.is-open span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

/* ==================== 9. BUTTONS ==================== */
.btn {
  position: relative; overflow: hidden;
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  font-family: var(--font-display); font-weight: 600; font-size: .98rem;
  padding: .95rem 2rem; border-radius: 999px;
  transition: transform var(--t-fast) var(--ease), box-shadow var(--t-fast) var(--ease), background var(--t-fast);
  will-change: transform;
}
.btn:hover { transform: translateY(-3px); }
.btn:active { transform: translateY(-1px) scale(.98); }

.btn--primary {
  color: #fff; background: var(--grad-brand);
  box-shadow: 0 10px 26px rgba(13, 110, 253, .4);
  animation: btnGlow 3s ease-in-out infinite;
}
.btn--primary:hover { box-shadow: 0 16px 36px rgba(0, 198, 255, .5); }
@keyframes btnGlow {
  0%, 100% { box-shadow: 0 10px 26px rgba(13, 110, 253, .40); }
  50%      { box-shadow: 0 10px 32px rgba(0, 198, 255, .55); }
}

.btn--glass {
  color: #fff; background: rgba(255, 255, 255, .12);
  border: 1px solid rgba(255, 255, 255, .35);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
}
.btn--glass:hover { background: rgba(255, 255, 255, .22); }
/* Glass buttons placed on light panels (e.g. success card) */
.contact__form-wrap .btn--glass { color: var(--text); border-color: var(--line); background: color-mix(in srgb, var(--text) 6%, transparent); }

.btn--block { width: 100%; }
.btn svg { transition: transform var(--t-fast) var(--ease); }
.btn:hover svg { transform: translateX(4px); }

/* Ripple effect (span injected by script.js) */
.btn--ripple .ripple {
  position: absolute; border-radius: 50%; pointer-events: none;
  background: rgba(255, 255, 255, .45);
  transform: scale(0); animation: ripple .6s ease-out forwards;
}
@keyframes ripple { to { transform: scale(4); opacity: 0; } }

/* Submit button loading spinner */
.btn__spinner {
  display: none; width: 18px; height: 18px; border-radius: 50%;
  border: 2.5px solid rgba(255,255,255,.35); border-top-color: #fff;
  animation: spin .7s linear infinite;
}
.btn.is-loading .btn__spinner { display: inline-block; }
.btn.is-loading .btn__label { opacity: .75; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ==================== 10. HERO ==================== */
.hero {
  position: relative; min-height: 100svh;
  display: flex; align-items: center;
  color: #fff; overflow: hidden;
  padding: calc(var(--nav-h) + 2rem) 0 4rem;
}
.hero__bg { position: absolute; inset: -12% 0; z-index: -3; }
.hero__bg img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.05); }

/* Animated gradient overlay */
.hero__overlay {
  position: absolute; inset: 0; z-index: -2;
  background:
    linear-gradient(115deg, rgba(15, 23, 42, .92) 8%, rgba(13, 110, 253, .55) 55%, rgba(0, 198, 255, .28) 100%);
  background-size: 200% 200%;
  animation: gradShift 12s ease-in-out infinite alternate;
}
@keyframes gradShift { from { background-position: 0% 50%; } to { background-position: 100% 50%; } }

.hero__particles { position: absolute; inset: 0; z-index: -1; }

.hero__content { max-width: 780px; }

.hero__eyebrow {
  display: inline-flex; align-items: center; gap: .6rem;
  font-family: var(--font-display); font-size: .82rem; font-weight: 600;
  letter-spacing: .2em; text-transform: uppercase;
  padding: .5rem 1.15rem; border-radius: 999px;
  background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .22);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
}
.hero__eyebrow-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 12px var(--accent); animation: pulse 2s ease-in-out infinite; }
@keyframes pulse { 0%, 100% { transform: scale(1); opacity: 1; } 50% { transform: scale(1.5); opacity: .6; } }

.hero__title {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 6vw, 4.3rem);
  font-weight: 900; line-height: 1.1; letter-spacing: -.025em;
  margin: 1.4rem 0 1.2rem;
  text-shadow: 0 4px 28px rgba(0, 0, 0, .35);
}
.hero__title-gradient {
  background: linear-gradient(100deg, var(--secondary), var(--accent) 60%, var(--highlight));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero__subtitle { max-width: 620px; font-size: clamp(1rem, 1.6vw, 1.16rem); color: rgba(255, 255, 255, .88); }

.hero__actions { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 2.1rem; }

.hero__badges { display: flex; flex-wrap: wrap; gap: 1.4rem; margin-top: 2.3rem; font-size: .92rem; font-weight: 600; color: rgba(255, 255, 255, .85); }

/* Scroll indicator */
.hero__scroll {
  position: absolute; left: 50%; bottom: 2rem; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: .5rem;
  color: rgba(255, 255, 255, .8); font-size: .72rem; letter-spacing: .28em; text-transform: uppercase;
  transition: color var(--t-fast);
}
.hero__scroll:hover { color: #fff; }
.hero__scroll-mouse {
  width: 26px; height: 42px; border: 2px solid rgba(255, 255, 255, .7); border-radius: 14px;
  display: flex; justify-content: center; padding-top: 7px;
}
.hero__scroll-mouse span { width: 4px; height: 9px; border-radius: 3px; background: var(--accent); animation: wheel 1.6s ease-in-out infinite; }
@keyframes wheel { 0% { transform: translateY(0); opacity: 1; } 70% { transform: translateY(12px); opacity: 0; } 100% { opacity: 0; } }

/* ==================== 11. ABOUT ==================== */
.about__grid {
  display: grid; grid-template-columns: 1fr 1.05fr;
  gap: clamp(2.5rem, 6vw, 5rem); align-items: center;
}

.about__media { position: relative; }
.about__img { border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-soft); }
.about__img img { width: 100%; height: 100%; object-fit: cover; transition: transform var(--t-slow) var(--ease); }
.about__img:hover img { transform: scale(1.06); }
.about__img--main { aspect-ratio: 4 / 4.6; }
.about__img--float {
  position: absolute; width: 46%; aspect-ratio: 1; right: -6%; top: -8%;
  border: 6px solid var(--bg); animation: floatY 5s ease-in-out infinite;
}
@keyframes floatY { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-14px); } }

.about__experience {
  position: absolute; left: -5%; bottom: 6%;
  display: flex; align-items: center; gap: .9rem;
  padding: 1.1rem 1.5rem;
}
.about__experience strong {
  font-family: var(--font-display); font-size: 2.5rem; font-weight: 800; line-height: 1;
  background: var(--grad-brand); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.about__experience span { font-size: .82rem; font-weight: 600; color: var(--text-muted); line-height: 1.35; }

.about__features { display: grid; grid-template-columns: 1fr 1fr; gap: 1.15rem 1.6rem; margin: 1.8rem 0 2.1rem; }
.about__features li { display: flex; gap: .75rem; }
.about__check {
  flex: none; width: 26px; height: 26px; margin-top: .15rem;
  display: grid; place-items: center; border-radius: 50%;
  font-size: .78rem; font-weight: 800; color: #fff;
  background: var(--grad-mint); box-shadow: 0 6px 14px rgba(0, 229, 168, .35);
}
.about__features strong { font-family: var(--font-display); font-size: .98rem; }
.about__features p { font-size: .87rem; color: var(--text-muted); margin-top: .1rem; }

/* ==================== 12. STATISTICS ==================== */
.stats { padding: 1rem 0 0; }
.stats__grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  padding: clamp(1.8rem, 4vw, 2.8rem) clamp(1rem, 3vw, 2.5rem);
  text-align: center;
}
.stats__item { position: relative; padding: .4rem 1rem; }
/* Serrated divider between stats — the tie-strap motif again */
.stats__item + .stats__item::before {
  content: ""; position: absolute; left: 0; top: 18%; bottom: 18%; width: 4px; border-radius: 2px;
  background: repeating-linear-gradient(180deg, var(--line) 0 5px, transparent 5px 10px);
}
.stats__item strong {
  display: block;
  font-family: var(--font-display); font-size: clamp(2.1rem, 4.4vw, 3.1rem); font-weight: 800; line-height: 1.1;
  background: var(--grad-brand); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.stats__item span { font-size: .9rem; font-weight: 600; color: var(--text-muted); }

/* ==================== 13. PRODUCTS ==================== */
.products__grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: clamp(1.4rem, 2.6vw, 2rem);
}
.product-card {
  display: flex; flex-direction: column;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius-lg); overflow: hidden;
  box-shadow: var(--shadow-soft);
  transition: transform var(--t-mid) var(--ease), box-shadow var(--t-mid) var(--ease);
  transform-style: preserve-3d;
}
.product-card:hover { box-shadow: var(--shadow-hover); }
.product-card--wide { grid-column: span 2; flex-direction: row; }
.product-card--wide .product-card__media { flex: 1.1; }
.product-card--wide .product-card__body { flex: 1; }

.product-card__media { position: relative; aspect-ratio: 16 / 10.5; overflow: hidden; }
.product-card--wide .product-card__media { aspect-ratio: auto; }
.product-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform var(--t-slow) var(--ease); }
.product-card:hover .product-card__media img { transform: scale(1.1) rotate(.6deg); }
.product-card__media::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 55%, rgba(15, 23, 42, .45));
  opacity: 0; transition: opacity var(--t-mid);
}
.product-card:hover .product-card__media::after { opacity: 1; }

.product-card__tag {
  position: absolute; top: 1rem; left: 1rem; z-index: 1;
  font-family: var(--font-display); font-size: .7rem; font-weight: 700;
  letter-spacing: .12em; text-transform: uppercase; color: #fff;
  padding: .38rem .85rem; border-radius: 999px;
  background: var(--grad-brand); box-shadow: 0 6px 16px rgba(13, 110, 253, .4);
}
.product-card__tag--accent    { background: var(--grad-mint); box-shadow: 0 6px 16px rgba(0, 229, 168, .4); }
.product-card__tag--highlight { background: linear-gradient(120deg, var(--highlight), #ff9a3d); color: var(--dark); box-shadow: 0 6px 16px rgba(255, 193, 7, .4); }

.product-card__body { padding: 1.5rem 1.5rem 1.6rem; display: flex; flex-direction: column; gap: .8rem; flex: 1; }
.product-card__body h3 { font-family: var(--font-display); font-size: 1.22rem; font-weight: 700; }
.product-card__body > p { font-size: .92rem; color: var(--text-muted); }

.product-card__specs { display: grid; gap: .45rem; font-size: .85rem; margin-top: .2rem; }
.product-card__specs li {
  display: flex; gap: .6rem; align-items: baseline;
  padding-bottom: .45rem; border-bottom: 1px dashed var(--line);
  color: var(--text-muted);
}
.product-card__specs strong {
  flex: none; min-width: 72px;
  font-family: var(--font-display); font-size: .72rem; font-weight: 700;
  letter-spacing: .08em; text-transform: uppercase; color: var(--primary);
}

.product-card__link {
  margin-top: auto; padding-top: .6rem;
  font-family: var(--font-display); font-weight: 700; font-size: .95rem;
  color: var(--primary); display: inline-flex; align-items: center; gap: .4rem;
}
.product-card__link span { transition: transform var(--t-fast) var(--ease); }
.product-card__link:hover span { transform: translateX(6px); }

/* ==================== 14. APPLICATIONS (photo gallery) ==================== */
.applications { background: linear-gradient(180deg, transparent, color-mix(in srgb, var(--primary) 4%, transparent) 30%, transparent); }
.applications__gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1.2rem, 2.4vw, 1.8rem);
}
.app-photo {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-soft);
  cursor: zoom-in;
  transition: transform var(--t-mid) var(--ease), box-shadow var(--t-mid) var(--ease);
}
.app-photo:hover { transform: translateY(-6px); box-shadow: var(--shadow-hover); }
.app-photo__media { position: relative; aspect-ratio: 4 / 3; overflow: hidden; }
.app-photo__media img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform var(--t-slow) var(--ease), filter var(--t-slow);
}
.app-photo:hover .app-photo__media img { transform: scale(1.08); filter: brightness(1.04); }
/* Subtle gradient so the caption edge reads on any photo */
.app-photo__media::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 60%, rgba(15, 23, 42, .28));
  opacity: 0; transition: opacity var(--t-mid);
}
.app-photo:hover .app-photo__media::after { opacity: 1; }
.app-photo__caption { padding: 1.05rem 1.2rem 1.2rem; }
.app-photo__caption h3 {
  font-family: var(--font-display); font-size: 1.08rem; font-weight: 700;
  margin-bottom: .3rem; color: var(--text);
}
.app-photo__caption p { font-size: .9rem; color: var(--text-muted); line-height: 1.5; }

/* ==================== 15. WHY CHOOSE US ==================== */
.why {
  background:
    radial-gradient(900px 500px at 85% -10%, rgba(0, 198, 255, .25), transparent 60%),
    radial-gradient(700px 480px at 0% 110%, rgba(0, 229, 168, .16), transparent 60%),
    var(--dark);
  color: #E7EEF9;
}
.why__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.4rem; }
.why-card {
  position: relative; padding: 1.9rem 1.5rem 1.6rem;
  border-radius: var(--radius); overflow: hidden;
  background: rgba(255, 255, 255, .05);
  border: 1px solid rgba(255, 255, 255, .1);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  transition: transform var(--t-mid) var(--ease), background var(--t-mid), border-color var(--t-mid);
}
.why-card:hover { transform: translateY(-8px); background: rgba(255, 255, 255, .09); border-color: rgba(0, 229, 168, .4); }
.why-card__num {
  font-family: var(--font-display); font-size: 2.2rem; font-weight: 800; line-height: 1;
  background: var(--grad-mint); -webkit-background-clip: text; background-clip: text; color: transparent;
  opacity: .9;
}
.why-card h3 { font-family: var(--font-display); font-size: 1.05rem; font-weight: 700; margin: .8rem 0 .35rem; color: #fff; }
.why-card p { font-size: .87rem; color: #A9B8D4; }

/* ==================== 16. MANUFACTURING ==================== */
.manufacturing__grid {
  display: grid; grid-template-columns: 1fr 1.1fr;
  gap: clamp(2.5rem, 5vw, 4.5rem); align-items: center;
}
.manufacturing__media { position: relative; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-soft); }
.manufacturing__media img { width: 100%; aspect-ratio: 4 / 4.4; object-fit: cover; transition: transform var(--t-slow) var(--ease); }
.manufacturing__media:hover img { transform: scale(1.05); }
.manufacturing__media figcaption {
  position: absolute; left: 1rem; right: 1rem; bottom: 1rem;
  padding: .9rem 1.2rem; font-size: .88rem; font-weight: 600;
}

/* Vertical process timeline */
.process { position: relative; display: grid; gap: 1.5rem; padding-left: 2.1rem; }
.process::before {
  content: ""; position: absolute; left: 10px; top: 12px; bottom: 12px; width: 3px; border-radius: 2px;
  background: repeating-linear-gradient(180deg, var(--primary) 0 8px, color-mix(in srgb, var(--primary) 25%, transparent) 8px 14px);
}
.process__step { position: relative; display: flex; gap: 1.1rem; }
.process__dot {
  position: absolute; left: -2.1rem; top: 6px;
  width: 22px; height: 22px; border-radius: 50%;
  background: var(--bg); border: 4px solid var(--primary);
  box-shadow: 0 0 0 5px color-mix(in srgb, var(--primary) 14%, transparent);
  transition: transform var(--t-fast) var(--ease), border-color var(--t-fast);
}
.process__step:hover .process__dot { transform: scale(1.2); border-color: var(--accent); }
.process__step h3 { font-family: var(--font-display); font-size: 1.06rem; font-weight: 700; }
.process__step p { font-size: .9rem; color: var(--text-muted); margin-top: .2rem; }


/* Lightbox */
.lightbox {
  position: fixed; inset: 0; z-index: 9700;
  display: flex; align-items: center; justify-content: center; gap: 1rem;
  background: rgba(8, 12, 24, .92);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  animation: fadeIn .35s var(--ease);
  padding: 2rem;
}
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
.lightbox[hidden] { display: none; }
.lightbox__figure { max-width: min(1000px, 86vw); text-align: center; }
.lightbox__figure img {
  max-height: 78vh; width: auto; max-width: 100%; margin: 0 auto;
  border-radius: var(--radius); box-shadow: 0 30px 80px rgba(0, 0, 0, .6);
  animation: zoomIn .35s var(--ease);
}
@keyframes zoomIn { from { transform: scale(.92); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.lightbox__figure figcaption { margin-top: 1rem; color: rgba(255, 255, 255, .85); font-weight: 600; }
.lightbox__close {
  position: absolute; top: 1.2rem; right: 1.6rem;
  font-size: 2.4rem; color: #fff; line-height: 1;
  transition: transform var(--t-fast) var(--ease), color var(--t-fast);
}
.lightbox__close:hover { transform: rotate(90deg); color: var(--accent); }
.lightbox__nav {
  flex: none; width: 52px; height: 52px; border-radius: 50%;
  font-size: 1.3rem; color: #fff;
  background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .25);
  transition: background var(--t-fast), transform var(--t-fast) var(--ease);
}
.lightbox__nav:hover { background: var(--primary); transform: scale(1.08); }

/* ==================== 18. TESTIMONIALS ==================== */
.slider { max-width: 820px; margin: 0 auto; padding: clamp(2rem, 5vw, 3.2rem); overflow: hidden; }
.slider__track { display: flex; transition: transform .6s var(--ease); }
.slide { flex: 0 0 100%; text-align: center; padding: 0 clamp(.2rem, 3vw, 2rem); }
.slide__stars { color: var(--highlight); letter-spacing: .3em; font-size: 1.1rem; margin-bottom: 1.1rem; text-shadow: 0 0 18px rgba(255, 193, 7, .5); }
.slide p { font-size: clamp(1.02rem, 1.8vw, 1.2rem); font-weight: 500; line-height: 1.7; }
.slide footer { margin-top: 1.4rem; }
.slide footer strong { font-family: var(--font-display); display: block; }
.slide footer span { font-size: .85rem; color: var(--text-muted); }

.slider__controls { display: flex; align-items: center; justify-content: center; gap: 1.2rem; margin-top: 1.8rem; }
.slider__btn {
  width: 44px; height: 44px; border-radius: 50%;
  background: color-mix(in srgb, var(--primary) 10%, transparent); color: var(--primary);
  transition: background var(--t-fast), color var(--t-fast), transform var(--t-fast) var(--ease);
}
.slider__btn:hover { background: var(--grad-brand); color: #fff; transform: scale(1.08); }
.slider__dots { display: flex; gap: .5rem; }
.slider__dot {
  width: 9px; height: 9px; border-radius: 999px; padding: 0;
  background: color-mix(in srgb, var(--text) 22%, transparent);
  transition: width var(--t-fast) var(--ease), background var(--t-fast);
}
.slider__dot.is-active { width: 26px; background: var(--grad-brand); }

/* ==================== 19. FAQ ==================== */
.faq__list { display: grid; gap: 1rem; }
.faq-item { overflow: hidden; transition: box-shadow var(--t-fast); }
.faq-item[open] { box-shadow: var(--shadow-hover); }
.faq-item summary {
  list-style: none; cursor: pointer;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 1.25rem 1.5rem;
  font-family: var(--font-display); font-weight: 600; font-size: 1.02rem;
  transition: color var(--t-fast);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary:hover { color: var(--primary); }
.faq-item__icon { position: relative; flex: none; width: 22px; height: 22px; }
.faq-item__icon::before, .faq-item__icon::after {
  content: ""; position: absolute; inset: 0; margin: auto;
  background: var(--primary); border-radius: 2px;
  transition: transform var(--t-fast) var(--ease);
}
.faq-item__icon::before { width: 14px; height: 2.5px; }
.faq-item__icon::after  { width: 2.5px; height: 14px; }
.faq-item[open] .faq-item__icon::after { transform: rotate(90deg); }
.faq-item[open] .faq-item__icon::before { transform: rotate(180deg); }
.faq-item__body { padding: 0 1.5rem; overflow: hidden; }
.faq-item__body p { padding-bottom: 1.3rem; color: var(--text-muted); font-size: .95rem; }

/* ==================== 20. CONTACT ==================== */
.contact__grid { display: grid; grid-template-columns: .9fr 1.15fr; gap: clamp(1.8rem, 4vw, 3rem); align-items: start; }

.contact__info { display: grid; gap: 1rem; }
.contact-card {
  display: flex; align-items: center; gap: 1rem; padding: 1.15rem 1.3rem;
  transition: transform var(--t-fast) var(--ease), box-shadow var(--t-fast);
}
a.contact-card:hover { transform: translateX(6px); box-shadow: var(--shadow-hover); }
.contact-card__icon {
  flex: none; width: 50px; height: 50px; border-radius: 14px;
  display: grid; place-items: center; color: #fff;
}
.contact-card__icon--wa   { background: linear-gradient(135deg, #25D366, #128C7E); box-shadow: 0 8px 20px rgba(37, 211, 102, .35); }
.contact-card__icon--mail { background: var(--grad-brand); box-shadow: 0 8px 20px rgba(13, 110, 253, .35); }
.contact-card__icon--pin  { background: linear-gradient(135deg, var(--highlight), #ff9a3d); box-shadow: 0 8px 20px rgba(255, 193, 7, .35); }
.contact-card strong { font-family: var(--font-display); display: block; font-size: .95rem; }
.contact-card span { font-size: .88rem; color: var(--text-muted); word-break: break-all; }

.contact__social { display: flex; gap: .7rem; padding: .3rem 0; }
.contact__social a {
  width: 42px; height: 42px; border-radius: 12px;
  display: grid; place-items: center;
  color: var(--primary); background: color-mix(in srgb, var(--primary) 10%, transparent);
  transition: background var(--t-fast), color var(--t-fast), transform var(--t-fast) var(--ease);
}
.contact__social a:hover { background: var(--grad-brand); color: #fff; transform: translateY(-4px); }

.contact__map { overflow: hidden; padding: .5rem; }
.contact__map iframe { width: 100%; height: 240px; border: 0; border-radius: calc(var(--radius) - 6px); display: block; }

/* --- Form --- */
.contact__form-wrap { position: relative; padding: clamp(1.6rem, 4vw, 2.4rem); }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; }
.form__group { display: flex; flex-direction: column; gap: .4rem; margin-bottom: 1.1rem; }
.form__group label { font-family: var(--font-display); font-size: .84rem; font-weight: 600; }
.form__group input, .form__group select, .form__group textarea {
  font: inherit; color: var(--text);
  padding: .85rem 1.05rem;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--line);
  background: color-mix(in srgb, var(--surface) 70%, transparent);
  transition: border-color var(--t-fast), box-shadow var(--t-fast), background var(--t-fast);
}
.form__group textarea { resize: vertical; min-height: 120px; }
.form__group input:focus, .form__group select:focus, .form__group textarea:focus {
  outline: none; border-color: var(--primary);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--primary) 16%, transparent);
}
.form__group.is-invalid input, .form__group.is-invalid select, .form__group.is-invalid textarea {
  border-color: #e5484d; box-shadow: 0 0 0 4px rgba(229, 72, 77, .12);
}
.form__error { font-size: .78rem; font-weight: 600; color: #e5484d; min-height: 1em; }
.form__status { margin-top: .9rem; font-size: .9rem; font-weight: 600; text-align: center; color: #e5484d; }

/* Animated success message */
.form__success { text-align: center; padding: 2.5rem 1rem; animation: fadeIn .5s var(--ease); }
.form__success h3 { font-family: var(--font-display); font-size: 1.5rem; margin: 1.1rem 0 .4rem; }
.form__success p { color: var(--text-muted); margin-bottom: 1.6rem; }
.form__success-check svg { width: 84px; height: 84px; }
.form__success-check circle {
  stroke: var(--accent); stroke-width: 3; stroke-dasharray: 160; stroke-dashoffset: 160;
  animation: drawRing .7s var(--ease) forwards;
}
.form__success-check path {
  stroke: var(--accent); stroke-width: 4; stroke-linecap: round; stroke-linejoin: round;
  stroke-dasharray: 50; stroke-dashoffset: 50;
  animation: drawCheck .45s .55s var(--ease) forwards;
}
@keyframes drawRing  { to { stroke-dashoffset: 0; } }
@keyframes drawCheck { to { stroke-dashoffset: 0; } }

/* ==================== 21. FOOTER ==================== */
.footer {
  background: var(--dark); color: #B9C6DE;
  padding: clamp(3.2rem, 7vw, 5rem) 0 0;
  position: relative;
}
/* Serrated top edge — the strap motif closes the page */
.footer::before {
  content: ""; position: absolute; top: -4px; left: 0; right: 0; height: 5px;
  background: repeating-linear-gradient(90deg, var(--primary) 0 14px, var(--secondary) 14px 22px, transparent 22px 30px);
  opacity: .8;
}
.footer__grid {
  display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.1fr;
  gap: clamp(2rem, 4vw, 3rem);
  padding-bottom: 3rem; border-bottom: 1px solid rgba(255, 255, 255, .1);
}
.nav__logo--footer .nav__logo-text { color: #fff; }
.footer__brand p { font-size: .92rem; margin-top: 1.1rem; max-width: 300px; }
.footer__social { display: flex; gap: .6rem; margin-top: 1.3rem; }
.footer__social a {
  width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center;
  color: #fff; background: rgba(255, 255, 255, .08);
  transition: background var(--t-fast), transform var(--t-fast) var(--ease);
}
.footer__social a:hover { background: var(--grad-brand); transform: translateY(-4px); }
.footer__col { display: flex; flex-direction: column; gap: .65rem; font-size: .93rem; }
.footer__col h4 { font-family: var(--font-display); color: #fff; font-size: 1rem; margin-bottom: .5rem; }
.footer__col a { transition: color var(--t-fast), transform var(--t-fast) var(--ease); width: fit-content; }
.footer__col a:hover { color: var(--secondary); transform: translateX(4px); }
.footer__bottom {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: .6rem;
  padding: 1.4rem 0; font-size: .84rem; color: #8DA0BF;
}

/* ==================== 22. FLOATING BUTTONS ==================== */
.fab {
  position: fixed; right: 1.4rem; z-index: 9200;
  width: 56px; height: 56px; border-radius: 50%;
  display: grid; place-items: center; color: #fff;
  box-shadow: 0 12px 30px rgba(0, 0, 0, .28);
  transition: transform var(--t-fast) var(--ease), box-shadow var(--t-fast);
  animation: fabFloat 3.4s ease-in-out infinite;
}
.fab:hover { transform: scale(1.12); }
.fab--whatsapp { bottom: 6.6rem; background: linear-gradient(135deg, #25D366, #128C7E); }
.fab--email    { bottom: 2.2rem; background: var(--grad-brand); animation-delay: -1.7s; }
@keyframes fabFloat { 0%, 100% { translate: 0 0; } 50% { translate: 0 -7px; } }
/* Pulsing ring around WhatsApp */
.fab--whatsapp::after {
  content: ""; position: absolute; inset: -5px; border-radius: 50%;
  border: 2px solid #25D366; animation: fabPulse 2s ease-out infinite;
}
@keyframes fabPulse { 0% { transform: scale(.9); opacity: .9; } 100% { transform: scale(1.5); opacity: 0; } }

/* Back to top */
.back-to-top {
  position: fixed; left: 1.4rem; bottom: 2.2rem; z-index: 9200;
  width: 48px; height: 48px; border-radius: 14px;
  display: grid; place-items: center; color: #fff;
  background: var(--dark); border: 1px solid rgba(255,255,255,.14);
  box-shadow: 0 10px 26px rgba(0, 0, 0, .3);
  opacity: 0; visibility: hidden; transform: translateY(16px);
  transition: opacity var(--t-fast) var(--ease), transform var(--t-fast) var(--ease), visibility var(--t-fast), background var(--t-fast);
}
.back-to-top.is-visible { opacity: 1; visibility: visible; transform: translateY(0); }
.back-to-top:hover { background: var(--primary); }

/* ==================== 23. RESPONSIVE ==================== */
@media (max-width: 1080px) {
  .products__grid { grid-template-columns: repeat(2, 1fr); }
  .product-card--wide { grid-column: span 2; }
  .applications__gallery, .why__grid { grid-template-columns: repeat(2, 1fr); }
  .footer__grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 900px) {
  /* Mobile menu */
  .nav__toggle { display: flex; }
  .nav__menu {
    position: fixed; top: var(--nav-h); left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: .2rem;
    padding: 1rem 1.2rem 1.4rem;
    background: var(--glass-bg);
    -webkit-backdrop-filter: blur(22px); backdrop-filter: blur(22px);
    border-bottom: 1px solid var(--line);
    transform: translateY(-12px); opacity: 0; visibility: hidden;
    transition: transform var(--t-mid) var(--ease), opacity var(--t-mid) var(--ease), visibility var(--t-mid);
    box-shadow: 0 24px 40px rgba(15, 23, 42, .18);
  }
  .nav__menu.is-open { transform: translateY(0); opacity: 1; visibility: visible; }
  .nav__link { color: var(--text); padding: .85rem .6rem; border-radius: 10px; }
  .nav__link:hover { background: color-mix(in srgb, var(--primary) 8%, transparent); }
  .nav__link::after { display: none; }
  .nav__link--cta { margin: .5rem 0 0; text-align: center; }

  .about__grid, .manufacturing__grid { grid-template-columns: 1fr; }
  .about__media { max-width: 520px; margin-inline: auto; }
  .contact__grid { grid-template-columns: 1fr; }
  .stats__grid { grid-template-columns: repeat(2, 1fr); gap: 1.4rem 0; }
  .stats__item:nth-child(3)::before { display: none; }
}

@media (max-width: 620px) {
  .products__grid { grid-template-columns: 1fr; }
  .product-card--wide { grid-column: span 1; flex-direction: column; }
  .product-card--wide .product-card__media { aspect-ratio: 16 / 10.5; }
  .applications__gallery, .why__grid { grid-template-columns: 1fr 1fr; gap: .9rem; }
  .about__features { grid-template-columns: 1fr; }
  .form__row { grid-template-columns: 1fr; gap: 0; }
  .footer__grid { grid-template-columns: 1fr; }
  .hero__badges { gap: .8rem; font-size: .84rem; }
  .about__experience { left: 0; }
  .fab { width: 50px; height: 50px; right: 1rem; }
  .back-to-top { left: 1rem; width: 44px; height: 44px; }
}

@media (max-width: 420px) {
  .applications__gallery, .why__grid { grid-template-columns: 1fr; }
}

/* ==================== 24. ACCESSIBILITY: REDUCED MOTION ==================== */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }
  .hero__particles { display: none; }
}

/* ============================================================
   25. MULTILINGUAL — language switcher, Arabic font, RTL
   ============================================================ */

/* ---- Language switcher ---- */
.lang-switch { position: relative; }
.lang-switch__toggle {
  display: inline-flex; align-items: center; gap: .4rem;
  padding: .5rem .7rem; border-radius: 999px;
  font-family: var(--font-display); font-weight: 600; font-size: .85rem;
  color: #fff; background: rgba(255, 255, 255, .12);
  border: 1px solid rgba(255, 255, 255, .2);
  transition: background var(--t-fast), color var(--t-fast), transform var(--t-fast) var(--ease);
}
.lang-switch__toggle:hover { transform: translateY(-1px); background: rgba(255,255,255,.2); }
.header.is-scrolled .lang-switch__toggle {
  color: var(--text); background: color-mix(in srgb, var(--text) 7%, transparent); border-color: var(--line);
}
.lang-switch__caret { transition: transform var(--t-fast) var(--ease); opacity: .8; }
.lang-switch__menu.is-open ~ .lang-switch__toggle .lang-switch__caret,
#langToggle[aria-expanded="true"] .lang-switch__caret { transform: rotate(180deg); }

.lang-switch__menu {
  position: absolute; top: calc(100% + 10px); inset-inline-end: 0;
  min-width: 180px; padding: .5rem;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius-sm); box-shadow: var(--shadow-hover);
  display: grid; gap: .15rem;
  opacity: 0; visibility: hidden; transform: translateY(-8px);
  transition: opacity var(--t-fast) var(--ease), transform var(--t-fast) var(--ease), visibility var(--t-fast);
  z-index: 60;
}
.lang-switch__menu.is-open { opacity: 1; visibility: visible; transform: translateY(0); }
.lang-switch__option {
  display: flex; align-items: center; gap: .6rem;
  padding: .6rem .8rem; border-radius: 10px; width: 100%;
  font-family: var(--font-display); font-weight: 600; font-size: .9rem; color: var(--text);
  text-align: start;
  transition: background var(--t-fast), color var(--t-fast);
}
.lang-switch__option:hover { background: color-mix(in srgb, var(--primary) 9%, transparent); }
.lang-switch__option.is-active { background: var(--grad-brand); color: #fff; }
.lang-switch__flag { font-size: 1.15rem; line-height: 1; }

/* ---- Arabic font + typographic tweaks (applied when RTL) ---- */
[dir="rtl"] body,
[data-lang="ar"] body { font-family: 'Cairo', 'Manrope', sans-serif; }
[dir="rtl"] .section__title,
[dir="rtl"] .hero__title,
[dir="rtl"] .nav__logo-text,
[dir="rtl"] .btn,
[dir="rtl"] h1, [dir="rtl"] h2, [dir="rtl"] h3, [dir="rtl"] h4 {
  font-family: 'Cairo', 'Poppins', sans-serif;
}
/* Arabic reads better a touch larger with more line-height */
[data-lang="ar"] { --line-height-boost: 1.9; }
[data-lang="ar"] .section__lead,
[data-lang="ar"] .hero__subtitle,
[data-lang="ar"] .product-card__body > p,
[data-lang="ar"] .faq-item__body p { line-height: 1.9; }
/* Keep Latin brand mark / numbers LTR even inside RTL */
[dir="rtl"] .counter,
[dir="rtl"] .stats__item strong,
[dir="rtl"] .about__experience strong,
[dir="rtl"] .product-card__tag,
[dir="rtl"] .contact-card span[data-content="brand.email"],
[dir="rtl"] .slide__stars { direction: ltr; unicode-bidi: isolate; }

/* ---- RTL layout fixes ---- */
/* Serrated eyebrow chip: flip the little strap to the right side */
[dir="rtl"] .section__eyebrow::before { order: 2; }

/* Hero scroll arrow + nav underline already use logical props; a few
   pieces used physical directions — correct them here. */
[dir="rtl"] .about__experience { left: auto; right: -5%; }
@media (max-width: 620px) { [dir="rtl"] .about__experience { right: 0; } }
[dir="rtl"] .about__img--float { right: auto; left: -6%; }

/* Floating action buttons + back-to-top swap sides in RTL */
[dir="rtl"] .fab { right: auto; left: 1.4rem; }
[dir="rtl"] .back-to-top { left: auto; right: 1.4rem; }
@media (max-width: 620px) {
  [dir="rtl"] .fab { left: 1rem; }
  [dir="rtl"] .back-to-top { right: 1rem; }
}

/* Process timeline: move the vertical line + dots to the right */
[dir="rtl"] .process { padding-left: 0; padding-right: 2.1rem; }
[dir="rtl"] .process::before { left: auto; right: 10px; }
[dir="rtl"] .process__dot { left: auto; right: -2.1rem; }

/* Product specs strong label spacing works via flex-gap (dir-agnostic) */

/* Contact card hover slides inward from the correct side */
[dir="rtl"] a.contact-card:hover { transform: translateX(-6px); }

/* Footer links hover shift */
[dir="rtl"] .footer__col a:hover { transform: translateX(-4px); }

/* Lightbox nav arrows: keep prev on the reading-start side */
[dir="rtl"] .lightbox { flex-direction: row-reverse; }

/* Dropdown menu anchors to the correct edge automatically via inset-inline-end */

/* Language menu on mobile: ensure it doesn't overflow the viewport edge */
@media (max-width: 480px) {
  .lang-switch__menu { inset-inline-end: auto; inset-inline-start: 0; }
}

/* Smooth the direction/transition when switching languages */
html { transition: none; }

/* ============================================================
   26. PRODUCT PAGE (product.html)
   ------------------------------------------------------------
   Main product image on the LEFT, size chart + extra image on
   the RIGHT. Uses logical properties so RTL (Arabic) flips it
   automatically.
   ============================================================ */
.pp { padding-top: calc(var(--nav-h) + clamp(2rem, 5vw, 3.5rem)); }

/* Back link */
.pp__back {
  display: inline-flex; align-items: center; gap: .5rem;
  font-family: var(--font-display); font-weight: 600; font-size: .9rem;
  color: var(--text-muted); margin-bottom: 1.6rem;
  transition: color var(--t-fast), gap var(--t-fast) var(--ease);
}
.pp__back:hover { color: var(--primary); gap: .75rem; }
/* Arrow points back toward the start of the reading direction */
.pp__back svg { transform: rotate(180deg); }
[dir="rtl"] .pp__back svg { transform: rotate(0deg); }

/* Heading */
.pp__head { margin-bottom: clamp(1.6rem, 4vw, 2.4rem); max-width: 760px; }
.pp__tag {
  display: inline-block;
  font-family: var(--font-display); font-size: .7rem; font-weight: 700;
  letter-spacing: .12em; text-transform: uppercase; color: #fff;
  padding: .38rem .85rem; border-radius: 999px; margin-bottom: .9rem;
  background: var(--grad-brand); box-shadow: 0 6px 16px rgba(13, 110, 253, .4);
}
.pp__title {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 2.7rem); font-weight: 800;
  line-height: 1.15; letter-spacing: -.02em;
}
.pp__desc { margin-top: .8rem; color: var(--text-muted); font-size: 1.04rem; }

/* Two-column layout: image left, panels right */
.pp__grid {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: clamp(1.6rem, 4vw, 3rem);
  align-items: start;
}

/* LEFT — main product image */
.pp__main-img {
  border-radius: var(--radius-lg); overflow: hidden;
  background: var(--surface); border: 1px solid var(--line);
  box-shadow: var(--shadow-soft); cursor: zoom-in;
  transition: box-shadow var(--t-mid) var(--ease);
}
.pp__main-img:hover { box-shadow: var(--shadow-hover); }
.pp__main-img img {
  width: 100%; aspect-ratio: 4 / 3.4; object-fit: cover; display: block;
  transition: transform var(--t-slow) var(--ease);
}
.pp__main-img:hover img { transform: scale(1.04); }

/* RIGHT — size chart + extra image */
.pp__side { display: grid; gap: 1.2rem; }
.pp__panel { display: grid; gap: .55rem; }
.pp__panel figcaption {
  font-family: var(--font-display); font-size: .8rem; font-weight: 700;
  letter-spacing: .1em; text-transform: uppercase; color: var(--primary);
}
.pp__panel-img {
  border-radius: var(--radius); overflow: hidden;
  background: var(--surface); border: 1px solid var(--line);
  box-shadow: var(--shadow-soft); cursor: zoom-in;
  transition: transform var(--t-mid) var(--ease), box-shadow var(--t-mid) var(--ease);
}
.pp__panel-img:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); }
/* 'contain' so a size-chart diagram is never cropped */
.pp__panel-img img {
  width: 100%; max-height: 340px; object-fit: contain;
  display: block; background: #fff; padding: .4rem;
}

/* Specs list */
.pp__specs { display: grid; gap: .5rem; margin-top: .4rem; }
.pp__specs li {
  display: flex; gap: .8rem; align-items: baseline;
  padding-bottom: .5rem; border-bottom: 1px dashed var(--line);
  font-size: .9rem; color: var(--text-muted);
}
.pp__specs strong {
  flex: none; min-width: 88px;
  font-family: var(--font-display); font-size: .72rem; font-weight: 700;
  letter-spacing: .08em; text-transform: uppercase; color: var(--primary);
}
.pp__side .btn { margin-top: .6rem; justify-self: start; }

.pp__empty { color: var(--text-muted); }

/* Product not found */
.pp__missing { text-align: center; padding: clamp(3rem, 10vw, 6rem) 0; }
.pp__missing h1 {
  font-family: var(--font-display); font-size: clamp(1.4rem, 3vw, 2rem);
  margin-bottom: 1.4rem;
}

/* Responsive */
@media (max-width: 900px) {
  .pp__grid { grid-template-columns: 1fr; }
  .pp__panel-img img { max-height: 420px; }
}
@media (max-width: 620px) {
  .pp__specs strong { min-width: 72px; }
  .pp__side .btn { justify-self: stretch; width: 100%; }
}
