* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  min-height: 100vh;
  font-family: "CustomFont", "Space Mono", monospace;
}

.icons-container {
  position: fixed;
  top: 2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1000;
  display: flex;
  gap: 1rem;
  align-items: center;
  justify-content: center;
}

.social-icon {
  width: 45px;
  height: 45px;
  border-radius: 50%;
  background: #2b3764;
  backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: rgba(255, 255, 255, 0.9);
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

.social-icon:hover {
  color: #4dd5ff;
  transform: scale(1.1);
  box-shadow: 0 4px 20px rgba(77, 213, 255, 0.3);
}

.social-icon i {
  font-size: 18px;
}

.menu-container {
  position: relative;
}

.menu-icon {
  width: 45px;
  height: 45px;
  border-radius: 50%;
  background: #2b3764;
  backdrop-filter: blur(10px);
  display: none;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: rgba(255, 255, 255, 0.9);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
  font-size: 18px;
}

.nav-content {
  position: static;
  background: #2b3764;
  backdrop-filter: blur(10px);
  border-radius: 40px;
  padding: 1rem 2rem;
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
  transition: all 0.3s ease;
  opacity: 1;
  pointer-events: auto;
}

.nav-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  width: 100%;
}

.nav-link {
  color: rgba(255, 255, 255, 0.9);
  text-decoration: none;
  font-size: 1.1rem;
  font-weight: 500;
  letter-spacing: 0.5px;
  transition: color 0.3s ease;
  white-space: nowrap;
}

.nav-link:hover {
  color: #4dd5ff;
}
.background {
  position: fixed;
  width: 100%;
  height: 100vh;
  object-fit: cover;
  object-position: center;
  z-index: -1;
}
.sound-icon i {
  font-size: 22px;
}
.sound-icon.playing i {
  animation: soundWave 1.5s infinite;
  color: #4dd5ff;
}
@keyframes soundWave {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.2);
  }
  100% {
    transform: scale(1);
  }
}
.fixed-sound-control {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 55px;
  height: 55px;
  border-radius: 50%;
  background: rgba(2, 16, 36, 0.8);
  backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: rgba(255, 255, 255, 0.9);
  transition: all 0.3s ease;
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
  z-index: 1000;
  border: 1px solid rgba(77, 213, 255, 0.2);
}

.fixed-sound-control:hover {
  background: rgba(2, 16, 36, 0.95);
  color: #4dd5ff;
  transform: scale(1.1);
  box-shadow: 0 4px 20px rgba(77, 213, 255, 0.3);
  border-color: rgba(77, 213, 255, 0.4);
}
.music-notice {
  position: fixed;
  bottom: 100px;
  right: 30px;
  background: rgba(2, 16, 36, 0.9);
  color: white;
  padding: 12px 20px;
  border-radius: 30px;
  font-family: "CustomFont", "Space Mono", monospace;
  z-index: 1000;
  backdrop-filter: blur(10px);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(77, 213, 255, 0.2);
  font-size: 14px;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s ease, transform 0.5s ease;
  pointer-events: none;
  max-width: 200px;
  text-align: center;
}

.music-notice.show {
  opacity: 1;
  transform: translateY(0);
}
.title-text {
  height: auto;
  transform: translateY(-2rem);
  margin-top: 130px;
}

.content {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: transparent;
  text-align: center; /* centers the content inside */
  max-width: 600px;
  margin: 0 auto; /* centers the container on the page */
  height: 130vh;
}
.character {
  width: 300px;
  margin-top: 40px;
  margin-bottom: 100px;
  animation: float 3s ease-in-out infinite;
  filter: drop-shadow(0 5px 15px rgba(0, 0, 0, 0.1));
}
@keyframes float {
  0% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-10px);
  }
  100% {
    transform: translateY(0px);
  }
}
.content h1 {
  font-size: 5.5rem;
  font-weight: 900;
  color: white;
}
.content p {
  font-size: 30px;
  color: white;
  display: block;
  word-wrap: break-word; /* wraps long words if needed */
  line-height: 1.6;
  font-weight: bolder;
  font-family: "CustomFont", "Space Mono", monospace;
}
.story-section {
  position: relative;
  width: 100%;
  min-height: 100vh;
  background: #162655;
  padding: 4rem 0;
  z-index: 1;
}
.story-cont {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  min-height: 120vh;
  color: white;
  text-align: center;
  padding: 50px 20px;
  position: relative;
  width: 100%;
  z-index: 1;
}

