:root {
  --font-body: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  --font-display: "DM Sans", var(--font-body);
  --bg: #fcfcfc;
  --fg: #1a1a1a;
  --accent: #333333;
  --accent-hover: #555555;
  --muted: #4b5563;
  --border: #e5e7eb;
  --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --space-1: 8px;
  --space-2: 16px;
  --space-3: 24px;
  --space-4: 32px;
  --transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 20px;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-body);
  display: flex;
  flex-direction: column;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@500;600&display=swap');

/* Featured Banner */
.featured-banner {
  background-color: #fafafa;
  color: var(--muted);
  text-align: center;
  padding: 20px 24px;
  font-size: 1.05rem;
  font-family: var(--font-body);
  position: relative;
  margin: 0 auto;
  max-width: 1200px;
  border-radius: 6px;
  margin-top: var(--space-3);
  margin-bottom: var(--space-4);
  border: 1px solid var(--border);
  box-shadow: 0 2px 12px rgba(0,0,0,0.03);
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  background: linear-gradient(to right, rgba(0,0,0,0.01) 0%, rgba(0,0,0,0.015) 50%, rgba(0,0,0,0.01) 100%);
}

.featured-banner a {
  color: var(--accent);
  text-decoration: none;
  font-weight: 500;
  transition: all 0.25s ease;
  position: relative;
  padding: 4px 6px;
  margin: 0 -2px;
  border-radius: 4px;
}

.featured-banner a::after {
  content: '';
  position: absolute;
  width: 100%;
  height: 1px;
  bottom: 2px;
  left: 0;
  background-color: var(--accent);
  transform: scaleX(0);
  transform-origin: bottom right;
  transition: transform 0.3s ease-out;
}

.featured-banner a:hover::after {
  transform: scaleX(1);
  transform-origin: bottom left;
}

.featured-banner a:hover {
  color: var(--accent-hover);
  text-decoration: none;
  transform: translateY(-1px);
}

.banner-arrow {
  margin-left: 8px;
  display: inline-block;
  transition: all 0.3s cubic-bezier(0.68, -0.55, 0.27, 1.55);
  font-weight: 500;
  color: var(--accent);
}

.featured-banner:hover .banner-arrow {
  transform: translateX(6px);
}

.banner-text {
  color: var(--muted);
  font-weight: 400;
  letter-spacing: 0.02em;
}

.featured-banner:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0,0,0,0.05);
}

/* Navigation */
nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--space-2) var(--space-4);
  flex-wrap: wrap;
  gap: var(--space-2);
  position: sticky;
  top: 0;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(8px);
  z-index: 50;
  border-bottom: 1px solid var(--border);
  transition: var(--transition);
}

.logo-container {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  text-decoration: none;
  color: inherit;
  transition: transform 0.3s ease;
}

.logo-container:hover {
  transform: scale(1.02);
}

.logo-container:active {
  transform: scale(0.98);
}

.logo-container h1 {
  margin: 0;
  font-size: 2rem;
  color: var(--fg);
  white-space: nowrap;
  font-weight: 600;
  font-family: 'Poppins', sans-serif;
  letter-spacing: -0.5px;
  background: linear-gradient(90deg, var(--accent), var(--accent-hover));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-fill-color: transparent;
  transition: var(--transition);
}

