:root {
  --main-background: #15172f;
}
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  outline: 0;
  border: 0;
  text-decoration: none;
}
*::selection {
  background-color: #302f4b;
}
@font-face {
  font-family: "iranSansBold";
  src: url("Assets/Fonts/IRANSansX-Bold.ttf");
}
@font-face {
  font-family: "iranSansReg";
  src: url("Assets/Fonts/IRANSansX-Regular.ttf");
}
@font-face {
  font-family: "vazirBold";
  src: url("Assets/Fonts/Vazir-Bold.ttf");
}
body {
  background-color: var(--main-background);
  height: 100%;
}

/* Mutual properties */
li,
.sidebar-icon,
#headerLogo,
.category-button,
.icon-container,
.cv {
  cursor: pointer;
}

header {
  font-family: "iranSansBold";
}
.nav-bar-container {
  position: fixed;
  width: 100%;
  background-color: #302f4b;
  display: flex;
  /* flex-direction: row-reverse; */
  align-items: center;
  justify-content: space-between;
  z-index: 1;
  padding: 0 1.5em;
}
#headerLogo {
  width: 6.5em;
  z-index: 1;
}
#toggle-sidebar {
  display: none;
}
.sidebar-icon {
  display: none;
}
.sidebar-icon,
h1 {
  color: #c2b59b;
}
li {
  list-style-type: none;
  padding: 1.5em 1em;
  font-size: 0.9em;
}
.navbar-ul li:hover {
  background-color: #e81224;
}
.dropBtn {
  padding-left: 1em;
}
.dropBtn:hover .dropdown-content {
  display: flex;
  flex-direction: column;
}
.navbar-ul li a,
.navbar-ul {
  color: #c2b59b;
}

.dropdown-content {
  display: none;
  background-color: rgba(48, 47, 75);
  z-index: 1;
  flex-direction: column;
  position: absolute;
  top: 100%;
  right: 0%;
  /* width: clamp(6.5em, 16em, 15em); */
  width: 18em;
  border-radius: 0 0 10px 10px;
}
.dropdown-content a {
  padding: 1.5em 1em;
  color: #fff;
  /* font-family: "vazirBold"; */
  text-align: right;
}
.dropdown-content a:hover {
  background-color: rgba(194, 181, 155, 0.3);
}
.dropdown-content a i {
  margin-left: 0.3em;
}
.dropdown:hover .dropdown-content {
  display: flex;
}
.dropdown {
  padding-left: 0;
  position: relative;
  transition: 0.2s;
}
.dropdown i {
  font-size: 1.2em;
}
.dropdown a:last-of-type {
  border-radius: 0 0 10px 10px;
}
p {
  font-size: 3em;
}

