/* Hybrid Theme - Dark Header + Light Body */
:root {
    --dark-blue: #0f172a;
    --tech-blue: #3e8ed0;
    --dark-footer: #1a2a3a;
    --light-bg: #f8f9fa;
    --white: #ffffff;
    --text-dark: #2c3e50;
    --text-muted: #6c757d;
}

* { box-sizing: border-box; }

body {
    background-color: var(--white);
    color: var(--text-dark);
    font-family: 'Segoe UI', 'Microsoft YaHei', sans-serif;
}

/* Navbar - Dark */
.navbar {
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(10px);
}
.navbar.is-scrolled { background: var(--dark-blue); }
.navbar-item, .navbar-link { color: #fff !important; }
.navbar-item:hover, .navbar-item.is-active { color: var(--tech-blue) !important; background: transparent !important; }
.navbar-link:hover { color: var(--tech-blue) !important; }
.navbar-burger span { background-color: #fff !important; }
.logo-img { max-height: 40px; }
.navbar-dropdown {
    background-color: var(--dark-blue);
    border-top: 2px solid var(--tech-blue);
}
.navbar-dropdown .navbar-item {
    color: #fff !important;
}
.navbar-dropdown .navbar-item:hover {
    background-color: rgba(62, 142, 208, 0.2) !important;
    color: var(--tech-blue) !important;
}

/* Hero - Dark & Immersive */
.hero-bg {
    background: url('/static/img/hero-bg.png') center center / cover no-repeat;
    position: relative;
}
.hero-bg::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(15, 23, 42, 0.6), rgba(15, 23, 42, 0.9));
}
.hero-bg .hero-body { position: relative; z-index: 1; }
.hero-title {
    color: #fff !important;
    font-size: 3.5rem !important;
    font-weight: 800 !important;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}
.hero-subtitle {
    color: rgba(255, 255, 255, 0.85) !important;
    font-size: 1.5rem !important;
}

/* Hero Alt (Certs page) */
.hero-bg-alt {
    background: linear-gradient(135deg, var(--dark-blue), #1e3a5f);
    padding-top: 80px;
}
.hero-bg-alt .hero-title { font-size: 2.5rem !important; }

/* Section Titles */
.section-title {
    color: var(--text-dark) !important;
    font-weight: 700;
    margin-bottom: 2.5rem !important;
}
.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background: var(--tech-blue);
    margin: 1rem auto 0;
}

/* Features Section - Light Gray */
.features-section {
    background: var(--light-bg);
    padding: 5rem 1.5rem;
}
.feature-card {
    background: var(--white);
    border-radius: 12px;
    padding: 2.5rem 1.5rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}
.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.12);
}
.feature-icon { color: var(--tech-blue) !important; margin-bottom: 1.5rem; }
.feature-card .title { color: var(--text-dark) !important; }
.feature-card p { color: var(--text-muted); }

/* Projects Section - White */
.projects-section {
    background: var(--white);
    padding: 5rem 1.5rem;
}
.projects-section .subtitle { color: var(--text-muted) !important; }
.project-card {
    background: var(--white);
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid #e9ecef;
    transition: all 0.3s ease;
}
.project-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.1);
}
.project-card .card-content { background: var(--white); }
.project-card .title { color: var(--text-dark) !important; }
.project-card .subtitle { color: var(--text-muted) !important; }
.project-placeholder {
    background: linear-gradient(135deg, #e9ecef, #f8f9fa);
    display: flex;
    align-items: center;
    justify-content: center;
}
.placeholder-content { color: var(--tech-blue); text-align: center; }
.placeholder-content p { margin-top: 0.5rem; font-weight: 600; }

/* Ecosystem Section - Light Gray */
.ecosystem-section {
    background: var(--light-bg);
    padding: 5rem 1.5rem;
}
.ecosystem-section .subtitle { color: var(--text-muted) !important; margin-bottom: 2.5rem !important; }
.ecosystem-card {
    background: var(--white);
    border-radius: 12px;
    padding: 2.5rem 1.5rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    border: 2px solid transparent;
}
.ecosystem-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(62, 142, 208, 0.15);
    border-color: var(--tech-blue);
}
.partner-logo {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    background: linear-gradient(135deg, var(--tech-blue), #2980b9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
}
.ecosystem-card .title { color: var(--text-dark) !important; margin-bottom: 0.5rem !important; }
.partner-type {
    color: var(--tech-blue) !important;
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 1rem !important;
}
.ecosystem-card > p:last-child { color: var(--text-muted); font-size: 0.95rem; }

/* Clients Section - White (fixes logo issue) */
.clients-section {
    background: var(--white);
    padding: 5rem 1.5rem;
    border-top: 1px solid #e9ecef;
}
.client-logo {
    background: var(--white);
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 120px;
    transition: all 0.3s ease;
}
.client-logo img {
    max-width: 90%;
    max-height: 70%;
    object-fit: contain;
    filter: grayscale(100%);
    opacity: 0.7;
    transition: all 0.3s ease;
}
.client-logo:hover {
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}
.client-logo:hover img {
    filter: none;
    opacity: 1;
}

/* Certificates Section - Digital Badge Style */
.certs-section {
    background: var(--light-bg);
    padding: 3rem 1.5rem 5rem;
}
.cert-badge {
    background: var(--white);
    border-radius: 16px;
    padding: 2.5rem 1.5rem;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    border: 2px solid transparent;
    transition: all 0.3s ease;
    height: 100%;
}
.cert-badge:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 30px rgba(62, 142, 208, 0.2);
    border-color: var(--tech-blue);
}
.cert-icon-wrapper {
    width: 100px;
    height: 100px;
    margin: 0 auto 1.5rem;
    background: linear-gradient(135deg, rgba(62, 142, 208, 0.1), rgba(62, 142, 208, 0.15));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}
