/* SUPERHERO/ANIME THEME */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --color-bg: #0d0d0d;
  --color-surface: #1a1a1a;
  --color-text: #ffffff;
  --color-text-dim: #a0a0a0;
  --color-primary: #00d9ff;
  --color-secondary: #ff0040;
  --color-accent: #ffd700;
  --font-display: "Bebas Neue", sans-serif;
  --font-body: "Outfit", sans-serif;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  background: var(--color-bg);
  color: var(--color-text);
  overflow-x: hidden;
  line-height: 1.6;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

/* ACCENT LINES */
.accent-lines {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
  will-change: transform;
}

.accent-lines::before,
.accent-lines::after {
  content: "";
  position: absolute;
  background: linear-gradient(135deg, var(--color-primary) 0%, transparent 70%);
  opacity: 0.03;
}

.accent-lines::before {
  top: -50%;
  left: -10%;
  width: 100%;
  height: 100%;
  transform: rotate(15deg);
}

.accent-lines::after {
  bottom: -50%;
  right: -10%;
  width: 100%;
  height: 100%;
  transform: rotate(15deg);
  background: linear-gradient(
    135deg,
    var(--color-secondary) 0%,
    transparent 70%
  );
}

/* NAVIGATION */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: rgba(13, 13, 13, 0.7);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(0, 217, 255, 0.2);
  transition: all 0.3s ease;
  padding: 0.5rem 0;
}

.nav.scrolled {
  background: rgb(13, 13, 13);
  box-shadow: 0 4px 20px rgba(0, 217, 255, 0.2);
}

.nav-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 1.2rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav-left {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.nav-avatar {
  width: 45px;
  height: 45px;
  border-radius: 50%;
  border: 3px solid var(--color-secondary);
  object-fit: cover;
  transition: transform 0.3s ease;
}

.nav-avatar:hover {
  transform: scale(1.05);
  border-color: var(--color-secondary);
  animation: img-continuous-glitch 0.4s infinite;
}

@keyframes img-continuous-glitch {
  0% {
    box-shadow: 2px 0 var(--color-secondary), -2px 0 var(--color-primary);
    transform: translate(-2px, 1px) scale(1.05);
  }
  25% {
    box-shadow: -2px 0 var(--color-secondary), 2px 0 var(--color-primary);
    transform: translate(2px, -1px) scale(1.05);
  }
  50% {
    box-shadow: 2px 0 var(--color-secondary), -2px 0 var(--color-primary);
    transform: translate(-1px, 2px) scale(1.05);
  }
  75% {
    box-shadow: -2px 0 var(--color-secondary), 2px 0 var(--color-primary);
    transform: translate(1px, -2px) scale(1.05);
  }
  100% {
    box-shadow: 2px 0 var(--color-secondary), -2px 0 var(--color-primary);
    transform: translate(-2px, 1px) scale(1.05);
  }
}

.nav-brand {
  font-family: "Unbounded", sans-serif;
  letter-spacing: 0.08em;
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--color-text);
  text-shadow: 0 0 10px rgba(0, 217, 255, 0.5);
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 2.5rem;
}

.nav-link {
  font-family: var(--font-display);
  font-size: 1.1rem;
  letter-spacing: 0.05em;
  color: var(--color-text-dim);
  text-decoration: none;
  position: relative;
  transition: color 0.2s ease;
}

/* MOBILE NAV STYLES */
.mobile-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 30px;
  height: 21px;
  background: transparent;
  border: none;
  cursor: pointer;
  z-index: 1001;
}

.mobile-toggle .bar {
  width: 100%;
  height: 3px;
  background: var(--color-primary);
  border-radius: 3px;
  transition: all 0.3s ease;
}

