@font-face {
  font-family: "Scrambles";
  src: url("../fonts/Scrambles-Regular.ttf") format("truetype");
  font-weight: normal;
  font-style: normal;
  font-display: block;
}

/* =========================
   GLOBAL RESET
   ========================= */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  width: 100%;
  min-height: 100%;
  background-color: #1f2b68;
}

body {
  width: 100%;
  min-height: 100%;
  overflow-x: hidden;

  font-family: "Scrambles", sans-serif;
  color: #00cfff;

  background-color: #1f2b68;
  background-image: url("../assets/bg/ILLUST BG.png");
  background-size: 100% auto;
  background-position: top center;
  background-repeat: no-repeat;
  background-attachment: scroll;
}

body,
h1,
h2,
h3,
p,
a,
button,
span {
  font-family: "Scrambles", sans-serif;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* =========================
   SHARED HEADER
   Keep this matching every page
   ========================= */

.site-header {
  width: 100%;
  padding-top: clamp(14px, 2vw, 28px);
}

.main-nav {
  width: min(94vw, 1120px);
  margin: 0 auto;

  display: flex;
  align-items: center;
  justify-content: center;

  gap: clamp(24px, 4.2vw, 72px);
  flex-wrap: nowrap;
}

.main-nav a {
  color: #48baff;
  text-decoration: none;

  font-size: clamp(0.9rem, 1.25vw, 1.45rem);
  letter-spacing: 1.5px;
  white-space: nowrap;

  transition:
    color 0.2s ease,
    text-shadow 0.2s ease,
    transform 0.2s ease;
}

.main-nav .current-page {
  color: white;
  text-shadow: none;
  transform: none;
}

.main-nav a:hover {
  color: white;
  text-shadow:
    0 0 6px white,
    0 0 12px white,
    0 0 18px #74ccff;
  transform: scale(1.08);
}

.logo-link {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
}

.star-logo {
  width: clamp(125px, 12vw, 265px);
  height: auto;
  display: block;

  transition:
    transform 0.2s ease,
    filter 0.2s ease;
}

.logo-link:hover .star-logo {
  transform: scale(1.06);
  filter:
    drop-shadow(0 0 3px white)
    drop-shadow(0 0 6px #e041e2);
}

/* =========================
   MAIN
   ========================= */

.illustration-main {
  width: min(1180px, 92vw);
  margin: 70px auto 140px;
  padding-top: 95px;
}

h1 {
  margin: 0 0 80px;

  text-align: center;
  font-size: clamp(2.4rem, 5vw, 4.5rem);
  font-weight: normal;
  letter-spacing: 4.5px;
  text-transform: uppercase;

  color: #48baff;
  text-shadow: none;
}

/* =========================
   GALLERY
   ========================= */

.gallery {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  align-items: center;
}

.gallery-item {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;

  overflow: hidden;
  border-radius: 3px;
  cursor: pointer;

  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease,
    filter 0.2s ease;
}

.gallery-item img {
  width: 100%;
  height: 100%;

  display: block;
  object-fit: cover;

  transition:
    transform 0.2s ease,
    filter 0.2s ease;
}

.gallery-overlay {
  position: absolute;
  inset: 0;

  background: rgba(72, 186, 255, 0.45);
  backdrop-filter: blur(2px);

  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;

  text-align: center;
  padding: 16px;

  opacity: 0;
  transition: opacity 0.2s ease;
  pointer-events: none;
}

.gallery-overlay h3 {
  margin: 0 0 10px;

  font-size: 1.5rem;
  line-height: 1.1;
  letter-spacing: 1px;

  color: black;
  text-transform: uppercase;
}

.gallery-overlay p {
  margin: 3px 0;

  font-size: 1rem;
  line-height: 1;
  letter-spacing: 0.8px;

  color: black;
  text-transform: uppercase;
}

.gallery-item:hover {
  transform: translateY(-8px) scale(1.035);
  box-shadow:
    0 0 12px #00cfff,
    0 0 26px #00cfff,
    0 0 42px #008cff;
}

.gallery-item:hover img {
  filter: brightness(1.05);
}

.gallery-item:hover .gallery-overlay {
  opacity: 1;
}

/* =========================
   LIGHTBOX
   ========================= */

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 999;

  background: rgba(8, 12, 45, 0.88);

  display: none;
  justify-content: center;
  align-items: center;

  padding: 35px;
}

.lightbox.active {
  display: flex;
}

.lightbox img {
  max-width: 92vw;
  max-height: 90vh;
  object-fit: contain;

  box-shadow:
    0 0 16px #00cfff,
    0 0 35px #00cfff;
}

/* =========================
   FOOTER
   ========================= */

.site-footer {
  width: 100%;
  padding: 40px 0 35px;
}

.social-links {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1px;
  flex-wrap: wrap;
}

.social-links a {
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

.social-links img {
  width: 70px;
  height: auto;
  display: block;
}

/* =========================
   1920 x 1080 / DESKTOP FIRST
   Keep the current look.
   ========================= */

@media (min-width: 1200px) {
  .illustration-main {
    width: min(1180px, 92vw);
    margin-top: 70px;
    padding-top: 95px;
  }

  .gallery {
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
  }
}

/* =========================
   TABLET / SMALL LAPTOP
   ========================= */

@media (max-width: 900px) {
  .main-nav {
    width: min(96vw, 760px);
    gap: 18px 28px;
    flex-wrap: wrap;
  }

  .main-nav a {
    font-size: 1.05rem;
  }

  .star-logo {
    width: 170px;
  }

  .illustration-main {
    width: 92vw;
    margin-top: 56px;
    padding-top: 70px;
  }

  h1 {
    margin-bottom: 62px;
  }

  .gallery {
    grid-template-columns: repeat(2, 1fr);
    gap: 28px;
  }

  .social-links img {
    width: 52px;
  }
}

/* =========================
   PHONE
   ========================= */

@media (max-width: 560px) {
  .site-header {
    padding-top: 12px;
  }

  .main-nav {
    width: 100%;
    padding: 0 10px;

    gap: 10px 16px;
    flex-wrap: wrap;
  }

  .main-nav a {
    font-size: 0.85rem;
    letter-spacing: 1px;
  }

  .star-logo {
    width: 125px;
  }

  .illustration-main {
    width: 90vw;
    margin-top: 40px;
    padding-top: 46px;
    margin-bottom: 90px;
  }

  h1 {
    font-size: 2.5rem;
    margin-bottom: 44px;
    letter-spacing: 2.5px;
  }

  .gallery {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .gallery-overlay h3 {
    font-size: 1.35rem;
  }

  .gallery-overlay p {
    font-size: 0.95rem;
  }

  .site-footer {
    padding: 26px 0 24px;
  }

  .social-links {
    gap: 20px;
  }

  .social-links img {
    width: 42px;
  }

  .lightbox {
    padding: 18px;
  }
}

/* =========================
   VERY SMALL PHONE
   ========================= */

@media (max-width: 390px) {
  .main-nav a {
    font-size: 0.78rem;
  }

  .star-logo {
    width: 112px;
  }

  h1 {
    font-size: 2.2rem;
  }
}