@media screen and (min-width: 1940px) {
  .container {
    max-width: 1900px;
  }
}
@media screen and (max-width: 1440px) {
  .hero_content h1 {
    font-size: 40px;
  }
  .right_card > div {
    padding: 20px;
  }
  .right_card p {
    font-size: 16px;
    line-height: 22px;
  }
  .skill-logos img {
    width: 55px;
  }
  .service_card i {
    font-size: 28px;
  }
  .service_text h3 {
    font-size: 22px;
  }
  .service_text p {
    font-size: 18px;
  }
}
@media screen and (max-width: 1300px) {
  .container {
    width: 90%;
  }
  nav {
    gap: 2rem;
  }
  nav a {
    font-size: 16px;
  }
  .hero_image img {
    width: 180px;
  }
  .hero_content h1 {
    font-size: 35px;
  }
  .hero_content p {
    font-size: 25px;
  }
  .btn_group a .contact {
    width: 8rem;
    font-size: 14px;
  }
  .right_card h2,
  .left_card h2 {
    font-size: 24px;
  }
  .left_card img {
    width: 150px;
  }
  .right_card p {
    font-size: 14.5px;
    line-height: normal;
  }
  .service_heading h2,
  .portfolio_section h2,
  .education_section h2,
  .testimonial_section h2,
  .contact_section h2 {
    font-size: 35px;
  }
  .degree-name h3 {
    font-size: 22px;
  }
  .institute-name h4 {
    font-size: 17px;
  }
  .degree-info p {
    font-size: 15px;
  }
  .service_text h3 {
    font-size: 20px;
  }
  .service_text p {
    font-size: 16px;
  }
  .service_card i {
    font-size: 25px;
  }
  .portfolio_container {
    grid-template-columns: repeat(3, 1fr);
  }
  .project_info h3 {
    font-size: 17px;
  }
  .project_info a {
    padding: 10px 20px;
    font-size: 14px;
  }
  .view_buttons button {
    padding: 10px 25px;
    font-size: 18px;
  }
}
@media screen and (max-width: 1100px) {
  header .container {
    height: 4rem;
  }
  .hero_content h1 {
    font-size: 30px;
  }
  .logo {
    width: fit-content;
  }
  .logo a h1 {
    font-size: 20px;
  }
  .hero_image img {
    width: 150px;
  }
  .btn_group {
    margin-top: 12px;
  }
  .service_section .container {
    grid-template-columns: repeat(2, 1fr);
  }
  .portfolio_container {
    grid-template-columns: repeat(2, 1fr);
  }
  .service_heading h2,
  .portfolio_section h2,
  .education_section h2,
  .testimonial_section h2,
  .contact_section h2 {
    font-size: 30px;
  }
  .testimonials-item p {
    font-size: 16px;
  }
  .testimonials-item h3 {
    font-size: 18px;
  }
  #testimonial-btn {
    font-size: 16px;
  }
  .link {
    width: 100%;
  }
  .link a i {
    font-size: 40px;
  }
  .link a img {
    width: 38px;
  }
}
@media screen and (max-width: 920px) {
  .hero_content {
    width: 45%;
  }
  header nav {
    position: absolute;
    right: -200%;
    top: 0;
    width: 40%;
    height: 100vh;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    padding-top: 2rem;
    background-color: rgba(11, 12, 16, 1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: 0.25s all ease-in-out;
  }
  header nav a {
    width: fit-content;
    height: auto;
    font-size: 20px;
  }
  .black-screen {
    position: absolute;
    left: -200%;
    top: 0;
    width: 60%;
    background-color: rgba(0, 0, 0, 0.5);
    height: 100%;
    z-index: 9;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: 0.25s all ease-in-out;
  }
  .menu-close-btn {
    position: absolute;
    left: 20px;
    top: 20px;
    width: 35px;
    height: 35px;
    background-color: var(--primary);
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 8px;
  }
  .menu-close-btn i {
    color: var(--secondary);
    font-size: 20px;
  }
  .menu-open-btn {
    display: block;
    width: fit-content;
  }
  .menu-open-btn i {
    color: var(--primary);
    font-size: 28px;
    cursor: pointer;
  }
  .about-section .container {
    grid-template-columns: 1fr; /* ek column ban jaayega */
  }

  .right_card {
    grid-template-rows: auto auto; /* as it is rahega */
  }
  .right_card > div,
  .left_card {
    padding: 30px;
  }
}
@media screen and (max-width: 760px) {
  header nav {
    width: 60%;
  }
  .black-screen {
    width: 40%;
  }
  .service_heading h2,
  .portfolio_section h2,
  .education_section h2,
  .testimonial_section h2,
  .contact_section h2 {
    margin-bottom: 6%;
  }
  .hero_section .container {
    flex-direction: column-reverse;
    justify-content: center;
    align-items: center;
    gap: 50px;
  }
  .hero_content {
    width: 100%;
    text-align: center;
  }
  .hero_image {
    text-align: center;
    width: 100%;
  }
  .btn_group {
    justify-content: center;
  }
  .right_card > div {
    padding: 20px;
  }
  .portfolio_container,
  .service_section .container {
    grid-template-columns: repeat(1, 1fr);
  }
  .social_links {
    grid-template-columns: repeat(2, 1fr);
  }
  .footer-menu nav {
    gap: 10px;
  }
}
@media screen and (max-width: 480px) {
  header nav {
    width: 80%;
  }
  .black-screen {
    width: 20%;
  }
  .right_card h2,
  .left_card h2 {
    font-size: 20px;
  }
  .degree-name h3 {
    font-size: 18px;
  }
  .institute-name h4 {
    font-size: 15px;
  }
  .year {
    font-size: 15px;
  }
  .service_heading h2,
  .portfolio_section h2,
  .education_section h2,
  .testimonial_section h2,
  .contact_section h2 {
    font-size: 25px;
  }
  .hero_content h1 {
    font-size: 26px;
  }
  .hero_content p {
    font-size: 22px;
  }
  .service_text h3 {
    font-size: 18px;
  }
  .service_card i {
    font-size: 22px;
  }
  .footer-logo img {
    width: 180px;
  }
}
@media screen and (max-width: 390px) {
  .social_links {
    grid-template-columns: repeat(1, 1fr);
  }
  .skill-logos img {
    width: 40px;
  }
}
