/* ============================================================
   VECTOSAGE — Style Sheet
   Brand colors extracted from logo:
   Gold  #dbb869 / #e5ca7c   |   Blue  #6bafd3 / #487ba7
   Dark  #161a1d
   ============================================================ */

/* ---------- CSS Variables (Themes) ---------- */
:root {
  --gold: #dbb869;
  --gold-light: #e5ca7c;
  --gold-dark: #b78f4b;
  --blue: #6bafd3;
  --blue-dark: #487ba7;
  --gradient: linear-gradient(135deg, var(--gold) 0%, var(--blue) 100%);
  --gradient-gold: linear-gradient(135deg, var(--gold-light), var(--gold-dark));

  --radius: 16px;
  --radius-sm: 10px;
  --transition: 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  --shadow-card: 0 10px 40px rgba(0, 0, 0, 0.12);
  --navbar-h: 76px;
}

/* Dark theme (default) */
html[data-theme="dark"] {
  --bg: #0f1215;
  --bg-alt: #161a1d;
  --bg-card: #1b2025;
  --bg-glass: rgba(27, 32, 37, 0.75);
  --text: #f2f4f6;
  --text-muted: #9aa4ad;
  --border: rgba(255, 255, 255, 0.08);
  --shadow-card: 0 10px 40px rgba(0, 0, 0, 0.45);
  --hero-grid: rgba(255, 255, 255, 0.04);
  --input-bg: #12161a;
  color-scheme: dark;
}

/* Light theme */
html[data-theme="light"] {
  --bg: #f7f8fa;
  --bg-alt: #ffffff;
  --bg-card: #ffffff;
  --bg-glass: rgba(255, 255, 255, 0.8);
  --text: #161a1d;
  --text-muted: #5b6670;
  --border: rgba(22, 26, 29, 0.09);
  --shadow-card: 0 10px 40px rgba(22, 26, 29, 0.08);
  --hero-grid: rgba(22, 26, 29, 0.05);
  --input-bg: #f0f2f4;
  color-scheme: light;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--navbar-h);
}

body {
  font-family: "Cairo", "Poppins", sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  overflow-x: hidden;
  transition: background var(--transition), color var(--transition);
}

html[lang="en"] body {
  font-family: "Poppins", "Cairo", sans-serif;
}

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

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

::selection {
  background: var(--gold);
  color: #161a1d;
}

/* Scrollbar */
::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--bg-alt); }
::-webkit-scrollbar-thumb {
  background: linear-gradient(var(--gold), var(--blue));
  border-radius: 10px;
}

/* ---------- Loader ---------- */
.loader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: #0f1215;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 26px;
  transition: opacity 0.6s ease, visibility 0.6s ease;
}
.loader.hide { opacity: 0; visibility: hidden; }
.loader__logo {
  width: 110px;
  height: 110px;
  object-fit: cover;
  border-radius: 26px;
  animation: pulse 1.6s ease-in-out infinite;
  box-shadow: 0 0 60px rgba(219, 184, 105, 0.35);
}
.loader__bar {
  width: 200px;
  height: 4px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  overflow: hidden;
}
.loader__bar span {
  display: block;
  height: 100%;
  width: 40%;
  background: var(--gradient);
  border-radius: 10px;
  animation: load 1.2s ease-in-out infinite;
}
@keyframes load {
  0% { transform: translateX(-120%); }
  100% { transform: translateX(320%); }
}
@keyframes pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.06); }
}

/* ---------- Navbar ---------- */
.navbar {
  position: fixed;
  top: 0;
  inset-inline: 0;
  z-index: 1000;
  height: var(--navbar-h);
  transition: var(--transition);
}
.navbar.scrolled {
  background: var(--bg-glass);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.08);
}
.navbar__inner {
  height: var(--navbar-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}
.brand__logo {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  overflow: hidden;
  border: 2px solid var(--gold);
  box-shadow: 0 0 18px rgba(219, 184, 105, 0.35);
  flex-shrink: 0;
}
.brand__logo img { width: 100%; height: 100%; object-fit: cover; }
.brand__name {
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: 1px;
  font-family: "Poppins", sans-serif;
}
.brand__name span {
  background: var(--gradient-gold);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 6px;
}
.nav-link {
  padding: 8px 16px;
  border-radius: 30px;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text-muted);
  transition: var(--transition);
  position: relative;
}
.nav-link:hover { color: var(--text); }
.nav-link.active {
  color: var(--text);
  background: var(--border);
}

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

