/* 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;
}

