html,
body {
    overflow-x: hidden !important;
    width: 100% !important;
}

/*** Spinner Start ***/

#spinner {
    opacity: 0;
    visibility: hidden;
    transition: opacity .8s ease-out, visibility 0s linear .5s;
    z-index: 99999;
}

#spinner.show {
    transition: opacity .8s ease-out, visibility 0s linear .0s;
    visibility: visible;
    opacity: 1;
}

/*** Spinner End ***/


/*** Button Start ***/
.btn {
    font-weight: 600;
    transition: .5s;
}

.btn-square {
    width: 38px;
    height: 38px;
}

.btn-sm-square {
    width: 32px;
    height: 32px;
}

.btn-md-square {
    width: 46px;
    height: 46px;
}

.btn-lg-square {
    width: 58px;
    height: 58px;
}

.btn-square,
.btn-sm-square,
.btn-md-square,
.btn-lg-square {
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: normal;
}

.back-to-top {
    position: fixed;
    width: 50px;
    height: 50px;
    right: 30px;
    bottom: 30px;
    z-index: 99;
}

/*** Button End ***/


/*** Topbar Start ***/

.topbar .top-info {
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
}

.top-mumbai,
.top-scotland {
    display: flex;
    flex-direction: column;
    justify-content: center;
    line-height: 1.25;
}

.top-mumbai small,
.top-scotland small {
    margin-right: 15px !important;
}

.top-sep {
    align-self: center;
}

.topbar .top-link {
    display: flex;
    align-items: center;
    justify-content: center;
}

.topbar .top-link a {
    margin-right: 10px;
}

#note {
    overflow: hidden;
    position: relative;
    contain: paint;
}

#note small {
    display: inline-block;
    animation: mymove 12s infinite;
    animation-timing-function: linear;
}

@keyframes mymove {
    from {
        transform: translateX(100%);
    }

    to {
        transform: translateX(-100%);
    }
}

/*** Topbar End ***/


/*** Navbar Start ***/
.navbar .navbar-nav {
    padding: 15px 0;
}

.navbar .navbar-nav .nav-link {
    padding: 10px;
    color: var(--bs-white);
    font-size: 18px;
    outline: none;

}

.navbar .navbar-nav .nav-link:hover,
.navbar .navbar-nav .nav-link.active {
    color: var(--bs-secondary) !important;
}

.navbar .dropdown-toggle::after {
    border: none;
    content: "\f107";
    font-family: "font awesome 5 free";
    font-weight: 900;
    vertical-align: middle;
    margin-left: 8px;
}

@media (min-width: 992px) {
    .navbar .nav-item .dropdown-menu {
        display: block;
        visibility: hidden;
        top: 100%;
        transform: rotateX(-75deg);
        transform-origin: 0% 0%;
        transition: .5s;
        opacity: 0;
    }
}

.navbar .nav-item:hover .dropdown-menu {
    transform: rotateX(0deg);
    visibility: visible;
    transition: .5s;
    opacity: 1;
}

/*** Navbar End ***/


/*** Carousel Start ***/

.carousel-item {
    position: relative;
    min-height: clamp(385px, 80vw, 700px);
    overflow: hidden;
}

.carousel-item img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    object-position: center 25% !important;
    z-index: -1;
}

.carousel-item::after {
    content: "";
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    background: rgba(0, 0, 0, .6);
    z-index: 0;
}

.carousel-caption {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1;
    padding: clamp(15px, 4vw, 40px) !important;
}

.carousel-content {
    width: min(850px, 94%);
    margin: 0 auto;
    text-align: center;
}

.carousel-item h1 {
    font-size: clamp(20px, 5.2vw, 64px) !important;
    line-height: 1.2 !important;
    margin-bottom: clamp(10px, 2vw, 24px) !important;
    font-weight: 800;
}