.icon-btn {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  border: 1px solid var(--border);
  background: var(--bg-card);
  transition: var(--transition);
  position: relative;
}
.icon-btn:hover {
  border-color: var(--gold);
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(219, 184, 105, 0.25);
}
.icon-btn svg { width: 20px; height: 20px; position: absolute; transition: 0.4s ease; }
html[data-theme="dark"] .icon-sun { opacity: 1; transform: rotate(0) scale(1); }
html[data-theme="dark"] .icon-moon { opacity: 0; transform: rotate(90deg) scale(0.4); }
html[data-theme="light"] .icon-sun { opacity: 0; transform: rotate(-90deg) scale(0.4); }
html[data-theme="light"] .icon-moon { opacity: 1; transform: rotate(0) scale(1); }

.lang-btn {
  display: flex;
  align-items: center;
  gap: 7px;
  height: 42px;
  padding: 0 16px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--bg-card);
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.5px;
  transition: var(--transition);
}
.lang-btn:hover {
  border-color: var(--blue);
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(107, 175, 211, 0.25);
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--bg-card);
  align-items: center;
  justify-content: center;
}
.hamburger span {
  width: 20px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: var(--transition);
}
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 32px;
  border-radius: 40px;
  font-weight: 700;
  font-size: 1rem;
  transition: var(--transition);
  border: 2px solid transparent;
  white-space: nowrap;
}
.btn--primary {
  background: var(--gradient-gold);
  color: #161a1d;
  box-shadow: 0 8px 24px rgba(219, 184, 105, 0.35);
}
.btn--primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 34px rgba(219, 184, 105, 0.5);
}
.btn--ghost {
  border-color: var(--border);
  color: var(--text);
  background: var(--bg-card);
}
.btn--ghost:hover {
  border-color: var(--blue);
  transform: translateY(-3px);
  box-shadow: 0 10px 26px rgba(107, 175, 211, 0.25);
}
.btn--light {
  background: #fff;
  color: #161a1d;
}
.btn--light:hover { transform: translateY(-3px); box-shadow: 0 14px 34px rgba(0,0,0,0.25); }
.btn--full { width: 100%; }

/* ---------- Hero ---------- */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  padding: calc(var(--navbar-h) + 40px) 0 80px;
  overflow: hidden;
}
.hero__bg { position: absolute; inset: 0; pointer-events: none; }
.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.35;
  animation: float 9s ease-in-out infinite;
}
.orb--gold {
  width: 480px; height: 480px;
  background: var(--gold);
  top: -140px;
  inset-inline-start: -120px;
}
.orb--blue {
  width: 420px; height: 420px;
  background: var(--blue-dark);
  bottom: -120px;
  inset-inline-end: -100px;
  animation-delay: -4s;
}
.grid-overlay {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--hero-grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--hero-grid) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 80% 70% at 50% 40%, #000 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 50% 40%, #000 30%, transparent 75%);
}
@keyframes float {
  0%, 100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-30px) scale(1.05); }
}

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

.hero__badge {
  display: inline-block;
  padding: 8px 20px;
  border-radius: 30px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--gold);
  margin-bottom: 24px;
  box-shadow: var(--shadow-card);
}
.hero__title {
  font-size: clamp(2.2rem, 5.2vw, 3.8rem);
  font-weight: 900;
  line-height: 1.25;
  margin-bottom: 22px;
}
.hero__title span { display: block; }
.text-gradient {
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hero__text {
  color: var(--text-muted);
  font-size: 1.08rem;
  max-width: 540px;
  margin-bottom: 18px;
}
.hero__text:last-of-type {
  margin-bottom: 34px;
}
.hero__actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 46px;
}
/* Hero visual */
.hero__visual { display: flex; justify-content: center; }
.hero__logo-frame {
  position: relative;
  width: min(400px, 100%);
  aspect-ratio: 1;
  display: grid;
  place-items: center;
}
.hero__logo-ring {
  position: absolute;
  inset: -6%;
  border-radius: 50%;
  background: conic-gradient(from 0deg, var(--gold), var(--blue), transparent, var(--gold));
  animation: spin 10s linear infinite;
  opacity: 0.5;
  filter: blur(2px);
  mask: radial-gradient(farthest-side, transparent calc(100% - 3px), #000 calc(100% - 2px));
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 3px), #000 calc(100% - 2px));
}
@keyframes spin { to { transform: rotate(360deg); } }
.hero__logo {
  width: 78%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 32px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.4), 0 0 60px rgba(219, 184, 105, 0.2);
  animation: heroFloat 6s ease-in-out infinite;
}
@keyframes heroFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-16px); }
}

