:root {
  --font-arabic: 'Tajawal', 'Cairo', system-ui, -apple-system, sans-serif;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  height: 100%;
  height: 100dvh;
  overflow: hidden;
  font-family: var(--font-arabic);
}

#app {
  width: 100%;
  height: 100%;
}

/* ===== Design Switcher ===== */
.design-switcher {
  position: fixed;
  top: 16px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 100;
  display: flex;
  gap: 8px;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  padding: 8px;
  border-radius: 999px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12);
  opacity: 0;
  animation: fadeInDown 0.6s 0.3s forwards;
}

.design-switcher button {
  border: none;
  background: transparent;
  padding: 8px 16px;
  border-radius: 999px;
  font-family: inherit;
  font-size: 13px;
  font-weight: 700;
  color: #555;
  cursor: pointer;
  transition: all 0.3s ease;
}

.design-switcher button.active {
  background: #111;
  color: #fff;
}

.design-switcher button:hover:not(.active) {
  background: rgba(0, 0, 0, 0.06);
}

/* ===== Shared layout ===== */
.screen {
  position: relative;
  width: 100%;
  height: 100%;
  display: none;
}
.screen.active {
  display: flex;
}

/* ===== WhatsApp Float Button ===== */
.whatsapp-float {
  position: fixed;
  bottom: 24px;
  left: 24px;
  width: 60px;
  height: 60px;
  background: #25D366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 24px rgba(37, 211, 102, 0.45);
  z-index: 90;
  cursor: pointer;
  text-decoration: none;
  opacity: 0;
  transform: scale(0);
  animation: popIn 0.5s 0.8s forwards;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.whatsapp-float:hover {
  transform: scale(1.1);
  box-shadow: 0 8px 32px rgba(37, 211, 102, 0.6);
}

.whatsapp-float svg {
  width: 32px;
  height: 32px;
  fill: #fff;
}

.whatsapp-float::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 2px solid #25D366;
  animation: ripple 2s infinite;
}

/* ===== Animations ===== */
@keyframes fadeInDown {
  from { opacity: 0; transform: translateX(-50%) translateY(-12px); }
  to   { opacity: 1; transform: translateX(-50%) translateY(0); }
}

@keyframes popIn {
  0%   { opacity: 0; transform: scale(0); }
  70%  { transform: scale(1.1); }
  100% { opacity: 1; transform: scale(1); }
}

@keyframes ripple {
  0%   { transform: scale(1); opacity: 0.7; }
  100% { transform: scale(1.8); opacity: 0; }
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

/* ============================================
   DESIGN 1 — Elegant Dark
   ============================================ */
.design-1 {
  background: #0a0a0f;
  color: #fff;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  text-align: center;
  padding: 80px 24px 100px;
}

.design-1 .bg-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  opacity: 0.35;
}

.design-1 .overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(10,10,15,0.6) 0%, rgba(10,10,15,0.85) 100%);
  z-index: 1;
}

.design-1 .content {
  position: relative;
  z-index: 2;
  max-width: 900px;
  width: 100%;
}

.design-1 .badge {
  display: inline-block;
  font-size: 13px;
  letter-spacing: 1px;
  color: #c8a96a;
  border: 1px solid rgba(200, 169, 106, 0.4);
  padding: 6px 18px;
  border-radius: 999px;
  margin-bottom: 24px;
  animation: fadeUp 0.7s 0.2s both;
}

.design-1 h1 {
  font-size: clamp(2rem, 7vw, 4.5rem);
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 20px;
  animation: fadeUp 0.7s 0.35s both;
}

.design-1 h1 span {
  color: #c8a96a;
}

.design-1 .subtitle {
  font-size: clamp(1rem, 2.5vw, 1.35rem);
  color: rgba(255, 255, 255, 0.7);
  font-weight: 400;
  line-height: 1.6;
  margin-bottom: 36px;
  animation: fadeUp 0.7s 0.5s both;
}

.design-1 .video-frame {
  width: 100%;
  max-width: 720px;
  aspect-ratio: 16 / 9;
  margin: 0 auto;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
  animation: fadeUp 0.7s 0.65s both;
}

.design-1 .video-frame video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ============================================
   DESIGN 2 — Split Light
   ============================================ */
.design-2 {
  background: #f7f7f5;
  color: #1a1a1a;
}

.design-2 .left-panel {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 80px 6vw 100px;
  max-width: 640px;
}

.design-2 .right-panel {
  flex: 1.1;
  position: relative;
  overflow: hidden;
}

