/* Global Styles */
html, body {
    margin: 0;
    padding: 0;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, 'Noto Sans', sans-serif;
    line-height: 1.6;
    color: #333;
}

/* Language specific visibility */
/* Language visibility rules */
/* By default hide all language-specific elements. They will be shown according to the body class */
.en,
.zh,
.jp {
    display: none;
}

body.lang-en .en {
    display: inline;
}
body.lang-en .zh,
body.lang-en .jp {
    display: none;
}

body.lang-zh .zh {
    display: inline;
}
body.lang-zh .en,
body.lang-zh .jp {
    display: none;
}

body.lang-jp .jp {
    display: inline;
}
body.lang-jp .zh,
body.lang-jp .en {
    display: none;
}

/* Contact form language visibility */
.contact-form form {
    display: none;
}
body.lang-en .contact-form form.en {
    display: block;
}
body.lang-zh .contact-form form.zh {
    display: block;
}
body.lang-jp .contact-form form.jp {
    display: block;
}

/* Navigation */
nav {
    background: #004a85;
    color: white;
    padding: 1rem 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
}
nav .logo {
    display: flex;
    align-items: center;
}

/* Logo image in navigation */
nav .logo img {
    height: 40px;
    width: auto;
}
nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
}
nav ul li {
    margin-left: 1.5rem;
}
nav ul li a {
    color: white;
    text-decoration: none;
    transition: opacity 0.2s;
}
nav ul li a:hover {
    opacity: 0.8;
}

.lang-toggle {
    background: #fff;
    color: #004a85;
    border: none;
    border-radius: 4px;
    padding: 0.4rem 0.8rem;
    cursor: pointer;
    font-weight: bold;
    transition: background 0.3s;
}

/* Style for language dropdown */
.lang-select {
    background: #fff;
    color: #004a85;
    border: none;
    border-radius: 4px;
    padding: 0.4rem 0.8rem;
    cursor: pointer;
    font-weight: bold;
    font-size: 1rem;
}

.lang-select option {
    color: #004a85;
}
.lang-toggle:hover {
    background: #e5e5e5;
}

/* Hero Section */
.hero {
    min-height: 60vh;
    /* Add a gradient overlay and a custom background image for the home page hero section */
    background: linear-gradient(135deg, rgba(0,92,151,0.8), rgba(54,55,149,0.8)), url('hero-bg.png') no-repeat center center/cover;
    color: white;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 2rem;
}
.hero h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}
.hero p {
    font-size: 1.2rem;
    max-width: 700px;
}
.hero .cta-buttons {
    margin-top: 2rem;
}
.hero .cta-buttons a {
    background: #fff;
    color: #004a85;
    padding: 0.8rem 1.2rem;
    border-radius: 4px;
    margin: 0 0.5rem;
    text-decoration: none;
    font-weight: bold;
    transition: background 0.3s;
}
.hero .cta-buttons a:hover {
    background: #f2f2f2;
}

/* Section Styles */
section {
    padding: 4rem 2rem;
    max-width: 1100px;
    margin: 0 auto;
}
.section-title {
    text-align: center;
    margin-bottom: 2rem;
    font-size: 2rem;
    color: #004a85;
}

/* Service Cards */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 2rem;
}
.service-card {
    background: #f8f8f8;
    padding: 1.5rem;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    transition: transform 0.3s;
}
.service-card:hover {
    transform: translateY(-5px);
}
.service-card .emoji {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}
.service-card h3 {
    margin-bottom: 0.5rem;
    color: #004a85;
}
.service-card p {
    font-size: 0.9rem;
    color: #555;
}

/* About Page */
.about-container {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}
.about-container .info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.5rem;
}
.info-item {
    background: #f7f7f7;
    padding: 1rem;
    border-radius: 6px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}
.info-item h4 {
    margin-bottom: 0.5rem;
    color: #004a85;
    font-size: 1rem;
}
.info-item p {
    margin: 0;
    font-size: 0.9rem;
    color: #555;
}

/* Representative message */
.message {
    background: #e9f3fb;
    padding: 2rem;
    border-left: 5px solid #004a85;
    margin-top: 2rem;
}
.message p {
    margin: 0 0 1rem 0;
    font-size: 1rem;
}
.message .signature {
    text-align: right;
    font-weight: bold;
    color: #004a85;
}

/* Contact Form */
.contact-container {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}
.contact-form {
    background: #f8f8f8;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}
.contact-form label {
    display: block;
    margin-bottom: 0.3rem;
    font-weight: bold;
    color: #004a85;
}
.contact-form input,
.contact-form textarea,
.contact-form select {
    width: 100%;
    padding: 0.5rem;
    margin-bottom: 1rem;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-family: inherit;
    font-size: 1rem;
}
.contact-form button {
    background: #004a85;
    color: white;
    padding: 0.7rem 1.5rem;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: bold;
    transition: background 0.3s;
}
.contact-form button:hover {
    background: #003f70;
}

.contact-info {
    background: #f8f8f8;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}
.contact-info h3 {
    margin-top: 0;
    color: #004a85;
}
.contact-info p {
    margin: 0.2rem 0;
    color: #555;
}

/* Footer */
footer {
    background: #004a85;
    color: white;
    text-align: center;
    padding: 1rem 2rem;
    font-size: 0.9rem;
}

@media (max-width: 600px) {
    nav ul li {
        margin-left: 0.8rem;
    }
    .hero h1 {
        font-size: 2rem;
    }
    .hero p {
        font-size: 1rem;
    }
}