@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@400;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;
}

header img {
  height: 80px;
  width: auto;
}

.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;
}

.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: #eeeeee;
  line-height: 1.6;
}


.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;
  margin-bottom: 3rem;
}

.works ul {
  display: flex;
  flex-wrap: wrap; 
  justify-content: center; 
  list-style-type: none;
  align-items: stretch;
  gap: 3rem;
}

.works li {
  border-radius: 20px;
  background-color: rgba(57, 62, 70, 0.5);
  backdrop-filter: blur(4px);
  padding: 2.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  min-height: 400px;
  justify-content: flex-start;
  position: relative;
  overflow: hidden;
  flex: 1;
  min-width: 300px;
  border: 1px solid rgba(0, 173, 181, 0.1);
}

.works li:hover {
  transform: translateY(-8px);
  box-shadow: 0 15px 30px rgba(0, 173, 181, 0.25);
  border-color: rgba(0, 173, 181, 0.3);
}

.works li a {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  height: 200px;
  overflow: hidden;
  border-radius: 12px;
  margin-bottom: 1.5rem;
}

.works li img {
  width: 200px;
  height: 200px;
  object-fit: contain;
  transition: transform 0.4s ease;
  margin-bottom: 0;
}

.works li:hover img {
  transform: scale(1.15);
}

.project-description {
  color: #eee;
  text-align: center;
  margin-top: 0;
  width: 100%;
  font-size: 1rem;
  line-height: 1.7;
  opacity: 0.9;
  padding: 0 0.5rem;
}

.project-description h4 {
  color: #00adb5;
  margin-bottom: 1rem;
  font-size: 1.3rem;
  font-weight: 700;
}

.project-description p {
  color: rgba(238, 238, 238, 0.85);
  font-weight: 400;
}


.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;
    display: flex;
    flex-direction: row; 
    justify-content: space-between;
    align-items: center;
  }

  header img {
    height: 55px; 
  }

  .navigation ul {
    gap: 0.8rem; 
    font-size: 0.85rem; 
  }

  .navigation ul {
    gap: 10px; 
  }


  .navigation a {
    font-size: 14px; 
  }

.hero {
    flex-direction: column;
    align-items: center;
    gap: 2rem;
    padding: 0 20px; 
    text-align: center; 
  }

  .heroSub {
    display: flex;       
    flex-direction: column;
    align-items: center; 
    width: 100%;         
  }
  
  .heroBtns {
    justify-content: center; 
  }


  .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;
    margin-bottom: 2rem;
  }
  
  .works ul {
    flex-direction: column;
    gap: 2.5rem;
    padding: 0 1rem;
  }
  
  .works li {
    min-height: 380px;
    padding: 2rem;
    min-width: auto;
    width: 90%;
    max-width: 400px;
    margin: 0 auto;
  }
  
  .works li a {
    height: 180px;
  }
  
  .works li img {
    width: 180px;
    height: 180px;
  }
  
  .project-description {
    max-width: 100%;
    font-size: 0.95rem;
  }
  
  .contactContainer {
    margin: 10rem 5rem;
    gap: 2rem;
  }
  
  .contact {
    flex-direction: column;
    gap: 1rem;
    margin-right: 0;
  }
}