/* --- THEME VARIABLES --- */
:root {
    --bg-main: #0f172a;
    --bg-card: #1e293b;
    --primary-blue: #3b82f6;
    --text-white: #f8fafc;
    --text-muted: #94a3b8;
}

body { background-color: var(--bg-main); color: var(--text-white); }

/* --- HERO SECTION --- */
.graphics-hero {
    padding: 160px 0 60px;
    background: radial-gradient(circle at top center, rgba(59, 130, 246, 0.15), transparent 60%);
    text-align: center;
}

.graphics-hero h1 { font-size: 3rem; font-weight: 700; margin-bottom: 15px; }
.text-gradient {
    background: linear-gradient(135deg, #3b82f6 0%, #06b6d4 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
.sub-tag { 
    color: var(--primary-blue); font-weight: 600; letter-spacing: 2px; 
    text-transform: uppercase; font-size: 0.9rem; display: block; margin-bottom: 10px; 
}
.graphics-hero p { color: var(--text-muted); max-width: 600px; margin: 0 auto; line-height: 1.6; }

/* --- MASONRY GRID --- */
.gallery-section { padding: 40px 0 100px; }

.masonry-grid {
    column-count: 4; /* Desktop Columns */
    column-gap: 20px;
}

.masonry-item {
    break-inside: avoid;
    margin-bottom: 20px;
    border-radius: 12px;
    overflow: hidden;
    position: relative;
    cursor: zoom-in;
    background: var(--bg-card);
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.masonry-item img {
    width: 100%;
    display: block;
    transition: transform 0.5s ease;
}

/* Hover Effects */
.masonry-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.4);
    border-color: var(--primary-blue);
}
.masonry-item:hover img { transform: scale(1.05); }

/* Overlay */
.item-overlay {
    position: absolute; inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.9), transparent);
    opacity: 0; transition: 0.3s;
    display: flex; align-items: flex-end; padding: 20px;
}
.masonry-item:hover .item-overlay { opacity: 1; }
.item-overlay h5 { color: white; margin: 0; font-size: 1.1rem; font-weight: 500; }

/* Skeletons */
.skeleton-item {
    background: var(--bg-card);
    margin-bottom: 20px; border-radius: 12px;
    animation: pulse 1.5s infinite;
}
@keyframes pulse { 0% {opacity: 0.5;} 50% {opacity: 1;} 100% {opacity: 0.5;} }

/* Responsive Columns */
@media (max-width: 1200px) { .masonry-grid { column-count: 3; } }
@media (max-width: 768px) { .masonry-grid { column-count: 2; } }
@media (max-width: 480px) { .masonry-grid { column-count: 1; } }


/* --- LIGHTBOX MODAL --- */
.modal-overlay {
    position: fixed; inset: 0;
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(10px);
    z-index: 9999;
    display: none; justify-content: center; align-items: center;
    padding: 20px; opacity: 0; transition: opacity 0.3s ease;
}
.modal-overlay.active { display: flex; opacity: 1; }

.art-modal-content {
    max-width: 90%; max-height: 90vh;
    display: flex; flex-direction: column; align-items: center;
    position: relative;
}

.modal-image-box {
    overflow: hidden; border-radius: 8px;
    box-shadow: 0 0 50px rgba(59, 130, 246, 0.2);
}
.modal-image-box img {
    max-height: 80vh; max-width: 100%; object-fit: contain; display: block;
}

.modal-details {
    margin-top: 20px; text-align: center;
    animation: slideUp 0.4s ease;
}
.modal-details h3 { font-size: 1.5rem; color: white; margin-bottom: 5px; }
.badge {
    background: rgba(59, 130, 246, 0.2); color: #60a5fa;
    padding: 5px 15px; border-radius: 50px; font-size: 0.8rem;
    border: 1px solid var(--primary-blue);
}

.close-modal {
    position: absolute; top: 30px; right: 40px;
    background: none; border: none; color: white;
    font-size: 3rem; cursor: pointer; z-index: 10000;
    transition: 0.3s;
}
.close-modal:hover { color: var(--primary-blue); transform: rotate(90deg); }

@keyframes slideUp { from{transform:translateY(20px); opacity:0;} to{transform:translateY(0); opacity:1;} }