*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
html {
  scroll-behavior: smooth;
}

:root {
  --bg: #ffffff;
  --bg-2: #c2cde1;
  --bg-soft: #f4f7fb;
  --bg-4: #eef1f7;
  --main: #0097b2;
  --main-light: #2db8d0;
  --main-xlight: #e0f6fa;
  --main-dark: #006f85;
  --main-xdark: #004d5e;
  --navy: #0d1b2a;
  --navy-2: #0f2236;
  --text: #000000;
  --text-muted: #4d5e78;
  --text-soft: #7a8fa8;
  --white: #ffffff;
  --ease: 0.38s cubic-bezier(0.4, 0, 0.2, 1);
}

body {
  font-family: "Jost", sans-serif;
  background: var(--bg-soft);
  color: var(--text);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  overflow-x: hidden;
}

/* ── BG DECORATION ── */
.bg-deco {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}
.bg-deco::before {
  content: "";
  position: absolute;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgba(0, 151, 178, 0.1) 0%,
    transparent 70%
  );
  top: -200px;
  left: -150px;
}
.bg-deco::after {
  content: "";
  position: absolute;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgba(194, 205, 225, 0.35) 0%,
    transparent 70%
  );
  bottom: -100px;
  right: -100px;
}
.bg-deco-mid {
  position: absolute;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  border: 1px solid rgba(0, 151, 178, 0.08);
  top: 40%;
  left: 50%;
  transform: translate(-50%, -50%);
}

/* ── WRAPPER ── */
.wrapper {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 480px;
  padding: 48px 24px 64px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
}

/* ── PROFILE ── */
.profile {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  margin-bottom: 32px;
}

.logo-ring {
  position: relative;
  width: 96px;
  height: 96px;
  margin-bottom: 20px;
}
.logo-ring::before {
  content: "";
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  background: conic-gradient(
    var(--main) 0%,
    var(--main-light) 35%,
    var(--bg-2) 60%,
    var(--main) 100%
  );
  animation: spin 6s linear infinite;
}
.logo-ring::after {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: 50%;
  background: var(--bg-soft);
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.logo-inner {
  position: absolute;
  inset: 4px;
  z-index: 1;
  border-radius: 50%;
  background: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.logo-inner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

.profile-name {
  font-family: "Cormorant Garamond", serif;
  font-size: 1.75rem;
  font-weight: 600;
  color: var(--text);
  line-height: 1.15;
  margin-bottom: 2px;
}
.profile-name span {
  color: var(--main);
}

.profile-handle {
  font-size: 0.78rem;
  color: var(--text-soft);
  letter-spacing: 0.08em;
  margin-bottom: 14px;
  font-weight: 400;
}

.profile-desc {
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.65;
  font-weight: 300;
  max-width: 320px;
}
.profile-desc strong {
  color: var(--main-dark);
  font-weight: 500;
}

/* ── DIVIDER ── */
.section-divider {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 8px 0 20px;
}
.section-divider::before,
.section-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--bg-2), transparent);
}
.section-divider-label {
  font-size: 0.68rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-soft);
  font-weight: 500;
  white-space: nowrap;
}

/* ── LINKS ── */
.links-group {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 8px;
}

/* Base link card */
.link-card {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 18px;
  border-radius: 16px;
  text-decoration: none;
  border: 1.5px solid transparent;
  transition: var(--ease);
  position: relative;
  overflow: hidden;
  cursor: pointer;
}
.link-card::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity var(--ease);
}
.link-card:hover {
  transform: translateY(-3px);
}
.link-card:hover::before {
  opacity: 1;
}
.link-card:active {
  transform: translateY(0) scale(0.98);
}

/* Icon */
.link-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
  position: relative;
  z-index: 1;
  transition: var(--ease);
}
.link-card:hover .link-icon {
  transform: scale(1.08);
}

.link-text {
  flex: 1;
  position: relative;
  z-index: 1;
}
.link-title {
  font-size: 0.92rem;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: 0.01em;
}
.link-sub {
  font-size: 0.75rem;
  font-weight: 300;
  margin-top: 2px;
  opacity: 0.7;
}
.link-arrow {
  position: relative;
  z-index: 1;
  font-size: 1rem;
  opacity: 0.4;
  transition: var(--ease);
}
.link-card:hover .link-arrow {
  opacity: 0.8;
  transform: translateX(3px);
}