.carousel-item p {
    font-size: clamp(11.5px, 3.2vw, 19px) !important;
    line-height: 1.45 !important;
    max-width: min(700px, 92%) !important;
    margin: 0 auto clamp(12px, 3vw, 35px) auto !important;
}

.carousel-caption .carousel-content a button.btn-hero-blue {
    font-size: clamp(11px, 3vw, 17px) !important;
    padding: clamp(8px, 2.2vw, 15px) clamp(16px, 5vw, 38px) !important;
    border-radius: 50px !important;
}

.carousel-control-prev {
    width: 90px;
    height: 60px;
    position: absolute;
    top: 50%;
    left: 0;
    background: var(--bs-primary);
    border-radius: 0 50px 50px 0;
    opacity: 1;
}

.carousel-control-prev:hover {
    background: var(--bs-secondary);
    transition: .8s;
}

.carousel-control-next {
    width: 90px;
    height: 60px;
    position: absolute;
    top: 50%;
    right: 0;
    background: var(--bs-primary);
    border-radius: 50px 0 0 50px;
    opacity: 1;
}

.carousel-control-next:hover {
    background: var(--bs-secondary);
    transition: .8s;
}

.carousel-caption .carousel-content a button.carousel-content-btn1 {
    background: var(--bs-secondary);
    color: var(--bs-dark);
    opacity: 1;
    border: 0;
    border-radius: 20px;
}

.carousel-caption .carousel-content a button.carousel-content-btn1:hover {
    background: var(--bs-primary);
    color: #ffffff;
    border: 0;
    opacity: 1;
    transition: 1s;
    border-radius: 20px;
}

.carousel-caption .carousel-content a button.carousel-content-btn2 {
    background: var(--bs-primary);
    color: var(--bs-white);
    opacity: 1;
    border: 0;
    border-radius: 20px;
}

.carousel-caption .carousel-content a button.carousel-content-btn2:hover {
    background: var(--bs-secondary);
    color: var(--bs-dark);
    border: 0;
    opacity: 1;
    transition: 1s;
    border-radius: 20px;
}

#carouselId .carousel-indicators li {
    width: 30px;
    height: 10px;
    background: var(--bs-primary);
    margin: 10px;
    border-radius: 30px;
    opacity: 1;
}

#carouselId .carousel-indicators li:hover {
    background: var(--bs-secondary);
    opacity: 1;
}

.page-header {
    background: linear-gradient(rgba(0, 0, 0, .6), rgba(0, 0, 0, .6)), url(../img/carousel-1.webp) center center no-repeat;
    background-size: cover;
}

.page-header .breadcrumb-item+.breadcrumb-item::before {
    color: var(--bs-white);
}

.page-header .breadcrumb-item,
.page-header .breadcrumb-item a {
    font-size: 18px;
    color: var(--bs-white);
}

/*** Carousel End ***/


/*** Services Start ***/

.services .services-item {
    box-shadow: 0 0 60px rgba(0, 0, 0, .2);
    width: 100%;
    height: 100% !important;
    border-radius: 10px;
    padding: 10px 0;
    position: relative;
    display: flex !important;
    flex-direction: column !important;
    transition: all 0.3s ease-in-out;
}


.services-content {
    display: flex !important;
    flex-direction: column !important;
    flex: 1 !important;
    height: 100% !important;
    justify-content: space-between !important;
}

.services-content-icon {
    display: flex !important;
    flex-direction: column !important;
    flex: 1 !important;
    height: 100% !important;
    justify-content: space-between !important;
}

.services-text-wrapper {
    display: flex !important;
    flex-direction: column !important;
    flex: 1 !important;
}

.services-content::after {
    position: absolute;
    content: "";
    width: 100%;
    height: 0;
    top: 0;
    left: 0;
    border-radius: 10px 10px 0 0;
    border-radius: 10px 10px 0 0;
    background: rgba(3, 43, 243, 0.8);
    transition: all 0.3s ease-in-out;
}

