/********** Template CSS **********/
:root {
    --primary: #009CFF;
    --secondary: #ff6a00;
    --light: #F8F8F8;
    --dark: #ea580c;
}

/* Base responsive font sizes */
html {
    font-size: 14px;
}

@media (min-width: 576px) {
    html {
        font-size: 15px;
    }
}

@media (min-width: 768px) {
    html {
        font-size: 16px;
    }
}

body {
    font-size: 0.875rem;
    line-height: 1.6;
}

@media (min-width: 768px) {
    body {
        font-size: 1rem;
    }
}

.back-to-top {
    position: fixed;
    display: none;
    right: 20px;
    bottom: 20px;
    z-index: 99;
    width: 40px;
    height: 40px;
}

@media (min-width: 768px) {
    .back-to-top {
        right: 30px;
        bottom: 30px;
        width: 50px;
        height: 50px;
    }
}

/*** Spinner Start ***/
#spinner {
    opacity: 0;
    visibility: hidden;
    transition: opacity .8s ease-out, visibility 0s linear .5s;
    z-index: 99999;
}

#spinner.show {
    transition: opacity .8s ease-out, visibility 0s linear .0s;
    visibility: visible;
    opacity: 1;
}
/*** Spinner End ***/

/*** Button Start ***/
.btn {
    font-weight: 600;
    transition: .5s;
    font-size: 0.85rem;
    padding: 0.5rem 1rem;
}

@media (min-width: 768px) {
    .btn {
        font-size: 1rem;
        padding: 0.625rem 1.25rem;
    }
}

.btn-square {
    width: 32px;
    height: 32px;
}

.btn-sm-square {
    width: 28px;
    height: 28px;
}

.btn-md-square {
    width: 38px;
    height: 38px;
}

.btn-lg-square {
    width: 48px;
    height: 48px;
}

@media (min-width: 768px) {
    .btn-square {
        width: 38px;
        height: 38px;
    }

    .btn-sm-square {
        width: 32px;
        height: 32px;
    }

    .btn-md-square {
        width: 46px;
        height: 46px;
    }

    .btn-lg-square {
        width: 58px;
        height: 58px;
    }
}

.btn-square,
.btn-sm-square,
.btn-md-square,
.btn-lg-square {
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: normal;
}
/*** Button End ***/

/*** Topbar Start ***/
.topbar .top-info {
    letter-spacing: 0.5px;
    font-size: 0.75rem;
}

@media (min-width: 768px) {
    .topbar .top-info {
        letter-spacing: 1px;
        font-size: 0.875rem;
    }
}

.topbar .top-link {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

@media (min-width: 768px) {
    .topbar .top-link {
        gap: 10px;
    }
}

.topbar .top-link a {
    margin-right: 0;
}

#note {
    width: 100%;
    max-width: 500px;
    overflow: hidden;
    font-size: 0.7rem;
}

@media (min-width: 992px) {
    #note {
        font-size: 0.75rem;
    }
}

#note small {
    position: relative;
    display: inline-block;
    animation: mymove 5s infinite;
    animation-timing-function: all;
}

@keyframes mymove {
    from {left: -100%;}
    to {left: 100%;}
}
/*** Topbar End ***/

/*** Navbar Start ***/
.navbar .navbar-nav {
    padding: 8px 0;
}

@media (min-width: 992px) {
    .navbar .navbar-nav {
        padding: 15px 0;
    }
}

.navbar .navbar-nav .nav-link {
    padding: 8px 12px;
    color: var(--bs-white);
    font-size: 0.9rem;
    outline: none;
}

@media (min-width: 992px) {
    .navbar .navbar-nav .nav-link {
        padding: 10px 15px;
        font-size: 1rem;
    }
}

@media (min-width: 1200px) {
    .navbar .navbar-nav .nav-link {
        font-size: 1.125rem;
    }
}

.navbar .navbar-nav .nav-link:hover,
.navbar .navbar-nav .nav-link.active {
    color: var(--secondary) !important;
}

.navbar .dropdown-toggle::after {
    border: none;
    content: "\f107";
    font-family: "font awesome 5 free";
    font-weight: 900;
    vertical-align: middle;
    margin-left: 8px;
}

@media (min-width: 992px) {
    .navbar .nav-item .dropdown-menu {
        display: block;
        visibility: hidden;
        top: 100%;
        transform: rotateX(-75deg);
        transform-origin: 0% 0%;
        transition: .5s;
        opacity: 0;
    }
}

.navbar .nav-item:hover .dropdown-menu {
    transform: rotateX(0deg);
    visibility: visible;
    transition: .5s;
    opacity: 1;
}
/*** Navbar End ***/

/*** Section Title ***/
.section-title {
    position: relative;
    display: inline-block;
    text-transform: uppercase;
    font-size: 1rem;
    padding: 0 10px;
}

@media (min-width: 768px) {
    .section-title {
        font-size: 1.25rem;
        padding: 0 20px;
    }
}

.section-title::before {
    position: absolute;
    content: "";
    width: calc(100% + 40px);
    height: 2px;
    top: 4px;
    left: -20px;
    background: var(--primary);
    z-index: -1;
}

