/* Base & CSS Variables */
:root {
    --primary-blue: #0A2540;     /* Deep Blue */
    --primary-teal: #00B4D8;     /* Medical Teal */
    --secondary-teal: #90E0EF;   
    --dark-bg: #051421;          /* Blackish Blue for very deep backgrounds */
    --light-bg: #F8F9FA;
    --white: #FFFFFF;
    --gray: #6C757D;
    --glass-bg: rgba(255, 255, 255, 0.08);
    --glass-border: rgba(255, 255, 255, 0.15);
}

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

body {
    /* English defaults to Inter, Chinese falls back to KingHwa_OldSong explicitly */
    font-family: 'Inter', 'KingHwa_OldSong', '京华老宋体', "STSong", "SimSun", serif; 
    background-color: var(--dark-bg);
    color: var(--white);
    line-height: 1.6;
    overflow-x: hidden;
}

html {
    scroll-behavior: smooth;
}

/* Bilingual system */
body:not(.lang-zh) .cn-text { display: none !important; }
body.lang-zh .en-text { display: none !important; }

.en-text { display: inline-block; }
p.en-text, h1.en-text, h2.en-text, h3.en-text { display: block; }
a.en-text { display: inline-block; }

.lang-zh .cn-text {
    display: inline-block;
    /* Force the specialized font on all Chinese text blocks */
    font-family: 'KingHwa_OldSong', '京华老宋体', "STSong", "SimSun", serif !important;
    font-weight: 400; /* Serif usually looks best at normal weights */
    font-size: 115%; /* Increase Chinese font size for readability */
    letter-spacing: 1px;
}
.lang-zh p.cn-text, .lang-zh h1.cn-text, .lang-zh h2.cn-text, .lang-zh h3.cn-text { display: block; }
.lang-zh a.cn-text { display: inline-block; }

/* Utilities */
.highlight { color: var(--primary-teal); }
.text-center { text-align: center; }
.center-div { margin: 15px auto; }
.divider {
    height: 3px;
    width: 60px;
    background: var(--primary-teal);
    margin: 15px 0 25px 0;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 20px 0;
    transition: all 0.3s ease;
    z-index: 1000;
}
.navbar.scrolled {
    background: rgba(10, 37, 64, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
    padding: 15px 0;
}
.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
}
.logo-container {
    display: flex;
    align-items: center;
    gap: 15px;
    text-decoration: none;
    color: white;
}
.logo-img-wrapper {
    width: 100px;
    height: 100px;
    display: flex;
    align-items: center;
    border-radius: 5px;
}
.logo-img {
    width: 100%;
    height: auto;
    object-fit: contain;
}
.logo-text {
    display: flex;
    flex-direction: column;
}
.logo-brand {
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: 2px;
}
.logo-subtext {
    font-size: 0.75rem;
    color: var(--secondary-teal);
    letter-spacing: 1px;
}
.logo-locations {
    font-size: 0.65rem;
    color: var(--gray);
    letter-spacing: 1px;
    margin-top: 2px;
}

.nav-links { display: flex; gap: 30px; }
.nav-links a {
    color: var(--white);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}
.nav-links a:hover { color: var(--primary-teal); }

.lang-selector {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.9rem;
}
.lang-option {
    cursor: pointer;
    color: var(--white);
    transition: color 0.3s ease;
    font-family: 'Inter', sans-serif;
}
.lang-option.lang-cn-opt {
    font-family: 'KingHwa_OldSong', '京华老宋体', "STSong", "SimSun", serif;
    font-size: 1.1rem;
}
.lang-option:hover {
    color: var(--primary-teal);
}
.lang-option.active {
    color: var(--primary-teal);
    font-weight: 700;
}
.lang-divider {
    color: var(--gray);
    user-select: none;
}

/* Base Sections */
.section-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 100px 20px;
}
.layout-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

/* Glassmorphism */
.glass-panel {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: 15px;
    padding: 40px;
}

