/* 1. Imports & Global Styles */
@import url('https://cdnjs.cloudflare.com/ajax/libs/animate.css/4.1.1/animate.min.css');

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

:root {
    --primary-blue: #2196f3;
    --secondary-green: #4caf50;
    --accent-yellow: #ffc107;
    --dark-text: #2c3e50;
    --light-text: #ffffff;
    --grey-bg: #f4f7f6;
}

body {
    font-family: 'Cairo', sans-serif;
    line-height: 1.6;
    background-color: #fff;
    color: #333;
    direction: rtl;
    text-align: right;
    overflow-x: hidden;
}

a { text-decoration: none; color: inherit; }
ul { list-style: none; }

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}
.btn-primary1{
    display: inline-block;
    background: var(--accent-yellow);
    color: var(--dark-text);
    padding: 12px 25px;
    border-radius: 25px;
    font-size: 1.1rem;
    font-weight: 700;
    transition: 0.3s;
    border: none;
    cursor: pointer;
    animation: pulse-soft 2s infinite ease-in-out;
    backdrop-filter: blur(5px);
}
/* 2. Buttons */
.btn-primary {
    display: inline-block;
    background: var(--accent-yellow);
    color: var(--dark-text);
    padding: 12px 25px;
    border-radius: 25px;
    font-size: 1.1rem;
    font-weight: 700;
    transition: 0.3s;
    border: none;
    cursor: pointer;

}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.btn-secondary {
    display: inline-block;
    background: transparent;
    color: var(--light-text);
    padding: 12px 25px;
    border-radius: 25px;
    font-size: 1.1rem;
    font-weight: 700;
    transition: 0.3s;
    border: 2px solid var(--light-text);
}

/* 3. Header & Navigation (Desktop) */
header {
    background: white;
    padding: 15px 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 5000;
    transition: 0.3s;
}

header.scrolled {
    padding: 10px 0;
    background: rgba(255, 255, 255, 0.98);
}

nav.container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo a {
    display: flex;
    align-items: center;
}

.logo-img {
    height: 50px;
    margin-left: 10px;
}

.company-brand-name {
    color: var(--primary-blue);
    font-size: 1.8rem;
    font-weight: 800;
}

.nav-links {
    display: flex;
    gap: 20px;
}

.nav-links li a {
    color: var(--dark-text);
    font-weight: 600;
    font-size: 1rem;
    transition: 0.3s;
}

.nav-links li a:hover {
    color: var(--primary-blue);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 15px;
}

.menu-toggle {
    display: none;
    font-size: 1.6rem;
    color: var(--primary-blue);
    cursor: pointer;
}

/* 4. Sections Styling */
.hero-section {
    background: url('images/hero.png') no-repeat center center/cover;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    color: white;
    text-align: center;
}

.hero-overlay {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.6);
}

.hero-content { position: relative; z-index: 2; padding: 20px; max-width: 800px; }
.hero-content h1 { font-size: 3.5rem; margin-bottom: 20px; font-weight: 800; }
.hero-content h1 .highlight { color: var(--accent-yellow); }
.hero-content p { font-size: 1.3rem; margin-bottom: 30px; }

section { padding: 80px 0; }
.section-title { text-align: center; font-size: 2.5rem; margin-bottom: 50px; font-weight: 800; position: relative; }
.section-title::after { content: ''; position: absolute; bottom: -10px; left: 50%; transform: translateX(-50%); width: 70px; height: 4px; background: var(--accent-yellow); }

/* Animations */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: 0.8s ease-out;
}
.animate-on-scroll.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* About Us Section */
.about-section {
    padding: 80px 0;
    background-color: var(--light-text);
}

.about-content {
    display: flex;
    flex-wrap: wrap;
    align-items: center; 
    justify-content: space-between;
    gap: 40px; 
}

.about-text {
    flex: 2; 
    min-width: 350px;
    padding: 20px;
}

.about-text p {
    font-size: 1.15rem;
    line-height: 1.8;
    color: #555;
    margin-bottom: 20px;
}

.about-text .highlight-text {
    color: var(--primary-blue);
    font-weight: 700;
}

.about-text .btn-primary {
    margin-top: 20px; 
    background-color: var(--primary-blue);
    color: var(--light-text);
    
}
.about-text .btn-primary:hover {
    background-color: #1976d2;
}

