/* /css/style.css */

/* --- General Utilities --- */
.hide-scrollbar::-webkit-scrollbar {
    display: none;
}
.hide-scrollbar {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

/* --- Scroll Animations --- */
.animate-on-scroll {
    transition: opacity 0.8s ease-out, transform 0.8s ease-out, filter 0.8s ease-out;
}

/* Specific class for items that should start hidden */
.start-hidden {
    opacity: 0;
    transform: translateY(30px) scale(0.98);
    filter: blur(5px);
}

.start-hidden.is-visible {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: blur(0);
}

.stagger-children > .start-hidden:nth-child(1) { transition-delay: 0.1s; }
.stagger-children > .start-hidden:nth-child(2) { transition-delay: 0.2s; }
.stagger-children > .start-hidden:nth-child(3) { transition-delay: 0.3s; }
.stagger-children > .start-hidden:nth-child(4) { transition-delay: 0.4s; }
.stagger-children > .start-hidden:nth-child(5) { transition-delay: 0.5s; }
.stagger-children > .start-hidden:nth-child(6) { transition-delay: 0.6s; }

/* --- Content Slideshow (Solutions Section) --- */
.slide {
    display: none;
    height: 100%;
    animation: fade 1.0s ease-in-out;
}

.slide.active {
    display: block;
}

@keyframes fade {
  from {opacity: 0.6} 
  to {opacity: 1}
}

/* --- Background Tiled Slideshow --- */
#bg-tile-grid {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -10;
    display: grid;
    /* REDUCED Mobile Grid: 2 columns x 6 rows = 12 tiles */
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(6, 1fr);
}

@media (min-width: 768px) {
    #bg-tile-grid {
        /* REDUCED Desktop Grid: 4 columns x 3 rows = 12 tiles */
        grid-template-columns: repeat(4, 1fr);
        grid-template-rows: repeat(3, 1fr);
    }
}

#bg-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -5;
    /* UPDATED: Reduced opacity to 0.05 for maximum clarity */
    background: rgba(255, 255, 255, 0.05);
    /* UPDATED: Removed blur to fix "Too Blurry" issue */
    backdrop-filter: none;
    pointer-events: none;
}

.bg-tile {
    position: relative;
    overflow: hidden;
    width: 100%;
    height: 100%;
    background-color: #111;
}

.tile-layer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1.5s ease-in-out;
}

.tile-layer.active {
    opacity: 1;
}

/* --- Chatbot Messages --- */
.message {
    display: flex;
    max-width: 80%;
    margin-bottom: 1rem;
}
.message.user-message {
    margin-left: auto;
}
.message.assistant-message {
    margin-right: auto;
}
[dir="rtl"] .message.user-message {
    margin-right: auto;
    margin-left: 0;
}
[dir="rtl"] .message.assistant-message {
    margin-left: auto;
    margin-right: 0;
}