.design-2 .right-panel video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.design-2 .right-panel::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, #f7f7f5 0%, transparent 18%);
  z-index: 2;
}

.design-2 .eyebrow {
  font-size: 14px;
  font-weight: 700;
  color: #2e7d5b;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 10px;
  animation: fadeUp 0.7s 0.2s both;
}

.design-2 .eyebrow::before {
  content: '';
  width: 32px;
  height: 2px;
  background: #2e7d5b;
}

.design-2 h1 {
  font-size: clamp(2rem, 6vw, 4rem);
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 20px;
  animation: fadeUp 0.7s 0.35s both;
}

.design-2 h1 span {
  color: #2e7d5b;
}

.design-2 .subtitle {
  font-size: clamp(1rem, 2.2vw, 1.2rem);
  color: #555;
  line-height: 1.7;
  margin-bottom: 32px;
  animation: fadeUp 0.7s 0.5s both;
}

.design-2 .cta-note {
  font-size: 14px;
  color: #888;
  animation: fadeUp 0.7s 0.65s both;
}

.design-2 .cta-note strong {
  color: #2e7d5b;
}

/* ============================================
   DESIGN 3 — Gradient Centerpiece
   ============================================ */
.design-3 {
  background: radial-gradient(ellipse at top, #1b2845 0%, #0d1b2a 60%, #050a14 100%);
  color: #fff;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  text-align: center;
  padding: 80px 24px 100px;
}

.design-3 .glow {
  position: absolute;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(72, 149, 217, 0.25), transparent 70%);
  top: -200px;
  left: 50%;
  transform: translateX(-50%);
  filter: blur(40px);
  z-index: 0;
  animation: glowPulse 6s ease-in-out infinite;
}

@keyframes glowPulse {
  0%, 100% { opacity: 0.6; transform: translateX(-50%) scale(1); }
  50%      { opacity: 1;  transform: translateX(-50%) scale(1.15); }
}

.design-3 .content {
  position: relative;
  z-index: 2;
  max-width: 900px;
  width: 100%;
}

.design-3 .eyebrow {
  font-size: 13px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #4895d9;
  font-weight: 700;
  margin-bottom: 20px;
  animation: fadeUp 0.7s 0.2s both;
}

.design-3 h1 {
  font-size: clamp(2.2rem, 8vw, 5rem);
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 24px;
  animation: fadeUp 0.7s 0.35s both;
}

.design-3 h1 span {
  background: linear-gradient(135deg, #4895d9, #76d4ff);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.design-3 .subtitle {
  font-size: clamp(1rem, 2.5vw, 1.3rem);
  color: rgba(255, 255, 255, 0.65);
  margin-bottom: 36px;
  animation: fadeUp 0.7s 0.5s both;
}

.design-3 .video-frame {
  width: 100%;
  max-width: 680px;
  aspect-ratio: 16 / 9;
  margin: 0 auto;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid rgba(72, 149, 217, 0.3);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6), 0 0 60px rgba(72, 149, 217, 0.15);
  animation: fadeUp 0.7s 0.65s both;
}

.design-3 .video-frame video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
  .design-switcher {
    top: 10px;
    padding: 6px;
    gap: 4px;
  }
  .design-switcher button {
    padding: 6px 12px;
    font-size: 12px;
  }

  .design-2 {
    flex-direction: column;
  }
  .design-2 .left-panel {
    padding: 70px 20px 20px;
    max-width: 100%;
    flex: none;
  }
  .design-2 .right-panel {
    flex: 1;
    min-height: 0;
  }
  .design-2 .right-panel::after {
    background: linear-gradient(180deg, #f7f7f5 0%, transparent 25%);
  }

  .whatsapp-float {
    width: 54px;
    height: 54px;
    bottom: 18px;
    left: 18px;
  }
  .whatsapp-float svg {
    width: 28px;
    height: 28px;
  }

  .design-1, .design-3 {
    padding: 70px 18px 90px;
  }
  .design-1 .video-frame,
  .design-3 .video-frame {
    aspect-ratio: 16 / 9;
  }
}

@media (max-width: 480px) {
  .design-1 h1, .design-3 h1 {
    font-size: 1.9rem;
  }
  .design-2 h1 {
    font-size: 1.8rem;
  }
  .design-1 .subtitle,
  .design-2 .subtitle,
  .design-3 .subtitle {
    font-size: 0.95rem;
  }
  .design-1 .video-frame,
  .design-3 .video-frame {
    max-width: 100%;
  }
}

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