/* ─ WhatsApp ─ */
.link-wa {
  background: #f0fdf4;
  border-color: #bbf7d0;
  color: #15803d;
}
.link-wa::before {
  background: linear-gradient(135deg, #dcfce7, #bbf7d0);
}
.link-wa .link-icon {
  background: #22c55e1a;
  color: #16a34a;
}
.link-wa:hover {
  border-color: #22c55e;
  box-shadow: 0 8px 32px rgba(34, 197, 94, 0.18);
}

/* ─ Instagram ─ */
.link-ig {
  background: #fdf4ff;
  border-color: #e9d5ff;
  color: #7e22ce;
}
.link-ig::before {
  background: linear-gradient(135deg, #fae8ff, #e9d5ff);
}
.link-ig .link-icon {
  background: linear-gradient(135deg, #f9a8d4, #c084fc, #818cf8);
  color: var(--white);
}
.link-ig:hover {
  border-color: #a855f7;
  box-shadow: 0 8px 32px rgba(168, 85, 247, 0.18);
}

/* ─ Email ─ */
.link-email {
  background: #fffbeb;
  border-color: #fde68a;
  color: #92400e;
}
.link-email::before {
  background: linear-gradient(135deg, #fef3c7, #fde68a);
}
.link-email .link-icon {
  background: #f59e0b1a;
  color: #d97706;
}
.link-email:hover {
  border-color: #f59e0b;
  box-shadow: 0 8px 32px rgba(245, 158, 11, 0.18);
}

/* ─ Website ─ */
.link-web {
  background: #eff6ff;
  border-color: #bfdbfe;
  color: #1e40af;
}
.link-web::before {
  background: linear-gradient(135deg, #dbeafe, #bfdbfe);
}
.link-web .link-icon {
  background: #3b82f61a;
  color: #2563eb;
}
.link-web:hover {
  border-color: #3b82f6;
  box-shadow: 0 8px 32px rgba(59, 130, 246, 0.18);
}

/* ─ Product card (Undangan Digital) ─ */
.link-product {
  background: var(--navy);
  border-color: rgba(0, 151, 178, 0.3);
  color: var(--white);
  padding: 18px 20px;
  border-radius: 20px;
}
.link-product::before {
  background: linear-gradient(
    135deg,
    rgba(0, 151, 178, 0.15),
    rgba(45, 184, 208, 0.08)
  );
}
.link-product .link-icon {
  background: rgba(0, 151, 178, 0.2);
  color: var(--main-light);
  width: 48px;
  height: 48px;
  border-radius: 14px;
  font-size: 1.3rem;
}
.link-product .link-title {
  color: var(--white);
  font-size: 1rem;
}
.link-product .link-sub {
  color: rgba(255, 255, 255, 0.5);
}
.link-product:hover {
  border-color: var(--main);
  box-shadow: 0 12px 40px rgba(0, 151, 178, 0.28);
}
.link-product .link-arrow {
  color: var(--main-light);
}

/* Product badge */
.prod-badge {
  position: absolute;
  top: 12px;
  right: 48px;
  background: var(--main);
  color: var(--white);
  font-size: 0.6rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 3px 9px;
  border-radius: 100px;
}

/* ─ Other product ─ */
.link-product-2 {
  background: linear-gradient(135deg, #0f2236, #1a3550);
  border-color: rgba(194, 205, 225, 0.15);
  color: var(--white);
  padding: 18px 20px;
  border-radius: 20px;
}
.link-product-2::before {
  background: linear-gradient(135deg, rgba(194, 205, 225, 0.08), transparent);
}
.link-product-2 .link-icon {
  background: rgba(194, 205, 225, 0.15);
  color: var(--bg-2);
  width: 48px;
  height: 48px;
  border-radius: 14px;
  font-size: 1.3rem;
}
.link-product-2 .link-title {
  color: var(--white);
  font-size: 1rem;
}
.link-product-2 .link-sub {
  color: rgba(255, 255, 255, 0.45);
}
.link-product-2:hover {
  border-color: rgba(194, 205, 225, 0.45);
  box-shadow: 0 12px 40px rgba(13, 27, 42, 0.4);
}
.link-product-2 .link-arrow {
  color: rgba(255, 255, 255, 0.4);
}

/* ── FOOTER ── */
.page-footer {
  margin-top: 40px;
  text-align: center;
}
.footer-brand {
  font-family: "Cormorant Garamond", serif;
  font-size: 1rem;
  font-weight: 500;
  color: var(--text-muted);
  margin-bottom: 6px;
}
.footer-brand span {
  color: var(--main);
  font-weight: 600;
}
.footer-copy {
  font-size: 0.72rem;
  color: var(--text-soft);
  font-weight: 300;
}

/* ── ENTER ANIMATION ── */
.profile,
.section-divider,
.links-group,
.page-footer {
  animation: fadeUp 0.55s both;
}
.links-group:nth-child(1) {
  animation-delay: 0.05s;
}
.links-group:nth-child(2) {
  animation-delay: 0.1s;
}
.links-group:nth-child(3) {
  animation-delay: 0.15s;
}
.section-divider:nth-of-type(1) {
  animation-delay: 0.08s;
}
.section-divider:nth-of-type(2) {
  animation-delay: 0.13s;
}
.page-footer {
  animation-delay: 0.2s;
}
.link-card:nth-child(1) {
  animation: fadeUp 0.5s 0.05s both;
}
.link-card:nth-child(2) {
  animation: fadeUp 0.5s 0.1s both;
}
.link-card:nth-child(3) {
  animation: fadeUp 0.5s 0.15s both;
}
.link-card:nth-child(4) {
  animation: fadeUp 0.5s 0.2s both;
}

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

/* ── RESPONSIVE ── */
@media (max-width: 520px) {
  .wrapper {
    padding: 40px 20px 56px;
  }
  .profile-name {
    font-size: 1.5rem;
  }
}
