:root {
    --primary-color: #2C5CB0;
    --secondary-color: #1A4A8C;
    --accent-color: #F39C12;
    --text-dark: #2C3E50;
    --text-light: #7F8C8D;
    --background-light: #F8F9FA;
    --white: #FFFFFF;
    --border-color: #E1E8ED;
    --shadow: 0 2px 10px rgba(0,0,0,0.1);
    --gradient: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
}

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

body {
    font-family: 'Cairo', 'Inter', sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    direction: rtl;
    text-align: right;
}

body.en {
    direction: ltr;
    text-align: left;
    font-family: 'Inter', 'Cairo', sans-serif;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    margin-bottom: 1rem;
}

.section-title {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--text-light);
    margin-bottom: 2rem;
}

/* Language Toggle */
.language-toggle {
    position: fixed;
    top: 20px;
    left: 20px;
    z-index: 1050;
}

.language-toggle .btn {
    border-radius: 25px;
    padding: 8px 15px;
    font-size: 0.9rem;
}

/* Navigation */
.navbar {
    padding: 1rem 0;
    transition: all 0.3s ease;
}

.navbar-brand {
    display: flex;
    align-items: center;
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--primary-color) !important;
}

.brand-text {
    color: var(--primary-color);
}

.nav-link {
    font-weight: 500;
    color: var(--text-dark) !important;
    margin: 0 0.5rem;
    transition: color 0.3s ease;
}

.nav-link:hover {
    color: var(--primary-color) !important;
}

.nav-download-btn {
    border-radius: 25px;
    padding: 8px 20px;
    margin-right: 1rem;
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, rgba(44, 92, 176, 0.1), rgba(26, 74, 140, 0.1));
    padding: 100px 0 50px;
    position: relative;
    overflow: hidden;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

.hero-subtitle {
    font-size: 1.3rem;
    color: var(--text-light);
    margin-bottom: 2rem;
}

.hero-stats {
    display: flex;
    gap: 2rem;
    margin: 2rem 0;
}

.stat-item {
    text-align: center;
}

