@media (max-width: 768px) {
  body {
    width: 100vw;
    /* Ensure the body takes up only the full viewport width */
    height: 100vh;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    /* Prevent horizontal overflow */
  }

  .form {
    background: #fff;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    width: 95%;
    display: flex;
    flex-direction: column;
    margin: 0 auto;
    justify-content: center;
    margin-top: 10%;
  }

  .home {
    height: 105vh;
  }

  .work1,
  .work2,
  .education__item {
    width: 90%;
    margin-top: 10%;
    padding: 10px;
    padding-bottom: 7%;
  }

  .maincontainer .hometxt h1,
  .maincontainer .hometxt h2 {
    font-size: 2rem;
    line-height: 1.2;
  }

  .Skills .skillimg {
    height: 70px;
    padding: 10px;
  }

  .container2 {
    height: auto;
    padding-bottom: 15%;
  }

  .work,
  .aboutme {
    width: 100%;
    padding: 10px;
  }

  .allcards,
  .allwork,
  .education {
    flex-direction: column;
    gap: 10px;
  }

  .card {
    width: 90%;
    height: auto;
  }

  .container3 {
    padding: 0 3%;
    display: block;
    background: rgb(221, 221, 221);
    background: linear-gradient(180deg,
        rgba(221, 221, 221, 1) 0%,
        rgba(204, 204, 204, 1) 10%);
  }

  .contact-info,
  .contact-form {
    width: 100%;
    margin-top: 20px;
  }

  .contact-info h1 {
    text-align: center;
    font-size: 2.5rem;
    margin: 0;
  }

  .contact-info .title {
    text-align: center;
    font-size: 1.5rem;
    margin: 0.5rem 0;
  }

  .description,
  .contact-details {
    display: none;
  }

  .commonskill {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    margin-top: 10%;
  }

  .downwardskills {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    margin-top: 1%;
  }

  .hometxt h1 {
    font-size: 3rem;
    /* Smaller heading */
  }

  .hometxt h2 {
    font-size: 1.5rem;
    /* Adjust subtitle size */
  }

  .aboutme {
    width: 90%;
    /* Full width on mobile */
    padding: 10px;
    /* Less padding */
  }

  .projects,
  .work,
  .Skills {
    width: 100%;
    /* Full width for sections */
    padding: 10px;
    /* Less padding */
  }

  .allcards {
    flex-direction: column;
    /* Stack cards vertically */
    overflow-x: hidden;
    /* Prevent horizontal overflow */
  }

  .card {
    width: 70%;
    /* Card full width */
    margin: 10px;
    /* Margin for spacing */
    background-color: #eeeeee;
  }

  .contact-info,
  .contact-form {
    width: 100%;
    /* Full width for contact sections */
  }

  .contact-details p {
    font-size: 14px;
    /* Adjust font size */
  }

  .button {
    width: 100%;
    /* Full width button */
    padding: 10px;
    /* Increased padding for easier tapping */
  }

  .footer {
    flex-direction: column;
    /* Stack footer items */
    padding: 10px;
    background: rgb(204, 204, 204);
    background: linear-gradient(180deg,
        rgba(204, 204, 204, 1) 0%,
        rgba(187, 187, 187, 1) 56%);
  }

  .navtxtprop {
    font-size: 1.5rem;
    /* Reduce font size for navigation text */
  }

  .right-arrow,
  .left-arrow {
    width: 40px;
    /* Adjust arrow size for mobile */
    height: 40px;
    /* Adjust arrow size for mobile */
  }

  /* Ensure text remains readable */
  .workh2,
  .workh4,
  .education__title,
  .education__subtitle {
    font-size: 1.5rem;
    /* Adjust for mobile readability */
  }

  .left-arrow {
    position: absolute;
    top: 70%;
    right: 85%;
    margin: -75px 0 0 -75px;
    border: none;
    cursor: pointer;
    z-index: 1000;
  }

  .cards-container {
    display: flex;
    width: 100%;
    scroll-behavior: smooth;
    overflow: hidden;
  }

  .button {
    display: none;
  }

  .container3 {
    height: fit-content;
  }

  .left-arrow,
  .right-arrow,
  .right-arrow-part,
  .left-arrow-part {
    display: none;
  }

  .nav {
    gap: 0%;
  }

  .contact-form {
    padding: 0 1rem;
  }

  .contact-form form input,
  .contact-form form textarea,
  .contact-form form select {
    width: 100%;
    margin-bottom: 1rem;
    padding: 0.8rem;
    font-size: 1rem;
    border-radius: 5px;
    border: 1px solid #ddd;
  }

  .contact-form button {
    width: 100%;
    padding: 1rem;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1rem;
    margin-bottom: 18%;
  }

  .footer .SocialTxt a {
    display: inline-block;
    margin: 0.5rem;
    font-size: 1rem;
    color: #333;
    text-decoration: none;
  }

  .footer .SocialTxt a:hover {
    color: #0073b1;
  }

  .line {
    display: none;
  }

  .container3 .contact-info,
  .container3 .contact-form {
    width: 100%;
    margin-top: 0%;
  }

  .phone-input .country-code {
    flex: 0 0 30%;
    padding: 0.8rem;
    font-size: 1rem;
    border-radius: 5px;
    border: 1px solid #ddd;
  }

  .initial {
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .card-int__title {
    font-size: 1.1rem;
  }

  .card-int__button {
    padding: 10px 25px;
    font-size: 14px;
  }

  .see-more-btn {
    margin-top: 20px;
    display: flex;
    justify-content: center;
  }

  .spn2 {
    font-size: 16px;
  }

  .upwardSkills {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px; /* Space between the items */
  }
  
  .Skills1, .Skills2 {
    display: flex;
    flex-direction: column;
    flex-wrap: wrap;
    width: 45%; /* Adjust width to 45% for a balanced layout */
    gap: 15px; /* Space between skill boxes */
    margin: 0 auto;
  }



}


@media (max-width: 480px) {

  .upwardSkills{
    display: flex;
    justify-content: space-evenly;
    align-items: center;
    flex-wrap: wrap;
    flex-direction: column;
  }
  
  .Skills1, .Skills2{
    display: flex;
    flex-direction: column;
    flex-wrap: wrap;
    width: 90%;
    gap: 0;
    margin-top: 3%;
  }

  .projects {
    width: 100%; /* Full width for extra small screens */
    padding: 10px; /* Reduce padding */
  }

  .allcards {
    gap: 10px; /* Even smaller gap between cards */
    flex-direction: column; /* Stack cards vertically */
  }

  .card {
    width: 100%; /* Cards should take full width */
    margin-bottom: 15px; /* Reduce margin between cards */
  }

  .card-int__button {
    padding: 8px 20px; /* Adjust button size */
    font-size: 13px; /* Adjust button text size */
  }

  .card-int__title {
    font-size: 1rem; /* Reduce title font size */
  }

  .see-more-btn button {
    padding: 10px 20px; /* Adjust button padding for smaller screens */
  }

  .projects {
    padding: 10px;
  }

  .card {
    width: 100%;
    margin: 0 auto 15px;
  }

  .card-int__button {
    padding: 8px 20px;
    font-size: 13px;
  }

  .spn2 {
    font-size: 14px;
  }

  .footer {
    padding: 10px;
  }

  .contact-form button {
    margin-bottom: 20%;
  }
}

@media (max-width: 992px) {
  .projects {
    width: 85%;
  }


  .extra {
    flex-direction: column;
    align-items: center;
  }


  .projects {
    width: 85%;
    height: 100%;
  }

  .allcards {
    gap: 15px;
    flex-direction: column;
    height: 100%;
    width: 100%;
  }



  .card-int__button {
    font-size: 14px; /* Adjust font size */
  }

  .see-more-btn button {
    padding: 12px 24px; /* Increase padding for the button */
  }
  .extra{
    flex-direction: column;
    align-items: center;
  }
}