/* ===== Reset & Base ===== */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #2B6CB0;
    --primary-dark: #1A4E8A;
    --primary-light: #EBF4FF;
    --accent: #38A169;
    --accent-light: #F0FFF4;
    --text: #2D3748;
    --text-light: #718096;
    --text-lighter: #A0AEC0;
    --bg: #FFFFFF;
    --bg-light: #F7FAFC;
    --bg-dark: #1A202C;
    --border: #E2E8F0;
    --shadow: 0 4px 6px -1px rgba(0,0,0,0.1), 0 2px 4px -2px rgba(0,0,0,0.1);
    --shadow-lg: 0 10px 25px -5px rgba(0,0,0,0.1), 0 8px 10px -6px rgba(0,0,0,0.1);
    --radius: 12px;
    --radius-sm: 8px;
    --transition: all 0.3s ease;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Noto Sans SC', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: var(--text);
    line-height: 1.6;
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ===== Typography ===== */
h1, h2, h3, h4 {
    font-weight: 700;
    line-height: 1.3;
    color: var(--text);
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

img {
    max-width: 100%;
    height: auto;
}

/* ===== Buttons ===== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 24px;
    border-radius: 50px;
    font-weight: 500;
    font-size: 14px;
    cursor: pointer;
    transition: var(--transition);
    border: 2px solid transparent;
}

.btn-primary {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
}
.btn-primary:hover {
    background: var(--primary-dark);
    border-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-outline {
    border-color: var(--primary);
    color: var(--primary);
    background: transparent;
}
.btn-outline:hover {
    background: var(--primary);
    color: #fff;
}

.btn-white {
    background: #fff;
    color: var(--primary);
    border-color: #fff;
}
.btn-white:hover {
    background: var(--primary-light);
    border-color: var(--primary-light);
}

.btn-outline-white {
    border-color: rgba(255,255,255,0.6);
    color: #fff;
    background: transparent;
}
.btn-outline-white:hover {
    background: rgba(255,255,255,0.15);
    border-color: #fff;
}

.btn-lg {
    padding: 14px 32px;
    font-size: 16px;
}

/* ===== Navbar ===== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(255,255,255,0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border);
    padding: 0 0;
}

.navbar .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
}

.nav-brand a {
    display: flex;
    align-items: baseline;
    gap: 8px;
}

.logo {
    font-size: 28px;
    font-weight: 900;
    color: var(--primary);
    letter-spacing: -1px;
}

.tagline {
    font-size: 14px;
    color: var(--text-light);
    font-weight: 400;
}

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

.nav-menu a {
    padding: 8px 16px;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 500;
    color: var(--text);
}

.nav-menu a:hover,
.nav-menu a.active {
    color: var(--primary);
    background: var(--primary-light);
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}

.nav-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--text);
    border-radius: 2px;
    transition: var(--transition);
}

.nav-actions {
    display: flex;
    gap: 12px;
}

/* ===== Hero ===== */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 120px 0 80px;
    background: linear-gradient(135deg, #EBF4FF 0%, #F0FFF4 50%, #FFFBEB 100%);
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 80%, rgba(43,108,176,0.08) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(56,161,105,0.08) 0%, transparent 50%);
    z-index: 0;
}

.hero .container {
    position: relative;
    z-index: 1;
}

