/*Media Quaries (max-width 1194px) */
@media (max-width: 1194px) {
  .hero-content {
    width: 35%;
  }
  .hero-img img {
    width: 450px;
    height: 500px;
  }
  .hero-content :nth-child(1) {
    font-size: 2.5rem;
  }
  .hero-content :nth-child(2) {
    font-size: 4.5rem;
  }
  .hero-content :nth-child(3) {
    font-size: 2.3rem;
  }
}
/*Media Quaries (max-width 1085px) */
@media (max-width: 1085px) {
  .project {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
  }
  .image-container img {
    max-width: 380px;
  }
}

/*Media Quaries (max-width 884px) */
@media (max-width: 884px) {
  .nav-links {
    display: none;
    flex-direction: column;
    position: absolute;
    background-color: rgb(23, 23, 33);
    top: 60px;
    right: 0;
    width: 40%;
    padding-bottom: 100rem;
    text-align: center;
  }
  .nav-links.active {
    display: flex;
  }
  .nav-links li {
    margin: 1.2rem 0;
  }
  .nav-links a {
    font-size: 2rem;
  }
  .burgar {
    display: block;
  }
  .logo {
    font-size: 3.5rem;
    padding-left: 1rem;
  }
  header {
    padding: 1rem 5rem;
  }

  .hero-content :nth-child(1) {
    margin-bottom: 10px;
    font-size: 2.5rem;
  }
  .hero-content :nth-child(2) {
    font-weight: bold;
    font-size: 3.8rem;
    margin-bottom: 20px;
  }
  .hero-content :nth-child(3) {
    font-size: 2rem;
    margin-bottom: 20px;
  }
  .hero-content :nth-child(4) {
    margin-bottom: 20px;
  }
  .hero-icons {
    margin-bottom: 10px;
  }
  .hero-img img {
    width: 350px;
    height: 400px;
  }

  /*.about-img img {
    width: 300px;
  }
  .about-content {
    width: 46%;
  }*/
  .about-content p {
    font-size: 2.1rem;
  }
  .project {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
  }
  .image-container img {
    max-width: 350px;
  }

  .modal-content {
    margin: 28% auto;
    padding: 0px;
    width: 80%;
    height: auto;
    padding-bottom: 30px;
  }
  .modal-body p {
    font-size: 1.5rem;
    padding: 25px;
    line-height: 1.7;
  }
  /*.modal-body p span {
    font-size: 3rem;
    line-height: 0;
  }*/
  .buttons a:first-child button {
    padding: 10px 30px;
    margin: 1rem 15px 0px 0px;
    font-size: 2rem;
  }
  .buttons a:last-child button {
    padding: 8px 25px;
    font-size: 2rem;
  }
  .resume-row {
    grid-template-columns: 1fr;
  }
  #contact {
    flex-direction: column;
    row-gap: 50px;
  }
  label {
    color: #aaa;
    font-size: 2.3rem;
  }
  input {
    width: 60rem;
  }
  input::placeholder {
    font-size: 2rem;
  }
  textarea::placeholder {
    font-size: 2rem;
  }

  .contact {
    width: 100%;
  }
  .contact-info {
    width: 70%;
  }
  .contact-info :nth-child(2),
  .contact-info :nth-child(3),
  .contact-info :nth-child(4),
  .contact-info :nth-child(5) {
    font-size: 2rem;
    line-height: 35px;
  }
  footer {
    height: 14vh;
  }
  footer h3 {
    font-size: 2rem;
  }
  footer p {
    font-size: 2rem;
  }
}

