/* Color Variables */
:root {
    --color-primary: #4A4A4A;
    --color-darker: #333333;
    --color-lighter: #666666;
    --color-white: #FFFFFF;
    --color-off-white: #F5F5F5;
    --color-text: #1A1A1A;
}

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Base Styles */
body {
    font-family: 'Assistant', sans-serif;
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    color: var(--color-text);
}

/* Header Styles */
.header {
    background-color: var(--color-primary);
    padding: 15px 0;
    position: relative;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: flex-start;
    align-items: center;
    min-height: 60px;
    position: relative;
}

/* Logo Styles */
.logo {
    position: relative;
    margin-right: 20px;
    z-index: 2;
    margin-left: 80px; /* Add space from the left */
    transform: translateX(-100px);
}

/* Adjust logo margin for RTL */
[dir="rtl"] .logo {
    margin-right: 80px; /* Add space from the right in RTL */
    margin-left: 20px;
    transform: translateX(100px);
}

.logo-image {
    height: 50px;
    width: auto;
}

/* Navigation Menu */
nav {
    position: relative;
    flex-grow: 1;
    display: flex;
    justify-content: flex-start;
    padding-left: 40px;
}

[dir="rtl"] nav {
    justify-content: flex-start;
    padding-left: 0;
    padding-right: 40px;
}

.nav-menu {
    list-style: none;
    display: flex;
    gap: 20px;
}

.nav-menu a {
    color: var(--color-white);
    text-decoration: none;
    font-size: 18px;
    font-weight: 600;
    transition: color 0.3s ease;
    white-space: nowrap;
}

.nav-menu a:hover {
    color: var(--color-off-white);
}

/* Language Switcher */
.lang-switch {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 1000;
}

/* LTR (English) */
[dir="ltr"] .lang-switch {
    right: 15px;
}

/* RTL (Hebrew) */
[dir="rtl"] .lang-switch {
    left: 15px;
}

.lang-switch a {
    color: white;
    text-decoration: none;
    padding: 4px 8px;
    border: 1px solid white;
    border-radius: 4px;
    font-size: 12px;
    display: inline-block;
}

.lang-switch a:hover {
    background: rgba(255, 255, 255, 0.1);
}

/* Main Content */
.main-content {
    flex: 1;
    background-color: var(--color-white);
}

/* Home Page Specific Styles */
.home-hero {
    position: relative;
    min-height: calc(100vh - 180px);
    background-image: url('../images/Home page.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.hero-content {
    background-color: rgba(0, 0, 0, 0);
    padding: 30px;
    border-radius: 8px;
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.hero-content h1 {
    color: var(--color-white);
    font-size: 56px;
    margin-bottom: 20px;
    line-height: 1.2;
}

.hero-text {
    color: var(--color-white);
    font-size: clamp(1rem, 2vw, 1.2rem);
    line-height: 1.6;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* Footer Styles */
.footer {
    background-color: var(--color-primary);
    color: var(--color-white);
    padding: 30px 0 20px;
    margin-top: auto;
}

.footer-container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.footer-info {
    text-align: center;
}

.footer-info h3 {
    margin-bottom: 15px;
    font-size: clamp(1.2rem, 3vw, 1.5rem);
}

.footer-info p {
    margin-bottom: 10px;
    font-size: clamp(0.9rem, 2vw, 1rem);
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    margin-top: 20px;
    border-top: 1px solid var(--color-lighter);
}

/* Mobile Menu Button */
.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: var(--color-white);
    font-size: 24px;
    cursor: pointer;
    padding: 5px;
    z-index: 3;
}

/* Mobile Responsive Styles */
@media screen and (max-width: 768px) {
    .nav-container {
        padding: 0 15px;
    }

    .mobile-menu-btn {
        display: block;
        position: absolute;
    }

    [dir="ltr"] .mobile-menu-btn {
        left: 15px;
    }

    [dir="rtl"] .mobile-menu-btn {
        right: 15px;
    }

    nav {
        position: fixed;
        top: 0;
        width: 100%;
        height: 100vh;
        background-color: var(--color-primary);
        padding: 80px 20px 20px;
        transition: 0.3s ease;
        z-index: 2;
    }

    [dir="ltr"] nav {
        left: -100%;
    }

    [dir="ltr"] nav.active {
        left: 0;
    }

    [dir="rtl"] nav {
        right: -100%;
    }

    [dir="rtl"] nav.active {
        right: 0;
    }

    .nav-menu {
        flex-direction: column;
        align-items: center;
        gap: 30px;
    }

    .nav-menu a {
        font-size: 20px;
    }

    .logo {
        position: absolute;
        left: 50%;
        transform: translateX(-50%);
        margin: 0;
    }

    .logo-image {
        height: 40px;
    }

    [dir="ltr"] .lang-switch {
        right: 10px;
    }

    [dir="rtl"] .lang-switch {
        left: 10px;
    }
}

@media screen and (max-width: 480px) {
    .hero-content {
        padding: 15px;
    }

    .nav-menu a {
        font-size: 18px;
    }

    .footer {
        padding: 20px 0 15px;
    }
}
