* {
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

html, body {
  margin: 0;
  width: 100%;
  min-height: 100%;
  background: #000;
  color: #fff;
  font-family: Arial, Helvetica, sans-serif;
}

body {
  overflow: hidden;
}

.app {
  width: 100vw;
  height: 100vh;
  max-width: 430px;
  margin: 0 auto;
  position: relative;
  overflow: hidden;
  background: #000;
}

.screen {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: scale(1.04);
  pointer-events: none;
  transition: opacity .9s ease, transform .9s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.screen.active {
  opacity: 1;
  transform: scale(1);
  pointer-events: auto;
}

.wallpaper-bg {
  position: absolute;
  inset: 0;
  background-image: url("assets/wallpaper.png");
  background-size: cover;
  background-position: center top;
  background-repeat: no-repeat;
  transform: scale(1.02);
}

.dark-layer {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 50% 5%, rgba(0, 180, 255, .18), transparent 28%),
    linear-gradient(180deg, rgba(0, 8, 20, .30), rgba(0, 0, 0, .72));
}

/* SPLASH LOGO 3D BERPUTAR */
.splash-logo {
  z-index: 2;
  width: 270px;
  height: 270px;
  display: grid;
  place-items: center;
  position: relative;
  perspective: 1000px;
}

.splash-logo::before {
  content: "";
  position: absolute;
  width: 265px;
  height: 265px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0, 190, 255, .28), transparent 64%);
  box-shadow:
    0 0 45px rgba(0, 180, 255, .85),
    0 0 100px rgba(0, 90, 255, .50);
}

.splash-logo::after {
  content: "";
  position: absolute;
  width: 220px;
  height: 45px;
  bottom: 15px;
  border-radius: 50%;
  border: 2px solid rgba(0, 200, 255, .55);
  box-shadow: 0 0 28px rgba(0, 180, 255, .8);
  transform: rotateX(72deg);
}

.splash-logo img {
  width: 235px;
  height: 235px;
  object-fit: contain;
  z-index: 2;
  animation: logoSpin3D 5.5s linear infinite;
  filter:
    drop-shadow(0 18px 18px rgba(0,0,0,.95))
    drop-shadow(0 0 28px rgba(0,190,255,.95))
    contrast(1.24)
    saturate(1.25);
}

#screenLogo h1 {
  z-index: 2;
  font-size: 35px;
  letter-spacing: 7px;
  margin: 20px 0 4px;
  text-shadow: 0 0 18px rgba(0, 180, 255, .6);
}

#screenLogo h3 {
  z-index: 2;
  margin: 0;
  font-size: 14px;
  letter-spacing: 2px;
  color: #e3f7ff;
}

.web-top {
  z-index: 2;
  margin-top: 12px;
  color: #70d4ff;
  text-decoration: none;
  font-size: 15px;
}

.loading {
  z-index: 2;
  width: 180px;
  height: 5px;
  background: rgba(255,255,255,.18);
  border-radius: 99px;
  margin-top: 26px;
  overflow: hidden;
}

