/* Extra small devices (portrait phones, less than 576px) */
@media (max-width: 575.98px) {
  /* Adjust padding, margins, font-size, etc. */
  /* header css */
  html,
  body {
    overflow-x: hidden;
    max-width: 100%;
  }
  .header-container .info-bar > ul {
    flex-direction: column !important;
    gap: 0.5rem !important;
  }
  .header-container .info-bar > ul li {
    font-size: 0.8rem !important;
  }

  .header-container .icon-bar > ul li a {
    font-size: 0.85rem !important;
  }
  .menu-list .navbar-toggler {
    position: relative;
    left: 3rem;
  }
  .header-container .nav-search {
    display: none !important;
  }
  .header-container .buttons {
    display: none !important;
  }
  .header-container .menu-list button {
    border-color: #c7a15b;
  }
  .header-manu .menu-list .navbar-nav li > ul {
    background-color: transparent !important;
  }

  .custom-mobile-menu {
    position: absolute;
    top: 85px; /* distance below navbar button */
    right: 10px;
    width: 220px;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0px 8px 25px rgba(0, 0, 0, 0.15);
    padding: 10px 0;
    z-index: 999;
    display: none; /* hidden by default */
  }

  /* Make links stack vertically */
  .custom-mobile-menu .navbar-nav {
    flex-direction: column;
    align-items: flex-start;
  }

  .custom-mobile-menu .nav-item {
    width: 100%;
    opacity: 0;
    transform: translateY(-15px);
  }

  .custom-mobile-menu .nav-link {
    display: block;
    width: 100%;
    padding: 6px 20px;
    color: #222;
    font-weight: 500;
  }

  /* When active (Bootstrap adds .show class automatically) */
  .custom-mobile-menu.show {
    display: block;
    animation: dropdownFade 0.4s ease forwards;
  }

  /* Add a cascade animation for items */
  .custom-mobile-menu.show .nav-item {
    animation: cascadeDrop 0.5s forwards;
  }

  .custom-mobile-menu.show .nav-item:nth-child(1) {
    animation-delay: 0.05s;
  }
  .custom-mobile-menu.show .nav-item:nth-child(2) {
    animation-delay: 0.1s;
  }
  .custom-mobile-menu.show .nav-item:nth-child(3) {
    animation-delay: 0.15s;
  }
  .custom-mobile-menu.show .nav-item:nth-child(4) {
    animation-delay: 0.2s;
  }
  .custom-mobile-menu.show .nav-item:nth-child(5) {
    animation-delay: 0.25s;
  }
  .custom-mobile-menu.show .nav-item:nth-child(6) {
    animation-delay: 0.3s;
  }

  /* Animations */
  @keyframes dropdownFade {
    from {
      opacity: 0;
      transform: translateY(-10px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }

  @keyframes cascadeDrop {
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }

  /* Make sublist items visible */
  .custom-mobile-menu .nav-item .dropdown-menu {
    background: transparent !important;
    color: #222;
    border: none;
    box-shadow: none;
  }

  .custom-mobile-menu .nav-item .dropdown-menu .dropdown-item {
    color: #222;
    padding: 10px 20px;
    padding-left: 30px;
  }

  /* header css */

  .slider-container {
    height: 50vh !important;
  }

  .bg-slide {
    height: calc(65vh - 100px) !important;
    background-attachment: scroll !important;
  }

  .carousel-caption {
    bottom: 45% !important;
    left: 5% !important;
    max-width: 300px !important;
  }

  .carousel-caption h5 {
    font-size: 1.2rem !important;
    text-shadow: 2px -2px 5px #111;
  }

  .carousel-caption p {
    font-size: 0.8rem !important;
    text-shadow: 2px -2px 3px #111;
    width: 80%;
  }

  .carousel-caption .btn {
    padding: 8px 16px !important;
    font-size: 0.9rem !important;
    position: relative;
    left: 2rem !important;
    top: 9rem !important;
  }

  .video-btns {
    position: relative;
    margin-right: 50px;
    float: right;
    top: 40px !important;
    right: 100px;
    z-index: 10;
  }

  .video-btns a {
    width: 45px !important;
    height: 45px !important;
    line-height: 45px !important;
    border-radius: 45px !important;
  }

  .video-btns a:after {
    content: "";
    border-top: 7px solid transparent !important;
    border-bottom: 7px solid transparent !important;
  }

  .video-btns a:before {
    content: "";
    width: calc(100% + 16px) !important;
    height: calc(100% + 16px) !important;
  }

  .about-us-section .left-side-content {
    padding: 0 !important;
    padding-bottom: 50px !important;
  }
  .about-us-section .left-side-content .headline {
    margin-bottom: 30px;
  }
  .about-us-section .right-side-content .about-image {
    height: auto;
    position: relative;
    left: 0% !important;
  }
  .about-us-section .row {
    padding-bottom: 50px !important;
  }
  .about-us-section .career-statistics {
    flex-wrap: wrap;
  }
  .about-us-section .career-statistics > span {
    padding-left: 0 !important;
  }
  .about-us-section .career-statistics > span h3 {
    font-size: 1.6rem !important;
    font-weight: 400;
  }
  .about-us-section .row .para-mob {
    font-size: 0.8rem !important;
  }
  .about-us-section .contact-section .form-label {
    font-size: 14px !important;
    font-weight: 600;
  }
  .about-us-section .contact-section input,
  .about-us-section .contact-section textarea {
    font-size: 10px !important;
  }
  .about-us-section .card-body {
    padding: 20px !important;
  }
  .about-us-section .card-body .btn {
    font-size: 12px;
  }
  .about-us-section .card-body i {
    font-size: 12px !important;
  }
  .about-us-section .card {
    border-radius: 20px !important;
  }
  .about-us-section .contact-section {
    position: relative;
    top: -23rem !important;
  }
  .about-us-section .contact-form-img {
    position: relative;
    top: 25rem !important;
  }
  .about-us-section .contact-form-img > img {
    position: relative;
    top: 8rem !important;
    transform: scale(1.7) !important;
  }
  .about-us-section .contact-form-img::before {
    content: "";
    position: absolute;
    top: 45px !important;
    left: 1rem !important;
  }
  .whatsapp-btn {
    position: absolute;
    right: 12% !important;
    bottom: -5rem !important;
    padding: 10px 20px !important;
    font-size: 20px !important;
  }
  .heading {
    font-size: 15px !important;
    text-align: center !important;
  }

  .headline {
    font-size: 1.8rem !important;
    text-align: center !important;
  }

  .desc {
    font-size: 0.9rem !important;
    letter-spacing: 1.1px !important;
  }
  .legal-practice .container {
    padding-top: 50px !important;
  }
  .legal-practice .container .row {
    padding-top: 30px !important;
  }
  .legal-practice .theme-icon {
    width: 45px !important;
    height: 45px !important;
  }
  .legal-practice .view-all-btn {
    position: relative;
    right: 7rem !important;
    margin-top: 16px !important;
  }
  .case-geometrics .headline {
    text-align: center !important;
    width: 100%;
  }
  .testimonial-section .row-wrapper {
    -webkit-mask-image: linear-gradient(
      to right,
      transparent,
      white 5%,
      white 95%,
      transparent
    );
    mask-image: linear-gradient(
      to right,
      transparent,
      white 5%,
      white 95%,
      transparent
    );
  }
  .testimonial-section h2 {
    width: 100% !important;
  }
  .review-card {
    height: 320px !important;
    padding: 12px;
    border-radius: 14px;
  }

  .review-card .review-text {
    font-size: 0.9rem !important;
    margin-top: 8px;
  }

  .review-card .quote-icon {
    font-size: 20px !important;
  }

  .review-card .reviewer-info .reviewer-img {
    width: 40px !important;
    height: 40px !important;
    margin-right: 10px !important;
  }

  .review-card .reviewer-info .reviewer-position {
    font-size: 0.8rem !important;
  }

  /* Row spacing */
  .row-wrapper .row:first-child,
  .row-wrapper .row:last-child {
    animation-duration: 15s !important;
  }
  .team-section h6 {
    font-size: 0.75rem !important;
    margin-bottom: 15px !important;
  }

  .team-section p {
    font-size: 0.85rem !important;
  }

  .team-section .card {
    border-radius: 25px !important;
  }

  /* Custom nav buttons */
  .team-section .custom-nav .prev {
    top: -280px !important;
    right: 20px !important;
    font-size: 18px !important;
    background-color: #000;
  }

  .team-section .custom-nav .next {
    top: -280px !important;
    left: 20px !important;
    font-size: 18px !important;
    background-color: #000;
  }

  /* Social handles */
  .team-section .social-handle {
    top: -125px !important;
    right: 15px !important;
  }

  .team-section .social-handle > a {
    font-size: 0.9rem;
    padding: 1px;
  }

  .team-section img {
    transform: scale(0.8);
  }
  .team-section {
    padding: 0px 30px;
  }
  .brand-row img {
    transform: scale(0.6);
  }
  .cta-section {
    height: 55vh !important;
    background-attachment: scroll !important;
  }

  .cta-overlay {
    padding: 30px !important;
    border-radius: 10px !important;
  }

  .cta-overlay h2 {
    font-size: 1rem !important;
  }

  .cta-overlay p {
    font-size: 0.8rem !important;
  }

  .cta-section .cta-btn {
    padding: 7px 14px !important;
    font-size: 0.7rem !important;
    left: -25% !important;
  }
  .accordion-area .contact-info {
    top: 40px !important;
    left: 0px !important;
    gap: 15px !important;
    padding: 20px !important;
    border-radius: 50rem !important;
    align-items: center !important;
  }

  .accordion-button {
    font-size: 0.95rem !important;
    padding: 10px 16px !important;
  }

  .accordion-area .contact-info::before {
    background-size: cover !important;
    opacity: 0.45 !important;
  }
  .accordion-area .contact-info h4 {
    font-size: 20px;
    margin-bottom: 15px;
  }
  .accordion-area .contact-info p {
    font-size: 12px;
  }

  .about-us-section .row {
    padding-top: 0 !important;
    padding-top: 0 !important;
  }
  .accordion-area {
    padding-bottom: 0 !important;
  }
  .brand-area .headline {
    margin-bottom: 30px !important;
  }
  .brand-area .brand-row {
    margin-bottom: 30px !important;
  }
  .header-top {
    display: none !important;
  }
  .address-mobile {
    margin-top: 50px;
    font-size: 0.8rem !important;
    color: #c7a15b;
  }
  .icon-mob {
    padding-right: 35px;
    margin-top: 10px !important;
    justify-content: center !important;
  }
  .icon-mob i {
    color: #c7a15b !important;
  }
}

/* Medium devices (tablets, 768px and up) */
@media (min-width: 768px) and (max-width: 1024px) {
  /* Adjust column widths, image scaling */

  /* header css */
  .header-container .info-bar > ul li {
    font-size: 0.5rem !important;
  }

  .header-container .icon-bar > ul li a {
    font-size: 0.55rem !important;
  }
  .menu-list .navbar-toggler {
    position: relative;
    left: 18rem;
  }
  .nav-search {
    position: relative;
    left: 5rem;
  }
  .buttons {
    position: relative;
    left: 15rem;
  }
  .custom-mobile-menu {
    position: absolute;
    top: 85px; /* distance below navbar button */
    right: 10px;
    width: 220px;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0px 8px 25px rgba(0, 0, 0, 0.15);
    padding: 10px 0;
    z-index: 999;
    display: none; /* hidden by default */
  }

  /* Make links stack vertically */
  .custom-mobile-menu .navbar-nav {
    flex-direction: column;
    align-items: flex-start;
  }

  .custom-mobile-menu .nav-item {
    width: 100%;
    opacity: 0;
    transform: translateY(-15px);
  }

  .custom-mobile-menu .nav-link {
    display: block;
    width: 100%;
    padding: 6px 20px;
    color: #222;
    font-weight: 500;
  }

  /* When active (Bootstrap adds .show class automatically) */
  .custom-mobile-menu.show {
    display: block;
    animation: dropdownFade 0.4s ease forwards;
  }

  /* Add a cascade animation for items */
  .custom-mobile-menu.show .nav-item {
    animation: cascadeDrop 0.5s forwards;
  }

  .custom-mobile-menu.show .nav-item:nth-child(1) {
    animation-delay: 0.05s;
  }
  .custom-mobile-menu.show .nav-item:nth-child(2) {
    animation-delay: 0.1s;
  }
  .custom-mobile-menu.show .nav-item:nth-child(3) {
    animation-delay: 0.15s;
  }
  .custom-mobile-menu.show .nav-item:nth-child(4) {
    animation-delay: 0.2s;
  }
  .custom-mobile-menu.show .nav-item:nth-child(5) {
    animation-delay: 0.25s;
  }
  .custom-mobile-menu.show .nav-item:nth-child(6) {
    animation-delay: 0.3s;
  }

  /* Animations */
  @keyframes dropdownFade {
    from {
      opacity: 0;
      transform: translateY(-10px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }

  @keyframes cascadeDrop {
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }

  /* Make sublist items visible */
  .custom-mobile-menu .nav-item .dropdown-menu {
    background: #fff;
    color: #222;
    border: none;
    box-shadow: 0px 8px 25px rgba(0, 0, 0, 0.15);
  }

  .custom-mobile-menu .nav-item .dropdown-menu .dropdown-item {
    color: #222;
    padding: 10px 20px;
    padding-left: 30px;
  }

  /* header css */

  .slider-container {
    height: 70vh !important;
  }

  .bg-slide {
    height: calc(80vh - 100px) !important;
    background-attachment: scroll !important;
  }

  .carousel-caption {
    bottom: 45% !important;
    left: 5% !important;
    max-width: 300px !important;
  }

  .carousel-caption h5 {
    font-size: 1.8rem !important;
  }

  .carousel-caption p {
    font-size: 1.2rem !important;
  }

  .carousel-caption .btn {
    padding: 8px 16px !important;
    font-size: 0.7rem !important;
  }

  .video-btns {
    position: relative;
    margin-right: 50px;
    float: right;
    top: 80px;
    right: 100px;
    z-index: 10;
  }

  .video-btns a {
    width: 45px !important;
    height: 45px !important;
    line-height: 45px !important;
    border-radius: 45px !important;
  }

  .video-btns a:after {
    content: "";
    border-top: 7px solid transparent !important;
    border-bottom: 7px solid transparent !important;
  }

  .video-btns a:before {
    content: "";
    width: calc(100% + 16px) !important;
    height: calc(100% + 16px) !important;
  }

  .about-us-section .contact-section .form-label {
    font-size: 15px !important;
  }
  .about-us-section .contact-section input,
  .about-us-section .contact-section textarea {
    font-size: 12px !important;
  }
  .about-us-section .card-body {
    padding: 40px !important;
  }
  .about-us-section .card-body .btn {
    font-size: 12px;
  }
  .about-us-section .card-body i {
    font-size: 12px !important;
  }
  .about-us-section .card {
    border-radius: 40px !important;
  }
  .about-us-section .contact-form-img > img {
    position: relative;
    top: 8rem !important;
    transform: scale(1.7) !important;
  }
  .about-us-section .contact-form-img::before {
    content: "";
    position: absolute;
    top: 45px !important;
  }
  .whatsapp-btn {
    position: absolute;
    right: 2% !important;
    bottom: 10% !important;
    padding: 10px 20px !important;
    font-size: 15px !important;
  }
  .heading {
    font-size: 18px !important;
  }

  .headline {
    font-size: 3rem !important;
  }

  .desc {
    font-size: 0.9rem !important;
    letter-spacing: 1.1px !important;
  }
  .legal-practice .theme-icon {
    width: 45px !important;
    height: 45px !important;
  }
  .testimonial-section .row-wrapper {
    -webkit-mask-image: linear-gradient(
      to right,
      transparent,
      white 5%,
      white 95%,
      transparent
    );
    mask-image: linear-gradient(
      to right,
      transparent,
      white 5%,
      white 95%,
      transparent
    );
  }
  .testimonial-section h2 {
    width: 80% !important;
  }
  .review-card {
    height: 380px !important;
    padding: 12px;
    border-radius: 14px;
  }

  .review-card .review-text {
    font-size: 0.9rem !important;
    margin-top: 8px;
  }

  .review-card .quote-icon {
    font-size: 20px !important;
  }

  .review-card .reviewer-info .reviewer-img {
    width: 40px !important;
    height: 40px !important;
    margin-right: 10px !important;
  }

  .review-card .reviewer-info .reviewer-position {
    font-size: 0.8rem !important;
  }

  /* Row spacing */
  .row-wrapper .row:first-child,
  .row-wrapper .row:last-child {
    animation-duration: 18s !important;
  }
  .team-section h6 {
    font-size: 0.75rem !important;
    margin-bottom: 15px !important;
  }

  .team-section p {
    font-size: 0.85rem !important;
  }

  .team-section .card {
    border-radius: 25px !important;
  }

  /* Custom nav buttons */
  .team-section .custom-nav .prev {
    top: -280px !important;
    right: 20px !important;
    font-size: 18px !important;
    background-color: #000;
  }

  .team-section .custom-nav .next {
    top: -280px !important;
    left: 20px !important;
    font-size: 18px !important;
    background-color: #000;
  }

  /* Social handles */
  .team-section .social-handle {
    top: -125px !important;
    right: 15px !important;
  }

  .team-section .social-handle > a {
    font-size: 0.9rem;
    padding: 1px;
  }

  .team-section img {
    transform: scale(0.8);
  }
  .team-section {
    padding: 0px 30px;
  }
  .brand-row img {
    transform: scale(0.6);
  }
  .cta-section {
    height: 55vh !important;
    background-attachment: scroll !important;
  }

  .cta-overlay {
    padding: 30px !important;
    border-radius: 10px !important;
  }

  .cta-overlay h2 {
    font-size: 2rem !important;
  }

  .cta-overlay p {
    font-size: 1rem !important;
  }

  .cta-btn {
    padding: 10px 20px !important;
    font-size: 0.9rem !important;
  }
  .accordion-area .contact-info {
    top: 60px !important;
    left: 25px !important;
    gap: 15px !important;
    padding: 20px !important;
    border-top-left-radius: 35rem !important;
    border-bottom-left-radius: 35rem !important;
  }

  .accordion-button {
    font-size: 0.95rem !important;
    padding: 10px 16px !important;
  }

  .accordion-area .contact-info::before {
    background-size: cover !important;
    opacity: 0.25 !important;
  }
  .accordion-area .contact-info h4 {
    font-size: 15px;
  }
  .accordion-area .contact-info p {
    font-size: 12px;
  }

  .about-us-section .row {
    padding-top: 0 !important;
    padding-top: 0 !important;
  }
  .accordion-area {
    padding-bottom: 0 !important;
  }
  .brand-area .headline {
    margin-bottom: 30px !important;
  }
  .brand-area .brand-row {
    margin-bottom: 30px !important;
  }
  .about-us-section .career-statistics > span {
    padding-left: 17px !important;
  }
  .about-us-section .career-statistics > span h3 {
    font-size: 2rem !important;
  }

  .header-top {
    display: none !important;
  }
  .address-mobile {
    margin-top: 50px;
    font-size: 0.8rem !important;
    color: #c7a15b;
  }
  .icon-mob {
    padding-right: 35px;
    margin-top: 10px !important;
    justify-content: center !important;
  }
  .icon-mob i {
    color: #c7a15b !important;
  }
}

