
/* Reset وأنماط أساسية */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Tajawal', sans-serif;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    background: #f9f9f9;
    color: #333;
    direction: rtl;
    line-height: 1.6;
    overflow-x: hidden;
    padding-top: 70px;
}

/*النافبار الاساسي */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: #c10a28;
    z-index: 1000;
    box-shadow: 0 2px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
    direction: ltr;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
}

.logo img {
    height: 100px;
    transition: 0.3s;
    padding: 5px;
    width: 100px;
    height: auto;
}

.nav-links {
    display: flex;
    gap: 2rem;
    list-style: none;
    order: 3;
}

.logo{
    order: 2;
    margin-top: 8px;
}

.nav-links a {
    color: #fff;
    text-decoration: none;
    font-size: 1.1rem;
    font-weight: 500;
    position: relative;
    padding: 0.5rem 0;
    transition: 0.3s;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 0;
    height: 2px;
    background: #fff;
    transition: 0.3s;
}

.nav-links a:hover::after {
    width: 100%;
    left: 0;
}

.menu-toggle {
    display: none;
    color: #fff;
    font-size: 1.5rem;
    cursor: pointer;
    order: 1;
}

/* قائمة الفون الجانبية */
.mobile-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100%;
    background: #fff;
    box-shadow: -3px 0 15px rgba(0,0,0,0.1);
    transition: 0.4s;
    z-index: 1001;
    padding: 2rem;
    overflow-y: auto;
    scrollbar-width: none;
}

.mobile-menu::-webkit-scrollbar {
    display: none;
}

.mobile-menu.active {
    right: 0;
}

.mobile-menu ul {
    list-style: none;
    margin-top: 2rem;
}

.mobile-menu ul li {
    margin: 1.5rem 0;
    position: relative;
    padding-bottom: 1rem;
    border-bottom: 1px solid #eee;
}

.mobile-menu ul li:last-child {
    border-bottom: none;
}

.mobile-menu ul li a {
    color: #333;
    text-decoration: none;
    font-size: 1.1rem;
    display: block;
    padding: 0.5rem 0;
    transition: 0.3s;
}

.mobile-menu ul li a:hover {
    color: #c10a28;
}

.close-menu {
    text-align: left;
    font-size: 1.5rem;
    cursor: pointer;
    color: #333;
}

.mobile-social-icons {
    display: flex;
    justify-content: space-around;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.mobile-social-icons a {
    color: #c10a28;
    font-size: 1.2rem;
    transition: 0.3s;
}

.mobile-social-icons a:hover {
    color: #8a061a;
}

/* القوائم المنسدلة في القائمة الجانبية */
.dropdown {
    position: relative;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.dropbtn {
    display: inline-block;
    background: none;
    border: none;
    color: #333;
    font-size: 1.1rem;
    cursor: pointer;
    padding: 0.5rem 0;
    text-align: right;
    flex-grow: 1;
}

.dropdown-icon {
    font-size: 0.8rem;
    transition: transform 0.3s;
    color: rgb(204, 21, 21);
    cursor: pointer;
    padding: 0.5rem 0;
    margin-right: 10px;
}

.dropdown.active .dropdown-icon {
    transform: rotate(180deg);
}

.dropdown-content {
    display: none;
    width: 100%;
    padding-right: 15px;
    margin-top: 10px;
}

.dropdown.active .dropdown-content {
    display: block;
}

.dropdown-content a {
    display: block;
    padding: 8px 0;
    color: #666;
    text-decoration: none;
    font-size: 0.9rem;
    transition: 0.3s;
}

.dropdown-content a:hover {
    color: #928688;
}

/* السكشن الأول: الفيديو الاعلاني */
.hero-section {
    height: 95vh;
    position: relative;
    overflow: hidden;
    margin-top: -70px; 
}

.video-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.video-wrapper video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    will-change: transform;
}

.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.4);
    z-index: 2;
}

.welcome-message {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 3;
    text-align: center;
    width: 100%;
    will-change: transform;
}

.welcome-text {
    color: #fff;
    font-size: 3rem;
    text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.5);
    opacity: 1;
    transition: opacity 0.5s ease;
    animation: fadeIn 1.5s ease-in-out;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* السكشن الثاني: مميزات التطبيق */
