/*
Theme Name: Professional Services Theme
Theme URI: https://injaz-altamayoz.com
Author: إنجاز التميز للمقاولات
Author URI: https://injaz-altamayoz.com
Description: قالب ووردبريس احترافي لشركات الخدمات المنزلية والمقاولات - يدعم اللغة العربية RTL بالكامل
Version: 2.0.0
Requires at least: 5.0
Tested up to: 6.4
Requires PHP: 7.4
License: GPL v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: professional-services
Tags: rtl-language-support, right-to-left, custom-logo, custom-menu, featured-images, theme-options, translation-ready
*/

/* استيراد الخطوط */
@import url('https://fonts.googleapis.com/css2?family=Tajawal:wght@300;400;500;700;900&family=Cairo:wght@300;400;600;700;900&display=swap');

/* ========== المتغيرات الأساسية ========== */
:root {
    /* الألوان الأساسية */
    --primary-color: #0A2463;
    --primary-light: #1A3473;
    --primary-dark: #061A4A;
    --secondary-color: #00B4D8;
    --secondary-light: #43C6E3;
    --accent-color: #F59E0B;
    --accent-light: #FBBF24;

    /* ألوان النصوص */
    --text-primary: #1F2937;
    --text-secondary: #4B5563;
    --text-light: #6B7280;
    --text-dark: #424242;
    --white: #FFFFFF;

    /* ألوان الخلفيات */
    --bg-primary: #FFFFFF;
    --bg-secondary: #F9FAFB;
    --bg-light: #F3F4F6;

    /* الظلال */
    --shadow: 0 4px 20px rgba(10, 36, 99, 0.1);
    --shadow-hover: 0 8px 30px rgba(10, 36, 99, 0.2);
    --shadow-lg: 0 10px 40px rgba(10, 36, 99, 0.15);

    /* الحدود والانتقالات */
    --border-radius: 12px;
    --border-radius-lg: 16px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ========== إعادة تعيين الأساسيات ========== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    direction: rtl;
    scroll-behavior: smooth;
    font-size: clamp(14px, 1vw + 12px, 16px);
}

body {
    font-family: 'Tajawal', 'Cairo', -apple-system, BlinkMacSystemFont, sans-serif;
    line-height: 1.7;
    color: var(--text-primary);
    background-color: var(--bg-primary);
    direction: rtl;
    text-align: right;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

/* الحاوي الأساسي */
.container {
    max-width: 1280px;
    width: 100%;
    margin: 0 auto;
    padding: 0 clamp(15px, 4vw, 40px);
}

/* الرأس */
.header {
    background: linear-gradient(135deg, var(--primary-color) 0%, #283593 100%);
    color: var(--white);
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.header.scrolled {
    background: rgba(26, 35, 126, 0.95);
    backdrop-filter: blur(10px);
}

.header-top {
    background: rgba(0, 0, 0, 0.1);
    padding: 10px 0;
    font-size: 14px;
}

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

.contact-info {
    display: flex;
    gap: 20px;
}

.contact-info a {
    color: var(--white);
    text-decoration: none;
    transition: var(--transition);
}

.contact-info a:hover {
    color: var(--secondary-color);
}

.social-links {
    display: flex;
    gap: 10px;
}

.social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: var(--white);
    text-decoration: none;
    transition: var(--transition);
}

.social-links a:hover {
    background: var(--secondary-color);
    transform: translateY(-2px);
}

.header-main {
    padding: 15px 0;
}

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

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

.logo img {
    height: 50px;
    width: auto;
}

.logo-text {
    font-size: 24px;
    font-weight: 700;
    color: var(--white);
}

/* القائمة الرئيسية */
.main-nav ul {
    display: flex;
    list-style: none;
    gap: 30px;
    /* تأكد من أن القائمة مرئية افتراضياً على الشاشات الكبيرة */
    transform: translateX(0);
    opacity: 1;
    visibility: visible;
}

.main-nav a {
    color: var(--white);
    text-decoration: none;
    font-weight: 500;
    padding: 10px 0;
    position: relative;
    transition: var(--transition);
}

.main-nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--secondary-color);
    transition: var(--transition);
}

