/* --- CSS Variables --- */
:root {
    --primary-color: #0056b3; /* A professional blue */
    --secondary-color: #007bff;
    --dark-color: #212529;
    --light-color: #f8f9fa;
    --text-color: #333;
    --gray-color: #6c757d;
    --border-color: #dee2e6;
    --font-family: 'Segoe UI', 'Roboto', 'Helvetica Neue', Arial, sans-serif;
    --container-width: 1200px;
    --border-radius: 5px;
}

/* --- Global Resets & Typography --- */
body {
    font-family: var(--font-family);
    line-height: 1.6;
    color: var(--text-color);
    background-color: #fff;
    margin: 0;
    font-size: 16px;
}

h1, h2, h3, h4 {
    color: var(--dark-color);
    line-height: 1.3;
}

h1 { font-size: 2.8rem; }
h2 { font-size: 2.2rem; text-align: center; margin-bottom: 40px; }
h3 { font-size: 1.5rem; }

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--secondary-color);
}

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

.section-bg {
    background-color: var(--light-color);
    padding: 60px 0;
}

/* --- Header & Navigation --- */
.main-header {
    background: #fff;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.main-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 15px;
    padding-bottom: 15px;
}

.logo-container {
    display: flex;
    align-items: center;
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--dark-color);
}
.logo {
    height: 40px;
    margin-right: 10px;
}

.main-nav ul {
    margin: 0;
    padding: 0;
    list-style: none;
    display: flex;
}

.main-nav ul li {
    margin-left: 25px;
}

.main-nav ul li a {
    color: var(--dark-color);
    font-weight: 500;
    padding: 5px 0;
    border-bottom: 2px solid transparent;
    transition: border-color 0.3s ease;
}

.main-nav ul li a:hover, .main-nav ul li a.active {
    color: var(--primary-color);
    border-bottom-color: var(--primary-color);
}

.mobile-nav-toggle { display: none; }

/* --- Buttons --- */
.btn {
    display: inline-block;
    padding: 12px 28px;
    border-radius: var(--border-radius);
    font-weight: 600;
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
    border: 2px solid transparent;
}
.btn-primary {
    background-color: var(--primary-color);
    color: #fff;
}
.btn-primary:hover {
    background-color: #004494;
    color: #fff;
}
.btn-secondary {
    background-color: transparent;
    color: #fff;
    border-color: #fff;
}
.btn-secondary:hover {
    background-color: #fff;
    color: var(--dark-color);
}

/* --- Hero Banner --- */
.hero-banner {
    background: linear-gradient(rgba(0, 33, 71, 0.7), rgba(0, 33, 71, 0.7)), url('../assets/images/abstract-bg.svg') no-repeat center center/cover;
    color: #fff;
    padding: 120px 0;
    text-align: center;
}

.hero-banner h1 {
    color: #fff;
    font-size: 3.5rem;
    margin-bottom: 20px;
}

.hero-banner p {
    font-size: 1.25rem;
    margin-bottom: 30px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.hero-cta .btn {
    margin: 0 10px;
}

/* --- Core Advantage Section --- */
.core-advantage {
    padding: 60px 0;
}
.advantage-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    text-align: center;
}
.advantage-icon {
    height: 60px;
    margin-bottom: 15px;
}
.advantage-item h3 {
    margin-bottom: 10px;
}

/* --- Product Areas Section --- */
.product-card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}
.product-card {
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 30px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.08);
}
.product-card-icon {
    height: 70px;
    margin-bottom: 20px;
}
.product-card h3 {
    margin-bottom: 15px;
}
.product-card span {
    font-weight: 600;
    color: var(--primary-color);
    display: inline-block;
    margin-top: 20px;
}

/* --- Solutions Showcase Section --- */
.solutions-showcase {
    padding: 60px 0;
}
.solutions-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    height: 350px;
}
.solution-item {
    position: relative;
    background-size: cover;
    background-position: center;
    border-radius: var(--border-radius);
    overflow: hidden;
    display: flex;
    align-items: flex-end;
    padding: 20px;
    transition: transform 0.3s ease;
}
.solution-item:hover {
    transform: scale(1.03);
}
.solution-item::after {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0) 60%);
}
.solution-item h3 {
    position: relative;
    z-index: 2;
    color: #fff;
    margin: 0;
    font-size: 1.4rem;
}
.solution-item a {
    text-decoration: none;
    color: #fff;
}
.solution-item a:hover h3 {
    text-decoration: underline;
}

/* --- Final CTA Section --- */
.final-cta {
    text-align: center;
}
.final-cta h2 {
    margin-bottom: 15px;
}
.final-cta p {
    font-size: 1.1rem;
    color: var(--gray-color);
    margin-bottom: 30px;
}


