/********** Template CSS **********/
:root {
    --primary: #3698d5;
    --secondary: #2976a3;
    --tertiary: #555555;
    --light: #DFE4FD;
    --dark: #011A41;
}

.back-to-top {
    position: fixed;
    display: none;
    right: 1.875rem;
    bottom: 1.875rem;
    z-index: 99;
}

h1,
.h1,
h2,
.h2,
.fw-bold {
    font-weight: 700 !important;
}

h3,
.h3,
h4,
.h4,
.fw-medium {
    font-weight: 600 !important;
}

h5,
.h5,
h6,
.h6,
.fw-semi-bold {
    font-weight: 500 !important;
}


/*** Spinner ***/
#spinner {
    opacity: 0;
    visibility: hidden;
    transition: opacity .5s ease-out, visibility 0s linear .5s;
    z-index: 99999;
    width: 3rem;
    height: 3rem;
}

#spinner.show {
    transition: opacity .5s ease-out, visibility 0s linear 0s;
    visibility: visible;
    opacity: 1;
}


/*** Button ***/
.btn {
    transition: .5s;
    font-weight: 500;
}

/* Primary Button */
.btn-primary {
    background-color: var(--primary); /* #355EFC */
    border-color: #ffffff;
    color: var(--light); /* White text */
}

.btn-primary:hover {
    background-color: #2976a3;
    border-color: #edf1f3;
    transform: translateY(-2px); /* Slight lift */
    box-shadow: 0 4px 8px rgba(54, 152, 213, 0.3); /* Soft shadow */
}

.btn-square {
    width: 2.375rem;
    height: 2.375rem;
}

/* Force social icons to be white inside buttons */
.btn-primary .fab {
    color: white !important;
}

.btn-sm-square {
    width: 2rem;
    height: 2rem;
}

.btn-lg-square {
    width: 3rem;
    height: 3rem;
}

.btn-square,
.btn-sm-square,
.btn-lg-square {
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: normal;
}


/*** Navbar ***/
.fa-map-marker-alt,
.fa-clock,
.fa-envelope,
.fa-phone-alt,
.fab,
.fa-quote-right {  /* below that our clint say*/
    color: var(--primary) !important;
}

.fixed-top {
    transition: .5s;
}


/*** Header ***/
.carousel-caption {
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: start;
    z-index: 1;
}

.carousel-caption h1 {
    color: #000000 !important;
}

.carousel-control-prev,
.carousel-control-next {
    width: 3rem;
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
    width: 3rem;
    height: 3rem;
    background-color: var(--primary);
    border: 10px solid var(--primary);
}

.carousel-control-prev-icon {
    border-radius: 0 3rem 3rem 0;
}

.carousel-control-next-icon {
    border-radius: 3rem 0 0 3rem;
}

@media (max-width: 768px) {
    #header-carousel .carousel-item {
        position: relative;
        min-height: 70vh;
    }

    #header-carousel .carousel-item img {
        position: absolute;
        width: 100%;
        height: 100%;
        object-fit: cover;
    }
}

.page-header {
    position: relative;
    padding-top: 12rem;
    padding-bottom: 6rem;
    background: url(../img/header.jpg) top left no-repeat;
    background-size: cover;
}

.page-header::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(41, 118, 163, 0.5);
    z-index: 1;
}