.float-card {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: 14px;
  background: var(--bg-glass);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-card);
  font-size: 0.85rem;
  font-weight: 700;
  animation: heroFloat 5s ease-in-out infinite;
  z-index: 2;
}
.float-card svg { width: 18px; height: 18px; }
.float-card--1 { top: 6%; inset-inline-start: -8%; color: var(--gold); animation-delay: -1s; }
.float-card--2 { bottom: 22%; inset-inline-end: -10%; color: var(--blue); animation-delay: -2.5s; }
.float-card--3 { bottom: -4%; inset-inline-start: 8%; color: var(--gold-light); animation-delay: -4s; }

.scroll-down {
  position: absolute;
  bottom: 26px;
  left: 50%;
  transform: translateX(-50%);
  width: 26px;
  height: 44px;
  border: 2px solid var(--text-muted);
  border-radius: 20px;
  display: flex;
  justify-content: center;
  padding-top: 8px;
  opacity: 0.7;
}
.scroll-down span {
  width: 4px;
  height: 9px;
  border-radius: 4px;
  background: var(--gold);
  animation: scrollDot 1.8s ease-in-out infinite;
}
@keyframes scrollDot {
  0% { transform: translateY(0); opacity: 1; }
  70% { transform: translateY(14px); opacity: 0; }
  100% { transform: translateY(0); opacity: 0; }
}

/* ---------- Sections ---------- */
.section { padding: 100px 0; position: relative; }
.section__head {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 60px;
}
.section__tag {
  display: inline-block;
  padding: 6px 18px;
  border-radius: 30px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--gold);
  font-weight: 700;
  font-size: 0.85rem;
  margin-bottom: 16px;
}
.section__title {
  font-size: clamp(1.7rem, 3.6vw, 2.5rem);
  font-weight: 800;
  line-height: 1.3;
  margin-bottom: 14px;
}
.section__sub { color: var(--text-muted); }

/* ---------- Services ---------- */
.services { background: var(--bg-alt); }
.services__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 26px;
}
.service-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 36px 30px;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}
.service-card::before {
  content: "";
  position: absolute;
  top: 0;
  inset-inline: 0;
  height: 4px;
  background: var(--gradient);
  transform: scaleX(0);
  transform-origin: inline-start;
  transition: var(--transition);
}
.service-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-card);
  border-color: transparent;
}
.service-card:hover::before { transform: scaleX(1); }
.service-card__icon {
  width: 62px;
  height: 62px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, rgba(219,184,105,0.15), rgba(107,175,211,0.15));
  color: var(--gold);
  margin-bottom: 22px;
  transition: var(--transition);
}
.service-card:hover .service-card__icon {
  background: var(--gradient-gold);
  color: #161a1d;
  transform: rotate(-6deg) scale(1.05);
}
.service-card__icon svg { width: 30px; height: 30px; }
.service-card h3 { font-size: 1.2rem; font-weight: 700; margin-bottom: 10px; }
.service-card p { color: var(--text-muted); font-size: 0.95rem; }

/* Double service cards (services section) */
.services__grid--double {
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 26px;
  max-width: 900px;
  margin-inline: auto;
}
.service-card--rnd {
  display: block;
  text-align: center;
  padding: 46px 40px;
  cursor: pointer;
}
.service-card--rnd .service-card__icon {
  margin-inline: auto;
  width: 74px;
  height: 74px;
}
.service-card--rnd .service-card__icon svg { width: 36px; height: 36px; }
.service-card--rnd h3 { font-size: 1.45rem; }
.service-card--rnd p { max-width: 480px; margin-inline: auto; }
.service-card__link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 22px;
  font-weight: 700;
  color: var(--gold);
  transition: var(--transition);
}
.service-card--rnd:hover .service-card__link {
  gap: 14px;
  color: var(--gold-light);
}

/* ---------- R&D Page ---------- */
.rnd-hero {
  position: relative;
  padding: calc(var(--navbar-h) + 70px) 0 70px;
  overflow: hidden;
  text-align: center;
}
.rnd-hero .container { position: relative; z-index: 1; }
.rnd-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 26px;
  font-weight: 700;
  font-size: 0.92rem;
  color: var(--text-muted);
  transition: var(--transition);
}
.rnd-back:hover { color: var(--gold); transform: translateX(4px); }
html[dir="rtl"] .rnd-back:hover { transform: translateX(-4px); }
.rnd-hero__title {
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  font-weight: 900;
  line-height: 1.25;
  margin-bottom: 20px;
}
.rnd-hero__title span { display: block; }
.rnd-hero__text {
  color: var(--text-muted);
  font-size: 1.08rem;
  max-width: 720px;
  margin-inline: auto;
}