@media (max-width: 768px) {
  .mobile-toggle {
    display: flex;
  }

  .nav-right {
    position: fixed;
    top: 0;
    right: -100%;
    width: 70%;
    height: 100vh;
    background: rgba(13, 13, 13, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 3rem;
    transition: right 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: -5px 0 30px rgba(0, 0, 0, 0.5);
    border-left: 1px solid rgba(0, 217, 255, 0.1);
  }

  .nav-right.active {
    right: 0;
  }

  /* Hamburger Animation */
  .mobile-toggle.active .bar:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
    background: var(--color-secondary);
  }

  .mobile-toggle.active .bar:nth-child(2) {
    opacity: 0;
  }

  .mobile-toggle.active .bar:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
    background: var(--color-secondary);
  }

  /* Fix for mobile layout */
  .nav-container {
    padding: 0.8rem 1rem;
    width: 100%;
  }

  .nav-brand {
    font-size: 0.9rem;
    white-space: nowrap;
  }

  .nav-left {
    flex-shrink: 1;
    overflow: hidden;
    text-overflow: ellipsis;
  }
}
.nav-link::after {
  content: "";
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 3px;
  background: var(--color-primary);
  transition: width 0.3s ease;
}

.nav-link:hover {
  color: var(--color-primary);
  text-shadow: 0 0 8px rgba(0, 217, 255, 0.4);
}

.nav-link:hover::after {
  width: 100%;
  background: var(--color-secondary);
  box-shadow: 0 0 10px var(--color-secondary);
}

.nav-cta {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.8rem 1.8rem;
  background: linear-gradient(
    135deg,
    var(--color-primary),
    var(--color-secondary)
  );
  color: var(--color-bg);
  text-decoration: none;
  font-family: var(--font-display);
  font-size: 1.1rem;
  letter-spacing: 0.05em;
  font-weight: 700;
  border: none;
  clip-path: polygon(10% 0, 100% 0, 90% 100%, 0 100%);
  transition: all 0.2s ease;
  box-shadow: 0 2px 10px rgba(0, 217, 255, 0.3);
}

.nav-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(0, 217, 255, 0.4);
}

.cta-arrow {
  font-size: 1.5rem;
  transition: transform 0.3s ease;
}

.nav-cta:hover .cta-arrow {
  transform: translateX(5px);
}

/* HERO SECTION */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 8rem 2rem 4rem;
  position: relative;
  overflow: hidden;
}

.hero-pattern {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: radial-gradient(
      circle at 20% 50%,
      rgba(0, 217, 255, 0.1) 0%,
      transparent 50%
    ),
    radial-gradient(
      circle at 80% 30%,
      rgba(255, 0, 64, 0.08) 0%,
      transparent 50%
    );

  z-index: 0;
}

.hero-badge {
  position: relative;
  z-index: 1;
  display: inline-block;
  padding: 0.6rem 1.5rem;
  background: var(--color-surface);
  border: 2px solid var(--color-accent);
  color: var(--color-accent);
  font-family: var(--font-display);
  font-size: 1rem;
  letter-spacing: 0.15em;
  clip-path: polygon(8% 0, 100% 0, 92% 100%, 0 100%);
  margin-bottom: 2rem;
}

@keyframes pulse {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.03);
  }
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(4rem, 12vw, 10rem);
  font-weight: 700;
  line-height: 0.9;
  letter-spacing: 0.03em;
  margin-bottom: 2rem;
  text-transform: uppercase;
}

.title-line {
  display: block;
  text-shadow: 4px 4px 0 var(--color-primary),
    -2px -2px 0 var(--color-secondary);
}

.title-accent {
  background: linear-gradient(
    135deg,
    var(--color-primary),
    var(--color-secondary),
    var(--color-accent)
  );
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: 1.4rem;
  color: var(--color-text-dim);
  margin-bottom: 3rem;
  max-width: 600px;
  font-weight: 500;
}

.hero-stats {
  display: flex;
  gap: 3rem;
  margin-bottom: 3rem;
  flex-wrap: wrap;
  justify-content: center;
}

