:root {
    --primary-color: #00bcd4;
    /* Cyan/Blue */
    --secondary-color: #1e3a8a;
    /* Dark Blue */
    --dark-bg: #0f172a;
    /* Very Dark Blue */
    --card-bg: #1e293b;
    --text-color: #e2e8f0;
    --text-muted: #94a3b8;
    --white: #ffffff;
    --gradient-hero: linear-gradient(135deg, rgba(15, 23, 42, 0.95) 0%, rgba(30, 58, 138, 0.8) 100%);
    --transition: all 0.3s ease;
}

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

body {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    background-color: var(--dark-bg);
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Loading Animation */
.loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--dark-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: opacity 0.5s ease;
}

.loading-screen.fade-out {
    opacity: 0;
    pointer-events: none;
}

.loading-screen.hidden {
    display: none !important;
}

.loader {
    width: 50px;
    height: 50px;
    border: 3px solid rgba(0, 188, 212, 0.3);
    border-top: 3px solid var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

.loading-text {
    margin-top: 20px;
    color: var(--primary-color);
    font-size: 18px;
    font-weight: 600;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

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

.section-padding {
    padding: 100px 0;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(15, 23, 42, 0.9);
    backdrop-filter: blur(10px);
    z-index: 1000;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding: 15px 0;
    transition: all 0.3s ease;
    transform: translateY(0);
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 24px;
    font-weight: 700;
    color: var(--white);
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo i {
    color: var(--primary-color);
}

.logo span {
    font-size: 14px;
    color: var(--primary-color);
    font-weight: 400;
    margin-left: 5px;
    letter-spacing: 1px;
}

.nav-links {
    display: flex;
    gap: 30px;
}

.nav-links a {
    color: var(--text-color);
    font-size: 16px;
    font-weight: 500;
    position: relative;
    padding: 8px 12px;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--primary-color);
    background: rgba(0, 188, 212, 0.1);
}

.nav-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    bottom: -5px;
    left: 0;
    transition: var(--transition);
}

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
}

.hamburger {
    display: none;
    cursor: pointer;
    font-size: 24px;
    color: var(--white);
}

/* Hero Section */
.hero {
    height: 100vh;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: url('https://images.unsplash.com/photo-1486406146926-c627a92ad1ab?q=80&w=2070&auto=format&fit=crop') no-repeat center center/cover;
    /* Fallback if image fails or for better text contrast */
    background-color: var(--dark-bg);
    overflow: hidden;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--gradient-hero);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    padding: 0 20px;
}

.hero h1 {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--white);
    line-height: 1.2;
}

.hero p {
    font-size: 20px;
    margin-bottom: 40px;
    color: var(--text-muted);
}

.hero-btns {
    display: flex;
    gap: 20px;
    justify-content: center;
}

.btn {
    padding: 14px 32px;
    border-radius: 50px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-block;
    position: relative;
    overflow: hidden;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg,
            transparent,
            rgba(255, 255, 255, 0.2),
            transparent);
    transition: left 0.5s;
}

.btn:hover::before {
    left: 100%;
}

.btn-primary {
    background: var(--primary-color);
    color: var(--dark-bg);
    border: 2px solid var(--primary-color);
    box-shadow: 0 4px 15px rgba(0, 188, 212, 0.3);
}

.btn-primary:hover {
    background: transparent;
    color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 188, 212, 0.4);
}

.btn-outline {
    background: transparent;
    color: var(--white);
    border: 2px solid var(--white);
    box-shadow: 0 4px 15px rgba(255, 255, 255, 0.1);
}

.btn-outline:hover {
    background: var(--white);
    color: var(--dark-bg);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 255, 255, 0.2);
}

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

.mouse {
    width: 30px;
    height: 50px;
    border: 2px solid var(--white);
    border-radius: 20px;
    position: relative;
}

.mouse::before {
    content: '';
    position: absolute;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    width: 6px;
    height: 6px;
    background: var(--white);
    border-radius: 50%;
    animation: scroll 2s infinite;
}

@keyframes scroll {
    0% {
        top: 10px;
        opacity: 1;
    }

    100% {
        top: 30px;
        opacity: 0;
    }
}

