* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
body {
  width: 100vw;
  height: 100vh;
  overflow: hidden;
  font-family: 'Share Tech Mono', monospace;
  position: relative;
  background-image: url(./images/bg.png);
  background-size: cover;
  background-position: bottom center;
}
.github {
  position: absolute;
  left: 6%;
  top: 25%;
  display: block;
  width: clamp(160px, 14vw, 240px);
  transition: opacity 0.2s, transform 0.2s;
  z-index: 10;
}

.github img {
  width: 100%;
  height: auto;
  display: block;
}

.github:hover {
  opacity: 0.85;
  transform: scale(1.03);
}
.overlay {
  position: relative;
  top: 35%;
  z-index: 40;
  height: 65%;
  pointer-events: none;
}

.overlay img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.main-img {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -56%);
  height: 90vh;
  z-index: 3;
  pointer-events: none;
}

.main-img img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.card-tagline-border {
  position: absolute;
  top: 40%;
  right: 4%;
  width: 272px;
  height: 100px;
  background-color: #2f2f2f;
  border-radius: 16px;
  z-index: 50;
}
.card-tagline {
  position: absolute;
  right: 0;
  top: 35%;
  width: 100%;
  padding: 22px 24px;
  background: linear-gradient(180deg, #ff9d00 4%, #fb923c 20%, #ff4400 100%);
  border-radius: 16px;
  z-index: 41;
  animation: slideRight 0.8s ease both;
}

@keyframes slideRight {
  from { opacity: 0; transform: translateX(30px); }
  to   { opacity: 1; transform: translateX(0); }
}

.tagline-sub {
  font-family: 'Pixelify Sans', sans-serif;
  font-size: clamp(11px, 2vw, 24px);
  color: rgba(255, 255, 255, 0.85);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 4px;
}

.tagline-main {
  font-family: 'Pixelify Sans', sans-serif;
  font-size: clamp(13px, 3vw, 30px);
  font-weight: 900;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}


@media screen and (max-width: 768px) {
  body {
    height: 100dvh;
    overflow-y: auto;
    background-attachment: fixed;
  }

  .main-img {
    top: 2vh;
    left: 50%;
    transform: translateX(-50%);
    height: 52vh;
    width: 90vw;
  }
  .github {
    left: 50%;
    top: 57%;
    transform: translateX(-50%);
    width: clamp(180px, 55vw, 280px);
  }

  .github:hover {
    transform: translateX(-50%) scale(1.03);
  }
  .overlay {
    display: none;
  }
  .card-tagline-border {
    position: absolute;
    right: auto;
    top: auto;
    left: 50%;
    bottom: -15vh;
    transform: translateX(-50%);
    width: 90vw;
    max-width: 480px;
    height: 150px;
    background-color: transparent;
    border-radius: 14px;
  }
  .card-tagline {
    position: relative;
    right: auto;
    top: auto;
    padding: 24px 20px;
    border-radius: 14px;
    text-align: center;
    animation: slideUp 0.8s ease both;
  }

  @keyframes slideUp {
    from { opacity: 0; transform: translateY(20px); }
    to   { opacity: 1; transform: translateY(0); }
  }

  .tagline-sub {
    font-size: clamp(14px, 5vw, 22px);
    margin-bottom: 4px;
  }

  .tagline-main {
    font-size: clamp(18px, 6.5vw, 30px);
  }
}

@media screen and (max-width: 480px) {

  .main-img {
    height: 48vh;
    top: 2vh;
  }

  .github {
    top: 55%;
    width: clamp(160px, 60vw, 240px);
  }

  .card-tagline {
    padding: 20px 16px;
  }
  .card-tagline-border{
    height: 120px;
     bottom: -5vh;
  }
  
  .tagline-sub  { font-size: clamp(13px, 4.5vw, 18px); }
  .tagline-main { font-size: clamp(16px, 6vw, 26px); }
}
@media screen and (max-width: 360px) {

  .main-img {
    height: 42vh;
  }

  .github {
    top: 50%;
    width: clamp(140px, 65vw, 200px);
  }

  .tagline-sub  { font-size: 13px; }
  .tagline-main { font-size: 16px; }
}