@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: #28347d;
}

body {
  width: 100%;
  min-height: 100%;
  overflow-x: hidden;

  font-family: "Scrambles", sans-serif;
  background-color: #28347d;
}

body,
h1,
h2,
h3,
p,
a,
button,
span {
  font-family: "Scrambles", sans-serif;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* =========================
   ABOUT BACKGROUND STAGE
   ABOUT BG.png is 1820 x 2048.
   Page height = viewport width * 2048 / 1820.
   This shows the full image without squeezing.
   ========================= */

.about-page {
  position: relative;

  width: 100%;
  min-height: max(100vh, calc(100vw * 1.1253));

  overflow: hidden;

  background-color: #28347d;
  background-image: url("../assets/bg/ABOUT BG.png");
  background-repeat: no-repeat;
  background-position: top center;
  background-size: 100% auto;
}

/* =========================
   SHARED HEADER
   Keep this matching every page
   ========================= */

.site-header {
  position: relative;
  z-index: 5;

  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 / RESUME BUTTON
   ========================= */

.about-main {
  position: absolute;
  inset: 0;
  z-index: 4;

  pointer-events: none;
}

.resume-link {
  position: absolute;

  /*
    Placement is based on the full 1820 x 2048 background.
    Increased top value moves the resume star slightly down.
  */
  left: 64.5%;
  top: 58.4%;

  width: 24.2vw;
  max-width: 440px;
  min-width: 220px;

  display: block;
  pointer-events: auto;

  transition:
    transform 0.2s ease,
    filter 0.2s ease;
}

.resume-button {
  width: 100%;
  height: auto;
  display: block;
}

.resume-link:hover {
  transform: scale(1.08);
  filter:
    drop-shadow(0 0 5px rgba(255, 255, 160, 0.8))
    drop-shadow(0 0 12px rgba(255, 130, 220, 0.45));
}

/* =========================
   FOOTER
   ========================= */

.site-footer {
  position: absolute;
  z-index: 5;

  left: 0;
  right: 0;
  bottom: clamp(18px, 2vw, 34px);

  width: 100%;
}

.social-links {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1px;
  flex-wrap: wrap;
}

.social-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

.social-links img {
  width: clamp(46px, 4.8vw, 72px);
  height: auto;
  display: block;
}

/* =========================
   1920 x 1080 FIRST TARGET
   ========================= */

@media (min-width: 1200px) {
  .about-page {
    min-height: max(100vh, calc(100vw * 1.1253));
    background-size: 100% auto;
    background-position: top center;
  }

  .resume-link {
    left: 64.5%;
    top: 58.4%;
    width: 24.2vw;
    max-width: 440px;
  }
}

/* =========================
   1366 / 1421 / STANDARD LAPTOP
   ========================= */

@media (min-width: 901px) and (max-width: 1550px) {
  .resume-link {
    left: 64.5%;
    top: 58.2%;
    width: 24vw;
    max-width: 370px;
    min-width: 230px;
  }

  .social-links img {
    width: 58px;
  }
}

/* =========================
   TABLET
   ========================= */

@media (max-width: 900px) {
  .about-page {
    min-height: max(100vh, calc(100vw * 2.23));
    background-size: auto 100%;
    background-position: top center;
  }

  .main-nav {
    width: min(96vw, 760px);
    gap: 18px 28px;
    flex-wrap: wrap;
  }

  .main-nav a {
    font-size: 1.05rem;
  }

  .star-logo {
    width: 170px;
  }

  .resume-link {
    left: 62%;
    top: 57.7%;
    width: 27vw;
    min-width: 180px;
    max-width: 270px;
  }

  .social-links img {
    width: 48px;
  }
}

/* =========================
   PHONE
   ========================= */

@media (max-width: 560px) {
  .about-page {
    min-height: max(100vh, calc(100vw * 4.45));
    background-size: auto 100%;
    background-position: top center;
  }

  .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;
  }

  .resume-link {
    left: 60%;
    top: 57.4%;
    width: 30vw;
    min-width: 130px;
    max-width: 190px;
  }

  .site-footer {
    bottom: 16px;
  }

  .social-links {
    gap: 5px;
  }

  .social-links img {
    width: 42px;
  }
}

/* =========================
   VERY SMALL PHONE
   ========================= */

@media (max-width: 390px) {
  .main-nav a {
    font-size: 0.78rem;
  }

  .star-logo {
    width: 112px;
  }

  .resume-link {
    top: 57.4%;
    width: 32vw;
    min-width: 120px;
  }
}