/* max-width 834px */
@media (max-width: 834px) {
  .hero-container {
    display: flex;
    flex-direction: column-reverse;
  }
  .hero-img img {
    width: 420px;
    height: 450px;
  }
  .hero-content {
    width: 60%;
    text-align: center;
    margin-top: 40px;
  }
  .hero-content :nth-child(1) {
    margin-bottom: 10px;
    font-size: 3rem;
  }
  .hero-content :nth-child(2) {
    font-weight: bold;
    font-size: 5.5rem;
    margin-bottom: 15px;
  }
  .hero-content :nth-child(3) {
    font-size: 2.5rem;
    margin-bottom: 20px;
  }
  .hero-content :nth-child(4) {
    font-size: 2.3rem;
    margin-bottom: 20px;
    line-height: 1.5;
  }

  /* #about {
    display: flex;
    flex-direction: column;
    row-gap: 50px;
  }
  /*.about-img img {
    width: 500px;
  }
  .about-content {
    width: 80%;
    text-align: center;
  }*/
  .about-content h1 {
    font-size: 5rem;
  }
  .about-content p {
    font-size: 2rem;
    line-height: 40px;
  }
  .skill-img {
    grid-template-columns: repeat(3, 1fr);
  }
  .skill-img .img1 {
    width: 200px;
    height: 200px;
  }
  .project {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    row-gap: 30px;
  }
  .image-container {
    width: 500px;
    height: 450px;
    /*background-color: #1e1e2b;*/
    background-color: #13131d;
    padding: 2rem 0 0 0;
    border-radius: 10px;
    box-shadow: 5px 5px 10px rgba(0, 0, 0, 0.8);
    /*clip-path: inset(0); Prevents scaling from affecting edges */
  }
  .image-container img {
    width: 900px;
  }
}

/*max-width 800px */
@media (max-width: 800px) {
  .hero-container {
    display: flex;
    flex-direction: column-reverse;
  }
  .hero-img img {
    width: 420px;
    height: 450px;
  }

  .hero-content :nth-child(1) {
    margin-bottom: 10px;
    font-size: 2.8rem;
  }
  .hero-content :nth-child(2) {
    font-weight: bold;
    font-size: 4.5rem;
    margin-bottom: 20px;
  }
  .hero-content :nth-child(3) {
    font-size: 2.3rem;
    margin-bottom: 20px;
  }
  .hero-icons {
    margin-bottom: 20px;
  }
  .hero-content .contact-btn button a {
    font-size: 2.3rem;
  }
  .hero-content .contact-btn button {
    border-radius: 50px;
    padding: 20px 35px;
  }
  .about-content {
    width: 74%;
  }
  .about-content p {
    font-size: 2.6rem;
  }
  .skill-img {
    grid-template-columns: repeat(3, 1fr);
  }
  .skill-img .img1 {
    width: 180px;
    height: 180px;
  }
  .skill-img img {
    width: 120px;
  }
  .project {
    display: grid;
    grid-template-columns: repeat(1, 550px);
  }

  .modal-content {
    margin: 10% auto;
    padding: 0px;
    width: 90%;
    height: auto;
    padding-bottom: 50px;
  }
  /*.modal-body p {
    font-size: 3rem;
    padding: 25px;
  }
  .modal-body p span {
    font-size: 3rem;
    line-height: 0;
  }*/
  #contact {
    flex-direction: column;
  }

  .contact-info {
    width: 76%;
  }
}

