/* ==========================================================================
   1. CORE VARIABLES & DESIGN SYSTEM
   ========================================================================== */
:root {
    --primary: #0284c7;
    --primary-dark: #0369a1;
    --secondary: #0f766e;
    --dark: #090d16;
    --text: #475569;
    --text-light: #94a3b8;
    --light: #f8fafc;
    --border: #e2e8f0;
    --white: #ffffff;
    
    --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    --shadow-sm: 0 2px 8px -1px rgba(9, 13, 22, 0.05);
    --shadow-md: 0 12px 34px -4px rgba(9, 13, 22, 0.08);
    --shadow-lg: 0 24px 60px -12px rgba(9, 13, 22, 0.14);
    --transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Global Adjustments */
html {
    scroll-behavior: smooth;
    scroll-padding-top: 90px;
}

body {
    font-family: var(--font-sans);
    color: var(--text);
    background-color: var(--white);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

/* Typography Utilities */
.fw-extrabold { font-weight: 800; }
.tracking-tight { letter-spacing: -0.03em; }
.tracking-widest { letter-spacing: 0.15em; }
.font-mono { font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace; }

.text-gradient {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ==========================================================================
   2. REUSABLE MODERN COMPONENTS
   ========================================================================== */
.badge-modern {
    display: flex;
    align-items: center;
    width: fit-content;
    padding: 6px 16px;
    background: rgba(2, 132, 199, 0.06);
    border: 1px solid rgba(2, 132, 199, 0.15);
    border-radius: 99px;
    color: var(--primary);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}
.badge-light-version {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
    color: #cbd5e1;
}

/* Buttons System */
.btn-modern {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 32px;
    font-weight: 600;
    font-size: 0.95rem;
    border-radius: 12px;
    transition: var(--transition);
}

.btn-primary-gradient {
    background: linear-gradient(135deg, var(--primary) 0%, #0d9488 100%);
    color: var(--white) !important;
    border: none;
    box-shadow: 0 8px 20px -6px rgba(2, 132, 199, 0.5);
}

.btn-primary-gradient:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 28px -4px rgba(2, 132, 199, 0.6);
    filter: brightness(1.05);
}

.btn-outline-custom {
    border: 1.5px solid var(--border);
    color: var(--dark);
    background: transparent;
}

.btn-outline-custom:hover {
    background: var(--light);
    border-color: var(--dark);
    transform: translateY(-2px);
}

/* ==========================================================================
   3. NAVIGATION (STICKY BLUR GLASS)
   ========================================================================== */
.navbar {
    padding: 20px 0;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(226, 232, 240, 0.5);
    transition: var(--transition);
}

.navbar-scrolled {
    padding: 12px 0;
    box-shadow: var(--shadow-sm);
    background: rgba(255, 255, 255, 0.92);
}

.navbar-brand {
    font-size: 1.4rem;
    letter-spacing: -0.02em;
    color: var(--dark);
    display: inline-flex;
    align-items: center;
}

.navbar-logo {
    max-height: 48px;
    width: auto;
    object-fit: contain;
}

.navbar-logo-fallback {
    display: inline-flex;
    align-items: center;
    height: 40px;
    white-space: nowrap;
    font-size: 1rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    color: var(--dark);
}

.nav-link {
    font-weight: 500;
    font-size: 0.95rem;
    color: #475569 !important;
    padding: 8px 16px !important;
    border-radius: 8px;
    transition: var(--transition);
}

.nav-link:hover {
    color: var(--primary) !important;
    background: var(--light);
}

.btn-nav {
    border: 1.5px solid var(--primary);
    color: var(--primary);
    border-radius: 8px;
    padding: 6px 18px;
    font-weight: 600;
    font-size: 0.9rem;
    transition: var(--transition);
}
.btn-nav:hover {
    background: var(--primary);
    color: var(--white);
}

/* Custom Hamburger Cross Transition */
.custom-toggler {
    border: none;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 5px;
    width: 24px;
}
.custom-toggler:focus { box-shadow: none; }
.toggler-icon {
    width: 24px;
    height: 2px;
    background-color: var(--dark);
    transition: var(--transition);
}
.navbar-toggler[aria-expanded="true"] .top-bar { transform: translateY(7px) rotate(45deg); }
.navbar-toggler[aria-expanded="true"] .middle-bar { opacity: 0; }
.navbar-toggler[aria-expanded="true"] .bottom-bar { transform: translateY(-7px) rotate(-45deg); }

/* ==========================================================================
   4. HERO SECTION
   ========================================================================== */
.hero-section {
    min-height: 100vh;
    padding-top: 140px;
    padding-bottom: 80px;
    background-color: #fafafa;
}

.hero-bg-blur {
    position: absolute;
    top: -10%;
    right: -5%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(2,132,199,0.12) 0%, rgba(15,118,110,0.05) 50%, transparent 100%);
    filter: blur(60px);
    pointer-events: none;
}

.hero-section .display-1 {
    font-size: clamp(2.5rem, 5vw, 4.25rem);
    line-height: 1.1;
    color: var(--dark);
}

.hero-lead {
    font-size: 1.15rem;
    line-height: 1.75;
    max-width: 580px;
}

/* Modern Graphic Frame Layout代替旧插图方式 */
.hero-image-wrapper {
    position: relative;
    padding: 20px;
}

.hero-image-glow {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    filter: blur(40px);
    opacity: 0.15;
    animation: blobMorph 8s infinite alternate ease-in-out;
}

.hero-image-frame {
    position: relative;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 24px;
    padding: 30px;
    box-shadow: var(--shadow-lg);
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 320px;
}

.hero-img {
    max-height: 280px;
    max-width: 100%;
    width: auto;
    object-fit: contain;
}

/* Fallback Dynamic CSS graphic if user webp path misses */
.hero-fallback-vector {
    width: 100%;
    height: 200px;
    position: relative;
}
.abstract-node {
    position: absolute;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--primary);
}
.abstract-node.a { top: 20%; left: 30%; background: var(--primary); box-shadow: 0 0 12px var(--primary);}
.abstract-node.b { top: 60%; left: 70%; background: var(--secondary); box-shadow: 0 0 12px var(--secondary);}
.abstract-node.c { top: 40%; left: 50%; width: 16px; height: 16px;}

@keyframes blobMorph {
    0% { border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%; }
    100% { border-radius: 60% 40% 30% 70% / 60% 50% 50% 40%; }
}

/* ==========================================================================
   5. VISION (ABOUT) SECTION
   ========================================================================== */
.vision-section {
    padding: 100px 0;
    background-color: var(--white);
}

.glass-panel {
    background: var(--light);
    border: 1px solid var(--border);
    border-radius: 32px;
    box-shadow: var(--shadow-sm);
}

.border-start-custom {
    border-left: 2px solid var(--border);
}

@media (max-width: 991px) {
    .border-start-custom {
        border-left: none;
        border-top: 1px solid var(--border);
        padding-top: 24px;
        margin-top: 16px;
    }
}

/* ==========================================================================
   6. SERVICES SECTION (CSS GRID POWERED)
   ========================================================================== */
.services-section {
    padding: 100px 0;
    background-color: var(--light);
}

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

.modern-card {
    position: relative;
    background: var(--white);
    border: 1px solid rgba(226, 232, 240, 0.8);
    border-radius: 20px;
    padding: 40px 32px;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.modern-card:hover {
    transform: translateY(-5px);
    border-color: rgba(2, 132, 199, 0.3);
    box-shadow: var(--shadow-md);
}

.card-metric {
    position: absolute;
    top: 32px;
    right: 32px;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--text-light);
    font-family: ui-monospace, monospace;
}

.card-icon-wrap {
    width: 48px;
    height: 48px;
    background: rgba(2, 132, 199, 0.06);
    color: var(--primary);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
    transition: var(--transition);
}

.modern-card:hover .card-icon-wrap {
    background: var(--primary);
    color: var(--white);
}

.card-title {
    color: var(--dark);
    margin-bottom: 12px;
}

.card-text {
    font-size: 0.95rem;
    line-height: 1.6;
    margin: 0;
}

/* ==========================================================================
   7. IMPACT (STATS) SECTION
   ========================================================================== */
.stats-section {
    padding: 80px 0;
    background-color: var(--dark);
}

.stat-counter-box {
    padding: 12px;
}

.stat-number {
    font-size: clamp(2rem, 4vw, 3.5rem);
    font-weight: 800;
    line-height: 1;
    margin-bottom: 8px;
    letter-spacing: -0.02em;
}

.stat-label {
    color: #94a3b8;
    font-size: 0.9rem;
    font-weight: 500;
}

/* ==========================================================================
   8. CONTACT BENTO DESIGN
   ========================================================================== */
.contact-section {
    padding: 120px 0;
    background-color: var(--white);
}

.contact-wrapper-card {
    border-radius: 28px;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border);
}

