
@media (min-width: 776px) {
.header-area {
  position: sticky;
  top: 0;
  margin: 0 auto;
  z-index: 9999;
  transition: background .7s ease;
}
}


/* المحتوى الداخلي */
.header-main {
  transition: max-width .7s ease, padding .35s ease;
}

/* الوضع الطبيعي */
.header-main {
  max-width: 100%;
  /* padding: 30px 0; */
}
@media (max-width: 776px) {
    .sunmoon{
        margin: 0px 5px;
    }
body:not(.dark) .header-area {
 
    /* background: white; */
}
body.dark .header-area {
 
    /* background: black; */
}
}
@media (min-width: 776px) {
/* عند السحب */
.header-area.scrolled .header-main {
  max-width: 1200px;     
  margin: 0 auto;
  /* padding: 12px 0; */
}

/* ظل */
.header-area.scrolled {
  box-shadow: 0 8px 30px rgba(0,0,0,.08);
  width: 80%;
}

/* Light */
body:not(.dark) .header-area.scrolled {
 background: #ffe2d6;
    border-radius: 60px;
}

/* Dark */
body.dark .header-area.scrolled {
 background: #2d2d2d;
           border-radius: 60px;
        border: 1px solid #424242;
        backdrop-filter: blur(100px);
}
}



    .themeToggle {
        border-radius: 52%;
        padding: 10px 13px;
        font-size: 25px;
}


.popup {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.65);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

.popup-content {
  width: 360px;
  padding: 24px;
  border-radius: 18px;
  background: #ffffff;
  box-shadow: 0 20px 60px rgba(0,0,0,0.35);
  text-align: center;
  backdrop-filter: blur(6px);
}

body.dark .popup-content {
  background: #111827;
  color: #fff;
}

.popup-content h3 {
  margin: 0;
  font-size: 20px;
  font-weight: 700;
}

.popup-content p {
  margin: 10px 0 18px;
  font-size: 14px;
  color: #6b7280;
}

body.dark .popup-content p {
  color: #cbd5e1;
}

.theme-buttons {
  display: flex;
  gap: 12px;
  justify-content: center;
}

.theme-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  border-radius: 14px;
  border: 1px solid #e5e7eb !important;
  background: #fff !important;
   
  cursor: pointer;
  font-weight: 600;
  transition: transform .2s, background .2s, border-color .2s;
}

body.dark .theme-btn {
  background: #1f2937;
  border-color: #374151;
}

.theme-btn:hover {
  transform: translateY(-2px);
  border-color: #a3a3a3;
}

.theme-btn:active {
  transform: translateY(0px);
}

.theme-btn .icon {
  font-size: 18px;
}

body.dark .theme-btn:hover {
  border-color: #6b7280;
}

.social-sidebar-wrapper {
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  z-index: 999;
}

/* LTR */
html[dir="ltr"] .social-sidebar-wrapper {
  right: 7px;
}

