@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

:root {
  --primary-gradient: linear-gradient(135deg, #4F46E5, #7C3AED);
  --secondary-gradient: linear-gradient(135deg, #3B82F6 0%, #8B5CF6 100%);
  --box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
  --hover-shadow: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --nav-height: 70px;
}

body {
  font-family: 'Inter', sans-serif;
  background: #F9FAFB;
  color: #111827;
  margin: 0;
  padding: 0;
  line-height: 1.6;
  scroll-behavior: smooth;
}

.nav-bar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--nav-height);
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(12px);
  box-shadow: var(--box-shadow);
  z-index: 1000;
  display: flex;
  align-items: center;
  padding: 0 2rem;
}

.nav-title {
  font-size: 1.5rem;
  font-weight: 700;
  background: var(--primary-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-right: 2rem;
  letter-spacing: -0.025em;
}

.nav-links {
  display: flex;
  gap: 1rem;
  overflow-x: auto;
  white-space: nowrap;
  padding: 0.5rem;
  -ms-overflow-style: none;
  scrollbar-width: none;
}

.nav-links::-webkit-scrollbar {
  display: none;
}

.nav-links a {
  color: #4B5563;
  text-decoration: none;
  font-weight: 500;
  padding: 0.5rem 1rem;
  border-radius: 9999px;
  transition: var(--transition);
  font-size: 0.95rem;
}

.nav-links a:hover {
  background: var(--primary-gradient);
  color: white;
  transform: translateY(-1px);
}

.container {
  margin-top: calc(var(--nav-height) + 60px);
  width: 90%;
  max-width: 1400px;
  margin-left: auto;
  margin-right: auto;
  padding: 1rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.category-box {
  scroll-margin-top: calc(var(--nav-height) + 160px);
  background: white;
  border: 1px solid rgba(0, 0, 0, 0.05);
  padding: 1.75rem;
  border-radius: 16px;
  box-shadow: var(--box-shadow);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.category-box::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--primary-gradient);
  opacity: 0;
  transition: var(--transition);
}

.category-box:hover {
  transform: translateY(-4px);
  box-shadow: var(--hover-shadow);
}

.category-box:hover::before {
  opacity: 1;
}

.category-box h2 {
  color: #111827;
  margin: 0 0 1.5rem 0;
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.025em;
}

ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

ul li {
  margin-bottom: 0.5rem;
  padding: 0.5rem 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  transition: var(--transition);
}

ul li:last-child {
  border-bottom: none;
  margin-bottom: 0;
}

ul li:hover {
  transform: translateX(4px);
}

ul li a {
  color: #4B5563;
  text-decoration: none;
  font-size: 0.925rem;
  font-weight: 500;
  transition: var(--transition);
  display: block;
  line-height: 1.5;
}

ul li a:hover {
  color: #4F46E5;
}

@media (max-width: 1200px) {
  .container {
    grid-template-columns: repeat(2, 1fr);
    width: 95%;
  }
}

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

  .nav-title {
    font-size: 1.25rem;
  }

  .nav-links a {
    padding: 0.4rem 0.8rem;
    font-size: 0.875rem;
  }

  .container {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  .category-box {
    padding: 1.5rem;
  }
}

@media (max-width: 480px) {
  .nav-title {
    font-size: 1.125rem;
  }

  .container {
    width: 100%;
    padding: 1rem;
  }
  
  .category-box h2 {
    font-size: 1.25rem;
  }
} 