/* ===== TIAN Building Engineering - Clean & Hell Design ===== */

/* --- Reset & Base --- */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #1e3a5f;
    --primary-light: #243f6b;
    --accent: #1e3a5f;
    --accent-light: #2c5282;
    --green: #a9d03f;
    --green-dark: #8ab52e;
    --logo-grey: #696a6e;
    --text: #2d3748;
    --text-light: #718096;
    --bg: #ffffff;
    --bg-alt: #f7fafc;
    --bg-card: #ffffff;
    --border: #e2e8f0;
    --shadow: 0 4px 6px -1px rgba(0,0,0,0.06), 0 2px 4px -1px rgba(0,0,0,0.04);
    --shadow-lg: 0 20px 40px -12px rgba(0,0,0,0.1);
    --radius: 12px;
    --radius-sm: 8px;
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* --- Dark Mode Toggle Button --- */
.dark-mode-toggle {
    background: none;
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 6px 8px;
    cursor: pointer;
    color: var(--text);
    display: flex;
    align-items: center;
    transition: all 0.3s;
    margin-right: 12px;
}
.dark-mode-toggle:hover {
    border-color: #a9d03f;
    color: #a9d03f;
}
.dark-mode-toggle .icon-moon { display: none; }
body.dark-mode .dark-mode-toggle .icon-sun { display: none; }
body.dark-mode .dark-mode-toggle .icon-moon { display: block; }

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    color: var(--text);
    background: var(--bg);
    line-height: 1.7;
    overflow-x: hidden;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    max-width: 100%;
    display: block;
}

/* --- Navigation --- */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid transparent;
    transition: var(--transition);
}

.navbar.scrolled {
    border-bottom-color: var(--border);
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 90px;
    position: relative;
}

.nav-logo {
    display: flex;
    align-items: center;
    line-height: 1.2;
}

.nav-logo img {
    height: 60px;
    width: 166px;
    object-fit: contain;
    flex-shrink: 0;
    display: block;
}

.logo-tian {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--logo-grey);
    letter-spacing: 2px;
}

.logo-sub {
    font-size: 0.65rem;
    color: var(--text-light);
    letter-spacing: 1px;
    text-transform: uppercase;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2px;
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    white-space: nowrap;
    max-width: 60vw;
}

/* Smaller nav for CJK and long-text languages */
:lang(ja) .nav-link,
:lang(ko) .nav-link,
:lang(zh) .nav-link,
:lang(id) .nav-link,
:lang(ms) .nav-link,
:lang(pt) .nav-link,
:lang(es) .nav-link,
:lang(it) .nav-link {
    padding: 8px 8px;
    font-size: 0.8rem;
}

.nav-link {
    padding: 10px 14px;
    font-size: 1.05rem;
    font-weight: 500;
    color: var(--text);
    border-radius: var(--radius-sm);
    transition: var(--transition);
}

.nav-link:hover {
    color: var(--accent);
    background: var(--bg-alt);
}

/* Dropdown */
.nav-dropdown {
    position: relative;
}

.dropdown-arrow {
    font-size: 0.8rem;
    margin-left: 4px;
    transition: transform var(--transition);
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 220px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    list-style: none;
    padding: 8px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: var(--transition);
}

.nav-dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.nav-dropdown:hover .dropdown-arrow {
    transform: rotate(180deg);
}

.dropdown-menu a {
    display: block;
    padding: 12px 16px;
    font-size: 1.1rem;
    border-radius: var(--radius-sm);
    transition: var(--transition);
}

.dropdown-menu a:hover {
    background: var(--bg-alt);
    color: var(--accent);
}

/* Nav Right */
.nav-right {
    display: flex;
    align-items: center;
    gap: 16px;
}

.lang-switcher {
    display: flex;
    gap: 4px;
    background: var(--bg-alt);
    padding: 3px;
    border-radius: 6px;
}

.lang-btn {
    padding: 4px 10px;
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: 4px;
    transition: var(--transition);
    color: var(--text-light);
}

.lang-btn.active {
    background: var(--bg-card);
    color: var(--primary);
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}

/* Language More Dropdown */
.lang-more {
    position: relative;
}

.lang-more-btn {
    cursor: pointer;
    background: none;
    border: none;
    font-family: inherit;
}

.lang-dropdown {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 8px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 8px;
    box-shadow: var(--shadow-lg);
    padding: 8px 0;
    min-width: 160px;
    z-index: 1000;
}

