/* Media Queries (for copy & paste) */

/* @media (max-width: 576px) {}

@media (min-width: 577px) and (max-width: 768px) {}

@media (min-width: 769px) and (max-width: 992px) {}

@media (min-width: 993px) {} */

/* || General Styles */

* {
  font-optical-sizing: auto;
  font-family: 'Inter', system-ui;
}

body,
html {
  margin: 0;
  background-color: #111111;
  color: white;
}

main {
  min-height: 100dvh;
}

a {
  color: inherit;
  text-decoration: none;
}

p {
  font-weight: 300;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  background: -webkit-linear-gradient(#ffffff, #cccccc);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.safe-area {
  padding: 40px;
  padding-top: 100px;
}

@media (max-width: 576px) {
  h1 {
    font-size: 2.5rem;
  }

  h2 {
    font-size: 1.4rem;
  }

  h3 {
    font-size: 1rem;
  }

  p {
    font-size: 0.9rem;
  }

  .text-icon {
    height: 0.9rem;
    width: 0.9rem;
    border-radius: 0.25rem;
    transform: translateY(0.08rem);
  }
}

@media (min-width: 577px) and (max-width: 769px) {
  h1 {
    font-size: 4rem;
  }

  h2 {
    font-size: 2rem;
  }

  h3 {
    font-size: 1.6rem;
  }

  p {
    font-size: 1.4rem;
  }

  .text-icon {
    height: 1.5rem;
    width: 1.5rem;
    border-radius: 0.25rem;
    transform: translateY(0.2rem);
  }
}

@media (min-width: 769px) and (max-width: 993px) {
  h1 {
    font-size: 4.8rem;
  }

  h2 {
    font-size: 2.8rem;
  }

  h3 {
    font-size: 2rem;
  }

  p {
    font-size: 1.4rem;
  }

  .text-icon {
    height: 1.5rem;
    width: 1.5rem;
    border-radius: 0.25rem;
    transform: translateY(0.2rem);
  }
}

@media (min-width: 993px) {
  h1 {
    font-size: 4.8rem;
  }

  h2 {
    font-size: 2.8rem;
  }

  h3 {
    font-size: 2rem;
  }

  p {
    font-size: 1.4rem;
  }

  .text-icon {
    height: 1.5rem;
    width: 1.5rem;
    border-radius: 0.25rem;
    transform: translateY(0.23rem);
  }
}

.muted {
  color: rgba(255, 255, 255, 0.8);
}

.muted-dark {
  color: rgba(255, 255, 255, 0.4);
}

.centered {
  text-align: center;
}

hr {
  width: 90%;
  background-color: #eee;
  border: 0 none;
  color: #eee;
  height: 1px;
  opacity: 0.1;
}

.btn {
  border-radius: 10px;
  font-size: 1rem;
  font-weight: 600;
  padding-top: 10px;
  padding-bottom: 10px;
  padding-right: 20px;
  padding-left: 20px;
  transition: transform 0.3s ease;
}

.btn:hover {
  cursor: pointer;
}

.btn:active {
  transform: scale(0.9);
}

.btn-primary {
  background-color: white;
  color: black;
  border: 0;
}

.btn-primary:hover {
  background-color: #f0f0f0;
}

.btn-secondary {
  background-color: transparent;
  color: white;
  border-width: 1px;
  border-color: hsla(0, 0%, 100%, 0.3);
  border-style: solid;
}

.btn-secondary:hover {
  border-color: hsla(0, 0%, 100%, 0.4);
}

/* || Header Styles */

header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  right: 10px;
  left: 10px;
  position: absolute;
}

header .right {
  gap: 20px;
  display: flex;
}

.logo {
  height: 42px;
  width: 35px;
  transform: scale(0.7);
}

.github-logo {
  border-radius: 10px;
  background-color: #181818;
  padding-top: 10px;
  padding-bottom: 10px;
  padding-right: 15px;
  padding-left: 15px;
  font-weight: 600;
  display: flex;
  gap: 10px;
  align-items: center;
}

.github-logo img {
  height: 20px;
}

.github-logo:hover {
  background-color: #222222;
  cursor: pointer;
}

@media (max-width: 576px) {
  header {
    margin-top: 20px;
    right: 20px;
    left: 20px;
  }
}

@media (min-width: 577px) and (max-width: 768px) {
  header {
    margin-top: 30px;
    right: 30px;
    left: 30px;
  }
}

