@media (min-width: 993px) {
  .main-link.has-submenu::after {
    display: none !important; /* remove underline */
  }
}

/* --------------------------------------- */

/* MOBILE/TABLET SUBMENU COLLAPSE LOGIC */

@media (max-width: 1400px) {
  #home .grid.grid-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    align-items: stretch !important;
  }
  .hero-text-heading h1 {
    font-size: 6.4rem;
    line-height: 7.4rem;
    font-weight: 700;
    color: #fff;
  }

  .hero-text-sub-heading h2 {
    font-size: 2rem;
    line-height: 3.4rem;
    font-weight: 700;
    color: #fff;
  }

  .hero-text-sub-heading {
    justify-items: end;
  }

  .hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  #why-purplle-hut .grid.grid-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    align-items: stretch !important;
  }
  .p-t-b {
    padding: 4rem 0 4rem 0;
  }
  .p-l-r {
    padding: 0 0 0 0rem;
  }

  .featured-icon-box.style3 {
    padding: 10px;
    background-color: #f2f2f2;
    transition: all 0.4s;
  }

  .featured-icon-box.style4 .featured-content {
    padding: 10px;
    background-color: #f2f2f2;
    width: 100%;
    transition: all 0.6s ease;
  }

  #industries .grid.grid-3 {
    display: grid;
    /* grid-template-columns: repeat(2, 1fr); */
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    align-items: stretch !important;
  }
  .p-t-b {
    padding: 4rem 0 4rem 0;
  }

  #services .grid.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    align-items: stretch !important;
  }

  .p-b {
    padding: 0 0 4rem 0;
  }

  .service-card {
    position: relative;
    overflow: hidden;
    background: #f2f2f2;
    padding: 10px;
    border-radius: 10px;
    text-align: center;
  }

  .service-card__icon {
    height: 85px;
    width: 85px;
    margin: 15px auto;
    display: flex;
    align-items: center;
    justify-content: center;
    /* margin-bottom: 35px; */
    background: #fff;
    border-radius: 100%;
  }

  #vision-mission .grid.grid-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 4rem;
    align-items: stretch !important;
  }

  #core-values .grid.grid-5 {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 2rem;
    align-items: stretch !important;
  }

  #lets-work-together .grid.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    align-items: stretch !important;
  }

  #footer .footer-wrapper {
    display: grid;
    /* grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); */
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: auto auto auto;
    gap: 2rem;
    width: 100%;
    max-width: 130rem;
    margin: 0 auto;
    color: #fff;
    padding: 2rem 4rem;

    grid-template-areas:
      "a b c d"
      "e . f s"
      "g h i l";
  }

  .heading h2 {
    font-size: 3.4rem;
    line-height: 4rem;
    color: #081120;
  }

  .title-style .title {
    font-size: 3.4rem;
    line-height: 4rem;
    color: #081120;
  }

  .text-align-center br {
    display: none;
  }
}

@media (max-width: 1200px) {
  #home .grid.grid-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    align-items: stretch !important;
  }
  .hero-text-heading h1 {
    font-size: 6.4rem;
    line-height: 7.4rem;
    font-weight: 700;
    color: #fff;
  }

  .hero-text-sub-heading h2 {
    font-size: 2rem;
    line-height: 3.4rem;
    font-weight: 700;
    color: #fff;
  }

  .hero-text-sub-heading {
    justify-items: end;
  }

  .hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  #why-purplle-hut .grid.grid-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    align-items: stretch !important;
  }
  .p-t-b {
    padding: 4rem 0 4rem 0;
  }
  .p-l-r {
    padding: 0 0 0 0rem;
  }

  .featured-icon-box.style3 {
    padding: 10px;
    background-color: #f2f2f2;
    transition: all 0.4s;
  }

  .featured-icon-box.style4 .featured-content {
    padding: 10px;
    background-color: #f2f2f2;
    width: 100%;
    transition: all 0.6s ease;
  }

  #industries .grid.grid-3 {
    display: grid;
    /* grid-template-columns: repeat(2, 1fr); */
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    align-items: stretch !important;
  }
  .p-t-b {
    padding: 4rem 0 4rem 0;
  }

  #services .grid.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    align-items: stretch !important;
  }

  .p-b {
    padding: 0 0 4rem 0;
  }

  .service-card {
    position: relative;
    overflow: hidden;
    background: #f2f2f2;
    padding: 10px;
    border-radius: 10px;
    text-align: center;
  }

  .service-card__icon {
    height: 85px;
    width: 85px;
    margin: 15px auto;
    display: flex;
    align-items: center;
    justify-content: center;
    /* margin-bottom: 35px; */
    background: #fff;
    border-radius: 100%;
  }

  #vision-mission .grid.grid-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 4rem;
    align-items: stretch !important;
  }

  #core-values .grid.grid-5 {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 2rem;
    align-items: stretch !important;
  }

  #lets-work-together .grid.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    align-items: stretch !important;
  }

  #footer .footer-wrapper {
    display: grid;
    /* grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); */
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: auto auto auto;
    gap: 2rem;
    width: 100%;
    max-width: 130rem;
    margin: 0 auto;
    color: #fff;
    padding: 2rem 4rem;

    grid-template-areas:
      "a b c d"
      "e . f s"
      "g h i l";
  }

  .heading h2 {
    font-size: 3.4rem;
    line-height: 4rem;
    color: #081120;
  }

  .title-style .title {
    font-size: 3.4rem;
    line-height: 4rem;
    color: #081120;
  }

  .text-align-center br {
    display: none;
  }
}

