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

*,
::after,
::before {
  box-sizing: border-box;
}

html {
  display: block;
  scroll-behavior: smooth;
}

p {
  font-size: 12pt;
  line-height: normal;
  margin: 0;
}

body {
  background-color: #0b2545;
  color: white;
  font-family: "Poppins", sans-serif;
  overflow-x: hidden;
  margin: 0;
}

main {
  width: 100%;
  display: flex;
  flex-direction: column;
  flex-wrap: wrap;
}

header {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  padding-left: 1rem;
  padding-right: 1rem;
  position: fixed;
  top: 0;
  left: 0;
  height: 54px !important;
  width: 100%;
  background-color: transparent;
  font-size: 16pt;
  z-index: 999;
  transition: all;
  transition-duration: 300ms;
}

header h1{
  font-size: 12pt;
}

footer {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  padding-left: 4rem;
  padding-right: 4rem;
  height: 64px;
  box-sizing: border-box;
  background-color: #13315c;
}

footer p {
  width: 100%;
  text-align: center;
}

ul {
  padding: 0;
  list-style: none;
}

a:link,
a:visited,
a:hover,
a:active {
  text-decoration: none;
  color: white;
}

.nav-bar,
.nav-logo {
  display: flex;
  flex-direction: row;
  width: 100% !important;
  align-items: center;
  margin: 0;
}

.nav-logo img {
  border-radius: 100%;
  background-color: white;
  margin-right: 0.5rem;
  width: 32px;
  height: 32px;
}

.nav-menu {
  display: flex;
  flex-wrap: wrap;
}

.hamburger-icon {
  width: 38px;
  height: 38px;
  padding: 0.25rem;
  fill: white;
  border-radius: 0.25rem;
}

.hamburger-icon:hover {
  background-color: #134074;
}

.nav-links {
  display: flex;
  flex-direction: column;
  flex-wrap: wrap;
  width: 100%;
  position: fixed;
  flex-direction: column;
  align-items: center;
  left: 0;
  top: -100%;
  z-index: 90;
}

.show-nav-links {
  top: 54px;
  background-color: #13315c;
  transition: all;
  transition-duration: 300ms;
}

.nav-links ul {
  margin: 0;
  padding-top: 0.5rem;
  padding-bottom: 0.5rem;
  width: 100%;
}

.nav-links ul li a {
  padding-top: 0.35rem;
  padding-bottom: 0.35rem;
  font-size: 1rem;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  height: 100%;
  width: 100%;
}

.nav-links ul li a:hover {
  align-items: center;
  cursor: pointer;
  background-color: #8da9c4;
  border-bottom: 3px solid #ffffff;
}

section {
  min-height: calc(100vh);
  padding-top: 64px;
  padding-left: 1rem;
  padding-right: 1rem;
}

#alirezaa {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.alirezaa-text {
  display: flex;
  flex-direction: column;
  justify-content: center;
  margin-bottom: 1.5rem;
}

.alirezaa-image {
  width: 256px;
}

.name-text {
  font-size: 30pt !important;
  line-height: normal;
  font-weight: bold;
  margin: 0;
}

.job-text {
  font-size: 18pt !important;
  margin-bottom: 0.5rem;
}

.intro-text {
  text-align: justify;
  margin-bottom: 1rem;
}

.contact-button {
  background-color: #13315c;
  color: white;
  border: 1px solid white;
  padding-top: 0.75rem;
  padding-bottom: 0.75rem;
  border-radius: 0.25rem;
  text-align: center;
}

#about {
  text-align: center;
}

#about h2 {
  text-align: center;
}

#about div {
  display: flex;
  flex-direction: column;
  align-items: center;
}

#about div div {
  width: 100%;
}

#about ul {
  width: 100%;
}

#about li {
  display: flex;
  margin-bottom: 1rem;
}

.about-icon {
  width: 24px;
  height: 24px;
}

#skills h2 {
  text-align: center;
}

#skills div {
  display: flex;
  flex-direction: row;
}

#skills li {
  background-color: #13315c;
  padding: 1rem;
  margin-bottom: 1rem;
}

#skills ul li p {
  margin-bottom: 1rem;
}

#skills ul ul {
  display: flex;
}

#skills ul ul li {
  background-color: #134074;
  margin-right: 0.5rem;
  border-radius: 0.25rem;
  padding: 0.5rem;
  font-size: 10pt;
}
#experiences h2 {
  text-align: center;
}

#experiences div {
  display: flex;
  flex-direction: row;
}

