:root {
  --black: #080c0a;
  --black-soft: #0e1612;
  --green: #00e08a;
  --green-deep: #009f69;
  --gold: #d7b35a;
  --gold-soft: #ffe6a3;
  --white: #f8fbf8;
  --muted: #b9c7bf;
  --ink: #152019;
  --paper: #f5f7f2;
  --line: rgba(255, 255, 255, 0.14);
  --shadow: 0 28px 80px rgba(0, 0, 0, 0.22);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--white);
  background: var(--black);
  font-family:
    "IBM Plex Sans Arabic", "Cairo", "Tajawal", "Segoe UI", Tahoma, Arial,
    sans-serif;
  line-height: 1.8;
  overflow-x: hidden;
}

body.is-loading {
  overflow: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

.page-loader {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  color: var(--white);
  background:
    radial-gradient(circle at 50% 42%, rgba(215, 179, 90, 0.17), transparent 28%),
    radial-gradient(circle at 42% 52%, rgba(0, 224, 138, 0.1), transparent 32%),
    linear-gradient(145deg, #040604, #0b0c08 58%, #050505);
  opacity: 1;
  visibility: visible;
  transition:
    opacity 520ms ease,
    visibility 520ms ease;
}

.page-loader[hidden] {
  display: none;
}

.page-loader.is-hidden {
  opacity: 0;
  pointer-events: none;
  visibility: hidden;
}

.loader-card {
  display: grid;
  place-items: center;
  gap: 22px;
  width: min(290px, calc(100vw - 42px));
  padding: 30px 24px;
  text-align: center;
  transform: translateY(0) scale(1);
  transition: transform 520ms ease;
}

.page-loader.is-hidden .loader-card {
  transform: translateY(12px) scale(0.94);
}

.loader-mark {
  position: relative;
  display: grid;
  width: 174px;
  height: 174px;
  place-items: center;
}

.loader-mark img {
  position: relative;
  z-index: 3;
  width: 118px;
  height: 118px;
  border: 0;
  border-radius: 28px;
  object-fit: cover;
  box-shadow:
    0 0 38px rgba(215, 179, 90, 0.38),
    0 0 70px rgba(0, 0, 0, 0.62);
  animation: logo-breathe 1.9s ease-in-out infinite;
}

.loader-mark::before,
.loader-mark::after {
  position: absolute;
  inset: 8px;
  border: 1px solid rgba(215, 179, 90, 0.18);
  border-radius: 32px;
  content: "";
  transform: rotate(45deg);
}

.loader-mark::after {
  inset: 30px;
  border-color: rgba(0, 224, 138, 0.13);
  animation: loader-ring 2.4s ease-in-out infinite;
}

.loader-piece {
  position: absolute;
  z-index: 2;
  width: 19px;
  height: 19px;
  border-radius: 4px;
  background: linear-gradient(135deg, #fff3b6, #f0b429 48%, #a86f12);
  box-shadow: 0 0 18px rgba(215, 179, 90, 0.42);
  animation: loader-piece 1.45s ease-in-out infinite;
}

.piece-top {
  top: 6px;
  right: 50%;
  animation-delay: 0ms;
}

.piece-right {
  top: 50%;
  right: 6px;
  animation-delay: 160ms;
}

.piece-bottom {
  right: 50%;
  bottom: 6px;
  animation-delay: 320ms;
}

.piece-left {
  top: 50%;
  left: 6px;
  animation-delay: 480ms;
}

.loader-pulse {
  position: absolute;
  inset: 36px;
  z-index: 1;
  border-radius: 30px;
  background: rgba(215, 179, 90, 0.16);
  filter: blur(14px);
  animation: loader-pulse 1.8s ease-in-out infinite;
}

.loader-track {
  position: relative;
  display: block;
  width: 176px;
  height: 3px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
}

.loader-track span {
  position: absolute;
  inset: 0;
  width: 48%;
  border-radius: inherit;
  background: linear-gradient(90deg, transparent, var(--gold-soft), var(--green), transparent);
  animation: loader-track 1.25s ease-in-out infinite;
}

.ambient-noise {
  position: fixed;
  inset: 0;
  z-index: 30;
  pointer-events: none;
  opacity: 0.045;
  background-image:
    radial-gradient(circle at 25% 20%, #ffffff 0 1px, transparent 1px),
    radial-gradient(circle at 75% 40%, #ffffff 0 1px, transparent 1px);
  background-size: 38px 38px, 54px 54px;
  mix-blend-mode: overlay;
}

.site-header {
  position: fixed;
  top: 18px;
  left: 50%;
  z-index: 20;
  display: flex;
  width: min(1120px, calc(100% - 32px));
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 12px 14px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  background: rgba(7, 13, 10, 0.62);
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.22);
  backdrop-filter: blur(18px);
  transform: translateX(-50%);
}

.brand-mark,
.nav-links {
  display: flex;
  align-items: center;
  gap: 10px;
}

.brand-mark {
  font-weight: 800;
  letter-spacing: 0.08em;
}

.brand-symbol {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid rgba(215, 179, 90, 0.55);
  border-radius: 14px;
  color: var(--gold-soft);
  background:
    linear-gradient(135deg, rgba(215, 179, 90, 0.2), rgba(0, 224, 138, 0.12)),
    rgba(255, 255, 255, 0.06);
  box-shadow: inset 0 0 18px rgba(215, 179, 90, 0.18);
  font-size: 0.78rem;
  overflow: hidden;
}

.brand-symbol img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.nav-links a {
  padding: 8px 12px;
  border-radius: 999px;
  color: rgba(248, 251, 248, 0.76);
  font-size: 0.95rem;
  transition:
    color 180ms ease,
    background 180ms ease;
}

.nav-links a:hover,
.nav-links a:focus-visible {
  color: var(--white);
  background: rgba(255, 255, 255, 0.1);
}

.hero {
  position: relative;
  isolation: isolate;
  display: grid;
  min-height: 100svh;
  place-items: center;
  overflow: hidden;
  padding: 120px 20px 80px;
  background:
    radial-gradient(circle at 16% 20%, rgba(0, 224, 138, 0.2), transparent 26%),
    radial-gradient(circle at 72% 32%, rgba(215, 179, 90, 0.2), transparent 24%),
    linear-gradient(145deg, #030504 0%, #0b110e 48%, #11170f 100%);
}

#starfield {
  position: absolute;
  inset: 0;
  z-index: -3;
  width: 100%;
  height: 100%;
}

.hero::before {
  position: absolute;
  inset: 0;
  z-index: -2;
  content: "";
  background:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: radial-gradient(circle at center, #000 0 52%, transparent 78%);
}

.hero::after {
  position: absolute;
  inset: 0;
  z-index: -1;
  content: "";
  background:
    radial-gradient(circle at center, transparent 0 42%, rgba(0, 0, 0, 0.48) 82%),
    linear-gradient(to bottom, transparent 72%, rgba(8, 12, 10, 0.98));
}

.hero-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(28px);
  opacity: 0.62;
  pointer-events: none;
}

.glow-green {
  right: 10%;
  bottom: 17%;
  width: 260px;
  height: 260px;
  background: rgba(0, 224, 138, 0.18);
}

.glow-gold {
  left: 12%;
  top: 22%;
  width: 230px;
  height: 230px;
  background: rgba(215, 179, 90, 0.18);
}

.cube-stage {
  --cube-size: clamp(150px, 25vw, 350px);
  --tilt-x: -12deg;
  --tilt-y: -24deg;
  --float-x: 0px;
  --float-y: 0px;
  position: absolute;
  left: clamp(24px, 8vw, 120px);
  top: 19%;
  z-index: 1;
  width: var(--cube-size);
  height: var(--cube-size);
  perspective: 1200px;
  transform:
    translate3d(var(--float-x), var(--float-y), 0)
    rotateX(var(--tilt-x))
    rotateY(var(--tilt-y));
  transform-style: preserve-3d;
  transition: transform 180ms ease-out;
}

.glass-cube {
  position: relative;
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
  animation: cube-drift 18s ease-in-out infinite alternate;
}

.glass-cube::before,
.glass-cube::after {
  position: absolute;
  inset: 12%;
  border-radius: 26px;
  content: "";
  transform: translateZ(calc(var(--cube-size) * 0.58));
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.44), transparent 36%),
    radial-gradient(circle at 32% 25%, rgba(0, 224, 138, 0.3), transparent 34%);
  filter: blur(12px);
  opacity: 0.55;
}

.glass-cube::after {
  inset: 24%;
  transform: translateZ(calc(var(--cube-size) * -0.38));
  background: rgba(215, 179, 90, 0.2);
  filter: blur(18px);
}

.cube-face {
  position: absolute;
  inset: 0;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 26px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0.04)),
    radial-gradient(circle at 30% 25%, rgba(0, 224, 138, 0.22), transparent 36%),
    radial-gradient(circle at 72% 68%, rgba(215, 179, 90, 0.2), transparent 42%);
  box-shadow:
    inset 0 0 35px rgba(255, 255, 255, 0.08),
    inset 0 0 75px rgba(0, 224, 138, 0.07),
    0 0 40px rgba(0, 224, 138, 0.08);
  backdrop-filter: blur(8px);
}

