/* XNOVA - Neon & Pink Theme CSS - FIXED VERSION */

:root {
  /* Color Palette */
  --bg-dark: #050011;
  --bg-panel: rgba(20, 10, 35, 0.6);
  --neon-pink: #ff007f;
  --neon-pink-hover: #ff3399;
  --neon-cyan: #00f3ff;
  --neon-purple: #bd00ff;
  --text-main: #ffffff;
  --text-muted: #d1d1d1;
  --glass-border: rgba(255, 255, 255, 0.1);
  --glass-bg: rgba(255, 255, 255, 0.05);
  
  /* Gradients */
  --gradient-primary: linear-gradient(135deg, var(--neon-pink), var(--neon-purple));
  --gradient-cyan: linear-gradient(135deg, var(--neon-cyan), #0066ff);
  
  /* Spacing */
  --section-padding: 80px 20px;
  --border-radius: 16px;
}

/* Global Reset - FIXED OVERFLOW */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  max-width: 100%;
  overflow-x: hidden;
  position: relative;
}

body {
  font-family: 'Montserrat', sans-serif;
  background-color: var(--bg-dark);
  color: var(--text-main);
  line-height: 2.6;
  overflow-x: hidden;
  width: 100%;
}

/* Background Effects */
.stars, .nebula {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: -1;
}

.stars {
  background: radial-gradient(white, rgba(255,255,255,.2) 2px, transparent 3px);
  background-size: 550px 550px;
  opacity: 0.5;
  animation: starMove 100s linear infinite;
}

.nebula {
  background: radial-gradient(circle at 50% 50%, rgba(189, 0, 255, 0.15), rgba(0, 0, 0, 0) 60%);
  opacity: 0.6;
  animation: nebulaPulse 10s ease-in-out infinite alternate;
}

@keyframes starMove {
  from { transform: translateY(0); }
  to { transform: translateY(-1000px); }
}

@keyframes nebulaPulse {
  0% { transform: scale(1); opacity: 0.5; }
  100% { transform: scale(1.1); opacity: 0.7; }
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Orbitron', sans-serif;
  color: var(--text-main);
  text-transform: uppercase;
  letter-spacing: 1px;
}

h2 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  text-align: center;
  text-shadow: 0 0 10px var(--neon-purple);
}

.section-description {
  text-align: center;
  color: var(--text-muted);
  max-width: 700px;
  margin: 0 auto 3rem auto;
  font-size: 1.1rem;
  padding: 0 15px;
}

a {
  text-decoration: none;
  color: inherit;
  transition: 0.3s;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  width: 100%;
}

/* Header & Navigation - FIXED */
header {
  display: flex;
  align-items: center;
  padding: 15px 20px;
  /* position: fixed; */
  top: 0;
  width: 100%;
  background: rgba(5, 0, 17, 0.95);
  backdrop-filter: blur(10px);
  z-index: 1000;
  border-bottom: 1px solid rgb(216 0 203);
  justify-content: center;
}

.logo {
  font-family: 'Orbitron', sans-serif;
  font-size: 1.5rem;
  font-weight: 900;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 0 0 20px rgba(255, 0, 127, 0.5);
  white-space: nowrap;
}

.desktop-nav {
  display: flex;
  gap: 25px;
}

.desktop-nav a {
  color: var(--text-main);
  font-weight: 600;
  font-size: 0.85rem;
  text-transform: uppercase;
  position: relative;
  white-space: nowrap;
}

.desktop-nav a:hover {
  color: var(--neon-cyan);
  text-shadow: 0 0 8px var(--neon-cyan);
}

/* Mobile Navigation - IMPROVED */
.mobile-nav-toggle {
  display: none;
  background: none;
  border: none;
  color: #fff;
  font-size: 1.8rem;
  cursor: pointer;
  padding: 5px;
  z-index: 1001;
}

.mobile-nav-toggle i {
  color: var(--neon-pink);
}

.mobile-nav {
  display: none;
  position: relative;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background: rgba(5, 0, 17, 0.98);
  flex-direction: column;
  padding: 80px 30px 30px;
  z-index: 1000;
  overflow-y: auto;
  backdrop-filter: blur(15px);
}

.mobile-nav.active {
  display: flex;
}

.mobile-nav a {
  padding: 18px 0;
  font-size: 1.3rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  text-transform: uppercase;
  font-weight: 600;
  letter-spacing: 1px;
  transition: all 0.3s ease;
}