/* --- Footer --- */
.main-footer {
    background-color: var(--dark-color);
    color: rgba(255,255,255,0.8);
    padding: 50px 0 20px 0;
}
.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}
.footer-col h4 {
    color: #fff;
    margin-bottom: 20px;
}
.footer-col ul {
    padding: 0;
    list-style: none;
}
.footer-col ul li {
    margin-bottom: 10px;
}
.footer-col ul li a {
    color: rgba(255,255,255,0.8);
}
.footer-col ul li a:hover {
    color: #fff;
    text-decoration: underline;
}
.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #444;
    font-size: 0.9rem;
    color: var(--gray-color);
}

/* --- Contact Page Styles --- */
.contact-layout {
    margin-top: 20px;
}

.contact-main {
    min-height: 100%;
}

.china-offices-visual {
    text-align: center;
    margin: 40px 0;
}

.offices-table {
    width: 100%;
    max-width: 800px;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.offices-table:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.15);
}

.contact-sidebar {
    background: #f8f9fa;
    border-radius: var(--border-radius);
    padding: 30px;
    height: fit-content;
    position: sticky;
    top: 20px;
}

.phone-visual-container {
    margin-bottom: 30px;
    text-align: center;
}

.phone-numbers-visual {
    width: 100%;
    max-width: 350px;
    height: auto;
    border-radius: var(--border-radius);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.emergency-contact, .quick-contact {
    margin-bottom: 30px;
    padding: 20px;
    background: white;
    border-radius: var(--border-radius);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.emergency-contact h3, .quick-contact h3 {
    color: var(--primary-color);
    margin-bottom: 15px;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.emergency-number {
    background: var(--primary-color);
    color: white;
    padding: 15px;
    border-radius: var(--border-radius);
    text-align: center;
    margin: 15px 0;
    font-size: 1.3rem;
    font-weight: bold;
    letter-spacing: 1px;
}

.emergency-note {
    font-size: 0.9rem;
    color: var(--gray-color);
    text-align: center;
    margin: 0;
}

.contact-form-mini {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.contact-form-mini input,
.contact-form-mini textarea {
    padding: 12px;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    font-family: inherit;
    font-size: 0.9rem;
    transition: border-color 0.3s ease;
}

.contact-form-mini input:focus,
.contact-form-mini textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(0, 86, 179, 0.1);
}

.contact-form-mini button {
    background: var(--primary-color);
    color: white;
    padding: 12px 20px;
    border: none;
    border-radius: var(--border-radius);
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 600;
    transition: background-color 0.3s ease;
}

.contact-form-mini button:hover {
    background: var(--secondary-color);
}

.contact-section {
    margin-bottom: 50px;
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.contact-card {
    background: white;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 25px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.contact-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12);
}

.contact-card h3 {
    color: var(--primary-color);
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.contact-card p {
    margin: 8px 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.contact-card i {
    color: var(--gray-color);
    width: 16px;
}

.region-title {
    color: var(--primary-color);
    font-size: 1.3rem;
    margin: 40px 0 20px 0;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--primary-color);
}

.contact-grid-intl {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 15px;
    margin-bottom: 30px;
}

.contact-card-intl {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: var(--border-radius);
    padding: 20px;
    transition: background-color 0.2s ease;
}

.contact-card-intl:hover {
    background: white;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.contact-card-intl h4 {
    color: var(--primary-color);
    margin-bottom: 10px;
    font-size: 1.1rem;
}

.contact-card-intl p {
    margin: 5px 0;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 6px;
}

.contact-card-intl i {
    color: var(--gray-color);
    width: 14px;
}

/* --- About Page Styles --- */
.about-hero {
    position: relative;
    min-height: 500px;
    display: flex;
    align-items: center;
    overflow: hidden;
    background: linear-gradient(135deg, #0d47a1 0%, #1565c0 50%, #1976d2 100%);
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.hero-bg-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.8;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: white;
    padding: 60px 0;
}

.hero-content h1 {
    font-size: 3.5rem;
    font-weight: bold;
    margin-bottom: 20px;
    text-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.hero-subtitle {
    font-size: 1.3rem;
    margin-bottom: 50px;
    opacity: 0.9;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.hero-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    max-width: 800px;
    margin: 0 auto;
}

.stat-item {
    text-align: center;
    background: rgba(255,255,255,0.1);
    border-radius: 15px;
    padding: 30px 20px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.2);
    transition: transform 0.3s ease, background 0.3s ease;
}

.stat-item:hover {
    transform: translateY(-10px);
    background: rgba(255,255,255,0.15);
}

.stat-number {
    font-size: 3rem;
    font-weight: bold;
    margin-bottom: 10px;
    color: #ffffff;
}

.stat-label {
    font-size: 1.1rem;
    color: #e3f2fd;
    font-weight: 500;
}

.about-content {
    padding: 80px 0;
}

.content-section {
    display: grid;
    grid-template-columns: 120px 1fr;
    gap: 40px;
    margin-bottom: 100px;
    align-items: start;
}

.section-icon {
    position: sticky;
    top: 100px;
    text-align: center;
}

.section-icon .icon {
    width: 80px;
    height: 80px;
    transition: transform 0.3s ease;
}

.content-section:hover .section-icon .icon {
    transform: scale(1.1) rotate(5deg);
}

.section-content h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: var(--primary-color);
}

.section-lead {
    font-size: 1.3rem;
    color: var(--gray-color);
    margin-bottom: 30px;
    font-weight: 500;
}

.section-content p {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 20px;
}

/* Mission Pillars */
.mission-pillars {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.pillar {
    text-align: center;
    padding: 30px 20px;
    background: #f8f9fa;
    border-radius: 15px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.pillar:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.pillar-icon {
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.pillar-text {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--primary-color);
}

/* Timeline */
.timeline {
    position: relative;
    margin-left: 30px;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 20px;
    top: 0;
    bottom: 0;
    width: 3px;
    background: linear-gradient(to bottom, #2196f3, #4caf50);
    border-radius: 2px;
}

.timeline-item {
    position: relative;
    margin-bottom: 50px;
    padding-left: 80px;
}

.timeline-year {
    position: absolute;
    left: -10px;
    top: 0;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #2196f3, #4caf50);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    color: white;
    font-size: 0.9rem;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.timeline-content {
    background: white;
    padding: 25px 30px;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    border-left: 4px solid #2196f3;
    transition: transform 0.3s ease;
}

.timeline-content:hover {
    transform: translateX(10px);
}

.timeline-content h4 {
    color: var(--primary-color);
    margin-bottom: 10px;
    font-size: 1.3rem;
}

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

.service-card {
    background: white;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 2px solid transparent;
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.15);
    border-color: #2196f3;
}

.service-icon {
    font-size: 3rem;
    margin-bottom: 20px;
    opacity: 0.8;
}

.service-card h4 {
    font-size: 1.3rem;
    margin-bottom: 15px;
    color: var(--primary-color);
}

.service-card p {
    color: var(--gray-color);
    line-height: 1.6;
    margin: 0;
}

/* Quality Badges */
.quality-badges {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
    margin-top: 40px;
}

.badge {
    display: flex;
    align-items: center;
    gap: 20px;
    background: white;
    padding: 25px;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    transition: transform 0.3s ease;
}

.badge:hover {
    transform: translateX(10px);
}

.badge-icon {
    font-size: 2.5rem;
    color: #4caf50;
    min-width: 50px;
    text-align: center;
}

.badge-text strong {
    display: block;
    font-size: 1.1rem;
    color: var(--primary-color);
    margin-bottom: 5px;
}

.badge-text span {
    color: var(--gray-color);
    font-size: 0.95rem;
}

/* Alternating section backgrounds */
.timeline-section {
    background: #f8f9fa;
    padding: 60px 40px;
    border-radius: 20px;
    margin: 0 -40px 100px -40px;
}

.quality-section {
    background: linear-gradient(135deg, #f8f9fa 0%, #e3f2fd 100%);
    padding: 60px 40px;
    border-radius: 20px;
    margin: 0 -40px 100px -40px;
}

/* Mobile responsiveness */
@media (max-width: 768px) {
    .hero-content h1 {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .hero-stats {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .content-section {
        grid-template-columns: 1fr;
        gap: 20px;
        margin-bottom: 60px;
    }
    
    .section-icon {
        position: static;
        text-align: left;
    }
    
    .mission-pillars {
        grid-template-columns: 1fr;
    }
    
    .timeline {
        margin-left: 0;
    }
    
    .timeline-item {
        padding-left: 60px;
    }
    
    .timeline-year {
        width: 50px;
        height: 50px;
        font-size: 0.8rem;
    }
    
    .fae-services {
        grid-template-columns: 1fr;
    }
    
    .quality-badges {
        grid-template-columns: 1fr;
    }
    
    .timeline-section,
    .quality-section {
        margin: 0 -20px 60px -20px;
        padding: 40px 20px;
    }
    
    .offices-table {
        max-width: 100%;
        margin: 0 20px;
    }
    
    .contact-grid, .contact-grid-intl {
        grid-template-columns: 1fr;
    }
}