/*
============================================
-- Kunming Yiyichun Network Technology Co., Ltd --
-- Website Stylesheet --
============================================
*/

/* 1. GLOBAL STYLES & CSS VARIABLES
-------------------------------------------- */
:root {
    --primary-color: #00aaff; /* A vibrant blue for key elements */
    --primary-hover: #0088cc;
    --secondary-color: #0a192f; /* Dark navy blue for background */
    --light-navy: #112240;
    --lightest-navy: #233554;
    --slate: #8892b0;
    --light-slate: #a8b2d1;
    --lightest-slate: #ccd6f6;
    --white: #e6f1ff;
    --green: #64ffda;

    --font-sans: 'Inter', sans-serif;
    --font-mono: 'SF Mono', 'Fira Code', 'Fira Mono', 'Roboto Mono', monospace;

    --fz-xxl: 2.5rem;
    --fz-xl: 2rem;
    --fz-lg: 1.5rem;
    --fz-md: 1.25rem;
    --fz-sm: 1rem;
    --fz-xs: 0.875rem;

    --border-radius: 4px;
    --nav-height: 100px;
    --nav-scroll-height: 70px;
    --tab-height: 42px;
    --tab-width: 120px;

    --easing: cubic-bezier(0.645, 0.045, 0.355, 1);
    --transition: all 0.25s cubic-bezier(0.645, 0.045, 0.355, 1);
}

*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-sans);
    background-color: var(--secondary-color);
    color: var(--slate);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--primary-hover);
}

ul {
    list-style: none;
}

img, svg {
    max-width: 100%;
    height: auto;
}

/* 2. TYPOGRAPHY
-------------------------------------------- */
h1, h2, h3, h4 {
    color: var(--lightest-slate);
    font-weight: 700;
    margin-bottom: 1rem;
}

h1 { font-size: var(--fz-xxl); }
h2 { font-size: var(--fz-xl); }
h3 { font-size: var(--fz-lg); }
h4 { font-size: var(--fz-md); }

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-tag {
    display: block;
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.section-title {
    font-size: var(--fz-xl);
}

.section-subtitle {
    font-size: var(--fz-md);
    max-width: 600px;
    margin: 0 auto;
}

/* 3. NAVIGATION BAR
-------------------------------------------- */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background-color: rgba(10, 25, 47, 0.85);
    backdrop-filter: blur(10px);
    transition: var(--transition);
    height: var(--nav-height);
}

.navbar.scrolled {
    height: var(--nav-scroll-height);
    box-shadow: 0 10px 30px -10px rgba(2, 12, 27, 0.7);
}

.nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.logo-icon {
    font-size: 2rem;
    color: var(--primary-color);
}

.logo-text {
    display: flex;
    flex-direction: column;
}

.logo-main {
    font-weight: 800;
    color: var(--lightest-slate);
    font-size: 1.5rem;
}

.logo-sub {
    font-size: var(--fz-xs);
    color: var(--slate);
    margin-top: -5px;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-link {
    color: var(--light-slate);
    font-weight: 500;
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--primary-color);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.3s var(--easing);
}

.nav-link:hover::after, .nav-link.active::after {
    transform: scaleX(1);
    transform-origin: left;
}

.lang-toggle {
    background: none;
    border: 1px solid var(--primary-color);
    color: var(--primary-color);
    padding: 0.5rem 1rem;
    border-radius: var(--border-radius);
    cursor: pointer;
    font-family: var(--font-mono);
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.lang-toggle:hover {
    background-color: rgba(0, 170, 255, 0.1);
}

.mobile-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    background: none;
    border: none;
}

.mobile-toggle span {
    width: 25px;
    height: 2px;
    background-color: var(--primary-color);
    transition: var(--transition);
}

/* 4. HERO SECTION
-------------------------------------------- */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: var(--nav-height);
    position: relative;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.hero-content {
    max-width: 800px;
    text-align: left;
}

.hero-badge {
    background-color: rgba(0, 170, 255, 0.1);
    color: var(--primary-color);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    display: inline-block;
    margin-bottom: 1.5rem;
    font-weight: 500;
}

