* {
  margin:0;
  padding:0;
}

@font-face {
  font-family: 'CustomFont';
  src: url('assets/font1.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
}

html, body {
  height: 100%;
}
body {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  background-color: #000000;
  cursor: none; /* Hide default cursor */
}
 .notice {
      width: fit-content;
      z-index: 1;
     color: #fff;
   font-family: sans-serif;
   font-size: 1.5rem;
       pointer-events: none;

    }
    #hero_bg {
      position: absolute;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      overflow: hidden;
      z-index: 0; /* Ensure the background is behind other content */
    }
    canvas{  display:block; width:calc(100vw);height:100vh;}
    
    .svg-overlay {
      position: absolute;
      top: 50%;
      left: 50%;
      transform: translate(-50%, -50%);
      width: 90%;
      height: 90%;
      z-index: 10;
      pointer-events: none; /* Allows clicks to pass through to the canvas */
    }
    
    .svg-overlay img {
      width: 100%;
      height: 100%;
      object-fit: contain; /* Ensures the image fits within the container */
    }
    
    /* Custom white square cursor */
    .custom-cursor {
      position: fixed;
      width: 12px;
      height: 12px;
      background-color: #ffffff;
      pointer-events: none;
      z-index: 9999;
      transition: transform 0.1s ease;
    }
    
    /* Moving banner */
    .moving-banner {
      position: fixed;
      top: 0;
      left: 0;
      width: 100%;
      height: 60px;
      background: #000000;
      border: 2px solid #ffffff;
      z-index: 20;
      display: flex;
      align-items: center;
      justify-content: flex-start;
      font-family: 'CustomFont', 'Arial', sans-serif;
      font-size: 24px;
      font-weight: bold;
      color: #000;
      text-transform: uppercase;
      letter-spacing: 2px;
      box-shadow: 0 2px 10px rgba(0, 222, 115, 0.3);
      opacity: 0;
      transition: opacity 0.5s ease-in;
      white-space: nowrap;
      overflow: hidden;
    }
    
    .moving-banner.visible {
      opacity: 1;
    }
    
    .moving-banner::before {
      content: "ABS6900          ABS6900          ABS6900          ABS6900          ABS6900          ABS6900          ABS6900          ABS6900          ABS6900          ABS6900          ABS6900          ABS6900          ABS6900          ABS6900          ABS6900          ABS6900          ABS6900          ABS6900          ABS6900          ABS6900          ABS6900          ABS6900          ABS6900          ABS6900          ABS6900          ABS6900          ABS6900          ABS6900          ABS6900          ABS6900";
      position: absolute;
      left: 0;
      white-space: nowrap;
      animation: scrollText 20s linear infinite;
      color: #ffffff;
      font-family: 'CustomFont', 'Arial', sans-serif;
    }
    
    @keyframes scrollText {
      0% {
        transform: translateX(0%);
      }
      100% {
        transform: translateX(-50%);
      }
    }
    
    /* Logo */
    .logo {
      position: fixed;
      top: 70px; /* Below the banner (60px height + 10px gap) */
      left: 20px;
      z-index: 30;
      pointer-events: none; /* Allows clicks to pass through */
      opacity: 0; /* Initially hidden */
    }
    
    .logo img {
      width: 180px;
      height: auto;
    }
    
    /* Text Buttons */
    .text-buttons {
      position: fixed;
      bottom: 30px;
      left: 30px;
      z-index: 30;
      opacity: 0; /* Initially hidden */
      display: flex;
      flex-direction: column;
      gap: 15px;
    }
    
    .text-btn {
      background: none;
      border: 2px solid #00DE73;
      color: #ffffff;
      padding: 12px 24px;
      font-family: 'CustomFont', 'Arial', sans-serif;
      font-size: 16px;
      font-weight: bold;
      text-transform: uppercase;
      letter-spacing: 1px;
      cursor: pointer;
      transition: all 0.3s ease;
      border-radius: 5px;
    }
    
    .text-btn:hover {
      background: #00DE73;
      color: #000000;
      transform: translateY(-2px);
      box-shadow: 0 4px 12px rgba(0, 222, 115, 0.3);
    }


    
    /* Image Editor */
    .image-editor {
      position: fixed;
      top: 50%;
      left: 50%;
      transform: translate(-50%, -50%);
      width: 1000px;
      height: 700px;
      max-width: 95vw;
      max-height: 90vh;
      background: #1a1a1a;
      border: 2px solid #00DE73;
      border-radius: 10px;
      z-index: 1000;
      opacity: 0;
      visibility: hidden;
      transition: all 0.3s ease;
      box-shadow: 0 10px 30px rgba(0, 0, 0, 0.8);
    }
    
    .image-editor.active {
      opacity: 1;
      visibility: visible;
    }
    
    .editor-header {
      display: flex;
      justify-content: space-between;
      align-items: center;
      padding: 15px 20px;
      background: #00DE73;
      color: #000;
      border-radius: 8px 8px 0 0;
    }
    
    .editor-header h3 {
      margin: 0;
      font-family: 'CustomFont', 'Arial', sans-serif;
      font-size: 18px;
      font-weight: bold;
    }
    
    .close-editor {
      background: none;
      border: none;
      color: #000;
      font-size: 24px;
      cursor: pointer;
      padding: 0;
      width: 30px;
      height: 30px;
      display: flex;
      align-items: center;
      justify-content: center;
      border-radius: 50%;
      transition: background 0.3s ease;
    }
    
    .close-editor:hover {
      background: rgba(0, 0, 0, 0.1);
    }
    
    .editor-content {
      padding: 20px;
      height: calc(100% - 60px);
      display: flex;
      flex-direction: row;
      gap: 20px;
    }
    
    .editor-controls {
      display: flex;
      flex-direction: column;
      gap: 15px;
      min-width: 250px;
      max-width: 300px;
    }
    
    .action-controls {
      background: #2a2a2a;
      border: 1px solid #00DE73;
      border-radius: 5px;
      padding: 15px;
      display: flex;
      flex-direction: column;
      gap: 10px;
    }
    
    .file-input {
      background: #333;
      color: #fff;
      border: 1px solid #00DE73;
      padding: 10px 12px;
      border-radius: 5px;
      font-family: 'CustomFont', 'Arial', sans-serif;
      width: 100%;
      box-sizing: border-box;
    }
    
    .editor-btn {
      background: #333;
      color: #00DE73;
      border: 1px solid #00DE73;
      padding: 10px 16px;
      border-radius: 5px;
      cursor: pointer;
      font-family: 'CustomFont', 'Arial', sans-serif;
      font-size: 18px;
      font-weight: bold;
      transition: all 0.3s ease;
      width: 100%;
    }
    
    .editor-btn:hover {
      background: #00DE73;
      color: #000;
      transform: translateY(-1px);
    }
    
    .canvas-container {
      flex: 1;
      display: flex;
      justify-content: center;
      align-items: center;
      background: #2a2a2a;
      border-radius: 5px;
      overflow: hidden;
      min-height: 500px;
      max-width: 750px;
      max-height: 550px;
      padding: 20px;
    }
    
    #imageCanvas {
      max-width: 100%;
      max-height: 100%;
      border: 1px solid #444;
      border-radius: 5px;
      pointer-events: auto;
      cursor: default;
      object-fit: contain;
    }
    
    /* Laser Controls */
    .laser-controls {
      background: #2a2a2a;
      border: 1px solid #00DE73;
      border-radius: 5px;
      padding: 15px;
      margin-bottom: 15px;
      order: 3;
    }
    
    .control-group {
      display: flex;
      align-items: center;
      gap: 10px;
      margin-bottom: 10px;
    }
    
    .control-group:last-child {
      margin-bottom: 0;
    }
    
    .control-group label {
      color: #00DE73;
      font-family: 'CustomFont', 'Arial', sans-serif;
      font-size: 18px;
      font-weight: bold;
      min-width: 120px;
    }
    
    .slider {
      flex: 1;
      height: 6px;
      background: #444;
      border-radius: 3px;
      outline: none;
      -webkit-appearance: none;
    }
    
    .slider::-webkit-slider-thumb {
      -webkit-appearance: none;
      appearance: none;
      width: 18px;
      height: 18px;
      background: #00DE73;
      border-radius: 50%;
      cursor: pointer;
    }
    
    .slider::-moz-range-thumb {
      width: 18px;
      height: 18px;
      background: #00DE73;
      border-radius: 50%;
      cursor: pointer;
      border: none;
    }
    
    .control-btn {
      background: #333;
      color: #00DE73;
      border: 1px solid #00DE73;
      padding: 6px 12px;
      border-radius: 4px;
      cursor: pointer;
      font-family: 'CustomFont', 'Arial', sans-serif;
      font-size: 16px;
      font-weight: bold;
      transition: all 0.3s ease;
    }
    
    .control-btn:hover {
      background: #00DE73;
      color: #000;
    }

    /* Filter Controls */
    .filter-controls {
      background: #2a2a2a;
      border: 1px solid #00DE73;
      border-radius: 5px;
      padding: 15px;
      margin-bottom: 15px;
      order: 2;
    }

    /* Card Container */
    .card-container {
      position: absolute;
      top: 50%;
      left: 50%;
      transform: translate(-50%, -50%);
      display: flex;
      gap: 20px;
      z-index: 50;
      pointer-events: none;
      opacity: 0;
      transition: opacity 0.5s ease-in;
    }

    .card-container.visible {
      opacity: 1;
    }

    .card-image {
      width: 280px;
      height: 420px;
      object-fit: cover;
      border-radius: 10px;
      border: 2px solid #00DE73;
      box-shadow: 
        0 4px 15px rgba(0, 222, 115, 0.5),
        0 0 40px rgba(0, 222, 115, 0.4),
        0 0 60px rgba(0, 222, 115, 0.2),
        inset 0 0 20px rgba(255, 255, 255, 0.1);
      transition: all 0.3s ease;
      position: relative;
      transform: perspective(1000px) rotateX(0deg) rotateY(0deg);
      background: linear-gradient(
        135deg,
        rgba(255, 255, 255, 0.1) 0%,
        rgba(255, 255, 255, 0.05) 50%,
        rgba(0, 222, 115, 0.2) 100%
      );
    }

    .card-image::before {
      content: '';
      position: absolute;
      top: 0;
      left: 0;
      right: 0;
      bottom: 0;
      border-radius: 10px;
      background: linear-gradient(
        135deg,
        rgba(255, 255, 255, 0.3) 0%,
        rgba(255, 255, 255, 0.1) 20%,
        rgba(255, 255, 255, 0.05) 40%,
        transparent 60%,
        rgba(0, 222, 115, 0.1) 100%
      );
      pointer-events: none;
      z-index: 1;
    }

    .card-image::after {
      content: '';
      position: absolute;
      top: 0;
      left: 0;
      right: 0;
      bottom: 0;
      border-radius: 10px;
      background-image: 
        radial-gradient(circle at 20% 30%, rgba(255, 255, 255, 0.8) 1px, transparent 1px),
        radial-gradient(circle at 80% 70%, rgba(0, 222, 115, 0.6) 1px, transparent 1px),
        radial-gradient(circle at 40% 80%, rgba(255, 255, 255, 0.7) 1px, transparent 1px),
        radial-gradient(circle at 90% 20%, rgba(0, 222, 115, 0.5) 1px, transparent 1px),
        radial-gradient(circle at 60% 40%, rgba(255, 255, 255, 0.6) 1px, transparent 1px),
        radial-gradient(circle at 10% 60%, rgba(0, 222, 115, 0.4) 1px, transparent 1px);
      background-size: 100px 100px, 80px 80px, 120px 120px, 90px 90px, 110px 110px, 70px 70px;
      background-position: 
        0% 0%, 20% 20%, 40% 40%, 60% 60%, 80% 80%, 100% 100%;
      animation: glitter 3s ease-in-out infinite;
      pointer-events: none;
      z-index: 2;
    }

    @keyframes glitter {
      0%, 100% {
        opacity: 0.3;
        transform: scale(1);
      }
      25% {
        opacity: 0.8;
        transform: scale(1.1);
      }
      50% {
        opacity: 0.5;
        transform: scale(0.9);
      }
      75% {
        opacity: 0.9;
        transform: scale(1.05);
      }
    }

    /* Mobile Optimization */
    @media (max-width: 768px) {
      .card-container {
        flex-direction: row;
        gap: 0;
        padding: 20px;
        overflow: hidden;
        width: 100%;
        max-width: 300px;
        position: relative;
      }

      .card-image {
        width: 260px;
        height: 390px;
        flex-shrink: 0;
        transition: transform 0.3s ease;
      }

      .card-image:not(:first-child) {
        position: absolute;
        left: 100%;
        top: 0;
      }

      .card-image:hover {
        transform: perspective(1000px) scale(1.02) rotateY(5deg) rotateX(5deg);
      }

      .text-buttons {
        flex-direction: column;
        gap: 15px;
        padding: 20px;
      }

      .text-btn {
        font-size: 16px;
        padding: 12px 20px;
      }



      .moving-banner {
        height: 50px;
        font-size: 18px;
      }

      .logo img {
        width: 80px;
        height: 80px;
      }

      .image-editor {
        width: 95%;
        max-width: none;
        max-height: 80vh;
        margin: 10px;
      }

      .editor-content {
        flex-direction: column;
      }

      .editor-controls {
        order: 1;
        margin-bottom: 15px;
      }

      .canvas-container {
        order: 2;
      }

      #imageCanvas {
        max-width: 100%;
        max-height: 300px;
      }

      .control-group {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
      }

      .control-group label {
        min-width: auto;
        font-size: 14px;
      }

      .slider {
        width: 100%;
      }
    }

    @media (max-width: 480px) {
      .card-container {
        max-width: 220px;
      }

      .card-image {
        width: 200px;
        height: 300px;
      }

      .text-btn {
        font-size: 14px;
        padding: 10px 16px;
      }



      .moving-banner {
        height: 40px;
        font-size: 16px;
      }

      .logo img {
        width: 60px;
        height: 60px;
      }

      .image-editor {
        width: 98%;
        margin: 5px;
      }

      #imageCanvas {
        max-height: 250px;
      }
    }

    /* Contract Address Box */
    .contract-address {
      position: fixed;
      bottom: 10px;
      left: 50%;
      transform: translateX(-50%);
      background: rgba(0, 0, 0, 0.8);
      color: #00DE73;
      padding: 8px 12px;
      font-family: 'Courier New', monospace;
      font-size: 16px;
      z-index: 1000;
      border-radius: 4px;
    }

    @media (max-width: 768px) {
      .contract-address {
        font-size: 11px;
        padding: 6px 10px;
      }
    }

    @media (max-width: 480px) {
      .contract-address {
        font-size: 10px;
        padding: 5px 8px;
      }
    }

    .card-image:hover {
      transform: perspective(1000px) scale(1.05) rotateY(15deg) rotateX(15deg);
      box-shadow: 
        0 8px 25px rgba(0, 222, 115, 0.7),
        0 0 50px rgba(0, 222, 115, 0.5),
        0 0 80px rgba(0, 222, 115, 0.3),
        inset 0 0 30px rgba(255, 255, 255, 0.2);
    }
