/* Service Cards Styling */
.service_btn span {
    display: inline-block;
    padding: 6px 14px;
    border-radius: 4px;
    background: #f7941d;
    color: #fff;
    font-size: 14px;
    white-space: nowrap;
}

.service_btn {
    display: inline-block;
    margin: 0 auto;
}

.service_single_item {
    display: flex;
    flex-direction: column;
    height: 100%;
    min-height: 520px;
}

.service_single_item .thumb-slide-effect {
    height: 250px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.service_single_item .thumb-slide-effect img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.service_single_item .service_content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 15px;
}

.service_single_item .service_btn {
    margin-top: auto;
}

.service_single_item.style_three .service_content h4 {
    display: flex;
    justify-content: center;
    align-items: center;
    background: #366B2A;
    color: #fff;
    padding: 6px 16px;
    border-radius: 4px;
    margin: 0 auto 12px auto;
    width: fit-content;
    min-width: 180px;
}

.line-clamp {
    display: -webkit-box;
    /* -webkit-line-clamp: 3; */
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Optimized Slide Effects */
.thumb-slide-effect {
    position: relative;
    overflow: hidden;
    border-radius: none;
}

/* Slide-down effect */
.thumb-slide-effect:before {
    background: rgba(54, 107, 42, 0.27);
    position: absolute;
    height: 100%;
    width: 100%;
    left: 0;
    top: -100%;
    transition: all 0.6s ease-out;
    content: "";
    z-index: 2;
}

.service_single_item:hover .thumb-slide-effect:before {
    top: 0;
}

/* Slide-up effect from bottom */
.thumb-slide-effect:after {
    background: rgba(54, 107, 42, 0.27);
    position: absolute;
    height: 100%;
    width: 100%;
    left: 0;
    top: 100%;
    transition: all 0.6s ease-out;
    content: "";
    z-index: 1;
}

.service_single_item:hover .thumb-slide-effect:after {
    top: 0;
}

/* Header Styling */
.topber_right_social h2 {
    font-size: 12px;
}

.topber_right_social ul li {
    margin: 0 3px;
}

/* Performance optimizations */
img[loading="lazy"] {
    opacity: 0;
    transition: opacity 0.3s;
}

img[loading="lazy"].loaded {
    opacity: 1;
}

/* Why Choose Us Section */
section.why_choose_us {
    background-position: right;
    padding: 50px 0;
}

.choose_thumb {
    position: relative;
    width: 100%;
    overflow: hidden;
}

.choose_thumb img {
    width: 100%;
    height: auto;
    object-fit: cover;
}

.choose_thumb_shpae,
.choose_thumb_shpae2 {
    position: absolute;
    max-width: 100px;
}

.choose_thumb_shpae {
    top: 10%;
    left: 5%;
}

.choose_thumb_shpae2 {
    bottom: 10%;
    right: 5%;
}

.section_title.style_three h1 {
    font-size: 2.2rem;
    line-height: 1.3;
}

.section_title.style_three p {
    font-size: 1rem;
    line-height: 1.6;
}

.choose_list ul {
    padding-left: 0;
    list-style: none;
}

.choose_list ul li {
    font-size: 1rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Responsive Styles */
@media (max-width: 991px) {
    .service_single_item {
        min-height: 520px;
    }
    
    .choose_right {
        margin-top: 30px;
    }
}

@media (max-width: 768px) {
    .service_single_item {
        min-height: 520px;
    }

    .service_single_item .thumb-slide-effect {
        height: 250px;
    }

    /* Disable hover effects on mobile for better performance */
    .service_single_item .thumb-slide-effect:before {
        display: none !important;
    }

    .service_single_item:hover .thumb-slide-effect:before {
        display: none !important;
    }

    .header-address-info p {
        font-size: 12px;
        line-height: 1.4;
    }
    
    .section_title.style_three h1 {
        font-size: 1.8rem;
    }

    .section_title.style_three p {
        font-size: 0.95rem;
    }
}

@media (max-width: 576px) {
    .service_single_item {
        min-height: 520px;
    }

    .service_single_item .thumb-slide-effect {
        height: 250px;
    }

    h4[style*="color: white"] {
        display: none;
    }
    
    /* Further optimize for small screens */
    .service_single_item .thumb-slide-effect:before {
        display: none !important;
    }
    
    section.why_choose_us {
        padding: 30px 15px;
    }

    .section_title.style_three h1 {
        font-size: 1.5rem;
    }

    .choose_list ul li {
        font-size: 0.9rem;
    }

    .about_button {
        text-align: center;
    }

    .choose_thumb_shpae,
    .choose_thumb_shpae2 {
        max-width: 60px;
    }
}
/* Disable zoom effect on service images */
.service_single_item:hover .thumb-slide-effect img,
.service_single_item .thumb-slide-effect img:hover {
    transform: none !important;
    transition: none !important;
}

/* Chatbot Styles */
.chatbot-float {
    width: 49px;
    height: 49px;
    background-color: #366B2A;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 20px;
    text-decoration: none;
    z-index: 1000;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transform: scale(0.8);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 12px rgba(54, 107, 42, 0.4);
    position: relative;
    overflow: hidden;
}

/* Notification Badge */
.notification-badge {
    position: absolute;
    top: -8px;
    right: -8px;
    background: #ff4444;
    color: white;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: bold;
    z-index: 1001;
    animation: pulse-badge 2s infinite;
    border: 2px solid white;
    box-shadow: 0 2px 8px rgba(255, 68, 68, 0.4);
}

.notification-badge.opened {
    display: none;
}

@keyframes pulse-badge {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

.chatbot-float.show {
    opacity: 1;
    visibility: visible;
    transform: scale(1);
}

.chatbot-float:hover {
    transform: scale(1.1);
    background-color: #2d5a23;
    color: #fff;
    box-shadow: 0 6px 20px rgba(54, 107, 42, 0.6);
}

.chatbot-float i {
    animation: bounce-rotate 3s ease-in-out infinite;
}

@keyframes bounce-rotate {
    0%, 100% { transform: scale(1) rotate(0deg); }
    25% { transform: scale(1.2) rotate(-10deg); }
    50% { transform: scale(1.1) rotate(5deg); }
    75% { transform: scale(1.15) rotate(-5deg); }
}

.floating-dots {
    display: flex;
    gap: 3px;
    opacity: 1;
    transition: opacity 0.3s ease;
}

.floating-dots .dot {
    width: 4px;
    height: 4px;
    background: white;
    border-radius: 50%;
    animation: typing 1.4s ease-in-out infinite;
}

.floating-dots .dot1 { animation-delay: 0s; }
.floating-dots .dot2 { animation-delay: 0.2s; }
.floating-dots .dot3 { animation-delay: 0.4s; }

.chatbot-float > i {
    position: absolute;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.chatbot-float.loaded .floating-dots {
    opacity: 0;
}

.chatbot-float.loaded > i {
    opacity: 1;
}

@keyframes typing {
    0%, 60%, 100% { transform: translateY(0); opacity: 0.4; }
    30% { transform: translateY(-8px); opacity: 1; }
}

.chatbot-float:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 25px rgba(54, 107, 42, 0.6);
    color: white;
    text-decoration: none;
}

@keyframes pulse {
    0% { box-shadow: 0 4px 20px rgba(54, 107, 42, 0.4); }
    50% { box-shadow: 0 4px 20px rgba(54, 107, 42, 0.8); }
    100% { box-shadow: 0 4px 20px rgba(54, 107, 42, 0.4); }
}

.chatbot-window {
    position: fixed !important;
    bottom: 120px !important;
    right: 85px !important;
    top: auto !important;
    left: auto !important;
    width: 380px;
    height: 500px;
    background: white;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    z-index: 1001;
    display: none;
    flex-direction: column;
    overflow: hidden;
    transform: scale(1);
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.chatbot-window.closing {
    transform: scale(0.8);
    opacity: 0;
}

.chatbot-header {
    background: #063232;
    color: white;
    padding: 15px;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    position: relative;
}

.chatbot-header h4 {
    margin: 0;
    font-size: 16px;
    color: white;
}

.chatbot-close:focus {
    outline: none;
    border: none;
}

.chatbot-messages {
    flex: 1;
    padding: 16px;
    overflow-y: auto;
    background: #f8f9fa;
    scrollbar-width: none;
    -ms-overflow-style: none;
    min-height: 300px;
}

.chatbot-messages::-webkit-scrollbar {
    display: none;
}

.chatbot-messages::after {
    content: '';
    display: block;
    clear: both;
    height: 0;
}

.message {
    margin-bottom: 12px;
    padding: 10px 14px;
    border-radius: 18px;
    /* max-width: 85%; */
    word-wrap: break-word;
    line-height: 1.4;
    font-size: 14px;
    clear: both;
}

.message.user {
    background: #366B2A;
    color: white;
    float: right;
    margin-left: auto;
    border-bottom-right-radius: 6px;
}

.message.bot {
    background: white;
    color: #333;
    border: 1px solid #e0e0e0;
    float: left;
    border-bottom-left-radius: 6px;
    box-shadow: 0 1px 2px rgba(0,0,0,0.1);
}

.message.bot.welcome-message {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border: 1px solid #dee2e6;
    color: #495057;
}

.message.bot.welcome-message strong {
    color: #366B2A;
    font-weight: 600;
}

.message {
    white-space: pre-line;
}

.chatbot-input {
    display: flex;
    padding: 12px;
    background: white;
    border-top: 1px solid #e0e0e0;
    gap: 8px;
}

.chatbot-input input {
    flex: 1;
    border: 1px solid #ddd;
    border-radius: 22px;
    padding: 10px 16px;
    outline: none;
    font-size: 14px;
    transition: border-color 0.2s;
}

.chatbot-input input:focus {
    border-color: #366B2A;
    box-shadow: 0 0 0 2px rgba(54, 107, 42, 0.1);
}

.chatbot-input input::placeholder {
    color: #999;
    font-style: italic;
}

.typing-indicator {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 10px 14px;
    margin-bottom: 12px;
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 18px;
    border-bottom-left-radius: 6px;
    float: left;
    max-width: 85%;
    box-shadow: 0 1px 2px rgba(0,0,0,0.1);
}

.typing-indicator span {
    width: 6px;
    height: 6px;
    background: #999;
    border-radius: 50%;
    animation: typing-bounce 1.4s ease-in-out infinite;
}

.typing-indicator span:nth-child(2) { animation-delay: 0.2s; }
.typing-indicator span:nth-child(3) { animation-delay: 0.4s; }

@keyframes typing-bounce {
    0%, 60%, 100% { transform: translateY(0); opacity: 0.4; }
    30% { transform: translateY(-8px); opacity: 1; }
}

.chatbot-input button {
    background: #f7941d;
    color: white;
    border: none;
    border-radius: 50%;
    width: 38px;
    height: 38px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.2s;
    font-size: 16px;
}

.chatbot-input button:hover {
    background: #e6850a;
}

@media (max-width: 768px) {
    .chatbot-window {
        width: 320px;
        height: 450px;
        right: 15px;
        bottom: 120px;
    }
}

/* Portfolio Details Thumb Hover Effect */
.port_details_thumb {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
}

.port_details_thumb::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(54, 107, 42, 0.8);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 2;
    border-radius: 10px;
}

.port_details_thumb:hover::before {
    opacity: 1;
}

.port_details_thumb img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.3s ease;
    border-radius: 10px;
}

.port_details_thumb:hover img {
    transform: scale(1.05);
}

/* Optional: Add a zoom icon on hover */
.port_details_thumb::after {
    content: "\f00e"; /* FontAwesome search icon */
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 24px;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 3;
    pointer-events: none;
}

.port_details_thumb:hover::after {
    opacity: 1;
}


/* Animated Close Button */
.chatbot-close {
    background: none;
    border: none;
    color: white;
    font-size: 24px;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    outline: none;
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    border-radius: 50%;
    transition: all 0.3s ease;
}

.chatbot-close:hover {
    background-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-50%) rotate(90deg);
}

.chatbot-close:active {
    transform: translateY(-50%) rotate(180deg) scale(0.9);
}
/* Chatbot Notification */
.chatbot-notification {
    position: fixed;
    bottom: 170px;
    right: 85px;
    background: white;
    color: #333;
    padding: 12px 16px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    font-size: 14px;
    font-weight: 500;
    z-index: 999;
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.3s ease;
    width: 250px;
    border: 1px solid #e0e0e0;
    cursor: pointer;
}

.chatbot-notification.show {
    opacity: 1;
    transform: translateY(0);
}

.chatbot-notification:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.25);
}

.chatbot-notification::before {
    content: '';
    position: absolute;
    bottom: -8px;
    right: 30px;
    width: 0;
    height: 0;
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-top: 8px solid white;
}

@media (max-width: 768px) {
    .chatbot-notification {
        right: 80px;
        bottom: 190px;
        width: 220px;
        font-size: 13px;
    }
}