/* ===== CSS Reset & Base Styles ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* الألوان الرئيسية - أزرق سماوي، رمادي، أبيض */
    --primary-color: #00529B; /* أزرق سماوي داكن */
    --secondary-color: #4A90E2; /* أزرق سماوي متوسط */
    --accent-color: #F5A623; /* برتقالي للتمييز */
    --light-color: #E8F4FD; /* أزرق سماوي فاتح */
    --dark-color: #2C3E50; /* أزرق داكن */
    --gray-color: #7F8C8D; /* رمادي متوسط */
    --light-gray: #ECF0F1; /* رمادي فاتح */
    --white: #FFFFFF;
    --black: #333333;
    --shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    --transition: all 0.3s ease;
    --border-radius: 10px;
    --container-width: 1200px;
    --header-height: 80px;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: var(--header-height);
}

body {
    font-family: 'Cairo', sans-serif;
    background: linear-gradient(135deg, var(--light-color) 0%, var(--white) 50%, var(--light-gray) 100%);
    color: var(--black);
    line-height: 1.6;
    direction: rtl;
    overflow-x: hidden;
}

.container {
    width: 100%;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

/* ===== شريط التحميل ===== */
.loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.loading-screen.fade-out {
    opacity: 0;
    visibility: hidden;
}

.loader {
    text-align: center;
    width: 300px;
}

.logo-loader {
    margin-bottom: 25px;
}

.logo-loader i {
    font-size: 60px;
    color: var(--white);
    animation: pulse 1.5s infinite;
}

.loader p {
    color: var(--white);
    font-size: 18px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.loading-bar {
    width: 100%;
    height: 6px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 3px;
    overflow: hidden;
    margin-top: 20px;
}

.loading-progress {
    width: 0%;
    height: 100%;
    background: var(--white);
    border-radius: 3px;
    animation: loading 2s ease-in-out infinite;
}

@keyframes loading {
    0% { width: 0%; }
    50% { width: 100%; }
    100% { width: 0%; }
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

/* ===== الأزرار ===== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 16px;
    text-decoration: none;
    cursor: pointer;
    border: none;
    transition: var(--transition);
    text-align: center;
}

.btn i {
    font-size: 18px;
}

.btn-primary {
    background: linear-gradient(to left, var(--primary-color), var(--secondary-color));
    color: var(--white);
    box-shadow: var(--shadow);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 82, 155, 0.3);
    gap: 15px;
}

.btn-secondary {
    background: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.btn-secondary:hover {
    background: var(--primary-color);
    color: var(--white);
    gap: 15px;
}

/* ===== زر العودة للأعلى ===== */
.scroll-top-btn {
    position: fixed;
    bottom: 100px;
    left: 30px;
    width: 50px;
    height: 50px;
    background: var(--primary-color);
    color: var(--white);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    z-index: 99;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    box-shadow: var(--shadow);
}

.scroll-top-btn.visible {
    opacity: 1;
    visibility: visible;
}

.scroll-top-btn:hover {
    background: var(--secondary-color);
    transform: translateY(-5px) rotate(360deg);
}

/* ===== زر الواتساب العائم ===== */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    left: 30px;
    width: 60px;
    height: 60px;
    background-color: #25D366;
    color: var(--white);
    border-radius: 50%;
    text-align: center;
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.4);
    z-index: 99;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-size: 28px;
    transition: var(--transition);
}

.whatsapp-float:hover {
    transform: scale(1.1) rotate(10deg);
    box-shadow: 0 6px 16px rgba(37, 211, 102, 0.6);
}

.whatsapp-tooltip {
    position: absolute;
    left: 70px;
    background: var(--primary-color);
    color: var(--white);
    padding: 8px 15px;
    border-radius: 5px;
    font-size: 14px;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 8px;
}

.whatsapp-float:hover .whatsapp-tooltip {
    opacity: 1;
    visibility: visible;
}

/* ===== الهيدر ===== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    height: var(--header-height);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
}

/* اللوجو */
.logo a {
    text-decoration: none;
    display: flex;
    align-items: center;
}

.logo-img {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-icon {
    width: 45px;
    height: 45px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 20px;
}

.logo-text h1 {
    font-size: 1.2rem;
    color: var(--primary-color);
    margin-bottom: 3px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 8px;
}

.logo-text p {
    font-size: 0.75rem;
    color: var(--gray-color);
    display: flex;
    align-items: center;
    gap: 5px;
}

/* القائمة الرئيسية */
.main-nav {
    flex-grow: 1;
    display: flex;
    justify-content: center;
}

.nav-list {
    display: flex;
    list-style: none;
    gap: 8px;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    color: var(--dark-color);
    text-decoration: none;
    font-weight: 500;
    border-radius: 25px;
    transition: var(--transition);
    font-size: 0.9rem;
}

.nav-link:hover,
.nav-link.active {
    background: linear-gradient(to left, var(--primary-color), var(--secondary-color));
    color: var(--white);
    gap: 12px;
}

.nav-link i {
    font-size: 16px;
}

.nav-text {
    font-size: 0.85rem;
}

/* زر القائمة للموبايل */
.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--light-color);
    color: var(--primary-color);
    font-size: 20px;
    transition: var(--transition);
}

.mobile-menu-btn:hover {
    background: var(--primary-color);
    color: var(--white);
    transform: rotate(90deg);
}

/* معلومات الاتصال في الهيدر */
.header-contact {
    display: flex;
    align-items: center;
    gap: 10px;
}

.header-phone {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
    padding: 6px 12px;
    border-radius: 20px;
    border: 1px solid var(--light-color);
    font-size: 0.9rem;
}

.header-phone:hover {
    background: var(--light-color);
    gap: 10px;
}