@media (max-width: 992px) {
  .submenu {
    position: static !important;
    background: #6a1b9a !important;
    box-shadow: none !important;
    overflow: hidden; /* important */
    max-height: 0; /* collapsed */
    opacity: 0; /* hidden */
    visibility: hidden; /* not visible */
    transition: max-height 0.35s ease, opacity 0.25s ease;
    margin: 0; /* remove gaps */
    padding: 0; /* when closed */
    border-radius: 8px;
  }

  /* WHEN SUBMENU IS OPEN */
  .submenu.open {
    max-height: 500px; /* enough space for list */
    opacity: 1;
    visibility: visible;
    padding: 0.8rem 1rem; /* restored padding */
    margin-top: 0.6rem; /* restored margin */
  }

  .submenu li {
    margin: 0;
    padding: 0.4rem 0;
  }

  .submenu li:not(:last-child) {
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
  }

  .submenu a {
    color: #ffffff !important;
    font-size: 1.5rem;
    display: block;
    padding: 0.3rem 0.2rem;
  }
}

@media (max-width: 992px) {
  #home .grid.grid-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    align-items: stretch !important;
  }
  .hero-text-heading h1 {
    font-size: 6.4rem;
    line-height: 7.4rem;
    font-weight: 700;
    color: #fff;
  }

  .hero-text-sub-heading h2 {
    font-size: 2rem;
    line-height: 3.4rem;
    font-weight: 700;
    color: #fff;
  }

  .hero-text-sub-heading {
    justify-items: end;
  }

  .hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  #why-purplle-hut .grid.grid-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    align-items: stretch !important;
  }
  .p-t-b {
    padding: 4rem 0 4rem 0;
  }
  .p-l-r {
    padding: 0 0 0 0rem;
  }

  .featured-icon-box.style3 {
    padding: 10px;
    background-color: #f2f2f2;
    transition: all 0.4s;
  }

  .featured-icon-box.style4 .featured-content {
    padding: 10px;
    background-color: #f2f2f2;
    width: 100%;
    transition: all 0.6s ease;
  }

  #industries .grid.grid-3 {
    display: grid;
    /* grid-template-columns: repeat(2, 1fr); */
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    align-items: stretch !important;
  }
  .p-t-b {
    padding: 4rem 0 4rem 0;
  }

  #services .grid.grid-3 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    align-items: stretch !important;
  }

  .p-b {
    padding: 0 0 4rem 0;
  }

  .service-card {
    position: relative;
    overflow: hidden;
    background: #f2f2f2;
    padding: 10px;
    border-radius: 10px;
    text-align: center;
  }

  .service-card__icon {
    height: 85px;
    width: 85px;
    margin: 15px auto;
    display: flex;
    align-items: center;
    justify-content: center;
    /* margin-bottom: 35px; */
    background: #fff;
    border-radius: 100%;
  }

  #vision-mission .grid.grid-2 {
    display: grid;
    grid-template-columns: 1fr;
    gap: 4rem;
    align-items: stretch !important;
  }

  #core-values .grid.grid-5 {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 2rem;
    align-items: stretch !important;
  }

  #lets-work-together .grid.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    align-items: stretch !important;
  }

  #footer .footer-wrapper {
    display: grid;
    /* grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); */
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: auto auto auto;
    gap: 2rem;
    width: 100%;
    max-width: 130rem;
    margin: 0 auto;
    color: #fff;
    padding: 2rem 4rem;

    grid-template-areas:
      "a b c d"
      "e . f s"
      "g h i l";
  }

  .heading h2 {
    font-size: 3.4rem;
    line-height: 4rem;
    color: #081120;
  }

  .title-style .title {
    font-size: 3.4rem;
    line-height: 4rem;
    color: #081120;
  }

  .text-align-center br {
    display: none;
  }
}