.page-header h1 {
    position: relative;
    z-index: 2;
    color: #FFFFFF !important;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.page-header .breadcrumb-item,
.page-header .breadcrumb-item a {
    font-weight: 500;
}

.page-header .breadcrumb-item+.breadcrumb-item::before {
    color: var(--tertiary);
}

/*** Facts ***/
.facts {
    background: linear-gradient(rgba(54, 152, 213, 0.95), rgba(54, 152, 213, 0.95)), url(../img/bg.png);
}



/*** Callback ***/
.callback {
    position: relative;
}

.callback::before {
    position: absolute;
    content: "";
    width: 100%;
    height: 50%;
    top: 0;
    left: 0;
    background: linear-gradient(rgba(54, 152, 213, 0.95), rgba(54, 152, 213, 0.95)), url(../img/bg.png);
    z-index: -1;
}

/***Inside Callback ***/
.contact-heading {
    display: inline-block;
    color: var(--primary);
    font-weight: 600;
    font-size: 1.5rem;
    padding-bottom: 5px;
    margin-bottom: 1rem;
    border-bottom: 3px solid var(--primary);
}

/*** Feature ***/
.feature .feature-box,
.feature .feature-box * {
    transition: .5s;
}

.feature .feature-box:hover {
    background: var(--primary);
    border-color: var(--primary) !important;
}

.feature .feature-box:hover * {
    color: #FFFFFF !important;
}



/*** Project ***/
.project-item,
.project-item .project-img {
    position: relative;
}

.project-item .project-img a {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    background: rgba(255, 255, 255, .5);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    opacity: 0;
    transition: .5s;
}

.project-item:hover .project-img a {
    opacity: 1;
}

.project-item .project-title {
    position: absolute;
    top: 3rem;
    right: 0;
    bottom: 0;
    left: 3rem;
    border: 1px solid var(--light);
    border-radius: 8px;
    display: flex;
    align-items: flex-end;
    padding: 18px;
    z-index: -1;
    transition: .5s;
}

.project-item:hover .project-title {
    background: var(--primary);
    border-color: var(--primary);
}

.project-item .project-title h4 {
    transition: .5s;
}

.project-item:hover .project-title h4 {
    color: #FFFFFF;
}

.project-carousel .owl-nav {
    margin-top: 25px;
    display: flex;
    justify-content: center;
}

.project-carousel .owl-nav .owl-prev,
.project-carousel .owl-nav .owl-next {
    margin: 0 12px;
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    background: var(--light);
    border-radius: 45px;
    font-size: 22px;
    transition: .5s;
}

.project-carousel .owl-nav .owl-prev:hover,
.project-carousel .owl-nav .owl-next:hover {
    background: var(--primary);
    color: var(--light);
}


/*** Team ***/
.team-item {
    position: relative;
    padding: 4rem 0;
}

.team-item img {
    position: relative;
    z-index: 2;
}

.team-item .team-text {
    position: absolute;
    top: 0;
    right: 3rem;
    bottom: 0;
    left: 3rem;
    padding: 15px;
    border: 1px solid var(--light);
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    transition: .5s;
    z-index: 1;
}

.team-item:hover .team-text {
    background: var(--primary);
    border-color: var(--primary);
}

.team-item .team-text h4 {
    transition: .5s;
}

.team-item:hover .team-text h4 {
    color: #FFFFFF;
}

.team-item .team-social .btn {
    background: var(--light);
    color: var(--primary);
}

.team-item:hover .team-social .btn {
    background: #FFFFFF;
}

.team-item .team-social .btn:hover {
    background: var(--primary);
    color: var(--light);
}


/*** Testimonial ***/
.testimonial-item {
    position: relative;
    text-align: center;
    padding-top: 30px;
}

.testimonial-item .testimonial-text {
    position: relative;
    text-align: center;
}

.testimonial-item .testimonial-text .btn-square {
    position: absolute;
    width: 60px;
    height: 60px;
    top: -30px;
    left: 50%;
    transform: translateX(-50%);
}

.testimonial-item .testimonial-text::before {
    position: absolute;
    content: "";
    bottom: -60px;
    left: 50%;
    transform: translateX(-50%);
    border: 30px solid;
    border-color: var(--light) transparent transparent transparent;
}

.testimonial-item .testimonial-text::after {
    position: absolute;
    content: "";
    bottom: -59px;
    left: 50%;
    transform: translateX(-50%);
    border: 30px solid;
    border-color: #FFFFFF transparent transparent transparent;
}

.testimonial-carousel .owl-item img {
    margin: 0 auto;
    width: 100px;
    height: 100px;
}

.testimonial-carousel .owl-dots {
    margin-top: 25px;
    display: flex;
    align-items: flex-end;
    justify-content: center;
}

.testimonial-carousel .owl-dot {
    position: relative;
    display: inline-block;
    margin: 0 5px;
    width: 30px;
    height: 30px;
    border: 1px solid var(--light);
    border-radius: 30px;
    transition: .5s;
}

.testimonial-carousel .owl-dot::after {
    position: absolute;
    content: "";
    width: 16px;
    height: 16px;
    top: 6px;
    left: 6px;
    border-radius: 16px;
    background: var(--light);
    transition: .5s;
}

.testimonial-carousel .owl-dot.active {
    border-color: var(--primary);
}

.testimonial-carousel .owl-dot.active::after {
    background: var(--primary);
}


/*** Footer ***/
.footer .btn.btn-link {
    display: block;
    margin-bottom: 5px;
    padding: 0;
    text-align: left;
    color: var(--light);
    font-weight: normal;
    text-transform: capitalize;
    transition: .3s;
}

.footer .btn.btn-link::before {
    position: relative;
    content: "\f105";
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    margin-right: 10px;
}

.footer .btn.btn-link:hover {
    color: var(--primary);
    letter-spacing: 1px;
    box-shadow: none;
}

.copyright {
    color: var(--light);
    background: #000B1C;
}

.copyright a {
    color: var(--light);
}

.copyright a:hover {
    color: var(--primary);
}

/* samll blue text in box */
/* Custom CSS to replicate Bootstrap's classes */
.text-custom-primary {
    display: inline-block;                  /* d-inline-block */
    /* border: 1px solid #dee2e6;              border (Bootstrap's default) */
    border-radius: 0.25rem;                 /* rounded */
    color: var(--primary);                  /* text-primary (your custom color) */
    font-weight: 600;                       /* fw-semi-bold */
    padding: 0.25rem 1rem;                  /* py-1 (top/bottom) + px-3 (left/right) */
  }

  
/* below about rissos */
/* If you want to change it globally */
.bg-primary {
    background-color: var(--primary) !important;
  }

  /* Custom Styles for Responsive Carousel */

/* Base styles for the background image container */
.bg-img {
    height: 100vh; /* Full viewport height */
    background-position: center center;
    background-repeat: no-repeat;
    background-size: cover;
    position: relative;
}

/* Mobile-specific styles for the carousel caption */
@media (max-width: 767.98px) {
    .carousel-caption {
        top: 5rem !important;
        bottom: 0 !important;
        transform: none !important;
        text-align: center;
        padding-top: 0;
    }

    .carousel-caption h1.display-1 {
        font-size: 2.5rem; /* Smaller font size for mobile */
    }

    .carousel-caption .btn {
        margin-top: 1rem;
    }

    /* Change to a mobile-optimized image on small screens */
    .carousel-item.active .bg-img {
        background-image: url('img/carousel-1-mobile.jpg');
    }

    .carousel-item:not(.active) .bg-img {
        background-image: url('img/carousel-2-mobile.jpg');
    }

    .bg-img {
        height: 80vh; /* Adjust height for mobile viewports */
    }
}

/* Custom styles for the new service card layout */
.service-column {
    position: relative;
    overflow: hidden;
    border-radius: 1rem;
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    margin-bottom: 2rem;
    cursor: pointer;
}

/* Service cards uniform height */
.service-card {
    height: 200px; /* Set a fixed height for all service cards */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.service-column:hover {
    transform: translateY(-10px);
    box-shadow: 0 1rem 2rem rgba(0, 0, 0, 0.2);
}

.service-column-text {
    padding: 2rem;
}

.service-column-text h3 {
    color: var(--primary);
}

@media (min-width: 768px) {
    .service-column-text {
        padding: 3rem;
    }
}

.service-column .image-container {
    height: 350px;
    overflow: hidden;
}

.service-column .image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 1rem 0 0 1rem;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.service-column .image-container img:hover {
    transform: scale(1.05);
    opacity: 0.9;
}

.service-column .image-container.right-aligned img {
    border-radius: 0 1rem 1rem 0;
}



/* Service image hover effect */
.service-img img {
  transition: transform 0.6s ease, opacity 0.6s ease;
}
.service-img:hover img {
  transform: scale(1.05);
  opacity: 0.9;
}

/* Mobile responsiveness */
@media (max-width: 767.98px) {
  .service-img img {
    border-radius: 0 !important;
  }
  .service-column-text,
  .bg-light {
    text-align: center;
  }
  .btn {
    margin-top: 1rem;
  }
  .service-column .image-container {
    height: 250px;
  }

  /* Remove sliding up animation on mobile */
  .fadeInUp {
    animation: none !important;
  }

  /* Hide carousel navigation arrows in mobile view */
  .carousel-control-prev,
  .carousel-control-next {
    display: none;
  }
}

/* Form textarea height */
.form-floating textarea {
  height: 100px;
}

/* Mobile Spacing Adjustments */
@media (max-width: 767.98px) {
  /* Reduce padding for sections */
  .py-5 {
    padding-top: 2rem !important;
    padding-bottom: 2rem !important;
  }

  /* Reduce margins */
  .my-5 {
    margin-top: 2rem !important;
    margin-bottom: 2rem !important;
  }

  .mb-5 {
    margin-bottom: 2rem !important;
  }

  /* Reduce grid gaps */
  .g-5 {
    --bs-gutter-y: 1.5rem;
    --bs-gutter-x: 1.5rem;
  }

  /* Reduce top padding for callback section */
  .pt-5 {
    padding-top: 2rem !important;
  }
}

.form-message {
    display: none;
    padding: 12px 20px;
    margin-top: 15px;
    border-radius: 5px;
    font-weight: 500;
    text-align: center;
}

.form-message.success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.form-message.error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}
