/* RESET & VARIABLES */
:root {
    /* Light Mode - Futuristic Clean */
    --bg-color: #f8fafc;
    --bg-secondary: #ffffff;
    --text-primary: #0f172a;
    --text-secondary: #475569;
    --text-light: #94a3b8;
    --accent-color: #6366f1;
    /* Indigo */
    --accent-gradient: linear-gradient(135deg, #6366f1 0%, #a855f7 100%);
    /* Indigo to Purple */
    --border-color: #e2e8f0;
    --card-bg: rgba(255, 255, 255, 0.7);

    --card-border: 1px solid rgba(255, 255, 255, 0.8);
    --card-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --card-hover-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --nav-height: 70px;
    --font-main: 'Inter', sans-serif;
    --glow-color: rgba(99, 102, 241, 0.5);
    --glass-backdrop: blur(12px);

    /* New AI Tech Variables */
    --gradient-main: linear-gradient(135deg, #7C3AED 0%, #A855F7 40%, #EC4899 100%);
    --accent-cyan: #22D3EE;
    --accent-blue: #3B82F6;
}

body.dark-mode {
    /* Dark Mode - Cyberpunk/AI */
    --bg-color: #020617;
    /* Very dark slate */
    --bg-secondary: #0f172a;
    --text-primary: #f8fafc;
    --text-secondary: #cbd5e1;
    --text-light: #64748b;
    --accent-color: #38bdf8;
    /* Sky Blue */
    --accent-gradient: linear-gradient(135deg, #38bdf8 0%, #818cf8 100%);
    /* Sky to Indigo */
    --border-color: #1e293b;
    --card-bg: rgba(15, 23, 42, 0.6);
    --card-border: 1px solid rgba(255, 255, 255, 0.05);
    --card-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.5);
    --card-hover-shadow: 0 0 20px rgba(56, 189, 248, 0.2);
    --glow-color: rgba(56, 189, 248, 0.4);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-main);
    background-color: var(--bg-color);
    color: var(--text-primary);
    line-height: 1.6;
    transition: background-color 0.3s ease, color 0.3s ease;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
    transition: opacity 0.2s;
}

ul {
    list-style: none;
}

/* UTILITIES */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* OPTIMIZED SPACING */
.section-padding {
    padding: 80px 0;
}

@media (min-width: 1024px) {
    .section-padding {
        padding: 64px 0;
    }
}

.bg-light {
    background-color: var(--bg-secondary);
    background-image:
        linear-gradient(180deg, rgba(148, 163, 184, 0.05) 0%, rgba(15, 23, 42, 0.01) 100%);
    position: relative;
}

body.dark-mode .bg-light {
    background-image:
        linear-gradient(180deg, rgba(30, 41, 59, 0.3) 0%, rgba(15, 23, 42, 0.1) 100%);
}

.bg-gradient {
    background: linear-gradient(180deg, var(--bg-color) 0%, var(--bg-secondary) 100%);
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.text-center {
    text-align: center;
}

.mb-4 {
    margin-bottom: 1.5rem;
}

/* TYPOGRAPHY */
h1,
h2,
h3,
h4 {
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
}

h1 {
    font-size: 3.5rem;
}

h2 {
    font-size: 2.5rem;
}

h3 {
    font-size: 1.5rem;
}

h4 {
    font-size: 1.25rem;
}

.cn-block {
    display: block;
    font-size: 0.6em;
    font-weight: 400;
    color: var(--text-light);
    margin-top: 5px;
}

.cn-text {
    font-size: 0.8em;
    margin-left: 5px;
    color: var(--text-light);
}

.cn-text-sm {
    font-size: 0.8em;
    color: var(--text-light);
    display: block;
    margin-top: 4px;
}

.cn-text-light {
    color: var(--text-light);
    font-size: 0.9em;
}

.cn-btn {
    font-size: 0.8em;
    margin-left: 8px;
    opacity: 0.8;
    font-weight: 400;
}

/* BUTTONS */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    border-radius: 8px;
    /* Slightly more rounded */
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1px solid transparent;
    position: relative;
    overflow: hidden;
}

.btn:hover {
    transform: translateY(-2px);
}

.btn-primary {
    background: var(--accent-gradient);
    color: white;
    border: none;
}

.btn-primary:hover {
    box-shadow: 0 10px 20px rgba(99, 102, 241, 0.3);
}

.btn-secondary {
    background-color: transparent;
    border-color: var(--border-color);
    color: var(--text-primary);
}

.btn-secondary:hover {
    border-color: var(--text-primary);
    background-color: var(--bg-secondary);
}

.btn-small {
    padding: 8px 16px;
    font-size: 0.9rem;
    width: 100%;
    margin-top: 20px;
    background-color: transparent;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    cursor: pointer;
    color: var(--text-primary);
    transition: all 0.2s;
}

.btn-small:hover {
    border-color: var(--accent-color);
    color: var(--accent-color);
    background-color: rgba(99, 102, 241, 0.05);
}

.glow-effect {
    box-shadow: 0 0 15px var(--glow-color);
}

/* HEADER */
#header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--nav-height);
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: var(--glass-backdrop);
    -webkit-backdrop-filter: var(--glass-backdrop);
    border-bottom: 1px solid var(--border-color);
    z-index: 1000;
    display: flex;
    align-items: center;
    transition: background-color 0.3s;
}