.story-content {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  max-width: 1000px;
  gap: 100px;
  z-index: 2;
  margin-bottom: -105px;
}
.story-text-cont {
  flex: 1;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 30px;
  padding: 3rem 4rem;
  backdrop-filter: blur(10px);
  box-shadow: 0 4px 30px rgba(77, 213, 255, 0.1);
  border: 1px solid rgba(77, 213, 255, 0.1);
  max-width: 700px;
}
.story-text {
  font-size: 18px;
  max-width: 500px;
  line-height: 1.6;
  text-align: left;
  font-family: "CustomFont", "Space Mono", monospace;
}
.story-text h1 {
  font-size: 18px;
}
.story-image {
  flex: 0 0 350px;
}

.story-image img {
  width: 100%;
  height: auto;
}

.tokenomics-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 6rem 2rem;
  font-family: "CustomFont", "Space Mono", monospace;
}
.tokenomics-container h1 {
  font-size: 5.5rem;
  color: white;
  text-align: center;
}
.tokenomics-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem 4rem;
  max-width: 1000px;
  margin: 0 auto;
  padding-top: 4rem;
  margin-top: 30px;
}
.tokenomics-card {
  padding: 1.25rem;
  gap: 1rem;
  min-height: auto;
  text-align: center;
}
.tokenomics-card {
  position: relative;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 16px;
  padding: 2rem 3rem;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(77, 213, 255, 0.1);
  display: flex;
  flex-direction: row; /* Changed to horizontal */
  align-items: center;
  text-align: left; /* Changed to left align */
  gap: 2.5rem;
  overflow: hidden;
  animation: slideIn 0.6s ease-out forwards;
  animation-delay: var(--delay);
  opacity: 0;
  transform: translateY(30px);
  height: 160px; /* Fixed height */
  justify-content: flex-start; /* Start from left */
  width: 100%;
  max-width: 500px; /* Wider for horizontal layout */
  margin: 0 auto;
}
@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.tokenomics-card:hover {
  transform: translateX(10px);
  box-shadow: 0 4px 30px rgba(77, 213, 255, 0.15);
  transition: all 0.3s ease;
}

.tokenomics-card:hover .card-icon {
  background: rgba(77, 213, 255, 0.2);
  transition: all 0.3s ease;
}
.card-icon {
  width: 60px;
  height: 60px;
  background: rgba(77, 213, 255, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.card-icon i {
  font-size: 1.5rem;
  color: #4dd5ff;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.1);
  }
  100% {
    transform: scale(1);
  }
}
@keyframes float {
  0% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-10px);
  }
  100% {
    transform: translateY(0px);
  }
}