.rnd-list {
  display: grid;
  gap: 30px;
  padding: 40px 0 90px;
}
.service-detail {
  display: grid;
  grid-template-columns: auto auto 1fr;
  gap: 26px;
  align-items: start;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 40px 36px;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}
.service-detail::before {
  content: "";
  position: absolute;
  top: 0;
  inset-inline: 0;
  height: 4px;
  background: var(--gradient);
  transform: scaleX(0);
  transform-origin: inline-start;
  transition: var(--transition);
}
.service-detail:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-card);
  border-color: transparent;
}
.service-detail:hover::before { transform: scaleX(1); }
.service-detail__num {
  font-size: 2.2rem;
  font-weight: 800;
  font-family: "Poppins", sans-serif;
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  opacity: 0.85;
  line-height: 1;
  padding-top: 6px;
}
.service-detail__icon {
  width: 64px;
  height: 64px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, rgba(219,184,105,0.15), rgba(107,175,211,0.15));
  color: var(--gold);
  flex-shrink: 0;
  transition: var(--transition);
}
.service-detail:hover .service-detail__icon {
  background: var(--gradient-gold);
  color: #161a1d;
  transform: rotate(-6deg) scale(1.05);
}
.service-detail__icon svg { width: 30px; height: 30px; }
.service-detail__body h3 {
  font-size: 1.35rem;
  font-weight: 800;
  margin-bottom: 12px;
}
.service-detail__body > p {
  color: var(--text-muted);
  font-size: 0.98rem;
  margin-bottom: 20px;
}
.service-detail__features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 10px 20px;
  margin-bottom: 22px;
}
.service-detail__features li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.92rem;
  font-weight: 600;
}
.service-detail__features svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  color: var(--gold);
  background: rgba(219, 184, 105, 0.12);
  border-radius: 50%;
  padding: 3px;
}
.service-detail__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.service-detail__tags span {
  padding: 5px 14px;
  border-radius: 30px;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 0.8rem;
  font-weight: 700;
  font-family: "Poppins", sans-serif;
  transition: var(--transition);
}
.service-detail:hover .service-detail__tags span {
  border-color: rgba(219, 184, 105, 0.4);
  color: var(--gold);
}

/* ---------- Coming Soon (Products Page) ---------- */
.coming-soon { padding-top: 40px; }
.coming-soon__card {
  max-width: 640px;
  margin-inline: auto;
  text-align: center;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 60px 40px;
  position: relative;
  overflow: hidden;
  transition: var(--transition);
}
.coming-soon__card::before {
  content: "";
  position: absolute;
  top: 0;
  inset-inline: 0;
  height: 4px;
  background: var(--gradient);
}
.coming-soon__card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-card);
}
.coming-soon__icon {
  width: 84px;
  height: 84px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, rgba(219,184,105,0.15), rgba(107,175,211,0.15));
  color: var(--gold);
  margin: 0 auto 26px;
  animation: pulse 2.4s ease-in-out infinite;
}
.coming-soon__icon svg { width: 40px; height: 40px; }
.coming-soon__card h2 {
  font-size: clamp(1.8rem, 4vw, 2.4rem);
  font-weight: 800;
  margin-bottom: 14px;
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.coming-soon__card p {
  color: var(--text-muted);
  font-size: 1.02rem;
  max-width: 460px;
  margin: 0 auto 30px;
}

/* ---------- Products: Categories & Cards ---------- */
.products-section { padding-top: 50px; }

.product-category {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: var(--transition);
  margin-bottom: 26px;
}
.product-category:hover { box-shadow: var(--shadow-card); }

.product-category__head {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 24px 28px;
  text-align: start;
  transition: var(--transition);
}
.product-category__head:hover { background: rgba(219, 184, 105, 0.05); }

.product-category__icon {
  width: 54px;
  height: 54px;
  flex-shrink: 0;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, rgba(219,184,105,0.15), rgba(107,175,211,0.15));
  color: var(--gold);
}
.product-category__icon svg { width: 26px; height: 26px; }

.product-category__title {
  font-size: clamp(1.2rem, 2.6vw, 1.5rem);
  font-weight: 800;
  flex: 1;
}

