/* ============================================================
   GEC — Global Elite Concern · gec5.com
   Modern dark design system · vanilla CSS · no frameworks
   ============================================================ */

:root {
  --bg: #04060c;
  --panel: rgba(255, 255, 255, 0.04);
  --panel-strong: rgba(255, 255, 255, 0.07);
  --line: rgba(255, 255, 255, 0.09);
  --text: #e9ecf3;
  --muted: #98a2b8;
  --accent-1: #b9bdc7;
  --accent-2: #8e929c;
  --accent-3: #d9dbe0;
  --grad: linear-gradient(100deg, #e8e9ec, #b9bdc7 55%, #8e929c);
  --radius: 18px;
  --nav-h: 72px;
  --font-head: "Space Grotesk", "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
::selection { background: rgba(185, 189, 199, 0.35); }

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background:
    radial-gradient(900px 500px at 85% -10%, rgba(200, 204, 212, 0.10), transparent 60%),
    radial-gradient(800px 600px at -10% 110%, rgba(160, 165, 175, 0.08), transparent 60%);
  pointer-events: none;
  z-index: 0;
}

/* ---------- Navigation ---------- */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 clamp(20px, 5vw, 64px);
  z-index: 50;
  transition: background 0.35s ease, box-shadow 0.35s ease;
}
.nav.scrolled {
  background: rgba(4, 6, 12, 0.72);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 1px 0 var(--line);
}
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--text); }
.brand img {
  width: 38px; height: 38px;
  border-radius: 10px;
  object-fit: cover;
  box-shadow: 0 0 0 1px var(--line), 0 4px 18px rgba(0, 0, 0, 0.45);
}
.brand-name { font-family: var(--font-head); font-weight: 700; letter-spacing: 0.14em; font-size: 0.95rem; }
.brand-name span { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }

.nav-links { display: flex; gap: clamp(14px, 3vw, 34px); align-items: center; list-style: none; }
.nav-links a {
  color: var(--muted); text-decoration: none;
  font-size: 0.92rem; font-weight: 500;
  transition: color 0.25s ease;
  position: relative;
}
.nav-links a::after {
  content: ""; position: absolute; left: 0; bottom: -6px;
  width: 100%; height: 2px; border-radius: 2px;
  background: var(--grad);
  transform: scaleX(0); transform-origin: left;
  transition: transform 0.3s ease;
}
.nav-links a:hover, .nav-links a.active { color: var(--text); }
.nav-links a:hover::after, .nav-links a.active::after { transform: scaleX(1); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  padding: calc(var(--nav-h) + 24px) 20px 40px;
}
.hero-bg {
  position: absolute;
  inset: -6%;
  background: url("../assets/particlebg5.jpg") center / cover no-repeat;
  opacity: 0.38;
  filter: saturate(0.8) brightness(0.75);
  animation: bgDrift 40s ease-in-out infinite alternate;
  z-index: 0;
}
@keyframes bgDrift {
  from { transform: scale(1) translateY(0); }
  to   { transform: scale(1.12) translateY(-2.5%); }
}
.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(120% 90% at 50% 40%, transparent 30%, rgba(4, 6, 12, 0.88) 100%);
}
#particles { position: absolute; inset: 0; z-index: 1; }
.hero-inner { position: relative; z-index: 2; max-width: 980px; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 0.8rem; letter-spacing: 0.32em; text-transform: uppercase;
  color: var(--muted);
  border: 1px solid var(--line);
  padding: 8px 18px; border-radius: 999px;
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(6px);
}
.eyebrow::before {
  content: ""; width: 7px; height: 7px; border-radius: 50%;
  background: var(--accent-3);
  box-shadow: 0 0 12px var(--accent-3);
  animation: pulse 2.4s ease-in-out infinite;
}
@keyframes pulse { 50% { opacity: 0.35; } }

