/* ==========================================================================
   Global Reset & Typography (High-end Minimalist Style)
   ========================================================================== */
   :root {
    --primary: #1a1a1a;
    --background: #fcfcfc;
    --surface: #ffffff;
    --text: #333333;
    --muted: #888888;
    --border: #eeeeee;
    --spacing: 2rem;
    --transition-smooth: all 0.8s cubic-bezier(0.19, 1, 0.22, 1);
    --transition-fast: all 0.3s ease;
}

body {
    font-family: "Source Han Sans CN", "Helvetica Neue", Helvetica, Arial, sans-serif;
    background-color: var(--background);
    color: var(--text);
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 300;
    letter-spacing: 0.05em;
    color: var(--primary);
    margin-top: 0;
}

/* ==========================================================================
   Navigation (Transparent & Fixed)
   ========================================================================== */
nav {
    padding: 1.5rem 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(252, 252, 252, 0.95);
    backdrop-filter: blur(10px);
    transition: transform 0.3s ease;
    border-bottom: 1px solid transparent;
}

nav.scrolled {
    padding: 1rem 5%;
    border-bottom: 1px solid rgba(0,0,0,0.03);
}

nav .brand {
    font-size: 1.2rem;
    font-weight: 500;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--primary);
    text-decoration: none;
}

nav ul {
    display: flex;
    list-style: none;
    gap: 3rem;
    margin: 0;
    padding: 0;
}

nav a {
    text-decoration: none;
    color: var(--text);
    font-size: 0.85rem;
    letter-spacing: 0.1em;
    transition: var(--transition-fast);
    position: relative;
}

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

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

/* ==========================================================================
   Hero Section (Immersive)
   ========================================================================== */
.hero {
    height: 100vh;
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -1;
    filter: brightness(0.9) grayscale(20%);
    transition: transform 10s ease;
}

.hero:hover .hero-bg {
    transform: scale(1.02);
}

.hero-content {
    text-align: center;
    color: white;
    z-index: 1;
    max-width: 800px;
    padding: 0 2rem;
}

.hero h1 {
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    font-weight: 200;
    margin-bottom: 1.5rem;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    text-shadow: 0 4px 20px rgba(0,0,0,0.3);
}

.hero p {
    font-size: clamp(1rem, 2vw, 1.2rem);
    letter-spacing: 0.2em;
    font-weight: 300;
    opacity: 0.9;
    margin-bottom: 3rem;
}

.btn-explore {
    display: inline-block;
    padding: 1rem 3rem;
    border: 1px solid rgba(255,255,255,0.6);
    color: white;
    text-decoration: none;
    font-size: 0.8rem;
    letter-spacing: 0.2em;
    transition: var(--transition-fast);
    background: transparent;
    cursor: pointer;
}

.btn-explore:hover {
    background: white;
    color: var(--primary);
    border-color: white;
}

.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    cursor: pointer;
    opacity: 0.7;
    animation: fadeBounce 3s infinite ease-in-out;
}

/* ==========================================================================
   Gallery Layouts (Grid & Masonry)
   ========================================================================== */
.section-padding {
    padding: 6rem 5%;
}

.section-header {
    text-align: center;
    margin-bottom: 5rem;
}

.section-header h2 {
    font-size: 2rem;
    letter-spacing: 0.15em;
    font-weight: 300;
    margin-bottom: 1rem;
}

.section-header p {
    color: var(--muted);
    font-size: 0.9rem;
    max-width: 500px;
    margin: 0 auto;
}

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

.gallery-item {
    position: relative;
    overflow: hidden;
    aspect-ratio: 3/4;
    cursor: pointer;
    background-color: #f0f0f0;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-smooth);
    will-change: transform;
}

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

.gallery-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.2);
    opacity: 0;
    transition: var(--transition-fast);
    display: flex;
    align-items: flex-end;
    padding: 2rem;
}

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

.gallery-text {
    color: white;
    transform: translateY(20px);
    transition: var(--transition-smooth);
}

.gallery-item:hover .gallery-text {
    transform: translateY(0);
}

/* ==========================================================================
   Catalog & Filters
   ========================================================================== */
.catalog-container {
    display: grid;
    grid-template-columns: 250px 1fr;
    gap: 4rem;
    margin-top: 80px;
    padding: 2rem 5%;
}

.filters {
    position: sticky;
    top: 120px;
    height: fit-content;
}

