:root {
  --primary-color: #2c2c2c;
  --accent-color: #c9a961;
  --text-color: #333;
  --bg-color: #ffffff;
  --light-gray: #f5f5f5;
  --header-height: 60px;
}

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

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Helvetica', sans-serif;
  color: var(--text-color);
  background-image: url("assets/canvas.png");
  background-repeat: no-repeat;            /* 2. Prevent the image from repeating */
  background-position: center center;      /* 3. Center the image on the screen */
  background-size: cover;                  /* 4. Scale the image to cover the entire viewport */
  background-attachment: fixed;            /* 5. Fix the image so it doesn't scroll with content */
  line-height: 1.6;
}

/* Header Styles */
header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--header-height);
  background-color: rgba(255, 255, 255, 0.5);
  border-bottom: 1px solid #e0e0e0;
  z-index: 1000;
}

.header-container {
  max-width: 1400px;
  margin: 0 auto;
  height: 100%;
  padding: 0 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.site-url {
  font-size: 14px;
  color: var(--text-color);
  text-decoration: none;
  font-weight: 500;
}

.logo {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  height: 120px;
}
.logofooter {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  height: 160px;
  padding-bottom: 20px;
}

nav ul {
  display: flex;
  gap: 40px;
  list-style: none;
}

nav a {
  color: var(--text-color);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: color 0.3s;
}

nav a:hover {
  color: var(--accent-color);
}

/* Hero Section */
.hero {
  margin-top: var(--header-height);
  min-height: 90vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--light-gray);
  padding: 60px 20px;
}

.hero-content {
  max-width: 1000px;
  width: 100%;
  text-align: center;
  cursor: pointer;
}

.hero-image-container {
  background: white;
  padding: 30px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.1);
  margin-bottom: 30px;
  transition: transform 0.3s, box-shadow 0.3s;
}

.hero-content:hover .hero-image-container {
  transform: translateY(-5px);
  box-shadow: 0 8px 30px rgba(0,0,0,0.15);
}

.hero-image-container img {
  width: 100%;
  height: auto;
  display: block;
  max-height: 600px;
  object-fit: contain;
}

.artwork-info {
  margin-top: 20px;
}

.artwork-title {
  font-size: 24px;
  font-weight: 600;
  margin-bottom: 10px;
  color: var(--primary-color);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.sold-indicator {
  width: 10px;
  height: 10px;
  background: #dc3545;
  border-radius: 50%;
  flex-shrink: 0;
}

.price-sold {
  text-decoration: line-through;
  color: #999;
  margin-right: 10px;
}

.sold-text {
  color: #dc3545;
  font-weight: 600;
}

.artwork-details {
  font-size: 16px;
  color: #666;
  line-height: 1.8;
}

.artwork-medium,
.artwork-dimensions {
  display: block;
}

.artwork-price {
  font-size: 20px;
  font-weight: 600;
  color: var(--accent-color);
  margin-top: 10px;
}

/* Gallery Section */
.gallery {
  max-width: 1400px;
  margin: 0 auto;
  padding: 80px 40px;
}

.gallery-title {
  text-align: center;
  font-size: 36px;
  font-weight: 300;
  margin-bottom: 40px;
  color: var(--primary-color);
  text-transform: uppercase;
  letter-spacing: 2px;
}

/* Category Tabs */
.category-tabs {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin-bottom: 50px;
  flex-wrap: wrap;
}

.tab-button {
  padding: 12px 30px;
  background: white;
  border: 2px solid var(--primary-color);
  color: var(--primary-color);
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  cursor: pointer;
  transition: all 0.3s;
  border-radius: 0;
}

.tab-button:hover {
  background: var(--primary-color);
  color: white;
}

.tab-button.active {
  background: var(--primary-color);
  color: white;
}

/* Gallery Grid */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 40px;
}

.gallery-item {
  background: white;
  transition: transform 0.3s, box-shadow 0.3s;
  cursor: pointer;
}

.gallery-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 30px rgba(0,0,0,0.12);
}

