/* Base Styles */
:root {
  --primary: #6e45e2;
  --secondary: #88d3ce;
  --dark: #1a1a2e;
  --darker: #0f0f1a;
  --light: #6d6bff;
  --accent: #d567f6;
  --glow: 0 0 15px rgba(110, 69, 226, 0.7);
  --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background-color: var(--dark);
  color: var(--light);
  overflow-x: hidden;
  line-height: 1.6;
}

/* Particles Background */
#particles-js {
  position: fixed;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  z-index: -1;
  background: linear-gradient(to bottom, var(--darker), var(--dark));
}

/* Header Styles */
.header {
  position: fixed;
  top: 0;
  width: 100%;
  padding: 1.5rem 5%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 100;
  background: rgba(26, 26, 46, 0.8);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(110, 69, 226, 0.2);
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--light);
  text-decoration: none;
  transition: var(--transition);
}

.logo:hover {
  color: var(--accent);
  text-shadow: var(--glow);
}

.logo-icon {
  width: 40px;
  height: 40px;
  filter: drop-shadow(0 0 5px rgba(110, 69, 226, 0.7));
}

.nav-links {
  display: flex;
  gap: 2rem;
}

.nav-link {
  position: relative;
  color: var(--light);
  text-decoration: none;
  font-weight: 500;
  padding: 0.5rem 0;
  transition: var(--transition);
}

.nav-link:hover {
  color: var(--accent);
}

.nav-link::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: 0;
  left: 0;
  background-color: var(--accent);
  transition: var(--transition);
}

.nav-link:hover::after {
  width: 100%;
}

/* Hero Section */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 5%;
  padding-top: 8rem;
  position: relative;
  overflow: hidden;
}

.hero-content {
  max-width: 600px;
  z-index: 10;
}

.hero-title {
  font-size: 5rem;
  font-weight: 800;
  margin-bottom: 1rem;
  background: linear-gradient(to right, var(--primary), var(--secondary));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  position: relative;
}

.hero-subtitle {
  font-size: 1.5rem;
  margin-bottom: 2rem;
  color: var(--secondary);
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  margin-top: 2rem;
}

.btn {
  padding: 0.8rem 1.5rem;
  border-radius: 50px;
  font-weight: 600;
  text-decoration: none;
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.btn-primary {
  background-color: var(--primary);
  color: white;
  border: 2px solid var(--primary);
}

.btn-primary:hover {
  background-color: transparent;
  box-shadow: var(--glow);
}

.btn-secondary {
  background-color: transparent;
  color: var(--light);
  border: 2px solid var(--light);
}

.btn-secondary:hover {
  background-color: rgba(255, 255, 255, 0.1);
  border-color: var(--accent);
  color: var(--accent);
}

.hero-image {
  position: relative;
  z-index: 5;
}

.hero-image img {
  max-width: 500px;
  width: 100%;
  animation: float 6s ease-in-out infinite;
  filter: drop-shadow(0 0 20px rgba(110, 69, 226, 0.5));
}

@keyframes float {
  0% { transform: translateY(0px); }
  50% { transform: translateY(-20px); }
  100% { transform: translateY(0px); }
}

/* Section Styles */
.section {
  padding: 6rem 5%;
  position: relative;
}

.section.dark {
  background: rgba(15, 15, 26, 0.7);
  backdrop-filter: blur(10px);
}

.section-content {
  max-width: 1200px;
  margin: 0 auto;
}

.section-title {
  font-size: 3rem;
  margin-bottom: 3rem;
  text-align: center;
  position: relative;
  display: inline-block;
  left: 50%;
  transform: translateX(-50%);
}

.section-title::after {
  content: '';
  position: absolute;
  width: 50%;
  height: 3px;
  bottom: -10px;
  left: 25%;
  background: linear-gradient(to right, var(--primary), var(--secondary));
  border-radius: 3px;
}

/* About Section */
.about-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-bottom: 3rem;
}

.about-card {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 15px;
  padding: 2rem;
  transition: var(--transition);
  border: 1px solid rgba(110, 69, 226, 0.2);
}

.about-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--glow);
  border-color: var(--primary);
}

.card-icon {
  width: 60px;
  height: 60px;
  background: linear-gradient(to right, var(--primary), var(--secondary));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  font-size: 1.5rem;
  color: white;
}

.about-card h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: var(--accent);
}

.norse-quote {
  font-size: 1.2rem;
  font-style: italic;
  text-align: center;
  max-width: 800px;
  margin: 3rem auto;
  padding: 2rem;
  border-left: 3px solid var(--accent);
  background: rgba(110, 69, 226, 0.1);
  position: relative;
}

