@import url("https://fonts.googleapis.com/css2?family=Anton&family=Playfair+Display:ital,wght@0,400..900;1,400..900&family=Public+Sans:ital,wght@0,100..900;1,100..900&display=swap");

:root {
  --fs-project: 0.8rem;
  --fs-button: 0.87rem;
  --fs-nav: 0.8rem;
  --fs-sm: 1.1rem;
  --fs-md: 1.25rem;
  --fs-rg: 1.56rem;
  --fs-lg: 4.375rem;
  --fs-xl: 6.25rem;
  --fs-xxl: 9.375rem;
}

a:link,
a:visited,
a:hover,
a:active {
  text-decoration: none;
  color: var(--white);
}

body {
  font-family: "Public Sans", sans-serif;
  font-weight: 100;
  font-size: var(--fs-rg);
  line-height: 120%;
}

.title {
  font-family: "Anton", serif;
  text-transform: uppercase;
  letter-spacing: 0.2rem;
}

.subtitle {
  font-family: "Playfair Display", serif;
  text-transform: uppercase;
}

.title-body {
  font-size: var(--fs-lg);
  line-height: 1;
}

.subtitle-body {
  font-size: var(--fs-md);
  line-height: 1;
}

.link {
  text-decoration: underline;
  font-family: "Playfair Display", serif;
  font-style: italic;
  user-select: none;
}

.underline {
  text-decoration: underline !important;
}

.no-underline {
  text-decoration: none !important;
}

.bold {
  font-weight: 700 !important;
}

.italic {
  font-style: italic;
}

.regular {
  font-weight: 100;
  font-style: normal;
}

.serif {
  font-family: "Playfair Display", serif;
}

.sans-serif {
  font-family: "Public Sans", sans-serif;
}

.opener-name__subtitle {
  text-transform: uppercase;
  font-size: var(--fs-lg);
}

.opener {
  line-height: 1;
}

.opener-name__title {
  text-transform: uppercase;
  font-size: var(--fs-xxl);
  line-height: 0.35;
  padding: 0;
}

.projects {
  color: var(--white);
}

.fact {
  font-size: var(--fs-md);
}

button {
  font-size: var(--fs-button);
}

.red-circle {
  font-size: var(--fs-md);
}

.footer-contact {
  font-size: var(--fs-md);
}

.link {
  transition: all cubic-bezier(0, 0, 0, 1) 0.8s;
}

.link:hover {
  transform: scale(1.05);
}

/* Initial state of the text (hidden) */
.animate-text {
  opacity: 0;
  transform: translateY(5rem);
  transition: opacity 2s ease, transform 2s ease;
}

/* Active state when in view */
.animate-text.in-view {
  opacity: 1;
  transform: translateY(0);
}

.asterisk-animate {
  display: inline-block; /* Needed for transform to work properly */
  animation: scale 3s infinite cubic-bezier(0.88, 0.01, 0.29, 0.99);
  transform-origin: 50% 50%; /* Explicitly ensure the transform is centered */
  font-size: 2rem; /* Adjust as needed for visibility */
  line-height: 1; /* Ensure tight alignment within the element */
  text-align: center; /* Ensure proper centering if it's inside a container */
  z-index: 2;
}

@keyframes scale {
  0%,
  100% {
    transform: scale(0.6); /* Initial and final state */
  }
  50% {
    transform: scale(1.5); /* Rotated and scaled up */
  }
  95% {
    transform: scale(0.55);
  }
}


.asterisk-animate-subtle {
  display: inline-block; /* Needed for transform to work properly */
  animation: scale-subtle 3s infinite cubic-bezier(0.88, 0.01, 0.29, 0.99);
  transform-origin: 50% 50%; /* Explicitly ensure the transform is centered */
  font-size: 2rem; /* Adjust as needed for visibility */
  line-height: 1; /* Ensure tight alignment within the element */
  text-align: center; /* Ensure proper centering if it's inside a container */
  z-index: 2;
}

@keyframes scale-subtle {
  0%,
  100% {
    transform: scale(0.8); /* Initial and final state */
  }
  50% {
    transform: scale(1.1); /* Rotated and scaled up */
  }
  95% {
    transform: scale(0.75);
  }
}
