/* Color Definitions */
:root {
    --primary-bg-color: #333; /* Background color for header, footer, and dark elements */
    --primary-text-color: white; /* Text color for dark sections */
    --secondary-bg-color: #f9f9f9; /* Light section background color */
    --accent-color-primary: #5A67D8; /* Primary button color */
    --accent-color-primary-hover: #4C51BF; /* Hover state for primary button */
    --accent-color-secondary: #48BB78; /* Secondary button color */
    --accent-color-secondary-hover: #38A169; /* Hover state for secondary button */
    --body-text-color: #333; /* General body text color */
    --muted-text-color: #666; /* Muted/secondary text */
}

/* General Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: var(--secondary-bg-color);
    color: var(--body-text-color);
    line-height: 1.6;
}

.container {
    width: 85%;
    margin: 0 auto;
    padding: 20px;
}

a {
    text-decoration: none;
}

ul {
    list-style: none;
}

/* Header */
header {
    background-color: var(--primary-bg-color); /* Dark background behind the logo */
    padding: 40px 0;
    color: var(--primary-text-color);
}

.header-bg {
    background-color: var(--primary-bg-color); /* Ensures the entire header, including behind the logo, is dark */
}

.logo-container {
    display: flex;
    justify-content: center;
}

header .logo {
    height: 300px;
    padding-bottom: 30px;
}

.language-switcher {
    position: absolute;
    top: 15px;
    right: 15px;
    font-size: 14px;
    color: var(--primary-bg-color);
}

.dropdown {
    position: relative;
    display: inline-block;
}

.dropdown-btn {
    background-color: transparent;
    color: var(--primary-text-color);
    padding: 5px 10px;
    font-size: 14px;
    border: 1px solid var(--primary-text-color);
    border-radius: 3px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.dropdown-btn:hover {
    background-color: var(--body-text-color);
}

.dropdown-content {
    display: none;
    position: absolute;
    left: 50%; /* Center horizontally */
    transform: translateX(-50%);
    background-color:var(--primary-bg-color);
    min-width: auto;
    box-shadow: 0px 4px 8px rgba(255, 255, 255, 0.1);
    z-index: 1;
    border-radius: 3px;
    overflow: hidden;
}

.dropdown-content button {
    color: var(--primary-bg-color);
    padding: 10px;
    color: var(--primary-text-color);
    text-decoration: none;
    display: block;
    width: 100%;
    border: none;
    background: none;
    text-align: center;
    font-size: 12px;
    cursor: pointer;
}

.dropdown-content button:hover {
    background-color: var(--body-text-color);
}

.dropdown:hover .dropdown-content {
    display: block;
}

/* Navbar */
nav {
    padding: 10px 0;
}

nav ul {
    display: flex;
    justify-content: center;
    align-items: center;
}

nav ul li {
    margin: 0 15px;
}

nav ul li a {
    color: var(--primary-text-color); /* White text for contrast */
    padding: 10px 20px;
    font-size: 18px;
    transition: background-color 0.3s ease, color 0.3s ease;
    border-radius: 5px;
}

nav ul li a:hover {
    background-color: #444; /* Slightly lighter on hover */
}

/* Home Section */
.home-section {
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 100px 0;
    background-color: #fff;
}

.home-section .content {
    max-width: 600px;
    margin: auto;
}

h1 {
    font-size: 48px;
    color: var(--body-text-color);
    margin-bottom: 20px;
}

p {
    font-size: 18px;
    margin-bottom: 30px;
}

ul li {
    font-size: 16px;
    margin-bottom: 10px;
    color: var(--muted-text-color);
}

.btn-primary {
    background-color: var(--accent-color-primary);
    color: white;
    padding: 15px 30px;
    border-radius: 8px;
    font-size: 18px;
    transition: background-color 0.3s ease;
    display: inline-block;
}

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

/* About Us Section */
.about-section {
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 100px 0;
    background-color: var(--secondary-bg-color);
}

.about-section .content {
    max-width: 600px;
    margin: auto;
}

h2 {
    font-size: 36px;
    color: var(--body-text-color);
    margin-bottom: 20px;
}

p {
    font-size: 18px;
    margin-bottom: 30px;
}

.btn-secondary {
    background-color: var(--accent-color-secondary);
    color: white;
    padding: 15px 30px;
    border-radius: 8px;
    font-size: 18px;
    transition: background-color 0.3s ease;
    display: inline-block;
}

.btn-secondary:hover {
    background-color: var(--accent-color-secondary-hover);
}

/* Products Section */
.product-section {
    padding: 100px 0;
    background-color: #fff;
    text-align: center;
}

.product-section h2 {
    font-size: 36px;
    color: var(--body-text-color);
    margin-bottom: 50px;
}

.product-grid {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
}

.product-card {
    background-color: var(--secondary-bg-color);
    padding: 30px;
    border-radius: 8px;
    flex: 1;
    min-width: 250px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    text-align: center; /* Center align content */
}

.product-logo {
    height: 100px; /* Adjust the logo width as necessary */
    width: auto; /* Maintain aspect ratio */
    margin-bottom: 15px; /* Space between logo and title */
}

.product-card h3 {
    font-size: 24px;
    color: var(--body-text-color);
    margin-bottom: 10px;
}

.product-card p {
    font-size: 16px;
    color: var(--muted-text-color);
}

/* Contact Us Section */
.contact-section {
    padding: 100px 0;
    background-color: #fff;
    text-align: center;
}

.contact-section h2 {
    font-size: 36px;
    margin-bottom: 20px;
    color: var(--body-text-color);
}

.contact-section p {
    font-size: 18px;
    margin-bottom: 30px;
    color: var(--muted-text-color);
}

.contact-form {
    max-width: 600px;
    margin: 0 auto;
    text-align: left;
}

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

.contact-form label {
    font-size: 16px;
    color: var(--body-text-color);
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 10px;
    margin-top: 5px;
    border-radius: 5px;
    border: 1px solid #ccc;
    font-size: 16px;
}

.contact-form textarea {
    resize: none;
}

.contact-form button {
    background-color: var(--accent-color-primary);
    color: white;
    padding: 15px 30px;
    border: none;
    border-radius: 8px;
    font-size: 18px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.contact-form button:hover {
    background-color: var(--accent-color-primary-hover);
}

/* Footer */
footer {
    background-color: var(--primary-bg-color);
    color: var(--primary-text-color);
    text-align: center;
    padding: 20px 0;
}

footer p {
    margin-top: 10px;
}


/* Mobile responsiveness */
@media only screen and (max-width: 768px) {
    nav ul {
        flex-direction: column; /* Stack navigation items */
    }

    nav ul li {
        margin: 10px 0;
    }

    .product-grid {
        flex-direction: column; /* Stack product cards */
        gap: 30px; /* Add space between stacked cards */
    }

    header .logo {
        height: 150px; /* Reduce logo size on mobile */
        padding-bottom: 15px;
    }

    .btn-primary, .btn-secondary {
        padding: 12px 25px; /* Adjust button size */
    }

    h1 {
        font-size: 36px; /* Smaller font size for mobile */
    }

    h2 {
        font-size: 28px;
    }

    p {
        font-size: 16px;
    }
}