/* Plus / Minus indicator */
.product-category__plus {
  position: relative;
  width: 38px;
  height: 38px;
  flex-shrink: 0;
  border-radius: 50%;
  border: 2px solid var(--gold);
  transition: var(--transition);
}
.product-category__plus::before,
.product-category__plus::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  background: var(--gold);
  border-radius: 2px;
  transform: translate(-50%, -50%);
  transition: var(--transition);
}
.product-category__plus::before { width: 16px; height: 2.5px; }
.product-category__plus::after { width: 2.5px; height: 16px; }
.product-category.open .product-category__plus {
  background: var(--gold);
  transform: rotate(180deg);
}
.product-category.open .product-category__plus::before { background: #161a1d; }
.product-category.open .product-category__plus::after { opacity: 0; }

/* Collapsible body */
.product-category__body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}
.product-category__inner {
  padding: 10px 28px 34px;
  border-top: 1px solid var(--border);
}

/* ----- Product Card ----- */
.product-card {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 40px 34px;
  margin-top: 24px;
  position: relative;
  overflow: hidden;
}
.product-card::before {
  content: "";
  position: absolute;
  top: 0;
  inset-inline: 0;
  height: 4px;
  background: var(--gradient);
}

.product-card__head {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 30px;
  flex-wrap: wrap;
}
.product-card__logo {
  width: 92px;
  height: 92px;
  border-radius: 22px;
  object-fit: cover;
  box-shadow: var(--shadow-card);
  border: 1px solid var(--border);
}
.product-card__name {
  font-size: clamp(1.6rem, 4vw, 2.2rem);
  font-weight: 900;
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.product-card__name-en {
  font-size: 0.6em;
  font-weight: 700;
}
.product-card__badge {
  display: inline-block;
  margin-top: 6px;
  padding: 5px 16px;
  border-radius: 30px;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--gold);
  border: 1px solid rgba(219, 184, 105, 0.4);
  background: rgba(219, 184, 105, 0.08);
}

/* Copy blocks */
.product-card__copy { margin-bottom: 26px; }
.product-card__copy p { margin-bottom: 14px; color: var(--text-muted); font-size: 1.02rem; }
.product-card__copy--ar { border-inline-start: 3px solid var(--gold); padding-inline-start: 20px; }
.product-card__copy--en { border-inline-start: 3px solid var(--blue); padding-inline-start: 20px; }

.product-card__hook {
  font-size: 1.3rem !important;
  font-weight: 800;
  color: var(--text) !important;
}
.product-card__highlight {
  color: var(--gold) !important;
  font-weight: 700;
  font-size: 1.1rem !important;
}
.product-card__slogan {
  font-weight: 800;
  font-size: 1.12rem !important;
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.product-card__points,
.product-card__features { margin: 14px 0 18px; }
.product-card__points li,
.product-card__features li {
  position: relative;
  padding-inline-start: 24px;
  margin-bottom: 8px;
  color: var(--text);
  font-weight: 600;
}
.product-card__points li::before {
  content: "";
  position: absolute;
  inset-inline-start: 0;
  top: 0.62em;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--gradient-gold);
}
.product-card__features li { display: flex; align-items: center; gap: 10px; padding-inline-start: 0; }
.product-card__feature-icon { font-size: 1.15rem; }

/* Language-based copy visibility */
html[lang="ar"] .product-card__copy--en { display: none; }
html[lang="en"] .product-card__copy--ar { display: none; }

/* Gallery Slider */
.product-card__gallery {
  position: relative;
  margin: 30px 0;
}
.gallery-viewport {
  overflow: hidden;
  border-radius: var(--radius-sm);
  background: var(--bg-card);
  border: 1px solid var(--border);
}
.gallery-track {
  display: flex;
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}
.gallery-track img {
  width: 100%;
  height: 520px;
  flex-shrink: 0;
  object-fit: contain;
  border-radius: var(--radius-sm);
  cursor: zoom-in;
  transition: var(--transition);
  user-select: none;
  padding: 10px;
}

@media (max-width: 992px) {
  .gallery-track img { height: 440px; }
}
@media (max-width: 640px) {
  .gallery-track img { height: 340px; padding: 6px; }
}
.gallery-track img:hover {
  box-shadow: 0 18px 44px rgba(219, 184, 105, 0.25);
}