.hero-scatter-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: 0;
  pointer-events: none;
  user-select: none;
}

.hero-scatter-bg span {
  position: absolute;
  font-family: var(--font-display);
  font-size: clamp(3rem, 6vw, 6rem); /* Responsive size */
  font-weight: 900;
  color: var(--color-text);
  opacity: 0.04;
  white-space: nowrap;
  filter: blur(1px); /* Slight blur for depth */
}

/* Ensure content sits on top */
.hero-badge,
.hero-title,
.hero-subtitle,
.hero-stats,
.btn-hero {
  position: relative;
  z-index: 2;
}

.stat-card {
  padding: 1.5rem 2.5rem;
  background: var(--color-surface);
  border: 2px solid var(--color-primary);
  clip-path: polygon(0 0, 95% 0, 100% 15%, 100% 100%, 5% 100%, 0 85%);
  transition: all 0.3s ease;
}

.stat-card:hover {
  transform: translateY(-3px);
  border-color: var(--color-secondary);
  box-shadow: 0 6px 15px rgba(0, 217, 255, 0.2);
}

.stat-number {
  font-family: var(--font-display);
  font-size: 3rem;
  color: var(--color-primary);
  line-height: 1;
  margin-bottom: 0.5rem;
}

.stat-label {
  font-family: var(--font-display);
  font-size: 0.9rem;
  letter-spacing: 0.1em;
  color: var(--color-text-dim);
}

.btn-hero {
  display: inline-flex;
  align-items: center;
  gap: 1rem;
  padding: 1.5rem 3.5rem;
  background: transparent;
  border: 2px solid var(--color-primary);
  color: var(--color-primary);
  text-decoration: none;
  font-family: var(--font-display);
  font-size: 1.4rem;
  letter-spacing: 0.08em;
  font-weight: 700;
  clip-path: polygon(5% 0, 100% 0, 95% 100%, 0 100%);
  transition: all 0.3s ease;
  box-shadow: 0 0 15px rgba(0, 217, 255, 0.2);
}

.btn-hero:hover {
  background: rgba(0, 217, 255, 0.1);
  box-shadow: 0 0 30px rgba(0, 217, 255, 0.6);
  transform: translateY(-3px) scale(1.02);
  color: var(--color-text);
  border-color: var(--color-text);
}

.btn-hero:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0, 217, 255, 0.5);
}

/* SEARCH CONTAINER */
.search-container {
  position: relative;
  margin-bottom: 2rem;
  width: 100%;
  max-width: 800px; /* Wider search bar */
  z-index: 2;
  margin-top: 1rem;
}

#searchInput {
  width: 100%;
  padding: 1.2rem 1.5rem 1.2rem 3.5rem; /* Padding left for icon */
  background: rgba(26, 26, 26, 0.8);
  border: 2px solid var(--color-primary);
  color: var(--color-text);
  font-family: var(--font-body);
  font-size: 1.1rem;
  border-radius: 4px;
  clip-path: polygon(1% 0, 100% 0, 99% 100%, 0 100%);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: all 0.3s ease;
  box-shadow: 0 0 15px rgba(0, 217, 255, 0.1);
}

#searchInput:focus {
  outline: none;
  background: rgba(26, 26, 26, 0.95);
  border-color: var(--color-secondary);
  box-shadow: 0 0 25px rgba(255, 0, 64, 0.3);
  transform: scale(1.02);
}

.search-icon {
  position: absolute;
  left: 1.5rem; /* Icon on the left */
  top: 50%;
  transform: translateY(-50%);
  color: var(--color-primary);
  pointer-events: none;
  transition: color 0.3s ease;
  z-index: 10; /* Ensure it stays on top of input */
}

.search-container:focus-within .search-icon {
  color: var(--color-secondary);
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
  .search-container {
    max-width: 90%;
    margin-bottom: 2rem;
  }

  #searchInput {
    font-size: 1rem;
    padding: 1rem 3rem 1rem 1.2rem;
  }
}