.cube-front {
  transform: translateZ(calc(var(--cube-size) / 2));
}

.cube-back {
  transform: rotateY(180deg) translateZ(calc(var(--cube-size) / 2));
}

.cube-right {
  transform: rotateY(90deg) translateZ(calc(var(--cube-size) / 2));
}

.cube-left {
  transform: rotateY(-90deg) translateZ(calc(var(--cube-size) / 2));
}

.cube-top {
  transform: rotateX(90deg) translateZ(calc(var(--cube-size) / 2));
}

.cube-bottom {
  transform: rotateX(-90deg) translateZ(calc(var(--cube-size) / 2));
}

.cube-shadow {
  position: absolute;
  right: 18%;
  bottom: -28%;
  width: 64%;
  height: 24%;
  border-radius: 50%;
  background: rgba(0, 224, 138, 0.18);
  filter: blur(24px);
  transform: rotateX(76deg);
}

.hero-content {
  position: relative;
  z-index: 5;
  width: min(980px, 100%);
  margin-inline: auto;
  text-align: center;
}

.eyebrow {
  margin: 0 0 16px;
  color: var(--gold-soft);
  font-size: clamp(0.82rem, 2vw, 0.98rem);
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.eyebrow.light {
  color: var(--green-deep);
}

.company-name {
  margin: 0;
  font-size: clamp(4rem, 12vw, 10.2rem);
  font-weight: 900;
  line-height: 0.86;
  letter-spacing: 0.08em;
  text-align: center;
  text-shadow:
    0 0 34px rgba(0, 224, 138, 0.2),
    0 18px 70px rgba(0, 0, 0, 0.72);
}

.hero h2 {
  width: min(860px, 100%);
  margin: 28px auto 0;
  color: #ffffff;
  font-size: clamp(1.7rem, 4vw, 3.6rem);
  font-weight: 850;
  line-height: 1.25;
}

.hero-copy {
  width: min(760px, 100%);
  margin: 22px auto 0;
  color: rgba(248, 251, 248, 0.78);
  font-size: clamp(1rem, 2.1vw, 1.2rem);
}

.hero-actions,
.contact-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 14px;
}

