/* contact.css — Premium Support (Platform Support + Live Chat) */

.contact {
  padding: 110px 0 120px;
  position: relative;
  z-index: 2;
  overflow: hidden;
}

/* ── BACKGROUND ORBS (large radial glow behind the section) ── */
.ct-orb {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
  filter: blur(110px);
}

.ct-orb-1 {
  width: 680px; height: 680px;
  background: rgba(139, 92, 246, 0.11);
  top: -180px; right: -140px;
}

.ct-orb-2 {
  width: 600px; height: 600px;
  background: rgba(59, 130, 246, 0.1);
  bottom: -160px; left: -120px;
}

/* توهج مركزي خفيف يوحّد الألوان خلف الكروت مباشرة (Premium wash) */
.ct-bg-glow {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: min(1180px, 130%);
  height: 640px;
  background: radial-gradient(ellipse at center, rgba(139, 92, 246, 0.055) 0%, rgba(59, 130, 246, 0.045) 45%, transparent 72%);
  filter: blur(40px);
  pointer-events: none;
  z-index: 0;
}

/* ── HEADER ── */
.ct-header {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 64px;
  padding: 0 24px;
  position: relative;
  z-index: 1;
}

.ct-header h2 {
  font-size: 56px;
  font-weight: 900;
  color: #fff;
  margin-bottom: 18px;
  letter-spacing: -0.015em;
}

.ct-header p {
  color: var(--text-soft);
  line-height: 1.8;
  font-size: 19px;
}

/* ── GRID (2 large cards) ── */
.ct-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 40px;
  max-width: 980px;
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
  z-index: 1;
  justify-content: center;
}

/* ── CARD ── */
.ct-card {
  width: 100%;
  min-height: 500px;
  padding: 60px 44px;
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.035);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  overflow: hidden;
  transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1),
              border-color 0.4s ease,
              box-shadow 0.4s ease;
}

.ct-card:hover {
  transform: translateY(-10px);
}

.ct-card-support:hover  { border-color: rgba(139, 92, 246, 0.4); box-shadow: 0 30px 84px rgba(139, 92, 246, 0.18), 0 0 46px rgba(139, 92, 246, 0.12); }
.ct-card-telegram:hover { border-color: rgba(42, 171, 238, 0.4); box-shadow: 0 30px 84px rgba(42, 171, 238, 0.18), 0 0 46px rgba(42, 171, 238, 0.12); }

/* ── ICON (large circular glowing container + very subtle pulse) ── */
.ct-icon-wrap {
  width: 116px;
  height: 116px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 46px;
  margin-bottom: 32px;
  transition: transform 0.4s;
  animation: ct-icon-pulse 3.6s ease-in-out infinite;
}

.ct-card:hover .ct-icon-wrap {
  transform: scale(1.08);
}

@keyframes ct-icon-pulse {
  0%, 100% { transform: scale(1); }
  50%      { transform: scale(1.04); }
}

.ct-glow-purple {
  background: rgba(139, 92, 246, 0.1);
  border: 1px solid rgba(139, 92, 246, 0.25);
  color: #a78bfa;
  box-shadow: 0 0 36px rgba(139, 92, 246, 0.26);
}

.ct-card:hover .ct-glow-purple { box-shadow: 0 0 54px rgba(139, 92, 246, 0.48); }

.ct-glow-blue {
  background: rgba(42, 171, 238, 0.1);
  border: 1px solid rgba(42, 171, 238, 0.25);
  color: #2aabee;
  box-shadow: 0 0 36px rgba(42, 171, 238, 0.26);
}

.ct-card:hover .ct-glow-blue { box-shadow: 0 0 54px rgba(42, 171, 238, 0.48); }

/* ── CARD TEXT ── */
.ct-card h3 {
  font-size: 26px;
  font-weight: 800;
  color: #fff;
  margin-bottom: 16px;
}

.ct-card p {
  color: rgba(255, 255, 255, 0.62);
  font-size: 16px;
  line-height: 1.85;
  margin-bottom: 32px;
  flex: 1;
  max-width: 380px;
}