.card-icon {
  animation: float 3s ease-in-out infinite;
  animation-delay: calc(var(--delay) + 1s);
}
.card-content {
  flex-grow: 1;
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.card-title {
  color: #4dd5ff;
  font-size: 1.4rem;
  margin-bottom: 0.5rem;
  font-family: "CustomFont", "Space Mono", monospace;
  letter-spacing: 1px;
}
.card-value {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.value-wrapper {
  display: flex;
  align-items: center;
  gap: 1rem;
}
.percentage {
  color: white;
  font-size: 2.5rem;
  font-weight: bold;
  font-family: "CustomFont", "Space Mono", monospace;
}
.amount {
  color: rgba(255, 255, 255, 0.7);
  font-size: 1.1rem;
  font-family: "CustomFont", "Space Mono", monospace;
  margin-right: 0;
}
.divider-image {
  width: 100%;
  height: auto;
  display: block;
}
.wave-divider {
  position: absolute;
  top: -130px;
  left: 0;
  right: 0;
  z-index: 2;
  width: 100%;
}
.div-image {
  width: 100%;
  height: auto;
  display: block;
}
.wave-div {
  position: absolute;
  top: -130px;
  left: 0;
  right: 0;
  z-index: 2;
  width: 100%;
}
.howtobuy-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 6rem 2rem;
  position: relative;
  font-family: "CustomFont", "Space Mono", monospace;
}
.howtobuy-container h1 {
  font-size: 5.5rem;
  color: white;
  text-align: center;
}
.howtobuy-timeline {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
  padding: 4rem 2rem;
}

.howtobuy-timeline::before {
  content: "";
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: 2px;
  height: 100%;
  top: 0;
  background: linear-gradient(to bottom, transparent, white, transparent);
  z-index: 1;
}
.howtobuy-phase {
  color: #4dd5ff;
  font-size: 1.8rem;
  margin-bottom: 1.5rem;
  font-weight: bold;
  letter-spacing: 1px;
}
.glass-card {
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(10px);
  border-radius: 16px;
  padding: 2.5rem;
  border: 1px solid rgba(77, 213, 255, 0.1);
  color: rgba(255, 255, 255, 0.9);
  transition: all 0.3s ease;
}

.glass-card:hover {
  border-color: rgba(77, 213, 255, 0.3);
  box-shadow: 0 0 30px rgba(77, 213, 255, 0.1);
  transform: translateY(-5px);
}
.glass-card ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.glass-card ul li {
  position: relative;
  padding-left: 1.5rem;
  line-height: 1.8;
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.9);
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.5s ease;
  transition-delay: calc(var(--li-index) * 0.1s);
}
.howtobuy-item.visible .glass-card ul li {
  opacity: 1;
  transform: translateY(0);
}
.glass-card ul li::before {
  content: "•";
  color: #4dd5ff;
  position: absolute;
  left: 0;
  font-size: 1.2rem;
}
.howtobuy-item {
  display: flex;
  justify-content: flex-start;
  margin: 6rem 0;
  width: 45%;
  position: relative;
  opacity: 0;
  transform: translateY(30px);
  transition: all 1s ease;
}

.howtobuy-item.visible {
  opacity: 1;
  transform: translateY(0);
}
/* Increased spacing for left items (Phase 1 & 3) */
.howtobuy-item.left {
  margin-right: auto;
  margin-left: 0; /* Removed left margin to push card farther left */
  right: 60px; /* Push the entire item to the left */
}

/* Increased spacing for right items (Phase 2) */
.howtobuy-item.right {
  margin-left: auto;
  margin-right: 0; /* Removed right margin to push card farther right */
  left: 60px; /* Push the entire item to the right */
}

.howtobuy-item::before {
  content: "";
  position: absolute;
  width: 24px;
  height: 24px;
  background: rgb(2, 16, 36);
  border: 3px solid white;
  border-radius: 50%;
  top: 30px;
  z-index: 2;
  box-shadow: 0 0 20px white;
  transition: all 0.3s ease;
}

/* Repositioned circles for left items */
.howtobuy-item.left::before {
  right: -62px; /* Moved circle more to the left */
}

/* Repositioned circles for right items */
.howtobuy-item.right::before {
  left: -62px; /* Moved circle more to the right */
}
.token-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  font-family: "CustomFont", "Space Mono", monospace;
}
.token-section h1 {
  font-size: 5.5rem;
  color: white;
  text-align: center;
}
.token-features {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 40px 20px;
  max-width: 1000px;
  width: 100%;
}
.feature {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid white;
  box-shadow: 0 0 10px rgba(77, 213, 255, 0.5);
  padding: 30px 50px;
  border-radius: 30px;
  width: 1000px;
  margin-bottom: 50px;
  text-align: left;
}
.anim1,
.anim2,
.anim3,
.anim4 {
  opacity: 0;
  transform: translateY(50px);
  transition: all 0.8s ease-out;
  transition-delay: calc(var(--index) * 0.5s);
}

