/* الخطوط */
@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@400;700&display=swap');

/* الأساسيات */
:root {
    --primary-color: #A2D5F2; /* أزرق فاتح */
    --secondary-color: #FFC0CB; /* وردي فاتح */
    --background-color: #F5F5F5; /* رمادي فاتح */
    --text-color: #333333; /* رمادي داكن */
    --border-color: #E0E0E0; /* رمادي فاتح جدًا */
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Cairo', sans-serif;
}

body {
    background-color: var(--background-color);
    color: var(--text-color);
    line-height: 1.6;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}
/* صفحة التحميل */
#loading {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--primary-color);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.5s ease;
}

    #loading p {
        margin-top: 20px;
        font-size: 1.5rem;
        color: #fff;
    }

.loader {
    border: 8px solid #f3f3f3;
    border-top: 8px solid var(--secondary-color);
    border-radius: 50%;
    width: 60px;
    height: 60px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}
/* الهيدر */
header {
    background: var(--primary-color);
    color: #fff;
    padding: 20px 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
}

    header .container {
        display: flex;
        justify-content: space-between;
        align-items: center;
    }

        header .container .logo {
            font-size: 1.5rem;
            font-weight: bold;
            cursor: pointer;
        }

@media (max-width: 767px) {
    header .container .logo {
        font-size: 1.2rem;
    }

    header {
        padding: 10px 0;
    }
}

.nav {
    display: flex;
    align-items: center;
    gap: 23px;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-links {
    list-style: none;
    display: flex;
    justify-content: center;
    align-items: center;
}

.nav-link i {
    color: white;
    font-size: 23px;
    margin: 0;
}

.nav-links li {
    margin: 0 15px;
}

    .nav-links li a {
        color: #fff;
        text-decoration: none;
        font-weight: bold;
        transition: color 0.3s ease;
    }

        .nav-links li a:hover {
            color: #ff6b6b;
        }

.menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

    .menu-toggle .bar {
        width: 25px;
        height: 3px;
        background: #fff;
        margin: 4px 0;
        transition: all 0.3s ease;
    }

/* انيميشن القائمة */
.nav-links.active {
    display: flex;
    flex-direction: column;
    background: #333;
    position: absolute;
    top: 70px;
    right: 0;
    width: 100%;
    padding: 10px 0;
    animation: slideDown 0.5s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ريسبونسف */
@media (max-width: 768px) {
    .menu-toggle {
        display: flex;
    }

    .nav-links {
        display: none;
    }

        .nav-links.active {
            display: flex;
        }

    header h1 {
        font-size: 1.5rem;
    }

    .nav-links li {
        margin: 10px 0;
    }
}

/* باقي التصميمات */
.section {
    display: none; /* إخفاء جميع الأقسام بشكل افتراضي */
    padding: 100px 0;
}

    .section.active {
        display: block; /* عرض القسم النشط فقط */
    }

/* قسم الصفحة الرئيسية */
#home {
    padding: 0;
    overflow: hidden;
}

.hero {
    background-image: url('img/Background/b2.jpg'); /* صورة الخلفية */
    background-size: cover;
    background-position: center;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #fff;
    position: relative;
}

    .hero::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.5); /* طبقة داكنة على الصورة */
    }

.hero-content {
    position: relative;
    z-index: 1;
}

.hero h1 {
    font-size: 4rem;
    margin-bottom: 20px;
    animation: fadeInDown 1s ease;
}

.hero p {
    font-size: 1.5rem;
    margin-bottom: 30px;
    animation: fadeInUp 1s ease;
}

.cta-button {
    padding: 15px 30px;
    background-color: var(--primary-color);
    color: #fff;
    border: none;
    border-radius: 5px;
    font-size: 1.2rem;
    text-decoration: none;
    transition: background-color 0.3s ease;
    animation: fadeIn 1.5s ease;
}

    .cta-button:hover {
        background-color: var(--secondary-color);
    }

/* إحصائيات الشركة */
.stats {
    display: flex;
    justify-content: space-around;
    padding: 60px 20px;
    background-color: #fff;
    text-align: center;
}

