/* Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* Body */
body {
  font-family: "Poppins", sans-serif;
  height: 100vh;
  background: linear-gradient(70deg, #f5f5f5 60%, #ff7a7d);
  display: flex;
  justify-content: center;
  align-items: center;
  color: #333;
  position: relative;
  padding: 2rem;
}

/* Overlay for better text readability */
body::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.3);
}

/* Container */
.container {
  position: relative;
  background: rgba(255, 255, 255, 0.85);
  padding: 3rem;
  border-radius: 16px;
  text-align: center;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
  max-width: 750px;
  width: 80%;
  min-height: 400px;
  display: flex;
  flex-direction: column;
  margin: auto;
  animation: fadeUp 1s ease-out forwards;
  opacity: 0;
  transform: translateY(40px);
}

/* Headings */
.container h1 {
  font-family: "Roboto Condensed", sans-serif;
  font-size: 3rem;
  margin-bottom: 1rem;
  color: #ee6668;
  font-weight: 300;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  flex-wrap: nowrap;
}

.container h2 {
  font-size: 3rem;
  margin-bottom: 0.1rem;
  color: #222;
}

.container p {
  font-size: 1.1rem;
  color: #444;
  margin-bottom: 1rem;
}

.title-text {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-left: 10px;
  position: relative;
  white-space: nowrap;
}

.main-title {
  font-size: 2.5rem;
  color: #ee6668;
  font-weight: 300;
  font-family: "Roboto Condensed", sans-serif;
  display: inline-block; /* treat text as a block for positioning */
}



.subtitle {
  font-size: 1rem;
  font-weight: 400;
  color: #ee6668;
  margin-top: 0.2rem;
  text-align: center;
}

/* Logo */
.logo-icon {
  width: 8rem;
  height: 8rem;
}

/* Footer */
footer .contact {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  flex-wrap: wrap;
  background: rgba(255, 255, 255, 0.2);
  padding: 0.5rem 1rem;
  border-radius: 12px;
  max-width: 90%;
  margin: 0.5rem auto;
  backdrop-filter: blur(4px);
}

footer .contact a {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: #030712;
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  white-space: nowrap;
}

footer .contact a:hover {
  color: #d63434;
}

footer .contact svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

footer p.copy {
  font-size: 0.9rem;
  margin-top: 0.5rem;
}

/* Animations */
@keyframes fadeUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Small screens */
@media (max-width: 750px) {
  .container {
    width: 95%;
    max-width: 600px;
    padding: 2rem;
  }
  .container h1 {
    font-size: 2.5rem;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem;
  }
  .container h2 {
    font-size: 2rem;
    flex-wrap: nowrap;
    margin-bottom: 1rem;
  }
  .container p {
    font-size: 1rem;
  }
  .logo-icon {
    width: 4rem;
    height: 4rem;
  }
  .title-text {
    white-space: normal;
    text-align: center;
    position: relative;
  }
  .main-title {
    font-size: 2.5rem;
    position: relative;
  }

  footer .contact {
    flex-direction: column;
    gap: 0.6rem;
    padding: 0.6rem 0.8rem;
  }
  footer .contact a {
    font-size: 0.9rem;
    white-space: normal;
  }
}

/* Medium screens */
@media (max-width: 992px) and (min-width: 751px) {
  .container h1 {
    font-size: 2rem;
  }
  .container h2 {
    font-size: 2.5rem;
  }
  .container p {
    font-size: 1rem;
  }
  .logo-icon {
    width: 6rem;
    height: 6rem;
  }


  footer .contact a {
    font-size: 0.92rem;
  }
}

/* Extra small screens (mobile phones) */
@media (max-width: 480px) {
  .container {
    padding: 1.5rem;
    width: 98%;
  }
  .container h1 {
    font-size: 2rem;
    flex-direction: column;
    gap: 0.3rem;
  }
  .logo-icon {
    width: 3rem;
    height: 3rem;
  }
  .main-title {
    font-size: 2rem;
    position: relative;
  }
  .subtitle {
    font-size: 0.9rem;
  }

  .container h2 {
    font-size: 1.8rem;
  }
  .container p {
    font-size: 0.9rem;
  }
}
