:root {
  --bg: #0b0f14;
  --bg2: #0f1722;
  --card: rgba(255, 255, 255, 0.06);
  --card2: rgba(255, 255, 255, 0.08);
  --text: #eaf0ff;
  --muted: rgba(234, 240, 255, 0.72);
  --border: rgba(255, 255, 255, 0.14);

  --gold: #d6b56a;
  --gold2: #f4d28a;
  --blue: #5aa3ff;
  --accent: #7c5cff;
  --ok: #22c55e;
  --danger: #ef4444;

  --shadow: 0 18px 50px rgba(0, 0, 0, 0.4);
  --shadow2: 0 10px 25px rgba(0, 0, 0, 0.28);

  --radius: 18px;
  --radius2: 26px;
  --container: 1180px;

  --headerH: 80px;

  --ease: cubic-bezier(0.2, 0.9, 0.2, 1);
}

* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  margin: 0;
  font-family:
    system-ui,
    -apple-system,
    Segoe UI,
    Roboto,
    Arial,
    "Noto Sans Arabic",
    "Cairo",
    sans-serif;
  background:
    radial-gradient(
      1200px 600px at 90% 10%,
      rgba(90, 163, 255, 0.18),
      transparent 55%
    ),
    radial-gradient(
      900px 500px at 10% 30%,
      rgba(214, 181, 106, 0.14),
      transparent 55%
    ),
    linear-gradient(180deg, var(--bg), var(--bg2));
  color: var(--text);
  line-height: 1.65;
}
a {
  color: inherit;
  text-decoration: none;
}
img {
  max-width: 100%;
  display: block;
}
button,
input,
textarea {
  font: inherit;
}

.container {
  width: min(var(--container), calc(100% - 32px));
  margin-inline: auto;
}

.skip {
  position: absolute;
  inset-inline-start: 12px;
  top: 12px;
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.18);
  transform: translateY(-140%);
  transition: transform 0.25s var(--ease);
  z-index: 9999;
}
.skip:focus {
  transform: translateY(0);
  outline: none;
}

.badge {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(214, 181, 106, 0.12);
  border: 1px solid rgba(214, 181, 106, 0.22);
  color: var(--gold2);
  font-weight: 700;
  letter-spacing: 0.2px;
}

.kicker {
  color: var(--gold2);
  font-weight: 800;
  letter-spacing: 0.3px;
  text-transform: none;
}
.h1 {
  font-size: clamp(2rem, 4.2vw, 3.2rem);
  line-height: 1.15;
  margin: 10px 0 14px;
}
.h2 {
  font-size: clamp(1.5rem, 2.5vw, 2.1rem);
  line-height: 1.2;
  margin: 0 0 10px;
}
.p {
  color: var(--muted);
  margin: 0;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 16px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.08);
  color: var(--text);
  box-shadow: var(--shadow2);
  transition:
    transform 0.2s var(--ease),
    background 0.2s var(--ease),
    border-color 0.2s var(--ease);
  cursor: pointer;
  user-select: none;
}
.btn:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.1);
}
.btn:active {
  transform: translateY(0);
}
.btn-primary {
  background: linear-gradient(
    135deg,
    rgba(214, 181, 106, 0.95),
    rgba(244, 210, 138, 0.75)
  );
  color: #121622;
  border-color: rgba(214, 181, 106, 0.4);
}
.btn-primary:hover {
  background: linear-gradient(
    135deg,
    rgba(244, 210, 138, 0.96),
    rgba(214, 181, 106, 0.78)
  );
}
.btn-ghost {
  background: transparent;
}
.btn-icon {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  display: inline-grid;
  place-items: center;
  padding: 0;
}
.icon {
  width: 18px;
  height: 18px;
  display: inline-block;
  fill: currentColor;
}

.header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(14px);
  background: rgba(8, 12, 18, 0.55);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.header-inner {
  height: var(--headerH);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 210px;
}
.logo {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background:
    radial-gradient(
      14px 14px at 30% 30%,
      rgba(244, 210, 138, 0.95),
      transparent 60%
    ),
    radial-gradient(
      16px 16px at 65% 70%,
      rgba(90, 163, 255, 0.55),
      transparent 65%
    ),
    linear-gradient(135deg, rgba(214, 181, 106, 0.75), rgba(124, 92, 255, 0.25));
  border: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow: var(--shadow2);
}
.brand .name {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}
.brand .name strong {
  font-size: 1.02rem;
}
.brand .name span {
  font-size: 0.82rem;
  color: var(--muted);
}

.nav {
  display: flex;
  align-items: center;
  gap: 10px;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
}
.nav a {
  padding: 10px 12px;
  border-radius: 12px;
  color: var(--muted);
  border: 1px solid transparent;
  transition: 0.2s var(--ease);
}
.nav a:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.1);
}
.nav a.active {
  color: var(--text);
  background: rgba(214, 181, 106, 0.1);
  border-color: rgba(214, 181, 106, 0.22);
}

.nav-cta {
  display: flex;
  align-items: center;
  gap: 10px;
}

