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

:root {
  color-scheme: dark;
  --bg:        #0f0f0f;
  --surface:   #171717;
  --card:      #202020;
  --border:    #343434;
  --dark:      #141414;
  --dark2:     #242424;
  --grey:      #cfcfcf;
  --muted:     #a09b93;
  --yellow:    #f5c518;
  --yellow2:   #e0b010;
  --yellow-bg: rgba(245, 197, 24, 0.14);
  --text:      #f2f0ed;
  --light-txt: #c2beb7;
  --radius:    4px;
  --shadow:    0 2px 16px rgba(0,0,0,0.28);
  --shadow-lg: 0 8px 40px rgba(0,0,0,0.35);
}

:root[data-theme="light"] {
  color-scheme: light;
  --bg:        #f4f2ef;
  --surface:   #ffffff;
  --card:      #faf9f7;
  --border:    #e0ddd8;
  --dark:      #1e1e1e;
  --dark2:     #2c2c2c;
  --grey:      #3d3d3d;
  --muted:     #7a7670;
  --yellow-bg: rgba(245, 197, 24, 0.10);
  --text:      #1e1e1e;
  --light-txt: #5a5652;
  --shadow:    0 2px 16px rgba(0,0,0,0.08);
  --shadow-lg: 0 8px 40px rgba(0,0,0,0.13);
}

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Geologica', sans-serif;
  font-size: 15px;
  line-height: 1.65;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  transition: background 0.2s, color 0.2s;
}

main { flex: 1; }

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

.container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* UTILITY */
.tag {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--yellow2);
  background: var(--yellow-bg);
  border: 1px solid rgba(245,197,24,0.25);
  padding: 0.3rem 0.8rem;
  border-radius: 2px;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.8rem;
  border-radius: var(--radius);
  font-family: 'Geologica', sans-serif;
  font-size: 0.88rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  cursor: pointer;
  border: none;
  transition: transform 0.15s, box-shadow 0.15s, background 0.2s;
  text-decoration: none;
}
.btn:hover { transform: translateY(-1px); }

.btn-primary { background: var(--yellow); color: var(--dark); }
.btn-primary:hover { background: #ffd030; box-shadow: 0 4px 16px rgba(245,197,24,0.4); }

.btn-dark { background: var(--dark); color: #fff; }
.btn-dark:hover { background: var(--dark2); box-shadow: var(--shadow); }

.btn-outline {
  background: transparent;
  color: var(--text);
  border: 1.5px solid var(--border);
}
.btn-outline:hover { border-color: var(--yellow); color: var(--yellow2); }

.btn-outline-white {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 1.8rem;
  border: 1.5px solid rgba(255,255,255,0.3);
  border-radius: var(--radius);
  color: #fff;
  font-family: 'Geologica', sans-serif;
  font-size: 0.88rem;
  font-weight: 500;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
  text-decoration: none;
}
.btn-outline-white:hover { border-color: var(--yellow); color: var(--yellow); }

/* CATEGORY CARDS */
.cats-section {
  padding: 3rem 0;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
}
.cats-grid {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  gap: 0.75rem;
}
.cat-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 1.2rem 0.5rem;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  cursor: pointer;
  transition: all 0.2s;
  text-decoration: none;
  position: relative;
  overflow: hidden;
}
.cat-card::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--yellow);
  transform: scaleX(0);
  transition: transform 0.2s;
}
.cat-card:hover {
  border-color: var(--yellow);
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}
.cat-card:hover::before { transform: scaleX(1); }
.cat-card--yellow {
  background: var(--yellow);
  border-color: var(--yellow);
}
.cat-card--yellow .cat-card-label,
.cat-card--yellow .cat-card-arrow,
.cat-card--yellow .cat-card-icon {
  color: var(--dark);
}
.cat-card--yellow::before { background: var(--dark); }
.cat-card--all {
  background: var(--dark);
  border-color: var(--dark);
}
.cat-card--all .cat-card-label { color: #fff; }
.cat-card--all .cat-card-arrow,
.cat-card--all .cat-card-icon {
  color: var(--yellow);
}
.cat-card-icon {
  color: var(--yellow2);
  font-size: 1.8rem;
  margin-bottom: 0.6rem;
}
.cat-card-icon svg {
  width: 32px;
  height: 32px;
  stroke-width: 2px;
}
.cat-card-label {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--text);
  line-height: 1.3;
}
.cat-card-label span {
  font-weight: 300;
  color: var(--muted);
  font-size: 0.66rem;
}
.cat-card-arrow {
  font-size: 0.8rem;
  color: var(--yellow2);
  margin-top: 0.4rem;
  opacity: 0;
  transition: opacity 0.2s;
}
.cat-card:hover .cat-card-arrow { opacity: 1; }

/* SECTION HEADINGS */
.section-head { margin-bottom: 3rem; }
.section-head h2 {
  font-family: 'Oswald', sans-serif;
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  font-weight: 600;
  letter-spacing: 0.02em;
  line-height: 1.1;
  margin-top: 0.6rem;
  text-transform: uppercase;
}
.section-head p {
  color: var(--light-txt);
  max-width: 560px;
  margin-top: 0.8rem;
  font-weight: 300;
  font-size: 0.95rem;
}

/* FADE-UP ANIMATION */
.fade-up {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}
.fade-up.visible { opacity: 1; transform: none; }

/* SCROLLBAR */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--muted); }

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

@media (max-width: 640px) {
  body { font-size: 14px; }

  .container { padding: 0 1rem; }

  .btn,
  .btn-outline-white {
    justify-content: center;
    min-height: 44px;
    padding: 0.75rem 1rem;
  }

  .section-head { margin-bottom: 2rem; }

  .section-head h2 {
    font-size: clamp(1.55rem, 8vw, 2rem);
    line-height: 1.15;
  }

  .section-head p { font-size: 0.9rem; }

  .cats-section { padding: 2rem 0; }

  .cats-grid { gap: 0.6rem; }

  .cat-card {
    min-height: 132px;
    padding: 1rem 0.45rem;
  }

  .cat-card-icon { margin-bottom: 0.45rem; }

  .cat-card-icon svg {
    width: 26px;
    height: 26px;
  }

  .cat-card-label { font-size: 0.68rem; }
  .cat-card-label span { font-size: 0.61rem; }
}

@media (max-width: 560px) {
  .cats-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 360px) {
  .container { padding: 0 0.85rem; }
  .cat-card-label span { display: none; }
}
