/* General Styling & Variables */
:root {
    --primary-green: #4CAF50; /* ZekerClean green */
    --light-green: #8BC34A;
    --dark-green: #388E3C;
    --primary-blue: #2196F3; /* ZekerClean blue */
    --light-blue: #64B5F6;
    --dark-blue: #1976D2;

    --text-color: #333;
    --background-color: #f8f8f8;
    --card-background: #ffffff;
    --border-color: #e0e0e0;
    --header-bg: #ffffff;
    --footer-bg: #333;
    --footer-text: #f8f8f8;
    --btn-primary-bg: var(--primary-green);
    --btn-primary-text: #ffffff;
    --btn-primary-hover-bg: var(--dark-green);
    --btn-secondary-bg: var(--primary-blue);
    --btn-secondary-text: #ffffff;
    --btn-secondary-hover-bg: var(--dark-blue);
    --link-color: var(--primary-blue);
    --link-hover-color: var(--dark-blue);
    --shadow: 0 4px 8px rgba(0,0,0,0.1);
    --subtle-gradient: linear-gradient(135deg, rgba(255,255,255,0.1), rgba(0,0,0,0.05));
    --hero-overlay: rgba(0,0,0,0.5);
    --success-color: #28a745;
    --error-color: #dc3545;
}

html.dark {
    --text-color: #f0f0f0;
    --background-color: #1a1a1a;
    --card-background: #282828;
    --border-color: #444;
    --header-bg: #282828;
    --footer-bg: #111;
    --footer-text: #f0f0f0;
    --btn-primary-bg: var(--light-green);
    --btn-primary-text: #1a1a1a;
    --btn-primary-hover-bg: var(--primary-green);
    --btn-secondary-bg: var(--light-blue);
    --btn-secondary-text: #1a1a1a;
    --btn-secondary-hover-bg: var(--primary-blue);
    --link-color: var(--light-blue);
    --link-hover-color: var(--primary-blue);
    --shadow: 0 4px 12px rgba(0,0,0,0.4);
    --subtle-gradient: linear-gradient(135deg, rgba(0,0,0,0.1), rgba(255,255,255,0.05));
    --hero-overlay: rgba(0,0,0,0.7);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Arial', sans-serif; /* Fallback to Arial, consider a modern font */
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--background-color);
    transition: background-color 0.3s ease, color 0.3s ease;
}

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

a {
    color: var(--link-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--link-hover-color);
}

ul {
    list-style: none;
}

h1, h2, h3, h4, h5, h6 {
    margin-bottom: 0.8em;
    font-weight: 700;
}

h1 { font-size: 2.8em; }
h2 { font-size: 2.2em; }
h3 { font-size: 1.8em; }
p { margin-bottom: 1em; }

/* General image responsiveness */
img {
    max-width: 100%;
    height: auto;
    display: block; /* Remove extra space below images */
}

/* Note: For optimal performance with various device resolutions, consider using
   <img srcset="..." sizes="..." /> where multiple image resolutions are available.
   Currently, single resolution images are used and scaled responsively. */

.btn {
    display: inline-block;
    padding: 12px 25px;
    border-radius: 5px;
    font-weight: 600;
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
}

.btn-primary {
    background-color: var(--btn-primary-bg);
    color: var(--btn-primary-text);
}

