/* ==================== CSS Variables & Reset ==================== */
:root {
    --bg-primary: #0a0a1a;
    --bg-secondary: #0d0d25;
    --bg-card: rgba(15, 15, 40, 0.7);
    --text-primary: #e8e8f0;
    --text-secondary: #8890a8;
    --accent: #00d4ff;
    --accent2: #7b2fff;
    --accent3: #ff2d78;
    --accent4: #00ff88;
    --glass-bg: rgba(255, 255, 255, 0.03);
    --glass-border: rgba(255, 255, 255, 0.08);
    --glow-cyan: 0 0 20px rgba(0, 212, 255, 0.3);
    --glow-purple: 0 0 20px rgba(123, 47, 255, 0.3);
    --transition: cubic-bezier(0.4, 0, 0.2, 1);
    --font-mono: 'Orbitron', monospace;
    --font-sans: 'Noto Sans SC', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-sans);
    background: var(--bg-primary);
    color: var(--text-primary);
    overflow-x: hidden;
    line-height: 1.6;
}

/* ==================== Particle Canvas ==================== */
#particleCanvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

/* ==================== Navigation ==================== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 16px 0;
    transition: all 0.4s var(--transition);
    backdrop-filter: blur(0px);
}

.navbar.scrolled {
    background: rgba(10, 10, 26, 0.85);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--glass-border);
    padding: 10px 0;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

.nav-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 32px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
}

.logo-icon svg {
    filter: drop-shadow(0 0 10px rgba(0, 212, 255, 0.4));
    animation: logoPulse 3s ease-in-out infinite;
}

@keyframes logoPulse {
    0%, 100% { filter: drop-shadow(0 0 10px rgba(0, 212, 255, 0.4)); }
    50% { filter: drop-shadow(0 0 20px rgba(123, 47, 255, 0.6)); }
}

.logo-zh {
    font-family: var(--font-mono);
    font-size: 16px;
    font-weight: 700;
    letter-spacing: 2px;
    background: linear-gradient(135deg, var(--accent), var(--accent2));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.logo-en {
    font-family: var(--font-mono);
    font-size: 10px;
    font-weight: 400;
    letter-spacing: 3px;
    color: var(--text-secondary);
    display: block;
}

.nav-links {
    display: flex;
    gap: 32px;
    align-items: center;
}

.nav-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    position: relative;
    padding: 4px 0;
    transition: color 0.3s;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--accent), var(--accent2));
    transition: width 0.3s var(--transition);
}

.nav-link:hover, .nav-link.active {
    color: var(--text-primary);
}

.nav-link:hover::after, .nav-link.active::after {
    width: 100%;
}

.nav-mobile-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
}

.nav-mobile-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--text-primary);
    transition: all 0.3s;
}

/* ==================== Hero Section ==================== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 120px 32px 60px;
    max-width: 1280px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
    gap: 60px;
}

.hero-content {
    flex: 1;
    max-width: 600px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 20px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 50px;
    font-size: 13px;
    color: var(--text-secondary);
    margin-bottom: 32px;
    backdrop-filter: blur(10px);
    animation: fadeInUp 0.8s ease-out;
}

.badge-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--accent4);
    box-shadow: 0 0 10px var(--accent4);
    animation: blink 2s infinite;
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.3; }
}

.hero-title {
    font-family: var(--font-mono);
    font-size: clamp(40px, 6vw, 64px);
    font-weight: 900;
    line-height: 1.2;
    margin-bottom: 24px;
    animation: fadeInUp 0.8s ease-out 0.1s both;
}

.title-line {
    display: block;
}

.gradient-text {
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent2) 50%, var(--accent3) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    background-size: 200% 200%;
    animation: gradientShift 4s ease infinite;
}

@keyframes gradientShift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.hero-desc {
    font-size: 18px;
    color: var(--text-secondary);
    margin-bottom: 40px;
    max-width: 500px;
    animation: fadeInUp 0.8s ease-out 0.2s both;
    line-height: 1.8;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    margin-bottom: 60px;
    animation: fadeInUp 0.8s ease-out 0.3s both;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 32px;
    border-radius: 50px;
    font-family: var(--font-sans);
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s var(--transition);
    border: none;
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent2), var(--accent));
    color: #fff;
    box-shadow: 0 4px 20px rgba(123, 47, 255, 0.4);
}

.btn-primary:hover {
    box-shadow: 0 6px 30px rgba(123, 47, 255, 0.6);
    transform: translateY(-2px);
}

.btn-outline {
    background: transparent;
    color: var(--text-primary);
    border: 1px solid var(--glass-border);
}

.btn-outline:hover {
    border-color: var(--accent);
    background: rgba(0, 212, 255, 0.05);
    box-shadow: 0 0 20px rgba(0, 212, 255, 0.1);
}

.btn-full {
    width: 100%;
    justify-content: center;
}

.hero-stats {
    display: flex;
    gap: 40px;
    animation: fadeInUp 0.8s ease-out 0.4s both;
}

.stat-item {
    display: flex;
    align-items: baseline;
    gap: 4px;
    font-size: 13px;
    color: var(--text-secondary);
    flex-wrap: wrap;
}

.stat-number {
    font-family: var(--font-mono);
    font-size: 28px;
    font-weight: 700;
    color: var(--text-primary);
}

/* Hero Visual */
.hero-visual {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeInUp 0.8s ease-out 0.3s both;
}