.main-nav a:hover::after,
.main-nav a.active::after {
    width: 100%;
}

/* إخفاء القائمة الثابتة على الموبايل - القائمة المنزلقة في header.php */
@media (max-width: 768px) {
    /* يتم التحكم بالقائمة من header.php */
}

/* قسم البطل */
.hero {
    background: linear-gradient(135deg, rgba(26, 35, 126, 0.9) 0%, rgba(0, 188, 212, 0.8) 100%);
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    min-height: 100vh;
    display: flex;
    align-items: center;
    color: var(--white);
    text-align: center;
    position: relative;
    overflow: hidden;
    padding: clamp(80px, 10vh, 120px) 0;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, transparent 30%, rgba(0, 188, 212, 0.1) 70%);
    animation: shimmer 3s ease-in-out infinite;
}

@keyframes shimmer {

    0%,
    100% {
        opacity: 0.5;
    }

    50% {
        opacity: 1;
    }
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero h1 {
    font-size: clamp(1.8rem, 5vw, 4rem);
    font-weight: 800;
    margin-bottom: clamp(15px, 2vw, 25px);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    line-height: 1.2;
}

.hero p {
    font-size: clamp(1rem, 1.8vw, 1.4rem);
    margin-bottom: clamp(20px, 3vw, 35px);
    max-width: min(600px, 90%);
    margin-left: auto;
    margin-right: auto;
    line-height: 1.7;
}

.cta-buttons {
    display: flex;
    gap: clamp(12px, 2vw, 22px);
    justify-content: center;
    flex-wrap: wrap;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: clamp(8px, 1vw, 12px);
    padding: clamp(12px, 1.8vw, 18px) clamp(22px, 3vw, 35px);
    border: none;
    border-radius: var(--border-radius);
    font-size: clamp(14px, 1.2vw, 17px);
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: var(--transition);
}

.btn:hover::before {
    left: 100%;
}

.btn-primary {
    background: linear-gradient(135deg, var(--secondary-color) 0%, #26C6DA 100%);
    color: var(--white);
    box-shadow: 0 4px 20px rgba(0, 180, 216, 0.4);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(0, 180, 216, 0.5);
}

.btn-secondary {
    background: transparent;
    color: var(--white);
    border: 2px solid var(--white);
}

.btn-secondary:hover {
    background: var(--white);
    color: var(--primary-color);
    transform: translateY(-3px);
}

/* الأقسام العامة */
.section {
    padding: clamp(50px, 8vw, 100px) 0;
}

.section-header {
    text-align: center;
    margin-bottom: clamp(35px, 6vw, 70px);
}

.section-title {
    font-size: clamp(1.6rem, 3.5vw, 2.8rem);
    font-weight: 800;
    color: var(--primary-color);
    margin-bottom: clamp(12px, 1.5vw, 18px);
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: clamp(-8px, -1vw, -12px);
    left: 50%;
    transform: translateX(-50%);
    width: clamp(60px, 8vw, 100px);
    height: clamp(3px, 0.4vw, 5px);
    background: linear-gradient(90deg, var(--secondary-color), var(--accent-color));
    border-radius: 3px;
}

.section-subtitle {
    font-size: clamp(1rem, 1.3vw, 1.25rem);
    color: var(--text-light);
    max-width: min(650px, 90%);
    margin: 0 auto;
    line-height: 1.8;
}

/* قسم الخدمات */
.services {
    background: var(--bg-light);
}

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

.service-card {
    background: var(--white);
    border-radius: var(--border-radius);
    padding: 30px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--secondary-color), var(--accent-color));
    transform: scaleX(0);
    transition: var(--transition);
}

.service-card:hover::before {
    transform: scaleX(1);
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
}

