body {
  margin: 0;
  font-family: Arial, sans-serif;
  background: linear-gradient(135deg, #f4f7fb, #e9f1ff);
  color: #222;
  padding-bottom: 80px;

  animation: pageLoad 0.6s ease-in;
}

/* TOP BAR */
.topbar {
  background: #0b3d91;
  color: #fff;
  text-align: center;
  padding: 10px;
  font-size: 14px;
  font-weight: bold;
}

/* HEADER */
header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 25px;
  background: #fff;
  box-shadow: 0 5px 20px rgba(0,0,0,0.08);
  position: sticky;
  top: 0;
  z-index: 999;
}

.logo img {
  height: 60px;
}

/* NAV */
nav a {
  margin: 0 10px;
  text-decoration: none;
  color: #333;
  font-weight: 600;
  transition: 0.3s;
}

nav a:hover {
  color: #0b3d91;
}

/* CTA */
.cta {
  background: #25d366;
  color: #fff;
  padding: 10px 15px;
  border-radius: 25px;
  text-decoration: none;
  font-weight: bold;
}

/* HERO */
#hero {
  position: relative;
  height: 520px;
  overflow: hidden;
}

.hero-bg {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(45%);
}

.hero-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  color: #fff;
  width: 90%;
}

.hero-text h1 {
  font-size: 38px;
  animation: fadeUp 1s ease forwards;
}

.hero-text p {
  font-size: 18px;
  opacity: 0.9;
  animation: fadeUp 1.3s ease forwards;
}

.hero-btn {
  display: inline-block;
  margin-top: 20px;
  padding: 12px 22px;
  background: #25d366;
  color: #fff;
  border-radius: 30px;
  text-decoration: none;
  font-weight: bold;
  transition: 0.3s;

  animation: fadeUp 1.6s ease forwards;
}

.hero-btn:hover {
  transform: scale(1.08);
}

/* SERVICES */
#services {
  padding: 70px 20px;
  text-align: center;
}

#services h2 {
  font-size: 30px;
  color: #0b3d91;
  margin-bottom: 35px;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 20px;
  max-width: 1100px;
  margin: auto;
}

.card {
  background: #fff;
  padding: 25px;
  border-radius: 18px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.08);
  transition: 0.3s;

  animation: cardIn 0.8s ease forwards;
}

.card:hover {
  transform: translateY(-7px);
  box-shadow: 0 15px 30px rgba(0,0,0,0.15);
}

.card img {
  width: 65px;
  height: 65px;
}

/* WHY */
#why {
  background: #fff;
  padding: 70px 20px;
  text-align: center;
}

#why h2 {
  color: #0b3d91;
}

#why p {
  font-size: 18px;
  margin: 10px 0;
}

/* CONTACT */
#contact {
  padding: 70px 20px;
  text-align: center;
}

form {
  max-width: 450px;
  margin: auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

input, textarea {
  padding: 12px;
  border: 1px solid #ddd;
  border-radius: 10px;
  outline: none;
}

button {
  padding: 12px;
  border: none;
  background: #0b3d91;
  color: #fff;
  border-radius: 10px;
  font-weight: bold;
}

/* FLOAT BUTTON */
.float {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: #25d366;
  color: #fff;
  padding: 14px 16px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: bold;
  box-shadow: 0 10px 25px rgba(0,0,0,0.2);

  animation: pulse 2s infinite;
}

/* MOBILE BAR */
.mobile-bar{
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background: linear-gradient(90deg, #0b3d91, #0a2f6b);
  display: flex;
  justify-content: space-around;
  padding: 12px 0;
  z-index: 9999;
  box-shadow: 0 -5px 20px rgba(0,0,0,0.2);

  animation: slideUp 0.8s ease;
}

.mobile-bar a{
  color: #fff;
  text-decoration: none;
  font-weight: bold;
  font-size: 14px;
}

/* FOOTER */
footer {
  text-align: center;
  padding: 20px;
  background: #111;
  color: #fff;
}

/* ANIMATIONS */
html{
  scroll-behavior: smooth;
}

@keyframes pageLoad{
  from{ opacity: 0; transform: scale(0.98); }
  to{ opacity: 1; transform: scale(1); }
}

@keyframes fadeUp{
  from{ opacity: 0; transform: translateY(20px); }
  to{ opacity: 1; transform: translateY(0); }
}

@keyframes cardIn{
  from{ opacity: 0; transform: translateY(30px); }
  to{ opacity: 1; transform: translateY(0); }
}

@keyframes pulse{
  0%{transform: scale(1);}
  50%{transform: scale(1.08);}
  100%{transform: scale(1);}
}

@keyframes slideUp{
  from{ transform: translateY(100%); }
  to{ transform: translateY(0); }
}

/* MOBILE FIX */
@media (max-width: 768px) {
  header {
    flex-direction: column;
    gap: 10px;
    text-align: center;
  }

  nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
  }

  .hero-text h1 {
    font-size: 24px;
  }

  .grid {
    grid-template-columns: 1fr 1fr;
  }
}
#loader{
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #0b3d91;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 99999;
}

