/* NFT Collection Section Styles */
.nft-section {
  padding: 5rem 0;
  background-color: var(--color-darker);
  position: relative;
  overflow: hidden;
}

.nft-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  margin-top: 3rem;
}

@media (min-width: 640px) {
  .nft-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .nft-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.nft-card {
  background-color: rgba(31, 41, 55, 0.5);
  border: 1px solid var(--color-gray-800);
  border-radius: 1rem;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  position: relative;
}

.nft-card:hover {
  transform: translateY(-10px) scale(1.02);
  box-shadow: 0 20px 25px -5px rgba(16, 185, 129, 0.2);
}

.nft-card:hover .nft-image::after {
  opacity: 1;
}

.nft-image {
  position: relative;
  width: 100%;
  padding-top: 100%; /* 1:1 Aspect Ratio */
  background-color: var(--color-dark);
  overflow: hidden;
}

.nft-image img,
.nft-image svg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.nft-card:hover .nft-image img,
.nft-card:hover .nft-image svg {
  transform: scale(1.05);
}

.nft-image::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(to bottom, rgba(16, 185, 129, 0.1), rgba(16, 185, 129, 0.3));
  opacity: 0;
  transition: opacity 0.3s ease;
}

.nft-content {
  padding: 1.5rem;
}

.nft-name {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: var(--color-light);
}

.nft-rarity {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

.nft-rarity.legendary {
  background-color: rgba(236, 72, 153, 0.2);
  color: #EC4899;
}

.nft-rarity.epic {
  background-color: rgba(139, 92, 246, 0.2);
  color: #8B5CF6;
}

.nft-rarity.rare {
  background-color: rgba(59, 130, 246, 0.2);
  color: #3B82F6;
}

.nft-rarity.uncommon {
  background-color: rgba(16, 185, 129, 0.2);
  color: #10B981;
}

.nft-attributes {
  margin-top: 1rem;
}

.nft-attribute {
  display: flex;
  justify-content: space-between;
  margin-bottom: 0.5rem;
}

.nft-attribute-name {
  color: var(--color-gray-400);
  font-size: 0.875rem;
}

.nft-attribute-value {
  color: var(--color-light);
  font-size: 0.875rem;
  font-weight: 600;
}

.nft-progress {
  width: 100%;
  height: 4px;
  background-color: var(--color-gray-800);
  border-radius: 2px;
  overflow: hidden;
  margin-top: 0.25rem;
}

.nft-progress-bar {
  height: 100%;
  background-color: var(--color-primary);
  border-radius: 2px;
}

.nft-cta {
  margin-top: 3rem;
  text-align: center;
}

/* Floating animation */
@keyframes float {
  0% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-10px);
  }
  100% {
    transform: translateY(0px);
  }
}

.float-animation {
  animation: float 5s ease-in-out infinite;
}

/* Staggered float animation */
.float-animation-1 {
  animation-delay: 0s;
}

.float-animation-2 {
  animation-delay: 1s;
}

.float-animation-3 {
  animation-delay: 2s;
}

.float-animation-4 {
  animation-delay: 3s;
}

/* Glow animation */
@keyframes glow {
  0% {
    box-shadow: 0 0 5px rgba(16, 185, 129, 0.3);
  }
  50% {
    box-shadow: 0 0 20px rgba(16, 185, 129, 0.6);
  }
  100% {
    box-shadow: 0 0 5px rgba(16, 185, 129, 0.3);
  }
}

.glow-animation {
  animation: glow 3s ease-in-out infinite;
}

/* Particle background */
.particles-nft {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

/* Decorative elements */
.nft-decorative-circle {
  position: absolute;
  border-radius: 50%;
  background-color: var(--color-primary);
  opacity: 0.05;
  z-index: -1;
}

.nft-decorative-circle-1 {
  top: 10%;
  right: 5%;
  width: 300px;
  height: 300px;
  animation: float 8s ease-in-out infinite;
}

.nft-decorative-circle-2 {
  bottom: 10%;
  left: 5%;
  width: 250px;
  height: 250px;
  animation: float 6s ease-in-out infinite;
  animation-delay: 1s;
}

/* Rotating border animation */
@keyframes rotate-border {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

.rotating-border {
  position: absolute;
  top: -50px;
  left: -50px;
  right: -50px;
  bottom: -50px;
  border: 2px dashed var(--color-primary);
  border-radius: 50%;
  opacity: 0.1;
  animation: rotate-border 30s linear infinite;
}

.rotating-border-reverse {
  position: absolute;
  top: -30px;
  left: -30px;
  right: -30px;
  bottom: -30px;
  border: 1px dashed var(--color-primary);
  border-radius: 50%;
  opacity: 0.1;
  animation: rotate-border 20s linear infinite reverse;
}
