html {
    scroll-behavior: smooth;
}

/* PAGE HEAD BLOCK */
#page-headblock {
    position: relative;
    border-bottom: 1px solid #e6e6e6;
    background-color: #eee;
}

#page-headblock img.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

#page-headblock::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgb(2, 0, 36);
    background: linear-gradient(0deg, rgba(2, 0, 36, 1) 0%, rgba(2, 0, 36, 0.238) 100%);
    z-index: 1;
}

#page-headblock .row {
    min-height: 240px;
    align-content: center;
}

#page-headblock [class*='col-'] {
    margin: 3.2rem 0;
    z-index: 2;
}

#page-headblock h1 {
    font-size: 2rem;
    font-weight: 900;
    color: #fff;
}

@media (min-width: 768px) {
    #page-headblock h1 {
        font-size: 3rem;
    }

    #page-headblock .row {
        min-height: 400px;
    }
}


/* BREADCRUMB */
/* Breadcrumb container styling */
#breadcrumb {
    background: #ffffff;
    padding: 18px 20px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.05);
    display: inline-block;
    max-width: 100%;
    margin: 20px 0;
}

/* Remove bullet points and apply flexbox layout */
#breadcrumb ul {
    display: flex;
    list-style: none;
    align-items: center;
    line-height: normal;
    gap: 30px;
}

/* Style for individual breadcrumb items */
#breadcrumb li {
    font-size: 16px;
    position: relative;
    display: inline-block;
}

/* Styling for links */
#breadcrumb a {
    text-decoration: none;
    color: #007bff;
    font-weight: 500;
    transition: all 0.3s ease;
    display: inline-block;
}

/* Active link styling for the current page */
#breadcrumb li:last-child a {
    color: #6c757d;
    /* A neutral color for the current page */
    font-weight: 600;
    pointer-events: none;
    /* Disable clicking on the current page */
}

/* Interactive hover effect for links */
#breadcrumb a:hover {
    color: #0056b3;
    transform: scale(1.06);
}

/* Separator (using a forward slash as a separator) */
#breadcrumb li::after {
    color: #6c757d;
    content: '\1F782';
    margin-left: 12px;
    position: absolute;
    font-weight: 500;
    left: 100%;
    top: 50%;
    transform: translateY(-50%);
}

/* Remove the last separator for the last item */
#breadcrumb li:last-child::after {
    content: '';
}

/* Responsive design for mobile */
@media (max-width: 767px) {
    #breadcrumb {
        padding: 15px;
    }


    #breadcrumb li {
        font-size: 14px;
    }

    #breadcrumb a {
        font-size: 14px;
    }
}

/* Optional: Add a hover effect on the breadcrumb container */






/* About Section Styling */
#about {
    padding: 60px 0;
}

.text-container {
    padding: 20px;
}

#about h3 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    font-weight: bold;
}

#about p {
    margin-bottom: 30px;
}


/* Key Stats Styling */
.key-stats {
    flex-flow: column wrap;
    justify-content: space-between;
    margin-bottom: 2.6rem;
    gap: .68rem;
}

.stat-block {
    padding: 1.4rem;
    box-shadow: 0 0 10px rgba(223, 223, 223, 0.3);
    background-color: #fff;
    line-height: normal !important;
    border-radius: 8px;
}

.key-stats .number {
    display: flex;
    font-size: 2.1rem;
    font-weight: 900;
}

.key-stats .title {
    font-size: .8rem;
    color: #5e5e5e;
}

/* Image Styling */
.image-container img {
    width: 100%;
    border-radius: 15px;
    transition: transform 0.3s ease;
}

.image-container img:hover {
    transform: scale(1.05);
}

/* Mobile Responsiveness */
@media (min-width: 768px) {
    .key-stats {
        flex-flow: row;
    }


}





/* SERVICES-BLOCK ON HOMEPAGE */
#services-block {
    display: flex;
    flex-flow: row wrap;
}

#services-block a.service-cta {
    flex: 0 0 100%;
    display: block;
    padding: .8rem;
}

.service-item {
    border: 1px solid #eee;
    border-radius: 8px;
    position: relative;
    overflow: hidden;
    height: 300px;
    max-width: 500px;
}

.service-item::after {
    content: "";
    position: absolute;
    height: 100%;
    width: 100%;
    bottom: 0;
    right: 0;

    background: rgb(2, 0, 36);
    background: linear-gradient(0deg, rgba(2, 0, 36, .81) 0%, rgba(0, 212, 255, 0) 100%);
    transition: all .3s ease-in;
}

.service .content {
    padding: 1rem;
    background-color: #2e2e2e64;
    color: white;
    position: absolute;
    bottom: 0%;
    right: 0;
    left: 0;
    margin: 16px;
    border-radius: 8px;
    /* transform: translateY(120%) scale(0.2); */
    z-index: 1;
}

.service .service-img_icon img {
    position: absolute;
    object-fit: cover;
    height: 100%;
    width: 100%;
    bottom: 0;
    right: 0;
    left: 0;
    top: 0;
}


a.service-cta:hover .service-item::after {
    height: 0;
}

