:root {
  --blue-light: #40C4FF;
  --blue-dark: #0091EA;
  --orange: #F29F33;
  --lime: #CDDC39;
  --sky: #34B3D9;
  --magenta: #D81B43;
  --white: #FFFFFF;
  --text-dark: #1a1a2e;
  --text-muted: rgba(26, 26, 46, 0.62);
  --btn-primary: #0091EA;
  --btn-hover: #0077C2;
  --bg-page: #e8f4fc;
  --bg-soft: rgba(64, 196, 255, 0.07);
  --bg-soft-strong: rgba(64, 196, 255, 0.12);
  --border-brand: rgba(0, 145, 234, 0.14);
  --shadow-brand: rgba(0, 145, 234, 0.22);
  --gradient-brand: linear-gradient(135deg, var(--blue-light), var(--blue-dark));
  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* ── Keyframes ── */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(28px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes scaleIn {
  from {
    opacity: 0;
    transform: scale(0.75);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes logoFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

@keyframes pulseRing {
  0% {
    transform: scale(1);
    opacity: 0.5;
  }
  100% {
    transform: scale(1.45);
    opacity: 0;
  }
}

@keyframes shimmer {
  0% { transform: translateX(-120%) skewX(-15deg); }
  100% { transform: translateX(220%) skewX(-15deg); }
}

@keyframes fadeInScale {
  from {
    opacity: 0;
    transform: translateY(20px) scale(0.96);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes hintPulse {
  0%, 100% { opacity: 0.75; }
  50% { opacity: 1; }
}

/* ── Background ── */
body {
  font-family: 'Cairo', 'Poppins', sans-serif;
  min-height: 100vh;
  background-color: var(--bg-page);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='80' height='80' viewBox='0 0 80 80'%3E%3Cg fill='none' stroke='%230091EA' stroke-width='1' opacity='0.08'%3E%3Ccircle cx='20' cy='20' r='6'/%3E%3Cpath d='M50 10 L54 18 L62 18 L56 24 L58 32 L50 28 L42 32 L44 24 L38 18 L46 18 Z'/%3E%3Cpath d='M15 45 L25 45 L20 55 Z'/%3E%3Crect x='45' y='42' width='12' height='16' rx='2'/%3E%3Cpath d='M10 65 Q20 55 30 65'/%3E%3Ccircle cx='60' cy='60' r='4'/%3E%3Cpath d='M65 45 L68 50 L73 50 L69 53 L71 58 L65 55 L59 58 L61 53 L57 50 L62 50 Z'/%3E%3C/g%3E%3C/svg%3E");
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 2.5rem 1.25rem 2rem;
  color: var(--text-dark);
  overflow-x: hidden;
  position: relative;
}

.container {
  width: 100%;
  max-width: 420px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
  position: relative;
  z-index: 1;
}

/* ── Header ── */
.header {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  text-align: center;
}

.logo-wrapper {
  position: relative;
  width: 140px;
  height: 140px;
  border-radius: 50%;
  overflow: visible;
  box-shadow: 0 8px 24px var(--shadow-brand);
  border: 3px solid var(--white);
  animation: scaleIn 0.8s var(--ease-out-expo) 0.1s both,
             logoFloat 4s ease-in-out 1s infinite;
}

.logo-wrapper::before {
  content: '';
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  border: 2px solid rgba(64, 196, 255, 0.4);
  animation: pulseRing 2.5s ease-out infinite;
}

.logo-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  transition: transform 0.5s var(--ease-out-expo);
}

.logo-wrapper:hover img {
  transform: scale(1.05);
}

.brand-name {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  animation: fadeInUp 0.7s var(--ease-out-expo) 0.25s both;
}

.brand-name h1 {
  font-size: 1.35rem;
  font-weight: 700;
  background: var(--gradient-brand);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1.4;
}

.brand-name .english {
  font-family: 'Poppins', sans-serif;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--blue-dark);
  letter-spacing: 0.02em;
}

.brand-name .arabic {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-dark);
}

/* ── Links ── */
.links {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.link-btn {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  width: 100%;
  padding: 1rem 1.5rem;
  background: var(--gradient-brand);
  color: var(--white);
  text-decoration: none;
  font-size: 1rem;
  font-weight: 600;
  border-radius: 50px;
  box-shadow: 0 4px 14px rgba(0, 145, 234, 0.35);
  overflow: hidden;
  transition: transform 0.35s var(--ease-spring),
              box-shadow 0.35s ease,
              background 0.35s ease;
  font-family: 'Poppins', 'Cairo', sans-serif;
  animation: fadeInUp 0.65s var(--ease-out-expo) both;
}

.link-btn:nth-child(1) { animation-delay: 0.45s; }
.link-btn:nth-child(2) { animation-delay: 0.57s; }
.link-btn:nth-child(3) { animation-delay: 0.69s; }

.link-btn::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    105deg,
    transparent 35%,
    rgba(255, 255, 255, 0.22) 50%,
    transparent 65%
  );
  transform: translateX(-120%) skewX(-15deg);
  transition: none;
}

.link-btn:hover {
  transform: translateY(-4px) scale(1.02);
  box-shadow: 0 10px 28px rgba(0, 145, 234, 0.45);
  background: linear-gradient(135deg, var(--sky), var(--btn-hover));
}

.link-btn:hover::after {
  animation: shimmer 0.75s ease forwards;
}

.link-btn:hover svg {
  transform: scale(1.15);
}

.link-btn:active {
  transform: translateY(-1px) scale(0.98);
  transition-duration: 0.1s;
}

.link-btn svg {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  transition: transform 0.35s var(--ease-spring);
}

/* ── App Download / QR ── */
.app-download {
  width: 100%;
  padding: 1.35rem 1.15rem 1.25rem;
  background: var(--white);
  border-radius: 20px;
  box-shadow: 0 6px 24px rgba(0, 145, 234, 0.12);
  border: 1px solid var(--border-brand);
  animation: fadeInScale 0.75s var(--ease-out-expo) 0.85s both;
}

.app-download-header {
  text-align: center;
  margin-bottom: 1.15rem;
}

.app-download-title {
  font-size: 1.15rem;
  font-weight: 700;
  background: var(--gradient-brand);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 0.35rem;
}

.app-download-subtitle {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-weight: 500;
}

.qr-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.85rem;
}

.qr-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0.85rem 0.65rem 0.75rem;
  border-radius: 16px;
  background: var(--bg-soft);
  border: 2px solid transparent;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
  transition: transform 0.35s var(--ease-spring),
              box-shadow 0.35s ease,
              border-color 0.35s ease,
              background 0.35s ease;
  animation: fadeInUp 0.65s var(--ease-out-expo) both;
}