/* COLLECTIONS SECTION */
.collections {
  padding: 6rem 0;
  position: relative;
  z-index: 1;
}

.section-header {
  max-width: 1400px;
  margin: 0 auto 5rem;
  padding: 0 2rem;
  text-align: center;
}

.section-badge {
  display: inline-block;
  padding: 0.5rem 1.5rem;
  background: var(--color-surface);
  border: 2px solid var(--color-accent);
  color: var(--color-accent);
  font-family: var(--font-display);
  font-size: 1rem;
  letter-spacing: 0.15em;
  clip-path: polygon(8% 0, 100% 0, 92% 100%, 0 100%);
  margin-bottom: 1.5rem;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(3rem, 7vw, 5rem);
  font-weight: 700;
  letter-spacing: 0.05em;
  text-shadow: 3px 3px 0 rgba(0, 217, 255, 0.3);
}

.collection-card {
  max-width: 1400px;
  margin: 0 auto 6rem;
  padding: 0 2rem;
  box-sizing: border-box;
  overflow: hidden;
}

.collection-card.visible {
  opacity: 1;
  transform: translateY(0);
}

.collection-header {
  margin-bottom: 3rem;
  padding: 2rem;
  background: var(--color-surface);
  border-left: 5px solid var(--color-primary);
  position: relative;
}

.collection-number {
  position: absolute;
  top: -20px;
  right: 2rem;
  font-family: var(--font-display);
  font-size: 6rem;
  color: rgba(0, 217, 255, 0.1);
  font-weight: 700;
  line-height: 1;
}

.collection-wrapper {
  position: relative;
  width: 100%;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.nav-btn {
  position: static;
  flex-shrink: 0;
  transform: none;
  width: 50px;
  height: 50px;
  background: rgba(26, 26, 26, 0.95);
  border: 2px solid var(--color-primary);
  color: var(--color-primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  z-index: 100;
  pointer-events: auto;
}

/* .nav-prev and .nav-next positioning handled by flexbox now */

.nav-btn:hover {
  background: var(--color-primary);
  color: var(--color-bg);
  transform: scale(1.1);
  box-shadow: 0 4px 15px rgba(0, 217, 255, 0.5);
}

.nav-btn:active {
  transform: scale(0.95);
}

.collection-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 700;
  letter-spacing: 0.05em;
  color: var(--color-primary);
  margin-bottom: 1rem;
  text-shadow: 2px 2px 0 rgba(255, 0, 64, 0.3);
}

.collection-desc {
  font-size: 1.2rem;
  color: var(--color-text-dim);
  margin-bottom: 1.5rem;
  font-weight: 500;
}

.collection-meta {
  display: flex;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.meta-tag {
  padding: 0.4rem 1rem;
  background: rgba(0, 217, 255, 0.1);
  border: 1px solid var(--color-primary);
  color: var(--color-primary);
  font-family: var(--font-display);
  font-size: 0.9rem;
  letter-spacing: 0.08em;
}

.btn-download-all {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  padding: 1rem 2.5rem;
  background: linear-gradient(
    135deg,
    var(--color-primary),
    var(--color-secondary)
  );
  color: var(--color-bg);
  border: none;
  font-family: var(--font-display);
  font-size: 1.1rem;
  letter-spacing: 0.08em;
  font-weight: 700;
  cursor: pointer;
  clip-path: polygon(8% 0, 100% 0, 92% 100%, 0 100%);
  transition: all 0.2s ease;
  box-shadow: 0 2px 10px rgba(0, 217, 255, 0.3);
}

.btn-download-all:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 4px 20px rgba(0, 217, 255, 0.5);
  filter: brightness(1.2);
}

/* COLLECTION GRID */
.collection-grid {
  display: flex;
  gap: 2rem;
  overflow-x: auto;
  overflow-y: hidden;
  padding: 0 1rem 1rem 1rem;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  -ms-overflow-style: none;
  width: 100%;
  flex-grow: 1;
}

.collection-grid::-webkit-scrollbar {
  display: none;
}

.grid-item {
  position: relative;
  flex: 0 0 500px;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  cursor: pointer;
  border: 3px solid transparent;
  transition: all 0.3s ease;
  max-width: 100%;
}

.grid-item::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  border: 3px solid var(--color-primary);
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 1;
}

