.logoImage {
  width: 170px;
  height: auto;
}
.footerlogoimage {
  width: 200px;
}

.large-video-playing {
  position: relative;
  width: 100%;
  padding-top: 56.25%;
  /* 16:9 */
  overflow: hidden;
}

.large-video-playing iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}
.header-fixed-background {
  background-color: #0f0f0f;
}
.thumbnaiul-large {
  width: 100%;
  height: 100%;
}

.thumbnaiul-large iframe {
  width: 100%;
  height: 100%;
  display: block;
}
.service-details-left {
  width: 100%;
  height: 100%;
}
.signle-portfolio-style-four-inner img {
  width: 100%;
  height: auto;
}
.rts-about-area {
  display: flex;
  justify-content: center;
}
.aboutimg-container {
  display: flex;
  justify-content: center;
}
.language-dropdown {
  position: relative;
}

.language-dropdown .sub-menu {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 180px;
  background: rgba(40, 40, 40, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: 10px 0;
  margin: 10px 0 0;
  list-style: none;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: 0.25s ease;
  z-index: 9999;
  border-radius: 16px;
}

.language-dropdown:hover .sub-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.language-dropdown .sub-menu li a {
  display: block;
  padding: 12px 18px;
  color: #fff;
  text-decoration: none;
  white-space: nowrap;
}

.language-dropdown .sub-menu li a:hover {
  background: rgba(255, 255, 255, 0.08);
  border-radius: 10px;
}

.lang-text {
  display: inline-block;
  color: #ff0018;
}

body.rtl {
  direction: rtl;
  text-align: right;
}

body.ltr {
  direction: ltr;
  text-align: left;
}
.single-service-card-box-1 .icon {
  margin-bottom: 58px;
}
.signle-portfolio-style-four-inner img {
  width: 100%;
  height: 350px;
  /* غير الرقم ده حسب المقاس اللي يناسبك */
  object-fit: cover;
  display: block;
}
.signle-portfolio-style-four-inner {
  overflow: hidden;
  border-radius: 10px;
  /* اختياري */
}

.signle-portfolio-style-four-inner img {
  width: 100% !important;
  height: 350px !important;
  /* object-fit: contain; */
  background: #f5f5f500;
  display: block;
}
.gallery-img {
  width: 100%;
  height: 350px;
  object-fit: cover;
  display: block;
  cursor: pointer;
  transition: 0.3s ease;
}

.gallery-img:hover {
  transform: scale(1.02);
}

.image-modal {
  display: none;
  position: fixed;
  z-index: 9999;
  inset: 0;
  background: rgba(0, 0, 0, 0.9);
  justify-content: center;
  align-items: center;
  padding: 20px;
}

.image-modal.show {
  display: flex;
}

.modal-content-img {
  max-width: 90%;
  max-height: 90vh;
  border-radius: 12px;
  object-fit: contain;
}

.close-modal {
  position: absolute;
  top: 20px;
  right: 30px;
  color: #fff;
  font-size: 40px;
  font-weight: bold;
  cursor: pointer;
  line-height: 1;
}

.video-box {
  position: relative;
  width: 100%;
  padding-top: 56.25%;
  /* 16:9 */
  overflow: hidden;
  border-radius: 10px;
}

.video-box iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.mobile-language-item {
  margin-top: 15px;
}

.mobile-lang-btn {
  display: inline-block;
  padding: 10px 18px;
  border: 1px solid #fff;
  border-radius: 30px;
  color: #fff;
  text-decoration: none;
  font-size: 14px;
  transition: 0.3s;
}

.mobile-lang-btn:hover {
  background: #444444;
  color: #000;
}

/* ── Widget wrapper ── */
.ap-chatbot {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 999999;
  font-family: Inter, Arial, sans-serif;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 14px;
}

/* ── Toggle button ── */
.ap-chatbot__toggle {
  width: 60px;
  height: 60px;
  border: 0;
  border-radius: 50%;
  cursor: pointer;
  color: #fff;
  background: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  transition:
    transform 0.2s ease,
    opacity 0.2s ease;
  flex-shrink: 0;
}

.ap-chatbot__toggle:hover {
  transform: scale(1.06);
}

.ap-chatbot__toggle svg {
  width: 24px;
  height: 24px;
}

/* ── Panel ── */
.ap-chatbot__panel {
  width: 370px;
  max-width: calc(100vw - 20px);
  height: 620px;
  max-height: calc(100vh - 100px);
  background: #ffffff;
  border-radius: 24px;
  overflow: hidden;
  display: none;
  flex-direction: column;
  border: 0.5px solid rgba(0, 0, 0, 0.1);
  box-shadow:
    0 20px 60px rgba(0, 0, 0, 0.15),
    0 4px 16px rgba(0, 0, 0, 0.08);
}

.ap-chatbot__panel.show {
  display: flex;
  animation: apFadeUp 0.22s ease;
}

@keyframes apFadeUp {
  from {
    opacity: 0;
    transform: translateY(10px) scale(0.98);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* ── Header ── */
.ap-chatbot__header {
  padding: 14px 16px;
  background: #000000;
  display: flex;
  align-items: center;
  gap: 11px;
  flex-shrink: 0;
}

.ap-chatbot__avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  border: 1.5px solid rgba(255, 255, 255, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  font-weight: 600;
  color: #fff;
  flex-shrink: 0;
}

.ap-chatbot__brand {
  flex: 1;
  min-width: 0;
}

.ap-chatbot__brand h3 {
  margin: 0;
  font-size: 14px;
  font-weight: 600;
  color: #fff;
  line-height: 1.3;
}

.ap-chatbot__brand p {
  margin: 3px 0 0;
  font-size: 11px;
  color: rgba(255, 255, 255, 0.55);
  display: flex;
  align-items: center;
  gap: 5px;
}

.ap-status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #22c55e;
  display: inline-block;
  flex-shrink: 0;
}

.ap-chatbot__close {
  width: 30px;
  height: 30px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.7);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background 0.15s;
}

.ap-chatbot__close:hover {
  background: rgba(255, 255, 255, 0.18);
}

.ap-chatbot__close svg {
  width: 16px;
  height: 16px;
}

/* ── Body / messages ── */
.ap-chatbot__body {
  flex: 1;
  overflow-y: auto;
  padding: 14px 12px;
  background: #f8fafc;
  display: flex;
  flex-direction: column;
  gap: 10px;
  scroll-behavior: smooth;
}

.ap-chatbot__body::-webkit-scrollbar {
  width: 4px;
}

.ap-chatbot__body::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 999px;
}

