html, body {
    overflow-x: hidden;
}
/********** Template CSS **********/
:root {
    --primary: #FF5E14;
    --secondary: #5F656F;
    --light: #F5F5F5;
    --dark: #02245B;
}

.back-to-top {
    position: fixed;
    display: none;
    right: 30px;
    bottom: 30px;
    z-index: 99;
}

h1,
h2,
.h1,
.h2,
.fw-bold {
    font-weight: 700 !important;
}

h3,
h4,
.h3,
.h4,
.fw-medium {
    font-weight: 600 !important;
}

h5,
h6,
.h5,
.h6,
.fw-semi-bold {
    font-weight: 500 !important;
}





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

.btn-primary,
.btn-outline-primary:hover {
    color: #FFFFFF;
}

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

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

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

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


.topbar-right {
    position: relative;
    background: rgb(3, 27, 68);
}

.topbar-right::before {
    position: absolute;
    content: "";
    width: 30px;
    height: 100%;
    top: 0;
    left: -15px;
    transform: skewX(-30deg);
    background-color: rgb(3, 27, 68);
}





/*** Header ***/
.carousel-caption {
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    background: linear-gradient(to right, rgba(2, 36, 91, 1) 0%, rgba(2, 36, 91, 0) 100%);
    z-index: 1;
}

#header-carousel .carousel-item img {
    height: 500px;
    object-fit: cover;
}

.carousel-control-prev,
.carousel-control-next {
    width: 15%;
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
    width: 3.5rem;
    height: 3.5rem;
    background-color: var(--primary);
    border: 15px solid var(--primary);
    border-radius: 3.5rem;
}

@media (max-width: 768px) {
    #header-carousel .carousel-item img {
        height: 300px;
    }
}

@media (max-width: 768px) {
    #header-carousel .carousel-item {
        position: relative;
        min-height: 450px;
    }
    
    #header-carousel .carousel-item img {
        position: absolute;
        width: 100%;
        height: 100%;
        object-fit: cover;
    }
}


/*** Facts ***/
.facts {
    position: relative;
    margin: 6rem 0;
    background: var(--dark);
}

.facts .border {
    border-color: rgba(255, 255, 255, .1) !important;
}


/*** Service ***/
.service-item {
    position: relative;
    margin: 65px 0 25px 0;
    box-shadow: 0 0 45px rgba(0, 0, 0, .07);
}

.service-item .service-img {
    position: absolute;
    padding: 12px;
    width: 130px;
    height: 130px;
    top: -65px;
    left: 50%;
    transform: translateX(-50%);
    background: #FFFFFF;
    box-shadow: 0 0 45px rgba(0, 0, 0, .09);
    z-index: 2;
}

.service-item .service-detail {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    overflow: hidden;
    z-index: 1;
}

.service-item .service-title {
    position: absolute;
    padding: 65px 30px 25px 30px;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: #FFFFFF;
    transition: .5s;
}

.service-item:hover .service-title {
    top: -100%;
}

.service-item .service-text {
    position: absolute;
    overflow: hidden;
    padding: 65px 30px 25px 30px;
    width: 100%;
    height: 100%;
    top: 100%;
    left: 0;
    display: flex;
    align-items: center;
    text-align: center;
    background: rgba(2, 36, 91, .7);
    transition: .5s;
}

.service-item:hover .service-text {
    top: 0;
}

.service-item .service-text::before {
    position: absolute;
    content: "";
    width: 100%;
    height: 100px;
    top: -100%;
    left: 0;
    transform: skewY(-12deg);
    background: #FFFFFF;
    transition: .5s;
}

.service-item:hover .service-text::before {
    top: -55px;
}

.service-item .btn {
    position: absolute;
    width: 130px;
    height: 50px;
    left: 50%;
    bottom: -25px;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--secondary);
    background: #FFFFFF;
    border: none;
    box-shadow: 0 0 45px rgba(0, 0, 0, .09);
    z-index: 2;
}

.service-item .btn:hover {
    color: #FFFFFF;
    background: var(--primary);
}


/*** Project ***/
.project-item {
    position: relative;
    display: block;
}

.project-item img {
    transition: .5s;
}

.project-item:hover img {
    margin-top: -60px;
}

.project-item .project-title {
    position: absolute;
    padding: 0 15px;
    width: 100%;
    height: 80px;
    bottom: -110px;
    left: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: var(--dark);
    transition: .5s;
}

.project-item:hover .project-title  {
    bottom: -60px;
}

.project-item .project-title::before {
    position: absolute;
    content: "";
    width: 100%;
    height: 30px;
    top: -15px;
    left: 0;
    transform: skewY(-5deg);
    background: var(--dark);
    transition: .5s;
}


/*** Client ***/
.client-item {
    box-shadow: 0 0 45px rgba(0, 0, 0, .07);
}

.client-logo img {
    width: 100px;
}

.client-logo small {
    display: block;
}