.hero-title {
    font-size: 4rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1.5rem;
}

.hero-title span {
    display: block;
}

.gradient-text {
    background: linear-gradient(90deg, var(--primary-color), var(--green));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-description {
    font-size: var(--fz-md);
    max-width: 600px;
    margin-bottom: 2.5rem;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    margin-bottom: 3rem;
}

.hero-stats {
    display: flex;
    gap: 3rem;
    border-left: 2px solid var(--lightest-navy);
    padding-left: 2rem;
}

.stat-number {
    font-size: 2rem;
    font-weight: 700;
    color: var(--lightest-slate);
}

.stat-label {
    font-size: var(--fz-xs);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.scroll-down {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translate(-50%, 0); }
    40% { transform: translate(-50%, -10px); }
    60% { transform: translate(-50%, -5px); }
}

/* 5. BUTTONS & FORMS
-------------------------------------------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border-radius: var(--border-radius);
    font-weight: 600;
    transition: var(--transition);
    cursor: pointer;
    border: 2px solid transparent;
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--secondary-color);
    border-color: var(--primary-color);
}

.btn-primary:hover {
    background-color: var(--primary-hover);
    border-color: var(--primary-hover);
    color: var(--secondary-color);
    transform: translateY(-3px);
}

.btn-outline {
    background-color: transparent;
    color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-outline:hover {
    background-color: rgba(0, 170, 255, 0.1);
    transform: translateY(-3px);
}

.btn-large { padding: 1rem 2rem; }

/* Form Styles */
.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--light-slate);
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 0.75rem;
    background-color: var(--light-navy);
    border: 1px solid var(--lightest-navy);
    border-radius: var(--border-radius);
    color: var(--lightest-slate);
    transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(0, 170, 255, 0.2);
}

.form-row {
    display: flex;
    gap: 1rem;
}

.form-row .form-group {
    flex: 1;
}

/* 6. SECTIONS
-------------------------------------------- */
section {
    padding: 6rem 0;
}

/* Services Section */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.service-card {
    background-color: var(--light-navy);
    padding: 2rem;
    border-radius: var(--border-radius);
    border: 1px solid var(--lightest-navy);
    transition: var(--transition);
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px -15px rgba(2, 12, 27, 0.7);
}

