/********** Template CSS **********/
:root {
    --primary: #355EFC;
    --secondary: #E93C05;
    --tertiary: #555555;
    --light: #DFE4FD;
    --dark: #011A41;
}

.back-to-top {
    position: fixed;
    display: none;
    right: 30px;
    bottom: 30px;
    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;
}

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


/*** Button ***/
.btn {
    transition: .5s;
    font-weight: 500;
}

.btn-primary,
.btn-outline-primary:hover {
    color: var(--light);
}

.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 ***/
.fixed-top {
    transition: .5s;
}

.top-bar {
    height: 45px;
    border-bottom: 1px solid rgba(53, 94, 252, .07);
}

.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: var(--tertiary);
    font-weight: 500;
    outline: none;
}

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

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


/*** 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-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: 450px;
    }
    
    #header-carousel .carousel-item img {
        position: absolute;
        width: 100%;
        height: 100%;
        object-fit: cover;
    }
}

.page-header {
    padding-top: 12rem;
    padding-bottom: 6rem;
    background: url(../img/header.jpg) top left no-repeat;
    background-size: cover;
}

.page-header .breadcrumb-item,
.page-header .breadcrumb-item a {
    font-weight: 500;
}

.page-header .breadcrumb-item+.breadcrumb-item::before {
    color: var(--tertiary);
}


/*** Service ***/
.service .nav .nav-link {
    transition: .5s;
}

.service .nav .nav-link.active {
    border-color: var(--primary) !important;
    background: var(--primary);
}

.service .nav .nav-link.active h5 {
    color: #FFFFFF !important;
}

.service .nav .nav-link.active h5 i {
    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);
}


/*** 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: #6c757d;
}

.copyright a {
    color: var(--light);
}

.copyright a:hover {
    color: var(--primary);
}

/* Crest Welcome Section (Theme-Matched) */
.crest-welcome-section {
    background: #ffffff;
}

/* Use website default fonts */
.crest-subtext {
    font-size: 16px;
    color: var(--tertiary);
    line-height: 1.7;
}

/* Why heading - match About Heading */
.crest-why-title {
    color: var(--dark);
}

/* Card Style - theme compatible */
.crest-card {
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: 10px;
    padding: 26px 22px;
    box-shadow: 0px 8px 20px rgba(0, 0, 0, 0.04);
    transition: 0.25s ease;
}

.crest-card:hover {
    transform: translateY(-3px);
    box-shadow: 0px 12px 28px rgba(0, 0, 0, 0.08);
}

/* Icon - use theme primary */
.crest-icon {
    width: 55px;
    height: 55px;
    border-radius: 55px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--light);
    color: var(--primary);
    font-size: 22px;
    margin-bottom: 16px;
}

/* Card Title - must match website heading styles */
.crest-card-title {
    color: var(--dark);
    font-weight: 600; /* matches h3/h4 theme weight */
}

/* Card Text - must match website paragraph styles */
.crest-card-text {
    color: var(--tertiary);
    font-size: 15px;
    line-height: 1.65;
}




/* ===== Continuous Logo Runner ===== */
.logo-marquee {
  overflow: hidden;
  position: relative;
  width: 100%;
  padding: 10px 0;
}

.logo-track {
  display: flex;
  width: max-content;
  animation: marqueeScroll 35s linear infinite; /* ✅ speed here */
}

.logo-item {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px 35px;
}

.logo-item img {
  max-height: 200px;
  max-width: 200px;
  object-fit: contain;
  filter: none;         /* ✅ full color */
  opacity: 1;           /* ✅ full visible */
  transition: 0.3s ease;
}


.logo-item img:hover {
  transform: scale(1.06);
}


/* Smooth infinite scroll RIGHT -> LEFT */
@keyframes marqueeScroll {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* Mobile smaller logos */
@media (max-width: 576px) {
  .logo-item img {
    max-height: 55px;
    max-width: 130px;
  }
}


/* Sticky Consultation Form */
.sticky-consultation-form {
    position: sticky;
    top: 110px; /* adjust according to navbar height */
    z-index: 10;
}

@media (max-width: 991px) {
    .sticky-consultation-form {
        position: static;
        top: auto;
    }
}



/* ===== Premium Glass Dropdown Menu ===== */
.navbar .dropdown-menu {
    background: rgba(255, 255, 255, 0.18) !important;  /* transparent glass */
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);

    border: 1px solid rgba(255, 255, 255, 0.35) !important;
    border-radius: 14px;

    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.18);
    padding: 10px !important;
    margin-top: 10px !important;
}

/* Dropdown Items */
.navbar .dropdown-menu .dropdown-item {
    color: #111 !important;
    font-weight: 500;
    border-radius: 10px;

    padding: 12px 16px;
    transition: all 0.25s ease;

    background: rgba(255, 255, 255, 0.15);
}

