:root {
    --bg-dark: #0f172a;
    --bg-card: #1e293b;
    --primary: #06b6d4;
    /* Cian Neón */
    --primary-glow: rgba(6, 182, 212, 0.6);
    --secondary: #d946ef;
    /* Magenta Neón */
    --text-main: #e2e8f0;
    --text-muted: #94a3b8;
    --border: #334155;

    --font-main: 'Montserrat', sans-serif;
    --font-secondary: 'Inter', sans-serif;
}

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

body {
    font-family: var(--font-secondary);
    background-color: var(--bg-dark);
    /* Subtle grid pattern for cyber feel */
    background-image:
        linear-gradient(rgba(15, 23, 42, 0.95), rgba(15, 23, 42, 0.95)),
        linear-gradient(90deg, rgba(51, 65, 85, 0.3) 1px, transparent 1px),
        linear-gradient(rgba(51, 65, 85, 0.3) 1px, transparent 1px);
    background-size: 100% 100%, 50px 50px, 50px 50px;
    background-attachment: fixed;

    min-height: 100vh;
    color: var(--text-main);
    overflow-x: hidden;
}

/* --- HEADER --- */
.neon-header {
    background: rgba(15, 23, 42, 0.9);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border);
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

.header-center {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}

.neon-title {
    font-family: var(--font-main);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 4px;
    font-size: 1.5rem;
    color: #fff;
    text-shadow: 0 0 10px var(--primary-glow);
    margin: 0;
}

.neon-title .highlight {
    color: var(--primary);
}

/* --- CONTROLS --- */
.nav-btn {
    color: var(--text-muted);
    text-decoration: none;
    font-weight: 600;
    margin-right: 1.5rem;
    font-size: 0.9rem;
    transition: color 0.3s;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.nav-btn:hover {
    color: var(--primary);
    text-shadow: 0 0 8px var(--primary-glow);
}

.search-box {
    position: relative;
    display: inline-flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 4px;
    border: 1px solid var(--border);
    padding: 0.5rem 1rem;
    margin-right: 1rem;
}

.search-box:focus-within {
    border-color: var(--primary);
    box-shadow: 0 0 10px rgba(6, 182, 212, 0.2);
}

.search-box input {
    background: transparent;
    border: none;
    color: #fff;
    margin-left: 0.5rem;
    outline: none;
    font-family: var(--font-secondary);
    width: 150px;
}

.music-btn {
    background: transparent;
    border: 1px solid var(--primary);
    color: var(--primary);
    padding: 0.5rem 1.2rem;
    border-radius: 4px;
    cursor: pointer;
    font-family: var(--font-main);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.8rem;
    transition: all 0.3s;
}

.music-btn:hover {
    background: var(--primary);
    color: #000;
    box-shadow: 0 0 15px var(--primary-glow);
}

.music-btn.playing {
    border-color: var(--secondary);
    color: var(--secondary);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 rgba(217, 70, 239, 0.4);
    }

    50% {
        box-shadow: 0 0 20px rgba(217, 70, 239, 0.7);
    }

    100% {
        box-shadow: 0 0 0 rgba(217, 70, 239, 0.4);
    }
}


/* --- GALLERY GRID --- */
.gallery-container {
    padding: 4rem 2rem;
    max-width: 1600px;
    margin: 0 auto;
}

.category-section {
    margin-bottom: 6rem;
}

.category-title {
    font-family: var(--font-main);
    font-size: 2rem;
    color: white;
    margin-bottom: 2rem;
    border-left: 4px solid var(--secondary);
    padding-left: 1rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    position: relative;
}

.category-title::after {
    content: '';
    position: absolute;
    bottom: 5px;
    left: 1rem;
    width: 200px;
    height: 1px;
    background: linear-gradient(90deg, var(--secondary), transparent);
}

.art-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 3rem 2rem;
    padding: 1rem;
}

/* --- ART CARD --- */
.art-card {
    position: relative;
    background: transparent;
    border-radius: 8px;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    cursor: pointer;
    perspective: 1000px;
}

.art-image-wrapper {
    position: relative;
    width: 100%;
    aspect-ratio: 3/4;
    /* Vertical portrait usually */
    overflow: hidden;
    border-radius: 8px;
    border: 1px solid var(--border);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.5);
    transition: all 0.4s ease;
}

.art-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.art-info {
    margin-top: 1rem;
    text-align: center;
    opacity: 0.7;
    transition: all 0.3s;
}

.art-title {
    font-family: var(--font-main);
    font-weight: 600;
    color: #fff;
    font-size: 0.9rem;
    margin-bottom: 0.2rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.art-price {
    font-size: 0.8rem;
    color: var(--primary);
}

/* Hover Effects */
.art-card:hover .art-image-wrapper {
    transform: translateY(-10px);
    border-color: var(--primary);
    box-shadow: 0 0 30px rgba(6, 182, 212, 0.3), 0 20px 40px rgba(0, 0, 0, 0.6);
}

.art-card:hover img {
    transform: scale(1.1);
}

.art-card:hover .art-info {
    opacity: 1;
    transform: translateY(5px);
}

/* --- HERO OVERLAY --- */
#hero-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(15px);
    z-index: 1000;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease;
}

#hero-overlay.active {
    opacity: 1;
    pointer-events: all;
}

.hero-content {
    display: flex;
    max-width: 1200px;
    width: 90%;
    height: 80vh;
    background: #111;
    border: 1px solid #333;
    border-radius: 4px;
    overflow: hidden;
    box-shadow: 0 0 100px rgba(0, 0, 0, 0.8);
    transform: scale(0.9);
    transition: transform 0.4s ease;
}

#hero-overlay.active .hero-content {
    transform: scale(1);
}

.hero-image-container {
    flex: 6;
    background: #000;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 2rem;
    position: relative;
    border-right: 1px solid #222;
}

.hero-image-container img {
    max-width: 100%;
    max-height: 100%;
    box-shadow: 0 0 50px rgba(0, 0, 0, 0.5);
    border: 2px solid #222;
}

.hero-details {
    flex: 4;
    padding: 4rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: linear-gradient(135deg, #1a1a1a 0%, #0d0d0d 100%);
}

#hero-title {
    font-family: var(--font-main);
    font-size: 2.5rem;
    color: #fff;
    margin-bottom: 1rem;
    line-height: 1.2;
    background: linear-gradient(90deg, #fff, #999);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-meta {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
}

.tag {
    background: rgba(255, 255, 255, 0.1);
    padding: 4px 12px;
    border-radius: 50px;
    font-size: 0.8rem;
    color: #aaa;
    border: 1px solid #333;
}

.price {
    color: var(--primary);
    font-weight: 700;
    font-size: 1.2rem;
}

#hero-desc {
    color: #888;
    line-height: 1.6;
    font-size: 1rem;
}

#close-hero {
    position: absolute;
    top: 2rem;
    right: 2rem;
    background: transparent;
    border: none;
    color: #fff;
    font-size: 2rem;
    cursor: pointer;
    z-index: 1010;
    transition: transform 0.2s;
}

#close-hero:hover {
    transform: rotate(90deg);
    color: var(--secondary);
}


/* Responsive */
@media (max-width: 900px) {
    .neon-header {
        flex-direction: column;
        gap: 1rem;
    }

    .header-center {
        position: static;
        transform: none;
        margin-bottom: 1rem;
    }

    .hero-content {
        flex-direction: column;
        height: auto;
        max-height: 90vh;
        overflow-y: auto;
    }

    .hero-image-container {
        min-height: 40vh;
    }

    .hero-details {
        padding: 2rem;
    }
}