.service-icon {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.service-title { margin-bottom: 1rem; }
.service-desc { margin-bottom: 1.5rem; }

.service-link {
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

/* Why Choose Us Section */
.why-section { background-color: var(--light-navy); }

.why-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.feature-list { display: flex; flex-direction: column; gap: 2rem; }

.feature-item {
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
}

.feature-icon {
    font-size: 1.5rem;
    color: var(--primary-color);
    background-color: rgba(0, 170, 255, 0.1);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

/* CTA Section */
.cta-section {
    background: linear-gradient(90deg, var(--primary-color), var(--green));
    color: var(--secondary-color);
    text-align: center;
}

.cta-section h2, .cta-section p {
    color: var(--secondary-color);
}

.cta-title { font-size: var(--fz-xl); }
.cta-text { margin-bottom: 2rem; }

/* 7. FOOTER
-------------------------------------------- */
.footer {
    background-color: #020c1b;
    padding: 4rem 0 2rem;
}

.footer-top {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 2fr;
    gap: 2rem;
    margin-bottom: 3rem;
}

.footer-heading { color: var(--lightest-slate); margin-bottom: 1rem; }

.footer-links li {
    margin-bottom: 0.5rem;
}

.footer-links a {
    color: var(--slate);
}

.footer-links a:hover {
    color: var(--primary-color);
}

.footer-contact li {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1rem;
}

.footer-contact i {
    color: var(--primary-color);
    margin-top: 5px;
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
}

.social-link {
    font-size: 1.5rem;
    color: var(--slate);
}

.social-link:hover { color: var(--primary-color); }

.footer-bottom {
    text-align: center;
    border-top: 1px solid var(--lightest-navy);
    padding-top: 2rem;
    font-size: var(--fz-xs);
}

/* 8. SUBPAGES (Services, About, Contact, Legal)
-------------------------------------------- */
.page-hero {
    padding: 10rem 0 5rem;
    text-align: center;
    background-color: var(--light-navy);
}

.page-title { font-size: 3rem; }
.page-subtitle { font-size: var(--fz-md); }

/* Services Detail */
.service-detail-card {
    background-color: var(--light-navy);
    padding: 2rem;
    border-radius: var(--border-radius);
    margin-bottom: 2rem;
    border: 1px solid var(--lightest-navy);
}

.service-detail-header {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.service-detail-icon { font-size: 3rem; color: var(--primary-color); }
.service-features-list {
    list-style: none;
    padding-left: 1.5rem;
}

.service-features-list li {
    position: relative;
    margin-bottom: 0.5rem;
}

.service-features-list li::before {
    content: '\f058';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    color: var(--primary-color);
    position: absolute;
    left: -1.5rem;
}

/* About Page */
.story-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 3rem;
    align-items: center;
}

.story-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.stat-box {
    background-color: var(--light-navy);
    padding: 1.5rem;
    text-align: center;
    border-radius: var(--border-radius);
}

.mission-vision { background-color: var(--light-navy); }

.mv-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.mv-card {
    padding: 2rem;
    border: 1px solid var(--lightest-navy);
    border-radius: var(--border-radius);
}

.mv-icon { font-size: 2rem; color: var(--primary-color); margin-bottom: 1rem; }

.values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.value-card {
    text-align: center;
    padding: 2rem;
    background-color: var(--light-navy);
    border-radius: var(--border-radius);
}

.value-icon { font-size: 2rem; color: var(--primary-color); margin-bottom: 1rem; }

/* Contact Page */
.contact-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 3rem;
}

.contact-form-wrapper { padding-right: 2rem; }

.contact-info-card {
    background-color: var(--light-navy);
    padding: 2rem;
    border-radius: var(--border-radius);
}

.contact-info-items { display: flex; flex-direction: column; gap: 1.5rem; }

.contact-info-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.contact-info-icon { font-size: 1.25rem; color: var(--primary-color); margin-top: 5px; }

.map-section { padding: 0; }

.map-placeholder {
    height: 400px;
    background-color: var(--light-navy);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: var(--light-slate);
}

.map-placeholder i { font-size: 4rem; margin-bottom: 1rem; }

/* Legal Pages */
.legal-document {
    background-color: var(--light-navy);
    padding: 3rem;
    border-radius: var(--border-radius);
}

.legal-section { margin-bottom: 2rem; }
.legal-section h2 { margin-bottom: 1rem; border-left: 3px solid var(--primary-color); padding-left: 1rem; }
.legal-section h3 { margin-bottom: 0.75rem; color: var(--light-slate); }
.legal-section p, .legal-section li { margin-bottom: 0.75rem; }
.legal-section ul { padding-left: 1.5rem; list-style: disc; }

/* 9. RESPONSIVE DESIGN
-------------------------------------------- */
@media (max-width: 1024px) {
    .footer-top { grid-template-columns: 1fr 1fr; }
    .why-content { grid-template-columns: 1fr; }
    .story-content { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
    h1 { font-size: 2rem; }
    .hero-title { font-size: 3rem; }
    .nav-links { display: none; }
    .mobile-toggle { display: flex; }

    .nav-links.active {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: var(--nav-height);
        right: 0;
        width: 60%;
        background-color: var(--light-navy);
        padding: 2rem;
        box-shadow: -10px 10px 30px -15px rgba(2, 12, 27, 0.7);
    }

    .contact-grid { grid-template-columns: 1fr; }
    .mv-grid { grid-template-columns: 1fr; }
    .footer-top { grid-template-columns: 1fr; }
    .form-row { flex-direction: column; gap: 0; }
}

@media (max-width: 480px) {
    .container { padding: 0 1rem; }
    .hero-title { font-size: 2.5rem; }
    .hero-buttons, .hero-stats { flex-direction: column; align-items: flex-start; gap: 1.5rem; }
}

