/* General Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
}

body {
    font-family: "Poppins", serif;
    background-color: #222831;
    color: #eeeeee;
}

/* Header */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 2rem auto;
    max-width: 1200px;
    padding: 0 0.5rem;
}

.navigation ul {
    display: flex;
    list-style-type: none;
    gap: 2rem;
}

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

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

hr {
    opacity: 1;
}

/* Hero Section */
.hero {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 5rem auto;
    max-width: 1200px;
}

.arrow {
    position: absolute;
    transform: translate(-5.5rem, 1.5rem); /* Corrected transform syntax */
}

.heroSub {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}
.name {
    font-size: 3rem;
    color: #eeeeee;
}
.title {
    font-size: 4rem;
    color: #00add5;
}
.heroBtns {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 1rem;
    flex-wrap: wrap; /* Ensures buttons wrap on smaller screens */
}

.heroBtns a {
    text-decoration: none;
    background-color: rgba(57, 62, 70, 0.75);
    color: #eeeeee;
    border-radius: 24px;
    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);
    transition: background-color 0.3s ease, transform 0.2s ease; /* Added smooth transitions */
}

.heroBtns a:hover {
    background-color: #00add5;
    transform: scale(1.05); /* Slight scaling effect on hover */
}

/* About Me Section */
.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: #00add5;
}

.aboutMeText {
    text-align: justify;
    color: rgba(238, 238, 238, 0.75);
}

/* Works Section */
.Works {
    background-image: url("assets/svg/background.svg");
    padding: 10rem 10rem;
    margin: 5rem 0rem;
}

.WorkaContainer {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: left;
    margin: 5rem auto;
    max-width: 1200px;
}

.projectTitle {
    display: flex;
    align-items: center;
    justify-content: left;
    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: 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-between;
    margin: 2rem auto;
    max-width: 1200px;
    gap: 2rem;
}
.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;
    gap: 20rem;
    margin-right: 5rem;
}
.contact h3, .contact a{
    color: #eeeeee;
    text-decoration: none;
}
.emailAndPhone{
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5rem;
}
.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(4rem);
    padding: 1rem; 
}
.socialMedia img{
    width: 24px;
    height: 24px;
}
@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;
    }
  }