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

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

:root {
  --color-primary: #F5F5F0;
  --color-secondary: #9E9E9E;
  --color-accent: #D4C5B9;
  --color-text: #2C2C2C;
  --color-text-light: #6B6B6B;
  --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

h1, h2, h3, h4, h5, h6 {
  font-family: 'Noto Serif SC', serif;
  font-weight: 500;
  letter-spacing: 0.05em;
}

.font-serif {
  font-family: 'Noto Serif SC', serif;
}

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

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

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

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

.slide.active {
  opacity: 1;
}

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

.slide-caption {
  position: absolute;
  bottom: 10%;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(255, 255, 255, 0.9);
  padding: 1.5rem 3rem;
  backdrop-filter: blur(10px);
}

.slider-dots {
  position: absolute;
  bottom: 5%;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 1rem;
  z-index: 10;
}

.dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  transition: var(--transition-smooth);
  border: 1px solid rgba(255, 255, 255, 0.8);
}

.dot.active {
  background: rgba(255, 255, 255, 0.95);
  transform: scale(1.2);
}

.hover-zoom {
  overflow: hidden;
  transition: var(--transition-smooth);
}

.hover-zoom img {
  transition: var(--transition-smooth);
}

.hover-zoom:hover img {
  transform: scale(1.08);
}

.hover-overlay {
  position: relative;
  overflow: hidden;
}

.hover-overlay::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0);
  transition: var(--transition-smooth);
  pointer-events: none;
}

.hover-overlay:hover::after {
  background: rgba(0, 0, 0, 0.15);
}

.underline-animation {
  position: relative;
  display: inline-block;
  transition: var(--transition-smooth);
}

.underline-animation::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--color-text);
  transition: var(--transition-smooth);
}

.underline-animation:hover::after {
  width: 100%;
}

.parallax {
  background-attachment: fixed;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
}

.text-shadow {
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
}

.tab-active {
  border-bottom: 2px solid var(--color-text);
  font-weight: 500;
}

.grid-masonry {
  display: grid;
  gap: 2rem;
}

@media (min-width: 768px) {
  .grid-masonry {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .grid-masonry {
    grid-template-columns: repeat(3, 1fr);
  }
}

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

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

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

.nav-link {
  transition: var(--transition-smooth);
  padding: 0.5rem 0;
}

.logo-abstract {
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, var(--color-accent), var(--color-secondary));
  clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
  transition: var(--transition-smooth);
}

.logo-abstract:hover {
  transform: rotate(60deg);
}

.texture-bg {
  background-image: url('data:image/svg+xml,%3Csvg width="60" height="60" viewBox="0 0 60 60" xmlns="http://www.w3.org/2000/svg"%3E%3Cg fill="none" fill-rule="evenodd"%3E%3Cg fill="%239C92AC" fill-opacity="0.05"%3E%3Cpath d="M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z"/%3E%3C/g%3E%3C/g%3E%3C/svg%3E');
}

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

.aspect-portrait {
  aspect-ratio: 3/4;
}

.aspect-landscape {
  aspect-ratio: 16/9;
}

.aspect-square {
  aspect-ratio: 1/1;
}