.hero-actions {
  margin-top: 34px;
}

.btn {
  position: relative;
  display: inline-flex;
  min-height: 52px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  overflow: hidden;
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 13px 24px;
  font-weight: 850;
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    border-color 180ms ease,
    background 180ms ease;
}

.btn:hover,
.btn:focus-visible,
.copy-btn:hover,
.copy-btn:focus-visible {
  transform: translateY(-2px);
}

.btn-primary,
.btn-whatsapp {
  color: #03110b;
  background: linear-gradient(135deg, var(--green), #b7ffd8);
  box-shadow: 0 18px 45px rgba(0, 224, 138, 0.24);
}

.btn-secondary,
.btn-telegram {
  color: var(--white);
  border-color: rgba(215, 179, 90, 0.5);
  background: rgba(255, 255, 255, 0.08);
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.18);
  backdrop-filter: blur(12px);
}

.btn-telegram {
  border-color: rgba(0, 224, 138, 0.35);
}

.trust-strip {
  display: inline-flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 26px;
  color: rgba(248, 251, 248, 0.74);
}

.trust-strip span {
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  padding: 7px 13px;
  background: rgba(255, 255, 255, 0.06);
}

.scroll-cue {
  position: absolute;
  right: 50%;
  bottom: 28px;
  z-index: 4;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: rgba(248, 251, 248, 0.64);
  font-size: 0.92rem;
  transform: translateX(50%);
}

