/* ============================================
   HOME 2 MODERN PATCH - Desix
   ضع هذا الكود في نهاية ملف CSS الأصلي
   ============================================ */

/* ─── 1. Mobile Base Fixes ─── */
@media (max-width: 767px) {
  .auto-container { padding-left: 16px; padding-right: 16px; }
  section { padding-top: 10px; padding-bottom: 10px; }
  .sec-title { margin-bottom: 32px; text-align: center; }
  .sec-title h2 { font-size: 26px; line-height: 1.3; }
  .sec-title .sub-title { font-size: 12px; }
}

/* ─── 2. Banner Mobile ─── */
@media (max-width: 767px) {
  .banner-section .slide-item { min-height: auto; }
  .banner-section .content-box { padding: 120px 0 80px; text-align: center; }
  .banner-section .content-box .title { font-size: 30px; line-height: 1.2; margin-bottom: 20px; }
  .banner-section .content-box .btn-box .theme-btn { margin: 4px; padding: 12px 24px; font-size: 13px; }
}

/* ─── 3. Services Cards ─── */
.services-section-two {
  position: relative;
  padding: 1px 0 80px;
}
.services-section-two .service-block-two { margin-bottom: 20px; }
.services-section-two .service-block-two .inner-box {
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0,0,0,0.06);
  transition: all 0.4s ease;
}
.services-section-two .service-block-two .inner-box:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 40px rgba(0,0,0,0.12);
}
.services-section-two .service-block-two .image-box img { transition: transform 0.5s ease; }
.services-section-two .service-block-two .inner-box:hover .image-box img { transform: scale(1.06); }
.services-section-two .service-block-two .content-box {
  padding: 20px;
  display: flex;
  align-items: flex-start;
  gap: 14px;
}
.services-section-two .service-block-two .content-box .icon {
  width: 48px; height: 48px; min-width: 48px;
  background: #fff5d6;
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 18px;
  transition: all 0.3s ease;
}
.services-section-two .service-block-two .inner-box:hover .content-box .icon {
  background: #fec63f;
  transform: scale(1.1);
}

/* ─── 4. About Section ─── */
.about-section-two .image-column .image-1 img,
.about-section-two .image-column .image-2 img { border-radius: 20px; }
.about-section-two .image-column .image-2 {
  right: 0;
  border: 5px solid #fff;
  border-radius: 16px;
  box-shadow: 0 12px 30px rgba(0,0,0,0.12);
}
.about-section-two .info-box { margin-bottom: 16px; }
.about-section-two .info-box .inner {
  padding: 20px;
  background: #f8f6f1;
  border-radius: 16px;
  transition: all 0.3s ease;
}
.about-section-two .info-box .inner:hover {
  background: #fff;
  box-shadow: 0 8px 24px rgba(0,0,0,0.05);
}
.about-section-two .skills .skill-bar .bar {
  background: linear-gradient(90deg, #fec63f, #ffb347);
  border-radius: 10px;
}

@media (max-width: 991px) {
  .about-section-two .image-column { margin-bottom: 40px; }
  .about-section-two .image-column .image-2 { display: none; }
}

/* ─── 5. Projects ─── */
.projects-section .project-block { margin-bottom: 20px; }
.projects-section .project-block .inner-box { border-radius: 20px; overflow: hidden; }
.projects-section .project-block .image-box img { transition: transform 0.5s ease; }
.projects-section .project-block .inner-box:hover .image-box img { transform: scale(1.06); }

@media (max-width: 767px) {
  
  .project-block .content-box {
    left: 0 !important;
    max-width: 100% !important;
    min-height: auto !important;
    padding: 20px !important;
    border-radius: 20px 0 0 0 !important;
  }
  .project-block .content-box::before {
    left: 0 !important;
    width: 100% !important;
    transform: none !important;
    border-radius: 20px 0 0 0 !important;
  }
  .project-block .content-box .icon,
  .project-block .content-box .cat,
  .project-block .content-box .title { opacity: 1 !important; transform: none !important; }
}

/* ─── 6. Why Choose Us ─── */
.why-choose-us-two .info-box { margin-bottom: 20px; }
.why-choose-us-two .info-box .inner {
  padding: 24px;
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.04);
  transition: all 0.3s ease;
}
.why-choose-us-two .info-box .inner:hover {
  box-shadow: 0 12px 30px rgba(0,0,0,0.08);
  transform: translateY(-4px);
}
.why-choose-us-two .info-box .icon {
  width: 56px; height: 56px;
  background: #fff5d6;
  border-radius: 14px;
  transition: all 0.3s ease;
}
.why-choose-us-two .info-box .inner:hover .icon { background: #fec63f; }
.why-choose-us-two .image-column .image-box { border-radius: 24px; overflow: hidden; }

/* ─── 7. Testimonials ─── */
.testimonial-section-two .testimonial-block-two .inner-box {
  border-radius: 24px;
  /* padding: 32px; */
  transition: all 0.3s ease;
}
.testimonial-block-two .content-box{
    border-radius: 24px;

}
.team-block-two .share-icon{

  bottom: -5px;
}
.testimonial-section-two .testimonial-block-two .inner-box:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 40px rgba(0,0,0,0.15);
}
.testimonial-section-two .testimonial-block-two .thumb {
  width: 64px; height: 64px;
  border-width: 3px !important;
  padding: 3px !important;
}