.globe-container {
    position: relative;
    width: 400px;
    height: 400px;
}

.globe {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.globe-ring {
    position: absolute;
    top: 50%;
    left: 50%;
    border-radius: 50%;
    border: 1px solid rgba(0, 212, 255, 0.2);
    transform: translate(-50%, -50%);
}

.ring-1 {
    width: 280px;
    height: 280px;
    animation: rotate3d 8s linear infinite;
    border-color: rgba(0, 212, 255, 0.3);
}

.ring-2 {
    width: 220px;
    height: 220px;
    animation: rotate3dReverse 6s linear infinite;
    border-color: rgba(123, 47, 255, 0.3);
}

.ring-3 {
    width: 160px;
    height: 160px;
    animation: rotate3d 10s linear infinite;
    border-color: rgba(255, 45, 120, 0.2);
}

@keyframes rotate3d {
    from { transform: translate(-50%, -50%) rotateX(60deg) rotateZ(0deg); }
    to { transform: translate(-50%, -50%) rotateX(60deg) rotateZ(360deg); }
}

@keyframes rotate3dReverse {
    from { transform: translate(-50%, -50%) rotateY(60deg) rotateZ(0deg); }
    to { transform: translate(-50%, -50%) rotateY(60deg) rotateZ(-360deg); }
}

.globe-core {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 80px;
    height: 80px;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    background: radial-gradient(circle, rgba(0, 212, 255, 0.4), rgba(123, 47, 255, 0.2), transparent);
    box-shadow: 0 0 40px rgba(0, 212, 255, 0.3), 0 0 80px rgba(123, 47, 255, 0.2);
    animation: corePulse 3s ease-in-out infinite;
}

@keyframes corePulse {
    0%, 100% { box-shadow: 0 0 40px rgba(0, 212, 255, 0.3), 0 0 80px rgba(123, 47, 255, 0.2); }
    50% { box-shadow: 0 0 60px rgba(0, 212, 255, 0.5), 0 0 100px rgba(123, 47, 255, 0.4); }
}

.globe-particles span {
    position: absolute;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: var(--accent);
    left: var(--x);
    top: var(--y);
    animation: particleFloat var(--d) ease-in-out infinite;
    box-shadow: 0 0 6px var(--accent);
}

@keyframes particleFloat {
    0%, 100% { transform: translate(0, 0) scale(1); opacity: 0.6; }
    50% { transform: translate(10px, -15px) scale(1.5); opacity: 1; }
}

.tech-lines {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.tech-line {
    position: absolute;
    width: 60px;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--accent), transparent);
    transform: translate(var(--tx), var(--ty)) rotate(var(--rot));
    animation: techLinePulse var(--d) ease-in-out infinite;
    opacity: 0;
}

@keyframes techLinePulse {
    0%, 100% { opacity: 0; transform: translate(var(--tx), var(--ty)) rotate(var(--rot)) scaleX(0.5); }
    50% { opacity: 0.8; transform: translate(var(--tx), var(--ty)) rotate(var(--rot)) scaleX(1.2); }
}

/* ==================== Sections Common ==================== */
.section {
    padding: 100px 32px;
    position: relative;
    z-index: 1;
}

