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

:root {
    --primary-color: #00f0ff;
    --secondary-color: #7b2cbf;
    --accent-color: #ff006e;
    --text-primary: #ffffff;
    --text-secondary: #a0aec0;
    --background: #0a0e27;
    --background-secondary: #12172e;
    --background-card: #1a1f3a;
    --border-color: #2d3748;
}

body {
    font-family: 'Comfortaa', cursive;
    background: var(--background);
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 20% 50%, rgba(123, 44, 191, 0.15) 0%, transparent 50%),
                radial-gradient(circle at 80% 20%, rgba(0, 240, 255, 0.15) 0%, transparent 50%),
                radial-gradient(circle at 40% 80%, rgba(255, 0, 110, 0.15) 0%, transparent 50%);
    z-index: -1;
    animation: bgPulse 15s ease-in-out infinite;
}

@keyframes bgPulse {
    0%, 100% { opacity: 0.5; }
    50% { opacity: 0.8; }
}

.art-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(10, 14, 39, 0.95);
    backdrop-filter: blur(20px);
    padding: 15px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    border-bottom: 1px solid rgba(0, 240, 255, 0.2);
}

.back-btn {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--background);
    padding: 10px 20px;
    border-radius: 25px;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 0 20px rgba(0, 240, 255, 0.3);
}

.back-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 30px rgba(0, 240, 255, 0.6);
}

.nav-logo {
    font-size: 1.5rem;
}

.logo-art {
    font-size: 2rem;
    filter: drop-shadow(0 0 10px rgba(0, 240, 255, 0.6));
    animation: spin 8s linear infinite;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.art-hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0, 240, 255, 0.1), rgba(123, 44, 191, 0.1));
    z-index: -1;
}

.floating-shapes {
    position: absolute;
    width: 100%;
    height: 100%;
}

.shape {
    position: absolute;
    font-size: 3rem;
    animation: floatAround 10s ease-in-out infinite;
    opacity: 0.5;
    filter: drop-shadow(0 0 15px rgba(0, 240, 255, 0.6));
}

.shape-1 { top: 20%; left: 10%; animation-delay: 0s; }
.shape-2 { top: 60%; right: 15%; animation-delay: -2s; }
.shape-3 { bottom: 30%; left: 20%; animation-delay: -4s; }
.shape-4 { top: 40%; right: 30%; animation-delay: -1s; }
.shape-5 { bottom: 20%; right: 10%; animation-delay: -3s; }

@keyframes floatAround {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    25% { transform: translateY(-30px) rotate(90deg); }
    50% { transform: translateY(-50px) rotate(180deg); }
    75% { transform: translateY(-30px) rotate(270deg); }
}

.hero-content {
    text-align: center;
    z-index: 2;
}

.art-title {
    font-family: 'Fredoka One', cursive;
    font-size: clamp(2.5rem, 6vw, 4rem);
    margin-bottom: 20px;
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.word {
    display: inline-block;
    animation: bounceIn 1s ease-out forwards;
    opacity: 0;
    transform: translateY(-50px);
    text-shadow: 0 0 20px rgba(0, 240, 255, 0.5);
}

.word-1 { animation-delay: 0.2s; color: var(--primary-color); }
.word-2 { animation-delay: 0.4s; color: var(--accent-color); }
.word-3 { animation-delay: 0.6s; color: var(--secondary-color); }
.word-4 { animation-delay: 0.8s; color: var(--primary-color); }

@keyframes bounceIn {
    0% {
        opacity: 0;
        transform: translateY(-50px) scale(0.3);
    }
    50% {
        opacity: 1;
        transform: translateY(0px) scale(1.05);
    }
    70% {
        transform: translateY(-10px) scale(0.9);
    }
    100% {
        opacity: 1;
        transform: translateY(0px) scale(1);
    }
}

.art-subtitle {
    font-size: clamp(1rem, 3vw, 1.5rem);
    color: var(--text-secondary);
    opacity: 0;
    animation: fadeInUp 1s ease-out 1s forwards;
}

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

.art-gallery {
    padding: 100px 20px;
    background: var(--background-secondary);
    min-height: 100vh;
}

.gallery-container {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    grid-auto-rows: minmax(200px, auto);
}

.art-item {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(0, 240, 255, 0.2);
    animation: itemFloat 3s ease-in-out infinite;
    animation-delay: var(--delay, 0s);
}

.art-item[data-size="large"] {
    grid-column: span 2;
    grid-row: span 2;
    --delay: 0s;
}

.art-item[data-size="medium"] {
    grid-column: span 1;
    grid-row: span 1;
    --delay: 0.5s;
}

.art-item[data-size="small"] {
    grid-column: span 1;
    grid-row: span 1;
    --delay: 1s;
}

@keyframes itemFloat {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-8px); }
}

