/* Modern Premium Color Palette */
:root {
  --primary-dark: #1a1a1a;
  --primary-light: #f8f8f8;
  --accent-gold: #d4af37;
  --accent-brass: #b89550;
  --metallic-bronze: #8b5e3c;
  --text-dark: #222222;
  --text-light: #666666;
  --border-color: #e0e0e0;
  --shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  --shadow-hover: 0 12px 24px rgba(0, 0, 0, 0.12);
  --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

/* Reset and Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Noto Sans SC', sans-serif;
  line-height: 1.6;
  color: var(--text-dark);
  background-color: var(--primary-light);
  background-image:
    radial-gradient(#eaeaea 1px, transparent 1px);
  background-size: 30px 30px;
  background-position: 0 0;
}

.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Header Styles */
.header {
  background-color: white;
  color: var(--primary-dark);
  padding: 1.2rem 0;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  border-bottom: 1px solid var(--border-color);
}

.header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo-container {
  display: flex;
  align-items: center;
  gap: 15px;
}

.logo {
  height: 50px;
  width: auto;
  border-radius: 8px;
  padding: 5px;
  background: white;
  border: 1px solid var(--border-color);
}

.header h1 {
  font-size: 1.8rem;
  font-weight: 700;
  letter-spacing: 1px;
  color: var(--primary-dark);
}

.nav ul {
  display: flex;
  list-style: none;
  gap: 2rem;
}

.nav a {
  color: var(--text-dark);
  text-decoration: none;
  font-weight: 500;
  padding: 0.5rem 0;
  position: relative;
  transition: var(--transition);
}

.nav a::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent-gold);
  transition: var(--transition);
}

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

.nav a:hover::after {
  width: 100%;
}

/* Hero Section */
.hero {
  background: linear-gradient(135deg, #ffffff 0%, #f9f9f9 100%);
  color: var(--primary-dark);
  text-align: center;
  padding: 6rem 0 4rem;
  margin-bottom: 3rem;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background:
    radial-gradient(circle at 10% 20%, rgba(212, 175, 55, 0.03) 0%, transparent 20%),
    radial-gradient(circle at 90% 80%, rgba(212, 175, 55, 0.03) 0%, transparent 20%);
}

.hero h2 {
  font-size: 2.5rem;
  margin-bottom: 1.2rem;
  font-weight: 700;
  background: linear-gradient(to right, var(--primary-dark), var(--metallic-bronze));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  position: relative;
  z-index: 2;
}

.hero p {
  font-size: 1.2rem;
  max-width: 700px;
  margin: 0 auto 1rem;
  color: var(--text-light);
  position: relative;
  z-index: 2;
}

.slogan {
  font-size: 1.1rem;
  font-style: italic;
  color: var(--accent-brass);
  max-width: 800px;
  margin: 0 auto;
  padding: 1rem;
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
  background: rgba(212, 175, 55, 0.03);
  border-radius: 8px;
  position: relative;
  z-index: 2;
}

/* About Section */
.about {
  padding: 4rem 0;
  background-color: white;
}

.about .section-title {
  color: var(--primary-dark);
  margin-bottom: 2.5rem;
}

.about-content {
  max-width: 800px;
  margin: 0 auto;
  background: #fafafa;
  padding: 2.5rem;
  border-radius: 12px;
  box-shadow: var(--shadow);
  border: 1px solid var(--border-color);
}

.about-content p {
  margin-bottom: 1rem;
  line-height: 1.8;
  color: var(--text-dark);
}

.about-content strong {
  color: var(--accent-brass);
}

/* Products Section */
.products {
  padding: 4rem 0;
  background-color: #fafafa;
}

.section-title {
  text-align: center;
  font-size: 2.2rem;
  margin-bottom: 3rem;
  color: var(--primary-dark);
  position: relative;
  display: inline-block;
  left: 50%;
  transform: translateX(-50%);
  font-weight: 700;
  margin-bottom: 2.5rem;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 3px;
  background: var(--accent-gold);
  border-radius: 2px;
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 2.5rem;
  padding: 1rem 0;
}

.product-card {
  background: white;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: var(--transition);
  position: relative;
  border: 1px solid var(--border-color);
  transform: translateY(0);
}

.product-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-hover);
}

.product-image {
  width: 100%;
  height: 250px;
  object-fit: cover;
  transition: var(--transition);
}

.product-card:hover .product-image {
  transform: scale(1.03);
}

.product-info {
  padding: 1.8rem;
}