.token-features.visible .anim1,
.token-features.visible .anim2,
.token-features.visible .anim3,
.token-features.visible .anim4 {
  opacity: 1;
  transform: translateY(0);
}

.feature h3 {
  color: #4dd5ff;
  font-size: 2rem;
  margin-bottom: 1.5rem;
}
.feature p {
  font-size: 1.2rem;
  color: white;
}
.ca-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
  text-align: center;
  font-family: "CustomFont", "Space Mono", monospace;
}

.ca-title {
  font-size: 30px;
  margin-bottom: 10px;
  color: white;
  font-family: "CustomFont", "Space Mono", monospace;
}

.ca-box {
  display: flex;
  align-items: center;
  gap: 12px;
  background: #f1f1f1;
  padding: 12px 20px;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  flex-wrap: wrap;
}

.ca-address {
  font-weight: bold;
  font-size: 16px;
  color: #333;
}

.copy-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  background-color: #31427f;
  color: #fff;
  border: none;
  padding: 6px 12px;
  border-radius: 8px;
  cursor: pointer; 
  transition: background-color 0.3s ease, transform 0.2s ease;
  font-size: 14px;
  font-family: "CustomFont", "Space Mono", monospace;
}

.copy-btn:active {
  transform: scale(0.96);
}

.copy-btn.copied {
  background-color: #1085a9; /* green */
}