.btn-primary:hover {
    background-color: var(--btn-primary-hover-bg);
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.btn-secondary {
    background-color: var(--btn-secondary-bg);
    color: var(--btn-secondary-text);
}

.btn-secondary:hover {
    background-color: var(--btn-secondary-hover-bg);
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.section {
    padding: 80px 0;
    text-align: center;
}

/* Header */
header {
    background-color: var(--header-bg);
    padding: 15px 0;
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: nowrap; /* Prevent header content from wrapping on desktop */
    direction: ltr; /* Force LTR layout for flex items */
}

.logo {
    display: flex;
    align-items: center;
    font-size: 1.8em; /* Keep font-size for potential future text, but it's not used now */
    font-weight: 700;
    color: var(--text-color); /* This will change with dark mode */
}

.logo img {
    height: 150px; /* Increased size based on user request */
    width: auto; /* Maintain aspect ratio */
    transition: filter 0.3s ease; /* Smooth transition for filter change */
}

nav ul {
    display: flex;
    gap: 25px;
}

nav a {
    color: var(--text-color);
    font-weight: 600;
    position: relative;
    padding: 5px 0;
}

nav a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: var(--primary-green);
    transition: width 0.3s ease-in-out;
}

nav a:hover::after,
nav a.active::after {
    width: 100%;
}

.header-controls {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-left: auto; /* Push controls to the right */
}

/* New Language Switcher styles */
.language-switcher {
    position: relative;
    display: inline-block;
}

.lang-switcher-btn {
    /* Default (mobile-first) styles, larger for touch targets */
    background-color: var(--card-background);
    border: 1px solid var(--border-color);
    color: var(--text-color);
    padding: 10px 15px; /* Larger padding for touch */
    border-radius: 5px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center; /* Center flag */
    transition: background-color 0.3s ease, border-color 0.3s ease, transform 0.3s ease;
    font-size: 1.2em; /* Reasonable size for flag in mobile menu */
    font-weight: 600;
    width: 100%; /* Full width in mobile menu */
    max-width: 200px; /* Limit width in mobile menu */
    font-family: "Segoe UI Emoji", "Noto Color Emoji", "Apple Color Emoji", "Twemoji Mozilla", sans-serif; /* Ensure emoji visibility */
}

/* Desktop-specific styles for the compact 40x40px button */
@media (min-width: 993px) {
    .lang-switcher-btn {
        width: 40px;
        height: 40px;
        padding: 0;
        font-size: 1.5em; /* Larger emoji for desktop compact button */
        border-radius: 5px; /* Keep square for consistency */
        overflow: hidden; /* Hide any overflow */
        /* No need for gap here as there's only the flag span */
    }
    .lang-switcher-btn span {
        line-height: 1; /* Center emoji vertically */
    }
}

.lang-switcher-btn:hover {
    background-color: var(--background-color);
    border-color: var(--primary-green);
    transform: scale(1.05);
}

.lang-dropdown {
    position: absolute;
    top: calc(100% + 10px); /* Position below the button */
    right: 0; /* Align to the right */
    background-color: var(--card-background);
    border: 1px solid var(--border-color);
    border-radius: 5px;
    box-shadow: var(--shadow);
    min-width: 160px;
    z-index: 10;
    padding: 10px 0;
    text-align: left; /* Ensure text is left-aligned in dropdown */
}

/* RTL positioning for dropdown - no change, as header is always LTR */
/* This rule is now moot because header is LTR */

.lang-dropdown li button {
    display: block;
    width: 100%;
    padding: 10px 15px;
    background-color: transparent;
    border: none;
    text-align: inherit; /* Inherit text-align from parent (.lang-dropdown) */
    color: var(--text-color);
    cursor: pointer;
    font-size: 1em;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: background-color 0.3s ease, color 0.3s ease;
    font-family: "Segoe UI Emoji", "Noto Color Emoji", "Apple Color Emoji", "Twemoji Mozilla", sans-serif; /* Ensure emoji visibility */
}

.lang-dropdown li button:hover {
    background-color: var(--background-color);
    color: var(--primary-green);
}

.dark-mode-toggle {
    background-color: transparent;
    border: 1px solid var(--border-color);
    color: var(--text-color);
    padding: 5px 10px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1.2em;
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}
.dark-mode-toggle:hover {
    background-color: var(--border-color);
}

/* Mobile Menu Specific Styles */
.menu-toggle {
    display: none; /* Hidden by default on desktop */
    background: transparent;
    border: none;
    font-size: 1.8em;
    color: var(--text-color);
    cursor: pointer;
    padding: 5px;
    z-index: 1001; /* Ensure it's above other header elements */
    margin-left: 15px; /* Spacing from logo */
}

.nav-and-controls {
    display: flex; /* Default for desktop: allows nav and controls to be side-by-side */
}

/* Alpine.js x-cloak directive hides elements until Alpine is initialized */
[x-cloak] { display: none !important; }

/* Hero Section (Home Page) */
.hero-section {
    background-size: cover;
    background-position: center;
    color: #fff;
    text-align: center;
    padding: 150px 0;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: var(--hero-overlay); /* Dark overlay */
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
}

.hero-content .bold-headline {
    font-size: 3.5em;
    margin-bottom: 20px;
    line-height: 1.2;
    background: linear-gradient(45deg, var(--primary-green), var(--primary-blue));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-fill-color: transparent;
    text-shadow: 2px 2px 5px rgba(0,0,0,0.3);
}

.hero-content p {
    font-size: 1.2em;
    margin-bottom: 30px;
    color: rgba(255,255,255,0.9);
}

/* Features Section (Home Page) */
.features-section {
    background-color: var(--card-background);
    padding: 60px 0;
    box-shadow: inset 0 0 10px rgba(0,0,0,0.05);
}

.features-section h2 {
    color: var(--primary-green);
    margin-bottom: 40px;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 40px;
    direction: ltr; /* Force LTR layout for grid items */
}

html.dark .features-section {
    box-shadow: inset 0 0 10px rgba(0,0,0,0.2);
}

.feature-item {
    background-color: var(--background-color);
    padding: 30px;
    border-radius: 10px;
    box-shadow: var(--shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.feature-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0,0,0,0.2);
}

.feature-item i {
    font-size: 3em;
    color: var(--primary-blue);
    margin-bottom: 20px;
}

.feature-item h3 {
    color: var(--text-color);
    margin-bottom: 15px;
    font-size: 1.5em;
}

.feature-item p {
    color: var(--text-color);
    font-size: 1em;
}

/* Call to Action Section (Home Page) */
.call-to-action-section {
    background: linear-gradient(135deg, var(--primary-green), var(--primary-blue));
    color: #fff;
    padding: 80px 0;
    text-align: center;
}

.call-to-action-section h2 {
    font-size: 2.5em;
    margin-bottom: 20px;
}

.call-to-action-section p {
    font-size: 1.2em;
    margin-bottom: 40px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

/* About Us Page */
.about-hero-section {
    background-size: cover;
    background-position: center;
    color: #fff;
    text-align: center;
    padding: 100px 0 80px;
    position: relative;
    min-height: 250px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.about-hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0,0,0,0.6); /* Dark overlay */
    z-index: 1;
}
.about-hero-section h1 {
    position: relative;
    z-index: 2;
    font-size: 3em;
    text-shadow: 2px 2px 5px rgba(0,0,0,0.5);
}

.about-content-section {
    padding-top: 50px;
    text-align: left;
}

.about-text-block { /* New class for the text container */
    max-width: 900px;
    margin: 0 auto;
    font-size: 1.1em;
    line-height: 1.8;
}

/* New Founders Section */
.founders-section {
    padding: 60px 0;
    text-align: center;
    background-color: var(--background-color);
    border-top: 1px solid var(--border-color);
}

.founders-section h2 {
    color: var(--primary-green);
    margin-bottom: 50px;
}

.founders-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 40px;
    direction: ltr; /* Force LTR layout for founders cards */
    justify-content: center;
}

