/* ====== المتغيرات الأساسية ====== */
:root {
    --primary-color: #0056b3;
    --secondary-color: #6c757d;
    --success-color: #25d366;
    --warning-color: #ffc107;
    --danger-color: #dc3545;
    --info-color: #17a2b8;
    --light-color: #f8f9fa;
    --dark-color: #343a40;
    --white-color: #ffffff;
    --gradient-primary: linear-gradient(135deg, #0056b3, #007bff);
    --gradient-success: linear-gradient(135deg, #25d366, #128c7e);
    --shadow-light: 0 2px 15px rgba(0, 0, 0, 0.1);
    --shadow-heavy: 0 10px 40px rgba(0, 0, 0, 0.15);
    --border-radius: 15px;
    --transition: all 0.3s ease;
}

/* ====== إعدادات عامة ====== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Cairo', sans-serif;
    line-height: 1.6;
    color: var(--dark-color);
    overflow-x: hidden;
}

html {
    scroll-behavior: smooth;
}

/* ====== التخطيط العام ====== */
.container {
    max-width: 1200px;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--dark-color);
    margin-bottom: 1rem;
    position: relative;
}

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

.section-subtitle {
    font-size: 1.2rem;
    color: var(--secondary-color);
    margin-bottom: 2rem;
}

/* ====== شريط التنقل ====== */
.navbar {
    backdrop-filter: blur(10px);
    background: rgba(0, 86, 179, 0.95) !important;
    transition: var(--transition);
    box-shadow: var(--shadow-light);
}

.navbar-brand {
    font-size: 1.5rem;
    font-weight: 700;
}

.navbar-nav .nav-link {
    font-weight: 500;
    margin: 0 0.5rem;
    transition: var(--transition);
}

.navbar-nav .nav-link:hover {
    color: var(--warning-color) !important;
    transform: translateY(-2px);
}

/* ====== القائمة المنسدلة ====== */
.dropdown-menu {
    background: white;
    border: none;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border-radius: 10px;
    padding: 0.5rem 0;
    margin-top: 0.5rem;
}

.dropdown-item {
    padding: 0.75rem 1.5rem;
    color: var(--dark-color);
    font-weight: 500;
    transition: all 0.3s ease;
    border-radius: 0;
}

.dropdown-item:hover {
    background: var(--primary-color);
    color: white;
    transform: translateX(5px);
}

.dropdown-divider {
    margin: 0.5rem 0;
    border-color: #e9ecef;
}

/* ====== الهيدر الرئيسي ====== */
.hero-section {
    min-height: 100vh;
    background: linear-gradient(135deg, rgba(0, 86, 179, 0.9), rgba(0, 123, 255, 0.8)),
                url('../images/hero-bg.jpg') center/cover no-repeat;
    display: flex;
    align-items: center;
    position: relative;
    color: white;
    padding-top: 80px;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.3);
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    margin-bottom: 1.5rem;
}

.hero-subtitle {
    font-size: 1.3rem;
    font-weight: 400;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
    margin-bottom: 2rem;
}

.hero-buttons .btn {
    font-size: 1.1rem;
    padding: 15px 30px;
    border-radius: 50px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.hero-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: var(--border-radius);
    padding: 2rem;
    box-shadow: var(--shadow-heavy);
    color: var(--dark-color);
    transform: translateY(0);
    transition: var(--transition);
}

.hero-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
}

.feature-item {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
    font-size: 1rem;
}

.feature-item i {
    font-size: 1.2rem;
    margin-left: 0.75rem;
}

.btn-gradient {
    background: var(--gradient-primary);
    border: none;
    color: white;
    font-weight: 600;
    transition: var(--transition);
}

.btn-gradient:hover {
    background: var(--gradient-success);
    transform: translateY(-2px);
    box-shadow: var(--shadow-light);
    color: white;
}

.pulse {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    color: white;
    font-size: 1.5rem;
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateX(-50%) translateY(0); }
    40% { transform: translateX(-50%) translateY(-10px); }
    60% { transform: translateX(-50%) translateY(-5px); }
}

/* ====== قسم عن الشركة ====== */
.about-section {
    padding: 100px 0;
    background: var(--white-color);
}

.about-content {
    padding: 0 1rem;
}

