  /* Import a cute, playful font */
  /*   @import url('https://fonts.googleapis.com/css2?family=Bagel+Fat+One&display=swap'); */
  @import url('https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');

  /* Define CSS Variables for easy color changes */
  :root {
      --font-main: 'Poppins', sans-serif;
      --color-background: #000000;
      --color-text-light: #ffffff;
      --color-text-gray: #9ca3af;
      --color-text-dark-gray: #6b7280;
      /* Tailwind gray-500 */
      --color-pink-accent: rgba(139, 8, 190);
      /* Light pink */
      --color-pink-darker: rgb(71, 4, 97);
      /* Darker pink for hover */
      --color-blue-accent: rgb(159, 21, 214);
      /* Bright blue for BUY NOW */
      --color-dark-text: #1f2937;
      /* Dark text for contrast (e.g., message box) */
      --color-dark-gray-bg: #374151;
      /* Dark gray for marquee image background */
      --color-medium-gray-border: #555;
      /* Medium gray for borders */
      --color-error-background: rgb(173, 30, 230);
      /* Red for error (Tailwind red-500) */
      --color-error-text: #ffffff;
      /* White text for error */
  }

  /* Font Classes */
  .poppins-thin {
      font-family: "Poppins", sans-serif;
      font-weight: 100;
      font-style: normal;
  }

  .poppins-extralight {
      font-family: "Poppins", sans-serif;
      font-weight: 200;
      font-style: normal;
  }

  .poppins-light {
      font-family: "Poppins", sans-serif;
      font-weight: 300;
      font-style: normal;
  }

  .poppins-regular {
      font-family: "Poppins", sans-serif;
      font-weight: 400;
      font-style: normal;
  }

  .poppins-medium {
      font-family: "Poppins", sans-serif;
      font-weight: 500;
      font-style: normal;
  }

  .poppins-semibold {
      font-family: "Poppins", sans-serif;
      font-weight: 600;
      font-style: normal;
  }

  .poppins-bold {
      font-family: "Poppins", sans-serif;
      font-weight: 700;
      font-style: normal;
  }

  .poppins-extrabold {
      font-family: "Poppins", sans-serif;
      font-weight: 800;
      font-style: normal;
  }

  .poppins-black {
      font-family: "Poppins", sans-serif;
      font-weight: 900;
      font-style: normal;
  }

  .poppins-thin-italic {
      font-family: "Poppins", sans-serif;
      font-weight: 100;
      font-style: italic;
  }

  .poppins-extralight-italic {
      font-family: "Poppins", sans-serif;
      font-weight: 200;
      font-style: italic;
  }

  .poppins-light-italic {
      font-family: "Poppins", sans-serif;
      font-weight: 300;
      font-style: italic;
  }

  .poppins-regular-italic {
      font-family: "Poppins", sans-serif;
      font-weight: 400;
      font-style: italic;
  }

  .poppins-medium-italic {
      font-family: "Poppins", sans-serif;
      font-weight: 500;
      font-style: italic;
  }

  .poppins-semibold-italic {
      font-family: "Poppins", sans-serif;
      font-weight: 600;
      font-style: italic;
  }

  .poppins-bold-italic {
      font-family: "Poppins", sans-serif;
      font-weight: 700;
      font-style: italic;
  }

  .poppins-extrabold-italic {
      font-family: "Poppins", sans-serif;
      font-weight: 800;
      font-style: italic;
  }

  .poppins-black-italic {
      font-family: "Poppins", sans-serif;
      font-weight: 900;
      font-style: italic;
  }

  .byrd {
      font-family: 'byrd', sans-serif;
      /* Use the custom font */
      font-weight: 400;
      /* Adjust as needed */
      font-style: normal;
      /* Adjust as needed */
  }

  @font-face {
      font-family: 'byrd';
      /* Nama font lokal Anda */
      src: url('fonts/byrd-bold.ttf') format('truetype');

      font-style: normal;
      /* Sesuaikan dengan gaya font Anda */
      font-display: swap;
      /* Mengontrol bagaimana font ditampilkan saat memuat */
  }

  /* Base HTML and Body Styles */
  html {
      height: 100%;
      /* Ensure html takes full viewport height */
      scroll-behavior: auto;
      /* Let Lenis handle smooth scrolling */
  }

  /* Lenis Performance Optimizations */
  html.lenis {
      height: auto;
  }

  .lenis.lenis-smooth {
      scroll-behavior: auto;
  }

  .lenis.lenis-smooth [data-lenis-prevent] {
      overscroll-behavior: contain;
  }

  /* Optimize for smooth scrolling performance */
  * {
      will-change: auto;
  }

  .gallery-item {
      will-change: transform;
  }

  .gallery-item:hover {
      will-change: transform;
  }

  body {
      margin: 0;
      padding: 0;
      overflow-x: hidden;
      /* Prevent horizontal scroll due to marquee */
      font-family: var(--font-main);
      font-weight: 400;
      font-style: normal;
      background-color: var(--color-background);
      color: var(--color-blue-accent);
  }

  /* Hide scrollbars globally but keep scrolling enabled */
  html,
  body {
      -ms-overflow-style: none;
      /* IE and old Edge */
      scrollbar-width: none;
      /* Firefox */
  }

  html::-webkit-scrollbar,
  body::-webkit-scrollbar {
      width: 0;
      height: 0;
      /* WebKit */
  }

  /* Z-Index Stacking Context - Most Important Elements First */
  /* Layer 1: Base Elements (z-index: 1000-1100) */
  #customMessageBox {
      position: fixed;
      bottom: 20px;
      left: 50%;
      transform: translateX(-50%);
      background-color: var(--color-pink-accent);
      color: var(--color-dark-text);
      padding: 1rem 1.5rem;
      border-radius: 25px;
      box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
      z-index: 1000;
      font-size: 0.875rem;
      font-family: var(--font-main);
      opacity: 0;
      visibility: hidden;
      transition: opacity 0.3s ease, visibility 0.3s ease;
      display: flex;
      align-items: center;
  }

  #customMessageBox.show {
      opacity: 1;
      visibility: visible;
  }

  #customMessageBox .icon {
      margin-right: 0.75rem;
  }

  /* Layer 2: PLOK Text Effect (z-index: 9998) */
  .plok-text-effect {
      position: fixed;
      font-family: 'Nanum Pen Script', cursive;
      font-size: 2rem;
      font-weight: bold;
      color: white;
      text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
      pointer-events: none;
      z-index: 9998;
      opacity: 0;
      transform: translateY(20px) scale(0.8);
      animation: plokTextAppear 0.4s ease-out forwards;
  }

  /* Layer 3: Fullscreen Overlay (z-index: 10004) */
  .fullscreen-overlay {
      position: fixed;
      top: 0;
      left: 0;
      width: 100vw;
      height: 100vh;
      background-color: rgba(139, 8, 190, 0.3);
      background-image: url('images/ov.jpg');
      background-size: cover;
      background-position: center;
      background-repeat: no-repeat;
      mix-blend-mode: multiply;
      opacity: 1;
      z-index: 10004;
      pointer-events: none;
  }

  /* Layer 4: Content Elements (z-index: 10005) */
  .navbar-container {
      margin-bottom: 0;
      z-index: 10005 !important;
  }

  .hero-section {
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      height: 100vh;
      /* Full viewport height */
      width: 100%;
      padding: 2rem 1rem;
      /* Add some padding for content */
      box-sizing: border-box;
      text-align: center;
      position: relative;
      gap: 2rem;
      /* Add gap between elements */
      z-index: 10005;
      margin: 0;
  }

  .hero-section>div {
      margin: 0;
  }

  .hero-section header {
      margin: 0;
  }

  .hero-section .footer-icons {
      margin: 0;
  }

  .meme-gallery-section {
      width: 100%;
      padding: 40px 20px;
      min-height: 100vh;
      box-sizing: border-box;
      margin-bottom: 2rem;
      position: relative;
      z-index: 10005;
  }

  .footer-container {
      text-align: center;
      padding: 2rem;
      margin-top: 4rem;
      position: relative;
      z-index: 10005;
  }

  /* Layer 5: Back to Top Button (z-index: 10006) */
  #backToTopBtn {
      position: fixed;
      bottom: 0;
      right: 0;
      z-index: 10006 !important;
      width: 200px;
      height: 200px;
      border: none;
      outline: none;
      background: transparent;
      padding: 0;
      cursor: pointer;
      opacity: 0;
      visibility: hidden;
      transform: translateY(10px) scale(1);
      transition: opacity 0.25s ease, visibility 0.25s ease, transform 0.25s ease;
      box-shadow: none;
      /* no box glow */
  }

  #backToTopBtn.show {
      opacity: 1;
      visibility: visible;
      transform: translateY(0) scale(1);
  }

  /* Layer 6: Lightbox Modal (z-index: 10007) */
  .lightbox-modal {
      display: none;
      position: fixed;
      z-index: 10007;
      left: 0;
      top: 0;
      width: 100%;
      height: 100%;
      background-color: rgba(0, 0, 0, 0.9);
      -webkit-backdrop-filter: blur(5px);
      backdrop-filter: blur(5px);
  }

  /* Layer 7: Lightbox Controls (z-index: 10008) */
  .lightbox-close {
      position: absolute;
      top: 20px;
      right: 30px;
      color: white;
      font-size: 35px;
      font-weight: bold;
      font-family: var(--font-main);
      cursor: pointer;
      z-index: 10008;
      transition: all 0.3s ease;
  }

  .lightbox-prev,
  .lightbox-next {
      background: rgba(119, 95, 57, 0.8);
      color: white;
      border: none;
      border-radius: 50%;
      width: 50px;
      height: 50px;
      cursor: pointer;
      z-index: 10008;
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 18px;
      font-family: var(--font-main);
      transition: all 0.3s ease;
      pointer-events: auto;
  }

  /* Component Styles */
  .img-main {
      transition: scale 0.3s ease, filter 0.8s ease !important;
      animation: mainlogo 2s ease-in-out infinite;
  }

  .img-main:hover {
      scale: 1.03;
      filter: drop-shadow(0 0 50px rgba(139, 8, 190, 0.5));
      /* Reduced zoom effect on hover */
  }

  .hero-image {
      transition: all 0.5s ease;
  }

  .btn-image {
      transition: all 0.5s ease;
      opacity: 1;
  }

  .contract-button img {
      width: 200px;
      transition: background-color 0.4s ease, color 0.4s ease, box-shadow 0.8s ease, transform 0.3s ease, filter 0.8s ease;
  }

  /* Icon Link Styles */
  .icon-link {
      padding: 10px;
      font-size: 2rem;
      margin: 0 0.75rem;
      color: var(--color-text-light);
      display: flex;
      filter: brightness(100%);
      justify-content: center;
      align-items: center;
      width: 3.5rem;
      /* Circle size */
      height: 3.5rem;
      /* Circle size */
      border-radius: 50%;
      /* Perfect circle */
      /* Subtle shadow */
      transition: color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease, scale 0.5s ease !important;
      position: relative;
      /* Needed for pseudo-parallax effect */
      perspective: 1000px;
      /* For 3D effect */
  }

  .icon-link:hover {
      color: var(--color-text-light);
      /* Bright blue color on hover */
      transform: translateY(-4px) scale(1.05) rotateX(5deg);
      /* Reduced zoom, float, and slight 3D rotation effect */
  }

  .icon-link img {
      filter: grayscale(100%) brightness(500%);
      /* For 3D effect */
      scale: 1.02;
      transition: scale 0.5s ease !important;
  }

  .icon-link:hover img {
      scale: 0.98;
      /* Slightly larger icon on hover */
  }

  /* Token Detail Link Styles */
  .token-detail-link {
      color: var(--color-pink-accent);
      text-decoration: underline;
  }

  .token-detail-link:hover {
      color: var(--color-pink-darker);
  }

  /* Tooltip Styles */
  .tooltip:hover .img-main {
      scale: 1.03;
      filter: drop-shadow(0 0 10px rgba(139, 8, 190, 0.8));
      /* Reduced zoom effect on hover */
  }

  /* Footer Text Styles */
  .footer-text {
      margin: 0;
      color: #e2e8f0;
      font-family: 'Nanum Pen Script', cursive;
      font-size: 1.2rem;
      font-weight: 500;
      opacity: 0.8;
  }

  /* Back to Top Button Styles */
  @keyframes subtleBounceZoom {
      0% {
          transform: translateY(0) scale(1);
      }

      50% {
          transform: translateY(-2px) scale(1.02);
      }

      100% {
          transform: translateY(0) scale(1.01);
      }
  }

  /* inner images for swap + filter glow only on character */
  #backToTopBtn .up-img {
      position: absolute;
      inset: 0;
      width: 100%;
      height: 100%;
      object-fit: contain;
      transition: opacity 180ms ease, filter 250ms ease;
      will-change: opacity, filter;
      pointer-events: none;
      -webkit-user-select: none;
      user-select: none;
  }

  #backToTopBtn .up-img-hover {
      opacity: 0;
  }

  #backToTopBtn .up-img-default {
      opacity: 1;
  }

  #backToTopBtn:hover .up-img-default {
      opacity: 0;
      filter: none;
  }

  #backToTopBtn:hover .up-img-hover {
      opacity: 1;
      animation: subtleBounceZoom 350ms ease-out both;
      /* glow effect removed */
  }

  /* Lightbox Styles */
  .lightbox-content {
      position: relative;
      width: 100%;
      height: 100%;
      display: flex;
      align-items: center;
      justify-content: center;
  }

  .lightbox-close:hover {
      color: #775F39;
      transform: scale(1.05);
  }

  .lightbox-image-container {
      width: auto;
      height: auto;
      display: flex;
      align-items: center;
      justify-content: center;
      padding: 20px;
  }

  #lightboxImage {
      width: auto;
      height: auto;
      max-width: 90vw;
      max-height: 90vh;
      object-fit: contain;
      border-radius: 25px;
      box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  }

  .lightbox-nav {
      position: absolute;
      top: 50%;
      transform: translateY(-50%);
      width: 100%;
      display: flex;
      justify-content: space-between;
      padding: 0 20px;
      pointer-events: none;
  }

  .lightbox-prev:hover,
  .lightbox-next:hover {
      background: #775F39;
      transform: scale(1.05);
  }

  .lightbox-prev {
      left: 20px;
  }

  .lightbox-next {
      right: 20px;
  }

  /* Meme Gallery Styles - Persistent Masonry */
  .masonry-container {
      column-count: 3;
      column-gap: 20px;
      width: 100%;
      margin-bottom: 3rem;
  }

  .gallery-item {
      display: block;
      margin-bottom: 20px;
      break-inside: avoid;
      overflow: hidden;
      border-radius: 20px;
      box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
      transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
      background: rgba(255, 255, 255, 0.05);
      -webkit-backdrop-filter: blur(10px);
      backdrop-filter: blur(10px);
      border: 1px solid rgba(215, 180, 125, 0.3);
      position: relative;
  }

  /* True masonry with varied container heights - PERSISTENT */
  .gallery-item img {
      width: 100%;
      height: 100%;
      display: block;
      transition: all 0.4s ease;
      cursor: pointer;
      border-radius: 20px;
      object-fit: cover;
  }

  /* Consistent masonry heights using viewport units - SCREEN INDEPENDENT */
  .gallery-item:nth-child(1) {
      height: 35vh !important;
  }

  .gallery-item:nth-child(2) {
      height: 48vh !important;
  }

  .gallery-item:nth-child(3) {
      height: 40vh !important;
  }

  .gallery-item:nth-child(4) {
      height: 54vh !important;
  }

  .gallery-item:nth-child(5) {
      height: 43vh !important;
  }

  .gallery-item:nth-child(6) {
      height: 60vh !important;
  }

  .gallery-item:nth-child(7) {
      height: 33vh !important;
  }

  .gallery-item:nth-child(8) {
      height: 50vh !important;
  }

  .gallery-item:nth-child(9) {
      height: 42vh !important;
  }

  .gallery-item:nth-child(10) {
      height: 57vh !important;
  }

  .gallery-item:nth-child(11) {
      height: 38vh !important;
  }

  .gallery-item:nth-child(12) {
      height: 52vh !important;
  }

  .gallery-item:nth-child(13) {
      height: 46vh !important;
  }

  .gallery-item:nth-child(14) {
      height: 63vh !important;
  }

  .gallery-item:nth-child(15) {
      height: 33vh !important;
  }

  .gallery-item:nth-child(16) {
      height: 53vh !important;
  }

  .gallery-item:nth-child(17) {
      height: 38vh !important;
  }

  .gallery-item:nth-child(18) {
      height: 49vh !important;
  }

  /* Extended pattern for more items if needed */
  .gallery-item:nth-child(19) {
      height: 43vh !important;
  }

  .gallery-item:nth-child(20) {
      height: 56vh !important;
  }

  .gallery-item:nth-child(21) {
      height: 37vh !important;
  }

  .gallery-item:nth-child(22) {
      height: 53vh !important;
  }

  .gallery-item:nth-child(23) {
      height: 48vh !important;
  }

  .gallery-item:nth-child(24) {
      height: 34vh !important;
  }

  /* Masonry hover effects */
  .gallery-item:hover {
      border-color: rgba(215, 180, 125, 0.6);
      transform: translateY(-4px) scale(1.01);
      box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5), 0 0 20px rgba(215, 180, 125, 0.3);
  }

  .gallery-item:hover img {
      transform: scale(1.03);
      filter: brightness(1.05) contrast(1.05);
  }

  /* Masonry staggered animation */
  .gallery-item:nth-child(1) {
      animation-delay: 0.1s;
  }

  .gallery-item:nth-child(2) {
      animation-delay: 0.2s;
  }

  .gallery-item:nth-child(3) {
      animation-delay: 0.3s;
  }

  .gallery-item:nth-child(4) {
      animation-delay: 0.4s;
  }

  .gallery-item:nth-child(5) {
      animation-delay: 0.5s;
  }

  .gallery-item:nth-child(6) {
      animation-delay: 0.6s;
  }

  .gallery-item:nth-child(7) {
      animation-delay: 0.7s;
  }

  .gallery-item:nth-child(8) {
      animation-delay: 0.8s;
  }

  .gallery-item:nth-child(9) {
      animation-delay: 0.9s;
  }

  .gallery-item:nth-child(10) {
      animation-delay: 1.0s;
  }

  .gallery-item:nth-child(11) {
      animation-delay: 1.1s;
  }

  .gallery-item:nth-child(12) {
      animation-delay: 1.2s;
  }

  /* Animations */
  @keyframes mainlogo {
      0% {
          transform: translateY(0px);
      }

      50% {
          transform: translateY(-10px);
      }

      100% {
          transform: translateY(0px);
      }
  }

  @keyframes fadeIn {
      from {
          opacity: 0;
          transform: translateY(10px);
      }

      to {
          opacity: 1;
          transform: translateY(0);
      }
  }

  @keyframes plokTextAppear {
      0% {
          opacity: 0;
          transform: translateY(20px) scale(0.8);
      }

      20% {
          opacity: 0.5;
          transform: translateY(0) scale(1.1);
      }

      80% {
          opacity: 0.5;
          transform: translateY(-10px) scale(1);
      }

      100% {
          opacity: 0;
          transform: translateY(-30px) scale(0.9);
      }
  }

  @keyframes masonryFadeIn {
      0% {
          opacity: 0;
          transform: translateY(30px) scale(0.9);
      }

      100% {
          opacity: 1;
          transform: translateY(0) scale(1);
      }
  }

  .fade-in-image {
      opacity: 0;
      animation: fadeIn 1s ease-out forwards;
  }

  .main-logo-fade {
      animation-delay: 0.3s;
  }

  .gallery-item {
      animation: masonryFadeIn 0.6s ease-out forwards;
      opacity: 0;
  }

  /* Responsive Design with Consistent Viewport Scaling */

  /* Large screens (Desktop/Laptop) - Standard viewport scaling */
  @media (min-width: 1200px) {
      .masonry-container {
          column-count: 3;
          column-gap: 20px;
      }
  }

  /* Medium screens (Laptop) - Maintain same proportions */
  @media (max-width: 1199px) and (min-width: 1025px) {
      .masonry-container {
          column-count: 3;
          column-gap: 18px;
      }
  }

  /* Small laptop screens - Consistent scaling */
  @media (max-width: 1024px) and (min-width: 769px) {
      .masonry-container {
          column-count: 3;
          column-gap: 15px;
      }
  }

  /* Tablet screens - Adjust columns but maintain proportions */
  @media (max-width: 768px) {
      .meme-gallery-section {
          padding: 2rem 1rem;
      }

      .masonry-container {
          column-count: 2;
          column-gap: 15px;
      }

      .gallery-item {
          margin-bottom: 15px;
          border-radius: 15px;
      }

      .gallery-item img {
          border-radius: 15px;
      }

      .plok-text-effect {
          font-size: 1.5rem;
      }
  }

  /* Mobile screens - Single column but maintain viewport proportions */
  @media (max-width: 480px) {
      .masonry-container {
          column-count: 1;
          column-gap: 10px;
      }

      .gallery-item {
          margin-bottom: 12px;
          border-radius: 12px;
      }

      .gallery-item img {
          border-radius: 12px;
      }

      .footer-text {
          font-size: 1rem;
      }

      #backToTopBtn {
          bottom: 0;
          right: 0;
          width: 150px;
          height: 150px;
      }

      .plok-text-effect {
          font-size: 1.2rem;
      }
  }

  /* Ultra-wide screens - Maintain proportions */
  @media (min-width: 1920px) {
      .masonry-container {
          column-count: 4;
          column-gap: 25px;
      }
  }