.client-item a {
    transition: .5s;
}

.client-item a:hover {
    color: var(--primary);
    letter-spacing: 1px;
}


/*** Team ***/
.team-item .team-social {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: -100%;
    display: flex;
    align-items: center;
    background: var(--primary);
    transition: .5s;
}

.team-item:hover .team-social {
    left: 0;
}

/* ===================================================
   MOBILE RESPONSIVE ADDITIONS
   Add this below your existing Template CSS
   =================================================== */

/* ── Topbar ── */
@media (max-width: 575.98px) {
    .topbar-right {
        margin-top: 0.5rem;
    }

    .topbar-right::before {
        display: none;
    }
}

/* ── Navbar ── */
@media (max-width: 991.98px) {
    .navbar .navbar-brand {
        height: 60px;
        padding-right: 30px;
    }

    .navbar .navbar-brand::after {
        width: 30px;
        right: -15px;
    }

    .navbar .navbar-nav .nav-link {
        font-size: 16px;
    }
}

/* ── Hero Carousel ── */
@media (max-width: 575.98px) {
    #header-carousel .carousel-item {
        min-height: 380px;
    }

    .carousel-caption {
        padding: 1rem;
        background: linear-gradient(
            to bottom,
            rgba(2, 36, 91, 0.85) 0%,
            rgba(2, 36, 91, 0.5) 100%
        );
    }

    .carousel-caption h1,
    .carousel-caption .h1 {
        font-size: 1.5rem !important;
    }

    .carousel-caption p {
        font-size: 0.875rem;
    }

    .carousel-control-prev-icon,
    .carousel-control-next-icon {
        width: 2.5rem;
        height: 2.5rem;
        border-width: 10px;
    }

    .carousel-control-prev,
    .carousel-control-next {
        width: 10%;
    }
}

/* ── Facts Section ── */
@media (max-width: 767.98px) {
    .facts {
        margin: 3rem 0;
    }

    .facts .col-sm-6 {
        border-bottom: 1px solid rgba(255, 255, 255, .1);
        padding-bottom: 1.5rem;
        margin-bottom: 1.5rem;
    }

    .facts .col-sm-6:last-child {
        border-bottom: none;
        margin-bottom: 0;
    }

    .facts h1,
    .facts .h1 {
        font-size: 2rem !important;
    }
}

/* ── Service Items ── */
@media (max-width: 767.98px) {
    .service-item {
        margin: 65px 0 50px 0;
    }

    /* Disable hover flip on touch — show content statically */
    .service-item .service-title {
        position: relative;
        top: auto;
        padding: 80px 20px 20px 20px;
    }

    .service-item .service-text {
        display: none;
    }

    .service-item .btn {
        bottom: -20px;
    }
}

@media (min-width: 768px) and (max-width: 991.98px) {
    .service-item {
        margin: 65px 0 40px 0;
    }
}

/* ── Project Items ── */
@media (max-width: 767.98px) {
    .project-item:hover img {
        margin-top: 0;
    }

    .project-item .project-title {
        position: relative;
        bottom: auto;
        height: auto;
        padding: 0.75rem 1rem;
        font-size: 0.875rem;
    }

    .project-item .project-title::before {
        display: none;
    }
}

/* ── Client Section ── */
@media (max-width: 575.98px) {
    .client-logo img {
        width: 70px;
    }

    .client-item {
        padding: 1rem;
    }
}

/* ── Team Section ── */
@media (max-width: 767.98px) {
    /* Disable slide-in social on touch; show inline below image */
    .team-item .team-social {
        position: relative;
        left: auto;
        width: 100%;
        height: auto;
        padding: 0.75rem;
        justify-content: center;
        gap: 0.5rem;
    }

    .team-item:hover .team-social {
        left: auto;
    }
}

/* ── Back-to-top button ── */
@media (max-width: 575.98px) {
    .back-to-top {
        right: 15px;
        bottom: 15px;
    }
}

/* ── Button sizing on small screens ── */
@media (max-width: 575.98px) {
    .btn-lg {
        padding: 0.5rem 1.25rem;
        font-size: 0.9rem;
    }
}

/* ── Section padding helpers ── */
@media (max-width: 767.98px) {
    .py-5 {
        padding-top: 2.5rem !important;
        padding-bottom: 2.5rem !important;
    }

    h1, .h1 { font-size: 1.75rem !important; }
    h2, .h2 { font-size: 1.5rem !important; }
    h3, .h3 { font-size: 1.25rem !important; }
}

/* ── Touch-friendly tap targets ── */
@media (hover: none) and (pointer: coarse) {
    .navbar .navbar-nav .nav-link {
        padding: 12px 0;
        min-height: 44px;
        display: flex;
        align-items: center;
    }

    .btn {
        min-height: 44px;
    }

    .btn-sm-square,
    .btn-square,
    .btn-lg-square {
        min-width: 44px;
        min-height: 44px;
    }
}

