.imported_font {
    font-family: "Lato", sans-serif;
    font-weight: 700;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 3% 8%;
    background-image: url("images/wall4.jpg");
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    font-family: "Lato", sans-serif;
}

.header {
    width: 92%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background:  linear-gradient(180deg, rgba(213, 216, 218, 0.322), rgba(206, 216, 221, 0.25));;
    border-radius: 20px;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.233);
    padding: 25px 50px;
    margin: 0 auto;
}

.main_link_page_name_in_header {
    display: flex;
    align-items: center;
    max-width: 90px;
}

.main_link_page_name_in_header a {
    text-decoration: none;
    color: rgb(2, 118, 226);
    display: flex;
    align-items: center;
    font-size: 15px;
    transition: transform 0.5s ease-in-out, color 0.5s ease-in-out;
}

.main_link_page_name_in_header a:hover {
    transform: scale(1.1);
    color: rgb(57, 145, 226);
}

.main_link_page_name_in_header a img {
    width: 40%;
}

.page_links_in_header {
    display: flex;
    align-items: center;
}

.page_links_in_header a {
    color: rgb(2, 118, 226);
    text-decoration: none;
    padding: 0 25px;
    transition: transform 0.5s ease-in-out, color 0.5s ease-in-out;
}

.page_links_in_header a:hover {
    transform: scale(1.1);
    color: rgb(57, 145, 226);
}


.theme-btn{
    padding: 5px 10px;
    background: linear-gradient(180deg, rgba(3, 111, 184, 0.45), rgba(10,10,10,0.25));
    border-radius: 10px;
    border: none;
}

.Home {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px;
    margin: 150px 0 0 0;
}

.intro {
    max-width: 60%;
}

.Home_png {
    flex: 1;
    display: flex;
    justify-content: flex-end;
}

.Home_png img {
    width: 300px;
    border-radius: 10px;
    box-shadow: 0 0 10px 10px rgba(255, 255, 255, 0.473);
    transition: transform 0.4s ease-in-out;
}

.Home_png img:hover {
    transform: scale(1.1);
}

.p_in_intro p {
    color: #fff;
    text-shadow: 3px 3px 5px #000;
    padding: 10px 15px;
    margin: 0;
}

.p_in_intro h1 {
    color: #fff;
    text-shadow: 3px 3px 5px #000;
    margin: 0;
}

.p_in_intro h1 span {
    color: rgb(0, 110, 255);
    text-shadow: 3px 3px 5px #000;
}

.contact_button {
    margin: 25px 0;
}

.contact_button a {
    color: #fff;
    text-decoration: none;
    font-size: 18px;
    background-color: rgb(0, 153, 255);
    padding: 10px 20px;
    border-radius: 12px;
    box-shadow: 0 0 5px 1px rgb(0, 153, 255);
    transition: transform 0.3s ease-in-out, color 0.3s ease-in-out, background-color 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
}

.contact_button a:hover {
    transform: scale(1.1);
    color: rgb(0, 174, 255);
    background-color: #fafafa;
    box-shadow: 0 0 5px 5px #fff;
}

.contact_links_layout {
    display: flex;
    align-items: center;
    gap: 20px;
}

.Contacts-links {
    display: flex;
    align-items: center;
    gap: 25px;
    padding: 0 20px;
}

.Contacts-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: rgb(6, 184, 255);
    box-shadow: 0 0 5px 1px rgb(0, 153, 255);
    border-radius: 50%;
    transition: transform 0.3s ease-in-out, background-color 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
}

.Contacts-links a img {
    width: 60%;
}

.Contacts-links a:hover {
    transform: scale(1.1);
    background-color: #fafafa;
    box-shadow: 0 0 5px 5px #fff;
}



.Services {
    margin: 8% 0;
    display: flex;
    justify-content: space-around;
    align-items: stretch;
    flex-wrap: wrap;
    gap: 30px;
}

