:root {
    --primary-color: #0AB2E6;
    --secondary-color: #003459;
    --light-color: #f4f9fb;
    --font-family: 'Montserrat', sans-serif;
}

body, html {
    margin: 0;
    padding: 0;
    font-family: var(--font-family);
    scroll-behavior: smooth;
    color: var(--secondary-color);
    background-color: var(--light-color);
    text-align: start;
}

[lang="he"] body {
    font-family: 'Heebo', var(--font-family);
}

[lang="ar"] body {
    font-family: 'Cairo', var(--font-family);
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

header {
    background-color: var(--light-color);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}

header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 0;
    gap: 16px;
}

.logo {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.logo img {
    height: 50px;
    margin-inline-end: 10px;
}

.logo h1 {
    font-size: 1.6rem;
    margin: 0;
    color: var(--secondary-color);
    font-weight: 700;
}

header nav {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.nav-links,
.lang-switcher {
    list-style: none;
    display: flex;
    margin: 0;
    padding: 0;
    align-items: center;
}

.nav-links li {
    margin-inline-start: 20px;
}

.nav-links li:first-child {
    margin-inline-start: 0;
}

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

.nav-links a:hover {
    color: var(--primary-color);
}

.lang-switcher {
    gap: 4px;
    padding-inline-start: 16px;
    border-inline-start: 1px solid rgba(0, 52, 89, 0.2);
}

.lang-switcher a {
    text-decoration: none;
    color: var(--secondary-color);
    font-weight: 600;
    font-size: 0.85rem;
    padding: 4px 8px;
    border-radius: 4px;
    transition: color 0.3s ease;
}

.lang-switcher a:hover,
.lang-switcher a.active {
    color: var(--primary-color);
}

.lang-switcher a.active {
    font-weight: 700;
}

.hero {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    padding: 100px 0;
    text-align: center;
}

.hero h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.hero p {
    font-size: 1.2rem;
    max-width: 600px;
    margin: 0 auto 30px;
}

.btn {
    background-color: white;
    color: var(--secondary-color);
    padding: 12px 30px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 700;
    display: inline-block;
    transition: background-color 0.3s ease, color 0.3s ease;
    border: none;
    font-size: 1rem;
    cursor: pointer;
}

.btn:hover {
    background-color: var(--primary-color);
    color: white;
}

.services,
.about,
.projects,
.contact {
    padding: 80px 0;
    background-color: var(--light-color);
}

.services h2,
.about h2,
.projects h2,
.contact h2 {
    text-align: center;
    margin-bottom: 50px;
    font-size: 2rem;
}

.service-grid,
.project-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
}

.service-item {
    background-color: var(--secondary-color);
    color: white;
    flex: 1 1 250px;
    max-width: 340px;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    text-align: center;
}

.service-item h3 {
    margin-top: 0;
    color: var(--primary-color);
}

.project-item {
    background-color: white;
    flex: 1 1 280px;
    max-width: 360px;
    padding: 24px;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    border-inline-start: 4px solid var(--primary-color);
}

.project-item h3 {
    margin-top: 0;
    color: var(--secondary-color);
}

.about p {
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.6;
}

.contact form {
    display: flex;
    flex-direction: column;
    gap: 15px;
    max-width: 600px;
    margin: 0 auto;
}

.contact label {
    font-weight: 600;
}

.contact input,
.contact textarea {
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 1rem;
    width: 100%;
    box-sizing: border-box;
    font-family: inherit;
}

.contact button.btn {
    align-self: flex-start;
}

/* Web3Forms honeypot: a hidden spam trap. Must stay in the DOM but
   never be visible or focusable for real users. */
.hp-field {
    display: none;
}

#form-message p {
    margin-top: 20px;
    font-weight: 600;
    color: var(--secondary-color);
    text-align: center;
}

#form-message .form-error {
    color: #c0392b;
}

footer {
    background-color: var(--secondary-color);
    color: white;
    text-align: center;
    padding: 20px 0;
}

@media (max-width: 768px) {
    header .container {
        flex-direction: column;
        align-items: stretch;
    }

    header nav {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
    }

    .nav-links {
        flex-wrap: wrap;
        justify-content: center;
        gap: 8px 16px;
    }

    .nav-links li {
        margin-inline-start: 0;
    }

    .lang-switcher {
        justify-content: center;
        padding-inline-start: 0;
        border-inline-start: none;
        padding-top: 8px;
        border-top: 1px solid rgba(0, 52, 89, 0.15);
    }

    .hero h2 {
        font-size: 2rem;
    }

    .service-item,
    .project-item {
        flex: 1 1 100%;
        max-width: none;
    }
}