.loading span {
  display: block;
  width: 0;
  height: 100%;
  background: linear-gradient(90deg, #00aeff, #fff, #006dff);
  animation: loading 3.2s forwards ease;
}

.loading-text {
  z-index: 2;
  color: #b9eaff;
  margin-top: 12px;
}

/* PROFILE */
.profile-wrap {
  position: absolute;
  top: 58px;
  left: 0;
  right: 0;
  bottom: 155px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  overflow: hidden;
  z-index: 2;
}

.hero-photo {
  width: 92%;
  max-height: 100%;
  object-fit: contain;
  object-position: center bottom;
  filter: drop-shadow(0 22px 24px rgba(0,0,0,.9));
  animation: photoIn 1.1s ease both;
}

.profile-title {
  position: absolute;
  z-index: 4;
  left: 14px;
  right: 14px;
  bottom: 28px;
  text-align: center;
  text-shadow: 0 2px 12px #000;
}

.profile-title h2 {
  margin: 0;
  font-size: clamp(40px, 11vw, 54px);
  line-height: .95;
}

.profile-title h4 {
  margin: 8px 0 4px;
  font-size: 23px;
  color: #28baff;
}

.profile-title p {
  margin: 0;
  font-size: 16px;
  color: #f2fbff;
}

/* CARD */
.card-screen {
  overflow-y: auto;
  justify-content: flex-start;
  padding: 16px 14px 20px;
}

.card {
  z-index: 3;
  width: 100%;
  max-width: 410px;
  min-height: calc(100vh - 32px);
  padding: 16px 14px 18px;
  border: 1px solid rgba(80, 190, 255, .35);
  border-radius: 30px;
  background: rgba(2, 12, 30, .78);
  box-shadow: 0 0 45px rgba(0, 140, 255, .32);
  backdrop-filter: blur(14px);
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}

.brand img {
  width: 34px;
  height: 34px;
  object-fit: contain;
}

.brand b {
  display: block;
  letter-spacing: 4px;
  color: #36c4ff;
  font-size: 15px;
}

.brand small {
  display: block;
  color: #c8eeff;
  font-size: 11px;
}

.avatar {
  width: 104px;
  height: 104px;
  object-fit: cover;
  object-position: center 35%;
  border-radius: 50%;
  border: 2px solid #21b7ff;
  box-shadow: 0 0 25px rgba(0, 180, 255, .62);
  display: block;
  margin: 6px auto 10px;
}

.card h2 {
  margin: 0;
  text-align: center;
  font-size: 34px;
  line-height: 1;
}

.card h4 {
  margin: 5px 0 2px;
  color: #27baff;
  font-size: 19px;
  text-align: center;
}

.company {
  margin: 0 0 16px;
  color: #e2f6ff;
  font-size: 13.5px;
  text-align: center;
}

.button-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.action {
  min-height: 76px;
  border: 1px solid rgba(120, 205, 255, .28);
  border-radius: 16px;
  color: white;
  text-decoration: none;
  padding: 12px;
  display: flex;
  align-items: center;
  gap: 10px;
  text-align: left;
  font-family: inherit;
  cursor: pointer;
  box-shadow: inset 0 0 22px rgba(255,255,255,.03);
}

.action span {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  font-size: 22px;
  background: rgba(255,255,255,.13);
  flex-shrink: 0;
}

.action b {
  display: block;
  font-size: 16px;
  margin-bottom: 4px;
}

.action small {
  display: block;
  color: #e7f7ff;
  font-size: 11px;
  line-height: 1.2;
  word-break: break-word;
}

button.action {
  border: 1px solid rgba(120, 205, 255, .28);
}

.wa { background: linear-gradient(135deg, rgba(20,170,70,.92), rgba(12,105,45,.82)); }
.tel { background: linear-gradient(135deg, rgba(0,125,255,.92), rgba(5,65,160,.82)); }
.mail { background: linear-gradient(135deg, rgba(122,60,230,.90), rgba(60,35,160,.82)); }
.copy { background: linear-gradient(135deg, rgba(230,130,15,.94), rgba(160,70,0,.82)); }
.save { background: linear-gradient(135deg, rgba(22,160,85,.90), rgba(10,90,60,.82)); }
.share { background: linear-gradient(135deg, rgba(25,115,230,.90), rgba(15,50,145,.82)); }

.website-box,
.address-box {
  margin-top: 12px;
  border: 1px solid rgba(120, 205, 255, .32);
  border-radius: 18px;
  padding: 14px;
  display: flex;
  gap: 12px;
  align-items: center;
  background: rgba(255,255,255,.06);
  color: white;
  text-decoration: none;
}

.website-box span,
.address-box span {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(0,145,255,.22);
  font-size: 24px;
  flex-shrink: 0;
}

.website-box b,
.address-box b {
  color: #36c4ff;
}

.website-box p,
.address-box p {
  margin: 5px 0 0;
  line-height: 1.42;
}

footer {
  text-align: center;
  color: rgba(255,255,255,.55);
  margin-top: 16px;
  font-size: 12px;
}

#toast {
  z-index: 999;
  position: fixed;
  left: 50%;
  bottom: 22px;
  transform: translateX(-50%) translateY(20px);
  opacity: 0;
  transition: .25s;
  padding: 12px 18px;
  border-radius: 99px;
  background: rgba(0,0,0,.88);
  border: 1px solid rgba(255,255,255,.18);
  white-space: nowrap;
}

#toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

@keyframes loading {
  from { width: 0; }
  to { width: 100%; }
}

@keyframes logoSpin3D {
  0% { transform: rotateY(0deg) rotateX(5deg); }
  50% { transform: rotateY(180deg) rotateX(-5deg) scale(1.04); }
  100% { transform: rotateY(360deg) rotateX(5deg); }
}

@keyframes photoIn {
  from { opacity: 0; transform: translateY(35px); filter: blur(8px) drop-shadow(0 22px 24px rgba(0,0,0,.9)); }
  to { opacity: 1; transform: translateY(0); filter: blur(0) drop-shadow(0 22px 24px rgba(0,0,0,.9)); }
}

@media (max-height: 720px) {
  .card { padding-top: 12px; }
  .avatar { width: 88px; height: 88px; }
  .card h2 { font-size: 30px; }
  .action { min-height: 67px; padding: 10px; }
  .action b { font-size: 14px; }
}