body.dark-mode #header {
    background: rgba(2, 6, 23, 0.7);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.logo {
    font-weight: 700;
    font-size: 1.2rem;
    letter-spacing: -0.02em;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.desktop-nav {
    display: flex;
    align-items: center;
    gap: 24px;
}

.nav-link {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-secondary);
}

.nav-link:hover {
    color: var(--text-primary);
}

#theme-toggle {
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 5px;
    border-radius: 50%;
    transition: background-color 0.2s;
}

#theme-toggle:hover {
    background-color: var(--bg-secondary);
}

.icon-sun {
    display: none;
}

.icon-moon {
    display: block;
}

body.dark-mode .icon-sun {
    display: block;
}

body.dark-mode .icon-moon {
    display: none;
}

#mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text-primary);
}

.mobile-nav-panel {
    position: fixed;
    top: var(--nav-height);
    left: 0;
    width: 100%;
    background-color: var(--bg-color);
    border-bottom: 1px solid var(--border-color);
    padding: 20px 0;
    display: flex;
    flex-direction: column;
    transform: translateY(-150%);
    transition: transform 0.3s ease;
    z-index: 999;
}

.mobile-nav-panel.active {
    transform: translateY(0);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
}

.mobile-link {
    padding: 15px 20px;
    font-size: 1.1rem;
    font-weight: 500;
    border-bottom: 1px solid var(--border-color);
}

.mobile-link:last-child {
    border-bottom: none;
}

/* HERO SECTION */
.hero-section {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-top: var(--nav-height);
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background: var(--bg-color);
}

.hero-particles {
    position: absolute;
    inset: 0;
    background-image: radial-gradient(var(--text-light) 1px, transparent 1px);
    background-size: 40px 40px;
    opacity: 0.1;
    mask-image: radial-gradient(circle at center, black 40%, transparent 100%);
    animation: particle-flow 20s linear infinite;
}

.hero-mesh {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(at 0% 0%, rgba(99, 102, 241, 0.15) 0, transparent 50%),
        radial-gradient(at 100% 100%, rgba(168, 85, 247, 0.15) 0, transparent 50%);
    filter: blur(60px);
    animation: mesh-pulse 10s ease-in-out infinite;
}

.hero-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    width: 100%;
}

.hero-content {
    flex: 1;
    z-index: 1;
}

.hero-title {
    margin-bottom: 1.5rem;
}

.hero-title .en {
    display: block;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-title .cn {
    display: block;
    font-size: 0.5em;
    font-weight: 400;
    color: var(--text-light);
    margin-top: 10px;
}

.hero-subtitle {
    font-size: 1.2rem;
    font-weight: 500;
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

.hero-subtitle .cn {
    display: block;
    font-size: 0.8em;
    margin-top: 5px;
    font-weight: 400;
}

.hero-desc {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 2.5rem;
    max-width: 500px;
}

.hero-buttons {
    display: flex;
    gap: 15px;
}

.hero-visual {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Floating Box Animation */
.floating-box {
    width: 320px;
    height: 320px;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.1);
    position: relative;
    animation: float 6s ease-in-out infinite;
    display: flex;
    justify-content: center;
    align-items: center;
}

.ai-orb {
    width: 120px;
    height: 120px;
    background: var(--accent-gradient);
    border-radius: 50%;
    filter: blur(30px);
    opacity: 0.6;
    animation: pulse 4s ease-in-out infinite;
}

.glass-panel {
    position: absolute;
    bottom: 30px;
    left: 30px;
    right: 30px;
    background: rgba(255, 255, 255, 0.1);
    padding: 20px;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(5px);
}

.code-line {
    height: 6px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 3px;
    margin-bottom: 10px;
    width: 80%;
}

.code-line.short {
    width: 50%;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-20px);
    }
}

