* {
  box-sizing: border-box;
}

:root {
  color-scheme: dark;
  --bg: #051F20;
  --panel: #163832;
  --panel-hover: #235347;
  --border: rgba(142, 182, 155, .28);
  --text: #DAF1DE;
  --muted: #8EB69B;
  --accent: #8EB69B;
}

html {
  scroll-behavior: smooth;
  min-height: 100%;
  background-color: #000000;
  overscroll-behavior-y: none;
}

/* BACKGROUND CAHAYA 3D (DUAL SPOTLIGHT GLOW) */
body {
  margin: 0;
  min-height: 100vh;
  position: relative;
  background-color: #000000;

  /* Dual Spotlight Background Glow */
  background:
    radial-gradient(1600px at 85% 15%,
      rgba(0, 176, 139, 0.45) 0%,
      rgba(5, 81, 71, 0.2) 35%,
      rgba(0, 0, 0, 0) 70%),
    radial-gradient(850px 850px at 3% 85%,
      rgba(0, 176, 139, 0.35) 0%,
      rgba(5, 81, 71, 0.15) 35%,
      rgba(0, 0, 0, 0) 70%),
    #000000;
  background-attachment: fixed;

  color: #daf1de;
  font-family: "DM Sans", Arial, sans-serif;
  line-height: 1.5;
  overflow-x: hidden;
  overscroll-behavior-y: none;
}

/* Tekstur Pasir / Film Grain Super Halus */
body::before {
  content: "";
  position: fixed;
  top: -100px;
  left: -100px;
  width: calc(100vw + 200px);
  height: calc(100vh + 200px);
  pointer-events: none;
  z-index: 1;

  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='fineGrain'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='3.5' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23fineGrain)'/%3E%3C/svg%3E");
  mix-blend-mode: overlay;
  opacity: 0.35;
}

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

.page {
  position: relative;
  z-index: 2;
  width: min(100% - 32px, 790px);
  margin: 0 auto 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* AREA PROFIL RATA TENGAH PRESISI */
.hero,
.profile-section,
.profile {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding-top: 40px;
  padding-bottom: 20px;
  margin: 0 auto;
}

/* Pola Dot Grid & Gelombang Cahaya Diagonal (Sudah disempurnakan untuk iOS Safari) */
.hero::before,
.profile-section::before,
.profile::before {
  content: "";
  position: absolute;
  top: -40px;
  left: 50%;
  transform: translateX(-50%);
  width: 100vw;
  height: calc(100% + 80px);
  pointer-events: none;
  z-index: 0;

  background:
    radial-gradient(rgba(255, 255, 255, 0.15) 1px, transparent 1px),
    radial-gradient(ellipse 80% 50% at 30% 40%, rgba(0, 176, 139, 0.28) 0%, rgba(5, 81, 71, 0.1) 50%, transparent 80%),
    radial-gradient(ellipse 60% 40% at 70% 60%, rgba(0, 176, 139, 0.2) 0%, transparent 70%);

  background-size: 24px 24px, 100% 100%, 100% 100%;

  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 50% 45%, black 40%, transparent 95%);
  mask-image: radial-gradient(ellipse 80% 70% at 50% 45%, black 40%, transparent 95%);
}

.hero>*,
.profile-section>*,
.profile>* {
  position: relative;
  z-index: 2;
}

/* FOTO PROFIL PASTI BULAT & DI TENGAH */
.avatar-wrapper,
.avatar {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 0 auto 10px auto !important;
}

.avatar,
img.avatar,
.avatar-wrapper img {
  width: 90px !important;
  height: 90px !important;
  border-radius: 50% !important;
  object-fit: cover !important;
  object-position: center;
  border: 3px solid var(--accent) !important;
  background: #163832;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

h1 {
  margin: 8px auto 2px auto;
  font-size: 25px;
  letter-spacing: -.6px;
  text-align: center;
}

.bio {
  color: #8EB69B;
  margin: 0 auto;
  font-size: 14px;
  text-align: center;
}

.socials {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  margin: 18px auto 24px auto;
}

.socials a {
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;

  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);

  transition: all 0.25s ease;
}