.filter-group {
    margin-bottom: 3rem;
}

.filter-title {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--muted);
    margin-bottom: 1.5rem;
    display: block;
}

.filter-btn {
    display: block;
    width: 100%;
    text-align: left;
    background: none;
    border: none;
    padding: 0.5rem 0;
    font-size: 0.9rem;
    color: var(--text);
    cursor: pointer;
    transition: color 0.3s;
    font-family: inherit;
}

.filter-btn:hover, .filter-btn.active {
    color: var(--muted);
    padding-left: 10px;
}

/* ==========================================================================
   Modals (Lightbox)
   ========================================================================== */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255,255,255,0.98);
    z-index: 2000;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease;
}

.modal[open] {
    opacity: 1;
    pointer-events: all;
}

.modal-content {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    width: 90%;
    max-width: 1400px;
    height: 85vh;
    background: white;
    box-shadow: 0 30px 60px rgba(0,0,0,0.08);
    overflow: hidden;
}

.modal-image {
    height: 100%;
    overflow: hidden;
}

.modal-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.modal-details {
    padding: 4rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    overflow-y: auto;
}

.modal-close {
    position: absolute;
    top: 2rem;
    right: 2rem;
    font-size: 2rem;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--primary);
    opacity: 0.5;
    transition: opacity 0.3s;
}

.modal-close:hover {
    opacity: 1;
}

/* ==========================================================================
   Article / Inspiration
   ========================================================================== */
.article-layout {
    max-width: 800px;
    margin: 0 auto;
    padding: 4rem 2rem;
}

.article-header {
    text-align: center;
    margin-bottom: 4rem;
}

.article-meta {
    font-size: 0.8rem;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.2em;
    margin-bottom: 1rem;
    display: block;
}

.article-content img {
    width: 100%;
    margin: 2rem 0;
    display: block;
}

.article-text {
    font-size: 1.1rem;
    line-height: 2;
    color: #4a4a4a;
    margin-bottom: 2rem;
}

/* ==========================================================================
   About Section
   ========================================================================== */
.about-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 100vh;
}

.about-visual {
    background-color: #f4f4f4;
    position: relative;
    overflow: hidden;
}

.about-visual img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.about-narrative {
    padding: 15%;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* ==========================================================================
   Footer
   ========================================================================== */
footer {
    padding: 3rem 0;
    text-align: center;
    border-top: 1px solid var(--border);
    margin-top: 6rem;
}

.copyright {
    font-size: 0.7rem;
    color: #bbb;
    letter-spacing: 0.1em;
}

.legal-links {
    margin-top: 1rem;
    font-size: 0.6rem;
}

.legal-links a {
    color: #ddd;
    margin: 0 0.5rem;
    text-decoration: none;
    transition: color 0.3s;
}

.legal-links a:hover {
    color: var(--muted);
}

/* ==========================================================================
   Animations
   ========================================================================== */
@keyframes fadeBounce {
    0%, 100% { transform: translate(-50%, 0); opacity: 0.7; }
    50% { transform: translate(-50%, 10px); opacity: 0.3; }
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1024px) {
    .catalog-container {
        grid-template-columns: 200px 1fr;
        gap: 2rem;
    }
    .modal-content {
        width: 95%;
        height: 80vh;
    }
}

@media (max-width: 768px) {
    nav {
        padding: 1rem;
        justify-content: center;
    }
    nav ul {
        gap: 1.5rem;
    }
    nav .brand {
        display: none; /* Simplified for mobile focus */
    }
    
    .hero h1 {
        font-size: 2rem;
    }
    
    .catalog-container {
        grid-template-columns: 1fr;
        margin-top: 20px;
    }
    
    .filters {
        position: relative;
        top: 0;
        display: flex;
        overflow-x: auto;
        padding-bottom: 1rem;
        border-bottom: 1px solid var(--border);
        margin-bottom: 2rem;
        gap: 2rem;
    }
    
    .filter-btn {
        white-space: nowrap;
        width: auto;
    }
    
    .modal-content {
        grid-template-columns: 1fr;
        height: auto;
        max-height: 90vh;
        overflow-y: auto;
    }
    
    .modal-image {
        height: 300px;
    }
    
    .modal-details {
        padding: 2rem;
    }
    
    .about-split {
        grid-template-columns: 1fr;
    }
    
    .about-narrative {
        padding: 3rem 2rem;
    }
    
    .about-visual {
        height: 400px;
    }
}