/*custom scrollbar*/
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: #fff;
    -webkit-box-shadow: inset 0 0 5px rgba(0, 0, 0, 0.5);
}

::-webkit-scrollbar-thumb {
    background: #555;
}

::-webkit-scrollbar-thumb:active {
    background: #000;
}

::-webkit-scrollbar-thumb:hover {
    background: #000;
}

/*custom scrollbar*/

.ps-grad-text {
    background-image: linear-gradient(to right, #ff974f 0, #E91E63 36%, #E91E63 65%, #ff5752 100%);
    font-weight: 600;
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-fill-color: transparent;
}

.ps-pulse-heart {
    color: #E91E63;
    animation: pulse 1s infinite;
    font-size: 1rem;
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.5);
    }

    100% {
        transform: scale(1);
    }
}


/*animate whatsapp chat icon*/
.wachat-vert-move {
    -webkit-animation: mover 1s infinite alternate;
    animation: mover 1s infinite alternate;
}

.wachat-vert-move {
    -webkit-animation: mover 1s infinite alternate;
    animation: mover 1s infinite alternate;
}

@-webkit-keyframes mover {
    0% {
        transform: translateY(0);
    }

    100% {
        transform: translateY(-20px);
    }
}

@keyframes mover {
    0% {
        transform: translateY(0);
    }

    100% {
        transform: translateY(-20px);
    }
}

/*animate whatsapp chat icon*/

.address-text {
    word-break: break-word;
    white-space: normal;
    max-width: 100%;
}

.hero-section .hero-content {
    padding-top: 150px;
    padding-bottom: 50px;
}

.nowrap-txt {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    width: 100%;
    display: block;
}

.service-img img {
    width: 100%;
    box-shadow: 3px 3px 10px rgba(0, 0, 0, 0.3);
    border-radius: 5px;
}

.project-content h3 {
    font-size: 1rem !important;
    line-height: 1.4 !important;
    font-weight: 600 !important;
}

.service-box-items-2 .content h3 {
    font-size: 18px !important;
    line-height: 25px !important;
}

.blog-title {
    font-size: 18px !important;
    line-height: 25px !important;
}

.serv-main,
.project-main {
    display: flex !important;
}

.wa-btn {
    width: 100%;
    background: #25D366;
    color: #fff;
}

.offcanvas__top {
    background-color: #18243E;
    padding: 15px 10px;
}

.service-box-items-2,
.project-box-items {
    flex: 1 !important;
    /* takes full height (and width if needed) */
}



/* tool card */

.tool-card-main {
    background-color: #18223d;
    border-radius: 16px;
    padding: 1rem;
    text-align: center;
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    border: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    overflow: hidden;
}

.tool-card-main::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(124, 179, 66, 0.1), transparent);
    transition: all 0.6s ease;
}

.tool-card-main:hover::before {
    left: 100%;
}

.tool-card-main:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(124, 179, 66, 0.2);
    border-color: rgba(124, 179, 66, 0.3);
}