@keyframes pulse {

    0%,
    100% {
        transform: scale(1);
        opacity: 0.6;
    }

    50% {
        transform: scale(1.1);
        opacity: 0.4;
    }
}

/* CARDS */
.card {
    background: var(--card-bg);
    border-radius: 16px;
    padding: 30px;
    box-shadow: var(--card-shadow);
    transition: all 0.3s ease;
    border: var(--card-border);
    backdrop-filter: blur(10px);
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: var(--card-hover-shadow);
    border-color: var(--accent-color);
}

.card-icon {
    color: var(--accent-color);
    margin-bottom: 20px;
}

.service-card h3 {
    margin-bottom: 15px;
}

.service-card p {
    color: var(--text-secondary);
    margin-bottom: 20px;
    font-size: 0.95rem;
}

.text-link {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--accent-color);
    display: inline-block;
}

.text-link:hover {
    text-decoration: underline;
}

/* WHY CHOOSE US */
.why-choose-us {
    margin-top: 80px;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.feature-item {
    background: var(--bg-color);
    padding: 20px;
    border-radius: 12px;
    text-align: center;
    border: 1px solid var(--border-color);
    transition: transform 0.3s;
}

.feature-item:hover {
    transform: translateY(-5px);
}

.feature-icon {
    font-size: 2rem;
    display: block;
    margin-bottom: 10px;
}

/* PRICING */
.section-header {
    text-align: center;
    margin-bottom: 60px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.gradient-line {
    width: 60px;
    height: 4px;
    background: var(--accent-gradient);
    margin: 20px auto;
    border-radius: 2px;
}

.subheading {
    font-size: 1.1rem;
    color: var(--text-secondary);
}

.pricing-card {
    cursor: pointer;
    display: flex;
    flex-direction: column;
    position: relative;
}

.popular {
    border: 2px solid var(--accent-color);
    transform: scale(1.02);
}

.popular-badge {
    position: absolute;
    top: -14px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--accent-gradient);
    color: white;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: bold;
    white-space: nowrap;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.pricing-list {
    margin: 20px 0;
    flex-grow: 1;
}

.pricing-list li {
    margin-bottom: 12px;
    color: var(--text-secondary);
    font-size: 0.95rem;
    padding-left: 20px;
    position: relative;
}

.pricing-list li::before {
    content: "•";
    position: absolute;
    left: 0;
    color: var(--accent-color);
    font-weight: bold;
}

.pricing-footer {
    text-align: center;
    margin-top: 40px;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* PRICING DETAILS */
.details-wrapper {
    padding-bottom: 40px;
}

.detail-section {
    border-top: none;
    padding: 60px 0 40px;
    /* Compress spacing */
    position: relative;
}

.detail-section::before {
    content: "";
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 120px;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--border-color), transparent);
}


.detail-card {
    position: relative;
    padding-top: 50px;
}

.price-tag {
    position: absolute;
    top: 20px;
    right: 20px;
    font-weight: 700;
    font-size: 1.2rem;
    color: var(--accent-color);
}

.detail-card ul {
    margin-top: 15px;
}

.detail-card ul li {
    margin-bottom: 8px;
    font-size: 0.9rem;
    color: var(--text-secondary);
    list-style-type: disc;
    margin-left: 20px;
}

.detail-note {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-top: 10px;
}

.center-btn {
    text-align: center;
    margin-top: 40px;
}

/* PORTFOLIO */
.portfolio-grid {
    row-gap: 40px;
}

.portfolio-card {
    padding: 0;
    overflow: hidden;
    border: none;
    box-shadow: none;
    background: transparent;
}

.portfolio-card:hover {
    transform: translateY(-5px);
    box-shadow: none;
}

.portfolio-thumb {
    width: 100%;
    aspect-ratio: 4/3;
    border-radius: 16px;
    margin-bottom: 15px;
    transition: transform 0.4s ease;
}

.portfolio-card:hover .portfolio-thumb {
    transform: scale(1.02);
}

.portfolio-info h4 {
    font-size: 1.1rem;
    margin-bottom: 5px;
}

.portfolio-info .category {
    font-size: 0.85rem;
    color: var(--text-light);
}

/* Gradient Placeholders for Portfolio */
.gradient-1 {
    background: linear-gradient(135deg, #f6d365 0%, #fda085 100%);
}

.gradient-2 {
    background: linear-gradient(135deg, #84fab0 0%, #8fd3f4 100%);
}

.gradient-3 {
    background: linear-gradient(135deg, #a18cd1 0%, #fbc2eb 100%);
}

/* TECH STACK */
.tech-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
    margin-top: 40px;
}

.tech-item {
    text-align: center;
    width: 100px;
}

.tech-icon {
    width: 60px;
    height: 60px;
    background: var(--card-bg);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 10px;
    font-weight: bold;
    font-size: 0.8rem;
    box-shadow: var(--card-shadow);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
}

/* CTA SECTION */
.cta-section {
    background: var(--accent-gradient);
    color: white;
    position: relative;
    overflow: hidden;
    text-align: center;
}

.cta-bg-particles {
    position: absolute;
    inset: 0;
    background-image: radial-gradient(rgba(255, 255, 255, 0.2) 1px, transparent 1px);
    background-size: 30px 30px;
    opacity: 0.3;
}

.cta-title {
    color: white;
    margin-bottom: 1rem;
}

.cta-subtitle {
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 30px;
}

.cta-subtitle .cn-text {
    color: rgba(255, 255, 255, 0.7);
}

.cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
}

.cta-buttons .btn-primary {
    background: white;
    color: var(--accent-color);
}

.cta-buttons .btn-secondary {
    border-color: rgba(255, 255, 255, 0.5);
    color: white;
}

.cta-buttons .btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: white;
}

/* CONTACT */
.contact-container {
    max-width: 800px;
}

.contact-card {
    margin-top: 40px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    font-size: 0.9rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    background: var(--bg-color);
    color: var(--text-primary);
    font-family: var(--font-main);
    font-size: 1rem;
    transition: border-color 0.2s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.full-width {
    width: 100%;
}

/* FOOTER */
.footer {
    padding: 60px 0 30px;
    border-top: 1px solid var(--border-color);
    background: var(--bg-color);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 40px;
}

.footer-brand h4 {
    margin-bottom: 10px;
}

.mission {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.badge-ai {
    display: inline-block;
    padding: 4px 12px;
    background: rgba(99, 102, 241, 0.1);
    border: 1px solid rgba(99, 102, 241, 0.2);
    border-radius: 20px;
    font-size: 0.75rem;
    margin-top: 15px;
    color: var(--accent-color);
    font-weight: 600;
}

.footer-links {
    display: flex;
    gap: 30px;
}

.footer-links a {
    color: var(--text-secondary);
    font-weight: 500;
}

.footer-links a:hover {
    color: var(--accent-color);
}

.footer-bottom {
    text-align: center;
    color: var(--text-light);
    font-size: 0.85rem;
    padding-top: 30px;
    border-top: 1px solid var(--border-color);
}

.footer-bottom a {
    text-decoration: underline;
}

/* ANIMATIONS */
.reveal {
    opacity: 0;
    transition: all 0.8s ease;
}

.fade-up {
    transform: translateY(30px);
}

.slide-up {
    transform: translateY(20px);
}

.zoom-in {
    transform: scale(0.95);
}

.reveal.in-view {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.delay-1 {
    transition-delay: 0.1s;
}

.delay-2 {
    transition-delay: 0.2s;
}

.delay-3 {
    transition-delay: 0.3s;
}

@keyframes particle-flow {
    0% {
        background-position: 0 0;
    }

    100% {
        background-position: 40px 40px;
    }
}

@keyframes mesh-pulse {

    0%,
    100% {
        opacity: 0.6;
        transform: scale(1);
    }

    50% {
        opacity: 0.8;
        transform: scale(1.1);
    }
}

/* PORTFOLIO DETAILS */
.project-hero {
    padding: 120px 0 60px;
    background: var(--bg-secondary);
    text-align: center;
}

.project-meta {
    color: var(--text-secondary);
    margin-top: 10px;
    font-size: 1.1rem;
}

.project-content {
    max-width: 800px;
    margin: 0 auto;
}

.project-intro {
    font-size: 1.2rem;
    margin-bottom: 60px;
    line-height: 1.8;
}

.project-grid-info {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-bottom: 60px;
}

.info-block h3 {
    font-size: 1.2rem;
    margin-bottom: 10px;
}

.info-block p {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.project-showcase {
    display: grid;
    gap: 30px;
    margin-bottom: 60px;
}

.showcase-img {
    width: 100%;
    aspect-ratio: 16/9;
    border-radius: 12px;
    background-color: var(--border-color);
}

.project-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid var(--border-color);
    padding-top: 40px;
}

/* RESPONSIVE */
@media (max-width: 900px) {
    .grid-3 {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    h1 {
        font-size: 2.5rem;
    }

    h2 {
        font-size: 2rem;
    }

    .desktop-nav {
        display: none;
    }

    #mobile-menu-btn {
        display: block;
    }

    .hero-container {
        flex-direction: column;
        text-align: center;
        padding-top: 20px;
    }

    .hero-content {
        text-align: center;
    }

    .hero-buttons {
        justify-content: center;
    }

    .hero-visual {
        margin-top: 40px;
        transform: scale(0.8);
    }

    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-content {
        flex-direction: column;
        gap: 30px;
        text-align: center;
        align-items: center;
    }

    .footer-links {
        flex-direction: column;
        gap: 15px;
    }

    .cta-buttons {
        flex-direction: column;
    }

    .project-grid-info {
        grid-template-columns: 1fr;
    }
}

/* ABOUT SECTION */
.about-content {
    max-width: 900px;
    margin: 0 auto;
}

.about-text {
    text-align: center;
}

.about-en {
    font-size: 1.15rem;
    line-height: 1.8;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.about-cn {
    font-size: 1rem;
    line-height: 1.8;
    color: var(--text-secondary);
}

/* PROCESS SECTION */
.process-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 40px;
}

.process-card {
    background: var(--card-bg);
    border-radius: 16px;
    padding: 30px 20px;
    text-align: center;
    border: var(--card-border);
    box-shadow: var(--card-shadow);
    transition: all 0.3s ease;
    position: relative;
    backdrop-filter: blur(10px);
}

.process-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--card-hover-shadow);
    border-color: var(--accent-color);
}

.process-number {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 30px;
    height: 30px;
    background: var(--accent-gradient);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.9rem;
}

.process-icon {
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.process-card h4 {
    margin-bottom: 5px;
    font-size: 1.1rem;
}

/* TESTIMONIALS SECTION */
.testimonials-grid {
    margin-top: 40px;
}

.testimonial-card {
    padding: 35px;
    text-align: center;
    position: relative;
}

.testimonial-card:hover {
    transform: translateY(-8px);
}

.testimonial-text {
    font-size: 1.05rem;
    line-height: 1.7;
    color: var(--text-primary);
    font-style: italic;
    margin-bottom: 10px;
}

.testimonial-text-cn {
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--text-secondary);
    font-style: italic;
    margin-bottom: 20px;
}

.testimonial-author {
    font-weight: 600;
    color: var(--accent-color);
    font-size: 0.95rem;
}

/* FAQ SECTION */
.faq-container {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
    margin-top: 40px;
}

.faq-item {
    padding: 30px;
}

.faq-item h4 {
    margin-bottom: 12px;
    font-size: 1.1rem;
}

.faq-item p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 8px;
}

/* ENHANCED CTA BUTTONS */
.btn-primary {
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.25);
}

