:root {
  --primary-bg: #000000;
  --content-bg: rgb(17, 13, 42);
  --text-color: #ffffff;
  --accent-color: #d15357;
  --alert-yellow: #ffd700;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html,
body {
  height: 100%;
  overflow: hidden;
}

body {
  background-color: var(--primary-bg);
  color: var(--text-color);
  font-family: "Fairly Oddfont", sans-serif;
  display: flex;
  align-items: center;
  justify-content: center;
}

.wrapper {
  width: 95%;
  height: 78vh;
  background-color: var(--primary-bg);
  border-radius: 100px;
  position: relative;
  overflow: hidden;
  transition: transform 0.5s ease-in-out;
  opacity: 0;
  transition: opacity 0.5s ease-in-out;
}

.wrapper.transition-out {
  transform: scale(1);
}

.wrapper.loaded {
  opacity: 1;
}

.ntr-img {
  max-width: min(200px, 50vw);
  height: auto;
  margin-top: 1vh;
  z-index: 1;
  filter: drop-shadow(0 0 15px #d15357);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% {
    filter: drop-shadow(0 0 15px #d15357);
  }
  50% {
    filter: drop-shadow(0 0 25px #d15357);
  }
  100% {
    filter: drop-shadow(0 0 15px #d15357);
  }
}

.content {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  padding: 4vh;
  background-color: var(--content-bg);
  position: relative;
  overflow: hidden;
  transition: opacity 0.3s ease-out;
  opacity: 0;
  animation: fadeIn 0.5s ease-out forwards;
}

.content.transition-out {
  opacity: 0;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.event-alert {
  text-align: center;
  width: 100%;
  padding: 2vh;
  font-size: clamp(14px, 2vw, 18px);
  position: relative;
  z-index: 1;
}

.alert-text {
  color: var(--text-color);
}

.alert-text:first-child {
  color: var(--alert-yellow);
}

.date {
  color: var(--accent-color);
  margin: 0 10px;
}

.logo {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--accent-color);
  font-size: clamp(32px, 5vw, 48px);
  margin: 2vh 0;
  position: relative;
  z-index: 1;
}

.menu {
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 2vh;
  margin: 4vh 0;
  position: relative;
  z-index: 20;
}

.menu a {
  color: var(--text-color);
  text-decoration: none;
  font-size: clamp(18px, 3vw, 30px);
  position: relative;
  padding: 0px 16px;
  text-transform: uppercase;
  letter-spacing: 3px;
  transition: all 0.3s ease;
}

/* Remove hover effects */
.menu a:hover {
  color: var(--accent-color);
}

/* Update page transitions */
.page {
  width: 100%;
  opacity: 0;
  display: none;
  transition: opacity 0.3s ease;
  position: relative;
  z-index: 2;
}

.page.active {
  opacity: 1;
}

/* Ensure content container has proper positioning */
.content {
  position: relative;
  overflow: hidden;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .wrapper {
    width: 100%;
    height: 100vh;
    border-radius: 0;
  }

  .social-links {
    right: 3vw;
    gap: 2vh;
  }

  .content {
    padding: 3vh;
  }

  .event-alert {
    padding: 1.5vh;
  }

  .menu {
    gap: 0.2vh;
    margin: 3vh 0;
  }

  .menu a {
    font-size: clamp(28px, 2.5vw, 24px);
    padding: 6px 12px;
  }

  .menu a:hover {
    letter-spacing: 4px;
  }
}

canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: none;
}

/* Ensure content stays above canvas */
.event-alert,
.logo,
.menu,
.social-links {
  position: relative;
  z-index: 20;
}

#scanlines {
  position: fixed;
  top: 0;
  left: 0;
  height: 100%;
  width: 100%;
  overflow: hidden;
  pointer-events: none;
  z-index: 15;
  background: -webkit-gradient(
    linear,
    left top,
    left bottom,
    color-stop(50%, transparent),
    color-stop(50%, rgba(0, 0, 0, 0.25))
  );
  background: -webkit-linear-gradient(
    top,
    transparent 50%,
    rgba(0, 0, 0, 0.25) 50%
  );
  background: -moz-linear-gradient(
    top,
    transparent 50%,
    rgba(0, 0, 0, 0.25) 50%
  );
  background: -o-linear-gradient(top, transparent 50%, rgba(0, 0, 0, 0.25) 50%);
  background: linear-gradient(
    to bottom,
    transparent 50%,
    rgba(0, 0, 0, 0.25) 50%
  );
  -webkit-background-size: 100% 4px;
  -moz-background-size: 100% 4px;
  -o-background-size: 100% 4px;
  background-size: 100% 4px;
  opacity: 0.75;
}

.page-content {
  padding: 4vh;
  max-width: 1200px;
  margin: 0 auto;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s ease, transform 0.5s ease;
  background: rgba(17, 13, 42, 0.7);
  border-radius: 20px;
  backdrop-filter: blur(10px);
}

.page.active .page-content {
  opacity: 1;
  transform: translateY(0);
}

.menu a.active {
  color: var(--accent-color);
}

.social-links {
  position: fixed;
  right: 5vw;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 3vh;
  z-index: 20;
}

.social-links a {
  color: var(--text-color);
  text-decoration: none;
  font-size: 24px;
  transition: all 0.3s ease;
}

.social-links a:hover {
  color: var(--accent-color);
  transform: scale(1.2);
}

/* Update the existing media query */
@media (max-width: 768px) {
  .social-links {
    position: relative;
    right: auto;
    top: auto;
    transform: none;
    flex-direction: row;
    justify-content: center;
    gap: 5vw;
    margin-top: 2vh;
  }

  .social-links a {
    font-size: 20px;
  }
}

/* Add smooth transitions for interactive elements */
.menu a,
.social-links a {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Enhanced hover effects */
.menu a:hover,
.social-links a:hover {
  text-shadow: 0 0 10px var(--accent-color);
  transform: translateY(-2px);
}

/* Update menu styles to be specific to home page */
#home .menu {
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 2vh;
  margin: 4vh 0;
  position: relative;
  z-index: 20;
}

/* Update social links to be specific to home page */
#home .social-links {
  position: fixed;
  right: 5vw;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 3vh;
  z-index: 20;
}

/* Update logo to be specific to home page */
#home .logo {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--accent-color);
  font-size: clamp(32px, 5vw, 48px);
  margin: 2vh 0;
  position: relative;
  z-index: 1;
}

