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

:root {
  --color-primary: #ffffff;
  --color-secondary: #f5f5f5;
  --color-accent: #e8e8e8;
  --color-text-primary: #1a1a1a;
  --color-text-secondary: #666666;
  --color-muted: #999999;
  --color-morandi-pink: #e6d7d3;
  --color-morandi-blue: #d7e3e6;
  --font-primary: 'Noto Sans SC', sans-serif;
  --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

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

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

.nav-item {
  position: relative;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.nav-item:hover {
  color: var(--color-muted);
}

.nav-item.active {
  font-weight: 500;
}

.nav-item.active::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: var(--color-text-primary);
}

.carousel-container {
  position: relative;
  width: 100%;
  height: 100vh;
  overflow: hidden;
}

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

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

.carousel-overlay {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  color: white;
  text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.focus-module {
  transition: var(--transition-smooth);
}

.focus-module:hover {
  transform: translateY(-4px);
}

.focus-module img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.grid-item {
  position: relative;
  overflow: hidden;
  cursor: pointer;
  transition: var(--transition-smooth);
}

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

.grid-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.7);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  text-align: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.modal {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.9);
  z-index: 1000;
  align-items: center;
  justify-content: center;
}

.modal.active {
  display: flex;
}

.modal-content {
  max-width: 90%;
  max-height: 90%;
  position: relative;
}

.modal-close {
  position: absolute;
  top: -40px;
  right: 0;
  color: white;
  font-size: 30px;
  cursor: pointer;
}

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

.story-section.visible {
  opacity: 1;
  transform: translateY(0);
}

.story-hero {
  width: 100%;
  height: 60vh;
  object-fit: cover;
}

.story-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
  margin: 60px 0;
}

.story-image {
  width: 100%;
  height: 400px;
  object-fit: cover;
}

footer {
  border-top: 1px solid var(--color-accent);
  padding: 20px 0;
  text-align: center;
  color: var(--color-text-secondary);
}

@media (max-width: 768px) {
  .story-content {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  
  .story-image {
    height: 300px;
  }
  
  .carousel-overlay h1 {
    font-size: 2rem;
  }
  
  .carousel-overlay p {
    font-size: 1rem;
  }
}

.fade-in {
  animation: fadeIn 0.6s ease-in;
}

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

.hover-lift {
  transition: transform 0.3s ease;
}

.hover-lift:hover {
  transform: translateY(-2px);
}

.text-morandi-pink {
  color: var(--color-morandi-pink);
}

.text-morandi-blue {
  color: var(--color-morandi-blue);
}

.bg-morandi-pink {
  background-color: var(--color-morandi-pink);
}

.bg-morandi-blue {
  background-color: var(--color-morandi-blue);
}