/*max-width 625px */
@media (max-width: 625px) {
  .skill-img {
    grid-template-columns: repeat(2, 1fr);
  }
  .project {
    grid-template-columns: repeat(1, 1fr);
  }
  .image-container img {
    height: 260px;
    max-width: 400px;
  }
  form {
    width: 80%;
  }
  label {
    color: #aaa;
    font-size: 1.8rem;
  }
  input {
    width: 46rem;
    margin-bottom: 25px;
    font-size: 1.8rem;
  }
  input::placeholder {
    font-size: 1.8rem;
  }
  textarea::placeholder {
    font-size: 1.8rem;
  }
  .contact-info {
    width: 80%;
  }
  footer h3,
  footer p {
    font-size: 1.3rem;
  }
}
/*max-width 500px */
@media (max-width: 500px) {
  header {
    height: auto;
    padding: 1rem 3rem;
  }
  .logo {
    font-size: 2.5rem;
    padding-left: 1rem;
  }
  .burgar {
    display: block;
    font-size: 2.5rem;
  }

  .nav-links {
    width: 60%;
    padding-bottom: 50rem;
    top: 50px;
  }
  .nav-links li {
    margin: 1.5rem 0;
  }
  .nav-links a {
    font-size: 2rem;
  }
  .hero-img img {
    width: 400px;
    height: 430px;
  }
  .hero-content {
    width: 75%;
  }
  .hero-content :nth-child(1) {
    margin-bottom: 10px;
    font-size: 3rem;
  }
  .hero-content :nth-child(2) {
    font-weight: bold;
    font-size: 4rem;
    margin-bottom: 15px;
  }
  .hero-content :nth-child(3) {
    font-size: 2rem;
    margin-bottom: 20px;
  }
  .hero-content :nth-child(4) {
    font-size: 2.1rem;
    margin-bottom: 20px;
    line-height: 1.5;
  }

  /*.about-img img {
    width: 350px;
  }
  .about-content {
    width: 85%;
  }*/
  .about-content h1 {
    font-size: 4rem;
  }
  .about-content {
    width: 80%;
  }
  .about-content p {
    font-size: 2rem;
  }
  #skills h2 {
    font-size: 4rem;
  }
  .skill-img {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    align-items: center;
    justify-content: center;
    gap: 15px;
  }
  .skill-img .img1 {
    width: 180px;
    height: 180px;
  }
  .skill-img img {
    width: 120px;
  }
  .project {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: 30px;
  }
  #projects h2 {
    font-size: 4rem;
  }
  .image-container {
    width: 400px;
  }

  .image-container img {
    height: 260px;
    width: 350px;
  }
  .modal-content {
    margin: 25% auto;
    padding: 0px;
    width: 92%;
    height: auto;
    padding-bottom: 30px;
  }
  /* .modal-body p {
    font-size: 2.1rem;
    padding: 10px;
  }
  .modal-body p span {
    font-size: 2.2rem;
    line-height: 0;
  }*/
  .buttons a:first-child button {
    margin: 2rem 15px 0px 0px;
    font-size: 1.4rem;
  }
  label {
    color: #aaa;
    font-size: 1.8rem;
  }
  input {
    width: 46rem;
    margin-bottom: 25px;
    font-size: 1.8rem;
  }
  input::placeholder {
    font-size: 1.8rem;
  }
  textarea::placeholder {
    font-size: 1.8rem;
  }
  .contact-info {
    width: 78%;
  }
  .contact-info :nth-child(2),
  .contact-info :nth-child(3),
  .contact-info :nth-child(4),
  .contact-info :nth-child(5) {
    font-size: 1.8rem;
    line-height: 38px;
  }
  footer h3,
  footer p {
    font-size: 1.5rem;
  }
}

/* max-width 412px */
@media screen and (max-width: 412px) {
  .hero-container {
    padding-top: 95px;
  }
  .hero-img img {
    width: 300px;
    height: 330px;
  }
  .hero-content {
    width: 74%;
  }
  .hero-content :nth-child(1) {
    font-size: 2.1rem;
  }
  .hero-content :nth-child(2) {
    font-size: 3rem;
    font-weight: bold;
    margin-bottom: 15px;
  }
  .hero-content :nth-child(3) {
    font-size: 1.7rem;
  }
  .hero-content :nth-child(4) {
    font-size: 1.9rem;
  }

  /*.about-img img {
    width: 350px;
  }
  .about-content {
    width: 88%;
  }*/
  .about-content p {
    font-size: 2rem;
  }
  .skill-img {
    grid-template-columns: repeat(2, 1fr);
    row-gap: 10px;
  }
  .skill-img .img1 {
    width: 150px;
    height: 150px;
  }
  .skill-img img {
    width: 100px;
  }
  .project {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: 30px;
  }
  .image-container {
    width: 350px;
  }
  .image-container img {
    height: 230px;
    width: 290px;
  }

  .modal-content {
    margin: 25% auto;
    width: 92%;
    height: auto;
    padding-bottom: 70px;
  }
  /*.modal-body p {
    font-size: 2.2rem;
    padding: 20px;
  }
  .modal-body p span {
    font-size: 2.3rem;
    line-height: 0;
  }*/

  .buttons a:first-child button {
    padding: 10px 25px;
    margin: 1rem 10px 0px 0px;
  }
  .buttons a:last-child button {
    padding: 8px 12px;
    font-size: 1.6rem;
  }
  label {
    color: #aaa;
    font-size: 1.6rem;
  }
  input {
    width: 37rem;
    margin-bottom: 25px;
    font-size: 1.6rem;
  }
  input::placeholder {
    font-size: 1.6rem;
  }
  textarea::placeholder {
    font-size: 1.6rem;
  }
  .contact-info {
    width: 80%;
  }
  .contact-info :nth-child(2),
  .contact-info :nth-child(3),
  .contact-info :nth-child(4),
  .contact-info :nth-child(5) {
    font-size: 2rem;
    line-height: 38px;
  }
}