.qr-card--apple {
  border-color: var(--border-brand);
  animation-delay: 1s;
}

.qr-card--google {
  border-color: var(--border-brand);
  animation-delay: 1.12s;
}

.qr-card:hover {
  transform: translateY(-5px) scale(1.03);
  box-shadow: 0 10px 24px rgba(0, 145, 234, 0.18);
  background: var(--white);
}

.qr-card:active {
  transform: translateY(-2px) scale(0.98);
  transition-duration: 0.1s;
}

.qr-card--apple:hover {
  border-color: rgba(0, 145, 234, 0.45);
}

.qr-card--google:hover {
  border-color: rgba(0, 145, 234, 0.45);
}

.qr-card--apple .qr-card-badge {
  color: var(--blue-dark);
}

.qr-card--google .qr-card-badge {
  color: var(--blue-dark);
}

.qr-card-badge {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  font-family: 'Poppins', sans-serif;
  font-size: 0.78rem;
  font-weight: 600;
  margin-bottom: 0.65rem;
  transition: transform 0.35s var(--ease-spring);
}

.qr-card:hover .qr-card-badge {
  transform: scale(1.05);
}

.qr-card-badge svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.qr-image-wrap {
  width: 100%;
  max-width: 130px;
  aspect-ratio: 1;
  padding: 0.5rem;
  background: var(--white);
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  transition: box-shadow 0.35s ease;
}

.qr-card:hover .qr-image-wrap {
  box-shadow: 0 4px 16px rgba(0, 145, 234, 0.15);
}

.qr-image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  transition: transform 0.45s var(--ease-out-expo);
}

.qr-card:hover .qr-image-wrap img {
  transform: scale(1.06);
}

.qr-label {
  margin-top: 0.55rem;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-muted);
}

.qr-tap-hint {
  margin-top: 0.35rem;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--blue-dark);
  animation: hintPulse 2.5s ease-in-out infinite;
}

