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

/*** Spinner ***/
#spinner {
    opacity: 0;
    visibility: hidden;
    transition: opacity .5s ease-out, visibility 0s linear .5s;
    z-index: 99999;
}

#spinner.show {
    transition: opacity .5s ease-out, visibility 0s linear 0s;
    visibility: visible;
    opacity: 1;
}

.back-to-top {
    position: fixed;
    display: none;
    right: 45px;
    bottom: 45px;
    z-index: 99;
}

/*** Button ***/
.btn {
    transition: .5s;
}

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


/*** Navbar ***/
.sticky-top {
    top: -150px;
    transition: .5s;
}

.navbar {
    font-family: "Space Grotesk", sans-serif;
    font-size: 18px;
}

.navbar .navbar-nav .nav-link {
    margin-left: 30px;
    padding: 0;
    outline: none;
    color: var(--bs-dark);
}

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

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

.navbar .dropdown-menu .dropdown-item:hover,
.navbar .dropdown-menu .dropdown-item.active {
    color: var(--bs-white);
    background: var(--bs-primary);
}

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

@media (min-width: 992px) {
    .navbar .nav-item .dropdown-menu {
        display: block;
        border: none;
        margin-top: 0;
        top: 150%;
        opacity: 0;
        visibility: hidden;
        transition: .5s;
    }

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



/* Container div */
.image-container {
  overflow: hidden;   /* Keeps image inside */
  position: relative; /* Needed if you do absolute positioning later */
}

/* Zoom effect on image */
.zoom-slow {
  width: 100%;
  height: 100%;
  object-fit: cover;  /* Makes sure image covers the container nicely */
  animation: zoomInOut 10s infinite alternate;
  transition: transform 5s ease-in-out;
}

@keyframes zoomInOut {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.2);
  }
  100% {
    transform: scale(1);
  }
}






/* === Hero section enhancements === */
.hero-header {
position: relative;
overflow: hidden;
}

/* Imigongo-style circle overlay (solid color, fading) */
.hero-header::before {
content: '';
position: absolute;
top: 50%;
left: 50%;
width: 300%;
height: 300%;
opacity: 0;
transform: translate(-50%, -50%) scale(0.2);
animation: imigongoCircleFade 6s ease-in-out infinite;
pointer-events: none;
z-index: 0; /* behind text and images */
mix-blend-mode: normal; /* keep solid color */
}

/* Imigongo-style stripe overlay (solid color lines) */
.hero-header::after {
content: '';
position: absolute;
top: 0;
left: 0;
width: 200%;
height: 200%;
background: repeating-linear-gradient(
45deg,
#D8B892 0px,
#D8B892 20px,
transparent 20px,
transparent 40px
);
opacity: 1; /* solid lines color */
animation: imigongoLinesFade 20s ease-in-out infinite alternate;
pointer-events: none;
z-index: 0; /* behind text and images */
mix-blend-mode: normal; /* solid color overlay */
}

/* Fade in/out animation for circle */
@keyframes imigongoCircleFade {
0%, 100% { opacity: 0; transform: translate(-50%, -50%) scale(0.2); }
50% { opacity: 1; transform: translate(-50%, -50%) scale(1); }
}

/* Fade in/out animation for stripes (solid color) */
@keyframes imigongoLinesFade {
0%, 100% { opacity: 0; }
50% { opacity: 1; }
}

/* Enhance carousel images hover */
.header-carousel img {
transition: transform 1s ease, filter 1s ease, opacity 0.8s ease;
}
.header-carousel img:hover {
transform: scale(1.05) rotate(0.5deg);
filter: brightness(1.1);
}

/* Text subtle glow */
#hero-title, #hero-subtitle {
text-shadow: 1px 1px 10px rgba(0,0,0,0.2);
transition: all 0.8s ease-in-out;
position: relative; /* ensure it stays above Imigongo */
z-index: 1;
}






.about-row {
    display: flex;
    gap: 20px;
    height: 450px;
}

/* Each image wrapper */
.about-col {
    flex: 1;
    position: relative;
    overflow: hidden;
}

/* Images */
.about-col img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    z-index: 1; /* ensure images are below Imigongo */
}

.about-col img.active {
    opacity: 1;
}



/* === Imigongo effect for newsletter === */
.newsletter {
    position: relative;
    overflow: hidden;
}

/* Circle overlay */
.newsletter::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 300%;
    height: 300%;
    border: 5px solid #D8B892; /* solid Imigongo color */
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.2);
    animation: imigongoCircleFade 20s ease-in-out infinite;
    pointer-events: none;
    z-index: 0; /* behind content */
}

