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

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

:root {
  --color-primary: #1a1a1a;
  --color-secondary: #6b7280;
  --color-accent: #2c3e50;
  --color-light: #f9fafb;
  --color-sand: #d4c5b9;
  --color-terracotta: #c85a54;
  --transition-base: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

body {
  font-family: 'Noto Sans SC', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  line-height: 1.8;
  color: var(--color-primary);
  background-color: #ffffff;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
  transition: var(--transition-base);
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition-base);
}

.nav-link {
  position: relative;
  padding-bottom: 4px;
}

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

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

.hero-section {
  position: relative;
  overflow: hidden;
}

.hero-overlay {
  background: linear-gradient(180deg, rgba(0,0,0,0.3) 0%, rgba(0,0,0,0.6) 100%);
  transition: var(--transition-base);
}

.hero-overlay:hover {
  background: linear-gradient(180deg, rgba(0,0,0,0.2) 0%, rgba(0,0,0,0.5) 100%);
}

.card-hover {
  transition: var(--transition-base);
}

.card-hover:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(0,0,0,0.15);
}

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

.img-container {
  overflow: hidden;
  position: relative;
}

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

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

.scene-card {
  border-radius: 8px;
  overflow: hidden;
  background: var(--color-light);
  transition: var(--transition-base);
}

.scene-card:hover {
  box-shadow: 0 12px 32px rgba(0,0,0,0.12);
}

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

.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: 4px;
  cursor: pointer;
}

.gallery-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0);
  transition: var(--transition-base);
  z-index: 1;
}

.gallery-item:hover::before {
  background: rgba(0,0,0,0.2);
}

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

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

.text-accent {
  color: var(--color-accent);
}

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

.border-accent {
  border-color: var(--color-accent);
}

footer {
  border-top: 1px solid #e5e7eb;
}

@media (max-width: 768px) {
  .gallery-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  body {
    font-size: 14px;
  }
  
  .hero-section h1 {
    font-size: 2rem;
  }
}

@media (max-width: 640px) {
  .nav-link {
    font-size: 0.9rem;
    margin: 0 0.5rem;
  }
}

::selection {
  background-color: var(--color-accent);
  color: white;
}

.smooth-scroll {
  scroll-behavior: smooth;
}