@import url("./reset.css");

:root {
  --click-primary: #583f99;
}

body {
  width: 100vw;
  position: relative;
  overflow-x: hidden;
}

header {
  margin-bottom: 4rem;
}

header .header-logo-section {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--click-primary);
}

header .header-logo-section img {
  width: 300px;
}

.hp_header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  justify-content: space-between;
}

header #search-input {
  width: 100%;
  padding: 0.5rem;
  font-size: 1rem;
  border: 1px solid #ccc;
  border-radius: 4px;
  outline: none;
  border-radius: 0.5rem;
  width: 20rem;
}

#search-input:focus {
  border-color: #007bff;
  box-shadow: 0 0 5px rgba(0, 123, 255, 0.3);
}

@media screen and (max-width: 768px) {
  header .header-logo-section {
    flex-direction: column;
    align-items: start;
  }
  header .header-logo-section img {
    width: 80%;
  }

  .hp_header {
    flex-direction: column;
    align-items: flex-start;
  }
  header #search-input {
    width: 100%;
  }
}

.staff-hub-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 2rem;
}

.staff-grid-item {
  aspect-ratio: 1 / 1;
  display: grid;
  place-items: center;
  padding: 1rem;
  border-radius: 0.5rem;
  box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
  transition-property: all;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
  transition-duration: 150ms;
  color: var(--click-primary);
  text-align: center;
}

.staff-grid-item:hover {
  background-color: rgb(250 250 250);
}

.staff-grid-item img {
  width: 70%;
  aspect-ratio: 1 / 1;
  object-fit: contain;
  mix-blend-mode: multiply;
}

@media screen and (max-width: 768px) {
  .staff-hub-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media screen and (max-width: 450px) {
  .staff-hub-grid {
    grid-template-columns: repeat(1, minmax(0, 1fr));
  }
}

/* ------------------- */
footer {
  text-align: center;
  width: fit-content;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 1rem;
  margin-top: 4rem;
  font-weight: 600;
}

footer a {
  text-decoration: none;
  color: var(--click-primary);
}

/* ------------------------------------------------ */
.container-sm {
  width: 100%;
  margin-inline: auto;
  padding-left: 1.25rem;
  padding-right: 1.25rem;
  padding-top: 2rem;
}

@media (min-width: 640px) {
  .container-sm {
    max-width: 690px;
  }
}

@media (min-width: 768px) {
  .container-sm {
    max-width: 818px;
  }
}
@media (min-width: 1024px) {
  .container-sm {
    max-width: 1074px;
  }
}

@media (min-width: 1280px) {
  .container-sm {
    max-width: 1230px;
  }
}

/* ------------------------------------------------- */

@keyframes jumbo {
  from {
    background-position: 50% 50%, 50% 50%;
  }
  to {
    background-position: 350% 50%, 350% 50%;
  }
}
a {
  text-decoration: none;
}

/* ----------------- */

.absolute {
  position: absolute;
  width: 100vw;
  height: 100vh;
  left: 0;
  top: 0;
  z-index: -1;
}

.jumbo {
  height: 100%;
  width: 100%;
  opacity: 0.3;
  --stripes: repeating-linear-gradient(
    100deg,
    #fff 0%,
    #fff 7%,
    transparent 10%,
    transparent 12%,
    #fff 16%
  );
  --stripesDark: repeating-linear-gradient(
    100deg,
    #000 0%,
    #000 7%,
    transparent 10%,
    transparent 12%,
    #000 16%
  );
  --rainbow: repeating-linear-gradient(
    100deg,
    #60a5fa 10%,
    #e879f9 15%,
    #60a5fa 20%,
    #5eead4 25%,
    #60a5fa 30%
  );
  background-image: var(--stripes), var(--rainbow);
  background-size: 300%, 200%;
  background-position: 50% 50%, 50% 50%;

  filter: blur(10px) invert(100%);

  mask-image: radial-gradient(ellipse at 100% 0%, black 40%, transparent 70%);

  pointer-events: none;
}

.jumbo::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: var(--stripes), var(--rainbow);
  background-size: 200%, 100%;
  animation: jumbo 60s linear infinite;
  background-attachment: fixed;
  mix-blend-mode: difference;
}

.dark .jumbo {
  background-image: var(--stripesDark), var(--rainbow);
  filter: blur(10px) opacity(50%) saturate(200%);
}
.dark .jumbo::after {
  background-image: var(--stripesDark), var(--rainbow);
}

/* ----------------------------- */

.whatsapp_floater {
  z-index: 1000;
  position: fixed;
  left: 0.75rem;
  bottom: 1.75rem;
}

.whatsapp_floater_icon {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border-radius: 9999px;
  padding: 0.75rem;
  color: rgb(255 255 255);

  background: #128c7e;
  transition-property: all;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
  transition-duration: 150ms;
}
.whatsapp_floater_icon:hover {
  background-color: #075e54;
  box-shadow: 0 25px 50px -12px hsla(173, 77%, 31%, 0.5);
}

.whatsapp_floater_icon img {
  width: 1.5rem;
}
