/* === Base Variables === */
:root {
  --primary: #00F0FF;
  --primary-dark: #00A8FF;
  --secondary: #FF00E5;
  --accent: #FFD600;
  --dark: #0A0A12;
  --darker: #050508;
  --light: #F5F5FF;
  --lighter: #FFFFFF;
  --gray: #2A2A3A;
  --light-gray: #3A3A4A;
  --gradient-primary: linear-gradient(135deg, var(--primary), var(--primary-dark));
  --gradient-accent: linear-gradient(135deg, var(--secondary), var(--accent));
  --font-base: 'Space Grotesk', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'Space Mono', monospace;
  --space-xs: 0.25rem;
  --space-sm: 0.5rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2rem;
  --space-xxl: 3rem;
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-full: 9999px;
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.12);
  --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.15);
  --shadow-xl: 0 20px 50px rgba(0, 0, 0, 0.2);
  --shadow-primary: 0 0 20px rgba(0, 240, 255, 0.3);
  --transition-fast: 0.15s ease;
  --transition-normal: 0.3s ease;
  --transition-slow: 0.5s ease;
}

/* === Reset & Base Styles === */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-base);
  line-height: 1.6;
  color: var(--light);
  background-color: var(--dark);
  overflow-x: hidden;
}

h1, h2, h3, h4 {
  line-height: 1.2;
  font-weight: 700;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

button {
  background: none;
  border: none;
  cursor: pointer;
  font-family: inherit;
}

/* === Typography === */
@font-face {
  font-family: 'Space Grotesk';
  src: url('../assets/fonts/grotesk.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Space Grotesk';
  src: url('../assets/fonts/grotesk-bold.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

.text-gradient, .gradient-text {
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* === Layout === */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space-md);
}

.section {
  padding: var(--space-xxl) 0;
}

.section-header {
  margin-bottom: var(--space-xxl);
  max-width: 600px;
}

.section-header.center {
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}

.section-title {
  font-size: 2.5rem;
  margin-bottom: var(--space-md);
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.section-subtitle {
  display: inline-block;
  font-size: 0.875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--lighter);
  margin-bottom: var(--space-sm);
}

.section-description {
  font-size: 1.125rem;
  color: var(--lighter);
}

.center {
  text-align: center;
}

/* === Navigation === */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: rgba(10, 10, 18, 0.95);
  backdrop-filter: blur(10px);
  z-index: 1000;
  padding: var(--space-md) 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--lighter);
}

.logo img {
  width: 100px;
  height: 100px;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: var(--space-lg);
  z-index: 1002;
}

.nav-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 1001;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
}

.nav-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.nav-link {
  font-size: 1rem;
  color: var(--light);
  transition: color var(--transition-fast);
}

.nav-link:hover, .nav-link.active {
  color: var(--primary);
}

.nav-button {
  background: var(--gradient-primary);
  padding: var(--space-sm) var(--space-md);
  border-radius: var(--radius-md);
  font-weight: 700;
  color: var(--darker);
  transition: transform var(--transition-fast);
}

.nav-button:hover {
  transform: translateY(-2px);
}

.mobile-menu-button {
  display: none;
  width: 32px;
  height: 24px;
  position: relative;
  z-index: 1003;
}

.mobile-menu-button span {
  display: block;
  height: 3px;
  background: var(--light);
  margin-bottom: 5px;
  border-radius: var(--radius-sm);
  transition: all var(--transition-normal);
}

.mobile-menu-button.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.mobile-menu-button.active span:nth-child(2) {
  opacity: 0;
}

.mobile-menu-button.active span:nth-child(3) {
  transform: rotate(-45deg) translate(7px, -7px);
}

/* === Hero Section === */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: transparent;
  overflow: hidden;
  padding-top: 80px;
}

.hero-content {
  max-width: 600px;
  z-index: 2;
}

.hero-title {
  font-size: clamp(2.5rem, 5vw, 4rem);
  margin-bottom: var(--space-lg);
  line-height: 1.1;
}

.hero-subtitle {
  font-size: clamp(1.25rem, 2vw, 1.5rem);
  color: var(--lighter);
  margin-bottom: var(--space-md);
}

.hero-description {
  font-size: clamp(1rem, 1.2vw, 1.125rem);
  color: var(--lighter);
  margin-bottom: var(--space-xl);
  line-height: 1.6;
}

.hero-cta {
  display: flex;
  gap: var(--space-md);
  flex-wrap: wrap;
  margin-bottom: var(--space-xl);
}

