* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family:
    -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu,
    Cantarell, sans-serif;
  background-color: #f5f5f5;
  color: #333;
  line-height: 1.6;
}
.left-menu {
  height: 100%px;
  width: 30%;
  display: flex;
  flex-direction: column;
}
.color-comb {
  margin-bottom: 20px;
}
.color-comb a {
  text-decoration: none;
  color: #000000;
  font-size: 18px;
  font-weight: 500;
  margin-bottom: 20px;
  border: none;
  /* background-color: #33333311; */
  padding: 15px 70px 15px 20px;
  border-radius: 10px;
  width: 250px;
}
.color-add {
  margin-bottom: 10px;
}
.color-custom a {
  text-decoration: none;
  color: #000000;
  font-size: 18px;
  font-weight: 500;
  margin-bottom: 20px;
  border: none;
  /* background-color: #33333311; */
  padding: 15px 70px 15px 20px;
  border-radius: 10px;
  width: 250px;
}

.color-combination a {
  text-decoration: none;
  color: #000000;
  font-size: 18px;
  font-weight: 500;
  margin-bottom: 20px;
  border: none;
  padding: 15px 70px 15px 20px;
  border-radius: 16px;
  width: 250px;
}

.color-add a {
  text-decoration: none;
  color: #000000;
  font-size: 18px;
  font-weight: 500;
  margin-bottom: 0px;
  border: none;
  /* background-color: #33333311; */
  padding: 15px 70px 15px 20px;
  border-radius: 10px;
  width: 250px;
}
.color-custom {
  margin-top: 20px;
}
.color-custom a {
  text-decoration: none;
  color: #000000;
  font-size: 18px;
  font-weight: 500;
  margin-bottom: 0px;
  border: none;
  background-color: #33333311;
  padding: 15px 70px 15px 20px;
  border-radius: 10px;
  width: 250px;
}
.container {
  display: flex;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Header */
header {
  background: #fff;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  position: sticky;
  top: 0;
  z-index: 100;
}

header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
}

.logo {
  font-size: 28px;
  font-weight: 700;
  color: #333;
  text-decoration: none;
}

nav a {
  color: #666;
  text-decoration: none;
  margin-left: 20px;
  font-weight: 500;
  transition: color 0.3s;
}

nav a:hover,
nav a.active {
  color: #333;
}

/* Main Content */
main {
  min-height: calc(100vh - 200px);
  padding: 40px 0;
}

.hero h2 {
  font-size: 42px;
  margin-bottom: 10px;
  color: #333;
}

.hero p {
  font-size: 18px;
  color: #666;
}

/* Categories Grid */
.categories-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  width: 100%;
  gap: 20px;
  margin-top: 40px;
}

.category-card {
  border-radius: 12px;
  padding: 0px;
  text-decoration: none;
  color: #333;
  transition:
    transform 0.3s,
    box-shadow 0.3s;
  display: block;
}

.category-card:hover {
  transform: translateY(-5px);
  /* box-shadow: 0 8px 20px rgba(0,0,0,0.); */
}

.category-color {
  width: 100%;
  height: 200px;
  border-radius: 8px;
  margin-bottom: 20px;
}

.category-card h3 {
  text-align: center;
  font-size: 24px;
  margin-bottom: 8px;
}

.category-card p {
  color: #666;
  font-size: 14px;
}

/* Color Category Colors */
.category-card.red .category-color {
  background: linear-gradient(135deg, #ff6b6b, #ee5a6f);
}
.category-card.blue .category-color {
  background: linear-gradient(135deg, #4ecdc4, #44a08d);
}
.category-card.green .category-color {
  background: linear-gradient(135deg, #95e1d3, #f38181);
}
.category-card.yellow .category-color {
  background: linear-gradient(135deg, #fce38a, #f38181);
}
.category-card.orange .category-color {
  background: linear-gradient(135deg, #ffa07a, #ff7f50);
}
.category-card.purple .category-color {
  background: linear-gradient(135deg, #a8e6cf, #d4a5a5);
}
.category-card.pink .category-color {
  background: linear-gradient(135deg, #ffb6c1, #ffc0cb);
}
.category-card.teal .category-color {
  background: linear-gradient(135deg, #20b2aa, #48d1cc);
}
.category-card.brown .category-color {
  background: linear-gradient(135deg, #8b4513, #a0522d);
}
.category-card.gray .category-color {
  background: linear-gradient(135deg, #708090, #778899);
}
.category-card.black .category-color {
  background: linear-gradient(135deg, #2c3e50, #34495e);
}
.category-card.white .category-color {
  background: linear-gradient(135deg, #f5f5f5, #e8e8e8);
}

/* Color Palettes Grid */
.palettes-grid {
  display: flex;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 5px;
  flex-wrap: wrap;
}

.palette-card {
  width: 300px;

  border-radius: 12px;
  overflow: hidden;

  transition:
    transform 0.3s,
    box-shadow 0.3s;
  cursor: pointer;
}

.palette-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.palette-colors {
  flex-direction: column;
  display: flex;
  height: 350px;
}

.palette-color {
  flex: 1;

  position: relative;
}

.palette-color:hover::after {
  content: attr(data-hex);
  position: absolute;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0, 0, 0, 0.7);
  color: #fff;
  padding: 5px 10px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
}

.palette-info {
  padding: 15px;
}

.palette-info h4 {
  font-size: 16px;
  margin-bottom: 5px;
  color: #333;
}

.palette-info p {
  font-size: 12px;
  color: #999;
}

/* Category Page Header */
.category-header {
  text-align: center;
  margin-bottom: 40px;
}

.category-header h2 {
  font-size: 48px;
  margin-bottom: 10px;
}

.category-header p {
  font-size: 18px;
  color: #666;
}

.back-button {
  display: inline-block;
  margin-bottom: 30px;
  color: #666;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s;
}

.back-button:hover {
  color: #333;
}

.back-button::before {
  content: "← ";
  margin-right: 5px;
}

/* Footer */
footer {
  background: #fff;
  padding: 30px 0;
  margin-top: 60px;
  text-align: center;
  color: #666;
  border-top: 1px solid #eee;
}

/* Responsive */
@media (max-width: 768px) {
  .categories-grid {
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
  }

  .hero h2 {
    font-size: 32px;
  }

  .palettes-grid {
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  }
}
