* { margin: 0; padding: 0; box-sizing: border-box; }
:root { --bg: #0a0a0a; --bg-soft: #111; --text: #fff; --mute: #666; --gold: #c9a962; --gold-dim: rgba(201,169,98,0.3); }
html { scroll-behavior: smooth; }
body { font-family: 'Cormorant Garamond', serif; background: var(--bg); color: var(--text); overflow-x: hidden; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; font: inherit; border: none; background: none; }

/* Header */
.header { position: fixed; top: 0; left: 0; right: 0; padding: 24px 50px; display: flex; justify-content: space-between; align-items: center; z-index: 100; transition: all 0.4s; }
.header.solid { background: rgba(10,10,10,0.95); padding: 18px 50px; }
.logo { font-size: 0.9rem; letter-spacing: 0.4em; font-weight: 300; transition: color 0.3s; }
.logo:hover { color: var(--gold); }
.nav { display: flex; gap: 35px; }
.nav a { font-size: 0.7rem; letter-spacing: 0.12em; color: var(--mute); transition: all 0.3s; position: relative; }
.nav a::after { content: ''; position: absolute; bottom: -4px; left: 0; width: 0; height: 1px; background: var(--gold); transition: width 0.3s; }
.nav a:hover { color: var(--text); }
.nav a:hover::after { width: 100%; }

/* Hero Gallery */
.hero-gallery { position: relative; height: 100vh; overflow: hidden; }
.gallery-bg { position: absolute; inset: 0; }
.bg-img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.1); animation: heroZoom 20s ease-in-out infinite alternate; }
@keyframes heroZoom { from { transform: scale(1.1); } to { transform: scale(1.2); } }
.gallery-overlay { position: absolute; inset: 0; background: linear-gradient(to bottom, rgba(10,10,10,0.4) 0%, rgba(10,10,10,0.7) 50%, var(--bg) 100%); }

/* Gallery Hero Content */
.gallery-hero-content { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); text-align: center; z-index: 10; }
.hero-line { width: 60px; height: 1px; background: var(--gold); margin: 0 auto 30px; animation: lineGrow 1s ease 0.2s backwards; }
@keyframes lineGrow { from { width: 0; } to { width: 60px; } }
.gallery-title { font-size: 4rem; font-weight: 300; letter-spacing: 0.5em; margin-bottom: 15px; animation: fadeUp 1s ease backwards; }
.gallery-subtitle { font-size: 1rem; color: var(--mute); letter-spacing: 0.2em; animation: fadeUp 1s ease 0.3s backwards; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: translateY(0); } }

.hero-stats { display: flex; justify-content: center; gap: 60px; margin-top: 50px; animation: fadeUp 1s ease 0.5s backwards; }
.stat-item { display: flex; flex-direction: column; align-items: center; }
.stat-num { font-size: 2.2rem; font-weight: 300; color: var(--gold); font-family: 'Playfair Display', serif; }
.stat-label { font-size: 0.7rem; letter-spacing: 0.2em; color: var(--mute); margin-top: 5px; }

/* Scroll Hint */
.gallery-scroll-hint { position: absolute; bottom: 40px; left: 50%; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; gap: 15px; z-index: 20; animation: fadeUp 1s ease 0.7s backwards; }
.gallery-scroll-hint span { font-size: 0.65rem; letter-spacing: 0.2em; color: var(--mute); }
.scroll-line { width: 1px; height: 50px; background: linear-gradient(to bottom, var(--gold), transparent); animation: scrollPulse 2s ease infinite; }
@keyframes scrollPulse { 0%, 100% { opacity: 0.3; height: 50px; } 50% { opacity: 1; height: 70px; } }

/* Main Gallery */
.gallery-main { position: relative; z-index: 10; margin-top: -1px; }

/* Category Nav - Floating Glass */
.category-nav { position: sticky; top: 80px; display: flex; justify-content: center; gap: 10px; padding: 20px 0; z-index: 50; background: rgba(10,10,10,0.8); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); border-bottom: 1px solid rgba(255,255,255,0.05); }
.cat-btn { padding: 12px 28px; font-size: 0.75rem; letter-spacing: 0.15em; color: var(--mute); background: rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,0.08); transition: all 0.4s; position: relative; overflow: hidden; }
.cat-btn::before { content: ''; position: absolute; top: 0; left: -100%; width: 100%; height: 100%; background: linear-gradient(90deg, transparent, rgba(201,169,98,0.1), transparent); transition: left 0.5s; }
.cat-btn:hover::before { left: 100%; }
.cat-btn:hover { color: var(--text); border-color: var(--gold-dim); }
.cat-btn.active { background: var(--gold); color: #000; border-color: var(--gold); }

/* Grid */
.gallery-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; padding: 30px 50px; }
.gallery-item { position: relative; aspect-ratio: 3/4; overflow: hidden; cursor: pointer; }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s cubic-bezier(0.4,0,0.2,1); }
.gallery-item:hover img { transform: scale(1.1); }

