/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Linear/Vercel Inspired Dark Palette */
    --bg-dark: #000212; /* Deepest space blue/black */
    --bg-glass: rgba(255, 255, 255, 0.03);
    --bg-glass-hover: rgba(255, 255, 255, 0.06);
    
    --primary-glow: conic-gradient(from 180deg at 50% 50%, #00e5ff 0deg, #2979ff 180deg, #00e5ff 360deg);
    --accent-blue: #00e5ff;
    --accent-cyan: #00e5ff;
    --accent-purple: #2979ff;
    
    --text-main: #e0f7fa;
    --text-secondary: #b0bec5;
    --text-tertiary: #546e7a;
    
    --border-glass: rgba(255, 255, 255, 0.08);
    --border-glass-hover: rgba(255, 255, 255, 0.15);
    
    --shadow-glass: 0 4px 30px rgba(0, 0, 0, 0.1);
    --shadow-glow: 0 0 40px rgba(0, 229, 255, 0.15);
    
    --font-main: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Noto Sans SC', sans-serif;
    --font-tech: 'Rajdhani', sans-serif;
    
    --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

body {
    font-family: var(--font-main);
    line-height: 1.6;
    color: var(--text-main);
    background-color: var(--bg-dark);
    overflow-x: hidden;
    min-height: 100vh;
    /* Ambient Glow Background */
    background-image: 
        radial-gradient(circle at 15% 50%, rgba(121, 40, 202, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 85% 30%, rgba(0, 229, 255, 0.15) 0%, transparent 50%);
    background-attachment: fixed;
}

/* Language Switching */
body.lang-zh .lang-en { display: none !important; }
body.lang-en .lang-zh { display: none !important; }

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 2;
}

/* Animations */
@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-up-element {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out);
}

.fade-up-element.visible {
    opacity: 1;
    transform: translateY(0);
}

@keyframes glowPulse {
    0% { box-shadow: 0 0 20px rgba(0, 229, 255, 0.2); }
    50% { box-shadow: 0 0 40px rgba(0, 229, 255, 0.4); }
    100% { box-shadow: 0 0 20px rgba(0, 229, 255, 0.2); }
}

/* Glassmorphism Utilities */
.glass {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0.02) 100%);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--border-glass);
    border-top: 1px solid rgba(255, 255, 255, 0.15); /* Shimmer effect */
    box-shadow: var(--shadow-glass);
    border-radius: 12px;
    transition: all 0.4s var(--ease-out);
}

.glass:hover {
    background: var(--bg-glass-hover);
    border-color: var(--border-glass-hover);
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5), 
                0 0 30px rgba(0, 229, 255, 0.2); /* Stronger glow on hover */
}

/* Navigation */
.navbar {
    background: rgba(0, 2, 18, 0.6);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-glass);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    animation: fadeUp 0.8s var(--ease-out) forwards;
}

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

.nav-brand {
    display: flex;
    align-items: center;
}

.nav-logo-img {
    height: 48px; /* Adjust height to fit navbar */
    width: auto;
    filter: drop-shadow(0 0 10px rgba(0, 229, 255, 0.3));
    transition: filter 0.3s ease;
}

.nav-logo-img:hover {
    filter: drop-shadow(0 0 15px rgba(0, 229, 255, 0.6));
}

/* Removed old brand-text styles as we use SVG logo now */

/* Nav Controls */
.nav-controls {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-menu a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: color 0.2s;
    position: relative;
}

.nav-menu a:hover,
.nav-menu a.active {
    color: var(--text-main);
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: var(--accent-blue);
    transition: width 0.3s var(--ease-out);
    box-shadow: 0 0 8px var(--accent-blue);
}

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

.lang-btn {
    background: transparent;
    border: 1px solid var(--border-glass);
    color: var(--text-secondary);
    padding: 0.3rem 0.8rem;
    border-radius: 6px;
    cursor: pointer;
    font-family: var(--font-tech);
    font-size: 0.8rem;
    transition: all 0.2s;
}

.lang-btn:hover {
    border-color: var(--text-main);
    color: var(--text-main);
    background: rgba(255,255,255,0.05);
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
}