.about-features .feature-item {
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

.about-image {
    position: relative;
}

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

.experience-badge {
    position: absolute;
    top: -30px;
    right: -30px;
    background: var(--gradient-primary);
    color: white;
    padding: 20px;
    border-radius: 50%;
    text-align: center;
    box-shadow: var(--shadow-heavy);
    min-width: 120px;
    min-height: 120px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.experience-badge .number {
    font-size: 2rem;
    font-weight: 800;
    display: block;
}

.experience-badge .text {
    font-size: 0.9rem;
    font-weight: 500;
}

/* ====== قسم الإحصائيات ====== */
.stats-section {
    background: var(--gradient-primary);
    color: white;
}

.stat-item {
    text-align: center;
    padding: 2rem 1rem;
}

.stat-item i {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: var(--warning-color);
}

.stat-item h3 {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
}

.stat-item p {
    font-size: 1.1rem;
    font-weight: 500;
}

/* ====== قسم لماذا نحن الأفضل ====== */
.why-us-section {
    background: var(--light-color);
}

.feature-card {
    background: white;
    border-radius: var(--border-radius);
    padding: 2.5rem 2rem;
    text-align: center;
    transition: var(--transition);
    box-shadow: var(--shadow-light);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

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

.feature-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 2rem;
}

.feature-card h4 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--dark-color);
}

.feature-card p {
    color: var(--secondary-color);
    line-height: 1.7;
}

/* ====== قسم المشاريع ====== */
.projects-section {
    background: var(--light-color);
}

.project-filters {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 3rem;
}

.filter-btn {
    background: white;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    padding: 12px 24px;
    border-radius: 50px;
    font-weight: 600;
    transition: var(--transition);
    cursor: pointer;
}

.filter-btn:hover,
.filter-btn.active {
    background: var(--primary-color);
    color: white;
    transform: translateY(-2px);
    box-shadow: var(--shadow-light);
}

.modern-card {
    background: white;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-light);
    transition: var(--transition);
    border: none;
}

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

.project-image-wrapper {
    position: relative;
    height: 250px;
    overflow: hidden;
}

.project-main-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.modern-card:hover .project-main-image {
    transform: scale(1.1);
}

.project-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.3), transparent, rgba(0, 0, 0, 0.7));
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 1rem;
}

.project-badges {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.project-badges .badge {
    font-size: 0.8rem;
    padding: 0.5rem 1rem;
    border-radius: 20px;
}

.project-price {
    text-align: center;
    color: white;
}

.price-label {
    display: block;
    font-size: 0.9rem;
    margin-bottom: 0.25rem;
}

.price-value {
    font-size: 1.3rem;
    font-weight: 700;
}

.project-content {
    padding: 1.5rem;
}

.project-title {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--dark-color);
}

.project-location {
    display: flex;
    align-items: center;
    color: var(--secondary-color);
    margin-bottom: 1rem;
    font-size: 0.95rem;
}

.project-location i {
    margin-left: 0.5rem;
}

.project-description {
    color: var(--secondary-color);
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.project-quick-info {
    display: flex;
    justify-content: space-between;
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
}

.info-item {
    display: flex;
    align-items: center;
    color: var(--secondary-color);
}

.info-item i {
    margin-left: 0.5rem;
    color: var(--primary-color);
}

.payment-highlight {
    background: var(--light-color);
    border-radius: 10px;
    padding: 1rem;
    display: flex;
    align-items: center;
    margin-bottom: 1.5rem;
}

.payment-icon {
    width: 40px;
    height: 40px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    margin-left: 1rem;
    flex-shrink: 0;
}

.payment-text {
    font-size: 0.95rem;
    color: var(--dark-color);
}

.project-actions {
    display: flex;
    gap: 0.75rem;
}

.project-actions .btn {
    font-size: 0.9rem;
    padding: 10px 15px;
    border-radius: 8px;
    font-weight: 600;
}

/* ====== أنماط البطاقات المبسطة ====== */
.simple-card {
    background: white;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-light);
    transition: var(--transition);
    border: 1px solid rgba(0, 86, 179, 0.1);
}

.simple-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-heavy);
}

.simple-card .project-image-wrapper {
    height: 250px;
}

.simple-card .project-overlay {
    background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, transparent 100%);
    opacity: 1;
    bottom: 0;
    top: auto;
    justify-content: center;
    align-items: flex-end;
}

