/* --- CSS Variables for Easy Customization --- */
:root {
    --primary-color: #0A2342; /* Deep Blue - Bold & Professional */
    --secondary-color: #D9A404; /* Gold/Yellow - Accent */
    --accent-color: #C41E3A; /* Dark Red - For alerts or emphasis */
    --text-color: #333333;
    --light-text-color: #FFFFFF;
    --background-color: #F4F7F6;
    --card-background-color: #FFFFFF;
    --header-font: 'Arial', sans-serif; /* Placeholder, consider Google Fonts like Montserrat or Roboto */
    --body-font: 'Arial', sans-serif;   /* Placeholder, consider Google Fonts like Open Sans */
    --border-radius: 5px;
    --box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* --- Basic Reset & Global Styles --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--body-font);
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--background-color);
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px 0;
}

h1, h2, h3 {
    font-family: var(--header-font);
    color: var(--primary-color);
    margin-bottom: 0.75em;
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }

p {
    margin-bottom: 1em;
}

a {
    color: var(--primary-color);
    text-decoration: none;
}

a:hover {
    color: var(--secondary-color);
    text-decoration: underline;
}

img {
    max-width: 100%;
    height: auto;
}

.btn {
    display: inline-block;
    padding: 10px 20px;
    background-color: var(--primary-color);
    color: var(--light-text-color);
    border: none;
    border-radius: var(--border-radius);
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease;
    cursor: pointer;
}

.btn:hover {
    background-color: var(--secondary-color);
    color: var(--primary-color);
    text-decoration: none;
}

.btn-secondary {
    background-color: var(--secondary-color);
    color: var(--primary-color);
}
.btn-secondary:hover {
    background-color: var(--primary-color);
    color: var(--light-text-color);
}

/* --- Header --- */
.main-header {
    background-color: var(--primary-color);
    color: var(--light-text-color);
    padding: 1rem 0;
    box-shadow: var(--box-shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.main-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-title-container { /* Renamed for clarity */
    display: flex;
    align-items: center;
    flex-grow: 1; /* Allow it to take available space */
}

#company-logo {
    height: 50px; /* Adjust as needed */
    margin-right: 15px;
}

.title-tagline h1, .title-tagline p {
    color: var(--light-text-color);
    margin: 0;
}
#company-title { font-size: 1.8rem; }
#company-tagline { font-size: 0.9rem; opacity: 0.9; }

.main-nav {
    display: flex; /* Ensure nav is flex for desktop */
    align-items: center;
}

.main-nav ul {
    list-style: none;
    display: flex;
    margin: 0; /* Reset margin */
    padding: 0; /* Reset padding */
}

.main-nav ul li {
    margin-left: 20px;
}

.main-nav ul li a {
    color: var(--light-text-color);
    font-weight: bold;
    font-size: 1rem;
}
.main-nav ul li a:hover {
    color: var(--secondary-color);
    text-decoration: none;
}

.nav-toggle {
    display: none; /* Hidden by default, shown on mobile */
    background: none;
    border: none;
    color: var(--light-text-color);
    font-size: 1.5rem;
    cursor: pointer;
    margin-left: 15px; /* Space from nav links if they are visible */
}

.language-switcher {
    margin-left: 20px; /* Space from nav or hamburger */
    display: flex;
    align-items: center;
}

.language-switcher button {
    background: none;
    border: 1px solid var(--light-text-color);
    color: var(--light-text-color);
    padding: 5px 8px;
    margin-left: 5px;
    cursor: pointer;
    border-radius: var(--border-radius);
    font-size: 0.8rem;
    font-weight: bold;
}

.language-switcher button:hover,
.language-switcher button.active {
    background-color: var(--secondary-color);
    color: var(--primary-color);
    border-color: var(--secondary-color);
}
/* Placeholder for flag icons if you use images/svg */
.language-switcher .flag-icon {
    width: 24px;
    height: 18px;
    cursor: pointer;
    margin-left: 8px;
    border: 1px solid transparent;
}
.language-switcher .flag-icon:hover,
.language-switcher .flag-icon.active {
    border-color: var(--secondary-color);
    box-shadow: 0 0 5px var(--secondary-color);
}


/* --- Hero Section --- */
.hero {
    background: var(--primary-color) url('https://picsum.photos/id/950/900/400') no-repeat center center/cover; /* Placeholder image */
    color: var(--light-text-color);
    padding: 80px 0;
    text-align: center;
    min-height: 40vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}
.hero-content {
    background-color: rgba(0,0,0,0.5); /* Semi-transparent overlay for text readability */
    padding: 30px;
    border-radius: var(--border-radius);
}
.hero h1 {
    font-size: 3rem;
    margin-bottom: 0.5em;
    color: var(--light-text-color); /* Override default h1 color */
}
.hero p {
    font-size: 1.2rem;
    margin-bottom: 1.5em;
}

/* --- Sections General Styling --- */
section {
    padding: 60px 0;
}
/* section:nth-child(even) { background-color: #E9ECEF; } */

.section-title {
    text-align: center;
    margin-bottom: 40px;
    font-size: 2.5rem;
}

/* --- Services Section --- */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}
.service-item {
    background-color: var(--card-background-color);
    padding: 25px;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.service-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0,0,0,0.15);
}
.service-item img.service-icon {
    width: 60px;
    height: 60px;
    margin-bottom: 15px;
}
.service-item h3 {
    color: var(--primary-color);
    margin-bottom: 10px;
}

