/* =================START Contact Us Section CSS================== */
body {
    font-family: 'Arial', sans-serif;
    background-color: #f8f9fa;
}

.contact-us-section {
    padding: 80px 0;
}

.section-title {
    color: #28a745;
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.lead {
    color: #6c757d;
    font-size: 1.1rem;
}

.social-icons .social-icon {
    display: inline-block;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: #28a745;
    color: #fff;
    font-size: 1.5rem;
    margin: 0 5px;
    padding-right: 10px;
    line-height: 38px;
    transition: all 0.3s ease;
    text-decoration: none;
}

.social-icons .social-icon:hover {
    background-color: #218838;
    transform: translateY(-3px);
}

.contact-option {
    border: none;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    max-width: 700px; /* تحديد أقصى عرض للكروت */
    margin: 0 auto 20px auto; /* توسيط الكروت */
}

.contact-option:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

.contact-option .card-body {
    padding: 25px;
}

.contact-option .option-text {
    font-size: 1.2rem;
    font-weight: bold;
    color: #343a40;
}

.contact-option .btn-success {
    background-color: #28a745;
    border-color: #28a745;
    border-radius: 50px;
    padding: 10px 25px;
    font-size: 1rem;
    font-weight: bold;
    transition: background-color 0.3s ease, border-color 0.3s ease;
}

.contact-option .btn-success:hover {
    background-color: #218838;
    border-color: #1e7e34;
}

/* Responsive adjustments */
@media (max-width: 767.98px) {
    .section-title {
        font-size: 2rem;
    }

    .lead {
        font-size: 1rem;
    }

    .social-icons .social-icon {
        width: 40px;
        height: 40px;
        line-height: 38px;
        font-size: 1.3rem;
        margin: 0 5px;
    }

    .contact-option .card-body {
        flex-direction: column;
        text-align: center;
    }

    .contact-option .option-text {
        margin-bottom: 15px;
    }

    .contact-option .btn-success {
        width: 80%;
    }
}
/* =================END Contact Us Section CSS================== */



/* ================= إضافات الأنيميشن واللمسات الجمالية ================= */

/* أنيميشن دخول العناصر */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

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

@keyframes shimmer {
    0% {
        background-position: -200% 0;
    }
    100% {
        background-position: 200% 0;
    }
}

/* تطبيق الأنيميشن على العناصر */
.section-title {
    animation: fadeInUp 0.8s ease-out;
}

.lead {
    animation: fadeInUp 0.8s ease-out 0.2s both;
}

.contact-option {
    animation: fadeInScale 0.6s ease-out;
}

.contact-option:nth-child(1) {
    animation-delay: 0.1s;
}

.contact-option:nth-child(2) {
    animation-delay: 0.2s;
}

.contact-option:nth-child(3) {
    animation-delay: 0.3s;
}

.social-icons {
    animation: fadeInUp 0.8s ease-out 0.5s both;
}

/* تحسين أيقونات التواصل */
.contact-icon {
    font-size: 1.8rem;
    color: #28a745;
    transition: all 0.3s ease;
}

.contact-option:hover .contact-icon {
    color: #218838;
    transform: scale(1.1) rotate(5deg);
}

/* تحسين تأثيرات الكروت */
.contact-option {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border: 1px solid rgba(40, 167, 69, 0.1);
    /* overflow: hidden; */
    position: relative;
}

.contact-option::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(40, 167, 70, 0.026), transparent);
    transition: left 0.5s ease;
}

.contact-option:hover::before {
    left: 100%;
}

.contact-option:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(40, 167, 69, 0.15);
    border-color: rgba(40, 167, 69, 0.3);
}

/* تحسين الأزرار */
.contact-option .btn-success {
    position: relative;
    overflow: hidden;
    background: linear-gradient(45deg, #28a745, #20c997);
    border: none;
    box-shadow: 0 4px 15px rgba(40, 167, 69, 0.3);
}

.contact-option .btn-success::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    transition: left 0.5s ease;
}

.contact-option .btn-success:hover::before {
    left: 100%;
}