.section-title::after {
    position: absolute;
    content: "";
    width: calc(100% + 60px);
    height: 2px;
    bottom: 4px;
    left: -30px;
    background: var(--primary);
    z-index: -1;
}

@media (min-width: 768px) {
    .section-title::before {
        width: calc(100% + 80px);
        left: -40px;
    }

    .section-title::after {
        width: calc(100% + 120px);
        left: -60px;
    }
}

.section-title.text-start::before {
    width: calc(100% + 20px);
    left: 0;
}

.section-title.text-start::after {
    width: calc(100% + 30px);
    left: 0;
}

@media (min-width: 768px) {
    .section-title.text-start::before {
        width: calc(100% + 40px);
    }

    .section-title.text-start::after {
        width: calc(100% + 60px);
    }
}

/*** Img Border ***/
.img-border {
    position: relative;
    height: 100%;
    min-height: 250px;
}

@media (min-width: 768px) {
    .img-border {
        min-height: 350px;
    }
}

@media (min-width: 992px) {
    .img-border {
        min-height: 400px;
    }
}

.img-border::before {
    position: absolute;
    content: "";
    top: 0;
    left: 0;
    right: 1.5rem;
    bottom: 1.5rem;
    border: 3px solid var(--primary);
    border-radius: 6px;
}

@media (min-width: 768px) {
    .img-border::before {
        right: 2rem;
        bottom: 2rem;
        border-width: 4px;
    }
}

@media (min-width: 992px) {
    .img-border::before {
        right: 3rem;
        bottom: 3rem;
        border-width: 5px;
    }
}

.img-border img {
    position: absolute;
    top: 1.5rem;
    left: 1.5rem;
    width: calc(100% - 1.5rem);
    height: calc(100% - 1.5rem);
    object-fit: cover;
    border-radius: 6px;
}

@media (min-width: 768px) {
    .img-border img {
        top: 2rem;
        left: 2rem;
        width: calc(100% - 2rem);
        height: calc(100% - 2rem);
    }
}

@media (min-width: 992px) {
    .img-border img {
        top: 3rem;
        left: 3rem;
        width: calc(100% - 3rem);
        height: calc(100% - 3rem);
    }
}

/*** Facts ***/
.fact-item {
    transition: .5s;
    padding: 1rem;
}

@media (min-width: 768px) {
    .fact-item {
        padding: 1.5rem;
    }
}

.fact-item:hover {
    margin-top: -5px;
    background: #FFFFFF !important;
    box-shadow: 0 0 30px rgba(0, 0, 0, .07);
}

@media (min-width: 768px) {
    .fact-item:hover {
        margin-top: -10px;
        box-shadow: 0 0 45px rgba(0, 0, 0, .07);
    }
}

/*** Service ***/
.service-item {
    box-shadow: 0 0 30px rgba(0, 0, 0, .07);
    border: 1px solid transparent;
    transition: .5s;
    padding: 1.5rem;
}

@media (min-width: 768px) {
    .service-item {
        box-shadow: 0 0 45px rgba(0, 0, 0, .07);
        padding: 2rem;
    }
}

.service-item:hover {
    margin-top: -5px;
    box-shadow: none;
    border: 1px solid #DEE2E6;
}

@media (min-width: 768px) {
    .service-item:hover {
        margin-top: -10px;
    }
}

/*** Feature ***/
.progress {
    height: 4px;
}

@media (min-width: 768px) {
    .progress {
        height: 5px;
    }
}

.progress .progress-bar {
    width: 0px;
    transition: 3s;
}

/*** Project ***/
.project-item a {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #FFFFFF;
    background: rgba(0, 0, 0, .5);
    border-radius: 6px;
    opacity: 0;
    transition: .5s;
    font-size: 1.5rem;
}

@media (min-width: 768px) {
    .project-item a {
        font-size: 2rem;
    }
}

.project-item:hover a {
    opacity: 1;
}

.project-carousel .owl-dots {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 15px;
}

@media (min-width: 768px) {
    .project-carousel .owl-dots {
        margin-top: 20px;
    }
}

.project-carousel .owl-dot {
    width: 28px;
    height: 28px;
    margin: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #DEE2E6;
    border-radius: 28px;
    transition: .5s;
}

@media (min-width: 768px) {
    .project-carousel .owl-dot {
        width: 35px;
        height: 35px;
        margin: 3px;
        border-radius: 35px;
    }
}

.project-carousel .owl-dot:hover,
.project-carousel .owl-dot.active {
    color: #FFFFFF;
    border-color: var(--primary);
    background: var(--primary);
}

/*** Team ***/
.team-item {
    box-shadow: 0 0 30px rgba(0, 0, 0, .07);
}

@media (min-width: 768px) {
    .team-item {
        box-shadow: 0 0 45px rgba(0, 0, 0, .07);
    }
}

.team-item .team-text {
    position: relative;
    height: 55px;
    overflow: hidden;
}

@media (min-width: 768px) {
    .team-item .team-text {
        height: 65px;
    }
}

