/* ===== Major Color Override ===== */
:root {
    --primary: #005BAC !important;
    --primary-dark: #004a8f !important;
    --primary-light: #2B8CFF !important;
}

/* ===== Multi-page nav active state ===== */
.nav-menu a.active { color: var(--primary) !important; }
.nav-menu a.active::after { width: 100% !important; }

/* ===== Section Spacing Refined ===== */
.section { padding: 80px 0; }
.section-header { margin-bottom: 48px; }
.section-header h2 { font-size: 2rem; }

/* ===== Hero Refined ===== */
.hero-badge {
    background: rgba(0,91,172,0.15);
    border-color: rgba(0,91,172,0.3);
    color: #93c5fd;
}
.btn-primary {
    background: linear-gradient(135deg, #005BAC, #004a8f);
    box-shadow: 0 4px 16px rgba(0,91,172,0.4);
}
.btn-primary:hover {
    box-shadow: 0 8px 24px rgba(0,91,172,0.5);
}

/* ===== Service Process ===== */
.process { background: var(--bg); }
.process-timeline {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    position: relative;
    flex-wrap: wrap;
}
.process-timeline::before {
    content: '';
    position: absolute;
    top: 40px;
    left: 10%;
    right: 10%;
    height: 2px;
    background: linear-gradient(90deg, var(--primary), var(--accent), var(--primary-light));
    z-index: 0;
}
.process-step {
    text-align: center;
    position: relative;
    z-index: 1;
    flex: 1;
    min-width: 100px;
}
.process-icon {
    width: 80px; height: 80px;
    border-radius: 50%;
    background: var(--bg);
    border: 2px solid var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    margin: 0 auto 12px;
    transition: var(--transition);
}
.process-step:hover .process-icon {
    background: var(--primary);
    box-shadow: 0 0 0 6px rgba(0,91,172,0.1);
}
.process-step h4 {
    font-size: 0.95rem;
    color: var(--secondary);
    margin-bottom: 4px;
}
.process-step p {
    font-size: 0.8rem;
    color: var(--text-light);
}

/* ===== Partner Logo Wall ===== */
.partners {
    background: var(--bg-alt);
    padding: 60px 0;
    overflow: hidden;
}
.partner-scroll {
    display: flex;
    gap: 40px;
    animation: scrollLogos 20s linear infinite;
    padding: 20px 0;
}
.partner-item {
    flex-shrink: 0;
    padding: 16px 32px;
    background: var(--bg);
    border-radius: 8px;
    border: 1px solid #e2e8f0;
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-light);
    white-space: nowrap;
    transition: var(--transition);
}
.partner-item:hover {
    border-color: var(--primary-light);
    color: var(--primary);
    box-shadow: var(--shadow);
}
@keyframes scrollLogos {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* ===== Self-Developed Products ===== */
.self-products { background: var(--bg); }
.self-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}
.self-card {
    border-radius: var(--radius);
    padding: 36px;
    box-shadow: var(--shadow);
    border: 1px solid #e2e8f0;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}
.self-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 4px;
    background: linear-gradient(135deg, var(--primary), var(--accent));
}
.self-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}
.self-card .badge {
    display: inline-block;
    background: rgba(0,91,172,0.08);
    color: var(--primary);
    font-size: 0.75rem;
    font-weight: 600;
    padding: 4px 12px;
    border-radius: 20px;
    margin-bottom: 12px;
}
.self-card h3 {
    font-size: 1.3rem;
    color: var(--secondary);
    margin-bottom: 8px;
}
.self-card p {
    color: var(--text-light);
    font-size: 0.9rem;
    line-height: 1.7;
    margin-bottom: 16px;
}
.self-features {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px;
    list-style: none;
    padding: 0;
}
.self-features li {
    font-size: 0.85rem;
    color: var(--text);
    padding: 4px 0;
    padding-left: 20px;
    position: relative;
}
.self-features li::before {
    content: '▸';
    position: absolute;
    left: 4px;
    color: var(--primary-light);
    font-weight: 700;
}

/* ===== Dev Capabilities ===== */
.dev-capabilities { background: var(--bg-alt); }
.dev-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}
.dev-item {
    background: var(--bg);
    border-radius: 8px;
    padding: 24px 20px;
    text-align: center;
    border: 1px solid #e2e8f0;
    transition: var(--transition);
}
.dev-item:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow);
    border-color: var(--primary-light);
}
.dev-icon { font-size: 2rem; margin-bottom: 8px; display: block; }
.dev-item h4 {
    font-size: 0.95rem;
    color: var(--secondary);
    margin-bottom: 4px;
}
.dev-item p {
    font-size: 0.78rem;
    color: var(--text-light);
}

/* ===== CTA Section ===== */
.cta-section {
    background: linear-gradient(135deg, #0f172a, #1e293b);
    padding: 80px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}
.cta-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at center, rgba(0,91,172,0.15) 0%, transparent 60%);
}
.cta-section h2 {
    font-size: 2rem;
    color: #fff;
    margin-bottom: 12px;
    position: relative;
}
.cta-section p {
    color: #94a3b8;
    margin-bottom: 32px;
    font-size: 1.05rem;
    position: relative;
}
.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
    position: relative;
}

/* ===== Footer 5-Column ===== */
.footer-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 30px;
    text-align: left;
    margin-bottom: 32px;
}
.footer-col h4 {
    color: #e2e8f0;
    font-size: 0.9rem;
    margin-bottom: 12px;
    font-weight: 600;
}
.footer-col a {
    display: block;
    color: #64748b;
    text-decoration: none;
    font-size: 0.85rem;
    padding: 4px 0;
    transition: color 0.2s;
}
.footer-col a:hover { color: #94a3b8; }
.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.06);
    padding-top: 20px;
    text-align: center;
}
.footer-bottom p { font-size: 0.8rem; color: #475569; margin: 2px 0; }
.footer-bottom a { color: #64748b; text-decoration: none; font-size: 0.8rem; margin: 0 8px; }
.footer-bottom a:hover { color: #94a3b8; }

/* ===== Responsive ===== */
@media (max-width: 768px) {
    .process-timeline { flex-direction: column; align-items: center; }
    .process-timeline::before { display: none; }
    .self-grid { grid-template-columns: 1fr; }
    .dev-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ===== Hero Center Mode (screenshots removed) ===== */
.hero-text-center {
    grid-column: 1 / -1 !important;
    text-align: center !important;
    max-width: 800px;
    margin: 0 auto;
}
.hero-text-center p {
    margin: 0 auto 36px !important;
}
.hero-text-center .hero-buttons {
    justify-content: center;
}