.header-whatsapp {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: #25D366;
    color: var(--white);
    border-radius: 50%;
    text-decoration: none;
    font-size: 20px;
    transition: var(--transition);
}

.header-whatsapp:hover {
    transform: scale(1.1) rotate(10deg);
}

/* ===== قسم الهيرو ===== */
.hero-section {
    position: relative;
    margin-top: var(--header-height);
    height: calc(100vh - var(--header-height));
    min-height: 600px;
    background: linear-gradient(rgba(0, 82, 155, 0.85), rgba(80, 80, 120, 0.8)), url('img/hero-bg.jpg');
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
}

.hero-overlay {
    width: 100%;
    padding: 40px 0;
}

.hero-content {
    color: var(--white);
    max-width: 800px;
    text-align: center;
    margin: 0 auto;
}

.hero-icon {
    font-size: 50px;
    color: var(--white);
    margin-bottom: 20px;
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
    100% { transform: translateY(0px); }
}

.hero-title {
    font-size: 2.8rem;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
}

.hero-text {
    font-size: 1.2rem;
    margin-bottom: 30px;
    opacity: 0.95;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 40px;
}

/* ميزات الهيرو */
.hero-features {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 30px;
    margin-top: 40px;
}

.hero-feature {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 15px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: var(--border-radius);
    backdrop-filter: blur(5px);
    min-width: 140px;
    transition: var(--transition);
}

.hero-feature:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-5px);
}

.hero-feature i {
    font-size: 30px;
    color: var(--white);
}

.hero-feature span {
    font-size: 0.9rem;
    color: var(--white);
}

/* ===== الأقسام العامة ===== */
section {
    padding: 80px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 50px;
    position: relative;
}

.section-header-icon {
    font-size: 50px;
    color: var(--primary-color);
    margin-bottom: 20px;
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.section-title {
    font-size: 2.2rem;
    color: var(--primary-color);
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
}

.section-subtitle {
    color: var(--gray-color);
    font-size: 1rem;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.section-divider {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin-top: 20px;
}

.section-divider span {
    width: 70px;
    height: 2px;
    background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
}

.section-divider i {
    color: var(--accent-color);
    font-size: 14px;
}

/* ===== قسم من نحن ===== */
.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

.about-image {
    position: relative;
}

.image-frame {
    position: relative;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow);
}

.about-img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.5s ease;
}

.image-overlay {
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 82, 155, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition);
}

.image-frame:hover .image-overlay {
    opacity: 1;
}

.image-overlay i {
    font-size: 40px;
    color: var(--white);
    transform: scale(0);
    transition: var(--transition);
}

.image-frame:hover .image-overlay i {
    transform: scale(1);
}

.experience-badge {
    position: absolute;
    top: 20px;
    left: 20px;
    background: var(--accent-color);
    color: var(--white);
    padding: 15px;
    border-radius: 50%;
    text-align: center;
    width: 90px;
    height: 90px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    box-shadow: var(--shadow);
    gap: 5px;
}

.experience-badge i {
    font-size: 24px;
}

.experience-badge span {
    font-size: 1.5rem;
    font-weight: bold;
    line-height: 1;
}

.experience-badge small {
    font-size: 0.8rem;
}

.about-text h3 {
    font-size: 1.6rem;
    color: var(--dark-color);
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.about-text p {
    margin-bottom: 20px;
    color: var(--gray-color);
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.about-text p i {
    color: var(--primary-color);
    margin-top: 5px;
}

.about-features {
    margin: 25px 0;
}

.feature {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
    align-items: flex-start;
}

.feature-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 1.3rem;
    flex-shrink: 0;
    transition: var(--transition);
}

.feature:hover .feature-icon {
    transform: rotate(15deg) scale(1.1);
}

.feature-text h4 {
    color: var(--dark-color);
    margin-bottom: 8px;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-top: 30px;
}

.stat-item {
    background: var(--light-gray);
    padding: 20px;
    border-radius: var(--border-radius);
    text-align: center;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 15px;
}

.stat-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow);
}

.stat-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 1.5rem;
}

.stat-item h4 {
    font-size: 1.8rem;
    color: var(--primary-color);
    margin-bottom: 5px;
}

.stat-item p {
    color: var(--gray-color);
    font-size: 0.9rem;
}

/* ===== قسم الخدمات ===== */
.services-section {
    background: var(--light-gray);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 50px;
}

.service-card {
    background: var(--white);
    border-radius: var(--border-radius);
    padding: 30px;
    box-shadow: var(--shadow);
    transition: var(--transition);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(to left, var(--primary-color), var(--secondary-color));
    transform: translateX(100%);
    transition: var(--transition);
}

.service-card:hover::before {
    transform: translateX(0);
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.service-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 2rem;
    transition: var(--transition);
}

.service-card:hover .service-icon {
    transform: rotateY(180deg) scale(1.1);
}

.service-content h3 {
    color: var(--dark-color);
    margin-bottom: 15px;
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.service-content p {
    margin-bottom: 20px;
    color: var(--gray-color);
    display: flex;
    align-items: flex-start;
    gap: 10px;
    text-align: right;
}

.service-list {
    list-style: none;
    margin: 20px 0;
    text-align: right;
}

.service-list li {
    padding: 8px 0;
    color: var(--gray-color);
    display: flex;
    align-items: center;
    gap: 10px;
    transition: var(--transition);
}

.service-list li:hover {
    color: var(--primary-color);
    padding-right: 10px;
}

.service-list i {
    color: var(--accent-color);
    font-size: 12px;
}

.service-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    margin-top: 15px;
    transition: var(--transition);
}

.service-link:hover {
    gap: 12px;
    color: var(--secondary-color);
}

/* ميزات إضافية */
.extra-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-top: 40px;
}