@media (max-width: 992px) {
  .navigation {
    padding: 1rem 2rem;
  }

  .nav {
    background: #6a1b9a;
    /* background: #fff; */
    position: fixed;
    top: 120px; /* leaves space for logo */
    left: -80%;
    width: 80%;
    height: calc(100vh - 80px);
    padding: 2rem;
    display: flex;
    flex-direction: column;
    transition: left 0.35s ease;
    z-index: 99999;
    overflow-y: auto;
  }

  .nav a {
    color: #fff !important;
  }

  .nav.open {
    left: 0;
  }

  .menu {
    flex-direction: column;
    gap: 1rem;
  }

  /* .submenu {
    position: static;
    opacity: 1 !important;
    pointer-events: auto;
    max-height: 0;
    overflow: hidden;
    box-shadow: none;
    transition: max-height 0.3s ease;
    background: #6a1b9a;
  }

  .submenu.open {
    max-height: 500px;
  } */

  .hamburger {
    display: flex;
  }

  /* HAMBURGER X ANIMATION */
  .hamburger.active .bar:nth-child(1) {
    transform: rotate(45deg) translateY(8px);
  }
  .hamburger.active .bar:nth-child(2) {
    opacity: 0;
  }
  .hamburger.active .bar:nth-child(3) {
    transform: rotate(-45deg) translateY(-8px);
  }

  /* BACKDROP */
  .mobile-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    opacity: 0;
    visibility: hidden;
    transition: 0.3s ease;
    z-index: 9000;
  }
  .mobile-overlay.show {
    opacity: 1;
    visibility: visible;
  }

  .nav {
    padding-top: 2rem !important; /* spacing from top */
  }

  .menu > li > a {
    padding: 0.8rem 0;
    font-size: 1.5rem;
    display: block;
  }

  .submenu a {
    padding: 0.7rem 1.5rem !important;
  }

  .menu > li {
    border-bottom: 1px solid rgba(255, 255, 255, 0.25); /* soft white underline */
    padding-bottom: 0.6rem;
    margin-bottom: 0.6rem;
  }

  .menu > li:last-child {
    border-bottom: none;
  }
}

@media (max-width: 768px) {
  #home .grid.grid-2 {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    align-items: stretch !important;
  }
  .hero-text-heading h1 {
    font-size: 5.4rem;
    line-height: 6rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 4rem;
  }

  .hero-text-sub-heading h2 {
    font-size: 2rem;
    line-height: 2.4rem;
    font-weight: 700;
    color: #fff;
  }

  .hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  #why-purplle-hut .grid.grid-2 {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    align-items: stretch !important;
  }
  .p-t-b {
    padding: 4rem 0 4rem 0;
  }
  .p-l-r {
    padding: 0 0 0 0rem;
  }

  .featured-icon-box.style3 {
    padding: 10px;
    background-color: #f2f2f2;
    transition: all 0.4s;
  }

  .featured-icon-box.style4 .featured-content {
    padding: 10px;
    background-color: #f2f2f2;
    width: 100%;
    transition: all 0.6s ease;
  }

  #industries .grid.grid-3 {
    display: grid;
    /* grid-template-columns: repeat(2, 1fr); */
    grid-template-columns: 1fr;
    gap: 2rem;
    align-items: stretch !important;
  }
  .p-t-b {
    padding: 4rem 0 4rem 0;
  }

  #services .grid.grid-3 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    align-items: stretch !important;
  }

  .p-b {
    padding: 0 0 4rem 0;
  }

  .service-card {
    position: relative;
    overflow: hidden;
    background: #f2f2f2;
    padding: 10px;
    border-radius: 10px;
    text-align: center;
  }

  .service-card__icon {
    height: 85px;
    width: 85px;
    margin: 15px auto;
    display: flex;
    align-items: center;
    justify-content: center;
    /* margin-bottom: 35px; */
    background: #fff;
    border-radius: 100%;
  }

  #vision-mission .grid.grid-2 {
    display: grid;
    grid-template-columns: 1fr;
    gap: 4rem;
    align-items: stretch !important;
  }

  #core-values .grid.grid-5 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    align-items: stretch !important;
  }

  #core-values .grid.grid-5 > *:nth-child(5) {
    grid-column: span 2 !important;
  }

  #lets-work-together .grid.grid-3 {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    align-items: stretch !important;
  }

  #footer .footer-wrapper {
    display: grid;
    /* grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); */
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: auto auto auto;
    gap: 2rem;
    width: 100%;
    max-width: 130rem;
    margin: 0 auto;
    color: #fff;
    padding: 2rem 4rem;

    grid-template-areas:
      "a b"
      "c d"
      "e ."
      "g h"
      "f s"
      "i l";
  }

  .heading h2 {
    font-size: 3.4rem;
    line-height: 4rem;
    color: #081120;
  }

  .title-style .title {
    font-size: 3.4rem;
    line-height: 4rem;
    color: #081120;
  }

  .text-align-center br {
    display: none;
  }
}