.btn-primary:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 8px 20px rgba(99, 102, 241, 0.4);
}

body.dark-mode .btn-primary:hover {
    box-shadow: 0 8px 20px rgba(56, 189, 248, 0.4);
}

.glow-effect:hover {
    box-shadow: 0 0 25px var(--glow-color), 0 8px 20px rgba(99, 102, 241, 0.4);
}

.glow-border {
    position: relative;
}

.glow-border:hover {
    box-shadow: 0 0 20px var(--glow-color);
}

/* ENHANCED PORTFOLIO HOVER */
.portfolio-thumb {
    position: relative;
    overflow: hidden;
}

.portfolio-thumb::after {
    content: 'View Project / 查看项目';
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 1.1rem;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.portfolio-card:hover .portfolio-thumb::after {
    opacity: 1;
}

.portfolio-card:hover .portfolio-thumb {
    transform: scale(1.05);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
}

/* FORM LOADING STATE */
.btn-loading {
    display: none;
}

#submit-btn.loading .btn-text {
    display: none;
}

#submit-btn.loading .btn-loading {
    display: inline-flex;
}

#submit-btn.loading {
    opacity: 0.7;
    cursor: not-allowed;
}

/* RESPONSIVE ENHANCEMENTS */
@media (max-width: 900px) {
    .faq-container {
        grid-template-columns: 1fr;
    }

    .process-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .process-grid {
        grid-template-columns: 1fr;
    }
}