.scroll-cue span {
  position: relative;
  width: 22px;
  height: 36px;
  border: 1px solid rgba(248, 251, 248, 0.32);
  border-radius: 999px;
}

.scroll-cue span::after {
  position: absolute;
  top: 8px;
  right: 50%;
  width: 4px;
  height: 8px;
  border-radius: 999px;
  content: "";
  background: var(--green);
  transform: translateX(50%);
  animation: scroll-dot 1.8s ease-in-out infinite;
}

.services-section {
  padding: clamp(70px, 10vw, 120px) 20px;
  color: var(--ink);
  background:
    radial-gradient(circle at 12% 18%, rgba(0, 224, 138, 0.12), transparent 32%),
    linear-gradient(180deg, #f8faf4, #eef3ea);
}

.section-heading {
  width: min(820px, 100%);
  margin: 0 auto 46px;
  text-align: center;
}

.section-heading h2,
.contact-panel h2 {
  margin: 0;
  font-size: clamp(2rem, 5vw, 4.2rem);
  font-weight: 900;
  line-height: 1.2;
}

.section-heading p,
.contact-panel p {
  margin: 16px auto 0;
  color: rgba(21, 32, 25, 0.72);
  font-size: 1.05rem;
}

.services-grid {
  display: grid;
  width: min(1120px, 100%);
  margin-inline: auto;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.service-card {
  min-height: 100%;
  border: 1px solid rgba(21, 32, 25, 0.1);
  border-radius: 8px;
  padding: 24px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(255, 255, 255, 0.78)),
    var(--paper);
  box-shadow: 0 18px 50px rgba(21, 32, 25, 0.08);
}

.service-icon {
  display: grid;
  width: 54px;
  height: 54px;
  place-items: center;
  border: 1px solid rgba(0, 159, 105, 0.18);
  border-radius: 8px;
  background: linear-gradient(145deg, rgba(0, 224, 138, 0.13), rgba(215, 179, 90, 0.15));
}

.service-icon svg {
  width: 28px;
  height: 28px;
  fill: none;
  stroke: var(--green-deep);
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.7;
}

.service-card h3 {
  margin: 18px 0 10px;
  color: #0f1813;
  font-size: 1.32rem;
  line-height: 1.3;
}

.service-card p {
  margin: 0;
  color: rgba(21, 32, 25, 0.72);
  font-size: 0.96rem;
}

.contact-section {
  padding: clamp(70px, 10vw, 120px) 20px;
  background:
    radial-gradient(circle at 82% 28%, rgba(0, 224, 138, 0.15), transparent 32%),
    radial-gradient(circle at 14% 70%, rgba(215, 179, 90, 0.12), transparent 32%),
    linear-gradient(145deg, #08100c, #11160f);
}

.contact-panel {
  width: min(920px, 100%);
  margin-inline: auto;
  padding: clamp(32px, 6vw, 62px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  text-align: center;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.035)),
    rgba(255, 255, 255, 0.04);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.contact-panel p {
  color: rgba(248, 251, 248, 0.72);
}

.contact-actions {
  margin-top: 30px;
}

.phone-line {
  display: inline-flex;
  min-height: 52px;
  align-items: center;
  gap: 10px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  padding: 7px 8px 7px 16px;
  color: var(--white);
  background: rgba(255, 255, 255, 0.07);
}

.phone-line span {
  color: rgba(248, 251, 248, 0.82);
  font-weight: 800;
  letter-spacing: 0.06em;
}

.copy-btn {
  min-height: 38px;
  border: 0;
  border-radius: 999px;
  padding: 8px 13px;
  color: #09110d;
  background: var(--gold-soft);
  cursor: pointer;
  font: inherit;
  font-weight: 850;
  transition:
    transform 180ms ease,
    background 180ms ease;
}

.copy-btn:active,
.btn:active {
  transform: translateY(0);
}

.site-footer {
  padding: 24px 20px 34px;
  color: rgba(248, 251, 248, 0.66);
  background: #070b09;
  text-align: center;
}

.site-footer p {
  width: min(920px, 100%);
  margin: 0 auto;
  font-size: 0.92rem;
}

.toast {
  position: fixed;
  right: 50%;
  bottom: 26px;
  z-index: 40;
  padding: 12px 18px;
  border: 1px solid rgba(0, 224, 138, 0.3);
  border-radius: 999px;
  color: #06110b;
  background: linear-gradient(135deg, #d9ffe9, #fff2bd);
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.24);
  opacity: 0;
  pointer-events: none;
  transform: translate(50%, 16px);
  transition:
    opacity 220ms ease,
    transform 220ms ease;
}

.toast.is-visible {
  opacity: 1;
  transform: translate(50%, 0);
}

[data-reveal] {
  opacity: 0;
  transform: translateY(22px);
  transition:
    opacity 700ms ease,
    transform 700ms ease;
}

[data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

@keyframes cube-drift {
  0% {
    transform: rotateX(-6deg) rotateY(0deg) rotateZ(0deg);
  }
  50% {
    transform: rotateX(8deg) rotateY(120deg) rotateZ(2deg);
  }
  100% {
    transform: rotateX(-10deg) rotateY(245deg) rotateZ(-2deg);
  }
}

@keyframes loader-piece {
  0%,
  100% {
    opacity: 0.55;
    transform: translate(50%, -50%) rotate(45deg) scale(0.76);
  }
  50% {
    opacity: 1;
    transform: translate(50%, -50%) rotate(45deg) scale(1.18);
  }
}

@keyframes loader-pulse {
  0%,
  100% {
    opacity: 0.42;
    transform: scale(0.9);
  }
  50% {
    opacity: 0.9;
    transform: scale(1.08);
  }
}

@keyframes loader-ring {
  0%,
  100% {
    opacity: 0.34;
    transform: rotate(45deg) scale(0.94);
  }
  50% {
    opacity: 0.92;
    transform: rotate(45deg) scale(1.06);
  }
}

@keyframes logo-breathe {
  0%,
  100% {
    filter: brightness(1);
    transform: scale(1);
  }
  50% {
    filter: brightness(1.16);
    transform: scale(1.035);
  }
}

@keyframes loader-track {
  0% {
    transform: translateX(130%);
  }
  100% {
    transform: translateX(-230%);
  }
}

@keyframes scroll-dot {
  0%,
  100% {
    opacity: 0.35;
    transform: translate(50%, 0);
  }
  50% {
    opacity: 1;
    transform: translate(50%, 10px);
  }
}

@media (max-width: 980px) {
  .services-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .cube-stage {
    left: 50%;
    top: 18%;
    opacity: 0.7;
    transform:
      translate3d(calc(-50% + var(--float-x)), var(--float-y), 0)
      rotateX(var(--tilt-x))
      rotateY(var(--tilt-y));
  }

  .hero-content {
    margin-top: 88px;
  }
}

@media (max-width: 680px) {
  .site-header {
    top: 12px;
    width: min(100% - 20px, 520px);
    padding: 9px;
  }

  .brand-mark {
    font-size: 0.86rem;
  }

  .brand-symbol {
    width: 36px;
    height: 36px;
    border-radius: 11px;
  }

  .nav-links {
    gap: 2px;
  }

  .nav-links a {
    padding: 7px 9px;
    font-size: 0.84rem;
  }

  .hero {
    min-height: 100svh;
    padding: 104px 16px 72px;
  }

  .company-name {
    font-size: clamp(3.15rem, 18vw, 5.4rem);
    letter-spacing: 0.04em;
  }

  .hero h2 {
    margin-top: 22px;
  }

  .hero-actions,
  .contact-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .btn,
  .phone-line {
    width: 100%;
  }

  .phone-line {
    justify-content: space-between;
    border-radius: 18px;
  }

  .services-grid {
    grid-template-columns: 1fr;
  }

  .service-card {
    padding: 22px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}