/* Hover */
.navbar .dropdown-menu .dropdown-item:hover,
.navbar .dropdown-menu .dropdown-item:focus {
    background: rgba(180, 209, 0, 0.35) !important; /* Crestbourne green tint */
    color: #000 !important;
    transform: translateX(4px);
}


/* Contact Value Box - Premium */
.contact-value-box {
    background: rgba(255,255,255,0.95);
    border-radius: 18px;
}


/* ===== Team Carousel ===== */
.team-carousel .team-card {
  background: #fff;
  border-radius: 18px;
  padding: 35px 20px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.08);
  transition: 0.3s ease;
  margin: 15px;
  min-height: 360px;
}

.team-carousel .team-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 14px 35px rgba(0,0,0,0.12);
}

.team-carousel .team-img {
  width: 180px;
  height: 180px;
  margin: 0 auto;
  border-radius: 50%;
  overflow: hidden;
  border: 6px solid #f2f2f2;
}

.team-carousel .team-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}


/* ===== WhatsApp Floating Button ===== */
.whatsapp-float {
  position: fixed;
  width: 55px;
  height: 55px;
  bottom: 25px;
  left: 25px;
  background-color: #25D366;
  color: #fff;
  border-radius: 50px;
  text-align: center;
  font-size: 30px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.25);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: 0.3s ease;
}

.whatsapp-float:hover {
  transform: scale(1.08);
  color: #fff;
}


/* ===== Creative 8 Service Boxes ===== */
.service-box{
    background:#fff;
    border-radius:22px;
    overflow:hidden;
    box-shadow:0 12px 40px rgba(0,0,0,.08);
    transition:.35s ease;
    height:100%;
    position:relative;
}

.service-box:hover{
    transform:translateY(-10px);
    box-shadow:0 20px 60px rgba(0,0,0,.15);
}

/* Image */
.service-img{
    display:block;
    position:relative;
    overflow:hidden;
}

.service-img img{
    width:100%;
    height:220px;
    object-fit:cover;
    transition:.55s ease;
}

.service-box:hover .service-img img{
    transform:scale(1.1);
}

/* Overlay */
.service-img::after{
    content:"";
    position:absolute;
    inset:0;
    background:linear-gradient(180deg, rgba(0,0,0,0.0), rgba(13,110,253,0.45));
    opacity:0;
    transition:.35s ease;
}

.service-box:hover .service-img::after{
    opacity:1;
}

/* Link Icon on Hover */
.service-img::before{
    content:"\f35d"; /* fa-external-link-alt */
    font-family:"Font Awesome 5 Free";
    font-weight:900;
    position:absolute;
    right:16px;
    bottom:16px;
    width:46px;
    height:46px;
    border-radius:16px;
    display:flex;
    align-items:center;
    justify-content:center;
    background:rgba(255,255,255,0.95);
    color:#0d6efd;
    opacity:0;
    transform:translateY(12px);
    transition:.35s ease;
    z-index:3;
}

.service-box:hover .service-img::before{
    opacity:1;
    transform:translateY(0px);
}

/* Tag */
.service-tag{
    position:absolute;
    top:16px;
    left:16px;
    padding:6px 12px;
    border-radius:30px;
    font-size:12px;
    font-weight:700;
    background:rgba(255,255,255,0.92);
    color:#0d6efd;
    backdrop-filter: blur(10px);
    z-index:2;
}

/* Content */
.service-content{
    padding:18px 18px 22px 18px;
}

.service-content h5{
    font-size:17px;
    font-weight:800;
    margin-bottom:8px;
    color:#111;
}

.service-content p{
    font-size:14px;
    color:#666;
    margin-bottom:14px;
    min-height:44px;
}

.service-btn{
    border-radius:14px;
    font-weight:700;
    padding:8px 14px;
}



--------------------------


/* =========================
   AI Funnel Top-to-Bottom
   ========================= */