/* Stripe pattern overlay */
.newsletter::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 200%;
    height: 200%;
    background: repeating-linear-gradient(
        45deg,
        #D8B892 0px,
        #D8B892 20px,
        transparent 20px,
        transparent 40px
    );
    opacity: 1; /* solid lines */
    animation: imigongoLinesFade 20s ease-in-out infinite alternate;
    pointer-events: none;
    z-index: 0; /* behind content */
}

/* Fade in/out animation for circle */
@keyframes imigongoCircleFade {
    0%, 100% { opacity: 0; transform: translate(-50%, -50%) scale(0.2); }
    50% { opacity: 1; transform: translate(-50%, -50%) scale(1); }
}

/* Fade in/out animation for stripes */
@keyframes imigongoLinesFade {
    0%, 100% { opacity: 0; }
    50% { opacity: 1; }
}

/* Ensure newsletter content is above the overlays */
.newsletter-text {
    position: relative;
    z-index: 1;
}

/*** Hero Header ***/
.hero-header {
    margin-top: -120px;
    padding-top: 120px;
    background-size: cover;
}

.hero-header .breadcrumb-item+.breadcrumb-item::before {
    color: var(--light);
}

.header-carousel {
    position: relative;
}

.header-carousel::before {
    position: absolute;
    content: "";
    top: 0;
    right: 0;
    width: calc(50% + 45px);
    height: 100%;
    background: var(--bs-primary);
    z-index: -1;
}

.header-carousel .owl-dots {
    position: absolute;
    top: 50%;
    right: 38px;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.header-carousel .owl-dot {
    position: relative;
    display: inline-block;
    margin: 5px 0;
    width: 15px;
    height: 15px;
    border: 2px solid var(--bs-white);
    transition: .5s;
}

.header-carousel .owl-dot.active {
    height: 30px;
    background: var(--bs-white);
}


/*** About ***/
.about-img {
    position: relative;
    overflow: hidden;
}

.about-img::after {
    position: absolute;
    content: "";
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    background: url(../img/bg-about-img.png) top left no-repeat;
    background-size: contain;
}


/*** Project ***/
.project-item img {
    transition: .5s;
}
  
.project-item:hover img {
    transform: scale(1.2);
}
  
.project-overlay {
    position: absolute;
    padding: 25px;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-end;
    background: linear-gradient(rgba(255, 255, 255, .1) 50%, var(--bs-dark));
    z-index: 1;
}


/*** Service ***/
.service-item {
    position: relative;
    padding: 30px 25px;
    transition: .5s;
}

.service-item.bg-primary:hover {
    background: var(--bs-light) !important;
}

.service-item.bg-primary p {
    color: var(--bs-light);
    transition: .5s;
}

.service-item.bg-primary:hover p {
    color: var(--bs-secondary);
}

.service-item.bg-light:hover {
    background: var(--bs-primary) !important;
}

.service-item.bg-light p {
    color: var(--bs-secondary);
    transition: .5s;
}

.service-item.bg-light:hover p {
    color: var(--bs-light);
}


.service-item .service-img h3 {
    position: absolute;
    top: 0;
    left: 0;
    padding: 0 12px 7px 0;
}





/* Google Review Rectangle Button */
.google-review-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 16px 40px;
    background-color: #ffffff;
    color: #333;
    border: 2px solid #D8B892; /* Imigongo color */
    border-radius: 6px; /* rectangle, not pill */
    font-size: 18px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.4s ease;
    box-shadow: 0 10px 25px rgba(0,0,0,0.08);
}

.google-review-btn i {
    color: #4285F4; /* Google blue */
    font-size: 20px;
}

/* Hover animation */
.google-review-btn:hover {
    background-color: #D8B892;
    color: #fff;
    transform: translateY(-4px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.15);
}

.google-review-btn:hover i {
    color: #fff;
}




.service-item.bg-primary .service-img h3 {
    background: var(--bs-primary);
    color: var(--bs-white);
    transition: .5s;
}

.service-item.bg-primary:hover .service-img h3 {
    background: var(--bs-light);
    color: var(--bs-dark);
}

.service-item.bg-light .service-img h3 {
    background: var(--bs-light);
    color: var(--bs-dark);
    transition: .5s;
}

.service-item.bg-light:hover .service-img h3 {
    background: var(--bs-primary);
    color: var(--bs-white);
}


/*** Our Team ***/
.team-item img {
    transition: .5s;
}
  
.team-item:hover img {
    transform: scale(1.2);
}
  
.team-overlay {
    position: absolute;
    padding: 30px;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-end;
    z-index: 1;
}