.lang-more.open .lang-dropdown {
    display: block;
}

.lang-dropdown a {
    display: block;
    padding: 8px 16px;
    font-size: 0.85rem;
    color: var(--text);
    transition: background 0.2s;
    white-space: nowrap;
}

.lang-dropdown a:hover {
    background: var(--bg-alt);
    color: #a9d03f;
}

body.dark-mode .lang-dropdown {
    background: #132240;
    border-color: rgba(255,255,255,0.1);
}

body.dark-mode .lang-dropdown a {
    color: #e2e8f0;
}

body.dark-mode .lang-dropdown a:hover {
    background: rgba(255,255,255,0.05);
    color: #a9d03f;
}

/* Hamburger */
.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}

.nav-toggle span {
    width: 22px;
    height: 2px;
    background: var(--text);
    border-radius: 2px;
    transition: var(--transition);
}

/* --- Hero Section --- */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: linear-gradient(170deg, #f0f7ff 0%, #e8f0fe 30%, #f7fafc 70%, #ffffff 100%);
}

.hero-bg {
    position: absolute;
    inset: 0;
    overflow: hidden;
}

.hero-grid-overlay {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(49, 130, 206, 0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(49, 130, 206, 0.04) 1px, transparent 1px);
    background-size: 60px 60px;
}

.hero-particles {
    position: absolute;
    inset: 0;
}

/* Hero Video Background */
.hero-video {
    background: #0a1628;
}

.hero-video-wrap {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
}

.hero-video-wrap iframe,
.hero-video-wrap video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    transform: translate(-50%, -50%);
    object-fit: cover;
}

.hero-video-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        180deg,
        rgba(10, 22, 40, 0.55) 0%,
        rgba(10, 22, 40, 0.4) 40%,
        rgba(10, 22, 40, 0.6) 100%
    );
    z-index: 1;
}

.hero-video .hero-content {
    z-index: 2;
}

.hero-video .hero-badge {
    background: transparent;
    color: var(--green);
    border-color: transparent;
    padding-left: 0;
}

.hero-video .hero-title {
    color: #ffffff;
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
}

.hero-video .hero-subtitle {
    color: rgba(255, 255, 255, 0.85);
}

.hero-video .scroll-line {
    background: linear-gradient(to bottom, rgba(255,255,255,0.8), transparent);
}

/* Hero Video Slider */
.hero-slide {
    opacity: 0;
    transition: opacity 1.2s ease;
}

.hero-slide.active {
    opacity: 1;
}

.project-slide {
    opacity: 0;
    transition: opacity 0.6s ease;
    pointer-events: none;
}

.project-slide.active {
    opacity: 1;
    pointer-events: auto;
}

/* Video Navigation Dots */
.hero-video-nav {
    position: absolute;
    bottom: 32px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
    display: flex;
    gap: 10px;
}

.video-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.5);
    background: transparent;
    cursor: pointer;
    transition: var(--transition);
    padding: 0;
}

.video-dot.active {
    background: var(--green);
    border-color: var(--green);
    transform: scale(1.2);
}

.video-dot:hover {
    border-color: white;
}

.video-arrow {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.3);
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(8px);
    color: white;
    font-size: 1.2rem;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    line-height: 1;
}

.video-arrow:hover {
    background: rgba(0, 0, 0, 0.5);
    border-color: var(--green);
    color: var(--green);
}

/* Hero Simulation Claim Bar */
/* Hero Left Stack */
.hero-left-stack {
    position: absolute;
    bottom: 80px;
    left: 32px;
    z-index: 3;
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-width: 480px;
    animation: claimFadeIn 1s ease 0.6s both;
}

.claim-box {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    padding: 16px 20px;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(16px);
    border-radius: var(--radius);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-left: 3px solid var(--green);
}

.claim-logo {
    height: 70px;
    width: auto;
    flex-shrink: 0;
    background: rgba(255, 255, 255, 0.95);
    padding: 10px 16px;
    border-radius: 8px;
}

.claim-text {
    font-size: 0.95rem !important;
    font-weight: 400 !important;
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.5;
}

.hero-info-box {
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(16px);
    border-radius: var(--radius);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-left: 3px solid var(--green);
    padding: 28px 28px 24px;
    text-align: left;
}