.mobile-nav a:hover {
  color: var(--neon-cyan);
  padding-left: 15px;
  border-bottom-color: var(--neon-pink);
}

.mobile-nav-close {
  position: absolute;
  top: 20px;
  right: 20px;
  background: none;
  border: none;
  color: var(--neon-pink);
  font-size: 1.8rem;
  cursor: pointer;
  z-index: 1001;
}

/* Hero Section - IMPROVED FOR MOBILE */
.hero {
  padding-top: 140px;
  padding-bottom: 80px;
  text-align: center;
  position: relative;
  width: 100%;
  overflow: hidden;
}

.hero h1 {
  font-size: 3.5rem;
  font-weight: 900;
  margin-bottom: 10px;
  background: linear-gradient(to right, #fff, var(--neon-pink));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 0 15px var(--neon-pink));
  animation: glow 3s infinite alternate;
  padding: 0 15px;
  line-height: 1.1;
}

@keyframes glow {
  from { filter: drop-shadow(0 0 10px var(--neon-pink)); }
  to { filter: drop-shadow(0 0 25px var(--neon-purple)); }
}

.hero h2 {
  font-size: 1.8rem;
  margin-bottom: 20px;
  color: var(--neon-cyan);
  padding: 0 15px;
}

.hero-description {
  font-size: 1.1rem;
  max-width: 800px;
  margin: 0 auto 40px;
  color: #ddd;
  padding: 0 15px;
}

.stats {
  display: flex;
  justify-content: center;
  gap: 30px;
  margin-bottom: 50px;
  flex-wrap: wrap;
  padding: 0 15px;
}

.stat {
  text-align: center;
  flex: 1;
  min-width: 140px;
}

.stat h3 {
  font-size: 2rem;
  color: var(--neon-pink);
  text-shadow: 0 0 10px var(--neon-pink);
}

.stat p {
  color: var(--text-muted);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 1.5px;
}

.hero-buttons {
  display: flex;
  justify-content: center;
  gap: 15px;
  flex-wrap: wrap;
  margin-bottom: 50px;
  padding: 0 15px;
}

.btn {
  padding: 14px 30px;
  border-radius: 50px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  z-index: 1;
  font-size: 0.9rem;
  white-space: nowrap;
}

.btn-primary {
  background: var(--gradient-primary);
  color: #fff;
  border: none;
  box-shadow: 0 0 20px rgba(255, 0, 127, 0.4);
}

.btn-primary:hover {
  box-shadow: 0 0 30px rgba(255, 0, 127, 0.7);
  transform: translateY(-3px);
}

.btn-secondary {
  background: transparent;
  color: var(--neon-cyan);
  border: 2px solid var(--neon-cyan);
}

.btn-secondary:hover {
  background: var(--neon-cyan);
  color: #000;
  box-shadow: 0 0 20px rgba(0, 243, 255, 0.5);
}

.btn-outline {
  background: transparent;
  color: #fff;
  border: 2px solid #fff;
}

.btn-outline:hover {
  background: #fff;
  color: var(--neon-pink);
  box-shadow: 0 0 20px rgba(255, 255, 255, 0.5);
}

/* Social Icons */
.social-icons {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin-bottom: 30px;
  flex-wrap: wrap;
  padding: 0 15px;
}

.social-icon {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 18px;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 30px;
  color: var(--text-main);
  font-size: 0.9rem;
}

.social-icon:hover {
  border-color: var(--neon-pink);
  background: rgba(255, 0, 127, 0.1);
  box-shadow: 0 0 15px var(--neon-pink);
}

/* Logo Container */
.logos-container {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 40px;
  flex-wrap: wrap;
  padding: 0 15px;
}

.logo-button {
  display: flex;
  align-items: center;
  justify-content: center;
}

.logo-button img {
  height: 35px;
  max-width: 100%;
  filter: grayscale(100%) brightness(200%);
  transition: 0.3s;
  opacity: 0.7;
}

.logo-button:hover img {
  filter: grayscale(0%) brightness(100%);
  opacity: 1;
  transform: scale(1.05);
  drop-shadow: 0 0 10px var(--neon-cyan);
}

/* Live Stats & Cards - IMPROVED */
.live-stats, .nft-status {
  padding: 60px 20px;
  /* background: rgba(255, 255, 255, 0.02); */
  border-top: 1px solid var(--glass-border);
  border-bottom: 1px solid var(--glass-border);
  width: 100%;
  overflow: hidden;
}

.stats-grid, .nft-stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  width: 100%;
}

