@import url("https://fonts.googleapis.com/css2?family=Instrument+Serif:ital@0;1&display=swap");

:root {
  --base-100: #fff;
  --base-200: #333;
  --base-300: #262626;
  --base-400: #141414;
  --base-500: #0f0f0f;
}

.spotlight .header {
  position: absolute;
  top: 55%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}


.spotlight * {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* body {
  font-family: "Instrument Serif";
  background-color: var(--base-500);
  color: var(--base-100);
} */

.spotlight-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.spotlight h1 {
  text-align: center;
  font-size: 4vw;
  font-weight: 500;
  line-height: 0.9;
  white-space: nowrap;
}

.spotlight p {
  font-family: "Instrument Serif", sans-serif;
  font-size: 1rem;
  font-weight: 500;
  line-height: 1;
}

/* Fix horizontal scroll */
.spotlight {
  position: relative;
  width: 100%;
  height: 100svh;
  overflow: hidden;
}

.spotlight-bg {
  position: absolute;
  transform: scale(0.8);
  opacity: 0.25;
}

.spotlight .spotlight-content {
  position: absolute;
  inset: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  will-change: transform;
}

.spotlight .spotlight-content h1 {
  position: absolute;
  left: 0;
  width: 100%;
  margin: 0;
  padding: 0;
  text-align: center;
  transform: none;
}

.spotlight .header-content {
  width: 60%;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 2rem;
  will-change: transform, opacity;
  transform: translateY(-100px);
  opacity: 0;
}

.spotlight .header-content h1 {
  font-size: 1rem;
}

.spotlight .header-content p {
  font-family: "Instrument Serif", sans-serif;
  margin: 0;
  font-size: 1.5rem;
  line-height: 1;

}

.spotlight .feature {
  position: absolute;
  width: max-content;
  height: max-content;
  padding: 1rem 1.5rem;
  transform: translate(-50%, -50%);
  will-change: top, left;
}

.spotlight .feature:hover .feature-content {
  transform: translateY(-5px) scale(1.1);
  transition: transform 0.3s;
}

.spotlight .feature-bg {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100%;
  height: 100%;
  background-color: var(--base-400);
  border: 0.125rem solid var(--base-300);
  border-radius: 1.5rem;
  will-change: width, height, border-radius, border-width;
}

.spotlight .feature-content {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  will-change: opacity;
}

.spotlight .feature-content .icon {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 0.3rem;
}

.spotlight .feature-content .icon img {
  width: 32px;
  height: 32px;
  object-fit: contain;
}


.spotlight .feature-content p {
  text-transform: uppercase;
  font-family: "Instrument Serif", sans-serif;
  font-weight: 400;
  font-size: 0.85rem;
  line-height: 1;
  margin-top: 0.3rem;
  text-align: center;
  padding-top: 0.3rem;
}

/* Search-bar */
.spotlight .search-bar {
  font-family: "Instrument Serif", sans-serif;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 3rem;
  height: 3rem;
  border-radius: 25rem;
  border: 0.35rem solid var(--base-300);
  background-color: var(--base-400);
  opacity: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  will-change: opacity, width, height, transform;
}

.spotlight .search-bar h2 {
  font-family: "Instrument Serif", sans-serif;
  opacity: 0;
  font-size: 2rem;
  font-weight: 500;
}

.spotlight .search-bar p {
  position: relative;
  opacity: 0;
  will-change: opacity;
  text-align: center;
}

.header-content {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
  max-width: 700px;
}

.edu-item {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  border-left: 2px solid var(--base-300);
  padding-left: 1rem;
  position: relative;
}

.edu-item::before {
  content: "";
  position: absolute;
  left: -6px;
  top: 5px;
  width: 10px;
  height: 10px;
  background: var(--base-100);
  border-radius: 50%;
}

.year {
  font-size: 0.8rem;
  color: #aaa;
  letter-spacing: 1px;
}

.edu-item h3 {
  font-size: 1.2rem;
  font-weight: 500;
}

.school {
  font-size: 1rem;
  color: #ddd;
}

.details {
  font-size: 0.9rem;
  color: #aaa;
}

.location {
  font-size: 0.8rem;
  color: #777;
}


@media (max-width: 1500px) {
  .spotlight .spotlight-bg {
    transform: scale(1.2);
  }
}

@media (max-width: 1000px) {

  .spotlight .spotlight-content h1,
  .spotlight .header-content {
    width: 100%;
    padding: 2rem;
  }

  .spotlight .spotlight-bg {
    transform: scale(1.5);
  }

  .spotlight .feature {
    padding: 1rem;
  }

  .spotlight .feature-content p {
    font-size: 0.7rem;
  }
}

/* Big phone display */
@media (max-width: 500px) and (min-height: 800px) {

  .spotlight .header {
    top: 55%;
    transform: translate(-50%, -50%);
  }

  .spotlight .feature {
    padding: 0.5rem;
    width: 2.5rem;
    height: 2.5rem;
  }

  .spotlight .feature-bg {
    width: 100%;
    height: 100%;
    border-radius: 0.8rem;
    border-width: 0.1rem;
  }

  .spotlight .spotlight-content h1 {
    font-size: 2.5rem;
    white-space: nowrap;
  }

  .edu-item {
    gap: 0.25rem;
  }

  .year {
    font-size: 0.7rem;
  }

  .edu-item h3 {
    font-size: 1.05rem;
  }

  .school {
    font-size: 0.9rem;
  }

  .details {
    font-size: 0.8rem;
  }

  .location {
    font-size: 0.7rem;
  }

  .spotlight .header-content {
    gap: 1.5rem;
  }

  .spotlight .header-content h1 {
    font-size: 2rem;
    white-space: normal;
  }

  .spotlight .feature-content {
    gap: 0;
  }

  .spotlight .spotlight-bg {
    transform: scale(1.7);
  }

  /* No text */
  .spotlight .feature-content p {
    display: none;
  }

  .spotlight .feature-content .icon img {
    width: 24px;
    height: 24px;
  }

}

/* Small phone display */
@media (max-width: 500px) and (max-height: 801px) {

  .spotlight .feature {
    padding: 0.5rem;
    width: 2.5rem;
    height: 2.5rem;
  }

  .spotlight .feature-bg {
    width: 100%;
    height: 100%;
    border-radius: 0.8rem;
    border-width: 0.1rem;
  }

  .spotlight .spotlight-content h1 {
    font-size: 2.5rem;
    white-space: nowrap;
  }

  .spotlight .header-content h1 {
    font-size: 2rem;
    white-space: normal;
  }

  .spotlight .feature-content {
    gap: 0;
  }

  .spotlight .spotlight-bg {
    transform: scale(1.7);
  }

  /* No text */
  .spotlight .feature-content p {
    display: none;
  }

  .spotlight .feature-content .icon img {
    width: 24px;
    height: 24px;
  }


  .spotlight .header {
    top: 57.5%;
    transform: translate(-50%, -50%);
  }

  .edu-item {
    gap: 0.1rem;
  }

  .year {
    font-size: 0.7rem;
  }

  .edu-item h3 {
    font-size: 0.9rem;
  }

  .school {
    font-size: 0.8rem;
  }

  .details {
    font-size: 0.7rem;
  }

  .location {
    font-size: 0.5rem;
  }

  .spotlight .header-content {
    gap: 1.5rem;
  }

}