/* General Body Styles */
body {
    background-color: #0a0a0a;
    color: #e0e0e0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    margin: 0;
    padding-top: 80px; /* Space for the fixed header */
    overflow-x: hidden; /* Prevent horizontal scroll */
}

/* Particles Background */
#particles-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

/* Animation */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.main-content section {
    animation: fadeIn 0.8s ease-out forwards;
}


/* Header Styles */
.header {
    background: #BDE0FE; /* New light blue background */
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    border-bottom: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px 0 0; /* Move logo further left */
    height: 80px;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

/* Logo */
.logo img {
    height: 53px; /* Increased size */
}

/* Navigation Links */
.navigation {
    margin-left: auto; /* Push navigation to the right */
    margin-right: 25px; /* Add space to the right, moving it left */
}

.navigation a {
    color: #1d1d1f;
    text-decoration: none;
    margin: 0 30px; /* Increased spacing */
    transition: color 0.3s ease;
    font-weight: 600; /* Bolder */
    font-size: 1.1em; /* Bigger */
}

.navigation a:hover {
    color: #007aff;
}

/* Contact Button */
.btn {
    background-color: #f0f0f0;
    color: #0a0a0a;
    padding: 10px 20px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.btn:hover {
    background-color: #ffffff;
    color: #000000;
}

/* Main Content Styles */
.main-content {
    max-width: 1100px;
    margin: 40px auto;
    padding: 0 20px;
}

/* Section Title */
.section-title {
    text-align: center;
    margin-bottom: 50px;
}

.section-title h2 {
    font-size: 2.5em;
    color: #ffffff;
    margin-bottom: 10px;
    position: relative;
    display: inline-block;
}

.section-title h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background-color: #e0e0e0;
}


/* Hero Section */
#hero {
    position: relative;
    padding: 0;
    height: 70vh;
    display: flex;
    align-items: center;
    background: linear-gradient(to bottom, #BDE0FE 0%, #342D7E 100%); /* 宝石蓝渐变 */
    border-radius: 0;
    margin-top: 0;
}

.hero-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    padding: 0 8vw 0 18vw;
    width: 100%;
}

.hero-content {
    flex-basis: 50%;
    margin-bottom: 5vh; /* Move text up */
}

#hero h1 {
    font-size: 4.5em;
    margin-bottom: 20px;
    letter-spacing: -1.5px;
    color: #ffffff; /* Changed for contrast */
    line-height: 1.2; /* Adjust line height for multiline title */
    white-space: nowrap;
}

#hero p {
    font-size: 1.4em;
    color: #e0e0e0; /* Changed for contrast */
    max-width: 500px;
}

.hero-logo {
    flex-basis: 80%;
    text-align: center;
    margin-right: -3vw;
}

.hero-logo img {
    max-width: 2000px;
    animation: float 5s ease-in-out infinite;
}

@keyframes float {
	0% {
		transform: translateY(0px);
	}
	50% {
		transform: translateY(-20px);
	}
	100% {
		transform: translateY(0px);
	}
}

/* Hero Entrance Animation */
.hero-content, .hero-logo {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s cubic-bezier(0.4,0,0.2,1), transform 0.8s cubic-bezier(0.4,0,0.2,1);
}

.hero-entrance .hero-content {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.1s;
}

.hero-entrance .hero-logo {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.5s;
}


/* About Section */
#about {
    padding: 80px 0;
    background-color: #111;
    border-radius: 15px;
    margin-top: 60px;
}

#about .section-title h2 {
    color: #ffffff;
}

#about .section-title h2::after {
    background-color: #e0e0e0;
}

#about .about-content p {
    color: #b0b0b0;
}

.about-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 50px;
    padding: 0 40px;
    max-width: 1100px;
    margin: 0 auto;
}

.about-content {
    flex: 1;
}

#about .photo-gallery {
    margin-top: 60px; /* Add margin to separate from about content */
}

.about-content p {
    font-size: 1.1em;
    line-height: 1.7;
    color: #b0b0b0;
}

.about-image {
    flex-shrink: 0;
}

.about-image img {
    max-width: 300px;
    border-radius: 10px;
}


/* Services Section */
#services {
    padding: 60px 0;
}

.service-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
}

.service-card {
    background-color: #1a1a1a;
    padding: 40px;
    border-radius: 15px;
    border: 1px solid #2a2a2a;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-align: center;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.2);
}

.service-icon {
    margin-bottom: 25px;
}