/* date divider */
.ap-divider {
  text-align: center;
  font-size: 10px;
  color: #94a3b8;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 2px 0;
}

.ap-divider::before,
.ap-divider::after {
  content: "";
  flex: 1;
  height: 0.5px;
  background: #e2e8f0;
}

/* message rows */
.ap-msg {
  display: flex;
  align-items: flex-end;
  gap: 7px;
}

.ap-msg--user {
  flex-direction: row-reverse;
}

.ap-msg__avatar {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: #000000;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.8);
  flex-shrink: 0;
}

.ap-msg__bubble {
  max-width: 78%;
  padding: 10px 13px;
  border-radius: 16px;
  line-height: 1.75;
  font-size: 13.5px;
  word-break: break-word;
  white-space: pre-wrap;
}

.ap-msg--bot .ap-msg__bubble {
  background: #ffffff;
  color: #111827;
  border-bottom-left-radius: 4px;
  border: 0.5px solid rgba(0, 0, 0, 0.08);
}

.ap-msg--user .ap-msg__bubble {
  background: #000000;
  color: #ffffff;
  border-bottom-right-radius: 4px;
}

.ap-msg__time {
  font-size: 10px;
  color: #94a3b8;
  padding: 0 4px;
  margin-bottom: 2px;
  flex-shrink: 0;
}

/* ── Typing indicator ── */
.ap-typing {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 0;
}

.ap-typing span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #94a3b8;
  animation: apBounce 1.1s infinite ease-in-out;
}

.ap-typing span:nth-child(2) {
  animation-delay: 0.15s;
}

.ap-typing span:nth-child(3) {
  animation-delay: 0.3s;
}

@keyframes apBounce {
  0%,
  70%,
  100% {
    transform: translateY(0);
    opacity: 0.4;
  }

  35% {
    transform: translateY(-4px);
    opacity: 1;
  }
}

/* ── Link pills ── */
.ap-link-btns {
  display: flex;
  gap: 7px;
  flex-wrap: wrap;
  margin-top: 8px;
}

.ap-link-btns a {
  text-decoration: none;
  font-size: 11.5px;
  padding: 5px 12px;
  border-radius: 999px;
  background: #eff6ff;
  color: #1d4ed8;
  border: 0.5px solid #bfdbfe;
  transition: background 0.15s;
}