.loader-box{
  text-align: center;
  color: #fff;
}

.loader-box img{
  width: 120px;
  margin-bottom: 10px;
  animation: pulse 1.5s infinite;
}

body.loaded #loader{
  display: none;
}
.popup{
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.6);
  justify-content: center;
  align-items: center;
  z-index: 99999;
}

.popup-box{
  background: #fff;
  padding: 20px;
  width: 90%;
  max-width: 400px;
  border-radius: 15px;
  text-align: center;
  box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.popup-box h2{
  color: #0b3d91;
  margin-bottom: 15px;
}

.popup-box input,
.popup-box textarea{
  width: 100%;
  margin: 8px 0;
  padding: 10px;
  border-radius: 10px;
  border: 1px solid #ddd;
  outline: none;
}

.popup-box button{
  width: 100%;
  padding: 12px;
  background: #25d366;
  color: #fff;
  border: none;
  border-radius: 10px;
  font-weight: bold;
  cursor: pointer;
}

.popup-box span{
  display: block;
  margin-top: 10px;
  color: red;
  cursor: pointer;
}
@media (max-width: 768px){

  header{
    flex-direction: column;
    gap: 10px;
    text-align: center;
  }

  nav{
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
  }

  .hero-text h1{
    font-size: 22px;
  }

  .hero-text p{
    font-size: 14px;
  }

  .service-list{
    grid-template-columns: 1fr;
  }

  .float-buttons{
    right: 10px;
    bottom: 10px;
    flex-direction: column;
  }

}
@media (max-width: 768px){

  header{
    flex-direction: column;
    gap: 10px;
    text-align: center;
  }

  nav ul{
    flex-direction: column;
    gap: 10px;
    padding: 0;
  }

  #hero .hero-text h1{
    font-size: 22px;
  }

  #hero .hero-text p{
    font-size: 14px;
  }

  .service-list{
    grid-template-columns: 1fr;
  }

  .service img{
    width: 80px;
  }

  .header-contacts{
    font-size: 12px;
  }

  .float-buttons{
    right: 10px;
    bottom: 10px;
  }

}
body{
  background: #f3f6fb;
}

/* تحسين شكل الكروت */
.service{
  border-radius: 18px;
  box-shadow: 0 6px 18px rgba(0,0,0,0.08);
  transition: 0.3s ease;
}

.service:hover{
  transform: translateY(-6px);
  box-shadow: 0 12px 25px rgba(0,0,0,0.12);
}

/* تحسين الهيدر */
header{
  backdrop-filter: blur(6px);
}

/* تحسين أزرار CTA */
.cta{
  background: linear-gradient(135deg, #0b3d91, #25d366);
  border-radius: 30px;
}

/* تحسين العناوين */
h2{
  letter-spacing: 0.5px;
}

/* تحسين الهيرو */
#hero{
  border-radius: 0 0 25px 25px;
  overflow: hidden;
}html{
  scroll-behavior: smooth;
}

body{
  animation: fadeInPage 0.8s ease-in;
}

@keyframes fadeInPage{
  from{
    opacity: 0;
    transform: scale(0.98);
  }
  to{
    opacity: 1;
    transform: scale(1);
  }
}

/* أنيميشن للعناوين */
h1, h2, p{
  animation: fadeUp 1s ease forwards;
}

@keyframes fadeUp{
  from{
    opacity: 0;
    transform: translateY(20px);
  }
  to{
    opacity: 1;
    transform: translateY(0);
  }
}
.float-btn{
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: #25d366;
  color: #fff;
  padding: 14px 16px;
  border-radius: 50px;
  font-weight: bold;
  text-decoration: none;
  box-shadow: 0 6px 18px rgba(0,0,0,0.2);
  z-index: 9999;
  transition: 0.3s;
}

.float-btn:hover{
  transform: scale(1.1);
}
*{
  transition: all 0.2s ease-in-out;
}
.call-btn{
  background: #25d366;
  color: #fff;
  padding: 10px 15px;
  border-radius: 25px;
  text-decoration: none;
  font-weight: bold;
  transition: 0.3s;
  margin-left: 10px;
}

.call-btn:hover{
  transform: scale(1.05);
}
#hero{
  position: relative;
  height: 500px;
  overflow: hidden;
}

.hero-img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.hero-text{
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  color: #fff;
  width: 90%;
}
.service-list{
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 25px;
  padding: 20px;
}

.service{
  background: #fff;
  border-radius: 18px;
  padding: 25px 15px;
  text-align: center;
  box-shadow: 0 6px 18px rgba(0,0,0,0.08);
  transition: 0.3s ease;
}

.service:hover{
  transform: translateY(-8px);
  box-shadow: 0 12px 25px rgba(0,0,0,0.15);
}

.service img{
  width: 70px;
  height: 70px;
  object-fit: contain;
  margin-bottom: 10px;
}

.service h3{
  font-size: 16px;
  color: #0b3d91;
}