.stat-card, .nft-stat-card {
  background: var(--bg-panel);
  border: 1px solid var(--glass-border);
  border-radius: var(--border-radius);
  padding: 20px;
  display: flex;
  align-items: center;
  gap: 15px;
  transition: 0.3s;
  position: relative;
  overflow: hidden;
  width: 100%;
}

.stat-card::before, .nft-stat-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: var(--neon-cyan);
  transition: 0.3s;
}

.stat-card:hover, .nft-stat-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  border-color: rgba(255, 255, 255, 0.3);
}

.stat-card:hover::before, .nft-stat-card:hover::before {
  background: var(--neon-pink);
  box-shadow: 0 0 15px var(--neon-pink);
}

.stat-card.highlight, .nft-stat-card.highlight {
  background: linear-gradient(135deg, rgba(255, 0, 127, 0.1), rgba(0, 0, 0, 0));
  border-color: var(--neon-pink);
}

.stat-icon, .nft-stat-icon {
  font-size: 1.8rem;
  color: var(--neon-cyan);
  min-width: 40px;
  text-align: center;
}

.stat-content h3, .nft-stat-content h3 {
  font-size: 1.3rem;
  margin-bottom: 5px;
}

.burn-link {
  color: var(--neon-pink);
  font-size: 0.85rem;
  text-decoration: underline;
}

.connection-status {
  margin-top: 30px;
  text-align: center;
  padding: 0 15px;
}

.status-indicator {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 16px;
  background: rgba(0, 255, 0, 0.1);
  border: 1px solid rgba(0, 255, 0, 0.3);
  border-radius: 20px;
  color: #00ff88;
}

.status-dot {
  width: 10px;
  height: 10px;
  background: #00ff88;
  border-radius: 50%;
  animation: blink 1s infinite;
}