.socials a.soc-yt:hover {
  background: #FF0000;
  border-color: #FF0000;
  color: #FFFFFF;
  box-shadow: 0 4px 14px rgba(255, 0, 0, 0.4);
}

.socials a.soc-tt:hover {
  background: #000000;
  border-color: #25F4EE;
  color: #25F4EE;
  box-shadow: 0 4px 14px rgba(37, 244, 238, 0.3);
}

.socials a.soc-ig:hover {
  background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
  border-color: #dc2743;
  color: #FFFFFF;
  box-shadow: 0 4px 14px rgba(220, 39, 67, 0.4);
}

.socials a.soc-dc:hover {
  background: #5865F2;
  border-color: #5865F2;
  color: #FFFFFF;
  box-shadow: 0 4px 14px rgba(88, 101, 242, 0.4);
}

.socials a.soc-gh:hover {
  background: #24292e;
  border-color: #8EB69B;
  color: #FFFFFF;
  box-shadow: 0 4px 14px rgba(255, 255, 255, 0.2);
}

.socials a:hover {
  transform: translateY(-3px);
}

/* LINK CARDS */
.links {
  width: 100%;
  display: grid;
  gap: 10px;
}

.link-card {
  min-height: 69px;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 11px 16px;
  border: 1px solid rgba(142, 182, 155, .25);
  border-radius: 16px;
  background: linear-gradient(110deg, #0B2B26, #163832);
  transition: border-color 0.4s ease, background 0.4s ease, box-shadow 0.4s ease;
  cursor: pointer;
  scroll-margin-top: 40px;
}

.icon {
  width: 45px;
  height: 45px;
  border-radius: 12px;
  flex: 0 0 45px;
  display: grid;
  place-items: center;
  font-size: 24px;
  font-weight: 700;
  color: white;
}

.youtube {
  background: #ff0000;
  color: #ffffff;
}

.discord {
  background: #5865f2;
  color: #ffffff;
}

.tiktok {
  background: #000000;
  color: #ffffff;
  border: 1px solid var(--border);
}

.instagram {
  background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
  color: #ffffff;
}

.github {
  background: #181717;
  color: #ffffff;
  border: 1px solid var(--border);
}

.product {
  background: #235347;
  color: #daf1de;
  border: 1px solid var(--border);
}

.link-copy {
  display: grid;
  gap: 1px;
  flex: 1;
  text-align: left;
}

.link-copy strong {
  font-size: 14px;
  font-weight: 600;
}

.link-copy small {
  font-size: 12px;
  color: var(--muted);
}

.arrow {
  color: #8EB69B;
  font-size: 27px;
  line-height: 1;
}

/* PRODUCTS SECTION */
.products {
  width: 100%;
  margin-top: 58px;
}

.section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.section-heading>div {
  display: flex;
  align-items: center;
  gap: 10px;
}

.section-heading h2 {
  margin: 0;
  font-size: 21px;
  letter-spacing: -.4px;
}

.section-mark {
  color: var(--accent);
  font-size: 24px;
}

.section-heading>a {
  color: #8EB69B;
  font-size: 12px;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.product-card {
  min-width: 0;
  padding: 9px;
  border-radius: 15px;
  border: 1px solid rgba(142, 182, 155, .25);
  background: linear-gradient(145deg, #163832, #0B2B26);
  transition: border-color 0.4s ease, background 0.4s ease, box-shadow 0.4s ease;
  cursor: pointer;
}

.product-art {
  height: 126px;
  border-radius: 10px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 4px;
  text-align: center;
  padding: 8px;
  border: 1px solid rgba(142, 182, 155, .35);
}

.product-art span {
  font-size: 25px;
  font-weight: 700;
}

.product-art b {
  font-size: 11px;
  letter-spacing: 1.2px;
}

.product-art small {
  font-size: 10px;
  opacity: .8;
}

.art-anki {
  background: linear-gradient(135deg, #235347, #0B2B26 60%, #163832);
}

.art-node {
  background: radial-gradient(circle at 50% 40%, #235347, #051F20 70%);
}

.art-minecraft {
  background: linear-gradient(145deg, #8EB69B, #235347 55%, #0B2B26);
  color: #fff;
}

.product-card h3 {
  font-size: 13px;
  margin: 11px 1px 5px;
  min-height: 36px;
}

.product-card p {
  color: var(--muted);
  font-size: 11px;
  margin: 0 1px 11px;
  min-height: 33px;
}

.price {
  display: block;
  color: #DAF1DE;
  font-size: 14px;
  margin: 0 1px 12px;
}

.buy {
  display: block;
  text-align: center;
  border-radius: 9px;
  padding: 10px 6px;
  background: #235347;
  color: #DAF1DE;
  font-size: 12px;
  font-weight: 600;
  transition: background 0.25s ease, color 0.25s ease;
}

.buy:hover {
  background: #8EB69B;
  color: #051F20;
}

.support {
  width: 100%;
  margin-top: 22px;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 17px;
  border: 1px solid rgba(142, 182, 155, .25);
  border-radius: 15px;
  background: #163832;
  transition: border-color 0.4s ease, background 0.4s ease, box-shadow 0.4s ease;
  cursor: pointer;
}

footer {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 28px 0 4px;
  color: #8EB69B;
  font-size: 11px;
}

.brand {
  color: #DAF1DE;
  font-size: 19px;
  font-weight: 700;
}

/* ANIMASI REVEAL & ULTRA SMOOTH FLOAT */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.show {
  opacity: 1;
  transform: translateY(0);
}

.reveal:nth-child(2) {
  transition-delay: 0.06s;
}

.reveal:nth-child(3) {
  transition-delay: 0.12s;
}

.reveal:nth-child(4) {
  transition-delay: 0.18s;
}

.reveal:nth-child(5) {
  transition-delay: 0.24s;
}

@keyframes ultraSmoothFloat {
  0% {
    transform: translateY(-4px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.25);
  }

  50% {
    transform: translateY(-10px);
    box-shadow: 0 16px 28px rgba(142, 182, 155, 0.22);
  }

  100% {
    transform: translateY(-4px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.25);
  }
}

.link-card:hover,
.product-card:hover,
.support:hover {
  border-color: #8EB69B;
  background: var(--panel-hover);
  animation: ultraSmoothFloat 2.6s ease-in-out infinite;
}

.link-card.selected,
.product-card.selected,
.support.selected {
  animation: ultraSmoothFloat 2.6s ease-in-out infinite !important;
  border-color: #8EB69B !important;
  background: var(--panel-hover) !important;
}

/* MOBILE RESPONSIVE */
@media (max-width: 620px) {
  .page {
    width: min(100% - 22px, 430px);
  }

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

  .product-card {
    display: grid;
    grid-template-columns: 112px 1fr;
    column-gap: 12px;
  }

  .product-art {
    height: 116px;
    grid-row: span 4;
  }

  .buy {
    grid-column: 2;
  }
}

/* Styling Gambar Banner Produk */
.product-art {
  padding: 0 !important;
  overflow: hidden;
}

.product-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Styling Khusus Link Contact Me di Footer */
.brand.contact-link {
  cursor: pointer;
  text-decoration: none;
  color: #DAF1DE;
  transition: opacity 0.25s ease;
}

.brand.contact-link:hover {
  opacity: 0.8;
}

/* Styling Link Teks Footer */
.footer-link-text {
  color: inherit;
  text-decoration: none;
  cursor: pointer;
  transition: opacity 0.25s ease;
}

.footer-link-text:hover {
  opacity: 0.8;
}