* {
margin: 0;
padding: 0;
box-sizing: border-box;
}

body {
font-family: 'Helvetica Neue', Arial, sans-serif;
background: linear-gradient(135deg, #0a0a0a 0%, #1a1a1a 100%);
color: #fff;
min-height: 100vh;
padding: 40px 20px;
}

.header {
text-align: center;
margin-bottom: 60px;
max-width: 900px;
margin-left: auto;
margin-right: auto;
}

.header h1 {
font-size: 2.5rem;
font-weight: 900;
letter-spacing: 3px;
margin-bottom: 10px;
text-shadow: 0 0 20px rgba(255, 255, 255, 0.3);
}

.header p {
font-size: 1rem;
color: #aaa;
letter-spacing: 2px;
text-transform: uppercase;
}

.back-link {
display: inline-block;
margin-bottom: 30px;
color: #667eea;
text-decoration: none;
font-size: 1rem;
transition: all 0.3s ease;
}

.back-link:hover {
color: #764ba2;
transform: translateX(-5px);
}

.category-nav {
display: flex;
justify-content: center;
gap: 15px;
margin-bottom: 40px;
flex-wrap: wrap;
}

.category-btn {
padding: 12px 24px;
background: rgba(255, 255, 255, 0.05);
border: 2px solid rgba(102, 126, 234, 0.3);
color: #fff;
cursor: pointer;
border-radius: 8px;
transition: all 0.3s ease;
font-size: 0.95rem;
letter-spacing: 1px;
text-transform: uppercase;
}

.category-btn:hover {
background: rgba(102, 126, 234, 0.2);
border-color: rgba(102, 126, 234, 0.6);
transform: translateY(-2px);
}

.category-btn.active {
background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
border-color: #667eea;
box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

.category-section {
margin-bottom: 60px;
max-width: 1400px;
margin-left: auto;
margin-right: auto;
}

.category-section.hidden {
display: none;
}

.category-title {
font-size: 2rem;
font-weight: 700;
margin-bottom: 30px;
text-align: center;
letter-spacing: 2px;
text-transform: uppercase;
background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
-webkit-background-clip: text;
-webkit-text-fill-color: transparent;
background-clip: text;
}

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

.gallery-item {
position: relative;
overflow: hidden;
border-radius: 12px;
cursor: pointer;
background: rgba(255, 255, 255, 0.05);
border: 2px solid rgba(255, 255, 255, 0.1);
transition: all 0.3s ease;
aspect-ratio: 3/4;
}

.gallery-item::after {
content: '';
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
opacity: 0;
transition: opacity 0.3s ease;
z-index: 1;
pointer-events: none;
border-top: 3px solid rgba(255, 255, 255, 0.5);
border-left: 2px solid rgba(255, 255, 255, 0.35);
border-right: 2px solid rgba(0, 0, 0, 0.35);
border-bottom: 4px solid rgba(0, 0, 0, 0.5);
border-radius: 12px;
box-shadow:
inset 0 2px 4px rgba(255, 255, 255, 0.3),
inset 0 -2px 4px rgba(0, 0, 0, 0.3);
background: linear-gradient(135deg, rgba(102, 126, 234, 0.3) 0%, rgba(118, 75, 162, 0.3) 100%);
}

.gallery-item:hover {
transform: translateY(-3px);
border-color: rgba(102, 126, 234, 0.6);
box-shadow:
0 2px 0 rgba(0,0,0,0.3) inset,
0 10px 30px rgba(0, 0, 0, 0.4),
0 0 0 2px rgba(255,255,255,0.1);
}

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

.gallery-item img {
width: 100%;
height: 100%;
object-fit: cover;
transition: transform 0.3s ease;
}

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

.lightbox {
display: none;
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 100%;
background: rgba(0, 0, 0, 0.95);
z-index: 1000;
justify-content: center;
align-items: center;
animation: fadeIn 0.3s ease;
}

.lightbox.active {
display: flex;
}

.lightbox-content {
max-width: 90%;
max-height: 90%;
position: relative;
animation: zoomIn 0.3s ease;
}

.lightbox-content img {
max-width: 100%;
max-height: 90vh;
object-fit: contain;
border-radius: 8px;
box-shadow: 0 20px 60px rgba(0, 0, 0, 0.8);
}

.lightbox-close {
position: absolute;
top: 20px;
right: 20px;
font-size: 3rem;
color: #fff;
background: rgba(0, 0, 0, 0.5);
width: 60px;
height: 60px;
border-radius: 50%;
display: flex;
align-items: center;
justify-content: center;
cursor: pointer;
transition: all 0.3s ease;
border: 2px solid rgba(255, 255, 255, 0.3);
}

.lightbox-close:hover {
background: rgba(102, 126, 234, 0.8);
transform: rotate(90deg);
border-color: #667eea;
}

.lightbox-nav {
position: absolute;
top: 50%;
transform: translateY(-50%);
font-size: 3rem;
color: #fff;
background: rgba(0, 0, 0, 0.5);
width: 60px;
height: 60px;
border-radius: 50%;
display: flex;
align-items: center;
justify-content: center;
cursor: pointer;
transition: all 0.3s ease;
border: 2px solid rgba(255, 255, 255, 0.3);
}

.lightbox-nav:hover {
background: rgba(102, 126, 234, 0.8);
border-color: #667eea;
}

.lightbox-prev {
left: 20px;
}

.lightbox-next {
right: 20px;
}

.loading {
text-align: center;
padding: 60px 20px;
color: #666;
font-size: 1.2rem;
}

footer {
text-align: center;
color: #666;
font-size: 0.85rem;
margin-top: 60px;
padding-top: 20px;
padding-bottom: 20px;
border-top: 1px solid rgba(255, 255, 255, 0.1);
}

footer a {
color: #667eea;
text-decoration: none;
transition: color 0.3s ease;
}

footer a:hover {
color: #764ba2;
}

footer p {
margin-bottom: 10px;
}

@keyframes fadeIn {
from { opacity: 0; }
to { opacity: 1; }
}

@keyframes zoomIn {
from { transform: scale(0.9); opacity: 0; }
to { transform: scale(1); opacity: 1; }
}

@media (max-width: 768px) {
.gallery {
grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
gap: 15px;
}
.lightbox-close,
.lightbox-nav {
width: 50px;
height: 50px;
font-size: 2rem;
}
.header h1 {
font-size: 2rem;
}
.category-title {
font-size: 1.5rem;
}
}

@media (max-width: 480px) {
.gallery {
grid-template-columns: 1fr;
gap: 15px;
}
.lightbox-close {
top: 10px;
right: 10px;
}
.lightbox-nav {
width: 45px;
height: 45px;
font-size: 1.5rem;
}
.lightbox-prev { left: 10px; }
.lightbox-next { right: 10px; }
}

.image-error {
display: flex;
align-items: center;
justify-content: center;
height: 100%;
color: #666;
text-align: center;
padding: 20px;
font-size: 0.8rem;
}