/* =========================================
   NEW AI / TECH SECTIONS
   ========================================= */

/* Adjust spacing between specific sections for tighter flow */
#process {
    margin-bottom: -20px;
}

#pricing {
    padding-top: 40px;
}

/* FAQ 2-Column Grid on Desktop */
.faq-container {
    display: grid;
    gap: 20px;
}

@media (min-width: 1024px) {
    .faq-container {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }

    /* FAQ Decorative Elements */
    #faq .container {
        position: relative;
    }

    #faq .container::before,
    #faq .container::after {
        content: "";
        position: absolute;
        top: 0;
        width: 150px;
        height: 150px;
        background: radial-gradient(circle, var(--accent-light, rgba(99, 102, 241, 0.03)) 0%, transparent 70%);
        border-radius: 50%;
        z-index: 0;
        pointer-events: none;
    }

    #faq .container::before {
        left: -80px;
        top: 50px;
    }

    #faq .container::after {
        right: -80px;
        bottom: 50px;
    }
}

/* Texture for Portfolio & Contact */
#portfolio,
#contact {
    position: relative;
}

#portfolio::before,
#contact::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%239C92AC' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    pointer-events: none;
    z-index: 0;
}

/* Tighter Process Grid & Tech Stack */
@media (min-width: 1024px) {
    .process-grid {
        max-width: 1000px;
        margin: 0 auto;
        column-gap: 40px;
    }

    .tech-grid {
        max-width: 900px;
        margin: 40px auto 0;
        gap: 40px;
    }

    .tech-item {
        width: auto;
        min-width: 100px;
    }
}

