/* Font Face Declaration */
@font-face {
  font-family: "PP Pangram Sans";
  src: url("assets/fonts/PPPangramSans-Semibold.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

/* Basic Reset & Body Styling */
body,
html {
  margin: 0;
  padding: 0;
  width: 100%;
  height: 100%;
  font-family: "PP Pangram Sans", sans-serif;
  background-color: #f0f2f5;
  overflow: hidden; /* Prevents scrollbars during animation */
}

/* Main Screen Container */
.welcome-screen {
  position: relative;
  width: 100%;
  height: 100%;
  background-color: #000; /* Fallback color */
  overflow: hidden;
}

/* Animated Background & Logo */
.animated-background {
  opacity: 0;
  animation: fadeIn 0.6s ease-in-out forwards;
}

.background-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.logo {
  position: absolute;
  top: 36px;
  right: 40px;
  width: 80px;
  opacity: 0;
  animation: fadeIn 0.6s ease-in-out forwards;
}

/* Content Layout */
.content-column {
  position: relative;
  height: 100%;
  display: flex;
  flex-direction: column;
}

/* Animated Headline */
.animated-headline {
  opacity: 0;
  transform: translateX(-20px);
  animation: slideInFromLeft 0.6s ease-out 1s forwards; /* 1s delay */
  align-self: flex-start;
  padding: 116px 24px 0;
}

.headline-text {
  font-size: 24px;
  color: rgba(1, 13, 10, 0.84);
  font-weight: 600;
  margin: 0;
  margin-top: 12px;
  white-space: nowrap; /* Prevents line breaks */
}

.headline-subtext {
  font-family: "Inter", sans-serif;
  font-weight: 400;
  font-size: 14px;
  color: rgba(1, 13, 10, 0.84);
  margin: 16px 0 0;
  line-height: 1.4;
}

.headline-subtext a {
  color: inherit;
  text-decoration: underline;
}

/* Info Card */
.info-card-container {
  align-self: flex-end;
  padding-right: 32px;
}

.card-bottom {
  position: absolute;
  bottom: 74px;
  right: 32px;
  align-self: auto;
  padding-right: 0;
}

.animated-info-card {
  opacity: 0;
  transform: translateX(30%);
  animation: elasticSlideIn 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275) 2s
    forwards; /* 2s total delay */
  background-color: rgba(207, 255, 84, 1);
  border-radius: 16px;
  padding: 16px;
  max-width: 300px; /* Max-width for responsiveness */
}

.card-title {
  display: flex;
  align-items: center;
  font-size: 1rem;
  font-weight: 600;
  color: rgba(1, 13, 10, 0.84);
}

.card-title-text {
  font-family: "Inter", sans-serif;
  font-weight: 600;
}

.icon {
  font-size: 1.2rem;
  margin-right: 8px;
}

.card-description {
  font-family: "Inter", sans-serif;
  font-weight: 400;
  font-size: 0.875rem;
  color: rgba(1, 13, 10, 0.84);
  margin: 8px 0 0;
}

/* Keyframe Animations */
@keyframes fadeIn {
  to {
    opacity: 1;
  }
}

@keyframes slideInFromLeft {
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes elasticSlideIn {
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* Responsive adjustments for smaller screens */
@media (max-width: 600px) {
  .headline-text {
    font-size: 2.5rem;
  }

  .animated-headline {
    padding-top: 96px;
  }

  .info-card-container {
    padding-right: 24px;
    padding-left: 24px;
  }
}

/* Additional responsive breakpoints for headline text */
@media (max-width: 500px) {
  .headline-text {
    font-size: 2rem;
  }
}

@media (max-width: 400px) {
  .headline-text {
    font-size: 1.5rem;
  }
}

@media (max-width: 320px) {
  .headline-text {
    font-size: 1.2rem;
  }
}
