/********** Template CSS **********/
.logo {
    width: 60px;
    height: auto;
    object-fit: contain;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .logo {
        width: 45px;
    }

    .brand-text {
        font-size: 22px;
    }
}

@media (max-width: 480px) {
    .logo {
        width: 38px;
    }

    .brand-text {
        font-size: 20px;
    }
}
.brand-text {
    position: relative;
    top: 5px;   /* adjust this value (2px - 6px) */
    line-height: 1;
    font-family: poppins;
}

.brand-logo {
    width: 80px;
    height: auto;
    object-fit: contain;
}

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

.fw-medium {
    font-weight: 600;
}

.mt-6 {
    margin-top: 5rem;
}

.mb-6 {
    margin-bottom: 5rem;
}

.pt-6 {
    padding-top: 5rem;
}

.pb-6 {
    padding-bottom: 5rem;
}


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

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


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

.btn-primary,
.btn-outline-primary:hover {
    color: var(--bs-light);
}

.btn-secondary,
.btn-outline-secondary:hover {
    color: var(--bs-dark);
}

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

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

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

.btn-xl-square {
    width: 60px;
    height: 60px;
}

.btn-xxl-square {
    width: 75px;
    height: 75px;
}

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

/*** Navbar ***/
.sticky-top {
    top: -100px;
    transition: .5s;
}

.navbar .navbar-nav .nav-link {
    margin-right: 35px;
    padding: 25px 0;
    color: var(--bs-dark);
    font-size: 16px;
    text-transform: uppercase;
    font-weight: 600;
    outline: none;
}

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

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

@media (max-width: 991.98px) {
    .navbar .navbar-nav .nav-link  {
        margin-right: 0;
        padding: 10px 0;
    }

    .navbar .navbar-nav {
        margin-top: 15px;
        border-top: 1px solid #EEEEEE;
    }
}

@media (min-width: 992px) {
    .navbar .nav-item .dropdown-menu {
        display: block;
        border: none;
        margin-top: 0;
        top: 150%;
        opacity: 0;
        visibility: hidden;
        transition: .5s;
    }

    .navbar .nav-item:hover .dropdown-menu {
        top: 100%;
        visibility: visible;
        transition: .5s;
        opacity: 1;
    }
}


/*** Header ***/
.carousel .carousel-caption {
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    flex-direction: column;
    align-items: start;
    justify-content: center;
    text-align: left;
    background: rgba(0, 0, 0, .7);
    padding: 3rem;
    padding-left: 11rem;
    z-index: 1;
}

.carousel .carousel-indicators {
    top: 0;
    bottom: 0;
    left: 0;
    right: auto;
    width: 80px;
    flex-direction: column;
    margin: 0;
    margin-left: 3rem;
}

.carousel .carousel-indicators [data-bs-target] {
    width: 70px;
    height: 70px;
    text-indent: 0;
    margin: 5px 0;
    border: 2px solid #FFFFFF;
    overflow: hidden;
}

.carousel .carousel-indicators [data-bs-target] img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

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

    .carousel .carousel-indicators [data-bs-target] {
        width: 60px;
        height: 60px;
    }

    .carousel .carousel-caption {
        padding-left: 10rem;
    }
}

@media (max-width: 768px) {
    .carousel .carousel-item {
        min-height: 500px;

    }

    .carousel .carousel-indicators [data-bs-target] {
        width: 50px;
        height: 50px;

    }

    .carousel .carousel-caption {
        padding-left: 7rem;
    }
}

@media (min-width: 1200px) {
    .carousel .carousel-item .display-1 {
        font-size: 7rem;
    }
}

.page-header {
    background: linear-gradient(rgba(0, 0, 0, .7), rgba(0, 0, 0, .7)), url(../img/services/custom-pre-engineered-buildings.webp) center center no-repeat;
    background-size: cover;
}


/*** About ***/
.about-img {
    position: relative;
    padding-left: 45px;
}

.about-img::before {
    position: absolute;
    content: "";
    width: 200px;
    height: 300px;
    top: 0;
    left: 0;
    border: 5px solid var(--bs-primary);
    animation: animateUpDown 3s ease-in-out infinite;
    z-index: -1;
}

