/********** Template CSS **********/
:root {
    --primary: #ada05b;
    --secondary: #354F8E;
    --light: #f5f5f5;
    --dark: black;
}

/* Custom gold scrollbar */
::-webkit-scrollbar {
    width: 12px;
    background: #f5f5f5;
}

::-webkit-scrollbar-thumb {
    background: #ada05b;
    border-radius: 6px;
}

::-webkit-scrollbar-thumb:hover {
    background: #c9b15a;
}

/* For Firefox */
html {
    scrollbar-color: #ada05b #f5f5f5;
    scrollbar-width: thin;
}

/* Custom hover effect for topbar contact links */
.topbar-contact-link:hover {
    color: #ada05b !important;
}

/* Custom hover effect for topbar social media icons */
.topbar-social-link {
    transition: all 0.3s ease;
    display: inline-block;
}

.topbar-social-link:hover {
    color: #ada05b !important;
    transform: scale(1.2);
}

.topbar-social-link img {
    transition: all 0.3s ease;
    filter: brightness(1);
}

.topbar-social-link:hover img {
    filter: brightness(1.2) drop-shadow(0 2px 4px rgba(173, 160, 91, 0.3));
    transform: rotate(5deg);
}

.btn {
    font-weight: 700;
    transition: .5s;
}

.btn:hover {
    -webkit-box-shadow: 0 8px 6px -6px #555555;
    -moz-box-shadow: 0 8px 6px -6px #555555;
    box-shadow: 0 8px 6px -6px #555555;
}

.btn-primary {
    color: #FFFFFF;
}

.btn-outline-light {
    color: #FFFFFF !important;
    border-color: #FFFFFF !important;
    background-color: transparent !important;
}

.btn-outline-light:hover {
    color: #000000 !important;
    background-color: #FFFFFF !important;
    border-color: #FFFFFF !important;
}

.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;
}

.back-to-top {
    position: fixed;
    display: none;
    right: 30px;
    bottom: 0;
    border-radius: 50% 50% 0 0;
    z-index: 99;
}

.navbar-light .navbar-nav .nav-link {
    font-family: 'Jost', sans-serif;
    position: relative;
    margin-left: 30px;
    padding: 30px 0;
    font-size: 18px;
    font-weight: 600;
    color: #7c7d80;
    outline: none;
    transition: .5s;
}

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

@media (min-width: 992px) {
    .navbar-light .navbar-nav .nav-link::before {
        position: absolute;
        content: "";
        width: 0;
        height: 5px;
        bottom: 0;
        left: 50%;
        background: var(--primary);
        transition: .5s;
    }

    .navbar-light .navbar-nav .nav-link:hover::before,
    .navbar-light .navbar-nav .nav-link.active::before {
        width: 100%;
        left: 0;
    }
}

@media (max-width: 991.98px) {
    .navbar-light .navbar-nav .nav-link {
        margin-left: 0;
        padding: 10px 0;
    }

    /* Make stats cards uniform on mobile */
    .counter-item {
        height: 160px !important;
        display: flex !important;
        flex-direction: column !important;
        justify-content: center !important;
        align-items: center !important;
        padding: 10px !important;
        margin: 0 !important;
    }

    .counter-item i {
        margin-bottom: 8px !important;
        font-size: 2rem !important;
    }

    .counter-item h3 {
        margin-bottom: 5px !important;
        font-size: 1.3rem !important;
    }

    .counter-item p {
        margin-bottom: 0 !important;
        font-size: 11px !important;
        text-align: center !important;
        line-height: 1.2 !important;
    }

    /* Force 2x2 grid layout on mobile */
    #counter .row {
        display: flex !important;
        flex-wrap: wrap !important;
        gap: 10px !important;
        margin: 0 !important;
    }

    #counter .row.g-5 {
        --bs-gutter-x: 10px !important;
        --bs-gutter-y: 10px !important;
    }

    #counter .col-6 {
        width: calc(50% - 5px) !important;
        flex: 0 0 calc(50% - 5px) !important;
        max-width: calc(50% - 5px) !important;
        margin-bottom: 15px !important;
        padding: 0 !important;
    }

    /* Make contact cards smaller on mobile */
    .contact-card {
        height: 150px !important;
        padding: 15px !important;
    }

    .contact-icon {
        width: 70px !important;
        height: 50px !important;
        margin-bottom: 15px !important;
    }

    .contact-icon i {
        font-size: 1.5rem !important;
    }

    .contact-text {
        font-size: 13px !important;
        line-height: 1.3 !important;
    }

    /* Minimize footer column padding on mobile */
    .container-fluid .row.g-5 {
        gap: 0.5rem !important;
    }

    .container-fluid .row.g-5>[class*="col-"] {
        padding-left: 0.25rem !important;
        padding-right: 0.25rem !important;
        margin-bottom: 0.5rem !important;
    }

    /* Center footer on mobile */
    .container-fluid [style*="background: whitesmoke"] .row {
        justify-content: center !important;
    }

    .container-fluid [style*="background: whitesmoke"] .col-md-6 {
        text-align: center !important;
    }
}

.hero-header {
    min-height: 100dvh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.hero-slideshow {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    opacity: 0;
    animation: heroSlideshow 10s infinite;
}

.hero-slide:nth-child(1) {
    background-image: url(../img/home/1.avif);
    animation-delay: 0s;
}

.hero-slide:nth-child(2) {
    background-image: url(../img/home/2.avif);
    animation-delay: 5s;
}

@keyframes heroSlideshow {
    0% {
        opacity: 0;
        transform: scale(1);
    }

    10% {
        opacity: 1;
        transform: scale(1);
    }

    40% {
        opacity: 1;
        transform: scale(1.05);
    }

    50% {
        opacity: 0;
        transform: scale(1.05);
    }

    100% {
        opacity: 0;
        transform: scale(1);
    }
}

.hero-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.2);
    z-index: 1;
}