.nav-toggle span {
    width: 20px;
    height: 2px;
    background: var(--text-main);
    transition: 0.3s;
}

/* Hero Section */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    margin-top: -73px;
    padding-top: 73px;
    perspective: 1000px; /* For 3D effects */
}

#neural-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    opacity: 0; /* Start hidden for entrance */
    animation: fadeIn 2s ease-out 0.5s forwards;
}

@keyframes fadeIn { to { opacity: 1; } }

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at center, transparent 20%, var(--bg-dark) 100%);
    z-index: 1;
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 4rem 0;
    max-width: 900px;
    /* Entrance Animation Staggering */
    opacity: 0;
    animation: fadeUp 1s var(--ease-out) 0.8s forwards;
}

.hero-title {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 2rem;
}

.title-en {
    font-size: 4.5rem;
    font-weight: 600;
    letter-spacing: 0.1em; /* Aligned with SVG spacing ratio */
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    
    /* Advanced Material Effect: Metallic Gradient */
    background: linear-gradient(135deg, #FFFFFF 0%, #E0F7FA 40%, #90CAF9 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    
    /* Subtle Glow + Drop Shadow for depth */
    filter: drop-shadow(0 2px 10px rgba(0, 229, 255, 0.3));
}

.title-zh {
    font-family: 'Source Han Sans CN', 'Noto Sans SC', sans-serif;
    font-weight: 400; /* Aligned with SVG weight */
    font-size: 2.5rem;
    letter-spacing: 0.2em; /* Aligned with SVG spacing ratio */
    text-transform: uppercase;
    margin-top: 1rem;
    
    /* Advanced Material Effect: Silver/Grey Gradient */
    background: linear-gradient(180deg, #cfd8dc 0%, #b0bec5 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    
    opacity: 0.9;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.5));
}

.hero-slogan {
    margin-bottom: 2.5rem;
    position: relative;
    display: inline-block;
}

.slogan-zh {
    font-size: 1.8rem;
    font-weight: 300;
    letter-spacing: 4px;
    color: var(--text-main);
    margin-bottom: 0.5rem;
}

.slogan-en {
    font-family: var(--font-tech);
    font-size: 1rem;
    color: var(--text-secondary);
    letter-spacing: 2px;
}

.hero-description {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 3rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
}

.hero-founded {
    display: inline-flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.05);
    padding: 0.5rem 1.2rem;
    border-radius: 100px;
    margin-bottom: 3rem;
    border: 1px solid var(--border-glass);
    font-family: var(--font-tech);
    color: var(--text-secondary);
    font-size: 0.85rem;
    backdrop-filter: blur(10px);
    white-space: nowrap;
}

.hero-cta {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.8rem 2.5rem;
    border-radius: 6px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s var(--ease-out);
    cursor: pointer;
    font-size: 0.95rem;
    position: relative;
    overflow: hidden;
    font-family: var(--font-main);
}

.btn-primary {
    background: rgba(0, 229, 255, 0.1);
    color: var(--accent-cyan);
    border: 1px solid var(--accent-cyan);
    backdrop-filter: blur(5px);
}

.btn-primary:hover {
    background: var(--accent-cyan);
    color: #000;
    box-shadow: 0 0 30px rgba(0, 229, 255, 0.4);
}

.btn-secondary {
    background: transparent;
    color: var(--text-secondary);
    border: 1px solid var(--border-glass);
}

.btn-secondary:hover {
    border-color: var(--text-main);
    color: var(--text-main);
    background: rgba(255,255,255,0.05);
}

/* Services Section */
.services {
    padding: 8rem 0;
    position: relative;
}

.section-title {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 4rem;
    color: var(--text-main);
    opacity: 0;
    animation: fadeUp 1s var(--ease-out) forwards;
    animation-timeline: view(); /* Modern scroll animation if supported, else fallback */
    animation-range: entry 20% cover 30%;
}

.section-title span { display: block; }

.section-title .lang-en {
    font-family: var(--font-tech);
    font-size: 1rem;
    color: var(--accent-purple);
    margin-top: 0.5rem;
    letter-spacing: 2px;
    text-transform: uppercase;
}

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

