@import url("https://fonts.googleapis.com/css2?family=National+Park:wght@200..800&family=Nothing+You+Could+Do&family=Shantell+Sans:ital,wght@0,300..800;1,300..800&display=swap");

*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --frame-color: #846d19;
  --frame-thickness: 10px;
  --section-bg: #1c1c1f;
}

html,
body {
  width: 100%;
  min-height: 100vh;
}

img {
  display: inline-block;
}

.banner {
  width: 100%;
  height: 100vh;
}

.banner-wrapper {
  width: 100%;
  height: 100%;
}

#star-banner {
  background-image: url("../assets/cosmos.svg");
  background-size: cover; /* or 'contain' depending on your needs */
  background-repeat: no-repeat;
  background-position: center center; /* optional - centers the image */

  color: whitesmoke;
  font-size: clamp(12pt, 5vw, 24pt);
  font-family: "Nothing You Could Do", cursive;
  font-weight: 400;
  font-style: normal;
}

#star-banner > .banner-wrapper {
  backdrop-filter: blur(5px);
  display: flex;
  align-items: center;
  flex-direction: column;
  justify-content: center;
}

#star-banner h1 {
  font-family: "National Park", sans-serif;
  font-optical-sizing: auto;
  font-weight: 700;
  font-style: normal;
  font-size: clamp(36pt, 10vw, 100pt);
  color: whitesmoke;
}

#star-banner img {
  border: var(--frame-thickness) var(--frame-color) solid;
  -webkit-box-shadow: 0px 0px 18px 5px rgba(212, 212, 212, 0.2);
  -moz-box-shadow: 0px 0px 18px 5px rgba(212, 212, 212, 0.2);
  box-shadow: 0px 0px 18px 5px rgba(212, 212, 212, 0.2);
  aspect-ratio: 1 / 1;
  width: clamp(128px, min(50vh, 50vw), 256px);
}

main {
  background-color: var(--section-bg);
  min-height: 100vh;
  font-family: "National Park", sans-serif;
  color: whitesmoke;
  /* font-size: 18pt; */
  font-size: 1.5rem;
}

main h2 {
  font-family: "National Park", sans-serif;
  font-optical-sizing: auto;
  font-weight: 700;
  font-style: normal;
  font-size: clamp(24pt, 5vw, 48pt);
  color: whitesmoke;
  text-align: center;
}

.studio-description {
  padding: 1rem;
}

#project-list {
  padding: 1rem;
  list-style: none;
}

#project-list > li {
  margin-top: 1rem;
}

.project-card {
  display: grid;
  grid-template-columns: clamp(128px, 30vw, 256px) 1fr;
  grid-template-rows: clamp(25pt, 5vw, 50pt) 1fr;
}

.project-card-icon {
  aspect-ratio: 1 / 1;
  width: 100%;
  /* height: 100%; */
  /* width: clamp(128px, 40vw, 256px); */
  object-fit: cover;
  grid-row-start: 1;
  grid-row-end: 3;

  grid-column-start: 1;
  grid-column-end: 2;

  border: var(--frame-thickness) var(--frame-color) solid;
  -webkit-box-shadow: 0px 5px 10px 7px rgba(0, 0, 0, 0.2);
  -moz-box-shadow: 0px 5px 10px 7px rgba(0, 0, 0, 0.2);
  box-shadow: 0px 5px 10px 7px rgba(0, 0, 0, 0.2);
}

.project-card h3 {
  font-size: clamp(18pt, 5vw, 36pt);
  text-align: left;
  grid-column-start: 2;
  grid-column-end: 3;
  grid-row-start: 1;
  grid-row-end: 2;
  padding-left: 1rem;
}
.project-card-desc {
  grid-column-start: 2;
  grid-column-end: 3;

  grid-row-start: 2;
  grid-row-end: 3;
  padding: 1rem;
}

a {
  /* text-decoration: underline; */
  background: linear-gradient(to right, #fc032c, #61b8ff);
  background-clip: text;
  -webkit-text-fill-color: transparent;
  position: relative;
}

a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px; /* Adjust distance from text */
  width: 100%;
  height: 1px; /* Underline thickness */
  background: linear-gradient(to right, #fc032c, #61b8ff);
  transform: scaleX(0); /* Start with no underline */
  transition: transform 0.3s ease;
}

a:hover::after {
  transform: scaleX(1); /* Animate underline in */
}

footer {
  /*   width: 100%; */
  /*   min-height: 10vh; */
  background: #0b0817;
  /*   /* border-top: 3px #111 solid; */
}

.cosmic-footer {
  background: #0b0817;
  /* background: linear-gradient(to right, #1a1a2e, #16213e); */
  padding: 2rem 1rem;
  text-align: center;
  border-top: 1px solid rgba(132, 109, 25, 0.3); /* Gold accent */
  box-shadow: 0 -5px 15px rgba(0, 0, 0, 0.3);
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
}

.copyright {
  font-family: "National Park", sans-serif;
  color: whitesmoke;
  font-size: clamp(0.8rem, 2vw, 1rem);
  margin-bottom: 0.5rem;
}

@keyframes twinkle {
  0%,
  100% {
    opacity: 0.2;
  }
  50% {
    opacity: 0.8;
  }
}

.twinkle-effect {
  animation: twinkle 4s infinite;
}

.text-italic {
  font-style: italic;
}