.about-image {
    flex: 1; 
    min-width: 300px; 
    text-align: center;
    position: relative;
    padding: 20px; 
}

.about-image img {
    max-width: 100%;
    height: auto;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1); /* ظل أعمق و أجمل للصورة */
    transition: transform 0.3s ease; /* إضافة انتقال عند التحويم */
}

.about-image img:hover {
    transform: translateY(-5px); /* تأثير رفع خفيف عند التحويم */
}


/* Responsive Design for About Section */
@media (max-width: 992px) {
    .about-content {
        flex-direction: column-reverse; /* جعل الصورة في الأعلى والنص تحتها في الشاشات الصغيرة */
        text-align: center;
    }
    .about-text, .about-image {
        min-width: unset;
        width: 100%;
        padding: 0 15px; /* تقليل البادينج في الشاشات الصغيرة */
    }
    .about-image {
        margin-bottom: 20px; /* مسافة تحت الصورة في الشاشات الصغيرة */
    }
}
@media (max-width: 576px) {
    .about-text p {
        font-size: 1rem;
    }
}

/* Animation Styles - Animate.css integration */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px); 
}
.animate-on-scroll.is-visible {
    animation: fadeInUp 0.8s ease-out forwards;
}

/* Services Section */
.services-section {
    padding: 80px 0;
    background-color: var(--light-bg);
}

.section-title {
    text-align: center;
    font-size: 3rem;
    color: var(--dark-text);
    margin-bottom: 60px;
    position: relative;
    font-weight: 800;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background-color: var(--accent-yellow);
    border-radius: 2px;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.service-item {
    background-color: var(--light-text);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    text-align: center;
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    cursor: pointer;
    opacity: 0;
    transform: translateY(30px);
}

.service-item.is-visible {
    animation: fadeInUp 0.8s ease-out forwards;
}


.service-item:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.service-item i {
    font-size: 3.8rem;
    color: var(--primary-blue);
    margin-bottom: 20px;
    transition: color 0.3s ease;
}

.service-item:hover i {
    color: var(--accent-yellow);
}


.service-item h3 {
    font-size: 1.9rem;
    color: var(--dark-text);
    margin-bottom: 15px;
    font-weight: 700;
}

.service-item p {
    font-size: 1.05rem;
    color: #666;
}

/* Areas Section */
.areas-section {
    /* background-color: var(--primary-blue); */
    color: var(--light-text);
    padding: 80px 0;
    text-align: center;
}



.areas-section .section-title::after {
    background-color: var(--accent-yellow);
}

.areas-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    margin-top: 40px;
}

.area-item {
    background-color: var(--secondary-green);
    padding: 12px 30px;
    border-radius: 25px;
    font-size: 1.2rem;
    font-weight: 700;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.2);
    transition: background-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
    opacity: 0;
    transform: translateY(20px);
}

/* .area-item.is-visible {
    animation: fadeInUp 0.7s ease-out forwards; 
} */
.area-item:hover {
    background-color: #409243;
    transform: translateY(-5px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}
/* Testimonials Section */
.testimonials-section {
    padding: 80px 0;
    background: url('images/عنا.jpg') no-repeat center center fixed; /* استبدل بالصورة الخاصة بك */
    background-size: cover;
    color: var(--light-text);
    position: relative;
    z-index: 1; 
}

.testimonials-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6); 
    z-index: -1;
}

.testimonials-section .section-title {
    color: var(--light-text);
    margin-bottom: 60px;
}
.testimonials-section .section-title::after {
    background-color: var(--accent-yellow);
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    position: relative; 
    z-index: 1;
}

.testimonial-item {
    background-color: var(--light-text);
    color: var(--dark-text);
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
    position: relative;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-align: center;
    opacity: 0;
    transform: translateY(30px);
}

.testimonial-item.is-visible {
    animation: fadeInUp 0.8s ease-out forwards;
}

.testimonial-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 12px 30px rgba(0,0,0,0.25);
}

.testimonial-item .quote-icon {
    font-size: 3rem;
    color: var(--accent-yellow);
    margin-bottom: 20px;
    position: absolute;
    top: 20px;
    right: 20px;
    opacity: 0.2;
}

