/* ====================== */
/* MOBILE ONLY (Under 768px) */
/* ====================== */
@media (max-width: 767px) {
  /* Navigation */
  .nav-links {
    position: fixed;
    top: 70px;
    left: 0;
    width: 100%;
    background-color: palevioletred;
    flex-direction: column;
    align-items: center;
    padding: 20px 0;
    gap: 15px;
    display: none;
  }
  .second h1 {
  font-size: 1.9rem;
  text-align: center;
  line-height: 1.4;
}

  
  .nav-links.active {
    display: flex;
  }
  
  .menu-icon {
    display: flex;
  }

  /* Hero Section */
  .first img {
    max-width: 80%;
    height: auto;
  }
  
  .second {
    width: 90%;
    margin: 20px auto !important;
    height: auto;
  }

  /* About Section */
  #aboutme {
    height: auto;
    padding-bottom: 40px;
  }
  
  #little {
    font-size: 2rem;
    padding-top: 80px;
    padding-bottom: 20px;
  }
  
  .about {
    width: 90%;
    height: auto;
    padding-bottom: 20px;
  }

  /* Services Section */
  #services {
    position: static !important;
    transform: none !important;
    flex-direction: column;
    align-items: center;
    gap: 30px;
    padding: 30px 0;
    margin-top: 30px;
  }
  
  .one, .two, .three {
    width: 90% !important;
    max-width: 350px;
    margin: 0 auto;
  }

  /* Contact Section */
 
   #the-end {
    margin-top: 50px !important;
    height: auto;
    padding: 40px 20px;  /* Add horizontal padding */
    box-sizing: border-box;  /* Ensures padding doesn’t stretch it too far */
}

#below-msgone {
    font-size: 2.5rem;
    margin-bottom: 15px;
}

#below-msgtwo {
    font-size: 1.2rem;
    padding: 0 15px;
    max-width: 300px;
    margin: 0 auto 25px auto;
    text-align: center;
    line-height: 1.6;
}

#hllo-btn {
    font-size: 1.5rem;
    height: 50px;
    padding: 12px 25px;
}


  /* Form */
  #form-container {
    width: 90%;
    padding: 20px;
  }

  /* Footer */
  .simple {
    height: auto;
    padding-bottom: 20px;
  }
  
  #parent-ico {
    flex-wrap: wrap;
    padding: 0 20px;
  }
  
  .ico {
    margin-top: 20px;
  }
}

/* Mobile Menu Animation */
.menu-icon .bar {
    width: 100%;
    height: 3px;
    background-color: black;
    transition: all 0.3s ease;
}

.menu-icon.active .bar1 {
    transform: translateY(11px) rotate(45deg);
}

.menu-icon.active .bar2 {
    opacity: 0;
}

.menu-icon.active .bar3 {
    transform: translateY(-11px) rotate(-45deg);
}
.first {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
}
















/* Media Query for screens above 768px */
@media screen and (min-width: 768px) {

    nav {
        padding: 20px 50px;
    }

    .second {
        width: 70%;
        margin: 40px auto;
        font-size: 1.8rem;
    }

    .first img {
        max-width: 400px;
        width: 100%;
        height: auto;
    }

    #aboutme {
        padding: 60px 80px;
        height: auto;
        padding-bottom: 150px;
    }

    #little {
    text-align: center;
    padding-top: 10px; /* Reduced from 120px */
    font-size: 3rem;
    padding-bottom: 70px; /* Optional: tighten spacing */
    margin-top: -20px;
}
.simple{
    height:  460px;
}

.about {
    margin-top: -60px; /* Pull paragraph upward */
}


    #services {
        position: static;
        transform: none;
        flex-direction: row;
        align-items: stretch;
        flex-wrap: wrap;
        gap: 30px;
        margin: 80px auto;
        padding: 0 40px;
        width: 100%;
    }

    /* .one, .two, .three {
        flex: 1 1 30%;
        max-width: 31%;
        margin: 20px auto;
    } */


    .one, .two, .three {
    flex: 1 1 40%;
    max-width: 42%;
    margin: 20px auto;
}


    /* #the-end {
        margin-top: 150px;
        padding: 50px 20px;
    } */
#the-end {
    height: auto; /* Let content decide the height */
    padding: 40px 20px;
    margin-top: 120px; /* Reduced space from previous section */
    text-align: center;
}


    /* #below-msgone {
        font-size: 4.5rem;
    }

    #below-msgtwo {
        font-size: 2rem;
    } */


    #below-msgone {
    font-size: 3.5rem;
    margin-bottom: 20px;
}

#below-msgtwo {
    font-size: 1.8rem;
    margin-bottom: 30px;
}

#hllo-btn {
    margin-top: 10px;
}


    #form-container {
        width: 70%;
    }

    .simple {
        padding: 40px 0;
    }

    #page-scroll {
        padding-top: 40px;
    }

    .ico {
        margin-top: 0;
    }
.one, .two, .three {
    flex: 1 1 25%;
    max-width: 26%;
    margin: 20px auto;
}

}

@media screen and (min-width: 760px) and (max-width: 1000px) {
  #services {
    flex-direction: column;
    align-items: center;
    gap: 30px;
  }

  .one, .two, .three {
    width: 80%;
    max-width: 600px;
    margin: 20px 0;
  }
}