@media (min-width: 769px) and (max-width: 992px) {
  header {
    margin-top: 40px;
    right: 40px;
    left: 40px;
  }
}

@media (min-width: 993px) {
  header {
    margin-top: 40px;
    right: 40px;
    left: 40px;
  }
}

/* || Hero Section Styles */

.hero-section {
  text-align: center;
}

.hero-section h1,
h2 {
  margin: 0;
}

.hero-section p {
  margin-right: auto;
  margin-left: auto;
}

.btn-container {
  display: flex;
  gap: 30px;
  justify-content: center;
}

.special-btn {
  position: relative;
  display: flex;
  width: fit-content;
  align-items: center;
  justify-content: center;
}

.special-btn button {
  z-index: 2;
  position: relative;
}

.special-btn .emoji {
  position: absolute;
  height: 25px;
  width: 25px;
  z-index: 1;
  transition: transform 0.3s ease;
}

@media (max-width: 576px) {
  .hero-section p {
    width: 80%;
  }
}

@media (min-width: 577px) and (max-width: 768px) {
  .hero-section p {
    width: 80%;
  }

  .special-btn:hover .emoji:nth-of-type(1) {
    transform: translate(-290%, -120%);
  }

  .special-btn:hover .emoji:nth-of-type(2) {
    transform: translate(0%, -150%);
  }

  .special-btn:hover .emoji:nth-of-type(3) {
    transform: translate(290%, -120%);
  }

  .special-btn:hover .emoji:nth-of-type(4) {
    transform: translate(290%, 120%);
  }

  .special-btn:hover .emoji:nth-of-type(5) {
    transform: translate(0%, 150%);
  }

  .special-btn:hover .emoji:nth-of-type(6) {
    transform: translate(-290%, 120%);
  }
}

@media (min-width: 769px) and (max-width: 992px) {
  .hero-section p {
    width: 80%;
  }

  .special-btn:hover .emoji:nth-of-type(1) {
    transform: translate(-290%, -120%);
  }

  .special-btn:hover .emoji:nth-of-type(2) {
    transform: translate(0%, -150%);
  }

  .special-btn:hover .emoji:nth-of-type(3) {
    transform: translate(290%, -120%);
  }

  .special-btn:hover .emoji:nth-of-type(4) {
    transform: translate(290%, 120%);
  }

  .special-btn:hover .emoji:nth-of-type(5) {
    transform: translate(0%, 150%);
  }

  .special-btn:hover .emoji:nth-of-type(6) {
    transform: translate(-290%, 120%);
  }
}

@media (min-width: 993px) {
  .hero-section p {
    width: 45%;
  }

  .special-btn:hover .emoji:nth-of-type(1) {
    transform: translate(-325%, -120%);
  }

  .special-btn:hover .emoji:nth-of-type(2) {
    transform: translate(0%, -150%);
  }

  .special-btn:hover .emoji:nth-of-type(3) {
    transform: translate(325%, -120%);
  }

  .special-btn:hover .emoji:nth-of-type(4) {
    transform: translate(325%, 120%);
  }

  .special-btn:hover .emoji:nth-of-type(5) {
    transform: translate(0%, 150%);
  }

  .special-btn:hover .emoji:nth-of-type(6) {
    transform: translate(-325%, 120%);
  }
}

/* || Banner Section Styles */

.banner-section {
  width: 90%;
  margin: auto;
  padding-top: 100px;
}

.banner-section .banner {
  background-image: url('../assets/logos/background.jpg');
  border-radius: 20px;
  display: flex;
  padding: 40px;
  padding-right: 18px;
}

.banner-section .banner h2 {
  font-weight: 600;
  font-size: 3.2rem;
}

.banner-section .ping-card-prespective {
  transform: perspective(2000px) rotateX(5deg) rotateY(-20deg) rotateZ(2deg)
    scale(0.9);
  transform-style: preserve-3d;
  box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19);
}

@media (max-width: 576px) {
  .banner-section .banner {
    flex-direction: column;
  }
}

/* || Ping Card */

.ping-card {
  width: 400px;
  backdrop-filter: blur(20px);
  padding: 20px;
  height: fit-content;
  background-color: rgba(0, 0, 0, 0.2);
  border-radius: 20px;
}

.ping-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.ping-row div {
  display: flex;
  align-items: center;
  gap: 20px;
}

.ping-row p {
  font-weight: 400;
  margin: 0;
  font-size: 1rem;
}