.contact-option .btn-success:hover {
    background: linear-gradient(45deg, #218838, #1ea085);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(40, 167, 69, 0.4);
}

/* تحسين أيقونات وسائل التواصل الاجتماعي */
.social-icons .social-icon {
    position: relative;
    overflow: hidden;
    background: linear-gradient(45deg, #28a745, #20c997);
    box-shadow: 0 4px 15px rgba(40, 167, 69, 0.3);
    margin: 0 8px;
}

.social-icons .social-icon::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    transition: left 0.5s ease;
}

.social-icons .social-icon:hover::before {
    left: 100%;
}

.social-icons .social-icon:hover {
    background: linear-gradient(45deg, #218838, #1ea085);
    transform: translateY(-5px) scale(1.1);
    box-shadow: 0 8px 25px rgba(40, 167, 69, 0.4);
}

/* تحسين خلفية القسم */
.contact-us-section {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    position: relative;
    overflow: hidden;
}

.contact-us-section::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(40, 167, 69, 0.05) 0%, transparent 70%);
    animation: pulse 4s ease-in-out infinite;
}

/* تحسين النصوص */
.section-title {
    background: linear-gradient(45deg, #28a745, #20c997);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: bold;
    text-shadow: 0 2px 4px rgba(40, 167, 69, 0.1);
}

.option-text {
    transition: all 0.3s ease;
}

.contact-option:hover .option-text {
    color: #28a745;
    transform: translateX(-5px);
}

/* تأثيرات إضافية للتفاعل */
.contact-option .card-body {
    transition: all 0.3s ease;
}

.contact-option:hover .card-body {
    padding: 28px;
}

/* تحسين للأجهزة التي تدعم الحركة */
@media (prefers-reduced-motion: no-preference) {
    .contact-option {
        animation-play-state: running;
    }
}

/* إيقاف الأنيميشن للأجهزة التي لا تدعم الحركة */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}


/* ================= تحسينات الاستجابة المتقدمة ================= */

/* تحسينات للتابلت الكبير */
@media (max-width: 1199.98px) {
    .contact-us-section {
        padding: 60px 0;
    }
    
    .section-title {
        font-size: 2.2rem;
    }
    
    .contact-option .card-body {
        padding: 22px;
    }
    
    .contact-icon {
        font-size: 1.6rem;
    }
    
    .option-text {
        font-size: 1.1rem;
    }
}

/* تحسينات للتابلت */
@media (max-width: 991.98px) {
    .contact-us-section {
        padding: 50px 0;
    }
    
    .section-title {
        font-size: 2rem;
        margin-bottom: 12px;
    }
    
    .lead {
        font-size: 1rem;
        margin-bottom: 40px;
    }
    
    .contact-option {
        margin-bottom: 20px;
    }
    
    .contact-option .card-body {
        padding: 20px;
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }
    
    .contact-option .card-body > div:first-child {
        justify-content: center;
    }
    
    .contact-icon {
        font-size: 1.5rem;
        margin-left: 0 !important;
        margin-bottom: 8px;
    }
    
    .option-text {
        font-size: 1rem;
        margin-bottom: 0;
    }
    
    .contact-option .btn-success {
        width: 70%;
        max-width: 200px;
    }
    
    .social-icons .social-icon {
        width: 45px;
        height: 45px;
        line-height: 43px;
        font-size: 1.4rem;
        margin: 0 6px;
    }
}

/* تحسينات للموبايل الكبير */
@media (max-width: 767.98px) {
    .contact-us-section {
        padding: 40px 0;
    }
    
    .section-title {
        font-size: 1.8rem;
        margin-bottom: 10px;
    }
    
    .lead {
        font-size: 0.95rem;
        margin-bottom: 35px;
        padding: 0 15px;
    }
    
    .contact-option {
        margin-bottom: 18px;
        border-radius: 12px;
    }
    
    .contact-option .card-body {
        padding: 18px;
        flex-direction: column;
        text-align: center;
        gap: 12px;
    }
    
    .contact-icon {
        font-size: 1.4rem;
        margin-bottom: 6px;
    }
    
    .option-text {
        font-size: 0.95rem;
        font-weight: 600;
    }
    
    .contact-option .btn-success {
        width: 80%;
        max-width: 180px;
        padding: 8px 20px;
        font-size: 0.9rem;
        border-radius: 20px;
    }
    
    .social-icons {
        margin-top: 25px;
    }
    
    .social-icons .social-icon {
        width: 42px;
        height: 42px;
        line-height: 40px;
        font-size: 1.3rem;
        margin: 0 5px;
    }
    
    /* تحسين الأنيميشن للموبايل */
    .contact-option:hover {
        transform: translateY(-4px);
    }
    
    .social-icons .social-icon:hover {
        transform: translateY(-3px) scale(1.05);
    }
}