.mobile-toggle {
  display: none;
}

.mobile-panel {
  display: none;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(8, 12, 18, 0.62);
}
.mobile-panel .inner {
  padding: 14px 0 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.mobile-panel a {
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
}
.mobile-panel .row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.logo-img {
  width: 60px;
  height: 60px;
  border-radius: 14px;
  object-fit: contain;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: var(--shadow2);
  padding: 6px;
}

.hero {
  position: relative;
  min-height: calc(100vh - var(--headerH));
  display: grid;
  align-items: center;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(
      900px 500px at 85% 25%,
      rgba(214, 181, 106, 0.18),
      transparent 55%
    ),
    radial-gradient(
      800px 500px at 20% 20%,
      rgba(124, 92, 255, 0.16),
      transparent 60%
    ),
    linear-gradient(180deg, rgba(0, 0, 0, 0.15), rgba(0, 0, 0, 0.55));
  z-index: 2;
  pointer-events: none;
}
.slider {
  position: absolute;
  inset: 0;
  z-index: 1;
}
.slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: scale(1.06);
  transition:
    opacity 0.9s var(--ease),
    transform 1.25s var(--ease);
}
.slide.active {
  opacity: 1;
  transform: scale(1);
}
.slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(1.05) contrast(1.05);
}
.hero-content {
  position: relative;
  z-index: 3;
  padding: 56px 0;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 28px;
  align-items: center;
}
.hero-card {
  padding: 18px 0 0;
}
.hero-card .desc {
  margin-top: 12px;
  max-width: 62ch;
}
.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 18px;
}

.hero-stat {
  border-radius: var(--radius2);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: var(--shadow);
  padding: 18px;
}
.stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.stat {
  padding: 14px 14px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
}
.stat b {
  display: block;
  font-size: 1.15rem;
  color: var(--gold2);
}
.stat span {
  color: var(--muted);
  font-size: 0.9rem;
}

.slider-controls {
  position: absolute;
  z-index: 4;
  inset-inline: 0;
  bottom: 22px;
  display: flex;
  justify-content: center;
  gap: 10px;
  pointer-events: auto;
}
.dots {
  display: flex;
  gap: 8px;
  padding: 10px 12px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.28);
  border: 1px solid rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(10px);
}
.dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.18);
  cursor: pointer;
}
.dot.active {
  background: linear-gradient(135deg, var(--gold2), var(--gold));
  border-color: rgba(214, 181, 106, 0.45);
}

/* =================== Sections =================== */
.section {
  padding: 84px 0;
}
.section.small {
  padding: 56px 0;
}

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 22px;
}
.section-head .text {
  max-width: 72ch;
}
.section-head .actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  align-items: center;
}
.card {
  padding: 18px;
  border-radius: var(--radius2);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: var(--shadow2);
  position: relative;
  overflow: hidden;
}
.card::after {
  content: "";
  position: absolute;
  inset: -2px;
  background: radial-gradient(
    400px 180px at 85% 15%,
    rgba(214, 181, 106, 0.12),
    transparent 55%
  );
  pointer-events: none;
}
.card > * {
  position: relative;
  z-index: 1;
}

.feature {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}
.feature .bubble {
  width: 44px;
  height: 44px;
  border-radius: 16px;
  border: 1px solid rgba(214, 181, 106, 0.22);
  background: rgba(214, 181, 106, 0.12);
  display: grid;
  place-items: center;
  flex: 0 0 auto;
}
.feature h3 {
  margin: 0 0 6px;
  font-size: 1.05rem;
}
.feature p {
  margin: 0;
  color: var(--muted);
}

.media {
  border-radius: var(--radius2);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: var(--shadow);
  position: relative;
}
.media img {
  width: 100%;
  height: 380px;
  object-fit: cover;
}
.media .tag {
  position: absolute;
  top: 14px;
  inset-inline-start: 14px;
  padding: 8px 10px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(10px);
  color: var(--gold2);
  font-weight: 800;
  font-size: 0.9rem;
}

/* Projects preview cards */
.project {
  border-radius: var(--radius2);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.05);
  box-shadow: var(--shadow2);
  transition:
    transform 0.22s var(--ease),
    border-color 0.22s var(--ease);
}
.project:hover {
  transform: translateY(-3px);
  border-color: rgba(214, 181, 106, 0.28);
}
.project img {
  width: 100%;
  height: 220px;
  object-fit: cover;
}
.project .body {
  padding: 14px 14px 16px;
}
.project .body b {
  display: block;
  margin-bottom: 6px;
}
.project .body span {
  color: var(--muted);
  font-size: 0.92rem;
}

/* CTA */
.cta {
  border-radius: 30px;
  background:
    radial-gradient(
      700px 260px at 85% 20%,
      rgba(214, 181, 106, 0.18),
      transparent 55%
    ),
    radial-gradient(
      650px 260px at 15% 80%,
      rgba(90, 163, 255, 0.16),
      transparent 55%
    ),
    rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: var(--shadow);
  padding: 26px;
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  gap: 16px;
  align-items: center;
}
.cta p {
  color: var(--muted);
  margin: 8px 0 0;
}
.cta .right {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  flex-wrap: wrap;
}