.services-content::after {
    top: 0;
    bottom: auto;
    border-radius: 10px 10px 10px 10px;
}

.services-item:hover .services-content::after {
    height: 100%;
    opacity: 1;
    transition: all 0.3s ease-in-out;
}

.services-item:hover .services-content-icon {
    position: relative;
    z-index: 2;
}

.services-item .services-content-icon i,
.services-item .services-content-icon p {
    transition: all 0.3s ease-in-out;
}

.services-item:hover .services-content-icon i {
    color: var(--bs-secondary) !important;
}

.services-item:hover .services-content-icon p {
    color: var(--bs-white);
}

/*** Services End ***/


/*** Project Start ***/

.project-img {
    position: relative;
    padding: 15px;
}

.project-img::before {
    content: "";
    position: absolute;
    width: 150px;
    height: 150px;
    top: 0;
    left: 0;
    background: var(--bs-secondary);
    border-radius: 10px;
    opacity: 1;
    z-index: -1;
    transition: .5s;
}

.project-img::after {
    content: "";
    width: 150px;
    height: 150px;
    position: absolute;
    right: 0;
    bottom: 0;
    background: var(--bs-primary);
    border-radius: 10px;
    opacity: 1;
    z-index: -1;
    transition: .5s;
}

.project-content {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
}

.project-content a {
    display: inline-block;
    padding: 20px 25px;
    background: var(--bs-primary);
    border-radius: 10px;
}

.project-item:hover .project-content {
    opacity: 1;
    transition: .5s;
}

.project-item:hover .project-img::before,
.project-item:hover .project-img::after {
    opacity: 0;
}

/*** Project End ***/


/*** Blog Start ***/
.blog-item .blog-btn {
    z-index: 2;
}

.blog-btn .blog-btn-icon {
    height: 50px;
    position: relative;
    overflow: hidden;
}

.blog-btn-icon .blog-icon-2 {
    display: flex;
    position: absolute;
    top: 6px;
    left: -140px;

}

.blog-btn-icon:hover .blog-icon-2 {
    transition: 1s;
    left: 5px;
    top: 6px;
    padding-bottom: 5px;
}

.blog-icon-1 {
    position: relative;
    top: -4px;
}

.blog-btn-icon:hover .blog-icon-1 {
    top: 0;
    right: -140px;
    transition: 1s;
}

/*** Blog End ***/


/*** Team Start ***/

.team-item {
    border-top: 30px solid var(--bs-secondary) !important;
    background: rgba(239, 239, 241, 0.8);
}

.team-content::before {
    height: 200px;
    display: block;
    content: "";
    position: relative;
    top: -101px;
    background: var(--bs-secondary);
    clip-path: polygon(50% 50%, 100% 50%, 50% 100%, 0% 50%);
    padding: 60px;
    opacity: 1;
}

.team-img-icon {
    position: relative;
    margin-top: -200px;
    padding: 30px;
    padding-bottom: 0;
}

.team-img {
    border: 15px solid var(--bs-white);
}

.team-img img {
    border: 10px solid var(--bs-secondary);
    transition: .5s;
}

.team-item:hover h4 {
    color: var(--bs-primary);
    transition: .5s;
}

.team-item:hover .team-img img {
    transform: scale(1.05);
    border: 10px solid var(--bs-secondary);
}

.team-carousel .owl-stage {
    position: relative;
    width: 100%;
    height: 100%;
}

.team-carousel .owl-nav {
    position: absolute;
    top: -100px;
    right: 50px;
    display: flex;
}

.team-carousel .owl-nav .owl-prev,
.team-carousel .owl-nav .owl-next {
    width: 56px;
    height: 56px;
    border-radius: 56px;
    margin-left: 15px;
    background: var(--bs-secondary);
    color: var(--bs-white);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: .5s;
}

