:root {
    --bg-color: #000000;
    --text-color: #ffffff;
    --accent-color: #ff003c;
    /* For glitch offsets */
    --font-main: 'Inter', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    cursor: none;
    /* Hide default cursor */
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: var(--font-main);
    overflow: hidden;
    /* Prevent scrolling initially */
    height: 100vh;
    height: 100dvh;
    /* Use dynamic viewport height for mobile browsers */
    width: 100vw;
}

/* Noise Overlay */
.noise-overlay {
    display: none;
    /* Removed as per user request for absolute black */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 9999;
    opacity: 0.12;
    /* Slightly increased for visibility on absolute black */
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
}

/* Custom Cursor */
.custom-cursor {
    position: fixed;
    top: 0;
    left: 0;
    width: 20px;
    height: 20px;
    border: 2px solid var(--text-color);
    border-radius: 50%;
    pointer-events: none;
    transform: translate(-50%, -50%);
    z-index: 10000;
    mix-blend-mode: difference;
    transition: width 0.2s, height 0.2s, background-color 0.2s;
}

.custom-cursor.hovered {
    width: 60px;
    height: 60px;
    background-color: rgba(255, 255, 255, 0.1);
    border-color: transparent;
}

@media (hover: none) {
    .custom-cursor {
        display: none;
    }

    * {
        cursor: auto;
    }
}

/* Splash Screen */
#splash {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--bg-color);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2000;
    transition: opacity 0.5s ease-out, visibility 0.5s;
}

#splash.hidden {
    opacity: 0;
    visibility: hidden;
}

/* Image Glitch */
.glitch-img-container {
    position: relative;
    width: 300px;
    /* Adjust based on logo size */
    height: auto;
}

.glitch-img {
    display: block;
    width: 100%;
    height: auto;
    position: relative;
}

.glitch-layer {
    position: absolute;
    top: 0;
    left: 0;
    opacity: 0.8;
    mix-blend-mode: hard-light;
}

.glitch-layer:nth-child(2) {
    animation: glitch-anim-1 2s infinite linear alternate-reverse;
    clip-path: inset(50% 0 30% 0);
    transform: translate(-2px, 0);
    filter: drop-shadow(-2px 0 #ff00c1);
}

.glitch-layer:nth-child(3) {
    animation: glitch-anim-2 3s infinite linear alternate-reverse;
    clip-path: inset(10% 0 60% 0);
    transform: translate(2px, 0);
    filter: drop-shadow(2px 0 #00fff9);
}


@media (max-width: 768px) {
    .glitch-img-container {
        width: 200px;
    }
}

@keyframes glitch-anim-1 {
    0% {
        clip-path: inset(20% 0 80% 0);
        transform: translate(-2px, 0);
    }

    20% {
        clip-path: inset(60% 0 10% 0);
        transform: translate(2px, 0);
    }

    40% {
        clip-path: inset(40% 0 50% 0);
        transform: translate(-2px, 0);
    }

    60% {
        clip-path: inset(80% 0 5% 0);
        transform: translate(2px, 0);
    }

    80% {
        clip-path: inset(10% 0 40% 0);
        transform: translate(-1px, 0);
    }

    100% {
        clip-path: inset(30% 0 20% 0);
        transform: translate(2px, 0);
    }
}

@keyframes glitch-anim-2 {
    0% {
        clip-path: inset(10% 0 60% 0);
        transform: translate(2px, 0);
    }

    20% {
        clip-path: inset(30% 0 10% 0);
        transform: translate(-2px, 0);
    }

    40% {
        clip-path: inset(70% 0 10% 0);
        transform: translate(2px, 0);
    }

    60% {
        clip-path: inset(10% 0 80% 0);
        transform: translate(-1px, 0);
    }

    80% {
        clip-path: inset(50% 0 20% 0);
        transform: translate(1px, 0);
    }

    100% {
        clip-path: inset(0% 0 50% 0);
        transform: translate(-2px, 0);
    }
}

/* Main Layout */
#container {
    display: flex;
    width: 100%;
    height: 100%;
    flex-direction: column;
}

.split-section {
    position: relative;
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: flex 0.6s cubic-bezier(0.25, 1, 0.5, 1), opacity 0.4s;
    overflow: hidden;
}

#event-section {
    background-color: var(--bg-color);
    color: var(--text-color);
}

.video-container {
    width: 100%;
    display: flex;
    justify-content: center;
    margin-top: 30px;
}

.event-video {
    width: 90%;
    max-width: 900px;
    height: auto;
    object-fit: contain;
    border-radius: 10px;
    /* Optional: adds a nice touch */
}

#artist-section {
    background-color: var(--bg-color);
    color: var(--text-color);
}


.section-content {
    text-align: center;
    z-index: 10;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    overflow-y: auto;
    /* Enable vertical scrolling */
    -webkit-overflow-scrolling: touch;
}

.split-section.active .section-content {
    justify-content: flex-start;
    /* Allow scrolling from top */
    padding-top: 80px;
    /* Space for title */
    padding-bottom: 80px;
    /* Space for bottom */
}

.section-title {
    font-size: 10vw;
    font-weight: 900;
    text-transform: uppercase;
    transition: transform 0.4s ease, font-size 0.6s ease;
    white-space: nowrap;
}

