/* Website 181 - Spiral Matrix Layout - Deep Purple Theme */
:root {
    --primary-color: #7c3aed;
    --primary-dark: #5b21b6;
    --primary-light: #a78bfa;
    --accent-color: #06b6d4;
    --accent-light: #22d3ee;
    --background: #0f0a1a;
    --surface: #1a1025;
    --surface-light: #2d1f3d;
    --text-primary: #ffffff;
    --text-secondary: #c4b5fd;
    --text-muted: #a78bfa;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', 'Microsoft YaHei', sans-serif;
    background: var(--background);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Spiral Background Animation */
.spiral-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background:
        radial-gradient(ellipse at 20% 20%, rgba(124, 58, 237, 0.15) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 80%, rgba(6, 182, 212, 0.1) 0%, transparent 50%),
        radial-gradient(ellipse at 50% 50%, rgba(124, 58, 237, 0.05) 0%, transparent 70%);
    overflow: hidden;
}

.spiral-bg::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 200vmax;
    height: 200vmax;
    transform: translate(-50%, -50%);
    background: conic-gradient(
        from 0deg,
        transparent 0deg,
        rgba(124, 58, 237, 0.03) 30deg,
        transparent 60deg,
        rgba(6, 182, 212, 0.03) 90deg,
        transparent 120deg,
        rgba(124, 58, 237, 0.03) 150deg,
        transparent 180deg,
        rgba(6, 182, 212, 0.03) 210deg,
        transparent 240deg,
        rgba(124, 58, 237, 0.03) 270deg,
        transparent 300deg,
        rgba(6, 182, 212, 0.03) 330deg,
        transparent 360deg
    );
    animation: spiralRotate 60s linear infinite;
}

@keyframes spiralRotate {
    from { transform: translate(-50%, -50%) rotate(0deg); }
    to { transform: translate(-50%, -50%) rotate(360deg); }
}

/* Navigation Bar - Spiral Shape */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(15, 10, 26, 0.95);
    backdrop-filter: blur(20px);
    padding: 0 5%;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid rgba(124, 58, 237, 0.2);
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-light);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 5px;
}

.nav-links a {
    color: var(--text-secondary);
    text-decoration: none;
    padding: 10px 18px;
    border-radius: 25px;
    font-size: 0.95rem;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.nav-links a::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: var(--primary-color);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.4s ease, height 0.4s ease;
    z-index: -1;
}

.nav-links a:hover::before {
    width: 200%;
    height: 200%;
}

.nav-links a:hover {
    color: var(--text-primary);
}

/* Mobile Menu Button */
.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 10px;
    z-index: 1001;
}

.mobile-menu-btn span {
    width: 25px;
    height: 3px;
    background: var(--primary-light);
    border-radius: 3px;
    transition: all 0.3s ease;
}

/* Hero Section - Spiral Card Display */
.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 100px 5% 50px;
    position: relative;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    text-align: center;
    margin-bottom: 20px;
    background: linear-gradient(135deg, var(--primary-light), var(--accent-light), var(--primary-light));
    background-size: 200% 200%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradientFlow 4s ease infinite;
}

@keyframes gradientFlow {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.hero-subtitle {
    font-size: 1.3rem;
    color: var(--text-secondary);
    text-align: center;
    max-width: 800px;
    margin-bottom: 50px;
}

/* Spiral Card Container */
.spiral-container {
    position: relative;
    width: 500px;
    height: 500px;
    perspective: 1000px;
}

.spiral-card {
    position: absolute;
    width: 140px;
    height: 100px;
    background: linear-gradient(135deg, var(--surface), var(--surface-light));
    border: 1px solid rgba(124, 58, 237, 0.3);
    border-radius: 15px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 15px;
    cursor: pointer;
    transition: all 0.5s ease;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.spiral-card:hover {
    transform: scale(1.15) !important;
    border-color: var(--primary-color);
    box-shadow: 0 20px 50px rgba(124, 58, 237, 0.3);
    z-index: 100 !important;
}

.spiral-card .icon {
    font-size: 2rem;
    margin-bottom: 8px;
}

.spiral-card .title {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-primary);
    text-align: center;
}

/* Set spiral positions for 8 cards */
.spiral-card:nth-child(1) { top: 0; left: 50%; transform: translateX(-50%); animation: spiralFloat1 8s ease-in-out infinite; }
.spiral-card:nth-child(2) { top: 15%; right: 5%; animation: spiralFloat2 8s ease-in-out infinite; }
.spiral-card:nth-child(3) { top: 50%; right: 0; animation: spiralFloat3 8s ease-in-out infinite; }
.spiral-card:nth-child(4) { bottom: 15%; right: 10%; animation: spiralFloat4 8s ease-in-out infinite; }
.spiral-card:nth-child(5) { bottom: 0; left: 50%; transform: translateX(-50%); animation: spiralFloat5 8s ease-in-out infinite; }
.spiral-card:nth-child(6) { bottom: 15%; left: 10%; animation: spiralFloat6 8s ease-in-out infinite; }
.spiral-card:nth-child(7) { top: 50%; left: 0; animation: spiralFloat7 8s ease-in-out infinite; }
.spiral-card:nth-child(8) { top: 15%; left: 8%; animation: spiralFloat8 8s ease-in-out infinite; }

@keyframes spiralFloat1 {
    0%, 100% { transform: translateX(-50%) translateY(0) rotate(0deg); }
    50% { transform: translateX(-50%) translateY(-15px) rotate(3deg); }
}
@keyframes spiralFloat2 {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-10px) rotate(-3deg); }
}
@keyframes spiralFloat3 {
    0%, 100% { transform: translateX(0) rotate(0deg); }
    50% { transform: translateX(10px) rotate(3deg); }
}
@keyframes spiralFloat4 {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-12px) rotate(-3deg); }
}
@keyframes spiralFloat5 {
    0%, 100% { transform: translateX(-50%) translateY(0) rotate(0deg); }
    50% { transform: translateX(-50%) translateY(-18px) rotate(3deg); }
}
@keyframes spiralFloat6 {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-10px) rotate(-3deg); }
}
@keyframes spiralFloat7 {
    0%, 100% { transform: translateX(0) rotate(0deg); }
    50% { transform: translateX(-10px) rotate(3deg); }
}
@keyframes spiralFloat8 {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-15px) rotate(-3deg); }
}