main {
  display: flex;
  flex-direction: column;
  padding-top: 5.5em;
  gap: 2em;
  height: 100%;
}
h1 {
  padding-right: 1.1em;
  font-family: "vazirBold";
  text-align: center;
  font-size: 1em;
}
h1::before {
  content: "❤️";
  display: inline-block;
  animation: h1-emoji-animation 1.5s ease-out infinite;
}
@keyframes h1-emoji-animation {
  0% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-5px);
  }
  100% {
    transform: translateY(0);
  }
}
.about {
  padding: 3em;
  display: flex;
  flex-direction: column;
}
.aboutPic {
  border-radius: 15px;
  /* border: 1px solid #fff; */
}
.aboutText {
  text-align: right;
  direction: rtl;
  line-height: 1.7;
  font-family: "iranSansReg";
}
.poster-category,
.aboutPic,
.aboutText {
  opacity: 0;
  transition: all 0.8s;
  filter: blur(5px);
  transform: translateX(-100%);
}
.poster-category {
  width: 100%;
  display: inherit;
  /* justify-content: center; */
  align-items: center;
  flex-direction: inherit;
  /* min-height: 100vh; */
}
/* .poster-category img {
  aspect-ratio: 1/1;
  object-fit: cover;
} */
.poster-category:not(.poster-category:first-of-type) {
  margin: 2.5em 0;
}
.poster-category:first-of-type {
  margin-bottom: 2.5em;
}
.poster-category:nth-child(3) {
  transition-delay: 30ms;
}
.poster-category:nth-child(4) {
  transition-delay: 60ms;
}
.poster-category:nth-child(5) {
  transition-delay: 90ms;
}
.poster-category:nth-child(6) {
  transition-delay: 120ms;
}
.aboutPic {
  transition-delay: 150ms;
}
.show {
  opacity: 1;
  filter: blur(0);
  transform: translateX(0);
}
@media (prefers-reduced-motion) {
  .poster-category {
    transition: none;
  }
}
.category-cover {
  width: 75%;
}
.poster-category:nth-child(6) img {
  filter: blur(2px);
}
.category-button,
.cv {
  font-family: "iranSansBold";
  background-color: #302f4b;
  padding: 0.8em;
  margin-top: 1em;
  font-size: 0.7em;
  color: #c2b59b;
  transition-duration: 0.2s;
}
/* .category-button:hover {
  background-color: #d3d3d3;
  color: #e54624;
} */
.category-cover,
.category-button {
  border-radius: 5px;
}
/* .category-cover:hover {
  filter: blur(2px);
} */
.sidebar-content {
  display: none;
}
/* @media screen and (max-width: 320px) {
  .sidebar-content {
    display: flex;
  }
} */
@media screen and (min-width: 440px) {
  .category-cover {
    width: 65%;
  }
}
@media screen and (min-width: 0) and (max-width: 509px) {
  .navbar-ul {
    display: none;
    padding: 1em 0;
  }
  .nav-bar-container {
    /* justify-content: space-between; */
    padding: 0.8em 0 0.8em 0.9em;
    flex-direction: row;
  }
  .sidebar-content {
    padding: 0 0.9em;
  }
  #headerLogo {
    margin-right: auto;
  }
  .sidebar-icon {
    display: inline-block;
    font-size: 1.3em;
    z-index: 1;
    transition-duration: 0.3s;
  }
  .sidebar-icon:last-of-type {
    opacity: 0;
    position: relative;
    right: 0.8em;
  }
  .sidebar-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-end;
    opacity: 0;
    width: 100%;
    height: 100vh;
    position: absolute;
    right: 0;
    top: 0;
    background-color: #302f4b;
    transition: all 0.3s ease-in-out;
    transform: translateX(100%);
  }
  .sidebar-ul {
    text-align: right;
    display: inherit;
    gap: 2em;
    flex-direction: inherit;
    width: 100%;
  }
  .sidebar-ul li {
    font-family: "vazirBold";
    border: 1px solid rgba(194, 181, 155, 0.3);
    border-radius: 20px;
    display: inherit;
    justify-content: flex-end;
    align-items: center;
  }
  .sidebar-ul li a,
  .sidebar-ul li i {
    color: #c2b59b;
  }
  .sidebar-ul li:active {
    background-color: #99edc3;
  }
  .sidebar-ul li:active a,
  .sidebar-ul li:active i {
    color: #0b666a;
  }
  .sidebar-content i {
    font-size: 1.2em;
    margin-left: 0.4em;
  }
  .about {
    width: 100%;
    display: flex;
    justify-content: space-around;
    align-items: center;
    flex-direction: column;
    gap: 2.2em;
  }
  .aboutPic {
    width: 80%;
  }
  .poster-container::after {
    content: "";
    height: 1px;
    background-color: rgba(194, 181, 155, 0.4);
    width: 50%;
    position: relative;
    left: 25%;
    margin-top: 2em;
  }
  .aboutText {
    /* white-space: pre-line; */
    width: 100%;
    color: #c2b59b;
    transition-delay: 130ms;
    text-align: justify;
    font-size: 0.8em;
  }
  .category-button:active {
    color: #302f4b;
  }
  .cv:active {
    color: #302f4b;
  }
  .category-button:active,
  .cv:active {
    background-color: #c2b59b;
  }
  h1 {
    font-size: 1.2em;
    margin-bottom: 0.5em;
  }
  #toggle-sidebar:checked ~ .sidebar-icon:not(.sidebar-icon:last-of-type) {
    transform: rotate(90deg);
    opacity: 0;
  }
  #toggle-sidebar:checked ~ .sidebar-icon:last-of-type {
    opacity: 1;
  }
  #toggle-sidebar:checked ~ .sidebar-content {
    opacity: 1;
    transform: translateX(0);
  }
  .poster-container {
    display: flex;
    flex-direction: column;
  }
}

