@import url("https://fonts.googleapis.com/css2?family=Nunito:wght@400;700&display=swap");
@import url('https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&family=Turret+Road:wght@200;300;400;500;700;800&display=swap');

/* Reset & General Styles */
* {
  font-family: "Poppins", sans-serif;
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  scroll-padding-top: 2rem;
  scroll-behavior: smooth;
  list-style: none;
  text-decoration: none;
}

/* Root Variables */
:root {
  --main-color: #003ada;
  --second-color: #0732de;
  --text-color: #444444;
  --gradient: linear-gradient(#0700c7, #0008ec);
}

/* Scrollbar */
html::-webkit-scrollbar {
  width: 0.5rem;
}
html::-webkit-scrollbar-track {
  background: transparent;
}
html::-webkit-scrollbar-thumb {
  background: var(--main-color);
  border-radius: 5rem;
}

/* Sections */
 section {
 
  padding: 50px 0;
}

body {
  background: #000000;
  position: relative;
  overflow-x: hidden;
}



.circle-top {
  position: absolute;
  top: 3em;
  left: -8em;
  width: 30vw;
  height: 30vw;
  background: radial-gradient(circle, #00458f8f 0%, #00458e00 60%, transparent 100%);
  border-radius: 50%;
}

.circle-bottom {
  position: absolute;
  bottom: -5em;
  right: -8em;
  width: 30vw;
  height: 30vw;
  background: radial-gradient(circle, #00458f8f 0%, #00458e00 65%, transparent 100%);
  border-radius: 50%;
}



/* Header */
header {
  position: fixed;
  top: 0;
  right: 0;
  width: 100%;
  z-index: 100;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #EEEFF1;
  padding: 15px 100px;
    height: 70px;        /* صغرت ارتفاع التوب بار */

}

/* Logo */
.logo img {
  width: 40px;
  height: auto;
}

/* Navbar */
.navbar {
  display: flex;
}

.navbar li {
  position: relative;
}

.navbar a {
  font-size: 1rem;
  padding: 10px 20px;
  color: var(--text-color);
  font-weight: 500;
  position: relative;
}

.navbar a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 0;
  height: 3px;
  background: var(--gradient);
  transition: 0.5s;
}

.navbar a:hover::after {
  width: 100%;
}

/* Header Icons */
header .ri-close-line {
  display: none;
}

#menu-icon {
  font-size: 24px;
  cursor: pointer;
  z-index: 110;
  display: none;
}

/* Header Buttons */
.header-btn a {
  padding: 10px 20px;
  color: var(--text-color);
  font-weight: 500;
}

.header-btn .sign-in {
  background: #474FA0;
  color: #FFFFFF;
  border-radius: 0.5rem;
  transition: 0.5s;
}

.header-btn .sign-in:hover {
  background: var(--main-color);
}

img {
  border-radius: 50%;
  width: clamp(100px, 40vw, 120px);
  height: clamp(100px, 40vw, 120px);
  object-fit: cover;
  object-position: top;
}
.xboard {
  margin-top: 100px; /* يزقه لتحت */
  padding: 40px; /* مسافة داخلية */
  text-align: center; /* يخلي الكلام في النص */
  
  border-radius: 10px; /* حواف ناعمة */
  color: #ffffff; /* اللون أبيض عشان يبان */
}

/* العنوان الصغير */
.xboard span {
  display: block;
  font-size: 1.5rem; /* كبر الحجم */
  font-weight: 600;
  margin-bottom: 15px;
}

/* العنوان الكبير */
.xboard h1 {
  font-size: 2.5rem; /* كبر الخط */
  font-weight: 700;
  line-height: 1.3;
}


.circle-top {
  width: clamp(25rem, 30vw, 31.25rem);
  position: absolute;
  top: 3em;
  left: -8em;
  height: clamp(25rem, 30vw, 31.25rem);
  background: hsla(211, 100%, 28%, 1);

  background: radial-gradient(
    circle,
    #00458f8f 0%,
    #00458e00 60%,
    #ffffff00 100%
  );

  background: -moz-radial-gradient(
    circle,
    #00458f8f 0%,
    #00458e00 60%,
    #ffffff00 100%
  );

  background: -webkit-radial-radial-gradient(
    circle,
    #00458f8f 0%,
    #00458e00 60%,
    #ffffff00 100%
  );

  border-radius: 50%;
}
.circle-bottom {
  width: clamp(25rem, 30vw, 31.25rem);
  position: absolute;
  bottom: -5em;
  right: -8em;
  height: clamp(25rem, 30vw, 31.25rem);
  background: hsla(211, 100%, 28%, 1);

  background: radial-gradient(
    circle,
    #00458f8f 0%,
    #00458e00 65%,
    #ffffff00 100%
  );

  background: -moz-radial-gradient(
    circle,
    #00458f8f 0%,
    #00458e00 65%,
    #ffffff00 100%
  );

  background: -webkit-radial-radial-gradient(
    circle,
    #00458f8f 0%,
    #00458e00 65%,
    #ffffff00 100%
  );

  border-radius: 50%;
}


section {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  max-width: 75em;
  margin-inline: auto;
  gap: 0.938rem;
  transform: translatey(-3em);
  position: relative;
  z-index: 10;

  .card {
    padding: 1.875em 1.25em;
    max-width: 18.75rem;
    width: 90%;
    height: 16.875rem;
    display: grid;
    place-content: center;
    place-items: center;
    text-align: center;
    position: relative;

    &::before {
      position: absolute;
      content: "";
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      border-radius: 1rem;
      z-index: -1;
      border: 0.125rem solid transparent;
      background: linear-gradient(45deg, #1e272e, #48627a) border-box;
      -webkit-mask: linear-gradient(#fff 0 0) padding-box,
        linear-gradient(#fff 0 0);
      -webkit-mask-composite: destination-out;
      mask-composite: exclude;
    }

    h2 {
      color: #fff;
      letter-spacing: 0.05rem;
      font-size: clamp(1rem, 0.9375rem + 0.3125vw, 1.25rem);
      margin-top: 0.625em;
      margin-bottom: 0.188em;
    }

    p {
      color: #afafaf;
      font-size: clamp(0.8rem, 0.7625rem + 0.1875vw, 0.95rem);
    }

    &-top {
      flex-basis: 100%;
      display: flex;
      justify-content: center;
      gap: 0.938rem;
      flex-wrap: wrap;

      .card {
        img {
          width: clamp(7.5rem, 40vw, 9.375rem);
          height: clamp(7.5rem, 40vw, 9.375rem);
        }
      }
    }
  }
}
.main-footer {
  background: linear-gradient(135deg, #0707a5, #021f70);
  color: #fff;
  padding: 60px 20px 20px;
}

.footer-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  max-width: 1200px;
  margin: auto;
}

.footer-section h2.logo {
  font-size: 28px;
  margin-bottom: 15px;
  color: #ffffff;
}

.footer-section h3 {
  margin-bottom: 15px;
  font-size: 20px;
  color: #ffffff;
}

.footer-section p {
  line-height: 1.6;
  font-size: 14px;
  color: #ffffff;
}

.footer-section ul {
  list-style: none;
  padding: 0;
}

.footer-section ul li {
  margin-bottom: 10px;
}

.footer-section ul li a {
  text-decoration: none;
  color: #ffffff;
  transition: 0.3s;
}

.footer-section ul li a:hover {
  color: #000000;
}

.footer-section form {
  display: flex;
  gap: 10px;
}

.footer-section input {
  padding: 10px;
  border: none;
  border-radius: 5px;
  flex: 1;
}

.footer-section button {
  padding: 10px 20px;
  border: none;
  background: #1500ff;
  color: white;
  border-radius: 5px;
  cursor: pointer;
  transition: 0.3s;
}
.footer-section.social {
  margin-top: 40px; /* زود الرقم عشان ينزل أكتر */
}


.footer-section button:hover {
  background: #ffffff;
}

.social-icons a {
  color: rgb(43, 0, 255);
  font-size: 18px;
  margin-right: 15px;
  transition: 0.3s;
}

.social-icons a:hover {
  color: #ced5d5;
}

.footer-bottom {
  text-align: center;
  margin-top: 40px;
  border-top: 1px solid #333;
  padding-top: 15px;
  font-size: 14px;
  color: #aaa;
}
.footer-section.links {
  margin-left: 80px;   /* تحكم في المسافة من الشمال */
}

.footer-section.newsletter {
  text-align: center;
  margin-bottom: 20px; /* مسافة صغيرة تحت الصبصكراب */
}

.image-section {
  text-align: center;
  margin: 20px 0; /* مسافة فوق وتحت الصورة */
}

.image-section img {
  float: right;
  width: 250px;
  height: auto;
  margin-right: 200px;   /* مسافة شمال */
  margin-bottom: 15px; /* مسافة تحت */
  margin-top: -90px;   /* بالسالب = ترفع الصورة لفوق */
}
.footer-section h3 {
  border-bottom: 2px solid #fff; /* خط أبيض تحت */
  display: inline-block;         /* الخط قد عرض الكلمة */
  padding-bottom: 5px;           /* مسافة صغيرة بين النص والخط */
  margin-bottom: 15px;           /* مسافة تحت العنوان */
}

@media(max-width: 1375px) {
  .text { display: block; }
}

@media(max-width: 991px) {
  header { padding: 18px 40px; }
  section { padding: 50px 40px; }
}

@media(max-width: 881px) {
  .home { background-position: center; grid-template-columns: 1fr; }
  .text { display: block; }
  .form-container { padding-top: 2rem; }
}

@media(max-width: 795px){
  header { padding: 11px 40px; }
  #menu-icon { display: initial; }
  .sign-up { display: none; }
  .text h1 { font-size: 2.5rem; width: 320px; }
  .text p { font-size: .8rem; width: 320px; }
  .form-container form { position: unset; }

  header .navbar {
    position: absolute;
    top: -500px;
    left: 0;
    right: 0;
    display: flex;
    flex-direction: column;
    background: #FFFFFF;
    box-shadow: 0 4px 4px rgba(0, 0, 0, .1);
    transition: .2s ease;
    text-align: left;
  }

  .navbar.active { top: 100%; }
  .navbar a {
    padding: 1rem;
    border-left: 2px solid var(--main-color);
    margin: 1rem;
    display: block;
    transition: .3s ease;
  }
  .navbar a:hover {
    color: #FFFFFF;
    background: var(--main-color);
    border: none;
  }
  .navbar a::after { display: none; }

  .heading span { font-size: .9rem; font-weight: 600; }
  .heading h1 { font-size: 1.3rem; }

  .about-container {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .about-img { padding: 1rem; order: 1; }
  .about-text { order: 2; }
}

@media(max-width: 568px){
  .home { background-position: left; }
  .text h1 { width: 280px; font-size: 2rem; }
  .text p { width: 280px; font-size: .8rem; }
  .form-container { padding-top: 2rem; }
  .about-text p { font-size: 14px; }
  .copyright { flex-direction: column; }
  .newsletter .box { width: 284px; }
}

@media(max-width: 460px){
  header { padding: 6px 14px; }
  .logo img { width: 30px; }
  section { padding: 50px 6px; }
  .header-btn .sign-in {
    padding: 7px 10px;
    font-size: 14px;
    font-weight: 400;
  }
  .text h1 { font-size: 1.7rem; }
  .services-container {
    grid-template-columns: repeat(auto-fit, minmax(254px, auto));
  }
}
@media(max-width: 991px) {
  header {
    padding: 15px 20px;
  }
}

@media(max-width: 460px) {
  header {
    padding: 10px 10px;
  }
}
@media (max-width: 768px) {
  header .navbar {
    display: none;
    flex-direction: column;
    background-color: white;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    z-index: 1000;
  }

  header .navbar.active {
    display: flex;
  }
}
@media (max-width: 768px) {
  .home {
    grid-template-columns: 1fr;
    text-align: center;
    background-position: center;
    padding: 2rem;
  }

  .text h1 {
    font-size: 2.2rem;  
    transform: translateX(60px); /* زق الكلام 50 بكسل يمين */

  }

  .text p {
    font-size: 0.95rem;
    transform: translateX(60px); /* زق الكلام 50 بكسل يمين */

  }

  .social {
    justify-content: center;
  }
}

@media (max-width: 768px) {
  .image-section img {
    float: none;        /* شيل اليمين */
    display: block;     /* خليه عنصر لوحده */
    margin: 20px auto;  /* وسطه تحت */
    width: 70%;         /* يصغر شوية للموبايل */
  }
}
@media (max-width: 768px) {
  .footer-section.links {
    margin-left: 0;   /* ترجع لمكانها الطبيعي */
  }
}
@media (max-width: 768px) {
    .footer-section.newsletter form {
        flex-direction: column; /* input فوق الزر */
        gap: 10px;
        width: 100%;
        padding: 0;
    }

    .footer-section.newsletter input,
    .footer-section.newsletter button {
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }
}





