* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Cairo', sans-serif;
    background: #ffffff;
    overflow-x: hidden;
    scroll-behavior: smooth;
}

a,
span,
p,
h1,
h2,
h3,
h4,
h5,
h6,
li {
    line-height: 1.8 !important;
}

/* تحسينات الخلفية المتدرجة (Mesh Gradient) */
.mesh-gradient {
    background-color: #0f172a;
    background-image:
        radial-gradient(at 0% 0%, rgba(37, 99, 235, 0.15) 0, transparent 50%),
        radial-gradient(at 100% 0%, rgba(6, 182, 212, 0.15) 0, transparent 50%),
        radial-gradient(at 50% 100%, rgba(139, 92, 246, 0.1) 0, transparent 50%);
}

.curve-divider {
    position: absolute;
    left: 0;
    width: 100%;
    line-height: 0;
    pointer-events: none;
    z-index: 5;
}

.curve-top {
    top: -1px;
    transform: rotate(180deg);
}

.curve-bottom {
    bottom: -1px;
}

.curve-svg {
    display: block;
    width: 100%;
    height: auto;
}

/* نافبار زجاجي مطور */
.glass-nav {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    background: transparent;
    color: #222;
    border-bottom: 1px solid transparent;

}

/* إخفاء particles-bg على الجوال */
@media (max-width: 767px) {
    #particles-bg {
        display: none !important;
    }
}

/* القائمة المنسدلة للجوال: النص أسود دائماً */
#mobileMenu a {
    color: #111 !important;
}

/* زر القائمة المنسدلة: النص أبيض دائماً */
#mobileMenuBtn {
    background: #ffffff !important;
    color: #222 !important;
}

.glass-nav>span {
    color: #fff;
    background: none;
    -webkit-background-clip: initial;
    background-clip: initial;
    background-size: initial;
    animation: none;
}

.glass-nav.scrolled {
    background: #ffffff;
    color: #222;
    padding: 0.75rem 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.glass-nav.scrolled>span {
    background: none;
    -webkit-background-clip: initial;
    background-clip: initial;
    color: #222;
    background-size: initial;
    animation: none;
}

.gradient-text {
    background: rgb(220 38 38 / var(--tw-text-opacity, 1));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    background-size: 200% 200%;
    animation: gradientMove 5s ease infinite;
}

@keyframes gradientMove {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

.btn-primary-glow {
    background: rgb(220 38 38 / var(--tw-text-opacity, 1));
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn-primary-glow::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgb(220 38 38 / var(--tw-text-opacity, 1));
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: -1;
}

.btn-primary-glow:hover::before {
    opacity: 1;
}

.btn-primary-glow:hover {
    box-shadow: 0 15px 30px -5px rgba(235, 37, 37, 0.4);
}

/* كاردات بريميوم مطورة */
.premium-card {
    background: #ffffff;
    border-radius: 2.5rem;
    transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
    border: 1px solid #f1f5f9;
    position: relative;
}

.premium-card:hover {
    border-color: rgb(220 38 38 / var(--tw-text-opacity, 1));
}

/* Portfolio Styling */
.portfolio-card {
    background: #fff;
    border-radius: 2.5rem;
    overflow: hidden;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid #f1f5f9;
}

.portfolio-image-box {
    position: relative;
    overflow: hidden;
}

.portfolio-image-box::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(15, 23, 42, 0.8), transparent);
    opacity: 0;
    transition: 0.4s;
}

.portfolio-card:hover .portfolio-image-box::after {
    opacity: 1;
}

.swiper-wrapper {
    height: auto !important;
}

/* Steps */
.step-circle {
    width: 90px;
    height: 90px;
    background: rgb(220 38 38 / var(--tw-text-opacity, 1));
    border-radius: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 32px;
    font-weight: 800;
    color: white;
    position: relative;
}

.step-circle::before {
    content: '';
    position: absolute;
    inset: -4px;
    border: 2px dashed white;
    border-radius: 32px;
    opacity: 0.3;
    animation: rotate 10s linear infinite;
}

@keyframes rotate {
    100% {
        transform: rotate(360deg);
    }
}

/* FAQ */
.faq-item {
    background: #ffffff;
    border: 1px solid #f1f5f9;
    border-radius: 1.5rem;
    overflow: hidden;
    transition: 0.3s;
}

.faq-item.active {
    border-color: rgb(220 38 38 / var(--tw-text-opacity, 1));
    box-shadow: 0 10px 25px -5px rgba(37, 99, 235, 0.1);
}

.whatsapp-float {
    position: fixed;
    bottom: 30px;
    left: 30px;
    background: #25D366;
    width: 65px;
    height: 65px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    color: white;
    box-shadow: 0 15px 30px rgba(37, 211, 102, 0.3);
    z-index: 100;
    transition: 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.whatsapp-float:hover {
    transform: scale(1.1) rotate(10deg);
}

@media (max-width: 768px) {
    .premium-card {
        border-radius: 1.5rem;
    }
}

/* Navbar menu items color */
.logo {
    color: #fff !important;
    transition: color 0.3s;
}

.glass-nav.scrolled .logo {
    color: #222 !important;
}

.glass-nav a {
    color: #fff !important;
    transition: color 0.3s;
}

.glass-nav.scrolled a {
    color: #222 !important;
}

.glass-nav a.bg-slate-900 {
    background: #fff !important;
    color: #222 !important;
    border: 1px solid #e5e7eb;
}

.glass-nav.scrolled a.bg-slate-900 {
    background: #222 !important;
    color: #fff !important;
    border: 1px solid #222;
}

span.swiper-pagination-bullet {
    width: 10px;
    border-radius: 10px;
    transition: 1.5s;
}

span.swiper-pagination-bullet.swiper-pagination-bullet-active {
    width: 50px;
    border-radius: 10px;
}


.swiper-pagination-bullet-active {
    background: rgb(220 38 38 / var(--tw-text-opacity, 1));
}

#particles-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none; /* هذا المهم */
}

.swiper-button-prev:after, .swiper-rtl .swiper-button-next:after {
    content: 'prev' !important;
}

.swiper-button-next:after, .swiper-rtl .swiper-button-prev:after {
    content: 'next' !important;
}

.english-mode .items-stretch {
    direction: ltr !important;
}

.collapse.show {
    visibility: visible !important;
}

.english-mode .paths {
    display: flex;
    flex-direction: row;
    justify-content: center;
}

#loader {
  position: fixed;
  inset: 0;
  background: #0f172a;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

.spinner {
  width: 50px;
  height: 50px;
  border: 4px solid #ffffff20;
  border-top-color: #ef4444;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}