/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Noto Sans SC', 'Inter', sans-serif;
    line-height: 1.6;
    color: #ffffff;
    background-color: #0a0e27;
    overflow-x: hidden;
}

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

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: 1rem;
    color: #ffffff;
}

h1 { font-size: 3rem; }
h2 { font-size: 2.5rem; }
h3 { font-size: 2rem; }
h4 { font-size: 1.5rem; }
h5 { font-size: 1.25rem; }
h6 { font-size: 1rem; }

p {
    margin-bottom: 1rem;
    color: #cccccc;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 30px;
    border: none;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 500;
    font-size: 1rem;
    transition: all 0.3s ease;
    cursor: pointer;
    text-align: center;
}

.btn-primary {
    background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
    color: white;
    border: 2px solid #6366f1;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(79, 70, 229, 0.3);
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
}

.btn-secondary {
    background: transparent;
    color: #ffffff;
    border: 2px solid #ffffff;
}

.btn-secondary:hover {
    background: #ffffff;
    color: #000000;
    transform: translateY(-2px);
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(10, 14, 39, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    transition: all 0.3s ease;
    border-bottom: 1px solid rgba(79, 70, 229, 0.2);
}

.navbar.scrolled {
    background: rgba(10, 14, 39, 0.98);
    box-shadow: 0 2px 20px rgba(79, 70, 229, 0.2);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 700;
    font-size: 1.5rem;
}

.logo-image {
    height: 40px;
    width: auto;
    object-fit: contain;
}

.logo-text {
    font-size: 1.5rem;
    font-weight: 700;
    color: #ffffff;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-link {
    text-decoration: none;
    color: #ffffff;
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
}

.nav-link:hover {
    color: #cccccc;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: #4f46e5;
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

/* Language Switcher V2 - Button Group Style */
.language-switcher-v2 {
    display: flex;
    gap: 0.3rem;
    align-items: center;
}

.lang-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4px 8px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 6px;
    background: transparent;
    color: #ffffff;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 35px;
    height: 28px;
    letter-spacing: 0.5px;
}

.lang-btn:hover {
    border-color: #6366f1;
    background: rgba(99, 102, 241, 0.1);
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(99, 102, 241, 0.2);
}

.lang-btn.active {
    background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
    border-color: #6366f1;
    color: #ffffff;
    box-shadow: 0 2px 10px rgba(79, 70, 229, 0.3);
}

.lang-btn.active:hover {
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    transform: translateY(-1px);
    box-shadow: 0 3px 12px rgba(79, 70, 229, 0.4);
}

/* Legacy language switcher (keep for compatibility) */
.language-switcher select {
    padding: 8px 12px;
    border: 1px solid #4f46e5;
    border-radius: 20px;
    background: #1e1b4b;
    color: #ffffff;
    font-size: 0.9rem;
    cursor: pointer;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.bar {
    width: 25px;
    height: 3px;
    background: #ffffff;
    margin: 3px 0;
    transition: 0.3s;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    background: linear-gradient(135deg, #0a0e27 0%, #1e1b4b 100%);
    color: white;
    overflow: hidden;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('../assets/hero-bg.jpg') center/cover;
    z-index: -2;
    filter: brightness(0.3);
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(10, 14, 39, 0.8) 0%, rgba(30, 27, 75, 0.8) 100%);
    z-index: -1;
}

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

.hero-title {
    margin-bottom: 2rem;
}

.title-main {
    display: block;
    font-size: 4rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: #ffffff;
}

.title-sub {
    display: block;
    font-size: 2rem;
    font-weight: 300;
    opacity: 0.9;
    color: #cccccc;
}

.hero-subtitle {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: rgba(255, 255, 255, 0.9);
}

.hero-description {
    font-size: 1.1rem;
    margin-bottom: 3rem;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.8;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 4rem;
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 4rem;
    margin-top: 4rem;
}

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

.stat-number {
    font-size: 3rem;
    font-weight: 700;
    color: white;
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.8);
}

/* Section Styles */
section {
    padding: 100px 0;
    background-color: #0a0e27;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-title {
    color: #ffffff;
    margin-bottom: 1rem;
}

.section-subtitle {
    font-size: 1.2rem;
    color: #cccccc;
    max-width: 600px;
    margin: 0 auto;
}

/* About Section */
.about {
    background: #1e1b4b;
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-text h3 {
    color: #ffffff;
    margin-bottom: 1rem;
    margin-top: 2rem;
}

.about-text h3:first-child {
    margin-top: 0;
}

.about-text p {
    color: #cccccc;
}

.advantages {
    margin-top: 2rem;
}

.advantage-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.advantage-item i {
    font-size: 2rem;
    color: #ffffff;
    margin-top: 0.5rem;
}

.advantage-item h4 {
    color: #ffffff;
    margin-bottom: 0.5rem;
}

.advantage-item p {
    color: #cccccc;
}

.about-image {
    position: relative;
    overflow: hidden;
    border-radius: 15px;
    background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
    padding: 3px;
    transition: all 0.3s ease;
}

.about-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
    border-radius: 15px;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 1;
}

.about-image:hover::before {
    opacity: 0.1;
}

.about-image:hover {
    transform: translateY(-5px);
    box-shadow: 0 25px 50px rgba(79, 70, 229, 0.3);
}

.about-image img {
    width: 100%;
    height: auto;
    border-radius: 12px;
    display: block;
    position: relative;
    z-index: 2;
    transition: all 0.3s ease;
    filter: brightness(1) contrast(1.05) saturate(1.1);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
}

.about-image:hover img {
    transform: scale(1.02);
    filter: brightness(1.05) contrast(1.1) saturate(1.15);
}

/* Products Section */
.products {
    background: #000000;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.product-card {
    background: #1e1b4b;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(79, 70, 229, 0.1);
    transition: all 0.3s ease;
    border: 1px solid #4f46e5;
}

.product-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 50px rgba(79, 70, 229, 0.3);
    border-color: #6366f1;
}

