:root {
    --bg-color: #0a0a0a;
    --text-color: #ffffff;
    --accent-color: #00f2ff;
    /* Cyan Neon */
    --secondary-accent: #bc13fe;
    /* Purple Neon */
    --glass-bg: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.1);
    --font-main: 'Outfit', sans-serif;
}

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

body {
    font-family: var(--font-main);
    background-color: var(--bg-color);
    color: var(--text-color);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
    position: relative;
}

#default-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
    background-image: url('images/background.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

#dynamic-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0;
    transition: opacity 0.5s ease;
    filter: blur(20px) brightness(0.4);
}

/* Header & Tabs */
/* Header */
header {
    padding: 2rem 0;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.8), transparent);
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(5px);
    text-align: center;
}

header h1 {
    font-family: 'Great Vibes', cursive;
    font-size: 4rem;
    color: var(--text-color);
    text-shadow: 0 0 10px var(--accent-color), 0 0 20px var(--secondary-accent);
    margin: 0;
    font-weight: 400;
    letter-spacing: 2px;
}

/* Main Gallery */
main {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4rem 2rem;
}

.gallery-container {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    /* 6 columns */
    gap: 1.5rem;
    width: 100%;
    max-width: 1600px;
}

.track-card {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    aspect-ratio: 1/1;
    cursor: pointer;
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.27), box-shadow 0.3s ease, opacity 0.6s ease, transform 0.6s ease;
    border: 1px solid var(--glass-border);
    opacity: 0;
    transform: translateY(30px);
}

.track-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease, filter 0.5s ease;
    filter: blur(0);
    will-change: transform, filter;
}

.track-card.visible {
    opacity: 1;
    transform: translateY(0);
}

.track-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4), 0 0 15px rgba(188, 19, 254, 0.2);
    border-color: var(--secondary-accent);
    z-index: 10;
}

.track-card:hover img {
    transform: scale(1.1);
    filter: blur(8px) brightness(0.6);
}

.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    background: rgba(0, 0, 0, 0.7);
    opacity: 0;
    transition: opacity 0.3s ease;
    text-align: center;
}

.track-card:hover .overlay {
    opacity: 1;
}

.overlay h3 {
    font-size: 1rem;
    font-weight: 400;
    letter-spacing: 0.5px;
    color: var(--text-color);
    line-height: 1.4;
}

/* Modal */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 1;
    transition: opacity 0.3s ease;
}

.modal.hidden {
    display: none;
    opacity: 0;
    pointer-events: none;
}

.modal-content {
    position: relative;
    width: 90%;
    max-width: 800px;
    background: var(--bg-color);
    padding: 1rem;
    border-radius: 15px;
    border: 1px solid var(--accent-color);
    box-shadow: 0 0 30px rgba(0, 242, 255, 0.2);
}

.close-modal {
    position: absolute;
    top: -40px;
    right: 0;
    font-size: 2rem;
    color: var(--text-color);
    cursor: pointer;
    transition: color 0.3s ease;
}

.close-modal:hover {
    color: var(--accent-color);
}

/* Stats Circle */
#stats-circle {
    position: fixed;
    bottom: 2rem;
    left: 2rem;
    width: 110px;
    height: 110px;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border-radius: 50%;
    border: 1px solid var(--glass-border);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 100;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
    animation: pulse-glow 3s infinite;
}

#stats-circle:hover {
    transform: scale(1.05);
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--accent-color);
}

.stat-group {
    display: flex;
    flex-direction: column;
    align-items: center;
    line-height: 1.1;
}



.stat-group small {
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.7);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.stat-divider {
    width: 60%;
    height: 1px;
    background: rgba(255, 255, 255, 0.2);
    margin: 4px 0;
}

@keyframes pulse-glow {
    0% {
        box-shadow: 0 0 20px rgba(0, 0, 0, 0.3);
    }

    50% {
        box-shadow: 0 0 25px rgba(0, 242, 255, 0.2);
    }

    100% {
        box-shadow: 0 0 20px rgba(0, 0, 0, 0.3);
    }
}

/* Contact Button & Modal */
#contact-btn {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    padding: 1rem 2rem;
    border-radius: 50px;
    border: 1px solid var(--accent-color);
    color: var(--text-color);
    font-weight: 600;
    cursor: pointer;
    z-index: 100;
    transition: all 0.3s ease;
    box-shadow: 0 0 15px rgba(0, 242, 255, 0.2);
}

#contact-btn:hover {
    background: var(--accent-color);
    color: var(--bg-color);
    box-shadow: 0 0 30px rgba(0, 242, 255, 0.6);
    transform: translateY(-3px);
}

.contact-form-container {
    padding: 2rem;
    text-align: center;
}

.contact-form-container h2 {
    margin-bottom: 2rem;
    font-weight: 300;
    letter-spacing: 2px;
}

.close-contact {
    position: absolute;
    top: 10px;
    right: 20px;
    font-size: 2rem;
    color: var(--text-color);
    cursor: pointer;
    transition: color 0.3s ease;
}

.close-contact:hover {
    color: var(--accent-color);
}

#email-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

#email-form input,
#email-form textarea {
    background: transparent;
    border: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
    padding: 1rem;
    color: var(--text-color);
    font-family: var(--font-main);
    font-size: 1rem;
    outline: none;
    transition: border-color 0.3s ease;
}

#email-form input:focus,
#email-form textarea:focus {
    border-color: var(--accent-color);
}

#email-form button {
    background: transparent;
    border: 1px solid var(--accent-color);
    color: var(--accent-color);
    padding: 1rem;
    border-radius: 30px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    transition: all 0.3s ease;
    margin-top: 1rem;
}

#email-form button:hover {
    background: var(--accent-color);
    color: var(--bg-color);
    box-shadow: 0 0 20px rgba(0, 242, 255, 0.4);
}

/* Responsive */


@media (max-width: 1024px) {
    .gallery-container {
        grid-template-columns: repeat(3, 1fr);
    }
}

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

    header h1 {
        font-size: 3rem;
    }
}

/* Orientation specific grid adjustments */
@media (max-width: 768px) and (orientation: portrait) {
    .gallery-container {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) and (orientation: landscape) {
    .gallery-container {
        grid-template-columns: repeat(3, 1fr);
    }
}