/* Gallery arrows */
.gallery-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 46px;
  height: 46px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--bg-glass);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--border);
  color: var(--gold);
  box-shadow: var(--shadow-card);
  transition: var(--transition);
  z-index: 2;
}
.gallery-arrow:hover {
  background: var(--gradient-gold);
  color: #161a1d;
  border-color: transparent;
  transform: translateY(-50%) scale(1.08);
}
.gallery-arrow svg { width: 22px; height: 22px; }
.gallery-arrow--prev { left: 12px; }
.gallery-arrow--next { right: 12px; }

/* Gallery dots */
.gallery-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 16px;
}
.gallery-dots button {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--border);
  transition: var(--transition);
}
.gallery-dots button.active {
  background: var(--gold);
  transform: scale(1.3);
  box-shadow: 0 0 10px rgba(219, 184, 105, 0.5);
}

/* ---------- Lightbox (Image Pop-out) ---------- */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(10, 12, 14, 0.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.35s ease, visibility 0.35s ease;
}
.lightbox.open { opacity: 1; visibility: visible; }
.lightbox__img {
  max-width: min(92vw, 900px);
  max-height: 85vh;
  border-radius: var(--radius);
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.6);
  transform: scale(0.85);
  transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.lightbox.open .lightbox__img { transform: scale(1); }
.lightbox__close {
  position: absolute;
  top: 22px;
  right: 22px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #fff;
  transition: var(--transition);
  z-index: 2;
}
.lightbox__close:hover { background: #e05555; transform: rotate(90deg); }
.lightbox__close svg { width: 22px; height: 22px; }
.lightbox__arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: var(--gold);
  transition: var(--transition);
  z-index: 2;
}
.lightbox__arrow:hover {
  background: var(--gradient-gold);
  color: #161a1d;
  border-color: transparent;
}
.lightbox__arrow svg { width: 24px; height: 24px; }
.lightbox__arrow--prev { left: 22px; }
.lightbox__arrow--next { right: 22px; }

@media (max-width: 640px) {
  .lightbox__arrow { width: 42px; height: 42px; }
  .lightbox__arrow--prev { left: 10px; }
  .lightbox__arrow--next { right: 10px; }
  .lightbox__close { top: 14px; right: 14px; }
}

/* Pricing */
.product-card__pricing {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 22px;
  margin: 26px 0 24px;
  flex-wrap: wrap;
}
.product-card__price-old {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-muted);
  text-decoration: line-through;
  text-decoration-color: #e05555;
  text-decoration-thickness: 3px;
}
.product-card__price-new {
  font-size: 2.4rem;
  font-weight: 900;
  background: var(--gradient-gold);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Order button */
.product-card__order {
  display: flex;
  width: fit-content;
  margin-inline: auto;
  font-size: 1.1rem;
  padding: 16px 52px;
}

@media (max-width: 640px) {
  .product-card { padding: 28px 20px; }
  .product-card__gallery { grid-template-columns: repeat(2, 1fr); }
  .product-card__price-new { font-size: 2rem; }
  .product-category__head { padding: 18px 18px; gap: 12px; }
  .product-category__inner { padding: 8px 18px 26px; }
}

/* ---------- About ---------- */
.about__inner {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 70px;
  align-items: center;
}
.about__img-wrap {
  position: relative;
  border-radius: 24px;
}
.about__img-wrap::before {
  content: "";
  position: absolute;
  inset: -14px;
  border-radius: 30px;
  background: var(--gradient);
  opacity: 0.25;
  z-index: -1;
  filter: blur(6px);
}
.about__img-wrap img {
  border-radius: 24px;
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  box-shadow: var(--shadow-card);
}
.about__content > p { color: var(--text-muted); margin-bottom: 26px; }
.about__content .section__title { margin-bottom: 18px; }
.about__list { margin-bottom: 32px; display: grid; gap: 14px; }
.about__list li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 600;
}
.about__list svg {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  color: var(--gold);
  background: rgba(219, 184, 105, 0.12);
  border-radius: 50%;
  padding: 3px;
}

/* ---------- Why Us ---------- */
.why { background: var(--bg-alt); }
.why__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 26px;
}
.why-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 34px 28px;
  transition: var(--transition);
  position: relative;
}
.why-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-card);
  border-color: var(--gold);
}
.why-card__num {
  font-size: 2.6rem;
  font-weight: 800;
  font-family: "Poppins", sans-serif;
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  opacity: 0.85;
  display: block;
  margin-bottom: 12px;
}
.why-card h3 { font-size: 1.15rem; font-weight: 700; margin-bottom: 10px; }
.why-card p { color: var(--text-muted); font-size: 0.93rem; }