/* Add a home button for other pages */
.page:not(#home) {
  position: relative;
}

/* Back Arrow Styling */
.page:not(#home)::before {
  content: "←";
  position: absolute;
  top: 20px;
  left: 20px;
  font-size: 2.5rem;
  color: var(--text-color);
  cursor: pointer;
  z-index: 20;
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  text-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

.page:not(#home)::before:hover {
  transform: scale(1.1);
  text-shadow: 0 0 15px rgba(255, 255, 255, 0.8);
}

/* Mobile adjustments for back arrow */
@media (max-width: 768px) {
  .page:not(#home)::before {
    top: 15px;
    left: 15px;
    font-size: 2rem;
    width: 40px;
    height: 40px;
  }
}

/* Add these rules to your existing CSS */
#home .event-alert,
#home .logo,
#home .menu,
#home .social-links {
  opacity: 1;
  transition: opacity 0.3s ease-out;
}

#home.active .event-alert,
#home.active .logo,
#home.active .menu,
#home.active .social-links {
  opacity: 1;
}

/* Common Text Styles */
.page-content h1 {
  font-size: clamp(2rem, 5vw, 3.5rem);
  color: #9370db;
  text-align: center;
  margin-bottom: 4vh;
  text-shadow: 0 0 10px rgba(147, 112, 219, 0.5);
  letter-spacing: 2px;
}

.page-content p {
  font-size: clamp(1rem, 2vw, 1.2rem);
  line-height: 1.6;
  margin-bottom: 2vh;
  color: #fff;
  text-shadow: 0 0 5px rgba(147, 112, 219, 0.3);
}

/* About Page Specific */
#about .about-text {
  display: grid;
  gap: 3vh;
  padding: 2vh;
}

#about ul {
  list-style: none;
  padding: 2vh 0;
}

#about ul li {
  font-size: clamp(0.9rem, 1.8vw, 1.1rem);
  margin: 1vh 0;
  padding-left: 2em;
  position: relative;
}

#about ul li::before {
  content: "★";
  position: absolute;
  left: 0;
  color: #9400d3;
}

/* How to Buy Page Specific */
.buy-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 3vh;
  padding: 2vh;
}

.step {
  background: rgba(138, 43, 226, 0.1);
  padding: 3vh;
  border-radius: 15px;
  border: 1px solid rgba(147, 112, 219, 0.3);
  transition: transform 0.3s ease;
}

.step:hover {
  transform: translateY(-5px);
  box-shadow: 0 5px 15px rgba(147, 112, 219, 0.2);
}

.step h3 {
  font-size: clamp(1.1rem, 2.2vw, 1.4rem);
  color: #ba55d3;
  margin-bottom: 2vh;
}

.step p {
  font-size: clamp(0.9rem, 1.8vw, 1.1rem);
}

/* Tokenomics Page Specific */
.tokenomics-info {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 4vh;
  padding: 2vh;
}

.token-details,
.tax-info {
  padding: 3vh;
  border-radius: 15px;
}

.tokenomics-info h3 {
  font-size: clamp(1.2rem, 2.4vw, 1.5rem);
  color: #ba55d3;
  margin-bottom: 2vh;
  text-align: center;
}

.tokenomics-info ul {
  list-style: none;
  padding: 0;
}

.tokenomics-info li {
  font-size: clamp(0.9rem, 1.8vw, 1.1rem);
  margin: 1vh 0;
  padding: 1vh;
  border-bottom: 1px solid rgba(147, 112, 219, 0.2);
}

