/********** Template CSS **********/

.back-to-top {
    position: fixed;
    display: none;
    right: 30px;
    bottom: 30px;
    z-index: 99;
}

.my-6 {
    margin-top: 6rem;
    margin-bottom: 6rem;
}

.py-6 {
    padding-top: 6rem;
    padding-bottom: 6rem;
}

.bg-icon {
    background: url(../img/features/feature_bg_1920_x_1080.jpg) center center repeat;
    background-size: contain;
}

/*** Get Quote Button ***/
.get-quote-btn {
  background-color: #f8aa48;
  color: #fff;
  font-weight: bold;
  padding: 0.75rem 2rem;
  border-radius: 50rem;
  display: inline-block;
  text-decoration: none;
  margin-top: 100px;
  margin-left: 20px !important;
  font-size: 16px;
  position: relative; /* Added to allow 'left' if needed */
}

/*** Hover effect ***/
.get-quote-btn:hover {
  background-color: #e6993f;
  color: #fff;
}

/*** Small Mobiles (320px - 414px) ***/
@media (max-width: 414px) {
  .get-quote-btn {
    margin-top: 60px;
    margin-left: 10px !important;
    padding: 0.5rem 1.25rem;
    font-size: 13px;
    position: relative;
    left: 0; /* Prevent center alignment issues */
  }
}

/*** Mobiles (415px - 767px) ***/
@media (min-width: 415px) and (max-width: 767px) {
  .get-quote-btn {
    margin-top: 80px;
    margin-left: 15px !important;
    padding: 0.6rem 1.5rem;
    font-size: 14px;
    position: relative;
    left: 0;
  }
}

/*** Tablets (768px - 991px) ***/
@media (min-width: 768px) and (max-width: 991px) {
  .get-quote-btn {
    margin-top: 150px;
    margin-left: 30px !important;
    padding: 0.7rem 1.75rem;
    font-size: 15px;
    position: relative;
    left: 0;
  }
}

/*** Desktops (≥ 992px) ***/
@media (min-width: 992px) {
  .get-quote-btn {
    margin-top: 270px;
    margin-left: 60px !important;
    padding: 0.75rem 2.25rem;
    font-size: 17px;
    position: relative;
    left: 0;
  }
}



/*** Spinner ***/
#spinner {
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.5s ease-out, visibility 0s linear 0.5s;
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100vh;
    width: 100vw;
    background-color: white;
    position: fixed;
    top: 0;
    left: 0;
}

/* Show spinner with animation */
#spinner.show {
    transition: opacity 0.5s ease-out, visibility 0s linear 0s;
    visibility: visible;
    opacity: 1;
}

/* Checkmark effect - Scale and fade-in */
@keyframes checkmarkEffect {
    0% {
        opacity: 0;
        transform: scale(0) translateY(50px);
    }
    50% {
        opacity: 0.5;
        transform: scale(1.1) translateY(10px);
    }
    100% {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

#spinner img {
    width: 50px;
    height: 50px;
    animation: checkmarkEffect 1s ease-out forwards;
}


/*** Button ***/
.btn {
    font-weight: 500;
    transition: .5s;
}

.btn.btn-primary,
.btn.btn-secondary,
.btn.btn-outline-primary:hover,
.btn.btn-outline-secondary:hover {
    color: #FFFFFF;
}

.btn-square {
    width: 38px;
    height: 38px;
}

.btn-sm-square {
    width: 32px;
    height: 32px;
}

.btn-lg-square {
    width: 48px;
    height: 48px;
}

.btn-square,
.btn-sm-square,
.btn-lg-square {
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: normal;
}



.hover-border-button {
    position: relative;
    display: inline-block;
    padding: 16px 32px;
    background: #f3f2f2;
    color: #555; /* Default text color */
    text-decoration: none;
    overflow: hidden;
    border-radius: 0;
    transition: color 0.3s ease, border 0.3s ease; /* Text and border transition */
    z-index: 1;
    border: 2px solid transparent; /* Initially no visible border */
    margin: 10px;
}

.hover-border-button span {
    position: absolute;
    background: #ef7f1a; /* Border color */
    border-width: 2px;
    transition: all 1s ease; /* Slower animation */
    z-index: 2;
}

/* Bottom Border */
.hover-border-button span:nth-child(1) {
    height: 2px;
    width: 0%;
    bottom: 0;
    left: 0;
}

/* Right Border */
.hover-border-button span:nth-child(2) {
    width: 2px;
    height: 0%;
    top: 0;
    right: 0;
}

/* Top Border */
.hover-border-button span:nth-child(3) {
    height: 2px;
    width: 0%;
    top: 0;
    right: 0;
}

/* Left Border */
.hover-border-button span:nth-child(4) {
    width: 2px;
    height: 0%;
    bottom: 0;
    left: 0;
}

/* Hover Effects */
.hover-border-button:hover {
    background: #233c71;
    color: #fff; /* Change text color to white on hover */
    font-weight: 600;
    border: 1px solid #ef7f1a; /* Add border weight on hover */
}

.hover-border-button:hover span:nth-child(1) {
    width: 100%;
}

.hover-border-button:hover span:nth-child(2) {
    height: 100%;
}

.hover-border-button:hover span:nth-child(3) {
    width: 100%;
}

.hover-border-button:hover span:nth-child(4) {
    height: 100%;
}





/*** Navbar ***/
.fixed-top {
    transition: .5s;
    background-color: #fffbff;
}

.top-bar {
    height: 45px;
    border-bottom: 1px solid rgba(0, 0, 0, .07);
    display: none;
}

.navbar .dropdown-toggle::after {
    border: none;
    content: "\f107";
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    vertical-align: middle;
    margin-left: 8px;
}

.navbar .navbar-nav .nav-link {
    padding: 25px 15px;
    color: #555555;
    font-weight: 500;
    outline: none;
    font-size: 23px;
}

.navbar .navbar-nav .nav-link:hover,
.navbar .navbar-nav .nav-link.active {
    color: var(--dark);
}

@media (max-width: 991.98px) {
    .navbar .navbar-nav {
        margin-top: 10px;
        border-top: 1px solid rgba(0, 0, 0, .07);
        background: #FFFFFF;
    }

    .navbar .navbar-nav .nav-link {
        padding: 10px 0;
    }
}

@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;
    }
}