.service-card {
    padding: 2.5rem;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
    /* Staggered entrance handled by JS or simple scroll trigger */
}

.service-icon {
    width: 48px;
    height: 48px;
    margin-bottom: 1.5rem;
    color: var(--accent-blue);
    background: rgba(0, 229, 255, 0.1);
    border-radius: 12px;
    padding: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
}

.service-card:hover .service-icon {
    background: var(--accent-blue);
    color: #000;
    box-shadow: 0 0 20px rgba(0, 229, 255, 0.6);
}

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

.service-card h3 {
    font-size: 1.25rem;
    margin-bottom: 0.8rem;
    color: var(--text-main);
}

.service-card p {
    color: var(--text-secondary);
    line-height: 1.6;
    font-size: 0.95rem;
}

/* Page Header */
.page-header {
    padding: 10rem 0 2rem;
    text-align: center;
    background: radial-gradient(circle at top, rgba(0, 229, 255, 0.08) 0%, transparent 70%);
}

.page-header h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    background: linear-gradient(180deg, #fff 0%, #aaa 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.page-header p {
    font-size: 1.1rem;
    color: var(--text-secondary);
}

/* Floating Card Animation */
@keyframes floatCard {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
    100% { transform: translateY(0px); }
}

/* Enhanced Glass Card for About Page */
.mission-card, .value-item {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0.02) 100%);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--border-glass);
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: var(--shadow-glass);
    border-radius: 20px;
    padding: 3.5rem 2.5rem;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

/* Hover Effect: Lift and Glow */
.mission-card:hover, .value-item:hover {
    transform: translateY(-10px);
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0.02) 100%);
    border-color: rgba(0, 229, 255, 0.2);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4), 
                0 0 30px rgba(0, 229, 255, 0.1);
}

/* Icon Styling */
.mission-icon {
    width: 72px;
    height: 72px;
    margin-bottom: 2rem;
    color: var(--accent-cyan);
    background: rgba(0, 229, 255, 0.03);
    border-radius: 50%;
    padding: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.5s ease;
    border: 1px solid rgba(0, 229, 255, 0.1);
}

.mission-card:hover .mission-icon {
    background: var(--accent-cyan);
    color: #000;
    box-shadow: 0 0 25px rgba(0, 229, 255, 0.4);
    transform: scale(1.1);
}

/* Typography in Cards */
.mission-card h3, .value-item h4 {
    font-size: 1.6rem;
    margin-bottom: 1.2rem;
    color: var(--text-main);
    font-weight: 600;
    letter-spacing: 0.5px;
}

.mission-card p, .value-item p {
    color: var(--text-secondary);
    line-height: 1.8;
    font-size: 1.05rem;
    max-width: 90%;
}

/* Value Item Specifics (Smaller Cards) */
.value-item {
    padding: 3rem 2rem;
    align-items: center;
    text-align: center;
}

.value-item h4 {
    font-size: 1.4rem;
    color: var(--accent-cyan);
    margin-bottom: 1rem;
}

.value-item:hover h4 {
    text-shadow: 0 0 15px rgba(0, 229, 255, 0.3);
}

.team-member {
    text-align: center;
    padding: 3.5rem 2.5rem;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0.02) 100%);
    backdrop-filter: blur(16px);
    border: 1px solid var(--border-glass);
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 20px;
    transition: all 0.4s var(--ease-out);
    position: relative;
}

.team-member:hover {
    transform: translateY(-10px);
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0.02) 100%);
    border-color: rgba(0, 229, 255, 0.2);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4), 
                0 0 30px rgba(0, 229, 255, 0.1);
}

.member-avatar {
    width: 140px;
    height: 140px;
    margin: 0 auto 2rem;
    border-radius: 50%;
    padding: 4px;
    background: linear-gradient(135deg, var(--accent-blue), var(--accent-purple));
    position: relative;
    box-shadow: 0 0 20px rgba(0, 229, 255, 0.1);
    transition: all 0.4s ease;
}

.team-member:hover .member-avatar {
    transform: scale(1.05);
    box-shadow: 0 0 30px rgba(0, 229, 255, 0.3);
}

