
@media (min-width: 1400px) {
    .container-lg-custom {
        padding-left: 30px;
        padding-right: 30px;
    }
}

@media (max-width: 1199.98px) {
    .header-nav {
        background: #ffffff !important;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
        padding: 0px;
    }
    
    .navbar-collapse.show,
    .navbar-collapse.collapsing {
        display: flex;
        flex-direction: column;
        align-items: stretch;
        background: #ffffff;
        padding: 20px 10px;
        border-radius: 12px;
        margin-top: 10px;
    }
    
    .navbar-nav {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        margin-left: 0;
        margin-right: 0;
        width: 100%;
    }
    
    .navbar-nav .nav-link {
        padding: 10px 0 !important;
        width: 100%;
    }
    
    .navbar-nav .nav-item:not(.dropdown) .nav-link::after {
        display: none; /* Hide hover underline line on mobile dropdown */
    }
    
    .navbar-nav .dropdown-menu {
        margin-top: 0;
        box-shadow: none;
        border: 1px solid rgba(0, 0, 0, 0.03);
        background-color: rgba(141, 20, 117, 0.02);
    }

    /* Contact Info Flex Overrides */
    .header-contact {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        border-top: 1px solid rgba(0,0,0,0.06);
        padding-top: 15px;
        margin-top: 10px;
        width: 100%;
    }
    
    .contact-phone {
        margin-right: 0;
        margin-bottom: 12px;
    }
    
    .contact-item {
        width: 100%;
    }
    
    /* Hide items initially on mobile collapse so they don't flash */
    .navbar-collapse .navbar-nav .nav-item,
    .navbar-collapse .header-contact .contact-item {
        opacity: 0;
    }
    
    /* Staggered entry animation for links when the mobile menu is open or opening */
    .navbar-collapse.collapsing .navbar-nav .nav-item,
    .navbar-collapse.show .navbar-nav .nav-item,
    .navbar-collapse.collapsing .header-contact .contact-item,
    .navbar-collapse.show .header-contact .contact-item {
        animation: slideInMobileLink 0.4s cubic-bezier(0.25, 1, 0.5, 1) forwards;
    }
    
    .navbar-collapse.collapsing .navbar-nav .nav-item:nth-child(1),
    .navbar-collapse.show .navbar-nav .nav-item:nth-child(1) { animation-delay: 0.08s; }
    .navbar-collapse.collapsing .navbar-nav .nav-item:nth-child(2),
    .navbar-collapse.show .navbar-nav .nav-item:nth-child(2) { animation-delay: 0.16s; }
    .navbar-collapse.collapsing .navbar-nav .nav-item:nth-child(3),
    .navbar-collapse.show .navbar-nav .nav-item:nth-child(3) { animation-delay: 0.24s; }
    .navbar-collapse.collapsing .navbar-nav .nav-item:nth-child(4),
    .navbar-collapse.show .navbar-nav .nav-item:nth-child(4) { animation-delay: 0.32s; }
    .navbar-collapse.collapsing .header-contact .contact-item:nth-child(1),
    .navbar-collapse.show .header-contact .contact-item:nth-child(1) { animation-delay: 0.40s; }
    .navbar-collapse.collapsing .header-contact .contact-item:nth-child(2),
    .navbar-collapse.show .header-contact .contact-item:nth-child(2) { animation-delay: 0.48s; }
    
    /* Custom Hamburger Icon Animation */
    .navbar-toggler {
        display: flex;
        flex-direction: column;
        justify-content: center;
        gap: 5px;
        width: 30px;
        height: 30px;
        border: none;
        background: transparent;
        padding: 0;
    }
    
    .navbar-toggler .toggler-icon {
        width: 24px;
        height: 2px;
        background-color: var(--text-dark);
        transition: transform 0.3s ease, opacity 0.3s ease;
        transform-origin: center;
    }
    
    .navbar-toggler:not(.collapsed) .top-bar {
        transform: translateY(7px) rotate(45deg);
    }
    
    .navbar-toggler:not(.collapsed) .middle-bar {
        opacity: 0;
    }
    
    .navbar-toggler:not(.collapsed) .bottom-bar {
        transform: translateY(-7px) rotate(-45deg);
    }
    
    /* Hero Adjustments for mobile reading against motorcycle image */
    .hero-section {
        padding-top: 120px;
        min-height: auto;
    }
    
    .hero-overlay {
        background: linear-gradient(to bottom, 
            rgba(255, 255, 255, 1) 0%, 
            rgba(255, 255, 255, 0.98) 60%,
            rgba(255, 255, 255, 0.8) 80%, 
            rgba(255, 255, 255, 0.3) 100%);
    }

    .hero-buttons {
        justify-content: center;
    }
    
    .hero-right-spacer {
        display: none;
    }
}