.hero-stats {
  display: flex;
  gap: var(--space-md);
  flex-wrap: wrap;
}

.stat-item {
  background: rgba(42, 42, 58, 0.7);
  padding: var(--space-md);
  border-radius: var(--radius-md);
  text-align: center;
  min-width: 120px;
  backdrop-filter: blur(5px);
  border: 1px solid rgba(0, 240, 255, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.stat-item:hover {
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(0, 240, 255, 0.2);
}

.stat-value {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: var(--space-xs);
}

.stat-label {
  font-size: 0.875rem;
  color: var(--lighter);
  opacity: 0.9;
}

.hero-image {
  position: absolute;
  right: 10%;
  bottom: 0;
  max-width: 40%;
  z-index: 1;
  filter: drop-shadow(0 10px 20px rgba(0, 240, 255, 0.3));
  transition: filter 0.3s ease;
}

.hero-image:hover {
  filter: drop-shadow(0 15px 30px rgba(0, 240, 255, 0.5));
}

.hero-image img {
  width: 100%;
  max-width: 500px;
  height: auto;
}

.gif-container {
  position: relative;
}

.gif-container::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at center, 
    rgba(0, 240, 255, 0.3) 0%, 
    transparent 70%);
  z-index: -1;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.gif-container:hover::after {
  opacity: 1;
}

/* === Buttons === */
.primary-button {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  background: var(--gradient-primary);
  padding: var(--space-md) var(--space-xl);
  border-radius: var(--radius-md);
  font-weight: 700;
  color: var(--darker);
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.primary-button:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-primary);
}

.primary-button.pulse {
  animation: pulse 2s infinite ease-in-out;
}

.nav-button {
  background: var(--gradient-primary);
  padding: var(--space-sm) var(--space-md);
  border-radius: var(--radius-md);
  font-weight: 700;
  color: var(--darker);
  transition: transform var(--transition-fast);
}

.nav-button:hover {
  transform: translateY(-2px);
}

.nav-button.pulse {
  animation: pulse 2s infinite ease-in-out;
}

.primary-button.small {
  padding: var(--space-sm) var(--space-md);
  font-size: 0.875rem;
}

.secondary-button {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  background: transparent;
  border: 2px solid var(--primary);
  padding: calc(var(--space-md) - 2px) calc(var(--space-lg) - 2px);
  border-radius: var(--radius-md);
  font-weight: 700;
  color: var(--primary);
  transition: background var(--transition-fast), transform var(--transition-fast);
}

.secondary-button:hover {
  background: rgba(0, 240, 255, 0.1);
  transform: translateY(-2px);
}

.secondary-button.small {
  padding: calc(var(--space-sm) - 2px) calc(var(--space-md) - 2px);
  font-size: 0.875rem;
}

/* === Cards === */
.grid-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: var(--space-lg);
  margin-bottom: var(--space-xl);
}

.card {
  background: var(--gray);
  padding: var(--space-lg);
  border-radius: var(--radius-lg);
  transition: transform var(--transition-normal), box-shadow var(--transition-normal);
  box-shadow: var(--shadow-md);
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.card-icon {
  width: 48px;
  height: 48px;
  background: rgba(0, 240, 255, 0.1);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-md);
}

.card-icon svg {
  stroke: var(--primary);
}

.card-title {
  font-size: 1.5rem;
  margin-bottom: var(--space-sm);
  color: var(--lighter);
}

.card-text {
  color: var(--lighter);
}

/* === Tokenomics Section === */
.tokenomics-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: var(--space-lg);
  margin-bottom: var(--space-xl);
}

.tokenomics-item {
  background: var(--gray);
  padding: var(--space-lg);
  border-radius: var(--radius-lg);
  text-align: center;
  box-shadow: var(--shadow-md);
}

.tokenomics-value {
  font-size: 2rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: var(--space-sm);
}

.tokenomics-label {
  font-size: 1rem;
  color: var(--lighter);
}

.fair-launch-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: var(--space-md);
}

.fair-launch-list li {
  font-size: 1rem;
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  justify-content: center;
  color: var(--lighter);
}

.contract-info {
  margin-top: var(--space-xl);
}

.contract-address {
  font-family: var(--font-mono);
  font-size: 1rem;
  color: var(--primary);
  word-break: break-all;
}

#token-distribution-chart {
  max-width: 400px;
  max-height: 400px;
  margin: 0 auto;
}

