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

:root {
  --ivory: #faf8f3;
  --sandstone: #d4cfc4;
  --oatmeal: #e8e2d5;
  --dark-gold: #b8985f;
  --matte-black: #2a2a2a;
  --text-primary: #333333;
  --text-secondary: #666666;
  --text-light: #999999;
  --overlay: rgba(0, 0, 0, 0.4);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Noto Serif SC', serif;
  font-weight: 200;
  background-color: var(--ivory);
  color: var(--text-primary);
  line-height: 1.8;
  overflow-x: hidden;
}

a {
  text-decoration: none;
  color: inherit;
  transition: opacity 0.3s ease;
}

a:hover {
  opacity: 0.7;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

.container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 2rem;
}

nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background-color: rgba(250, 248, 243, 0.95);
  backdrop-filter: blur(10px);
  transition: background-color 0.3s ease;
}

nav.scrolled {
  background-color: rgba(250, 248, 243, 0.85);
}

nav ul {
  list-style: none;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 1.5rem 0;
  gap: 3rem;
}

nav a {
  font-size: 14px;
  font-weight: 300;
  letter-spacing: 2px;
  position: relative;
}

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

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

.hero-carousel {
  position: relative;
  height: 100vh;
  margin-top: 60px;
  overflow: hidden;
}

.carousel-slide {
  position: absolute;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 1.2s ease-in-out;
}

.carousel-slide.active {
  opacity: 1;
}

.carousel-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.carousel-caption {
  position: absolute;
  bottom: 10%;
  left: 50%;
  transform: translateX(-50%);
  text-align: center;
  color: white;
  font-size: 28px;
  font-weight: 300;
  letter-spacing: 4px;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.carousel-progress {
  position: absolute;
  bottom: 5%;
  left: 50%;
  transform: translateX(-50%);
  width: 200px;
  height: 2px;
  background-color: rgba(255, 255, 255, 0.3);
}

.carousel-progress-bar {
  height: 100%;
  background-color: white;
  width: 0;
  transition: width 8s linear;
}

.section {
  padding: 6rem 0;
}

.section-title {
  font-size: 32px;
  font-weight: 300;
  text-align: center;
  letter-spacing: 6px;
  margin-bottom: 4rem;
  color: var(--text-primary);
}

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

.collection-item {
  position: relative;
  overflow: hidden;
  cursor: pointer;
  aspect-ratio: 3/4;
}

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

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

.collection-overlay {
  position: absolute;
  inset: 0;
  background: var(--overlay);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.collection-item:hover .collection-overlay {
  opacity: 1;
}

.collection-text {
  color: white;
  font-size: 18px;
  letter-spacing: 3px;
  text-align: center;
  padding: 1rem;
}

.divider {
  height: 15px;
  background: linear-gradient(to right, var(--sandstone) 0%, var(--oatmeal) 50%, var(--sandstone) 100%);
  margin: 4rem auto;
  width: 60%;
}

.sidebar-layout {
  display: flex;
  gap: 2rem;
  min-height: calc(100vh - 60px);
  margin-top: 60px;
}

.sidebar {
  position: sticky;
  top: 100px;
  width: 200px;
  height: fit-content;
  padding: 2rem 0;
}

.sidebar ul {
  list-style: none;
}

.sidebar li {
  padding: 1rem 0;
  border-bottom: 1px solid var(--sandstone);
  cursor: pointer;
  transition: all 0.3s ease;
}

.sidebar li:hover {
  padding-left: 1rem;
  color: var(--dark-gold);
}

.main-content {
  flex: 1;
  padding: 2rem;
}

.content-section {
  margin-bottom: 6rem;
  scroll-margin-top: 100px;
}

.content-section h2 {
  font-size: 28px;
  font-weight: 300;
  letter-spacing: 4px;
  margin-bottom: 2rem;
  color: var(--text-primary);
}

.image-compare {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
  margin: 2rem 0;
}

.timeline {
  position: relative;
  padding: 2rem 0;
}

.timeline-item {
  margin-bottom: 6rem;
  position: relative;
}

.timeline-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: center;
}

.timeline-image {
  aspect-ratio: 4/5;
  overflow: hidden;
}

.timeline-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.timeline-text {
  padding: 2rem;
}

.timeline-text h3 {
  font-size: 24px;
  font-weight: 300;
  letter-spacing: 3px;
  margin-bottom: 1.5rem;
}

.timeline-text p {
  font-size: 16px;
  line-height: 2;
  color: var(--text-secondary);
}

.skeleton {
  background: linear-gradient(90deg, var(--sandstone) 25%, var(--oatmeal) 50%, var(--sandstone) 75%);
  background-size: 200% 100%;
  animation: loading 1.5s infinite;
}

@keyframes loading {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

footer {
  text-align: center;
  padding: 3rem 0;
  font-size: 12px;
  color: var(--text-light);
  border-top: 1px solid var(--sandstone);
}

@media (max-width: 1024px) {
  nav ul {
    gap: 2rem;
  }
  
  .collection-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  }
  
  .sidebar-layout {
    flex-direction: column;
  }
  
  .sidebar {
    position: relative;
    width: 100%;
    top: 0;
  }
  
  .timeline-content {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .container {
    padding: 0 1rem;
  }
  
  nav ul {
    gap: 1rem;
    padding: 1rem 0;
  }
  
  nav a {
    font-size: 12px;
    letter-spacing: 1px;
  }
  
  .hero-carousel {
    height: 70vh;
  }
  
  .carousel-caption {
    font-size: 20px;
    letter-spacing: 2px;
  }
  
  .section {
    padding: 3rem 0;
  }
  
  .section-title {
    font-size: 24px;
    letter-spacing: 4px;
    margin-bottom: 2rem;
  }
  
  .collection-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  .timeline-text {
    padding: 1rem;
  }
  
  .timeline-text h3 {
    font-size: 20px;
  }
  
  .timeline-text p {
    font-size: 14px;
  }
}