.testimonial-item .testimonial-text {
    font-size: 1.1rem;
    line-height: 1.7;
    margin-bottom: 25px;
    min-height: 120px; 
    display: flex;
    align-items: center;
    justify-content: center;
}

.testimonial-item .client-info {
    border-top: 1px solid #eee;
    padding-top: 15px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.testimonial-item .client-name {
    font-weight: 700;
    font-size: 1.2rem;
    color: var(--primary-blue);
}

.testimonial-item .client-rating i {
    color: var(--accent-yellow);
    font-size: 1rem;
}

/* Responsive Design for Testimonials Section */
@media (max-width: 768px) {
    .testimonials-grid {
        grid-template-columns: 1fr; 
    }
    .testimonial-item .testimonial-text {
        min-height: unset; 
    }
        .testimonials-section {
        background-attachment: scroll; 
    }
}
/* Contact Us Section */
.contact-section {
    padding: 80px 0;
}

.contact-intro {
    text-align: center;
    font-size: 1.2rem;
    color: #666;
    margin-bottom: 50px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.contact-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    justify-content: center;
}

.contact-form-container,
.contact-details-container {
    background-color: var(--light-text);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    flex: 1;
    min-width: 300px; 
    max-width: 550px; 
}

.contact-form-container h3,
.contact-details-container h3 {
    font-size: 1.8rem;
    color: var(--dark-text);
    margin-bottom: 25px;
    text-align: center;
    position: relative;
}
.contact-form-container h3::after,
.contact-details-container h3::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 3px;
    background-color: var(--accent-yellow);
    border-radius: 2px;
}


.contact-form .form-group {
    margin-bottom: 20px;
}

.contact-form label {
    display: block;
    font-size: 1.05rem;
    color: var(--dark-text);
    margin-bottom: 8px;
    font-weight: 600;
}

.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form input[type="tel"],
.contact-form textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-family: 'Cairo', sans-serif;
    font-size: 1rem;
    color: #333;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.contact-form input:focus,
.contact-form textarea:focus {
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 3px rgba(33, 150, 243, 0.2);
    outline: none;
}

.contact-form textarea {
    resize: vertical; 
}

.contact-form .btn-primary {
    width: auto;
    padding: 12px 30px;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    gap: 10px; 
    justify-content: center; 
    margin-top: 20px;
    margin-right: auto; 
    margin-left: auto; 
    background-color: var(--secondary-green);
    color: var(--light-text);
}
.contact-form .btn-primary:hover {
    background-color: #409243;
}

.contact-info {
    margin-bottom: 30px;
}

.contact-info p {
    font-size: 1.1rem;
    color: #555;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px; 
}

.contact-info p i {
    color: var(--primary-blue);
    font-size: 1.3rem;
    width: 25px;
    text-align: center;
}

.contact-info p a {
    color: #555;
    transition: color 0.3s ease;
}
.contact-info p a:hover {
    color: var(--primary-blue);
}

.map-container {
    border-radius: 10px;
    overflow: hidden; 
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
}

.map-container iframe {
    border-radius: 10px;
}

/* Responsive Design for Contact Section */
@media (max-width: 992px) {
    .contact-grid {
        flex-direction: column; 
        align-items: center;
    }
    .contact-form-container,
    .contact-details-container {
        max-width: 100%;
        width: 100%;
    }
    .contact-intro {
        margin-bottom: 30px;
        font-size: 1.1rem;
    }
}
@media (max-width: 576px) {
    .contact-form-container,
    .contact-details-container {
        padding: 20px;
    }
    .contact-form-container h3,
    .contact-details-container h3 {
        font-size: 1.6rem;
    }
    .contact-info p {
        font-size: 1rem;
    }
}
/* Footer */
footer {
    background: var(--dark-text);
    color: var(--light-text);
    text-align: center;
    padding: 30px 0;
    margin-top: 0;
}

.footer-contact {
    margin-top: 20px;
}

.footer-contact a {
    color: var(--light-text);
    margin: 0 15px;
    transition: color 0.3s ease;
}

.footer-contact a:hover {
    color: var(--accent-yellow);
}

.footer-contact a i {
    margin-left: 8px;
}

