/* =======================================
   Zaha Intro Section - Soft Motion Edition
   ======================================= */
:root {
  --intro-accent: var(--color-sky-blue);
  --intro-accent-alt: var(--color-soft-yellow);
  --intro-surface: rgba(var(--color-off-white-rgb), 0.9);
  --intro-card-border: rgba(var(--color-royal-blue-rgb), 0.14);
  --intro-card-shadow: 0 22px 55px rgba(var(--color-royal-blue-rgb), 0.12);
  --intro-card-hover: 0 30px 80px rgba(var(--color-royal-blue-rgb), 0.16);
}

html[data-bs-theme='dark'] {
  --intro-accent: var(--color-green);
  --intro-accent-alt: var(--color-soft-yellow);
  --intro-surface: rgba(24, 34, 46, 0.92);
  --intro-card-border: rgba(var(--color-off-white-rgb), 0.24);
  --intro-card-shadow: 0 22px 55px rgba(0, 0, 0, 0.45);
  --intro-card-hover: 0 30px 80px rgba(0, 0, 0, 0.55);
}

.gw-intro-section {
  position: relative;
  background: linear-gradient(145deg, rgba(var(--color-sky-blue-rgb), 0.08), rgba(var(--color-soft-yellow-rgb), 0.12));
  padding: clamp(2.6rem, 5vw, 4.5rem) 0;
  overflow: hidden;
  z-index: 0;
  border-top: 1px solid rgba(var(--color-royal-blue-rgb), 0.08);
  border-bottom: 1px solid rgba(var(--color-royal-blue-rgb), 0.08);
}

/* Background floating circles */
.gw-intro-section::before,
.gw-intro-section::after {
  content: '';
  position: absolute;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(var(--color-sky-blue-rgb), 0.16), transparent 70%);
  animation: floatCircle 12s infinite ease-in-out alternate;
  z-index: 0;
  /* filter: blur(60px); */
}

.gw-intro-section::before {
  top: -10%;
  left: -15%;
  animation-delay: 0s;
}

.gw-intro-section::after {
  bottom: -20%;
  right: -10%;
  background: radial-gradient(circle, rgba(var(--color-soft-yellow-rgb), 0.22), transparent 70%);
  animation-delay: 3s;
}

html[data-bs-theme='dark'] .gw-intro-section {
  background: linear-gradient(145deg, rgba(0, 162, 64, 0.14), rgba(var(--color-soft-yellow-rgb), 0.1));
  border-top: 1px solid rgba(var(--color-off-white-rgb), 0.06);
  border-bottom: 1px solid rgba(var(--color-off-white-rgb), 0.08);
}

html[data-bs-theme='dark'] .gw-intro-section::before {
  background: radial-gradient(circle, rgba(var(--color-green-rgb), 0.28), transparent 70%);
}

html[data-bs-theme='dark'] .gw-intro-section::after {
  background: radial-gradient(circle, rgba(var(--color-soft-yellow-rgb), 0.2), transparent 70%);
}

@keyframes floatCircle {
  0% {
    transform: translateY(0) scale(1);
  }
  50% {
    transform: translateY(25px) scale(1.05);
  }
  100% {
    transform: translateY(-25px) scale(1.02);
  }
}

/* main intro card */
.gw-intro-card {
  position: relative;
  z-index: 2;
  background: #FFFFFF;
  border: 1px solid var(--intro-card-border);
  border-radius: 1.75rem;
  box-shadow: var(--intro-card-shadow);
  padding: clamp(1.85rem, 2.6vw, 2.85rem);
  backdrop-filter: blur(8px);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.gw-intro-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--intro-card-hover);
}

/* section badge and title */
.gw-section-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(var(--color-sky-blue-rgb), 0.12);
  color: var(--accent-blue);
  padding: 0.45rem 1.2rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.9rem;
}

.gw-section-title {
  font-size: clamp(2.2rem, 3.5vw, 3rem);
  font-weight: 800;
  line-height: 1.25;
  color: var(--color-royal-blue);
  text-shadow: 0 1px 10px rgba(var(--color-royal-blue-rgb), 0.05);
}

/* feature cards */
.gw-why-card {
  position: relative;
  background: var(--card-tone-blue);
  border-radius: 1.5rem;
  padding: 1.6rem 1.35rem;
  height: 100%;
  text-align: start;
  box-shadow: var(--card-tone-shadow);
  transition: all 0.4s ease;
  border: 1px solid var(--card-tone-border);
  background-clip: padding-box;
}

.gw-why-card:nth-child(4n + 2) { background: var(--card-tone-green); }
.gw-why-card:nth-child(4n + 3) { background: var(--card-tone-yellow); }
.gw-why-card:nth-child(4n + 4) { background: var(--card-tone-orange); }

.gw-why-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 2px;
  background: linear-gradient(145deg, rgba(var(--color-sky-blue-rgb), 0.35), rgba(var(--color-soft-yellow-rgb), 0.35));
  -webkit-mask: linear-gradient(#FFFFFF 0 0) content-box, linear-gradient(#FFFFFF 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.gw-why-card:hover::before {
  opacity: 1;
  transform: scale(1.02);
  background: linear-gradient(145deg, rgba(var(--color-soft-orange-rgb), 0.4), rgba(var(--color-sky-blue-rgb), 0.45));
}

.gw-why-card:hover {
  transform: translateY(-6px) scale(1.03);
  box-shadow: var(--card-tone-hover-shadow);
}

/* icons */
.gw-why-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3.25rem;
  height: 3.25rem;
  background: linear-gradient(135deg, rgba(var(--color-sky-blue-rgb), 0.15), rgba(var(--color-soft-yellow-rgb), 0.25));
  color: var(--accent-blue);
  border-radius: 1rem;
  font-size: 1.35rem;
  margin-bottom: 1rem;
  transition: transform 0.4s ease, box-shadow 0.4s ease;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.6);
}