.hero-content {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.hero-title {
    font-size: 48px;
    font-weight: 900;
    line-height: 1.2;
    margin-bottom: 20px;
    color: var(--text);
}

.highlight {
    color: var(--primary);
    position: relative;
}

.hero-subtitle {
    font-size: 18px;
    color: var(--text-light);
    margin-bottom: 40px;
    line-height: 1.8;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    margin-bottom: 60px;
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 48px;
    padding: 32px 0;
    border-top: 1px solid var(--border);
}

.stat-item {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 32px;
    font-weight: 900;
    color: var(--primary);
}

.stat-label {
    font-size: 14px;
    color: var(--text-light);
    margin-top: 4px;
}

.hero-scroll {
    position: absolute;
    bottom: 32px;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    color: var(--text-lighter);
    font-size: 12px;
    z-index: 1;
}

.scroll-arrow {
    width: 20px;
    height: 20px;
    border-right: 2px solid var(--text-lighter);
    border-bottom: 2px solid var(--text-lighter);
    transform: rotate(45deg);
    margin: 8px auto 0;
    animation: scroll 2s infinite;
}

@keyframes scroll {
    0%, 20% { opacity: 0; transform: rotate(45deg) translate(-5px, -5px); }
    40%, 80% { opacity: 1; }
    100% { opacity: 0; transform: rotate(45deg) translate(5px, 5px); }
}

/* ===== Sections ===== */
.section-padding {
    padding: 100px 0;
}

.bg-light {
    background: var(--bg-light);
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-tag {
    display: inline-block;
    padding: 6px 16px;
    background: var(--primary-light);
    color: var(--primary);
    border-radius: 50px;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 16px;
}

.section-title {
    font-size: 36px;
    margin-bottom: 16px;
}

.section-desc {
    font-size: 16px;
    color: var(--text-light);
    max-width: 600px;
    margin: 0 auto;
}

/* ===== Categories ===== */
.categories-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.category-card {
    background: var(--bg);
    border-radius: var(--radius);
    padding: 32px 24px;
    text-align: center;
    border: 1px solid var(--border);
    transition: var(--transition);
}

.category-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary);
}

.category-icon {
    font-size: 48px;
    margin-bottom: 16px;
}

.category-card h3 {
    font-size: 20px;
    margin-bottom: 12px;
}

.category-card p {
    font-size: 14px;
    color: var(--text-light);
    line-height: 1.6;
    margin-bottom: 16px;
}

.category-link {
    color: var(--primary);
    font-weight: 500;
    font-size: 14px;
}

.category-link:hover {
    color: var(--primary-dark);
}

/* ===== Features ===== */
.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.feature-item {
    background: var(--bg);
    border-radius: var(--radius);
    padding: 32px;
    border: 1px solid var(--border);
    transition: var(--transition);
}

.feature-item:hover {
    box-shadow: var(--shadow-lg);
}

.feature-icon {
    font-size: 36px;
    margin-bottom: 16px;
}

.feature-item h3 {
    font-size: 18px;
    margin-bottom: 12px;
}

.feature-item p {
    font-size: 14px;
    color: var(--text-light);
    line-height: 1.7;
}

/* ===== OEM Section ===== */
.oem-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: center;
}

.oem-content .section-title {
    text-align: left;
}

.oem-desc {
    color: var(--text-light);
    margin-bottom: 32px;
    line-height: 1.8;
}

.oem-list {
    list-style: none;
    margin-bottom: 32px;
}

.oem-list li {
    display: flex;
    gap: 16px;
    padding: 16px 0;
    border-bottom: 1px solid var(--border);
}

.oem-list li:last-child {
    border-bottom: none;
}

.check {
    color: var(--accent);
    font-weight: 700;
    font-size: 18px;
    flex-shrink: 0;
    margin-top: 2px;
}

.oem-list strong {
    display: block;
    margin-bottom: 4px;
    font-size: 16px;
}

.oem-list p {
    font-size: 14px;
    color: var(--text-light);
}

.oem-process {
    background: var(--primary-light);
    border-radius: var(--radius);
    padding: 40px;
}

.oem-process h3 {
    font-size: 20px;
    margin-bottom: 32px;
    text-align: center;
}

.process-steps {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.step {
    display: flex;
    align-items: center;
    gap: 16px;
    background: var(--bg);
    padding: 16px 20px;
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow);
}

.step-number {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: var(--primary);
    color: #fff;
    border-radius: 50%;
    font-weight: 700;
    font-size: 14px;
    flex-shrink: 0;
}

.step-text {
    font-weight: 600;
    font-size: 16px;
}

/* ===== CTA Section ===== */
.cta-section {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    padding: 80px 0;
    text-align: center;
    color: #fff;
}

.cta-section h2 {
    font-size: 36px;
    color: #fff;
    margin-bottom: 16px;
}

.cta-section p {
    font-size: 18px;
    opacity: 0.9;
    margin-bottom: 32px;
}