.norse-quote::before, .norse-quote::after {
  content: '"';
  font-size: 2rem;
  color: var(--accent);
}

/* Tokenomics Section */
.tokenomics-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-bottom: 3rem;
}

.tokenomics-card {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 15px;
  padding: 2rem;
  text-align: center;
  transition: var(--transition);
  border: 1px solid rgba(110, 69, 226, 0.2);
}

.tokenomics-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--glow);
}

.big-number {
  font-size: 2.5rem;
  font-weight: 700;
  background: linear-gradient(to right, var(--primary), var(--secondary));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin: 0.5rem 0;
}

.chart-container {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 15px;
  padding: 2rem;
  margin-top: 3rem;
  border: 1px solid rgba(110, 69, 226, 0.2);
}

/* Ecosystem Section */
.ecosystem-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.ecosystem-card {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 15px;
  padding: 2rem;
  text-align: center;
  transition: var(--transition);
  text-decoration: none;
  color: var(--light);
  border: 1px solid rgba(110, 69, 226, 0.2);
}

.ecosystem-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--glow);
  border-color: var(--primary);
}

.ecosystem-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 1rem;
  background: linear-gradient(to right, var(--primary), var(--secondary));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  color: rgb(0, 0, 0);
}

.ecosystem-card h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: var(--accent);
}

/* Footer */
.footer {
  background: rgba(15, 15, 26, 0.9);
  padding: 3rem 5%;
  text-align: center;
  border-top: 1px solid rgba(110, 69, 226, 0.2);
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.5rem;
  font-weight: 700;
}

.footer-links {
  display: flex;
  gap: 1.5rem;
}

.footer-links a {
  color: var(--light);
  font-size: 1.5rem;
  transition: var(--transition);
}

.footer-links a:hover {
  color: var(--accent);
  transform: translateY(-3px);
}

.footer-bottom {
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Animations */
@keyframes pulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.05); }
  100% { transform: scale(1); }
}

.pulse {
  animation: pulse 2s infinite;
}

.glitch {
  position: relative;
}

.glitch::before, .glitch::after {
  content: attr(data-text);
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--dark);
}

.glitch::before {
  left: 2px;
  text-shadow: -2px 0 #4400ff;
  clip: rect(44px, 450px, 56px, 0);
  animation: glitch-anim-1 2s infinite linear alternate-reverse;
}

.glitch::after {
  left: -2px;
  text-shadow: -2px 0 #00b7ff, 2px 2px #ff0000;
  clip: rect(44px, 450px, 56px, 0);
  animation: glitch-anim-2 2s infinite linear alternate-reverse;
}

@keyframes glitch-anim-1 {
  0% { clip: rect(32px, 9999px, 28px, 0); }
  10% { clip: rect(13px, 9999px, 37px, 0); }
  20% { clip: rect(45px, 9999px, 33px, 0); }
  30% { clip: rect(31px, 9999px, 94px, 0); }
  40% { clip: rect(88px, 9999px, 98px, 0); }
  50% { clip: rect(9px, 9999px, 98px, 0); }
  60% { clip: rect(37px, 9999px, 17px, 0); }
  70% { clip: rect(77px, 9999px, 34px, 0); }
  80% { clip: rect(55px, 9999px, 49px, 0); }
  90% { clip: rect(10px, 9999px, 2px, 0); }
  100% { clip: rect(35px, 9999px, 53px, 0); }
}

@keyframes glitch-anim-2 {
  0% { clip: rect(65px, 9999px, 119px, 0); }
  10% { clip: rect(79px, 9999px, 66px, 0); }
  20% { clip: rect(101px, 9999px, 74px, 0); }
  30% { clip: rect(10px, 9999px, 60px, 0); }
  40% { clip: rect(2px, 9999px, 60px, 0); }
  50% { clip: rect(23px, 9999px, 89px, 0); }
  60% { clip: rect(64px, 9999px, 24px, 0); }
  70% { clip: rect(115px, 9999px, 15px, 0); }
  80% { clip: rect(52px, 9999px, 109px, 0); }
  90% { clip: rect(42px, 9999px, 84px, 0); }
  100% { clip: rect(82px, 9999px, 23px, 0); }
}

.floating {
  animation: floating 3s ease-in-out infinite;
}

@keyframes floating {
  0% { transform: translateY(0px); }
  50% { transform: translateY(-15px); }
  100% { transform: translateY(0px); }
}

/* Scroll Animations */
[data-scroll] {
  opacity: 0;
  transition: all 1s;
}

