@import url("https://fonts.googleapis.com/css2?family=Inter:wght@100..900&display=swap");
html{
  overflow-x: hidden;
}
body {
  font-family: "Inter", sans-serif;
  background: #000000;
  overflow-x: hidden;
}

/* ============================================ */
/* ANIMATIONS - Bring the website to life */
/* ============================================ */

/* Floating animation for decorative elements */
@keyframes float {
  0%, 100% {
    transform: translateY(0px) rotate(0deg);
  }
  50% {
    transform: translateY(-20px) rotate(2deg);
  }
}

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

/* Pulse glow animation */
@keyframes pulseGlow {
  0%, 100% {
    box-shadow: 0px 4px 40px rgba(171.63, 255, 219.35, 0.35);
  }
  50% {
    box-shadow: 0px 4px 60px rgba(171.63, 255, 219.35, 0.6);
  }
}

/* Gradient shift animation */
@keyframes gradientShift {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

/* Shimmer effect */
@keyframes shimmer {
  0% {
    background-position: -1000px 0;
  }
  100% {
    background-position: 1000px 0;
  }
}

/* Scale pulse */
@keyframes scalePulse {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
}

/* Rotate continuous */
@keyframes rotateContinuous {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

/* Fade in up */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Apply floating to decorative images */
img[src*="star.png"],
img[src*="eco1.png"],
img[src*="eco2.png"] {
  animation: float 6s ease-in-out infinite;
}

img[src*="q1.png"],
img[src*="q2.png"] {
  animation: floatSlow 8s ease-in-out infinite;
  animation-delay: 1s;
}

img[src*="r1.png"],
img[src*="r2.png"] {
  animation: float 7s ease-in-out infinite;
  animation-delay: 0.5s;
}

/* Hero logo animation */
img[src*="hero-logo.png"] {
  animation: scalePulse 4s ease-in-out infinite, float 6s ease-in-out infinite;
}

/* Zen logos subtle rotation */
img[src*="zen.png"] {
  animation: rotateContinuous 20s linear infinite;
  transition: transform 0.3s ease;
}

img[src*="zen.png"]:hover {
  animation-play-state: paused;
  transform: scale(1.1);
}

/* Card hover effects with enhanced animation */
.rm, .rm1 {
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.rm::before, .rm1::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(
    45deg,
    transparent,
    rgba(59, 245, 197, 0.1),
    transparent
  );
  transform: rotate(45deg);
  transition: all 0.6s;
  opacity: 0;
}

.rm:hover::before, .rm1:hover::before {
  animation: shimmer 1.5s;
  opacity: 1;
}

.rm:hover, .rm1:hover {
  transform: translateY(-10px) scale(1.02);
  box-shadow: 0 20px 40px rgba(59, 245, 197, 0.3);
}

/* Prevent image stretching and overflow on mobile */
img {
  max-width: 100%;
  height: auto;
}

/* Ensure absolute positioned images don't overflow */
.relative img[class*="absolute"] {
  object-fit: contain;
}

/* Mobile-specific image optimizations */
@media (max-width: 768px) {
  /* Limit decorative background images on mobile */
  img[class*="absolute"][src*="r1.png"],
  img[class*="absolute"][src*="r2.png"],
  img[class*="absolute"][src*="eco"],
  img[class*="absolute"][src*="q1.png"],
  img[class*="absolute"][src*="q2.png"],
  img[class*="absolute"][src*="star.png"],
  img[class*="absolute"][src*="b-r.png"],
  img[class*="absolute"][src*="built-r.png"],
  img[class*="absolute"][src*="er.png"] {
    max-width: 30%;
    object-fit: contain;
  }
  
  /* Zen logo in cards */
  img[src*="zen.png"] {
    width: 3rem !important;
    object-fit: contain;
  }
}

.left {
  left: 0px !important;
}
.active {
  background-color: #6fc7ba;
  color: black !important;
}

.inactive {
  background-color: transparent;
  color: black;
}
.bg-btn {
  background: linear-gradient(
    90deg,
    rgba(71.62, 240.29, 167.16, 0.76) 33%,
    rgba(59, 245, 197, 0) 96%
  );
  box-shadow: 0px 4px 40px rgba(171.63, 255, 219.35, 0.35);
  animation: pulseGlow 3s ease-in-out infinite;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.bg-btn::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: width 0.6s, height 0.6s;
}

.bg-btn:hover::before {
  width: 300px;
  height: 300px;
}

.bg-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0px 6px 50px rgba(171.63, 255, 219.35, 0.5);
}

.gradient-text {
  /* subtle gradient */
  background: linear-gradient(180deg, #ffffff 0%, #ffffff 40%, #989e9c 100%);
  background-size: 200% 200%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 0px 4px 4px rgba(59, 245, 197, 0.15);
  animation: gradientShift 8s ease infinite;
}
.rm {
  background: linear-gradient(
    176deg,
    rgba(0, 0, 0, 0.7) 54%,
    rgba(28.69, 85.31, 62.28, 0.7) 94%,
    rgba(76, 226, 165, 0.63) 100%
  );
  border-radius: 20px;
  outline: 1px white solid;
  outline-offset: -1px;
}
.rm:hover {
  background: linear-gradient(
    176deg,
    rgba(0, 0, 0, 0.9) 54%,
    rgba(28.69, 85.31, 62.28, 0.9) 94%,
    rgba(76, 226, 165, 0.83) 100%
  );
}
.rm1 {
  background: linear-gradient(
    146deg,
    rgba(0, 0, 0, 0.7) 54%,
    rgba(28.69, 85.31, 62.28, 0.7) 94%,
    rgba(76, 226, 165, 0.63) 100%
  );
}
.rm1:hover {
  transform: scale(1.02);
  background: linear-gradient(
    146deg,
    rgba(0, 0, 0, 0.9) 54%,
    rgba(28.69, 85.31, 62.28, 0.9) 94%,
    rgba(76, 226, 165, 0.83) 100%
  );
}
@media (max-width: 768px) {
  .hfull {
    height: 100%;
  }
  .hscreen {
    height: 100vh;
    object-fit: cover;
  }
  
  /* Prevent horizontal overflow from images */
  img {
    max-width: 100%;
  }
  
  /* Card background images should cover properly */
  img[src*="cbg.png"] {
    object-fit: cover !important;
    width: 100% !important;
    height: 100% !important;
  }
  
  /* Level background */
  img[src*="levelbg.png"] {
    object-fit: cover !important;
  }
  
  /* Quantum background */
  img[src*="qbg.png"] {
    object-fit: cover !important;
  }
  
  /* Reduce animation intensity on mobile for performance */
  img[src*="star.png"],
  img[src*="eco1.png"],
  img[src*="eco2.png"],
  img[src*="q1.png"],
  img[src*="q2.png"],
  img[src*="r1.png"],
  img[src*="r2.png"] {
    animation-duration: 10s;
  }
  
  img[src*="hero-logo.png"] {
    animation: scalePulse 6s ease-in-out infinite;
  }
}

/* ============================================ */
/* Additional Interactive Elements */
/* ============================================ */

/* Smooth link transitions */
a, button {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Navigation menu items */
nav li a {
  position: relative;
  display: inline-block;
}

nav li a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, #3BF5C5, #47F0A7);
  transition: width 0.3s ease;
}

nav li a:hover::after {
  width: 100%;
}

/* Icon hover effects */
svg {
  transition: all 0.3s ease;
}

svg:hover {
  transform: scale(1.1) rotate(5deg);
}

/* Card images zoom on hover */
img[src*="c1.png"],
img[src*="c2.png"],
img[src*="c3.png"] {
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.rm:hover img[src*="c1.png"],
.rm:hover img[src*="c2.png"],
.rm:hover img[src*="c3.png"],
.rm1:hover img[src*="c1.png"],
.rm1:hover img[src*="c2.png"],
.rm1:hover img[src*="c3.png"] {
  transform: scale(1.1) rotate(3deg);
}

/* Level icons interactive */
img[src*="l1.png"],
img[src*="l2.png"],
img[src*="l3.png"],
img[src*="l4.png"] {
  transition: all 0.4s ease;
  cursor: pointer;
}

img[src*="l1.png"]:hover,
img[src*="l2.png"]:hover,
img[src*="l3.png"]:hover,
img[src*="l4.png"]:hover {
  transform: translateY(-10px) scale(1.2);
  filter: drop-shadow(0 10px 20px rgba(59, 245, 197, 0.4));
}

/* Tick icons animate in */
img[src*="tick.svg"] {
  transition: all 0.3s ease;
}

img[src*="tick.svg"]:hover {
  transform: scale(1.2) rotate(360deg);
}

/* Graph image subtle pulse */
img[src*="graph.png"] {
  animation: scalePulse 8s ease-in-out infinite;
}

/* Epic image hover effect */
img[src*="epic.png"] {
  transition: transform 0.6s ease;
}

img[src*="epic.png"]:hover {
  transform: scale(1.05) rotate(2deg);
}

/* Smooth scrolling for in-page links */
html {
  scroll-behavior: smooth;
}

/* Add parallax effect hint */
.parallax-element {
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Stagger animation delays for list items */
li:nth-child(1) { animation-delay: 0.1s; }
li:nth-child(2) { animation-delay: 0.2s; }
li:nth-child(3) { animation-delay: 0.3s; }
li:nth-child(4) { animation-delay: 0.4s; }
li:nth-child(5) { animation-delay: 0.5s; }

/* Text reveal animation */
.text-reveal {
  animation: fadeInUp 0.8s ease-out;
}