.product-title {
  font-size: 1.3rem;
  margin-bottom: 0.8rem;
  color: var(--primary-dark);
  font-weight: 600;
}

.product-description {
  color: var(--text-light);
  font-size: 0.95rem;
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Modal Styles */
.modal {
  display: none;
  position: fixed;
  z-index: 2000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(5px);
  animation: fadeIn 0.3s ease;
}

.modal-content {
  background-color: white;
  margin: 2% auto;
  padding: 0;
  border-radius: 12px;
  width: 90%;
  max-width: 900px;
  max-height: 90vh;
  overflow: auto;
  position: relative;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
  border: 1px solid var(--border-color);
  animation: slideIn 0.3s ease;
}

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

@keyframes slideIn {
  from { transform: translateY(-50px) scale(0.95); opacity: 0; }
  to { transform: translateY(0) scale(1); opacity: 1; }
}

.close {
  position: absolute;
  top: 15px;
  right: 20px;
  color: var(--primary-dark);
  font-size: 2rem;
  font-weight: bold;
  cursor: pointer;
  z-index: 10;
  background: rgba(255, 255, 255, 0.8);
  border-radius: 50%;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  border: 1px solid var(--border-color);
}

.close:hover {
  color: var(--accent-gold);
  background: white;
  transform: scale(1.1);
}

.modal-body {
  display: flex;
  flex-direction: column;
  padding: 2.5rem;
}

@media (min-width: 768px) {
  .modal-body {
    flex-direction: row;
  }
}

.modal-image-container {
  flex: 1;
  margin-bottom: 1.5rem;
  text-align: center;
}

@media (min-width: 768px) {
  .modal-image-container {
    margin-bottom: 0;
    margin-right: 2rem;
  }
}

#modalImage {
  width: 100%;
  max-width: 400px;
  height: 350px;
  object-fit: contain;
  margin: 0 auto;
  border-radius: 8px;
  border: 1px solid var(--border-color);
  background: #f9f9f9;
  padding: 1rem;
}

.modal-image-thumbnails {
  display: flex;
  gap: 10px;
  margin-top: 1.5rem;
  justify-content: center;
  flex-wrap: wrap;
}

.modal-image-thumbnail {
  width: 60px;
  height: 60px;
  object-fit: cover;
  border: 2px solid transparent;
  border-radius: 6px;
  cursor: pointer;
  transition: var(--transition);
  border: 1px solid var(--border-color);
}

.modal-image-thumbnail:hover,
.modal-image-thumbnail.active {
  border-color: var(--accent-gold);
  transform: scale(1.05);
}

.modal-info {
  flex: 1;
}

#modalTitle {
  font-size: 1.8rem;
  color: var(--primary-dark);
  margin-bottom: 1.2rem;
  font-weight: 700;
  border-bottom: 2px solid var(--border-color);
  padding-bottom: 1rem;
}

#modalDescription {
  font-size: 1.1rem;
  color: var(--text-dark);
  line-height: 1.7;
}

/* Footer */
.footer {
  background: var(--primary-dark);
  color: white;
  text-align: center;
  padding: 2.5rem 0;
  margin-top: 3rem;
}

/* Call to Action Button */
.btn {
  display: inline-block;
  background: linear-gradient(to right, var(--accent-gold), var(--metallic-bronze));
  color: white;
  padding: 12px 30px;
  border-radius: 30px;
  text-decoration: none;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: var(--transition);
  box-shadow: var(--shadow);
  margin-top: 1rem;
}

.btn:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-hover);
}

/* Responsive Design */
@media (max-width: 768px) {
  .header .container {
    flex-direction: column;
    gap: 1rem;
  }

  .nav ul {
    gap: 1.2rem;
  }

  .hero {
    padding: 4rem 0 3rem;
  }

  .hero h2 {
    font-size: 2rem;
  }

  .hero p {
    font-size: 1rem;
  }

  .products-grid {
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1.8rem;
  }

  .modal-body {
    padding: 1.5rem;
  }

  #modalTitle {
    font-size: 1.5rem;
  }

  #modalImage {
    height: 280px;
  }

  .slogan {
    font-size: 1rem;
    padding: 0.8rem;
  }

  .about-content {
    padding: 1.8rem;
  }
}

@media (max-width: 480px) {
  .products-grid {
    grid-template-columns: 1fr;
  }

  .hero h2 {
    font-size: 1.8rem;
  }

  .section-title {
    font-size: 1.8rem;
  }

  .about-content {
    padding: 1.2rem;
  }
}