.ap-link-btns a:hover {
  background: #dbeafe;
}

/* ── Quick chips ── */
.ap-chatbot__quick {
  display: flex;
  gap: 7px;
  padding: 9px 12px;
  overflow-x: auto;
  background: #ffffff;
  border-top: 0.5px solid rgba(0, 0, 0, 0.07);
  flex-shrink: 0;
}

.ap-chatbot__quick::-webkit-scrollbar {
  height: 0;
}

.ap-chatbot__quick button {
  border: 0.5px solid #d1d5db;
  background: #f8fafc;
  border-radius: 999px;
  padding: 6px 13px;
  white-space: nowrap;
  cursor: pointer;
  font-size: 12px;
  color: #374151;
  font-family: inherit;
  transition:
    background 0.15s,
    border-color 0.15s,
    color 0.15s;
}

.ap-chatbot__quick button:hover {
  background: #eff6ff;
  border-color: #93c5fd;
  color: #1d4ed8;
}

/* ── Input row ── */
.ap-chatbot__input {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  background: #ffffff;
  border-top: 0.5px solid rgba(0, 0, 0, 0.07);
  flex-shrink: 0;
}

.ap-chatbot__input input {
  flex: 1;
  min-width: 0;
  height: 42px;
  border: 0.5px solid #d1d5db;
  background: #f8fafc;
  color: #111827;
  border-radius: 999px;
  padding: 0 16px;
  outline: none;
  font-size: 13px;
  font-family: inherit;
  transition:
    border-color 0.15s,
    box-shadow 0.15s,
    background 0.15s;
}

.ap-chatbot__input input::placeholder {
  color: #94a3b8;
}

.ap-chatbot__input input:focus {
  background: #fff;
  border-color: #60a5fa;
  box-shadow: 0 0 0 3px rgba(96, 165, 250, 0.15);
}

.ap-chatbot__input button {
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 50%;
  cursor: pointer;
  background: #000000;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition:
    opacity 0.15s,
    transform 0.1s;
}

.ap-chatbot__input button:hover {
  opacity: 0.85;
  transform: scale(1.05);
}

.ap-chatbot__input button svg {
  width: 16px;
  height: 16px;
}

/* ── Mobile ── */
@media (max-width: 520px) {
  .ap-chatbot {
    right: 10px;
    bottom: 10px;
  }

  .ap-chatbot__panel {
    width: calc(100vw - 20px);
    height: 78vh;
    max-height: 78vh;
    border-radius: 20px;
  }

  .ap-msg__bubble {
    max-width: 86%;
    font-size: 13px;
  }
}
input,
textarea,
[contenteditable="true"] {
  -webkit-user-select: text;
  -moz-user-select: text;
  -ms-user-select: text;
  user-select: text;
}

img {
  -webkit-user-drag: none;
  -webkit-touch-callout: none;
}

/* projects */

.projects-section {
  padding: 80px 0;
  background:
    radial-gradient(
      circle at center,
      rgba(255, 255, 255, 0.04),
      transparent 40%
    ),
    #070707;
  color: #fff;
}

.projects-section .container {
  width: 88%;
  max-width: 1400px;
  margin: auto;
}

.projects-title {
  font-size: 56px;
  font-weight: 400;
  margin: 0 0 40px;
  color: #fff;
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.project-card {
  position: relative;
  height: 360px;
  border-radius: 20px;
  overflow: hidden;
  cursor: pointer;
  background: #111;
  transition:
    transform 0.35s ease,
    box-shadow 0.35s ease;
}

.project-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
}

.project-card-image {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  filter: brightness(0.78);
  transition: transform 0.45s ease;
}

.project-card:hover .project-card-image {
  transform: scale(1.05);
}

.project-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.82), rgba(0, 0, 0, 0.12));
}

.project-card-content {
  position: absolute;
  left: 20px;
  right: 20px;
  bottom: 20px;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.project-name {
  font-size: 22px;
  font-weight: 600;
  color: #fff;
}

.project-arrow {
  width: 52px;
  height: 52px;
  min-width: 52px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.35);
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  backdrop-filter: blur(8px);
}

/* Project Modal */
.project-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: none;
}

.project-modal.active {
  display: block;
}

.project-modal-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(8px);
}