.founder-card {
    background-color: var(--card-background);
    padding: 30px;
    border-radius: 10px;
    box-shadow: var(--shadow);
    text-align: center;
    position: relative;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.founder-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0,0,0,0.2);
}

.founder-profile-img {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    margin: 0 auto 15px auto; /* Centered horizontally */
    border: 5px solid var(--primary-green);
    box-shadow: 0 0 0 5px var(--light-green); /* Green halo */
    transition: transform 0.3s ease;
}
.founder-profile-img:hover {
    transform: scale(1.05);
}

.founder-info h3 {
    margin-bottom: 5px;
    color: var(--primary-green);
    font-size: 1.4em;
}

.founder-info p {
    font-style: italic;
    color: var(--text-color);
    font-size: 1em;
}

.values-section {
    background-color: var(--background-color);
    padding-top: 60px;
    border-top: 1px solid var(--border-color);
}

.values-section h2 {
    color: var(--primary-blue);
    margin-bottom: 50px;
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 40px;
    direction: ltr; /* Force LTR layout for grid items */
}

.value-item {
    background-color: var(--card-background);
    padding: 30px;
    border-radius: 10px;
    box-shadow: var(--shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.value-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0,0,0,0.2);
}

.value-item i {
    font-size: 3em;
    color: var(--primary-green);
    margin-bottom: 20px;
}

.value-item h3 {
    color: var(--text-color);
    margin-bottom: 15px;
    font-size: 1.5em;
}

.value-item p {
    color: var(--text-color);
    font-size: 1em;
}

/* Services Page */
.services-hero-section {
    background: linear-gradient(135deg, var(--primary-green), var(--primary-blue));
    color: #fff;
    text-align: center;
    padding: 100px 0 80px;
    min-height: 250px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}
.services-hero-section h1 {
    font-size: 3em;
    margin-bottom: 15px;
    text-shadow: 2px 2px 5px rgba(0,0,0,0.3);
}
.services-hero-section p {
    max-width: 800px;
    font-size: 1.2em;
    margin: 0 auto 1em auto; /* Added bottom margin */
}

.services-grid-section {
    padding-top: 50px;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    direction: ltr; /* Force LTR layout for grid items */
    margin-top: 40px; /* Added spacing from hero section's content */
}