@media (max-width: 576px) {
  #home .grid.grid-2 {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    align-items: stretch !important;
  }
  .hero-text-heading h1 {
    font-size: 6.4rem;
    line-height: 6rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 4rem;
  }

  .hero-text-sub-heading h2 {
    font-size: 2.4rem;
    line-height: 3rem;
    font-weight: 700;
    color: #fff;
  }

  .hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  #why-purplle-hut .grid.grid-2 {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    align-items: stretch !important;
  }
  .p-t-b {
    padding: 4rem 0 4rem 0;
  }
  .p-l-r {
    padding: 0 0 0 0rem;
  }

  .featured-icon-box.style3 {
    padding: 10px;
    background-color: #f2f2f2;
    transition: all 0.4s;
  }

  .featured-icon-box.style4 .featured-content {
    padding: 10px;
    background-color: #f2f2f2;
    width: 100%;
    transition: all 0.6s ease;
  }

  #industries .grid.grid-3 {
    display: grid;
    /* grid-template-columns: repeat(2, 1fr); */
    grid-template-columns: 1fr;
    gap: 2rem;
    align-items: stretch !important;
  }
  .p-t-b {
    padding: 4rem 0 4rem 0;
  }

  #services .grid.grid-3 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    align-items: stretch !important;
  }

  .p-b {
    padding: 0 0 4rem 0;
  }

  .service-card {
    position: relative;
    overflow: hidden;
    background: #f2f2f2;
    padding: 10px;
    border-radius: 10px;
    text-align: center;
  }

  .service-card__icon {
    height: 85px;
    width: 85px;
    margin: 15px auto;
    display: flex;
    align-items: center;
    justify-content: center;
    /* margin-bottom: 35px; */
    background: #fff;
    border-radius: 100%;
  }

  #vision-mission .grid.grid-2 {
    display: grid;
    grid-template-columns: 1fr;
    gap: 4rem;
    align-items: stretch !important;
  }

  #core-values .grid.grid-5 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    align-items: stretch !important;
  }

  #core-values .grid.grid-5 > *:nth-child(5) {
    grid-column: span 2 !important;
  }

  #lets-work-together .grid.grid-3 {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    align-items: stretch !important;
  }

  #footer .footer-wrapper {
    display: grid;
    /* grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); */
    grid-template-columns: 1fr;
    grid-template-rows: auto auto auto;
    gap: 2rem;
    width: 100%;
    max-width: 130rem;
    margin: 0 auto;
    color: #fff;
    padding: 2rem 4rem;

    grid-template-areas:
      "a"
      "b"
      "c"
      "d"
      "e"
      "."
      "g"
      "h"
      "s"
      "l"
      "f"
      "i";
  }

  .heading h2 {
    font-size: 3.4rem;
    line-height: 4rem;
    color: #081120;
  }

  .title-style .title {
    font-size: 3.4rem;
    line-height: 4rem;
    color: #081120;
  }

  .text-align-center br {
    display: none;
  }

  .contact-content h3 {
    position: relative;
    font-size: 2rem;
    font-weight: 600;
    /* margin-bottom: 1rem; */
    color: #ffffff;
    text-transform: capitalize;
    padding: 1rem 0;
  }

  /* Text block */
  .contact-text p {
    margin-bottom: 1rem;
    font-size: 1.5rem; /* 18px */
    line-height: 1.6;
    color: #ffffff;
  }
}
