/* ========== Load Custom Fonts ========== */
@font-face {
  font-family: 'PastaWineLittle';
  src: url('PastaWineLittle.otf') format('opentype');
  font-weight: normal;
  font-style: normal;
}

@font-face {
  font-family: 'Scribe';
  src: url('scribe.otf') format('opentype');
  font-weight: normal;
  font-style: normal;
}

/* ========== Reset ========== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* ========== HOMEPAGE ========== */
/* Default: Desktop */
.home-container {
  position: relative;
  width: 100%;
  height: 100vh;
  background: url("glubhome.png") no-repeat center center;
  background-size: cover;
}

/* SIP link hitbox — desktop default */
.sip-link {
  position: absolute;
  bottom: 20%;
  right: 18%;
  width: 12%;
  height: 12%;
  cursor: pointer;
  z-index: 10;
  /* background: rgba(255,0,0,0.3); <-- debug box */
}

/* Mobile Override */
@media (max-width: 600px) {
  .home-container {
    background: url("glubhome-mobile.png") no-repeat center center;
    background-size: cover;
  }

  .sip-link {
    bottom: 32%;   /* adjust for SIP on mobile PNG */
    right: 18%;
    width: 28%;
    height: 10%;
    /* background: rgba(0,255,0,0.3); <-- debug on phone */
  }
}

/* ========== WORKS PAGE ========== */
body.works, html.works {
  height: 100%;
  width: 100%;
  font-family: 'Scribe', sans-serif;
}

.works-container {
  position: relative;
  height: 100vh;
  width: 100vw;
  background: url("works-bg.png") no-repeat center center;
  background-size: cover;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  gap: 2rem;
}

/* Title styling */
main h2 {
  font-size: 3rem;
  font-family: 'PastaWineLittle', sans-serif;
  color: #14325c; /* deep cola navy */
  text-align: center;
  margin-bottom: 1rem;
  letter-spacing: 2px;
  text-shadow: 1px 1px 2px rgba(0,0,0,0.2);
}

/* Works button layout */
.works-list {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
}

/* Back button */
.back-btn {
  text-align: center;
  margin-bottom: 1rem;
}

.back-btn a {
  font-family: 'PastaWineLittle', sans-serif;
  font-size: 1.2rem;
  color: #14325c;
  text-decoration: none;
  border: 2px solid #14325c;
  padding: 0.3rem 0.8rem;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.7);
  transition: all 0.3s ease;
  display: inline-block;
}

.back-btn a:hover {
  background: #ffd700;
  color: #111;
  border-color: #ffd700;
  box-shadow: 0 0 10px #ffd700;
}

/* PNG bottlecap button with tilt animation */
.work-img {
  width: 220px;
  height: auto;
  cursor: pointer;
  filter: drop-shadow(2px 4px 6px rgba(0,0,0,0.4));
  animation: tilt 4s ease-in-out infinite;
  transform-origin: center center;
}

.work-img:hover {
  animation: tiltHover 4s ease-in-out infinite;
  filter: drop-shadow(0 0 6px rgba(0,0,0,0.6));
}

/* Gentle back-and-forth tilt */
@keyframes tilt {
  0%   { transform: rotate(-3deg); }
  50%  { transform: rotate(3deg); }
  100% { transform: rotate(-3deg); }
}

/* Tilt + scale combo for hover */
@keyframes tiltHover {
  0%   { transform: rotate(-3deg) scale(1.05); }
  50%  { transform: rotate(3deg) scale(1.05); }
  100% { transform: rotate(-3deg) scale(1.05); }
}

/* ========== Responsive Fixes ========== */
@media (max-width: 600px) {
  main h2 {
    font-size: 2rem;
  }

  .work-img {
    width: 160px;
  }

  .back-btn a {
    font-size: 1rem;
    padding: 0.2rem 0.6rem;
  }
}