/* ─── 8. Team ─── */
.team-section .team-block-two .image-box {
  border-radius: 24px;
  overflow: hidden;
  margin-bottom: 16px;
}
.team-section .team-block-two .image-box img { transition: transform 0.5s ease; }
.team-section .team-block-two .inner-box:hover .image-box img { transform: scale(1.04); }
.team-section .team-block-two .info-box::before,
.team-section .team-block-two .info-box::after { border-radius: 20px; }

@media (max-width: 767px) {
  .team-block-two .social-links { opacity: 1; visibility: visible; transform: scaleY(1); }
}

/* ─── 9. Contact ─── */
.contact-section-two .contact-form input,
.contact-section-two .contact-form textarea {
  border-radius: 14px;
  padding: 16px 20px;
  height: auto;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  color: #fff;
  transition: all 0.3s ease;
}
.contact-section-two .contact-form input:focus,
.contact-section-two .contact-form textarea:focus {
  border-color: #fec63f;
  box-shadow: 0 0 0 4px rgba(254,198,63,0.1);
  outline: none;
}
.contact-section-two .contact-form button {
  border-radius: 50px;
  width: 100%;
  padding: 16px;
  font-weight: 600;
}

/* ─── 10. News ─── */
.news-section .news-block { margin-bottom: 24px; }
.news-section .news-block .inner-box {
  border-radius: 20px;
  overflow: hidden;
  transition: all 0.4s ease;
}
.news-section .news-block .inner-box:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}
.news-section .news-block .image-box img { transition: transform 0.5s ease; }
.news-section .news-block .inner-box:hover .image-box img { transform: scale(1.06); }
.news-section .news-block .content-box { border: none; padding: 24px; }
.news-section .news-block .date { border-radius: 8px; font-weight: 700; }

/* ─── 11. Clients ─── */
.clients-section .client-block {
  filter: grayscale(100%);
  opacity: 0.6;
  transition: all 0.3s ease;
}
.clients-section .client-block:hover { filter: grayscale(0%); opacity: 1; }

/* ─── 12. Buttons ─── */
.theme-btn {
  border-radius: 50px;
  transition: all 0.3s ease;
}
.theme-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.12);
}

/* ─── 13. Scroll Top ─── */
.scroll-to-top {
  width: 48px; height: 48px; line-height: 48px;
  background: #fec63f; color: #18191c;
  border-radius: 50%;
  box-shadow: 0 8px 24px rgba(254,198,63,0.3);
}

@media (max-width: 767px) {
  .section {
    padding-top: 10px;
    padding-bottom: 10px;
  }
}

/* -------------------------------- */
/* ============================================
   FLOATING BUTTONS - FINAL FIX
   ============================================ */

.floating-buttons {
    position: fixed;
    right: 20px;
    bottom: 50px;
    z-index: 999999;
    display: flex;
    flex-direction: column;
    gap: 14px;
    align-items: center;
}

.floating-btn {
    position: relative;
    width: 58px;
    height: 58px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    color: #fff;
    text-decoration: none;
    box-shadow: 0 4px 20px rgba(0,0,0,0.25);
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
    outline: none;
    -webkit-tap-highlight-color: transparent;
}

/* WhatsApp - أخضر */
.floating-whatsapp {
    background: #25D366;
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
}
.floating-whatsapp:hover,
.floating-whatsapp:active {
    background: #128C7E;
    transform: translateY(-3px) scale(1.08);
    box-shadow: 0 8px 28px rgba(37, 211, 102, 0.5);
}

