@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@700&display=swap");

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  scroll-behavior: smooth;
  font-family: "Poppins", serif;
}

body {
  background-color: #222831;
}

header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 2rem auto;
  max-width: 1200px;
}

.headerActions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.loginBtn {
  background-color: #00adb5;
  color: #ffffff;
  border-radius: 24px;
  text-decoration: none;
  padding: 0.5rem 1rem;
  font-weight: 700;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.25);
}
.loginBtn:hover {
  filter: brightness(0.95);
}
.navigation ul {
  display: flex;
  list-style-type: none;
  gap: 2rem;
}

.navigation a {
  text-decoration: none;
  color: #eeeeee;
}

.navigation a:hover {
  color: #00adb5;
}

hr {
  opacity: 10%;
}

.hero {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 5rem auto;
  max-width: 1200px;
}
.arrow {
  position: absolute;
  transform: translateX(-5.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;
}
.testEntryContainer {
  margin-top: 1rem;
}
.testEntry {
  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);
  display: inline-block;
}
.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;
}
.aboutMeParagraf {
  text-align: justify;
  color: rgba(238, 238, 238, 0.75);
}

.works {
  background-image: url("assets/svg/background.svg");
  padding: 10rem 10rem;
  margin: 5rem 0rem;
}
.worksContainer {
  display: flex;
  flex-direction: column;
  justify-content: space-around;
  align-items: left;
  margin: 5rem auto;
  max-width: 1200px;
}

.projectTitle {
  display: flex;
  align-items: center;
  justify-content: left;
  gap: 5px;
  font-size: 2rem;
}
.works ul {
  display: flex;
  list-style-type: none;
  align-items: center;
  justify-content: space-between;
}
.works li {
  border-radius: 16px;
  background-color: rgba(57, 62, 70, 0.5);
  backdrop-filter: blur(4px);
  padding: 1rem 4rem;
}
.works li img {
  width: 200px;
  height: 200px;
  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: 5rem;
  gap: 20rem;
}
.contact h3,
.contact a {
  color: #eeeeee;
  text-decoration: none;
}
.emailAndPhone {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
}

.socialMedia {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 3rem;
}
.socialMedia a {
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50px;
  background-color: rgba(57, 62, 70, 0.5);
  backdrop-filter: blur(4px);
  padding: 1rem;
}
.socialMedia img {
  width: 24px;
  height: 24px;
}

footer {
  color: #eeeeee;
  padding: 2rem;
  text-align: center;
}

@media (max-width: 1023px) {
  header {
    margin-left: 1rem;
    margin-right: 1rem;
  }
  .hero {
    flex-direction: column;
    align-items: center;
    gap: 2rem;
  }
  .heroImg {
    width: 400px;
  }
  .name,
  .title {
    font-size: 2rem;
  }
  .arrow {
    display: none;
  }
  .aboutMe {
    flex-direction: column-reverse;
    align-items: center;
    gap: 2rem;
  }
  .textContainer {
    align-items: center;
    margin: 0rem 5rem;
    gap: 1rem;
  }
  .aboutName,
  .aboutTitle {
    font-size: 2rem;
  }
  .light {
    width: 60px;
  }
  .aboutMeImg {
    width: 400px;
  }
  .works {
    padding: 0;
  }
  .worksContainer {
    padding: 5rem 0rem;
    gap: 3rem;
  }
  .projectTitle {
    margin-left: 1rem;
  }
  .works ul {
    flex-direction: column;
    gap: 1rem;
  }
  .contactContainer {
    margin: 10rem 5rem;
    gap: 2rem;
  }
  .contact {
    flex-direction: column;
    gap: 1rem;
    margin-right: 0;
  }
}

/* Tablet sizes (768px - 1023px) */
@media (max-width: 768px) {
  body {
    font-size: 14px;
  }
  header {
    margin: 1rem;
    max-width: calc(100% - 2rem);
  }
  .hero {
    margin: 3rem auto;
    max-width: calc(100% - 2rem);
    padding: 1rem;
  }
  .heroImg {
    width: 80%;
    max-width: 300px;
  }
  .name {
    font-size: 1.8rem;
  }
  .title {
    font-size: 2.2rem;
  }
  .aboutMe {
    margin: 3rem 1rem;
    gap: 1rem;
  }
  .textContainer {
    margin: 0 1rem;
  }
  .works {
    padding: 5rem 1rem;
  }
  .worksContainer {
    margin: 2rem 0;
    padding: 2rem 0;
  }
  .works li {
    padding: 1rem 1.5rem;
  }
  .works li img {
    width: 120px;
    height: 120px;
  }
  .contactContainer {
    margin: 3rem 1rem;
  }
}

/* Mobile phones (480px - 767px) */
@media (max-width: 480px) {
  * {
    font-size: 13px;
  }
  body {
    overflow-x: hidden;
  }
  header {
    margin: 0.5rem;
    max-width: calc(100% - 1rem);
    padding: 0;
  }
  .hero {
    margin: 2rem 0.5rem;
    max-width: 100%;
    padding: 0.5rem;
    gap: 1rem;
  }
  .heroImg {
    width: 90%;
    max-width: 250px;
    height: auto;
  }
  .name {
    font-size: 1.5rem;
  }
  .title {
    font-size: 1.8rem;
  }
  .heroBtns {
    flex-direction: column;
    width: 100%;
    gap: 0.5rem;
  }
  .testEntry,
  .hireMe,
  .cv {
    width: 100%;
    text-align: center;
    padding: 0.75rem 1rem;
  }
  .aboutMe {
    margin: 2rem 0.5rem;
    gap: 1rem;
    max-width: 100%;
  }
  .textContainer {
    margin: 0 0.5rem;
  }
  .aboutMeImg {
    width: 100%;
    max-width: 250px;
  }
  .textTitle,
  .projectTitle,
  .contactTitle {
    font-size: 1.5rem;
  }
  .works {
    padding: 3rem 0.5rem;
    background-size: cover;
  }
  .worksContainer {
    margin: 1rem 0.5rem;
    padding: 1rem 0;
    gap: 1rem;
  }
  .works ul {
    gap: 0.5rem;
  }
  .works li {
    padding: 0.75rem 1rem;
    width: 100%;
  }
  .works li img {
    width: 80px;
    height: 80px;
  }
  .contactContainer {
    margin: 2rem 0.5rem;
    padding: 1rem 0.5rem;
    gap: 1rem;
  }
  .contact {
    gap: 1rem;
    flex-direction: column;
  }
  .emailAndPhone {
    gap: 0.5rem;
  }
  .socialMedia {
    gap: 1rem;
  }
  .socialMedia a {
    padding: 0.75rem;
  }
  .socialMedia img {
    width: 20px;
    height: 20px;
  }
  footer {
    padding: 1rem 0.5rem;
    font-size: 0.875rem;
  }
  hr {
    margin: 1rem 0;
  }
}

/* Extra small phones (less than 480px) */
@media (max-width: 380px) {
  * {
    font-size: 12px;
  }
  .name {
    font-size: 1.2rem;
  }
  .title {
    font-size: 1.5rem;
  }
  .textTitle,
  .projectTitle,
  .contactTitle {
    font-size: 1.2rem;
  }
  .loginBtn {
    padding: 0.5rem 1rem;
    font-size: 0.75rem;
  }
}