:root {
    --primary-color: rgba(239, 231, 231, 255);
    --secondary-color: #ffffff;
    --text-color: #333;
    --header-offset: 110px; /* used for anchor offset under fixed header */
}

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

.language-selector {
    position: relative;
    display: inline-block;
    font-family: Arial, sans-serif;
}

.language-selector select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-color: #f8f9fa;
    border: 1px solid #ced4da;
    border-radius: 4px;
    padding: 8px 15px 8px 12px;
    font-size: 16px;
    margin-left: 30px;

}

.language-selector select:hover {
    background-color: #e9ecef;
}

.contact-info {
    display: flex;
    align-items: flex-start;
    gap: 2rem;
    flex-wrap: wrap;
}

.contact-item {
    display: flex;
    align-items: center;
    text-align: left;
}

.contact-item i {
    font-size: 1.5rem;
    margin-right: 1rem;
    color: var(--text-color);
    width: 1.5rem;
    text-align: center;
}

.contact-item span {
    display: flex;
    flex-direction: column;
}

.contact-item a {
    color: var(--text-color);
    text-decoration: none;
}

.contact-item a:hover {
    text-decoration: underline;
}

.menu-toggle {
    display: none; /* Hide the menu toggle by default */
    font-size: 1.5rem;
    background: none;
    border: none;
    color: var(--text-color);
    cursor: pointer;
}

body {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
}

/* Smooth scrolling and anchor offset for fixed header */
html {
    scroll-behavior: smooth;
    scroll-padding-top: var(--header-offset);
}

.section {
    padding: 2rem 0;
    scroll-margin-top: var(--header-offset);
}

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

header {
    background-color: #ffffff;
    padding: 1rem 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

nav {
    display: flex;
    align-items: center;
}

nav ul {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
}

nav ul li {
    margin-left: 1.7rem;
}

.logo-img {
    height: 80px;
}

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

nav ul li a:hover {
    color:#996666;
}

.section {
    padding: 2rem 0;
}

.section:nth-child(odd) {
    background-color: var(--primary-color);
}

.section:nth-child(even) {
    background-color: var(--secondary-color);
}

.service-grid .service-item:not(:last-child) {
    margin-right: 20px;
}

h1, h2, h3 {
    margin-bottom: 1rem;
}

h1 {
    font-size: 2.5rem;
}

h2 {
    font-size: 2rem;
    text-align: center;
}

.service-grid, .client-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
}

.service-item {
    background-color: var(--secondary-color);
    padding: 2rem;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
    text-align: center;
}

.service-item:hover, .partner-item:hover {
    transform: translateY(-5px);
}

.service-item i {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: var(--text-color);
}

.partner-item img {
    max-width: 200px;
    margin-bottom: 1rem;
}

.zone-content {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    background-color: var(--secondary-color)
}

.zone-item {
    background-color: var(--secondary-color);
    padding: 2rem;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    margin-bottom: 0.5rem;
}

.zone-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.zone-info {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
}

.zone-logo {
    max-width: 150px;
    height: auto;
}

.arrow {
    font-size: 2rem;
}

.zone-country {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.zone-icon {
    width: 50px;
    height: auto;
}

.zone-country > span {
    font-weight: bold;
}

/* Updated contact section styles */
.contact-info {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
}

.contact-item {
    display: flex;
    align-items: center;
    text-align: left;
}

.contact-item i {
    font-size: 1.5rem;
    margin-right: 1rem;
    color: var(--text-color);
    width: 1.5rem; /* Ensure consistent width for icons */
    text-align: center; /* Center the icon within its width */
}


footer {
    background-color: var(--primary-color);
    color: var(--text-color);
    text-align: center;
    padding: 1rem 0;
}

.hero {
    background-color: var(--primary-color);
    padding: 100px 0 50px;
    margin-top: 80px;
}

.hero h1 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    color: var(--text-color);
    text-align: center;
}

.hero h2 {
    font-size: 1.8rem;
    margin-bottom: 2rem;
    color: var(--text-color);
    font-weight: normal;
    text-align: center;
}

