/* Base */
body {
  font-family: 'Montserrat', 'Cairo', sans-serif;
  margin: 0;
  padding: 0;
  -webkit-font-smoothing: antialiased;
}

/* Arabic specific font */
.lang-ar body, .lang-ar {
  font-family: 'Cairo', sans-serif;
}

/* Hero */
header.jumbotron {
  margin-bottom: 0;
}

/* Buttons */
.btn-danger {
  background-color: #e63946;
  border: none;
}
.btn-danger:hover {
  background-color: #d62828;
}

/* Services */
#services i {
  transition: transform 0.3s;
}
#services i:hover {
  transform: scale(1.1);
}

/* Portfolio */
.card {
  overflow: hidden;
  transition: transform 0.3s, box-shadow 0.3s;
}
.card:hover {
  transform: translateY(-10px);
  box-shadow: 0 1rem 2rem rgba(0,0,0,0.3);
}

/* Contact Form */
#contact .form-control {
  background: rgba(255,255,255,0.05);
  border: none;
  color: #fff;
}
#contact .form-control::placeholder {
  color: rgba(255,255,255,0.7);
}
footer.bg-black { background-color: #000 !important; }
footer a.text-muted:hover { color: #fff !important; }
footer hr { border-color: #333; }
.service-card {
  min-height: 100%;
}

/* Preloader */
#preloader {
  transition: opacity 0.6s ease, visibility 0.6s ease;
}

#preloader.fade-out {
  opacity: 0;
  visibility: hidden;
}
/* Preloader logo adjustments */
.preloader-logo {
  max-height: 300px;
}


.navbar-logo {
  position: absolute;
  top: 0%;
  left: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
  z-index: 1;
}
#mainNavbar {
  padding-top: 1.2rem;    /* was 1rem → now +20% */
  padding-bottom: 1.2rem; /* was 1rem → now +20% */
  transition: background-color 0.3s ease, padding 0.3s ease;
}

/* Scrolled state */
.navbar.scrolled {
  background-color: #000 !important;
  padding-top: 0.36rem;   /* was 0.3rem → now +20% = 0.36rem */
  padding-bottom: 0.36rem;/* was 0.3rem → now +20% = 0.36rem */
}

/* Logo shrink-on-scroll */
.navbar.scrolled #navLogo {
  transform: scale(0.7);
}




@media (max-width: 575.98px) {
  .navbar-logo { top: 40%; }
  #navLogo { height: 64px; }
  .display-3 { font-size: 2rem; }
  .preloader-logo { max-height: 160px; }
  .card-body h5 { font-size: 1rem; }
  .card-body p { font-size: 0.9rem; }
}

/* Right-to-left adjustments for Arabic */
.lang-ar {
  direction: rtl;
  text-align: right;
}
.lang-ar .navbar-logo { left: 50%; transform: translate(50%, -50%); } /* keep visual centered in rtl */
.lang-ar .navbar-brand-text { margin-right: 0.5rem; }
.lang-ar .nav-link { text-align: right; }
.lang-ar .mr-2 { margin-left: .5rem !important; margin-right: 0 !important; }
.lang-ar .ml-3 { margin-right: 1rem !important; margin-left: 0 !important; }

@media (max-width: 768px) {
  .card-img-top {
    height: 180px;
  }
}.card-img-top {
  height: 250px;         /* Fixed height */
  object-fit: cover;     /* Ensures image fills area without distortion */
  width: 100%;           /* Makes sure image fills the width of the card */
  display: block;
}

.popup-card {
  position: fixed;
  top: 20px;
  right: -400px;
  background: #111;
  color: #fff;
  padding: 15px 25px;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.5);
  font-weight: bold;
  z-index: 9999;
  transition: all 0.5s ease;
  max-width: 300px;
}
.popup-card.success { border-left: 6px solid #28a745; } /* green */
.popup-card.error { border-left: 6px solid #dc3545; }   /* red */
.popup-card.show { right: 20px; }

/* Fix header on small screens */
@media (max-width: 991.98px) {
  #mainNavbar {
    background-color: #000 !important;
    padding: 0.5rem 1rem;
  }

  .navbar-brand {
    font-size: 1.25rem;
  }

  #navLogo {
    height: 60px;
  }
}
h2.display-4 {
  color: #ff2e00; /* 🔸 Pheonixy orange tone — adjust if needed */
  font-weight: 700;
  transition: font-size 0.3s ease, line-height 0.3s ease, color 0.3s ease;
}