/*** Slider ***/
/* Ensure the carousel doesn't take the full viewport */

#header-carousel {
    position: relative;
    height: 75vh; /* Adjust as needed */
    max-height: 700px; /* Prevents it from getting too big */
    overflow: hidden;
    margin-top: 100px; /* Adjust based on navbar height */
}

/* Ensure carousel items properly fill the container */
#header-carousel .carousel-item {
    height: 100%;
}

/* Make sure images scale properly */
#header-carousel .carousel-item img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Prevents distortion */
}

/* Adjust for smaller screens */
@media (max-width: 992px) {
    #header-carousel {
        height: 60vh; /* Slightly smaller for medium screens */
    }
}

@media (max-width: 768px) {
    #header-carousel {
        height: 450px; /* Fixed height for small devices */
    }
}

/* Improve caption positioning and readability */
.carousel-caption {
    top: 45%;  /* Center vertically */
    left: 0;
    right: 0;
    transform: translateY(-50%);  /* Adjust for exact centering */
    display: flex;
    align-items: center;
    justify-content: flex-start; /* Align text to the left */
    text-align: left; /* Ensure alignment consistency */
    padding: 2rem; /* Add spacing for better readability */
    z-index: 1;
}

/* Center align carousel controls */
.carousel-control-prev,
.carousel-control-next {
    width: 10%; /* Reduce width for a better look */
    top: 50%;
    transform: translateY(-50%);
}

/* Improve control button appearance */
.carousel-control-prev-icon,
.carousel-control-next-icon {
    width: 2rem;
    height: 2rem;
    /*background-color: #173575;
    /*border: 2px solid #ef7f1a; /* Reduce border thickness */
    /*border-radius: 50%; /* Ensure perfect circular buttons */
    opacity: 0.8; /* Slight transparency for a modern look */
    transition: all 0.3s ease-in-out;
}

/* Add hover effect for better UI */
.carousel-control-prev-icon:hover,
.carousel-control-next-icon:hover {
    opacity: 1;
    background-color: var(--secondary);
    border-color: var(--secondary);
}


/*
@media (max-width: 768px) {
    #header-carousel .carousel-item {
        position: relative;
        min-height: 450px;
    }
    
    #header-carousel .carousel-item img {
        position: absolute;
        width: 100%;
        height: 100%;
        object-fit: cover;
    }
}
*/
@media (max-width: 768px) {
    #header-carousel {
        height: auto;
    }

    #header-carousel .carousel-item {
        position: relative;
        height: auto;
        min-height: unset;
    }
    
    #header-carousel .carousel-item img {
        position: relative;
        width: 100%;
        height: auto; /* Let image maintain its natural height */
        object-fit: contain;
        object-position: center;
        background-color: #fff;
    }

    .carousel-caption {
        top: auto;
        bottom: 10%;
        transform: none;
        padding: 1rem;
        text-align: center;
        justify-content: center;
    }
}


/*** Header ***/
.page-header {
    position: relative;
    padding-top: 8rem;
    padding-bottom: 2rem;
    background: #833AB4;
    background: linear-gradient(90deg,rgba(131, 58, 180, 1) 0%, rgba(253, 29, 29, 1) 50%, rgba(252, 176, 69, 1) 100%);
    background-size: 300% 300%;
    animation: flowGradient 15s linear infinite;
    overflow: hidden;
    color: white;
}