.grid-item:hover::before {
  opacity: 1;
}

.grid-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 217, 255, 0.3);
}

.grid-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.grid-item:hover img {
  transform: scale(1.03);
}

/* Download count badge */
.download-count-badge {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(10px);
  color: #00d9ff;
  padding: 0.3rem 0.6rem;
  font-size: 0.7rem;
  font-weight: 700;
  font-family: var(--font-display);
  letter-spacing: 0.05em;
  border-radius: 4px;
  z-index: 3;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.download-count-badge.has-downloads {
  opacity: 1;
}

.grid-item:hover .download-count-badge {
  opacity: 1;
}

.item-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.9) 0%, transparent 60%);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 1rem;
  padding: 2rem;
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 2;
}

.grid-item:hover .item-overlay {
  opacity: 1;
}

.btn-view-page {
  width: 50px;
  height: 50px;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(10px);
  color: var(--color-primary);
  border: 2px solid var(--color-primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
}

.btn-view-page:hover {
  transform: scale(1.1);
  background: var(--color-primary);
  color: var(--color-bg);
  box-shadow: 0 4px 15px rgba(0, 217, 255, 0.4);
}

.btn-quick-download {
  width: 60px;
  height: 60px;
  background: var(--color-primary);
  color: var(--color-bg);
  border: none;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 2px 10px rgba(0, 217, 255, 0.4);
}

.btn-quick-download:hover {
  transform: scale(1.1);
  background: var(--color-secondary);
  box-shadow: 0 4px 15px rgba(255, 0, 64, 0.4);
}

/* COMMUNITY SECTION */
.community-section {
  padding: 6rem 2rem;
  text-align: center;
  background: linear-gradient(
    135deg,
    rgba(0, 217, 255, 0.05) 0%,
    rgba(255, 0, 60, 0.05) 100%
  );
  border-top: 1px solid rgba(0, 217, 255, 0.2);
  border-bottom: 1px solid rgba(0, 217, 255, 0.2);
}

.community-content {
  max-width: 700px;
  margin: 0 auto;
}

.community-intro {
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--color-text);
  margin-bottom: 1rem;
  letter-spacing: 0.02em;
}

.community-desc {
  font-size: 1.1rem;
  color: var(--color-text-dim);
  margin-bottom: 1.5rem;
  line-height: 1.7;
}

/* ABOUT SECTION */
.about {
  padding: 6rem 0;
  background: var(--color-surface);
  text-align: center;
}

.about-title {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 6vw, 4rem);
  font-weight: 700;
  letter-spacing: 0.05em;
  margin-bottom: 3rem;
  text-shadow: 2px 2px 0 rgba(0, 217, 255, 0.3);
}

.about-signature {
  display: block;
  margin-top: 6px;
  font-size: 0.85rem;
  font-weight: 400;
  opacity: 0.7;
  letter-spacing: 0.05em;
  text-align: right;
  padding-right: 32%; /* Moved further left as requested */
}

.about-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 4rem;
  align-items: center;
  text-align: left;
}

.about-avatar-wrap {
  text-align: center;
}

.about-avatar {
  width: 200px;
  height: 200px;
  border-radius: 50%;
  border: 5px solid var(--color-primary);
  object-fit: cover;
  box-shadow: 0 0 30px rgba(0, 217, 255, 0.4);
  transition: transform 0.3s ease;
}

