/* Global Styles */
:root {
    --primary-color: #8D1B3D;
    --primary-dark: #6d142f;
    --secondary-color: #39D2C0;
    --secondary-dark: #2cb5a3;
    --tertiary-color: #EE8B60;
    --text-color: #15161E;
    --text-muted: #6c757d;
    --bg-color: #F8F9FA;
    --card-bg: #FFFFFF;
    --border-color: #e9ecef;
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.12);
    --radius-md: 8px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --font-main: 'Inter', sans-serif;
    --font-ar: 'Cairo', sans-serif;
    --transition-fast: 0.3s ease;
}

[lang="ar"] {
    --font-main: 'Cairo', sans-serif;
    direction: rtl;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-main);
    color: var(--text-color);
    background-color: var(--bg-color);
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition-fast);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
}

h1 {
    font-size: 2.5rem;
}

h2 {
    font-size: 2rem;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.8rem 1.5rem;
    border-radius: var(--radius-md);
    font-weight: 600;
    cursor: pointer;
    text-align: center;
    border: 2px solid transparent;
}

.btn-primary {
    background-color: var(--primary-color);
    color: white;
}

.btn-primary:hover {
    background-color: var(--primary-dark);
}

.btn-outline {
    background-color: transparent;
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.btn-outline:hover {
    background-color: var(--primary-color);
    color: white;
}

.btn-lg {
    padding: 1rem 2rem;
    font-size: 1.1rem;
}

.btn-block {
    display: block;
    width: 100%;
}

/* Header */
.header {
    background-color: var(--card-bg);
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 1rem 0;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo img {
    height: 40px;
    border-radius: var(--radius-md);
}

.logo-text {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
}

.nav-list {
    display: flex;
    gap: 2rem;
}

.nav-link {
    font-weight: 500;
    color: var(--text-color);
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary-color);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.lang-toggle {
    background: none;
    border: 1px solid var(--border-color);
    padding: 0.5rem 1rem;
    border-radius: var(--radius-md);
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 5px;
    font-family: inherit;
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-color);
}

/* Mobile Menu */
.mobile-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: var(--card-bg);
    z-index: 2000;
    transform: translateX(-100%);
    /* Default LTR hidden state */
    transition: var(--transition-fast);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

[lang="ar"] .mobile-menu {
    left: auto;
    right: 0;
    transform: translateX(100%);
    /* RTL hidden state */
}

.mobile-menu.active {
    transform: translateX(0);
}

.close-menu-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    background: none;
    border: none;
    font-size: 2rem;
    cursor: pointer;
}

[lang="ar"] .close-menu-btn {
    right: auto;
    left: 20px;
}

.mobile-nav-list {
    text-align: center;
    font-size: 1.5rem;
}

.mobile-nav-list li {
    margin: 1.5rem 0;
}

/* Hero Section */
.hero {
    padding: 4rem 0;
    background: linear-gradient(135deg, #fdfbfb 0%, #ebedee 100%);
    overflow: hidden;
}

.hero-container {
    display: flex;
    align-items: center;
    gap: 4rem;
}

.hero-content {
    flex: 1;
}

.hero-title {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    color: var(--primary-color);
    line-height: 1.1;
}

.hero-subtitle {
    font-size: 1.2rem;
    color: var(--text-muted);
    margin-bottom: 2.5rem;
    max-width: 500px;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    margin-bottom: 3rem;
}

.hero-stats {
    display: flex;
    gap: 3rem;
}

.stat-number {
    display: block;
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-color);
}

.stat-label {
    font-size: 0.9rem;
    color: var(--text-muted);
}

.hero-image {
    flex: 1;
    position: relative;
}

.hero-img-main {
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg);
    width: 100%;
    max-height: 500px;
    object-fit: cover;
}

/* Section Common */
.section {
    padding: 5rem 0;
}

.section-header {
    margin-bottom: 3rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.section-title {
    color: var(--primary-color);
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background-color: var(--secondary-color);
    margin: 10px auto 0;
    border-radius: 2px;
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--text-muted);
}

.text-center {
    text-align: center;
}