/* Gradient Animation */
@keyframes flowGradient {
  0% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* Floating icon styling */
.floating-icon {
    position: absolute;
    width: 30px;
    opacity: 0.7;
    animation: floatWave 6s ease-in-out infinite;
}

/* Position icons on the right side */
.floating-icon.printing {
    top: 60%;
    right: 10%;
    animation-delay: 0s;
}
.floating-icon.branding {
    top: 55%;
    right: 15%;
    animation-delay: 2s;
}
.floating-icon.packaging {
    top: 65%;
    right: 20%;
    animation-delay: 4s;
}
.floating-icon.advertising {
    top: 50%;
    right: 30%;
    animation-delay: 1s;
}

.floating-icon.design {
    top: 50%;
    right: 40%;
    animation-delay: 3s;
}

/* Floating wave effect */
@keyframes floatWave {
  0% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-15px) rotate(5deg); }
  100% { transform: translateY(0) rotate(0deg); }
}


/*
.floating-bg {
  background: linear-gradient(270deg, #a1c4fd, #c2e9fb, #70e1f5, #ffd194);
  background-size: 800% 800%;
  animation: flowGradient 12s ease infinite;
  color: white; 
}
*/


/*** Section Header ***/
.section-header {
    position: relative;
    padding-top: 25px;
}

.section-header::before {
    position: absolute;
    content: "";
    width: 60px;
    height: 2px;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    background: var(--primary);
}

.section-header::after {
    position: absolute;
    content: "";
    width: 90px;
    height: 2px;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--secondary);
}

.section-header.text-start::before,
.section-header.text-start::after {
    left: 0;
    transform: translateX(0);
}

/*** About ***/
.about-img img {
    position: relative;
    z-index: 2;
}

.about-img::before {
    position: absolute;
    content: "";
    top: 0;
    left: -50%;
    width: 100%;
    height: 100%;
    /*
    background-image: -webkit-repeating-radial-gradient(#FFFFFF, #EEEEEE 5px, transparent 5px, transparent 10px);
    background-image: -moz-repeating-radial-gradient(#FFFFFF, #EEEEEE 5px, transparent 5px, transparent 10px);
    background-image: -ms-repeating-radial-gradient(#FFFFFF, #EEEEEE 5px, transparent 5px, transparent 10px);
    background-image: -o-repeating-radial-gradient(#FFFFFF, #EEEEEE 5px, transparent 5px, transparent 10px);
    background-image: repeating-radial-gradient(#FFFFFF, #EEEEEE 5px, transparent 5px, transparent 10px);
    background-size: 20px 20px;
    transform: skew(20deg);
    */
    z-index: 1;
}


/*** Product ***/
.nav-pills .nav-item .btn {
    color: var(--dark);
}

.nav-pills .nav-item .btn:hover,
.nav-pills .nav-item .btn.active {
    color: #FFFFFF;
}

.product-item {
    box-shadow: #FFF;
    /*box-shadow: 0 0 45px rgba(0, 0, 0, .07);*/
}

.industries_we_serve .product-item {
    box-shadow: none !important;
}

.product-item img {
    transition: .5s;
}

.industries_we_serve img {
    transition: .5s;
    height: 125px;
}

.product-item:hover img {
    transform: scale(1.1);
}

.product-item small a:hover {
    color: #000 !important;
}

.product-item .p-2 a:hover {
    color: #ef7f1a !important;
}

/*** Testimonial ***/
.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-item.center .testimonial-item i {
    color: var(--secondary) !important;
}

.testimonial-carousel .owl-nav {
    margin-top: 30px;
    margin-right: 20px;
    display: flex;
    justify-content: center;
}

.testimonial-carousel .owl-nav .owl-prev,
.testimonial-carousel .owl-nav .owl-next {
    margin: 0 12px;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--dark);
    border: 2px solid var(--primary);
    border-radius: 50px;
    font-size: 18px;
    transition: .5s;
}

.testimonial-carousel .owl-nav .owl-prev:hover,
.testimonial-carousel .owl-nav .owl-next:hover {
    color: #FFFFFF;
    background: var(--primary);
}


/*** Footer ***/
.footer {
    color: #999999;
}

.footer .btn.btn-link {
    display: block;
    margin-bottom: 5px;
    padding: 0;
    text-align: left;
    color: #999999;
    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;
    color: #999999;
    margin-right: 10px;
}

.footer .btn.btn-link:hover {
    color: var(--light);
    letter-spacing: 1px;
    box-shadow: none;
}

.footer .copyright {
    padding: 25px 0;
    font-size: 15px;
    border-top: 1px solid rgba(256, 256, 256, .1);
}

.footer .copyright a {
    color: var(--light);
}

.footer .copyright a:hover {
    color: var(--primary);
}

.footer .social a{
    background-color: #fff;
}

.btn .fa-instagram {
    color: #E1306C; /* Instagram Pink */
}

.btn .fa-twitter {
    color: #1DA1F2; /* Twitter Blue */
}

.btn .fa-facebook-f {
    color: #3b5998; /* Facebook Blue */
}

.btn .fa-youtube {
    color: #FF0000; /* YouTube Red */
}

.btn .fa-linkedin-in {
    color: #0077B5; /* LinkedIn Blue */
}