/* Tablet screens and below */
@media (max-width: 767.98px) {
    .hero-title {
        font-size: 46px;
        letter-spacing: -1px;
    }
    
    .hero-desc {
        font-size: 16px;
        margin-bottom: 25px;
    }
    
    .btn-premium {
        width: 100%;
        padding: 12px 20px;
    }
}

/* Small mobile devices */
@media (max-width: 575.98px) {
    .hero-title {
        font-size: 36px;
    }
    
    .logo-img {
        height: 80px;
    }
    
    .hero-br {
        display: none;
    }
}

@media (min-width: 992px) {
    .hero-left-content {
        flex: 0 0 auto;
        width: 100%;
    }
}
@media (min-width: 768px) {
    .hero-left-content {
        flex: 0 0 auto;
        width: 100%;
    }
}
@media (max-width: 576px) {
    .hero-content-wrapper {
        padding: 120px 10px !important;
    }
}
@media (max-width: 992px) {
    .hero-content-wrapper {
        padding: 120px 30px;
    }
}

/* Responsive layout for Partners Section */
@media (max-width: 991.98px) {
    .partner-card {
        height: 80px;
        padding: 10px 16px;
    }
    .partner-logo {
        max-height: 70px;
    }
}

@media (max-width: 767.98px) {
    .partners-container {
        flex-wrap: wrap;
    }
    
    .partner-card {
        flex: 0 0 50%;
        border-right: 1px solid rgba(0, 0, 0, 0.06);
        border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    }
    
    /* Remove right border on even items */
    .partner-card:nth-child(2n) {
        border-right: none;
    }
    
    /* Remove bottom border on last two items */
    .partner-card:nth-child(3),
    .partner-card:nth-child(4) {
        border-bottom: none;
    }
}

@media (max-width: 575.98px) {
    .partner-card {
        height: 70px;
        padding: 8px 12px;
    }
    .partner-logo {
        max-height: 60px;
    }
}

/* Responsive layout for About Section */
@media (max-width: 991.98px) {
    .about-section {
        padding: 60px 0;
    }
    
    .about-title {
        font-size: 32px;
        margin-bottom: 20px;
    }
    
    .about-right-col {
        padding-left: 10px;
        margin-top: 20px;
    }
    
    .about-stats-card {
        right: -50px;
        bottom: -30px;
    }
    
    .stat-number {
        font-size: 26px;
    }
    
    .stat-label {
        font-size: 11px;
    }
}

@media (max-width: 575.98px) {
    .about-title {
        font-size: 26px;
    }
    
    .about-img-wrapper {
        margin-bottom: 30px;
    }
    
    .about-stats-card {
        left: 0;
        right: 0;
        bottom: -20px;
        padding: 12px 8px;
    }
    
    .stat-number {
        font-size: 20px;
    }
    
    .stat-label {
        font-size: 9px;
    }
}
@media (max-width: 576px) {
    .about-section {
        padding: 30px 0;
    }
}
@media (max-width: 575.98px) {
    .about-stats-card {
        left: 20px;
        right: 20px;
        bottom: -30px;
        padding: 12px 8px;
    }
    .about-body-row {
        margin-top: 0px;
    }
    .hero-bg-img {
        object-position: calc(50% - 215px) center;
    }
    @media (max-width: 1199.98px) {
    .hero-overlay {
        background: linear-gradient(to bottom, rgb(255 255 255) 0%, rgb(255 255 255 / 83%) 60%, rgb(255 255 255 / 59%) 80%, rgb(255 255 255 / 65%) 100%);
    }
}
}