/* === Community === */
.community-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--space-lg);
  margin-bottom: var(--space-xl);
}

.community-card {
  background: var(--gray);
  padding: var(--space-lg);
  border-radius: var(--radius-lg);
  text-align: center;
  transition: transform var(--transition-normal), box-shadow var(--transition-normal);
  box-shadow: var(--shadow-md);
}

.community-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.community-icon {
  width: 48px;
  height: 48px;
  background: rgba(0, 240, 255, 0.1);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto var(--space-md);
}

.community-icon svg {
  stroke: var(--primary);
}

.community-card h3 {
  font-size: 1.25rem;
  margin-bottom: var(--space-sm);
  color: var(--lighter);
}

.community-card p {
  color: var(--lighter);
  margin-bottom: var(--space-sm);
}

.community-link {
  font-family: var(--font-mono);
  color: var(--primary);
}

.twitter-feed {
  margin-top: var(--space-xl);
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

.twitter-timeline {
  width: 100%;
}

/* === Roadmap === */
.roadmap-container {
  max-width: 900px;
  margin: 0 auto;
  padding: var(--space-xl) 0;
  position: relative;
}

.roadmap-timeline {
  position: relative;
  padding: var(--space-lg) 0;
}

.roadmap-timeline::before {
  content: '';
  position: absolute;
  left: 20px;
  top: 0;
  width: 4px;
  height: 100%;
  background: linear-gradient(to bottom, var(--primary), var(--primary-dark));
  z-index: 1;
}

.roadmap-phase {
  position: relative;
  margin-bottom: var(--space-xl);
  padding: var(--space-lg) var(--space-md);
  background: var(--gray);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  transition: transform var(--transition-normal), box-shadow var(--transition-normal);
  z-index: 2;
}

.roadmap-phase:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.roadmap-phase::after {
  content: '';
  position: absolute;
  left: -30px;
  top: 20px;
  width: 16px;
  height: 16px;
  background: var(--primary);
  border: 3px solid var(--darker);
  border-radius: var(--radius-full);
  transition: transform var(--transition-fast);
}

.roadmap-phase:hover::after {
  transform: scale(1.2);
}

.phase-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--space-md);
}

.phase-header h2 {
  font-size: 1.75rem;
  color: var(--lighter);
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.phase-status {
  font-size: 0.875rem;
  font-weight: 700;
  padding: var(--space-sm) var(--space-md);
  border-radius: var(--radius-full);
  text-transform: uppercase;
}

.phase-status.completed {
  background: rgba(0, 255, 0, 0.2);
  color: #00FF00;
}

.phase-status.in-progress {
  background: rgba(255, 214, 0, 0.2);
  color: #FFD600;
}

.phase-status.upcoming {
  background: rgba(0, 240, 255, 0.2);
  color: var(--primary);
}

.phase-progress {
  height: 6px;
  background: var(--light-gray);
  border-radius: var(--radius-sm);
  margin-bottom: var(--space-md);
  overflow: hidden;
}

.phase-progress-bar {
  height: 100%;
  background: var(--gradient-primary);
  transition: width var(--transition-slow);
}

.phase-items {
  list-style: none;
}

.phase-items li {
  font-size: 1.125rem;
  margin-bottom: var(--space-sm);
  display: flex;
  align-items: flex-start;
  gap: var(--space-sm);
  color: var(--lighter);
}

.phase-items .emoji {
  font-size: 1.5rem;
  flex-shrink: 0;
}

/* === Footer === */
.footer {
  background: var(--darker);
  padding: var(--space-xxl) 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  position: relative;
  z-index: 1;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--space-lg);
  margin-bottom: var(--space-xl);
}

.footer-brand p {
  color: var(--lighter);
  margin: var(--space-md) 0;
}

.footer-social {
  display: flex;
  gap: var(--space-md);
}

.footer-social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: var(--gray);
  border-radius: var(--radius-md);
  transition: background var(--transition-fast);
}

.footer-social a:hover {
  background: var(--primary);
}

.footer-social svg {
  stroke: var(--light);
}

.footer-links h4 {
  font-size: 1.25rem;
  margin-bottom: var(--space-md);
  color: var(--lighter);
}

.footer-links a {
  display: block;
  margin-bottom: var(--space-sm);
  color: var(--lighter);
  transition: color var(--transition-fast);
}

.footer-links a:hover {
  color: var(--primary);
}

.footer-cta h4 {
  font-size: 1.25rem;
  margin-bottom: var(--space-md);
  color: var(--lighter);
}