.service-icon img {
    height: 64px;
    width: 64px;
}

.service-card h3 {
    font-size: 1.8em;
    margin-bottom: 15px;
    color: #ffffff;
}

.service-card p {
    color: #a0a0a0;
    line-height: 1.6;
}

/* Vision Section */
#vision {
    padding-bottom: 60px; /* Add some space below */
}

#vision .vision-content {
    background-color: #111;
    padding: 50px 30px;
    border-radius: 15px;
    text-align: center;
}

#vision .vision-content p {
    font-size: 1.6em;
    color: #e0e0e0;
    max-width: 800px;
    margin: 0 auto;
    font-weight: 500;
}

/* Approach Section */
#approach {
    padding: 60px 0;
}

.approach-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    text-align: center;
}

.approach-item {
    background: #111;
    padding: 30px;
    border-radius: 10px;
}

.approach-item h3 {
    font-size: 1.5em;
    color: #ffffff;
}

.approach-item p {
    color: #a0a0a0;
}

/* CTA Section */
#cta {
    padding: 80px 20px;
    text-align: center;
    background: transparent;
    margin-top: 60px;
    border-radius: 15px;
    border: none; /* Removed border */
}

.cta-container {
    /* This container can be used if a background is needed inside */
}

.cta-container h2 {
    font-size: 2.5em;
    margin-bottom: 15px;
}

.cta-container p {
    font-size: 1.2em;
    color: #a0a0a0;
    margin-bottom: 30px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.btn-cta {
    padding: 15px 35px;
    font-size: 1.1em;
    background-color: #e0e0e0;
    color: #0a0a0a;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.btn-cta:hover {
    background-color: #ffffff;
    transform: translateY(-3px);
}


/* Footer Styles */
.footer {
    padding: 40px 20px;
    background-color: #cccccc;
    margin-top: 60px;
}

.footer-container {
    display: grid;
    grid-template-columns: 1fr auto 1fr; /* 左、中、右三列布局 */
    align-items: center;
    max-width: 1200px;
    margin: 0 auto 30px;
    gap: 20px;
}

.footer-logo {
    justify-self: start;
}

.footer-logo img {
    height: 50px;
    opacity: 1; /* 在浅色背景上不需要透明度 */
}

.contact-info {
    grid-column: 2; /* 联系方式在中间列 */
    text-align: left;
}

.contact-info p {
    margin: 10px 0;
    color: #333333; /* 深色文字以确保可读性 */
}

.contact-info a {
    color: #000000; /* 链接文字改为黑色 */
    text-decoration: none;
    transition: color 0.3s;
}

.contact-info a:hover {
    color: #555555; /* 鼠标悬停时变为深灰色 */
}

.copyright {
    color: #6c6c6c; /* 版权信息颜色调整 */
    font-size: 0.9em;
    text-align: center; /* 版权信息居中 */
}

/* Responsive Design */
@media (max-width: 768px) {
    .header {
        height: auto;
        padding: 10px 0;
    }

    .header-container {
        flex-direction: row;
        justify-content: space-between;
        gap: 15px;
        padding: 0 20px;
        height: 60px;
    }

    .header-right {
        gap: 15px;
        flex-direction: row;
        align-items: center;
    }

    .navigation {
        display: none; /* Hide for mobile, assuming a hamburger menu would be added later */
    }
    
    body {
        padding-top: 70px; /* Adjust for potentially smaller header */
    }

    .section-title h2 {
        font-size: 2em;
    }

    /* Hero Section */
    #hero {
        height: auto;
        padding: 40px 20px; /* Reduced padding */
    }

    #hero h1 {
        font-size: 2.2em; /* Further reduced font size */
    }

    #hero p {
        font-size: 1.1em;
    }

    .hero-container {
        flex-direction: column;
        text-align: center;
        padding: 0;
        gap: 30px; /* Reduced gap */
    }

    .hero-content {
        margin-bottom: 0; /* Reset margin */
        order: 2; /* Ensure text comes after logo */
    }

    .hero-logo {
        margin-right: 0;
        order: 1; /* Ensure logo comes first */
    }

    .hero-logo img {
        max-width: 250px;
        animation: none; /* Disable floating animation on mobile */
    }

    /* General Content Sections */
    .main-content {
        padding: 0 15px;
        margin: 20px auto;
    }
    
    #about, #vision, #services, #approach, #cta {
        padding: 40px 15px;
        margin-top: 30px;
    }
    
    #vision .vision-content {
        padding: 30px 20px;
        margin-top: 30px;
    }

    #vision .vision-content p {
        font-size: 1.3em;
    }

    .about-container {
        flex-direction: column;
        text-align: center;
        gap: 30px;
    }
    
    .about-image img {
        max-width: 200px;
    }
    
    .service-grid, .approach-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }

    /* Careers Page */
    .careers-page .careers-hero h1 {
        font-size: 2.2em;
    }
    
    .job-card {
        padding: 25px;
    }

    .job-card .job-title {
        font-size: 1.5em;
    }

    .contact-button {
        display: none; /* Hide contact button on mobile */
    }

    .contact-button .btn {
        padding: 6px 15px; /* Adjust padding for mobile */
        font-size: 0.9em;   /* Adjust font size for mobile */
        white-space: nowrap;/* Prevent text wrapping */
    }

    .photo-gallery {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }

    #office-environment-section h2 {
        font-size: 2em;
    }
} 