.service-card {
    background-color: var(--card-background);
    border-radius: 10px;
    box-shadow: var(--shadow);
    overflow: hidden;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0,0,0,0.2);
}

.service-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
}

.service-card h3 {
    font-size: 1.6em;
    margin: 20px 15px 10px;
    color: var(--primary-green);
}

.service-card p {
    font-size: 1em;
    padding: 0 20px 10px; /* Adjusted bottom padding */
    color: var(--text-color);
}

.service-details-list {
    text-align: left; /* Default LTR */
    list-style-type: disc; /* Use disc bullets */
    padding-left: 40px; /* Indent bullets */
    padding-right: 20px; /* Keep consistent padding on right */
    margin: 0px 0 20px; /* Added bottom margin */
    color: var(--text-color);
}

.service-details-list li {
    margin-bottom: 8px;
    padding-left: 5px; /* Adjust spacing between bullet and text */
}

/* Contact Page */
.contact-hero-section {
    background: linear-gradient(135deg, var(--primary-blue), var(--dark-blue));
    color: #fff;
    text-align: center;
    padding: 100px 0 80px;
    min-height: 250px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}
.contact-hero-section h1 {
    font-size: 3em;
    margin-bottom: 15px;
    text-shadow: 2px 2px 5px rgba(0,0,0,0.3);
}
.contact-hero-section p {
    max-width: 800px;
    font-size: 1.2em;
    margin: 0 auto;
}

.contact-details-section {
    padding-top: 50px;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr; /* Form slightly smaller than info */
    gap: 50px;
    align-items: start;
    text-align: left;
    direction: ltr; /* Force LTR layout for grid items */
}

.contact-form-container, .contact-info-container {
    background-color: var(--card-background);
    padding: 40px;
    border-radius: 10px;
    box-shadow: var(--shadow);
}

.contact-form-container h2, .contact-info-container h2 {
    color: var(--primary-green);
    margin-bottom: 30px;
    text-align: center;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--text-color);
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="tel"],
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--border-color);
    border-radius: 5px;
    font-size: 1em;
    background-color: var(--background-color);
    color: var(--text-color);
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--primary-green);
    outline: none;
    box-shadow: 0 0 0 3px rgba(76, 175, 80, 0.2);
}

textarea {
    resize: vertical;
}

.contact-form .btn-primary {
    width: 100%;
    padding: 15px;
    font-size: 1.1em;
}

.contact-form p.success {
    color: var(--success-color);
    margin-top: 15px;
    font-weight: 600;
    text-align: center;
}

.contact-form p.error {
    color: var(--error-color);
    margin-top: 15px;
    font-weight: 600;
    text-align: center;
}

.contact-info-container .info-item {
    display: flex;
    align-items: center;
    margin-bottom: 25px;
    gap: 20px;
}

.contact-info-container .info-item i {
    font-size: 1.8em;
    color: var(--primary-blue);
    min-width: 30px; /* Ensure consistent alignment */
}

.contact-info-container .info-item h3 {
    margin-bottom: 5px;
    color: var(--primary-green);
    font-size: 1.3em;
}

.contact-info-container .info-item p {
    margin-bottom: 5px;
    color: var(--text-color);
}

.contact-info-container .contact-link {
    font-weight: 600;
    color: var(--link-color);
}

/* Google Maps Embed Styling */
.google-maps-embed-container {
    width: 100%;
    height: 250px; /* Consistent height for the map */
    margin-top: 30px;
    border-radius: 8px; /* Match other cards */
    overflow: hidden; /* Ensures border-radius applies to iframe */
    box-shadow: var(--shadow); /* Match other cards */
    transition: box-shadow 0.3s ease;
}

.google-maps-embed-container iframe {
    width: 100%;
    height: 100%;
    border: 0;
    display: block;
}

html.dark .google-maps-embed-container {
    box-shadow: var(--shadow); /* Apply dark mode shadow */
}

/* Footer */
footer {
    background-color: var(--footer-bg);
    color: var(--footer-text);
    padding: 50px 0 20px;
    font-size: 0.9em;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    padding-bottom: 30px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    direction: ltr; /* Force LTR layout for grid items */
}

.footer-section h3 {
    color: #fff;
    margin-bottom: 15px;
    font-size: 1.2em;
}

.footer-section p {
    margin-bottom: 8px;
}

.footer-section ul {
    padding: 0;
}

.footer-section ul li {
    margin-bottom: 8px;
}