.project-modal-content {
  position: relative;
  z-index: 2;
  width: min(1400px, 94%);
  max-height: 92vh;
  overflow-y: auto;
  margin: 28px auto;
  border-radius: 26px;
  padding: 34px;
  background:
    radial-gradient(
      circle at top center,
      rgba(255, 255, 255, 0.05),
      transparent 35%
    ),
    linear-gradient(180deg, #0d0d0d, #060606);
  box-shadow: 0 20px 80px rgba(0, 0, 0, 0.55);
}

.project-modal-close {
  position: absolute;
  top: 1px;
  right: 8px;
  width: 30px;
  height: 30px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  font-size: 24px;
  cursor: pointer;
  line-height: 1;
  backdrop-filter: blur(8px);
}

.project-modal-top {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 26px;
  align-items: start;
  margin-bottom: 28px;
}

.project-modal-info h2 {
  font-size: 56px;
  line-height: 1.1;
  margin: 0 0 18px;
  font-weight: 500;
  color: #fff;
}

.project-modal-info p {
  font-size: 18px;
  line-height: 1.9;
  color: rgba(255, 255, 255, 0.82);
  margin: 0;
}

.project-modal-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.project-action-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 190px;
  min-height: 52px;
  padding: 0 20px;
  border-radius: 999px;
  text-decoration: none;
  border: 1px solid rgba(255, 255, 255, 0.25);
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  cursor: pointer;
  transition: 0.3s ease;
  font-weight: 600;
}

.project-action-btn:hover {
  background: rgba(255, 255, 255, 0.16);
  transform: translateY(-2px);
  color: #fff;
}

.project-modal-preview {
  position: relative;
  min-height: 320px;
  border-radius: 20px;
  overflow: hidden;
  background: #111;
}

.project-modal-preview img {
  width: 100%;
  height: 100%;
  min-height: 320px;
  object-fit: cover;
  display: block;
}

.project-play-btn {
  position: absolute;
  inset: 50% auto auto 50%;
  transform: translate(-50%, -50%);
  width: 108px;
  height: 108px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.35);
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  font-size: 42px;
  cursor: pointer;
  display: none;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(8px);
}

.project-modal-main {
  position: relative;
  border-radius: 24px;
  overflow: hidden;
  min-height: 500px;
  background: #111;
}

.project-modal-main img {
  width: 100%;
  min-height: 500px;
  height: 100%;
  object-fit: cover;
  display: block;
}

.project-gallery-section {
  margin-top: 32px;
  display: none;
}

.gallery-title {
  font-size: 28px;
  color: #fff;
  margin: 0 0 18px;
}

.project-gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.project-gallery-item {
  height: 220px;
  border-radius: 18px;
  overflow: hidden;
  background: #111;
}

.project-gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.35s ease;
  cursor: pointer;
}

.project-gallery-item:hover img {
  transform: scale(1.04);
}

/* Video Modal */
.video-modal {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: none;
}

.video-modal.active {
  display: block;
}

.video-modal-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.82);
  backdrop-filter: blur(8px);
}

.video-modal-content {
  position: relative;
  z-index: 2;
  width: min(1000px, 92%);
  margin: 48px auto;
  background: #0b0b0b;
  border-radius: 24px;
  padding: 18px;
  box-shadow: 0 20px 80px rgba(0, 0, 0, 0.45);
}

.video-modal-close {
  position: absolute;
  top: -16px;
  right: -16px;
  width: 50px;
  height: 50px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  font-size: 32px;
  cursor: pointer;
  z-index: 3;
}

.video-frame-wrap {
  position: relative;
  width: 100%;
  padding-top: 56.25%;
  border-radius: 18px;
  overflow: hidden;
  background: #000;
}

.video-frame-wrap iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.no-projects-message {
  color: rgba(255, 255, 255, 0.75);
  font-size: 18px;
  margin: 0;
}

@media (max-width: 992px) {
  .projects-grid {
    grid-template-columns: 1fr;
  }

  .project-modal-top {
    grid-template-columns: 1fr;
  }

  .project-modal-info h2 {
    font-size: 36px;
  }

  .projects-title {
    font-size: 36px;
  }

  .project-modal-content {
    padding: 22px;
  }

  .project-modal-main img,
  .project-modal-main {
    min-height: 320px;
  }

  .project-gallery-grid {
    grid-template-columns: 1fr;
  }

  .project-play-btn {
    width: 86px;
    height: 86px;
    font-size: 34px;
  }
}