.team-carousel .owl-nav .owl-prev:hover,
.team-carousel .owl-nav .owl-next:hover {
    background: var(--bs-primary);
    color: var(--bs-white);
}

@media (max-width: 992px) {
    .team-carousel {
        margin-top: 3rem;
    }

    .team-carousel .owl-nav {
        top: -85px;
        left: 50%;
        right: auto;
        transform: translateX(-50%);
        margin-left: -15px;
    }
}

/*** Team End ***/


/*** Testimonial Start ***/

.testimonial-item {
    background: #e3f0eb;

}

.testimonial-carousel .owl-dots {
    margin-top: 15px;
    display: flex;
    align-items: flex-end;
    justify-content: center;
}

.testimonial-carousel .owl-dot {
    position: relative;
    display: inline-block;
    margin: 0 5px;
    width: 15px;
    height: 15px;
    background: #c1dad0;
    border-radius: 15px;
    transition: .5s;
}

.testimonial-carousel .owl-dot.active {
    width: 30px;
    background: var(--bs-primary);
}

.testimonial-carousel .owl-item.center {
    position: relative;
    z-index: 1;
}

.testimonial-carousel .owl-item .testimonial-item {
    transition: .5s;
}

.testimonial-carousel .owl-item.center .testimonial-item {
    background: #FFFFFF !important;
    box-shadow: 0 0 30px #DDDDDD;
}

/*** Testimonial End ***/


/*** Contact Start ***/
.contact-detail::before {
    position: absolute;
    content: "";
    height: 50%;
    width: 100%;
    top: 0;
    left: 0;
    background: linear-gradient(rgb(210, 243, 235, 1), rgba(230, 250, 245, .3)), url(../img/background.webp) center center no-repeat;
    background-size: cover;
    border-radius: 10px;
    z-index: -1;
}

.contact-map {
    background: #26d48c;
}

.contact-form {
    background: #26d48c;
}

/*** Contact End ***/


/*** Footer Start ***/

.footer .short-link a,
.footer .help-link a,
.footer .contact-link a {
    transition: .5s;
}

.footer .short-link a:hover,
.footer .help-link a:hover,
.footer .contact-link a:hover {
    letter-spacing: 1px;
}

.footer.footer .ronagatech-link a:hover {
    background: var(--bs-secondary);
    border: 0;
}

/*** Footer End ***/

/* Custom B2B Elements Stylings */
.industry-card {
    transition: all 0.3s ease-in-out;
}

.industry-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
    border-color: var(--bs-primary) !important;
    background: #ffffff !important;
}

.industry-card:hover i {
    transform: scale(1.1);
    transition: transform 0.3s ease;
}

.why-choose-item {
    transition: all 0.3s ease-in-out;
    border-left: 4px solid transparent;
}

.why-choose-item:hover {
    border-left-color: var(--bs-primary);
    background: rgba(38, 212, 140, 0.05) !important;
    padding-left: 20px !important;
}

.engagement-card {
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.engagement-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    border-color: var(--bs-primary);
}

.engagement-card.featured {
    border-color: var(--bs-secondary);
    background: linear-gradient(145deg, #ffffff, #f1fcf8);
}

/* Premium B2B Custom Styles */
.btn-hero-green {
    background: linear-gradient(135deg, #26d48c, #1fa36c);
    color: #ffffff !important;
    border: none;
    box-shadow: 0 4px 15px rgba(38, 212, 140, 0.3);
    transition: all 0.3s ease;
}

.btn-hero-green:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(38, 212, 140, 0.5);
    background: linear-gradient(135deg, #1fa36c, #178255);
}

.btn-hero-blue {
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
    color: #ffffff !important;
    border: none;
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.3);
    transition: all 0.3s ease;
}

.btn-hero-blue:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(59, 130, 246, 0.5);
    background: linear-gradient(135deg, #2563eb, #1e40af);
}

.build-card {
    background: #ffffff;
    border-radius: 15px;
    border: 1px solid rgba(0, 0, 0, 0.05) !important;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.03);
}