/* تحسينات للموبايل الصغير */
@media (max-width: 575.98px) {
    .contact-us-section {
        padding: 35px 0;
    }
    
    .section-title {
        font-size: 1.6rem;
        margin-bottom: 8px;
    }
    
    .lead {
        font-size: 0.9rem;
        margin-bottom: 30px;
        padding: 0 10px;
        line-height: 1.5;
    }
    
    .row.justify-content-center {
        margin: 0 -10px;
    }
    
    .row.justify-content-center > [class*="col-"] {
        padding: 0 10px;
    }
    
    .contact-option {
        margin-bottom: 15px;
        border-radius: 10px;
    }
    
    .contact-option .card-body {
        padding: 16px;
        gap: 10px;
    }
    
    .contact-icon {
        font-size: 1.3rem;
        margin-bottom: 5px;
    }
    
    .option-text {
        font-size: 0.9rem;
        font-weight: 600;
    }
    
    .contact-option .btn-success {
        width: 85%;
        max-width: 160px;
        padding: 7px 18px;
        font-size: 0.85rem;
        border-radius: 18px;
    }
    
    .social-icons {
        margin-top: 20px;
    }
    
    .social-icons .social-icon {
        width: 38px;
        height: 38px;
        line-height: 36px;
        font-size: 1.2rem;
        margin: 0 4px;
    }
}

/* تحسينات للشاشات الصغيرة جداً */
@media (max-width: 480px) {
    .contact-us-section {
        padding: 30px 0;
    }
    
    .section-title {
        font-size: 1.5rem;
    }
    
    .lead {
        font-size: 0.85rem;
        margin-bottom: 25px;
    }
    
    .contact-option .card-body {
        padding: 14px;
    }
    
    .contact-icon {
        font-size: 1.2rem;
    }
    
    .option-text {
        font-size: 0.85rem;
    }
    
    .contact-option .btn-success {
        width: 90%;
        max-width: 140px;
        padding: 6px 16px;
        font-size: 0.8rem;
        border-radius: 16px;
    }
    
    .social-icons .social-icon {
        width: 36px;
        height: 36px;
        line-height: 34px;
        font-size: 1.1rem;
        margin: 0 3px;
    }
}

/* تحسينات للاتجاه الأفقي على الأجهزة المحمولة */
@media (max-width: 767.98px) and (orientation: landscape) {
    .contact-us-section {
        padding: 25px 0;
    }
    
    .section-title {
        font-size: 1.6rem;
        margin-bottom: 8px;
    }
    
    .lead {
        font-size: 0.9rem;
        margin-bottom: 20px;
    }
    
    .contact-option {
        margin-bottom: 12px;
    }
    
    .contact-option .card-body {
        padding: 12px;
        flex-direction: row;
        text-align: right;
        gap: 10px;
    }
    
    .contact-option .card-body > div:first-child {
        justify-content: flex-start;
    }
    
    .contact-icon {
        margin-left: 10px !important;
        margin-bottom: 0;
    }
    
    .contact-option .btn-success {
        width: auto;
        min-width: 120px;
    }
    
    .social-icons {
        margin-top: 15px;
    }
}

/* تحسينات للطباعة */
@media print {
    .contact-us-section {
        background: white !important;
        padding: 20px 0;
    }
    
    .contact-option {
        box-shadow: none !important;
        border: 1px solid #ddd !important;
        break-inside: avoid;
    }
    
    .contact-option:hover {
        transform: none !important;
    }
    
    .btn-success {
        background: #28a745 !important;
        color: white !important;
    }
    
    .social-icons .social-icon {
        background: #28a745 !important;
        color: white !important;
    }
}

/* تحسينات إمكانية الوصول */
@media (prefers-reduced-motion: reduce) {
    .contact-option,
    .social-icons .social-icon,
    .section-title,
    .lead {
        animation: none !important;
        transition: none !important;
    }
    
    .contact-option:hover,
    .social-icons .social-icon:hover {
        transform: none !important;
    }
}

/* تحسين للشاشات عالية الدقة */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .contact-icon,
    .social-icons .social-icon i {
        -webkit-font-smoothing: antialiased;
        -moz-osx-font-smoothing: grayscale;
    }
}

/* ==================LOTI========================= */
.social-icons {
    display: flex;
    justify-content: center;
    gap: 15px;
  }
  
  .social-icon {
    width: 45px;
    height: 45px;
    background: #f5f5f5;
    color: #333;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
  }
  
  .social-icon:hover {
    transform: translateY(-4px);
    color: #fff;
  }
  
  .social-icon.facebook:hover { background: #1877f2; }
  .social-icon.whatsapp:hover { background: #25d366; }
  .social-icon.instagram:hover { background: #e1306c; }
  .social-icon.linkedin:hover { background: #0077b5; }
  