@media (max-width: 576px) {
  .project-card {
    height: 280px;
  }

  .project-name {
    font-size: 18px;
  }

  .project-arrow {
    width: 44px;
    height: 44px;
    min-width: 44px;
    font-size: 20px;
  }

  .project-modal-content {
    width: 95%;
    margin: 20px auto;
    padding: 18px;
  }

  .project-modal-info p {
    font-size: 15px;
    line-height: 1.8;
  }

  .video-modal-content {
    width: 95%;
    margin: 80px auto 20px;
    padding: 12px;
  }
}

.website-modal {
  position: fixed;
  inset: 0;
  z-index: 10001;
  display: none;
}

.website-modal.active {
  display: block;
}

.website-modal-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.82);
  backdrop-filter: blur(8px);
}

.website-modal-content {
  position: relative;
  z-index: 2;
  width: min(1280px, 94%);
  height: min(90vh, 900px);
  margin: 30px auto;
  background: #0b0b0b;
  border-radius: 24px;
  padding: 18px;
  box-shadow: 0 20px 80px rgba(0, 0, 0, 0.45);
  display: flex;
  flex-direction: column;
}

.website-modal-close {
  position: absolute;
  top: -14px;
  right: -14px;
  width: 48px;
  height: 48px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  font-size: 30px;
  cursor: pointer;
  z-index: 3;
}

.website-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
  color: #fff;
}

.website-modal-title {
  margin: 0;
  font-size: 22px;
}

#websiteModalExternalLink,
#websiteFallbackLink {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 16px;
  border-radius: 999px;
  text-decoration: none;
  border: 1px solid rgba(255, 255, 255, 0.25);
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}

.website-frame-wrap {
  position: relative;
  flex: 1;
  min-height: 0;
  border-radius: 18px;
  overflow: hidden;
  background: #111;
}

#websiteModalFrame {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
  background: #fff;
}

.website-frame-fallback {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 24px;
  background: #111;
  color: #fff;
}

.website-frame-fallback p {
  margin-bottom: 16px;
}

@media (max-width: 768px) {
  .website-modal-content {
    width: 95%;
    height: 88vh;
    margin: 50px auto 20px;
    padding: 12px;
  }

  .website-modal-header {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* ================= Gallery Image Lightbox ================= */

.project-gallery-item {
  cursor: zoom-in;
  overflow: hidden;
  border-radius: 18px;
  position: relative;
}

.project-gallery-item img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  transition:
    transform 0.35s ease,
    filter 0.35s ease;
}

.project-gallery-item:hover img {
  transform: scale(1.06);
  filter: brightness(0.85);
}

.gallery-image-modal {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.gallery-image-modal.active {
  display: flex;
}

.gallery-image-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.82);
  backdrop-filter: blur(8px);
}

.gallery-image-content {
  position: relative;
  z-index: 2;
  width: min(1200px, 96vw);
  height: min(760px, 88vh);
  display: flex;
  align-items: center;
  justify-content: center;
  animation: galleryZoomIn 0.25s ease;
}

.gallery-image-content img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  border-radius: 18px;
  box-shadow: 0 30px 100px rgba(0, 0, 0, 0.55);
  background: #111;
}

.gallery-image-close {
  top: -10px;
  right: -10px;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  font-size: 30px;
  line-height: 1;
}

@keyframes galleryZoomIn {
  from {
    opacity: 0;
    transform: scale(0.94);
  }

  to {
    opacity: 1;
    transform: scale(1);
  }
}

@media (max-width: 768px) {
  .gallery-image-modal {
    padding: 14px;
  }

  .gallery-image-content {
    width: 96vw;
    height: 80vh;
  }

  .gallery-image-close {
    top: 8px;
    right: 8px;
    width: 42px;
    height: 42px;
    font-size: 28px;
  }
}
.gallery-image-fullscreen {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 5;

  width: 46px;
  height: 46px;
  border-radius: 50%;

  border: 1px solid rgba(255, 255, 255, 0.25);
  outline: 0;

  display: flex;
  align-items: center;
  justify-content: center;

  color: #fff;
  background: rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(10px);

  cursor: pointer;
  font-size: 22px;
  line-height: 1;

  transition: 0.25s ease;
}

.gallery-image-fullscreen:hover {
  background: rgba(0, 0, 0, 0.7);
  transform: scale(1.08);
}

.gallery-image-fullscreen .fullscreen-icon {
  display: block;
}

.gallery-image-fullscreen .close-icon {
  display: none;
}

/* لما الصورة تبقى fullscreen */
.gallery-image-modal.is-fullscreen .gallery-image-fullscreen .open-icon {
  display: none;
}