.cert-badge:hover .cert-icon-wrapper {
    background: linear-gradient(135deg, rgba(62, 142, 208, 0.15), rgba(62, 142, 208, 0.25));
    transform: scale(1.05);
}
.cert-icon-wrapper .icon {
    color: var(--tech-blue);
}
.cert-title {
    color: var(--text-dark);
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}
.cert-subtitle {
    color: var(--tech-blue);
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 1rem;
}
.cert-desc {
    color: var(--text-muted);
    font-size: 0.9rem;
    line-height: 1.6;
}

/* Software Copyright Items - Compact Tech Array */
.soft-copyright-item {
    background: #f8f9fa;
    padding: 1rem 1.25rem;
    border-left: 3px solid var(--tech-blue);
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: all 0.3s ease;
}
.soft-copyright-item:hover {
    background: var(--white);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}
.copyright-icon {
    color: #6c757d;
    font-size: 1.25rem;
    flex-shrink: 0;
}
.copyright-text {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-dark);
}

/* Elite Technical Team Section */
.team-section {
    background: var(--white);
    padding: 4rem 1.5rem 5rem;
}
.team-stat {
    text-align: center;
    padding: 1.5rem;
    background: linear-gradient(135deg, rgba(62, 142, 208, 0.05), rgba(62, 142, 208, 0.1));
    border-radius: 12px;
    transition: all 0.3s ease;
}
.team-stat:hover {
    background: linear-gradient(135deg, rgba(62, 142, 208, 0.1), rgba(62, 142, 208, 0.15));
    transform: translateY(-3px);
}
.stat-number {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--tech-blue);
    line-height: 1;
    margin-bottom: 0.5rem;
}
.stat-label {
    font-size: 0.95rem;
    color: var(--text-dark);
    font-weight: 600;
}
.domain-card {
    background: var(--white);
    border-radius: 12px;
    padding: 2rem 1.5rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    border: 2px solid transparent;
    transition: all 0.3s ease;
    height: 100%;
}
.domain-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(62, 142, 208, 0.15);
    border-color: var(--tech-blue);
}
.domain-icon {
    width: 70px;
    height: 70px;
    margin: 0 auto 1.5rem;
    background: linear-gradient(135deg, var(--tech-blue), #2980b9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 2rem;
}
.domain-title {
    color: var(--text-dark);
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    text-align: center;
}
.domain-subtitle {
    color: var(--tech-blue);
    font-size: 0.85rem;
    font-weight: 600;
    text-align: center;
    margin-bottom: 1.5rem;
}
.cert-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}
.cert-item {
    font-size: 0.85rem;
    color: var(--text-muted);
    padding-left: 1rem;
    position: relative;
}
.cert-item::before {
    content: '•';
    position: absolute;
    left: 0;
    color: var(--tech-blue);
    font-weight: bold;
}
.cert-item .tag {
    margin-right: 0.5rem;
    font-size: 0.7rem;
    vertical-align: middle;
}

/* Footer - Dark */
.footer {
    background: var(--dark-footer);
    padding: 3rem 1.5rem;
}
.footer-title { color: var(--tech-blue) !important; }
.footer p { color: rgba(255, 255, 255, 0.7); margin-bottom: 0.5rem; }
.footer a { color: var(--tech-blue); }
.footer a:hover { color: #60a5fa; }
.footer i { margin-right: 0.5rem; color: var(--tech-blue); }
.qr-placeholder { color: rgba(255, 255, 255, 0.7); padding: 1rem; }
.qr-img { max-width: 120px; border-radius: 8px; }

/* Buttons */
.button.is-primary {
    background: var(--tech-blue);
    border: none;
    font-weight: 600;
}
.button.is-primary:hover {
    background: #2980b9;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(62, 142, 208, 0.3);
}

/* Responsive */
@media screen and (max-width: 768px) {
    .hero-title { font-size: 2.2rem !important; }
    .hero-subtitle { font-size: 1.1rem !important; }
    .footer .column { text-align: center !important; margin-bottom: 1.5rem; }
}