/* --- About Section --- */
#about .container {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 40px;
}
.about-content, .about-image {
    flex: 1;
    min-width: 300px;
}
.about-image img {
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
}

/* --- Contact Section --- */
.contact-form {
    max-width: 700px;
    margin: 0 auto;
    background-color: var(--card-background-color);
    padding: 30px;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
}
.contact-form label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
}
.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form textarea {
    width: 100%;
    padding: 12px;
    margin-bottom: 20px;
    border: 1px solid #ccc;
    border-radius: var(--border-radius);
    font-family: var(--body-font);
}
.contact-form textarea {
    min-height: 150px;
    resize: vertical;
}
.contact-form button[type="submit"] {
    width: 100%;
    padding: 15px;
}

/* --- Footer --- */
.main-footer {
    background-color: var(--text-color);
    color: var(--light-text-color);
    text-align: center;
    padding: 20px 0;
    margin-top: auto; /* Pushes footer to the bottom */
}
.main-footer p {
    margin: 0;
    font-size: 0.9rem;
}
.main-footer a {
    color: var(--secondary-color);
}
.main-footer a:hover {
    color: var(--light-text-color);
}

/* --- Responsive Design --- */
@media (max-width: 768px) {
    .main-header .container {
        flex-wrap: wrap; /* Allow wrapping for logo and nav toggle/switcher */
        position: relative; /* For absolute positioning of nav-toggle */
    }
    .logo-title-container {
        width: 100%; /* Take full width initially */
        margin-bottom: 10px; /* Space below logo/title block */
        justify-content: center; /* Center logo/title if nav is below */
    }
    .main-nav {
        width: 100%;
        display: none; /* Hidden by default on mobile */
        order: 3; /* Ensure nav appears below logo and toggles */
    }
    .main-nav.active {
        display: block; /* Shown when toggled */
    }
    .main-nav ul {
        flex-direction: column;
        width: 100%;
    }
    .main-nav ul li {
        margin: 10px 0;
        text-align: center;
    }

    .nav-toggle-wrapper { /* Wrapper for toggle and language switcher */
        display: flex;
        align-items: center;
        position: absolute; /* Position it to the top right */
        top: 10px; /* Adjust as needed */
        right: 0; /* Align to the right of the container padding */
        padding-bottom: 40px;
    }

    .nav-toggle {
        display: block; /* Show hamburger icon */
        order: 1; /* Comes before language switcher in the wrapper */
    }
    .language-switcher {
        margin-left: 10px; /* Space from hamburger */
        order: 2; /* Comes after hamburger in the wrapper */
    }
    .language-switcher button {
        padding: 4px 6px;
        font-size: 0.7rem;
    }


    .hero h1 { font-size: 2.2rem; }
    .hero p { font-size: 1rem; }

    h1 { font-size: 2rem; }
    h2 { font-size: 1.75rem; }
    .section-title { font-size: 2rem; }

    #about .container {
        flex-direction: column;
    }
    .about-image {
        margin-top: 20px;
        order: -1; /* Image on top on mobile */
    }
}

@media (max-width: 480px) { /* Further adjustments for very small screens */
    .logo-title-container {
        text-align: center; /* Center the logo and title */
        margin-bottom: 5px;
    }
    #company-title { font-size: 1.5rem; }
    #company-tagline { font-size: 0.8rem; }
    #company-logo { height: 40px; margin-right: 10px;}

    .nav-toggle-wrapper {
        top: 5px; /* Adjust for smaller header */
    }
    .nav-toggle { font-size: 1.3rem; }
    .language-switcher button { font-size: 0.65rem; padding: 3px 5px; }
}
