/********** Template CSS **********/
:root {
    --primary: #06A3DA;
    --secondary: #F57E57;
    --light: #EEF9FF;
    --dark: #091E3E;
}

h1,
h2,
.font-weight-bold {
    font-weight: 700 !important;
}

h3,
h4,
.font-weight-semi-bold {
    font-weight: 600 !important;
}

h5,
h6,
.font-weight-medium {
    font-weight: 500 !important;
}

.btn {
    font-family: 'Jost', sans-serif;
    font-weight: 600;
    transition: .5s;
}

.btn-primary,
.btn-secondary {
    color: #FFFFFF;
}

.btn-primary:hover {
    background: var(--secondary);
    border-color: var(--secondary);
}

.btn-secondary:hover {
    background: var(--primary);
    border-color: var(--primary);
}

.btn-square {
    width: 36px;
    height: 36px;
}

.btn-sm-square {
    width: 28px;
    height: 28px;
}

.btn-lg-square {
    width: 46px;
    height: 46px;
}

.btn-square,
.btn-sm-square,
.btn-lg-square {
    padding-left: 0;
    padding-right: 0;
    text-align: center;
}

#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;
}

.back-to-top {
    position: fixed;
    display: none;
    right: 45px;
    bottom: 45px;
    z-index: 99;
}

.top-shape::before {
    position: absolute;
    content: "";
    width: 35px;
    height: 100%;
    top: 0;
    left: -17px;
    background: var(--primary);
    transform: skew(40deg);
}

.navbar-light .navbar-nav .nav-link {
    font-family: 'Jost', sans-serif;
    padding: 35px 15px;
    font-size: 18px;
    color: var(--dark);
    outline: none;
    transition: .5s;
}

.sticky-top.navbar-light .navbar-nav .nav-link {
    padding: 20px 15px;
}

.navbar-light .navbar-nav .nav-link:hover,
.navbar-light .navbar-nav .nav-link.active {
    color: var(--primary);
}

@media (max-width: 991.98px) {
    .navbar-light .navbar-nav .nav-link,
    .sticky-top.navbar-light .navbar-nav .nav-link {
        padding: 10px 0;
    }
}

.carousel-caption {
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(9, 30, 62, .85);
    z-index: 1;
}

@media (max-width: 576px) {
    .carousel-caption h5 {
        font-size: 14px;
        font-weight: 500 !important;
    }

    .carousel-caption h1 {
        font-size: 30px;
        font-weight: 600 !important;
    }
}

.carousel-control-prev,
.carousel-control-next {
    width: 10%;
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
    width: 3rem;
    height: 3rem;
}

.section-title h5::before {
    position: absolute;
    content: "";
    width: 45px;
    height: 3px;
    right: -55px;
    bottom: 11px;
    background: var(--primary);
}

.section-title h5::after {
    position: absolute;
    content: "";
    width: 15px;
    height: 3px;
    right: -75px;
    bottom: 11px;
    background: var(--secondary);
}

.hero-header {
    background: linear-gradient(rgba(9, 30, 62, .85), rgba(9, 30, 62, .85)), url(../img/carousel-1.jpg) center center no-repeat;
    background-size: cover;
}

.service-item img,
.service-item .bg-light,
.service-item .bg-light h5,
.team-item .team-text {
    transition: .5s;
}

.service-item:hover img {
    transform: scale(1.15);
}

/* Service Card Styles for Uniform Layout */
.service-card {
    display: flex;
    flex-direction: column;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.service-card:hover {
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transform: translateY(-5px);
}

.service-item a {
    display: block;
    height: 100%;
}

.service-item .service-card .bg-light {
    min-height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.service-item .service-card .bg-light h5 {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 600;
}

.team-item .team-text::after,
.service-item .bg-light::after {
    position: absolute;
    content: "";
    top: 50%;
    bottom: 0;
    left: 15px;
    right: 15px;
    border-radius:100px / 15px;
    box-shadow: 0 0 15px rgba(0, 0, 0, .7);
    opacity: 0;
    transition: .5s;
    z-index: -1;
}

.team-item:hover .team-text::after,
.service-item:hover .bg-light::after {
    opacity: 1;
}

/* Service Detail Page Modern Styles */
.service-hero-image {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease;
}

.service-hero-image:hover {
    transform: scale(1.02);
}

.service-description-card {
    border-left: 4px solid var(--primary);
    transition: all 0.3s ease;
}

.service-description-card:hover {
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15) !important;
    transform: translateY(-2px);
}

.service-detail-image {
    transition: all 0.3s ease;
    overflow: hidden;
}

.service-detail-image:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.service-detail-image img {
    transition: transform 0.5s ease;
}

.service-detail-image:hover img {
    transform: scale(1.1);
}

.service-overview-item {
    transition: all 0.3s ease;
    padding: 8px;
    border-radius: 5px;
}

.service-overview-item:hover {
    background-color: rgba(6, 163, 218, 0.1);
    transform: translateX(5px);
}

/* Modern Card Styles */
.shadow-sm {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1) !important;
}

.border-start {
    border-left-width: 4px !important;
}

/* Sidebar Card Enhancements */
.service-detail-sidebar .bg-light {
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.service-detail-sidebar .bg-light:hover {
    border-color: var(--primary);
    box-shadow: 0 5px 20px rgba(6, 163, 218, 0.2);
    transform: translateY(-3px);
}

.service-detail-sidebar .bg-primary {
    transition: all 0.3s ease;
}

.service-detail-sidebar .bg-primary:hover {
    box-shadow: 0 5px 20px rgba(6, 163, 218, 0.4);
    transform: translateY(-3px);
}

/* Responsive Image Styles */
@media (max-width: 768px) {
    .service-hero-image {
        height: 300px !important;
    }
    
    .service-detail-image {
        height: 250px !important;
        margin-bottom: 20px;
    }
}

/* Footer Enhancements */
.footer-about-section {
    line-height: 1.8;
}

.footer-about-section .btn {
    transition: all 0.3s ease;
}

.footer-about-section .btn:hover {
    transform: translateX(5px);
    box-shadow: 0 4px 10px rgba(6, 163, 218, 0.4);
}

.footer-badge-link {
    transition: all 0.3s ease;
    padding: 5px 10px;
    border-radius: 4px;
}

.footer-badge-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 2px 8px rgba(6, 163, 218, 0.3);
}

.footer-social-btn {
    transition: all 0.3s ease;
}

.footer-social-btn:hover {
    transform: translateY(-3px) scale(1.1);
    box-shadow: 0 5px 15px rgba(6, 163, 218, 0.5);
}