/* @import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap'); */
@import url('https://fonts.googleapis.com/css2?family=Signika:wght@300..700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&family=Signika:wght@300..700&display=swap');

:root {
    --primary-blue: #005792;
    --inter-font: 'Inter', sans-serif;
}

body {
    font-family: 'Signika', sans-serif;
    background-color: white;
    /* border: red 2px solid; */
}

.bg-primary-blue {
    background-color: var(--primary-blue);
}

.border-primary-blue {
    border-color: var(--primary-blue);
}

.brand-orange {
    color: #FA8606;
}

.brand-blue {
    color: #005792;
}

p,
h2,
h3 {
    font-family: 'Poppins', sans-serif;
    font-size: 1rem;
    line-height: 1.5rem;
    color: #212529;
}

.justify-text {
    text-align: justify;
}

.review-text {
    font-family: 'Poppins', sans-serif;
    font-size: 0.8rem;
    line-height: 1.25rem;
    color: #212529;
}

.review-text-val {
    font-family: 'Poppins', sans-serif;
    font-size: 1.5rem;
    line-height: 2rem;
    color: #212529;
    font-weight: 600;
}

nav {
    background-color: white;
}

nav a {
    color: #005792;
}

h1,
h2 {
    text-transform: uppercase;
    font-family: 'Signika', sans-serif;
    color: #005792;
    margin-bottom: 1rem;
}

.home-page a[href="index.html"] {
    border-color: #ff6f00;
    border-bottom-width: 3px;
    padding-bottom: 0.25rem;
}

.service-page a[href="services.html"] {
    border-color: #ff6f00;
    border-bottom-width: 3px;
    padding-bottom: 0.25rem;
}

.about-page a[href="about.html"] {
    border-color: #ff6f00;
    border-bottom-width: 3px;
    padding-bottom: 0.25rem;
}

.projects-page a[href="projects.html"] {
    border-color: #ff6f00;
    border-bottom-width: 3px;
    padding-bottom: 0.25rem;
}

.contact-page a[href="contact.html"] {
    border-color: #ff6f00;
    border-bottom-width: 3px;
    padding-bottom: 0.25rem;
}

.debug {
    border: red 2px solid;
}

.service-img {
    width: 400px;
    height: auto;
}

.page-section {
    display: none;
}

.page-section.active {
    display: block;
}

.carousel-item-spacing {
    /* border: red 2px solid; */
    margin-left: 3rem;
    margin-right: 3rem;
    padding-right: 0.5rem;
    padding-left: 0.5rem;
}

a {
    text-transform: uppercase;
}

.nav-title-hover:hover {
    /* background-color: #ff6f00; */
    /* color: #ffffff; */
    color: #ff6f00;
    /* padding: 0.5rem 1rem 0.5rem; */
    /* border-radius: 0.375rem; */
    /* margin: 0.2rem 0.5rem 0.2rem; */

}

/* .text-bg-color {
    background-color:rgb(245, 198, 111);
    color: #212529;
    padding: 0.5rem 1rem 0.5rem;
    border-radius: 0.375rem;
    margin: 0.2rem 0.5rem 0.2rem;
} */

.text-center {
    text-align: center;
}

.text-black {
    color: #212529;
    background-color: #f8f9fa;
}

