/* General Body and Font Styles */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;600;700&display=swap');

:root {
    /* Refined Color Palette for a Clean Business Website */
    --primary-color: #1A437C; /* Deep Corporate Blue */
    --secondary-color: #2E6DA4; /* Professional Medium Blue */
    --accent-color: #4CAF50; /* Action Green */
    --light-bg: #F9FAFC; /* Soft Off-White Background */
    --dark-text: #333333; /* Dark Grey Text */
    --light-text: #FFFFFF; /* White Text */
    --border-color: #E0E0E0; /* Light Grey Borders */
    --header-height: 80px;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: var(--dark-text);
    background-color: var(--light-bg);
}

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

.section-padding {
    padding: 80px 0;
}

.bg-light {
    background-color: var(--light-bg);
}

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

/* Headings */
h1, h2, h3, h4, h5, h6 {
    color: var(--dark-text);
    margin-bottom: 20px;
    font-weight: 700;
}

h1 {
    font-size: 3.2em;
    line-height: 1.2;
    margin-bottom: 25px;
}

h2 {
    font-size: 2.5em;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}

h2::after {
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    bottom: 0;
    width: 60px;
    height: 4px;
    background-color: var(--secondary-color);
    border-radius: 2px;
}

.section-subtitle {
    font-size: 1.2em;
    color: #6c757d;
    margin-bottom: 40px;
}

/* Links */
a {
    color: var(--secondary-color);
    text-decoration: none;
    transition: color 0.3s ease, transform 0.3s ease;
}

a:hover {
    color: var(--primary-color);
    text-decoration: underline;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 25px;
    border-radius: 50px;
    font-weight: 600;
    text-transform: uppercase;
    transition: background-color 0.3s ease, color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.btn-primary {
    background-color: var(--secondary-color);
    color: var(--light-text);
    border: 2px solid var(--secondary-color);
}

.btn-primary:hover {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.15);
}

.btn-secondary {
    background-color: transparent;
    color: var(--secondary-color);
    border: 2px solid var(--secondary-color);
}

.btn-secondary:hover {
    background-color: var(--secondary-color);
    color: var(--light-text);
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.15);
}

/* Header */
.main-header {
    background-color: var(--light-text);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    padding: 15px 0;
    position: fixed; /* Changed to fixed for fading effect */
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    min-height: var(--header-height);
    display: flex;
    align-items: center;
    /* Added for fade out effect */
    transition: opacity 0.3s ease-out, transform 0.3s ease-out;
}

.main-header.header-hidden {
    opacity: 0;
    transform: translateY(-100%);
    pointer-events: none; /* Disables interaction when hidden */
}

.main-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap; /* Allow wrapping on small screens */
}

.logo img {
    height: 50px; /* Adjust as needed */
    width: auto;
}

.main-nav .nav-list {
    list-style: none;
    display: flex;
    gap: 30px;
}

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

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

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

.language-switcher {
    margin-left: 20px;
    font-weight: 600;
}

.language-switcher a {
    color: #6c757d;
}

.language-switcher a:hover {
    color: var(--primary-color);
}

.language-switcher .current-lang {
    color: var(--primary-color);
}

.menu-toggle {
    display: none; /* Hidden on desktop */
    background: none;
    border: none;
    font-size: 1.8em;
    color: var(--dark-text);
    cursor: pointer;
}

/* Offset for fixed header */
body {
    padding-top: var(--header-height); /* Add padding to body to prevent content from going under fixed header */
}

/* Hero Section */
.hero-section {
    background-size: cover;
    background-position: center;
    color: var(--light-text);
    text-align: center;
    padding: 150px 20px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 600px;
}

.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;
}

.hero-section .container {
    position: relative;
    z-index: 2;
}

