/* Mobile */

.menu-toggle {
  display: none;
}

.overlay {
  display: none;
}

.close-btn{
  display: none;
}

@media (max-width: 768px) {
  
  .header {
    padding: 0 !important;
    display: flex;
    justify-content: center;
  }

  .navbar {
    width: 90% !important;
    margin: 20px auto !important;
    padding: 15px !important;
    border-radius: 25px !important;
    position: relative;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 200;
  }

  .logo img {
    height: 40px;
  }

  .menu-toggle {
    display: block;
    font-size: 26px;
    cursor: pointer;
    z-index: 300;
  }

  .overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    display: none;
    z-index: 150;
  }

  .overlay.active {
    display: block;
  }

  .page {
    position: fixed;
    top: 0;
    right: -100%;
    width: 75%;
    height: 100%;
    background: #f1f1f1;
    padding: 70px 25px 25px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    transition: 0.3s ease;
    z-index: 999;
  }

  .page.active {
    right: 0;
  }

  .close-btn {
    display: block;
    position: fixed;
    top: 20px;
    right: 20px;
    font-size: 28px;
    cursor: pointer;
    z-index: 1000;
    color: black;
  }
  
  .page a {
    position: relative;
    display: inline-block;
    font-size: 18px;
    text-decoration: none;
    color: black;
  }
  
  .page a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -4px;
    width: 0;
    height: 2px;
    background: black;
    transition: width 0.3s ease;
  }

  .page a:hover::after {
    width: 40%;
  }

  .page.active ~ .menu-toggle {
    display: none;
  }

  h1 {
    font-size: 26px;
    text-align: center;
    padding: 10px;
  }

  .p1 {
    font-size: 14px;
    text-align: center;
    padding: 0 15px;
  }

  .hero-buttons {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
  }

  .btn-main,
  .btn-outline {
    width: auto;
    min-width: 150px;
    font-size: 14px;
    padding: 10px 18px;
  }

  .process,
  .process2 {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
    padding: 0 20px;
  }

  .pro1,
  .pro2 {
    width: 100% !important;
    max-width: 320px;
    margin: 12px auto;
  }

  .cards {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 25px;
    padding: 0 20px;
  }

  .card {
    width: 100% !important;
    max-width: 320px;
    margin: 0 auto;
  }

  .service,
  .service2,
  .choose,
  .choose2,
  .snapshot {
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .service-card,
  .ch1,
  .ch2 {
    width: 90% !important;
    margin: 0 auto;
  }

  .footer {
    flex-direction: column;
    text-align: center;
    gap: 20px;
  }
}

/*Tablet*/

@media (min-width: 769px) and (max-width: 1024px) {
  
  .process,
  .process2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
    max-width: 850px;
    margin: 0 auto;
    padding: 0 20px;
    box-sizing: border-box;
  }

  .pro1,
  .pro2 {
    width: 100%;
  }


  .service,
  .service2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    max-width: 850px;
    margin: 0 auto;
    padding: 0 20px;
    box-sizing: border-box;
  }

  .service-card {
    width: 100%;
  }


  .cards {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    max-width: 850px;
    margin: 0 auto;
    padding: 0 20px;
    box-sizing: border-box;
  }

  .card {
    width: 100%;
  }

  .card:last-child {
    grid-column: 1 / -1;
    justify-self: center;
    max-width: 65%;
  }

  .contact-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0 20px;
  }

  .contact-details,
  .contact-form {
    width: 100%;
    max-width: 550px;
    margin: 15px auto;
  }

  .footer {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
    padding: 30px 20px;
    text-align: left;
  }

  .footer > div {
    width: 100%;
  }

  .footer .follow-us {
    grid-column: 1 / -1;
    text-align: center;
    margin-top: 15px;
  }
}