* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Tajawal", sans-serif;
}

html,
body {
  margin: 0;
  padding: 0;
  overflow-x: hidden;
}

body {
  background: #0f2027;
  color: white;
  overflow-x: hidden;
  position: relative;
  min-height: 100vh;
}

body::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: url("/mnt/data/photo_2025-04-22_13-56-44.jpg") no-repeat center center / cover;
  filter: blur(4px) brightness(0.2);
  z-index: -2;
}

body::after {
  content: "";
  position: fixed;
  top: 50%;
  left: 50%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(0, 212, 255, 0.3) 0%, transparent 80%);
  transform: translate(-50%, -50%);
  z-index: -1;
  filter: blur(100px);
}

header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 20px;
  background: rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(8px);
  position: relative;
  top: -10px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
}

header img {
  height: 120px;
  border-radius: 50%;
}

nav {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
}

nav a {
  color: white;
  margin: 0 15px;
  text-decoration: none;
  font-family: "Tajawal", sans-serif;
  font-size: 18px;
  font-weight: 700;
  display: inline-block;
}

nav a:hover,
nav a.active {
  color: #00d4ff;
}

.menu-toggle {
  display: none;
  font-size: 28px;
  color: white;
  cursor: pointer;
}

.header-end {
  display: flex;
  align-items: center;
  gap: 8px;
}

.lang-switch {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-width: 72px;
  min-height: 42px;
  border: 1px solid rgba(0, 212, 255, 0.55);
  background: linear-gradient(180deg, rgba(0, 212, 255, 0.28), rgba(0, 20, 30, 0.7));
  color: #e8fbff;
  border-radius: 999px;
  padding: 10px 16px;
  font-weight: 700;
  font-size: 16px;
  cursor: pointer;
  box-shadow: 0 8px 18px rgba(0, 212, 255, 0.22);
  white-space: nowrap;
  flex-shrink: 0;
}

.lang-switch i {
  color: #00d4ff;
  font-size: 18px;
}

.sidebar {
  position: fixed;
  top: 0;
  left: -100%;
  right: auto;
  height: 100%;
  width: 260px;
  background: rgba(0, 0, 0, 0.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  transition: left 0.35s ease, right 0.35s ease;
  display: flex;
  flex-direction: column;
  padding: 72px 20px 20px;
  z-index: 200;
}

.sidebar.show {
  left: 0;
}

html[dir="ltr"] .sidebar {
  left: auto;
  right: -100%;
}

html[dir="ltr"] .sidebar.show {
  left: auto;
  right: 0;
}

.sidebar a {
  color: white;
  text-decoration: none;
  padding: 15px 10px;
  font-size: 18px;
  font-weight: bold;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.hero {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  height: 90vh;
  padding-bottom: 160px;
  background: radial-gradient(circle, rgba(0, 212, 255, 0.1) 0%, rgba(0, 0, 0, 0.8) 100%);
  transform-style: preserve-3d;
  perspective: 1000px;
}

.hero-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  animation: float 8s ease-in-out 2.2s infinite;
}

.hero.compact {
  height: 90vh;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-20px); }
}