/* Call - أصفر ذهبي */
.floating-call {
    background: linear-gradient(135deg, #fec63f 0%, #ff9f43 100%);
    color: #18191c;
    box-shadow: 0 4px 20px rgba(254, 198, 63, 0.4);
}
.floating-call:hover,
.floating-call:active {
    transform: translateY(-3px) scale(1.08);
    box-shadow: 0 8px 28px rgba(254, 198, 63, 0.55);
}

/* Tooltip */
.floating-tooltip {
    position: absolute;
    right: 68px;
    top: 50%;
    transform: translateY(-50%) translateX(8px);
    background: #18191c;
    color: #fff;
    padding: 6px 14px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.25s ease;
    font-family: inherit;
    pointer-events: none;
}
.floating-tooltip::after {
    content: '';
    position: absolute;
    right: -5px;
    top: 50%;
    transform: translateY(-50%);
    border-width: 5px 0 5px 5px;
    border-style: solid;
    border-color: transparent transparent transparent #18191c;
}
.floating-btn:hover .floating-tooltip,
.floating-btn:active .floating-tooltip {
    opacity: 1;
    visibility: visible;
    transform: translateY(-50%) translateX(0);
}

/* Pulse Animation */
.floating-whatsapp {
    animation: pulse-green 2.5s infinite;
}
.floating-call {
    animation: pulse-yellow 2.5s infinite 0.6s;
}
@keyframes pulse-green {
    0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.5); }
    70% { box-shadow: 0 0 0 14px rgba(37, 211, 102, 0); }
    100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}
@keyframes pulse-yellow {
    0% { box-shadow: 0 0 0 0 rgba(254, 198, 63, 0.5); }
    70% { box-shadow: 0 0 0 14px rgba(254, 198, 63, 0); }
    100% { box-shadow: 0 0 0 0 rgba(254, 198, 63, 0); }
}

/* ═══════════════════════════════════════ */
/*  MOBILE FIX - الأهم                     */
/* ═══════════════════════════════════════ */
@media (max-width: 767px) {
    .floating-buttons {
        right: 14px !important;
        bottom: 85px !important;
        left: auto !important;
        top: auto !important;
        z-index: 999999 !important;
        display: flex !important;
        visibility: visible !important;
        opacity: 1 !important;
        pointer-events: auto !important;
    }
    
    .floating-btn {
        width: 52px !important;
        height: 52px !important;
        font-size: 22px !important;
        display: flex !important;
        visibility: visible !important;
        opacity: 1 !important;
    }
    
    .floating-tooltip {
        display: none !important;
    }
}

/* ═══════════════════════════════════════ */
/*  RTL Support                            */
/* ═══════════════════════════════════════ */
[dir="rtl"] .floating-buttons {
    right: auto;
    left: 20px;
}
[dir="rtl"] .floating-tooltip {
    right: auto;
    left: 68px;
}
[dir="rtl"] .floating-tooltip::after {
    right: auto;
    left: -5px;
    border-width: 5px 5px 5px 0;
    border-color: transparent #18191c transparent transparent;
}
@media (max-width: 767px) {
    [dir="rtl"] .floating-buttons {
        right: auto !important;
        left: 14px !important;
    }
}

/* ═══════════════════════════════════════ */
/*  Override أي hidden قديمة               */
/* ═══════════════════════════════════════ */
.floating-buttons,
.floating-buttons * {
    box-sizing: border-box;
}

/* ═══════════════════════════════════════ */
/*  Facebook Button - Add This             */
/* ═══════════════════════════════════════ */

.floating-facebook {
    background: #1877F2;
    box-shadow: 0 4px 20px rgba(24, 119, 242, 0.4);
}
.floating-facebook:hover,
.floating-facebook:active {
    background: #166fe5;
    transform: translateY(-3px) scale(1.08);
    box-shadow: 0 8px 28px rgba(24, 119, 242, 0.5);
}

/* Facebook Pulse Animation */
.floating-facebook {
    animation: pulse-blue 2.5s infinite 1.2s;
}
@keyframes pulse-blue {
    0% { box-shadow: 0 0 0 0 rgba(24, 119, 242, 0.5); }
    70% { box-shadow: 0 0 0 14px rgba(24, 119, 242, 0); }
    100% { box-shadow: 0 0 0 0 rgba(24, 119, 242, 0); }
}