@keyframes animateUpDown { 
    0% { 
        top: -25px;
    }
    50% { 
        top: -45px;
    }
    100% { 
        top: -25px;
    } 
}


/*** Features ***/
.feature {
    background: linear-gradient(to right, rgba(0, 0, 0, .1), rgba(0, 0, 0, 1) 50%), url(../img/services/multi-storey-mezzanine.webp) left center no-repeat;
    background-size: cover;
}

.feature-row {
    box-shadow: 0 0 45px rgba(0, 0, 0, .08);
}

.feature-item {
    border-color: rgba(0, 0, 0, .03) !important;
}

.feature-icon {
    position: relative;
    transition: .5s;
}

.feature-item:hover .feature-icon {
    margin-left: 3rem;
}

.feature-item a::after {
    position: absolute;
    content: "";
    width: 100%;
    height: 1px;
    background: var(--bs-secondary);
    top: 50%;
    left: 0;
    transform: translateY(-50%);
    z-index: -1;
}

.feature-item a:hover {
    color: var(--bs-primary) !important;
}

.feature-item a:hover::after {
    background: var(--bs-primary);
}

.experience .progress {
    height: 5px;
}

.experience .progress .progress-bar {
    width: 0px;
    transition: 3s;
}


/*** Service ***/
.service .service-item {
    position: relative;
    margin-top: 45px;
}

.service .service-inner {
    position: relative;
    height: 100%;
    margin-top: 45px;
    background: var(--bs-white);
    box-shadow: 0 0 45px rgba(0, 0, 0, .05);
}

.service .service-inner::before {
    position: absolute;
    content: "";
    width: 100%;
    height: 0;
    left: 0;
    bottom: 0;
    transition: 1s;
    background: var(--bs-primary);
}

.service .service-inner:hover::before {
    height: 100%;
    top: 0;
}

.service .service-item img {
    margin-top: -45px;
    padding-left: 45px;
}

.service .service-item * {
    position: relative;
    transition: .5s;
    z-index: 1;
}

.service .service-item:hover h5,
.service .service-item:hover p {
    color: var(--bs-white);
}

.service .service-item:hover a {
    padding-left: 45px !important;
}


/*** Appoinment ***/
.appoinment {
    background: linear-gradient(rgba(0, 0, 0, .7), rgba(0, 0, 0, .7)), url(../img/services/steel-structural-fabrication-erection.webp) left center no-repeat;
    background-size: cover;
}


/*** Team ***/
.team .team-item {
    background: var(--bs-white);
    box-shadow: 0 0 45px rgba(0, 0, 0, .05);
}

.team .team-item .team-social {
    position: absolute;
    width: 0;
    height: 100%;
    top: 0;
    right: 0;
    transition: .5s;
    background: var(--bs-primary);
    display: flex;
    align-items: center;
    justify-content: center;
}

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

.team .team-item .team-social .btn {
    opacity: 0;
    transition: .5s;
}

.team .team-item:hover .team-social .btn {
    opacity: 1;
}


/*** Testimonial ***/
.testimonial-img {
    position: relative;
    min-height: 400px;
    overflow: hidden;
}

.testimonial-img div {
    position: absolute;
    width: 100px;
    height: 100px;
    animation-duration: 5s;
}

.testimonial-img div:nth-child(1) {
    top: 10%;
    left: 10%;
    animation-delay: .1s;
}

.testimonial-img div:nth-child(2) {
    top: 60%;
    left: 20%;
    animation-delay: .4s;
}

.testimonial-img div:nth-child(3) {
    top: 20%;
    left: 60%;
    animation-delay: .7s;
}

.testimonial-img div:nth-child(4) {
    bottom: 10%;
    right: 10%;
    animation-delay: 1s;
}

.testimonial-img div::after {
    position: absolute;
    content: "";
    top: -1px;
    right: -1px;
    bottom: -1px;
    left: -1px;
    box-shadow: 0 0 10px 10px var(--bs-white) inset;
    z-index: 1;
}

