* {
  margin: 0px;
  padding: 0px;
  font-family: Poppins;
}
.main {
  max-width: 100vw;
}
.head {
  min-height: 100%;
  max-width: 100vw;
}
.nav a {
  text-decoration: none;
}
.nav {
  align-items: center;
  background: linear-gradient(
    135deg,
    rgba(10, 2, 34, 0.4) 0%,
    /* Deep midnight */ rgba(48, 25, 52, 0.3) 40%,
    /* Purple tint */ rgba(0, 180, 216, 0.2) 100% /* Cyan glow */
  );
  color: rgb(57, 93, 100);

  height: 10vh;
  max-width: 100vw;
  display: flex;
  justify-content: space-evenly;
  padding-top: 20px;
  font-size: 1.05rem;
  color: rgb(255, 255, 255);
  cursor: pointer;
  font-weight: 500;
}
.nav a {
  color: rgb(57, 93, 100);
}
.main .body {
  height: 90vh;
  max-width: 100vw;
  gap: 6rem;
  background: linear-gradient(
    135deg,
    rgba(10, 2, 34, 0.4) 0%,
    /* Deep midnight */ rgba(48, 25, 52, 0.3) 40%,
    /* Purple tint */ rgba(0, 180, 216, 0.2) 100% /* Cyan glow */
  );

  display: flex;
  justify-content: center;

  padding-top: 4rem;
}

.head .body img {
  height: 350px;
  width: 340px;

  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.8);
  border-radius: 10rem;
  margin-right: 8rem;
  animation: float 3s ease-in-out infinite;
}
@keyframes float {
  0% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-30px);
  } /* move up */
  100% {
    transform: translateY(0px);
  } /* back down */
}
.body .intro {
  padding-top: 2rem;
  color: rgb(57, 93, 100);
  margin-left: 3rem;
}
.body .intro p {
  max-width: 600px;
  text-align: justify;
  line-height: 1.6;
  display: block;
}
.body .intro .btn {
  padding-top: 8rem;
}
.body .intro button {
  height: 3rem;
  width: 15rem;
  border: 3px solid rgb(88, 129, 147);
  border-radius: 10px;
  background-color: rgb(88, 129, 147);
  font-size: 1.1rem;
}

/* responsive */
#menu-toggle {
  display: none;
}

.menu-icon {
  display: none;
  font-size: 2rem;
  cursor: pointer;
  color: white;
  margin-left: auto;
}

.nav .menu {
  display: flex;
  gap: 1.5rem;
}

/*----------------------- MIDDLE------------------------ */

.middle {
  min-height: 100vh;
  max-width: 100vw;
  background: white;
}
.middle h2 {
  padding: 2rem;
  font-size: 2rem;
  display: flex;
  justify-content: center;
  font-weight: 600;
  align-items: center;
  color: rgb(57, 93, 100);
}
.middle p {
  text-align: center;
  color: rgb(57, 93, 100);
  padding: 2rem;
  line-height: 1.8;
}
.skills img {
  margin-top: 3rem;
  padding: 2rem;
  height: 200px;
  width: 300px;
}
.skills {
  max-width: 100vw;
  overflow: hidden;
  display: flex;
  align-items: center;
  padding: 3rem 0;
}

.skills-track {
  display: flex;
  width: calc(
    600px * 15
  ); /* item width × number of items (including duplicates) */
  animation: scroll 20s linear infinite;
}

.one {
  width: 250px;
  text-align: center;
  margin: 0 2rem;
  color: black;
}

.one img {
  width: 100%;
  height: 200px;

  border-radius: 10px;
  box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.3);
}

/* scrolling effect */
@keyframes scroll {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

.Projects {
  background-color: rgba(7, 29, 33, 0.2) 100%;
  max-width: 100vw;

  min-height: 100vh;
  padding: rem;
  line-height: 1.6;
}
.headers {
  position: relative;
  overflow: hidden;
  background: url("images/developer.jpg") no-repeat center;
  background-size: cover;
  min-height: 100vh;
}

.headers::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.6);
  z-index: 0;
}

.headers * {
  position: relative;
  z-index: 1;
}
.content .parts {
  display: grid;
  grid-template-columns: auto auto;
  text-align: center;
  column-gap: 6rem;
}
.content .parts .link {
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-align: center;
  align-items: center;
  height: 100%;
}
.content .parts .link a {
  text-align: center;

  margin-top: 5px;
}