.extra-feature {
    background: var(--white);
    padding: 25px 20px;
    border-radius: var(--border-radius);
    text-align: center;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.extra-feature:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.extra-feature i {
    font-size: 40px;
    color: var(--primary-color);
    margin-bottom: 15px;
    display: block;
}

.extra-feature h4 {
    color: var(--dark-color);
    margin-bottom: 10px;
    font-size: 1.2rem;
}

.extra-feature p {
    color: var(--gray-color);
    font-size: 0.9rem;
}

/* ===== قسم الصور الدائرية المتحركة ===== */
.circle-gallery-section {
    background: var(--white);
    padding: 80px 0;
}

.circle-gallery-container {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.circle-gallery {
    position: relative;
    width: 500px;
    height: 500px;
    margin: 0 auto;
}

/* ===== معرض الصور المحسن ===== */
.gallery-intro {
    text-align: center;
    margin-bottom: 30px;
    padding: 20px;
    background: var(--white);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
}

.gallery-intro h3 {
    color: var(--primary-color);
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.gallery-intro p {
    color: var(--gray-color);
}

.gallery-item {
    position: relative;
    border-radius: var(--border-radius);
    overflow: hidden;
    height: 250px;
    cursor: pointer;
    box-shadow: var(--shadow);
    transition: var(--transition);
    transform-style: preserve-3d;
    perspective: 1000px;
}

.gallery-item:hover {
    transform: translateY(-10px) rotateX(5deg);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}

.gallery-item-overlay {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 100%;
    background: rgba(0, 82, 155, 0.9);
    color: var(--white);
    padding: 15px;
    transform: translateY(100%);
    transition: var(--transition);
}

.gallery-item:hover .gallery-item-overlay {
    transform: translateY(0);
}

.gallery-item-overlay h4 {
    font-size: 1.1rem;
    margin-bottom: 5px;
}

.gallery-item-overlay p {
    font-size: 0.9rem;
    opacity: 0.9;
}

/* .hidden-gallery {
    margin-top: 20px;
    animation: fadeIn 0.5s ease-in;
} */

/* ✅ الصور المخفية: تكون مخفية افتراضياً */
.hidden-gallery{
    display: none;
    margin-top: 20px;
    animation: fadeIn 0.5s ease-in;
}



@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.gallery-load-more {
    text-align: center;
    margin-top: 30px;
}

.gallery-load-more button {
    padding: 15px 40px;
    font-size: 1.1rem;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* ===== تحسينات إضافية ===== */
.contact-card p:last-child {
    font-size: 0.85rem;
    opacity: 0.8;
    margin-top: 5px;
    color: var(--dark-color);
}

.service-list li {
    padding: 8px 0;
    color: var(--gray-color);
    display: flex;
    align-items: center;
    gap: 10px;
    transition: var(--transition);
    font-size: 0.95rem;
}

.service-list li:hover {
    color: var(--primary-color);
    padding-right: 10px;
}

/* تحسينات للهواتف */
@media (max-width: 768px) {
    .gallery-item {
        height: 200px;
    }

    .gallery-item-overlay h4 {
        font-size: 1rem;
    }

    .gallery-item-overlay p {
        font-size: 0.8rem;
    }
}

.circle-item {
    position: absolute;
    width: 120px;
    height: 120px;
    border-radius: 50%;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    transition: transform 0.5s ease, opacity 0.5s ease;
    cursor: pointer;
    border: 4px solid var(--white);
}

.circle-item-icon {
    position: absolute;
    top: 5px;
    right: 5px;
    width: 25px;
    height: 25px;
    background: var(--accent-color);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    z-index: 2;
}

.circle-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.circle-item:hover img {
    transform: scale(1.1);
}

.circle-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 40px;
}

.circle-btn {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--white);
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
}

.circle-btn:hover {
    transform: scale(1.1) rotate(15deg);
    box-shadow: 0 5px 15px rgba(0, 82, 155, 0.3);
}

.circle-instruction {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--gray-color);
    font-size: 0.9rem;
}

.circle-instruction i {
    color: var(--primary-color);
    font-size: 20px;
}

/* ===== قسم معرض الصور - التعديلات المطلوبة ===== */
.gallery-section {
    background: var(--light-gray);
}

/* شريط الصور المتحركة */
.moving-bar-container {
    overflow: hidden;
    margin-bottom: 50px;
    position: relative;
    height: 200px;
    background: var(--white);
    border-radius: var(--border-radius);
    padding: 20px;
    box-shadow: var(--shadow);
}

.moving-bar-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
    color: var(--primary-color);
}

.moving-bar-header i {
    font-size: 24px;
}

.moving-bar-header h3 {
    font-size: 1.2rem;
}

.moving-bar {
    display: flex;
    gap: 15px;
    animation: moveBar 30s linear infinite;
    height: 140px;
}

.moving-bar:hover {
    animation-play-state: paused;
}

.moving-bar-item {
    flex: 0 0 180px;
    height: 100%;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    position: relative;
    transform-style: preserve-3d;
}

.moving-icon {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 30px;
    height: 30px;
    background: rgba(0, 0, 0, 0.5);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    z-index: 2;
    opacity: 0;
    transition: var(--transition);
}

.moving-bar-item:hover .moving-icon {
    opacity: 1;
}

.moving-bar-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.moving-bar-item:hover img {
    transform: scale(1.1);
}

.moving-bar-footer {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 15px;
    color: var(--gray-color);
    font-size: 0.9rem;
}

.moving-bar-footer i {
    color: var(--primary-color);
}

@keyframes moveBar {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

/* ===== معرض الصور الرئيسي - التعديلات ===== */
.gallery-container {
    position: relative;
    margin-bottom: 30px;
}

/* عرض 4 صور في كل صف */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 30px;
}

