/* ==========================================================================
   MARUFA A. CHOWDHURY | CERAMIC ARTIST & DESIGNER
   Design System & Luxury Artisanal Stylesheet
   ========================================================================== */

:root {
  /* Earth & Clay Color Tokens */
  --terracotta: #c2410c;
  --terracotta-light: #ea580c;
  --terracotta-dark: #9a3412;
  --terracotta-glow: rgba(194, 65, 12, 0.25);
  
  --gold: #d97706;
  --gold-light: #f59e0b;
  --gold-glow: rgba(217, 119, 6, 0.2);

  --sand: #e2d9c8;
  --sand-light: #f5ebe1;
  --sand-dark: #b8ab97;

  --earth-dark: #0a0d12;
  --earth-950: #0d1117;
  --earth-900: #161b22;
  --earth-850: #1b222b;
  --earth-800: #21262d;
  --earth-700: #30363d;
  --earth-600: #484f58;
  --earth-400: #8b949e;
  --earth-300: #c9d1d9;
  --earth-100: #f0f6fc;
  --earth-50: #ffffff;

  /* Typography */
  --font-serif: 'Cormorant Garamond', 'Tiro Bangla', Georgia, serif;
  --font-sans: 'Plus Jakarta Sans', 'Hind Siliguri', -apple-system, BlinkMacSystemFont, sans-serif;
}

/* Reset & Base Setup */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-family: var(--font-sans);
  background-color: var(--earth-dark);
  color: var(--earth-300);
  -webkit-font-smoothing: antialiased;
}

body {
  overflow-x: hidden;
  line-height: 1.6;
}

/* Typography Classes */
.font-serif {
  font-family: var(--font-serif);
}

.font-sans {
  font-family: var(--font-sans);
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

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

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

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

.custom-scrollbar::-webkit-scrollbar {
  height: 6px;
}
.custom-scrollbar::-webkit-scrollbar-thumb {
  background: var(--earth-700);
  border-radius: 3px;
}

/* Utilities & Color Mapping */
.bg-earth-dark { background-color: var(--earth-dark); }
.bg-earth-950 { background-color: var(--earth-950); }
.bg-earth-900 { background-color: var(--earth-900); }
.bg-earth-800 { background-color: var(--earth-800); }
.bg-earth-700 { background-color: var(--earth-700); }

.text-earth-50 { color: var(--earth-50); }
.text-earth-100 { color: var(--earth-100); }
.text-earth-200 { color: #e6edf3; }
.text-earth-300 { color: var(--earth-300); }
.text-earth-400 { color: var(--earth-400); }
.text-earth-500 { color: #6e7681; }
.text-earth-600 { color: var(--earth-600); }

.text-terracotta { color: var(--terracotta); }
.text-terracotta-light { color: var(--terracotta-light); }
.text-gold { color: var(--gold); }
.text-gold-light { color: var(--gold-light); }
.text-sand { color: var(--sand); }

.border-earth-800 { border-color: var(--earth-800); }
.border-earth-700 { border-color: var(--earth-700); }
.border-earth-600 { border-color: var(--earth-600); }
.border-terracotta { border-color: var(--terracotta); }

.bg-terracotta { background-color: var(--terracotta); }
.bg-terracotta-dark { background-color: var(--terracotta-dark); }
.bg-gold { background-color: var(--gold); }
.bg-gold-light { background-color: var(--gold-light); }

/* Navigation Links */
.nav-link {
  position: relative;
  color: var(--earth-300);
  text-decoration: none;
  padding: 0.25rem 0;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--terracotta), var(--gold));
  transition: width 0.3s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

.nav-link.active {
  color: var(--earth-50);
}

.mobile-nav-link {
  color: var(--earth-300);
  text-decoration: none;
  display: block;
  transition: color 0.2s;
}

.mobile-nav-link:hover {
  color: var(--terracotta-light);
}

/* Portfolio Filter Buttons */
.portfolio-filter-btn {
  background-color: var(--earth-900);
  border-color: var(--earth-700);
  color: var(--earth-300);
  cursor: pointer;
}

.portfolio-filter-btn:hover {
  border-color: var(--terracotta);
  color: var(--earth-100);
}

.portfolio-filter-btn.active {
  background: linear-gradient(135deg, var(--terracotta), var(--terracotta-dark));
  border-color: var(--terracotta);
  color: #ffffff;
  box-shadow: 0 4px 15px var(--terracotta-glow);
}

/* Santal Thumbnail Active State */
.santal-thumb.active {
  border-color: var(--terracotta) !important;
  opacity: 1 !important;
  transform: scale(1.03);
}

/* Glassmorphism Classes */
.glass-panel {
  background: rgba(22, 27, 34, 0.75);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(48, 54, 61, 0.7);
}

/* Lightbox Animation */
#lightboxModal.open,
#publicationModal.open {
  display: flex !important;
  animation: fadeIn 0.25s ease-out forwards;
}

@keyframes fadeIn {
  from { opacity: 0; transform: scale(0.98); }
  to { opacity: 1; transform: scale(1); }
}

/* Custom Selection */
::selection {
  background-color: var(--terracotta);
  color: #ffffff;
}

/* Responsive Grid Adjustments */
.gallery-card {
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.gallery-card.hidden {
  display: none !important;
}

/* Touch Device Helpers */
@media (hover: hover) {
  .hover-elevate:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.4);
  }
}
