:root {
  --primary-color: #6366f1;
  --secondary-color: #8b5cf6;
  --accent-color: #ec4899;
  --text-color: #f0f0f0;
  --text-secondary: #94a3b8;
  --background-dark: #0d0d0d;
  --card-bg: rgba(255, 255, 255, 0.03);
  --card-border: rgba(255, 255, 255, 0.05);
  --header-height: 80px;
}

body {
  margin: 0;
  padding: 0;
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  min-height: 100vh;
  background: var(--background-dark);
  background-image: 
    radial-gradient(circle at 20% 20%, rgba(99, 102, 241, 0.15) 0%, transparent 50%),
    radial-gradient(circle at 80% 80%, rgba(236, 72, 153, 0.15) 0%, transparent 50%);
  background-attachment: fixed;
  color: var(--text-color);
  line-height: 1.6;
}

@keyframes moveBackground {
  0% { background-position: 0% 0%; }
  50% { background-position: 100% 100%; }
  100% { background-position: 0% 0%; }
}

.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--header-height);
  background: rgba(13, 13, 13, 0.8);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  z-index: 999;
  border-bottom: 1px solid var(--card-border);
}

h1 {
  text-align: center;
  color: #ffffff;
  font-size: 2.5rem;
  font-weight: 800;
  margin: 1rem 0;
  background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  letter-spacing: -0.02em;
}

h1:first-of-type {
  margin-top: 2rem;
  font-size: 1.5rem;
  color: var(--text-secondary);
  background: none;
  -webkit-text-fill-color: var(--text-secondary);
}

.product-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 2rem;
  max-width: 1400px;
  margin: 3rem auto;
  padding: 0 2rem;
}

.product-card {
  background: var(--card-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--card-border);
  border-radius: 20px;
  padding: 1.5rem;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  position: relative;
  overflow: hidden;
}

.product-card:hover {
  transform: translateY(-5px);
  border-color: var(--primary-color);
  box-shadow: 
    0 10px 30px -10px rgba(99, 102, 241, 0.3),
    0 0 0 1px rgba(99, 102, 241, 0.2);
}

.product-card img {
  width: 100%;
  height: 300px;
  object-fit: cover;
  border-radius: 16px;
  transition: transform 0.3s ease;
}

.product-card:hover img {
  transform: scale(1.03);
}

.product-card h2 {
  font-size: 1.25rem;
  margin: 0.5rem 0;
  font-weight: 600;
  color: #ffffff;
}

.product-card p {
  margin: 0.25rem 0;
  color: var(--text-secondary);
}

.product-card p:has(+ ul) {
  margin-bottom: 0.5rem;
  font-weight: 500;
  color: var(--text-color);
}

.product-card ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.product-card ul li {
  background: rgba(255, 255, 255, 0.05);
  padding: 0.4rem 0.8rem;
  border-radius: 6px;
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.logo-sidebar {
  position: fixed;
  top: 0.01rem;
  left: 2rem;
  transform: none;
  z-index: 1001;
  padding: 0;
  background: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border: none;
  border-radius: 0;
  transition: none;
}

.logo-sidebar:hover {
  transform: none;
  border-color: transparent;
  box-shadow: none;
}

.logo-sidebar img {
  width: 80px;
  height: auto;
  display: block;
}

.discord-logo {
  position: fixed;
  top: 0;
  right: 2rem;
  z-index: 1001;
  background: var(--card-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-radius: 12px;
  padding: 0.75rem;
  border: 1px solid var(--card-border);
  transition: all 0.3s ease;
  cursor: pointer;
  margin-top: -0.9rem;
}

.discord-logo:hover {
  transform: scale(1.05);
  border-color: var(--primary-color);
  box-shadow: 0 0 30px rgba(99, 102, 241, 0.2);
}

.discord-logo img {
  width: 30px;
  height: 30px;
  display: block;
}

/* Add smooth scrolling to the whole page */
html {
  scroll-behavior: smooth;
}

/* Add custom scrollbar */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: var(--background-dark);
}

::-webkit-scrollbar-thumb {
  background: var(--primary-color);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--secondary-color);
}

/* Category Navigation */
.categories-nav {
  width: 100%;
  max-width: 1400px;
  margin: 2rem auto;
  padding: 0 2rem;
}

.categories-list {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: center;
  padding: 0;
  margin: 0;
  list-style: none;
}

.category-item {
  position: relative;
}

.category-link {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  background: var(--card-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--card-border);
  border-radius: 100px;
  color: var(--text-color);
  text-decoration: none;
  font-weight: 500;
  transition: all 0.3s ease;
  font-size: 0.95rem;
}

.category-link:hover,
.category-link.active {
  background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
  border-color: transparent;
  transform: translateY(-2px);
  box-shadow: 0 4px 20px rgba(99, 102, 241, 0.2);
}

.category-link::before {
  content: '';
  position: absolute;
  inset: -2px;
  border-radius: 100px;
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: -1;
}

.category-link:hover::before {
  opacity: 0.5;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .product-list {
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    padding: 0 1rem;
    gap: 1rem;
  }

  .categories-list {
    gap: 0.75rem;
  }
  
  .category-link {
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
  }

  .logo-sidebar {
    display: none;
  }

  h1 {
    font-size: 2rem;
  }

  h1:first-of-type {
    font-size: 1.2rem;
  }
}

/* Adjust the main content to account for fixed header */
main {
  padding-top: var(--header-height);
}