.about-avatar:hover {
  transform: scale(1.05);
  border-color: var(--color-secondary);
}

.about-text p {
  font-size: 1.1rem;
  color: var(--color-text-dim);
  margin-bottom: 1.5rem;
  line-height: 1.8;
}

.about-links {
  display: flex;
  gap: 1.5rem;
  margin-top: 2rem;
  flex-wrap: wrap;
}

.about-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  padding: 1rem 2rem;
  background: linear-gradient(
    135deg,
    var(--color-primary),
    var(--color-secondary)
  );
  color: var(--color-bg);
  text-decoration: none;
  font-family: var(--font-display);
  font-size: 1rem;
  letter-spacing: 0.05em;
  font-weight: 700;
  clip-path: polygon(8% 0, 100% 0, 92% 100%, 0 100%);
  transition: all 0.2s ease;
  box-shadow: 0 2px 10px rgba(0, 217, 255, 0.3);
}

.about-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(0, 217, 255, 0.4);
}

.about-btn-outline {
  background: transparent;
  border: 2px solid var(--color-primary);
  color: var(--color-primary);
}

.about-btn-outline:hover {
  background: linear-gradient(
    135deg,
    var(--color-primary),
    var(--color-secondary)
  );
  color: var(--color-bg);
  border-color: transparent;
}

/* FOOTER */
.footer {
  padding: 3rem 0;
  background: var(--color-bg);
  border-top: 2px solid var(--color-primary);
}