/* Stats Section */
.stats {
    background: var(--secondary-color);
    padding: 60px 0;
    position: relative;
    z-index: 2;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.stats .container {
    display: flex;
    justify-content: space-around;
    align-items: center;
    flex-wrap: wrap;
}

.stat-item {
    text-align: center;
    margin: 10px;
}

.stat-item h2 {
    font-size: 48px;
    color: var(--primary-color);
    display: inline-block;
    margin-bottom: 5px;
}

.stat-item span {
    font-size: 24px;
    color: var(--primary-color);
}

.stat-item p {
    color: var(--text-muted);
    font-size: 16px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Section Header */
.section-header {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 60px;
}

/* Section Separators */
section {
    position: relative;
}

section:not(.hero):not(.stats)::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--primary-color), transparent);
    opacity: 0.3;
}

.section-header h2 {
    font-size: 36px;
    color: var(--white);
    margin-bottom: 15px;
}

.divider {
    width: 60px;
    height: 4px;
    background: var(--primary-color);
    margin: 0 auto 20px;
}

.section-header p {
    color: var(--text-muted);
    margin-bottom: 50px;
}

/* Services Section */
.services {
    background: var(--dark-bg);
}

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

.service-card {
    background: var(--card-bg);
    padding: 40px 30px;
    border-radius: 15px;
    text-align: center;
    transition: var(--transition);
    border: 1px solid rgba(255, 255, 255, 0.05);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), rgba(0, 188, 212, 0.5));
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

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

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 25px 50px rgba(0, 188, 212, 0.15);
    border-color: var(--primary-color);
}



.service-features {
    margin-top: auto;
    padding-top: 20px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    text-align: left;
}

.service-features span {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-muted);
    font-size: 13px;
}

.service-features i {
    color: var(--primary-color);
    font-size: 12px;
}

.icon-box {
    width: 70px;
    height: 70px;
    background: rgba(0, 188, 212, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
    color: var(--primary-color);
    font-size: 30px;
    transition: var(--transition);
}

.service-card:hover .icon-box {
    background: var(--primary-color);
    color: var(--dark-bg);
}

.service-card h3 {
    color: var(--white);
    font-size: 20px;
    margin-bottom: 15px;
}

.service-card p {
    color: var(--text-muted);
    font-size: 14px;
    line-height: 1.6;
}

/* Technology Section */
.technology {
    background: linear-gradient(135deg, #1e293b 0%, #0b1120 100%);
    position: relative;
    overflow: hidden;
}

.technology .row {
    display: flex;
    align-items: center;
    gap: 50px;
}

.col-text {
    flex: 1;
}

.col-visual {
    flex: 1;
    display: flex;
    justify-content: center;
}

.divider-left {
    width: 60px;
    height: 4px;
    background: var(--primary-color);
    margin-bottom: 30px;
}

.tech-list li {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
}

.tech-list i {
    font-size: 24px;
    color: var(--primary-color);
    margin-top: 5px;
}

.tech-list h4 {
    color: var(--white);
    font-size: 18px;
    margin-bottom: 5px;
}

.tech-list p {
    color: var(--text-muted);
    font-size: 14px;
}

/* Tech Visual Animation */
.tech-visual-box {
    width: 300px;
    height: 300px;
    border: 2px solid var(--primary-color);
    border-radius: 10px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 50px rgba(0, 188, 212, 0.2);
    background: linear-gradient(45deg,
            rgba(0, 188, 212, 0.05) 0%,
            rgba(30, 58, 138, 0.05) 100%);
    overflow: hidden;
}

.tech-visual-box::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg,
            transparent 30%,
            rgba(0, 188, 212, 0.1) 50%,
            transparent 70%);
    animation: rotate 8s linear infinite;
    pointer-events: none;
}

@keyframes rotate {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.tech-visual-box>i.fa-city {
    font-size: 100px;
    color: rgba(255, 255, 255, 0.2);
}

.scan-line {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--primary-color);
    box-shadow: 0 0 10px var(--primary-color);
    animation: scan 3s infinite linear;
}

@keyframes scan {
    0% {
        top: 0;
        opacity: 1;
    }

    50% {
        opacity: 0.5;
    }

    100% {
        top: 100%;
        opacity: 1;
    }
}

.data-points .point {
    position: absolute;
    width: 10px;
    height: 10px;
    background: var(--primary-color);
    border-radius: 50%;
    opacity: 0;
}

.p1 {
    top: 30%;
    left: 20%;
    animation: blink 2s infinite 0.5s;
}

