* {
  padding: 0;
  margin: 0;
  box-sizing: border-box;
  list-style: none;
  text-decoration: none;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Audiowide', cursive;
}

.d-flex {
  display: flex;
}

.d-none {
  display: none;
}

.justify-content-between {
  justify-content: space-between;
}

.align-items-center {
  align-items: center;
}

.container {
  width: 90%;
  margin: auto;
}

.w-100 {
  width: 100%;
}

/* NAVBAR */
#navbar {
  position: fixed;
  z-index: 10;
  width: 100%;
  border-bottom: 1px solid black;
  box-shadow: 0px 0px 7px 0px black;
  background-image: linear-gradient(62deg, #030303 0%, #4d4753 100%);
  transition: .5s;
  /* bu animatsiya effekti uchun kk */
  font-size: 1.2rem;
}

#navbar .logo {
  width: auto;
  height: 40px;
  animation: logo-animation 7s 3s infinite forwards;
}

@keyframes logo-animation {
  0% {
    transform: rotateY(0);
  }

  30% {
    transform: rotateY(0);
  }

  50% {
    transform: rotateY(360deg);

  }

  50.1% {
    transform: rotateX(0deg);
  }

  65% {
    transform: rotateY(360deg);
    transform: rotateX(360deg);
  }

  100% {
    transform: rotateY(360deg);
    transform: rotateX(360deg);
  }
}

#navbar .logo img {
  height: 100%;
}

#navbar ul {
  height: 50px;
  display: flex;
}

#navbar ul li a {
  display: block;
  padding: 11px;
  color: white;
}

#navbar ul li a:hover {
  color: rgb(0, 255, 21);
  box-shadow: 0px 0px 7px 0px black;
  transform: scale(1.1);
  transition-duration: 100ms;
}

#dropdown_nav {
  color: white;
  position: relative;
  width: 5vw;
  display: none;
  cursor: pointer;
}

#dropdown_nav:hover {
  color: rgb(0, 255, 21);
}

#dropdown_menu {
  position: absolute;
  top: 43px;
  right: 10px;
  border: 0.5px solid black;
  box-shadow: 0px 0px 7px 0px black;
  text-align: center;
  background-image: linear-gradient(62deg, #2b292c 0%, #605968 100%);
}

#dropdown_menu li a {
  color: white;
  display: block;
  padding: 20px 80px;
  user-select: none;
}

#dropdown_menu li a:hover {
  color: #F0860C;
  box-shadow: 0px 0px 7px 0px black;
  transition-duration: 100ms;
}

#welcome-section {
  position: relative;
  padding-top: 100px;
  height: 100vh;
  color: white;
  background-image: linear-gradient(62deg, #030303 0%, #303841 100%);
  z-index: 1;
  overflow: hidden;
}

#welcome-section .welcome-img img {
  height: 100vh;
  position: absolute;
  object-fit: cover;
  right: -50px;
  bottom: 0;
  z-index: 1;
}

#welcome-section .welcome-text-wrapper {
  position: relative;
  z-index: 2;
  font-family: Verdana, Geneva, Tahoma, sans-serif;
  font-size: 3vw;
  margin-top: 100px;
}

#welcome-section .welcome-text-wrapper {
  animation: pop-up 1.5s linear 1;
}

@keyframes pop-up {
  0% {
    opacity: 0;
    transform: translateY(50px);
  }

  100% {
    opacity: 1;
    transform: translateY(0px);
  }
}

#welcome-section .welcome-text-wrapper .header span {
  color: rgb(0, 255, 21);
}

.pulsating-animation span:hover {
  animation-name: pulsate;
  animation-duration: .5s;
  animation-delay: 0;
  animation-timing-function: ease;
  animation-iteration-count: 1;
  animation-fill-mode: forwards;
  cursor: pointer;
  display: inline-block;
}

@keyframes pulsate {
  0% {
    transform: scale(1);
  }

  33% {
    transform: scale(0.8);
  }

  66% {
    transform: scale(1.2);
  }

  100% {
    transform: scale(1);
  }
}

#typewriter_animation {
  margin-top: 20px;
  overflow: hidden;
  animation: cursor 400ms linear infinite;
  white-space: nowrap;
  letter-spacing: 0.05em;
}

@keyframes cursor {
  0% {
    border-right: 2px solid white;
  }

  49% {
    border-right: 2px solid white;
  }

  50% {
    border-right: 1px solid transparent;
  }

  100% {
    border-right: 1px solid transparent;
  }
}