.gallery-item {
    position: relative;
    border-radius: var(--border-radius);
    overflow: hidden;
    height: 250px;
    cursor: pointer;
    box-shadow: var(--shadow);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    transform-style: preserve-3d;
    perspective: 1000px;
}

.gallery-item:hover {
    transform: translateY(-10px) rotateX(5deg) rotateY(-2deg);
    box-shadow: 0 20px 40px rgba(0, 82, 155, 0.25);
}

.gallery-icon {
    position: absolute;
    top: 50%;
    right: 50%;
    transform: translate(50%, -50%);
    width: 50px;
    height: 50px;
    background: rgba(0, 82, 155, 0.8);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    z-index: 2;
    opacity: 0;
    transition: var(--transition);
}

.gallery-item:hover .gallery-icon {
    opacity: 1;
    transform: translate(50%, -50%) scale(1.1);
}

.gallery-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
    transform-origin: center center;
}

/* ✅ Fix لصور PNG في المعرض (26/27/28/29) */
.gallery-item {
    height: 250px;                  /* نفس اللي عندك */
    display: flex;                  /* يخلي الصورة تتمركز */
    align-items: center;
    justify-content: center;
    background: #fff;               /* خلفية نظيفة للـ PNG */
}

/* الافتراضي: صور jpg تبقى cover */
.gallery-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ✅ صور png فقط: ما تتقصش وتكون واضحة */
.gallery-img.png-fit {
    object-fit: contain;
    padding: 10px;
    background: #fff;
}

.gallery-item:hover .gallery-img {
    transform: scale(1.15) rotate(1deg);
}

/* ✅ الصور المخفية: تكون مخفية افتراضياً */
.hidden-gallery {
    margin-top: 20px;
    animation: fadeIn 0.5s ease-in;
    display: none;
}

/* ✅ (كان عندك show = block) عدلناه لـ grid عشان الصور تطلع صفوف صح */
/* ملاحظة: حتى لو ما تستخدمه، خليته شغال */
/* .hidden-gallery.show {
    display: grid;
} */


/* ✅ عند إظهارها لازم تكون Grid عشان ترتب صح */
.hidden-gallery.show{
    display: grid;
}


/* ===== أزرار التحكم في المعرض ===== */
.gallery-controls {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    margin-top: 40px;
    padding: 20px;
    background: var(--white);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
}

.gallery-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 14px 35px;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: none;
    position: relative;
    overflow: hidden;
    min-width: 180px;
    transform-style: preserve-3d;
    perspective: 500px;
}

.gallery-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, transparent 30%, rgba(255,255,255,0.3) 50%, transparent 70%);
    transform: translateX(-100%) skewX(-15deg);
    transition: transform 0.6s ease;
}

.gallery-btn:hover::before {
    transform: translateX(100%) skewX(-15deg);
}

.show-more-btn {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--white);
    box-shadow: 0 6px 20px rgba(0, 82, 155, 0.3);
}

.show-more-btn:hover {
    transform: translateY(-5px) scale(1.05) rotateX(5deg);
    box-shadow: 0 12px 30px rgba(0, 82, 155, 0.4);
    gap: 15px;
}

.show-more-btn i {
    transition: all 0.4s ease;
}

.show-more-btn:hover i {
    transform: rotate(180deg) scale(1.2);
}

.show-less-btn {
    background: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    box-shadow: 0 4px 15px rgba(0, 82, 155, 0.15);
}

.show-less-btn:hover {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--white);
    transform: translateY(-5px) scale(1.05) rotateX(-5deg);
    box-shadow: 0 12px 30px rgba(0, 82, 155, 0.4);
    gap: 15px;
}

.show-less-btn i {
    transition: all 0.4s ease;
}

.show-less-btn:hover i {
    transform: rotate(-180deg) scale(1.2);
}

.gallery-btn-text {
    position: relative;
    z-index: 2;
}

.gallery-btn-icon {
    font-size: 18px;
    transition: all 0.4s ease;
    position: relative;
    z-index: 2;
}

.gallery-info {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 15px;
    background: var(--white);
    border-radius: var(--border-radius);
    color: var(--gray-color);
    box-shadow: var(--shadow);
    margin-top: 20px;
    font-size: 0.95rem;
}

.gallery-info i {
    color: var(--primary-color);
    font-size: 18px;
    animation: pulse 2s infinite;
}

/* إحصائيات المعرض */
.gallery-stats {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-top: 20px;
    flex-wrap: wrap;
}

.gallery-stat {
    text-align: center;
    padding: 15px 25px;
    background: var(--white);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    min-width: 120px;
    transition: var(--transition);
}

.gallery-stat:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.gallery-stat-number {
    font-size: 1.8rem;
    font-weight: bold;
    color: var(--primary-color);
    margin-bottom: 5px;
}

.gallery-stat-label {
    font-size: 0.9rem;
    color: var(--gray-color);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
}

/* ===== تعديلات التجاوب ===== */
@media (max-width: 1200px) {
    .gallery-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 18px;
    }
}

@media (max-width: 992px) {
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }

    .gallery-item {
        height: 220px;
    }

    .gallery-controls {
        flex-direction: column;
        gap: 15px;
    }

    .gallery-btn {
        width: 100%;
        max-width: 300px;
    }
}

@media (max-width: 768px) {
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .gallery-item {
        height: 180px;
    }

    .gallery-stats {
        gap: 15px;
    }

    .gallery-stat {
        min-width: 100px;
        padding: 12px 20px;
    }

    .gallery-stat-number {
        font-size: 1.5rem;
    }
}

