/* --- 1. הגדרות כלליות --- */

/* הגדרה גורפת לכל האלמנטים באתר */
body, 
h1, h2, h3, h4, h5, h6, 
p, span, a, 
button, input, textarea, select,
blockquote, .font-serif {
    font-family: 'Heebo', sans-serif !important;
}

body {
    background-color: #f9fafb; /* bg-gray-50 */
    color: #1f2937; /* text-gray-800 */
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* עיצוב סרגל גלילה (Scrollbar) */
::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: #f1f1f1; }
::-webkit-scrollbar-thumb { background: #ccc; border-radius: 5px; }
::-webkit-scrollbar-thumb:hover { background: #999; }

/* --- 2. אנימציית חשיפה (Reveal) --- */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* דיליי לכניסה מדורגת */
.delay-100 { transition-delay: 100ms; }
.delay-200 { transition-delay: 200ms; }
.delay-300 { transition-delay: 300ms; }

/* --- 3. הסליידר האלגנטי (Infinite Scroll) --- */

/* מעטפת הדהייה - יוצרת אפקט פרימיום שבו הלוגואים נמוגים בצדדים */
.logo-viewport {
    position: relative;
    width: 100%;
    overflow: hidden;
    padding: 15px 0;
    direction: ltr; /* קריטי לאנימציה חלקה משמאל לימין */
    mask-image: linear-gradient(to right, transparent, black 15%, black 85%, transparent);
    -webkit-mask-image: linear-gradient(to right, transparent, black 15%, black 85%, transparent);
}

/* המסילה שזזה */
.logo-track {
    display: flex;
    width: max-content;
    align-items: center;
    animation: scrollInfinite linear infinite;
    /* התיקון לקפיצות בנייד: */
    will-change: transform; /* מודיע לדפדפן להתכונן לאנימציה */
    backface-visibility: hidden; /* מונע ריצוד בזמן הטרנספורמציה */
    perspective: 1000px; /* עוזר ברינדור תלת-ממדי חלק יותר */
transform: translateZ(0); /* האצת חומרה */}

/* הגדרת לוגו בודד - רספונסיבי */
.logo-item {
    flex-shrink: 0;
    width: 140px; /* רוחב בנייד */
    padding: 0 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    box-sizing: border-box;
    backface-visibility: hidden;
    -webkit-user-drag: none; /* מונע בעיות גרירה בנייד שעלולות לתקוע את הסליידר */
}

@media (min-width: 768px) {
    .logo-item {
        width: 220px; /* רוחב במחשב */
        padding: 0 45px;
    }
}

.logo-item img {
    max-height: 40px;
    width: auto;
    object-fit: contain;
    filter: grayscale(100%);
    opacity: 0.5;
    transition: all 0.5s ease;
    cursor: pointer;
}

@media (min-width: 768px) {
    .logo-item img { max-height: 55px; }
}

.logo-item img:hover {
    filter: grayscale(0%);
    opacity: 1;
    transform: scale(1.1);
}

/* --- 4. הגדרות אנימציה --- */
@keyframes scrollInfinite {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); } /* זז בדיוק חצי מהרוחב המשוכפל */
}

/* מהירויות שונות */
.animate-normal { animation-duration: 25s; }
.animate-slow { animation-duration: 60s; }

/* כיוון הפוך */
.reverse { animation-direction: reverse; }

/* עצירה בריחוף */
.logo-viewport:hover .logo-track {
    animation-play-state: paused;
}

/* אפקט זכוכית אופציונלי */
.glass-effect {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}