.features-section {
    padding: 80px 0;
    background-color: #fff;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 2rem;
    color: #c10a28;
    position: relative;
    padding-bottom: 15px;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 50%;
    transform: translateX(50%);
    width: 80px;
    height: 3px;
    background: #c10a28;
}

.feature-box {
    background-color: #f9f9f9;
    border-radius: 10px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    opacity: 0;
    transform: translateY(50px);
    will-change: transform, opacity;
}

.feature-box.animated {
    opacity: 1;
    transform: translateY(0);
}

.feature-box:hover {
    transform: translateY(-10px) !important;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}

.feature-icon {
    font-size: 3rem;
    color: #c10a28;
    margin-bottom: 20px;
    transition: transform 0.3s ease;
}

.feature-box:hover .feature-icon {
    transform: scale(1.2);
}

.feature-box h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: #333;
}

.feature-box p {
    color: #666;
    line-height: 1.6;
}

/* السكشن الثالث: تحميل التطبيق */
.download-section {
    padding: 80px 0;
    background-color: #f1f1f1;
}

.download-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 30px;
}

.app-image {
    flex: 1;
    min-width: 300px;
    text-align: center;
}

.app-image img {
    max-width: 250px;
    height: auto;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    transition: transform 0.5s ease, box-shadow 0.5s ease;
}

.app-image img:hover {
    transform: scale(1.05);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
}

.download-info {
    flex: 1;
    min-width: 300px;
}

.download-info h3 {
    font-size: 2rem;
    color: #c10a28;
    margin-bottom: 20px;
    animation: slideInRight 1s ease-out;
}

.download-info p {
    font-size: 1.2rem;
    color: #555;
    margin-bottom: 30px;
    line-height: 1.6;
}

.download-arrow-container {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    position: relative;
}

.download-text {
    margin-left: 10px;
    color: #c10a28;
    font-weight: bold;
}

.download-arrow {
    color: #c10a28;
    font-size: 1.5rem;
    animation: bounce 2s infinite;
    margin-left: 10px;
}

.download-btn {
    display: inline-block;
    margin-right: 40px;
    transition: transform 0.3s ease;
}

.download-btn:hover {
    transform: scale(1.05);
}

.download-btn img {
    height: 60px;
    transition: transform 0.3s ease;
    max-width: 100%;
    height: auto;
}

.download-btn img:hover {
    transform: scale(1.05);
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {transform: translateX(0);}
    40% {transform: translateX(-10px);}
    60% {transform: translateX(-5px);}
}