.product-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.product-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.product-icon i {
    font-size: 2rem;
    color: white;
}

.product-logo {
    height: 60px;
    width: auto;
    object-fit: contain;
    filter: brightness(0) invert(1);
}

.product-title {
    color: #ffffff;
    margin-bottom: 1rem;
}

.product-description {
    color: #cccccc;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.product-features {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.feature-tag {
    background: #312e81;
    color: #e0e7ff;
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
    font-size: 0.9rem;
    border: 1px solid #4f46e5;
}

.product-link {
    color: #ffffff;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.product-link:hover {
    color: #cccccc;
}

/* Technology Section */
.technology {
    background: #1e1b4b;
}

.tech-categories {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.tech-category {
    background: #312e81;
    padding: 2rem;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(79, 70, 229, 0.1);
    border: 1px solid #4f46e5;
}

.tech-icon {
    width: 100px;
    height: 100px;
    background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
}

.tech-icon i {
    font-size: 2.5rem;
    color: white;
}

.tech-category h3 {
    color: #ffffff;
    margin-bottom: 1.5rem;
}

.tech-category ul {
    list-style: none;
    text-align: left;
}

.tech-category li {
    padding: 0.5rem 0;
    color: #e0e7ff;
    border-bottom: 1px solid #4f46e5;
}

.tech-category li:last-child {
    border-bottom: none;
}

/* News Section */
.news {
    background: #0a0e27;
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.news-card {
    background: #1e1b4b;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(79, 70, 229, 0.1);
    transition: all 0.3s ease;
    border: 1px solid #4f46e5;
}

.news-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(79, 70, 229, 0.3);
    border-color: #6366f1;
}

.news-date {
    background: #4f46e5;
    color: white;
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
    font-weight: 500;
}

.news-card .news-title,
.news-card .news-excerpt,
.news-card .news-link {
    padding: 0 1.5rem;
}

.news-title {
    color: #ffffff;
    margin: 1.5rem 0 1rem;
    font-size: 1.3rem;
}

.news-excerpt {
    color: #cccccc;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.news-link {
    color: #ffffff;
    text-decoration: none;
    font-weight: 500;
    display: inline-block;
    margin-bottom: 1.5rem;
    transition: color 0.3s ease;
}

.news-link:hover {
    color: #cccccc;
}

/* Contact Section */
.contact {
    background: #1e1b4b;
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 2rem;
}

.contact-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.contact-icon i {
    font-size: 1.5rem;
    color: white;
}

.contact-details h4 {
    color: #ffffff;
    margin-bottom: 0.5rem;
}

.contact-details p {
    color: #cccccc;
    margin: 0;
}

.contact-form {
    background: #312e81;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(79, 70, 229, 0.1);
    border: 1px solid #4f46e5;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1rem;
    border: 1px solid #4f46e5;
    border-radius: 10px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
    background: #1e1b4b;
    color: #ffffff;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: #cccccc;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #6366f1;
}

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

/* Footer */
.footer {
    background: #0a0e27;
    color: white;
    padding: 3rem 0 1rem;
    border-top: 1px solid #4f46e5;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 1rem;
}

.footer-logo .logo-image {
    height: 40px;
    width: auto;
    object-fit: contain;
}

.footer-logo span {
    font-size: 1.5rem;
    font-weight: 700;
}

.footer-description {
    color: #cccccc;
    line-height: 1.6;
}

.footer-section h4 {
    color: white;
    margin-bottom: 1rem;
}

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

.footer-section li {
    margin-bottom: 0.5rem;
}

.footer-section a {
    color: #cccccc;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section a:hover {
    color: #ffffff;
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-link {
    width: 40px;
    height: 40px;
    background: #4f46e5;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    color: #ffffff;
    text-decoration: none;
}

.social-link:hover {
    background: #6366f1;
    transform: translateY(-2px);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid #4f46e5;
    color: #e0e7ff;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.6s ease-out;
}

/* Utility Classes */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.mb-1 { margin-bottom: 1rem; }
.mb-2 { margin-bottom: 2rem; }
.mb-3 { margin-bottom: 3rem; }

.mt-1 { margin-top: 1rem; }
.mt-2 { margin-top: 2rem; }
.mt-3 { margin-top: 3rem; }

/* Responsive Design */
@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background-color: rgba(10, 14, 39, 0.98);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 27px rgba(0, 0, 0, 0.05);
        padding: 2rem 0;
        backdrop-filter: blur(10px);
        border-top: 1px solid rgba(79, 70, 229, 0.2);
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-menu a {
        padding: 1rem;
        display: block;
        text-align: center;
    }

    .nav-toggle {
        display: flex;
    }

    .nav-toggle.active .bar:nth-child(2) {
        opacity: 0;
    }

    .nav-toggle.active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

    .nav-toggle.active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    /* Language switcher responsive adjustments */
    .language-switcher-v2 {
        margin-top: 1rem;
        justify-content: center;
        gap: 0.3rem;
        flex-wrap: wrap;
        width: 100%;
    }

    .lang-btn {
        padding: 6px 10px;
        min-width: 45px;
        flex: 0 0 auto;
    }

    .lang-code {
        font-size: 0.8rem;
    }

    .lang-name {
        font-size: 0.6rem;
    }

    /* Hero section responsive */
    .title-main {
        font-size: 2.5rem;
    }

    .title-sub {
        font-size: 1.5rem;
    }

    .hero-stats {
        gap: 2rem;
        flex-wrap: wrap;
    }

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

    /* About section responsive */
    .about-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .about-image {
        margin-top: 2rem;
        max-width: 400px;
        margin-left: auto;
        margin-right: auto;
    }

    .about-image:hover {
        transform: translateY(-3px);
    }

    /* Contact section responsive */
    .contact-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    /* Products grid responsive */
    .products-grid {
        grid-template-columns: 1fr;
    }

    /* Tech categories responsive */
    .tech-categories {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .nav-container {
        padding: 1rem;
    }

    .language-switcher-v2 {
        gap: 0.2rem;
    }

    .lang-btn {
        padding: 5px 8px;
        min-width: 40px;
    }

    .lang-code {
        font-size: 0.7rem;
        margin-bottom: 1px;
    }

    .lang-name {
        font-size: 0.55rem;
    }

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

    .title-sub {
        font-size: 1.2rem;
    }

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

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

    .hero-stats {
        gap: 1rem;
    }

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

    .container {
        padding: 0 15px;
    }
}