.ping-row sub {
  font-size: 0.6rem;
}

.ping {
  width: 6px;
  height: 6px;
  background-color: #06c200;
  border-radius: 50%;
  display: inline-block;
  position: relative;
}

.ping::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 100%;
  height: 100%;
  border: 2px solid #06c200;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  animation: pingAnimation 2s infinite ease;
}

.tooltip {
  position: relative;
  display: inline-block;
}

.tooltip .tooltiptext {
  width: 120px;
  font-size: 0.8rem;
  font-weight: 400;
  background-color: rgba(0, 0, 0, 0.2);
  color: rgba(255, 255, 255, 0.8);
  text-align: center;
  padding: 5px 0;
  border-radius: 6px;
  cursor: default;

  position: absolute;
  z-index: 1;
  transition: opacity 0.3s ease, transform 0.3s ease;
  opacity: 0;
  transform: translateY(10px);
}

.tooltip .tooltiptext {
  width: 70px;
  bottom: 260%;
  left: 50%;
  margin-left: -35px;
}

.tooltip .tooltiptext::after {
  content: ' ';
  position: absolute;
  top: 100%;
  left: 50%;
  margin-left: -5px;
  border-width: 5px;
  border-style: solid;
  border-color: rgba(0, 0, 0, 0.2) transparent transparent transparent;
}

.tooltip:hover .tooltiptext {
  opacity: 1;
  transform: translateY(0);
}

@keyframes pingAnimation {
  0% {
    transform: translate(-50%, -50%) scale(0.2);
    opacity: 1;
  }
  100% {
    transform: translate(-50%, -50%) scale(2);
    opacity: 0;
  }
}

/* || Large Banner Section */

.large-banner-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  width: 90%;
  margin: auto;
  padding-top: 40px;
}

.large-banner-section .banner {
  background-image: url('../assets/logos/background.jpg');
  border-radius: 20px;
  display: flex;
  padding: 40px;
  height: 80vh;
  overflow: hidden;
  justify-content: center;
  align-items: center;
}

.large-banner-section .ping-card-zoom {
  /* transform: scale(2) translateY(100%) translateX(-20%); */
  animation: showcaseAnimation 8s infinite ease;
}

@keyframes showcaseAnimation {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(2) translateX(30%);
  }
  75% {
    transform: scale(2) translateX(-30%);
  }
  100% {
    transform: scale(1);
  }
}

@media (max-width: 576px) {
  .large-banner-section {
    grid-template-columns: 1fr;
  }
}

/* || Details Section Styles */

.details-section {
  padding-top: 40px;
  width: 90%;
  margin: auto;
  padding-bottom: 40px;
}

.table-area h2 {
  z-index: -1;
}

.table {
  display: grid;
  place-items: center;
  text-align: center;
  grid-template-columns: 1fr 1fr 1fr;
  background: linear-gradient(
    90deg,
    rgba(121, 220, 233, 0.1),
    rgba(53, 121, 245, 0.1)
  );
  backdrop-filter: blur(2px);
  border-radius: 15px;
  padding: 20px;
  gap: 20px;
}

@media (max-width: 576px) {
  .table-area h2 {
    transform: translateY(0.6rem);
  }
}

@media (min-width: 577px) and (max-width: 768px) {
  .table-area h2 {
    transform: translateY(0.9rem);
  }
}

@media (min-width: 769px) and (max-width: 992px) {
  .table-area h2 {
    transform: translateY(1.2rem);
  }
}

@media (min-width: 993px) {
  .table-area h2 {
    transform: translateY(1.2rem);
  }
}

/* || Footer Styles */

footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: auto;
  width: 90%;
}

.credits {
  display: flex;
  align-items: center;
}

.credits img {
  height: 40px;
  width: 40px;
  border-radius: 100%;
}

.credits p {
  font-size: 1rem;
  line-height: 1.4rem;
  font-weight: 300;
}

.credits b {
  font-weight: 500;
}

@media (max-width: 576px) {
  footer {
    flex-direction: column;
  }

  .credits {
    flex-direction: column;
    text-align: center;
    padding-top: 10px;
  }
}

@media (min-width: 577px) and (max-width: 768px) {
  .credits {
    gap: 20px;
  }
}

@media (min-width: 769px) and (max-width: 992px) {
  .credits {
    gap: 20px;
  }
}

@media (min-width: 993px) {
  .credits {
    gap: 20px;
  }
}