.gallery-image-container {
  background: var(--light-gray);
  padding: 20px;
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.gallery-image-container img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.gallery-item .artwork-info {
  padding: 20px;
  background: white;
}

.gallery-item .artwork-title {
  font-size: 18px;
  margin-bottom: 8px;
  justify-content: flex-start;
}

.gallery-item .artwork-details {
  font-size: 14px;
}

.gallery-item .artwork-price {
  font-size: 18px;
  margin-top: 8px;
}

/* Footer Styles */
footer {
  background-color: rgba(0, 0, 0, 0.3);
  color: white;
  padding: 12px 0;
  margin-top: 80px;
}

.footer-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.footer-url {
  font-size: 14px;
  color: white;
  text-decoration: none;
}

.footer-logo {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  height: 40px;
  filter: brightness(0) invert(1);
}

footer nav a {
  color: white;
}

footer nav a:hover {
  color: var(--accent-color);
}

/* Artwork Detail Panel */
.artwork-panel {
  position: fixed;
  top: 0;
  right: -70%;
  width: 66.666%;
  height: 100vh;
  background: white;
  box-shadow: -4px 0 20px rgba(0,0,0,0.3);
  z-index: 2000;
  overflow-y: auto;
  transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.artwork-panel.active {
  right: 0;
}

.panel-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.5);
  z-index: 1999;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s;
}

.panel-overlay.active {
  opacity: 1;
  pointer-events: all;
}

.panel-close {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 40px;
  height: 40px;
  background: var(--primary-color);
  color: white;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  z-index: 10;
  transition: background 0.3s;
}

.panel-close:hover {
  background: var(--accent-color);
}

.panel-image-container {
  width: 100%;
  background: var(--light-gray);
  padding: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 60vh;
}

.panel-image-container img {
  max-width: 100%;
  max-height: 70vh;
  width: auto;
  height: auto;
  object-fit: contain;
}

.panel-content {
  padding: 40px 60px 60px;
}

.panel-content-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  margin-top: 30px;
}

.panel-info-column .artwork-title {
  font-size: 28px;
  margin-bottom: 15px;
  justify-content: flex-start;
}

.panel-info-column .artwork-details {
  font-size: 16px;
  margin-bottom: 15px;
}

.panel-info-column .artwork-price {
  font-size: 24px;
  margin-top: 15px;
}

.panel-description-column h4 {
  font-size: 18px;
  font-weight: 600;
  color: var(--primary-color);
  margin-bottom: 15px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.panel-description-column p {
  font-size: 16px;
  line-height: 1.8;
  color: #555;
}

/* Hero Navigation Dots */
.hero-dots {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 30px;
  padding-bottom: 20px;
}

.hero-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 2px solid var(--primary-color);
  background: transparent;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
}

.hero-dot:hover {
  border-color: var(--accent-color);
  transform: scale(1.2);
}

.hero-dot.active {
  background: var(--primary-color);
  border-color: var(--primary-color);
}

.hero-dot.active:hover {
  background: var(--accent-color);
  border-color: var(--accent-color);
}









/* Responsive */
@media (max-width: 768px) {
  .header-container,
  .footer-container {
    padding: 0 20px;
  }

  .logo,
  .footer-logo {
    height: 35px;
  }

  nav ul {
    gap: 20px;
  }

  nav a {
    font-size: 12px;
  }

  .site-url,
  .footer-url {
    font-size: 12px;
  }

  .hero {
    min-height: auto;
    padding: 40px 20px;
  }

  .hero-image-container {
    padding: 15px;
  }

  .artwork-title {
    font-size: 20px;
  }

  .gallery {
    padding: 60px 20px;
  }

  .gallery-title {
    font-size: 28px;
    margin-bottom: 40px;
  }

  .category-tabs {
    gap: 10px;
  }

  .tab-button {
    padding: 10px 20px;
    font-size: 12px;
  }

  .gallery-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .artwork-panel {
    width: 100%;
  }

  .panel-content-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .artwork-panel {
    width: 100%;
    right: -100%; /* Fully hide on mobile */
  }
  
  .artwork-panel.active {
    right: 0; /* Fully show when active */
  }
  .hero-dots {
    gap: 15px;
    margin-top: 20px;
  }
  
  .hero-dot {
    width: 8px;
    height: 8px;
  }
}
