*{
margin: 0;
padding: 0;
box-sizing: border-box;
}
body{
  background-color: #d2f6ff;
}
html{
  scroll-padding-top: 70px;
}
.hero-section {
  position: relative;
  min-height: 100vh;
  background: linear-gradient(rgba(0,0,0,.4),rgba(0,0,0,0.5)),url(../imgs/header2.jpg);
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
  
}
.hero-section .inner{
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%,-50%);
}
.padding{
  padding: 100px 0px;
}
.hero-navbar {
  background-color: transparent; 
  transition: background-color 0.3s ease, box-shadow 0.3s ease;
}
.scrolled {
  background-color: #fff !important; /* white background */
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.scrolled .nav-link,
.scrolled .navbar-brand,
.scrolled .fa-bars {
  color: #0e2a3c !important; /* blue color (matches your theme) */
}
.hero-navbar {
  transition: background-color 0.3s ease, color 0.3s ease;
}

.navbar .nav-link,
.navbar .navbar-brand,
.navbar .fa-bars {
  transition: color 0.3s ease;
}
/* When menu is opened on mobile */
.hero-navbar.menu-open .navbar-collapse {
  background-color: #fff;
}

/* Turn logo, links, and icon text blue when menu is open */
.hero-navbar.menu-open .nav-link {
  color: #0c2331 !important; /* Your blue */
}
.hero-navbar.menu-open .nav-link.active {
  font-weight: bold;
  border-bottom: 1px solid #0e2a3c !important;
}
.btn-main{
    background-color: #0e2a3c;
    border: 1px solid #0e2a3c;
    padding: 12px 40px;
    color: white;
    transition: all 0.5s ease-in-out;
}
.btn-main:hover{
    background-color: rgb(12, 35, 49);  
    color: white; 
    transform: translateY(-5px);
}
.nav-link,.navbar-brand{
  color:white !important;
}
.nav-link.active {
  font-weight: bold;
  border-bottom: 1px solid white;
}
.navbar-toggler {
    border: none;
}
.navbar-toggler:focus {
    text-decoration: none;
    outline: 0;
    box-shadow:none;
}
.navbar-brand{
  font-size: 30px;
}
.navbar-toggler{
  color: white !important; ;
}
.brand-name{
  font-size: 30px;
  font-weight: 700;
  
}
h1{
  font-size: 30px;
  
}
#home p{
  font-size: 16px;
}

.images{
  position: relative;
 
}
.image-stack-container {
  position: relative;
  width: 100%;
  height: 250px; /* Base height for mobile */
  border-radius: 10px;
  overflow: hidden;
}
.section-1 .img,
.section-2 .img,
.section-3 .img{
  position: relative;
  z-index: 0;
}
/* Base (mobile) pseudo-element */
.images::before,.section-1 .img::before,.section-2 .img::before,.section-3 .img::before {
  content: "";
  position: absolute;
  background-color: #1c4f6e;
  width: 101%;     /* Wider on small screens */
  height: 100%;
  top: 10px;
  right: 5px;
  border-radius: 10px;
  z-index: -1;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}


@keyframes stackReveal {
  0% {
    transform: translateY(100%);
    opacity: 0;
  }
  10% {
    transform: translateY(0);
    opacity: 1;
  }
  30% {
    transform: translateY(0);
    opacity: 1;
  }
  40% {
    transform: translateY(100%);
    opacity: 0;
  }
  100% {
    transform: translateY(100%);
    opacity: 0;
  }
}

.stack-img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 10px;
  animation: stackReveal 12s infinite ease-in-out;
  opacity: 0;
}


.img1 {
  animation-delay: 0s;
}
.img2 {
  animation-delay: 2s;
}
.img3 {
  animation-delay: 4s;
}
.img4 {
  animation-delay: 6s;
}
.img5 {
  animation-delay: 8s;
}
.img6 {
  animation-delay: 10s;
}