.gallery-image-modal.is-fullscreen .gallery-image-fullscreen .close-icon {
  display: block;
  transform: rotate(180deg);
}

/* خلي الزرار يظهر فوق الصورة */
.gallery-image-content {
  position: relative;
}

@media (max-width: 768px) {
  .gallery-image-fullscreen {
    top: 14px;
    right: 14px;
    width: 42px;
    height: 42px;
    font-size: 20px;
  }
}
.gallery-image-close {
  top: 16px;
  left: 16px;
  right: auto;
}

/* stop clicking */

body {
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
}

input,
textarea,
[contenteditable="true"] {
  -webkit-user-select: text;
  -moz-user-select: text;
  -ms-user-select: text;
  user-select: text;
}

img {
  -webkit-user-drag: none;
  -webkit-touch-callout: none;
}
.services-bg {
  background-image: url(../images/myimages/gallery/43.jpg);
  filter: grayscale(70%);
  filter: contrast(50%);
  filter: opacity(40%);
}
.menu-item-has-children {
  position: relative;
}

.menu-link {
  display: inline-flex;
  align-items: center;
}

.submenu-toggle {
  background: transparent;
  border: 0;
  color: inherit;
  cursor: pointer;
  margin-left: 8px;
  font-size: 13px;
}

.sub-menu {
  display: none;
}

.menu-item-has-children.open > .sub-menu {
  display: block;
}

/* Header */
.gallery-header {
  text-align: center;
  padding: 80px 20px 60px;
  position: relative;
}

.gallery-header h1 {
  font-size: 3.5rem;
  font-weight: 400;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--text-primary);
  margin-bottom: 16px;
}

.gallery-header .subtitle {
  color: var(--text-secondary);
  font-size: 0.95rem;
  font-weight: 300;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.gallery-header::after {
  content: "";
  display: block;
  width: 60px;
  height: 1px;
  background: var(--accent);
  margin: 30px auto 0;
}

/* Gallery Grid */
.gallery-container {
  padding: 0 40px 80px;
  max-width: 1400px;
  margin: 0 auto;
}

.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: 4px;
  cursor: pointer;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.gallery-item::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.7) 0%, transparent 50%);
  opacity: 0;
  transition: opacity 0.4s ease;
  z-index: 1;
  pointer-events: none;
}

.gallery-item:hover {
  transform: translateY(-4px);
  border-color: #333;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6);
}

.gallery-item:hover::before {
  opacity: 1;
}

.gallery-item img {
  width: 100%;
  height: 280px;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  display: block;
}

.gallery-item:hover img {
  transform: scale(1.08);
}

/* Overlay icon */
.gallery-item .overlay-icon {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.8);
  width: 50px;
  height: 50px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: all 0.4s ease;
  z-index: 2;
  color: white;
  font-size: 1.2rem;
}

.gallery-item:hover .overlay-icon {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

.gallery-item .img-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 20px;
  z-index: 2;
  transform: translateY(10px);
  opacity: 0;
  transition: all 0.4s ease;
}

.gallery-item:hover .img-caption {
  opacity: 1;
  transform: translateY(0);
}

.img-caption h6 {
  font-family: "Playfair Display", serif;
  font-size: 1.1rem;
  margin: 0;
  color: white;
}

.img-caption p {
  font-size: 0.8rem;
  color: var(--text-secondary);
  margin: 4px 0 0;
}

/* Modal Dark Theme */
.modal-content {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
}

.modal-header {
  border-bottom: 1px solid var(--border-subtle);
  padding: 16px 24px;
}

.modal-title {
  font-family: "Playfair Display", serif;
  color: var(--text-primary);
  font-size: 1.2rem;
}

.btn-close {
  filter: invert(1);
  opacity: 0.6;
}

.btn-close:hover {
  opacity: 1;
}

.modal-body {
  padding: 0;
}

.modal-body img {
  width: 100%;
  border-radius: 0 0 8px 8px;
}

.modal-footer {
  border-top: 1px solid var(--border-subtle);
  padding: 12px 24px;
}

.modal-footer small {
  color: var(--text-secondary);
}

/* Responsive */
@media (max-width: 991px) {
  .gallery-item img {
    height: 220px;
  }

  .gallery-header h1 {
    font-size: 2.5rem;
  }
}

@media (max-width: 767px) {
  .gallery-container {
    padding: 0 20px 60px;
  }

  .gallery-header {
    padding: 60px 20px 40px;
  }

  .gallery-header h1 {
    font-size: 2rem;
    letter-spacing: 2px;
  }
}

