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

html, body {
  height: 100%;
  width: 100%;
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
}

.container {
  position: relative;
  width: 100%;
  max-width: 450px;
  margin: auto;
}

.background-image {
  width: 100%;
  display: block;
}

.circle-overlay {
  position: absolute;
  bottom: 1%;
  left: 50%;
  transform: translate(-50%, 0);
  width: 60%;
  max-width: 240px;
  height: 60%;
  display: flex;
  flex-direction: column;
  justify-content: center; /* vertical centring */
  align-items: center;
  text-align: center;
  color: white;
  animation: popBounce 1.2s ease-out;
  padding: 10px; /* ensures space from circle edge */
  box-sizing: border-box;
}

/* Headings */
.circle-overlay h2 {
  font-size: clamp(13px, 3.4vw, 17px);
  margin-bottom: 6px;
  font-weight: 800;
  line-height: 1.25;
}

.circle-overlay h4 {
  font-size: clamp(12px, 3.2vw, 16px);
  margin: 4px 0 10px 0;
  font-weight: 800;
  line-height: 1.2;
}

/* Paragraph */
.circle-overlay p {
  font-size: clamp(10px, 2.9vw, 14px);
  margin: 4px 0 10px 0;
  line-height: 1.3;
}

/* Promo code */
.circle-overlay .code {
  font-size: clamp(12px, 3vw, 15px);
  letter-spacing: 0.5px;
  font-weight: 700;
  background-color: rgba(255, 255, 255, 0.15);
  padding: 3px 7px;
  border-radius: 6px;
  display: inline-block;
  max-width: 100%;
  overflow-wrap: break-word;
  margin-bottom: 10px;
}

/* Follow Us line */
.follow-us {
  font-size: clamp(10px, 2.8vw, 13px);
  font-weight: 600;
  margin: 10px 0 6px 0;
  text-align: center;
}

/* Social buttons */
.social {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 6px;
  padding-bottom: 4px; /* space from circle edge */
}

.social a {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 3px 7px;
  background-color: rgba(255, 255, 255, 0.2);
  border-radius: 20px;
  text-decoration: none;
  color: white;
  font-size: clamp(9.5px, 2.5vw, 12px);
  font-weight: 600;
  transition: background 0.3s ease-in-out;
  white-space: nowrap;
}

.social a:hover {
  background-color: rgba(255, 255, 255, 0.35);
}

/* Animation */
@keyframes popBounce {
  0% {
    opacity: 0;
    transform: translate(-50%, 100%) scale(0.95);
  }
  60% {
    opacity: 1;
    transform: translate(-50%, -10%) scale(1.05);
  }
  80% {
    transform: translate(-50%, 5%) scale(0.98);
  }
  100% {
    transform: translate(-50%, 0%) scale(1);
  }
}

/* Small screen adjustments */
@media (max-width: 320px) {
  .circle-overlay {
    width: 58%;
    max-width: 200px;
    height: 58%;
    padding: 8px;
  }
  .circle-overlay h2,
  .circle-overlay h4,
  .circle-overlay p,
  .circle-overlay .code,
  .follow-us,
  .social a {
    font-size: 10px;
    line-height: 1.2;
  }
}

@media (max-width: 280px) {
  .circle-overlay {
    width: 56%;
    max-width: 185px;
    height: 56%;
    padding: 6px;
  }
  .circle-overlay h2,
  .circle-overlay h4,
  .circle-overlay p,
  .circle-overlay .code,
  .follow-us,
  .social a {
    font-size: 9px;
  }
}

@media (max-width: 260px) {
  .circle-overlay {
    width: 54%;
    max-width: 175px;
    height: 54%;
    padding: 5px;
  }
  .circle-overlay h2,
  .circle-overlay h4,
  .circle-overlay p,
  .circle-overlay .code,
  .follow-us,
  .social a {
    font-size: 8.5px;
    line-height: 1.15;
  }
  .social a {
    padding: 2px 5px;
  }
}

/* Extra padding tweak for smallest devices */
@media (max-width: 300px) {
  .circle-overlay {
    padding: 12px; /* extra space inside circle */
  }
  .social {
    padding-bottom: 8px; /* more bottom space */
  }
}