.hero-info-box .hero-badge { margin-bottom: 12px; }
.hero-left-stack .hero-info-box h1.hero-title { font-size: 0.95rem; font-weight: 400; margin-bottom: 10px; color: rgba(255,255,255,0.85); letter-spacing: 0; line-height: 1.5; }
.hero-left-stack .hero-info-box p.hero-subtitle { font-size: 0.95rem; font-weight: 400; margin: 0 0 20px; color: rgba(255,255,255,0.85); }
.hero-info-box .hero-buttons { justify-content: flex-start; }

@keyframes claimFadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Hero Project Banner */
.hero-project-banner {
    position: absolute;
    bottom: 80px;
    right: 32px;
    z-index: 3;
    display: flex;
    align-items: stretch;
    gap: 0;
}

.banner-line {
    width: 3px;
    background: var(--green);
    border-radius: 2px;
    flex-shrink: 0;
}

.banner-content {
    display: flex;
    flex-direction: column;
    padding: 10px 18px;
    background: rgba(0, 0, 0, 0.45);
    backdrop-filter: blur(16px);
    border-radius: 0 8px 8px 0;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-left: none;
}


.banner-label {
    font-size: 0.6rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--green);
    margin-bottom: 4px;
}

.banner-title {
    font-size: 0.9rem;
    font-weight: 600;
    color: white;
    line-height: 1.3;
}

.banner-role {
    font-size: 0.73rem;
    color: rgba(255, 255, 255, 0.55);
    margin-top: 3px;
}

@keyframes bannerFadeIn {
    from { opacity: 0; transform: translateX(-20px); }
    to { opacity: 1; transform: translateX(0); }
}

@media (max-width: 768px) {
    .hero-left-stack {
        left: 16px;
        right: 16px;
        bottom: 70px;
        max-width: none;
    }

    .hero-project-banner {
        display: none;
    }
}

.btn-outline-light {
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.4);
}

.btn-outline-light:hover {
    border-color: #ffffff;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.1);
}

.btn-hero {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(8px);
    color: white;
    border-color: rgba(255, 255, 255, 0.25);
    font-weight: 500;
    letter-spacing: 0.3px;
}

.btn-hero:hover {
    background: rgba(255, 255, 255, 0.92);
    color: var(--primary);
    border-color: rgba(255, 255, 255, 0.92);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(255, 255, 255, 0.15);
}

.hero-content {
    position: relative;
    text-align: center;
    padding: 120px 24px 80px;
    max-width: 800px;
}


.hero-badge {
    display: inline-block;
    padding: 6px 20px;
    background: rgba(30, 58, 95, 0.08);
    color: var(--accent);
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    border-radius: 50px;
    border: 1px solid rgba(30, 58, 95, 0.15);
    margin-bottom: 28px;
}

:not(.hero-info-box) > .hero-title {
    font-size: clamp(2.2rem, 5vw, 3.5rem);
    font-weight: 700;
    color: var(--primary);
    line-height: 1.15;
    margin-bottom: 20px;
    letter-spacing: -0.02em;
}

:not(.hero-info-box) > .hero-subtitle {
    font-size: clamp(1rem, 2vw, 1.2rem);
    color: var(--text-light);
    max-width: 600px;
    margin: 0 auto 36px;
    line-height: 1.7;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

.hero-scroll-indicator {
    position: absolute;
    bottom: 32px;
    left: 50%;
    transform: translateX(-50%);
}

.scroll-line {
    width: 1px;
    height: 48px;
    background: linear-gradient(to bottom, var(--accent), transparent);
    animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {
    0%, 100% { opacity: 0.3; transform: scaleY(0.6); }
    50% { opacity: 1; transform: scaleY(1); }
}

/* --- Buttons --- */
.btn {
    display: inline-flex;
    align-items: center;
    padding: 14px 32px;
    font-size: 0.9rem;
    font-weight: 600;
    border-radius: var(--radius-sm);
    border: 2px solid transparent;
    cursor: pointer;
    transition: var(--transition);
    font-family: inherit;
}

.btn-primary {
    background: var(--accent);
    color: white;
    border-color: var(--accent);
    font-weight: 600;
}

.btn-primary:hover {
    background: var(--primary-light);
    border-color: var(--primary-light);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(30, 58, 95, 0.3);
}

.btn-outline {
    background: transparent;
    color: var(--primary);
    border-color: var(--border);
}

.btn-outline:hover {
    border-color: var(--accent);
    color: var(--accent);
    transform: translateY(-2px);
}

.btn-full {
    width: 100%;
    justify-content: center;
}

/* --- Sections --- */
.section {
    padding: 100px 0;
}

.section:nth-child(even) {
    background: var(--bg-alt);
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-title {
    font-size: clamp(2.2rem, 3.5vw, 3rem);
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 16px;
    letter-spacing: -0.02em;
}

.section-subtitle {
    font-size: 1.25rem;
    color: var(--text-light);
    max-width: 550px;
    margin: 0 auto;
}

/* --- Services --- */
.services-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.service-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 36px 28px;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--accent), var(--accent-light));
    transform: scaleX(0);
    transition: transform var(--transition);
}