/* Subtle scrollbar */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: var(--bg-dark);
}

::-webkit-scrollbar-thumb {
  background: #333;
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: #444;
}
.lazy-gallery-img {
  opacity: 0;
  filter: blur(10px);
  transition:
    opacity 0.5s ease,
    filter 0.5s ease,
    transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.lazy-gallery-img.loaded {
  opacity: 1;
  filter: blur(0);
}

.banner-slider-wrapper {
  position: relative;
  min-height: 100vh;
  overflow: hidden;
  padding: 0;
}

.banner-slider {
  position: relative;
  width: 100%;
  height: 100vh;
  overflow: hidden;
  background: #000;
}

.banner-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transition:
    opacity 0.8s ease,
    visibility 0.8s ease;
}

.banner-slide.active {
  opacity: 1;
  visibility: visible;
  z-index: 2;
}

.banner-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(50%);
}

.banner-slide::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(rgba(0, 0, 0, 0.45), rgba(0, 0, 0, 0.65));
  z-index: 1;
}

.banner-slide-content {
  position: absolute;
  z-index: 3;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  max-width: 900px;
  width: 90%;
  text-align: center;
  color: #fff;
}

.banner-slide-content h1 {
  font-size: clamp(38px, 6vw, 86px);
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: 22px;
  color: #fff;
}

.banner-slide-content p {
  font-size: clamp(16px, 2vw, 24px);
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.9);
  margin: 0 auto;
  max-width: 760px;
}

.banner-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 4;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.35);
  background: rgba(0, 0, 0, 0.35);
  color: #fff;
  font-size: 28px;
  cursor: pointer;
  transition: 0.3s ease;
}

.banner-arrow:hover {
  background: #fff;
  color: #111;
}

.banner-arrow-left {
  left: 35px;
}

.banner-arrow-right {
  right: 35px;
}

.banner-dots {
  position: absolute;
  z-index: 4;
  left: 50%;
  bottom: 35px;
  transform: translateX(-50%);
  display: flex;
  gap: 12px;
}

.banner-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 0;
  background: rgba(255, 255, 255, 0.45);
  cursor: pointer;
  transition: 0.3s ease;
}

.banner-dot.active {
  width: 34px;
  border-radius: 20px;
  background: #fff;
}

/* Mobile */
@media (max-width: 768px) {
  .banner-slider,
  .banner-slider-wrapper {
    height: 80vh;
    min-height: 80vh;
  }

  .banner-arrow {
    width: 27px;
    height: 27px;
    font-size: 15px;
  }

  .banner-arrow-left {
    left: 7px !important;
  }

  .banner-arrow-right {
    right: 7px !important;
  }

  .banner-slide-content {
    width: 85%;
  }

  .banner-dots {
    bottom: 22px;
  }
}
.banner-slider-wrapper,
.banner-slider,
.banner-slide {
  direction: ltr;
}

.banner-slide {
  left: 0;
  right: 0;
}

.banner-slide-content {
  direction: inherit;
}

html[dir="rtl"] .banner-slide-content {
  direction: rtl;
}

html[dir="ltr"] .banner-slide-content {
  direction: ltr;
}

.banner-arrow-left {
  left: 35px;
  right: auto;
}

.banner-arrow-right {
  right: 35px;
  left: auto;
}

/* Particles container positioning */
.rts-project-area-7 {
  position: relative;
  /* Establish positioning context */
  overflow: hidden;
  /* Keep particles contained */
}

.particles-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  /* Behind content */
  pointer-events: none;
  /* Let clicks pass through to links/buttons */
}

/* Ensure your content stays above particles */
.rts-project-area-7 .container-full,
.rts-project-area-7 .container {
  position: relative;
  z-index: 2;
}

/* Optional: subtle fade at edges for smoother look */
.particles-container::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 200px;
  background: linear-gradient(to bottom, transparent, #1a1a1a);
  pointer-events: none;
}
.particles-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: none;

  /* Performance optimizations */
  contain: strict;
  /* Isolate from main document layout */
  will-change: transform;
  /* Promote to GPU layer */
  transform: translateZ(0);
  /* Force hardware acceleration */
}

/* Pause animation when section is not visible */
.rts-project-area-7:not(:hover) .particles-container canvas {
  /* Optional: reduce frame rate when not interacting */
}

