/* ═══════════════════════════════════════════════
   feiabow — Minimal Portfolio
   ═══════════════════════════════════════════════ */

*, *::before, *::after { box-sizing: border-box; }

:root {
    --bg: #000000;
    --text: #ffffff;
    --text-muted: rgba(255,255,255,0.5);
    --grid-gap: 4px;
}

html { background: var(--bg); }

body {
    margin: 0;
    padding: 0;
    background: var(--bg);
    color: var(--text);
    font-family: 'Inter', -apple-system, sans-serif;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

a { color: var(--text); text-decoration: none; }
img { display: block; }

/* ── Site name — top left ── */
.site-name {
    position: fixed;
    top: 0; left: 0;
    z-index: 100;
    padding: 20px 28px;
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: 2rem;
    font-weight: 400;
    letter-spacing: 0.04em;
    mix-blend-mode: difference;
}
.site-name a { color: var(--text); }

/* ── Hero — full-width Three.js ── */
.hero-banner {
    width: 100%;
    height: 100vh;
    min-height: 480px;
    background: var(--bg);
    overflow: hidden;
}
.hero-banner canvas {
    width: 100%;
    height: 100%;
    display: block;
}

/* ── Gallery — 3×3 grid ── */
.gallery-section {
    padding: 0 var(--grid-gap) var(--grid-gap);
}
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--grid-gap);
}
.gallery-item {
    position: relative;
    overflow: hidden;
    cursor: pointer;
    aspect-ratio: 1;
    background: #111;
}
.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease, opacity 0.3s;
    opacity: 0.92;
}
.gallery-item:hover img {
    transform: scale(1.04);
    opacity: 1;
}

/* ── Lightbox ── */
.lightbox {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: rgba(0,0,0,0.95);
}
.lightbox.active { display: block; }

.lightbox-close {
    position: absolute;
    top: 16px; right: 20px;
    background: none; border: none;
    color: var(--text);
    font-size: 2rem;
    cursor: pointer;
    z-index: 10002;
    opacity: 0.6;
    transition: opacity 0.2s;
}
.lightbox-close:hover { opacity: 1; }

.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255,255,255,0.08);
    border: none;
    border-radius: 50%;
    color: var(--text);
    font-size: 2rem;
    line-height: 1;
    width: 48px;
    height: 48px;
    cursor: pointer;
    z-index: 10001;
    opacity: 0.6;
    transition: opacity 0.2s;
    user-select: none;
    display: flex;
    align-items: center;
    justify-content: center;
}
.lightbox-nav:hover { opacity: 1; }
.lightbox-prev { left: 10px; }
.lightbox-next { right: 10px; }

.lightbox-img {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    max-width: 92vw;
    max-height: 90vh;
    object-fit: contain;
    transition: opacity 0.12s ease;
}
.lightbox-open { overflow: hidden; }

/* ── Section Title ── */
.section-title {
    padding: 60px 20px 30px;
}
.section-title h2 {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: 2rem;
    font-weight: 300;
    letter-spacing: 0.06em;
    color: var(--text);
    text-align: center;
    max-width: 100%;
}

/* ── About ── */
.about-section {
    padding: 60px 20px;
}
.about-title {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: 2rem;
    font-weight: 300;
    letter-spacing: 0.06em;
    text-align: left;
    margin-bottom: 24px;
    max-width: 50%;
}
.about-text {
    font-family: 'Inter', sans-serif;
    font-size: 0.95rem;
    line-height: 1.7;
    color: rgba(255,255,255,0.75);
    max-width: 50%;
    text-align: left;
}
.about-text p:first-child {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: 1.2rem;
    font-style: italic;
    line-height: 1.5;
    margin-bottom: 16px;
}

/* ── Footer ── */
.site-footer {
    text-align: center;
    padding: 32px 20px;
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: 0.9rem;
    font-weight: 300;
    letter-spacing: 0.06em;
    color: var(--text-muted);
}

/* ── Responsive ── */
@media (max-width: 768px) {
    .gallery-grid { grid-template-columns: repeat(2, 1fr); }
    .site-name { font-size: 1.6rem; padding: 14px 18px; }
}