.stat-item h3 {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.stat-item p {
    color: var(--text-light);
    font-size: 0.9rem;
}

.hero-buttons {
    margin-top: 2rem;
}

.hero-buttons .btn {
    border-radius: 50px;
    padding: 12px 30px;
    font-weight: 600;
    font-size: 1.1rem;
}

.hero-image {
    position: relative;
}

.floating-card {
    position: absolute;
    top: 20px;
    right: 20px;
    background: white;
    padding: 15px 20px;
    border-radius: 15px;
    box-shadow: var(--shadow);
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Service Cards */
.services-section {
    padding: 80px 0;
}

.service-card {
    background: white;
    padding: 2rem;
    border-radius: 20px;
    box-shadow: var(--shadow);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

.service-icon {
    width: 80px;
    height: 80px;
    background: var(--gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
}

.service-icon i {
    font-size: 2rem;
    color: white;
}

.service-card h4 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.service-card p {
    color: var(--text-light);
    margin-bottom: 1.5rem;
}

/* How It Works */
.step-card {
    background: white;
    padding: 2rem;
    border-radius: 20px;
    box-shadow: var(--shadow);
    position: relative;
    transition: transform 0.3s ease;
}

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

.step-number {
    position: absolute;
    top: -20px;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 40px;
    background: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.2rem;
}

.step-icon {
    width: 80px;
    height: 80px;
    background: rgba(44, 92, 176, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 2rem auto 1.5rem;
}

.step-icon i {
    font-size: 2rem;
    color: var(--primary-color);
}

/* App Features */
.app-features {
    padding: 80px 0;
}

.feature-list {
    margin-top: 2rem;
}

.feature-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: white;
    border-radius: 15px;
    box-shadow: var(--shadow);
    transition: transform 0.3s ease;
}

.feature-item:hover {
    transform: translateX(-10px);
}

.feature-item i {
    font-size: 1.5rem;
    margin-top: 0.25rem;
    min-width: 24px;
}

.feature-item h5 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.feature-item p {
    color: var(--text-light);
    margin: 0;
}

/* Screenshots */
.screenshot-card {
    background: white;
    padding: 1rem;
    border-radius: 20px;
    box-shadow: var(--shadow);
    text-align: center;
    transition: transform 0.3s ease;
}

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

.screenshot-card img {
    border-radius: 15px;
    margin-bottom: 1rem;
}

.screenshot-card h5 {
    color: var(--primary-color);
    margin: 0;
}

/* Service Areas */
.area-card {
    background: white;
    padding: 1.5rem;
    border-radius: 15px;
    box-shadow: var(--shadow);
    text-align: center;
    transition: transform 0.3s ease;
}

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

.area-card i {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.area-card h5 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.area-card p {
    color: var(--text-light);
    margin: 0;
    font-size: 0.9rem;
}

/* Team Section */
.team-card {
    background: white;
    padding: 2rem;
    border-radius: 20px;
    box-shadow: var(--shadow);
    transition: transform 0.3s ease;
}

.team-card:hover {
    transform: translateY(-10px);
}

.team-image {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 1.5rem;
}

.team-card h5 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.team-card p {
    color: var(--text-light);
    margin-bottom: 1rem;
}

.team-rating {
    margin-top: 1rem;
}

/* Testimonials */
.testimonial-card {
    background: white;
    padding: 2rem;
    border-radius: 20px;
    box-shadow: var(--shadow);
    text-align: center;
    height: 100%;
    transition: transform 0.3s ease;
}

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

.testimonial-rating {
    margin-bottom: 1.5rem;
}

.testimonial-rating i {
    font-size: 1.2rem;
    margin: 0 2px;
}

.testimonial-card p {
    font-style: italic;
    color: var(--text-dark);
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

.testimonial-author {
    color: var(--primary-color);
    font-weight: 600;
}

/* Portfolio */
.portfolio-card {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform 0.3s ease;
}

.portfolio-card:hover {
    transform: scale(1.05);
}

.portfolio-card img {
    width: 100%;
    height: 250px;
    object-fit: cover;
}

.portfolio-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0,0,0,0.8));
    color: white;
    padding: 2rem 1.5rem 1.5rem;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.portfolio-card:hover .portfolio-overlay {
    transform: translateY(0);
}

.portfolio-overlay h5 {
    margin-bottom: 0.5rem;
}

.portfolio-overlay p {
    margin: 0;
    font-size: 0.9rem;
}

/* Guarantee */
.guarantee-features {
    margin-top: 2rem;
}

.guarantee-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: white;
    border-radius: 15px;
    box-shadow: var(--shadow);
}

.guarantee-item i {
    font-size: 1.5rem;
    margin-top: 0.25rem;
    min-width: 24px;
}

.guarantee-item h5 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.guarantee-item p {
    color: var(--text-light);
    margin: 0;
}

/* Pricing */
.pricing-card {
    background: white;
    padding: 2.5rem 2rem;
    border-radius: 20px;
    box-shadow: var(--shadow);
    text-align: center;
    position: relative;
    transition: transform 0.3s ease;
    height: 100%;
}

.pricing-card:hover {
    transform: translateY(-10px);
}

.pricing-card.featured {
    border: 3px solid var(--primary-color);
    transform: scale(1.05);
}

.pricing-badge {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--accent-color);
    color: white;
    padding: 8px 20px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
}

.pricing-header {
    margin-bottom: 2rem;
}

.pricing-header h4 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.price {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    margin-bottom: 2rem;
}

.currency {
    font-size: 1.2rem;
    color: var(--text-light);
}

.amount {
    font-size: 3rem;
    font-weight: 700;
    color: var(--primary-color);
}

.pricing-features {
    list-style: none;
    padding: 0;
    margin-bottom: 2rem;
}

.pricing-features li {
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--border-color);
    color: var(--text-dark);
}

.pricing-features li:last-child {
    border-bottom: none;
}

/* Emergency */
.emergency-card {
    background: var(--gradient);
    color: white;
    padding: 3rem 2rem;
    border-radius: 20px;
    box-shadow: var(--shadow);
}

.emergency-content h2 {
    color: white;
    margin-bottom: 1rem;
}

.emergency-content p {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.emergency-features {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
}

.emergency-feature {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 500;
}

.emergency-feature i {
    font-size: 1.5rem;
}

.emergency-phone {
    text-align: center;
}

.emergency-phone i {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: var(--accent-color);
}

.emergency-phone h3 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.emergency-phone p {
    margin: 0;
    opacity: 0.9;
}

/* FAQ */
.accordion-item {
    border: none;
    border-radius: 15px !important;
    margin-bottom: 1rem;
    box-shadow: var(--shadow);
}

.accordion-button {
    background: white;
    border: none;
    border-radius: 15px;
    padding: 1.5rem;
    font-weight: 600;
    color: var(--primary-color);
}

.accordion-button:not(.collapsed) {
    background: var(--primary-color);
    color: white;
}

.accordion-body {
    padding: 1.5rem;
    color: var(--text-dark);
}

/* About */
.about-stats {
    display: flex;
    gap: 2rem;
    margin: 2rem 0;
}

.stat {
    text-align: center;
}

.stat h3 {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.stat p {
    color: var(--text-light);
    margin: 0;
}

.about-features {
    margin-top: 2rem;
}

.feature {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
    padding: 1rem;
    background: white;
    border-radius: 10px;
    box-shadow: var(--shadow);
}

.feature i {
    font-size: 1.5rem;
}

.feature span {
    color: var(--text-dark);
    font-weight: 500;
}

/* Download Section */
.download {
    background: var(--gradient);
    color: white;
}

.download-content h2 {
    color: white;
    margin-bottom: 1rem;
}

.download-content p {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.download-buttons {
    margin-bottom: 2rem;
}

.download-buttons .btn {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.5rem;
    border-radius: 15px;
    color: var(--primary-color) !important;
    text-decoration: none;
    transition: transform 0.3s ease;
}

.download-buttons .btn:hover {
    transform: translateY(-3px);
}

.download-buttons .btn i {
    font-size: 2rem;
}

.download-buttons .btn div {
    text-align: left;
}

.download-buttons .btn small {
    display: block;
    font-size: 0.8rem;
}

.download-buttons .btn strong {
    font-size: 1.1rem;
}

.download-stats {
    display: flex;
    gap: 2rem;
}

.download-stats .stat-item {
    text-align: center;
}

.download-stats strong {
    display: block;
    font-size: 1.5rem;
    margin-bottom: 0.25rem;
}

.download-stats span {
    font-size: 0.9rem;
    opacity: 0.8;
}

.app-phone {
    max-width: 300px;
    margin: 0 auto;
}

/* Contact */
.contact-card {
    background: white;
    padding: 2rem;
    border-radius: 20px;
    box-shadow: var(--shadow);
    transition: transform 0.3s ease;
}

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

.contact-card i {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.contact-card h4 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.contact-card p {
    color: var(--text-light);
    margin: 0;
}

.contact-form {
    background: white;
    padding: 2rem;
    border-radius: 20px;
    box-shadow: var(--shadow);
}

.contact-form .form-control {
    border: 2px solid var(--border-color);
    border-radius: 10px;
    padding: 12px 15px;
    margin-bottom: 1rem;
}

.contact-form .form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(44, 92, 176, 0.25);
}

/* Footer */
.footer {
    background: #1a1a1a !important;
}

.footer-brand h4 {
    color: white;
    margin-bottom: 1rem;
}

.footer-brand p {
    color: #ccc;
    margin-bottom: 2rem;
}

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

.social-links a {
    width: 40px;
    height: 40px;
    background: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: transform 0.3s ease;
}

.social-links a:hover {
    transform: translateY(-3px);
}

.footer h5 {
    color: white;
    margin-bottom: 1.5rem;
}

.footer-links {
    list-style: none;
    padding: 0;
}

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

.footer-links a {
    color: #ccc;
    text-decoration: none;
    transition: color 0.3s ease;
}

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

.app-store-badges {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 2rem;
}

.app-badge {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 10px 15px;
    background: var(--primary-color);
    color: white;
    border-radius: 10px;
    text-decoration: none;
    transition: transform 0.3s ease;
}

.app-badge:hover {
    transform: translateY(-2px);
    color: white;
}

.contact-info p {
    color: #ccc;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.contact-info i {
    color: var(--primary-color);
    width: 16px;
}

.footer-link {
    color: #ccc;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-link:hover {
    color: var(--primary-color);
}

/* Back to Top */
.btn-back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 50%;
    display: none;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    cursor: pointer;
    z-index: 1000;
    transition: transform 0.3s ease;
}

.btn-back-to-top:hover {
    transform: translateY(-3px);
}

.btn-back-to-top.show {
    display: flex;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .hero-stats {
        gap: 1rem;
    }
    
    .stat-item h3 {
        font-size: 2rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .hero-buttons .btn {
        display: block;
        margin-bottom: 1rem;
        width: 100%;
    }
    
    .download-buttons .btn {
        margin-bottom: 1rem;
        width: 100%;
    }
    
    .emergency-features {
        flex-direction: column;
        gap: 1rem;
    }
    
    .about-stats {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
    
    .download-stats {
        justify-content: center;
    }
    
    .pricing-card.featured {
        transform: none;
        margin-bottom: 2rem;
    }
}

@media (max-width: 576px) {
    .hero-stats {
        flex-direction: column;
        text-align: center;
        gap: 1.5rem;
    }
    
    .language-toggle {
        top: 10px;
        left: 10px;
    }
    
    .navbar-brand {
        font-size: 1.2rem;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-in-up {
    animation: fadeInUp 0.6s ease-out;
}

/* Button Styles */
.btn-primary {
    background: var(--gradient);
    border: none;
    border-radius: 25px;
    padding: 12px 30px;
    font-weight: 600;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.btn-primary:hover {
    background: var(--gradient);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(44, 92, 176, 0.4);
}

.btn-outline-primary {
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    border-radius: 25px;
    padding: 10px 28px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-outline-primary:hover {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
    transform: translateY(-2px);
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--secondary-color);
}

/* Loading Animation */
.loading {
    opacity: 0.6;
    pointer-events: none;
}

.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid var(--primary-color);
    border-top: 2px solid transparent;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* RTL Adjustments */
body[dir="rtl"] .feature-item:hover {
    transform: translateX(10px);
}

body[dir="ltr"] .feature-item:hover {
    transform: translateX(-10px);
}

/* Print Styles */
@media print {
    .navbar, .language-toggle, .btn-back-to-top, .footer {
        display: none !important;
    }
    
    .hero-section {
        padding: 20px 0 !important;
    }
    
    body {
        font-size: 12pt;
        line-height: 1.4;
    }
}
