/* 
 * Fashion Showcase - Visual Style Guide
 * Design Philosophy: Minimalist, Modern, Visual-First
 * Copyright (c) 2026
 */

:root {
    /* Color Palette */
    --color-primary: #2C2C2C;
    --color-secondary: #666666;
    --color-bg: #FFFFFF;
    --color-bg-alt: #F8F8F8;
    --color-border: #E5E5E5;
    
    /* Typography */
    --font-main: 'Noto Sans SC', system-ui, -apple-system, sans-serif;
    --line-height-base: 1.6;
    --line-height-heading: 1.2;
    
    /* Spacing */
    --spacing-xs: 10px;
    --spacing-sm: 20px;
    --spacing-md: 40px;
    --spacing-lg: 80px;
    --spacing-xl: 120px;
    
    /* Transitions */
    --transition-fast: 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    --transition-smooth: 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Base Reset & Typography */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

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

body {
    font-family: var(--font-main);
    color: var(--color-primary);
    background-color: var(--color-bg);
    line-height: var(--line-height-base);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 400;
    line-height: var(--line-height-heading);
    margin-bottom: var(--spacing-sm);
    letter-spacing: -0.02em;
}

h1 { font-size: clamp(36px, 5vw, 64px); }
h2 { font-size: clamp(28px, 4vw, 48px); }
h3 { font-size: clamp(20px, 2.5vw, 30px); }
p { color: var(--color-secondary); margin-bottom: 1.5rem; }

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

img {
    display: block;
    width: 100%;
    height: auto;
    object-fit: cover;
}

/* Utility Classes */
.container {
    width: 90%;
    max-width: 1600px;
    margin: 0 auto;
    padding: 0 var(--spacing-sm);
}

.section-spacing {
    padding: var(--spacing-lg) 0;
}

.text-center { text-align: center; }
.bg-alt { background-color: var(--color-bg-alt); }

/* Navigation - Glassmorphism */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 20px 0;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(0,0,0,0.03);
    transition: transform var(--transition-fast);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1800px;
    margin: 0 auto;
    padding: 0 40px;
}

.brand-logo {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.nav-links {
    display: flex;
    gap: 60px;
    list-style: none;
}

.nav-link {
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    position: relative;
    padding-bottom: 4px;
}

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

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

/* Mobile Menu */
.mobile-menu-btn {
    display: none;
    cursor: pointer;
    background: none;
    border: none;
    z-index: 1001;
}

/* Hero Carousel */
.hero-section {
    height: 100vh;
    width: 100%;
    position: relative;
    overflow: hidden;
}

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

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

.carousel-content {
    position: absolute;
    bottom: 15%;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    z-index: 3;
    color: white;
    text-shadow: 0 2px 10px rgba(0,0,0,0.3);
    width: 90%;
    max-width: 800px;
}

.carousel-indicators {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 15px;
    z-index: 10;
}

.indicator {
    width: 40px;
    height: 2px;
    background: rgba(255,255,255,0.4);
    cursor: pointer;
    transition: background var(--transition-fast);
}

.indicator.active { background: white; }

/* Grid Gallery - Index */
.curated-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2px;
    margin: var(--spacing-lg) 0;
}

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

.grid-item img {
    height: 100%;
    width: 100%;
    transition: transform var(--transition-smooth);
}

.grid-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity var(--transition-fast);
}

.grid-item:hover img { transform: scale(1.05); }
.grid-item:hover .grid-overlay { opacity: 1; }

.view-btn {
    color: white;
    border: 1px solid white;
    padding: 12px 30px;
    text-transform: uppercase;
    font-size: 12px;
    letter-spacing: 0.2em;
    background: transparent;
}

/* Philosophy Section */
.philosophy-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--spacing-md);
    margin-top: var(--spacing-md);
}

.philosophy-card {
    padding: 40px;
    text-align: center;
    border: 1px solid transparent;
    transition: border-color var(--transition-fast);
}

.philosophy-card:hover { border-color: var(--color-border); }

.philo-icon {
    width: 48px;
    height: 48px;
    margin: 0 auto 24px;
    stroke: var(--color-primary);
}

/* Masonry Gallery - Gallery Page */
.filter-nav {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-bottom: var(--spacing-lg);
}

.filter-btn {
    background: none;
    border: none;
    cursor: pointer;
    opacity: 0.5;
    transition: opacity var(--transition-fast);
    padding: 10px;
}

.filter-btn.active, .filter-btn:hover { opacity: 1; }

.masonry-grid {
    column-count: 3;
    column-gap: 20px;
}

.masonry-item {
    break-inside: avoid;
    margin-bottom: 20px;
    position: relative;
    overflow: hidden;
}

.masonry-item img {
    width: 100%;
    display: block;
    transition: filter var(--transition-fast);
}

/* Horizontal Story - Gallery Page */
.story-scroller {
    display: flex;
    overflow-x: auto;
    gap: 40px;
    padding: 40px 5vw;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE */
}
.story-scroller::-webkit-scrollbar { display: none; }

.story-card {
    min-width: 400px;
    flex-shrink: 0;
}

/* Aesthetic Explore - Split Layout */
.split-section {
    display: flex;
    min-height: 80vh;
    align-items: center;
}

.split-image { flex: 0 0 60%; height: 80vh; }
.split-text { flex: 0 0 40%; padding: 60px; }

.split-reverse { flex-direction: row-reverse; }

/* Color Swatches */
.color-study-container {
    display: flex;
    gap: 40px;
    align-items: center;
    justify-content: center;
}

.swatch-group {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.swatch {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

/* Footer */
.site-footer {
    padding: var(--spacing-lg) 0;
    border-top: 1px solid var(--color-border);
    text-align: center;
    font-size: 12px;
    color: var(--color-secondary);
    letter-spacing: 0.1em;
}

/* Animations */
.fade-in {
    animation: fadeIn 1s ease-out forwards;
    opacity: 0;
}

.delay-100 { animation-delay: 0.1s; }
.delay-200 { animation-delay: 0.2s; }
.delay-300 { animation-delay: 0.3s; }

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

/* Loading State */
.loading-screen {
    position: fixed;
    inset: 0;
    background: white;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.5s ease-out;
}

/* Responsive */
@media (max-width: 1024px) {
    .curated-grid, .philosophy-grid { grid-template-columns: repeat(2, 1fr); }
    .masonry-grid { column-count: 2; }
    .split-section { flex-direction: column; height: auto; }
    .split-image { width: 100%; height: 50vh; }
    .split-text { width: 100%; padding: 40px 20px; }
}

@media (max-width: 768px) {
    .mobile-menu-btn { display: block; }
    .nav-links {
        position: fixed;
        top: 0;
        right: 0;
        height: 100vh;
        width: 100%;
        background: white;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        transform: translateX(100%);
        transition: transform var(--transition-fast);
    }
    .nav-links.active { transform: translateX(0); }
    
    .curated-grid { grid-template-columns: 1fr; }
    .philosophy-grid { grid-template-columns: 1fr; }
    .masonry-grid { column-count: 1; }
    
    .story-card { min-width: 85vw; }
    
    h1 { font-size: 32px; }
    .section-spacing { padding: 60px 0; }
}