/* MOBILE */
@media screen and (max-width: 768px) {
  .menu-icon {
    display: flex;
  }

  .nav-content {
    position: absolute;
    top: 60px;
    left: 50%;
    transform: translateX(-50%);
    width: 80vw;
    max-width: 250px;
    padding: 1rem;
    flex-direction: column;
    border-radius: 1rem;
    background: rgba(2, 16, 36, 0.95);
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s ease;
  }

  .nav-content.active {
    opacity: 1;
    pointer-events: auto;
  }
  .nav-links {
    flex-direction: column;
    gap: 2rem;
  }
  .nav-link {
    border-bottom: 1px solid white;
  }
  .icons-container {
    gap: 3rem;
  }
  .fixed-sound-control {
    bottom: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
  }
  .character {
    max-width: 200px;
  }
  .music-notice {
    bottom: 80px;
    right: 20px;
    padding: 10px 16px;
    font-size: 13px;
    max-width: 180px;
  }
  .content {
    height: 120vh;
    overflow: hidden;
  }
  .content h1 {
    font-size: 3rem;
    font-weight: 900;
    color: white;
  }
  .content p {
    font-size: 20px;
    color: white;
  }
  .tokenomics-container {
    padding: 4rem 1rem;
  }
  .tokenomics-container h1 {
    font-size: 45px;
  }
  .tokenomics-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    margin-top: -30px;
  }
  .tokenomics-card {
    padding: 1.5rem;
    gap: 1.5rem;
    height: auto;
    min-height: 120px;
    flex-direction: row;
    max-width: 100%;
  }
  .card-icon {
    width: 50px;
    height: 50px;
  }
  .card-title {
    font-size: 1.2rem;
  }
  .card-value {
    flex-wrap: wrap;
    gap: 0.5rem;
  }
  .percentage {
    font-size: 2rem;
  }
  .amount {
    font-size: 0.9rem;
  }
  .story-content {
    flex-direction: column;
    text-align: center;
    margin-bottom: 0;
  }
  .story-text {
    text-align: center;
  }
  .story-text-cont {
    padding: 2rem;
    margin: 0 auto;
    width: 100%;
    max-width: 500px;
    position: relative;
    z-index: 3;
    margin-top: 2rem;
  }
  .story-image {
    flex: 0 0 300px;
    display: flex;
    justify-content: center;
    position: relative;
    z-index: 3;
    margin-top: 2rem;
  }

  .story-image img {
    max-width: 300px;
    margin: 0 auto;
  }
  .title-text {
    max-width: 450px; /* Increased from 40% */
    transform: translateY(-1rem); /* Reduced upward shift */
  }
  .story-section {
    position: relative;
    margin-top: 0;
    padding-top: 0;
    min-height: 100vh;
  }
  .wave-divider {
    position: absolute;
    top: -65px;
    left: 0;
    right: 0;
    margin-top: 0;
    transform: translateY(0);
    z-index: 2;
  }
  #story .wave-divider {
    top: -45px; /* Lowered from -65px to -45px */
  }
  .wave-div {
    position: absolute;
    top: -65px;
    left: 0;
    right: 0;
    margin-top: 0;
    transform: translateY(0);
    z-index: 2;
  }
  .howtobuy-timeline::before {
    left: 50%;
    z-index: 0; /* Place behind cards */
    opacity: 0.5; /* Make it slightly transparent */
  }
  .howtobuy-phase {
    font-size: 1.5rem;
    text-align: center; /* Center the phase title */
  }
  .glass-card {
    padding: 1.5rem;
    position: relative;
    z-index: 2; /* Ensure cards are above the timeline */
  }
  .glass-card ul li {
    font-size: 1rem;
  }
  .howtobuy-item::before {
    display: none;
  }

  /* Center all cards and adjust width */
  .howtobuy-item {
    width: 90%; /* Wider cards */
    margin: 3rem auto; /* Center horizontally with vertical spacing */
    left: 0 !important; /* Remove any offset positioning */
    right: 0 !important; /* Remove any offset positioning */
  }

  /* Reset all positioning for left and right items */
  .howtobuy-item.left,
  .howtobuy-item.right {
    margin-left: auto;
    margin-right: auto;
  }
  .howtobuy-item:not(:last-child) {
    margin-bottom: 3rem; /* Add space between cards to show timeline */
  }
  .feature {
    width: 340px;
  }
  .feature h3 {
    font-size: 1.7rem;
  }
  .feature p {
    font-size: 15px;
  }
  .token-section h1 {
    font-size: 45px;
  }
  .howtobuy-container h1 {
    font-size: 45px;
  }
}
@media screen and (max-width: 480px) {
  .sound-icon i {
    font-size: 18px;
  }
  .fixed-sound-control {
    bottom: 15px;
    right: 15px;
    width: 45px;
    height: 45px;
  }
  .music-notice {
    bottom: 70px;
    right: 15px;
    padding: 8px 14px;
    font-size: 12px;
    max-width: 160px;
  }
  .story-image img {
    max-width: 200px;
  }
  .tokenomics-container {
    padding: 2rem 1rem;
  }
  .tokenomics-grid {
    gap: 1rem;
  }
  .tokenomics-card {
    padding: 1.25rem;
    gap: 1rem;
    flex-direction: column;
    height: auto;
    min-height: 200px;
    text-align: center;
    align-items: center;
  }
  .card-icon {
    width: 45px;
    height: 45px;
  }
  .card-content {
    width: 100%;
    text-align: center;
    align-items: center;
  }
  .card-title {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
  }
  .card-value {
    flex-direction: row;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
    text-align: center;
  }
  .card-value {
    flex-direction: column;
    align-items: center;
    gap: 0.3rem;
  }
  .value-wrapper {
    flex-direction: column;
    align-items: center;
    gap: 0.3rem;
    width: 100%;
  }
  .percentage {
    font-size: 1.8rem;
    margin-right: 0;
  }
  .amount {
    font-size: 0.9rem;
    margin-right: 0;
  }
  .story-text-container {
    padding: 1.5rem;
    margin-top: 1rem;
  }
  .story-image {
    flex: 0 0 250px;
  }

  .story-image img {
    max-width: 250px;
  }
  .title-text {
    max-width: 450px; /* Even larger on very small screens */
  }
  .wave-divider {
    top: -45px;
  }
  .wave-div {
    top: -45px;
  }

  /* Specific fix for the story section's wave divider on smaller screens */
  #story .wave-divider {
    top: -35px; /* Lowered further for smallest screens */
  }
}