.solana-badge {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  margin-top: var(--space-md);
}

.solana-badge span {
  font-size: 0.875rem;
  color: var(--lighter);
}

.footer-bottom {
  text-align: center;
  font-size: 0.875rem;
  color: var(--lighter);
}

.footer-bottom p {
  margin-bottom: var(--space-sm);
}

/* === Particle Background === */
#particles-bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  background: transparent;
}

/* Ensure content is above particles */
.navbar,
.hero,
.section,
.footer {
  position: relative;
  z-index: 1;
}

/* === Responsive Design === */
@media (max-width: 1024px) {
  .hero-image {
    right: 5%;
    max-width: 50%;
  }
}

@media (max-width: 768px) {
  /* Navigation */
  .navbar {
    padding: 15px 0;
    z-index: 1000;
  }

  .navbar .container {
    flex-wrap: wrap;
    position: relative;
  }

  .nav-menu {
    position: fixed;
    top: 80px;
    left: 0;
    width: 100%;
    background: rgba(10, 10, 18, 0.98);
    backdrop-filter: blur(10px);
    flex-direction: column;
    align-items: center;
    padding: 20px 0;
    transform: translateY(-150%);
    transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    z-index: 1002;
    border-top: 1px solid rgba(0, 240, 255, 0.2);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  }

  .nav-menu.active {
    transform: translateY(0);
  }

  .nav-link {
    width: 90%;
    text-align: center;
    padding: 15px 0;
    margin: 8px auto;
    background: rgba(42, 42, 58, 0.7);
    border-radius: var(--radius-md);
    transition: all 0.3s ease;
  }

  .nav-link:hover, .nav-link.active {
    background: rgba(0, 240, 255, 0.1);
  }

  .primary-button, .nav-button {
    display: block;
    width: 90%;
    margin: 8px auto;
  }

  .mobile-menu-button {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
    background: transparent;
    border: none;
    cursor: pointer;
    z-index: 1003;
  }

  .mobile-menu-button span {
    display: block;
    height: 3px;
    width: 100%;
    background: var(--primary);
    border-radius: 3px;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  }

  .mobile-menu-button.active span:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
  }

  .mobile-menu-button.active span:nth-child(2) {
    opacity: 0;
  }

  .mobile-menu-button.active span:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
  }

  /* Hero Section */
  .hero {
    min-height: auto;
    padding: var(--space-xxl) 0;
    padding-top: 100px;
    text-align: center;
    flex-direction: column;
  }

  .hero-content {
    max-width: 100%;
    margin-bottom: var(--space-xl);
  }

  .hero-title {
    font-size: 2.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .hero-subtitle {
    font-size: 1.25rem;
  }

  .hero-image {
    position: relative;
    right: auto;
    left: auto;
    max-width: 80%;
    margin: var(--space-lg) auto 0;
    display: flex;
    justify-content: center;
  }

  .hero-image img {
    max-width: 100%;
    height: auto;
  }

  .hero-cta {
    justify-content: center;
  }

  /* Sections */
  .section {
    padding: var(--space-xl) 0;
  }

  .section-title {
    font-size: 2rem;
  }

  /* Cards */
  .grid-cards {
    grid-template-columns: 1fr;
    gap: var(--space-md);
  }

  .tokenomics-grid {
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  }

  .community-grid {
    grid-template-columns: 1fr;
  }

  /* Footer */
  .footer-grid {
    grid-template-columns: 1fr;
    text-align: center;
    gap: var(--space-xl);
  }

  .footer-social {
    justify-content: center;
  }

  .solana-badge {
    justify-content: center;
    margin-top: var(--space-md);
  }

  .footer-links {
    margin-bottom: var(--space-md);
  }
}

@media (max-width: 480px) {
  .hero {
    padding-top: 80px;
    padding-bottom: 60px;
  }

  .hero-title {
    font-size: 2.2rem;
  }

  .hero-subtitle {
    font-size: 1rem;
  }

  .hero-image {
    max-width: 95%;
    margin-top: 30px;
  }

  .hero-cta {
    flex-direction: column;
    gap: 12px;
  }

  .hero-cta .primary-button,
  .hero-cta .secondary-button {
    width: 100%;
    justify-content: center;
  }

  .section-title {
    font-size: 1.75rem;
  }

  .card {
    padding: var(--space-md);
  }

  .community-card {
    padding: var(--space-md);
  }

  .footer-cta .primary-button {
    width: 100%;
  }
}