.service-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    background: linear-gradient(135deg, var(--secondary-color), var(--accent-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: var(--white);
}

.service-card h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.service-card p {
    color: var(--text-light);
    line-height: 1.6;
    margin-bottom: 20px;
}

/* قسم من نحن */
.about {
    padding: 100px 0;
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-text h2 {
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.about-text p {
    color: var(--text-light);
    margin-bottom: 20px;
    line-height: 1.8;
}

.about-features {
    list-style: none;
    margin: 30px 0;
}

.about-features li {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
    color: var(--text-dark);
}

.about-features li::before {
    content: '✓';
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    background: var(--accent-color);
    color: var(--white);
    border-radius: 50%;
    font-weight: bold;
    font-size: 14px;
}

.about-image {
    position: relative;
}

.about-image img {
    width: 100%;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
}

/* أيقونات التواصل العائمة */
.floating-contact {
    position: fixed;
    left: 20px;
    bottom: 20px;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.floating-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    color: var(--white);
    text-decoration: none;
    box-shadow: var(--shadow);
    transition: var(--transition);
    animation: pulse 2s infinite;
}

.floating-btn.whatsapp {
    background: #25D366;
}

.floating-btn.phone {
    background: var(--primary-color);
}

.floating-btn:hover {
    transform: scale(1.1);
    box-shadow: var(--shadow-hover);
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7);
    }

    70% {
        box-shadow: 0 0 0 10px rgba(37, 211, 102, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
    }
}

/* الفوتر */
.footer {
    background: linear-gradient(135deg, var(--primary-color) 0%, #283593 100%);
    color: var(--white);
    padding: 60px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-section h3 {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 20px;
    color: var(--secondary-color);
}

.footer-section p,
.footer-section li {
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.6;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 10px;
}

.footer-section a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: var(--transition);
}

.footer-section a:hover {
    color: var(--secondary-color);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 20px;
    text-align: center;
    color: rgba(255, 255, 255, 0.6);
}

/* التصميم المتجاوب */
@media (max-width: 992px) {

    /* تفعيل القائمة العلوية على كل الشاشات */
    .header-main .container {
        padding: 10px 20px;
    }

    /* ملاحظة: أنماط القائمة المحمولة تم نقلها إلى header.php - لا تعدل هنا */

    .hero h1 {
        font-size: 2.5rem;
    }

    .hero p {
        font-size: 1.1rem;
    }

    .about-content {
        grid-template-columns: 1fr;
    }

    .about-image {
        order: -1;
    }

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

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

    .footer-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }
}

@media (max-width: 768px) {
    .header-top {
        display: none;
        /* إخفاء الشريط العلوي على شاشات الهاتف */
    }

    .hero {
        min-height: 80vh;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .section {
        padding: 60px 0;
    }

    .section-title {
        font-size: 2rem;
    }

    .floating-contact {
        left: 10px;
        bottom: 10px;
    }

    .floating-btn {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
    }
}

@media (max-width: 480px) {
    .logo-text {
        font-size: 20px;
    }

    .hero h1 {
        font-size: 1.8rem;
    }

    .cta-buttons {
        flex-direction: column;
    }

    .btn {
        width: 100%;
    }
}

@media (max-width: 992px) {
    /* إزالة تغيير اتجاه الهيدر - للحفاظ على الهيدر في صف واحد */
    /* .header-main .container - تم تعديلها في header.php */

    .main-nav ul {
        gap: 20px;
    }

    .hero h1 {
        font-size: 3rem;
    }

    .hero p {
        font-size: 1.2rem;
    }

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

    .about-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .about-image {
        order: -1;
        /* Move image above text on smaller screens */
    }

    .footer-content {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    }
}

@media (max-width: 768px) {
    .header-top {
        display: none;
    }

    .header-main .container {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }

    /* أنماط القائمة محذوفة - موجودة في header.php */

    .hero h1 {
        font-size: 2.2rem;
    }

    .hero p {
        font-size: 1rem;
    }

    .cta-buttons {
        flex-direction: column;
        gap: 15px;
    }

    .btn {
        width: 80%;
    }

    .section {
        padding: 60px 0;
    }

    .section-title {
        font-size: 2rem;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .service-card {
        padding: 25px;
    }

    .floating-contact {
        left: 10px;
        bottom: 10px;
        gap: 10px;
    }

    .floating-btn {
        width: 50px;
        height: 50px;
        font-size: 1.5rem;
    }

    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-section ul {
        padding: 0;
    }

    .footer-section ul li {
        text-align: center;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }

    .hero h1 {
        font-size: 1.8rem;
    }

    .hero p {
        font-size: 0.9rem;
    }

    .btn {
        padding: 12px 25px;
        font-size: 14px;
    }

    .section-title {
        font-size: 1.8rem;
    }

    .service-card h3 {
        font-size: 1.3rem;
    }

    .service-card p {
        font-size: 0.9rem;
    }

    .about-text h2 {
        font-size: 1.8rem;
    }

    .about-text p {
        font-size: 0.9rem;
    }

    .about-features li {
        font-size: 0.9rem;
    }

    .floating-btn {
        width: 45px;
        height: 45px;
        font-size: 1.3rem;
    }
}

/* ملاحظة: أنماط القائمة المحمولة موجودة في header.php */

/* إضافة أنماط للخدمات الجديدة */
.new-services {
    background: var(--white);
    padding: 80px 0;
}

.new-services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.new-service-card {
    background: var(--bg-light);
    border-radius: var(--border-radius);
    padding: 30px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.new-service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--accent-color), var(--secondary-color));
    transform: scaleX(0);
    transition: var(--transition);
}

.new-service-card:hover::before {
    transform: scaleX(1);
}

.new-service-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
}

.new-service-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: var(--border-radius);
    margin-bottom: 20px;
}