/* RTL */
html[dir="rtl"] .social-sidebar-wrapper {
  left: 7px;
}
.social-sidebar {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 10px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

/* مخفي */
.social-sidebar.hide {
  opacity: 0;
  pointer-events: none;
  transform: translateY(-10px);
}


.social-toggle {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: none;
  cursor: pointer;
  font-size: 16px;
  transition: all 0.3s ease;
}

/* Light */
body.dark .social-toggle {
  background: #fff;
  color: #111;
  border: 1px solid #e5e5e5;
}

/* Dark */
body:not(.dark) .social-toggle {
  background: #111;
  color: #fff;
  /* border: 1px solid #333; */
  border: 1px solid #717171;
}
.social-icon {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  text-decoration: none;
  transition: all 0.3s ease;
}

/* Light */
body.dark .social-icon {
  background: #fff;
  color: #111;
  border: 1px solid #e5e5e5;
}

body.dark .social-icon:hover {
  background: #111;
  color: #fff;
}

/* Dark */
body:not(.dark) .social-icon {
  background: #111;
  color: #fff;
  border: 1px solid #333;
}

body:not(.dark) .social-icon:hover {
  background: #fff;
  color: #111;
}

 /* @media (max-width: 776px) {
  .social-sidebar-wrapper {
    top: auto;
    bottom: 6px;
    transform: none;
    left: 0 !important;
  }

  .social-sidebar {
    flex-direction: row; 
    background: #ffffff;
    padding: 6px 12px;
    border-radius: 0px 33px 0 0px;
    border: 1px solid white;  
  }
} */
 /* Snapchat special style */
.social-icon.snapchat {
  background: #fffc00;
  color: #000;
  border: none;
}

.social-icon.snapchat i {
  font-weight: 900;
}

@media (max-width: 776px) {
.mobile-top-solve{
margin-top: 120px;
}

.services-wrapper-3 .service-box {
  text-align: center;
}
/* .process-section{
  display: none;
} */
 .process-counter .counter-card .icon{
  height: 40px;
    width: 40px;
 }
 .process-counter .counter-card{
        display: flex !important;
        background: #343c49;
        align-items: center;
        padding: 14px 7px !important;
        justify-content: center;/
 }
 .process-counter .counter-card .content .title{
  font-size: 20px;
      line-height: 1;
 }
 .process-counter .counter-card .content p{
  font-size: 10px;
    line-height: 15px;
 }
/*service fixing to be 2 in one row */
.service-item-3 .service-icon-wrap .service-icon{
      height: 50px;
    width: 50px;
}

.service-item-3 .title{
    margin-bottom: 1px !important;
    font-size: 12px !important;
    line-height: 17px !important;
}
.service-content .title {
    min-height: auto !important; /* سطرين تقريبًا */
}
.service-item-3 p{
    font-size: 12px;
    line-height: 23px;
}
.service-item-3{
  padding: 13px 7px !important;
}
.service-item-3 .service-icon-wrap .service-icon{
  margin-bottom: 11px !important;
  height: 50px;
  width: 50px; 
}
.services-row > [class*="col-"]{
  padding: 0 5px !important;
}
.service-item-3 span{
  font-size: 12px;
}
}
.services-row > [class*="col-"] {
    display: flex;
    margin-bottom: 17px;
}

.service-item-3 {
    display: flex;
    flex-direction: column;
    height: 100%;
    width: 100%;
   
}
body.dark .service-item-3 {
   border: 0.0000005px solid #3d3d3d !important;
}
body:not(.dark) .service-item-3 {
   border: 0.0000005px solid #ebebeb !important;
}
.service-item-3 span {
    color: var(--rr-color-theme-primary);
    font-weight: 600;
   
    display: block;
    font-size: 15px;
    line-height: 26px;
    margin-bottom: 10px;
    
   
}

.service-content {
    flex-grow: 1;
}

.service-content .title {
    min-height: 56px; /* سطرين تقريبًا */
}

.service-content p {
    min-height: 72px; /* 3 سطور تقريبًا */
}


.service-icon {
    display: inline-block;
    transition: transform 0.3s ease;
}

/* ===== اللون الأساسي ===== */
body:not(.dark) .service-icon img {
    filter: brightness(0);
}

body.dark .service-icon img {
    filter: brightness(0) invert(1);
}

/* ===== الحركة (من غير ما نلمس لون الصورة) ===== */
@keyframes floatShadow {
    0% {
        transform: translateY(0);
        filter: drop-shadow(0 5px 8px rgba(0,0,0,0.15));
    }
    50% {
        transform: translateY(-10px);
        filter: drop-shadow(0 20px 20px rgba(0,0,0,0.25));
    }
    100% {
        transform: translateY(0);
        filter: drop-shadow(0 5px 8px rgba(0,0,0,0.15));
    }
}

/* ===== hover ===== */
.service-item-3:hover .service-icon {
    animation: floatShadow 0.8s ease-in-out infinite;
}