.content {
  display: grid;
  grid-template-columns: auto;
  padding: 2rem;
  background-color: #e0dcdc;
  row-gap: 3rem;
  justify-content: center;
  text-align: center;
}
.cont-2 {
  background: #1e293b;
  border-radius: 1rem;
  padding: 1rem;
  box-shadow: 0 0 20px rgba(0, 255, 255, 0.4);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  width: 550px;
  border-radius: 2rem;
}
.cont-1 {
  background: #1e293b;
  border-radius: 1rem;
  padding: 1rem;
  box-shadow: 0 0 20px rgba(0, 255, 255, 0.4);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  width: 550px;
  border-radius: 2rem;
}

.Projects .content h2 {
  padding-left: 2rem;
  margin-bottom: 1rem;
  color: #00ffff;
  text-align: center;
}
.Projects .headers h1 {
  text-align: center;
  color: #1e293b;
  padding: 1rem;
  font-size: 2.5rem;
  font-weight: 700;
  text-shadow: 0 0 10px rgba(0, 255, 255, 0.7);
  font-family: "Montserrat", sans-serif;
}
.Projects .headers p {
  color: #0f151f;
  text-shadow: 0 0 10px rgba(0, 255, 255, 0.7);
  text-align: center;
  padding-top: 10rem;
  padding: 10rem 5rem 5rem;
  font-size: 2rem;
  font-weight: 600;
}
.content p {
  max-width: 500px;
  text-align: justify;
  color: #94a3b8;
  line-height: 1.6;
  display: block;
  padding-left: 2rem;
}
.Projects .content video {
  width: 500px;
  max-height: 300px;
  margin: 2rem;
  text-align: center;
  border-radius: 5rem;
  border: solid #2c3d57 5px;
}

.cont-2 video {
  width: 600px;
  background-color: #fff;
  max-height: 300px;
  margin: 2rem;
  text-align: center;
  border-radius: 5rem;
}
.cont-1 video {
  width: 600px;
  background-color: #fff;
  max-height: 300px;
  margin: 2rem;
  text-align: center;
  border-radius: 5rem;
}
/* ------------------------contact------------- */
.footer {
  min-height: 100vh;
  min-width: 100vw;
  background: linear-gradient(
    135deg,
    rgba(10, 2, 34, 0.4) 0%,
    /* Deep midnight */ rgba(48, 25, 52, 0.3) 40%,
    /* Purple tint */ rgba(0, 180, 216, 0.2) 100% /* Cyan glow */
  );
  color: rgba(24, 64, 72, 0.922);
  font-family: Arial, sans-serif;
}
.footer .contact_us {
  text-align: center;
  padding: 2rem;
  line-height: 2.6;
}
.footer .contact_body {
  display: grid;
  grid-template-columns: auto auto;
  padding: 2rem;
  line-height: 1.6;
}
.footer .Myinfo {
  font-size: 1.1rem;
  line-height: 2.5;
  padding-left: 2rem;
}
.footer .Myinfo a {
  text-decoration: none;
  color: rgba(24, 64, 72, 0.922);
}
.footer .forms {
  width: 600px; /* keep it compact */
  margin: 0 auto;
  padding: 1.5rem;
  border-radius: 1rem;

  /* transparent glass effect */
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);

  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}