/* Responsive layout for Services Section */
@media (max-width: 991.98px) {
    .services-section {
        padding: 60px 0;
    }
    
    .services-title {
        font-size: 32px;
        margin-bottom: 30px;
    }
    
    .service-card {
        height: 440px;
    }
    
    .service-card-number {
        font-size: 70px;
    }
    
    .service-card-back {
        padding: 30px 20px;
    }
    
    .service-card-back .service-card-title {
        font-size: 20px;
        margin-bottom: 12px;
    }
    
    .service-card-back .service-card-desc {
        font-size: 13px;
        margin-bottom: 16px;
    }
}

@media (max-width: 575.98px) {
    .services-title {
        font-size: 26px;
    }
    
    .service-card {
        height: 400px;
    }
    
    .service-card:hover .service-card-inner {
        transform: none !important;
    }
    
    .service-card-back {
        display: none !important;
    }
    
    .service-card-front .service-card-desc {
        display: block !important;
        font-size: 12px;
        line-height: 1.5;
        color: rgba(255, 255, 255, 0.9);
        margin-top: 8px;
        margin-bottom: 0;
    }
    
    .service-card-number {
        font-size: 60px;
        top: 15px;
        left: 20px;
    }
    
    .service-card-content {
        padding: 20px 16px;
    }
    
    .service-card-title {
        font-size: 18px;
        margin-bottom: 0;
    }
}

/* Responsive layout for Why LBDGO Section */
@media (max-width: 991.98px) {
    .why-lbdgo-section {
        padding: 60px 0;
    }
    
    .why-title {
        font-size: 32px;
        margin-bottom: 30px;
    }
    
    .why-right-col {
        padding-left: 10px;
        margin-top: 40px;
    }
    
    .delivery-focus-card {
        right: 0;
        bottom: -20px;
        padding: 16px 20px;
        min-width: 145px;
    }
    
    .focus-number {
        font-size: 36px;
    }
    
    .feature-icon-wrapper {
        flex: 0 0 50px;
        width: 50px;
        height: 50px;
        margin-right: 16px;
    }
    
    .feature-icon-wrapper svg {
        width: 50px;
        height: 50px;
    }
}

@media (max-width: 575.98px) {
    .why-title {
        font-size: 26px;
    }
    
    .delivery-img-wrapper {
        margin-bottom: 30px;
    }
    
    .delivery-focus-card {
        right: 10px;
        bottom: -15px;
        padding: 12px 16px;
        min-width: 120px;
    }
    
    .focus-number {
        font-size: 30px;
    }
    
    .focus-label {
        font-size: 11px;
    }
    
    .feature-icon-wrapper {
        flex: 0 0 40px;
        width: 40px;
        height: 40px;
        margin-right: 12px;
    }
    
    .feature-icon-wrapper svg {
        width: 40px;
        height: 40px;
    }
    
    .feature-item-title {
        font-size: 16px;
    }
    
    .feature-item-desc {
        font-size: 13px;
    }
    
}
@media (max-width: 576px) {
    .btn-premium {
        width: 75%;
        padding: 12px 20px;
    }
}

/* Responsive layout for Join or Hire Section */
@media (max-width: 991.98px) {
    .join-hire-section {
        padding: 60px 0;
    }
    
    .join-title {
        font-size: 32px;
    }
    
    .join-subtitle {
        font-size: 15px;
    }
    
    .option-card {
        padding: 20px 24px;
    }
    
    .form-outer-container {
        padding: 30px 24px;
    }
    
    .form-header-row {
        margin-bottom: 24px;
    }
    
    .form-header-right {
        margin-top: 24px;
    }
    
    .stepper-progress {
        justify-content: flex-start;
    }
}