#welcome-section .myCV {
  display: block;
  position: absolute;
  bottom: 20vh;
  color: white;
  border: 1px solid red;
  padding: 7px;
  border-radius: 7px;
  font-family: cursive;
  font-size: 1.1em;
}

#welcome-section .myCV:hover {
  border-color: rgb(0, 255, 21);
  transition-duration: 0.71s;
  box-shadow: 0px 1px 7px white;
  color: rgb(0, 255, 21);
}

/* PROJECTS SECTION */
#projects {
  height: auto;
  background-color: rgb(240, 240, 240);
  padding-bottom: 50px;
}

#projects h2 {
  text-align: center;
  width: 35%;
  margin: auto;
  padding: 40px 0px;
}

#projects h2::after {
  content: "";
  display: block;
  width: 100%;
  height: 2px;
  background-color: black;
  margin-top: 10px;
  animation: underline 3s infinite forwards linear;
}

@keyframes underline {
  0% {
    background-color: blue;
  }

  20% {
    background-color: pink;
  }

  40% {
    background-color: red;
  }

  60% {
    background-color: yellow;
  }

  80% {
    background-color: green;
  }

  100% {
    background-color: teal;
  }

}

#projects h2:hover {
  color: rgb(9, 84, 128);
  transition-duration: 500ms;
}

#projects h2:hover i {
  color: rgb(9, 84, 128);
  animation: projects-icon 1s infinite linear;
}

@keyframes projects-icon {
  0% {
    transform: translateY(0px) rotate(0deg);
  }

  50% {
    transform: translateY(6px) rotate(360deg);
  }

  100% {
    transform: translateY(0px) rotate(720deg);
  }
}

.grid {
  display: grid;
  grid-template-columns: 32% 32% 32%;
  grid-template-rows: auto;
  gap: 20px 16px;
}

#projects .grid .project-tile {
  border: 1px solid black;
  text-align: center;
  background-color: #303841;
  border-radius: 0 0 10px 10px;
}

#projects .grid .project-tile .project-image {
  width: 100%;
  height: 300px;
  position: relative;
}

#projects .grid .project-tile .project-image::after {
  content: "";
  display: block;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.705);
  position: absolute;
  top: 0;
}

#projects .grid .project-tile:hover .project-image::after {
  opacity: 0;
  transition-duration: 500ms;
}

#projects .grid .project-tile img {
  width: 100%;
  height: 100%;
  image-rendering: pixelated;
}

#projects .grid .project-tile a {
  display: block;
  padding: 10px 0px;
  color: white;
}

#projects .grid .project-tile span {
  opacity: 0;
}

#projects .grid .project-tile:hover span {
  opacity: 1;
  color: rgb(253, 179, 42);
  transition-duration: 500ms;
}

#projects .show-more {
  display: none;
  padding: 110px 0px 50px 0px;
}

#projects .show-more a {
  display: block;
  margin: auto;
  width: 150px;
  background-color: #303841;
  color: white;
  padding: 7px 10px;
  border-radius: 5px;
  overflow: hidden;
}

#projects .show-more a i {
  transform: translate(7px, 2px);
}

#projects .show-more a:hover {
  background-color: teal;
  transition-duration: 700ms;
}

#projects .show-more a:hover i {
  transform: translateX(55px);
  transition-duration: 700ms;
}

/* MUSIC SECTION */
#music {
  padding: 50px 0px;
  font-family: cursive;
  text-align: center;
}

#music h3 {
  font-size: 1.5em;
  /* font-family: 'Goldman', cursive; */
  text-align: center;
  padding: 40px 0px;
}

#music h3::after {
  content: "";
  display: block;
  width: 35%;
  height: 2px;
  margin: auto;
  background-color: black;
  margin-top: 10px;
  animation: underline 3s infinite forwards linear;
}

#music h3:hover {
  color: rgb(9, 84, 128);
  transition-duration: 500ms;
}

#music h3:hover i {
  animation: music-icon 1s infinite linear;
}

@keyframes music-icon {
  0% {
    transform: scale(0.5);
  }

  50% {
    transform: scale(2);
  }

  100% {
    transform: scale(0.5);
  }
}

#music .container .grid .music-box iframe {
  width: 100%;
}

/* CONTACT SECTION */
#contact {
  background-color: #303841;
  text-align: center;
  color: white;
  padding: 100px 0px 80px 0px;
}

#contact h2 {
  font-size: 4vw;
  font-family: cursive;
  margin-bottom: 30px;
}

#contact .typewriterDot {
  opacity: 0;
  animation-name: typewriterDot;
  animation-duration: 4s;
  animation-iteration-count: infinite;
  animation-timing-function: linear;
}