@keyframes fadeInDown {
  0% { opacity: 0; transform: translateY(-50px); }
  100% { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInUp {
  0% { opacity: 0; transform: translateY(50px); }
  100% { opacity: 1; transform: translateY(0); }
}

.hero h1 {
  font-size: 3.5rem;
  margin-bottom: 20px;
  color: #00d4ff;
  text-shadow: 0 0 15px #00d4ff;
  opacity: 0;
  animation: fadeInDown 2s ease both;
}

.hero p {
  font-size: 1.4rem;
  color: #eee;
  opacity: 0;
  animation: fadeInUp 2s ease 0.8s both;
}

.hero-social {
  opacity: 0;
  animation: fadeInUp 2s ease 1.4s both;
}

.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  padding: 50px;
  background:
    url("/mnt/data/ftbg.jpg") repeat,
    linear-gradient(180deg, #111 0%, #0f2027 100%);
  background-size: 50% auto, cover;
  background-position: center top;
  background-blend-mode: soft-light;
  transform-style: preserve-3d;
}

.section-head {
  grid-column: 1 / -1;
  text-align: center;
  margin-bottom: 8px;
}

.section-head h2 {
  color: #00d4ff;
  font-size: 2rem;
  margin-bottom: 8px;
}

.section-head p {
  color: #ccc;
  font-size: 1.05rem;
}

.trust-board {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: minmax(180px, 240px) 1fr;
  gap: 28px;
  align-items: center;
  background: rgba(20, 20, 20, 0.42);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(0, 212, 255, 0.12);
  border-radius: 20px;
  padding: 28px;
  opacity: 0;
  transform: translateY(24px);
  transition: transform 0.6s ease, opacity 0.6s ease;
}

.trust-board.visible,
.trust-card.visible {
  opacity: 1;
  transform: none;
}

.trust-score {
  text-align: center;
}

.trust-score-label,
.trust-score-out {
  display: block;
  color: #9aa7ab;
  font-weight: 700;
}

.trust-score strong {
  display: block;
  font-size: 4rem;
  line-height: 1;
  color: #00d4ff;
  margin: 6px 0;
}

.trust-stars {
  color: #ffd166;
  letter-spacing: 3px;
  margin: 8px 0 12px;
  font-size: 1.15rem;
}

.trust-score p {
  color: #ccc;
  font-size: 0.92rem;
  line-height: 1.7;
}

.trust-metrics {
  display: grid;
  gap: 14px;
}

.trust-row {
  display: grid;
  grid-template-columns: minmax(110px, 0.9fr) minmax(90px, 1.4fr) 42px;
  gap: 12px;
  align-items: center;
  color: #e8fbff;
  font-weight: 700;
  font-size: 0.95rem;
}

.trust-bar {
  height: 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
}

.trust-bar span {
  display: block;
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, #007ea8, #00d4ff 55%, #7af0ff);
}

.trust-row b {
  color: #00d4ff;
  text-align: center;
}

.trust-clients {
  grid-column: 1 / -1;
  text-align: center;
  color: #ccc;
  line-height: 1.9;
  font-size: 1.02rem;
}

.trust-card {
  background: rgba(20, 20, 20, 0.42);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(0, 212, 255, 0.12);
  border-radius: 20px;
  padding: 24px;
  text-align: center;
  opacity: 0;
  transform: translateY(24px);
  transition: transform 0.6s ease, box-shadow 0.4s ease, opacity 0.6s ease;
}

.trust-card p {
  color: #ddd;
  line-height: 1.85;
  margin: 12px 0 16px;
}

.trust-card strong {
  display: block;
  color: #00d4ff;
  margin-bottom: 4px;
}

.trust-card span {
  color: #9aa7ab;
  font-size: 0.9rem;
}

.feature-box {
  background: rgba(20, 20, 20, 0.3);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  background-blend-mode: overlay;
  padding: 30px;
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(0, 212, 255, 0.2);
  transition: transform 1.5s ease, box-shadow 1.5s ease, opacity 0.5s ease;
  transform: translateY(0) scale(0.5);
  opacity: 0;
  position: relative;
  text-align: center;
}

.work-card {
  background: rgba(20, 20, 20, 0.42);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  padding: 28px;
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(0, 212, 255, 0.18);
  border: 1px solid rgba(0, 212, 255, 0.12);
  position: relative;
  text-align: center;
  opacity: 0;
  transform: translateY(24px);
  transition: transform 0.6s ease, box-shadow 0.4s ease, opacity 0.6s ease;
}

.feature-box.visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.feature-box.active {
  transform: scale(1.2);
}

.work-card.visible {
  opacity: 1;
  transform: translateY(0);
}

.work-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 36px rgba(0, 212, 255, 0.28);
}

.feature-box i,
.work-card > i {
  font-size: 50px;
  color: #00d4ff;
  margin-bottom: 15px;
  transition: transform 0.3s ease;
}

.feature-box:hover i,
.work-card:hover i {
  transform: scale(1.3);
}

.feature-box::before,
.work-card::before {
  content: "";
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle, rgba(0, 212, 255, 0.15) 0%, transparent 70%);
  border-radius: 20px;
  pointer-events: none;
  z-index: 0;
}