/* Language Selector */
.language-selector {
    position: relative;
    z-index: 1001; /* Ensure it's above other header content */
}

.lang-menu {
    position: relative;
}

.lang-menu button {
    background: transparent;
    border: none;
    padding: 0;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #1d1d1f; /* Set icon color */
}

.lang-menu button svg {
    height: 28px;
    width: 28px;
}

.lang-menu:hover button {
   transform: scale(1.1);
   transition: transform 0.2s ease;
}

.lang-options {
    display: none;
    opacity: 0;
    visibility: hidden;
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 5px;
    background-color: #1c1c1c;
    border: 1px solid #333;
    border-radius: 5px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.3);
    list-style: none;
    padding: 5px 0;
    min-width: 120px;
    overflow: hidden;
    transform: translateY(10px);
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
}

.lang-menu:hover .lang-options {
    display: block;
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.lang-options a {
    color: #c0c0c0;
    padding: 10px 15px;
    text-decoration: none;
    display: block;
    transition: background-color 0.2s ease, color 0.2s ease;
    font-size: 0.9em;
}

.lang-options a:hover {
    background-color: #4a4a4a;
}

.lang-options a.active {
    font-weight: bold;
    color: #007aff;
} 

.contact-button .btn {
    background-color: #BDE0FE; /* Match header background */
    border: 2px solid #1d1d1f;   /* Thicker border */
    color: #1d1d1f;
    padding: 8px 20px;
    transition: all 0.3s ease;
    border-radius: 25px;         /* Rounded corners */
    font-weight: 600;
    font-size: 1.1em;
}

.contact-button .btn:hover {
    background-color: #1d1d1f;   /* Black background on hover */
    color: #ffffff;             /* White text on hover */
    border-color: #1d1d1f;      /* Ensure border color matches */
} 

/* Careers Page Specific Styles */
.careers-page .careers-hero {
    text-align: center;
    padding: 60px 20px;
}

.careers-page .careers-hero h1 {
    font-size: 3em;
    margin-bottom: 10px;
}

.careers-page .careers-hero p {
    font-size: 1.2em;
    color: #a0a0a0;
    max-width: 700px;
    margin: 0 auto;
}

.job-listings {
    margin-top: 60px;
}

.job-card {
    background-color: #1a1a1a;
    padding: 40px 30px; /* Increased vertical padding */
    border-radius: 10px;
    border: 1px solid #2a2a2a;
    margin-bottom: 30px; /* Add spacing between job cards */
}

.job-card .job-title {
    font-size: 1.8em;
    color: #ffffff;
    margin-top: 0;
    margin-bottom: 15px;
}

.job-card .job-details p {
    color: #b0b0b0;
    line-height: 1.7;
    margin-bottom: 20px;
}

.job-card .job-salary {
    font-weight: bold;
    color: #e0e0e0;
    font-size: 1.1em;
} 

/* Office Environment Section - REMOVED / MERGED INTO #about */
/*
#office-environment-section {
    padding: 60px 0;
}

#office-environment-section h2 {
    text-align: center;
    font-size: 2.5em;
    color: #e0e0e0;
    margin-bottom: 50px;
}
*/

.photo-gallery {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-top: 40px;
    max-width: 2200px;
    margin-left: auto;
    margin-right: auto;
}

.photo-gallery img {
    width: 100%;
    height: auto;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
    backface-visibility: hidden;
}

.photo-gallery img:hover {
    transform: scale(1.06);
    box-shadow: 0 8px 16px rgba(0,0,0,0.2);
} 