#experiences li {
  background-color: #13315c;
  padding: 1rem;
  margin-bottom: 1rem;
}

#experiences ul li p {
  margin-bottom: 1rem;
}

#experiences ul ul {
  display: flex;
}

#experiences ul ul li {
  background-color: #134074;
  margin-right: 0.5rem;
  border-radius: 0.25rem;
  padding: 0.5rem;
  font-size: 10pt;
}
.port-title-text {
  margin: 0%;
  margin-bottom: 1rem;
}

#contact h2 {
  text-align: center;
}

#contact ul {
  display: flex;
  justify-content: space-evenly;
}

#contact a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
}

#contact p {
  text-align: center;
}

#contact img {
  width: 54px;
  height: 54px;
  align-items: center;
}

footer {
  display: flex;
  align-items: center;
  justify-content: center;
}

footer p {
  font-size: 10pt;
}

@media (min-width: 540px) {
  section {
    padding-left: 5rem;
    padding-right: 5rem;
  }

  p {
    font-size: 16pt;
  }

  h2 {
    font-size: 36px;
  }

  header {
    padding-left: 5rem;
    padding-right: 5rem;
    height: 72px !important;
  }

  .name-text {
    font-size: 50pt !important;
  }

  .job-text {
    font-size: 28pt !important;
  }

  .contact-button {
    font-size: 16pt;
    width: max-content;
    padding-left: 1.5rem;
    padding-right: 1.5rem;
  }

  .alirezaa-image {
    width: 512px;
  }

  #skills ul {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    width: 100%;
  }
  #skills li {
    max-width: 45%;
    margin: 2.5%;
  }
  
  #experiences ul {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    width: 100%;
  }
  #experiences li {
    max-width: 45%;
    margin: 2.5%;
  }

  #contact ul {
    margin-left: 5rem;
    margin-right: 5rem;
  }

  footer p {
    font-size: 12pt;
  }
}

@media (min-width: 1024px) {
  section {
    max-width: 1366px;
    align-self: center;
  }

  p {
    font-size: 12pt;
  }

  h2 {
    font-size: 36px;
  }

  header {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    position: fixed;
    top: 0;
    left: 0;
    height: 54px !important;
    width: 100%;
    background-color: transparent;
    font-size: 16pt;
    z-index: 999;
    transition: all;
    transition-duration: 300ms;
    align-items: center;
    justify-content: center;
    padding-left: 0;
    padding-right: 0;
  }

  .nav-bar,
  .nav-logo {
    display: flex;
    flex-direction: row;
    align-items: center;
    margin: 0;
    width: 100%;
    max-width: 1366px !important;
  }

  .nav-bar {
    padding-left: 5rem;
    padding-right: 5rem;
  }

  .nav-logo img {
    border-radius: 100%;
    background-color: white;
    margin-right: 0.5rem;
    width: 32px;
    height: 32px;
  }

  .nav-menu {
    display: none;
  }

  .nav-links {
    display: flex;
    flex-direction: row;
    flex-wrap: unset;
    position: static;
    top: 0;
    width: 100;
  }

  .nav-links ul {
    display: flex;
    flex-direction: row;
    justify-content: end;
    flex-wrap: unset;
    position: static;
    top: 0;
    width: 100;
    margin: 0;
    padding: 0;
    height: 52px;
  }

  .nav-links ul li a {
    margin-left: 1rem;
    margin-right: 1rem;
  }

  .nav-links ul li a:hover {
    margin-left: 1rem;
    margin-right: 1rem;
  }

  #alirezaa {
    flex-direction: row;
  }

  .alirezaa-text + .alirezaa-image {
    margin-left: 5rem;
  }

  #skills ul {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    width: 100%;
  }

  #skills li {
    max-width: 30%;
    margin: 1.6%;
  }
    #experiences ul {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    width: 100%;
  }

  #experiences li {
    max-width: 30%;
    margin: 1.6%;
  }

  #contact {
    width: 100%;
  }

  #contact ul {
    max-width: 512px;
    align-items: center;
    justify-content: space-evenly;
    margin: auto;
  }
}

.text-gradient {
  background: linear-gradient(270deg, #eef4ed, #134074);
  background-size: 300% 300%;

  -webkit-animation: AnimationName 7s ease infinite;
  animation: AnimationName 7s ease infinite;

  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

@-webkit-keyframes AnimationName {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}
@keyframes AnimationName {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

.scroll-header {
  background-color: #13315c;
}
