/* Global Styles */
:root {
    --primary-color: #0056b3;
    --secondary-color: #00a65a;
    --accent-color: #ff6b35;
    --light-color: #f8f9fa;
    --dark-color: #343a40;
    --text-color: #333;
}

/* Optimize CSS rendering */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Cairo', sans-serif;
    color: var(--text-color);
    line-height: 1.6;
    direction: rtl;
    text-align: right;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

/* Header Styles */
.header {
    background-color: #fff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
}

.navbar {
    padding: 15px 0;
}

.navbar-brand h1 {
    color: var(--primary-color);
    font-weight: 700;
}

.navbar-nav .nav-link {
    color: var(--text-color);
    font-weight: 500;
    margin-right: 15px;
    transition: color 0.3s;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
    color: var(--primary-color);
}

.navbar-toggler {
    border: none;
}

.navbar-toggler:focus {
    box-shadow: none;
}

/* Hero Section */
.hero {
    padding: 120px 0 80px;
    background: linear-gradient(135deg, #f5f7fa 0%, #e4e8f0 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
}

.hero-content h1 {
    color: var(--primary-color);
    margin-bottom: 20px;
    font-size: 2.5rem;
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    color: #555;
}

.hero-buttons .btn {
    padding: 12px 30px;
    font-size: 1.1rem;
    border-radius: 50px;
    font-weight: 600;
}

.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-outline-light {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.btn-outline-light:hover {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.hero-icon i {
    font-size: 15rem;
    color: var(--primary-color);
    opacity: 0.8;
    /* Improve icon rendering */
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
    font-display: swap;
}

/* Services Section */
.services {
    padding: 80px 0;
}

.section-header h2 {
    color: var(--primary-color);
    margin-bottom: 20px;
}

.service-card {
    background-color: #fff;
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s, box-shadow 0.3s;
    text-align: center;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.service-icon {
    width: 80px;
    height: 80px;
    background-color: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    color: white;
    font-size: 2rem;
    /* Improve icon rendering */
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
    font-display: swap;
}

.service-content h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: var(--primary-color);
}

/* About Section */
.about {
    padding: 80px 0;
}

.about-icon i {
    font-size: 12rem;
    color: var(--primary-color);
    opacity: 0.8;
    /* Improve icon rendering */
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
    font-display: swap;
}

.about-content h2 {
    color: var(--primary-color);
    margin-bottom: 20px;
}

.about-feature {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
}

.about-feature i {
    margin-left: 10px;
    font-size: 1.2rem;
}

/* Contact Section */
.contact {
    padding: 80px 0;
}

.contact-card {
    background-color: #fff;
    border-radius: 15px;
    padding: 40px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.contact-number {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.contact-number a {
    color: var(--primary-color);
    text-decoration: none;
}

.contact-number a:hover {
    text-decoration: underline;
}

.contact-number-international {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.contact-number-international a {
    color: var(--primary-color);
    text-decoration: none;
}

.contact-number-international a:hover {
    text-decoration: underline;
}

/* Footer */
.footer {
    padding: 40px 0;
}

.footer h3 {
    color: var(--primary-color);
    margin-bottom: 15px;
}

.footer h5 {
    margin-bottom: 15px;
}

.footer a {
    text-decoration: none;
}

.footer a:hover {
    text-decoration: underline;
}

/* Floating Contact Button */
.floating-contact {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 1000;
}

.floating-btn {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background-color: var(--primary-color);
    color: white;
    border: none;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    transition: transform 0.3s;
}

.floating-btn:hover {
    transform: scale(1.1);
}

.floating-options {
    position: absolute;
    bottom: 80px;
    right: 0;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s;
}

.floating-options.show {
    opacity: 1;
    visibility: visible;
}

.floating-option {
    display: flex;
    align-items: center;
    background-color: white;
    color: var(--text-color);
    padding: 10px 15px;
    border-radius: 30px;
    margin-bottom: 10px;
    text-decoration: none;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s;
}

.floating-option:hover {
    transform: translateX(5px);
}

.floating-option i {
    margin-left: 10px;
    font-size: 1.2rem;
    /* Improve icon rendering */
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
    font-display: swap;
}

.floating-option.whatsapp {
    color: #25d366;
}

.floating-option.call {
    color: var(--primary-color);
}

/* Responsive Styles */
@media (max-width: 768px) {
    .hero {
        text-align: center;
        padding: 100px 0 60px;
    }

    .hero-content h1 {
        font-size: 2rem;
    }

    .hero-buttons {
        margin-top: 30px;
    }

    .about-image {
        margin-bottom: 30px;
    }

    .floating-contact {
        bottom: 20px;
        left: 20px;
    }

    .floating-btn {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
    }
}

@media (max-width: 576px) {
    .hero-content h1 {
        font-size: 1.8rem;
    }

    .service-card {
        margin-bottom: 20px;
    }

    .section-header h2 {
        font-size: 1.8rem;
    }
}