/* Mobile & Tablet Responsive Styles */

/* Hide custom cursors on small/touch screens */
@media (max-width: 922px) {
  .cursor-1,
  .cursor-2 {
    display: none;
  }
}

/* General mobile adjustments (up to 922px - tablets and phones) */
@media (max-width: 922px) {
  /* Header & Nav */
  .head {
    padding: 0 5%;
  }

  nav {
    flex-direction: column;
    gap: 15px;
    margin-top: 10px;
  }

  .nav-logo{
    display: flex;
    flex: auto;
    justify-content: center;
  }

  .nav-logo a{
    display: flex;
    padding-left: 100px
  }

  .nav-bar {
    display: none;
    padding-right: 0;
    margin-left: 0;
    text-align: center;
  }

  nav a {
    margin-left: 0;
    margin: 0 10px;
    font-size: 18px;
  }

  /* Home Section */
  .home {
    flex-direction: column-reverse;
    align-items: center;
    text-align: center;
    margin-bottom: 10vh;
    padding: 0 5%;
  }

  .left {
    margin: 0 auto;
  }

  .left img {
    width: 180px;
    margin-top: 40px;
    margin-left: 0;
    border-width: 8px;
  }

  .right {
    padding: 15vh 5% 0;
    text-align: center;
  }

  .right h1 {
    font-size: 2.5rem;
  }

  .right p {
    columns: auto;
    max-width: 100%;
    margin: 30px auto;
    font-size: 1.2rem;
  }

  .main .btn-box {
    width: 100%;
    max-width: 350px;
    margin: 30px auto;
    justify-content: center;
    gap: 20px;
  }

  .btn-box a {
    width: 160px;
    font-size: 18px;
  }

  /* Social icons in home (uncomment if you use .home-sci) */
  .home-sci {
    bottom: 100px;
    width: 200px;
    left: 50%;
    transform: translateX(-50%);
  }

  /* About Section */
  .about {
    gap: 0vh;
    padding: 0 5%;
    grid-template-rows: 0px 300px 300px;
  }

  .about-img img {
   display: none;
  }

  .about-container {
    text-align: center;
  }

  .about-container a{
    padding: 11px !important;
    width: 110px;
    
  }

  .about-container .btn-box {
    margin: 30px auto;
    justify-content: center;
  }

  .mobileskill {
    display: flex;
    width:  120px;
    height: 50px;
    
  }

  .mobileskill a{
    background: transparent;
    color: var(--secondary);
  }

  .mobileskill-container{
    display: flex;
    padding-top: 50px;
    padding-bottom:50px;
    justify-content: space-around;
  }

  /* Skills Section */
  #tech {
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    width: 90%;
  }

  #tech > div > img {
    width: 60px;
    height: 60px;
  }

  /* Contact Section */
  .contact {
    flex-direction: column;
    padding: 0 5%;
  }

  #contact > div {
    width: auto;
    margin: 20px 0;
    flex-direction: column;
  }

  .name-phone,
  .send-info {
    width: 100%;
  }

  #social-grid {
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(3, 1fr);
    gap: 15px;
  }

  .mail-phone {
    width: auto !important;
  }

 /* Instagram logo*/
#social-grid a:nth-child(1){
  grid-column-start: 1 !important;
  grid-column-end: 2 !important;
  width: 100%;
  color: var(--secondary);
  background-color: var(--primary);
  height: auto;
  justify-self: end !important;
}

/*Twitter logo*/
#social-grid a:nth-child(2){
  grid-column-start: 1 !important;
  grid-column-end: 3 !important;
  width: 100%;
  height: auto;
  justify-self: end !important;
}

/*Linked-in logo*/
#social-grid a:nth-child(3){
  grid-column-start: -2 !important;
  grid-column-end: 4 !important;
  color: var(--secondary);
  width: 100%;
  background-color: var(--primary);
  height: auto;
  justify-self: start !important;
}

/*Github logo*/
#social-grid a:nth-child(4){
  grid-column-start: 2 !important;
  grid-column-end: 4 !important;
  width: 100%;
  height: auto;
  justify-self: start !important;
}



}

/* Extra small phones (under 480px) - finer adjustments */
@media (max-width: 480px) {
  .left img {
    width: 150px;
    border-width: 6px;
  }

  .right {
    padding-top: 10vh;
  }

  .right h1 {
    font-size: 1.8rem;
  }

  .main .btn-box {
    flex-direction: column;
    height: 120px;
    align-items: center;
    gap: 15px;
  }

  .btn-box a {
    width: 200px;
  }

  #tech {
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
  }

  #tech > div > img {
    width: 50px;
    height: 50px;
  }

  .about {
    grid-template-rows: auto;
  }

  .about-container.para p {
    columns: 250px 3;
    margin-left: 0px;
    margin-right: 0px;
    padding: 5px;
  }

  .about-img img {
    width: 180px;
    display: none;
    /* margin-left: 100px; */
  }

  .mobileskill {
    display: flex;
    width:  120px;
    height: 50px;
  }

  .mobileskill-container{
    display: flex;
    padding-top: 0px;
    padding-bottom:50px;
    justify-content: space-around;
  }

  /* .btn-box.btns a{} */
#social-grid a:nth-child(2){
  grid-column-start: 1 !important;
  grid-column-end: 2 !important;
  width: 100%;
  height: auto;
  justify-self: end !important;
}
  /* Make social grid more compact */
  #social-grid {
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: auto;
  }

  .mail-phone{
    grid-column-start: 1 !important;
  grid-column-end: 4 !important;
  }

  /* Adjust any large text */
  p {
    font-size: 1rem;
  }
}

/* Very tiny screens (under 350px) - hide non-essential if needed */
@media (max-width: 350px) {
  .left img {
    width: 140px;
  }

  .btn-box a {
    width: 180px;
    font-size: 16px;
  }
}
