/********** Optimized Template CSS **********/

:root {
    --primary: #1B2C51;
    --light: #EFF5FF;
    --dark: #0463FA;
}

/* =================== Utilities =================== */
.fw-medium { font-weight: 500 !important; }
.fw-bold   { font-weight: 700 !important; }
.fw-black  { font-weight: 900 !important; }

/* =================== Back To Top =================== */
.back-to-top {
    position: fixed;
    right: 40px;
    bottom: 40px;
    display: none;
    z-index: 99;
}

/* =================== Spinner =================== */
#spinner {
    opacity: 0;
    visibility: hidden;
    transition: opacity .4s ease, visibility .4s;
    z-index: 99999;
}
#spinner.show {
    opacity: 1;
    visibility: visible;
}

/* =================== Buttons =================== */
.btn {
    font-weight: 500;
    transition: all .3s ease;
}

.btn-primary,
.btn-secondary {
    color: #fff;
}

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

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

/* =================== Navbar =================== */
.navbar {
    transition: .4s ease;
}

.navbar-brand,
.navbar a.btn {
    height: 75px;
}

.navbar .navbar-nav .nav-link {
    margin-right: 25px;
    padding: 20px 0;
    font-size: 15px;
    font-weight: 500;
    text-transform: uppercase;
    color: var(--dark);
    transition: .3s;
}

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

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

.navbar.sticky-top {
    top: -100px;
}

/* Dropdown animation (Desktop only) */
@media (min-width: 992px) {
    .navbar .dropdown-menu {
        display: block;
        border: none;
        margin-top: 0;
        top: 120%;
        opacity: 0;
        visibility: hidden;
        transition: .3s;
    }

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

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

    .navbar .navbar-nav {
        border-top: 1px solid #eee;
    }
}

/* =================== Hero Image =================== */
.hero-img {
    width: 100%;
    height: 75vh;
    min-height: 400px;
    object-fit: cover;
}

@media (max-width: 768px) {
    .hero-img {
        height: 60vh;
    }
}

/* =================== Service =================== */
.service-item {
    transition: .3s ease;
}
.service-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.08);
}
.service-item .btn {
    width: 40px;
    height: 40px;
    border-radius: 40px;
    overflow: hidden;
    background: #fff;
    transition: .3s;
}
.service-item:hover .btn {
    width: 140px;
}

/* =================== Team =================== */
.team-item img {
    transition: .4s ease;
}
.team-item:hover img {
    transform: translateY(-20px);
}
.team-item .team-text {
    transition: .4s ease;
}
.team-item:hover .team-text {
    margin-top: -50px;
}
.team-social {
    opacity: 0;
    transition: .3s;
}
.team-item:hover .team-social {
    opacity: 1;
}
.team-social .btn {
    background: #fff;
    color: var(--primary);
    border-radius: 40px;
}
.team-social .btn:hover {
    background: var(--primary);
    color: #fff;
}

/* =================== Testimonial =================== */
.testimonial-carousel .testimonial-text {
    background: var(--light);
    transform: scale(.9);
    transition: .4s ease;
}
.testimonial-carousel .center .testimonial-text {
    background: var(--primary);
    transform: scale(1);
}
.testimonial-carousel .center .testimonial-text * {
    color: var(--light) !important;
}

.carousel-item,
.carousel-item img {
    height: 60vh;
}

.blog-content h1 {
    font-size: 28px;
    margin-top: 30px;
    font-weight: 700;
}

.blog-content p {
    margin-bottom: 15px;
    line-height: 1.8;
}

@media (min-width: 768px) {
    .carousel-item,
    .carousel-item img {
        height: 90vh;
    }
}

/* =================== Footer =================== */
.footer .btn-social {
    width: 35px;
    height: 35px;
    border: 1px solid #fff;
    color: var(--light);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: .3s;
}
.footer .btn-social:hover {
    color: var(--primary);
}

.footer .btn-link {
    display: block;
    margin-bottom: 5px;
    color: #fff;
    font-size: 15px;
    transition: .3s;
}
.footer .btn-link:hover {
    color: var(--primary);
    letter-spacing: 1px;
}

.footer .copyright {
    padding: 20px 0;
    font-size: 14px;
    border-top: 1px solid rgba(255,255,255,.1);
}
.footer .copyright a {
    color: var(--light);
}
.footer .copyright a:hover {
    color: var(--primary);
}