/* Global Styles */
:root {
    --primary-purple: #44326e;
    --accent-orange: #e9901c;
    --white: #FFFFFF;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: var(--primary-purple);
    color: var(--white);
    overflow-x: hidden;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Language Switcher */
.language-switcher {
    position: absolute;
    top: 20px;
    right: 20px;
    z-index: 1000;
}

/* Add these styles to your existing CSS */

/* Better responsive positioning for language switcher and login button */
@media (max-width: 992px) {
    .language-switcher {
        padding: 10px;
        display: flex;
        justify-content: center;
        flex-wrap: wrap;
        gap: 10px;
    }
    
    .login-button, .lang-button {
        margin: 0 5px;
    }
}

@media (max-width: 768px) {
    .language-switcher {
        position: relative;
        top: 10px;
        right: 0;
        left: 0;
        width: 100%;
        text-align: center;
        margin-bottom: 15px;
        display: flex;
        justify-content: center;
        flex-wrap: wrap;
        gap: 10px;
    }
    
    .login-button, .lang-button {
        padding: 8px 12px;
        font-size: 14px;
        margin: 0 5px;
    }
}

@media (max-width: 576px) {
    .language-switcher {
        flex-direction: column;
        align-items: center;
    }
    
    .login-button, .lang-button {
        width: 150px;
        text-align: center;
        margin: 5px 0;
    }
}

/* Proper RTL support for login button */
.rtl .login-button {
    margin-right: 0;
    margin-left: 10px;
}

@media (max-width: 576px) {
    .rtl .login-button {
        margin-left: 0;
    }
}

.lang-button {
    background: var(--accent-orange);
    color: var(--white);
    border: none;
    padding: 8px 15px;
    border-radius: 20px;
    cursor: pointer;
    font-weight: bold;
    text-decoration: none;
    display: inline-block;
}

/* Header */
header {
    background-color: var(--white);
    padding: 15px 0;
    border-radius: 10px;
    margin-top: 20px;
}

.nav {
    display: flex;
    justify-content: center;
    align-items: center;
}

.nav-item {
    margin: 0 20px;
    color: var(--primary-purple);
    text-decoration: none;
    font-weight: bold;
    font-size: 18px;
}

/* Logo */
.logo {
    display: flex;
    align-items: center;
    margin: 30px 0;
}

.logo-icon {
    font-size: 40px;
    color: var(--accent-orange);
    font-weight: bold;
    margin-right: 10px;
    transform: rotate(-10deg);
    display: inline-block;
}

.logo-text {
    font-size: 32px;
    font-weight: bold;
    color: var(--white);
    letter-spacing: 1px;
}

/* Hero Section */
.hero {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 50px 0;
    position: relative;
}

.hero-content {
    width: 50%;
    position: relative;
    z-index: 2;
}

.hero-title {
    font-size: 54px;
    font-weight: bold;
    margin-bottom: 20px;
    line-height: 1.1;
}

.hero-text {
    font-size: 18px;
    margin-bottom: 30px;
    line-height: 1.6;
}

.cta-button {
    background-color: var(--accent-orange);
    color: var(--white);
    border: none;
    padding: 15px 30px;
    font-size: 18px;
    font-weight: bold;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.cta-button:hover {
    background-color: #d38019;
    transform: translateY(-2px);
}

.hero-image {
    width: 45%;
    position: relative;
    z-index: 1;
}

.image-container {
    width: 300px;
    height: 300px;
    background-color: var(--accent-orange);
    border-radius: 50%;
    overflow: hidden;
    position: relative;
}

.profile-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Decorative Elements */
.shapes {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: 0;
    pointer-events: none;
}

.shape {
    position: absolute;
    background-color: var(--accent-orange);
    opacity: 0.7;
}

.circle {
    border-radius: 50%;
}

.square {
    border-radius: 2px;
}

/* Color Palette Section */
.color-palette {
    display: flex;
    justify-content: flex-end;
    margin: 30px 0;
}

.color-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-left: 20px;
}

.color-box {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    margin-bottom: 10px;
}

.color-code {
    font-size: 18px;
    font-weight: bold;
}

.color-desc {
    font-size: 14px;
}

/* Features Section */
.features {
    margin: 80px 0;
}

.section-title {
    font-size: 36px;
    margin-bottom: 40px;
    text-align: center;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.feature-card {
    background-color: rgba(255, 255, 255, 0.1);
    padding: 30px;
    border-radius: 10px;
    text-align: center;
}

.feature-icon {
    font-size: 40px;
    color: var(--accent-orange);
    margin-bottom: 20px;
}

.feature-title {
    font-size: 24px;
    margin-bottom: 15px;
}

.feature-text {
    font-size: 16px;
    line-height: 1.6;
}

/* RTL Support for Arabic */
.rtl {
    direction: rtl;
    text-align: right;
}

.rtl .hero {
    flex-direction: row-reverse;
}

.rtl .color-palette {
    justify-content: flex-start;
}

.rtl .color-item {
    margin-left: 0;
    margin-right: 20px;
}

.rtl .logo-icon {
    margin-right: 0;
    margin-left: 10px;
    transform: rotate(10deg);
}

/* Mobile Social Preview */
.mobile-preview {
    width: 300px;
    background-color: var(--white);
    border-radius: 20px;
    overflow: hidden;
    color: #000;
    margin: 50px auto;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.mobile-header {
    padding: 15px;
    border-bottom: 1px solid #eee;
    display: flex;
    align-items: center;
}

.mobile-back {
    margin-right: 15px;
}

.mobile-title {
    flex-grow: 1;
    text-align: center;
    font-weight: bold;
}

.mobile-profile {
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.mobile-avatar {
    width: 80px;
    height: 80px;
    background-color: var(--primary-purple);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 15px;
}

.mobile-avatar-icon {
    color: var(--accent-orange);
    font-size: 30px;
    font-weight: bold;
}

.mobile-stats {
    display: flex;
    width: 100%;
    justify-content: space-around;
    margin: 15px 0;
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-weight: bold;
    font-size: 18px;
}

.stat-label {
    font-size: 12px;
    color: #777;
}

.mobile-bio {
    font-size: 14px;
    margin-bottom: 20px;
}

.follow-button {
    width: 100%;
    padding: 10px 0;
    background-color: #4a99e9;
    color: white;
    border: none;
    border-radius: 5px;
    font-weight: bold;
    margin-bottom: 10px;
}

.secondary-button {
    width: 100%;
    padding: 10px 0;
    background-color: #f0f0f0;
    color: #333;
    border: none;
    border-radius: 5px;
    font-weight: bold;
}

/* Footer */
footer {
    margin-top: 100px;
    padding: 40px 0;
    background-color: rgba(0, 0, 0, 0.2);
    text-align: center;
}

.footer-logo {
    margin-bottom: 20px;
}

.footer-links {
    display: flex;
    justify-content: center;
    margin-bottom: 30px;
}

.footer-link {
    margin: 0 15px;
    color: var(--white);
    text-decoration: none;
}

.copyright {
    color: rgba(255, 255, 255, 0.7);
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero {
        flex-direction: column;
    }
    
    .hero-content, .hero-image {
        width: 100%;
        text-align: center;
    }
    
    .hero-image {
        margin-top: 40px;
        display: flex;
        justify-content: center;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .color-palette {
        justify-content: center;
    }
    
    .rtl .hero {
        flex-direction: column;
    }
    
    .rtl .color-palette {
        justify-content: center;
    }
    
    .language-switcher {
        position: relative;
        top: 10px;
        right: 0;
        text-align: center;
        margin-bottom: 10px;
    }
}