/* General Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'DM Sans', sans-serif;
}

html, body {
  height: 100%;
  overflow-x: hidden;
  overflow-y: auto;
}

/* Background container */
.background {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: #1a1a2e;
  z-index: -1;
}

.background-img {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  z-index: -1;
}

/* Dark overlay so text is readable */
.background-dim {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.55);
  z-index: 0;
  pointer-events: none;
}

/* Overlay content */
.overlay {
  position: relative;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  color: #ffffff;
  padding: 24px 16px;
  z-index: 1;
  max-width: 520px;
  margin: 0 auto;
}

/* Headline – smaller, fluid scale */
.overlay h1 {
  font-size: clamp(1.35rem, 4vw + 0.8rem, 2.25rem);
  font-weight: 700;
  margin-bottom: clamp(0.5rem, 1.5vw, 0.75rem);
  text-shadow: 1px 1px 8px rgba(0,0,0,0.4);
  opacity: 0;
  transform: translateY(20px);
  animation: fadeUp 1.4s ease-out 0.4s forwards;
}

/* Subtext – smaller */
.overlay p {
  font-size: clamp(0.8rem, 1.8vw + 0.45rem, 0.95rem);
  line-height: 1.55;
  margin-bottom: clamp(0.4rem, 1.2vw, 0.65rem);
  text-shadow: 1px 1px 6px rgba(0,0,0,0.3);
  opacity: 0;
  transform: translateY(20px);
}

.overlay p:nth-of-type(1) {
  animation: fadeUp 1.4s ease-out 0.8s forwards;
}

.overlay p:nth-of-type(2) {
  animation: fadeUp 1.4s ease-out 1.2s forwards;
}

.overlay p:nth-of-type(3) {
  animation: fadeUp 1.4s ease-out 1.6s forwards;
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Buttons */
.buttons {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
  margin-top: 1.2rem;
  width: 100%;
}

.btn {
  text-decoration: none;
  padding: clamp(12px, 2.5vw, 14px) clamp(18px, 4vw, 22px);
  border-radius: 50px;
  font-size: clamp(0.8rem, 1.5vw + 0.4rem, 0.9rem);
  font-weight: 600;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #ffffff;
  text-align: center;
  box-shadow: 1px 1px 10px rgba(0,0,0,0.2);
  cursor: pointer;
  position: relative;
  z-index: 2;
  flex: 1 1 180px;
  justify-content: center;
}

/* Icons – mobile-friendly size, scale with viewport */
.btn i {
  font-size: clamp(0.8rem, 1.5vw + 0.4rem, 0.95rem);
  flex-shrink: 0;
}

.email-btn {
  background-color: #FF6B6B;
}

.email-btn:hover {
  background-color: #FF3B3B;
}

.whatsapp-btn {
  background-color: #25D366;
}

.whatsapp-btn:hover {
  background-color: #1EBE57;
}

/* Responsive – scaling handled by clamp above; layout tweaks only */
@media (max-width: 768px) {
  html, body {
    overflow-x: hidden;
    overflow-y: auto;
  }
  .buttons {
    flex-direction: column;
    gap: 10px;
  }
  .btn {
    width: 100%;
    flex: 1 1 auto;
  }
}

@media (max-width: 480px) {
  .overlay {
    padding: calc(20px + env(safe-area-inset-top, 0px)) 14px 20px;
  }
}