.contact-info-pane {
    background-color: var(--dark);
    overflow: hidden;
}

.info-pane-bg {
    position: absolute;
    bottom: -20%;
    left: -10%;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(15,118,110,0.25) 0%, transparent 70%);
    filter: blur(40px);
}

.icon-bubble {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #38bdf8;
    transition: var(--transition);
}

.contact-link-item:hover .icon-bubble {
    background: #38bdf8;
    color: var(--dark);
    transform: scale(1.05);
}

/* Modern Minimal Form Elements */
.form-label {
    font-size: 0.72rem;
    font-weight: 700;
    color: #64748b;
    letter-spacing: 0.05em;
}

.modern-input {
    background-color: var(--light);
    border: 1px solid transparent;
    padding: 12px 16px;
    border-radius: 10px;
    font-size: 0.95rem;
    color: var(--dark);
    transition: var(--transition);
}

.modern-input:focus {
    background-color: var(--white);
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(2, 132, 199, 0.1);
    outline: none;
}

/* ==========================================================================
   9. EXTRA RESPONSIVE OPTIMIZATIONS
   ========================================================================== */
@media (max-width: 991px) {
    .hero-section {
        padding-top: 110px;
        padding-bottom: 60px;
    }
    
    .navbar-collapse {
        background: var(--white);
        margin-top: 12px;
        padding: 20px;
        border-radius: 16px;
        box-shadow: var(--shadow-md);
        border: 1px solid var(--border);
    }
    
    .contact-wrapper-card {
        border-radius: 20px;
    }
}

@media (max-width: 576px) {
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .modern-card {
        padding: 32px 24px;
    }
}

.form-control.modern-input {
    border: 2px solid #ced4da !important;
}