.cta-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
}

/* ===== Footer ===== */
.footer {
    background: var(--bg-dark);
    color: #CBD5E0;
    padding: 64px 0 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    padding-bottom: 40px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.footer-brand .logo {
    color: #fff;
}

.footer-brand .tagline {
    color: var(--text-lighter);
}

.footer-desc {
    margin-top: 16px;
    font-size: 14px;
    line-height: 1.8;
}

.footer-contact {
    margin-top: 20px;
}

.footer-contact p {
    font-size: 14px;
    margin-bottom: 8px;
}

.footer-links h4 {
    color: #fff;
    font-size: 16px;
    margin-bottom: 20px;
}

.footer-links ul {
    list-style: none;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    font-size: 14px;
    color: var(--text-lighter);
}

.footer-links a:hover {
    color: #fff;
}

.footer-bottom {
    padding: 24px 0;
    text-align: center;
    font-size: 13px;
    color: var(--text-lighter);
}

/* ===== Product Page ===== */
.product-hero {
    background: linear-gradient(135deg, #EBF4FF 0%, #F0FFF4 100%);
    padding: 140px 0 60px;
    text-align: center;
}

.product-hero h1 {
    font-size: 40px;
    margin-bottom: 16px;
}

.product-hero p {
    font-size: 18px;
    color: var(--text-light);
}

.product-section {
    padding: 80px 0;
    scroll-margin-top: 80px;
}

.product-section:nth-child(even) {
    background: var(--bg-light);
}

.product-section h2 {
    font-size: 28px;
    margin-bottom: 12px;
}

.product-section > .container > p {
    color: var(--text-light);
    margin-bottom: 40px;
    max-width: 700px;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
}

.product-card {
    background: var(--bg);
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--border);
    transition: var(--transition);
}

.product-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.product-img {
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 64px;
    background: var(--bg-light);
}

.product-info {
    padding: 20px;
}

.product-info h3 {
    font-size: 16px;
    margin-bottom: 8px;
}

.product-info p {
    font-size: 14px;
    color: var(--text-light);
    line-height: 1.6;
}

.product-info .product-badge {
    display: inline-block;
    padding: 4px 12px;
    background: var(--accent-light);
    color: var(--accent);
    border-radius: 50px;
    font-size: 12px;
    font-weight: 600;
    margin-top: 12px;
}

/* ===== About Page ===== */
.about-hero {
    background: linear-gradient(135deg, #EBF4FF 0%, #F0FFF4 100%);
    padding: 140px 0 60px;
    text-align: center;
}

.about-content {
    padding: 80px 0;
}

.about-content h2 {
    font-size: 28px;
    margin-bottom: 20px;
}

.about-content p {
    font-size: 16px;
    line-height: 1.8;
    color: var(--text-light);
    margin-bottom: 20px;
    max-width: 800px;
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    padding: 80px 0;
}

.certifications {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 16px;
    margin-top: 40px;
}

.cert-item {
    background: var(--bg-light);
    padding: 20px;
    border-radius: var(--radius-sm);
    text-align: center;
    border: 1px solid var(--border);
}

.cert-item .cert-icon {
    font-size: 32px;
    margin-bottom: 8px;
}

.cert-item strong {
    display: block;
    font-size: 14px;
}

/* ===== Contact Page ===== */
.contact-hero {
    background: linear-gradient(135deg, #EBF4FF 0%, #F0FFF4 100%);
    padding: 140px 0 60px;
    text-align: center;
}

.contact-section {
    padding: 80px 0;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
}

.contact-form {
    background: var(--bg);
    border-radius: var(--radius);
    padding: 40px;
    border: 1px solid var(--border);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 8px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-family: inherit;
    transition: var(--transition);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(43,108,176,0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

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

.contact-card {
    background: var(--bg-light);
    border-radius: var(--radius);
    padding: 24px;
    display: flex;
    gap: 16px;
    align-items: flex-start;
}

.contact-icon {
    font-size: 28px;
    flex-shrink: 0;
}

.contact-card h3 {
    font-size: 16px;
    margin-bottom: 4px;
}

.contact-card p {
    font-size: 14px;
    color: var(--text-light);
}

.contact-card a {
    color: var(--primary);
}

.contact-card a:hover {
    text-decoration: underline;
}

/* ===== OEM/ODM Page ===== */
.oem-hero {
    background: linear-gradient(135deg, #EBF4FF 0%, #FFFBEB 100%);
    padding: 140px 0 60px;
    text-align: center;
}

.oem-services {
    padding: 80px 0;
}

.service-cards {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
}

.service-card {
    background: var(--bg);
    border-radius: var(--radius);
    padding: 40px;
    border: 1px solid var(--border);
    transition: var(--transition);
}

.service-card:hover {
    box-shadow: var(--shadow-lg);
}

.service-card .service-icon {
    font-size: 48px;
    margin-bottom: 20px;
}

.service-card h3 {
    font-size: 22px;
    margin-bottom: 12px;
}

.service-card p {
    font-size: 15px;
    color: var(--text-light);
    line-height: 1.8;
    margin-bottom: 16px;
}

.service-card ul {
    list-style: none;
}

.service-card ul li {
    padding: 6px 0;
    font-size: 14px;
    color: var(--text-light);
}

.service-card ul li::before {
    content: "✓ ";
    color: var(--accent);
    font-weight: 700;
}

/* ===== Responsive ===== */
@media (max-width: 1024px) {
    .categories-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .oem-grid {
        grid-template-columns: 1fr;
    }
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .about-grid {
        grid-template-columns: 1fr;
    }
    .contact-grid {
        grid-template-columns: 1fr;
    }
    .service-cards {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .nav-toggle {
        display: flex;
    }
    .nav-menu {
        display: none;
        position: absolute;
        top: 72px;
        left: 0;
        right: 0;
        background: var(--bg);
        flex-direction: column;
        padding: 16px;
        border-bottom: 1px solid var(--border);
        box-shadow: var(--shadow);
    }
    .nav-menu.active {
        display: flex;
    }
    .nav-actions {
        display: none;
    }
    .hero-title {
        font-size: 32px;
    }
    .hero-subtitle {
        font-size: 16px;
    }
    .hero-stats {
        flex-wrap: wrap;
        gap: 24px;
    }
    .stat-number {
        font-size: 24px;
    }
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    .categories-grid {
        grid-template-columns: 1fr;
    }
    .features-grid {
        grid-template-columns: 1fr;
    }
    .section-title {
        font-size: 28px;
    }
    .footer-grid {
        grid-template-columns: 1fr;
    }
    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }
    .process-steps {
        display: flex;
        flex-direction: row;
        overflow-x: auto;
        gap: 12px;
    }
    .step {
        min-width: 120px;
        flex-direction: column;
        text-align: center;
        gap: 8px;
    }
    .lang-dropdown {
        position: relative;
    }
    .lang-menu {
        position: absolute;
        top: 100%;
        right: 0;
        min-width: 180px;
    }
}

/* ===== Language Selector ===== */
.lang-dropdown {
    position: relative;
}

.lang-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 12px;
    background: var(--primary-light);
    border: 1px solid var(--primary);
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    color: var(--primary);
    transition: var(--transition);
}

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

.lang-flag {
    font-size: 16px;
}

.lang-name {
    display: none;
}

@media (min-width: 768px) {
    .lang-name {
        display: inline;
    }
}

.lang-arrow {
    font-size: 10px;
    transition: transform 0.2s;
}

.lang-menu {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    background: white;
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-lg);
    list-style: none;
    padding: 8px;
    min-width: 200px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.2s;
    z-index: 1000;
}

.lang-menu.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.lang-menu li {
    margin: 0;
}

.lang-option {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 10px 12px;
    background: none;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    text-align: left;
    transition: background 0.2s;
}

.lang-option:hover {
    background: var(--bg-light);
}

.lang-option.active {
    background: var(--primary-light);
    color: var(--primary);
    font-weight: 500;
}

[dir="rtl"] .lang-menu {
    right: auto;
    left: 0;
}

[dir="rtl"] .lang-option {
    text-align: right;
    flex-direction: row-reverse;
}