.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 64px;
}

.section-tag {
    display: inline-block;
    padding: 6px 16px;
    background: rgba(0, 212, 255, 0.1);
    border: 1px solid rgba(0, 212, 255, 0.2);
    border-radius: 50px;
    font-size: 13px;
    color: var(--accent);
    font-family: var(--font-mono);
    letter-spacing: 2px;
    margin-bottom: 20px;
}

.section-title {
    font-family: var(--font-mono);
    font-size: clamp(28px, 4vw, 42px);
    font-weight: 700;
    margin-bottom: 16px;
}

.section-desc {
    font-size: 16px;
    color: var(--text-secondary);
    line-height: 1.8;
}

/* ==================== Cards Grid ==================== */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 24px;
    max-width: 1200px;
    margin: 0 auto;
}

.card {
    background: var(--bg-card);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 36px 28px;
    transition: all 0.4s var(--transition);
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--accent), transparent);
    opacity: 0;
    transition: opacity 0.4s;
}

.card:hover {
    transform: translateY(-8px);
    border-color: rgba(0, 212, 255, 0.3);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4), 0 0 30px rgba(0, 212, 255, 0.1);
}

.card:hover::before {
    opacity: 1;
}

.card-icon {
    margin-bottom: 24px;
}

.icon-hex {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 212, 255, 0.08);
    border: 1px solid rgba(0, 212, 255, 0.2);
    border-radius: 14px;
    color: var(--accent);
    transition: all 0.4s;
}

.card:hover .icon-hex {
    background: rgba(0, 212, 255, 0.15);
    border-color: var(--accent);
    box-shadow: 0 0 20px rgba(0, 212, 255, 0.2);
}

.icon-hex svg {
    width: 32px;
    height: 32px;
}

.card h3 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 12px;
    color: var(--text-primary);
}

.card p {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 20px;
}