.ai-funnel{
    max-width: 980px;
    margin: 0 auto;
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

/* Each layer */
.funnel-layer{
    position: relative;
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 18px 20px;
    border-radius: 22px;
    text-decoration: none;
    background: rgba(255,255,255,0.95);
    border: 1px solid rgba(13,110,253,0.14);
    box-shadow: 0 14px 50px rgba(0,0,0,0.07);
    transition: 0.30s ease;
    overflow: hidden;
}

/* Creative glow */
.funnel-layer::before{
    content:"";
    position:absolute;
    inset:-60px;
    background: radial-gradient(circle at 15% 20%, rgba(13,110,253,0.22), transparent 60%);
    opacity: 0.0;
    transition: 0.35s ease;
}

.funnel-layer:hover::before{
    opacity: 1;
}

.funnel-layer:hover{
    transform: translateY(-6px);
    border-color: rgba(13,110,253,0.30);
    box-shadow: 0 20px 80px rgba(0,0,0,0.12);
}

/* icon */
.funnel-icon{
    width: 54px;
    height: 54px;
    border-radius: 18px;
    display:flex;
    align-items:center;
    justify-content:center;
    font-size: 22px;
    color:#0d6efd;
    background: rgba(13,110,253,0.10);
    flex-shrink: 0;
    position: relative;
    z-index: 2;
}

/* text */
.funnel-text{
    position: relative;
    z-index: 2;
}

.funnel-text h5{
    margin: 0 0 5px;
    font-weight: 900;
    color:#111;
    font-size: 17px;
}

.funnel-text p{
    margin: 0;
    color:#666;
    font-size: 14px;
}

/* arrow */
.funnel-arrow{
    margin-left: auto;
    width: 44px;
    height: 44px;
    border-radius: 16px;
    display:flex;
    align-items:center;
    justify-content:center;
    background: rgba(13,110,253,0.10);
    color:#0d6efd;
    font-size: 22px;
    position: relative;
    z-index: 2;
}

/* funnel narrowing effect using widths */
.layer-1{ width: 100%; }
.layer-2{ width: 96%; align-self: center; }
.layer-3{ width: 92%; align-self: center; }
.layer-4{ width: 88%; align-self: center; }
.layer-5{ width: 84%; align-self: center; }
.layer-6{ width: 80%; align-self: center; }
.layer-7{ width: 76%; align-self: center; }
.layer-8{ width: 72%; align-self: center; }

/* Output core AI */
.funnel-output{
    width: 70%;
    align-self: center;
    padding-top: 10px;
    position: relative;
}

.output-core{
    text-align: center;
    border-radius: 26px;
    padding: 26px 18px;
    background: radial-gradient(circle at 30% 20%, rgba(13,110,253,0.20), rgba(255,255,255,0.95));
    border: 1px solid rgba(13,110,253,0.18);
    box-shadow: 0 22px 90px rgba(0,0,0,0.12);
}

.output-ai{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    width: 74px;
    height: 74px;
    border-radius: 24px;
    font-weight: 1000;
    font-size: 34px;
    letter-spacing: 1px;
    color:#0d6efd;
    background: rgba(13,110,253,0.10);
    margin-bottom: 10px;
    animation: aiPulse 1.6s ease-in-out infinite;
}

@keyframes aiPulse{
    0%,100%{ transform: scale(1); }
    50%{ transform: scale(1.05); }
}

.output-title{
    font-size: 18px;
    font-weight: 900;
    color:#111;
}

.output-sub{
    font-size: 13px;
    margin-top: 6px;
    color:#666;
}

/* mobile */
@media (max-width: 768px){
    .layer-2,.layer-3,.layer-4,.layer-5,.layer-6,.layer-7,.layer-8,
    .funnel-output{
        width: 100%;
    }

    .funnel-layer{
        padding: 16px 14px;
        border-radius: 18px;
    }

    .funnel-icon{
        width: 48px;
        height: 48px;
        border-radius: 16px;
        font-size: 20px;
    }

    .funnel-text h5{ font-size: 16px; }
    .funnel-text p{ font-size: 13px; }
}







/* Service Card */
.service-card-modern {
    background: #ffffff;
    border-radius: 18px;
    overflow: hidden;
    height: 100%;
    box-shadow: 0 12px 35px rgba(0,0,0,0.08);
    transition: all 0.35s ease;
    display: flex;
    flex-direction: column;
}

.service-card-modern:hover {
    transform: translateY(-10px);
    box-shadow: 0 25px 60px rgba(0,0,0,0.15);
}

/* Image */
/* Image */
.service-image {
    height: 200px;
    overflow: hidden;                 /* removes overflow gaps */
    border-radius: 18px 18px 0 0;     /* matches card top */
}

/* Full-bleed image */
.service-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;               /* fills entire area */
    display: block;                  /* removes inline gaps */
}


/* Content */
.service-content {
    padding: 26px 24px 28px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.service-content h5 {
    font-weight: 700;
    font-size: 18px;
    margin-bottom: 6px;
}

.service-highlight {
    color: #2f5bff;
    font-weight: 600;
    font-size: 14px;
    margin-bottom: 12px;
    display: block;
}

.service-content p {
    color: #6c757d;
    font-size: 15px;
    line-height: 1.6;
    margin-bottom: auto;
}



/* Read More Button */
.btn-read-more {
    display: inline-flex;          /* prevents full-width */
    align-items: center;
    gap: 6px;

    width: auto;                   /* ensure it shrinks to content */
    max-width: fit-content;

    margin-top: 18px;              /* space above button */

    background-color: #2f5bff;
    color: #ffffff;
    font-size: 14px;
    font-weight: 600;
    padding: 7px 14px;             /* slightly tighter padding */
    border-radius: 10px;

    text-decoration: none;
    transition: all 0.25s ease;
    box-shadow: 0 6px 16px rgba(47, 91, 255, 0.25);
}


.btn-read-more {
    margin-top: 18px; /* space between text and button */
}