.build-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1) !important;
    border-color: var(--bs-primary) !important;
}

.build-icon-wrapper {
    width: 70px;
    height: 70px;
    background: rgba(38, 212, 140, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.build-card:hover .build-icon-wrapper {
    background: var(--bs-primary);
    transform: scale(1.1);
}

.showcase-item {
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.showcase-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
    border-color: var(--bs-primary) !important;
}

.showcase-img {
    height: 220px;
    overflow: hidden;
    position: relative;
}

.showcase-img img {
    height: 100%;
    width: 100%;
    object-fit: cover;
    transition: all 0.5s ease;
}

.showcase-item:hover .showcase-img img {
    transform: scale(1.05);
}

.process-step {
    position: relative;
    text-align: center;
    padding: 30px 20px;
    background: #ffffff;
    border-radius: 12px;
    border: 1px solid rgba(0, 0, 0, 0.05);
    height: 100%;
    transition: all 0.3s ease;
}

.process-step:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
    border-color: var(--bs-primary);
}

.process-number {
    font-size: 3rem;
    font-weight: 700;
    color: rgba(38, 212, 140, 0.15);
    line-height: 1;
    margin-bottom: 15px;
    transition: all 0.3s ease;
}

.process-step:hover .process-number {
    color: var(--bs-primary);
    transform: scale(1.1);
}

/* Founder profile styling */
.founder-card {
    background: #ffffff;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    border: 1px solid rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.founder-card:hover {
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
}

.founder-img-wrapper {
    position: relative;
    overflow: hidden;
    border-radius: 50%;
    width: 250px;
    height: 250px;
    margin: 0 auto;
    border: 8px solid #f1fcf8;
    box-shadow: 0 10px 25px rgba(38, 212, 140, 0.15);
}

.founder-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Responsive adjustments for 2-column mobile layout */
@media (max-width: 767px) {

    /* Services & Solutions section adjustments */
    .services .services-item {
        padding: 15px 10px !important;
        border-radius: 8px;
    }

    .services-content {
        padding: 10px 5px !important;
    }

    .services-item .services-content-icon i {
        font-size: 2.2rem !important;
        /* reduce fa-7x down to a readable size */
        margin-bottom: 12px !important;
    }

    .services-item .services-content-icon h4 {
        font-size: 0.95rem !important;
        margin-bottom: 8px !important;
    }

    .services-item .services-content-icon p {
        font-size: 0.75rem !important;
        margin-bottom: 12px !important;
        line-height: 1.3 !important;
    }

    .services-item .services-content-icon a.btn {
        padding: 8px 15px !important;
        font-size: 0.75rem !important;
    }

    /* Capabilities (What We Can Build) adjustments */
    .build-card {
        padding: 15px 10px !important;
        border-radius: 10px;
    }

    .build-icon-wrapper {
        width: 45px !important;
        height: 45px !important;
        margin-bottom: 10px !important;
    }

    .build-icon-wrapper span.fs-1 {
        font-size: 1.5rem !important;
    }

    .build-card h4 {
        font-size: 0.95rem !important;
        margin-bottom: 6px !important;
    }

    .build-card p {
        font-size: 0.75rem !important;
        line-height: 1.3 !important;
    }

    /* Technical Showcase (Projects) adjustments */
    .showcase-item {
        border-radius: 8px;
    }

    .showcase-img {
        height: 120px !important;
        /* make image wrapper smaller on mobile */
    }

    .showcase-img span.position-absolute {
        margin: 8px !important;
        padding: 3px 8px !important;
        font-size: 0.65rem !important;
    }

    .showcase-item .p-4 {
        padding: 12px 10px !important;
        /* reduce padding inside showcase details */
    }

    .showcase-item h4 {
        font-size: 0.95rem !important;
        margin-bottom: 6px !important;
    }

    .showcase-item p {
        font-size: 0.75rem !important;
        line-height: 1.3 !important;
    }

    /* Contact section mobile adjustments */
    .contact-detail {
        padding: 1.25rem !important;
        /* reduce outer wrapper padding on mobile */
    }

    .contact-form,
    .contact-map {
        padding: 1.25rem !important;
        /* reduce padding so inputs take more width on mobile */
    }

    .contact-form input,
    .contact-form textarea {
        padding-top: 0.75rem !important;
        padding-bottom: 0.75rem !important;
    }

    .contact-form button {
        padding: 10px 24px !important;
        font-size: 0.9rem !important;
    }

    .ms-3 a.h5 {
        font-size: 0.95rem !important;
        /* prevent overflow of email/phone text */
    }

    /* Topbar responsive behavior on mobile */
    .container-fluid.bg-dark.py-2.d-none.d-md-flex {
        display: flex !important;
        padding-top: 3px !important;
        padding-bottom: 3px !important;
    }

    .topbar {
        width: 100%;
        display: grid !important;
        grid-template-columns: auto 1fr auto !important;
        /* Email left, slogan marquee middle, call icon right */
        grid-template-rows: auto !important;
        align-items: center !important;
        padding: 0 10px !important;
    }

    .topbar .top-info {
        display: contents !important;
    }

    .top-mumbai,
    .top-scotland {
        display: contents !important;
    }

    .top-mumbai small:first-child,
    .top-scotland small:first-child,
    .top-sep {
        display: none !important;
    }

    .topbar .top-info>small {
        grid-column: 1 !important;
        grid-row: 1 !important;
        display: flex !important;
        align-items: center !important;
        font-size: 10px !important;
        white-space: nowrap !important;
    }

    .top-mumbai small:last-child,
    .top-scotland small:last-child {
        display: none !important;
        /* completely hide phone numbers text on mobile */
    }

    .topbar .top-link {
        display: none !important;
        /* completely remove/hide social icons on phone */
    }

    #note {
        grid-column: 2 !important;
        grid-row: 1 !important;
        display: block !important;
        position: relative !important;
        width: 100% !important;
        overflow: hidden !important;
        contain: paint !important; /* enforce clipping boundary on mobile layout */
        margin: 0 10px !important;
    }

    #note small {
        animation: mymove 12s infinite !important;
        /* keep scrolling animation running */
        animation-timing-function: linear !important;
        color: var(--bs-secondary) !important;
        white-space: nowrap !important;
        font-size: 9.5px !important;
    }

    #mobile-phone-tada {
        grid-column: 3 !important;
        grid-row: 1 !important;
        display: flex !important;
        justify-content: flex-end !important;
        align-items: center !important;
    }
}

