@import url('https://fonts.googleapis.com/css2?family=Rajdhani:wght@500;600;700&display=swap');

:root {
  --bg-global: #F8F9FA;
  --bg-surface: #FFFFFF;
  --color-primary: #66A300;
  /* Darker Green for text/buttons readability */
  --color-secondary: #D97706;
  /* Darker Orange */
  --color-tertiary: #CA8A04;
  /* Darker Yellow */
  --text-primary: #212529;
  --text-muted: #495057;
  --border-color: #DEE2E6;

  --accent-3d: #0891B2;
  /* Darker Cyan */
  --accent-printed: #DC2626;
  --accent-tabletop: #9333EA;
  --accent-fiction: #4F46E5;

  --font-heading: 'Rajdhani', sans-serif;
  --font-body: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  background-color: var(--bg-global);
  color: var(--text-primary);
  font-family: var(--font-body);
  line-height: 1.6;
}

h1,
h2,
h3,
h4,
h5,
h6,
.rajdhani {
  font-family: var(--font-heading);
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}

a {
  color: var(--color-primary);
  text-decoration: none;
  transition: color 0.2s;
}

a:hover {
  text-decoration: underline;
}

/* Header & Nav */
header {
  background-color: var(--bg-surface);
  border-bottom: 1px solid var(--border-color);
  padding: 1rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: sticky;
  top: 0;
  z-index: 100;
}

.logo {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-primary);
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo img {
  height: 80px;
}

.logo:hover {
  text-decoration: none;
  color: var(--color-secondary);
}

nav ul {
  list-style: none;
  display: flex;
  gap: 1.5rem;
}

nav a {
  color: var(--text-primary);
  font-weight: 600;
  font-family: var(--font-heading);
  letter-spacing: 1px;
}

nav a:hover,
nav a.active {
  color: var(--color-primary);
  text-decoration: none;
}

/* Container */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  border-radius: 4px;
  font-family: var(--font-heading);
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: 1px;
  cursor: pointer;
  transition: transform 0.2s ease, filter 0.2s ease;
  border: none;
  color: #fff;
  text-align: center;
}

.btn:hover {
  filter: brightness(1.1);
  transform: scale(1.02);
  text-decoration: none;
}

.btn-primary {
  background-color: var(--color-primary);
}

.btn-secondary {
  background-color: var(--color-secondary);
}

/* Section Specific Accent Buttons */
.section-3d .btn,
.btn-3d {
  background-color: var(--accent-3d);
  color: #fff;
}

.section-printed .btn,
.btn-printed {
  background-color: var(--accent-printed);
  color: #fff;
}

.section-tabletop .btn,
.btn-tabletop {
  background-color: var(--accent-tabletop);
  color: #fff;
}

.section-fiction .btn,
.btn-fiction {
  background-color: var(--accent-fiction);
  color: #fff;
}

/* Grid for Categories / Products */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.grid-4 {
  grid-template-columns: repeat(4, 1fr);
}

/* Product Cards */
.card {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
  transform: translateY(-4px);
}

/* Card Hover Glow Based on Section */
.section-3d .card:hover {
  box-shadow: 0 8px 24px rgba(0, 240, 255, 0.2);
  border-color: var(--accent-3d);
}

.section-printed .card:hover {
  box-shadow: 0 8px 24px rgba(211, 47, 47, 0.2);
  border-color: var(--accent-printed);
}

.section-tabletop .card:hover {
  box-shadow: 0 8px 24px rgba(123, 31, 162, 0.2);
  border-color: var(--accent-tabletop);
}

.section-fiction .card:hover {
  box-shadow: 0 8px 24px rgba(63, 81, 181, 0.2);
  border-color: var(--accent-fiction);
}

.card-img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  border-bottom: 1px solid var(--border-color);
  background-color: #000;
  position: relative;
}

.section-3d .card-img,
.section-printed .card-img {
  aspect-ratio: 16/9;
}

.section-tabletop .card-img,
.section-fiction .card-img {
  aspect-ratio: 9/16;
}

.card-img::after {
  content: "View Details";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.6);
  color: #fff;
  display: flex;
  justify-content: center;
  align-items: center;
  font-family: var(--font-heading);
  font-size: 1.5rem;
  opacity: 0;
  transition: opacity 0.3s;
  text-transform: uppercase;
}

.card:hover .card-img::after {
  opacity: 1;
}

.card-content {
  padding: 1.5rem;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.card-title {
  color: var(--text-primary);
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}

.card-meta {
  font-family: var(--font-heading);
  color: var(--color-secondary);
  font-size: 0.9rem;
  margin-bottom: 1rem;
  text-transform: uppercase;
}

.card-description {
  color: var(--text-muted);
  font-size: 0.9rem;
  flex-grow: 1;
  margin-bottom: 1.5rem;
}

/* Footer */
footer {
  background-color: var(--bg-surface);
  border-top: 1px solid var(--border-color);
  padding: 3rem 2rem;
  margin-top: 4rem;
  text-align: center;
}

.footer-content {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

/* Hero Section */
.hero {
  padding: 6rem 2rem;
  text-align: center;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.85), rgba(240, 240, 240, 0.95)), url('../assets/images/hero-bg.jpg') center/cover;
}

.hero h1 {
  font-size: 3.5rem;
  color: var(--color-primary);
  margin-bottom: 1rem;
}

.hero p {
  font-size: 1.2rem;
  color: var(--text-primary);
  max-width: 600px;
  margin: 0 auto 2rem;
}

@media (max-width: 900px) {
  .grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  nav ul {
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
  }

  header {
    flex-direction: column;
    gap: 1rem;
  }
}

@media (max-width: 600px) {
  .grid-4 {
    grid-template-columns: 1fr;
  }
}