/* =========================================
   1. הגדרת משתנים (Variables)
   ========================================= */
:root {
    --brand-primary: #1e3c72;
    --brand-accent: #d4af37;
    --text-main: #333333;
    --text-light: #666666;
    --bg-light: #f8f9fa;
    --white: #ffffff;
}

/* =========================================
   2. הגדרות בסיס (Reset)
   ========================================= */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Heebo', sans-serif;
    color: var(--text-main);
    background-color: var(--white);
    line-height: 1.6;
    direction: rtl;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    transition: all 0.3s ease;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* =========================================
   3. ניווט (Navbar)
   ========================================= */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    z-index: 10;
}

.logo {
    font-size: 1.8rem;
    font-weight: 900;
    color: var(--white);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.nav-link-btn {
    color: var(--white);
    font-weight: 700;
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: 8px 20px;
    border-radius: 30px;
    backdrop-filter: blur(5px);
}

.nav-link-btn:hover {
    background-color: var(--brand-accent);
    border-color: var(--brand-accent);
    color: var(--white);
}

/* =========================================
   4. איזור ראשי (Hero)
   ========================================= */
.hero-section {
    position: relative;
    height: 100vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    color: var(--white);
}

.background-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}

.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(16, 32, 60, 0.75);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 800px;
}

.hero-title {
    font-size: 4rem;
    font-weight: 900;
    margin-bottom: 20px;
    line-height: 1.1;
    letter-spacing: -1px;
    opacity: 0;
    animation: fadeInUp 1s ease-out forwards;
}

.hero-subtitle {
    font-size: 1.5rem;
    font-weight: 300;
    margin-bottom: 60px;
    /* מרווח גדול יותר לאייקון הגלילה */
    opacity: 0.9;
    opacity: 0;
    animation: fadeInUp 1s ease-out 0.4s forwards;
}

/* --- אייקון גלילה (Scroll Indicator) --- */
.scroll-indicator {
    display: flex;
    flex-direction: column;
    align-items: center;
    opacity: 0;
    animation: fadeInUp 1s ease-out 0.8s forwards;
}

.scroll-indicator span {
    font-size: 0.9rem;
    margin-bottom: 10px;
    letter-spacing: 1px;
    opacity: 0.8;
}

.mouse {
    width: 30px;
    height: 50px;
    border: 2px solid rgba(255, 255, 255, 0.7);
    border-radius: 20px;
    position: relative;
}

.wheel {
    width: 4px;
    height: 8px;
    background: var(--white);
    border-radius: 2px;
    position: absolute;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    animation: scrollWheel 2s infinite;
}

@keyframes scrollWheel {
    0% {
        top: 10px;
        opacity: 1;
    }

    100% {
        top: 30px;
        opacity: 0;
    }
}

/* =========================================
   5. איזור לקוחות (חדש)
   ========================================= */
.clients-section {
    padding: 60px 0;
    background-color: var(--white);
    border-bottom: 1px solid #eee;
    text-align: center;
    position: relative;
    z-index: 2;
}

.section-title {
    font-size: 1.8rem;
    color: var(--brand-primary);
    margin-bottom: 40px;
    font-weight: 700;
}

.clients-grid {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 60px;
    /* רווח בין הלוגואים */
    flex-wrap: wrap;
}

.client-logo {
    height: 70px;
    /* גובה אחיד לכל הלוגואים */
    width: auto;
    object-fit: contain;
    filter: grayscale(100%);
    /* שחור לבן כברירת מחדל */
    opacity: 0.7;
    transition: all 0.4s ease;
}

.client-logo:hover {
    filter: grayscale(0%);
    /* צבעוני במעבר עכבר */
    opacity: 1;
    transform: scale(1.05);
}

/* =========================================
   6. אנימציות ופיצ'רים
   ========================================= */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.features-section {
    padding: 100px 0;
    background-color: var(--bg-light);
    position: relative;
    z-index: 2;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
}

.feature-card {
    background: var(--white);
    padding: 50px 30px;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease;
    border-top: 4px solid transparent;
}

.feature-card:hover {
    transform: translateY(-10px);
    border-top: 4px solid var(--brand-accent);
}

.feature-icon {
    font-size: 3.5rem;
    margin-bottom: 25px;
}

.feature-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 15px;
    color: var(--brand-primary);
}

.feature-card p {
    color: var(--text-light);
}

/* =========================================
   7. פוטר (Footer)
   ========================================= */
.footer {
    background-color: #111;
    color: #888;
    padding: 50px 0;
    text-align: center;
    font-size: 0.95rem;
    border-top: 3px solid var(--brand-accent);
    position: relative;
    z-index: 2;
}

.footer a {
    color: var(--brand-accent);
}

/* =========================================
   8. רספונסיביות למובייל
   ========================================= */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.8rem;
    }

    .hero-subtitle {
        font-size: 1.2rem;
    }

    .navbar {
        position: relative;
        background-color: var(--brand-primary);
        height: auto;
        padding: 15px 20px;
    }

    .clients-grid {
        gap: 30px;
        flex-direction: column;
        /* לוגואים אחד מתחת לשני בנייד */
    }

    .client-logo {
        height: 60px;
        /* קצת קטן יותר בנייד */
    }
}