.team-item .team-title {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: .5s;
}

.team-item:hover .team-title {
    top: -55px;
}

@media (min-width: 768px) {
    .team-item:hover .team-title {
        top: -65px;
    }
}

.team-item .team-social {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 55px;
    left: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #FFFFFF;
    transition: .5s;
}

@media (min-width: 768px) {
    .team-item .team-social {
        top: 65px;
    }
}

.team-item .team-social .btn {
    margin: 0 2px;
}

@media (min-width: 768px) {
    .team-item .team-social .btn {
        margin: 0 3px;
    }
}

.team-item:hover .team-social {
    top: 0;
}

/*** Testimonial ***/
.testimonial-carousel .owl-item .testimonial-item img {
    width: 50px;
    height: 50px;
}

@media (min-width: 768px) {
    .testimonial-carousel .owl-item .testimonial-item img {
        width: 60px;
        height: 60px;
    }
}

.testimonial-carousel .owl-item .testimonial-item,
.testimonial-carousel .owl-item .testimonial-item * {
    transition: .5s;
}

.testimonial-carousel .owl-item.center .testimonial-item {
    background: var(--primary) !important;
}

.testimonial-carousel .owl-item.center .testimonial-item * {
    color: #FFFFFF !important;
}

.testimonial-carousel .owl-nav {
    margin-top: 20px;
    display: flex;
    justify-content: center;
}

@media (min-width: 768px) {
    .testimonial-carousel .owl-nav {
        margin-top: 30px;
    }
}

.testimonial-carousel .owl-nav .owl-prev,
.testimonial-carousel .owl-nav .owl-next {
    margin: 0 8px;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #DEE2E6;
    border-radius: 40px;
    font-size: 16px;
    transition: .5s;
}

@media (min-width: 768px) {
    .testimonial-carousel .owl-nav .owl-prev,
    .testimonial-carousel .owl-nav .owl-next {
        margin: 0 12px;
        width: 50px;
        height: 50px;
        border-radius: 50px;
        font-size: 18px;
    }
}

.testimonial-carousel .owl-nav .owl-prev:hover,
.testimonial-carousel .owl-nav .owl-next:hover {
    color: #FFFFFF;
    border-color: var(--primary);
    background: var(--primary);
}

/*** Footer ***/
.footer .btn.btn-link {
    display: block;
    margin-bottom: 5px;
    padding: 0;
    text-align: left;
    color: var(--secondary);
    font-weight: normal;
    text-transform: capitalize;
    transition: .3s;
    font-size: 0.85rem;
}

@media (min-width: 768px) {
    .footer .btn.btn-link {
        font-size: 0.95rem;
    }
}

.footer .btn.btn-link::before {
    position: relative;
    content: "\f105";
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    color: var(--secondary);
    margin-right: 8px;
}

@media (min-width: 768px) {
    .footer .btn.btn-link::before {
        margin-right: 10px;
    }
}

.footer .btn.btn-link:hover {
    color: var(--primary);
    letter-spacing: 1px;
    box-shadow: none;
}

.footer .copyright {
    padding: 20px 0;
    font-size: 0.8rem;
    border-top: 1px solid rgba(256, 256, 256, .1);
}

@media (min-width: 768px) {
    .footer .copyright {
        padding: 25px 0;
        font-size: 0.9rem;
    }
}

@media (min-width: 992px) {
    .footer .copyright {
        font-size: 0.95rem;
    }
}

.footer .copyright a {
    color: var(--light);
}

.footer .copyright a:hover {
    color: var(--primary);
}

/* Headings responsive sizes */
h1, .h1 {
    font-size: 1.75rem;
}

h2, .h2 {
    font-size: 1.5rem;
}

h3, .h3 {
    font-size: 1.25rem;
}

h4, .h4 {
    font-size: 1.1rem;
}

h5, .h5 {
    font-size: 1rem;
}

h6, .h6 {
    font-size: 0.9rem;
}

@media (min-width: 768px) {
    h1, .h1 {
        font-size: 2.25rem;
    }

    h2, .h2 {
        font-size: 1.875rem;
    }

    h3, .h3 {
        font-size: 1.5rem;
    }

    h4, .h4 {
        font-size: 1.25rem;
    }

    h5, .h5 {
        font-size: 1.125rem;
    }

    h6, .h6 {
        font-size: 1rem;
    }
}

@media (min-width: 992px) {
    h1, .h1 {
        font-size: 2.5rem;
    }

    h2, .h2 {
        font-size: 2rem;
    }
}

/* Container padding adjustments */
@media (max-width: 575px) {
    .container,
    .container-fluid {
        padding-left: 1rem;
        padding-right: 1rem;
    }
}

/* Reduce spacing on mobile */
@media (max-width: 767px) {
    .py-5 {
        padding-top: 2rem !important;
        padding-bottom: 2rem !important;
    }

    .my-5 {
        margin-top: 2rem !important;
        margin-bottom: 2rem !important;
    }

    .mb-5 {
        margin-bottom: 2rem !important;
    }

    .mt-5 {
        margin-top: 2rem !important;
    }
}