/* General Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Arial, sans-serif;
}

/* Chatbot Button */
.chatbot-button {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: linear-gradient(45deg, #4CAF50, #6A0DAD);
    color: white;
    border: none;
    padding: 12px 15px;
    border-radius: 50%;
    font-size: 18px;
    cursor: pointer;
    box-shadow: 0px 5px 15px rgba(255, 255, 255, 0.6), 0px 4px 10px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
    z-index: 9999;
    transform: translateY(2px);
    animation: pulse-shadow 1.5s infinite ease-in-out;
}

.chatbot-button:hover {
    transform: scale(1.1) translateY(0);
}

/* Pulsing shadow animation */
@keyframes pulse-shadow {
    0% {
        box-shadow: 0px 5px 15px rgba(255, 255, 255, 0.6), 0px 4px 10px rgba(0, 0, 0, 0.3);
    }
    50% {
        box-shadow: 0px 8px 20px rgba(255, 255, 255, 0.8), 0px 6px 15px rgba(0, 0, 0, 0.4);
    }
    100% {
        box-shadow: 0px 5px 15px rgba(255, 255, 255, 0.6), 0px 4px 10px rgba(0, 0, 0, 0.3);
    }
}

/* Chatbox Container */
.chatbox {
    position: fixed;
    bottom: 80px;
    right: 20px;
    width: 350px;
    background: rgba(18, 18, 18, 0.3); /* Transparent black */
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
    display: none;
    flex-direction: column;
    z-index: 9999;
    max-height: 70vh;
    border: 2px solid rgba(255, 255, 255, 0.2); /* Soft white border */
    backdrop-filter: blur(10px); /* Blurry glass effect */
    -webkit-backdrop-filter: blur(10px);
    overflow: hidden;
}

/* Chatbox Header */
.chatbox-header {
    background: rgba(140, 0, 255, 0.2);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    color: white;
    padding: 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 16px;
    font-weight: bold;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.chatbox-header button {
    background: transparent;
    border: none;
    color: white;
    font-size: 16px;
    cursor: pointer;
}

.chatbox-header button:hover {
    color: #ddd;
}

/* Chatbox Body */
.chatbox-body {
    height: 300px;
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    color: white;
    padding: 15px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.chatbox-input input::placeholder {
    color: rgba(255, 255, 255, 0.819); /* White with slight transparency */
    opacity: 1; /* Ensures it appears fully on some browsers */
}


/* User and Bot Messages */
.user-message, .bot-message {
    padding: 12px 15px;
    border-radius: 15px;
    max-width: 75%;
    word-wrap: break-word;
    font-size: 14px;
    display: inline-block;
    position: relative;
}

/* User Message */
.user-message {
    background: rgba(13, 173, 74, 0.2); /* Transparent purple */
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    color: white;
    align-self: flex-end;
    text-align: left;
    border-radius: 15px;
    border-bottom-left-radius: 5px;
    margin: 8px 0;
    padding: 12px 15px;
    max-width: 75%;
    word-wrap: break-word;
    border: 1px solid rgba(255, 255, 255, 0.2); /* Subtle border */
    animation: slideInRight 0.5s ease-in-out;
}

/* Bot Message */
.bot-message {
    background: rgba(106, 13, 173, 0.2); /* Transparent purple */
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    color: white;
    align-self: flex-start;
    text-align: left;
    border-radius: 15px;
    border-bottom-left-radius: 5px;
    margin: 8px 0;
    padding: 12px 15px;
    max-width: 75%;
    word-wrap: break-word;
    border: 1px solid rgba(255, 255, 255, 0.2); /* Subtle border */
    animation: slideInLeft 0.5s ease-in-out;
}

@keyframes slideInRight {
    from { transform: translateX(20px); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

/* Keyframe for bot message */
@keyframes slideInLeft {
    from { transform: translateX(-20px); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

/* Chatbox Input */
.chatbox-input {
    display: flex;
    padding: 10px;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.chatbox-input input {
    flex: 1;
    padding: 8px;
    border: none;
    border-radius: 5px;
    font-size: 14px;
    outline: none;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.chatbox-input button {
    background: linear-gradient(45deg, #4CAF50, #6A0DAD);
    color: white;
    border: none;
    padding: 8px 12px;
    border-radius: 5px;
    cursor: pointer;
    margin-left: 5px;
    transition: all 0.3s ease;
}

.chatbox-input button:hover {
    background: linear-gradient(45deg, #45a049, #5A0CA0);
}

.image-gallery {
    position: relative;
    width: 90px; /* Adjust based on image size */
    height: 90px;
    margin-bottom: 120px !important; /* Increased space below */
}

.gallery-image {
    width: 100px;
    height: 100px;
    object-fit: cover;
    border-radius: 5px;
    cursor: pointer;
    transition: transform 0.3s ease-in-out;
    position: absolute;
    top: 0;
    left: 35px;
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.2);
    border: 2px solid white;
}

/* Adjusted rotation and stacking for alignment */
.gallery-image:nth-child(1) { transform: rotate(-10deg); z-index: 3; }
.gallery-image:nth-child(2) { transform: rotate(5deg); z-index: 2; }
.gallery-image:nth-child(3) { transform: rotate(-5deg); z-index: 1; }
.gallery-image:nth-child(4) { transform: rotate(8deg); z-index: 0; }

/* Hover effect to bring images forward */
.gallery-image:hover {
    transform: scale(0.8) rotate(0deg) !important;
    z-index: 5 !important;
}

.gallery-image:nth-child(1) { transform: rotate(-10deg) translateX(-10px); z-index: 3; }
.gallery-image:nth-child(2) { transform: rotate(5deg) translateX(0px); z-index: 2; }
.gallery-image:nth-child(3) { transform: rotate(-5deg) translateX(10px); z-index: 1; }
.gallery-image:nth-child(4) { transform: rotate(8deg) translateX(20px); z-index: 0; }

.gallery-image:hover {
    transform: scale(1.1) !important;
    z-index: 5 !important;
}

@keyframes fadeInZoom {
    from { transform: scale(0.8); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

.lightbox-container {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.85);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
}

.lightbox-image {
    max-width: 75%;
    max-height: 75%;
    border-radius: 8px;
    z-index: 10001;
}

.lightbox-prev, .lightbox-next, .lightbox-close {
    position: absolute;
    background: none;
    border: none;
    font-size: 24px;
    color: white;
    cursor: pointer;
    transition: opacity 0.2s;
    z-index: 10002; /* Buttons on top */
}

.lightbox-prev { left: 5%; }
.lightbox-next { right: 5%; }
.lightbox-close { top: 20px; right: 20px; font-size: 28px; }

.lightbox-prev:hover,
.lightbox-next:hover,
.lightbox-close:hover {
    opacity: 0.7;
}

.faq-container {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-top: 8px;
    animation: fadeInUp 0.5s ease-in-out;
}

.faq-button {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    color: white;
    padding: 8px 12px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    text-align: center;
    transition: all 0.3s ease-in-out;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    animation: fadeInUp 0.5s ease-in-out;
    opacity: 0;
    animation-fill-mode: forwards;
}

.faq-button:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-1px);
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.12);
}

/* FAQ Button Animation */
.faq-container { animation: fadeInUp 0.5s ease-in-out; }
.faq-button { animation: fadeInUp 0.5s ease-in-out; opacity: 0; animation-fill-mode: forwards; }
.faq-button:nth-child(1) { animation-delay: 0.5s; }
.faq-button:nth-child(2) { animation-delay: 0.7s; }
.faq-button:nth-child(3) { animation-delay: 0.9s; }

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(15px); }
    to { opacity: 1; transform: translateY(0); }
}

.typing-indicator {
    display: flex;
    justify-content: left;
    padding: 5px 10px;
}

.typing-indicator span {
    width: 8px;
    height: 8px;
    margin: 0 2px;
    background-color: #bbb;
    border-radius: 50%;
    display: inline-block;
    animation: blink 1.4s infinite;
}

.typing-indicator span:nth-child(2) {
    animation-delay: 0.2s;
}

.typing-indicator span:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes blink {
    0% { opacity: 0.2; }
    20% { opacity: 1; }
    100% { opacity: 0.2; }
}

.welcome-message {
    font-size: 16px;
    font-weight: 500;
    text-align: center;
    color: #fff;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 14px;
    border-radius: 12px;
    margin-bottom: 12px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    animation: fadeIn 0.8s ease-in-out;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

/* Fade-in animation */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-5px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}