.footer-content {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-content p {
  font-family: var(--font-display);
  font-size: 1rem;
  letter-spacing: 0.05em;
  color: var(--color-text-dim);
}

.footer-content a {
  font-family: var(--font-display);
  font-size: 1rem;
  letter-spacing: 0.05em;
  color: var(--color-primary);
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer-content a:hover {
  color: var(--color-secondary);
}

/* BACK TO TOP */
.back-to-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 60px;
  height: 60px;
  background: #ffffff;
  color: var(--color-bg);
  border: none;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: all 0.3s ease;
  z-index: 999;
  box-shadow: 2px 0px 0px var(--color-primary),
    4px 0px 0px var(--color-secondary);
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

/* .back-to-top:hover moved to animation section */

/* RESPONSIVE */
@media (max-width: 1024px) {
  .hero-title {
    font-size: clamp(3rem, 10vw, 7rem);
  }

  .hero-stats {
    gap: 2rem;
  }

  .about-content {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .about-text {
    text-align: center;
  }

  .about-links {
    justify-content: center;
  }
}

@media (max-width: 768px) {
  .nav-container {
    padding: 1rem 1.5rem;
  }

  .nav-right {
    gap: 1.5rem;
  }

  .nav-link {
    font-size: 1rem;
  }

  .nav-cta {
    padding: 0.6rem 1.2rem;
    font-size: 1rem;
  }

  .hero-title {
    font-size: clamp(2.5rem, 9vw, 5rem);
  }

  .hero-stats {
    flex-direction: column;
    gap: 1.5rem;
  }

  .btn-hero {
    padding: 1.2rem 2.5rem;
    font-size: 1.2rem;
  }

  .collection-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    padding-right: 1.5rem; /* Ensure space for last item */
  }

  /* Make grid items larger on mobile */
  .grid-item {
    flex: 0 0 90vw !important; /* Takes up 90% of viewport width */
    aspect-ratio: 16 / 9;
  }

  .about-avatar {
    width: 150px;
    height: 150px;
  }

  .footer-content {
    flex-direction: column;
    text-align: center;
    gap: 2rem; /* Increased gap for better spacing */
  }
}

/* AUTO GLITCH FOR NAVBAR BRAND */
.nav-brand {
  position: relative;
  display: inline-block;
  animation: auto-glitch 3s infinite;
  cursor: default;
}

.nav-brand:hover {
  animation: continuous-glitch 0.4s infinite;
}

@keyframes auto-glitch {
  0% {
    text-shadow: none;
    transform: none;
  }
  1% {
    text-shadow: 2px 0 var(--color-secondary), -2px 0 var(--color-primary);
    transform: translate(-2px, 1px);
  }
  2% {
    text-shadow: -2px 0 var(--color-secondary), 2px 0 var(--color-primary);
    transform: translate(2px, -1px);
  }
  3% {
    text-shadow: 2px 0 var(--color-secondary), -2px 0 var(--color-primary);
    transform: translate(-1px, 2px);
  }
  4% {
    text-shadow: -2px 0 var(--color-secondary), 2px 0 var(--color-primary);
    transform: translate(1px, -2px);
  }
  5% {
    text-shadow: none;
    transform: none;
  }
  100% {
    text-shadow: none;
    transform: none;
  }
}

@keyframes continuous-glitch {
  0% {
    text-shadow: 2px 0 var(--color-secondary), -2px 0 var(--color-primary);
    transform: translate(-2px, 1px);
  }
  25% {
    text-shadow: -2px 0 var(--color-secondary), 2px 0 var(--color-primary);
    transform: translate(2px, -1px);
  }
  50% {
    text-shadow: 2px 0 var(--color-secondary), -2px 0 var(--color-primary);
    transform: translate(-1px, 2px);
  }
  75% {
    text-shadow: -2px 0 var(--color-secondary), 2px 0 var(--color-primary);
    transform: translate(1px, -2px);
  }
  100% {
    text-shadow: 2px 0 var(--color-secondary), -2px 0 var(--color-primary);
    transform: translate(-2px, 1px);
  }
}

/* SCROLL HINT */
.scroll-hint {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  text-align: center;
  opacity: 0.7;
  animation: bounce 2s infinite;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  z-index: 2;
}

.scroll-hint span {
  font-family: var(--font-body);
  font-size: 0.9rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-text-dim);
}

.scroll-arrow {
  color: var(--color-primary);
  width: 24px;
  height: 24px;
}

@keyframes bounce {
  0%,
  20%,
  50%,
  80%,
  100% {
    transform: translateX(-50%) translateY(0);
  }
  40% {
    transform: translateX(-50%) translateY(-10px);
  }
  60% {
    transform: translateX(-50%) translateY(-5px);
  }
}

/* SCROLL REVEAL ANIMATION */
.reveal {
  opacity: 0;
  transform: translateY(50px) scale(0.95);
  transition: all 0.6s cubic-bezier(0.2, 0.8, 0.2, 1);
  will-change: opacity, transform;
}

.reveal.active {
  opacity: 1;
  transform: translateY(0) scale(1);
}

@media (prefers-reduced-motion: reduce) {
  .reveal {
    transition: none;
    opacity: 1;
    transform: none;
  }
}

/* MARQUEE INFINITE SCROLL */
.marquee-section {
  width: 100%;
  overflow: hidden;
  background: var(--color-bg);
  padding: 0 0 4rem 0; /* Space it out */
  position: relative;
  z-index: 2;
  mask-image: linear-gradient(
    to right,
    transparent,
    black 10%,
    black 90%,
    transparent
  );
  -webkit-mask-image: linear-gradient(
    to right,
    transparent,
    black 10%,
    black 90%,
    transparent
  );
}

.marquee-track {
  display: flex;
  gap: 2rem;
  width: max-content;
  padding: 1rem 0;
}

.marquee-group {
  display: flex;
  gap: 2rem;
  flex-shrink: 0;
  animation: marquee-scroll 40s linear infinite;
  will-change: transform;
}

.marquee-track:hover .marquee-group {
  animation-play-state: paused;
}

.marquee-group img {
  height: 220px;
  width: auto;
  aspect-ratio: 16/9;
  border-radius: 8px;
  object-fit: cover;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
  transition: all 0.3s ease;
  cursor: pointer;
}

.marquee-group img:hover {
  transform: scale(1.05);
  border-color: var(--color-primary);
  box-shadow: 0 8px 30px rgba(0, 217, 255, 0.3);
}

@keyframes marquee-scroll {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-100%);
  }
}

