/* Vortex Market - Enhanced Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --primary-purple: #b06df2;
  --primary-green: #13950e;
  --dark-bg: #0a0a0f;
  --darker-bg: #000;
  --text-light: #eee;
  --text-muted: #aaa;
  --text-dark: #666;
  --glass-bg: rgba(255, 255, 255, 0.05);
  --glass-border: rgba(176, 109, 242, 0.3);
  --shadow-purple: rgba(176, 109, 242, 0.3);
  --shadow-green: rgba(19, 149, 14, 0.5);
}

body {
  font-family: 'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: linear-gradient(135deg, var(--dark-bg) 0%, var(--darker-bg) 100%);
  color: var(--text-light);
  overflow-x: hidden;
  min-height: 100vh;
  line-height: 1.6;
  font-size: 16px;
}

/* Enhanced Canvas Background */
#canvas-bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  opacity: 0.9;
  background: radial-gradient(ellipse at center, rgba(176, 109, 242, 0.1) 0%, transparent 70%);
}

/* Enhanced Hero Section */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  position: relative;
  padding: 2rem;
  background: linear-gradient(180deg, transparent 0%, rgba(176, 109, 242, 0.05) 50%, transparent 100%);
}

.hero-logo {
  width: min(450px, 80vw);
  height: auto;
  margin-bottom: 2.5rem;
  filter: drop-shadow(0 0 40px var(--primary-purple)) drop-shadow(0 0 80px rgba(176, 109, 242, 0.4));
  animation: pulse-glow 4s ease-in-out infinite, float 6s ease-in-out infinite;
  transition: transform 0.3s ease;
}

.hero-logo:hover {
  transform: scale(1.05);
}

@keyframes pulse-glow {
  0%, 100% { 
    filter: drop-shadow(0 0 40px var(--primary-purple)) drop-shadow(0 0 80px rgba(176, 109, 242, 0.4)); 
  }
  50% { 
    filter: drop-shadow(0 0 60px var(--primary-purple)) drop-shadow(0 0 120px rgba(176, 109, 242, 0.6)); 
  }
}

@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-10px); }
}

.hero-title {
  font-size: clamp(2.5rem, 8vw, 4.5rem);
  font-weight: 700;
  margin-bottom: 1.5rem;
  background: linear-gradient(45deg, var(--primary-purple), var(--primary-green), var(--primary-purple));
  background-size: 200% 200%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-shadow: 0 0 30px var(--primary-purple);
  animation: gradient-shift 3s ease-in-out infinite;
  letter-spacing: -0.02em;
}

@keyframes gradient-shift {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

.hero-subtitle {
  font-size: clamp(1.1rem, 3vw, 1.6rem);
  color: var(--text-muted);
  margin-bottom: 2.5rem;
  max-width: 900px;
  font-weight: 400;
  opacity: 0.9;
}

.typing-text {
  font-family: 'IBM Plex Mono', 'Courier New', monospace;
  font-size: clamp(1rem, 2.5vw, 1.3rem);
  color: var(--primary-green);
  border-right: 3px solid var(--primary-green);
  animation: blink 1.2s infinite;
  min-height: 1.5em;
  display: inline-block;
}

@keyframes blink {
  0%, 50% { border-color: var(--primary-green); }
  51%, 100% { border-color: transparent; }
}

/* Enhanced Mirror Section */
.mirror-box {
  background: var(--glass-bg);
  border: 2px solid var(--primary-purple);
  border-radius: 20px;
  padding: 3rem 2rem;
  margin: 4rem auto;
  max-width: 900px;
  text-align: center;
  backdrop-filter: blur(15px);
  box-shadow: 
    0 0 40px var(--shadow-purple),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
  position: relative;
  overflow: hidden;
}

.mirror-box::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
  animation: shimmer 3s infinite;
}

@keyframes shimmer {
  0% { left: -100%; }
  100% { left: 100%; }
}

.mirror-box h2 {
  font-family: 'IBM Plex Mono', monospace;
  color: var(--primary-purple);
  margin-bottom: 2rem;
  font-size: clamp(1.4rem, 4vw, 2rem);
  text-shadow: 0 0 25px var(--primary-purple);
  font-weight: 600;
  position: relative;
  z-index: 1;
}

