@import url('https://fonts.googleapis.com/css2?family=Noto+Serif+SC:wght@300;400;500&family=Inter:wght@300;400;500&display=swap');

:root {
  --color-primary: #f5f5f0;
  --color-secondary: #e8e8e3;
  --color-accent: #d4c5b9;
  --color-text: #333;
  --color-light-text: #666;
  --color-earth: #c19a6b;
  --color-terra: #d2691e;
  --color-cool: #708090;
  --color-warm: #cd5c5c;
  --font-primary: 'Noto Serif SC', serif;
  --font-secondary: 'Inter', sans-serif;
}

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

body {
  font-family: var(--font-primary);
  color: var(--color-text);
  background-color: var(--color-primary);
  line-height: 1.6;
  overflow-x: hidden;
}

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

.hero {
  height: 100vh;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -1;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.3);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  color: white;
  padding: 2rem;
}

.hero h1 {
  font-size: clamp(2rem, 5vw, 4rem);
  font-weight: 300;
  margin-bottom: 1rem;
  letter-spacing: 0.2em;
  animation: fadeInUp 1s ease-out;
}

.hero p {
  font-size: clamp(1rem, 2vw, 1.5rem);
  font-weight: 300;
  letter-spacing: 0.1em;
  animation: fadeInUp 1s ease-out 0.3s both;
}

nav {
  position: fixed;
  top: 0;
  width: 100%;
  background: rgba(245, 245, 240, 0.95);
  backdrop-filter: blur(10px);
  z-index: 1000;
  transition: all 0.3s ease;
}

nav.scrolled {
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1rem 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

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

.nav-links a {
  text-decoration: none;
  color: var(--color-text);
  font-family: var(--font-secondary);
  font-weight: 400;
  letter-spacing: 0.05em;
  transition: color 0.3s ease;
  position: relative;
}

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

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

.nav-toggle {
  display: none;
  flex-direction: column;
  cursor: pointer;
}

.nav-toggle span {
  width: 25px;
  height: 2px;
  background-color: var(--color-text);
  margin: 3px 0;
  transition: 0.3s;
}

section {
  padding: 5rem 0;
}

.section-title {
  text-align: center;
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 300;
  margin-bottom: 3rem;
  letter-spacing: 0.1em;
}

.intro {
  text-align: center;
  max-width: 800px;
  margin: 0 auto 5rem;
  font-size: 1.1rem;
  line-height: 1.8;
  color: var(--color-light-text);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-bottom: 5rem;
}

.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
}

.gallery-item:hover {
  transform: translateY(-5px);
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.gallery-item:hover img {
  transform: scale(1.05);
}

.gallery-item-content {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
  padding: 2rem 1rem 1rem;
  color: white;
}

.gallery-item-title {
  font-size: 1.2rem;
  font-weight: 400;
  margin-bottom: 0.5rem;
}

.material-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 3rem;
  margin-bottom: 5rem;
}

.material-card {
  text-align: center;
  padding: 2rem;
  background: var(--color-secondary);
  border-radius: 12px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.material-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.material-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 1.5rem;
  background: var(--color-accent);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
}

.material-title {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  font-weight: 400;
}

.material-desc {
  color: var(--color-light-text);
  line-height: 1.8;
}

.color-palette {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  margin-bottom: 5rem;
}

.color-card {
  text-align: center;
  padding: 1.5rem;
  border-radius: 12px;
  transition: transform 0.3s ease;
}

.color-card:hover {
  transform: translateY(-5px);
}

.color-swatch {
  width: 100%;
  height: 150px;
  border-radius: 8px;
  margin-bottom: 1rem;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.color-name {
  font-size: 1.2rem;
  font-weight: 400;
  margin-bottom: 0.5rem;
}

.color-desc {
  color: var(--color-light-text);
  font-size: 0.9rem;
}

.knot-showcase {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 3rem;
  margin-bottom: 5rem;
}

.knot-item {
  background: var(--color-secondary);
  border-radius: 12px;
  overflow: hidden;
  transition: transform 0.3s ease;
}

.knot-item:hover {
  transform: translateY(-5px);
}

.knot-image {
  width: 100%;
  height: 250px;
  object-fit: cover;
}

.knot-content {
  padding: 2rem;
}

.knot-title {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  font-weight: 400;
}

.knot-steps {
  color: var(--color-light-text);
  line-height: 1.8;
}

.story {
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
  font-size: 1.2rem;
  line-height: 2;
  color: var(--color-light-text);
}

.story-image {
  width: 100%;
  max-width: 600px;
  height: 400px;
  object-fit: cover;
  margin: 3rem auto;
  border-radius: 12px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
}

footer {
  background-color: var(--color-accent);
  color: var(--color-text);
  text-align: center;
  padding: 2rem 0;
  font-family: var(--font-secondary);
  font-size: 0.9rem;
}

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

@media (max-width: 768px) {
  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: rgba(245, 245, 240, 0.95);
    flex-direction: column;
    padding: 1rem 0;
  }
  
  .nav-links.active {
    display: flex;
  }
  
  .nav-toggle {
    display: flex;
  }
  
  .nav-toggle.active span:nth-child(1) {
    transform: rotate(-45deg) translate(-5px, 6px);
  }
  
  .nav-toggle.active span:nth-child(2) {
    opacity: 0;
  }
  
  .nav-toggle.active span:nth-child(3) {
    transform: rotate(45deg) translate(-5px, -6px);
  }
  
  .gallery-grid {
    grid-template-columns: 1fr;
  }
  
  .material-grid {
    grid-template-columns: 1fr;
  }
  
  .color-palette {
    grid-template-columns: 1fr;
  }
  
  .knot-showcase {
    grid-template-columns: 1fr;
  }
}