.marquee-section:hover .marquee-group {
  animation-play-state: paused;
}

/* GLITCH BUTTON THEME */
/* GLITCH BUTTON THEME */
.btn-glitch,
.btn-glitch::after {
  padding: 1rem 2.5rem;
  font-family: var(--font-display);
  font-size: 1.2rem;
  background: linear-gradient(45deg, transparent 5%, #ffffff 5%);
  border: 0;
  color: var(--color-bg);
  letter-spacing: 0.08em;
  line-height: 1;
  box-shadow: 3px 0px 0px var(--color-primary),
    6px 0px 0px var(--color-secondary);
  outline: transparent;
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.8rem;
  text-decoration: none !important;
  font-weight: 700;
  cursor: pointer;
  user-select: none;
  -webkit-user-select: none;
  touch-action: manipulation;
}

.btn-glitch::after {
  --slice-0: inset(50% 50% 50% 50%);
  --slice-1: inset(80% -6px 0 0);
  --slice-2: inset(50% -6px 30% 0);
  --slice-3: inset(10% -6px 85% 0);
  --slice-4: inset(40% -6px 43% 0);
  --slice-5: inset(80% -6px 5% 0);

  content: attr(data-text);
  display: flex;
  align-items: center;
  justify-content: center;
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    45deg,
    transparent 3%,
    var(--color-secondary) 3%,
    var(--color-secondary) 5%,
    var(--color-primary) 5%,
    var(--color-primary) 7%,
    #ffffff 7%
  );
  text-shadow: -3px -3px 0px var(--color-secondary),
    3px 3px 0px var(--color-primary);
  clip-path: var(--slice-0);
  z-index: 2;
}

.btn-glitch:hover::after {
  animation: 1s glitch;
  animation-timing-function: steps(2, end);
}

.btn-glitch svg,
.btn-glitch .cta-arrow,
.btn-glitch span {
  position: relative;
  z-index: 3; /* Ensure content stays on top of glitch layer */
}

.back-to-top:hover {
  transform: translateY(0); /* Ensure it stays in place */
  box-shadow: 3px 0px 0px var(--color-primary),
    6px 0px 0px var(--color-secondary);
  animation: icon-glitch 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94) both infinite;
}

@keyframes icon-glitch {
  0% {
    transform: translate(0);
  }
  20% {
    transform: translate(-2px, 2px);
  }
  40% {
    transform: translate(-2px, -2px);
  }
  60% {
    transform: translate(2px, 2px);
  }
  80% {
    transform: translate(2px, -2px);
  }
  100% {
    transform: translate(0);
  }
}

@keyframes glitch {
  0% {
    clip-path: var(--slice-1);
    transform: translate(-20px, -10px);
  }
  10% {
    clip-path: var(--slice-3);
    transform: translate(10px, 10px);
  }
  20% {
    clip-path: var(--slice-1);
    transform: translate(-10px, 10px);
  }
  30% {
    clip-path: var(--slice-3);
    transform: translate(0px, 5px);
  }
  40% {
    clip-path: var(--slice-2);
    transform: translate(-5px, 0px);
  }
  50% {
    clip-path: var(--slice-3);
    transform: translate(5px, 0px);
  }
  60% {
    clip-path: var(--slice-4);
    transform: translate(5px, 10px);
  }
  70% {
    clip-path: var(--slice-2);
    transform: translate(-10px, 10px);
  }
  80% {
    clip-path: var(--slice-5);
    transform: translate(20px, -10px);
  }
  90% {
    clip-path: var(--slice-1);
    transform: translate(-10px, 0px);
  }
  100% {
    clip-path: var(--slice-1);
    transform: translate(0);
  }
}