.hero-content {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.hero-sector {
    background-color: #ffffff;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    padding: 2rem;
    display: flex;
    align-items: center;
    width: 100%;
    transition: transform 0.3s ease;
}

.hero-sector:hover {
    transform: translateY(-5px);
}

.sector-icon {
    font-size: 3rem;
    color: var(--text-color);
    margin-right: 2rem;
    flex-shrink: 0;
}
.sector-icon-1 {
    font-size: 3rem;
    color: var(--text-color);
    margin-right: 2rem;
    flex-shrink: 0;
}

.sector-content {
    flex-grow: 1;
}

.sector-content p {
    margin-bottom: 0.5rem;
    margin-top: 0.5rem;
    display: flex;
    align-items: center;
}

.sector-content p img {
    margin-right: 2rem;
    max-width: 150px;
    height: auto;
}

.knorr-bremse-section, .zephir-section {
    padding: 60px 0;
}

.knorr-bremse-section {
    background-color: var(--secondary-color);
}

.zephir-section {
    background-color: var(--primary-color);
}

.knorr-bremse-section2 {
    padding: 60px 0;
    background-color: var(--primary-color);
}

.kb-header {
    display: flex;
    align-items: center;
    margin-bottom: 40px;
}

/* Tighter spacing for Zephir header when followed by full-width text */
.zephir-section .kb-header {
    margin-bottom: 0.40rem; /* override default 40px */
}

.kb-logo {
    max-width: 200px;
    margin-right: 30px;
}

.zf-logo {
    width: 300px;
    margin-right: 100px;
}

.kb-info {
    flex-grow: 1;
}

/* Full-width descriptive block under Zephir header */
.zephir-section .kb-about-wide {
    width: 100%;
    margin-top: 0rem;
}
.zephir-section .kb-about-wide .kb-about {
    text-align: left;
}
/* Remove top margin on first full-width paragraph */
.zephir-section .kb-about-wide .kb-about:first-child {
    margin-top: 0;
}
/* Tighten space between kb-info and kb-about-wide */
.zephir-section .kb-info .kb-about:last-of-type {
    margin-bottom: 0rem;
}

.kb-description {
    font-size: 1.2rem;
    font-weight: bold;
    margin-bottom: 10px;
    justify-content: center;
}

/* Additional descriptive paragraphs in Knorr-Bremse info */
.kb-about {
    margin: 0.5rem 0 0.75rem;
    line-height: 1.7;
    color: var(--text-color);
    text-align: left;
}

.kb-link {
    color: #0056b3;
    text-decoration: none;
    display: inline-block;
    margin-top: 0rem;
    margin-bottom: 0.5rem;
}

.kb-link:hover {
    text-decoration: underline;
}

/* ===================== */
/* Minitrucks Robotics   */
/* ===================== */
.minitrucks-section {
    padding: 60px 0;
    background-color: var(--secondary-color);
}

/* ===================== */
/* Founder Section       */
/* ===================== */
.founder-section {
    padding: 60px 0;
    background-color: var(--primary-color); /* use tinted background to avoid white block */
}

/* Ensure founder section background isn't overridden by alternating .section rules */
#founder {
    background-color: var(--primary-color) !important;
}

.founder-card {
    background: transparent; /* fully transparent to remove any block feel */
    border-radius: 0;
    box-shadow: none;
    padding: 0; /* let text breathe via paragraph margins */
    max-width: 100%;
    margin: 0; /* align with container edges */
    display: contents; /* render no box at all */
}

.founder-quote {
    position: relative;
    text-align: left;
    padding-left: 36px; /* create space between quote mark and text */
}

.founder-quote::before {
    content: "\201C"; /* opening quote */
    position: absolute;
    left: 0;
    top: -10px;
    font-size: 3.6rem;
    line-height: 1;
    color: #996666;
    opacity: 0.12;
}

.founder-quote p {
    font-size: 1.15rem;
    line-height: 1.9;
    margin: 0 0 0.9rem 0;
    color: var(--text-color);
}

.founder-signature {
    margin-top: 1rem;
    text-align: right;
}

.founder-name {
    font-weight: 700;
}

.founder-title {
    color: #666;
}

@media (max-width: 768px) {
    .founder-card {
        padding: 1.25rem;
    }
    .founder-quote p {
        font-size: 1.05rem;
        line-height: 1.8;
    }
    .founder-quote {
        padding-left: 26px; /* tighter on mobile */
    }
    .founder-quote::before {
        top: -8px;
        font-size: 3.2rem;
    }
}

.mt-header {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 1rem;
}

.mt-logo {
    width: 220px;
    height: auto;
    flex-shrink: 0;
}

.mt-title {
    font-size: 1.35rem;
    line-height: 1.4;
    font-weight: 600;
}

.mt-content {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

/* Rows: 2 columns per row */
.mt-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    align-items: start;
}

.mt-images {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}
.mt-images .mt-image:nth-child(1) {
    grid-column: 1 / -1; /* first image full width */
}

.mt-image {
    width: 100%;
    height: auto;
    border-radius: 6px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.08);
}

.mt-text {
    line-height: 1.8;
    text-align: left;
}

@media (max-width: 900px) {
    .mt-row {
        grid-template-columns: 1fr; /* stack within each row */
    }
    .mt-header {
        flex-direction: column;
        align-items: flex-start;
    }
    .mt-logo {
        width: 180px;
    }
}

.kb-content {
    display: flex;
    align-items: flex-start;
}

.kb-main-image {
    width: 85%;
    max-width: 85%;
    height: auto;
}