.tokenomics-info p {
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: #9370db;
  margin: 2vh 0 1vh;
}

/* Mobile Adjustments */
@media (max-width: 768px) {
  .page-content {
    padding: 3vh;
    margin: 2vh;
  }

  .tokenomics-info {
    grid-template-columns: 1fr;
  }

  .buy-steps {
    grid-template-columns: 1fr;
  }

  .step,
  .token-details,
  .tax-info {
    padding: 2vh;
  }
}

/* Animation for content appearance */
@keyframes fadeSlideUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.page.active .page-content > * {
  animation: fadeSlideUp 0.5s ease forwards;
  animation-delay: calc(var(--item-index, 0) * 0.1s);
}

/* Hover effects for interactive elements */
.step:hover,
.tax-info:hover {
  transform: translateY(-5px);
  box-shadow: 0 5px 15px rgba(147, 112, 219, 0.2);
  transition: all 0.3s ease;
}

/* Enhanced Loader Styles */
#loader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgb(17, 13, 42);
  z-index: 9999;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: opacity 0.5s ease-out;
}

.loader-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 25px;
}

.loader-galaxy {
  position: relative;
  width: 200px;
  height: 200px;
}

.star-ring {
  position: absolute;
  top: 50%;
  left: 50%;
  border: 2px solid transparent;
  border-radius: 50%;
  animation: rotate 2s linear infinite;
}

.star-ring::before {
  content: "★";
  position: absolute;
  top: -10px;
  left: -10px;
  font-size: 20px;
  color: #d15357;
  text-shadow: 0 0 10px #d15357;
  animation: twinkle 1s ease-in-out infinite;
}

.star-ring:nth-child(1) {
  width: 100px;
  height: 100px;
  margin: -50px 0 0 -50px;
  border-top-color: rgba(209, 83, 87, 0.5);
  animation-duration: 3s;
}

.star-ring:nth-child(2) {
  width: 140px;
  height: 140px;
  margin: -70px 0 0 -70px;
  border-right-color: rgba(147, 112, 219, 0.5);
  animation-duration: 4s;
  animation-direction: reverse;
}

.star-ring:nth-child(3) {
  width: 180px;
  height: 180px;
  margin: -90px 0 0 -90px;
  border-bottom-color: rgba(65, 105, 225, 0.5);
  animation-duration: 5s;
}

.loader-logo {
  width: 120px;
  height: auto;
  animation: pulse 2s infinite;
  filter: drop-shadow(0 0 15px #d15357);
}

.loader-text {
  color: #fff;
  font-size: 1.2rem;
  letter-spacing: 2px;
  animation: fadeInOut 2s infinite;
}

.loader-bar {
  width: 200px;
  height: 4px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 2px;
  overflow: hidden;
  position: relative;
}

.loader-progress {
  width: 0%;
  height: 100%;
  background: linear-gradient(90deg, #d15357, #9370db, #4169e1);
  background-size: 200% 100%;
  animation: gradientShift 2s linear infinite;
  transition: width 0.3s ease-out;
  position: relative;
}

.loader-progress::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.4),
    transparent
  );
  animation: shimmer 1.5s infinite;
}

@keyframes rotate {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

@keyframes twinkle {
  0%,
  100% {
    opacity: 0.3;
  }
  50% {
    opacity: 1;
  }
}

@keyframes fadeInOut {
  0%,
  100% {
    opacity: 0.5;
  }
  50% {
    opacity: 1;
  }
}

@keyframes gradientShift {
  0% {
    background-position: 0% 0%;
  }
  100% {
    background-position: 200% 0%;
  }
}

@keyframes shimmer {
  0% {
    transform: translateX(-100%);
  }
  100% {
    transform: translateX(100%);
  }
}

@media (max-width: 772px) {
  #home .logo {
    margin: 6vh 0;
  }
}

/* Mobile adjustments with added top padding */
@media (max-width: 768px) {
  #home {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    gap: 2vh;
    height: 100%;
    padding-top: 4vh; /* Increased top padding */
  }

  .event-alert {
    font-size: clamp(1.1rem, 2vw, 1.4rem);
    padding: 1vh;
    margin: 0;
    margin-top: 2vh; /* Added top margin */
  }

  .logo {
    gap: 1vh;
    margin: 2vh 0; /* Added vertical margin */
  }

  .menu {
    gap: 1.2vh;
    margin: 2vh 0; /* Added vertical margin */
  }
}

/* Height-based responsive adjustments with maintained padding */
@media (max-height: 700px) {
  #home {
    padding-top: 3vh; /* Slightly reduced for smaller heights */
  }
}

@media (max-height: 600px) {
  #home {
    padding-top: 2vh; /* Further reduced for very small heights */
  }
}

@media (max-height: 500px) {
  #home {
    padding-top: 1.5vh; /* Minimal padding for extremely small heights */
  }
}