.team-overlay small {
    display: inline-block;
    padding: 3px 15px;
    color: var(--bs-white);
    background: var(--bs-primary);
}


/*** Testimonial ***/
.testimonial-img {
    position: relative;
    padding: 45px 0 45px 90px;
}

.testimonial-img::before {
    position: absolute;
    content: "";
    top: 0;
    left: 0;
    width: calc(50% + 45px);
    height: 100%;
    z-index: -1;
}

.testimonial-text h5 {
    position: relative;
    padding-left: 45px;
}

.testimonial-text h5::before {
    position: absolute;
    content: "";
    top: 50%;
    left: 0;
    transform: translateY(-50%);
    width: 40px;
    height: 2px;
    background: var(--bs-primary);
}

.testimonial-carousel .owl-dots {
    position: absolute;
    height: 17px;
    bottom: 0;
    right: 0;
    left: auto;
}

.testimonial-carousel .owl-dot {
    position: relative;
    display: inline-block;
    margin-left: 10px;
    width: 15px;
    height: 15px;
    background: var(--bs-white);
    border: 2px solid var(--bs-primary);
    transition: .5s;
}

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

@media (max-width: 768px) {
    .testimonial-carousel .owl-dots {
        left: 0;
        right: auto;
    }

    .testimonial-carousel .owl-dot {
        margin-right: 10px;
        margin-left: 0;
    }
}


/*** Newsletter ***/
.newsletter {
    background-size: cover;
}

@media (min-width: 992px) {
    .newsletter .container {
        max-width: 100% !important;
    }

    .newsletter .newsletter-text  {
        padding-right: calc(((100% - 960px) / 2) + .75rem);
    }
}

@media (min-width: 1200px) {
    .newsletter .newsletter-text  {
        padding-right: calc(((100% - 1140px) / 2) + .75rem);
    }
}

@media (min-width: 1400px) {
    .newsletter .newsletter-text  {
        padding-right: calc(((100% - 1320px) / 2) + .75rem);
    }
}


/*** Footer ***/
.footer .btn.btn-link {
    display: block;
    margin-bottom: 10px;
    padding: 0;
    text-align: left;
    color: rgba(255,255,255,.5);
    font-weight: normal;
    transition: .3s;
}

.footer .btn.btn-link:hover {
    color: var(--bs-white);
    letter-spacing: 1px;
    box-shadow: none;
}

.footer .btn.btn-link::before {
    position: relative;
    content: "\f105";
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    margin-right: 10px;
}

.footer .copyright {
    padding: 25px 0;
    font-size: 14px;
    border-top: 1px solid rgba(256, 256, 256, .1);
}

.footer .copyright a {
    color: rgba(255,255,255,.5);
}

.footer .copyright a:hover {
    color: var(--bs-white);
}

.footer .footer-menu a {
    margin-right: 15px;
    padding-right: 15px;
    border-right: 1px solid rgba(255, 255, 255, .1);
}

.footer .footer-menu a:last-child {
    margin-right: 0;
    padding-right: 0;
    border-right: none;
}



.whatsapp-chat {
    position: fixed !important;
    right: 30px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 99999;

    display: flex;
    align-items: center;
    gap: 10px;           /* space between text and icon */
    padding: 10px 15px;
    background-color: #25D366;
    color: #fff;
    border-radius: 50px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.25);
    text-decoration: none;
    font-weight: 500;
    font-family: sans-serif;
    white-space: nowrap;

    /* Animation */
    animation: whatsappIn 1.2s ease-out forwards, whatsappZoom 2.5s ease-in-out infinite;
    transition: transform 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease;
}

/* Text inside button */
.whatsapp-text {
    font-size: 14px;
}

/* Hover Effect */
.whatsapp-chat:hover {
    animation-play-state: paused;
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 12px 30px rgba(0,0,0,0.35);
    background-color: #1ebe57;
}

/* Continuous Zoom In/Out */
@keyframes whatsappZoom {
    0% { transform: translateY(-50%) scale(1); }
    50% { transform: translateY(-50%) scale(1.12); }
    100% { transform: translateY(-50%) scale(1); }
}

/* Slide-in Animation */
@keyframes whatsappIn {
    0% { opacity: 0; transform: translateX(20px) translateY(-50%) scale(1); }
    100% { opacity: 1; transform: translateX(0) translateY(-50%) scale(1); }
}

/* Mobile Adjustment */
@media (max-width: 768px) {
    .whatsapp-chat {
        padding: 8px 12px;
        font-size: 12px;
        right: 15px;
    }
    .whatsapp-text {
        display: none; /* optional: hide text on small screens */
    }
}