.footer-section a {
    color: rgba(255,255,255,0.7);
    transition: color 0.3s ease;
}

.footer-section a:hover {
    color: var(--primary-green);
}

.social-links ul {
    display: flex;
    gap: 15px;
    margin-top: 10px;
}

.social-links a {
    font-size: 1.5em;
    color: #fff;
}

.social-links a:hover {
    color: var(--primary-green);
    transform: scale(1.1);
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    color: rgba(255,255,255,0.6);
}

/* New Footer Credit Line Styles */
.developer-credit-line {
    margin-top: 10px; /* Space between copyright and developer credit */
    font-size: 0.85em; /* Slightly smaller text for the credit line */
    color: inherit; /* Inherit color from .footer-bottom */
}

.developer-credit-line .credit-link {
    text-decoration: none; /* No underline */
    outline: none; /* No outline */
    color: inherit; /* Same text color as normal text */
    cursor: pointer;
    transition: color 0.3s ease; /* Smooth color change on hover */
}

.developer-credit-line .credit-link:hover {
    color: var(--primary-blue); /* Subtle blue tint on hover, adapts for dark mode */
}

/* Responsive Design */
@media (max-width: 992px) {
    .header-content {
        flex-direction: row; /* Keep logo and toggle on one line */
        justify-content: space-between;
        padding: 0 20px; /* Ensure padding on smaller screens */
    }
    .logo {
        margin-right: 0;
        margin-bottom: 0;
    }
    /* Reduce logo size on smaller screens to prevent overcrowding */
    .logo img {
        height: 120px; /* Increased from 90px */
    }
    .menu-toggle {
        display: block; /* Show hamburger on mobile */
        order: 2; /* Position it next to logo */
        margin-left: auto; /* Push to right for LTR */
    }
    
    .nav-and-controls {
        display: flex; /* Always flex for the slide-in effect */
        flex-direction: column;
        position: fixed; /* Fixed to cover viewport */
        top: 150px; /* Adjusted to accommodate new logo size (15px + 120px + 15px) */
        left: 0;
        width: 100%;
        height: calc(100vh - 150px); /* Adjusted */
        background-color: var(--header-bg);
        box-shadow: var(--shadow);
        padding: 30px 20px;
        transition: transform 0.3s ease-in-out;
        transform: translateX(100%); /* Start off-screen to the right */
        overflow-y: auto; /* Enable scrolling for long content */
        z-index: 999;
        justify-content: flex-start; /* Align content to the top */
        align-items: center; /* Center horizontally */
    }

    .nav-and-controls.open {
        transform: translateX(0); /* Slide in */
    }

    /* RTL specific adjustments for mobile menu slide-in - REMOVED, header always LTR */

    .nav-and-controls nav {
        width: 100%;
        margin-bottom: 30px; /* Space between nav and controls */
    }
    .nav-and-controls nav ul {
        flex-direction: column;
        text-align: center;
        width: 100%;
        gap: 20px;
    }

    .nav-and-controls nav ul li a {
        display: block;
        padding: 12px 0;
        font-size: 1.4em;
    }

    .nav-and-controls .header-controls {
        flex-direction: column;
        width: 100%;
        gap: 20px;
    }
    /* Mobile adjustments for language dropdown */
    .language-switcher {
        width: 100%; /* Take full width in mobile menu */
        display: flex;
        justify-content: center;
    }
    /* lang-switcher-btn mobile styles are now in the default .lang-switcher-btn */
    .lang-dropdown {
        position: static; /* Stack naturally in the flow */
        width: 100%;
        max-width: 200px; /* Match button width */
        margin-top: 10px;
        box-shadow: none; /* Remove shadow if stacking in mobile menu */
        border: none; /* Integrate better into mobile menu */
        padding: 0;
        background-color: transparent;
    }
    .lang-dropdown li button {
        justify-content: center;
        padding: 12px 15px; /* Larger touch targets */
        border-radius: 5px; /* Give some rounded corners for visual separation */
    }
    .lang-dropdown li button:hover {
        background-color: var(--border-color); /* Use a more subtle hover for mobile menu */
    }
    .dark-mode-custom-toggle {
        width: 100%;
        max-width: 200px;
        justify-content: center; /* Center the toggle itself */
    }

    /* Fix: Adjust dark mode toggle icons position to be inside the toggle switch on mobile */
    /* The label has max-width: 200px, and the inner div (toggle switch) is 110px. */
    /* This creates a 45px margin on each side of the div within the label. */
    /* To be 13px from the div's edge, they need to be (45 + 13) = 58px from the label's edge. */
    .dark-mode-custom-toggle svg.fill-white.absolute { /* Sun icon */
        left: 58px !important;
    }
    .dark-mode-custom-toggle svg.fill-black.absolute { /* Moon icon */
        right: 58px !important;
    }

    .hero-content .bold-headline {
        font-size: 2.8em;
    }
    .contact-grid {
        grid-template-columns: 1fr;
    }
    .services-grid, .founders-grid { /* Added founders-grid to responsive media query */
        grid-template-columns: 1fr;
    }
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .social-links ul {
        justify-content: center;
    }
}