/* CTA Buttons */
.cta-buttons {
    display: flex;
    gap: 20px;
    margin-top: 40px;
    flex-wrap: wrap;
    justify-content: center;
}

.btn {
    padding: 15px 35px;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    color: white;
    box-shadow: 0 10px 30px rgba(124, 58, 237, 0.3);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(124, 58, 237, 0.4);
}

.btn-secondary {
    background: transparent;
    color: var(--primary-light);
    border: 2px solid var(--primary-color);
}

.btn-secondary:hover {
    background: var(--primary-color);
    color: white;
}

/* Content Section */
.section {
    padding: 80px 5%;
    position: relative;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 50px;
    color: var(--text-primary);
}

.section-title span {
    background: linear-gradient(135deg, var(--primary-light), var(--accent-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Features Grid - Spiral Matrix Style */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.feature-card {
    background: linear-gradient(135deg, var(--surface), var(--surface-light));
    border: 1px solid rgba(124, 58, 237, 0.2);
    border-radius: 20px;
    padding: 35px;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
    transform: scaleX(0);
    transition: transform 0.4s ease;
}

.feature-card:hover::before {
    transform: scaleX(1);
}

.feature-card:hover {
    transform: translateY(-10px);
    border-color: var(--primary-color);
    box-shadow: 0 20px 50px rgba(124, 58, 237, 0.2);
}

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

.feature-card h3 {
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: 15px;
    color: var(--text-primary);
}

.feature-card p {
    color: var(--text-secondary);
    line-height: 1.7;
}

/* Stats Section */
.stats-section {
    background: linear-gradient(135deg, var(--surface), var(--surface-light));
    padding: 60px 5%;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    max-width: 1000px;
    margin: 0 auto;
    text-align: center;
}

.stat-item {
    padding: 20px;
}

.stat-number {
    font-size: 3rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--primary-light), var(--accent-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-label {
    font-size: 1rem;
    color: var(--text-secondary);
    margin-top: 10px;
}

/* Process Steps - Spiral Timeline */
.process-timeline {
    max-width: 900px;
    margin: 0 auto;
    position: relative;
}

.process-timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 4px;
    background: linear-gradient(180deg, var(--primary-color), var(--accent-color));
    transform: translateX(-50%);
    border-radius: 2px;
}

.process-step {
    display: flex;
    align-items: center;
    margin-bottom: 40px;
    position: relative;
}

.process-step:nth-child(odd) {
    flex-direction: row-reverse;
}

.process-step:nth-child(odd) .step-content {
    text-align: right;
}

.step-number {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1;
    box-shadow: 0 0 30px rgba(124, 58, 237, 0.4);
}

.step-content {
    width: calc(50% - 50px);
    background: linear-gradient(135deg, var(--surface), var(--surface-light));
    border: 1px solid rgba(124, 58, 237, 0.2);
    border-radius: 15px;
    padding: 25px;
}

.step-content h3 {
    font-size: 1.3rem;
    margin-bottom: 10px;
    color: var(--text-primary);
}

.step-content p {
    color: var(--text-secondary);
}

/* Product Showcase - Carousel */
.product-showcase {
    max-width: 1200px;
    margin: 0 auto;
    overflow: hidden;
}

.product-carousel {
    display: flex;
    gap: 30px;
    animation: carouselScroll 30s linear infinite;
}

@keyframes carouselScroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

.product-card {
    flex-shrink: 0;
    width: 280px;
    background: linear-gradient(135deg, var(--surface), var(--surface-light));
    border: 1px solid rgba(124, 58, 237, 0.2);
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.4s ease;
}

.product-card:hover {
    transform: scale(1.05);
    border-color: var(--primary-color);
}

.product-image {
    height: 180px;
    background: linear-gradient(135deg, var(--primary-dark), var(--primary-color));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
}

.product-info {
    padding: 20px;
}

.product-info h3 {
    font-size: 1.2rem;
    margin-bottom: 10px;
    color: var(--text-primary);
}

.product-info p {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* Contact Section */
.contact-section {
    max-width: 600px;
    margin: 0 auto;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 25px;
    margin-bottom: 40px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 20px;
    background: linear-gradient(135deg, var(--surface), var(--surface-light));
    border: 1px solid rgba(124, 58, 237, 0.2);
    border-radius: 15px;
}

.contact-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.contact-details h4 {
    font-size: 1rem;
    color: var(--text-muted);
    margin-bottom: 5px;
}

.contact-details p {
    font-size: 1.1rem;
    color: var(--text-primary);
}

/* Footer */
.footer {
    background: var(--surface);
    padding: 50px 5% 30px;
    border-top: 1px solid rgba(124, 58, 237, 0.2);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto 30px;
}

.footer-section h4 {
    font-size: 1.2rem;
    margin-bottom: 20px;
    color: var(--primary-light);
}

.footer-section p,
.footer-section a {
    color: var(--text-secondary);
    text-decoration: none;
    display: block;
    margin-bottom: 10px;
    transition: color 0.3s ease;
}

.footer-section a:hover {
    color: var(--primary-light);
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(124, 58, 237, 0.1);
    color: var(--text-muted);
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-links {
        position: fixed;
        top: 70px;
        left: 0;
        right: 0;
        background: rgba(15, 10, 26, 0.98);
        flex-direction: column;
        padding: 20px;
        gap: 10px;
        transform: translateY(-100%);
        opacity: 0;
        transition: all 0.3s ease;
        pointer-events: none;
    }

    .nav-links.active {
        transform: translateY(0);
        opacity: 1;
        pointer-events: all;
    }

    .mobile-menu-btn {
        display: flex;
    }

    .mobile-menu-btn.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }

    .mobile-menu-btn.active span:nth-child(2) {
        opacity: 0;
    }

    .mobile-menu-btn.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -6px);
    }

    .hero-title {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .spiral-container {
        width: 320px;
        height: 320px;
    }

    .spiral-card {
        width: 80px;
        height: 60px;
        padding: 8px;
    }

    .spiral-card .icon {
        font-size: 1.2rem;
        margin-bottom: 4px;
    }

    .spiral-card .title {
        font-size: 0.6rem;
    }

    .section-title {
        font-size: 1.8rem;
    }

    .process-timeline::before {
        left: 20px;
    }

    .process-step,
    .process-step:nth-child(odd) {
        flex-direction: column;
        align-items: flex-start;
        padding-left: 50px;
    }

    .process-step:nth-child(odd) .step-content {
        text-align: left;
    }

    .step-number {
        left: 20px;
    }

    .step-content {
        width: 100%;
    }

    .stat-number {
        font-size: 2rem;
    }

    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }

    .btn {
        width: 100%;
        max-width: 300px;
        text-align: center;
    }
}

/* Page Header Styles */
.page-header {
    padding: 120px 5% 60px;
    text-align: center;
    background: linear-gradient(135deg, var(--surface), var(--background));
}

.page-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 15px;
    background: linear-gradient(135deg, var(--primary-light), var(--accent-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.page-subtitle {
    font-size: 1.1rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
}

/* Service Detail Page */
.service-detail {
    padding: 60px 5%;
}

.service-detail-card {
    background: linear-gradient(135deg, var(--surface), var(--surface-light));
    border: 1px solid rgba(124, 58, 237, 0.2);
    border-radius: 25px;
    padding: 50px;
    max-width: 900px;
    margin: 0 auto;
}

.service-detail-card h2 {
    font-size: 1.8rem;
    margin-bottom: 25px;
    color: var(--text-primary);
}

.service-detail-card p {
    color: var(--text-secondary);
    margin-bottom: 20px;
    line-height: 1.8;
}

.service-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.service-feature {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    padding: 15px;
    background: rgba(124, 58, 237, 0.1);
    border-radius: 10px;
}

.service-feature-icon {
    font-size: 1.5rem;
}

.service-feature-text h4 {
    font-size: 1rem;
    color: var(--text-primary);
    margin-bottom: 5px;
}

.service-feature-text p {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin: 0;
}

/* Animation Effects */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

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