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

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
    line-height: 1.6;
    color: #333;
}

/* Navigation Bar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: #fff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    transition: all 0.3s;
}

.navbar.scrolled {
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.15);
}

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

.logo {
    font-size: 1.5em;
    font-weight: 700;
    color: #BA365C;
    text-decoration: none;
    display: flex;
    align-items: center;
}

.logo-image {
    width: 40px;
    height: 40px;
    margin-right: 10px;
}

.logo-text {
    font-size: 1em;
    font-weight: 700;
}

.logo-icon {
    margin-right: 10px;
    font-size: 1.3em;
}

.nav-menu {
    display: flex;
    list-style: none;
    align-items: center;
    gap: 40px;
}

.nav-menu li a {
    color: #333;
    text-decoration: none;
    font-size: 1em;
    font-weight: 500;
    transition: color 0.3s;
    position: relative;
    padding: 5px 0;
}

.nav-menu li a:hover {
    color: #BA365C;
}

.nav-menu li a.active {
    color: #BA365C;
}

.nav-menu li a.active::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    right: 0;
    height: 3px;
    background: #BA365C;
    border-radius: 2px;
}

.language-switch {
    position: relative;
    display: inline-block;
}

.language-toggle {
    background: transparent;
    border: 1px solid #ddd;
    color: #666;
    padding: 8px 16px;
    border-radius: 20px;
    cursor: pointer;
    font-size: 0.9em;
    transition: all 0.3s;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 8px;
}

.language-toggle:hover {
    border-color: #BA365C;
    color: #BA365C;
}

.dropdown-arrow {
    font-size: 0.7em;
    transition: transform 0.3s;
}

.language-switch.active .dropdown-arrow {
    transform: rotate(180deg);
}

.language-dropdown {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 8px;
    background: white;
    border: 1px solid #ddd;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    min-width: 150px;
    z-index: 1000;
    overflow: hidden;
}

.language-dropdown.show {
    display: block;
}

.language-dropdown button {
    display: block;
    width: 100%;
    padding: 10px 16px;
    background: transparent;
    border: none;
    color: #666;
    text-align: left;
    cursor: pointer;
    font-size: 0.9em;
    transition: all 0.2s;
}

.language-dropdown button:hover {
    background: #f5f5f5;
    color: #BA365C;
}

.language-dropdown button.active {
    background: #BA365C;
    color: white;
}

/* Mobile Menu Toggle */
.menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
}

.menu-toggle span {
    width: 25px;
    height: 3px;
    background: #333;
    border-radius: 2px;
    transition: all 0.3s;
}

/* Hero Section */
.hero {
    margin-top: 70px;
    background: linear-gradient(135deg, #BA365C 0%, #F2B15A 100%);
    color: white;
    padding: 80px 20px;
    text-align: center;
}

.hero-home {
    height: calc(100vh - 70px);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-icon {
    width: 100px;
    height: 100px;
    margin-bottom: 30px;
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-20px);
    }
}

.hero-decorations {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.decoration-circle {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    animation: pulse 4s ease-in-out infinite;
}

.circle-1 {
    width: 300px;
    height: 300px;
    top: 10%;
    left: 10%;
    animation-delay: 0s;
}

.circle-2 {
    width: 200px;
    height: 200px;
    top: 60%;
    right: 15%;
    animation-delay: 1s;
}

.circle-3 {
    width: 150px;
    height: 150px;
    bottom: 20%;
    left: 20%;
    animation-delay: 2s;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        opacity: 0.3;
    }
    50% {
        transform: scale(1.1);
        opacity: 0.5;
    }
}

.hero h1 {
    font-size: 3em;
    margin-bottom: 20px;
    font-weight: 700;
}

.hero .tagline {
    font-size: 1.3em;
    opacity: 0.95;
    margin-bottom: 15px;
}

.hero .website {
    font-size: 1em;
    opacity: 0.85;
}

.hero .website a {
    color: white;
    text-decoration: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.5);
    transition: border-color 0.3s;
}

.hero .website a:hover {
    border-bottom-color: white;
}

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

/* Products Grid */
.products {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    margin-top: 40px;
}

.products.single-product {
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    grid-template-columns: 1fr;
}

.product-card {
    background: white;
    border-radius: 12px;
    padding: 35px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s, box-shadow 0.3s;
    border: 1px solid #f0f0f0;
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.product-header {
    display: flex;
    align-items: center;
    margin-bottom: 25px;
}

.product-icon {
    width: 65px;
    height: 65px;
    margin-right: 18px;
    flex-shrink: 0;
}

.product-title h2 {
    font-size: 1.9em;
    color: #333;
    margin-bottom: 8px;
}

.status-badge {
    display: inline-block;
    background: #fff3cd;
    color: #856404;
    padding: 5px 14px;
    border-radius: 20px;
    font-size: 0.75em;
    font-weight: 600;
}

.platform-badge {
    display: inline-block;
    background: #d1ecf1;
    color: #0c5460;
    padding: 5px 14px;
    border-radius: 20px;
    font-size: 0.75em;
    font-weight: 600;
    margin-left: 8px;
}

.product-description {
    color: #666;
    margin-bottom: 25px;
    line-height: 1.8;
    font-size: 1.05em;
}

.features {
    list-style: none;
}

.features li {
    padding: 10px 0;
    color: #555;
    position: relative;
    padding-left: 28px;
    line-height: 1.6;
}

.features li:before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #BA365C;
    font-weight: bold;
    font-size: 1.3em;
}