.member-avatar svg {
    width: 100%;
    height: 100%;
    background: var(--bg-dark);
    border-radius: 50%;
}

.team-member h3 {
    font-size: 1.6rem;
    margin-bottom: 0.5rem;
    color: var(--text-main);
    font-weight: 600;
}

.member-title {
    display: inline-block;
    color: var(--accent-cyan);
    font-size: 0.8rem;
    font-family: var(--font-tech);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 1.5rem;
    padding: 0.4rem 1rem;
    background: rgba(0, 229, 255, 0.05);
    border-radius: 20px;
    border: 1px solid rgba(0, 229, 255, 0.1);
}

.member-bio {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.7;
}

/* Sections Spacing */
.about-section,
.mission-section,
.values-section,
.team-section {
    padding: 3rem 0;
    position: relative;
}

/* About Content */
.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-text h2 {
    font-size: 2.2rem;
    margin-bottom: 1.5rem;
    color: var(--text-main);
}

.about-intro p {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    line-height: 1.8;
    font-size: 1.05rem;
}

.about-image {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0,0,0,0.3);
    border: 1px solid rgba(255,255,255,0.1);
    background: rgba(255,255,255,0.02);
}

.about-image svg {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.5s ease;
}

.about-image:hover svg {
    transform: scale(1.02);
}

/* Footer */
.footer {
    background: #000;
    padding: 5rem 0 2rem;
    border-top: 1px solid var(--border-glass);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 3rem;
    margin-bottom: 4rem;
}

.footer-section h4 {
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
    color: var(--text-main);
    font-weight: 600;
}

.footer-section p, .footer-section a {
    color: var(--text-tertiary);
    font-size: 0.9rem;
    text-decoration: none;
    transition: color 0.2s;
    display: block;
    margin-bottom: 0.8rem;
}

.footer-section a:hover {
    color: var(--text-main);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255,255,255,0.05);
    color: var(--text-tertiary);
    font-size: 0.8rem;
}

/* Grid Layouts */
.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    justify-content: center;
}

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

.values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 2rem;
}

/* Responsive */
@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        top: 65px;
        left: -100%;
        flex-direction: column;
        background: rgba(0, 2, 18, 0.95);
        backdrop-filter: blur(20px);
        width: 100%;
        padding: 2rem;
        gap: 0;
        transition: left 0.3s;
        border-bottom: 1px solid var(--border-glass);
        height: calc(100vh - 65px);
    }

    .nav-menu.active { left: 0; }
    .nav-menu li { width: 100%; border-bottom: 1px solid var(--border-glass); }
    .nav-menu a { display: block; padding: 1.2rem; }
    
    .nav-toggle { display: flex; }
    
    /* Hero Typography Adjustments */
    .hero-content { padding: 2rem 1rem; }
    
    .title-en { 
        font-size: 2.5rem; 
        letter-spacing: 0.05em;
    }
    
    .title-zh { 
        font-size: 1.5rem; 
        margin-top: 0.5rem;
        letter-spacing: 0.1em;
    }

    .slogan-zh {
        font-size: 1.2rem;
        letter-spacing: 2px;
    }

    .slogan-en {
        font-size: 0.85rem;
        letter-spacing: 1px;
    }

    .hero-description {
        font-size: 0.95rem;
        padding: 0 1rem;
    }

    /* Section Titles */
    .section-title {
        font-size: 1.5rem;
        margin-bottom: 2.5rem;
    }

    .page-header h1 {
        font-size: 2rem;
    }

    /* Layout Adjustments */
    .about-content { grid-template-columns: 1fr; gap: 2rem; }
    .hero-cta { flex-direction: column; padding: 0 2rem; gap: 1rem; }
    .btn { width: 100%; }
    
    .services-grid, .mission-grid, .values-grid, .team-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        padding: 0 1rem;
    }

    .service-card, .mission-card, .value-item {
        padding: 1.5rem;
    }

    .nav-controls {
        gap: 1rem;
    }

    .hero-founded {
        font-size: 0.75rem;
        padding: 0.4rem 1rem;
        margin-bottom: 2rem;
    }
}
