/* vision-collective-052202/frontend/public/css/style.css */

/* --- Variables --- */
:root {
    --color-bg: #FFFFFF;
    --color-bg-alt: #F8F8F8;
    --color-text: #333333;
    --color-text-light: #666666;
    --color-text-muted: #999999;
    --color-accent: #F5F1E8;
    
    --font-primary: "Helvetica Neue", Helvetica, Arial, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
    
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 4rem;
    --spacing-xl: 8rem;

    --transition-standard: all 0.3s ease-in-out;
    --transition-slow: all 1.2s ease-in-out;
}

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

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

body {
    font-family: var(--font-primary);
    background-color: var(--color-bg);
    color: var(--color-text);
    line-height: 1.6;
    font-weight: 300; /* Light */
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

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

ul {
    list-style: none;
}

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

/* --- Typography --- */
h1, h2, h3, h4, h5, h6 {
    font-weight: 500; /* Medium */
    line-height: 1.2;
    margin-bottom: var(--spacing-sm);
    letter-spacing: -0.02em;
}

h1 { font-size: 36px; }
h2 { font-size: 28px; }
h3 { font-size: 22px; }
p { font-size: 14px; color: var(--color-text-light); margin-bottom: var(--spacing-sm); }

/* --- Layout Utilities --- */
.container {
    width: 90%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 var(--spacing-sm);
}

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

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

.flex-center {
    display: flex;
    justify-content: center;
    align-items: center;
}

.text-center { text-align: center; }

.fade-in-up {
    animation: fadeInUp 0.8s ease-out forwards;
    opacity: 0;
    transform: translateY(20px);
}

/* --- Header & Navigation --- */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0,0,0,0.05);
    transition: transform 0.3s ease;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
    padding: 0 5%;
}

.logo {
    font-size: 20px;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--color-text);
}

.main-nav ul {
    display: flex;
    gap: var(--spacing-md);
}

.nav-link {
    font-size: 14px;
    color: var(--color-text-light);
    position: relative;
    padding-bottom: 4px;
}

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

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

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

/* Mobile Menu Toggle */
.mobile-menu-btn {
    display: none;
    cursor: pointer;
    background: none;
    border: none;
    font-size: 24px;
}

/* --- Hero Slider (Index) --- */
.hero-slider {
    position: relative;
    height: 100vh;
    width: 100%;
    overflow: hidden;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1.2s ease-in-out;
    display: flex;
    align-items: center;
    justify-content: center;
}

.slide.active {
    opacity: 1;
}

.slide-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -1;
}

.slide-content {
    color: #fff;
    text-align: center;
    z-index: 1;
    text-shadow: 0 2px 10px rgba(0,0,0,0.2);
    max-width: 600px;
    padding: 0 20px;
}

.slide-content h2 {
    font-size: 42px;
    font-weight: 300;
    margin-bottom: var(--spacing-sm);
    color: #fff;
}

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

.indicator {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: rgba(255,255,255,0.4);
    cursor: pointer;
    transition: var(--transition-standard);
}

.indicator.active {
    background-color: #fff;
    transform: scale(1.2);
}

/* --- Content Grid (Index) --- */
.collection-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--spacing-sm);
}

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

.grid-item img {
    width: 100%;
    height: 100%;
    transition: transform 0.6s ease;
}

.grid-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255,255,255,0.85);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: var(--transition-standard);
    padding: var(--spacing-md);
    text-align: center;
}

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

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

/* --- Craft Details (Page 2) --- */
.craft-module {
    display: flex;
    align-items: center;
    margin-bottom: var(--spacing-xl);
    gap: var(--spacing-lg);
}

.craft-module:nth-child(even) {
    flex-direction: row-reverse;
}

.craft-img {
    flex: 1;
    overflow: hidden;
}

.craft-img img {
    width: 100%;
    height: auto;
    aspect-ratio: 4/3;
}

.craft-text {
    flex: 1;
    padding: var(--spacing-md);
}

.waterfall-grid {
    column-count: 3;
    column-gap: var(--spacing-sm);
}

.waterfall-item {
    break-inside: avoid;
    margin-bottom: var(--spacing-sm);
    overflow: hidden;
}

.waterfall-item img {
    transition: transform 0.6s ease;
}

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

/* --- Narrative (Page 3) --- */
.video-hero {
    position: relative;
    height: 80vh;
    width: 100%;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
}

.video-bg {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    min-width: 100%;
    min-height: 100%;
    z-index: -2;
    object-fit: cover;
}

.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.3);
    z-index: -1;
}

.video-content {
    text-align: center;
    color: #fff;
    max-width: 800px;
}
.video-content h1 { color: #fff; }
.video-content p { color: rgba(255,255,255,0.9); font-size: 16px; }

.series-cards {
    display: flex;
    justify-content: space-between;
    gap: var(--spacing-md);
    padding: var(--spacing-lg) 0;
}

.series-card {
    flex: 1;
    background: #fff;
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    cursor: pointer;
}

.series-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.05);
}

.card-img {
    aspect-ratio: 3/4;
    overflow: hidden;
}

.card-content {
    padding: var(--spacing-md) 0;
}

.dual-display {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-sm);
    height: 80vh;
}

.dual-item {
    height: 100%;
    position: relative;
}

.dual-item img, .dual-item video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* --- Footer --- */
.site-footer {
    padding: var(--spacing-md) 0;
    margin-top: auto;
    border-top: 1px solid #eee;
    text-align: center;
}

.footer-text {
    font-size: 12px;
    color: var(--color-text-muted);
    letter-spacing: 0.05em;
}

/* --- Keyframes --- */
@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* --- Responsive --- */
@media (max-width: 1024px) {
    h1 { font-size: 32px; }
    h2 { font-size: 24px; }
    
    .collection-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .waterfall-grid {
        column-count: 2;
    }
}

@media (max-width: 768px) {
    .nav-container {
        height: 60px;
    }

    .mobile-menu-btn {
        display: block;
    }

    .main-nav {
        position: fixed;
        top: 60px;
        left: 0;
        width: 100%;
        background: #fff;
        padding: var(--spacing-md);
        border-bottom: 1px solid #eee;
        transform: translateY(-150%);
        transition: transform 0.3s ease;
        z-index: 999;
    }

    .main-nav.open {
        transform: translateY(0);
    }

    .main-nav ul {
        flex-direction: column;
        align-items: center;
        gap: var(--spacing-sm);
    }

    .slide-content h2 {
        font-size: 28px;
    }

    .collection-grid {
        grid-template-columns: 1fr;
    }

    .craft-module {
        flex-direction: column !important;
        gap: var(--spacing-sm);
        margin-bottom: var(--spacing-lg);
    }

    .waterfall-grid {
        column-count: 1;
    }

    .series-cards {
        flex-direction: column;
    }
    
    .dual-display {
        grid-template-columns: 1fr;
        height: auto;
    }
    
    .dual-item {
        aspect-ratio: 3/4;
    }
}