.stat-item {
    flex: 1;
    max-width: 300px;
}

    .stat-item i {
        font-size: 3rem;
        color: #ff6b6b;
        margin-bottom: 15px;
    }

    .stat-item h3 {
        font-size: 2.5rem;
        margin-bottom: 10px;
        color: #333;
    }

    .stat-item p {
        font-size: 1.2rem;
        color: #555;
    }

@media (max-width: 767px) {
    .stat-item {
        margin-bottom: 20px;
    }

        .stat-item:last-child {
            margin-bottom: 0;
        }

        .stat-item i {
            font-size: 2.5rem;
        }

        .stat-item h3 {
            font-size: 2rem;
        }

        .stat-item p {
            font-size: 1rem;
        }

    .hero h1 {
        font-size: 2rem;
    }

    .hero p {
        font-size: 1rem;
    }

    .cta-button {
        padding: 10px 20px;
        font-size: 1rem;
    }
}

/* عرض سريع للخدمات */
.services-preview {
    padding: 60px 20px;
    background-color: #f9f9f9;
    text-align: center;
}

    .services-preview h2 {
        font-size: 2.5rem;
        margin-bottom: 40px;
        color: #333;
    }

.services-grid {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 20px;
}

.service-card {
    background-color: #fff;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    max-width: 300px;
    transition: transform 0.3s ease;
    cursor: pointer;
}

    .service-card:hover {
        transform: translateY(-10px);
    }

    .service-card i {
        font-size: 2.5rem;
        color: #ff6b6b;
        margin-bottom: 15px;
    }

    .service-card h3 {
        font-size: 1.8rem;
        margin-bottom: 10px;
        color: #333;
    }

    .service-card p {
        font-size: 1.1rem;
        color: #555;
    }

/* أنيميشن */
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-50px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

#services {
    margin-top: 40px;
}

.services {
    background: #fff;
    text-align: center;
}

#services h2 {
    text-align: center;
}

.services h2 {
    font-size: 2rem;
    margin-bottom: 30px;
}

.service-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.service-item {
    width: 250px;
    padding: 20px;
    background: #f4f4f4;
    border-radius: 10px;
    margin: 10px 0;
    cursor: pointer;
    transition: transform 0.3s ease;
}

    .service-item:hover {
        transform: scale(1.05);
    }

    .service-item i {
        font-size: 2rem;
        margin-bottom: 10px;
    }

    .service-item h3 {
        font-size: 1.5rem;
        margin-bottom: 10px;
    }

.service-details {
    margin-top: 20px;
    padding: 20px;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 10px;
    display: none;
}

    .service-details.active {
        display: block;
    }

.testimonials {
    background: #f4f4f4;
    text-align: center;
}

.testimonial-list {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
}

.testimonial-item {
    width: 45%;
    padding: 20px;
    background: #fff;
    border-radius: 10px;
    margin: 10px 0;
}

    .testimonial-item p {
        font-size: 1.2rem;
        margin-bottom: 10px;
    }

    .testimonial-item h3 {
        font-size: 1.2rem;
        color: #555;
    }

.rating .star {
    color: gold;
    font-size: 1.2rem;
}

.add-testimonial {
    margin-top: 30px;
}

    .add-testimonial textarea {
        width: 90%;
        max-width: 1200px;
        padding: 10px;
        margin: 10px auto;
        border: 1px solid #ddd;
        border-radius: 5px;
    }

.rating-input .star {
    cursor: pointer;
    font-size: 1.5rem;
    color: #ddd;
}

    .rating-input .star.active, .rating-input .star:hover {
        color: gold;
    }

/* قسم اتصل بنا */
#contact {
    background-color: #f9f9f9;
    padding: 60px 0;
    text-align: center;
}

    #contact h2 {
        font-size: 2.5rem;
        margin-bottom: 40px;
        margin-top: 20px;
        color: #333;
    }

.contact-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 40px;
    max-width: 1000px;
    margin: 0 auto;
}

.contact-info, .contact-form {
    flex: 1;
    min-width: 300px;
}