.service-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(49, 130, 206, 0.2);
}

.service-card:hover::before {
    transform: scaleX(1);
}

.service-icon {
    width: 64px;
    height: 64px;
    margin-bottom: 20px;
    color: var(--accent);
}

.service-card h3 {
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 12px;
}

.service-card p {
    font-size: 1.1rem;
    color: var(--text-light);
    line-height: 1.6;
    margin-bottom: 16px;
}

.service-link {
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--accent);
    transition: var(--transition);
}

.service-link:hover {
    color: var(--accent-light);
    letter-spacing: 0.5px;
}

/* Services Intro / USP */
.services-intro {
    display: grid;
    grid-template-columns: 100px 1fr 1fr;
    gap: 36px;
    margin-bottom: 48px;
    padding: 36px 40px;
    background: var(--bg-alt);
    border-radius: var(--radius);
    border: 1px solid var(--border);
    align-items: center;
}

.services-intro .intro-text h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 14px;
}

.intro-portraits {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.intro-portrait {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.intro-portrait img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    object-position: center 15%;
    border: 2px solid #a9d03f;
    margin-bottom: 8px;
}

.portrait-name {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--primary);
}

.portrait-title {
    font-size: 0.7rem;
    color: var(--text-light);
    margin-top: 1px;
}

.services-intro .intro-slogan {
    font-size: 1.4rem;
    font-weight: 600;
    font-style: italic;
    color: #a9d03f;
    margin-bottom: 16px;
}

.services-intro .intro-text p {
    font-size: 1.1rem;
    color: var(--text-light);
    line-height: 1.7;
}

