/* fashion-showcase-060138/frontend/public/css/style.css */

:root {
  --bg-color: #ffffff;
  --bg-secondary: #fafafa;
  --text-primary: #1a1a1a;
  --text-secondary: #595959;
  --text-light: #a0a0a0;
  --font-serif: "Source Han Serif SC", "Noto Serif SC", "Songti SC", "SimSun", serif;
  --font-sans: "Helvetica Neue", "Helvetica", "Arial", sans-serif;
  --container-width: 1200px;
  --spacing-base: 1rem;
  --anim-speed: 0.6s;
}

/* =========================================
   Reset & Base
   ========================================= */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  background-color: var(--bg-color);
  color: var(--text-primary);
  font-family: var(--font-serif);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
}

h1, h2, h3, h4 {
  font-weight: 400;
  line-height: 1.2;
}

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

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

/* =========================================
   Layout Utilities
   ========================================= */
.container {
  width: 90%;
  max-width: var(--container-width);
  margin: 0 auto;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

/* =========================================
   Header & Navigation
   ========================================= */
header {
  padding: 3rem 0;
  text-align: center;
  background-color: var(--bg-color);
  z-index: 50;
  position: relative;
}

.site-title {
  font-size: 2.2rem;
  letter-spacing: 0.15em;
  margin-bottom: 1.5rem;
  color: var(--text-primary);
}

nav {
  display: flex;
  justify-content: center;
  gap: 3rem;
  font-family: var(--font-sans);
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

nav a {
  position: relative;
  padding-bottom: 4px;
  color: var(--text-secondary);
}

nav a::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 0;
  height: 1px;
  background-color: var(--text-primary);
  transition: width 0.3s ease, left 0.3s ease;
}

nav a:hover::after,
nav a.active::after {
  width: 100%;
  left: 0;
}

nav a:hover,
nav a.active {
  color: var(--text-primary);
}

/* =========================================
   Main Content
   ========================================= */
main {
  flex: 1;
  width: 100%;
}

/* --- Home: Hero Slider --- */
.hero-slider {
  position: relative;
  height: 75vh;
  width: 100%;
  overflow: hidden;
  background-color: #f0f0f0;
}

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

.slide.active {
  opacity: 1;
  z-index: 2;
}

.slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 25%; /* Slightly top focus for fashion portraits */
}

/* --- Elegant: Gallery Grid --- */
.page-header {
  text-align: center;
  margin: 2rem 0 4rem;
}

.page-title {
  font-size: 1.8rem;
  letter-spacing: 0.1em;
  margin-bottom: 1rem;
}

.category-section {
  margin-bottom: 6rem;
}

.category-label {
  text-align: center;
  font-family: var(--font-sans);
  font-size: 0.9rem;
  letter-spacing: 0.2em;
  color: var(--text-light);
  margin-bottom: 2.5rem;
  position: relative;
  display: inline-block;
  left: 50%;
  transform: translateX(-50%);
}

.category-label::after {
  content: '';
  display: block;
  width: 40px;
  height: 1px;
  background: #ddd;
  margin: 10px auto 0;
}

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

.gallery-item {
  opacity: 0;
  transform: translateY(20px);
  animation: fadeUp 0.8s ease forwards;
}

.gallery-item:nth-child(2) { animation-delay: 0.1s; }
.gallery-item:nth-child(3) { animation-delay: 0.2s; }

.img-wrapper {
  overflow: hidden;
  margin-bottom: 1.5rem;
  background-color: #f5f5f5;
  aspect-ratio: 3/4;
}

.img-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s ease;
}

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

.caption {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 0.95rem;
  color: var(--text-secondary);
  text-align: center;
  max-width: 90%;
  margin: 0 auto;
}

/* --- Philosophy: Article --- */
.philosophy-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
  padding: 4rem 0;
}

.article-content {
  max-width: 500px;
}

.article-content h2 {
  font-size: 1.6rem;
  margin-bottom: 2rem;
  letter-spacing: 0.05em;
}

.article-content p {
  font-size: 1.05rem;
  line-height: 2;
  text-align: justify;
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
}

.art-images {
  position: relative;
  height: 600px;
}

.art-img {
  position: absolute;
  object-fit: cover;
  box-shadow: 10px 10px 30px rgba(0,0,0,0.05);
  transition: z-index 0s, transform 0.5s ease;
}

.art-img:first-child {
  width: 70%;
  height: 80%;
  top: 0;
  left: 0;
  z-index: 1;
}

.art-img:last-child {
  width: 60%;
  height: 60%;
  bottom: 0;
  right: 0;
  z-index: 2;
  filter: grayscale(100%);
}

.art-img:last-child:hover {
  filter: grayscale(0%);
  transform: translate(-5px, -5px);
}

/* =========================================
   Footer
   ========================================= */
footer {
  text-align: center;
  padding: 3rem 0;
  font-family: var(--font-sans);
  font-size: 0.75rem;
  color: var(--text-light);
  letter-spacing: 0.1em;
  margin-top: auto;
}

/* =========================================
   Animations
   ========================================= */
@keyframes fadeUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* =========================================
   Responsive
   ========================================= */
@media (max-width: 768px) {
  :root {
    --spacing-base: 0.8rem;
  }

  header {
    padding: 2rem 0;
  }

  .site-title {
    font-size: 1.8rem;
  }

  nav {
    gap: 1.5rem;
    font-size: 0.8rem;
  }

  .hero-slider {
    height: 60vh;
  }

  .philosophy-container {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .article-content {
    max-width: 100%;
    order: 2;
  }

  .art-images {
    order: 1;
    height: 400px;
  }
  
  .gallery-grid {
    grid-template-columns: 1fr; /* Single column on mobile */
    gap: 4rem;
  }
}