/* ── Responsive ── */
@media (max-width: 340px) {
  .qr-cards {
    grid-template-columns: 1fr;
  }

  .qr-image-wrap {
    max-width: 160px;
  }
}

/* ── Contact Info ── */
.contact-info {
  width: 100%;
  padding: 1.5rem 1.2rem 1.3rem;
  background: linear-gradient(180deg, var(--white) 0%, var(--bg-soft) 100%);
  border-radius: 22px;
  box-shadow: 0 8px 32px rgba(0, 145, 234, 0.1);
  border: 1px solid var(--border-brand);
  position: relative;
  overflow: hidden;
  animation: fadeInUp 0.7s var(--ease-out-expo) 1.25s both;
}

.contact-info::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--gradient-brand);
}

.contact-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.15rem;
}

.contact-header-line {
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--bg-soft-strong), transparent);
}

.contact-title {
  font-size: 1.05rem;
  font-weight: 700;
  white-space: nowrap;
  background: var(--gradient-brand);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.contact-grid {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.contact-card {
  padding: 1rem;
  border-radius: 16px;
  background: var(--white);
  border: 1px solid var(--border-brand);
  box-shadow: 0 2px 12px rgba(0, 145, 234, 0.06);
  transition: transform 0.35s var(--ease-spring),
              box-shadow 0.35s ease,
              border-color 0.35s ease;
  animation: fadeInUp 0.6s var(--ease-out-expo) both;
}

.contact-card--location {
  text-decoration: none;
  color: inherit;
  animation-delay: 1.35s;
}

.contact-card--phone {
  animation-delay: 1.45s;
}

.contact-card--location:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(0, 145, 234, 0.15);
  border-color: rgba(0, 145, 234, 0.3);
}

.contact-card-top {
  display: flex;
  align-items: center;
  margin-bottom: 0.75rem;
}

.contact-icon {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.contact-icon svg {
  width: 20px;
  height: 20px;
}

.contact-icon--location {
  background: var(--bg-soft-strong);
  color: var(--blue-dark);
  box-shadow: 0 2px 8px rgba(0, 145, 234, 0.12);
}

.contact-icon--phone {
  background: var(--bg-soft-strong);
  color: var(--blue-dark);
  box-shadow: 0 2px 8px rgba(0, 145, 234, 0.12);
}

.contact-address {
  font-size: 0.88rem;
  font-weight: 600;
  line-height: 1.65;
  color: var(--text-dark);
  margin-bottom: 0.25rem;
}

.contact-address-en {
  font-family: 'Poppins', sans-serif;
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--text-muted);
  margin-bottom: 0.65rem;
}

.contact-action {
  display: inline-flex;
  align-items: center;
  gap: 0.15rem;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--blue-dark);
  padding-top: 0.55rem;
  border-top: 1px dashed var(--border-brand);
  width: 100%;
  transition: gap 0.25s ease, color 0.25s ease;
}

.contact-card--location:hover .contact-action {
  gap: 0.35rem;
  color: var(--sky);
}

.contact-action svg {
  width: 16px;
  height: 16px;
  transform: scaleX(-1);
}

.contact-phone-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.contact-phone-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.7rem 1rem;
  border-radius: 12px;
  background: var(--bg-soft);
  border: 1px solid var(--border-brand);
  color: var(--text-dark);
  text-decoration: none;
  font-family: 'Poppins', sans-serif;
  font-size: 0.95rem;
  font-weight: 600;
  direction: ltr;
  transition: transform 0.3s var(--ease-spring),
              background 0.3s ease,
              box-shadow 0.3s ease,
              color 0.3s ease;
}

.contact-phone-btn svg {
  width: 16px;
  height: 16px;
  color: var(--blue-dark);
  flex-shrink: 0;
  transition: transform 0.3s var(--ease-spring);
}

.contact-phone-btn:hover {
  transform: translateY(-2px);
  background: var(--gradient-brand);
  color: var(--white);
  box-shadow: 0 6px 18px var(--shadow-brand);
}

.contact-phone-btn:hover svg {
  color: var(--white);
  transform: rotate(-12deg) scale(1.1);
}

.contact-phone-btn:active {
  transform: translateY(0);
}

/* ── Accessibility ── */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}