.btn-color {
    background-color: #005792;
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 0.375rem;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

/* Marquee Styles */
/* .marquee-text {
    overflow: clip;
}

.marquee-text-track {
    display: flex;
    padding-left: 4.8rem;
    gap: 5rem;
    width: max-content;

}

.marquee-text-track-mobile {
    display: flex;
    padding-left: 1.5rem;
    gap: 1.5rem;
    width: max-content;

}

.animate-marquee {
    animation: marquee-move-text var(--speed, 25s) linear infinite var(--direction, forwards);
}

.marquee-text p {
    border: 1px solid white;
    background-color: #141414;
    border-radius: 100px;
    padding: 1rem 2.5rem;
}

@keyframes marquee-move-text {
    to {
        transform: translateX(-70%);
    }
} */

/* This wrapper div is only there so we know for sure we have enough text to fill your screen.
   If you want to have this marquee loop on devices with a very large width, you simply need to add more text.*/
/* .wrapper {
    max-width: max-content;
    margin: 0 auto;
    color: #fff;
} */

.fadeout-horizontal {
    mask-image: linear-gradient(to right,
            transparent,
            black 5rem,
            black calc(100% - 5rem),
            transparent);
}

.hidden-div {
    overflow: hidden;
}

.carousel-item-size {
    width: 150px;
    height: 150px;
    object-fit: cover;
    margin-right: 1rem;
}

/* TEST CAROUSEL */
/* Define the keyframe animation for the scrolling effect */
@keyframes scroll {
    0% {
        transform: translateX(0);
    }

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

@keyframes scrolll {
    0% {
        transform: translateX(0);
    }

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

/*
            Apply the animation to the container.
            We use flexbox to align the images and duplicate them to create a seamless loop.
            The animation duration and timing function control the scroll speed.
        */
.scrolling-container {
    display: flex;
    animation: scroll 20s linear infinite;
    /* Adjust duration to change speed */
    width: fit-content;
    /* Ensure the container is wide enough to hold all images */
}

.scrolling-container-sm {
    display: flex;
    animation: scrolll 30s linear infinite;
    /* Adjust duration to change speed */
    width: fit-content;
    /* Ensure the container is wide enough to hold all images */
}

/* Smart image sizing system */

/* Service images - hybrid approach */
.service-image-wrapper {
    position: relative;
    width: 100%;
    padding-bottom: 62.5%;
    /* 16:10 aspect ratio */
    /* background: linear-gradient(135deg, #f3f4f6 0%, #ffffff 100%); */
    overflow: hidden;
    /* border-radius: 0.5rem; */
}
.service-image-wrapper-home {
    position: relative;
    width: 100%;
    padding-bottom: 62.5%;
    /* 16:10 aspect ratio */
    /* background: linear-gradient(135deg, #f3f4f6 0%, #ffffff 100%); */
    overflow: hidden;
    border-top-left-radius: 0.5rem;
    border-top-right-radius: 0.5rem;
}

.service-image {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: auto;
    height: auto;
    max-width: 90%;
    /* Prevents edge-to-edge for small images */
    max-height: 90%;
    min-width: 60%;
    /* Ensures small images don't appear tiny */
    object-fit: contain;
}

/* For images that are known to be large/high-res, we can use cover */
.service-image-large {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

/* Background pattern for empty space (optional) */
.service-image-wrapper::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(circle at 20% 50%, rgba(0, 87, 146, 0.03) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(255, 111, 0, 0.03) 0%, transparent 50%);
    z-index: -1;
}

/* Partner logos - smart sizing with max dimensions */
.partner-logo-wrapper {
    position: relative;
    width: 160px;
    /* Base width */
    height: 80px;
    /* Fixed height */
    display: flex;
    align-items: center;
    justify-content: center;
    background: white;
    border-radius: 0.75rem;
    padding: 12px;
    flex-shrink: 0;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.partner-logo-wrapper:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.partner-logo {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    /* This ensures logos don't get pixelated when scaled */
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
}

/* Special sizing for logos that need more width */
.partner-logo-wrapper.wide {
    width: 180px;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .service-image-wrapper {
        padding-bottom: 75%;
        /* Taller aspect ratio on mobile */
    }

    .partner-logo-wrapper {
        width: 140px;
        height: 70px;
    }

    .partner-logo-wrapper.wide {
        width: 160px;
    }
}

@media (max-width: 640px) {
    .service-image {
        max-width: 85%;
        max-height: 85%;
        min-width: 50%;
    }
}

/* Carousel animation */
.scrolling-container {
    display: flex;
    animation: scroll 35s linear infinite;
    gap: 1.5rem;
    padding: 1rem 0;
}


.scrolling-container:hover {
    animation-play-state: paused;
}

/* Service card enhancements */
.service-card {
    background: white;
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* .service-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
} */

/* Loading skeleton for images */
@keyframes shimmer {
    0% {
        background-position: -1000px 0;
    }

    100% {
        background-position: 1000px 0;
    }
}

.service-image-wrapper.loading {
    background: linear-gradient(90deg, #f0f0f0 25%, #f8f8f8 50%, #f0f0f0 75%);
    background-size: 1000px 100%;
    animation: shimmer 2s infinite;
}