/* =================== Footer =================== */
.footer {
  padding: 34px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(0, 0, 0, 0.2);
}
.footer .row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}
.footer small {
  color: rgba(234, 240, 255, 0.65);
}
.footer .links {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.footer .links a {
  color: rgba(234, 240, 255, 0.7);
  padding: 8px 10px;
  border-radius: 12px;
  border: 1px solid transparent;
}
.footer .links a:hover {
  border-color: rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
}

/* =================== Forms =================== */
.form {
  display: grid;
  gap: 12px;
}
.field {
  display: grid;
  gap: 6px;
}
label {
  color: rgba(234, 240, 255, 0.78);
  font-weight: 700;
  font-size: 0.95rem;
}
input,
textarea {
  padding: 12px 12px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(0, 0, 0, 0.2);
  color: var(--text);
  outline: none;
}
textarea {
  min-height: 130px;
  resize: vertical;
}
input:focus,
textarea:focus {
  border-color: rgba(214, 181, 106, 0.34);
  box-shadow: 0 0 0 4px rgba(214, 181, 106, 0.12);
}
.help {
  color: rgba(234, 240, 255, 0.65);
  font-size: 0.92rem;
}
.notice {
  padding: 12px 12px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.06);
  color: rgba(234, 240, 255, 0.78);
}
.notice.ok {
  border-color: rgba(34, 197, 94, 0.28);
  background: rgba(34, 197, 94, 0.1);
}
.notice.bad {
  border-color: rgba(239, 68, 68, 0.28);
  background: rgba(239, 68, 68, 0.1);
}

/* =================== Reveal Animations =================== */
.reveal {
  opacity: 0;
  transform: translateY(14px);
  transition:
    opacity 0.7s var(--ease),
    transform 0.7s var(--ease);
}
.reveal.show {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .reveal {
    transition: none;
  }
  .slide {
    transition: none;
  }
  .btn {
    transition: none;
  }
}

/* =================== Responsive =================== */
@media (max-width: 980px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }
  .cta {
    grid-template-columns: 1fr;
  }
  .cta .right {
    justify-content: flex-start;
  }
  .grid-3 {
    grid-template-columns: 1fr;
  }
  .grid-2 {
    grid-template-columns: 1fr;
  }
  .media img {
    height: 300px;
  }
  .nav-links {
    display: none;
  }
  .mobile-toggle {
    display: inline-flex;
  }
  .mobile-panel.open {
    display: block;
  }
}

/* ======== GALLERY SYSTEM ======== */
.gallery-wrap {
  display: grid;
  gap: 22px;
}

.gallery {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.g-item {
  position: relative;
  border-radius: var(--radius2);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.05);
  box-shadow: var(--shadow2);
  transition:
    transform 0.2s var(--ease),
    border-color 0.2s var(--ease);
}

.g-item:hover {
  transform: translateY(-3px);
  border-color: rgba(214, 181, 106, 0.28);
}

.g-item img,
.g-item video {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
}

.g-item .play {
  position: absolute;
  inset: auto 12px 12px auto;
  background: rgba(0, 0, 0, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(10px);
  padding: 8px 10px;
  border-radius: 999px;
  color: var(--gold2);
  font-weight: 900;
}

/* ======== LIGHTBOX ======== */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.72);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  padding: 18px;
}

.lightbox.open {
  display: flex;
}

.lightbox .box {
  width: min(980px, 100%);
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(10, 14, 20, 0.72);
  backdrop-filter: blur(12px);
  overflow: hidden;
  box-shadow: var(--shadow);
  position: relative;
}

.lightbox .close {
  position: absolute;
  top: 10px;
  inset-inline-end: 10px;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.08);
  color: var(--text);
  cursor: pointer;
}

.lightbox img,
.lightbox video {
  width: 100%;
  max-height: 78vh;
  object-fit: contain;
  display: block;
  background: #000;
}

/* ======== RESPONSIVE ======== */
@media (max-width: 1100px) {
  .gallery {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 780px) {
  .gallery {
    grid-template-columns: repeat(2, 1fr);
  }
  .g-item img,
  .g-item video {
    height: 180px;
  }
}
.lightbox .close {
  z-index: 10002;
  pointer-events: auto;
}

.lightbox {
  z-index: 10000;
}
.lightbox .box {
  position: relative;
  z-index: 10001;
}
.float-actions {
  position: fixed;
  left: 16px;
  bottom: 16px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.float-btn {
  width: 50px;
  height: 50px;
  display: grid;
  place-items: center;
  background: transparent;
  border: 0;
  outline: none;
  padding: 0;
  margin: 0;
  cursor: pointer;
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
}

.float-btn img {
  width: 50px;
  height: 50px;
  display: block;
  border: 0;
}

.float-btn,
.float-btn img {
  box-shadow: none !important;
  filter: none !important;
}