.intro-usps {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.usp-item {
    display: flex;
    align-items: flex-start;
    gap: 14px;
}

.usp-icon {
    color: #a9d03f;
    font-size: 0.8rem;
    margin-top: 4px;
    flex-shrink: 0;
}

.usp-item strong {
    display: block;
    font-size: 1.1rem;
    color: var(--primary);
    margin-bottom: 2px;
}

.usp-item span {
    font-size: 1rem;
    color: var(--text-light);
    line-height: 1.4;
}

@media (max-width: 768px) {
    .services-intro {
        grid-template-columns: 1fr;
        padding: 28px 24px;
    }
}

/* Services + Contact Layout */
.services-contact-layout {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 32px;
    align-items: start;
}

.services-contact-layout .services-grid {
    grid-template-columns: repeat(2, 1fr);
}

.services-contact-card {
    background: #1e3a5f;
    border-radius: var(--radius);
    padding: 36px 28px;
    color: white;
    position: sticky;
    top: 100px;
}

.services-contact-card h3 {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.services-contact-card p {
    font-size: 1rem;
    color: rgba(255,255,255,0.7);
    margin-bottom: 20px;
    line-height: 1.5;
}

.inline-contact-form input,
.inline-contact-form textarea {
    width: 100%;
    padding: 12px 14px;
    margin-bottom: 12px;
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 8px;
    background: rgba(255,255,255,0.08);
    color: white;
    font-size: 1rem;
    font-family: inherit;
    transition: border-color 0.3s;
}

.inline-contact-form input::placeholder,
.inline-contact-form textarea::placeholder {
    color: rgba(255,255,255,0.4);
}

.inline-contact-form input:focus,
.inline-contact-form textarea:focus {
    outline: none;
    border-color: #a9d03f;
}

.inline-contact-form .btn-full {
    width: 100%;
    padding: 14px;
    font-size: 1.1rem;
    font-weight: 600;
    background: #a9d03f;
    color: #0a1628;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.3s, transform 0.2s;
}

.inline-contact-form .btn-full:hover {
    background: #b8df4f;
    transform: translateY(-1px);
}

.contact-quick-info {
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1px solid rgba(255,255,255,0.1);
    display: flex;
    flex-direction: column;
    gap: 8px;
    font-size: 0.95rem;
    color: rgba(255,255,255,0.6);
}

@media (max-width: 1024px) {
    .services-contact-layout {
        grid-template-columns: 1fr;
    }
    .services-contact-layout .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* --- Process / Timeline --- */
.process-section {
    background: var(--bg-alt);
}

.process-timeline {
    max-width: 800px;
    margin: 0 auto;
}

.process-step {
    display: grid;
    grid-template-columns: 64px 1fr 56px;
    gap: 24px;
    align-items: start;
    padding: 28px 0;
}

.step-number {
    font-size: 2rem;
    font-weight: 900;
    color: #a9d03f;
    line-height: 1;
    padding-top: 4px;
}

.step-content h3 {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 8px;
}

.step-content p {
    font-size: 1.05rem;
    color: var(--text-light);
    line-height: 1.6;
}

.step-icon {
    width: 48px;
    height: 48px;
    color: var(--primary);
    opacity: 0.4;
}

.step-icon svg {
    width: 100%;
    height: 100%;
}

.process-connector {
    width: 3px;
    height: 32px;
    background: linear-gradient(to bottom, #a9d03f, rgba(169, 208, 63, 0.2));
    margin-left: 30px;
    border-radius: 2px;
}

@media (max-width: 768px) {
    .process-step {
        grid-template-columns: 48px 1fr;
        gap: 16px;
    }
    .step-number {
        font-size: 1.5rem;
    }
    .step-icon {
        display: none;
    }
    .process-connector {
        margin-left: 22px;
        height: 24px;
    }
}

/* --- Stats --- */
.stats-section {
    background: #1e3a5f !important;
    padding: 72px 0;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 32px;
    text-align: center;
}

.stat-item {
    color: white;
}

.stat-number {
    font-size: 3rem;
    font-weight: 700;
    display: inline;
    line-height: 1;
}

.stat-plus {
    font-size: 2rem;
    font-weight: 300;
    color: var(--accent-light);
}

.stat-label {
    display: block;
    margin-top: 8px;
    font-size: 0.9rem;
    color: rgba(255,255,255,0.7);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* --- Project Map --- */
.project-map-container {
    margin-bottom: 40px;
}

.project-map {
    background: var(--bg-alt);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 24px;
    position: relative;
    overflow: hidden;
}

.world-map-svg {
    width: 100%;
    max-height: 320px;
}

.map-land {
    fill: var(--border);
    stroke: white;
    stroke-width: 1;
    transition: var(--transition);
}

.map-marker circle {
    fill: var(--accent);
    cursor: pointer;
    transition: var(--transition);
}

.map-marker .marker-pulse {
    fill: var(--accent);
    opacity: 0.3;
    animation: markerPulse 2s ease-in-out infinite;
}

.map-marker:hover circle {
    fill: var(--primary-light);
}

.map-marker .marker-label {
    font-size: 9px;
    fill: var(--text);
    text-anchor: middle;
    font-weight: 600;
    pointer-events: none;
}

.map-marker .marker-count {
    font-size: 7px;
    fill: var(--text-light);
    text-anchor: middle;
    pointer-events: none;
}

@keyframes markerPulse {
    0%, 100% { r: 8; opacity: 0.3; }
    50% { r: 14; opacity: 0; }
}

.map-legend {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid var(--border);
}

.legend-item {
    padding: 4px 14px;
    font-size: 0.78rem;
    font-weight: 500;
    color: var(--text-light);
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 50px;
    cursor: pointer;
    transition: var(--transition);
}

.legend-item:hover,
.legend-item.active {
    color: white;
    background: var(--accent);
    border-color: var(--accent);
}

/* --- Project Filter Bar --- */
.project-filter-bar {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-bottom: 20px;
}

.filter-dropdown label {
    display: block;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-light);
    margin-bottom: 6px;
}

.filter-select {
    width: 100%;
    padding: 10px 14px;
    font-size: 0.85rem;
    font-family: inherit;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    background: var(--bg-card);
    color: var(--text);
    cursor: pointer;
    transition: var(--transition);
    outline: none;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg width='10' height='6' viewBox='0 0 10 6' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1L5 5L9 1' stroke='%23718096' stroke-width='1.5' stroke-linecap='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 32px;
}

.filter-select:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(30, 58, 95, 0.1);
}

.filter-reset-btn {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 8px 14px;
    background: none;
    border: none;
    border-radius: 6px;
    color: var(--text-light);
    font-size: 0.8rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    font-family: inherit;
    white-space: nowrap;
    align-self: flex-end;
    opacity: 0.6;
}
.filter-reset-btn:hover {
    opacity: 1;
    color: #dc2626;
}
body.dark-mode .filter-reset-btn { color: #a0aec0; }
body.dark-mode .filter-reset-btn:hover { color: #ef4444; }

/* --- Project Tag Pills --- */
.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 32px;
    justify-content: center;
}

.tag-btn {
    padding: 6px 14px;
    font-size: 0.78rem;
    font-weight: 500;
    background: transparent;
    border: 1px solid var(--border);
    border-radius: 50px;
    cursor: pointer;
    transition: var(--transition);
    font-family: inherit;
    color: var(--text-light);
}

.tag-btn:hover,
.tag-btn.active {
    background: var(--accent);
    color: white;
    border-color: var(--accent);
}

/* --- Projects --- */

.projects-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.project-card {
    border-radius: var(--radius);
    overflow: hidden;
    background: var(--bg-card);
    border: 1px solid var(--border);
    transition: var(--transition);
    cursor: pointer;
}

.project-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
}

.project-card.hidden {
    display: none;
}

.project-image {
    height: 200px;
    position: relative;
    overflow: hidden;
}

.project-overlay {
    position: absolute;
    top: 12px;
    left: 12px;
    right: 12px;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.project-tag {
    background: rgba(255,255,255,0.9);
    backdrop-filter: blur(8px);
    padding: 4px 12px;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--primary);
}

.project-location {
    background: rgba(30, 58, 95, 0.85);
    backdrop-filter: blur(8px);
    padding: 4px 10px;
    border-radius: 50px;
    font-size: 0.7rem;
    font-weight: 500;
    color: white;
}

.project-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 10px;
}

.meta-tag {
    padding: 3px 8px;
    font-size: 0.7rem;
    font-weight: 500;
    color: var(--accent);
    background: rgba(30, 58, 95, 0.06);
    border-radius: 4px;
}

.project-info {
    padding: 20px;
}

.project-info h3 {
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 6px;
}

.project-info p {
    font-size: 0.85rem;
    color: var(--text-light);
}

.projects-cta {
    text-align: center;
    margin-top: 48px;
}

/* --- Contact --- */
.contact-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 48px;
    align-items: start;
}

.contact-form {
    background: var(--bg-card);
    padding: 40px;
    border-radius: var(--radius);
    border: 1px solid var(--border);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.form-group {
    margin-bottom: 16px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 14px 18px;
    font-size: 0.9rem;
    font-family: inherit;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    background: var(--bg-alt);
    color: var(--text);
    transition: var(--transition);
    outline: none;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--accent);
    background: var(--bg);
    box-shadow: 0 0 0 3px rgba(49, 130, 206, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.contact-info-panel {
    padding: 40px;
    background: var(--primary);
    border-radius: var(--radius);
    color: white;
}

.contact-info-panel h3 {
    font-size: 1.3rem;
    margin-bottom: 28px;
}

.contact-info-item {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 24px;
}

.contact-icon {
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    background: rgba(255,255,255,0.1);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.contact-info-item strong {
    display: block;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    opacity: 0.7;
    margin-bottom: 4px;
}

.contact-info-item p {
    font-size: 0.95rem;
}

/* --- Footer --- */
.footer {
    background: #0f1b2d;
    color: rgba(255,255,255,0.8);
    padding: 64px 0 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 48px;
    padding-bottom: 48px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}

.footer .logo-tian {
    color: white;
}

.footer .logo-sub {
    color: rgba(255,255,255,0.5);
}

.footer-about {
    margin-top: 16px;
    font-size: 0.9rem;
    line-height: 1.7;
    color: rgba(255,255,255,0.6);
}

.footer-social {
    display: flex;
    gap: 12px;
    margin-top: 20px;
}

.social-link {
    width: 38px;
    height: 38px;
    border-radius: 8px;
    background: rgba(255,255,255,0.06);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    color: rgba(255,255,255,0.6);
}

.social-link:hover {
    background: var(--accent);
    color: white;
    transform: translateY(-2px);
}

.footer-col h4 {
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: rgba(255,255,255,0.4);
    margin-bottom: 20px;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    font-size: 0.9rem;
    color: rgba(255,255,255,0.7);
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--accent-light);
    padding-left: 4px;
}

.footer-contact {
    list-style: none;
}

.footer-contact li {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 14px;
    font-size: 0.9rem;
    color: rgba(255,255,255,0.7);
}

.footer-contact svg {
    flex-shrink: 0;
    color: var(--accent-light);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px 0;
    font-size: 0.8rem;
    color: rgba(255,255,255,0.4);
}

.footer-legal-links {
    display: flex;
    gap: 24px;
}

.footer-legal-links a {
    color: rgba(255,255,255,0.4);
    transition: var(--transition);
}

.footer-legal-links a:hover {
    color: rgba(255,255,255,0.8);
}

/* --- Animations --- */
[data-animate] {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

[data-animate].visible {
    opacity: 1;
    transform: translateY(0);
}

/* Stagger animation for grid children */
.services-grid [data-animate]:nth-child(2) { transition-delay: 0.1s; }
.services-grid [data-animate]:nth-child(3) { transition-delay: 0.2s; }
.services-grid [data-animate]:nth-child(4) { transition-delay: 0.3s; }
.services-grid [data-animate]:nth-child(5) { transition-delay: 0.4s; }
.services-grid [data-animate]:nth-child(6) { transition-delay: 0.5s; }

.projects-grid [data-animate]:nth-child(2) { transition-delay: 0.1s; }
.projects-grid [data-animate]:nth-child(3) { transition-delay: 0.2s; }
.projects-grid [data-animate]:nth-child(4) { transition-delay: 0.15s; }
.projects-grid [data-animate]:nth-child(5) { transition-delay: 0.25s; }
.projects-grid [data-animate]:nth-child(6) { transition-delay: 0.35s; }

.stats-grid [data-animate]:nth-child(2) { transition-delay: 0.15s; }
.stats-grid [data-animate]:nth-child(3) { transition-delay: 0.3s; }
.stats-grid [data-animate]:nth-child(4) { transition-delay: 0.45s; }

/* --- Responsive --- */
@media (max-width: 1024px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .projects-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        top: 72px;
        left: 0;
        right: 0;
        bottom: 0;
        background: var(--bg);
        flex-direction: column;
        padding: 24px;
        gap: 0;
        transform: translateX(100%);
        transition: transform var(--transition);
    }

    .nav-menu.open {
        transform: translateX(0);
    }

    .nav-toggle {
        display: flex;
    }

    .nav-toggle.open span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }
    .nav-toggle.open span:nth-child(2) {
        opacity: 0;
    }
    .nav-toggle.open span:nth-child(3) {
        transform: rotate(-45deg) translate(5px, -5px);
    }

    .nav-link {
        padding: 14px 0;
        font-size: 1.05rem;
        border-bottom: 1px solid var(--border);
    }

    .dropdown-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        border: none;
        padding-left: 16px;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .project-filter-bar {
        grid-template-columns: 1fr;
    }

    .projects-grid {
        grid-template-columns: 1fr;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 40px;
    }

    .contact-grid {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 12px;
        text-align: center;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .hero-content {
        padding: 100px 20px 60px;
    }
}

@media (max-width: 480px) {
    .stat-number {
        font-size: 2.2rem;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
}

/* ===== Dark Mode ===== */
body.dark-mode {
    --primary: #e2e8f0;
    --primary-light: #90cdf4;
    --accent: #a9d03f;
    --accent-light: #c8f04f;
    --text: #e2e8f0;
    --text-light: #a0aec0;
    --bg: #0a1628;
    --bg-alt: #0d1f3c;
    --bg-card: #132240;
    --border: rgba(255, 255, 255, 0.1);
    --shadow: 0 4px 6px -1px rgba(0,0,0,0.3), 0 2px 4px -1px rgba(0,0,0,0.2);
    --shadow-lg: 0 20px 40px -12px rgba(0,0,0,0.4);
}

body.dark-mode .navbar {
    background: rgba(10, 22, 40, 0.95);
    border-bottom-color: rgba(255, 255, 255, 0.05);
}
body.dark-mode .navbar.scrolled {
    background: rgba(10, 22, 40, 0.98);
}
body.dark-mode .nav-link { color: #e2e8f0; }
body.dark-mode .nav-link:hover { color: #a9d03f; background: rgba(255,255,255,0.05); }
body.dark-mode .dropdown-menu { background: #132240; border-color: rgba(255,255,255,0.1); }
body.dark-mode .dropdown-menu a { color: #a0aec0; }
body.dark-mode .dropdown-menu a:hover { color: #a9d03f; background: rgba(255,255,255,0.05); }

body.dark-mode .service-card { background: #132240; border-color: rgba(255,255,255,0.08); }
body.dark-mode .service-card h3 { color: #e2e8f0; }
body.dark-mode .service-card:hover { border-color: rgba(169,208,63,0.3); }

body.dark-mode .project-card { background: #132240; border-color: rgba(255,255,255,0.08); }
body.dark-mode .project-info h3 { color: #e2e8f0; }
body.dark-mode .project-info p { color: #a0aec0; }
body.dark-mode .meta-tag { background: rgba(169,208,63,0.1); color: #a9d03f; border-color: rgba(169,208,63,0.2); }
body.dark-mode .project-tag { background: rgba(169,208,63,0.9); color: #0a1628; }
body.dark-mode .project-location { background: rgba(10,22,40,0.9); }
body.dark-mode .project-map-container #projectMap { border-color: rgba(255,255,255,0.1); }
body.dark-mode .filter-select { background: #132240; color: #e2e8f0; border-color: rgba(255,255,255,0.1); }
body.dark-mode .filter-select option { background: #132240; }
body.dark-mode .project-filter-bar label { color: #a0aec0; }

body.dark-mode .section-title { color: #e2e8f0; }
body.dark-mode .section-subtitle { color: #a0aec0; }

body.dark-mode .stat-number { color: #e2e8f0; }
body.dark-mode .stat-label { color: #a0aec0; }

body.dark-mode .services-intro { background: #0d1f3c; border-color: rgba(255,255,255,0.08); }
body.dark-mode .services-intro .intro-text h3 { color: #e2e8f0; }
body.dark-mode .portrait-name { color: #e2e8f0; }

body.dark-mode .btn-outline { color: #e2e8f0; border-color: rgba(255,255,255,0.2); }
body.dark-mode .btn-outline:hover { border-color: #a9d03f; color: #a9d03f; }

body.dark-mode .contact-form input,
body.dark-mode .contact-form textarea {
    background: #132240;
    border-color: rgba(255,255,255,0.1);
    color: #e2e8f0;
}
body.dark-mode .contact-form input::placeholder,
body.dark-mode .contact-form textarea::placeholder { color: #a0aec0; }

body.dark-mode .contact-info-panel { background: #132240; border-color: rgba(255,255,255,0.08); }
body.dark-mode .contact-info-panel h3,
body.dark-mode .contact-info-panel h4 { color: #e2e8f0; }
body.dark-mode .contact-info-panel p { color: #a0aec0; }

body.dark-mode .filter-select { background: #132240; color: #e2e8f0; border-color: rgba(255,255,255,0.1); }
body.dark-mode .tag-btn { background: #132240; color: #a0aec0; border-color: rgba(255,255,255,0.1); }
body.dark-mode .tag-btn.active { background: #a9d03f; color: #0a1628; }

body.dark-mode .pagination button { background: #132240; color: #e2e8f0; border-color: rgba(255,255,255,0.1); }
body.dark-mode .pagination button.active { background: #a9d03f; color: #0a1628; }

body.dark-mode .process-section { background: #0d1f3c; }
body.dark-mode .step-content h3 { color: #e2e8f0; }

body.dark-mode .usp-item strong { color: #e2e8f0; }

/* ===== Accessibility (WCAG 2.1 AA) ===== */

/* Skip Navigation Link */
.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: #a9d03f;
    color: #0a1628;
    padding: 8px 16px;
    z-index: 10000;
    font-weight: 600;
    transition: top 0.3s;
    text-decoration: none;
}
.skip-link:focus {
    top: 0;
}

/* Focus Indicators */
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
    outline: 3px solid #a9d03f;
    outline-offset: 2px;
}

/* Color Contrast Fixes - green on white/light backgrounds */
.services-intro .intro-slogan { color: #6b8c1a; }
.service-link { color: #5a7d14; }
.service-link:hover { color: #4a6a10; }
.step-number { color: #6b8c1a; }

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    html { scroll-behavior: auto; }
}
