* {
  box-sizing: border-box;
}

::-webkit-scrollbar {
  width: 20px;
  height: 40px;
}

::-webkit-scrollbar-thumb {
  background-color: #95a6a8;
  border-radius: 30px;
}

::-webkit-scrollbar-track {
  background-color: #cbcbcb;
}

:root {
  --transition-way: .6s cubic-bezier(.7, .02, .19, .95);
  --background-black: #1c1c1c
}

body {
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  -o-user-select: none;
  user-select: none;
  margin: 0;
  padding: 0;
  /* width: 95vw; */
  background-color: var(--background-black);
}


#header1 {
  position: relative;
  top: 0;
  left: 0;
  right: 0;
  background-color: var(--background-black);
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  height: 1.5em;
  z-index: 99;
  font-size: max(7vw, 2rem);
}

h2 {
  display: inline-block;
  background-image: linear-gradient(to right bottom, #f00 40%, #FFF);
  cursor: pointer;
  text-transform: uppercase;
  background-size: 100%;
  /* color: transparent; */
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-weight: 900;
  line-height: 100%;
  overflow: hidden;
  margin: 0;
  font-family: 'Anton', sans-serif;
}

input,
label {
  display: none;
}


i {
  height: max-content;
  width: max-content;
  font-size: max(5vw, 4rem);
  border: 0;
  background-color: transparent;
}

#nav-C {
  position: relative;
  display: flex;
  flex-direction: row-reverse;
  align-content: center;
  justify-content: space-between;
  top: 0;
  left: 0px;
  bottom: 0;
  margin-bottom: 0px;
  font-size: clamp(1rem, 2.5vw, 5rem);
  flex: .7 0 15em;
}



.nav-links {
  color: #fff;
  font-family: 'Changa', sans-serif;
  padding: 4% 4%;
}

a {
  all: unset;
  /* text-decoration: none;
  color: unset;
  padding: 0;
  margin: 0;
  height: fit-content; */
  /* height: min-content;
  width: fit-content;
  background-color: #2BFF88; */
}

#card-C {
  width: 100%;
  aspect-ratio: 1/2;
  margin: auto;
  background-color: #1773ea;
  display: flex;
  flex-flow: row wrap;
  justify-content: space-evenly;
  align-items: center;
  align-content: flex-start;
}

.card {
  min-width: max(12rem, 35%);
  aspect-ratio: 1/1;
  margin: 20px;
  background-color: #fff;
  position: relative;
}

.card::after {
  isolation: isolate;
  z-index: 9;
  content: "";
  width: 40%;
  aspect-ratio: 1/1;
  background-color: #fff;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: url(img/a_amini-20220907-0005.jpg) 50% 50%;
  /* border-image-outset: circle(80%); */
  background-size: cover;
  transition: var(--transition-way);
  filter: grayscale(40%);
}

.card::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 100%;
  height: 50%;
  background: linear-gradient(0deg, rgba(34, 193, 195, 1) 0%, rgba(253, 187, 45, 1) 100%);
  transition: var(--transition-way);
  background-position: top center;
  background-size: 400% 200%;
  z-index: 3;
}

.card:hover::before {
  height: 100%;
  background-size: 400% 150%;
  background-position: bottom;
  background-position: bottom center;
}

.card:hover::after {
  width: 60%;
  filter: grayscale(0%);
}

h3 {
  z-index: 9;
  position: relative;
  text-align: center;
  transition: var(--transition-way);
  font-size: clamp(1.6rem, 6vw, 7rem);
  margin-top: .2em !important;
}

.card:hover h3 {
  font-size: clamp(1rem, 4vw, 5rem);
  color: #fff;
}


h4 {
  border: red 1px dotted;
  border-radius: 7px;
  overflow: hidden;
  background: transparent;
  position: relative;
  width: 40%;
  margin: auto;
}

h4::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  transform: rotate(20deg) translateY(-20px);
  animation: br 2s infinite linear;
  background: red;
  width: 8px;
  height: 300%;
  filter: blur(7px);
  /* z-index: 4; */

}

@keyframes br {
  from {
    left: -100%;
  }

  to {
    left: 170%;

  }
}


.card div {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-flow: column wrap;
  position: absolute;
  bottom: 5%;
  right: 50%;
  transform: translateX(50%);
  width: 80%;
  height: max-content;
  text-align: center;
  margin: 0;
  font-size: clamp(.7rem, 2.2vw, 5rem);
}