.logo-pic {
  width: auto;
  height: 80px;
  max-width: 100%;
  border-radius: 16px;
  object-fit: contain;
  border: 2px solid var(--border);
  transition: var(--transition);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.logo-container:hover .logo-pic {
  transform: rotate(5deg) scale(1.05);
  border-color: var(--accent);
}

.nav-links { 
  display: flex;
  gap: var(--space-3);
  flex-wrap: wrap;
  margin-right: var(--space-4);
}

.nav-links a {
  text-decoration: none;
  color: var(--muted);
  font-weight: 500;
  font-size: 1.05rem;
  position: relative;
  padding: 8px 12px;
  border-radius: 6px;
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.nav-links .shop-link {
  background-color: var(--accent);
  color: white !important;
  padding: 8px 16px;
  margin-left: 8px;
  transition: all 0.3s ease;
}

.nav-links .shop-link:hover {
  background-color: var(--accent-hover);
  transform: translateY(-2px);
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.nav-links .shop-link .nav-icon {
  transition: transform 0.3s ease;
}

.nav-links .shop-link:hover .nav-icon {
  transform: scale(1.1);
  animation: bounce 0.6s ease infinite alternate;
}

@keyframes bounce {
  from { transform: translateY(0) scale(1.1); }
  to { transform: translateY(-2px) scale(1.1); }
}

.nav-links a:hover {
  color: var(--accent);
  background: rgba(37, 99, 235, 0.05);
  transform: translateY(-1px);
}

.nav-links a[aria-current="page"] {
  color: var(--accent);
  font-weight: 600;
  background: rgba(37, 99, 235, 0.1);
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 2px;
  background: var(--accent);
  transition: var(--transition);
  transform: translateX(-50%);
}

.nav-links a:hover::after {
  width: 70%;
}

.nav-links a[aria-current="page"]::after {
  width: 70%;
}

/* Main Content */
.centered {
  flex-grow: 1;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding-top: clamp(12vh, 20vh, 24vh);
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: bold;
  position: relative;
}

/* Artist Section */
.artist-container {
  display: flex;
  flex-direction: row;
  gap: var(--space-4);
  max-width: 1200px;
  margin: 0 auto;
  padding: var(--space-4);
  align-items: flex-start;
  justify-content: space-between;
  flex-grow: 1;
  min-height: 0;
  animation: fadeIn 0.6s ease-out;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.artist-image {
  flex: 1.5;
  min-width: 300px;
  max-width: 500px;
  position: relative;
  aspect-ratio: 3/4;
  overflow: hidden;
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.artist-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.artist-photo:hover {
  transform: scale(1.02);
}

.artist-bio {
  flex: 1;
  padding: var(--space-3);
  max-width: 600px;
  display: flex;
  flex-direction: column;
  margin: 0;
  padding-top: 0;
}

.artist-bio h2 {
  margin-top: 0;
  color: var(--fg);
  font-size: 2rem;
  margin-bottom: var(--space-2);
}

.artist-bio p {
  line-height: 1.7;
  color: var(--muted);
  margin-bottom: var(--space-3);
  font-size: 1.05rem;
  max-width: 80ch;
  letter-spacing: 0.01em;
}

/* Contact Section */
.contact-section {
  margin-top: var(--space-4);
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.contact-actions {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  flex-wrap: wrap;
  margin-top: var(--space-2);
}

.contact-section h3 {
  margin: 0;
  color: var(--fg);
  font-size: 1.4rem;
  margin-bottom: var(--space-2);
  font-weight: 600;
  position: relative;
  display: block;
}

.contact-section h3::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 40px;
  height: 3px;
  background: var(--accent);
  border-radius: 2px;
}

.contact-section > p {
  margin-bottom: var(--space-2);
}

.contact-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--accent);
  color: white;
  border: 2px solid transparent;
  padding: 10px 24px;
  border-radius: 8px;
  font-weight: 500;
  font-size: 1rem;
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none;
  margin: 0;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  position: relative;
  overflow: hidden;
  height: 44px;
  vertical-align: middle;
}

.contact-button::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(255,255,255,0.2), transparent);
  transform: translateX(-100%);
  transition: transform 0.6s ease;
}

.contact-button:hover {
  background: var(--accent-hover);
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(37, 99, 235, 0.3);
}

.contact-button:active {
  transform: translateY(0);
  box-shadow: 0 2px 5px rgba(37, 99, 235, 0.2);
}

.contact-button:hover::before {
  transform: translateX(100%);
}

/* Social Links */
.social-links {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0;
  margin: 0;
  flex-wrap: wrap;
  height: 44px;
  position: relative;
  top: -1px;
}

.social-links a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: white;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
  border: 1px solid var(--border);
}

.social-links a:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.1);
  background: white;
  border-color: var(--accent);
}

.social-links a:active {
  transform: translateY(0);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.social-links img {
  width: 22px;
  height: 22px;
  object-fit: contain;
  transition: var(--transition);
  filter: grayscale(1) contrast(0.8);
  opacity: 0.8;
}

.social-links a:hover img {
  transform: scale(1.1);
  filter: grayscale(0) contrast(1);
  opacity: 1;
}

/* Add subtle pulse animation to social links */
@keyframes pulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.05); }
  100% { transform: scale(1); }
}

.social-links a:hover {
  animation: pulse 2s infinite;
}

/* Modal Styles */
.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(3px);
  animation: fadeIn 0.3s;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.modal-content {
  background-color: #fff;
  margin: 10% auto;
  padding: 30px;
  max-width: 500px;
  width: 90%;
  border-radius: 8px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
  position: relative;
  animation: slideDown 0.3s;
}