.image-stack-container {
  position: relative;
  height: 400px; 
  overflow: hidden;
}

.main-heading,.main-heading-center {
  position: relative;
}
html[dir="rtl"] .main-heading::after {
 content: "• ━━━━━━━━━━━━ •";
  position: absolute;
  top: 100%; 
  left: 87%;
  transform: translateX(-50%);
  font-size: 1.2rem;
  color: #aaa; 
  white-space: nowrap;
  user-select: none;
  pointer-events: none;
}
html[dir="ltr"] .main-heading::after {
 content: "• ━━━━━━━━━━━━ •";
  position: absolute;
  top: 100%; 
  left: 17%;
  transform: translateX(-50%);
  font-size: 1.2rem;
  color: #aaa; 
  white-space: nowrap;
  user-select: none;
  pointer-events: none;
}
.main-heading-center::after {
 content: "• ━━━━━━━━━━━━ •";
  position: absolute;
  top: 100%; 
  left: 50%;
  transform: translateX(-50%);
  font-size: 1.2rem;
  color: #aaa; 
  white-space: nowrap;
  user-select: none;
  pointer-events: none;

}


.services .card {
  position: relative; 
  overflow: hidden;
  border-radius: 20px 20px 0 0;
  border: 1px solid #0d2b3d;
  box-shadow: 3px 3px 15px 0 rgba(13, 43, 61, 0.1);
  background: white;
  z-index: 1;
  transition: all .3s ease-in-out;
}

.services .card::before,
.services .card::after {
  content: "";
  width: 0;
  height: 50%;
  background-color: rgb(246, 246, 246,.2);
  position: absolute;
  z-index: 1;
  transition: all .3s ease-in-out;
}

.services .card::before {
  left: 0;
  top: 0;
}

.services .card::after {
  right: 0;
  bottom: 0;
}

.services .card:hover::before,
.services .card:hover::after {
  width: 100%;
}
.services .icon{
  overflow: hidden;
}
.services .icon img{
  width: 100%;
  height: 250px;
  object-fit: cover;
}
.services .card .content{
   padding: 60px 0;
}

.services  .icon {
  overflow: hidden;
  position: relative;
}
    
.services  .icon::after {
  content: "";
  background-image: url(../imgs/team-shape.svg);
  background-repeat: no-repeat;
  position: absolute;
  top: 88%;
  left: 0%;
  height: 60%;
  width: 100%;
  z-index: 1;
}
.services .content h3{
  font-size: 18px;
}
.media-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr); 
  gap: 15px;
}

.media-item {
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border-radius: 10px;
 
}

.media-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  text-align: center;
  
  
}

html[dir="rtl"] .media-grid .media-item .img1{
border-radius: 0px 80px 0px 0px;
}
html[dir="rtl"] .media-grid .media-item .img2{
  border-radius: 80px 0px 0px 0px;
}
html[dir="rtl"] .media-grid .media-item .img3{
border-radius: 0px 0px 80px 0px;
}
html[dir="rtl"] .media-grid .media-item .img4{
  border-radius: 0px 0px 0px 80px;
}
html[dir="ltr"] .media-grid .media-item .img1{
border-radius: 80px 0px 0px 0px;
}
html[dir="ltr"] .media-grid .media-item .img2{
  border-radius: 0px 80px 0px 0px;
}
html[dir="ltr"] .media-grid .media-item .img3{
border-radius: 0px 0px 0px 80px;
}
html[dir="ltr"] .media-grid .media-item .img4{
  border-radius: 0px 0px 80px 0px;
}

