:root {
    --primary-color: #00f2ff;
    --secondary-color: #7000ff;
    --text-color: #ffffff;
    --bg-color: #050505;
    --glass-bg: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.1);
}

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

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: 'Microsoft YaHei', 'PingFang SC', sans-serif;
    overflow-x: hidden;
    overscroll-behavior: none;
}

/* Canvas Background */
#webgl {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    pointer-events: none;
}

/* Navigation */
nav {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 20px 50px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 100;
    mix-blend-mode: difference;
}

.logo {
    font-size: 24px;
    font-weight: bold;
    letter-spacing: 2px;
    color: var(--primary-color);
    text-shadow: 0 0 10px var(--primary-color);
}

.menu a {
    color: #fff;
    text-decoration: none;
    margin-left: 30px;
    font-size: 14px;
    position: relative;
    transition: color 0.3s;
}

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

.menu a:hover {
    color: var(--primary-color);
}

.menu a:hover::after {
    width: 100%;
}

/* Sections */
.section {
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    padding: 20px;
}

.content-wrapper {
    max-width: 1200px;
    width: 100%;
    z-index: 10;
}

/* Typography & Effects */
h1, h2, h3 {
    font-weight: 700;
}

h2 {
    font-size: 3rem;
    margin-bottom: 40px;
    background: linear-gradient(45deg, #fff, var(--primary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

.section-desc {
    margin-bottom: 40px;
    color: rgba(255, 255, 255, 0.8);
    font-size: 1.2rem;
}

/* Hero Section */
.hero-title {
    font-size: 5rem;
    line-height: 1.1;
    margin-bottom: 20px;
}

.hero-title .line {
    display: block;
    clip-path: polygon(0 0, 100% 0, 100% 100%, 0% 100%);
}

.hero-subtitle {
    font-size: 1.5rem;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 40px;
    max-width: 600px;
}

.cta-btn {
    padding: 15px 40px;
    background: transparent;
    border: 1px solid var(--primary-color);
    color: var(--primary-color);
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.cta-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: var(--primary-color);
    transition: left 0.3s;
    z-index: -1;
}

.cta-btn:hover {
    color: #000;
}

.cta-btn:hover::before {
    left: 0;
}

/* Glassmorphism Cards */
.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    padding: 60px;
    border-radius: 20px;
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.5);
}

/* About Section */
.highlight-text {
    font-size: 1.8rem;
    margin-bottom: 30px;
    color: var(--primary-color);
}

.stats {
    display: flex;
    justify-content: space-between;
    margin-top: 50px;
}

.stat-item {
    text-align: center;
}

.stat-item .number {
    display: block;
    font-size: 3rem;
    font-weight: bold;
    color: var(--secondary-color);
    text-shadow: 0 0 20px var(--secondary-color);
}

/* Services Grid */
.cards-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.service-card {
    background: rgba(255, 255, 255, 0.03);
    padding: 40px 20px;
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.4s;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.service-card:hover {
    transform: translateY(-10px);
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 10px 30px rgba(0, 242, 255, 0.2);
    border-color: var(--primary-color);
}

.card-icon {
    font-size: 3rem;
    margin-bottom: 20px;
}

.service-card h3 {
    margin-bottom: 15px;
    color: var(--primary-color);
}

.service-card p {
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.6;
}

/* Process Section */
.process-steps {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    margin-top: 40px;
    position: relative;
}

/* Connecting Line */
.process-steps::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    width: var(--line-width, 0%); /* Controlled by JS */
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--primary-color), var(--secondary-color), transparent);
    z-index: 0;
    transform: translateY(-50%);
    box-shadow: 0 0 10px var(--primary-color);
    transition: width 0.1s linear; /* Smooth update */
}

.step-item {
    flex: 1;
    position: relative;
    padding: 30px;
    border-left: 1px solid rgba(255, 255, 255, 0.1);
    background: linear-gradient(90deg, rgba(255,255,255,0.02) 0%, transparent 100%);
    transition: all 0.3s;
}

.step-item:hover {
    border-left-color: var(--primary-color);
    background: linear-gradient(90deg, rgba(0, 242, 255, 0.05) 0%, transparent 100%);
}

.step-number {
    font-size: 3rem;
    font-weight: bold;
    color: rgba(255, 255, 255, 0.1);
    margin-bottom: 10px;
    position: absolute;
    top: 10px;
    right: 20px;
}

.step-item h3 {
    color: var(--primary-color);
    margin-bottom: 15px;
}

/* Tech Stack Section */
.tech-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

.tech-tag {
    padding: 10px 25px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50px;
    color: #fff;
    font-size: 1rem;
    transition: all 0.3s;
    cursor: default;
}

.tech-tag:hover {
    background: var(--primary-color);
    color: #000;
    box-shadow: 0 0 15px var(--primary-color);
    transform: scale(1.1);
}

/* Testimonials Section */
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.testimonial-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    padding: 40px;
    border-radius: 15px;
    position: relative;
}

.testimonial-card::before {
    content: '"';
    position: absolute;
    top: 20px;
    left: 20px;
    font-size: 4rem;
    color: var(--secondary-color);
    opacity: 0.3;
    font-family: serif;
    line-height: 1;
}

.quote {
    font-style: italic;
    margin-bottom: 30px;
    color: rgba(255, 255, 255, 0.9);
    position: relative;
    z-index: 1;
}

.author h4 {
    color: var(--primary-color);
    margin-bottom: 5px;
}

.author span {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.5);
}

/* Contact Form */
.form-wrapper {
    max-width: 600px;
    margin: 0 auto;
}

.input-group {
    margin-bottom: 20px;
}

input, textarea {
    width: 100%;
    padding: 15px;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--glass-border);
    border-radius: 5px;
    color: #fff;
    font-size: 1rem;
    outline: none;
    transition: border-color 0.3s, box-shadow 0.3s;
}

input:focus, textarea:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 15px rgba(0, 242, 255, 0.3);
}

/* Footer */
footer {
    padding: 40px;
    text-align: center;
    color: rgba(255, 255, 255, 0.5);
    background: #000;
    border-top: 1px solid #111;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .hero-title {
        font-size: 3rem;
    }
    
    nav {
        padding: 20px;
    }

    .menu {
        display: none; /* Simple hide for now, would need a hamburger menu for full mobile support */
    }

    .glass-card {
        padding: 30px;
    }

    .stats {
        flex-direction: column;
        gap: 30px;
    }
    
    .process-steps {
        flex-direction: column;
    }
    
    .step-item {
        border-left: none;
        border-top: 1px solid rgba(255, 255, 255, 0.1);
    }
}