@keyframes blink {
  0%, 100% { opacity: 1; box-shadow: 0 0 10px #00ff88; }
  50% { opacity: 0.5; }
}

.contract-info, .nft-contract-info {
  margin-top: 20px;
  text-align: center;
  font-size: 0.85rem;
  color: var(--text-muted);
  word-break: break-all;
  padding: 0 15px;
}

.contract-link {
  color: var(--neon-cyan);
}

/* Feature Grids */
.about-grid, .security-features, .value-propositions {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 25px;
  padding: 20px 0;
  width: 100%;
}

.feature, .security-feature, .value-prop {
  background: var(--glass-bg);
  padding: 25px 20px;
  border-radius: var(--border-radius);
  border: 1px solid transparent;
  text-align: center;
  transition: 0.3s;
  width: 100%;
}

.feature:hover, .security-feature:hover, .value-prop:hover {
  border-color: var(--neon-purple);
  background: rgba(189, 0, 255, 0.05);
  box-shadow: 0 0 20px rgba(189, 0, 255, 0.2);
}

.feature i, .security-feature i, .value-prop i {
  font-size: 2.2rem;
  margin-bottom: 15px;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.feature h3, .security-feature h3, .value-prop h4 {
  margin-bottom: 15px;
  color: #fff;
  font-size: 1.2rem;
}

.feature p, .security-feature p, .value-prop p {
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* How It Works */
.steps {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 25px;
  padding: 40px 15px;
  width: 100%;
}

.step {
  flex: 1 1 200px;
  min-width: 200px;
  text-align: center;
  position: relative;
  padding: 20px;
  flex: 1 1 250px;
  min-width: 250px;
  background: rgba(255, 0, 127, 0.05);
  padding: 20px;
  border-radius: 10px;
  border: 1px solid var(--neon-pink);
}

.step-number {
  width: 50px;
  height: 50px;
  background: var(--gradient-cyan);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  color: #000;
  margin: 0 auto 20px;
  box-shadow: 0 0 15px var(--neon-cyan);
}

.step-icon {
  font-size: 2rem;
  color: var(--neon-pink);
  margin-bottom: 15px;
  display: block;
}

/* Tokenomics */
.tokenomics-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 40px;
  padding: 0 15px;
  width: 100%;
}

.pie-chart-container {
  position: relative;
  width: 280px;
  height: 280px;
  min-width: 280px;
}

.pie-chart {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: conic-gradient(
    #FF5555 0% 50%,   /* 50% Burned */
    #00E5FF 50% 75%,  /* 25% Liquidity */
    #FFB84D 75% 95%,  /* 20% Mining */
    #9D4EDD 95% 100%  /* 5% Team */
  );
  position: relative;
  box-shadow: 0 0 30px rgba(0, 229, 255, 0.3);
  animation: spin 60s linear infinite;
}

@keyframes spin {
  100% { transform: rotate(360deg); }
}

.pie-center {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 60%;
  height: 60%;
  background: var(--bg-dark);
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border: 4px solid rgba(255, 255, 255, 0.1);
}

.tokenomics-details {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 15px;
  min-width: 280px;
  max-width: 100%;
}

.token-card {
  display: flex;
  align-items: center;
  gap: 15px;
  background: var(--glass-bg);
  padding: 15px;
  border-radius: 12px;
  border-left: 4px solid transparent;
  width: 100%;
}

.token-card:nth-child(1) { border-color: #FF5555; }
.token-card:nth-child(2) { border-color: #00E5FF; }
.token-card:nth-child(3) { border-color: #FFB84D; }
.token-card:nth-child(4) { border-color: #9D4EDD; }

.token-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1.1rem;
  flex-shrink: 0;
}

/* Deflationary Model */
.deflationary-points {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  justify-content: center;
  padding: 0 15px;
}

.deflationary-point {
  flex: 1 1 250px;
  min-width: 250px;
  background: rgba(255, 0, 127, 0.05);
  padding: 20px;
  border-radius: 10px;
  border: 1px solid var(--neon-pink);
}

.deflationary-point i {
  color: var(--neon-pink);
  margin-right: 10px;
}

.deflationary-point h4 {
  display: inline-block;
  color: var(--neon-cyan);
}

/* Roadmap */
.timeline {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
  padding: 40px 15px;
  width: 100%;
}

.timeline::before {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  left: 20px;
  width: 2px;
  background: var(--neon-purple);
}

.timeline-item {
  margin-bottom: 40px;
  padding-left: 60px;
  position: relative;
  width: 100%;
}

.timeline-item::after {
  content: '';
  position: absolute;
  left: 11px;
  top: 0;
  width: 20px;
  height: 20px;
  background: var(--bg-dark);
  border: 3px solid var(--neon-cyan);
  border-radius: 50%;
  box-shadow: 0 0 10px var(--neon-cyan);
}

.timeline-content h4 {
  color: var(--neon-pink);
  margin-bottom: 10px;
  font-size: 1.2rem;
}

.timeline-content ul {
  list-style-position: inside;
  color: var(--text-muted);
  padding-left: 10px;
}

.timeline-content li {
  margin-bottom: 5px;
  font-size: 0.95rem;
}

/* Chart Section */
#dex-chart {
  padding: 60px 15px;
  /* background: #000; */
  width: 100%;
  overflow: hidden;
}

#dexscreener-embed {
  width: 100%;
  overflow: hidden;
}

#dexscreener-embed iframe {
  border-radius: 12px;
  border: 1px solid #333;
  width: 100%;
  min-height: 400px;
}

/* CTA Sections */
.final-cta {
  text-align: center;
  padding: 80px 20px;
  /* background: linear-gradient(rgba(5, 0, 17, 0.9), rgba(5, 0, 17, 0.9)), url('https://picsum.photos/seed/nebula/1200/600') no-repeat center center/cover; */
  position: relative;
  width: 100%;
  overflow: hidden;
}

.final-cta::before {
  content: '';
  position: absolute;
  inset: 0;
  /* background: radial-gradient(circle, rgba(189, 0, 255, 0.2) 0%, rgba(0,0,0,0) 70%); */
}

.final-cta h2 {
  text-shadow: 0 0 20px var(--neon-purple);
  position: relative;
  z-index: 2;
  font-size: 2.2rem;
  padding: 0 15px;
}

.cta-buttons {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: center;
  gap: 15px;
  flex-wrap: wrap;
  padding: 0 15px;
}

/* Community Footer */
footer {
  text-align: center;
  padding: 40px 20px;
  border-top: 1px solid var(--glass-border);
  /* background: #020005; */
  color: #666;
  font-size: 0.85rem;
  width: 100%;
}

.socials {
  text-align: center;
  padding: 50px 20px;
  width: 100%;
}

/* NFT Specifics */
.nft-links {
  margin-top: 30px;
  text-align: center;
  padding: 0 15px;
}

.nft-link {
  display: inline-block;
  margin-top: 10px;
  padding: 10px 20px;
  background: var(--glass-bg);
  border: 1px solid var(--neon-purple);
  border-radius: 5px;
  color: var(--neon-cyan);
  font-size: 0.9rem;
}

.nft-link:hover {
  background: var(--neon-purple);
  color: #fff;
}

/* Responsive Improvements */
@media (min-width: 1024px) {
  .hero h1 {
    font-size: 4.5rem;
  }
  
  .hero h2 {
    font-size: 2.2rem;
  }
  
  .stats {
    gap: 40px;
  }
  
  .stat h3 {
    font-size: 2.5rem;
  }
}

@media (min-width: 769px) {
  .timeline::before {
    left: 50%;
    margin-left: -1px;
  }
  
  .timeline-item {
    width: 50%;
    padding-left: 0;
    padding-right: 40px;
    text-align: right;
  }
  
  .timeline-item:nth-child(even) {
    margin-left: 50%;
    padding-right: 0;
    padding-left: 40px;
    text-align: left;
  }
  
  .timeline-item::after {
    left: auto;
    right: -11px;
  }
  
  .timeline-item:nth-child(even)::after {
    left: -11px;
    right: auto;
  }
}

@media (max-width: 992px) {
  .hero h1 {
    font-size: 3rem;
  }
  
  h2 {
    font-size: 2rem;
  }
  
  .stats {
    gap: 25px;
  }
  
  .stat {
    min-width: 120px;
  }
  
  .stat h3 {
    font-size: 1.8rem;
  }
}

@media (max-width: 768px) {
  .desktop-nav {
    display: none;
  }
  
  .mobile-nav-toggle {
    display: block;
  }
  
  .hero {
    padding-top: 120px;
    padding-bottom: 60px;
  }
  
  .hero h1 {
    font-size: 2.5rem;
  }
  
  .hero h2 {
    font-size: 1.5rem;
  }
  
  .hero-buttons {
    flex-direction: column;
    align-items: center;
    gap: 15px;
  }
  
  .btn {
    width: 100%;
    max-width: 300px;
  }
  
  .stats {
    gap: 20px;
  }
  
  .stat {
    min-width: 45%;
  }
  
  .social-icons {
    flex-direction: column;
    align-items: center;
  }
  
  .social-icon {
    width: 100%;
    max-width: 280px;
    justify-content: center;
  }
  
  .logos-container {
    gap: 15px;
  }
  
  .logo-button img {
    height: 30px;
  }
  
  .tokenomics-container {
    flex-direction: column;
    align-items: center;
  }
  
  .pie-chart-container {
    width: 250px;
    height: 250px;
  }
  
  .steps {
    flex-direction: column;
    align-items: center;
  }
  
  .step {
    width: 100%;
    max-width: 300px;
  }
  
  .timeline::before {
    left: 30px;
  }
  
  .timeline-item {
    padding-left: 70px;
  }
  
  .timeline-item::after {
    left: 21px;
  }
  
  .cta-buttons {
    flex-direction: column;
    align-items: center;
  }
}

@media (max-width: 480px) {
  .hero h1 {
    font-size: 2rem;
  }
  
  .hero h2 {
    font-size: 1.2rem;
  }
  
  h2 {
    font-size: 1.6rem;
  }
  
  .section-description {
    font-size: 1rem;
  }
  
  .stats-grid, .nft-stats-grid,
  .about-grid, .security-features, .value-propositions {
    grid-template-columns: 1fr;
  }
  
  .stat {
    min-width: 100%;
  }
  
  .logos-container {
    gap: 10px;
  }
  
  .logo-button img {
    height: 25px;
  }
  
  .final-cta h2 {
    font-size: 1.8rem;
  }
}

/* Fix for iOS Safari */
@supports (-webkit-touch-callout: none) {
  body {
    -webkit-overflow-scrolling: touch;
  }
  
  .mobile-nav {
    height: -webkit-fill-available;
  }
}

/* Prevent horizontal scroll on all devices */
section, div, header, footer {
  max-width: 100vw;
  box-sizing: border-box;
}