.service .service-title {
    color: white;
    font-size: 1.26rem;
    margin-bottom: .4rem;
    line-height: auto;
    font-weight: 600;
}

.service-excerpt {
    line-height: 1.4;
    display: none;
}


@media (min-width: 768px) {

    #services-block a.service-cta {
        flex: 0 0 50%;
    }

}

@media (min-width: 1024px) {

    #services-block a.service-cta {
        flex: 0 0 33.3333%;
    }
}


/* WHY CHOOSE US SECTION */
#choices {
    display: flex;
    flex-direction: column;
    margin: 3rem 0;
}

.reason {
    padding: 1rem;
    border: 1px solid #eee;
    border-radius: 5px;
    transition: all .3s ease-in;
}

.reason:hover {
    box-shadow: 0 0 20px rgba(143, 143, 143, 0.382);
}

.reason h5 {
    font-size: 1.2rem;
    margin-bottom: .5rem;
}

@media (min-width: 768px) {
    #choices {
        flex-flow: row wrap;
    }

    .reason {
        flex: 0 0 auto;
        width: 50%;
    }

    .reason h5 {
        font-size: 1.5rem;
    }
}



/* Teams Block - Container that holds all team items */
#teams-block {
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

.team {
    padding: 1rem;
    background-color: #fff;
    text-align: center;
}

.team-img {
    text-align: center;
    overflow: hidden;
    height: 250px;
    width: 250px;
    margin: auto;
    z-index: 1;
}

.team-img img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: contain;
}

.team,
.team-img,
.team .content {
    border-radius: 1rem;
}

.team .content {
    line-height: normal;
    background-color: #fff;
    /* transform: translateY(-3rem); */
    padding: 1.2rem;
    margin: 1rem;
}

.team-name {
    font-size: 1.724rem;
}

.team-position {
    margin-block-end: 1.724rem;
}


@media (min-width: 576px) {
    .team {
        display: flex;
        align-items: center;
        background-color: transparent;
        text-align: initial;
    }

    .team-img {
        flex: 0 0 auto;
        width: 30%;
    }

    .team .content {
        transform: translate(-4vw, 0);
        box-shadow: 0 0 20px rgba(0, 0, 0, 0.05);
    }

    .team-name {
        font-size: clamp(3rem, 2rem);
    }
}




/**
 For services listing on service page
 */

/* Individual Service Card */
.service-card {
    background-color: #fff;
    border-radius: 16px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    margin-bottom: 40px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* Hover Effects for Card */
.service-card:hover {
    transform: translateY(-15px);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.15);
}

/* Image Style */
.service-img img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    transition: transform 0.3s ease;
    border-bottom: 4px solid #3498db;
    /* Blue border to separate image */
}

/* Hover Effect on Image */
.service-card:hover .service-img img {
    transform: scale(1.1);
}

/* Card Content */
.card-content {
    padding: 30px;
    text-align: center;
}

.service-title {
    font-size: 1.7em;
    color: #2c3e50;
    margin-bottom: 20px;
    font-weight: 700;
    letter-spacing: 1px;
    line-height: 1.2;
}

.service-description {
    font-size: 1.1em;
    color: #7f8c8d;
    line-height: 1.6;
    margin-bottom: 25px;
}

/* Button Styling */
.btn {
    background-color: #3498db;
    color: white !important;
    padding: 14px 30px;
    border-radius: 5px;
    font-weight: bold;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 6px 15px rgba(52, 152, 219, 0.2);
    display: inline-block;
}

.btn:hover {
    background-color: #2980b9;
    box-shadow: 0 8px 20px rgba(52, 152, 219, 0.3);
    text-decoration: none;
}

/* Mobile Responsiveness */
@media (max-width: 1200px) {
    
}

@media (max-width: 992px) {
    
}

@media (max-width: 768px) {
    .service-card {
        width: 100%;
        /* 1 card per row */
        margin-bottom: 20px;
        /* Space between stacked cards */
    }
}

@media (max-width: 576px) {
    .service-img img {
        height: 180px;
        /* Adjust image height for small screens */
    }

    .service-title {
        font-size: 1.4em;
        /* Slightly smaller title for mobile */
    }

    .service-description {
        font-size: 1em;
        /* Smaller description text */
    }

    .btn {
        font-size: 1em;
        /* Smaller buttons */
    }
}


/* Form alert block */
/* Form alert block */
.alert {
    margin: 20px;
    padding: 15px 30px;
    border-radius: 5px;
    text-align: center;
    font-weight: bold;
    position: fixed;
    top: 5rem;
    z-index: 10;
    box-shadow: 0 0 30px rgba(0,0,0,0.3);
    right: -60rem;
}
.alert-success {
    background-color: #03893d;
    color: white;
}

.alert-error, .alert-success {
    right: 1rem;
    animation: popup .7s ease-in-out .2s;
}
.alert-error {
    background-color: #f44336;
    color: white;
}

/* Animation */
@keyframes popup {
    0% {
        opacity: 0;
        transform: translateY(-10px);
    }
    60% {
        opacity: 1;
        transform: translate(4rem, 0);
    }
    100% {
        transform: translate(0, 0);
    }
}