@keyframes slideDown {
  from { transform: translateY(-50px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

.close {
  position: absolute;
  right: 20px;
  top: 15px;
  font-size: 28px;
  font-weight: bold;
  color: #666;
  cursor: pointer;
  transition: color 0.2s;
}

.close:hover {
  color: #000;
}

.contact-form h3 {
  margin-top: 0;
  margin-bottom: 20px;
  color: var(--fg);
  font-size: 1.5rem;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 500;
  color: #333;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-family: inherit;
  font-size: 1rem;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 2px rgba(0, 119, 255, 0.1);
}

.form-group textarea {
  resize: vertical;
  min-height: 100px;
}

.submit-button {
  background-color: var(--fg);
  color: white;
  border: none;
  padding: 12px 24px;
  border-radius: 4px;
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  width: 100%;
  transition: background-color 0.2s, transform 0.1s;
}

.submit-button:hover {
  background-color: #333;
}

.submit-button:active {
  transform: translateY(1px);
}

.form-message {
  margin-top: 20px;
  padding: 12px;
  border-radius: 4px;
  text-align: center;
  display: none;
}

.form-message.success {
  background-color: #e8f5e9;
  color: #2e7d32;
  border: 1px solid #c8e6c9;
  display: block;
}

.form-message.error {
  background-color: #ffebee;
  color: #c62828;
  border: 1px solid #ffcdd2;
  display: block;
}

/* Featured Work Section */
.featured-work {
  padding: 4rem 2rem;
  background-color: #f9f9f9;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.featured-work h2 {
  text-align: center;
  font-size: 2rem;
  margin-bottom: 2.5rem;
  color: var(--accent);
  position: relative;
  display: inline-block;
  left: 50%;
  transform: translateX(-50%);
}

.featured-work h2:after {
  content: '';
  position: absolute;
  width: 60%;
  height: 3px;
  bottom: -10px;
  left: 20%;
  background: linear-gradient(90deg, var(--accent), var(--accent-hover));
  border-radius: 3px;
}

.pottery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

.pottery-item {
  background: white;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.pottery-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.pottery-image-link {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 300px;  /* Fixed height */
  padding: 1.5rem;
  background-color: #fff;
  overflow: hidden;
  position: relative; /* Add this */
}

.pottery-item img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;  /* This ensures aspect ratio is maintained */
  position: absolute;   /* Add this */
  top: 50%;             /* Add this */
  left: 50%;            /* Add this */
  transform: translate(-50%, -50%) scale(0.9); /* Update this */
  transition: transform 0.3s ease;
}

.pottery-item:hover img {
  transform: translate(-50%, -50%) scale(1.03); /* Update this */
}

.pottery-info {
  padding: 1.5rem;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.pottery-info h3 {
  margin: 0 0 0.5rem 0;
  color: var(--accent);
  font-size: 1.25rem;
}

.pottery-info p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.view-more {
  display: block;
  text-align: center;
  margin-top: 3rem;
  color: var(--accent);
  text-decoration: none;
  font-weight: 600;
  transition: color 0.3s ease;
  position: relative;
  width: fit-content;
  left: 50%;
  transform: translateX(-50%);
  padding: 0.5rem 1rem;
  border-radius: 6px;
}

.view-more:hover {
  color: var(--accent-hover);
  background-color: rgba(0, 0, 0, 0.02);
}

.view-more::after {
  content: '→';
  margin-left: 0.5rem;
  display: inline-block;
  transition: transform 0.3s ease;
}

.view-more:hover::after {
  transform: translateX(4px);
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .pottery-grid {
    grid-template-columns: 1fr;
    max-width: 500px;
  }
  
  .featured-work {
    padding: 3rem 1rem;
  }
  
  .featured-work h2 {
    font-size: 1.75rem;
  }
}

@media (max-width: 768px) {
  nav {
    padding: var(--space-2);
  }
  
  .logo-pic {
    height: 65px;
    width: auto;
  }
  
  .logo-container h1 {
    font-size: 1.75rem;
  }
  
  .artist-container {
    flex-direction: column;
    align-items: center;
    padding: var(--space-3) var(--space-2);
    gap: var(--space-3);
  }
  
  .artist-image {
    width: 100%;
    max-width: 100%;
    margin-bottom: var(--space-3);
  }
  
  .artist-bio {
    width: 100%;
    padding: 0;
  }
  
  .artist-bio p {
    font-size: 1rem;
    line-height: 1.6;
  }
  
  .nav-links {
    gap: var(--space-1);
  }
  
  .nav-links a {
    font-size: 1rem;
    padding: 6px 10px;
  }
  
  .contact-button {
    width: 100%;
    margin: var(--space-2) 0;
  }
  
  .modal-content {
    margin: 20% auto;
    padding: 20px;
    width: 90%;
  }
  
  .form-group input,
  .form-group textarea {
    font-size: 0.95rem;
  }
  
  .submit-button {
    padding: 12px;
  }
}