.tool-card-main i {
    background-color: #7cb342;
    color: #fff;
    font-size: 1.5rem;
    padding: 10px;
    border-radius: 10px;
    margin-bottom: 10px;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.tool-card-main:hover i {
    transform: scale(1.1);
    box-shadow: 0 10px 25px rgba(124, 179, 66, 0.4);
}

.tool-card-main h3 {
    color: #fff;
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0.5rem;
    line-height: 1.4;
    transition: all 0.3s ease;
}

.tool-card-main:hover h1 {
    color: #7cb342;
}

.tool-card-main small,
.tool-card-main p {
    color: #b0bec5;
    font-size: 0.9rem;
    line-height: 1.5;
    margin: 0;
    transition: all 0.3s ease;
}

.tool-card-main:hover small,
.tool-card-main:hover p {
    color: #e8f5e8;
}

.tool-card-main a {
    text-decoration: none;
    color: inherit;
    display: block;
    height: 100%;
}

.project-phone,
.project-wa,
.project-explore {
    display: inline-block;
    background: #7cb342;
    color: #fff;
    padding: 8px 15px;
    border-radius: 30px;
    font-size: 0.9rem;
    margin-top: 15px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.project-phone:hover,
.project-wa:hover,
.project-explore:hover {
    background: #689f38;
    text-decoration: none;
    color: #fff;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
}

.location-main {
    margin: 5px 0;
    width: 100%;
    position: relative;
    padding: 20px 10px;
}

.location-main a {
    display: inline-block;
    background-color: #fff;
    color: #18243E;
    font-size: 0.8rem;
    line-height: 1.2;
    border: 1px solid #ddd;
    border-radius: 30px;
    padding: 10px 10px;
    text-align: center;
    transition: all 0.3s ease;
    margin: 5px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.location-main a:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}

.array-prev,
.array-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.location-main .array-prev,
.location-main .array-next {
    width: 45px;
    height: 45px;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.location-main .array-prev {
    left: -5px;
    /* move outside slider */
}

.location-main .array-next {
    right: -15px;
}

/* Left arrow */
.array-prev {
    left: -25px;
    /* move outside slider */
}

/* Right arrow */
.array-next {
    right: -25px;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .tool-card-main {
        margin-bottom: 1.5rem !important;
        padding: 1.5rem;
    }

    .tool-card-main h3 {
        font-size: 1.3rem;
    }

    .tool-card-main i {
        font-size: 2rem;
        width: 60px;
        height: 60px;
    }
}

/* Additional animation for card content */
.tool-card-main>* {
    transition: all 0.3s ease;
}

.tool-card-main:hover>* {
    transform: translateY(-2px);
}

/* Pulse animation for icon */
@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(124, 179, 66, 0.7);
    }

    70% {
        box-shadow: 0 0 0 10px rgba(124, 179, 66, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(124, 179, 66, 0);
    }
}

.tool-card-main:hover i {
    animation: pulse 2s infinite;
}

/* Subtle gradient overlay on hover */
.tool-card-main:hover {
    background: linear-gradient(135deg, #18223d 0%, #1a2332 100%);
}

/* tool card */



/* macbook or 14 inches laptop */
@media screen and (max-width: 1350px) {
    .hero-section .hero-content {
        padding-top: 10px;
        padding-bottom: 10px;
    }
}

/*  tablet screen */
@media screen and (max-width: 768px) {
    .hero-1 .form-area .nav .nav-item .nav-link {
        padding: 5px 10px;
    }

    .hero-section .hero-content {
        padding-top: 10px;
        padding-bottom: 10px;
    }

    .hero-1 .form-area .button-list .theme-btn {
        padding: 10px;
        font-size: 0.7rem;
    }
}

/* mobile screen */
@media screen and (max-width: 450px) {
    .hero-1 .form-area .nav .nav-item .nav-link {
        padding: 5px 10px;
    }

    .hero-section .hero-content {
        padding-top: 10px;
        padding-bottom: 10px;
    }
}


/* Phone Call Button Vibrating Effect */
.phone-vibrate-effect {
    animation: vibrate 0.5s ease-in-out infinite;
}

@keyframes vibrate {

    0%,
    100% {
        transform: translateX(0);
    }

    25% {
        transform: translateX(-1px) rotate(-1deg);
    }

    75% {
        transform: translateX(1px) rotate(1deg);
    }
}

/* Hover effect to pause animation */
.phone-vibrate-effect:hover {
    animation-play-state: paused;
    transform: scale(1.1);
    transition: transform 0.3s ease;
}

/* Optional: Add a pulse ring effect */
.phone-vibrate-effect::before {
    content: '';
    position: absolute;
    top: -5px;
    left: -5px;
    right: -5px;
    bottom: -5px;
    border-radius: 100%;
    border: 2px solid rgba(59, 130, 246, 0.4);
    animation: pulse-ring 1.5s ease-out infinite;
}

@keyframes pulse-ring {
    0% {
        transform: scale(1);
        opacity: 1;
    }

    100% {
        transform: scale(1.3);
        opacity: 0;
    }
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .phone-vibrate-effect {
        bottom: 105px !important;
        height: 50px !important;
        width: 50px !important;
        padding: 10px !important;
    }

    .phone-vibrate-effect i {
        font-size: 30px !important;
    }
}

/* Explore Dropdown Menu Fixes */
/* CRITICAL: Remove overflow hidden from header to allow dropdown visibility */
header.header-1 .container-fluid {
    overflow: visible !important;
}

.mega-menu-wrapper {
    overflow: visible !important;
}

.header-main {
    overflow: visible !important;
}

.mean__menu-wrapper {
    overflow: visible !important;
}

.main-menu {
    overflow: visible !important;
}

.header-main .main-menu ul li.has-dropdown>a {
    position: relative;
}

.header-main .main-menu ul li.has-dropdown:hover>.submenu {
    visibility: visible !important;
    opacity: 1 !important;
    transform: translateY(0px) !important;
}

.header-main .main-menu ul li.has-dropdown .submenu {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    border-radius: 8px;
    z-index: 99999 !important;
}

/* Submenu link colors */
.header-main .main-menu ul li.has-dropdown .submenu li a {
    color: #18243E !important;
}

.header-main .main-menu ul li.has-dropdown .submenu li a:hover {
    color: var(--brand-color) !important;
}

/* Ensure only one dropdown icon shows */
.header-main .main-menu ul li.has-dropdown>a i.fa-angle-down {
    display: inline-block;
    transition: transform 0.3s ease;
}

.header-main .main-menu ul li.has-dropdown:hover>a i.fa-angle-down {
    transform: rotate(180deg);
}