/* Collapsed mobile navbar styling */
@media (max-width: 991px) {

    /* Tablet topbar overrides to prevent text wrapping */
    .topbar .top-info {
        font-size: 11px !important;
        letter-spacing: 0px !important;
    }

    .top-mumbai small,
    .top-scotland small {
        margin-right: 8px !important;
        white-space: nowrap !important;
    }

    .topbar .top-info>small {
        margin-right: 8px !important;
        white-space: nowrap !important;
    }

    .top-sep {
        margin: 0 8px !important;
    }

    .navbar .navbar-collapse {
        background: var(--bs-primary) !important;
        padding: 15px !important;
        border-radius: 8px;
        margin-top: 10px;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    }

    .navbar .navbar-nav {
        padding: 0 !important;
    }

    .navbar .navbar-nav .nav-link {
        padding: 8px 10px !important;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }

    .navbar .navbar-nav .nav-link:last-child {
        border-bottom: none;
    }
}

/* Extreme responsiveness for extra small mobile devices (max-width: 320px) */
@media (max-width: 320px) {

    /* Navbar logo sizing to prevent hamburger wrap */
    .navbar-brand img {
        max-width: 80px !important;
        height: auto !important;
    }

    .navbar-toggler {
        padding: 3px 6px !important;
        font-size: 0.65rem !important;
    }

    /* Topbar dynamic font scaling for extra-small screens */
    .top-mumbai small,
    .top-scotland small,
    .topbar .top-info>small {
        font-size: 8px !important;
    }

    .topbar {
        grid-template-columns: 1fr auto !important;
        /* Email on left, Mobile Call icon on right */
        grid-template-rows: auto !important;
        padding: 0 4px !important;
    }

    #note {
        display: none !important;
        /* hide marquee on extra-narrow widths to save space */
    }

    .topbar .top-info>small {
        grid-column: 1 !important;
        grid-row: 1 !important;
    }

    #mobile-phone-tada {
        grid-column: 2 !important;
        grid-row: 1 !important;
        display: flex !important;
    }
}