/* max-width 360px*/
@media screen and (max-width: 360px) {
  .hero-container {
    padding-top: 95px;
  }
  .logo {
    font-size: 3rem;
    padding-left: 0.3rem;
  }
  .hero-img img {
    width: 300px;
    height: 330px;
  }
  .hero-content {
    width: 78%;
  }
  .hero-content :nth-child(1) {
    font-size: 2.1rem;
  }
  .hero-content :nth-child(2) {
    font-size: 3rem;
    font-weight: bold;
    margin-bottom: 14px;
  }
  .hero-content :nth-child(3) {
    font-size: 1.7rem;
    margin-bottom: 8px;
  }

  /*.about-img img {
    width: 310px;
  }*/
  .about-content {
    width: 84%;
  }
  .about-content h1 {
    font-size: 4rem;
  }
  .about-content p {
    font-size: 1.7rem;
  }
  #skills h2 {
    font-size: 4rem;
  }
  .skill-img {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }
  .skill-img .img1 {
    width: 140px;
    height: 140px;
  }
  .skill-img img {
    width: 90px;
  }
  .project {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: 30px;
  }
  #projects h2 {
    font-size: 4rem;
  }
  .image-container {
    width: 310px;
  }
  .image-container img {
    width: 280px;
  }
  .modal-body .buttons {
    margin-top: 20px;
  }
  .modal-content {
    margin: 25% auto;
    width: 88%;
    height: auto;
    padding-bottom: 20px;
  }
  /*.modal-body p {
    font-size: 2.2rem;
    padding: 20px;
  }
  .modal-body p span {
    font-size: 2.3rem;
    line-height: 0;
  }*/
  .buttons a:first-child button {
    margin: 0.5rem 15px 0px 0px;
  }
  label {
    color: var(--primary-color);
    font-size: 1.6rem;
  }
  input::placeholder {
    font-size: 1.6rem;
  }
  input {
    width: 31rem;
    font-size: 1.6rem;
  }
  textarea::placeholder {
    font-size: 1.6rem;
  }

  .contact-info {
    width: 80%;
  }
  .contact-info :nth-child(2),
  .contact-info :nth-child(3),
  .contact-info :nth-child(4),
  .contact-info :nth-child(5) {
    font-size: 1.7rem;
  }
  footer {
    height: 14vh;
  }
  footer h3 {
    font-size: 1.5rem;
  }
  footer p {
    font-size: 1.5rem;
  }
}

/*max-width 320px */
@media screen and (max-width: 320px) {
  .hero-img img {
    width: 250px;
    height: 280px;
  }
  .logo {
    font-size: 2.5rem;
    padding-left: 0.41rem;
  }
  .hero-content {
    width: 74%;
  }
  .hero-content :nth-child(1) {
    font-size: 2.1rem;
  }
  .hero-content :nth-child(2) {
    font-size: 2rem;
    font-weight: bold;
    margin-bottom: 14px;
  }
  .hero-content :nth-child(3) {
    font-size: 1.5rem;
    margin-bottom: 8px;
  }
  .hero-content :nth-child(4) {
    font-size: 1.5rem;
    margin-bottom: 20px;
  }
  /* .about-img img {
    width: 280px;
  }*/
  .about-content {
    width: 85%;
  }
  .about-content p {
    font-size: 1.5rem;
  }
  .skill-img {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }
  .skill-img .img1 {
    width: 130px;
    height: 130px;
  }
  .skill-img img {
    width: 90px;
  }
  .project {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: 30px;
  }
  .image-container {
    width: 310px;
  }
  .image-container img {
    width: 280px;
  }
  .modal-content {
    margin: 20% auto;
    width: 95%;
    height: auto;
    padding-bottom: 30px;
  }
  /*.modal-body p {
    font-size: 2.2rem;
    padding: 20px;
  }
  .modal-body p span {
    font-size: 2.3rem;
    line-height: 0;
  }*/
  .buttons a:first-child button {
    margin: 0px 15px 0px 0px;
  }
  .buttons a:last-child button {
    padding: 8px 8px;
    font-size: 1.5rem;
  }
  input {
    width: 29rem;
    font-size: 1.6rem;
  }
  label {
    color: var(--primary-color);
    font-size: 1.6rem;
  }
  input::placeholder {
    font-size: 1.6rem;
  }

  textarea::placeholder {
    font-size: 1.6rem;
  }
  .contact-info {
    width: 72%;
  }
  .contact-info :nth-child(2),
  .contact-info :nth-child(3),
  .contact-info :nth-child(4),
  .contact-info :nth-child(5) {
    font-size: 2rem;
  }
}