[data-scroll="fade-in"] {
  opacity: 1;
}

[data-scroll="slide-up"] {
  opacity: 1;
  transform: translateY(0);
}

[data-scroll="slide-down"] {
  opacity: 1;
  transform: translateY(0);
}

[data-scroll="slide-left"] {
  opacity: 1;
  transform: translateX(0);
}

[data-scroll="slide-right"] {
  opacity: 1;
  transform: translateX(0);
}

/* Responsive Styles */
@media (max-width: 992px) {
  .hero {
      flex-direction: column;
      text-align: center;
      padding-top: 10rem;
  }

  .hero-content {
      margin-bottom: 3rem;
  }

  .hero-title {
      font-size: 3.5rem;
  }

  .hero-buttons {
      justify-content: center;
  }
}

@media (max-width: 768px) {
  .header {
      flex-direction: column;
      gap: 1rem;
      padding: 1rem;
  }

  .nav-links {
      gap: 1rem;
  }

  .section-title {
      font-size: 2.5rem;
  }
}

@media (max-width: 576px) {
  .hero-title {
      font-size: 2.5rem;
  }

  .hero-subtitle {
      font-size: 1.2rem;
  }

  .hero-buttons {
      flex-direction: column;
      gap: 1rem;
  }

  .btn {
      width: 100%;
      justify-content: center;
  }
}

/* Grid container for the iframe */
.iframe-section {
  padding: 20px 0;
  display: flex;
  justify-content: center;
}

.grid-container {
  display: grid;
  grid-template-columns: repeat(1, 1fr); /* Single column */
  gap: 20px;
  width: 100%;
}

.grid-item {
  width: 100%;
  height: 500px; /* Adjust the height if needed */
}

iframe {
  width: 100%;
  height: 100%;
  border: none;
  border-radius: 15px; /* Add rounded edges */
}


/* 🌊 Ripple Container */
.ripple-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  overflow: hidden;
  z-index: 9999;
}

/* 🌈 Rainbow Ripple Effect */
.ripple {
  position: absolute;
  width: 20px;
  height: 20px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.8), rgba(0, 255, 255, 0.4), transparent 70%);
  border-radius: 50%;
  transform: translate(-50%, -50%) scale(1);
  animation: bifrostRipple 1.4s ease-out forwards, hueShift 3s linear infinite;
  box-shadow:
    0 0 6px rgba(0, 255, 255, 0.5),
    0 0 12px rgba(0, 255, 255, 0.3),
    0 0 20px rgba(0, 255, 255, 0.2);
  pointer-events: none;
  mix-blend-mode: screen;
}

/* 💥 Click Ripples are Bigger & Brighter */
.ripple.click {
  width: 40px;
  height: 40px;
  background: radial-gradient(circle, rgba(255, 255, 255, 1), rgba(255, 0, 255, 0.5), transparent 80%);
  box-shadow:
    0 0 15px rgba(255, 0, 255, 0.8),
    0 0 30px rgba(255, 0, 255, 0.6),
    0 0 50px rgba(255, 0, 255, 0.4);
}

/* ✨ Sparkle Trail (Optional, if you want particles later) */
/* You can add DOM elements or use canvas for star particles too! */

/* 🔁 Ripple Scale Out */
@keyframes bifrostRipple {
  0% {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
  }
  100% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(8);
  }
}

/* 🌈 Hue Shift for Rainbow Effect */
@keyframes hueShift {
  0% { filter: hue-rotate(0deg); }
  100% { filter: hue-rotate(360deg); }
}

/* 🔮 Cursor Pulse Animation */
@keyframes cursorPulse {
  0%, 100% {
    box-shadow: 0 0 8px rgba(0, 217, 255, 0.8), 0 0 12px rgba(0, 217, 255, 0.4);
  }
  50% {
    box-shadow: 0 0 14px rgba(255, 0, 255, 0.9), 0 0 24px rgba(0, 217, 255, 0.5);
  }
}
.sparkle {
  position: fixed;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: white;
  pointer-events: none;
  z-index: 99999;
  transform: translate(-50%, -50%);
  animation: sparkleFade 1s ease-out forwards;
  box-shadow: 0 0 5px rgba(255, 255, 255, 0.9),
              0 0 10px rgba(0, 217, 255, 0.6),
              0 0 15px rgba(255, 0, 255, 0.4);
  mix-blend-mode: screen;
}

@keyframes sparkleFade {
  0% {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
  }
  100% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(3);
  }
}
@keyframes hueShift {
  0% { filter: hue-rotate(0deg); }
  100% { filter: hue-rotate(360deg); }
}