/* ── CTA BUTTON ── */
.ct-btn {
  display: inline-block;
  padding: 19px 52px;
  border-radius: 16px;
  font-size: 16.5px;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  border: none;
  font-family: inherit;
  background: linear-gradient(135deg, #8b5cf6, #6d28d9);
  color: #fff;
  box-shadow: 0 0 20px rgba(139, 92, 246, 0.28);
  transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.3s;
}

.ct-btn-purple:hover {
  transform: scale(1.045);
  box-shadow: 0 0 36px rgba(139, 92, 246, 0.5);
}

.ct-btn-blue {
  background: linear-gradient(135deg, #2aabee, #229ed9);
  box-shadow: 0 0 20px rgba(42, 171, 238, 0.28);
}

.ct-btn-blue:hover {
  transform: scale(1.045);
  box-shadow: 0 0 36px rgba(42, 171, 238, 0.5);
}

/* وضوح التركيز للتنقّل بلوحة المفاتيح */
.ct-btn:focus-visible {
  outline: 2px solid #a78bfa;
  outline-offset: 2px;
}

.ct-btn-blue:focus-visible {
  outline-color: #2aabee;
}

/* ── PRIVACY INFO BAR — Glassmorphism, عمودان عبر Grid ── */
.ct-privacy-bar {
  max-width: 960px;
  min-height: 120px;
  margin: 32px auto 0;
  padding: 24px 40px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.035);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.22), 0 0 20px rgba(59, 130, 246, 0.05);
  display: grid;
  grid-template-columns: auto auto auto;
  justify-content: center;
  align-items: center;
  gap: 24px;
  position: relative;
  z-index: 1;
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1),
              box-shadow 0.35s ease,
              border-color 0.35s ease;
}

.ct-privacy-bar:hover {
  transform: translateY(-4px);
  border-color: rgba(59, 130, 246, 0.2);
  box-shadow: 0 14px 38px rgba(0, 0, 0, 0.26), 0 0 28px rgba(59, 130, 246, 0.09);
}

.ct-privacy-main {
  display: flex;
  align-items: center;
  gap: 18px;
  text-align: start;
  min-width: 0;
}

.ct-privacy-icon {
  flex-shrink: 0;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 21px;
  background: rgba(59, 130, 246, 0.1);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border: 1px solid rgba(59, 130, 246, 0.22);
  color: #60a5fa;
  box-shadow: 0 0 20px rgba(59, 130, 246, 0.16);
}

.ct-privacy-text h4 {
  font-size: 24px;
  font-weight: 800;
  color: #fff;
  margin-bottom: 4px;
}

.ct-privacy-text p {
  font-size: 14px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.55);
}

/* خط فاصل رفيع بين الجانبين — Desktop فقط (يُخفى عند التكديس على الجوال) */
.ct-privacy-divider {
  width: 1px;
  height: 44px;
  background: rgba(255, 255, 255, 0.1);
  justify-self: center;
}

.ct-privacy-lock {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  background: rgba(59, 130, 246, 0.1);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border: 1px solid rgba(59, 130, 246, 0.22);
  color: #60a5fa;
  box-shadow: 0 0 16px rgba(59, 130, 246, 0.18);
}

/* ── REVEAL ── */
.ct-reveal {
  opacity: 0;
  transform: translateY(25px);
  transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1),
              transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

.ct-reveal.ct-visible {
  opacity: 1;
  transform: translateY(0);
}

.ct-stagger {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s cubic-bezier(0.22, 1, 0.36, 1),
              transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}

.ct-stagger.ct-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── RESPONSIVE ── */
@media (max-width: 1024px) {
  .ct-grid { max-width: 800px; gap: 30px; }
  .ct-card { padding: 50px 34px; min-height: 460px; }
  .ct-header h2 { font-size: 46px; }
  .ct-header p { font-size: 17.5px; }
}

@media (max-width: 768px) {
  .ct-header h2 { font-size: 36px; }
  .ct-header p { font-size: 16.5px; }
  .ct-grid { gap: 20px; }

  /* الصندوق يتكدّس بعمود واحد تحت 768px — الأيقونات فوق النص، كل شيء بالمنتصف */
  .ct-privacy-bar {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
    padding: 28px 24px;
    gap: 14px;
  }
  .ct-privacy-main { flex-direction: column; text-align: center; }
  .ct-privacy-divider { display: none; }
}

@media (max-width: 640px) {
  .ct-grid { grid-template-columns: 1fr; max-width: 440px; }
  .ct-card { min-height: 0; }
}

@media (max-width: 480px) {
  .contact { padding: 60px 0 76px; }
  .ct-header h2 { font-size: 28px; }
  .ct-header p { font-size: 15.5px; }
  .ct-card { padding: 40px 26px; }
  .ct-icon-wrap { width: 88px; height: 88px; font-size: 36px; margin-bottom: 26px; }
  .ct-btn { width: 100%; padding: 17px 22px; }
}

/* حركة أقل لمن يفضّل تقليل الحركة (إتاحة) — يوقف النبض والانتقالات الكبيرة */
@media (prefers-reduced-motion: reduce) {
  .ct-icon-wrap { animation: none; }
  .ct-card, .ct-btn, .ct-icon-wrap { transition: none; }
}