.card-tags {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.card-tags span {
    padding: 4px 12px;
    background: rgba(0, 212, 255, 0.08);
    border-radius: 50px;
    font-size: 11px;
    color: var(--accent);
    font-family: var(--font-mono);
}

/* ==================== Dev Section ==================== */
.dev-section {
    background: linear-gradient(180deg, transparent 0%, rgba(10, 10, 40, 0.5) 50%, transparent 100%);
}

.dev-showcase {
    display: flex;
    gap: 60px;
    max-width: 1200px;
    margin: 0 auto 60px;
    align-items: center;
}

.dev-visual {
    flex: 1;
    max-width: 500px;
}

.code-terminal {
    background: rgba(5, 5, 20, 0.9);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.terminal-header {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 14px 18px;
    background: rgba(255, 255, 255, 0.03);
    border-bottom: 1px solid var(--glass-border);
}

.terminal-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.terminal-dot.red { background: #ff5f57; }
.terminal-dot.yellow { background: #febc2e; }
.terminal-dot.green { background: #28c840; }

.terminal-title {
    margin-left: 12px;
    font-family: var(--font-mono);
    font-size: 11px;
    color: var(--text-secondary);
    letter-spacing: 1px;
}

.terminal-body {
    padding: 20px;
    font-family: 'Courier New', monospace;
    font-size: 13px;
    line-height: 2;
}

.code-line {
    color: var(--text-secondary);
}

.code-line .code-prompt {
    color: var(--accent4);
    margin-right: 8px;
}

.code-line.muted { color: rgba(136, 144, 168, 0.5); }
.code-line.success { color: var(--accent4); }

.code-cursor {
    display: inline-block;
    color: var(--accent);
    animation: cursorBlink 1s step-end infinite;
}

@keyframes cursorBlink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

.dev-features {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.dev-feature {
    display: flex;
    gap: 20px;
    padding: 20px;
    background: var(--bg-card);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    transition: all 0.3s;
}

.dev-feature:hover {
    border-color: rgba(0, 212, 255, 0.3);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.feature-icon {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 212, 255, 0.08);
    border-radius: 12px;
    flex-shrink: 0;
    color: var(--accent);
}

.feature-icon svg {
    width: 24px;
    height: 24px;
}

.dev-feature h4 {
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 4px;
}

.dev-feature p {
    font-size: 13px;
    color: var(--text-secondary);
}

.tech-stack {
    max-width: 1200px;
    margin: 0 auto;
    padding: 32px;
    background: var(--bg-card);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    display: flex;
    align-items: center;
    gap: 24px;
}

.stack-label {
    font-family: var(--font-mono);
    font-size: 13px;
    color: var(--accent);
    letter-spacing: 2px;
    white-space: nowrap;
}

.stack-items {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.stack-item {
    padding: 6px 16px;
    background: rgba(0, 212, 255, 0.06);
    border: 1px solid rgba(0, 212, 255, 0.15);
    border-radius: 50px;
    font-size: 12px;
    color: var(--text-secondary);
    font-family: var(--font-mono);
    transition: all 0.3s;
    cursor: default;
}

.stack-item:hover {
    background: rgba(0, 212, 255, 0.12);
    color: var(--accent);
    border-color: var(--accent);
    box-shadow: 0 0 10px rgba(0, 212, 255, 0.1);
}

/* ==================== Outsourcing Section ==================== */
.outsourcing-flow {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    max-width: 1200px;
    margin: 0 auto 60px;
    gap: 0;
}

.flow-step {
    text-align: center;
    flex: 1;
    max-width: 180px;
    position: relative;
}

.step-number {
    font-family: var(--font-mono);
    font-size: 40px;
    font-weight: 900;
    background: linear-gradient(135deg, var(--accent), var(--accent2));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    opacity: 0.3;
    margin-bottom: 8px;
}

.step-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-card);
    border: 1px solid var(--glass-border);
    border-radius: 50%;
    color: var(--accent);
    transition: all 0.4s;
}

.step-icon svg {
    width: 28px;
    height: 28px;
}

.flow-step:hover .step-icon {
    border-color: var(--accent);
    box-shadow: 0 0 20px rgba(0, 212, 255, 0.2);
    transform: scale(1.1);
}

.flow-step:hover .step-number {
    opacity: 1;
}

.flow-step h4 {
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 8px;
}

.flow-step p {
    font-size: 12px;
    color: var(--text-secondary);
    line-height: 1.8;
}

.flow-connector {
    width: 60px;
    height: 2px;
    background: linear-gradient(90deg, rgba(0, 212, 255, 0.3), transparent);
    margin-top: 72px;
    flex-shrink: 0;
    position: relative;
    overflow: hidden;
}

.flow-connector::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 2px;
    background: var(--accent);
    animation: flowLine 2s ease-in-out infinite;
}

@keyframes flowLine {
    0% { left: -20px; }
    100% { left: 100%; }
}

.outsourcing-advantages {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.advantage-card {
    background: var(--bg-card);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 28px;
    transition: all 0.3s;
}

.advantage-card:hover {
    border-color: rgba(0, 212, 255, 0.3);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.advantage-card h3 {
    font-size: 16px;
    margin-bottom: 10px;
}

.advantage-card p {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.7;
}

/* ==================== Media Section ==================== */
.media-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: auto auto;
    gap: 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.media-card {
    border-radius: 20px;
    overflow: hidden;
    cursor: pointer;
    position: relative;
    transition: all 0.4s var(--transition);
}

.media-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5), 0 0 30px rgba(0, 212, 255, 0.1);
}

.media-card.large {
    grid-column: span 2;
}

.media-card-bg {
    height: 240px;
    background: var(--bg);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.media-card-content {
    padding: 24px;
    background: rgba(15, 15, 40, 0.9);
    backdrop-filter: blur(10px);
    border-top: 1px solid var(--glass-border);
}

.media-card-content h3 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 6px;
}

.media-card-content p {
    font-size: 13px;
    color: var(--text-secondary);
}

/* Media Card Graphics */
.graphic-shapes {
    position: relative;
    width: 120px;
    height: 120px;
}

.g-shape {
    position: absolute;
    border: 2px solid rgba(0, 212, 255, 0.4);
    border-radius: 8px;
    animation: shapeFloat 3s ease-in-out infinite;
}

.g-shape.s1 {
    width: 60px;
    height: 60px;
    top: 10px;
    left: 10px;
    animation-delay: 0s;
}

.g-shape.s2 {
    width: 40px;
    height: 40px;
    top: 50px;
    left: 50px;
    border-color: rgba(123, 47, 255, 0.4);
    animation-delay: 1s;
    border-radius: 50%;
}

.g-shape.s3 {
    width: 30px;
    height: 30px;
    top: 20px;
    left: 60px;
    border-color: rgba(255, 45, 120, 0.4);
    animation-delay: 2s;
    transform: rotate(45deg);
    border-radius: 4px;
}

@keyframes shapeFloat {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-15px) rotate(10deg); }
}

.play-btn {
    width: 60px;
    height: 60px;
    border: 3px solid rgba(0, 212, 255, 0.5);
    border-radius: 50%;
    position: relative;
    animation: playPulse 2s ease-in-out infinite;
}

.play-btn::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 55%;
    transform: translate(-50%, -50%);
    border-left: 16px solid var(--accent);
    border-top: 10px solid transparent;
    border-bottom: 10px solid transparent;
}

@keyframes playPulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(0, 212, 255, 0.4); }
    50% { box-shadow: 0 0 0 20px rgba(0, 212, 255, 0); }
}