@keyframes slideInRight {
    from { transform: translateX(50px); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

/* السكشن الرابع: تواصل معنا */
.contact-section {
    padding: 80px 0;
    background-color: #fff;
}

.contact-methods {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 50px;
    margin-top: 50px;
}

.contact-method {
    flex: 1;
    min-width: 300px;
    background-color: #f9f9f9;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    direction: ltr;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.contact-method:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}

.contact-method h3 {
    font-size: 1.8rem;
    color: #c10a28;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    justify-content: center;
}

.contact-method h3 i {
    font-size: 1.5rem;
}

.contact-list {
    list-style: none;
    text-align: center;
    padding: 0;
}

.contact-list li {
    padding: 15px 0;
    font-size: 1.5rem;
    color: #555;
    border-bottom: 1px solid #eee;
    direction: ltr;
    transition: background-color 0.3s ease;
}

.contact-list li:hover {
    background-color: rgba(193, 10, 40, 0.05);
}

.contact-list li:last-child {
    border-bottom: none;
}

.contact-list li a {
    color: #555;
    text-decoration: none;
    transition: color 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    padding: 5px 10px;
    border-radius: 5px;
}

.contact-list li a:hover {
    color: #c10a28;
    background-color: rgba(193, 10, 40, 0.1);
}

.contact-list li a i {
    margin-left: 8px;
}

.map-link {
    display: inline-flex;
    align-items: center;
    margin-top: 15px;
    color: #c10a28;
    text-decoration: none;
    font-size: 1.3rem;
    transition: color 0.3s, transform 0.3s ease;
    padding: 8px 15px;
    border-radius: 5px;
}

.map-link:hover {
    color: green;
    transform: translateY(-3px);
    background-color: rgba(0, 128, 0, 0.1);
}

.map-link i {
    margin-left: 8px;
}

/* الفوتر */
.footer {
    background-color: #c10a28;
    color: #fff;
    padding: 60px 0 0;
}

.footer-content {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-logo {
    flex: 1;
    min-width: 250px;
}

.footer-logo img {
    max-width: 150px;
    max-width: 30%;
    height: auto;
}

.footer-logo p {
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.6;
}

.footer-links {
    flex: 1;
    min-width: 200px;
}

.footer-links h3 {
    font-size: 1.5rem;
    margin-bottom: 20px;
    color: #fff;
}

.footer-links ul {
    list-style: none;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: color 0.3s ease;
    font-size: 1.1rem;
    display: inline-block;
    padding: 5px 0;
}

.footer-links a:hover {
    color: rgb(62, 36, 211);
    transform: translateX(-5px);
}

.footer-social {
    flex: 1;
    min-width: 200px;
}

.footer-social h3 {
    font-size: 1.5rem;
    margin-bottom: 20px;
    color: #fff;
}

.social-icons {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.social-icons a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: #fff;
    border-radius: 50%;
    color: #c10a28;
    font-size: 1.2rem;
    transition: all 0.3s ease;
}

.social-icons a:hover {
    background-color: rgb(62, 36, 211);
    color: white;
    transform: translateY(-5px) scale(1.1);
}

.footer-bottom {
    text-align: center;
    padding: 20px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
}

/* تصميم متجاوب */
@media (max-width: 992px) {
    .nav-links {
        display: none;
    }
    
    .menu-toggle {
        display: block;
        order: 1;
    }
    
    .welcome-text {
        font-size: 2.5rem;
    }
    .logo{
        order: 2;
        position: static;
        transform: none;
    }
}

@media (max-width: 768px) {
    .section-title {
        font-size: 2rem;
    }
    
    .welcome-text {
        font-size: 2rem;
    }
    
    .feature-box {
        padding: 20px;
    }
    
    .download-content {
        flex-direction: column;
        text-align: center;
    }
    
    .download-arrow-container {
        justify-content: center;
        margin-bottom: 20px;
    }
    
    .contact-methods {
        flex-direction: column;
        gap: 30px;
    }
    
    .footer-content {
        flex-direction: column;
        gap: 30px;
        text-align: center;
    }
    
    .footer-logo img {
        margin-left: auto;
        margin-right: auto;
    }
    
    .social-icons {
        justify-content: center;
    }

    .contact-method {
        min-width: 100%;
    }

    .contact-list li,
    .contact-list li a {
        font-size: 1.3rem;
    }
}

@media (max-width: 576px) {
    .nav-container {
        padding: 0 1rem;
        justify-content: space-between;
    }

    .hero-section {
        height: 70vh;
    }
    
    .logo {
        position: absolute;
        left: 50%;
        transform: translateX(-50%);
    }
    
    .logo img {
        height: 100px;
    }
    
    .menu-toggle {
        position: static;
        order: 1;
        margin-left: auto;
    }
    
    .welcome-text {
        font-size: 1.8rem;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .feature-icon {
        font-size: 2.5rem;
    }
    
    .feature-box h3 {
        font-size: 1.3rem;
    }
    
    .download-btn img {
        height: 50px;
    }
    
    .contact-method {
        padding: 20px;
    }
    
    .contact-method h3 {
        font-size: 1.4rem;
        direction: ltr;
        text-align: center;
    }
    
    .contact-list li a {
        font-size: 1.2rem;
        direction: ltr;
        text-align: center;
    }

    .contact-list li {
        font-size: 1.2rem;
    }
    
    .mobile-menu {
        width: 75%;
    }
}

/* تحسينات الأداء */
img[loading="lazy"] {
    opacity: 0;
    transition: opacity 0.3s ease;
}

img[loading="lazy"].loaded {
    opacity: 1;
}

/* تحسينات للفيديو */
video {
    backface-visibility: hidden;
    transform: translateZ(0);
    will-change: transform;
}