/* Contact Persons Cards */
.ap-contact-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 380px));
  justify-content: center;
  /* center cards horizontally */
  align-items: stretch;
  /* same height */
  gap: 24px;
  margin: 0 auto 70px;
  width: 100%;
  position: relative;
  z-index: 2;
}

.ap-contact-card {
  height: 100%;
  min-height: 330px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;

  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 22px;
  padding: 28px 24px;
  backdrop-filter: blur(14px);
  transition: 0.35s ease;
}

.ap-contact-card:hover {
  transform: translateY(-6px);
  border-color: rgba(159, 31, 39, 0.55);
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.25);
}

.ap-card-top {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 18px;
  margin-bottom: 28px;
}

.ap-card-top h3 {
  font-size: 22px;
  line-height: 1.2;
  margin: 0;
  color: #fff;
  font-weight: 700;
}

.ap-card-top p {
  margin: 6px 0 0;
  color: rgba(255, 255, 255, 0.68);
  font-size: 15px;
  line-height: 1.4;
}

.ap-card-line {
  width: 2px;
  height: 55px;
  background: rgba(255, 255, 255, 0.28);
  border-radius: 20px;
}

.ap-card-ar {
  text-align: right;
  direction: rtl;
}

.ap-card-phones {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.ap-card-phones a {
  display: grid;
  grid-template-columns: 60px 1fr;
  align-items: center;
  gap: 12px;
  color: #fff;
  text-decoration: none;
  padding: 10px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.ap-card-phones a:hover strong {
  color: #9f1f27;
}

.ap-card-phones span {
  color: #9f1f27;
  font-weight: 700;
  letter-spacing: 2px;
  font-size: 15px;
}

.ap-card-phones strong {
  color: rgba(255, 255, 255, 0.88);
  font-size: 18px;
  font-weight: 600;
  letter-spacing: 1px;
  transition: 0.3s ease;
}

.ap-card-email {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 22px;
  color: rgba(255, 255, 255, 0.9);
  text-decoration: none;
  font-size: 17px;
  font-weight: 600;
  word-break: break-word;
}

.ap-card-email i {
  color: #9f1f27;
  font-size: 20px;
}

.ap-card-email:hover {
  color: #9f1f27;
}

/* Tablet */
@media (max-width: 1199px) {
  .ap-contact-cards {
    grid-template-columns: 1fr;
  }

  .ap-contact-card {
    max-width: 720px;
    width: 100%;
    margin: 0 auto;
  }
}

/* Mobile */
@media (max-width: 575px) {
  .ap-contact-cards {
    grid-template-columns: 1fr;
    gap: 18px;
    margin-bottom: 45px;
  }

  .ap-contact-card {
    min-height: auto;
    width: 100%;
    padding: 22px 18px;
    border-radius: 18px;
  }
}

/* scale model gallery */
/* Project Card Styling */
.project-card {
  position: relative;
  cursor: pointer;
  border-radius: 8px;
  overflow: hidden;
  background: #141414;
  /* aspect-ratio: 4 / 3; */
}

.project-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition:
    transform 0.4s ease,
    opacity 0.4s ease;
  opacity: 0.8;
}

.project-card:hover img {
  transform: scale(1.08);
  opacity: 1;
}

.project-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1.25rem;
  background: linear-gradient(
    to top,
    rgba(0, 0, 0, 0.85) 0%,
    rgba(0, 0, 0, 0) 60%
  );
  color: #fff;
}

.project-overlay h5 {
  margin: 0;
  font-size: 1.15rem;
  font-weight: 600;
}

.project-overlay .image-count {
  font-size: 0.85rem;
  opacity: 0.8;
  margin-top: 4px;
}

/* Modal Carousel Styling */
#projectCarousel .carousel-item img {
  max-height: 78vh;
  width: 100%;
  object-fit: contain;
  background: #0a0a0a;
}

.carousel-control-prev,
.carousel-control-next {
  width: 50px;
  height: 50px;
  background: rgba(0, 0, 0, 0.5);
  border-radius: 50%;
  top: 50%;
  transform: translateY(-50%);
  opacity: 0;
  transition: opacity 0.3s;
}

.modal.show .carousel-control-prev,
.modal.show .carousel-control-next {
  opacity: 1;
}

.carousel-control-prev {
  left: 15px;
}

.carousel-control-next {
  right: 15px;
}

/* Lazy load fade-in */
.lazy-gallery-img {
  opacity: 0;
  transition: opacity 0.5s ease;
}

.lazy-gallery-img.loaded {
  opacity: 1;
}