.feature-box *,
.work-card * {
  position: relative;
  z-index: 1;
}

.feature-box h3,
.work-card h3 {
  font-size: 1.5rem;
  color: #fff;
  margin-bottom: 10px;
}

.feature-box p,
.work-card p,
.description {
  font-size: 1rem;
  color: #ccc;
  line-height: 1.75;
  white-space: pre-line;
}

.work-logo {
  max-height: 160px;
  max-width: 260px;
  object-fit: contain;
  margin-bottom: 12px;
  border-radius: 12px;
}

.feature-pdfs {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 16px 0;
}

.pdf-link,
.cta-button,
.btn {
  display: inline-block;
  background: #00d4ff;
  color: #041318;
  padding: 11px 20px;
  text-decoration: none;
  font-weight: bold;
  border-radius: 10px;
  text-align: center;
  border: none;
  cursor: pointer;
  font-size: 1rem;
  transition: background 0.25s ease, transform 0.2s ease;
}

.cta-button {
  color: #fff;
  padding: 13px 24px;
  margin-top: 16px;
  font-size: 1.05rem;
}

.pdf-link:hover,
.cta-button:hover,
.btn:hover {
  filter: brightness(0.92);
  transform: translateY(-1px);
}

.image-gallery {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin-top: 16px;
}

.gallery-img {
  width: 132px;
  height: 132px;
  object-fit: cover;
  border-radius: 10px;
  cursor: pointer;
  transition: transform 0.2s ease;
}

.gallery-img:hover {
  transform: scale(1.05);
}

.work-videos {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 16px;
}

.work-video {
  width: min(100%, 280px);
  max-height: 420px;
  border-radius: 14px;
  background: #03141b;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.35);
}

.image-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  height: 100%;
  height: 100dvh;
  margin: 0;
  background: rgba(0, 0, 0, 0.92);
  z-index: 10000;
  justify-content: center;
  align-items: center;
  overscroll-behavior: none;
}

.image-modal.show {
  display: flex;
}

.modal-image {
  max-width: 92vw;
  max-height: 85dvh;
  object-fit: contain;
  border-radius: 8px;
}

.modal-close {
  position: absolute;
  top: 18px;
  left: 18px;
  color: white;
  font-size: 28px;
  cursor: pointer;
  background: rgba(0, 0, 0, 0.5);
  border-radius: 50%;
  width: 42px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
}

footer {
  text-align: center;
  padding: 28px 18px;
  background: #0d0d0d;
  color: #999;
  line-height: 1.9;
}

footer a {
  text-decoration: none;
  font-weight: bold;
}

.contact-overlay {
  position: fixed;
  inset: 0;
  background: rgba(2, 10, 14, 0.72);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  z-index: 500;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.contact-overlay.show {
  display: flex;
}

.contact-card {
  width: min(460px, 100%);
  background: linear-gradient(180deg, rgba(18, 32, 40, 0.96), rgba(10, 18, 24, 0.96));
  border: 1px solid rgba(0, 212, 255, 0.28);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.45), 0 0 40px rgba(0, 212, 255, 0.12);
  border-radius: 22px;
  padding: 28px 24px 22px;
  color: #fff;
  position: relative;
  animation: popIn 0.28s ease;
}

@keyframes popIn {
  from { opacity: 0; transform: translateY(16px) scale(0.97); }
  to { opacity: 1; transform: none; }
}

.contact-card h2 {
  color: #00d4ff;
  font-size: 1.6rem;
  margin-bottom: 6px;
}

.contact-card .lead {
  color: #c9d4d8;
  margin-bottom: 20px;
  font-size: 0.98rem;
}

.contact-close {
  position: absolute;
  top: 14px;
  left: 14px;
  width: 36px;
  height: 36px;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  font-size: 22px;
  cursor: pointer;
}

.contact-methods {
  display: grid;
  gap: 10px;
}

.contact-method {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px 14px;
  border-radius: 14px;
  text-decoration: none;
  color: #fff;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: transform 0.2s ease, background 0.2s ease;
}