/* Hover Effects (only when not active) */
.split-section:not(.active):hover .section-title {
    transform: scale(1.05);
}

/* Active State */
.split-section.active {
    flex: 1000;
    /* Grow to full width */
    cursor: auto;
    overflow-y: auto;
    /* Allow scrolling inside active section */
}

.split-section.inactive {
    flex: 0;
    opacity: 0;
    pointer-events: none;
    padding: 0;
}

/* Hidden Content */
.hidden-content {
    display: none;
    opacity: 0;
    margin-top: 50px;
    width: 80%;
    max-width: 1200px;
    animation: fadeIn 0.8s ease-out forwards 0.4s;
    padding-bottom: 50px;
    /* Space for content */
}

.split-section.active .hidden-content {
    display: block;
}

.split-section.active .section-title {
    font-size: 4rem;
    /* Shrink title */
    margin-top: 50px;
    margin-bottom: 20px;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Artist Gallery */
.artist-gallery {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    width: 100%;
    max-width: 700px;
    /* Limit width to make cards smaller */
    margin: 0 auto;
    /* Center the grid */
}

.artist-wrapper {
    display: flex;
    flex-direction: column;
    position: relative;
    cursor: pointer;
}

.social-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(5px);
    opacity: 0;
    transition: opacity 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 15px;
    pointer-events: none;
    z-index: 2;
}

.artist-wrapper.active .social-overlay {
    opacity: 1;
    pointer-events: auto;
}

.social-link {
    color: #fff;
    font-size: 1.2rem;
    text-transform: uppercase;
    text-decoration: none;
    font-weight: 700;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.artist-wrapper.active .social-link {
    opacity: 1;
    transform: translateY(0);
}

.artist-wrapper.active .social-link:nth-child(1) {
    transition-delay: 0.1s;
}

.artist-wrapper.active .social-link:nth-child(2) {
    transition-delay: 0.2s;
}

.artist-wrapper.active .social-link:nth-child(3) {
    transition-delay: 0.3s;
}

.artist-card-img {
    position: relative;
    overflow: hidden;
    aspect-ratio: 3/4;
    width: 100%;
}

.artist-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(100%) contrast(1.2);
    transition: filter 0.3s;
}

.artist-card-img:hover img,
.artist-wrapper.focused .artist-card-img img,
.artist-wrapper.active .artist-card-img img {
    filter: grayscale(0%) contrast(1);
}

.artist-name {
    margin-top: 15px;
    font-weight: 900;
    font-size: 2rem;
    /* Smaller font for smaller cards */
    font-style: italic;
    /* Match Logo */
    letter-spacing: -2px;
    /* Tight tracking */
    text-transform: uppercase;
    text-align: center;
    color: #ffffff;
    line-height: 0.9;
}

/* Event Details */
.event-details {
    text-align: left;
    border-top: 2px solid currentColor;
    padding-top: 30px;
}

.event-details h3 {
    font-size: 2rem;
    margin-bottom: 10px;
}

.event-details .date,
.event-details .location {
    font-size: 1.5rem;
    font-family: inherit;
    margin-bottom: 5px;
}

.lineup {
    margin-top: 40px;
}

.lineup h4 {
    font-size: 3rem;
    margin-bottom: 20px;
    text-decoration: underline;
}

.lineup ul {
    list-style: none;
}

.lineup li {
    font-size: 4rem;
    font-weight: 900;
    line-height: 1.1;
    text-transform: uppercase;
    letter-spacing: -1px;
}

/* Back Button */
#back-btn {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    background: transparent;
    /* Remove box */
    /* Remove box */
    /* Color is now handled by classes .btn-black / .btn-white */
    border: none;
    /* Remove border */
    /* Remove border */
    padding: 20px;
    /* Larger touch area */
    font-family: var(--font-main);
    font-weight: 900;
    /* font-cursor removed */
    font-size: 1.2rem;
    text-transform: uppercase;
    cursor: none;
    /* We use custom cursor */
    z-index: 99999;
    /* Force top */
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s, background 0.3s, transform 0.3s;
}

#back-btn.visible {
    opacity: 1 !important;
    pointer-events: auto;
}

#back-btn.btn-black {
    color: #000000;
}

#back-btn.btn-white {
    color: #ffffff;
}

#back-btn:hover {
    transform: translateX(-50%) scale(1.2);
    /* Scale up on hover */
    color: #ff003c !important;
    /* Accent color on hover (overrides black/white) */
    background: transparent;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    #container {
        flex-direction: column;
    }

    .split-section {
        border-right: none;
    }

    .section-title {
        font-size: 15vw;
        /* Reduced from 25vw to fit screen */
    }

    .artist-gallery {
        grid-template-columns: 1fr;
        /* Single column for mobile */
        gap: 20px;
        /* Increased gap for single column */
        width: 85%;
        /* Slightly narrower for card look */
    }

    .split-section.active {
        flex: 1000;
        overflow-y: auto;
    }

    .split-section.inactive {
        flex: 0;
        height: 0;
        /* Important for column flex */
    }

    .lineup li {
        font-size: 2.5rem;
    }

    #back-btn {
        display: none !important;
    }
}