*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background-color: #f9fafb;
  color: #111827;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

/* ── Hero Image ── */
.hero {
  width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 0.4rem;
  background: linear-gradient(to right, #3657AE, #2C44A8, #3657AE);
  background-size: 200% 100%;
  animation: heroShimmer 5s ease-in-out infinite;
  padding: 0.5rem 0;
  text-decoration: none;
}

@keyframes heroShimmer {
  0% {
    background-position: 0% 50%;
  }

  50% {
    background-position: 100% 50%;
  }

  100% {
    background-position: 0% 50%;
  }
}

/* ── Hero Typing Animation ── */
.hero-typing {
  color: #fff;
  font-size: 0.95rem;
  font-weight: 700;
  white-space: nowrap;
  direction: rtl;
  letter-spacing: 0.03em;
  clip-path: inset(0 0 0 100%);
  animation: heroTyping 6.5s linear infinite alternate,
             heroCursor 0.7s step-end infinite;
  border-left: 2px solid rgba(255, 255, 255, 0.85);
}

@keyframes heroTyping {
  0%   { clip-path: inset(0 0 0 100%); animation-timing-function: steps(18, end); }
  31%  { clip-path: inset(0 0 0 0%); }
  100% { clip-path: inset(0 0 0 0%); }
}

@keyframes heroCursor {
  50% { border-color: transparent; }
}

.hero img {
  width: 100px;
  max-width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
}

/* ── Main Content ── */
main {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0.25rem 1rem 3rem;
  gap: 0.5rem;
  background-image: linear-gradient(rgba(255,255,255,0.72), rgba(255,255,255,0.72)), url('israel_flag_background.png');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

@media (min-width: 768px) {
  main {
    padding: 2rem 1rem 4rem;
    gap: 2rem;
  }
}

/* ── Video ── */
.video-wrapper {
  position: relative;
  width: 100%;
  max-width: 300px;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.12);
  background: #000;
}

.video-wrapper video {
  width: 100%;
  display: block;
}

.sound-btn {
  position: absolute;
  bottom: 8px;
  right: 8px;
  background: rgba(0, 0, 0, 0.55);
  border: none;
  border-radius: 50%;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: #fff;
  transition: background 0.2s ease;
  padding: 0;
}

.sound-btn:hover {
  background: rgba(0, 0, 0, 0.8);
}

.sound-btn svg {
  width: 20px;
  height: 20px;
}

/* ── CTA Section ── */
.cta {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.25rem;
  text-align: center;
  max-width: 520px;
  padding: 0 0.5rem;
}

.cta p,
.cta-text-link {
  font-size: 1.125rem;
  font-weight: 500;
  line-height: 1.6;
  color: #1f2937;
  text-decoration: none;
}

.cta-text-link:hover {
  text-decoration: underline;
}

.whatsapp-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
  background-color: #25d366;
  color: #fff;
  text-decoration: none;
  font-size: 1rem;
  font-weight: 600;
  padding: 0.875rem 2rem;
  border-radius: 9999px;
  transition: background-color 0.2s ease, transform 0.15s ease;
  box-shadow: 0 2px 12px rgba(37, 211, 102, 0.35);
}

.whatsapp-btn:hover {
  background-color: #1ebe5d;
  transform: translateY(-1px);
}

.whatsapp-btn:active {
  transform: translateY(0);
}

/* WhatsApp SVG icon */
.whatsapp-btn svg {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
}

/* ── Footer ── */
footer {
  border-top: 1px solid #e5e7eb;
  padding: 1.25rem 1rem;
  text-align: center;
  font-size: 0.75rem;
  color: #6b7280;
  display: flex;
  align-items: center;
  flex-direction: column;
  gap: 0.375rem;
}

footer a {
  color: #6b7280;
  text-decoration: underline;
  transition: color 0.15s ease;
}

footer a:hover {
  color: #111827;
}

.accessibility-link {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  text-decoration: none;
  color: #6b7280;
  font-size: 0.8rem;
  transition: color 0.15s ease;
}

.accessibility-link:hover {
  color: #111827;
}

.accessibility-link i {
  font-size: 1.1rem;
}