.footer .forms label {
  font-weight: bold;
  display: block;
  margin-bottom: 0.5rem;
  color: rgba(24, 64, 72, 0.9);
}
.footer .forms input,
.footer .forms textarea {
  width: 80%;
  padding: 0.7rem 1rem;
  border-radius: 1.5rem;
  border: none;

  margin-bottom: 0.5rem;

  /* inside look */
  background: rgba(255, 255, 255, 0.7);
  color: #333;
}
.footer .forms button {
  max-width: 250px;
  padding: 0.8rem;
  margin: 0 auto;
  display: block;
  border-radius: 1.5rem;
  border: none;
  cursor: pointer;

  background: linear-gradient(135deg, #6bc5d2, #355c7d);
  color: white;
  font-size: 1rem;
  font-weight: bold;
  transition: transform 0.2s ease, background 0.3s ease;
}

.footer .forms button:hover {
  transform: scale(1.05);
  background: linear-gradient(135deg, #355c7d, #6bc5d2);
}
/* mobile responsiveness */
/* ================= MOBILE RESPONSIVENESS ================= */

/* small phones (width ≤ 600px) */
@media (max-width: 760px) {
  * {
    margin: 0px;
    padding: 0px;
    font-family: Poppins;
  }
  .main {
    max-width: 100vw;
    display: grid;
  }

  .nav h1 {
    align-items: center;

    font-size: 1.1rem;
    cursor: pointer;
    padding: 2rem;
    font-weight: 600;
    font-family: Cambria, Cochin, Georgia, Times, "Times New Roman", serif;
  }
  .menu-icon {
    display: block;
    padding: 1rem;
    color: rgb(248, 241, 241);
  }
  .nav .menu {
    display: none;
    flex-direction: column;
    background-color: rgba(139, 159, 163, 0.9);
    position: absolute;
    z-index: 1000;
    top: 70px;
    right: 20px;
    width: 100px;
    padding: 2rem;
    border-radius: 10px;
  }

  #menu-toggle:checked ~ .menu {
    display: flex;
  }

  .nav a {
    text-decoration: none;
  }

  .nav a {
    color: rgb(57, 93, 100);
  }
  .main .body {
    height: 100%;
    width: 100%;
    display: flex;
    flex-direction: column;
  }
  .main .body .intro {
    padding-left: 2rem;
    padding-right: 2rem;
  }
  .head .body img {
    height: 150px;
    width: 140px;

    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.8);
    border-radius: 10rem;
    margin-bottom: 2rem;
    margin-left: 2rem;
    overflow-x: hidden;
    animation: float 3s infinite ease alternate;
  }
  @keyframes float {
    from {
      transform: translate(0%);
    }
    to {
      transform: translate(150%);
    }
  }

  .middle {
    display: grid;
    min-height: 90vh;
    max-width: 100vw;
    row-gap: 0rem;
  }
  .middle p {
    padding-bottom: 0rem;
    padding-top: 0rem;
    margin: 2rem;
  }
  .middle h2 {
    padding-bottom: 0rem;
    padding-top: 1rem;
  }
  .skills img {
    margin: 0px;
    padding: 0px;
  }

  .Projects {
    margin: 0rem;
    padding: 0rem;
    background-color: rgba(7, 29, 33, 0.2);
    max-width: 100vw;

    line-height: 1.4;
  }

  .headers {
    min-height: 90vh; /* reduce header height on mobile */
    background: url("images/developer.jpg") no-repeat center;
    background-size: cover;
  }

  .headers::before {
    background: #ffffff80;
  }

  .Projects .headers h1 {
    font-size: 2rem;
    padding-top: 8rem;
  }

  .Projects .headers p {
    font-size: 1.5rem;
    padding: 2rem 3rem 3rem;
  }
  .content .parts .link p {
    color: #2c3d57;
    text-align: center;
    padding: 1rem;
  }
  .content .parts .link a {
    text-decoration: none;
    text-align: center;
    padding: 1rem;
  }
  .content {
    display: flex;
    flex-direction: column;
    padding: 2rem;
    row-gap: 1.5rem;
    padding-left: 3rem;
    align-items: center;
    justify-content: center;
  }

  .content .parts {
    display: flex;
    flex-direction: column;
    gap: 1rem;
  }

  .cont-1,
  .cont-2 {
    width: 80%;
    padding: 1rem;
    border-radius: 1rem;
  }

  .Projects .content h2 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    padding-left: 0;
  }

  .content p {
    max-width: 100%;
    padding: 0;
    font-size: 0.9rem;
    line-height: 1.4;
  }

  .Projects .content video,
  .cont-1 video,
  .cont-2 video {
    width: 100%;
    max-height: 180px;
    margin: 0.9rem 0;
    border-radius: 1rem;
  }

  .footer {
    margin: 0rem;
    padding: 0rem;
    width: 100vw;
    min-height: 100vh;

    text-align: center;
  }

  .footer .contact_body {
    display: flex;
    flex-direction: column;
    padding: 1rem;
    gap: 8rem;
  }

  .footer .Myinfo {
    font-size: 1.2rem;
    line-height: 1.8;
  }

  .footer .forms {
    width: 100%;
    max-width: 250px;
    margin: 0 auto;
    height: auto;
  }

  .footer .forms input,
  .footer .forms textarea {
    width: 80%;
    max-width: 100%;
    margin-bottom: 1rem;
  }

  .footer .forms button {
    width: 100%;
    max-width: 250px;
    margin: 1rem auto;
    display: block;
  }
}