/* Footer */
footer {
    background: #2c3e50;
    color: white;
    text-align: center;
    padding: 40px 20px;
    margin-top: 80px;
}

.hero-home + footer {
    margin-top: 0;
}

.hero-footer {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(10px);
    padding: 20px;
    margin: 0;
    z-index: 3;
}

.hero-footer p {
    opacity: 0.9;
    font-size: 0.9em;
    margin: 0;
}

footer p {
    opacity: 0.9;
    font-size: 0.95em;
}

/* About Page Specific Styles */
.about-section {
    margin-bottom: 60px;
}

.about-section h2 {
    font-size: 2.2em;
    color: #333;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 15px;
}

.about-section h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 4px;
    background: linear-gradient(135deg, #BA365C 0%, #F2B15A 100%);
    border-radius: 2px;
}

.about-section p {
    font-size: 1.1em;
    line-height: 1.8;
    color: #555;
    margin-bottom: 15px;
}

.timeline {
    position: relative;
    padding-left: 40px;
    margin-top: 30px;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 10px;
    top: 0;
    bottom: 0;
    width: 3px;
    background: linear-gradient(135deg, #BA365C 0%, #F2B15A 100%);
}

.timeline-item {
    position: relative;
    margin-bottom: 30px;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -34px;
    top: 5px;
    width: 15px;
    height: 15px;
    background: #BA365C;
    border-radius: 50%;
    border: 3px solid white;
    box-shadow: 0 0 0 3px #BA365C;
}

.timeline-item h3 {
    color: #BA365C;
    font-size: 1.3em;
    margin-bottom: 8px;
}

.timeline-item p {
    color: #666;
    font-size: 1em;
}

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

.team-card {
    background: white;
    border-radius: 10px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 3px 15px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s;
}

.team-card:hover {
    transform: translateY(-5px);
}

.team-avatar {
    width: 100px;
    height: 100px;
    background: linear-gradient(135deg, #BA365C 0%, #F2B15A 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3em;
    margin: 0 auto 20px;
}

.team-card h3 {
    font-size: 1.3em;
    color: #333;
    margin-bottom: 8px;
}

.team-card p {
    color: #666;
    font-size: 0.95em;
}

.contact-info {
    margin-top: 30px;
    background: #f8f9fa;
    border-radius: 10px;
    padding: 30px;
}

.contact-item {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
    font-size: 1.05em;
}

.contact-icon {
    width: 45px;
    height: 45px;
    background: linear-gradient(135deg, #BA365C 0%, #F2B15A 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3em;
    margin-right: 15px;
    color: white;
}

.contact-item strong {
    color: #333;
    margin-right: 10px;
}

.contact-item a {
    color: #BA365C;
    text-decoration: none;
}

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

/* Responsive Design */
@media (max-width: 768px) {
    .menu-toggle {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        top: 70px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 70px);
        background: white;
        flex-direction: column;
        justify-content: flex-start;
        padding: 30px 20px;
        transition: left 0.3s;
        gap: 0;
    }

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

    .nav-menu li {
        width: 100%;
        text-align: center;
        padding: 15px 0;
        border-bottom: 1px solid #f0f0f0;
    }

    .language-switch {
        margin-top: 20px;
    }

    .language-toggle {
        width: 100%;
        justify-content: center;
    }

    .language-dropdown {
        left: 50%;
        right: auto;
        transform: translateX(-50%);
    }

    .hero h1 {
        font-size: 2em;
    }

    .hero .tagline {
        font-size: 1.1em;
    }

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

    .product-card {
        padding: 25px;
    }

    .about-section h2 {
        font-size: 1.8em;
    }

    .timeline {
        padding-left: 30px;
    }

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

/* RTL Support for Arabic */
[dir="rtl"] {
    direction: rtl;
}

[dir="rtl"] .nav-container {
    flex-direction: row-reverse;
}

[dir="rtl"] .nav-menu {
    flex-direction: row-reverse;
}

[dir="rtl"] .language-switch {
    flex-direction: row-reverse;
}

[dir="rtl"] .product-card,
[dir="rtl"] .about-section,
[dir="rtl"] .contact-info {
    text-align: right;
}

[dir="rtl"] .features li {
    text-align: right;
}