.contact-info {
    text-align: right;
    background-color: #fff;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.info-item {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}

    .info-item i {
        font-size: 1.5rem;
        color: #ff6b6b;
        margin-left: 10px;
    }

    .info-item p {
        font-size: 1.1rem;
        color: #555;
        margin: 0;
    }

.social-icons {
    display: flex;
    justify-content: flex-end;
    gap: 15px;
    margin-top: 20px;
}

    .social-icons a {
        color: #333;
        font-size: 1.5rem;
        transition: color 0.3s ease;
    }

        .social-icons a:hover {
            color: #ff6b6b;
        }

.contact-form {
    background-color: #fff;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

    .contact-form input,
    .contact-form textarea {
        width: 100%;
        padding: 10px;
        margin-bottom: 15px;
        border: 1px solid #ccc;
        border-radius: 5px;
        font-size: 1rem;
    }

    .contact-form textarea {
        height: 150px;
        resize: vertical;
    }

    .contact-form button {
        padding: 10px 20px;
        background-color: var(--primary-color);
        color: #fff;
        border: none;
        border-radius: 5px;
        font-size: 1rem;
        cursor: pointer;
        transition: background-color 0.3s ease;
    }

        .contact-form button:hover {
            background-color: var(--secondary-color);
        }

/* الفوتر */
footer {
    background-color: var(--primary-color);
    color: var(--text-color);
    padding: 40px 0 0px 0;
    text-align: center;
}

    footer .container {
        display: flex;
        flex-wrap: wrap;
        justify-content: space-between;
        gap: 20px;
    }

.footer-section {
    flex: 1;
    min-width: 200px;
    margin-bottom: 20px;
}

    .footer-section h3 {
        font-size: 1.5rem;
        margin-bottom: 15px;
        color: #ff6b6b;
    }

    .footer-section p {
        font-size: 1rem;
        line-height: 1.6;
        color: var(--text-color);
    }

.footer-section ul {
    list-style: none;
    padding: 0;
}

.footer-section ul li {
    margin-bottom: 10px;
    font-size: 1rem;
    color: var(--text-color);
}

.footer-section ul li i {
    margin-right: 10px;
    color: #ff6b6b;
}

.footer-section ul li a {
    color: var(--text-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section ul li a:hover {
    color: #ff6b6b;
}

.social-icons {
    display: flex;
    justify-content: center;
    gap: 15px;
}

.social-icons a {
    color: var(--text-color);
    font-size: 1.5rem;
    transition: color 0.3s ease;
}

.social-icons a:hover {
    color: #ff6b6b;
}

.footer-bottom {
    background-color: #222;
    padding: 10px 0;
    margin-top: 20px;
    display: flex;
    justify-content: center;
}

.footer-bottom p {
    margin: 0;
    font-size: 0.9rem;
    color: #ddd;
}

.fixed-buttons {
    position: fixed;
    bottom: 20px;
    right: 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.fixed-buttons a {
    background: var(--primary-color);
    color: #fff;
    padding: 10px;
    border-radius: 50%;
    text-align: center;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-size: 1.5rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.fixed-buttons a:hover {
    background: var(--secondary-color);
}

.footer-bottom .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #fff;
    text-align: center;
    text-align: center;
    width: fit-content;
}

/* تسجيل الدخول وإنشاء حساب */
.auth-container {
    max-width: 400px;
    margin: 100px auto;
    padding: 20px;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    text-align: center;
}

    .auth-container h2 {
        font-size: 1.8rem;
        margin-bottom: 20px;
    }

    .auth-container input {
        width: 100%;
        padding: 10px;
        margin: 10px 0;
        border: 1px solid #ccc;
        border-radius: 5px;
    }

    .auth-container button {
        width: 100%;
        padding: 10px;
        background: var(--primary-color);
        color: #fff;
        border: none;
        border-radius: 5px;
        cursor: pointer;
        font-size: 1rem;
        margin-top: 10px;
    }

        .auth-container button:hover {
            background: var(--secondary-color);
        }

    .auth-container p {
        margin-top: 15px;
        font-size: 0.9rem;
    }

    .auth-container a {
        color: var(--primary-color);
        text-decoration: none;
    }

        .auth-container a:hover {
            text-decoration: underline;
        }

.articles {
    padding-top: var(--main-padding-top);
    padding-bottom: var(--main-padding-bottom);
    position: relative;
    margin-top: 101px;
}

    .articles .container {
        display: grid;
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 40px;
    }

    .articles .box {
        box-shadow: 0 2px 15px rgb(0 0 0 / 10%);
        background-color: white;
        border-radius: 6px;
        overflow: hidden;
        transition: all 0.5s;
    }

        .articles .box:hover {
            transform: translateY(-10px);
            box-shadow: 0 2px 15px rgb(0 0 0 / 20%);
        }

        .articles .box img {
            width: 100%;
            max-width: 100%;
        }

        .articles .box .content {
            padding: 20px;
            direction: rtl;
            height: 170px;
        }

            .articles .box .content h3 {
                margin: 0;
            }

            .articles .box .content p {
                margin: 10px 0 0;
                line-height: 1.5;
                color: #777;
            }

        .articles .box .info {
            padding: 20px;
            border-top: 1px solid #e6e6e7;
            display: flex;
            justify-content: space-between;
            align-items: center;
            direction: rtl;
        }

            .articles .box .info a {
                color: var(--primary-color);
                font-weight: bold;
                background: var(--primary-color);
                color: white;
                display: flex;
                padding: 9px;
                border-radius: 10px;
                align-items: center;
                justify-content: space-between;
            }

                .articles .box .info a img {
                    margin-right: 10px;
                    width: 30px;
                }

        .articles .box:hover .info i {
            animation: moving-arrow 0.6s linear infinite;
        }

/* Start Testimonials */
.testimonials {
    padding-top: var(--main-padding-top);
    padding-bottom: var(--main-padding-bottom);
    position: relative;
    z-index: 1;
    background-color: var(--background-color);
}

    .testimonials .container {
        display: grid;
        grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
        gap: 40px;
    }

.containerform {
    padding-left: 15px;
    padding-right: 15px;
    margin-left: auto;
    display: grid;
    margin-right: auto;
}

.testimonials .containerform .subscribe {
    width: 100%;
    margin-top: 50px;
    margin: 8px auto;
}

label {
    cursor: pointer;
}

svg {
    width: 3rem;
    height: 3rem;
    padding: 0.15rem;
}

input[name="star"] {
    display: inline-block;
    width: 0;
    opacity: 0;
    margin-left: -2px;
}

.star-source {
    width: 0;
    height: 0;
    visibility: hidden;
}

.star {
    color: transparent;
    transition: color 0.2s ease-in-out;
}

.star-container {
    display: flex;
    flex-direction: row-reverse;
    justify-content: center;
}

label:hover ~ label .star,
svg.star:hover,
input[name="star"]:focus ~ label .star,
input[name="star"]:checked ~ label .star {
    color: #bbff00;
}

input[name="star"]:checked + label .star {
    animation: starred 0.5s;
}

input[name="star"]:checked + label {
    animation: scaleup 1s;
}

@keyframes scaleup {
    from {
        transform: scale(1.2);
    }

    to {
        transform: scale(1);
    }
}

@keyframes starred {
    from {
        color: #600040;
    }

    to {
        color: #bbff00;
    }
}

.testimonials .containerform .subscribe form {
    margin: 47px auto;
    padding: 30px 40px;
    background-color: var(--primary-color);
    border-radius: 50px;
    display: flex;
    direction: rtl;
    gap: 20px;
}

@media (max-width: 767px) {
    .testimonials .containerform .subscribe form {
        max-width: 100%;
        padding: 20px;
        flex-direction: column;
        direction: rtl;
        border-radius: 0;
    }
}

.testimonials .containerform .subscribe form input[type="text"] {
    padding: 20px;
    border-radius: 50px;
    border: none;
    direction: rtl;
    flex: 1;
    caret-color: var(--primary-color);
}

@media (max-width: 767px) {
    .testimonials .containerform .subscribe form input[type="text"] {
        border-radius: 0;
    }
}

.testimonials .containerform .subscribe form input[type="text"]:focus {
    outline: none;
}

.testimonials .containerform .subscribe form input[type="text"]::placeholder {
    transition: opacity var(--main-transition);
}

.testimonials .containerform .subscribe form input[type="text"]:focus::placeholder {
    opacity: 0;
}

.testimonials .containerform .subscribe form input[type="submit"] {
    border-radius: 50px;
    border: none;
    background-color: #ffffff;
    color: #000957;
    font-weight: bold;
    font-size: 19px;
    padding: 23px;
    cursor: pointer;
    transition: var(--main-transition);
}

@media (max-width: 767px) {
    .testimonials .containerform .subscribe form input[type="submit"] {
        border-radius: 0;
    }
}

.testimonials .containerform .subscribe form input[type="submit"]:hover {
    background-color: #ececec;
}

.testimonials .box {
    padding: 20px;
    background-color: white;
    box-shadow: 0 2px 4px rgb(0 0 0 / 7%);
    border-radius: 6px;
    position: relative;
    direction: rtl;
    text-align: right;
}

    .testimonials .box img {
        position: absolute;
        left: -10px;
        top: -16px;
        width: 100px;
        height: 100px;
        border-radius: 50%;
        border: 10px solid var(--background-color);
    }

    .testimonials .box h3 {
        margin: 0 0 10px;
    }

    .testimonials .box .title {
        color: #777;
        margin-bottom: 10px;
        display: block;
    }

    .testimonials .box .rate .filled {
        color: #ffc107;
    }

    .testimonials .box p {
        line-height: 1.5;
        color: #777;
        margin-top: 10px;
        margin-bottom: 0;
    }

.form .submit:hover {
    background-color: var(--clr);
    color: var(--bg-dark);
}

.span {
    text-decoration: none;
    color: var(--bg-dark);
}

    .span a {
        color: var(--clr);
    }

@media (max-width: 767px) {
    .form {
        width: 287px;
    }

    .label {
        font-size: 17px;
    }
}

.rating:not(:checked) > input {
    position: absolute;
    appearance: none;
}

.rating:not(:checked) > label {
    float: right;
    cursor: pointer;
    font-size: 30px;
    fill: #666;
}

    .rating:not(:checked) > label > svg {
        fill: #666;
        transition: fill 0.3s ease;
    }

.rating > input:checked + label:hover,
.rating > input:checked + label:hover ~ label,
.rating > input:checked ~ label:hover,
.rating > input:checked ~ label:hover ~ label,
.rating > label:hover ~ input:checked ~ label {
    fill: #e58e09;
}

.rating:not(:checked) > label:hover,
.rating:not(:checked) > label:hover ~ label {
    fill: #ff9e0b;
}

.rating > input:checked ~ label > svg {
    fill: #ffa723;
}

.Star-rating {
    display: flex;
    align-items: center;
    justify-content: center;
}

form button[type="submit"] {
    padding: 4px 20px;
    background-color: violet;
    border: none;
    color: white;
    font-size: 17px;
    font-weight: 900;
    margin-bottom: 51px;
}

/* End Testimonials */
#about {
    background-color: #f9f9f9;
    padding: 60px 0;
    text-align: center;
}

    #about h2 {
        font-size: 2.5rem;
        margin-bottom: 20px;
        color: #333;
        margin-top: 20px;
    }

    #about p {
        font-size: 1.2rem;
        line-height: 1.8;
        color: #555;
        max-width: 800px;
        margin: 0 auto 40px auto;
        padding: 0 20px;
    }

.about-image img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    margin-bottom: 40px;
}

.about-map {
    margin-top: 40px;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}


/* Modal Styles */
.modal {
    display: none; /* Hidden by default */
    position: fixed; /* Stay in place */
    z-index: 1000; /* Sit on top */
    left: 0;
    top: 0;
    width: 100%; /* Full width */
    height: 100%; /* Full height */
    overflow: auto; /* Enable scroll if needed */
    background-color: rgba(0, 0, 0, 0.5); /* Black with opacity */
    
}

#modalTitle {
    color: #A2D5F2;
}
.modal-content {
    background-color: #fefefe;
    margin: 20% auto; /* 10% from the top and centered */
    padding: 20px;
    border: 1px solid #888;
    width: 80%; /* Could be more or less, depending on screen size */
    max-width: 600px;
    border-radius: 10px;
    text-align: center;
}

.close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

.close:hover,
.close:focus {
    color: black;
    text-decoration: none;
}


a {
    color:#fff;
    text-decoration: none;
}