.mirror-link {
  display: block;
  font-family: 'IBM Plex Mono', monospace;
  color: var(--primary-green);
  text-decoration: none;
  padding: 1rem 1.5rem;
  margin: 0.8rem 0;
  background: rgba(19, 149, 14, 0.1);
  border: 2px solid var(--primary-green);
  border-radius: 12px;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  font-size: clamp(0.9rem, 2.5vw, 1.2rem);
  font-weight: 500;
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.mirror-link::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(19, 149, 14, 0.2), transparent);
  transition: left 0.5s ease;
  z-index: -1;
}

.mirror-link:hover::before {
  left: 100%;
}

.mirror-link:hover {
  background: rgba(19, 149, 14, 0.2);
  box-shadow: 
    0 0 30px var(--shadow-green),
    0 8px 25px rgba(19, 149, 14, 0.3);
  transform: translateY(-3px) scale(1.02);
  border-color: #1db50f;
}

.mirror-link:active {
  transform: translateY(-1px) scale(1.01);
}

/* Enhanced Section Styles */
.section {
  padding: 5rem 2rem;
  max-width: 1400px;
  margin: 0 auto;
  position: relative;
}

.section-title {
  font-size: clamp(2rem, 6vw, 3rem);
  color: var(--primary-purple);
  text-align: center;
  margin-bottom: 3rem;
  text-shadow: 0 0 30px var(--primary-purple);
  font-weight: 700;
  letter-spacing: -0.01em;
  position: relative;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 3px;
  background: linear-gradient(90deg, var(--primary-purple), var(--primary-green));
  border-radius: 2px;
}

.section-content {
  font-size: clamp(1rem, 2.5vw, 1.2rem);
  line-height: 1.8;
  color: var(--text-light);
  text-align: center;
  max-width: 900px;
  margin: 0 auto;
  opacity: 0.95;
}

/* Enhanced Registration Steps */
.registration-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2.5rem;
  margin: 4rem 0;
}

.step-card {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 20px;
  padding: 2.5rem 2rem;
  text-align: center;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  backdrop-filter: blur(15px);
  position: relative;
  overflow: hidden;
}

.step-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--primary-purple), var(--primary-green));
  transform: scaleX(0);
  transition: transform 0.3s ease;
}

.step-card:hover::before {
  transform: scaleX(1);
}

.step-card:hover {
  transform: translateY(-15px) rotateX(5deg);
  box-shadow: 
    0 25px 50px var(--shadow-purple),
    0 0 0 1px var(--primary-purple);
  border-color: var(--primary-purple);
}

.step-number {
  font-size: 2.5rem;
  color: var(--primary-green);
  font-weight: 700;
  margin-bottom: 1.5rem;
  text-shadow: 0 0 20px var(--primary-green);
}

.step-title {
  font-size: 1.4rem;
  color: var(--primary-purple);
  margin-bottom: 1.5rem;
  font-weight: 600;
}

.step-description {
  color: var(--text-muted);
  line-height: 1.7;
  font-size: 1rem;
}

.step-image {
  width: 100%;
  max-width: 320px;
  height: auto;
  border-radius: 12px;
  margin: 1.5rem 0;
  border: 1px solid var(--glass-border);
  transition: transform 0.3s ease;
}

.step-image:hover {
  transform: scale(1.05);
}

/* Enhanced Crypto Panel */
.crypto-panel {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2.5rem;
  margin: 4rem 0;
}

.crypto-card {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 20px;
  padding: 2.5rem 2rem;
  text-align: center;
  backdrop-filter: blur(15px);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.crypto-card::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  background: radial-gradient(circle, var(--primary-purple) 0%, transparent 70%);
  transition: all 0.4s ease;
  transform: translate(-50%, -50%);
  opacity: 0;
}

.crypto-card:hover::after {
  width: 200px;
  height: 200px;
  opacity: 0.1;
}

.crypto-card:hover {
  transform: scale(1.08) rotateY(5deg);
  box-shadow: 0 0 40px var(--shadow-purple);
  border-color: var(--primary-purple);
}

.crypto-symbol {
  font-size: 2.2rem;
  color: var(--primary-green);
  font-weight: 700;
  margin-bottom: 1.5rem;
  text-shadow: 0 0 15px var(--primary-green);
}

.crypto-price {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 1.6rem;
  color: var(--primary-purple);
  margin-bottom: 0.8rem;
  font-weight: 600;
}

.crypto-change {
  font-size: 1.1rem;
  font-weight: 500;
}

/* Enhanced FAQ Section */
.faq-container {
  max-width: 900px;
  margin: 0 auto;
}