/* Desktop-specific styles for navigation alignment */
@media (min-width: 993px) {
    .nav-and-controls {
        flex-grow: 1; /* Allows this container to take up available space between logo and right edge */
        display: flex; /* Ensure it's a flex container to distribute its children */
        align-items: center; /* Vertically align items within nav-and-controls */
    }

    .nav-and-controls nav {
        flex-grow: 1; /* Make the nav element itself take up all available space within nav-and-controls */
        display: flex; /* Make nav a flex container */
        justify-content: center; /* Center the <ul> (its direct child) */
        align-items: center; /* Vertically align the ul */
    }

    /* The .header-controls already has margin-left: auto; which will correctly push it to the far right
       of the .nav-and-controls container, after the flex-grown and centered nav. */
    .nav-and-controls .header-controls {
        flex-shrink: 0; /* Prevent controls from shrinking on desktop */
    }
}

@media (max-width: 768px) {
    h1 { font-size: 2.5em; }
    h2 { font-size: 1.8em; }
    .hero-section {
        padding: 100px 0;
    }
    .hero-content .bold-headline {
        font-size: 2.2em;
    }
    .hero-content p {
        font-size: 1em;
    }
    .section {
        padding: 60px 0;
    }
    .features-grid, .values-grid {
        grid-template-columns: 1fr;
    }
    .contact-form-container, .contact-info-container {
        padding: 25px;
    }
    /* Smaller profile images on tablet/mobile for founders */
    .founder-profile-img {
        width: 120px;
        height: 120px;
    }
    .service-details-list {
        padding-left: 20px; /* Adjust for smaller screens */
    }
}

@media (max-width: 480px) {
    .logo {
        font-size: 1.5em;
    }
    /* Even smaller logo on very small screens to ensure header fits */
    .logo img {
        height: 100px; /* Increased from 80px */
    }
    nav ul {
        gap: 15px;
    }
    h1 { font-size: 2em; }
    h2 { font-size: 1.5em; }
    .hero-content .bold-headline {
        font-size: 1.8em;
    }
    /* The custom dark mode toggle is handled by TailwindCSS, no need to adjust font-size here */
    .nav-and-controls nav ul li a {
        font-size: 1.2em;
    }
    .founder-profile-img {
        width: 100px;
        height: 100px;
    }
}

/* RTL Adjustments - ONLY for text alignment, no layout changes for header, grids */
/* Removed global RTL styles from html[dir="rtl"] and apply directly to main and footer-bottom */
main[dir="rtl"] {
    text-align: right;
}

main[dir="rtl"] .about-text-block,
main[dir="rtl"] .contact-form-container,
main[dir="rtl"] .contact-info-container,
main[dir="rtl"] .founder-info {
    text-align: right;
}

/* Specific elements that should maintain centering (override general RTL right-alignment) */
main[dir="rtl"] .hero-section,
main[dir="rtl"] .hero-content,
main[dir="rtl"] .call-to-action-section,
main[dir="rtl"] .features-section,
main[dir="rtl"] .values-section,
main[dir="rtl"] .feature-item,
main[dir="rtl"] .value-item,
main[dir="rtl"] .service-card,
main[dir="rtl"] .founder-card,
main[dir="rtl"] .google-maps-embed-container, /* Centered the map container */
main[dir="rtl"] .contact-form-container h2,
main[dir="rtl"] .contact-info-container h2,
main[dir="rtl"] .contact-form p.success,
main[dir="rtl"] .contact-form p.error {
    text-align: center;
}

main[dir="rtl"] .service-details-list {
    text-align: right;
    list-style-type: disc; /* Use disc bullets */
    padding-left: 0;
    padding-right: 40px; /* Indent for RTL */
}

main[dir="rtl"] .service-details-list li {
    padding-left: 0;
    padding-right: 5px;
}

.footer-bottom[dir="rtl"] {
    text-align: center;
}