/* ---------- CTA ---------- */
.cta {
  background: var(--gradient);
  padding: 80px 0;
  position: relative;
  overflow: hidden;
}
.cta::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M30 0v60M0 30h60' stroke='%23ffffff' stroke-opacity='0.08' stroke-width='1'/%3E%3C/svg%3E");
}
.cta__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  flex-wrap: wrap;
  position: relative;
}
.cta h2 {
  color: #fff;
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  font-weight: 800;
  text-shadow: 0 2px 14px rgba(0,0,0,0.2);
  max-width: 640px;
}

/* ---------- Contact ---------- */
.contact__inner {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 50px;
  align-items: start;
}
.contact__info { display: grid; gap: 22px; }
.info-item {
  display: flex;
  align-items: center;
  gap: 18px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 24px;
  transition: var(--transition);
}
.info-item:hover { border-color: var(--gold); transform: translateX(6px); }
html[dir="rtl"] .info-item:hover { transform: translateX(-6px); }
.info-item__icon {
  width: 52px;
  height: 52px;
  flex-shrink: 0;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, rgba(219,184,105,0.15), rgba(107,175,211,0.15));
  color: var(--gold);
}
.info-item__icon svg { width: 24px; height: 24px; }
.info-item h4 { font-size: 1rem; font-weight: 700; }
.info-item p { color: var(--text-muted); font-size: 0.92rem; }

.socials { display: flex; gap: 12px; margin-top: 6px; }
.socials a {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text-muted);
  transition: var(--transition);
}
.socials a:hover {
  background: var(--gradient-gold);
  color: #161a1d;
  border-color: transparent;
  transform: translateY(-4px);
  box-shadow: 0 10px 24px rgba(219, 184, 105, 0.35);
}
.socials svg { width: 20px; height: 20px; }

.contact__form {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 36px;
  box-shadow: var(--shadow-card);
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
.form-group { margin-bottom: 18px; }
.form-group label {
  display: block;
  font-weight: 700;
  font-size: 0.9rem;
  margin-bottom: 8px;
}
.form-group input,
.form-group textarea {
  width: 100%;
  padding: 13px 18px;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--border);
  background: var(--input-bg);
  color: var(--text);
  font-size: 0.95rem;
  transition: var(--transition);
  resize: vertical;
}
.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 4px rgba(219, 184, 105, 0.15);
}
.form-group input::placeholder,
.form-group textarea::placeholder { color: var(--text-muted); opacity: 0.7; }

.form-success {
  display: none;
  margin-top: 16px;
  padding: 12px 18px;
  border-radius: var(--radius-sm);
  background: rgba(46, 204, 113, 0.12);
  border: 1px solid rgba(46, 204, 113, 0.35);
  color: #2ecc71;
  font-weight: 600;
  text-align: center;
}
.form-success.show { display: block; animation: fadeUp 0.5s ease; }