.art-item:hover {
    transform: scale(1.05) translateY(-15px) !important;
    box-shadow: 0 20px 50px rgba(0, 240, 255, 0.4);
    border-color: var(--primary-color);
    animation-play-state: paused;
}

.art-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.4s ease;
}

.art-item:hover img {
    transform: scale(1.1);
    filter: brightness(1.2) saturate(1.3);
}

.filter-container {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    background: rgba(10, 14, 39, 0.95);
    backdrop-filter: blur(20px);
    padding: 15px 25px;
    border-radius: 50px;
    box-shadow: 0 10px 40px rgba(0, 240, 255, 0.3);
    z-index: 100;
    border: 1px solid rgba(0, 240, 255, 0.3);
}

.filter-btn {
    background: transparent;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    padding: 10px 20px;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: inherit;
    font-weight: 600;
    font-size: 0.9rem;
}

.filter-btn:hover {
    background: rgba(0, 240, 255, 0.1);
    box-shadow: 0 0 15px rgba(0, 240, 255, 0.3);
    transform: scale(1.05);
}

.filter-btn.active {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--background);
    border-color: transparent;
    box-shadow: 0 0 20px rgba(0, 240, 255, 0.5);
    transform: scale(1.05);
}

.lightbox-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.lightbox-overlay.active {
    opacity: 1;
    visibility: visible;
}

.lightbox-content {
    position: relative;
    max-width: 90vw;
    max-height: 90vh;
    background: var(--background-card);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 80px rgba(0, 240, 255, 0.4);
    animation: lightboxZoom 0.3s ease-out;
    border: 1px solid rgba(0, 240, 255, 0.3);
}

@keyframes lightboxZoom {
    from {
        transform: scale(0.7);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

.lightbox-img {
    width: 100%;
    height: auto;
    max-height: 70vh;
    object-fit: contain;
    background: var(--background);
}

.lightbox-info {
    padding: 20px;
    text-align: center;
    background: var(--background-card);
}

.lightbox-title {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.lightbox-description {
    color: var(--text-secondary);
}

.close-btn {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 2rem;
    color: var(--background);
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    border: none;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow: 0 0 20px rgba(0, 240, 255, 0.5);
}

.close-btn:hover {
    transform: scale(1.1) rotate(90deg);
    box-shadow: 0 0 30px rgba(0, 240, 255, 0.8);
}

.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 100%;
    display: flex;
    justify-content: space-between;
    padding: 0 20px;
    pointer-events: none;
}

.prev-btn,
.next-btn {
    background: rgba(0, 240, 255, 0.2);
    backdrop-filter: blur(10px);
    border: 2px solid var(--primary-color);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: var(--primary-color);
    transition: all 0.3s ease;
    pointer-events: all;
}

.prev-btn:hover,
.next-btn:hover {
    background: var(--primary-color);
    color: var(--background);
    transform: scale(1.1);
    box-shadow: 0 0 20px rgba(0, 240, 255, 0.6);
}

@media (max-width: 768px) {
    .art-title {
        font-size: 2rem;
    }

    .art-subtitle {
        font-size: 1rem;
    }

    .gallery-container {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
        gap: 15px;
    }

    .art-item[data-size="large"] {
        grid-column: span 2;
        grid-row: span 2;
    }

    .filter-container {
        flex-wrap: wrap;
        bottom: 15px;
        padding: 10px 15px;
        max-width: 90vw;
        justify-content: center;
    }

    .filter-btn {
        padding: 8px 14px;
        font-size: 0.8rem;
    }

    .lightbox-content {
        max-width: 95vw;
    }

    .close-btn {
        width: 40px;
        height: 40px;
        font-size: 1.5rem;
    }

    .prev-btn,
    .next-btn {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .gallery-container {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .art-item[data-size="large"],
    .art-item[data-size="medium"],
    .art-item[data-size="small"] {
        grid-column: span 1;
        grid-row: span 1;
    }

    .shape {
        font-size: 2rem;
    }
}