@media (max-width: 576px) {
    .gallery-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .gallery-item {
        height: 220px;
    }

    .gallery-controls {
        padding: 15px;
    }

    .gallery-btn {
        padding: 12px 25px;
        font-size: 1rem;
        min-width: 160px;
    }

    .gallery-stats {
        flex-direction: column;
        align-items: center;
        gap: 12px;
    }

    .gallery-stat {
        width: 100%;
        max-width: 200px;
    }
}

.gallery-notice {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 15px;
    background: var(--white);
    border-radius: var(--border-radius);
    color: var(--gray-color);
    box-shadow: var(--shadow);
    margin-top: 20px;
}

.gallery-notice i {
    color: var(--primary-color);
    font-size: 20px;
}

/* ===== قسم الاتصال ===== */
.contact-section {
    background: var(--white);
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

.contact-card {
    display: flex;
    gap: 20px;
    margin-bottom: 25px;
    padding: 20px;
    background: var(--light-gray);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    transition: var(--transition);
    align-items: flex-start;
}

.contact-card:hover {
    transform: translateX(-8px);
    gap: 25px;
}

.contact-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 1.5rem;
    flex-shrink: 0;
    transition: var(--transition);
}

.contact-card:hover .contact-icon {
    transform: rotate(15deg) scale(1.1);
}