/* WhatsApp Float Button */
.whatsapp-float {
    position: fixed;
    bottom: 25px;
    left: 25px;
    z-index: 1000;
}

.whatsapp-float .whatsapp-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 65px;
    height: 65px;
    border-radius: 50%;
    background-color: #25d366;
    color: var(--light-text);
    font-size: 35px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.whatsapp-float .whatsapp-btn:hover {
    background-color: #1da851;
    transform: scale(1.1) rotate(5deg);
}

/* Animation Styles - Animate.css integration */
.animate-on-scroll {
    opacity: 0;
}

/* Ensure animations are applied when .is-visible is added by JS */
.animate-on-scroll.is-visible {
    opacity: 1;
    /* Reset opacity for Animate.css to take over */
}


@keyframes pulse-soft {
    0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(76, 175, 80, 0.4); }
    70% { transform: scale(1.05); box-shadow: 0 0 0 10px rgba(76, 175, 80, 0); }
    100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(76, 175, 80, 0); }
}

.company-slogan-wrapper {
    margin-bottom: 25px;
    display: flex;
    justify-content: center;
}

.company-slogan {
    background: rgba(76, 175, 80, 0.2); /* لون أخضر شفاف */
    color: #4caf50; /* لون أخضر واضح */
    padding: 8px 20px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1.1rem;
    border: 1px solid rgba(76, 175, 80, 0.5);
    display: inline-block;
    animation: pulse-soft 2s infinite ease-in-out;
    backdrop-filter: blur(5px);
}

.hero-content h1 {
    line-height: 1.4;
    text-shadow: 2px 2px 10px rgba(0,0,0,0.5);
}

.hero-desc {
    margin-top: 15px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    font-size: 1.2rem;
    color: #eee;
}

@keyframes backgroundMove {
    0% { background-position: center; }
    50% { background-position: 52% 52%; }
    100% { background-position: center; }
}

.hero-section {
    animation: backgroundMove 10s infinite alternate ease-in-out;
}

.hero-buttons .btn-primary, .hero-buttons .btn-secondary {
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.hero-buttons .btn-primary:hover ,.btn-secondary:hover {
    transform: scale(1.1) translateY(-5px);
}
.hero-buttons .btn-secondary:hover {
    background-color: var(--secondary-green);
}
@media (max-width: 992px) {
    header {
        top: 10px;
        width: 95%;
        margin: 0 auto;
        left: 2.5%; 
        border-radius: 12px;
        padding: 10px 15px;
    }
.contact-button .btn-primary1{
    display: none;
}
    .hero-buttons {
    display: flex;
    flex-direction: column; 
    gap: 20px !important;    
    align-items: center;
    margin-top: 30px;       
}

.hero-buttons a {
    width: 90% !important;  
    text-align: center;
    padding: 15px !important; 
}
    .logo-img { height: 50px; }
    .company-brand-name { font-size:x-large; }

    .menu-toggle { display: block; z-index: 6001; }

    .contact-button .btn-primary {
        padding: 7px 15px;
        font-size: 0.85rem;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%; 
        width: 100%;
        height: 100vh;
        background: white;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 30px;
        transition: 0.4s ease-in-out;
        z-index: 5500; 
        padding: 20px;
    }

    .nav-links.active {
        right: 0;
    }

    .nav-links li {
        width: 100%;
        text-align: center;
    }

    .nav-links li a {
        font-size: 1.5rem;
        display: block;
        padding: 10px;
        border-bottom: 1px solid #f0f0f0;
    }

    .hero-section {
        padding-top: 100px;
        height: auto;
        min-height: 100vh;
    }
    .hero-content h1 { font-size: 2.2rem; }
    .hero-content p { font-size: 1.1rem; }
}

@media (max-width: 576px) {
    .section-title { font-size: 2rem; }
    .hero-content h1 { font-size: 1.8rem; }
    /* .company-brand-name { font-size: 1rem; } */
}

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

.gallery-item {
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    height: 250px;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: 0.5s;
}

.image-overlay {
    position: absolute;
    bottom: -100%;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(33, 150, 243, 0.7);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: 0.4s;
    font-weight: bold;
}

.gallery-item:hover img { transform: scale(1.1); }
.gallery-item:hover .image-overlay { bottom: 0; }