:root {
  --amsi-grad-start: #db8d4a;
  --amsi-grad-end: #db7048;
  --amsi-white: #ffffff;
  --amsi-soft: rgba(255, 194, 153, 0.55);
  --gear-opacity: 0.68;
  --gear-1-pos: -25% 40%;
  --gear-2-pos: 110% 25%;
  --gear-3-pos: 18% 108%;
  --gear-4-pos: 130% 70%;
  --gear-1-size: 170px auto;
  --gear-2-size: 145px auto;
  --gear-3-size: 195px auto;
  --gear-4-size: 160px auto;
}

html,
body {
  margin: 0;
  padding: 0;
  min-height: 100%;
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  background: linear-gradient(180deg, var(--amsi-grad-start) 0%, var(--amsi-grad-end) 100%);
}

.container {
  max-width: 500px;
  padding: 0;
}

.bcard {
  --bs-gutter-x: 0;
  --bs-gutter-y: 0;
  position: relative;
  min-height: 100vh;
  margin: 0;
  overflow: hidden;
  background: linear-gradient(180deg, var(--amsi-grad-start) 0%, var(--amsi-grad-end) 100%);
}

.bcard::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    url("../assets/background-gear-img.png"),
    url("../assets/background-gear-img.png"),
    url("../assets/background-gear-img.png"),
    url("../assets/background-gear-img.png");
  background-repeat: no-repeat;
  background-position: var(--gear-1-pos), var(--gear-2-pos), var(--gear-3-pos), var(--gear-4-pos);
  background-size: var(--gear-1-size), var(--gear-2-size), var(--gear-3-size), var(--gear-4-size);
  opacity: var(--gear-opacity);
  pointer-events: none;
  z-index: 0;
}

.bcard > .col-md-6 {
  width: 100%;
  max-width: 100%;
  flex: 0 0 100%;
}

.header,
.footer {
  position: relative;
  z-index: 1;
}

.header {
  margin: 0;
  padding: 30px 24px 8px;
  overflow: visible !important;
}

.header::before {
  content: "";
  position: absolute;
  top: 0;
  left: -12%;
  width: 124%;
  height: 225px;
  background: var(--amsi-white);
  border-bottom-left-radius: 50% 91%;
  border-bottom-right-radius: 50% 91%;
  z-index: 0;
}

#top-buttons {
  position: relative;
  z-index: 2;
  margin: 0;
  padding: 0;
  min-height: 42px;
}

#top-buttons > .col,
#top-buttons > .col-5 {
  padding-left: 0;
  padding-right: 0;
}

#top-buttons > .col {
  flex: 0 0 auto;
}

#top-buttons > .col-5 {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  flex: 0 0 auto;
  width: auto;
}

#logo {
  text-align: center;
}

#logo img {
  width: min(170px, 100%);
  display: block;
  margin: 0 auto;
  margin-left: -2px;
}

#qrcode,
#share {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 34px;
  height: 34px;
  background-repeat: no-repeat;
  background-position: center;
  background-size: 26px 26px;
  cursor: pointer;
}

#qrcode {
  left: 0;
  background-image: url("../assets/qr-code.svg");
}

#share {
  right: 0;
  background-image: url("../assets/share.svg");
}

#qrcode svg,
#share svg {
  display: none;
}

#contact-pic {
  position: relative;
  z-index: 2;
  margin-top: 33px;
  margin-bottom: 26px;
  min-height: auto;
  display: flex;
  align-items: center;
  justify-content: center;
}

.profile_pic {
  width: 178px;
  height: 178px;
  border-radius: 50%;
  display: block;
  margin: 0;
  border: 6px solid #f6a33a;
  object-fit: cover;
  object-position: top;
  background: var(--amsi-white);
}

.profile_pic--logo {
  width: 178px;
  height: auto;
  border: 0;
  border-radius: 0;
  object-fit: contain;
}

.profile-name-position {
  margin-top: 52px;
  position: relative;
  z-index: 2;
}

#contact-name {
  margin: 0;
  color: var(--amsi-white);
  font-weight: 500;
  font-size: 22px;
  line-height: 1.1;
  letter-spacing: 0.01em;
  text-transform: uppercase;
}

#contact-position {
  margin: 8px 0 0;
  color: var(--amsi-white);
  font-size: 18px;
  font-weight: 400;
}

.social-icons {
  margin: 14px 0 0;
  position: relative;
  z-index: 2;
}

.social-icons .col-2 {
  width: auto;
  flex: 0 0 auto;
  padding: 0 7px;
}

.social-icon {
  width: 32px;
  height: 32px;
  display: block;
  background-repeat: no-repeat;
  background-position: center;
  background-size: 32px 32px;
}

#facebook {
  background-image: url("../assets/facebook.svg");
}

#instagram {
  background-image: url("../assets/instagram.svg");
}

#linkedin {
  background-image: url("../assets/linkedin.svg");
}

.social-icon svg {
  display: none;
}

.divider {
  display: none;
}

.footer {
  padding: 0px 44px 0px;
  margin: 0;
  background: transparent;
}

.contact-info {
  margin: 0 0 14px;
  padding: 12px 16px;
  border-radius: 7px;
  background: var(--amsi-soft);
  display: flex;
  align-items: center;
  max-width: 100%;
}

.contact-info div {
  padding: 0;
}

.contact-info .col-1 {
  width: 26px;
  flex: 0 0 26px;
  margin-right: 10px;
}

.contact-info .icon {
  width: 24px;
  height: 24px;
  display: inline-block;
  background-repeat: no-repeat;
  background-position: center;
  text-align: center;
  background-size: 22px 22px;
}

#office-tel,
#mobile-tel {
  background-image: url("../assets/phone.svg");
}

#mobile-tel {
  background-image: url("../assets/mobile-cion.svg");
}

#email {
  background-image: url("../assets/mail.svg");
}

#web {
  background-image: url("../assets/web.svg");
}

#office-tel svg,
#mobile-tel svg,
#email svg,
#web svg {
  display: none;
}

#department-branch path,
#idNum path {
  fill: var(--amsi-white) !important;
}

.contact-info a,
.contact-info span,
.ext {
  text-decoration: none;
  color: var(--amsi-white);
  font-weight: 400;
  font-size: clamp(1rem, 4.1vw, 1.1rem);
  line-height: 1.2;
  letter-spacing: 0.01em;
}

#contact-email {
  display: inline-block;
  line-height: 1.2;
}

#qr-code {
  max-width: 198px;
  margin: 18px auto 14px;
  padding: 12px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 10px;
}

#qr-code img{
  padding: 0px;
}

.btn-row {
  margin: 8px 0 0;
}

.btn.add-contact {
  width: 100%;
  margin-top: 15px;
  margin-bottom: 20px;
  border: 0;
  border-radius: 12px;
  background: var(--amsi-white);
  color: var(--amsi-grad-end);
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
      font-weight: 500;
    font-size: 17px;
    letter-spacing: .3px;
  text-transform: uppercase;
  padding: 16px 12px;
}

.btn.add-contact:hover,
.btn.add-contact:focus {
  background: #fff7f1;
  color: var(--amsi-grad-end);
}

@media (min-width: 768px) {
  body {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px 0;
  }

  .bcard {
    min-height: auto;
    border-radius: 20px;
    max-width: 405px;
    box-shadow: 0 20px 45px rgba(96, 45, 10, 0.3);
  }
}