.kb-sidebar-text {
    width: 15%;
    font-size: 1.1rem;
    line-height: 1.4;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 50px;
    margin-left: 30px;
}

.kb-sidebar-text2 {
    width: 15%;
    font-size: 1.1rem;
    line-height: 1.4;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 90px;
    margin-right: 30px;
}

.zephir-section .container {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.service-grid {
    display: flex;
    justify-content: space-between;
    width: 100%;
}

.service-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    flex: 1;
    padding: 20px;
    box-sizing: border-box;
}

.service-image {
    max-width: 100%;
    height: auto;
    margin-bottom: 10px;
}

h3 {
    margin-bottom: 10px;
    font-size: 18px;
}

.contact-info {
    display: flex;
    align-items: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.contact-item {
    display: flex;
    align-items: center;
    text-align: left;
}

.contact-item i {
    font-size: 1.5rem;
    margin-right: 1rem;
    color: var(--text-color);
    width: 1.5rem;
    text-align: center;
}

.contact-item span {
    display: flex;
    flex-direction: column;
}

.contact-item a {
    color: var(--text-color);
    text-decoration: none;
}

.contact-item a:hover {
    text-decoration: underline;
}

.contact-item.address {
    flex-grow: 1;
}

.contact-item.email {
    flex-grow: 1;
    justify-content: flex-end;
}

/* Existing styles remain the same */

/* ... (keep all the existing styles) ... */

/* Updated responsive styles */
@media screen and (max-width: 1200px) {
    .container {
        padding: 0 1rem;
    }
}

@media screen and (max-width: 992px) {
    .hero h1 {
        font-size: 2rem;
    }

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

    .kb-header {
        flex-direction: column;
        align-items: center;
    }

    .kb-logo, .zf-logo {
        margin-right: 0;
        margin-bottom: 1rem;
    }

    .kb-content {
        flex-direction: column;
        align-items: center;
    }

    .kb-main-image {
        width: 100%;
        max-width: 100%;
    }

    .kb-sidebar-text, .kb-sidebar-text2 {
        width: 100%;
        margin: 1rem 0;
        text-align: center;
    }

    .service-grid {
        flex-direction: column;
    }

    .service-item {
        margin-bottom: 1rem;
    }
}

@media screen and (max-width: 768px) {
    .contact-info {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .contact-item {
        width: 70%;
        margin-bottom: 1rem;
        flex-direction: column;
    }

    .contact-item i {
        margin-right: 0;
        margin-bottom: 0.5rem;
    }

    .contact-item span {
        align-items: center;
    }
    body {
        text-align: center;
    }

    .container {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    header .container {
        flex-direction: row; /* Change to row to place logo and toggle button side by side */
        justify-content: space-between; /* Space out logo and toggle button */
        align-items: center;
        width: 100%; /* Ensure the header container takes full width */
    }
    .logo-img {
        margin-bottom: 0; /* Remove bottom margin as it's no longer stacked */
    }

    .menu-toggle {
        display: block; /* Show the menu toggle button on mobile */
    }

    nav {
        display: none;
        width: 100%;
        position: absolute;
        top: 100%;
        left: 0;
        background-color: var(--primary-color);
        padding: 1rem 0;
        box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    }

    nav.active {
        display: block;
    }

    nav ul {
        flex-direction: column;
        align-items: center;
    }

    nav ul li {
        margin: 0.5rem 0;
    }

    .menu-toggle {
        display: block;
        font-size: 1.5rem;
        background: none;
        border: none;
        color: var(--text-color);
        cursor: pointer;
    }

    .language-selector select {
        appearance: none;
        -webkit-appearance: none;
        -moz-appearance: none;
        background-color: #f8f9fa;
        border: 1px solid #ced4da;
        border-radius: 4px;
        padding: 8px 15px 8px 12px;
        font-size: 16px;
        margin-left: 3px;
        margin-top: 5px;
    
    }

    .hero {
        padding: 80px 0 30px;
    }

    .hero-sector {
        flex-direction: column;
        text-align: center;
    }

    .sector-icon {
        margin-right: 0;
        margin-bottom: 1rem;
    }

    .sector-icon-1 {
        display: none; /* Hide the train icon on mobile */
    }

    .sector-content {
        width: 100%; /* Ensure the content takes full width */
    }
    .sector-content p {
        flex-direction: column;
        align-items: center;
    }

    .sector-content p img {
        margin-right: 0;
        margin-bottom: 1rem;
    }

    .contact-info {
        flex-direction: column;
        align-items: center;
    }

    .contact-item {
        width: 80%;
        text-align: center;
        margin-bottom: 1rem;
    }
}

@media screen and (max-width: 480px) {
    .logo-img {
        height: 60px;
    }

    .hero h1 {
        font-size: 1.8rem;
    }

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

    h2 {
        font-size: 1.5rem;
    }

    .service-item h3 {
        font-size: 16px;
    }
}