footer {
  height: 17em;
  background: linear-gradient(
    to top,
    rgba(0, 0, 0, 0.7),
    var(--main-background)
  );
  font-family: "iranSansBold";
  color: #c2b59b;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  position: relative;
}
.social-media {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  place-items: center;
  padding: 0 3em;
}
.social-media h4 {
  grid-column: span 3;
}
.icon-container {
  margin-top: 2em;
  width: 2.3em;
  height: 2.3em;
  border: 2px solid #c2b59b;
  /* grid-column: span 1; */
  border-radius: 14px;
}
.icon-container img {
  width: 80%;
}
.icon-container,
.icon-container a {
  display: grid;
  place-items: center;
}
footer p {
  font-family: "iranSansReg";
  font-size: 0.6em;
  text-align: center;
  display: inline;
  position: absolute;
  bottom: 2em;
}
footer .cv {
  transform: translateY(1.9em);
  font-size: 0.6em;
  padding: 0.5em;
  border-radius: 3px;
  background-color: #15172f;
  color: #c2b59b;
}
.cv i {
  margin-right: 0.3em;
  font-size: 1.2em;
}

@media screen and (min-width: 510px) {
  h1 {
    font-size: 1.5em;
  }
  .sidebar-content,
  .sidebar-icon {
    display: none !important;
  }
  .about {
    width: 100%;
    display: flex;
    justify-content: space-around;
    align-items: center;
    flex-direction: column;
    gap: 2.2em;
  }
  .aboutPic {
    width: 55%;
  }
  .poster-container::after {
    content: "";
    height: 1px;
    background-color: rgba(255, 255, 255, 0.4);
    width: 100%;
    position: relative;
    left: 50%;
    margin-top: 8em;
  }
  .aboutText {
    width: 100%;
    color: #c2b59b;
    transition-delay: 130ms;
    text-align: justify;
    font-size: 0.8em;
    margin: 0 5em;
  }
  .category-cover {
    width: 60%;
  }
  .poster-container {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    place-items: center;
    overflow: hidden;
    justify-content: center;
  }
  /* .poster-category:nth-of-type(n + 5) {
    grid-row: 3;
    grid-column-start: 1;
  } */
  .category-button {
    width: 12em;
    font-size: 0.8em;
    padding: 0.9em;
  }
  .poster-category {
    display: flex;
    flex-direction: column;
    align-items: center;
  }
}
@media screen and (min-width: 800px) {
  .poster-container {
    padding-top: 1.5em;
    grid-template-columns: repeat(3, 1fr);
    /* gap: 1.8em; */
    place-items: center;
  }
  .poster-category:nth-child(6) img {
    width: 50%;
  }

  footer .cv {
    transform: translateY(1em);
    padding: 0.8em;
    font-size: 0.7em;
  }
  .icon-container {
    width: 3.5em;
    height: 3.5em;
  }
  .about {
    flex-direction: row-reverse;
    margin-top: 2em;
  }
  .poster-container::after {
    display: none;
  }
  .aboutText {
    font-size: 0.8em;
  }
}
@media screen and (min-width: 900px) and (max-width: 1099px) {
  .aboutText {
    font-size: 0.9em;
  }
  .aboutPic {
    width: 50%;
  }
}
@media screen and (min-width: 1100px) and (max-width: 1299px) {
  .aboutText {
    font-size: 1em;
  }
  .aboutPic {
    width: 40%;
  }
}
@media screen and (min-width: 1300px) and (max-width: 5500px) {
  .aboutText {
    font-size: 1.1em;
  }
  .aboutPic {
    width: 35%;
  }
  .about {
    padding-left: 10em;
  }
}
@media screen and (min-width: 510px) {
  .category-button:hover {
    color: #302f4b;
  }
  .cv:hover,
  .category-button:hover {
    background-color: #c2b59b;
  }
  .cv:hover {
    color: #15172f;
  }
}