/* Services Section */
.services-section {
    background-color: var(--bg-color);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.service-card {
    background-color: var(--card-bg);
    border-radius: var(--radius-lg);
    padding: 2rem;
    box-shadow: var(--shadow-sm);
    transition: var(--transition-fast);
    border: 1px solid var(--border-color);
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
    border-color: var(--secondary-color);
}

.service-icon {
    width: 60px;
    height: 60px;
    background-color: rgba(141, 27, 61, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.service-icon img {
    width: 30px;
    height: 30px;
    object-fit: contain;
}

.service-title {
    font-size: 1.25rem;
    margin-bottom: 1rem;
}

.service-desc {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* Membership Section */
.membership-section {
    background-color: white;
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    align-items: start;
}

.pricing-card {
    background-color: var(--card-bg);
    border-radius: var(--radius-lg);
    padding: 2.5rem;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
    position: relative;
    transition: var(--transition-fast);
}

.pricing-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.pricing-card.popular {
    border: 2px solid var(--primary-color);
    background-color: #fffafa;
}

.badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background-color: var(--primary-color);
    color: white;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

.pricing-header {
    text-align: center;
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--border-color);
}

.plan-name {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.plan-price {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-color);
}

.period {
    font-size: 0.9rem;
    color: var(--text-muted);
    font-weight: 400;
}

.plan-features li {
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-color);
}

.plan-features li i {
    color: var(--secondary-color);
}

.pricing-footer {
    margin-top: 2rem;
}

/* Why Us Section */
.why-us-section {
    background-color: var(--bg-color);
}

.why-us-content {
    display: flex;
    align-items: center;
    gap: 4rem;
}

.why-us-text {
    flex: 1;
}

.why-list {
    margin-top: 2rem;
}

.why-list li {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.icon-box {
    width: 50px;
    height: 50px;
    background-color: white;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-sm);
    color: var(--primary-color);
    font-size: 1.25rem;
    flex-shrink: 0;
}

.why-us-image {
    flex: 1;
}

.why-us-image img {
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg);
}

/* Download Section */
.download-section {
    background: linear-gradient(135deg, var(--primary-color) 0%, #5d1229 100%);
    color: white;
    padding: 4rem 0;
}

[lang="ar"] .download-section {
    background: linear-gradient(-135deg, var(--primary-color) 0%, #5d1229 100%);
}

.download-title {
    margin-bottom: 1rem;
    color: white;
}

.download-subtitle {
    margin-bottom: 2.5rem;
    opacity: 0.9;
    font-size: 1.1rem;
}

.app-buttons {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.store-group {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.4rem;
}

.store-badge {
    background-color: rgba(255, 255, 255, 0.15);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.35);
    padding: 0.2rem 0.6rem;
    border-radius: 999px;
    font-size: 0.75rem;
    letter-spacing: 0.3px;
}

.store-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    background-color: black;
    color: white;
    padding: 0.8rem 1.5rem;
    border-radius: 10px;
    transition: var(--transition-fast);
}

.store-btn.disabled {
    opacity: 0.6;
    cursor: not-allowed;
    pointer-events: none;
}

.store-btn:hover {
    transform: translateY(-3px);
    background-color: #333;
}

.store-btn i {
    font-size: 1.8rem;
}

.store-text {
    display: flex;
    flex-direction: column;
    align-items: start;
    line-height: 1.2;
}

.store-text span:first-child {
    font-size: 0.7rem;
}

.store-name {
    font-size: 1.1rem;
    font-weight: 600;
}

/* Footer */
.footer {
    background-color: #1a1a1a;
    color: white;
    padding: 4rem 0 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-logo {
    margin-bottom: 1rem;
}

.footer-links ul li,
.footer-contact ul li {
    margin-bottom: 0.8rem;
}

.footer-links a {
    color: #ccc;
}

.footer-links a:hover {
    color: var(--secondary-color);
    padding-left: 5px;
}

[lang="ar"] .footer-links a:hover {
    padding-left: 0;
    padding-right: 5px;
}

.footer-contact li {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #ccc;
}

.social-icons {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
}

.social-icons a {
    width: 36px;
    height: 36px;
    background-color: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: var(--transition-fast);
}

.social-icons a:hover {
    background-color: var(--secondary-color);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 1.5rem 0;
    color: #888;
    font-size: 0.9rem;
}

/* Responsive */
@media (max-width: 992px) {
    .hero-container {
        flex-direction: column-reverse;
        text-align: center;
        gap: 2rem;
    }

    .hero-subtitle {
        margin-left: auto;
        margin-right: auto;
    }

    .hero-buttons {
        justify-content: center;
    }

    .hero-stats {
        justify-content: center;
    }

    .why-us-content {
        flex-direction: column;
    }
}

@media (max-width: 768px) {

    .nav-list,
    .header-actions .btn {
        display: none;
    }

    .mobile-menu-btn {
        display: block;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .hero-title {
        font-size: 2.5rem;
    }
}