.hero-header .container {
    position: relative;
    z-index: 2;
}

.service-item {
    position: relative;
    height: 200px;
    padding: 0 20px;
    transition: .5s;
    border: 2px solid #ada05b;
}

.service-item .service-icon {
    width: 150px;
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--primary);
    border-radius: 50%;
    transform: rotate(-14deg);
}

.service-item .service-icon i {
    transform: rotate(15deg);
}

.service-item a.btn {
    position: absolute;
    width: 60px;
    bottom: -48px;
    left: 50%;
    margin-left: -30px;
    opacity: 0;
}

.service-item:hover a.btn {
    bottom: -24px;
    opacity: 1;
}

.price-carousel::after {
    position: absolute;
    content: "";
    width: 100%;
    height: 50%;
    bottom: 0;
    left: 0;
    background: var(--primary);
    border-radius: 8px 8px 50% 50%;
    z-index: -1;
}

.price-carousel .owl-nav {
    margin-top: 35px;
    width: 100%;
    text-align: center;
    display: flex;
    justify-content: center;
}

.price-carousel .owl-nav .owl-prev,
.price-carousel .owl-nav .owl-next {
    position: relative;
    margin: 0 5px;
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    background: #FFFFFF;
    font-size: 22px;
    border-radius: 45px;
    transition: .5s;
}

.price-carousel .owl-nav .owl-prev:hover,
.price-carousel .owl-nav .owl-next:hover {
    color: var(--dark);
}

@media (min-width: 576px) {
    .team-item .row {
        height: 350px;
    }
}

.team-carousel .owl-nav {
    position: absolute;
    padding: 0 45px;
    width: 100%;
    height: 45px;
    top: calc(50% - 22.5px);
    left: 0;
    display: flex;
    justify-content: space-between;
}

.team-carousel .owl-nav .owl-prev,
.team-carousel .owl-nav .owl-next {
    position: relative;
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #FFFFFF;
    background: var(--primary);
    border-radius: 45px;
    font-size: 22px;
    transition: .5s;
}

.team-carousel .owl-nav .owl-prev:hover,
.team-carousel .owl-nav .owl-next:hover {
    background: var(--dark);
}

.testimonial-carousel .owl-dots {
    margin-top: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.testimonial-carousel .owl-dot {
    position: relative;
    display: inline-block;
    margin: 0 5px;
    width: 12px;
    height: 12px;
    background: var(--light);
    border: 2px solid var(--primary);
    border-radius: 20px;
    transition: .5s;
}

.testimonial-carousel .owl-dot.active {
    width: 24px;
    height: 24px;
    background: var(--primary);
}

.testimonial-carousel .owl-item img {
    width: 150px;
    height: 150px;
}

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

/* Custom styles for about section carousel */
#aboutCarousel .carousel-control-prev,
#aboutCarousel .carousel-control-next {
    width: 50px;
    height: 50px;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(173, 160, 91, 0.8);
    border-radius: 50%;
    opacity: 0.8;
    transition: all 0.3s ease;
}

#aboutCarousel .carousel-control-prev {
    left: 15px;
}

#aboutCarousel .carousel-control-next {
    right: 15px;
}

#aboutCarousel .carousel-control-prev:hover,
#aboutCarousel .carousel-control-next:hover {
    opacity: 1;
    background-color: rgba(173, 160, 91, 1);
    transform: translateY(-50%) scale(1.1);
}

#aboutCarousel .carousel-control-prev-icon,
#aboutCarousel .carousel-control-next-icon {
    width: 20px;
    height: 20px;
}

#aboutCarousel .carousel-indicators {
    bottom: 15px;
}

#aboutCarousel .carousel-indicators button {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.5);
    border: 2px solid rgba(173, 160, 91, 0.8);
    transition: all 0.3s ease;
}

#aboutCarousel .carousel-indicators button.active {
    background-color: #ada05b;
    border-color: #ada05b;
    transform: scale(1.2);
}

#aboutCarousel .carousel-item img {
    transition: transform 0.3s ease;
}

#aboutCarousel .carousel-item:hover img {
    transform: scale(1.02);
}

/* Counter Animation Styles */
.counter-item {
    border: 3px solid #ada05b;
    transition: all 0.5s ease;
    position: relative;
    overflow: hidden;
}

.counter-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(173, 160, 91, 0.2), transparent);
    transition: left 0.6s ease;
}

.counter-item:hover::before {
    left: 100%;
}

.counter-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(173, 160, 91, 0.3);
    border-color: #ada05b;
}

.counter-item .fa {
    transition: all 0.4s ease;
}

.counter-item:hover .fa {
    transform: scale(1.2) rotate(10deg);
    color: #ada05b !important;
}

@keyframes pulse-border {
    0% {
        border-color: #ada05b;
        box-shadow: 0 0 0 0 rgba(173, 160, 91, 0.7);
    }

    50% {
        border-color: #c4b56d;
        box-shadow: 0 0 0 10px rgba(173, 160, 91, 0);
    }

    100% {
        border-color: #ada05b;
        box-shadow: 0 0 0 0 rgba(173, 160, 91, 0);
    }
}

.counter-item.animated {
    animation: pulse-border 2s ease-in-out;
}

/* Footer centering for all screen sizes */
.container-fluid[style*="background: whitesmoke"] .row {
    justify-content: center;
}

.container-fluid[style*="background: whitesmoke"] .col-md-6 {
    text-align: center;
}