.card div p,
.card div h4 {
  margin: 0%;
  margin-bottom: .4em;
  font-size: inherit;
}

.card div p {
  margin-bottom: .2em;
  font-family: 'Noto Sans Arabic', sans-serif;
  line-height: 01em;
  font-size: clamp(.5rem, 2vw, 4rem);
}

.card:nth-child(1):after {
  background: url(img/maryam.gh.samani-20220919-0001.jpg) 50% 50%;
  background-size: cover;
}

.card:nth-child(2):after {
  background: url(img/IMG_20220929_093420.jpg) 70% 50%;
  background-size: cover;
}

.card:nth-child(3):after {
  background: url(img/IMG_20220919_110911.jpg) 50% 50%;
  background-size: cover;
}


footer {
  position: relative;
  display: block;
  width: 100%;
  /* height: 10rem; */
}

footer #nav-C {
  position: relative;
  display: flex;
  flex-direction: row-reverse;
  align-content: flex-end;
  align-items: flex-end;
  justify-content: center;
  background-color: #000;
  /* margin-bottom: 1.5em; */
  font-size: clamp(1rem, 3vw, 5rem);
  flex: .7 0 5em;
}

footer #nav-C a {
  padding: .5em 1em;
}

#me p {
  font-size: clamp(.5rem, 3.3vw, 10rem);
  font-weight: 900;
  text-align: center;
  background-color: #FA8BFF;
  background-image: repeating-linear-gradient(45deg, #33209d 1%, #FA8BFF 2%, #2BD2FF 3%, #2BFF88 4%, #33209d 5%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: ME 20s infinite linear;
  background-size: 600%;
  position: relative;
  display: block;
  margin: auto;
  font-family: 'Silkscreen',
    cursive;
}

#me:hover p {
  animation: ME 10s infinite linear;
}

#me:hover p::after,
#me:hover p::before {
  /* animation: ME .8s alternate infinite ease-in; */
  animation: brd-ani 3s infinite linear;
}

#me {
  text-align: center;
  width: 50%;
  background-color: #000;
  margin: 0 auto;
  /* margin-bottom: 2rem; */
}

#me p::before,
#me p::after {
  content: "";
  position: absolute;
  animation: brd-ani 6.5s infinite linear;
  top: -10px;
  right: -10px;
  left: -10px;
  bottom: -10px;
  border: 3px solid #fff;
  border-radius: .1em;
}

#me p::after {
  animation-delay: 3.25s;
}

#me:hover p::after {
  animation-delay: 1.5s;
}

@keyframes brd-ani {

  0%,
  100% {
    clip-path: inset(0 0 98% 0);
  }

  25% {
    clip-path: inset(0 98% 0 0);
  }

  50% {
    clip-path: inset(98% 0 0 0);
  }

  75% {
    clip-path: inset(0 0 0 98%);
  }
}

@keyframes ME {
  from {
    background-position: 0%;
  }

  to {
    background-position: 93%;
  }
}

@media screen and (max-width:700px) {

  label {
    display: block;
    float: right;
    display: flex;
    align-items: center;
    color: #fff;
  }

  #nav-C {
    display: grid;
    position: absolute;
    top: 100%;
    width: 100%;
    height: 0rem;
    transition: .8s;
    background-color: orangered;
    color: #fff;
    grid-template-columns: repeat(1, 1fr);
    justify-items: center;
    justify-content: center;
    align-items: center;
    align-content: stretch;
    font-size: clamp(1rem, 5vw, 2rem);
    overflow: hidden;
    z-index: 999999;
  }

  #btn:checked~#nav-C {
    height: clamp(12rem, 20vh, 50rem);
  }

  a.nav-links {
    padding: .5em;
    line-height: .2em;
  }

  footer #nav-C {
    display: flex;
    flex-direction: row-reverse;
    align-content: flex-end;
    align-items: flex-end;
    justify-content: center;
    background-color: #000;
    font-size: clamp(.7rem, 4vw, 1.7rem);
    flex: .7 0 5em;
    height: max-content;
    /* margin-bottom: 1.7em; */
  }

  footer #nav-C a {
    padding: 1.2em 1.2em;
  }
}