#contact .typewriterDot:nth-of-type(1) {
  animation-delay: 500ms;
}

#contact .typewriterDot:nth-of-type(2) {
  animation-delay: 1s;
}

#contact .typewriterDot:nth-of-type(3) {
  animation-delay: 1.5s;
}

@keyframes typewriterDot {
  0% {
    opacity: 0;
  }

  49% {
    opacity: 0;
  }

  50% {
    opacity: 1;
  }

  100% {
    opacity: 1;
  }
}

#contact p {
  margin-bottom: 70px;
  font-family: cursive;
  font-size: 1.2em;
}

#contact .contact_item {
  width: 80vw;
  height: 50px;
  margin: auto;
  font-family: sans-serif;
}

#contact .contact_item a {
  display: inline-block;
  color: white;
  padding: 1vw;
  border-radius: 10px;
}

#contact .contact_item a:hover {
  transform: translateY(-7px);
  transition-duration: 400ms;
  color: rgb(0, 255, 21);
}

/* FOOTER  */
footer {
  padding: 30px;
  background-color: #303841;
  border-top: 0.1px solid rgb(0, 0, 0);
  box-shadow: 0px 0px 7px 0px black;
  color: white;
  font-family: cursive;
  text-align: center;
}

footer .copyright {
  animation: logo-animation 7s infinite forwards;
}

footer .copyright:hover {
  color: rgb(0, 255, 21);
}

#up {
  display: block;
  position: fixed;
  bottom: 40px;
  right: 50px;
  font-size: 40px;
  color: rgb(0, 255, 21);
  animation: up 10s infinite;
}

@keyframes up {
  0% {
    transform: translateY(0px);
  }

  1% {
    transform: translateY(-10px);
  }

  2% {
    transform: translateY(0px);
  }

  3% {
    transform: translateY(-10px);
  }

  4% {
    transform: translateY(0px);
  }

  100% {
    transform: translateY(0px);
  }
}

/* ============MEDIA SECTION================= */
@media (max-width: 768px) {
  #welcome-section::after {
    display: block;
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: linear-gradient(62deg, #0f0f0f 0%, #4d4753 100%);
    opacity: 0.6;
    z-index: 1;
  }

  #welcome-section .welcome-img img {
    right: 0;
    left: 50%;
    transform: translate(-50%, 0);
    width: 100%;
  }
}
/* extra small */
@media (max-width: 576px) {
  #navbar .logo {
    height: 50px;
    padding: 10px 0px;
  }

  #navbar ul {
    display: none;
  }

  #dropdown_nav {
    display: block;
  }

  #welcome-section .welcome-text-wrapper {
    font-size: 5vw;
    margin-top: 40px;
  }

  .grid {
    grid-template-columns: 100%;
  }

  #projects h2 {
    width: 90%;
  }

  #projects .show-more {
    padding: 190px 0px 20px 0px;
  }

  #music h3 {
    font-size: 1.3em;
  }

  #music h3::after {
    width: 90%;
  }

  #contact h2 {
    font-size: 7vw;
  }

}

/* small */
@media (min-width: 576px) and (max-width: 768px) {
  #navbar .logo {
    height: 50px;
    padding: 10px 0px;
  }

  #navbar ul {
    display: none;
  }

  #dropdown_nav {
    display: block;
  }

  #welcome-section .welcome-text-wrapper {
    font-size: 5vw;
    margin-top: 40px;
  }

  .grid {
    grid-template-columns: 100%;
    justify-items: center;
  }

  #projects h2 {
    width: 72%;
  }

  #projects .grid .project-tile {
    width: 80%;
  }

  #projects .show-more {
    padding: 190px 0px 20px 0px;
  }

  #music .container .grid .music-box {
    width: 100%;
  }

  #music h3::after {
    width: 70%;
  }

  #contact h2 {
    font-size: 5vw;
  }

}

/* medium */
@media (min-width: 768px) and (max-width: 992px) {
  .grid {
    grid-template-columns: 48% 48%;
    grid-template-rows: auto;
  }

  #projects h2 {
    width: 55%;
  }

  #projects .grid .project-tile .project-image {
    height: 250px;
  }

  #music .container .grid .music-box:last-of-type {
    display: block;
  }

  #music h3::after {
    width: 55%;
  }

  #contact h2 {
    font-size: 5vw;
  }
}

/* large */
@media (min-width: 992px) and (max-width:1200px) {
  #projects h2 {
    width: 41%;
  }

  #projects .grid .project-tile .project-image {
    width: 100%;
    height: 250px;
  }

  #music h3::after {
    width: 45%;
  }
}