/* Fluid responsive styling for multi-column grids (Services, Solutions, Capabilities, Showcase, Industries) */
.services-content {
    padding: clamp(8px, 2.2vw, 24px) !important;
}

.services-content-icon i.fa-7x {
    font-size: clamp(20px, 5.5vw, 112px) !important;
    margin-bottom: clamp(10px, 2.5vw, 24px) !important;
}

.services-content-icon h4 {
    font-size: clamp(11px, 2.2vw, 24px) !important;
    margin-bottom: clamp(6px, 1.5vw, 16px) !important;
    line-height: 1.25 !important;
}

.services-content-icon p {
    font-size: clamp(9px, 1.4vw, 16px) !important;
    line-height: 1.35 !important;
    margin-bottom: clamp(8px, 2vw, 24px) !important;
}

.services-content-icon a.btn {
    font-size: clamp(8.5px, 1.3vw, 16px) !important;
    padding: clamp(6px, 1vw, 12px) clamp(12px, 2vw, 28px) !important;
}

.build-card {
    padding: clamp(8px, 2vw, 24px) !important;
}

.build-card .build-icon-wrapper {
    margin-bottom: clamp(6px, 1.5vw, 16px) !important;
}

.build-card .build-icon-wrapper span.fs-1 {
    font-size: clamp(14px, 3.2vw, 40px) !important;
}

.build-card h4 {
    font-size: clamp(9.5px, 2vw, 22px) !important;
    margin-bottom: clamp(4px, 1vw, 10px) !important;
    line-height: 1.25 !important;
}

.build-card p {
    font-size: clamp(8px, 1.3vw, 14px) !important;
    line-height: 1.3 !important;
}

.showcase-item .p-4 {
    padding: clamp(8px, 2vw, 24px) !important;
}

.showcase-item h4 {
    font-size: clamp(11px, 2.2vw, 24px) !important;
    margin-bottom: clamp(4px, 1vw, 12px) !important;
    line-height: 1.25 !important;
}

.showcase-item p {
    font-size: clamp(8.5px, 1.4vw, 15px) !important;
    line-height: 1.35 !important;
}

.showcase-img span {
    font-size: clamp(7.5px, 1.2vw, 14px) !important;
    padding: clamp(3px, 0.6vw, 6px) clamp(8px, 1.5vw, 16px) !important;
    margin: clamp(4px, 1vw, 16px) !important;
}

.industry-card {
    padding: clamp(6px, 1.8vw, 24px) !important;
}

.industry-card i {
    font-size: clamp(14px, 3.2vw, 42px) !important;
    margin-bottom: clamp(6px, 1.5vw, 16px) !important;
}

.industry-card h5 {
    font-size: clamp(8px, 1.4vw, 20px) !important;
    line-height: 1.2 !important;
}

/* Custom Hamburger Button styling */
.custom-hamburger-btn {
    border: 2px solid rgba(255, 255, 255, 0.7) !important;
    border-radius: 6px !important;
    padding: 8px 14px !important;
    background: transparent !important;
    color: #fff !important;
    font-size: 1.25rem !important;
    transition: all 0.3s ease !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}