.new-service-card h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.new-service-card p {
    color: var(--text-light);
    line-height: 1.6;
    margin-bottom: 20px;
}

/* إضافة أنماط للميزات الجديدة */
.testimonials {
    background: var(--bg-light);
    padding: 80px 0;
}

.testimonial-card {
    background: var(--white);
    border-radius: var(--border-radius);
    padding: 30px;
    text-align: center;
    box-shadow: var(--shadow);
    margin: 20px auto;
    max-width: 600px;
}

.testimonial-text {
    font-style: italic;
    color: var(--text-light);
    margin-bottom: 20px;
    line-height: 1.8;
}

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

.faq {
    background: var(--white);
    padding: 80px 0;
}

.faq-item {
    background: var(--bg-light);
    border-radius: var(--border-radius);
    margin-bottom: 15px;
    box-shadow: var(--shadow);
}

.faq-question {
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    font-weight: 600;
    color: var(--primary-color);
}

.faq-answer {
    padding: 0 20px 20px;
    color: var(--text-light);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
}

.faq-item.active .faq-answer {
    max-height: 200px;
}

.gallery {
    background: var(--bg-light);
    padding: 80px 0;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-top: 40px;
}

.gallery-item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.gallery-item img:hover {
    transform: scale(1.05);
}

.booking {
    background: var(--white);
    padding: 80px 0;
}

.booking-form {
    max-width: 600px;
    margin: 0 auto;
    background: var(--bg-light);
    padding: 40px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
}

.form-group {
    margin-bottom: 20px;
    text-align: right;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--primary-color);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: var(--border-radius);
    font-size: 1rem;
    box-sizing: border-box;
    transition: var(--transition);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--secondary-color);
    outline: none;
    box-shadow: 0 0 0 3px rgba(0, 188, 212, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
}

.btn-submit {
    background: linear-gradient(135deg, var(--primary-color) 0%, #283593 100%);
    color: var(--white);
    padding: 15px 30px;
    border: none;
    border-radius: var(--border-radius);
    cursor: pointer;
    font-size: 1.1rem;
    font-weight: 600;
    transition: var(--transition);
    width: 100%;
}

.btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
}