.section-1 .img{
  width: 100%;
  height: 100%;
}
.section-1 .img img{
  width: 100%;
}
.contact .box{
    box-shadow: 0px 0px 20px rgba(0, 0, 0, 0.1);
}
.contact .box p{
    font-size: 14px;
    font-family: var(--default-font);
}
form input, form textarea{
    border: 1px solid rgb(78, 78, 78,.3);
    padding: 12px 24px;  
}
form input::placeholder, form textarea::placeholder{
    color: rgb(78, 78, 78,.5);
}
form input:focus, form textarea:focus{
    border: 1px solid var(--main-color);
    outline: none;
}
form button{
    
    font-size: 1.1rem;
}
form button:hover{
    outline: none;
    transition: all .5s;
}
.form-select:focus {
    box-shadow: none;
}
 .GMT{
  max-height: 80px; 
  object-fit: cover;
 }
 footer a{
  text-decoration: none;
  color: white;
 }
  .fixed-contact-buttons {
  position: fixed;
  bottom: 20px;
  right: 20px;
  display: flex;
  flex-direction: column;
  gap: 15px;
  z-index: 1050;
}
.whatsapp-button,.phone-button {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background-color: #25D366; 
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
  font-size: 22px;
  transition: background-color 0.3s ease;
}


.whatsapp-button:hover,.phone-button:hover {
  background-color: #1da851;
}
@media (max-width: 768px) {
  .media-grid {
    grid-template-columns: 1fr; 
  }
  .media-item .img1,
  .media-item .img2,
  .media-item .img3,
  .media-item .img4 {
    border-radius: 10px !important;
  }
}

/* Tablet (≥ 576px) */
@media (min-width: 576px) {
  .image-stack-container {
    height: 300px;
  }

  .images::before {
    width: 101%;
    top: 10px;
    right: 5px;
  }
  .services .content h3{
  font-size: 16px;
}
html[dir="rtl"] .section-title::before {
  content: attr(data-ar); /* Or data-ar if Arabic page */
  top: 60%;
  left: 69%;
}
  .media-grid {
    grid-template-columns: repeat(2, 1fr); 
  }
html[dir="rtl"] .media-item .img1{
border-radius: 80px 0px 0px 0px;
}
html[dir="rtl"] .media-item .img2{
  border-radius: 0px 0px 80px 0px;
}
html[dir="rtl"] .media-item .img3{
border-radius: 0px 80px 0px 0px;
}
html[dir="rtl"] .media-item .img4{
  border-radius: 0px 0px 0px 80px;
}
html[dir="ltr"] .media-item .img1{
border-radius: 0px 80px 0px 0px;
}
html[dir="ltr"] .media-item .img2{
  border-radius: 0px 0px 0px 80px;
}
html[dir="ltr"] .media-item .img1{
border-radius: 80px 0px 0px 0px;
}
html[dir="ltr"] .media-item .img4{
  border-radius: 0px 0px 80px 0px;
}
}

/* Desktop (≥ 768px) */
@media (min-width: 767px) {
  .image-stack-container {
    height: 400px;
  }

  .images::before {
    width: 104%;
    top: 20px;
    right: 5px;
  }
  .services  .icon::after {
     content: "";
        top: 75%;
  }
  
}

@media (min-width: 992px){
.services .content h3{
  font-size: 20px;
}
.services  .icon::after {
     content: "";
        top: 72%;
}
.brand-name{
  font-size: 50px;  
}
h1{
  font-size: 60px;
}
#home p{
  font-size: 20px;
}
html[dir="rtl"] .main-heading::after {
 content: "• ━━━━━━━━━━━━ •";
  left: 92%;

}
html[dir="ltr"] .main-heading::after {
 content: "• ━━━━━━━━━━━━ •";
  left: 12%;

}
.services  .icon::after {
     content: "";
        top: 77%;
  }
.hero-navbar.menu-open .navbar-collapse {
  background-color:transparent;
}
/* Turn logo, links, and icon text blue when menu is open */
.hero-navbar.menu-open .nav-link {
  color: #fff !important; /* Your blue */
}
.hero-navbar.menu-open .nav-link.active {
  font-weight: bold;
  border-bottom: 1px solid #fff !important;
}
}

@media (min-width: 1200px){
  .services  .icon::after {
     content: "";
        top: 75%;
  }
}
 