.p2 {
    top: 60%;
    left: 70%;
    animation: blink 2s infinite 1.2s;
}

.p3 {
    top: 20%;
    left: 80%;
    animation: blink 2s infinite 2.0s;
}

@keyframes blink {

    0%,
    100% {
        opacity: 0;
        transform: scale(0.5);
    }

    50% {
        opacity: 1;
        transform: scale(1.2);
    }
}

/* Cases Section */
.cases {
    background: linear-gradient(135deg, #0b1120 0%, #1e293b 100%);
}

.cases-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
}

.case-card {
    background: var(--card-bg);
    border-radius: 15px;
    overflow: hidden;
    transition: var(--transition);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.case-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 25px 50px rgba(0, 188, 212, 0.15);
    border-color: var(--primary-color);
}

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

.case-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
    background: linear-gradient(135deg, #1e293b 0%, #0b1120 100%);
}

/* 图片加载失败时的备用样式 */
.case-image img:not([src]),
.case-image img[src=""] {
    background: linear-gradient(135deg, #1e293b 0%, #0b1120 100%);
}

.case-card:hover .case-image img {
    transform: scale(1.1);
}



.case-content {
    padding: 20px;
}

.case-content h3 {
    color: var(--white);
    font-size: 18px;
    margin-bottom: 10px;
    font-weight: 600;
}

.case-content p {
    color: var(--text-muted);
    font-size: 13px;
    line-height: 1.5;
    margin-bottom: 16px;
}

.case-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.case-stats span {
    display: flex;
    align-items: center;
    gap: 5px;
    color: var(--primary-color);
    font-size: 11px;
    font-weight: 500;
}

.case-stats i {
    font-size: 12px;
}

/* About Section */
.about {
    background: var(--dark-bg);
}

.about-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 60px;
    align-items: start;
}

.about-text h3 {
    color: var(--white);
    font-size: 24px;
    margin-bottom: 20px;
}

.about-text p {
    color: var(--text-muted);
    font-size: 16px;
    line-height: 1.8;
    margin-bottom: 30px;
}

.about-features {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.feature-item {
    display: flex;
    gap: 15px;
    align-items: flex-start;
}

.feature-item i {
    font-size: 24px;
    color: var(--primary-color);
    margin-top: 5px;
    min-width: 24px;
}

.feature-item h4 {
    color: var(--white);
    font-size: 18px;
    margin-bottom: 5px;
}

.feature-item p {
    color: var(--text-muted);
    font-size: 14px;
    margin: 0;
}

.about-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.stat-card {
    background: var(--card-bg);
    padding: 30px 20px;
    border-radius: 10px;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: var(--transition);
}

.stat-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary-color);
    box-shadow: 0 10px 30px rgba(0, 188, 212, 0.1);
}

.stat-card h3 {
    font-size: 36px;
    color: var(--primary-color);
    margin-bottom: 10px;
    font-weight: 700;
}

.stat-card p {
    color: var(--text-muted);
    font-size: 14px;
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 1px;
}



/* CTA */
.cta {
    background: linear-gradient(rgba(30, 58, 138, 0.8), rgba(30, 58, 138, 0.8)), url('https://images.unsplash.com/photo-1504384308090-c54be385509c?q=80&w=1974&auto=format&fit=crop');
    background-size: cover;
    background-attachment: fixed;
    text-align: center;
    padding: 100px 0;
}

.cta h2 {
    font-size: 36px;
    color: var(--white);
    margin-bottom: 20px;
}

.cta p {
    color: var(--white);
    font-size: 18px;
    margin-bottom: 40px;
    opacity: 0.9;
}

/* Footer */
footer {
    background: #050910;
    padding: 60px 0 0;
    color: var(--text-muted);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
}

.footer-logo i {
    color: var(--primary-color);
    font-size: 24px;
}

.footer-logo h3 {
    color: var(--white);
    font-size: 24px;
    margin: 0;
}

.footer-about p {
    line-height: 1.6;
    margin-bottom: 25px;
}

.footer-social {
    display: flex;
    gap: 15px;
}