.simple-card .project-description {
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.simple-card .project-features h6,
.simple-card .payment-highlight h6 {
    font-size: 0.95rem;
    font-weight: 600;
}

.simple-card .feature-item.small {
    font-size: 0.85rem;
}

.simple-card .feature-item i {
    margin-top: 2px;
    flex-shrink: 0;
}

.simple-card .project-info .info-item {
    font-size: 0.85rem;
}

.simple-card .payment-option {
    font-size: 0.85rem;
}

.simple-card .project-actions .btn-primary {
    width: 45px;
    height: 40px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.simple-card .project-actions .gap-2 {
    gap: 0.5rem;
}

/* ====== معرض الصور المصغر ====== */
.project-gallery-mini {
    padding: 15px;
    background: #f8f9fa;
    border-bottom: 1px solid #e9ecef;
}

.gallery-scroll {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    scrollbar-width: thin;
    scrollbar-color: var(--primary-color) #f1f1f1;
    padding-bottom: 5px;
}

.gallery-scroll::-webkit-scrollbar {
    height: 4px;
}

.gallery-scroll::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

.gallery-scroll::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 10px;
}

.gallery-scroll::-webkit-scrollbar-thumb:hover {
    background: var(--gradient-primary);
}

.gallery-item {
    flex-shrink: 0;
}

.gallery-thumbnail {
    width: 80px;
    height: 60px;
    object-fit: cover;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.gallery-thumbnail:hover {
    transform: scale(1.1);
    border-color: var(--primary-color);
    box-shadow: 0 4px 15px rgba(0, 86, 179, 0.3);
}

/* ====== أنماط الصور القابلة للنقر ====== */
.clickable-image {
    cursor: pointer !important;
    transition: all 0.3s ease;
    position: relative;
    border: 2px solid transparent;
}

.clickable-image:hover {
    transform: scale(1.02);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    border-color: var(--primary-color);
}

.clickable-image::after {
    content: '\f002';
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.clickable-image:hover::after {
    opacity: 1;
}

/* ====== تحسينات مودال الصورة ====== */
.modal-content {
    border-radius: 15px;
    overflow: hidden;
    border: none;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.modal-header {
    background: linear-gradient(135deg, var(--primary-color), #007bff);
    color: white;
    padding: 1rem 1.5rem;
}

.modal-title {
    font-weight: 600;
    font-size: 1.1rem;
}

.btn-close {
    filter: invert(1);
    opacity: 0.8;
}

.btn-close:hover {
    opacity: 1;
}

#modalImage {
    max-height: 70vh;
    width: auto;
    margin: 0 auto;
    display: block;
    border-radius: 8px;
}

/* ====== زر الإغلاق المخصص ====== */
.btn-close-custom {
    position: absolute;
    top: 15px;
    right: 20px;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    color: var(--dark-color);
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    z-index: 1050;
}

.btn-close-custom:hover {
    background: #fff;
    color: var(--danger-color);
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

.btn-close-custom:active {
    transform: scale(0.95);
}

/* ====== المودال ====== */
.modal-content {
    border-radius: var(--border-radius);
    border: none;
    box-shadow: var(--shadow-heavy);
}

.modal-header {
    background: var(--gradient-primary);
    color: white;
    border-radius: var(--border-radius) var(--border-radius) 0 0;
}

.modal-title {
    font-weight: 700;
}

.swiper {
    border-radius: 10px;
    overflow: hidden;
}

.swiper-slide img {
    width: 100%;
    height: 300px;
    object-fit: cover;
}

.project-full-description h6,
.project-features h6,
.payment-systems h6 {
    color: var(--primary-color);
    font-weight: 700;
    margin-bottom: 1rem;
}

.project-features .feature-item,
.payment-option {
    display: flex;
    align-items: center;
    margin-bottom: 0.75rem;
    font-size: 0.95rem;
}

/* ====== قسم الخدمات ====== */
.services-section {
    background: white;
}

.service-card {
    background: white;
    border-radius: var(--border-radius);
    padding: 2.5rem 2rem;
    box-shadow: var(--shadow-light);
    transition: var(--transition);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

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

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

.service-card h4 {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--dark-color);
}

.service-card p {
    color: var(--secondary-color);
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

/* ====== قسم التواصل ====== */
.contact-section {
    background: var(--gradient-primary);
}

.contact-buttons {
    margin-bottom: 2rem;
}

.contact-buttons .btn {
    font-size: 1.1rem;
    padding: 15px 30px;
    border-radius: 50px;
    font-weight: 600;
    margin: 0.5rem;
}

.contact-info {
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    padding-top: 2rem;
}

.contact-info i {
    display: block;
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: var(--warning-color);
}

/* ====== الفوتر ====== */
.footer {
    background: var(--dark-color) !important;
}

.footer h5,
.footer h6 {
    color: white;
    font-weight: 700;
}

.footer p,
.footer li {
    color: #adb5bd;
    margin-bottom: 0.5rem;
}

.footer a {
    color: #adb5bd;
    text-decoration: none;
    transition: var(--transition);
}

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

.social-links a {
    display: inline-block;
    width: 40px;
    height: 40px;
    background: var(--primary-color);
    border-radius: 50%;
    text-align: center;
    line-height: 40px;
    margin-left: 0.5rem;
    transition: var(--transition);
}

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

/* ====== الأزرار العائمة ====== */
.floating-contact {
    position: fixed;
    bottom: 30px;
    left: 30px;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

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

.whatsapp-btn {
    background: var(--gradient-success);
}

.call-btn {
    background: var(--gradient-primary);
}

.floating-btn:hover {
    transform: scale(1.1);
    color: white;
}

@keyframes pulse-float {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

/* ====== زر العودة للأعلى ====== */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--gradient-primary);
    color: white;
    border: none;
    border-radius: 50%;
    font-size: 1.2rem;
    cursor: pointer;
    box-shadow: var(--shadow-light);
    transition: var(--transition);
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    z-index: 1000;
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    background: var(--gradient-success);
    transform: translateY(-5px);
    box-shadow: var(--shadow-heavy);
}

/* ====== مودال الصور ====== */
.image-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.image-modal .modal-content {
    position: relative;
    max-width: 90%;
    max-height: 90%;
    background: transparent;
}

.image-modal .modal-image {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.image-modal .modal-close {
    position: absolute;
    top: -40px;
    right: 0;
    background: none;
    border: none;
    color: white;
    font-size: 2rem;
    cursor: pointer;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.image-modal .modal-close:hover {
    color: var(--warning-color);
    transform: scale(1.2);
}

.image-modal .modal-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    font-size: 2rem;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    transition: var(--transition);
}

.image-modal .modal-nav:hover {
    background: rgba(255, 255, 255, 0.4);
    transform: translateY(-50%) scale(1.1);
}

.image-modal .modal-prev {
    left: -60px;
}

.image-modal .modal-next {
    right: -60px;
}

.image-modal .modal-info {
    position: absolute;
    bottom: -40px;
    left: 50%;
    transform: translateX(-50%);
    color: white;
    font-size: 1rem;
    font-weight: 500;
}

/* ====== البوب أب ====== */
.promo-icon i {
    font-size: 4rem;
    color: var(--primary-color);
}

.promo-actions .btn {
    font-size: 1.1rem;
    padding: 12px 25px;
    border-radius: 50px;
    font-weight: 600;
}

/* ====== الاستجابة للأجهزة المحمولة ====== */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.2rem;
        line-height: 1.2;
        margin-bottom: 1rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .hero-buttons {
        display: flex;
        flex-direction: column;
        gap: 1rem;
    }
    
    .hero-card {
        margin-top: 2rem;
    }
    
    .hero-section {
        padding-top: 100px;
    }
    
    .project-filters {
        flex-direction: column;
        align-items: center;
    }
    
    .filter-btn {
        width: 200px;
        text-align: center;
    }
    
    .project-quick-info {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .project-actions {
        flex-direction: column;
    }
    
    /* أنماط البطاقات المبسطة للهواتف */
    .simple-card .project-content {
        padding: 1rem;
    }

    .simple-card .project-title {
        font-size: 1.3rem;
        margin-bottom: 0.75rem;
        line-height: 1.3;
        font-weight: 700;
    }

    .simple-card .project-location {
        font-size: 0.9rem;
        margin-bottom: 0.75rem;
    }

    .simple-card .badge {
        font-size: 0.8rem;
        padding: 4px 8px;
        margin-bottom: 1rem;
    }

    .simple-card .project-description {
        font-size: 0.95rem;
        margin-bottom: 1rem;
        line-height: 1.5;
    }

    .simple-card .project-features,
    .simple-card .project-info,
    .simple-card .payment-highlight {
        margin-bottom: 1rem;
    }

    .simple-card .project-features h6,
    .simple-card .payment-highlight h6 {
        font-size: 1rem;
        margin-bottom: 0.75rem;
        font-weight: 600;
    }

    .simple-card .feature-item.small {
        font-size: 0.85rem;
        margin-bottom: 0.5rem;
    }

    .simple-card .project-info .info-item {
        font-size: 0.85rem;
        margin-bottom: 0.5rem;
    }

    .simple-card .payment-option {
        font-size: 0.85rem;
        margin-bottom: 0.5rem;
    }

    .simple-card .project-actions {
        flex-direction: row;
        gap: 0.75rem;
        margin-top: 1rem;
    }

    .simple-card .project-actions .btn {
        font-size: 0.9rem;
        padding: 10px 16px;
        border-radius: 8px;
    }

    .simple-card .project-actions .btn-primary {
        width: 45px;
        height: 40px;
    }
    
    /* معرض الصور للهواتف */
    .project-gallery-mini {
        padding: 10px;
    }
    
    .gallery-thumbnail {
        width: 70px;
        height: 50px;
    }
    
    .floating-contact {
        left: 15px;
        bottom: 15px;
    }
    
    .back-to-top {
        right: 15px;
        bottom: 120px;
    }
    
    .experience-badge {
        position: static;
        margin: 2rem auto 0;
    }
    
    .contact-buttons {
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    
    .contact-info .row > div {
        margin-bottom: 1rem;
    }
}

@media (max-width: 576px) {
    .hero-title {
        font-size: 1.8rem;
        line-height: 1.3;
        text-align: center;
        padding: 0 10px;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .navbar-brand {
        font-size: 1.2rem;
    }
    
    .hero-card {
        padding: 1.5rem;
    }
    
    .feature-card,
    .service-card {
        padding: 2rem 1.5rem;
    }
    
    .stat-item h3 {
        font-size: 2.5rem;
    }
    
    .floating-btn {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
    }
    
    /* تحسينات إضافية للبطاقات المبسطة على الشاشات الصغيرة */
    .simple-card .project-image-wrapper {
        height: 220px;
    }
    
    .simple-card .project-title {
        font-size: 1.2rem;
        margin-bottom: 0.5rem;
        line-height: 1.3;
    }
    
    .simple-card .project-location {
        font-size: 0.85rem;
        margin-bottom: 0.5rem;
    }
    
    .simple-card .badge {
        font-size: 0.75rem;
        padding: 3px 6px;
        margin-bottom: 0.75rem;
    }
    
    .simple-card .project-description {
        font-size: 0.9rem;
        line-height: 1.4;
        margin-bottom: 0.75rem;
    }
    
    .simple-card .project-features h6,
    .simple-card .payment-highlight h6 {
        font-size: 0.9rem;
        margin-bottom: 0.5rem;
    }
    
    .simple-card .feature-item.small,
    .simple-card .project-info .info-item,
    .simple-card .payment-option {
        font-size: 0.8rem;
        margin-bottom: 0.25rem;
    }
    
    .simple-card .project-features,
    .simple-card .project-info,
    .simple-card .payment-highlight {
        margin-bottom: 0.75rem;
    }
    
    .simple-card .project-actions {
        gap: 0.5rem;
        margin-top: 0.75rem;
    }
    
    .simple-card .project-actions .btn {
        font-size: 0.85rem;
        padding: 8px 12px;
        border-radius: 6px;
    }
    
    .simple-card .project-actions .btn-primary {
        width: 38px;
        height: 36px;
    }
    
    /* معرض الصور للشاشات الصغيرة جداً */
    .project-gallery-mini {
        padding: 8px;
    }
    
    .gallery-thumbnail {
        width: 60px;
        height: 45px;
    }
    
    /* مودال الصور للهواتف */
    .modal-dialog {
        margin: 1rem;
    }
    
    .modal-header {
        padding: 0.75rem 1rem;
    }
    
    .modal-title {
        font-size: 1rem;
    }
    
    #modalImage {
        max-height: 60vh;
    }
    
    .clickable-image::after {
        width: 25px;
        height: 25px;
        font-size: 10px;
        top: 5px;
        right: 5px;
    }
    
    /* زر الإغلاق المخصص للهواتف */
    .btn-close-custom {
        width: 35px;
        height: 35px;
        font-size: 16px;
        top: 10px;
        right: 15px;
    }
}

/* ====== إضافات للتحسين ====== */
.img-fluid {
    border-radius: 10px;
}

.btn {
    border-radius: 8px;
    font-weight: 600;
    transition: var(--transition);
}

.btn:hover {
    transform: translateY(-2px);
}

.card {
    border: none;
    box-shadow: var(--shadow-light);
    border-radius: var(--border-radius);
}

.badge {
    font-weight: 600;
    font-size: 0.8rem;
}

/* ====== تحسينات إضافية ====== */
.highlight {
    color: var(--primary-color);
    font-weight: 700;
}

.text-primary {
    color: var(--primary-color) !important;
}

.bg-primary {
    background: var(--gradient-primary) !important;
}

.border-primary {
    border-color: var(--primary-color) !important;
}

/* ====== تأثيرات التحميل ====== */
[data-aos] {
    opacity: 0;
    transition-property: opacity, transform;
}

[data-aos].aos-animate {
    opacity: 1;
}

/* ====== تحسينات الأداء ====== */
img {
    max-width: 100%;
    height: auto;
}

.lazyload {
    opacity: 0;
    transition: opacity 0.3s;
}

.lazyloaded {
    opacity: 1;
} 