@media (max-width: 767.98px) {
    .form-footer-row {
        text-align: center;
    }
    
    .form-footer-left {
        margin-bottom: 20px;
    }
    
    .security-info {
        justify-content: center;
        text-align: left;
    }
    
    .btn-next-step {
        width: 100%;
        justify-content: center;
    }
    
    .footer-links {
        justify-content: center;
    }

    /* Option Cards Responsive Adjustments below 768px */
    .option-card {
        flex-direction: column !important;
        align-items: center !important;
        text-align: center !important;
        padding: 20px 12px !important;
        justify-content: center !important;
    }
    
    .option-icon-wrapper,
    .option-icon-wrapper-two {
        width: 60px !important;
        height: 60px !important;
        margin-right: 0 !important;
        margin-bottom: 12px !important;
    }
    
    .option-icon-wrapper svg,
    .option-icon-wrapper-two svg {
        width: 32px !important;
        height: 32px !important;
    }
    
    .option-card-text p {
        display: none !important;
    }
    
    .option-card-text h3 {
        font-size: 14px !important;
        margin-bottom: 0 !important;
        line-height: 1.3 !important;
    }
}

@media (max-width: 575.98px) {
    .why-left-col {
        display: none !important;
    }
    
    .join-title {
        font-size: 26px;
    }
    
    .option-card {
        padding: 16px 20px;
    }
    
    .option-card-text h3 {
        font-size: 18px;
    }
    
    .option-card-text p {
        font-size: 12px;
    }
    
    .form-outer-container {
        padding: 24px 16px;
    }
    
    .form-title-icon {
        flex: 0 0 44px;
        width: 44px;
        height: 44px;
        margin-right: 16px;
    }
    
    .form-title-text h3 {
        font-size: 18px;
    }
    
    .form-title-text p {
        font-size: 13px;
    }
    
    .step-label {
        font-size: 11px;
    }
    
    .step-line {
        margin: 0 8px;
        max-width: 30px;
    }
    
    .form-control-custom,
    .form-select-custom {
        height: 48px;
        padding-left: 14px !important;
        padding-right: 14px !important;
        padding-top: 0;
        padding-bottom: 0;
        font-size: 14px;
    }
    
    .security-icon {
        flex: 0 0 48px;
        width: 48px;
        height: 48px;
        margin-right: 12px;
    }
    
    .security-icon svg {
        width: 48px;
        height: 48px;
    }
    .option-cards-row {
    margin-bottom: 0px;
}
}

/* Responsive layout for Contact Section */
@media (max-width: 991.98px) {
    .contact-section {
        padding: 60px 0;
    }
    
    .contact-title {
        font-size: 32px;
    }
    
    .contact-desc {
        margin-bottom: 30px;
    }
    
    .contact-form-col {
        padding-left: 10px !important;
        padding-right: 10px !important;
        margin-top: 25px;
    }
}

@media (max-width: 575.98px) {
    .contact-title {
        font-size: 26px;
    }
    
    .form-submit-row {
        flex-direction: column;
        align-items: flex-start !important;
    }
    
    .form-submit-row .col-auto,
    .form-submit-row .col {
        width: 100%;
    }
    
    .form-submit-row .col {
        margin-top: 16px;
    }
    .text-end-btn{
        text-align: center !important;
    }
    .submit-btn{
        text-align: center !important;
    }
    .hero-title{
        text-align: center !important;
    }
    .hero-desc{
         text-align: center !important;
    }
    .about-tag{
        text-align: center !important;
    }
    .about-title{
         text-align: center !important;
    }
    .why-tag{
         text-align: center !important;
    }
     .why-title{
         text-align: center !important;
    }
      .contact-tag{
         text-align: center !important;
    }
     .contact-title{
         text-align: center !important;
    }
    .contact-desc{
        text-align: center;
    }
}

/* Keyframes for staggered mobile menu entry */
@keyframes slideInMobileLink {
    from {
        opacity: 0;
        transform: translateY(15px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
@media (max-width: 576px) {
    .section {
        padding: 30px 0;
    }
}
@media (max-width: 576px) {
    .why-right-col {
        margin-top: 0px;
    }
    .form-footer-row {
    border-top: none !important;
    padding-top: 0px !important;
    margin-top: 0px !important;
}
.form-group-custom {
    margin-bottom: 24px;
}
.form-footer-left {
        margin-bottom: 0px;
    }
}
@media (max-width: 576px) {
    .security-info {
       margin-bottom: 15px;
    }
}