/* =============================
   Jhymn Art Gallery
   Theme: Waterâ€“Organic Fusion
   Font: Kaushan Script (Bold Brush Strokes)
   ============================= */

/* Import Kaushan Script - Bold, energetic brush strokes */
@import url('https://fonts.googleapis.com/css2?family=Kaushan+Script&display=swap');

:root {
  --jhymn-lime: #b0d38e;
  --jhymn-teal: #4e9482;
  --jhymn-bluegray: #5d6790;
  --jhymn-ochre: #e7b02a;
  --jhymn-coral: #e94e61;
  --jhymn-lavender: #a96ab4;
  --paper-bg: #f6f5f2;
  --text-dark: #2c2c2c;
  --text-muted: #666;
  --white: #fff;
}

/* RESET & BASE LAYOUT */
* { margin:0; padding:0; box-sizing:border-box; }

body {
  font-family: 'Segoe UI', Roboto, sans-serif;
  background-color: var(--paper-bg);
  color: var(--text-dark);
  line-height: 1.6;
}

/* =============================
   HEADER - Water Organic Fusion
   ============================= */
.site-header {
  background: linear-gradient(160deg, #c9c9a2 0%, var(--jhymn-lime) 25%, var(--jhymn-teal) 60%, var(--jhymn-bluegray) 90%);
  position: relative;
  color: #fff;
  text-align: center;
  padding: 100px 0;
  overflow: hidden;
  border-bottom: 8px solid rgba(0,0,0,0.15);
}

.site-header::before {
  content:"";
  position:absolute;
  top:0;left:0;right:0;bottom:0;
  background:url('https://cdn.jsdelivr.net/gh/ajayns/textures/watercolor-paper.jpg');
  background-size:cover;
  opacity:0.35;
  mix-blend-mode:multiply;
}

.site-header::after {
  content:"";
  position:absolute;
  inset:0;
  background:
    radial-gradient(circle at 20% 30%, rgba(255,225,120,0.22) 0%, transparent 60%),
    radial-gradient(circle at 75% 60%, rgba(182,105,170,0.25) 0%, transparent 60%),
    radial-gradient(circle at 50% 90%, rgba(233,78,97,0.25) 0%, transparent 60%),
    linear-gradient(135deg, rgba(255,255,255,0.03), rgba(0,0,0,0.05));
  mix-blend-mode: overlay;
  animation: pigmentFlow 18s ease-in-out infinite alternate;
}

@keyframes pigmentFlow {
  0% { transform: scale(1) translateY(0); opacity: 0.8; }
  50% { transform: scale(1.03) translateY(-10px); opacity: 1; }
  100% { transform: scale(1.05) translateY(5px); opacity: 0.9; }
}

.site-title {
  /* Kaushan Script - Bold, energetic brush strokes with personality */
  font-family: 'Kaushan Script', cursive;
  font-size: 5rem;
  font-weight: 400;
  letter-spacing: 3px;
  background: linear-gradient(100deg,#fce77d,#f07f13,#7a519a,#97cfd0);
  background-size: 150% 150%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: titleHue 10s ease-in-out infinite alternate;
  text-shadow: -2px -2px 2px rgba(255,255,255,0.3), 3px 3px 6px rgba(0,0,0,0.4);
  position: relative;
  z-index: 2;
}

@keyframes titleHue {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

.site-title::after {
  content: "";
  display: block;
  width: 40%;
  height: 8px;
  margin: 25px auto 0;
  background: linear-gradient(90deg,var(--jhymn-ochre),var(--jhymn-coral),var(--jhymn-lavender));
  border-radius: 5px;
  opacity: 0.8;
  box-shadow: 0 2px 5px rgba(0,0,0,0.3);
}

.site-tagline {
  font-size: 1.6rem;
  font-weight: 300;
  font-style: italic;
  color: rgba(255,255,255,0.95);
  text-shadow: 2px 2px 6px rgba(0,0,0,0.5);
  margin-top: 20px;
  position: relative;
  z-index: 2;
}

/* =============================
   NAVIGATION
   ============================= */
nav {
  background: rgba(255,255,255,0.2);
  backdrop-filter: blur(8px);
  padding: 15px 0;
  position: sticky;
  top: 0;
  z-index: 100;
}

.nav-container {
  display: flex;
  justify-content: center;
  gap: 30px;
}

.nav-container a {
  text-decoration: none;
  color: #fff;
  font-weight: 600;
  letter-spacing: 0.5px;
  transition: all 0.3s ease;
}

.nav-container a:hover {
  color: var(--jhymn-ochre);
  transform: scale(1.05);
}

/* Mobile Filter Toggle Button */
.mobile-filter-toggle {
  display: block;
  width: 100%;
  padding: 12px 20px;
  background: linear-gradient(135deg, var(--jhymn-teal), var(--jhymn-bluegray));
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  margin-bottom: 15px;
}

.mobile-filter-toggle:hover {
  background: linear-gradient(135deg, var(--jhymn-bluegray), var(--jhymn-teal));
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.mobile-filter-toggle.active {
  background: linear-gradient(135deg, var(--jhymn-coral), var(--jhymn-ochre));
}

/* Filter Sections Container */
.filter-sections {
  display: none;
  animation: slideDown 0.3s ease;
}

/* Show filters when active */
.filter-sections.active {
  display: block;
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Filter Section Groups */
.filter-section {
  margin-bottom: 20px;
}

.filter-section:last-child {
  margin-bottom: 0;
}

.filter-label {
  color: #fff;
  font-size: 0.9rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 10px;
  text-align: center;
}

/* Filter Info Display */
.filter-info {
  background: linear-gradient(135deg, #e3f2fd 0%, #f3e5f5 100%);
  border-left: 4px solid var(--jhymn-teal);
  padding: 15px 20px;
  margin: 0 0 30px 0;
  border-radius: 8px;
  text-align: center;
}

.filter-info p {
  margin: 0;
  color: #555;
  font-size: 1rem;
}

.filter-info strong {
  color: var(--jhymn-bluegray);
  font-weight: 700;
}

.clear-filter {
  display: inline-block;
  margin-left: 15px;
  color: var(--jhymn-coral);
  text-decoration: none;
  font-weight: 600;
  padding: 5px 15px;
  border: 2px solid var(--jhymn-coral);
  border-radius: 20px;
  transition: all 0.3s ease;
}

.clear-filter:hover {
  background: var(--jhymn-coral);
  color: #fff;
  transform: translateY(-2px);
}

/* =============================
   CATEGORY FILTERS
   ============================= */
.category-filters {
  text-align: center;
  padding: 40px 20px;
  background: #fff;
  margin: 0 40px 40px;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.category-btn {
  display: inline-block;
  padding: 10px 20px;
  margin: 5px;
  border: 2px solid var(--jhymn-teal);
  background: transparent;
  color: var(--jhymn-teal);
  border-radius: 25px;
  cursor: pointer;
  font-weight: 600;
  transition: all 0.3s ease;
}

.category-btn:hover,
.category-btn.active {
  background: var(--jhymn-teal);
  color: #fff;
  transform: translateY(-2px);
}

/* Material Filter Buttons - Distinct Style */
.material-btn {
  border-color: var(--jhymn-lavender);
  color: var(--jhymn-lavender);
}

.material-btn:hover,
.material-btn.active {
  background: var(--jhymn-lavender);
  color: #fff;
  border-color: var(--jhymn-lavender);
}

/* =============================
   GALLERY GRID
   ============================= */
.gallery-container {
  padding: 80px 0;
  background: #faf9f7;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill,minmax(300px,1fr));
  gap: 30px;
  margin: 0 40px;
}

.gallery-item {
  background: var(--white);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  cursor: pointer;
}

.gallery-item:hover {
  transform: scale(1.02);
  box-shadow: 0 8px 20px rgba(0,0,0,0.2);
}

.gallery-image {
  position: relative;
  overflow: hidden;
  height: 300px;
}

.gallery-image img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  transition: opacity 0.3s ease;
}

.gallery-image img:not(.loaded) {
  opacity: 0.3;
}

.gallery-image img.loaded {
  opacity: 1;
}

.gallery-info {
  padding: 20px;
}

.gallery-title {
  font-size: 1.2rem;
  color: var(--jhymn-bluegray);
  font-weight: 700;
  margin-bottom: 5px;
}

.gallery-category {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 15px;
}

/* =============================
   MODAL
   ============================= */
.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0,0,0,0.8);
  backdrop-filter: blur(5px);
}

.modal.active {
  display: flex;
  align-items: center;
  justify-content: center;
  animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.modal-content {
  background: #fff;
  border-radius: 15px;
  max-width: 900px;
  width: 90%;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  animation: slideUp 0.3s ease;
}

@keyframes slideUp {
  from { transform: translateY(50px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

.modal-close {
  position: absolute;
  top: 15px;
  right: 20px;
  font-size: 2rem;
  color: #666;
  cursor: pointer;
  z-index: 10;
  background: rgba(255,255,255,0.9);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.modal-close:hover {
  background: var(--jhymn-coral);
  color: #fff;
  transform: rotate(90deg);
}

.modal-image {
  width: 100%;
  max-height: 500px;
  object-fit: contain;
  background: #f5f5f5;
}

.modal-details {
  padding: 30px;
}

.modal-details h2 {
  color: var(--jhymn-bluegray);
  margin-bottom: 15px;
  font-size: 2rem;
}

.modal-meta {
  display: flex;
  gap: 30px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.modal-meta-item {
  display: flex;
  flex-direction: column;
}

.modal-meta-label {
  font-size: 0.85rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 5px;
}

.modal-meta-value {
  font-size: 1.1rem;
  color: var(--text-dark);
  font-weight: 600;
}

.modal-description {
  line-height: 1.8;
  color: var(--text-dark);
  font-size: 1rem;
}

/* =============================
   BUTTONS & LINKS
   ============================= */
.btn, .view-details-btn {
  display: inline-block;
  padding: 10px 25px;
  border-radius: 25px;
  background: linear-gradient(90deg,var(--jhymn-teal),var(--jhymn-bluegray));
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn:hover, .view-details-btn:hover {
  background: linear-gradient(90deg,var(--jhymn-ochre),var(--jhymn-coral));
  transform: translateY(-2px);
}

/* =============================
   FORMS
   ============================= */
form {
  background: #fff;
  border-radius: 10px;
  padding: 30px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

form input, form textarea {
  width: 100%;
  padding: 12px;
  border: 1px solid #ddd;
  border-radius: 5px;
  margin-bottom: 20px;
  font-size: 1rem;
  font-family: inherit;
}

form input:focus, form textarea:focus {
  outline: none;
  border-color: var(--jhymn-teal);
  box-shadow: 0 0 6px rgba(78,148,130,0.3);
}

/* =============================
   FOOTER
   ============================= */
.site-footer {
  background: linear-gradient(180deg, var(--jhymn-teal) 0%, var(--jhymn-bluegray) 60%, #222 100%);
  color: #fff;
  text-align: center;
  padding: 60px 20px;
  position: relative;
  overflow: hidden;
}

.site-footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('https://cdn.jsdelivr.net/gh/ajayns/textures/watercolor-paper.jpg');
  background-size: cover;
  opacity: 0.15;
  mix-blend-mode: multiply;
}

.site-footer p {
  margin-bottom: 15px;
  font-size: 0.95rem;
  color: rgba(255,255,255,0.9);
  position: relative;
  z-index: 2;
}

.site-footer a {
  color: var(--jhymn-ochre);
  text-decoration: none;
}

.site-footer a:hover {
  color: var(--jhymn-coral);
}

/* =============================
   RESPONSIVE DESIGN
   ============================= */
@media (max-width:640px) {
  .site-title { 
    font-size: 3rem;
    letter-spacing: 2px;
  }
  .gallery-grid { 
    margin: 0 10px; 
    gap: 20px; 
  }
  .gallery-item { 
    border-radius: 8px; 
  }
  .category-filters { 
    margin: 0 10px 20px; 
  }
  .modal-content { 
    width: 95%; 
  }
  .modal-details { 
    padding: 20px; 
  }
  
  /* Make category buttons stack better on mobile */
  .category-filter {
    flex-wrap: wrap;
    gap: 8px;
  }
  
  .category-btn {
    padding: 8px 15px;
    font-size: 0.9rem;
  }
}