.contact-details h3 {
    color: var(--dark-color);
    margin-bottom: 10px;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.contact-details p,
.contact-details a {
    color: var(--gray-color);
    text-decoration: none;
    transition: var(--transition);
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 5px;
}

.contact-details a:hover {
    color: var(--primary-color);
    gap: 12px;
}

.contact-social {
    margin-top: 25px;
    padding: 20px;
    background: var(--light-gray);
    border-radius: var(--border-radius);
}

.contact-social h3 {
    color: var(--dark-color);
    margin-bottom: 15px;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.social-links {
    display: flex;
    gap: 12px;
    margin-top: 15px;
    flex-wrap: wrap;
}

.social-links a {
    width: 45px;
    height: 45px;
    background: var(--light-gray);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    text-decoration: none;
    font-size: 1.2rem;
    transition: var(--transition);
}

.social-links a:hover {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--white);
    transform: translateY(-5px) rotate(15deg);
}

.working-hours {
    margin-top: 25px;
    padding: 20px;
    background: var(--light-gray);
    border-radius: var(--border-radius);
}

.working-hours h3 {
    color: var(--dark-color);
    margin-bottom: 15px;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.working-hours p {
    color: var(--gray-color);
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
}

/* نموذج الاتصال */
.contact-form-container {
    background: var(--white);
    border-radius: var(--border-radius);
    padding: 30px;
    box-shadow: var(--shadow);
    border: 1px solid var(--light-gray);
}

.form-header {
    margin-bottom: 25px;
    text-align: center;
}

.form-icon {
    font-size: 50px;
    color: var(--primary-color);
    margin-bottom: 15px;
    animation: float 3s ease-in-out infinite;
}

.form-header h3 {
    color: var(--primary-color);
    margin-bottom: 10px;
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.form-header p {
    color: var(--gray-color);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.form-group {
    position: relative;
    margin-bottom: 20px;
}

.form-icon-left {
    position: absolute;
    top: 50%;
    right: 15px;
    transform: translateY(-50%);
    color: var(--gray-color);
    font-size: 18px;
}

.form-icon-right {
    position: absolute;
    top: 50%;
    left: 15px;
    transform: translateY(-50%);
    color: var(--primary-color);
    font-size: 12px;
}

.form-control {
    width: 100%;
    padding: 15px 50px 15px 40px;
    border: 1px solid var(--light-gray);
    border-radius: var(--border-radius);
    font-family: 'Cairo', sans-serif;
    font-size: 15px;
    transition: var(--transition);
    background: var(--light-gray);
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-color);
    background: var(--white);
    padding-right: 55px;
}

select.form-control {
    appearance: none;
    cursor: pointer;
}

.submit-btn {
    width: 100%;
    padding: 16px;
    font-size: 1.1rem;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin-top: 10px;
}

.form-notice {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 20px;
    padding: 15px;
    background: var(--light-gray);
    border-radius: var(--border-radius);
    color: var(--gray-color);
    font-size: 0.9rem;
}

.form-notice i {
    color: var(--primary-color);
    font-size: 18px;
}

.form-notice p {
    display: flex;
    align-items: center;
    gap: 5px;
}

/* ===== الفوتر ===== */
.footer {
    background: linear-gradient(135deg, var(--dark-color) 0%, var(--primary-color) 100%);
    color: var(--white);
    padding: 60px 0 25px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-col {
    padding: 0 10px;
}

.footer-logo {
    margin-bottom: 25px;
}

.footer-logo .logo-img {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

.footer-logo .logo-icon {
    width: 50px;
    height: 50px;
    background: var(--white);
    color: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
}

.footer-logo h3 {
    color: var(--white);
    font-size: 1.3rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.footer-logo p {
    opacity: 0.8;
    line-height: 1.7;
    font-size: 0.95rem;
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.footer-newsletter {
    margin-top: 25px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: var(--border-radius);
}

.footer-newsletter h4 {
    color: var(--white);
    margin-bottom: 10px;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.footer-newsletter p {
    opacity: 0.8;
    margin-bottom: 15px;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.newsletter-form {
    display: flex;
    gap: 10px;
}

.newsletter-form input {
    flex: 1;
    padding: 12px 15px;
    border: none;
    border-radius: var(--border-radius);
    font-family: 'Cairo', sans-serif;
    font-size: 14px;
}

.newsletter-form button {
    width: 50px;
    background: var(--accent-color);
    color: var(--white);
    border: none;
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: var(--transition);
    font-size: 18px;
}

.newsletter-form button:hover {
    background: var(--white);
    color: var(--accent-color);
    transform: rotate(15deg);
}

.footer-title {
    font-size: 1.3rem;
    margin-bottom: 25px;
    position: relative;
    padding-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.footer-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 40px;
    height: 2px;
    background: var(--accent-color);
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.95rem;
}

.footer-links a:hover {
    color: var(--accent-color);
    padding-right: 10px;
    gap: 15px;
}

.footer-contact p {
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 12px;
    opacity: 0.8;
    font-size: 0.95rem;
}

.footer-contact i {
    color: var(--accent-color);
    width: 20px;
    font-size: 16px;
}

.footer-social {
    margin-top: 20px;
}

.footer-social h4 {
    color: var(--white);
    margin-bottom: 15px;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.footer-bottom {
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.copyright p {
    opacity: 0.8;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.footer-bottom-links {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.footer-bottom-links a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: var(--transition);
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.footer-bottom-links a:hover {
    color: var(--accent-color);
    gap: 12px;
}

/* ===== نموذج عرض الصورة ===== */
.image-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1001;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}

.image-modal.active {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    position: relative;
    max-width: 90%;
    max-height: 90%;
    background: var(--white);
    border-radius: var(--border-radius);
    overflow: hidden;
    width: 800px;
}

.modal-close {
    position: absolute;
    top: 15px;
    left: 15px;
    background: rgba(0, 0, 0, 0.7);
    color: var(--white);
    border: none;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    font-size: 20px;
    cursor: pointer;
    z-index: 10;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-close:hover {
    background: var(--primary-color);
    transform: rotate(90deg);
}

.modal-header {
    padding: 20px;
    background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
    color: var(--white);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h3 {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.3rem;
}

#imageCounter {
    background: rgba(255, 255, 255, 0.2);
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.9rem;
}

.modal-body {
    height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: var(--dark-color);
}

.modal-body img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    border-radius: 5px;
}

.modal-footer {
    padding: 15px 20px;
    background: var(--light-gray);
    display: flex;
    justify-content: center;
    gap: 15px;
}

.modal-action-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 20px;
    background: var(--primary-color);
    color: var(--white);
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: var(--transition);
    font-size: 0.9rem;
}

.modal-action-btn:hover {
    background: var(--secondary-color);
    gap: 15px;
}

.modal-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 100%;
    display: flex;
    justify-content: space-between;
    padding: 0 20px;
}

.nav-btn {
    background: rgba(0, 0, 0, 0.7);
    color: var(--white);
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 20px;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
}

.nav-btn:hover {
    background: var(--primary-color);
    transform: scale(1.1);
}

/* ===== التجاوب مع الشاشات المختلفة ===== */
@media (max-width: 1200px) {
    :root {
        --container-width: 960px;
    }

    .hero-title {
        font-size: 2.4rem;
    }

    .circle-gallery {
        width: 450px;
        height: 450px;
    }
}

@media (max-width: 992px) {
    :root {
        --container-width: 720px;
    }

    .hero-title {
        font-size: 2rem;
    }

    .about-content {
        grid-template-columns: 1fr;
    }

    .contact-content {
        grid-template-columns: 1fr;
    }

    .circle-gallery {
        width: 400px;
        height: 400px;
    }

    .circle-item {
        width: 100px;
        height: 100px;
    }

    .nav-list {
        gap: 5px;
    }

    .nav-link {
        padding: 6px 12px;
        font-size: 0.85rem;
    }

    .nav-text {
        font-size: 0.8rem;
    }

    .header-contact {
        display: none;
    }
}

@media (max-width: 768px) {
    :root {
        --header-height: 65px;
    }

    .mobile-menu-btn {
        display: flex;
    }

    .main-nav {
        position: fixed;
        top: var(--header-height);
        right: -100%;
        width: 80%;
        height: calc(100vh - var(--header-height));
        background: var(--white);
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
        transition: var(--transition);
        flex-direction: column;
        padding: 25px;
        justify-content: flex-start;
    }

    .main-nav.active {
        right: 0;
    }

    .nav-list {
        flex-direction: column;
        width: 100%;
        gap: 10px;
    }

    .nav-link {
        padding: 12px 20px;
        font-size: 1rem;
        justify-content: flex-start;
        border-radius: 10px;
    }

    .hero-title {
        font-size: 1.7rem;
    }

    .hero-text {
        font-size: 1rem;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }

    .btn {
        width: 100%;
        max-width: 280px;
    }

    .section-title {
        font-size: 1.8rem;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .stats {
        grid-template-columns: 1fr;
    }

    .circle-gallery {
        width: 320px;
        height: 320px;
    }

    .circle-item {
        width: 80px;
        height: 80px;
    }

    .moving-bar-container {
        height: 180px;
    }

    .moving-bar-item {
        flex: 0 0 150px;
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }

    .whatsapp-float {
        bottom: 20px;
        left: 20px;
        width: 50px;
        height: 50px;
        font-size: 24px;
    }

    .whatsapp-tooltip {
        display: none;
    }

    .scroll-top-btn {
        left: 20px;
        bottom: 80px;
        width: 45px;
        height: 45px;
    }
}

@media (max-width: 576px) {
    .container {
        padding: 0 15px;
    }

    .hero-title {
        font-size: 1.5rem;
    }

    .section-title {
        font-size: 1.6rem;
    }

    .about-image {
        margin-bottom: 25px;
    }

    .circle-gallery {
        width: 280px;
        height: 280px;
    }

    .circle-item {
        width: 70px;
        height: 70px;
        border-width: 3px;
    }

    .circle-instruction {
        display: none;
    }

    .moving-bar-container {
        height: 150px;
        padding: 15px;
    }

    .moving-bar {
        height: 120px;
    }

    .moving-bar-item {
        flex: 0 0 130px;
    }

    .modal-content {
        width: 95%;
    }

    .modal-body {
        height: 300px;
    }
}

/* ===== أنماط إضافية للصور ===== */
img {
    max-width: 100%;
    height: auto;
}

.logo-image {
    height: 50px;
    width: auto;
    transition: var(--transition);
}

.logo-image:hover {
    transform: scale(1.05);
}

.loading-logo {
    height: 80px;
    width: auto;
    margin-bottom: 20px;
    animation: pulse 2s infinite;
}

.section-logo {
    height: 60px;
    width: auto;
    margin-bottom: 20px;
}

.hero-logo img {
    height: 100px;
    width: auto;
    margin-bottom: 20px;
    animation: float 3s ease-in-out infinite;
}

.footer-logo-image {
    height: 50px;
    width: auto;
}

/* ===== أنماط الأيقونات المصورة ===== */
.feature-icon img,
.service-icon img,
.contact-icon img,
.social-links img,
.stat-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.circle-item-icon img,
.moving-icon img,
.gallery-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* ===== بدائل للأيقونات النصية ===== */
@media (max-width: 768px) {
    .logo-image {
        height: 40px;
    }

    .loading-logo {
        height: 60px;
    }

    .section-logo {
        height: 40px;
    }

    .hero-logo img {
        height: 70px;
    }
}

/* ===== تأثيرات إضافية ===== */
.fade-in {
    animation: fadeIn 1s ease-in;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.slide-in-left {
    animation: slideInLeft 1s ease-out;
}

@keyframes slideInLeft {
    from { transform: translateX(-50px); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

.slide-in-right {
    animation: slideInRight 1s ease-out;
}

@keyframes slideInRight {
    from { transform: translateX(50px); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

.zoom-in {
    animation: zoomIn 0.5s ease-out;
}

@keyframes zoomIn {
    from { transform: scale(0.8); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

/* ===== تأثيرات التمرير ===== */
.scroll-animate {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.scroll-animate.animated {
    opacity: 1;
    transform: translateY(0);
}

/* ===== تأثيرات النص ===== */
.text-gradient {
    background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    font-weight: bold;
}

.text-shadow {
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
}

/* ===== تأثيرات الخلفية ===== */
.bg-pattern {
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="100" height="100" viewBox="0 0 100 100"><circle cx="50" cy="50" r="2" fill="%2300529B" opacity="0.1"/></svg>');
    background-size: 20px 20px;
}

/* ===== تأثيرات الحدود ===== */
.border-glow {
    border: 2px solid transparent;
    background: linear-gradient(var(--white), var(--white)) padding-box,
                linear-gradient(45deg, var(--primary-color), var(--secondary-color)) border-box;
    border-radius: var(--border-radius);
}

/* ===== تأثيرات الظلال ===== */
.shadow-hover {
    transition: var(--transition);
}

.shadow-hover:hover {
    box-shadow: 0 10px 30px rgba(0, 82, 155, 0.2);
}

/* ===== تأثيرات الدوران ===== */
.rotate-hover {
    transition: transform 0.5s ease;
}

.rotate-hover:hover {
    transform: rotate(5deg);
}

/* ===== تأثيرات المقياس ===== */
.scale-hover {
    transition: transform 0.3s ease;
}

.scale-hover:hover {
    transform: scale(1.05);
}

/* ===== تأثيرات الشفافية ===== */
.opacity-hover {
    transition: opacity 0.3s ease;
}

.opacity-hover:hover {
    opacity: 0.8;
}

/* ===== تأثيرات الإشعارات ===== */
.notification {
    position: fixed;
    top: 20px;
    left: 20px;
    padding: 12px 20px;
    background: #3498db;
    color: white;
    border-radius: var(--border-radius);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    z-index: 9999;
    transform: translateX(-100%);
    transition: transform 0.3s ease;
    font-family: 'Cairo', sans-serif;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 10px;
    max-width: 300px;
}

.notification.show {
    transform: translateX(0);
}

.notification.success {
    background: #2ecc71;
}

.notification.error {
    background: #e74c3c;
}

.notification.info {
    background: #3498db;
}

.notification i {
    font-size: 18px;
}

/* حركة الاختفاء التدريجي */
.fade-in {
    animation: fadeIn 1s ease-in;   /* يدخل بشفافية */
}
@keyframes fadeIn {
    from { opacity: 0; }            /* يبدأ شفاف */
    to { opacity: 1; }              /* ينتهي ظاهر */
}
/* حركة الانزلاق من اليسار */
.slide-in-left {
    animation: slideInLeft 1s ease-out; /* يدخل من اليسار */
}
@keyframes slideInLeft {
    from { transform: translateX(-50px); opacity: 0; } /* يبدأ خارج الشاشة */
    to { transform: translateX(0); opacity: 1; }       /* ينتهي في مكانه */
}
/* حركة التكبير */
.zoom-in {
    animation: zoomIn 0.5s ease-out; /* يكبر */
}
@keyframes zoomIn {
    from { transform: scale(0.8); opacity: 0; } /* يبدأ صغير */
    to { transform: scale(1); opacity: 1; }     /* ينتهي بالحجم الطبيعي */
}

/* =========================================================
   ✅ CSS من داخل <style> في HTML (تم نقله هنا كما هو)
========================================================= */
.top-email-bar {
    background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
    color: white;
    padding: 8px 0;
    text-align: left;
    direction: ltr;
    font-size: 14px;
}

.top-email-bar .container {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    gap: 20px;
}

.top-email {
    display: flex;
    align-items: center;
    gap: 8px;
    color: white;
    text-decoration: none;
    transition: all 0.3s ease;
}

.top-email:hover {
    color: var(--accent-color);
    transform: translateY(-2px);
}

.top-email i {
    font-size: 16px;
}

.header {
    top: 40px;
}

.hero-section {
    margin-top: calc(var(--header-height) + 40px);
}

/* إزالة اللوجو من الهيرو */
.hero-logo {
    display: none;
}

/* تحسين تنسيق الفوتر */
.footer-logo-image {
    height: 60px;
    width: auto;
    margin-bottom: 15px;
}

/* إزالة أيقونة البريد القديم من قسم الاتصال */
.contact-card .contact-icon.fa-envelope {
    background: linear-gradient(135deg, #e74c3c, #e67e22);
}

@media (max-width: 768px) {
    .top-email-bar {
        padding: 6px 0;
        font-size: 12px;
    }

    .top-email-bar .container {
        justify-content: center;
        text-align: center;
    }

    .header {
        top: 35px;
    }

    .hero-section {
        margin-top: calc(var(--header-height) + 35px);
    }
}

/* =========================================================
   ✅ 1) ترتيب لوقو الفوتر: (إلغاء logo footer.jpg + إضافة لوقو طويل)
========================================================= */
.footer-brand {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 15px;
    flex-wrap: wrap;
}

.footer-logo-main {
    height: 52px;
    width: auto;
    object-fit: contain;
    background: rgba(255,255,255,0.08);
    padding: 8px 10px;
    border-radius: 12px;
}

.footer-logo-long {
    height: 52px;         /* نفس الارتفاع حتى يكون مرتب */
    width: auto;
    max-width: 260px;     /* يمنع التمدد الزائد */
    object-fit: contain;
    background: rgba(255,255,255,0.08);
    padding: 8px 10px;
    border-radius: 12px;
}

/* لو حبيت اللوقو الطويل يطلع تحت في الموبايل */
@media (max-width: 576px) {
    .footer-brand {
        justify-content: center;
    }
    .footer-logo-long {
        max-width: 220px;
    }
}

/* =========================================================
   ✅ 2) خريطة تواصل معنا (صورة افتراضية + شكل مرتب)
========================================================= */
.map-box {
    display: block;
    text-decoration: none;
    color: inherit;
    background: var(--white);
    border-radius: var(--border-radius);
    overflow: hidden;
    border: 1px solid rgba(0, 0, 0, 0.06);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
    transition: var(--transition);
    margin-top: 10px;
}

.map-box:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0, 82, 155, 0.18);
}

.map-box-top {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 14px 10px 14px;
}

.map-box-icon {
    font-size: 22px;
    color: var(--primary-color);
}

.map-box-title {
    font-weight: 700;
    color: var(--dark-color);
    margin: 0;
}

.map-box-subtitle {
    font-size: 0.9rem;
    color: var(--gray-color);
    margin: 3px 0 0 0;
}

.map-box-image {
    height: 160px;
    background: var(--light-gray);
}

.map-box-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* =========================================================
   أي CSS زيادة/غير مستخدم: خليه كومنت حسب طلبك
========================================================= */
/*
.example-unused {
   display: none;
}
*/

/* =========================================================
   ✅ (كان في <style> داخل HTML) نقلناه هنا
========================================================= */

/* إضافة ستايل للبريد الإلكتروني في أعلى الصفحة */
.top-email-bar {
    background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
    color: white;
    padding: 8px 0;
    text-align: left;
    direction: ltr;
    font-size: 14px;
}

.top-email-bar .container {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    gap: 20px;
}

.top-email {
    display: flex;
    align-items: center;
    gap: 8px;
    color: white;
    text-decoration: none;
    transition: all 0.3s ease;
}

.top-email:hover {
    color: var(--accent-color);
    transform: translateY(-2px);
}

.top-email i {
    font-size: 16px;
}

/* تعديل الهيدر ليكون بعد شريط البريد */
.header {
    top: 40px;
}

/* تعديل الهيرو ليتناسب مع التغيير */
.hero-section {
    margin-top: calc(var(--header-height) + 40px);
}

/* إزالة اللوجو من الهيرو */
.hero-logo {
    display: none;
}

/* خلفية جديدة للهيرو (لو عندك نفس السطر موجود خليه كما هو) */
/* .hero-section {
    background: linear-gradient(rgba(0, 82, 155, 0.85), rgba(80, 80, 120, 0.8)), url('img/hero-bg.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
} */

/* تحسين تنسيق الفوتر */
.footer-logo-image {
    height: 60px;
    width: auto;
    margin-bottom: 15px;
}

/* استجابة للشريط العلوي */
@media (max-width: 768px) {
    .top-email-bar {
        padding: 6px 0;
        font-size: 12px;
    }

    .top-email-bar .container {
        justify-content: center;
        text-align: center;
    }

    .header {
        top: 35px;
    }

    .hero-section {
        margin-top: calc(var(--header-height) + 35px);
    }
}

/* =========================================================
   ✅ ستايل الخريطة + البحث
========================================================= */
.leaflet-map{
    width: 100%;
    height: 280px;
    border-radius: 14px;
    overflow: hidden;
    border: 1px solid rgba(0,0,0,0.08);
    box-shadow: 0 6px 18px rgba(0,0,0,0.08);
    margin-top: 10px;
}

.map-search{
    display: flex;
    gap: 10px;
    margin-top: 10px;
}

.map-search input{
    flex: 1;
    padding: 12px 14px;
    border-radius: 12px;
    border: 1px solid rgba(0,0,0,0.15);
    outline: none;
    font-family: "Cairo", sans-serif;
}

.map-search button{
    padding: 12px 14px;
    border-radius: 12px;
    border: none;
    cursor: pointer;
    background: var(--primary-color);
    color: #fff;
}