/* إضافة أنماط للخريطة */
.map {
    padding: 0;
}

.map iframe {
    width: 100%;
    height: 400px;
    border: 0;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
}

/* تحسينات إضافية للهواتف المحمولة */
@media (max-width: 768px) {
    .new-services-grid {
        grid-template-columns: 1fr;
    }

    .new-service-card {
        padding: 20px;
    }

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

    .booking-form {
        padding: 30px 20px;
    }

    .map iframe {
        height: 300px;
    }
}

@media (max-width: 480px) {
    .new-service-card h3 {
        font-size: 1.3rem;
    }

    .new-service-card p {
        font-size: 0.9rem;
    }

    .testimonial-card {
        padding: 20px;
    }

    .faq-question {
        padding: 15px;
        font-size: 0.9rem;
    }

    .faq-answer {
        padding: 0 15px 15px;
        font-size: 0.9rem;
    }

    .gallery-grid {
        grid-template-columns: 1fr;
    }

    .booking-form {
        padding: 20px 15px;
    }

    .form-group input,
    .form-group select,
    .form-group textarea {
        font-size: 0.9rem;
    }

    .btn-submit {
        font-size: 1rem;
        padding: 12px 25px;
    }
}



/* ملاحظة: أنماط القائمة المحمولة موجودة في header.php */

/* أنماط قسم معرض الأعمال */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    cursor: pointer;
    height: 300px;
}

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

.gallery-item:hover img {
    transform: scale(1.1);
}

.gallery-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(26, 35, 126, 0.9), transparent);
    color: var(--white);
    padding: 30px 20px;
    transform: translateY(100%);
    transition: var(--transition);
}

.gallery-item:hover .gallery-overlay {
    transform: translateY(0);
}

.gallery-overlay h3 {
    font-size: 1.3rem;
    font-weight: 600;
    margin: 0;
}

/* أنماط قسم الإحصائيات */
.stats-section {
    background: linear-gradient(135deg, var(--primary-color) 0%, #283593 100%);
    padding: 80px 0;
    color: var(--white);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-top: 40px;
}

.stat-card {
    text-align: center;
    padding: 30px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: var(--border-radius);
    backdrop-filter: blur(10px);
    transition: var(--transition);
}

.stat-card:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-10px);
}

.stat-icon {
    font-size: 3rem;
    margin-bottom: 20px;
    color: var(--secondary-color);
}

.stat-number {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--white);
}

.stat-label {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.9);
}

/* تحسينات للصور */
img {
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
}

img[loading="lazy"] {
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
}

img[loading="lazy"].loaded {
    opacity: 1;
}

/* تحسينات للشعار */
.logo {
    transition: var(--transition);
}

.logo:hover {
    transform: scale(1.05);
}

.logo img {
    height: 60px;
    filter: drop-shadow(2px 2px 4px rgba(0, 0, 0, 0.3));
    transition: var(--transition);
}

.logo img:hover {
    filter: drop-shadow(3px 3px 6px rgba(0, 0, 0, 0.4));
}

.logo-text {
    font-size: 1.3rem;
    line-height: 1.2;
    max-width: 250px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
}

/* تحسينات للأيقونات */
.service-icon i {
    font-size: 2.5rem;
}

/* Media Queries للشاشات المختلفة */
@media (max-width: 768px) {
    /* أنماط القائمة المحمولة موجودة في header.php فقط */

    .hero h1 {
        font-size: 2rem;
    }

    .hero p {
        font-size: 1rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .about-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .gallery-grid {
        grid-template-columns: 1fr;
    }

    .stats-grid {
        grid-template-columns: 1fr;
    }

    .logo-text {
        font-size: 1.1rem;
        max-width: 180px;
    }

    .logo img {
        height: 45px;
    }
}

@media (min-width: 769px) and (max-width: 1024px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}