.testimonial-carousel .owl-item img {
    width: 100px;
    height: 100px;
}

.testimonial-carousel .owl-nav {
    margin-top: 15px;
    display: flex;
}

.testimonial-carousel .owl-nav .owl-prev,
.testimonial-carousel .owl-nav .owl-next {
    margin-right: 15px;
    color: var(--bs-primary);
    font-size: 45px;
    transition: .5s;
}

.testimonial-carousel .owl-nav .owl-prev:hover,
.testimonial-carousel .owl-nav .owl-next:hover {
    color: var(--bs-dark);
}


/*** Contact ***/
@media (min-width: 992px) {
    .contact-info::after {
        position: absolute;
        content: "";
        width: 0px;
        height: 100%;
        top: 0;
        left: 50%;
        border-left: 1px dashed rgba(255, 255, 255, .2);
    }
}

@media (max-width: 991.98px) {
    .contact-info::after {
        position: absolute;
        content: "";
        width: 100%;
        height: 0px;
        top: 50%;
        left: 0;
        border-top: 1px dashed rgba(255, 255, 255, .2);
    }
}


/*** Appoinment ***/
.newsletter {
    background: linear-gradient(rgba(0, 0, 0, .7), rgba(0, 0, 0, .7)), url(../img/services/peb-monarch-banner.webp) left center no-repeat;
    background-size: cover;
}


/*** Footer ***/
.footer .btn.btn-link {
    display: block;
    margin-bottom: 5px;
    padding: 0;
    text-align: left;
    color: var(--bs-secondary);
    font-weight: normal;
    text-transform: capitalize;
    transition: .3s;
}

.footer .btn.btn-link::before {
    position: relative;
    content: "\f105";
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    color: var(--bs-primary);
    margin-right: 10px;
}

.footer .btn.btn-link:hover {
    color: var(--bs-primary);
    letter-spacing: 1px;
    box-shadow: none;
}

.copyright {
    background: #222222;
}

.copyright a {
    color: var(--bs-white);
}