/* ---------- Footer ---------- */
.footer {
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
  padding-top: 70px;
}
.footer__inner {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 50px;
  padding-bottom: 50px;
}
.footer__brand p {
  color: var(--text-muted);
  margin-top: 18px;
  max-width: 320px;
  font-size: 0.95rem;
}
.footer__links h4 {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 18px;
  color: var(--gold);
}
.footer__links a {
  display: block;
  color: var(--text-muted);
  padding: 5px 0;
  font-size: 0.93rem;
  transition: var(--transition);
}
.footer__links a:hover { color: var(--gold); transform: translateX(5px); }
html[dir="rtl"] .footer__links a:hover { transform: translateX(-5px); }
.footer__bottom {
  border-top: 1px solid var(--border);
  padding: 22px 0;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* ---------- Back to top ---------- */
.to-top {
  position: fixed;
  bottom: 26px;
  inset-inline-end: 26px;
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: var(--gradient-gold);
  color: #161a1d;
  display: grid;
  place-items: center;
  box-shadow: 0 10px 26px rgba(219, 184, 105, 0.4);
  opacity: 0;
  visibility: hidden;
  transform: translateY(16px);
  transition: var(--transition);
  z-index: 900;
}
.to-top.show { opacity: 1; visibility: visible; transform: translateY(0); }
.to-top:hover { transform: translateY(-4px); }
.to-top svg { width: 22px; height: 22px; }

/* ---------- Reveal Animation ---------- */
.reveal {
  opacity: 0;
  transform: translateY(36px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ---------- Responsive ---------- */
@media (max-width: 992px) {
  .hero__inner { grid-template-columns: 1fr; text-align: center; gap: 50px; }
  .hero__text { margin-inline: auto; }
  .hero__actions { justify-content: center; }
  .hero__visual { order: -1; }
  .hero__logo-frame { width: min(300px, 80%); }
  .float-card--1 { inset-inline-start: -4%; }
  .float-card--2 { inset-inline-end: -4%; }
  .about__inner { grid-template-columns: 1fr; gap: 60px; }
  .about__visual { max-width: 420px; margin-inline: auto; }
  .contact__inner { grid-template-columns: 1fr; }
  .footer__inner { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .nav-links {
    position: fixed;
    top: var(--navbar-h);
    inset-inline: 0;
    flex-direction: column;
    align-items: stretch;
    background: var(--bg-glass);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    padding: 16px 4%;
    gap: 4px;
    transform: translateY(-130%);
    transition: transform 0.4s ease;
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
  }
  .nav-links.open { transform: translateY(0); }
  .nav-link { padding: 13px 18px; border-radius: 12px; }
  .hamburger { display: flex; }
  .section { padding: 70px 0; }
  .cta__inner { justify-content: center; text-align: center; }
  .service-detail {
    grid-template-columns: 1fr;
    gap: 18px;
    padding: 30px 24px;
  }
  .service-detail__num { font-size: 1.8rem; padding-top: 0; }
  .service-detail__icon { width: 56px; height: 56px; }
  .service-detail__features { grid-template-columns: 1fr; }
  .rnd-hero { padding: calc(var(--navbar-h) + 50px) 0 50px; }
  .rnd-list { padding: 30px 0 70px; }
}

@media (max-width: 520px) {
  .form-row { grid-template-columns: 1fr; }
  .footer__inner { grid-template-columns: 1fr; gap: 36px; }
  .contact__form { padding: 26px 20px; }
  .float-card { font-size: 0.75rem; padding: 8px 12px; }
  .brand__name { font-size: 1.1rem; }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  html { scroll-behavior: auto; }

/* ---------- Privacy Policy Page ---------- */
.privacy-card {
  max-width: 860px;
  margin-inline: auto;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: clamp(26px, 4vw, 56px);
  box-shadow: var(--shadow-card);
}
.privacy-meta {
  text-align: center;
  margin-bottom: 34px;
  color: var(--text-muted);
  font-size: 0.9rem;
  font-weight: 600;
}
.privacy-block {
  padding-bottom: 26px;
  margin-bottom: 26px;
  border-bottom: 1px solid var(--border);
}
.privacy-block:last-child {
  padding-bottom: 0;
  margin-bottom: 0;
  border-bottom: none;
}
.privacy-block h2 {
  font-size: 1.3rem;
  font-weight: 800;
  margin-bottom: 14px;
  color: var(--gold);
}
.privacy-block > p {
  color: var(--text-muted);
  font-size: 1rem;
  margin-bottom: 14px;
}
.privacy-block > p:last-child { margin-bottom: 0; }
.privacy-block ul {
  list-style: none;
  display: grid;
  gap: 12px;
  margin: 14px 0;
}
.privacy-block ul li {
  position: relative;
  padding-inline-start: 24px;
  color: var(--text-muted);
  font-size: 0.98rem;
}
.privacy-block ul li::before {
  content: "";
  position: absolute;
  inset-inline-start: 0;
  top: 0.72em;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--gradient);
}
.privacy-block ul li strong { color: var(--text); font-weight: 700; }
.privacy-block--en { border-inline-start: 3px solid var(--blue); padding-inline-start: 20px; }
.privacy-block--ar { border-inline-start: 3px solid var(--gold); padding-inline-start: 20px; }
.privacy-contact {
  margin-top: 18px;
  padding: 20px 24px;
  border-radius: var(--radius-sm);
  background: var(--bg-alt);
  border: 1px solid var(--border);
}
.privacy-contact p {
  color: var(--text-muted);
  font-size: 0.98rem;
  margin-bottom: 8px;
}
.privacy-contact p:last-child { margin-bottom: 0; }
.privacy-contact strong { color: var(--text); }
.privacy-contact a { color: var(--gold); font-weight: 600; transition: var(--transition); }
.privacy-contact a:hover { color: var(--gold-light); }
html[lang="ar"] .privacy-block--en { display: none; }
html[lang="en"] .privacy-block--ar { display: none; }

}