.footer-social a {
    width: 40px;
    height: 40px;
    background: rgba(0, 188, 212, 0.1);
    border: 1px solid rgba(0, 188, 212, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    transition: var(--transition);
}

.footer-social a:hover {
    background: var(--primary-color);
    color: var(--dark-bg);
    transform: translateY(-2px);
}

.footer-services h4,
.footer-links h4,
.footer-contact h4 {
    color: var(--white);
    margin-bottom: 20px;
    font-size: 18px;
    font-weight: 600;
}

.footer-services ul li,
.footer-links ul li {
    margin-bottom: 12px;
}

.footer-services ul li a,
.footer-links ul li a {
    color: var(--text-muted);
    transition: var(--transition);
    font-size: 14px;
}

.footer-services ul li a:hover,
.footer-links ul li a:hover {
    color: var(--primary-color);
    padding-left: 5px;
}

.contact-item {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
    align-items: flex-start;
}

.contact-item i {
    color: var(--primary-color);
    font-size: 16px;
    margin-top: 2px;
    min-width: 16px;
}

.contact-item div p {
    margin: 0;
    font-size: 14px;
    line-height: 1.4;
}

.contact-item div p:first-child {
    color: var(--white);
    font-weight: 500;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 25px 0;
}

.footer-bottom-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.footer-bottom-content p {
    font-size: 12px;
    margin: 0;
    line-height: 1.5;
}

.footer-certifications {
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 12px;
    line-height: 1.5;
    color: var(--text-muted);
}

.footer-certifications span:not(:last-child):not(:nth-child(even)) {
    color: var(--text-muted);
}

/* Animations Classes */
.fade-in-up {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.8s forwards;
}

.delay-1 {
    animation-delay: 0.2s;
}

.delay-2 {
    animation-delay: 0.4s;
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}



@keyframes spin {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

/* Responsive Design */
@media (max-width: 1024px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 30px;
    }

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


}

@media (max-width: 768px) {
    .section-padding {
        padding: 60px 0;
    }

    .stats {
        padding: 40px 0;
    }

    .hero h1 {
        font-size: 32px;
        line-height: 1.3;
    }

    .hero p {
        font-size: 18px;
    }

    .hero-btns {
        flex-direction: column;
        align-items: center;
        gap: 15px;
    }

    .btn {
        width: 200px;
        text-align: center;
    }

    .nav-links {
        display: none;
        position: absolute;
        top: 60px;
        left: 0;
        width: 100%;
        background: var(--card-bg);
        flex-direction: column;
        padding: 20px;
        text-align: center;
        border-radius: 0 0 10px 10px;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    }

    .nav-links.active {
        display: flex;
    }

    .hamburger {
        display: block;
    }

    .technology .row {
        flex-direction: column;
        gap: 30px;
    }

    .tech-visual-box {
        width: 250px;
        height: 250px;
    }

    .stats .container {
        flex-direction: column;
        gap: 20px;
    }

    .stat-item {
        margin: 10px 0;
    }

    .about-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .about-stats {
        grid-template-columns: 1fr 1fr;
        gap: 15px;
    }

    .stat-card {
        padding: 20px 15px;
    }

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

    .cases-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }



    .footer-grid {
        grid-template-columns: 1fr;
        gap: 30px;
        text-align: center;
    }

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

    .section-header h2 {
        font-size: 28px;
    }

    .cta h2 {
        font-size: 28px;
    }

    .cta p {
        font-size: 16px;
    }
}

/* Performance Optimizations */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* High DPI Displays */
@media (-webkit-min-device-pixel-ratio: 2),
(min-resolution: 192dpi) {
    .tech-visual-box {
        border-width: 1px;
    }

    .service-card {
        border-width: 0.5px;
    }
}

/* Language Switcher - Modern Enterprise Style */
.lang-switch {
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 2px;
    margin-left: 25px;
    gap: 0;
}

.lang-switch span {
    cursor: pointer;
    color: var(--text-muted);
    transition: all 0.3s ease;
    font-size: 12px;
    font-weight: 500;
    padding: 4px 12px;
    border-radius: 16px;
    line-height: 1;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.lang-switch span.active {
    background: var(--primary-color);
    color: var(--dark-bg);
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(0, 188, 212, 0.3);
}

.lang-switch span:hover:not(.active) {
    color: var(--white);
    background: rgba(255, 255, 255, 0.05);
}

.lang-switch .divider {
    display: none;
    /* Hide the slash for cleaner look */
}

/* Mobile adjustments */
@media (max-width: 768px) {
    .lang-switch {
        margin: 0 15px 0 auto;
        /* Push to right, before hamburger */
        transform: scale(0.9);
        /* Slightly smaller on mobile */
    }
}