.contact-method:hover {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.1);
}

.contact-method i {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  font-size: 18px;
}

.contact-method.phone i { background: #1f6feb; }
.contact-method.whatsapp i { background: #25d366; }
.contact-method.email i { background: #ff7043; }

.contact-method strong {
  display: block;
  font-size: 1rem;
}

.contact-method span {
  display: block;
  color: #b7c4c8;
  font-size: 0.86rem;
  margin-top: 2px;
}

.contact-message {
  margin-top: 16px;
}

.contact-message textarea {
  width: 100%;
  min-height: 84px;
  resize: vertical;
  border: 1px solid rgba(0, 212, 255, 0.25);
  background: rgba(0, 0, 0, 0.28);
  color: #fff;
  border-radius: 12px;
  padding: 12px;
  font-size: 1rem;
}

.contact-message button {
  width: 100%;
  margin-top: 10px;
  background: #25d366;
  color: #fff;
}

.contact-meta {
  margin-top: 16px;
  color: #9aa7ab;
  font-size: 0.9rem;
}

.float-contact {
  position: fixed;
  left: 18px;
  bottom: 18px;
  z-index: 90;
  width: 52px;
  height: 52px;
  border: none;
  padding: 0;
  background: transparent;
  cursor: pointer;
  transform-style: preserve-3d;
}

.float-contact .fab-pulse {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.float-contact .fab-pulse::before,
.float-contact .fab-pulse::after {
  content: "";
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  border: 2px solid rgba(0, 212, 255, 0.5);
  animation: fabPulse 2.4s ease-out infinite;
}

.float-contact .fab-pulse::after {
  inset: -12px;
  animation-delay: 0.8s;
}

.float-contact .fab-3d {
  position: relative;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #03141b;
  font-size: 18px;
  background:
    radial-gradient(circle at 30% 25%, #ffffff 0%, #7af0ff 22%, #00d4ff 58%, #007ea8 100%);
  box-shadow:
    0 10px 16px rgba(0, 0, 0, 0.4),
    0 5px 0 #00556f,
    0 0 16px rgba(0, 212, 255, 0.45),
    inset 0 2px 0 rgba(255, 255, 255, 0.75),
    inset 0 -5px 8px rgba(0, 60, 80, 0.35);
  transform: perspective(220px) rotateX(16deg) rotateY(-10deg);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.float-contact .fab-3d i {
  transform: translateZ(10px);
  text-shadow: 0 3px 0 rgba(0, 70, 90, 0.25);
}

.float-contact:hover .fab-3d,
.float-contact:focus-visible .fab-3d {
  transform: perspective(260px) rotateX(8deg) rotateY(-4deg) translateY(-4px) scale(1.06);
}

@keyframes fabPulse {
  0% { transform: scale(0.85); opacity: 0.7; }
  100% { transform: scale(1.25); opacity: 0; }
}

html.modal-open,
body.modal-open {
  overflow: hidden;
}

@media (max-width: 768px) {
  nav { display: none; }
  header {
    position: relative;
    top: -10px;
    overflow: visible;
    padding: 10px 12px;
  }
  header img {
    height: 100px;
    flex-shrink: 0;
  }
  .header-end {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: max-content;
    align-items: center;
    gap: 8px;
    direction: ltr;
    flex-shrink: 0;
  }
  .menu-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
  }
  .lang-switch {
    min-width: 0;
    min-height: 36px;
    font-size: 13px;
    padding: 6px 10px;
  }
  html[dir="ltr"] .header-end {
    direction: rtl;
  }
  nav {
    position: relative;
    top: 0;
  }
  .features {
    padding: 28px 14px;
    grid-template-columns: 1fr;
    background-size: 100% auto, cover;
    background-repeat: repeat-y, no-repeat;
  }
  .gallery-img { width: 110px; height: 110px; }
  .trust-board {
    grid-template-columns: 1fr;
    padding: 20px;
  }
  .trust-row {
    grid-template-columns: 1fr auto;
  }
  .trust-bar {
    grid-column: 1 / -1;
  }
  .float-contact {
    left: 16px;
    bottom: 16px;
  }
}