.hero-section h1 {
    color: var(--light-text);
    font-size: 3.8em;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.hero-section p {
    font-size: 1.5em;
    margin-bottom: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* Services Overview Section */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.service-item {
    background-color: var(--light-text);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
}

.service-icon {
    font-size: 3em;
    color: var(--secondary-color);
    margin-bottom: 20px;
}

.service-item h3 {
    font-size: 1.6em;
    margin-bottom: 15px;
}

.service-item p {
    font-size: 1.1em;
    margin-bottom: 20px;
    color: #555;
}

.service-item .learn-more {
    font-weight: 600;
    color: var(--accent-color);
}

.service-item .learn-more:hover {
    text-decoration: underline;
    transform: translateX(5px);
}

/* Why Choose Us Section */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.feature-item {
    background-color: var(--light-text);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.feature-icon {
    font-size: 3em;
    color: var(--accent-color);
    margin-bottom: 20px;
}

.feature-item h3 {
    font-size: 1.6em;
    margin-bottom: 15px;
}

.feature-item p {
    font-size: 1.1em;
    color: #555;
}

/* Call to Action Section */
.call-to-action {
    background-color: var(--primary-color);
    color: var(--light-text);
    text-align: center;
    padding: 80px 20px;
    border-radius: 10px;
    margin: 40px auto; /* Centered with some margin */
    max-width: 1000px; /* Constrain width */
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.call-to-action h2 {
    color: var(--light-text);
    font-size: 2.8em;
    margin-bottom: 20px;
}

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

/* Footer */
.main-footer {
    background-color: var(--dark-text);
    color: rgba(255, 255, 255, 0.8);
    padding: 60px 0 20px;
    font-size: 0.95em;
}

.main-footer .footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.footer-col h4 {
    color: var(--light-text);
    margin-bottom: 20px;
    font-size: 1.2em;
    position: relative;
    padding-bottom: 5px;
}

.footer-col h4::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 40px;
    height: 3px;
    background-color: var(--secondary-color);
    border-radius: 2px;
}

.footer-col ul {
    list-style: none;
}

.footer-col ul li {
    margin-bottom: 10px;
}

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

.footer-col ul li a:hover {
    color: var(--secondary-color);
    text-decoration: none;
}

.footer-col p {
    margin-bottom: 10px;
}

.footer-col p i {
    margin-right: 8px;
    color: var(--secondary-color);
}

.social-links a {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--light-text);
    margin-right: 10px;
    border-radius: 50%;
    transition: background-color 0.3s ease, color 0.3s ease;
    font-size: 1.2em;
}

.social-links a:hover {
    background-color: var(--secondary-color);
    color: var(--light-text);
    text-decoration: none;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: 20px;
}

/* Responsive Design */
@media (max-width: 992px) {
    .main-nav .nav-list {
        gap: 20px;
    }
    .hero-section h1 {
        font-size: 3em;
    }
    .hero-section p {
        font-size: 1.3em;
    }
    h2 {
        font-size: 2.2em;
    }
    .call-to-action h2 {
        font-size: 2.4em;
    }
}

@media (max-width: 768px) {
    .main-header .container {
        flex-wrap: nowrap; /* Prevent wrapping for header elements */
        justify-content: space-between;
    }
    .main-nav {
        display: flex;
        align-items: center;
        width: 100%; /* Take full width on mobile */
        justify-content: flex-end; /* Push menu and language to right */
    }
    .main-nav .nav-list {
        display: none; /* Hide on small screens by default */
        flex-direction: column;
        width: 100%;
        background-color: var(--light-text);
        position: absolute;
        top: var(--header-height);
        left: 0;
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
        padding: 20px;
        border-radius: 0 0 10px 10px;
    }

    .main-nav .nav-list.active {
        display: flex; /* Show when active */
    }

    .main-nav .nav-list li {
        margin-bottom: 10px;
        text-align: center;
    }

    .main-nav .nav-list a {
        padding: 10px 0;
        display: block; /* Make links full width */
    }

    .menu-toggle {
        display: block; /* Show hamburger menu */
        order: 3; /* Place it after language switcher */
        margin-left: 15px; /* Space from language switcher */
    }

    .language-switcher {
        order: 2; /* Place it before menu toggle */
        margin-left: auto; /* Push to the right */
        margin-right: 15px; /* Space from menu toggle */
    }
    
    .logo {
        order: 1; /* Keep logo first */
    }


    .hero-section {
        padding: 100px 20px;
        min-height: 450px;
    }
    .hero-section h1 {
        font-size: 2.5em;
    }
    .hero-section p {
        font-size: 1.1em;
    }

    .section-padding {
        padding: 60px 0;
    }

    .services-grid,
    .features-grid,
    .main-footer .footer-grid {
        grid-template-columns: 1fr; /* Stack columns on small screens */
    }
    .service-item, .feature-item {
        padding: 25px;
    }

    h2::after {
        left: 50%;
        transform: translateX(-50%);
    }

    .call-to-action h2 {
        font-size: 2em;
    }
    .call-to-action p {
        font-size: 1.1em;
    }
}

@media (max-width: 480px) {
    .hero-section h1 {
        font-size: 2em;
    }
    .hero-section p {
        font-size: 1em;
    }
    .btn {
        padding: 10px 20px;
        font-size: 0.9em;
    }
    h2 {
        font-size: 1.8em;
    }
    .section-subtitle {
        font-size: 1em;
    }
    .call-to-action h2 {
        font-size: 1.8em;
    }
    .call-to-action p {
        font-size: 1em;
    }
}