/* 3D Cube */
.cube-3d {
    width: 60px;
    height: 60px;
    position: relative;
    transform-style: preserve-3d;
    animation: cubeRotate 8s linear infinite;
}

.cube-3d .face {
    position: absolute;
    width: 60px;
    height: 60px;
    border: 1px solid rgba(0, 212, 255, 0.3);
    background: rgba(0, 212, 255, 0.05);
}

.cube-3d .front { transform: translateZ(30px); }
.cube-3d .back { transform: rotateY(180deg) translateZ(30px); }
.cube-3d .right { transform: rotateY(90deg) translateZ(30px); }
.cube-3d .left { transform: rotateY(-90deg) translateZ(30px); }
.cube-3d .top { transform: rotateX(90deg) translateZ(30px); }
.cube-3d .bottom { transform: rotateX(-90deg) translateZ(30px); }

@keyframes cubeRotate {
    from { transform: rotateX(-30deg) rotateY(0deg); }
    to { transform: rotateX(-30deg) rotateY(360deg); }
}

/* Wave Bars */
.wave-bars {
    display: flex;
    align-items: flex-end;
    gap: 4px;
    height: 60px;
}

.wave-bars span {
    width: 6px;
    background: linear-gradient(180deg, var(--accent), var(--accent2));
    border-radius: 3px;
    animation: waveBar 1.2s ease-in-out infinite;
}

.wave-bars span:nth-child(1) { height: 20px; animation-delay: 0s; }
.wave-bars span:nth-child(2) { height: 40px; animation-delay: 0.1s; }
.wave-bars span:nth-child(3) { height: 55px; animation-delay: 0.2s; }
.wave-bars span:nth-child(4) { height: 35px; animation-delay: 0.3s; }
.wave-bars span:nth-child(5) { height: 25px; animation-delay: 0.4s; }

@keyframes waveBar {
    0%, 100% { transform: scaleY(1); }
    50% { transform: scaleY(0.4); }
}

/* AI Badge */
.ai-badge {
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 212, 255, 0.1);
    border: 2px solid rgba(0, 212, 255, 0.3);
    border-radius: 50%;
    animation: aiBadgePulse 3s ease-in-out infinite;
}

.ai-badge span {
    font-family: var(--font-mono);
    font-size: 28px;
    font-weight: 900;
    background: linear-gradient(135deg, var(--accent), var(--accent2));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

@keyframes aiBadgePulse {
    0%, 100% { box-shadow: 0 0 20px rgba(0, 212, 255, 0.2); }
    50% { box-shadow: 0 0 40px rgba(0, 212, 255, 0.4); transform: scale(1.05); }
}

/* ==================== Contact Section ==================== */
.contact-container {
    display: flex;
    gap: 40px;
    max-width: 1100px;
    margin: 0 auto;
}

.contact-info {
    flex: 1;
}

.contact-form {
    flex: 1.2;
}

.glass-card {
    background: var(--bg-card);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 36px;
    backdrop-filter: blur(10px);
}

.contact-card {
    display: flex;
    flex-direction: column;
    gap: 28px;
}

.contact-item {
    display: flex;
    gap: 16px;
    align-items: flex-start;
}

.contact-icon-wrap {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 212, 255, 0.08);
    border-radius: 12px;
    flex-shrink: 0;
    color: var(--accent);
}

