/* Website 182 - Magnetic Snap Cards Layout - Deep Blue Theme */
:root {
    --primary-color: #1d4ed8;
    --primary-dark: #1e40af;
    --primary-light: #60a5fa;
    --accent-color: #10b981;
    --accent-light: #34d399;
    --background: #0f172a;
    --surface: #1e293b;
    --surface-light: #334155;
    --text-primary: #ffffff;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;
}

* {
    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;
}

/* Magnetic Background */
.magnetic-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background:
        radial-gradient(ellipse at 15% 50%, rgba(29, 78, 216, 0.12) 0%, transparent 50%),
        radial-gradient(ellipse at 85% 30%, rgba(16, 185, 129, 0.08) 0%, transparent 50%),
        radial-gradient(ellipse at 50% 80%, rgba(29, 78, 216, 0.06) 0%, transparent 60%);
}

/* Grid Background */
.magnetic-bg::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image:
        linear-gradient(rgba(29, 78, 216, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(29, 78, 216, 0.03) 1px, transparent 1px);
    background-size: 50px 50px;
}

/* Navigation Bar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(15, 23, 42, 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(29, 78, 216, 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: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

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

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

.nav-links a:hover {
    color: var(--text-primary);
    background: rgba(29, 78, 216, 0.2);
}

.nav-links a.active {
    color: var(--primary-light);
    background: rgba(29, 78, 216, 0.15);
}

/* 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 - Magnetic Card Display */
.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 100px 5% 50px;
    position: relative;
}

.hero-content {
    text-align: center;
    max-width: 900px;
    margin-bottom: 60px;
}

.hero-title {
    font-size: 3.2rem;
    font-weight: 800;
    margin-bottom: 20px;
    background: linear-gradient(135deg, #60a5fa, #34d399, #60a5fa);
    background-size: 200% 200%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: shimmer 3s ease infinite;
}

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

.hero-subtitle {
    font-size: 1.2rem;
    color: var(--text-secondary);
    max-width: 700px;
    margin: 0 auto;
}

/* Magnetic Card Container */
.magnetic-container {
    position: relative;
    width: 100%;
    max-width: 1000px;
    height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    perspective: 1000px;
}

.magnetic-card {
    position: absolute;
    width: 200px;
    background: linear-gradient(135deg, var(--surface), var(--surface-light));
    border: 1px solid rgba(29, 78, 216, 0.2);
    border-radius: 16px;
    padding: 25px;
    cursor: pointer;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.3s ease;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.magnetic-card:hover {
    box-shadow: 0 20px 50px rgba(29, 78, 216, 0.25);
}

.magnetic-card .icon {
    font-size: 2.5rem;
    margin-bottom: 15px;
    display: block;
}

.magnetic-card .title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.magnetic-card .desc {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

/* Card Positions - Magnetic Arrangement */
.magnetic-card:nth-child(1) { top: 10%; left: 15%; }
.magnetic-card:nth-child(2) { top: 5%; right: 20%; }
.magnetic-card:nth-child(3) { top: 40%; left: 5%; }
.magnetic-card:nth-child(4) { top: 35%; right: 8%; }
.magnetic-card:nth-child(5) { top: 70%; left: 15%; }
.magnetic-card:nth-child(6) { top: 65%; right: 18%; }
.magnetic-card:nth-child(7) { bottom: 5%; left: 40%; }
.magnetic-card:nth-child(8) { top: 45%; left: 42%; }

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

.btn {
    padding: 14px 32px;
    border-radius: 12px;
    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 8px 25px rgba(29, 78, 216, 0.3);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(29, 78, 216, 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.3rem;
    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;
}

/* Cards Grid */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
    max-width: 1200px;
    margin: 0 auto;
}

.card {
    background: linear-gradient(135deg, var(--surface), var(--surface-light));
    border: 1px solid rgba(29, 78, 216, 0.15);
    border-radius: 16px;
    padding: 30px;
    transition: all 0.4s ease;
}

.card:hover {
    transform: translateY(-8px);
    border-color: var(--primary-color);
    box-shadow: 0 15px 45px rgba(29, 78, 216, 0.15);
}

.card-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    margin-bottom: 20px;
}

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

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

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

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

.stat-item {
    padding: 20px;
}

.stat-number {
    font-size: 2.8rem;
    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: 0.95rem;
    color: var(--text-secondary);
    margin-top: 8px;
}

/* Timeline */
.timeline {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    padding-left: 40px;
}

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

.timeline-item {
    position: relative;
    padding: 20px 0 30px 30px;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -32px;
    top: 28px;
    width: 14px;
    height: 14px;
    background: var(--primary-color);
    border-radius: 50%;
    border: 3px solid var(--background);
}

.timeline-item h3 {
    font-size: 1.2rem;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.timeline-item p {
    color: var(--text-secondary);
}

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

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 20px 25px;
    background: linear-gradient(135deg, var(--surface), var(--surface-light));
    border: 1px solid rgba(29, 78, 216, 0.15);
    border-radius: 12px;
    transition: all 0.3s ease;
}

.contact-item:hover {
    border-color: var(--primary-color);
    transform: translateX(10px);
}

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

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

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

/* Footer */
.footer {
    background: var(--surface);
    padding: 50px 5% 30px;
    border-top: 1px solid rgba(29, 78, 216, 0.15);
}

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

.footer-section h4 {
    font-size: 1.1rem;
    margin-bottom: 18px;
    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: 25px;
    border-top: 1px solid rgba(29, 78, 216, 0.1);
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-links {
        position: fixed;
        top: 70px;
        left: 0;
        right: 0;
        background: rgba(15, 23, 42, 0.98);
        flex-direction: column;
        padding: 20px;
        gap: 8px;
        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;
    }

    .magnetic-container {
        height: auto;
        flex-direction: column;
        gap: 15px;
        padding: 20px 0;
    }

    .magnetic-card {
        position: relative !important;
        width: 100%;
        max-width: 320px;
        top: auto !important;
        left: auto !important;
        right: auto !important;
        bottom: auto !important;
    }

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

    .cards-grid {
        grid-template-columns: 1fr;
    }

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

    .btn {
        width: 100%;
        max-width: 280px;
        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.3rem;
    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.05rem;
    color: var(--text-secondary);
    max-width: 650px;
    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(29, 78, 216, 0.15);
    border-radius: 20px;
    padding: 45px;
    max-width: 900px;
    margin: 0 auto;
}

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

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

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

.service-feature {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 14px;
    background: rgba(29, 78, 216, 0.08);
    border-radius: 10px;
}

.service-feature-icon {
    font-size: 1.4rem;
    flex-shrink: 0;
}

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

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

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

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