/* Item Overlay - Glass */
.item-overlay { position: absolute; inset: 0; background: linear-gradient(to top, rgba(0,0,0,0.9) 0%, transparent 60%); display: flex; flex-direction: column; justify-content: flex-end; padding: 25px; opacity: 0; transition: all 0.4s; }
.item-overlay::before { content: ''; position: absolute; inset: 0; background: rgba(10,10,10,0.6); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); opacity: 0; transition: opacity 0.4s; }
.gallery-item:hover .item-overlay { opacity: 1; }
.gallery-item:hover .item-overlay::before { opacity: 1; }

.item-info { position: relative; z-index: 1; transform: translateY(20px); transition: transform 0.4s; }
.gallery-item:hover .item-info { transform: translateY(0); }
.item-cat { display: inline-block; font-size: 0.6rem; letter-spacing: 0.2em; color: var(--gold); margin-bottom: 8px; }
.item-info h3 { font-size: 1.5rem; font-weight: 400; letter-spacing: 0.1em; margin-bottom: 5px; }
.item-info p { font-size: 0.8rem; color: var(--mute); }

.item-actions { position: relative; z-index: 1; display: flex; gap: 15px; margin-top: 15px; transform: translateY(20px); opacity: 0; transition: all 0.4s 0.1s; }
.gallery-item:hover .item-actions { transform: translateY(0); opacity: 1; }
.item-like { font-size: 0.75rem; color: var(--mute); transition: color 0.3s; }
.item-like:hover { color: var(--gold); }
.item-like.liked { color: var(--gold); }
.item-view { font-size: 0.7rem; letter-spacing: 0.1em; color: var(--text); padding: 8px 16px; border: 1px solid rgba(255,255,255,0.3); transition: all 0.3s; }
.item-view:hover { background: var(--gold); color: #000; border-color: var(--gold); }

/* About Section */
.gallery-about { padding: 60px 50px 80px; background: linear-gradient(to bottom, var(--bg), var(--bg-soft)); }
.about-card { max-width: 700px; margin: 0 auto; text-align: center; padding: 50px; background: linear-gradient(135deg, rgba(255,255,255,0.05) 0%, rgba(255,255,255,0.02) 100%); border: 1px solid rgba(255,255,255,0.06); position: relative; }
.about-line { width: 40px; height: 1px; background: var(--gold); margin: 0 auto 25px; }
.about-card h2 { font-size: 1.8rem; font-weight: 300; letter-spacing: 0.15em; margin-bottom: 20px; }
.about-card p { font-size: 1rem; line-height: 1.9; color: var(--mute); margin-bottom: 30px; }
.about-tags { display: flex; justify-content: center; gap: 20px; }
.about-tags span { font-size: 0.7rem; letter-spacing: 0.15em; color: var(--gold); padding: 8px 20px; border: 1px solid var(--gold-dim); }

/* Footer */
.gallery-footer { padding: 40px 50px; background: var(--bg-soft); border-top: 1px solid rgba(255,255,255,0.04); text-align: center; }
.footer-content { display: flex; flex-direction: column; align-items: center; gap: 15px; }
.footer-logo { font-size: 1rem; letter-spacing: 0.3em; color: var(--mute); }
.footer-content > p { font-size: 0.75rem; color: var(--mute); }
.footer-links { display: flex; gap: 30px; margin-top: 10px; }
.footer-links a { font-size: 0.7rem; color: var(--mute); transition: color 0.3s; }
.footer-links a:hover { color: var(--gold); }

/* Scroll Animations */
.reveal { opacity: 0; transform: translateY(50px); transition: all 0.8s cubic-bezier(0.4,0,0.2,1); }
.reveal.active { opacity: 1; transform: translateY(0); }

/* Responsive */
@media (max-width: 1024px) {
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .gallery-grid { grid-template-columns: 1fr; }
  .gallery-title { font-size: 2.5rem; letter-spacing: 0.3em; }
  .hero-stats { gap: 30px; }
  .category-nav { gap: 5px; flex-wrap: wrap; }
  .cat-btn { padding: 10px 16px; font-size: 0.65rem; }
}

.toast { position: fixed; bottom: 30px; left: 50%; transform: translateX(-50%) translateY(100px); background: var(--gold); color: #000; padding: 15px 30px; font-size: 0.85rem; letter-spacing: 0.1em; z-index: 300; opacity: 0; transition: all 0.4s cubic-bezier(0.4,0,0.2,1); }
.toast.show { transform: translateX(-50%) translateY(0); opacity: 1; }