.contact-label {
    font-size: 11px;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 2px;
    font-family: var(--font-mono);
    display: block;
    margin-bottom: 4px;
}

.contact-item p {
    font-size: 15px;
    color: var(--text-primary);
}

.form-group {
    margin-bottom: 16px;
}

.form-input {
    width: 100%;
    padding: 14px 18px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    color: var(--text-primary);
    font-family: var(--font-sans);
    font-size: 14px;
    transition: all 0.3s;
    outline: none;
    resize: vertical;
}

.form-input:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(0, 212, 255, 0.1);
    background: rgba(255, 255, 255, 0.05);
}

.form-input::placeholder {
    color: rgba(136, 144, 168, 0.5);
}

select.form-input {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath d='M6 8L1 3h10z' fill='%238890a8'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    cursor: pointer;
}

select.form-input option {
    background: #1a1a3a;
    color: var(--text-primary);
}

/* ==================== Footer ==================== */
.footer {
    position: relative;
    z-index: 1;
    padding: 80px 32px 32px;
    border-top: 1px solid var(--glass-border);
}

.footer-grid {
    max-width: 1200px;
    margin: 0 auto 48px;
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 48px;
}

.footer-links-group h4 {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 20px;
    color: var(--text-primary);
}

.footer-links-group a {
    display: block;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 13px;
    margin-bottom: 10px;
    transition: color 0.3s;
}

.footer-links-group a:hover {
    color: var(--accent);
}

.social-links {
    display: flex;
    gap: 12px;
}

.social-link {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--glass-border);
    border-radius: 50%;
    color: var(--text-secondary);
    transition: all 0.3s;
}

.social-link:hover {
    border-color: var(--accent);
    color: var(--accent);
    box-shadow: 0 0 15px rgba(0, 212, 255, 0.2);
}

.footer-bottom {
    max-width: 1200px;
    margin: 0 auto;
    padding-top: 24px;
    border-top: 1px solid var(--glass-border);
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: var(--text-secondary);
}

.footer-bottom a {
    color: var(--text-secondary);
    text-decoration: none;
    margin: 0 8px;
    transition: color 0.3s;
}

.footer-bottom a:hover {
    color: var(--accent);
}

/* ==================== Animations ==================== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* AOS-like scroll animations */
[data-aos] {
    opacity: 0;
    transition: all 0.6s var(--transition);
}

[data-aos="fade-up"] {
    transform: translateY(40px);
}

[data-aos].aos-animate {
    opacity: 1;
    transform: translateY(0);
}

/* ==================== Scrollbar ==================== */
::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: var(--bg-primary);
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, var(--accent), var(--accent2));
    border-radius: 3px;
}

/* ==================== Responsive ==================== */
@media (max-width: 1024px) {
    .hero {
        flex-direction: column;
        text-align: center;
        padding-top: 140px;
        gap: 40px;
    }

    .hero-desc {
        margin: 0 auto 40px;
    }

    .hero-buttons {
        justify-content: center;
    }

    .hero-stats {
        justify-content: center;
    }

    .hero-visual {
        max-width: 300px;
        margin: 0 auto;
    }

    .globe-container {
        width: 300px;
        height: 300px;
    }

    .dev-showcase {
        flex-direction: column;
    }

    .dev-visual {
        max-width: 100%;
    }

    .media-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .media-card.large {
        grid-column: span 2;
    }

    .contact-container {
        flex-direction: column;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }

    .outsourcing-flow {
        flex-wrap: wrap;
        gap: 16px;
    }

    .flow-connector {
        display: none;
    }

    .flow-step {
        min-width: 140px;
        flex: 0 0 auto;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

    .nav-mobile-toggle {
        display: flex;
    }

    .hero-stats {
        gap: 20px;
        flex-wrap: wrap;
    }

    .stat-item {
        min-width: 100px;
    }

    .cards-grid {
        grid-template-columns: 1fr;
    }

    .outsourcing-advantages {
        grid-template-columns: 1fr;
    }

    .media-grid {
        grid-template-columns: 1fr;
    }

    .media-card.large {
        grid-column: span 1;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 8px;
        text-align: center;
    }

    .tech-stack {
        flex-direction: column;
        align-items: flex-start;
    }
}