/* Tablets and small laptops */
@media (max-width: 768px) {
  h2.display-4 {
    font-size: 2.1rem !important;
    line-height: 1.35;
  }
}

/* Phones */
@media (max-width: 480px) {
  h2.display-4 {
    font-size: 1.8rem !important;
    line-height: 1.25;
  }
}
/* ==== FIX MOBILE OVERFLOW (RIGHT-SCROLL BUG) ==== */
html, body {
  width: 100%;
  overflow-x: hidden !important;
}



/* Fix for mobile navbar (offcanvas) */
.navbar-collapse {
  max-width: 100vw;
  overflow-x: hidden;
}

/* Ensure hero video doesn't exceed screen width */
#hero video {
  width: 100vw !important;
  max-width: 100vw !important;
  overflow-x: hidden;
}
/* Initial hidden state */
.hidden-section {
  opacity: 0;
  transform: translateY(60px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

/* After animation triggers */
.show-section {
  opacity: 1;
  transform: translateY(0);
}

/* Optional: smoother transition for Animate.css */
.animate__animated {
  animation-duration: 1s;
  animation-fill-mode: both;
}
/* Zoom Overlay */
.zoom-overlay {
  display: none;
  position: fixed;
  z-index: 2000;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.95);
  justify-content: center;
  align-items: center;
  overflow: hidden;
  transition: opacity 0.3s ease;
}

.zoom-overlay.show {
  display: flex;
  opacity: 1;
}

.zoom-overlay img {
  max-width: 90%;
  max-height: 90%;
  border-radius: 10px;
  transition: transform 0.3s ease;
  transform: scale(0.9);
}

.zoom-overlay.show img {
  transform: scale(1);
}

.close-zoom {
  position: absolute;
  top: 30px;
  right: 40px;
  color: #fff;
  font-size: 40px;
  cursor: pointer;
  font-weight: bold;
  transition: 0.2s ease;
}

.close-zoom:hover {
  color: #ff4b2b;
}

/* Navigation arrows */
.nav-zoom {
  position: absolute;
  top: 50%;
  font-size: 50px;
  color: #fff;
  cursor: pointer;
  user-select: none;
  transition: 0.2s ease;
  padding: 10px;
}

.nav-zoom:hover {
  color: #ff4b2b;
}

.nav-zoom.prev { left: 40px; }
.nav-zoom.next { right: 40px; }

/* Swipe animation */
@keyframes swipeLeft {
  from { transform: translateX(0); }
  to { transform: translateX(-100px); opacity: 0; }
}

@keyframes swipeRight {
  from { transform: translateX(0); }
  to { transform: translateX(100px); opacity: 0; }
}
/* ===== Make service cards 30% smaller on mobile (≈70% width) ===== */
@media (max-width: 767.98px) {
  /* Ensure columns don't force full-width layout issues */
  .row > .col-md-4 {
    display: flex;
    justify-content: center; /* center card inside column */
    align-items: flex-start;
    padding-left: 8px;
    padding-right: 8px;
  }

  /* Make the card visually smaller (70% of normal) and center it */
  .service-card {
    width: 70%;           /* main change: 30% smaller */
    max-width: 420px;     /* prevent it from growing too wide on larger phones */
    min-width: 260px;     /* keep minimum readable size */
    margin: 0 auto;       /* center in the column */
    padding: 18px;        /* slightly less padding on mobile */
    border-radius: 10px;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
  }

  /* Scale down icon/title/text proportionally */
  .service-card .fa-4x {
    font-size: calc(2.4rem);   /* shrinks icon size */
  }
  .service-card h4 {
    font-size: 1.05rem;
    margin-bottom: 0.45rem;
  }
  .service-card p {
    font-size: 0.95rem;
    line-height: 1.45;
  }
}

/* Extra small phones — keep cards readable but slightly bigger than 70% if needed */
@media (max-width: 479.98px) {
  .service-card {
    width: 78%;
    max-width: 380px;
    padding: 14px;
  }
  .service-card .fa-4x { font-size: 2.1rem; }
  .service-card h4 { font-size: 1rem; }
  .service-card p  { font-size: 0.92rem; }
}

