/* ✅ OPTIMIZATION: Removed @import for Google Fonts. It's now in the HTML <head>. */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  scroll-behavior: smooth;
  font-family: "Poppins", serif;
}

body {
  background-color: #222831;
}
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1050;
}

.hero {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 5rem auto;
  max-width: 1200px;
}

.arrow {
  position: absolute;
  /* transform: translateX(-10.5rem) translateY(1.5rem); */
}

.heroSub {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.name {
  font-size: 3rem;
  color: #eeeeee;
}

.title {
  font-size: 4rem;
  color: #00adb5;
}

.heroBtns {
  display: flex;
  gap: 1rem;
  margin-top: 1.5rem;
}

.hireMe {
  background-color: #00adb5;
  color: #eeeeee;
  border-radius: 24px;
  text-decoration: none;
  padding: 0.5rem 1.5rem;
  /* text-shadow: 0px 4px 4px rgba(0, 0, 0, 0.5); */
}

.cv {
  background-color: rgba(57, 62, 70, 0.75);
  color: #eeeeee;
  border-radius: 24px;
  text-decoration: none;
  padding: 0.5rem 1.5rem;
  text-shadow: 0px 4px 4px rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  backdrop-filter: blur(4px);
}

.aboutMe {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 5rem auto;
  max-width: 1200px;
  gap: 10rem;
}

.textContainer {
  display: flex;
  flex-direction: column;
}

.textTitle {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 2rem;
}

.aboutName {
  color: #eeeeee;
}
.aboutTitle {
  color: #00adb5;
}
.aboutMePar {
  font-size: larger;
  margin: 0.5em;
  display: block;
  text-align: start;
  color: rgba(238, 238, 238, 0.75);
}

#myWorks {
  background: url("../assets/svg/background.svg") no-repeat center center;
  background-size: cover;
  border-radius: 16px;
  padding: 2rem 1rem;
}

.worksContainer {
  display: flex;
  flex-direction: column;
  justify-content: space-around;
  align-items: flex-start;
  margin: 4rem auto;
  max-width: 1200px;
}

.img-fluid.rounded,
.img-fluid.rounded.shadow {
  border-radius: 2em !important;
}
.projectTitle {
  display: flex;
  align-items: center;
  justify-content: left;
  gap: 5px;
  font-size: 2rem;
}

.works ul {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  list-style-type: none;
  align-items: center;
  justify-content: space-between;
}
.works li {
  border-radius: 4rem;
  background-color: rgba(57, 62, 70, 0.5);
  backdrop-filter: blur(4px);
  padding: 1rem 4rem;
}

.works li img {
  width: max-content;
  height: 40vh;
  object-fit: contain;
  transition: transform 0.2s;
}

/* .works li :hover {
  transform: scale(1.5);
} */

.contactContainer {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-around;
  gap: 2rem;
  margin: 2rem auto;
  max-width: 1200px;
}

.contactTitle {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  margin-bottom: 10px;
  font-size: 2rem;
}

.contact {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 1rem;
  gap: 1rem;
}

.contact h3,
.contact a {
  color: #eeeeee;
  text-decoration: none;
}

.emailAndPhone {
  display: block;
  align-items: center;
  justify-content: center;
  gap: 5px;
}

.socialMediaLinks {
  align-items: center;
  justify-content: center;
  gap: 3rem;
}
.socialMedia a {
  align-items: center;
  justify-content: center;
  border-radius: 50px;
  background-color: rgba(57, 62, 70, 0.5);
  backdrop-filter: blur(4px);
  padding: 0.5rem;
  color: var(--bs-link-color);
  text-decoration: underline;
  text-decoration-line: underline;
  text-decoration-thickness: initial;
  text-decoration-style: initial;
  text-decoration-color: initial;
}

footer {
  color: #eeeeee;
  padding: 2rem;
  text-align: center;
}
@media screen and (max-width: 750px) {
  .hero,
  .aboutMe,
  .worksContainer,
  .contactContainer {
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    margin: 1rem auto;
    max-width: 95vw;
  }

  .hero {
    margin: 2rem auto;
  }

  .aboutMe {
    gap: 2rem;
    margin: 2rem auto;
  }

  .worksContainer {
    margin: 2rem auto;
  }

  .name {
    font-size: 2rem;
  }

  .title {
    font-size: 2.5rem;
  }

  .textTitle,
  .projectTitle,
  .contactTitle {
    font-size: 1.2rem;
  }

  .aboutMePar {
    margin: 1em;
    font-size: 1rem;
  }

  .works ul {
    flex-direction: column;
    gap: 1rem;
    align-items: center;
    justify-content: center;
  }

  .works li {
    padding: 1rem 1.5rem;
  }

  .works li img {
    width: 120px;
    height: 120px;
  }

  .contact {
    flex-direction: column;
    gap: 0.5rem;
    margin-right: 0;
    margin-left: 1rem;
  }

  .socialMediaLinks {
    gap: 1rem;
  }
}