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

body {
    font-family: 'Cairo', sans-serif;
    line-height: 1.6;
    color: #1f2937;
    background: linear-gradient(135deg, #5E4561 0%, #7a5d7f 100%);
    min-height: 100vh;
}

body[dir="ltr"] {
    direction: ltr;
}

body[dir="rtl"] {
    direction: rtl;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 1rem;
}

.language-selector {
    position: fixed;
    top: 1.5rem;
    left: 1.5rem;
    z-index: 1000;
}

.language-selector[dir="rtl"] {
    left: auto;
    right: 1.5rem;
}

.lang-dropdown {
    position: relative;
    display: inline-block;
}

.lang-button {
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 0.5rem;
    padding: 0.5rem 1rem;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 500;
    transition: all 0.3s ease;
    font-family: 'Cairo', sans-serif;
}

.lang-button:hover {
    background: rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.5);
}

.lang-button .flag {
    font-size: 1.25rem;
    line-height: 1;
}

.lang-menu {
    position: absolute;
    top: calc(100% + 0.5rem);
    left: 0;
    background: white;
    border-radius: 0.5rem;
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
    min-width: 180px;
    overflow: hidden;
    display: none;
    z-index: 1001;
}

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

.lang-menu.show {
    display: block;
}

.lang-option {
    padding: 0.75rem 1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    transition: background 0.2s ease;
    color: #1f2937;
    font-family: 'Cairo', sans-serif;
}

.lang-option:hover {
    background: #f3f4f6;
}

.lang-option.active {
    background: #5E4561;
    color: white;
}

.lang-option .flag {
    font-size: 1.25rem;
    line-height: 1;
}

.header {
    text-align: center;
    color: white;
    margin-bottom: 3rem;
    padding: 2rem 0;
}

.header-logo {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    display: block;
}

.header h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.2);
}

.header p {
    font-size: 1.25rem;
    opacity: 0.95;
    max-width: 600px;
    margin: 0 auto;
}

.section {
    background: white;
    border-radius: 1rem;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}

.section-title {
    font-size: 2rem;
    font-weight: 600;
    color: #5E4561;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.section-title svg {
    width: 2rem;
    height: 2rem;
}

.section-content {
    color: #4b5563;
    line-height: 1.8;
    font-size: 1.1rem;
}

.platforms-grid {
    display: flex;
    gap: 2rem;
    margin-top: 2rem;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 1rem;
    scrollbar-width: thin;
    scrollbar-color: #5E4561 rgba(94, 69, 97, 0.2);
}

.platforms-grid::-webkit-scrollbar {
    height: 8px;
}

.platforms-grid::-webkit-scrollbar-track {
    background: rgba(94, 69, 97, 0.1);
    border-radius: 4px;
}

.platforms-grid::-webkit-scrollbar-thumb {
    background: #5E4561;
    border-radius: 4px;
}

.platforms-grid::-webkit-scrollbar-thumb:hover {
    background: #7a5d7f;
}

.platform-card {
    background: linear-gradient(135deg, #5E4561 0%, #7a5d7f 100%);
    border-radius: 1rem;
    padding: 2rem;
    color: white;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-decoration: none;
    display: block;
    box-shadow: 0 4px 6px rgba(0,0,0,0.15);
    flex: 0 0 auto;
    min-width: 320px;
    max-width: 400px;
    width: 100%;
}

.platform-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.25);
}

.platform-icon {
    width: 4rem;
    height: 4rem;
    background: rgba(255,255,255,0.2);
    border-radius: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.platform-icon svg {
    width: 2.5rem;
    height: 2.5rem;
}

.platform-card h3 {
    font-size: 1.75rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.platform-card p {
    font-size: 1rem;
    opacity: 0.95;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.platform-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255,255,255,0.2);
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    font-weight: 500;
    transition: background 0.3s ease;
}

.platform-card:hover .platform-link {
    background: rgba(255,255,255,0.3);
}

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

.plugin-item {
    background: #f9fafb;
    border-left: 4px solid #5E4561;
    padding: 1.5rem;
    border-radius: 0.5rem;
    transition: transform 0.2s ease;
}

body[dir="rtl"] .plugin-item {
    border-left: none;
    border-right: 4px solid #5E4561;
}

.plugin-item:hover {
    transform: translateX(5px);
}

body[dir="rtl"] .plugin-item:hover {
    transform: translateX(-5px);
}

.plugin-item h4 {
    font-size: 1.25rem;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 0.5rem;
}

.plugin-item p {
    color: #6b7280;
    font-size: 0.95rem;
}

.plugin-item a {
    color: #5E4561;
    text-decoration: none;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

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

.footer {
    text-align: center;
    color: white;
    padding: 2rem 0;
    margin-top: 3rem;
}

@media (max-width: 768px) {
    .header h1 {
        font-size: 2rem;
    }
    
    .platforms-grid {
        gap: 1.5rem;
    }
    
    .platform-card {
        min-width: 280px;
        max-width: 320px;
    }
    
    .section {
        padding: 1.5rem;
    }
    
    .language-selector {
        top: 1rem;
        left: 1rem;
    }
    
    .language-selector[dir="rtl"] {
        left: auto;
        right: 1rem;
    }
}
