body {
  margin: 0;
  padding: 40px 20px;
  overflow-x: hidden;
}

.main-container {
  width: 100%;
  max-width: 380px;
  margin: 0 auto;
}

@media (min-width: 768px) {
  body {
    padding-top: 80px;
  }
  .main-container {
    transform: scale(1.4);
    transform-origin: top center;
    margin-bottom: 250px; /* Compensates for the increased height from scale */
  }
}

@media (min-width: 1200px) {
  .main-container {
    transform: scale(1.5);
    margin-bottom: 350px;
  }
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background: url("../media/bg.webp") center/cover no-repeat;
  transform: scale(1.1);
  z-index: -1;
}

.photo {
  display: block;
  margin: auto;
  border-radius: 50%;
}

.ano {
  font-family: "Inconsolata", monospace;
  text-align: center;
}

.deks {
  font-family: "Inconsolata", monospace;
  position: relative;
  top: -16px;

  display: block;
  width: fit-content;
  max-width: 320px;
  margin: 0 auto;

  padding: 12px 16px;

  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 12px;

  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(10px);

  text-align: center;
  color: black;
}

.deks h4 {
  margin: 0;
  font-size: 9px;
  font-weight: normal;
  line-height: 1.6;
}

.icon {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  margin-top: 10px;
}

.wasap,
.email,
.instagram,
.github {
  color: black;
  font-size: 16px;
  text-decoration: none;
  transition: transform .2s ease;
}

.wasap:hover,
.wasap:active,
.email:hover,
.email:active,
.instagram:hover,
.instagram:active,
.github:hover,
.github:active {
  transform: scale(1.15);
  }

.bio {
  font-family: "Inconsolata", monospace;

  display: block;
  width: fit-content;
  max-width: 320px;

  margin: 8px 0 0 2px;

  padding: 12px 16px;

  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 12px;

  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(10px);

  color: black;
  text-align: left;
}

.bio table {
  border-collapse: collapse;
  width: 100%;
  font-size: 10px;
}

.bio td {
  padding: 3px 0;
  vertical-align: top;
}

.bio td:first-child {
  font-weight: bold;
  padding-right: 12px;
  white-space: nowrap;
}

.bio td:nth-child(2) {
  padding: 0 8px;
}

.bio h3 {
  margin: 0 0 10px 0;
  font-size: 15px;
  font-weight: bold;
  text-align: center;
}

.language {
  font-family: "Inconsolata", monospace;

  display: block;
  width: fit-content;
  max-width: 150px;

  margin: -135px -2px 0 auto;

  padding: 25px 12px;

  border: 1px solid rgba(255,255,255,.3);
  border-radius: 12px;

  background: rgba(255,255,255,.08);
  backdrop-filter: blur(10px);

  color: black;
}

.language h4 {
  margin: 0 0 8px;
  font-size: 15px;
  text-align: center;

  position: relative;
  top: -13px;
}

.lang-grid {
  display: grid;
  grid-template-columns: repeat(2, auto);
  gap: 8px 14px;
  justify-content: center;
  font-size: 9px;
}

.lang-grid div {
  display: flex;
  align-items: center;
  gap: 5px;
}

.lang-grid i {
  font-size: 14px;
}

.ruby {
  grid-column: 1 / 3;
  justify-content: center;
}

.extra-card {
  font-family: "Inconsolata", monospace;
  display: block;
  width: 100%;
  max-width: 320px;
  margin: 3px 0 0 2px;
  padding: 12px 16px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(10px);
  box-sizing: border-box;
  color: black;
}

.card-title {
  font-size: 13px;
  font-weight: bold;
  margin: 0 0 10px 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.card-title i {
  color: #8760ba;
}



@keyframes smoothEntry {
  from {
    opacity: 0;
    transform: translateY(15px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.photo { animation: smoothEntry 0.8s ease-out forwards; animation-delay: 0.1s; opacity: 0; }
.ano { animation: smoothEntry 0.8s ease-out forwards; animation-delay: 0.2s; opacity: 0; }
.deks { animation: smoothEntry 0.8s ease-out forwards; animation-delay: 0.3s; opacity: 0; }
.bio { animation: smoothEntry 0.8s ease-out forwards; animation-delay: 0.4s; opacity: 0; }
.language { animation: smoothEntry 0.8s ease-out forwards; animation-delay: 0.5s; opacity: 0; }
.extra-card { animation: smoothEntry 0.8s ease-out forwards; animation-delay: 0.6s; opacity: 0; }