.copyright a:hover {
    color: var(--bs-primary);
}
 /* project-gallery.css – integrated, fully preserves existing design */
        .gallery-section {
            padding-top: 5rem;
            padding-bottom: 5rem;
            background-color: #f8f9fc;
        }
        .gallery-section .section-title {
            margin-bottom: 3rem;
        }
        .gallery-grid {
            display: flex;
            flex-wrap: wrap;
            margin: 0 -12px; /* gutter negative */
        }
        .gallery-item {
            flex: 0 0 20%; /* 5 per row */
            max-width: 20%;
            padding: 0 12px 24px 12px;
        }
        .gallery-card {
            position: relative;
            background: #fff;
            box-shadow: 0 10px 30px rgba(0,0,0,0.05);
            overflow: hidden;
            transition: all 0.3s ease;
            border-radius: 4px;
        }
        .gallery-card:hover {
            box-shadow: 0 20px 40px rgba(0,0,0,0.15);
            transform: translateY(-5px);
        }
        .gallery-img {
            position: relative;
            overflow: hidden;
            aspect-ratio: 4 / 3;
        }
        .gallery-img img {
            width: 100%;
            height: 100%;
            object-fit: cover;
            display: block;
            transition: transform 0.5s ease;
        }
        .gallery-card:hover .gallery-img img {
            transform: scale(1.1);
        }
        /* zoom / expand icon overlay (lens/magnify) */
        .img-zoom {
            position: absolute;
            top: 15px;
            right: 15px;
            width: 44px;
            height: 44px;
            background-color: rgba(255, 255, 255, 0.9);
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            opacity: 0;
            visibility: hidden;
            transition: 0.2s;
            cursor: pointer;
            z-index: 10;
            box-shadow: 0 2px 8px rgba(0,0,0,0.15);
            color: var(--bs-primary, #e43f3f);
            font-size: 1.3rem;
            text-decoration: none;
        }
        .img-zoom i {
            line-height: 1;
        }
        .gallery-card:hover .img-zoom {
            opacity: 1;
            visibility: visible;
        }
        .img-zoom:hover {
            background-color: var(--bs-primary, #e43f3f);
            color: #fff;
        }
        .gallery-caption {
            padding: 15px 12px 10px 12px;
            background: #fff;
        }
        .project-name {
            font-weight: 700;
            font-size: 1.1rem;
            text-transform: uppercase;
            margin-bottom: 5px;
            color: #1a1a2c;
            letter-spacing: 0.5px;
        }
        .project-location {
            font-size: 0.9rem;
            color: #6c757d;
            display: flex;
            align-items: center;
            gap: 6px;
        }
        .project-location i {
            color: var(--bs-primary, #e43f3f);
            font-size: 0.8rem;
        }

        /* responsive breakpoints */
        @media (max-width: 992px) {
            .gallery-item {
                flex: 0 0 33.3333%;
                max-width: 33.3333%;
            }
        }
        @media (max-width: 768px) {
            .gallery-item {
                flex: 0 0 50%;
                max-width: 50%;
            }
        }
        @media (max-width: 480px) {
            .gallery-item {
                flex: 0 0 100%;
                max-width: 100%;
            }
        }

        /* modal for zoom (simple lightbox) */
        .gallery-modal {
            display: none;
            position: fixed;
            z-index: 99999;
            padding: 40px;
            left: 0;
            top: 0;
            width: 100%;
            height: 100%;
            overflow: auto;
            background-color: rgba(0,0,0,0.9);
            backdrop-filter: blur(6px);
            align-items: center;
            justify-content: center;
        }
        .gallery-modal.show-modal {
            display: flex;
        }
        .modal-content {
            max-width: 800px;
            width: 90%;
            position: relative;
            animation: zoomIn 0.3s;
        }
        .modal-content img {
            width: 100%;
            height: auto;
            border-radius: 8px;
            border: 3px solid rgba(255,255,255,0.2);
        }
        .close-modal {
            position: absolute;
            top: -40px;
            right: 0;
            color: white;
            font-size: 40px;
            font-weight: bold;
            cursor: pointer;
            transition: 0.2s;
            background: transparent;
            border: none;
        }
        .close-modal:hover {
            color: var(--bs-primary, #e43f3f);
        }
        .caption-modal {
            color: #fff;
            margin-top: 15px;
            font-size: 1.2rem;
            text-align: center;
            text-transform: uppercase;
            letter-spacing: 1px;
        }
        @keyframes zoomIn {
            from {transform:scale(0.7); opacity:0;}
            to {transform:scale(1); opacity:1;}
        }
        
         /* Certificate Showcase Section */
        .certificate-section {
            background: linear-gradient(135deg, #f8f9fc 0%, #ffffff 100%);
            padding: 4rem 0;
        }

        .certificate-card {
            background: white;
            border-radius: 20px;
            padding: 2rem;
            box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
            transition: all 0.3s ease;
            border: 1px solid rgba(22, 30, 146, 0.1);
            position: relative;
        }

        .certificate-card:hover {
            transform: translateY(-5px);
            box-shadow: 0 25px 45px rgba(22, 30, 146, 0.15);
            border-color: var(--primary);
        }

        .certificate-badge {
            display: inline-flex;
            align-items: center;
            gap: 0.5rem;
            background: #161e92;
            color: white;
            padding: 0.4rem 1.2rem;
            border-radius: 50px;
            font-weight: 600;
            font-size: 0.85rem;
            margin-bottom: 1rem;
        }

        .certificate-badge i {
            font-size: 1rem;
        }

        .certificate-image {
            position: relative;
            border-radius: 12px;
            overflow: hidden;
            box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
            border: 4px solid white;
            transition: all 0.3s ease;
        }

        .certificate-image:hover {
            transform: scale(1.02);
            box-shadow: 0 15px 35px rgba(22, 30, 146, 0.2);
        }

        .certificate-image img {
            width: 100%;
            height: auto;
            display: block;
        }

        .certificate-content {
            padding-left: 1rem;
        }

        .certificate-title {
            color: var(--dark);
            font-size: 1.4rem;
            font-weight: 700;
            margin-bottom: 0.5rem;
            line-height: 1.3;
        }

        .certificate-issuer {
            color: var(--primary);
            font-weight: 600;
            margin-bottom: 0.75rem;
            font-size: 0.95rem;
        }

        .certificate-number {
            background: rgba(22, 30, 146, 0.03);
            padding: 0.6rem 1rem;
            border-radius: 8px;
            margin-top: 1rem;
            font-size: 0.9rem;
            color: #161e92;
            border: 1px dashed #161e92;
            display: inline-block;
        }

        .certificate-number i {
            color: var(--primary);
            margin-right: 0.5rem;
        }

        .certificate-ribbon {
            position: absolute;
            top: 20px;
            right: -5px;
            background: #161e92;
            color: white;
            padding: 0.4rem 1.2rem;
            font-size: 0.85rem;
            font-weight: 600;
            border-radius: 30px 0 0 30px;
            box-shadow: 0 5px 15px rgba(22, 30, 146, 0.3);
            z-index: 10;
        }

        .certificate-ribbon:before {
            content: '';
            position: absolute;
            left: -10px;
            top: 0;
            border-left: 10px solid transparent;
            border-right: 0 solid transparent;
            border-bottom: 38px solid var(--primary);
        }

        .certificate-stamp {
            position: absolute;
            bottom: 20px;
            right: 20px;
            width: 60px;
            height: 60px;
            background: rgba(22, 30, 146, 0.03);
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            border: 2px dashed var(--primary);
            color: var(--primary);
            font-size: 1.5rem;
            opacity: 0.5;
            pointer-events: none;
        }

        @media (max-width: 768px) {
            .certificate-section {
                padding: 3rem 0;
            }
            
            .certificate-card {
                padding: 1.5rem;
            }
            
            .certificate-content {
                padding-left: 0;
                margin-top: 1rem;
            }
            
            .certificate-ribbon {
                font-size: 0.75rem;
                padding: 0.3rem 1rem;
            }
            
            .certificate-title {
                font-size: 1.2rem;
            }
            
            .certificate-stamp {
                width: 50px;
                height: 50px;
                font-size: 1.2rem;
                bottom: 10px;
                right: 10px;
            }
        }
         /* Contact Widgets - WhatsApp and Call only */
        .contact-widgets {
            position: fixed;
            bottom: 90px;
            right: 30px;
            z-index: 999;
            display: flex;
            flex-direction: column;
            gap: 15px;
        }
        
        .whatsapp-widget, .call-widget {
            display: flex;
            align-items: center;
            justify-content: center;
            width: 50px;
            height: 50px;
            border-radius: 50%;
            color: white;
            text-decoration: none;
            box-shadow: 0 4px 10px rgba(0,0,0,0.3);
            transition: all 0.3s ease;
            font-size: 28px;
            cursor: pointer;
            border: none;
            outline: none;
        }
        
        .whatsapp-widget {
            background: #25d366;
        }
        
        .whatsapp-widget:hover {
            background: #128C7E;
            transform: scale(1.1);
            color: white;
            box-shadow: 0 6px 15px rgba(0,0,0,0.4);
        }
        
        .call-widget {
            background: #007bff;
        }
        
        .call-widget:hover {
            background: #0056b3;
            transform: scale(1.1);
            color: white;
            box-shadow: 0 6px 15px rgba(0,0,0,0.4);
        }
        /* Responsive adjustments */
        @media (max-width: 768px) {
            .contact-widgets {
                bottom: 90px;
                right: 30px;
                gap: 12px;
            }
            
            .whatsapp-widget, .call-widget {
                width: 50px;
                height: 50px;
                font-size: 26px;
            }
        }

        @media (max-width: 480px) {
            .contact-widgets {
                bottom: 70px;
                right: 15px;
                gap: 10px;
            }
            
            .whatsapp-widget, .call-widget {
                width: 45px;
                height: 45px;
                font-size: 24px;
            }
            
        }