.hero h1 {
  font-family: var(--font-head);
  font-size: clamp(2.4rem, 7vw, 5.2rem);
  line-height: 1.04; font-weight: 700;
  letter-spacing: -0.02em;
  margin: 26px 0 18px;
}
.hero h1 .grad { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero .tagline { font-size: clamp(1.02rem, 2vw, 1.3rem); color: var(--muted); max-width: 640px; margin: 0 auto; }
.hero .tagline strong { color: var(--text); font-weight: 600; }

.hero-cta { margin-top: 38px; display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 30px; border-radius: 999px;
  font-weight: 600; font-size: 0.95rem; text-decoration: none;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.btn-primary { color: #fff; background: var(--grad); box-shadow: 0 8px 30px rgba(185, 189, 199, 0.35); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 14px 40px rgba(185, 189, 199, 0.5); }
.btn-ghost { color: var(--text); border: 1px solid var(--line); background: rgba(255, 255, 255, 0.03); }
.btn-ghost:hover { transform: translateY(-2px); background: var(--panel-strong); }

.contact-strip { margin-top: 56px; display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.chip {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 10px 18px; border-radius: 12px;
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid var(--line);
  color: var(--muted); font-size: 0.88rem;
  backdrop-filter: blur(8px);
  transition: color 0.25s, border-color 0.25s, transform 0.25s;
}
.chip:hover { color: var(--text); border-color: rgba(185, 189, 199, 0.45); transform: translateY(-2px); }
.chip svg { width: 15px; height: 15px; stroke: var(--accent-1); flex: none; }
.chip a { color: inherit; text-decoration: none; }
.chip:hover a { color: var(--text); }

.scroll-hint {
  position: absolute; bottom: 26px; left: 50%; transform: translateX(-50%);
  color: var(--muted); font-size: 0.75rem;
  letter-spacing: 0.25em; text-transform: uppercase;
  z-index: 2; display: flex; flex-direction: column; align-items: center; gap: 8px;
}
.scroll-hint::after {
  content: ""; width: 1px; height: 34px;
  background: linear-gradient(to bottom, var(--accent-1), transparent);
  animation: drop 1.8s ease-in-out infinite;
}
@keyframes drop { 0% { transform: scaleY(0); transform-origin: top; } 55% { transform: scaleY(1); transform-origin: top; } 100% { transform: scaleY(0); transform-origin: bottom; } }

/* ---------- Sections ---------- */
.section {
  position: relative; z-index: 2;
  padding: clamp(70px, 10vw, 130px) clamp(20px, 6vw, 64px);
  max-width: 1120px; margin: 0 auto;
}
.section-title { font-family: var(--font-head); font-size: clamp(1.6rem, 3.4vw, 2.4rem); font-weight: 700; margin-bottom: 14px; }
.section-sub { color: var(--muted); max-width: 640px; margin-bottom: 40px; }

.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; }
.card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px 28px;
  transition: transform 0.3s ease, border-color 0.3s ease, background 0.3s ease;
}
.card:hover { transform: translateY(-4px); border-color: rgba(185, 189, 199, 0.4); background: var(--panel-strong); }
.card h3 { font-family: var(--font-head); font-size: 1.08rem; margin: 16px 0 8px; }
.card p { color: var(--muted); font-size: 0.94rem; }
.card .ico {
  width: 44px; height: 44px; display: grid; place-items: center;
  border-radius: 12px;
  background: rgba(185, 189, 199, 0.12);
  border: 1px solid rgba(185, 189, 199, 0.25);
}
.card .ico svg { width: 20px; height: 20px; stroke: var(--accent-1); }

/* ---------- Legal pages ---------- */
.legal-wrap {
  position: relative; z-index: 2;
  max-width: 860px; margin: 0 auto;
  padding: calc(var(--nav-h) + 60px) 22px 90px;
}
.legal-header { margin-bottom: 44px; }
.legal-header .updated { color: var(--muted); font-size: 0.85rem; margin-top: 10px; }
.legal h1 { font-family: var(--font-head); font-size: clamp(1.9rem, 4.5vw, 2.8rem); margin-bottom: 8px; }
.legal h2 {
  font-family: var(--font-head); font-size: 1.18rem;
  margin: 38px 0 12px; padding-left: 14px;
  border-left: 3px solid var(--accent-1);
}
.legal p, .legal li { color: #c3c9d6; font-size: 0.97rem; }
.legal ul { padding-left: 22px; margin: 10px 0 16px; }
.legal li { margin: 6px 0; list-style: none; position: relative; }
.legal li::before {
  content: ""; position: absolute; left: -16px; top: 0.72em;
  width: 6px; height: 6px; border-radius: 50%; background: var(--grad);
}
.legal a { color: var(--accent-1); text-decoration: none; }
.legal a:hover { text-decoration: underline; }
.lang-switch { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 26px; }
.lang-switch a {
  font-size: 0.82rem; padding: 6px 14px; border-radius: 999px;
  border: 1px solid var(--line); color: var(--muted); text-decoration: none;
  transition: all 0.25s;
}
.lang-switch a:hover, .lang-switch a.current { color: var(--text); border-color: rgba(185, 189, 199, 0.5); background: rgba(185, 189, 199, 0.08); }

/* ---------- Footer ---------- */
.footer {
  position: relative; z-index: 2;
  border-top: 1px solid var(--line);
  padding: 34px clamp(20px, 6vw, 64px);
  display: flex; align-items: center; justify-content: space-between;
  gap: 18px; flex-wrap: wrap;
  background: rgba(255, 255, 255, 0.015);
}
.footer small { color: var(--muted); }
.footer-links { display: flex; gap: 22px; }
.footer-links a { color: var(--muted); font-size: 0.88rem; text-decoration: none; transition: color 0.25s; }
.footer-links a:hover { color: var(--text); }

/* ---------- Reveal animations ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.8s cubic-bezier(0.2, 0.65, 0.25, 1), transform 0.8s cubic-bezier(0.2, 0.65, 0.25, 1); }
.reveal.visible { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: 0.1s; }
.reveal.d2 { transition-delay: 0.2s; }
.reveal.d3 { transition-delay: 0.3s; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .hero-bg, .eyebrow::before, .scroll-hint::after { animation: none; }
  html { scroll-behavior: auto; }
}

@media (max-width: 720px) {
  .nav-links { gap: 16px; }
  .nav-links a { font-size: 0.85rem; }
  .brand-name { display: none; }
  .contact-strip { flex-direction: column; align-items: center; }
}
/* ---------- Slider (exact replica of original RevSlider layout) ---------- */
.slider { position: absolute; inset: 0; z-index: 2; }
.slide {
  position: absolute; inset: 0;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  text-align: center; padding: 20px;
  opacity: 0; visibility: hidden;
  transition: opacity 1.2s ease;
}
.slide.is-active { opacity: 1; visibility: visible; }
.slide-logo {
  width: 117px; height: auto; margin-bottom: 34px;
  filter: drop-shadow(0 10px 28px rgba(0, 0, 0, 0.6));
  animation: logoFloat 5s ease-in-out infinite;
}
@keyframes logoFloat { 50% { transform: translateY(-8px); } }
.slide-head {
  font-family: "Poppins", var(--font-body);
  font-size: clamp(1.9rem, 4.6vw, 3.4rem);
  line-height: 1.15; font-weight: 600;
  color: #f2f3f5; margin-bottom: 18px;
  text-shadow: 0 2px 24px rgba(0, 0, 0, 0.6);
}
.slide-head span { color: #bebfc4; }
.slide-sub {
  font-family: "Poppins", var(--font-body);
  font-size: clamp(0.95rem, 1.8vw, 1.25rem);
  color: #bebfc4; max-width: 720px;
}
.slide-contact {
  margin-top: 42px;
  font-family: "Montserrat", var(--font-body);
  font-size: clamp(0.8rem, 1.4vw, 0.98rem);
  color: #bebfc4; letter-spacing: 0.02em;
}
.slide-contact a { color: #d6d8dd; text-decoration: none; border-bottom: 1px solid rgba(190, 191, 196, 0.35); transition: color 0.25s, border-color 0.25s; }
.slide-contact a:hover { color: #fff; border-color: #fff; }
.slide-links { margin-top: 14px; font-size: 0.88rem; }
.slide-links a { color: #9aa0ab; text-decoration: none; transition: color 0.25s; }
.slide-links a:hover { color: #d6d8dd; }
.slide[lang="ar"] .slide-head { font-family: "Noto Kufi Arabic", "Poppins", sans-serif; direction: rtl; }
.slide[lang="ar"] .slide-sub { font-family: "IBM Plex Sans Arabic", "Poppins", sans-serif; direction: rtl; }
.slide[lang="ar"] .slide-contact, .slide[lang="ar"] .slide-links { direction: rtl; }
.slider-dots {
  position: absolute; bottom: 28px; left: 50%;
  transform: translateX(-50%);
  display: flex; gap: 12px; z-index: 3;
}
.dot {
  width: 32px; height: 21px; border-radius: 3px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.28);
  background: transparent; cursor: pointer; padding: 0;
  opacity: 0.55;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.45);
  transition: opacity 0.3s, transform 0.3s, box-shadow 0.3s;
}
.dot svg { width: 100%; height: 100%; display: block; }
.dot:hover { opacity: 1; transform: translateY(-2px) scale(1.08); }
.dot.is-active {
  opacity: 1;
  box-shadow: 0 0 0 2px rgba(235, 236, 240, 0.92), 0 4px 14px rgba(0, 0, 0, 0.55);
}
@media (max-width: 720px) {
  .slide-logo { width: 84px; margin-bottom: 24px; }
  .slider-dots { bottom: 16px; gap: 9px; }
  .dot { width: 26px; height: 17px; }
}