.custom-hamburger-btn:hover {
    background: rgba(255, 255, 255, 0.15) !important;
    border-color: #fff !important;
    color: #fff !important;
}
.custom-hamburger-btn:focus {
    box-shadow: none !important;
}

/* Offcanvas custom drawer style */
.offcanvas.offcanvas-end {
    width: 350px !important;
}

/* Offcanvas drawer navigation link styling */
.offcanvas-nav-links .nav-link-item {
    display: block !important;
    padding: 14px 20px !important;
    color: rgba(255, 255, 255, 0.8) !important;
    font-size: 1.15rem !important;
    font-weight: 500 !important;
    text-decoration: none !important;
    border-radius: 6px !important;
    transition: all 0.3s ease !important;
    margin-bottom: 10px !important;
    border-left: 3px solid transparent !important;
}

.offcanvas-nav-links .nav-link-item:hover,
.offcanvas-nav-links .nav-link-item.active {
    color: #fff !important;
    background-color: var(--bs-primary) !important;
    border-left-color: var(--bs-secondary) !important;
    padding-left: 28px !important;
}

/* Custom topbar links hover styling */
.topbar-content a {
    text-decoration: none;
    transition: all 0.3s ease;
}
.topbar-content a:hover {
    color: var(--bs-secondary) !important;
}

/* Location Stack layout styling */
.location-stack {
    display: flex;
    flex-direction: column;
    justify-content: center;
    line-height: 1.25;
}

/* Left to Right Marquee Animation */
#note.marquee-ltr small {
    display: inline-block;
    animation: mymove-ltr 12s infinite;
    animation-timing-function: linear;
}

@keyframes mymove-ltr {
    from {
        transform: translateX(-100%);
    }
    to {
        transform: translateX(100%);
    }
}

/* Dropdown Menu customizations for premium look */
.dropdown-menu.bg-dark .dropdown-item {
    transition: all 0.3s ease;
}
.dropdown-menu.bg-dark .dropdown-item:hover {
    background-color: var(--bs-primary) !important;
    color: #fff !important;
}

/* Email Icon Hover Style */
.email-hover-secondary {
    transition: all 0.3s ease;
}
.email-hover-secondary:hover {
    color: var(--bs-secondary) !important;
}

/* Hide caret icon from phone dropdown toggles */
#phoneDropdown::after {
    display: none !important;
}

/* Navigation logo responsive sizing and layout fixes */
.logo-nav {
    height: 50px !important;
    width: auto !important;
    max-height: 50px !important;
    object-fit: contain !important;
    display: inline-block !important;
    transition: all 0.3s ease;
}

/* Adjust logo size and margins for tablets and medium viewports */
@media (max-width: 991px) {
    .logo-nav {
        height: 42px !important;
        max-height: 42px !important;
    }
    
    /* Ensure the navbar layout remains clean and wraps collapsed menus correctly */
    .navbar {
        flex-wrap: wrap !important;
    }
    
    /* Prevent contact icons and toggler from wrapping on small screens */
    .navbar .order-lg-last {
        display: flex !important;
        align-items: center !important;
        flex-wrap: nowrap !important;
    }
}

/* Adjust logo size for mobile screens */
@media (max-width: 575px) {
    .logo-nav {
        height: 35px !important;
        max-height: 35px !important;
    }
}

/* Extreme narrow devices */
@media (max-width: 360px) {
    .logo-nav {
        height: 28px !important;
        max-height: 28px !important;
    }
    
    /* Reduce icon margins on very small screens to fit perfectly */
    .navbar .order-lg-last > * {
        margin-right: 0.5rem !important;
    }
    .navbar .navbar-toggler {
        margin-left: 0.5rem !important;
        padding: 4px 8px !important;
        font-size: 0.85rem !important;
    }
}