.Services .service {
    flex: 1 1 300px;
    max-width: 320px;
    background: linear-gradient(180deg, rgba(3, 111, 184, 0.45), rgba(10,10,10,0.25));
    border-radius: 20px;
    padding: 30px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.Services .service:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

.Services .service img {
    width: 45px;
    margin-bottom: 15px;
}

.Services .service p {
    font-size: 1.2rem;
    font-weight: bold;
    margin: 0 0 10px;
}

.Services a {
    margin: 15px 0 0 0;
    color: #fff;
    text-decoration: none;
    font-size: 18px;
    background-color: rgba(0, 153, 255, 0.397);
    padding: 10px 20px;
    border-radius: 12px;
    box-shadow: 0 0 5px 1px rgba(0, 153, 255, 0.329);
    transition:
        transform 0.3s ease-in-out,
        color 0.3s ease-in-out,
        background-color 0.3s ease-in-out,
        box-shadow 0.3s ease-in-out;
}

.Services a:hover {
    transform: scale(1.1);
    color: rgba(0, 174, 255, 0.39);
    background-color: #dbeffd;
    box-shadow: 0 0 5px 5px #dbeffd;
}

.Services .service span {
    font-size: 0.95rem;
    color: #e5e5e5;
    line-height: 1.4;
    text-shadow: 2px 2px 10px black;
}

.Services-section img {
    width: 30%;
}

.Services-section {
    display: flex;
    justify-content: center;
    margin: 20% 0 0 0;
}

.projects_section {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.projects_section{
  display:flex;
  gap:22px;
  flex-wrap:wrap;
  justify-content:center;
  margin:6% 0;
}

.projects{
  background: linear-gradient(180deg, rgba(3, 111, 184, 0.45), rgba(10,10,10,0.25));
  border: 1px solid rgba(255,255,255,0.04);
  padding:20px;
  width: 300px;
  border-radius:14px;
  text-align:center;
  backdrop-filter: blur(6px);
  transition: transform .28s ease, box-shadow .28s ease;
}

.projects:hover{
  transform: translateY(-8px);
  box-shadow: 0 18px 40px rgba(2,12,30,0.6);
}

.projects img{
  width:76px;
  height:76px;
  object-fit:cover;
  margin-bottom:12px;
  filter: drop-shadow(0 6px 12px rgba(0,0,0,0.6));
}

.projects h3{
  margin:6px 0;
  color:#e9f6ff;
  font-size:1.15rem;
  letter-spacing:0.4px;
}

.proj-desc{
  margin-top:10px;
  font-size:0.95rem;
  color:#cdd9e6;
  line-height:1.45;
  text-shadow: 0 2px 6px rgba(0,0,0,0.6);
  font-style: italic;
}




  #scrollTopBtn {
    position: fixed;
    bottom: 20px;
    right: 20px;
    display: none; /* مخفي في البداية */
    margin: 15px 0 0 0;
    color: #fff;
    text-decoration: none;
    font-size: 18px;
    background-color: rgba(0, 153, 255, 0.397);
    padding: 10px 20px;
    border-radius: 12px;
    box-shadow: 0 0 5px 1px rgba(0, 153, 255, 0.329);
    transition:
        transform 0.3s ease-in-out,
        color 0.3s ease-in-out,
        background-color 0.3s ease-in-out,
        box-shadow 0.3s ease-in-out;
    border: none; 
  }

  #scrollTopBtn:hover {
    transform: scale(1.1);
    color: rgb(0, 174, 255);
    background-color: #4b008875;
    box-shadow: 0 0 3px 2px #4b008875;
  }




/* ============================= */
/* تابلت متوسط (أقل من 1024px) */
/* ============================= */
@media (max-width: 1024px) {
  .Home {
    flex-direction: column;
    text-align: center;
    gap: 30px;
  }

  .intro {
    max-width: 100%;
  }

  .Home_png {
    justify-content: center;
  }

  .Home_png img {
    width: 150px;
  }

  .Services {
    justify-content: center;
  }

  .projects_section {
    justify-content: center;
  }
  .Contacts-links {
    justify-content: center;
}
}

/* ============================= */
/* تابلت صغير / موبايل أفقي (أقل من 768px) */
/* ============================= */
@media (max-width: 768px) {
  body {
    margin: 5%;
  }

  .header {
    flex-direction: column;
    gap: 15px;
    padding: 20px;
    text-align: center;
  }

  .page_links_in_header {
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
  }
  .main_link_page_name_in_header a img{
    width: 35px;
  }
  .main_link_page_name_in_header {
    max-width: 100%;
    justify-content: center;
  }

  .Home {
    margin-top: 100px;
  }

  .Home_png img {
    width: 150px;

  }

  .Services {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 50px 0;
  }

  .projects {
    width: 80%;
  }
}

/* ============================= */
/* موبايل صغير (أقل من 480px) */
/* ============================= */
@media (max-width: 480px) {
  body {
    margin: 5% 3%;
  }

  .header {
    padding: 15px;
  }

  .page_links_in_header a {
    padding: 10px;
    font-size: 14px;
  }

  .Home_png img {
    width: 160px;
  }

  .p_in_intro h1 {
    font-size: 1.4rem;
  }

  .p_in_intro p {
    font-size: 0.9rem;
  }

  .contact_button a {
    font-size: 16px;
    padding: 8px 15px;
  }

  .Contacts-links a {
    width: 32px;
    height: 32px;
  }

  .projects {
    width: 100%;
  }

  .Services .service {
    width: 70%;
  }
}