/* Hero Section */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(10,37,64,0.9) 0%, rgba(5,20,33,0.95) 100%),
                url('https://images.unsplash.com/photo-1579154204601-01588f351e67?auto=format&fit=crop&q=80') center/cover no-repeat;
    position: relative;
}
.hero::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0; right: 0; height: 100px;
    background: linear-gradient(to top, var(--dark-bg), transparent);
}
@keyframes heroScaleUp {
    0% {
        transform: scale(0.6);
        opacity: 0;
    }
    100% {
        transform: scale(1.2);
        opacity: 1;
    }
}
@keyframes simpleFadeIn {
    0% { opacity: 0; transform: translateY(15px); }
    100% { opacity: 1; transform: translateY(0); }
}
.delayed-fade-in {
    opacity: 0;
    animation: simpleFadeIn 1s ease-out 1.2s forwards;
}
.hero-content {
    text-align: center;
    max-width: 800px;
    z-index: 2;
    padding: 0 20px;
    animation: heroScaleUp 2s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}
.hero h1 {
    font-size: 4rem;
    margin-bottom: 20px;
    line-height: 1.2;
}
.hero-huge {
    font-size: 1.3em;
    display: inline-block;
    margin-bottom: 10px;
}
.hero p {
    font-size: 1.2rem;
    color: var(--light-bg);
    margin-bottom: 40px;
}
.cta-btn {
    display: inline-block;
    background: var(--primary-teal);
    color: var(--dark-bg);
    padding: 15px 40px;
    text-decoration: none;
    font-weight: 600;
    border-radius: 30px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.cta-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 180, 216, 0.3);
}

/* About Section */
.about-section { background: var(--dark-bg); }
.about-section h2 { font-size: 2.5rem; }
.stat-card { margin-bottom: 30px; }
.stat-card h3 { font-size: 3rem; margin-bottom: 5px; }

/* Services Section */
.services-section {
    background: linear-gradient(180deg, var(--dark-bg) 0%, var(--primary-blue) 100%);
}
.services-section h2 { font-size: 2.5rem; }
.cards-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
    margin-top: 50px;
}
.service-card {
    flex: 1 1 calc(33.333% - 30px);
    max-width: 380px;
    min-width: 280px;
    transition: transform 0.4s ease, border-color 0.4s ease;
}
.service-card:hover {
    transform: translateY(-10px);
    border-color: var(--primary-teal);
}
.service-card .icon {
    font-size: 3rem;
    margin-bottom: 20px;
}

/* Featured Jobs Section */
.jobs-section {
    background: var(--primary-blue);
}
.jobs-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-top: 50px;
}
.job-card {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 25px 40px;
    transition: all 0.3s ease;
}
.job-card:hover {
    background: rgba(255, 255, 255, 0.12);
}
.job-info h3 {
    font-size: 1.4rem;
    margin-bottom: 10px;
}
.badge {
    display: inline-block;
    background: rgba(0, 180, 216, 0.2);
    color: var(--secondary-teal);
    padding: 4px 12px;
    border-radius: 15px;
    font-size: 0.8rem;
    margin-right: 10px;
}
.badge.location {
    background: rgba(255,255,255,0.1);
    color: #ccc;
}
.apply-btn {
    background: transparent;
    border: 1px solid var(--white);
    color: var(--white);
    padding: 10px 25px;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
}
.apply-btn:hover {
    background: var(--white);
    color: var(--dark-bg);
}

/* Contact Section */
.contact-section { background: var(--dark-bg); }
.contact-section h2 { font-size: 2.5rem; }
.form-group { margin-bottom: 20px; }
.form-group input, .form-group textarea {
    width: 100%;
    padding: 15px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    color: white;
    font-size: 1rem;
    outline: none;
    transition: border-color 0.3s ease;
    font-family: inherit;
}
.form-group input:focus, .form-group textarea:focus {
    border-color: var(--primary-teal);
}
.submit-btn {
    width: 100%;
    background: var(--primary-teal);
    color: var(--dark-bg);
    border: none;
    padding: 15px;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}
.submit-btn:hover {
    background: white;
}

/* Scrolling Animations */
.hide-on-load {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}
.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Footer */
footer {
    text-align: center;
    padding: 30px;
    background: #020a11;
    color: var(--gray);
    font-size: 0.9rem;
}

/* Responsive */
@media (max-width: 768px) {
    .layout-grid { grid-template-columns: 1fr; }
    .cards-grid { grid-template-columns: 1fr; }
    .nav-links { display: none; }
    .hero h1 { font-size: 2.5rem; }
    .job-card { flex-direction: column; align-items: flex-start; gap: 20px; }
}
