/* إعدادات عامة */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-red: #C1272D;
    --primary-blue: #2C5F7C;
    --dark-blue: #1a3a4d;
    --light-gray: #f5f5f5;
    --text-dark: #333;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    padding-top: 0;
}

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

/* Header Styles */
.main-header {
    background: rgba(255, 255, 255, 0.75);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.08);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    border-radius: 0 0 20px 20px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.main-header.scrolled {
    top: 0;
    left: 20px;
    right: 20px;
    border-radius: 0 0 30px 30px;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.12);
}

.header-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 30px;
    max-height:100px;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
}

.logo h1 {
    color: var(--primary-red);
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin: 0;
}

.logo h1 i {
    color: var(--primary-blue);
}

.header-logo {
    width: 80px;
    height: 80px;
    object-fit: fill;
}

.footer-logo {
    width: 50px;
    height: 50px;
    object-fit: contain;
    vertical-align: middle;
    margin-left: 0.5rem;
}

.login-logo {
    width: 150px;
    height: 1500px;
    object-fit: fill;
    
}

.sidebar-logo-img {
    width: 40px;
    height: 40px;
    object-fit: contain;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
    margin: 0;
}

.nav-menu a {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    transition: color 0.3s;
    position: relative;
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-red);
    transition: width 0.3s;
}

.nav-menu a:hover::after,
.nav-menu a.active::after {
    width: 100%;
}

.nav-menu a:hover,
.nav-menu a.active {
    color: var(--primary-red);
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 1rem;
}

/* Icon Buttons */
.icon-btn {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #f5f5f5;
    color: var(--primary-blue);
    font-size: 1.2rem;
    transition: all 0.3s;
    text-decoration: none;
}

.icon-btn:hover {
    background: var(--primary-red);
    color: #fff;
    transform: scale(1.1);
}

.mobile-only {
    display: none;
}

/* Burger Menu */
.burger-menu {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 5px;
    z-index: 1001;
}

.burger-menu span {
    width: 25px;
    height: 3px;
    background: var(--primary-blue);
    border-radius: 3px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.burger-menu.active span:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
    background: var(--primary-red);
}

.burger-menu.active span:nth-child(2) {
    opacity: 0;
}

.burger-menu.active span:nth-child(3) {
    transform: rotate(-45deg) translate(8px, -8px);
    background: var(--primary-red);
}

/* Button Styles */
.btn {
    padding: 0.6rem 1.5rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s;
    display: inline-block;
    border: none;
    cursor: pointer;
}

.btn-primary {
    background: var(--primary-red);
    color: #fff;
}

.btn-primary:hover {
    background: #a01f24;
}

.btn-outline {
    background: transparent;
    color: var(--primary-blue);
    border: 2px solid var(--primary-blue);
}

.btn-outline:hover {
    background: var(--primary-blue);
    color: #fff;
}

.btn-large {
    padding: 1rem 2rem;
    font-size: 1.1rem;
}

/* Features Section */
.features {
    padding: 4rem 0;
    background: #f9fafb;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: #1f2937;
}

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

.feature-card {
    background: #fff;
    padding: 2rem;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    transition: transform 0.3s;
}

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

.feature-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: var(--primary-red);
}

.feature-card:nth-child(even) .feature-icon {
    color: var(--primary-blue);
}

.feature-card h3 {
    color: #1f2937;
    margin-bottom: 0.5rem;
}

.feature-card p {
    color: #6b7280;
}

/* Footer Styles */
.main-footer {
    background: var(--dark-blue);
    color: #fff;
    padding: 3rem 0 1rem;
}

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

.footer-section h3,
.footer-section h4 {
    margin-bottom: 1rem;
}

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

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

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

.footer-section a:hover {
    color: var(--primary-red);
}

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

.social-links a i {
    margin-left: 0.5rem;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid #374151;
    color: #9ca3af;
}

/* Responsive Styles */
@media (max-width: 992px) {
    .main-header {
        left: 0;
        right: 0;
        top: 0;
        border-radius: 0 0 20px 20px;
    }
    
    .main-header.scrolled {
        top: 10px;
        left: 10px;
        right: 10px;
        border-radius: 25px;
    }
    
    .icon-btn {
        display: none;
    }
    
    .nav-menu.active .mobile-only {
        display: block;
    }
    
    .nav-menu {
        position: fixed;
        top: 70px;
        left: 10px;
        right: 10px;
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(10px);
        flex-direction: column;
        padding: 2rem;
        border-radius: 20px;
        box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
        gap: 0;
        max-height: 0;
        overflow: hidden;
        opacity: 0;
        transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    }
    
    .nav-menu.active {
        max-height: 600px;
        opacity: 1;
        margin-top: 10px;
    }
    
    .nav-menu li {
        width: 100%;
        text-align: center;
        padding: 1rem 0;
        border-bottom: 1px solid #f0f0f0;
    }
    
    .nav-menu li:last-child {
        border-bottom: none;
    }
    
    .nav-menu a {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 0.5rem;
        font-size: 1.1rem;
    }
    
    .nav-menu a i {
        font-size: 1.3rem;
        color: var(--primary-blue);
    }
    
    .nav-menu a:hover i {
        color: var(--primary-red);
    }
    
    .nav-menu a::after {
        display: none;
    }
    
    .burger-menu {
        display: flex;
    }
    
    .header-container {
        padding: 0 20px;
    }
}

@media (max-width: 768px) {
    .logo h1 {
        font-size: 1.2rem;
    }
    
    .nav-right {
        gap: 0.8rem;
    }
}

/* ===================================
   LTR (Left-to-Right) Styles
   =================================== */

html[dir="ltr"] .footer-logo {
    margin-left: 0;
    margin-right: 0.5rem;
}

html[dir="ltr"] .social-links a i {
    margin-left: 0;
    margin-right: 0.5rem;
}

html[dir="ltr"] .nav-menu a::after {
    left: auto;
    right: 0;
}

/* Header Download Button LTR */
html[dir="ltr"] .header-download-btn {
    gap: 8px;
}

