/* Horizontal Scroll Container */
.scroll-container {
    display: flex;
    overflow-x: auto;
    padding: 15px 10px;
    scroll-behavior: smooth;
    gap: 15px;
    margin-bottom: 30px;
    color: rgb(51, 13, 221);
    /* scrollbar-width: thin; */
}
.scroll-container::-webkit-scrollbar {
    height: 6px;
}
.scroll-container::-webkit-scrollbar-track {
    background: #111;
    border-radius: 10px;
}
.scroll-container::-webkit-scrollbar-thumb {
    background: #712cfc ;
    border-radius: 10px;
}
.scroll-container::-webkit-scrollbar-thumb:hover {
    background: #4910b9 ;
}

/* Cards Styling */
.card {
    min-width: 380px;
    flex: 0 0 auto;
    transition: transform 0.3s, box-shadow 0.3s;
    border: none;
    border-radius: 12px;
    overflow: hidden;
    background-color: #181818;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}
@media (max-width: 576px) {
    .card {
        min-width: 260px;
    }
}
.card:hover {
    transform: scale(1.05); /* Fixed: removed duplicate transform property */
    box-shadow: 0 10px 20px rgba(0,0,0,0.15);
}
.card-img-top {
    height: 240px;
    object-fit: cover;
    border-bottom: 1px solid #b4b0b0;
}
.card-title {
    color: white;
    font-weight: 500;
    margin-top: 10px;
    margin-left: 8px;
    margin-bottom: 10px;
    font-size: 1.3rem;
}
.card-text {
    color: white;
    font-size: 0.80rem;
    margin-left: 8px;
    margin-bottom: 15px;
    line-height: 1.4;
}
.badge {
    font-size: 0.65rem;
    padding: 4px 8px;
    color: white;
    margin-left: 8px;
    background-color: #712cfc;
}

a {
    outline: none !important;
    text-decoration: none !important;
}

a:focus, a:active {
    outline: none !important;
    box-shadow: none !important;
}

.scroll-container a {
    display: block;
    text-decoration: none;
    color: inherit;
}

/* Scroll Buttons */
.scroll-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255,255,255,0.9);
    border: none;
    border-radius: 50%;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    z-index: 10;
    transition: all 0.3s;
}
.scroll-btn:hover {
    background: white;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}
.scroll-left {
    left: 5px;
}
.scroll-right {
    right: 5px;
}

/* Hide scroll buttons on small screens */
@media (max-width: 768px) {
    .scroll-btn {
        display: none;
    }
}

/* Section Styling */
.projects-section {
    position: relative;
    padding: 30px 0;
}

/* Responsive Typography */
@media (max-width: 768px) {
    .section-title {
        font-size: 1.5rem;
    }
}

@media (max-width: 576px) {
    .section-title {
        font-size: 1.3rem;
    }
    .card-img-top {
        height: 140px;
    }
}



/* WhatsApp Button Styles */
.whatsapp-button {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 70px;
    height: 70px;
    background-color: #25d366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.5);
    cursor: pointer;
    z-index: 1000;
    transition: all 0.3s ease;
    animation: pulse 2s infinite;
}

.whatsapp-button:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 25px rgba(37, 211, 102, 0.7);
}

.whatsapp-button img {
    width: 50px;
    height: 50px;
}

/* Chat Box Styles */
.chat-box {
    position: fixed;
    bottom: 120px;
    right: 30px;
    width: 350px;
    height: 500px;
    background-color: white;
    border-radius: 15px;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.2);
    z-index: 1001;
    display: none;
    flex-direction: column;
    overflow: hidden;
    transition: all 0.3s ease;
}

.chat-box.active {
    display: flex;
    animation: fadeIn 0.3s ease;
}

.chat-header {
    background-color: #075e54;
    color: white;
    padding: 15px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.chat-header-info {
    display: flex;
    align-items: center;
}

.chat-header-info img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    margin-right: 10px;
}

.chat-header-info h3 {
    font-size: 16px;
    margin-bottom: 3px;
}

.chat-header-info p {
    font-size: 12px;
    opacity: 0.8;
    margin: 0;
}

.close-chat {
    background: none;
    border: none;
    color: white;
    font-size: 20px;
    cursor: pointer;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.2s;
}

.close-chat:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

.chat-messages {
    flex: 1;
    padding: 15px;
    overflow-y: auto;
    background-color: #e5ddd5;
    background-image: url("data:image/svg+xml,%3Csvg width='100' height='100' viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M11 18c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm48 25c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm-43-7c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm63 31c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM34 90c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm56-76c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM12 86c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm28-65c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm23-11c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-6 60c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm29 22c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zM32 63c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm57-13c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-9-21c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM60 91c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM35 41c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM12 60c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2z' fill='%239C92AC' fill-opacity='0.05' fill-rule='evenodd'/%3E%3C/svg%3E");
}

.message {
    max-width: 80%;
    padding: 10px 15px;
    margin-bottom: 10px;
    border-radius: 10px;
    position: relative;
    font-size: 14px;
    line-height: 1.4;
}

.received {
    background-color: white;
    align-self: flex-start;
    border-top-left-radius: 0;
}

.sent {
    background-color: #dcf8c6;
    align-self: flex-end;
    border-top-right-radius: 0;
}

.chat-input {
    display: flex;
    padding: 15px;
    background-color: #f0f0f0;
    border-top: 1px solid #ddd;
}

.chat-input input {
    flex: 1;
    padding: 12px 15px;
    border: none;
    border-radius: 25px;
    outline: none;
    font-size: 14px;
}

.send-button {
    background-color: #075e54;
    color: white;
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    margin-left: 10px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.2s;
}

.send-button:hover {
    background-color: #128c7e;
}

/* Animations */
@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7);
    }
    70% {
        box-shadow: 0 0 0 15px rgba(37, 211, 102, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .chat-box {
        width: 300px;
        height: 450px;
    }
    
    .whatsapp-button {
        width: 60px;
        height: 60px;
        bottom: 20px;
        right: 20px;
    }
    
    .whatsapp-button img {
        width: 35px;
        height: 35px;
    }
}

@media (max-width: 480px) {
    .chat-box {
        width: calc(100vw - 40px);
        height: 70vh;
        right: 20px;
        bottom: 100px;
    }
    
    h1 {
        font-size: 2rem;
    }
}