.faq-item {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 15px;
  margin-bottom: 1.5rem;
  overflow: hidden;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
}

.faq-item:hover {
  border-color: var(--primary-purple);
  box-shadow: 0 5px 20px rgba(176, 109, 242, 0.2);
}

.faq-question {
  padding: 2rem;
  cursor: pointer;
  font-weight: 600;
  color: var(--primary-purple);
  border-bottom: 1px solid rgba(176, 109, 242, 0.2);
  transition: all 0.3s ease;
  font-size: 1.1rem;
  position: relative;
}

.faq-question::after {
  content: '+';
  position: absolute;
  right: 2rem;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.5rem;
  transition: transform 0.3s ease;
}

.faq-question.active::after {
  transform: translateY(-50%) rotate(45deg);
}

.faq-question:hover {
  background: rgba(176, 109, 242, 0.1);
  color: #c47ef5;
}

.faq-answer {
  padding: 0 2rem;
  max-height: 0;
  overflow: hidden;
  transition: all 0.4s ease;
  color: var(--text-light);
  line-height: 1.7;
}

.faq-answer.active {
  padding: 2rem;
  max-height: 300px;
}

/* Enhanced Gallery */
.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 2.5rem;
  margin: 4rem 0;
}

.gallery-item {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  transition: all 0.4s ease;
  border: 1px solid var(--glass-border);
  background: var(--glass-bg);
  backdrop-filter: blur(10px);
}

.gallery-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(45deg, var(--primary-purple), var(--primary-green));
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 1;
}

.gallery-item:hover::before {
  opacity: 0.1;
}

.gallery-item:hover {
  transform: scale(1.05) rotateZ(1deg);
  box-shadow: 0 0 40px var(--shadow-purple);
}

.gallery-image {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.3s ease;
}

.gallery-item:hover .gallery-image {
  transform: scale(1.1);
}

/* Enhanced Footer */
.footer {
  background: linear-gradient(135deg, rgba(0, 0, 0, 0.9) 0%, rgba(10, 10, 15, 0.95) 100%);
  padding: 4rem 2rem 2rem;
  text-align: center;
  border-top: 1px solid var(--glass-border);
  position: relative;
  overflow: hidden;
}

.footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--primary-purple), transparent);
}

.footer-logo {
  width: 220px;
  height: auto;
  margin-bottom: 1.5rem;
  filter: drop-shadow(0 0 20px var(--primary-purple));
  transition: transform 0.3s ease;
}

.footer-logo:hover {
  transform: scale(1.05);
}

.footer-text {
  color: var(--text-muted);
  margin-bottom: 1.5rem;
  font-size: 1.1rem;
  font-weight: 500;
}

.footer-copyright {
  color: var(--text-dark);
  font-size: 0.95rem;
  opacity: 0.8;
}

/* Enhanced Responsive Design */
@media (max-width: 1200px) {
  .section {
    padding: 4rem 1.5rem;
  }
}

@media (max-width: 768px) {
  .hero {
    padding: 1.5rem;
  }
  
  .hero-logo {
    width: min(350px, 90vw);
    margin-bottom: 2rem;
  }
  
  .mirror-box {
    padding: 2rem 1.5rem;
    margin: 3rem 1rem;
  }
  
  .registration-steps {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  .step-card {
    padding: 2rem 1.5rem;
  }
  
  .crypto-panel {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  .faq-question {
    padding: 1.5rem;
    font-size: 1rem;
  }
  
  .faq-question::after {
    right: 1.5rem;
  }
  
  .faq-answer.active {
    padding: 1.5rem;
  }
}

@media (max-width: 480px) {
  .hero {
    padding: 1rem;
  }
  
  .mirror-box {
    padding: 1.5rem 1rem;
    margin: 2rem 0.5rem;
  }
  
  .mirror-link {
    padding: 0.8rem 1rem;
    font-size: 0.9rem;
  }
  
  .step-card {
    padding: 1.5rem 1rem;
  }
  
  .crypto-card {
    padding: 2rem 1.5rem;
  }
}

/* Performance Optimizations */
* {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img {
  max-width: 100%;
  height: auto;
}

/* Accessibility Improvements */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* Focus styles for accessibility */
.mirror-link:focus,
.faq-question:focus {
  outline: 2px solid var(--primary-purple);
  outline-offset: 2px;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
  :root {
    --text-light: #ffffff;
    --text-muted: #cccccc;
    --glass-bg: rgba(255, 255, 255, 0.1);
  }
}

