@import url('https://fonts.googleapis.com/css2?family=Noto+Kufi+Arabic:wght@500&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&display=swap');

* {
  padding: 0;
  margin: 0;
  box-sizing: border-box;
  font-family: 'Poppins', 'sans-serif';
}

:root {
  --text-color: #fff;
  --bg-color: #001625;
  --blue-color: #14a1e8;
  background-color: var(--bg-color);
}

html {
  font-size: 62.5%;
}

header {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 99;
  width: 100%;
  color: var(--text-color);
  font-size: 1.8rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem 12rem;
  background-color: var(--bg-color);
}

header nav a {
  text-decoration: none;
  color: var(--text-color);
  font-size: 2.2rem;
  margin-left: 4rem;
  transition: 0.2s;
}

header nav a:hover,
header nav .active {
  color: var(--blue-color);
}

.Home {
  background-color: var(--bg-color);
  width: 100%;
  height: 100%;
  color: var(--text-color);
  justify-content: center;
  align-items: center;
  padding: 0 10rem;
  margin-top: 200px;
}
.img {
  width: 40%;
}
.content-box {
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 3;
}
.text-box h1 {
  font-size: 3.8rem;
}
.text-box .skills {
  color: var(--blue-color);
}
.text-box p {
  margin: 2.5rem 0;
  font-size: 1.5rem;
}
.content-box .icon-box {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  margin-right: 3rem;
  height: 20rem;
}

.content-box .icon-box i {
  border: 0.2rem solid var(--blue-color);
  border-radius: 50%;
  font-size: 2.5rem;
  padding: 0.6rem;
  color: var(--blue-color);
  cursor: pointer;
  transition: 0.2s;
}
.content-box .icon-box i:hover {
  color: var(--text-color);
  background-color: var(--blue-color);
  box-shadow: 0 0 1.5rem var(--blue-color);
}
.btn {
  color: var(--text-color);
  width: 17rem;
  border: 0.2rem solid var(--blue-color);
  background-color: var(--blue-color);
  font-size: 2rem;
  cursor: pointer;
  border-radius: 2.2rem;
  transition: 0.2s;
}
.btn:hover {
  box-shadow: 0 0 1.5rem var(--blue-color);
}
.menu-btn {
  display: none; /* Hidden by default */
  position: fixed;
  top: 1.5rem;
  right: 1.5rem;
  z-index: 101; /* Above the nav z-index */
  background-color: var(--bg-color);
  border: none;
  font-size: 2em;
  color: var(--text-color);
}

.About {
  padding: 4rem 10rem;
  color: var(--text-color);
  margin-top: 10rem;
}

.About .container {
  max-width: 1200px;
  margin: 0 auto;
}

.About h2 {
  font-size: 3.2rem;
  margin-bottom: 2rem;
}
.Projects {
  padding: 4rem 10rem;
  color: var(--text-color);
  background-color: var(--bg-color);
}

.Projects .container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 2rem; /* Adjust the space between cards */
}

.Projects h2 {
  font-size: 3.2rem;
  color: var(--text-color);
  margin-bottom: 2rem;
  width: 100%;
}

.project-card {
  background: var(--blue-color);
  color: var(--bg-color); /* Text color */
  border-radius: 10px; /* Rounded corners for the card */
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); /* Subtle shadow for depth */
  padding: 2rem;
  flex-basis: calc(
    33.333% - 2rem
  ); /* Three cards per row - adjust the gap as needed */
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.card-container {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
}
.card-container a i {
  font-size: 2.5rem;
  color: var(--bg-color);
}

.project-card:hover {
  box-shadow: 0 0 1.5rem var(--blue-color);
}

.project-card h3 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.project-card p {
  font-size: 1.6rem;
  line-height: 1.5;
}

.Contact {
  padding: 4rem 10rem;
  background-color: var(--bg-color);
  color: var(--text-color);
}
.link {
  color: var(--blue-color);
  text-decoration: none;
}
.link:hover {
  color: var(--text-color);
}
.Contact .container {
  max-width: 1200px;
  margin: 0 auto;
  text-align: center;
  margin-bottom: 2rem;
}

.Contact h2 {
  font-size: 3.2rem;
  color: var(--blue-color);
  margin-bottom: 2rem;
}

.contact-form {
  max-width: 600px;
  margin: 0 auto;
}

.contact-form label {
  display: block;
  text-align: left;
  margin-bottom: 0.5rem;
  font-size: 1.6rem;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 1rem;
  margin-bottom: 2rem;
  border: 1px solid #ccc;
  border-radius: 5px;
  font-size: 1.6rem;
}

.contact-form button {
  width: 100%;
  padding: 1rem;
  border: none;
  border-radius: 5px;
  background-color: var(--blue-color);
  color: var(--text-color);
  font-size: 1.8rem;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.contact-form button:hover {
  background-color: darken(var(--blue-color), 10%);
}

/* Styles for mobile nav */
@media screen and (max-width: 768px) {
  html {
    font-size: 50%; /* Adjust based on your preference */
  }
  .content-box {
    width: 100%;
  }
  .text-box p {
    font-size: 1.2rem;
  }
  .text-box h1 {
    font-size: 2.5rem;
  }
  .menu-btn {
    display: block; /* Show the menu button */
    top: 1.5rem;
    z-index: 101; /* Keep it above the nav */
  }
  .container {
    max-width: 768px;
    margin: 0 auto; /* This will center the container if it's smaller than 768px */
  }

  header nav {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: 100%; /* Start off-screen to the right */
    width: 20%; /* Width of sidebar */
    display: flex;
    flex-direction: column;
    justify-content: center;
    background-color: var(--bg-color);
    transition: transform 0.3s ease-in-out;
    transform: translateX(100%);
    z-index: 100;
  }

  header nav a {
    font-size: 2rem;
    margin: 1rem;
  }

  /* Position nav on-screen when .active */
  .menu-btn.active + nav {
    transform: translateX(-100%);
  }
  header {
    justify-content: space-between; /* Ensures space between elements */
    padding: 1rem; /* Adjust padding as needed */
    align-items: center; /* Centers items vertically */
    height: auto; /* Adjust height as needed or remove if not necessary */
  }
  header h1 {
    padding-left: 1rem;
  }
  .Projects {
    padding: 2rem;
  }

  .Projects .container {
    flex-direction: column;
  }

  .project-card {
    flex-basis: 100%; /* Full width cards on mobile */
    margin-bottom: 2rem; /* Space between cards on mobile */
  }

  .project-card h3,
  .project-card p {
    font-size: 1.8rem; /* Adjust font size for mobile */
  }
}
