  /* 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 */
  }

  .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 */
  }

  /* Custom styles for the page */
  html {
      height: 100%;
      /* Ensure html takes full viewport height */
  }

  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 */
  }

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

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

  }

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

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

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

  /* Portal Animation Styles */
  .portal-wrapper {
      display: inline-block;
    /* Mask removed as per request */
        animation: blurFadeEnter 1.5s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
      opacity: 0;
      /* Starts invisible */
  }

  .portal-stabilizer {
      width: 100%;
      height: 100%;
      display: flex;
      justify-content: center;
      align-items: center;
    position: relative;
        /* Anchor for pseudo-element */
        /* Counter spin removed */
    }
    
    /* Blur mask overlay */
    .portal-stabilizer::after {
        content: '';
        position: absolute;
        bottom: 0;
        left: 0;
        width: 100%;
        height: 80%;
        /* Cover bottom area */
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
        mask-image: linear-gradient(to bottom, transparent 20%, black 100%);
        -webkit-mask-image: linear-gradient(to bottom, transparent 20%, black 100%);
        pointer-events: none;
        z-index: 10;
  }

  @keyframes blurFadeEnter {
      0% {
        transform: scale(0.8);
          filter: blur(20px);
          opacity: 0;
      }

      100% {
        transform: scale(1);
          filter: blur(0px);
          opacity: 1;
      }
  }


  /* Hero Section Styling */
  .hero-section {
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      /* Center content vertically in hero */
      min-height: 100vh;
      /* Make hero section fill the viewport height */
      width: 100%;
      padding: 2rem 1rem;
      /* Add padding for small screens */
      box-sizing: border-box;
      /* Include padding in element's total width and height */
      text-align: center;
      /* Center text within hero */
  }

  /* 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(-8px) scale(1.15) rotateX(10deg);
      /* Zoom, float, and slight 3D rotation effect */

  }

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

  .icon-link:hover img {

      scale: 0.9;
      /* 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);
  }

  /* Fade-in animation for images */
  @keyframes fadeIn {
      from {
          opacity: 0;
          transform: translateY(10px);
      }

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

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

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

  /* Effect for "BUY NOW" button (enhanced) */
  .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;
  }

  .contract-button:hover img {

      filter: drop-shadow(0 5px 30px rgba(215, 180, 125, 0.3));
      transform: translateY(-4px) scale(1.05);
      /* Slight lift and zoom with glow */
  }

  /* Interactive hover effects */
  .hero-image {
      transition: all 0.5s ease;
      opacity: 1;
      cursor: pointer;
    -webkit-mask-image: linear-gradient(to bottom, black 0%, transparent 95%);
        mask-image: linear-gradient(to bottom, black 0%, transparent 95%);
        filter: blur(0px);
        /* Base state for clean rendering */
  }

  .hero-image:hover {
    filter: drop-shadow(0 5px 5px rgba(239, 239, 239, 0.3)) brightness(1.2);
      transform: translateY(-4px) scale(1.05);
      /* Same glow and scale effect as button with brightness */
  }

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



  /* Light effect overlay */
  .light-effect-overlay {
      position: fixed;
      top: 0;
      right: -50px;
      width: 100%;
      height: 100%;
      background-image: url('images/hero/cahay.png');
      background-size: cover;
      background-position: right center;
      background-repeat: no-repeat;
      opacity: 0;
      visibility: hidden;
      transition: opacity 0.8s ease, visibility 0.8s ease;
      z-index: 999;
      pointer-events: none;
      mix-blend-mode: screen;
      filter: brightness(1.2) contrast(1.1);
      transform: scaleX(-1);
  }

  .light-effect-overlay.show {
      opacity: 1;
      visibility: visible;
  }

  /* Hover effects for button - removed content: url() to prevent glitch */
  /* These effects are now handled by JavaScript in index.html */

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


  /* Base styles for footer after other content */
  footer {
      width: 100%;
      max-width: 1200px;
      margin: 0 auto;
      text-align: center;
      padding: 3rem 2rem;
      margin-top: 4rem;
      margin-bottom: 2rem;
      /* Add top margin for separation */
      font-family: var(--font-main);
      font-size: 2.5rem;
      font-weight: 400;
  }

  footer p {
      margin: 0;
      color: var(--color-text-light);
      opacity: 0.8;
      transition: opacity 0.3s ease;
  }

  footer p:hover {
      opacity: 1;
  }

  /* Back To Top Button as interactive image (glow only on character) */
  /* Back To Top Button as SVG */
  #backToTopBtn {
      position: fixed;
    bottom: 40px;
        right: 40px;
      z-index: 1100;
    width: 50px;
        height: 50px;
      border: none;
      outline: none;
    background: rgba(255, 255, 255, 0.1);
        backdrop-filter: blur(5px);
        border-radius: 50%;
      padding: 0;
      cursor: pointer;
    display: flex;
        justify-content: center;
        align-items: center;
      opacity: 0;
      visibility: hidden;
    transform: translateY(10px);
        transition: all 0.3s ease;
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
        color: white;
  }

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

  @keyframes subtleBounceZoom {
      0% {
          transform: translateY(0) scale(1);
      }

      50% {
          transform: translateY(-4px) scale(1.06);
      }

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

  /* inner images for swap + filter glow only on character */
  #backToTopBtn:hover {
      background: rgba(255, 255, 255, 0.2);
      transform: translateY(-5px);
  }

  #backToTopBtn svg {
      width: 24px;
      height: 24px;
      stroke-width: 3px;
      /* Ensure thick arrow */
  }

  /* Custom Message Box Styles */
  #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: 0.5rem;
      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;
  }



  /* Meme Gallery Section - Masonry Layout */
  .meme-gallery-section {
      width: 100%;
      padding: 40px 20px;
      min-height: 100vh;
      box-sizing: border-box;
      margin-bottom: 2rem;
  }

  .masonry-container {
      column-count: 3;
    column-gap: 24px;
      width: 100%;
      margin-bottom: 3rem;
  }

  .gallery-item {
      display: block;
    margin-bottom: 24px;
      break-inside: avoid;
      overflow: hidden;
      border-radius: 15px;
      box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
      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(255, 255, 255, 0.1);
  }

  /* Natural heights for masonry; no fixed heights per item */
  .gallery-item img {
      width: 100%;
      height: auto;
      display: block;
      transition: transform 0.3s ease;
      cursor: pointer;
  }

  .gallery-item:hover img {
      transform: scale(1.05);
      /* Zoom hanya pada gambar, bukan card */
  }

  /* Lenis CSS */
  html.lenis,
  html.lenis body {
      height: auto;
  }

  /* Scroll Animation Classes */
  .scroll-hidden {
      opacity: 0;
      filter: blur(10px);
      transform: scale(0.95);
      transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  }

  .scroll-visible {
      opacity: 1;
      filter: blur(0);
      transform: scale(1);
  }
  .lenis.lenis-smooth {
      scroll-behavior: auto !important;
  }

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

  .lenis.lenis-stopped {
      overflow: hidden;
  }

  .lenis.lenis-scrolling iframe {
      pointer-events: none;
  }

  /* Lightbox Modal Styles */
  .lightbox-modal {
      display: none;
      position: fixed;
      z-index: 2000;
      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);
  }

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

  .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: 2001;
      transition: all 0.3s ease;
  }

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

  .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: 10px;
      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,
  .lightbox-next {
    background: white;
        color: black;
      border: none;
      border-radius: 50%;
      width: 50px;
      height: 50px;
      cursor: pointer;
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 18px;
      font-family: var(--font-main);
      transition: all 0.3s ease;
      pointer-events: auto;
  }

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

  .lightbox-prev {
      left: 20px;
  }

  .lightbox-next {
      right: 20px;
  }







  /* Responsive design for gallery */
  @media (max-width: 768px) {
      .meme-gallery-section {
          padding: 2rem 1rem;
      }

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

  @media (max-width: 480px) {
      .masonry-container {
          column-count: 1;
          column-gap: 10px;
      }

      footer {
          padding: 2rem 1rem;
          margin-top: 2rem;
          font-size: 1.8rem;
      }
  }