.gw-why-card:hover .gw-why-icon {
  transform: scale(1.15) rotate(6deg);
  box-shadow: 0 0 15px rgba(13, 110, 253, 0.35);
}

/* texts */
.gw-why-card h4 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--color-royal-blue);
  margin-bottom: 0.6rem;
}

.gw-why-card p {
  font-size: 0.9rem;
  color: rgba(var(--color-royal-blue-rgb), 0.7);
  line-height: 1.65;
}

html[data-bs-theme='dark'] .gw-section-title,
html[data-bs-theme='dark'] .section-with-circles h2,
html[data-bs-theme='dark'] .section-with-circles h3 {
  color: var(--color-pure-white);
}

html[data-bs-theme='dark'] .gw-section-badge {
  background: rgba(var(--color-green-rgb), 0.22);
  color: var(--color-pure-white);
}

html[data-bs-theme='dark'] .gw-why-card,
html[data-bs-theme='dark'] .gw-why-card:nth-child(4n + 2),
html[data-bs-theme='dark'] .gw-why-card:nth-child(4n + 3),
html[data-bs-theme='dark'] .gw-why-card:nth-child(4n + 4) {
  color: var(--color-pure-white);
  border-color: var(--card-tone-border);
}

html[data-bs-theme='dark'] .gw-why-card p {
  color: rgba(255, 255, 255, 0.8);
}

/* RTL support */
[dir='rtl'] .gw-why-card {
  text-align: end;
}

/* responsiveness */
@media (max-width: 991.98px) {
  .gw-intro-section {
    padding: 2.35rem 0;
  }
  .gw-intro-card {
    text-align: center;
    margin-bottom: 2.5rem;
  }
  .gw-why-card {
    text-align: center;
  }
  .gw-why-icon {
    margin-inline: auto;
  }
}

@media (max-width: 575.98px) {
  .gw-section-title {
    font-size: 1.8rem;
  }
  .gw-why-card h4 {
    font-size: 1rem;
  }
  .gw-why-card p {
    font-size: 0.85rem;
  }
}
/* ========================================
   Section Style - Beige + Teal Floating Circles
   ======================================== */

.section-with-circles {
  position: relative;
  background-color: var(--color-off-white);
  padding: clamp(4rem, 7vw, 7rem) 0;
  overflow: hidden;
  z-index: 0;
  isolation: isolate;
}

/* الدائرة العلوية اليسار */
.section-with-circles::before {
  content: '';
  position: absolute;
  top: -80px;
  left: -100px;
  width: 250px;
  height: 250px;
  background-color:#123150;
  border-radius: 50%;
  opacity: 0.9;
  animation: floatUp 12s ease-in-out infinite alternate;
  z-index: 0;
}

/* الدائرة السفلية اليمين */
.section-with-circles::after {
  content: '';
  position: absolute;
  bottom: -120px;
  right: -140px;
  width: 250px;
  height: 250px;
  background-color: #123150;
  border-radius: 50%;
  opacity: 0.9;
  animation: floatDown 14s ease-in-out infinite alternate;
  z-index: 0;
}

/* حركة خفيفة للأطراف */
@keyframes floatUp {
  0% {
    transform: translateY(0) scale(1);
  }
  100% {
    transform: translateY(-15px) scale(1.03);
  }
}

@keyframes floatDown {
  0% {
    transform: translateY(0) scale(1);
  }
  100% {
    transform: translateY(10px) scale(1.02);
  }
}

/* محتوى السكشن */
.section-with-circles .container {
  position: relative;
  z-index: 2;
}

/* النصوص والأزرار */
.section-with-circles h2,
.section-with-circles h3 {
  color: var(--color-royal-blue);
  font-weight: 800;
}

.section-with-circles p {
  color: rgba(var(--color-royal-blue-rgb), 0.78);
  font-size: 1.05rem;
}

.section-with-circles .btn-primary {
  background-color: var(--accent-blue);
  border: none;
  color: #FFFFFF;
  padding: 0.75rem 2rem;
  border-radius: 50px;
  font-weight: 600;
  transition: all 0.3s ease;
  box-shadow: 0 10px 25px rgba(var(--color-royal-blue-rgb), 0.25);
}

.section-with-circles .btn-primary:hover {
  background-color: var(--accent-blue);
  box-shadow: 0 12px 30px rgba(var(--color-royal-blue-rgb), 0.28);
}

html[data-bs-theme='dark'] .section-with-circles {
  background-color: var(--color-dark-bg-secondary);
}

html[data-bs-theme='dark'] .section-with-circles::before,
html[data-bs-theme='dark'] .section-with-circles::after {
  background-color: var(--color-green);
  opacity: 0.6;
}

html[data-bs-theme='dark'] .section-with-circles p {
  color: rgba(255, 255, 255, 0.82);
}

html[data-bs-theme='dark'] .section-with-circles .btn-primary {
  background-color: var(--color-green);
  box-shadow: 0 12px 28px rgba(0, 162, 64, 0.4);
}

html[data-bs-theme='dark'] .section-with-circles .btn-primary:hover {
  box-shadow: 0 14px 32px rgba(0, 162, 64, 0.45);
}

/* استجابة على الشاشات الصغيرة */
@media (max-width: 768px) {
  .section-with-circles::before {
    width: 250px;
    height: 250px;
    top: -50px;
    left: -60px;
  }
  .section-with-circles::after {
    width: 280px;
    height: 280px;
    bottom: -80px;
    right: -70px;
  }
}