.section-ai-tech {
    background: #020617;
    background:
        radial-gradient(circle at top left, rgba(124, 58, 237, 0.35), transparent 55%),
        radial-gradient(circle at bottom right, rgba(34, 211, 238, 0.3), transparent 55%),
        #020617;
    position: relative;
    overflow: hidden;
    padding: 100px 0;
    color: #fff;
}

/* Ensure text visibility on dark background */
.section-ai-tech h2,
.section-ai-tech h3,
.section-ai-tech h4 {
    color: #ffffff;
}

.section-ai-tech p {
    color: rgba(255, 255, 255, 0.85);
}

.section-ai-tech .cn-block,
.section-ai-tech .cn-text,
.section-ai-tech .cn-text-sm {
    color: rgba(255, 255, 255, 0.6);
}

.section-title-underline {
    height: 2px;
    width: 72px;
    border-radius: 999px;
    background: linear-gradient(90deg,
            rgba(124, 58, 237, 0.85),
            rgba(34, 211, 238, 0.85));
    margin: 20px auto 50px;
}

/* Glass Cards for AI Section */
.card-ai {
    background: rgba(15, 23, 42, 0.72);
    border: 1px solid rgba(148, 163, 184, 0.35);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    /* Safari support */
    border-radius: 16px;
    padding: 30px;
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.card-ai:hover {
    box-shadow: 0 0 24px rgba(34, 211, 238, 0.45);
    border-color: rgba(34, 211, 238, 0.8);
    transform: translateY(-2px);
}

.card-ai-header {
    display: flex;
    align-items: flex-start;
    margin-bottom: 15px;
    gap: 15px;
}

.ai-icon-dot {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--accent-cyan);
    box-shadow: 0 0 10px var(--accent-cyan);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: #0f172a;
    /* Dark icon on bright bg */
    margin-top: 4px;
    /* Align with text */
}

.card-ai-title {
    flex: 1;
}

.card-ai h4 {
    margin-bottom: 4px;
    font-size: 1.2rem;
}

.card-ai p {
    font-size: 0.95rem;
    line-height: 1.6;
}

/* Intro Text specifically for these sections */
.ai-intro-text {
    max-width: 800px;
    margin: 0 auto 50px;
    text-align: center;
}

.ai-intro-text p {
    font-size: 1.1rem;
    margin-bottom: 15px;
}