:root {
    --accent: greenyellow;
    --accent-start: yellow;
    --accent-end: green;
    --accent-rgb: 173, 255, 47;
}

/* =========================================================
   Itx Record Label – index.css
   Layout stays fully vh / vw based.
   ========================================================= */

/* ---------- Splash / entrance ---------- */

#entrance-screen {
    position: fixed;
    inset: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    background: #000000;
    z-index: 100000;
}

.splash-content {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 250px;
    height: 250px;
}

.splash-logo {
    max-width: 300px;
    opacity: 0;
    transform: scale(0.95);
}

@keyframes splashPulse {

    0%,
    100% {
        transform: scale(0.98);
        opacity: 0.7;
    }

    50% {
        transform: scale(1.01);
        opacity: 1;
    }
}

@keyframes logoVibrate {
    0% {
        transform: translate(0, 0) skew(0deg);
    }

    10% {
        transform: translate(-1px, 0) skew(-0.5deg);
    }

    20% {
        transform: translate(1px, 0) skew(0.5deg);
    }

    30% {
        transform: translate(-1.5px, 0) skew(-0.3deg);
    }

    40% {
        transform: translate(1.5px, 0) skew(0.3deg);
    }

    100% {
        transform: translate(0, 0) skew(0deg);
    }
}


/* ---------- Base ---------- */

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

body {
    background: black;
    width: 100vw;
    height: 100vh;
    height: 100dvh;
    overflow: hidden;
    font-family: sans-serif;
}

html {
    scrollbar-width: none;
}

html::-webkit-scrollbar, body::-webkit-scrollbar {
    display: none;
}


/* ---------- Sidebar ---------- */

.sidebar {
    position: fixed;
    top: 0;
    left: 0;
    width: 8vh;
    height: 100vh;
    height: 100dvh;
    background: rgba(0, 0, 0, .85);
    backdrop-filter: blur(10px);
    border-right: .3vh solid var(--accent);
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-top: 1vh;
    transition: width .5s cubic-bezier(.2, .9, .4, 1.1);
    z-index: 1000;
    overflow: hidden;
    box-shadow: 0 0 8px rgba(204, 255, 0, .2);
}

.sidebar:hover {
    width: 28vh;
    box-shadow: 0 0 3vh var(--accent);
}

/* keyboard users (Tab) also get the expanded sidebar */
.sidebar:has(:focus-visible) {
    width: 28vh;
    box-shadow: 0 0 3vh var(--accent);
}

.sidebar-content {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.sidebar a {
    text-decoration: none;
}

.sidebar a:focus-visible {
    outline: .3vh solid var(--accent);
    outline-offset: -.3vh;
}

/* spacer between menu groups */
.menu-gap {
    height: 2vh;
    flex-shrink: 0;
}

/* wrapper used only for the mobile grid; on desktop it does not affect layout */
.menu-group {
    display: contents;
}

/* Brand (logo + name) */
.menu2 {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 0.7vh;
    padding: 1.5vh 0.5vh;
    color: #fff;
    cursor: pointer;
}

.menu2:hover {
    background: #fff;
    color: #000;
}

.menu2 img {
    width: 7vh;
    height: 7vh;
    transition: transform 0.3s ease, filter 0.3s ease;
}

.menu2:hover img {
    transform: scale(1.2);
    filter: brightness(0);
}

.menu2 .menu-label {
    font-family: 'Orbitron', sans-serif;
}

/* Normal menu links */
.menu-link {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 2.5vh;
    padding: 1vh 2.5vh;
    color: #fff;
    cursor: pointer;
    transition: transform 0.3s ease, filter 0.3s ease;
}

.menu-link:hover {
    background: var(--accent);
    color: #000;
}

.menu-link img {
    width: 3vh;
    height: 3vh;
    filter: brightness(0) invert(1);
}

.menu-link:hover img {
    filter: brightness(0);
    transform: scale(1.2);
}

.menu-link .menu-label {
    font-family: 'Oswald', sans-serif;
}

.menu-label {
    display: block;
    white-space: nowrap;
    font-size: 1.75vh;
    font-weight: 700;
}

/* Terms of Service – bottom of the sidebar, only visible while the sidebar is open */
.menu-terms {
    margin-top: auto;
    flex-shrink: 0;
    display: block;
    padding: 1.5vh 2vh;
    text-align: center;
    white-space: nowrap;
    font-size: 1.9vh;
    color: #fff;
    opacity: 0;
    visibility: hidden;
    transform: translateY(1vh);
    transition: opacity .2s ease, transform .2s ease, visibility 0s linear .2s, color .3s ease;
}

.menu-terms:hover {
    color: var(--accent);
    text-decoration: underline;
}

.sidebar:hover .menu-terms {
    opacity: 1;
    visibility: visible;
    transform: none;
    transition: opacity .3s ease .2s, transform .3s ease .2s, visibility 0s linear .2s, color .3s ease;
}

.sidebar:has(:focus-visible) .menu-terms {
    opacity: 1;
    visibility: visible;
    transform: none;
    transition: opacity .3s ease .2s, transform .3s ease .2s, visibility 0s linear .2s, color .3s ease;
}


/* ---------- Main area ---------- */

.main {
    margin-left: 8vh;
    height: 100vh;
    height: 100dvh;
    display: flex;
    flex-direction: column;
    background: black;
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.main::-webkit-scrollbar {
    display: none;
}

.top,
.down {
    background: linear-gradient(90deg, var(--accent-start), var(--accent), var(--accent-end));
    color: black;
    height: 4vh;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.top h1 {
    font-size: 3vh;
    font-family: 'Orbitron', sans-serif;
}

.down p {
    font-size: 2.5vh;
    font-weight: 700;
    font-family: 'Oswald', sans-serif;
}

.content {
    flex: 1;
    scrollbar-width: none;
    -ms-overflow-style: none;
    display: grid;
    gap: 0.15vh;
    background: black;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: minmax(0, 1fr) minmax(0, 1fr);
    min-height: 0;
}

.content::-webkit-scrollbar { display: none; }


/* ---------- Cards ---------- */

.card {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 1.5vh 3vh;
    transition: transform 0.5s ease, box-shadow 0.5s ease, filter 0.5s ease;
    filter: grayscale(100%) brightness(80%);
    overflow: hidden;
    background: none;
    color: inherit;
    text-decoration: none;
}

.card::before {
    content: "";
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    z-index: 0;
    filter: grayscale(100%) brightness(80%);
}

.card1::before {
    background-image: url("Card1.jpg");
}

.card2::before {
    background-image: url("Card2.jpg");
}

.card3::before {
    background-image: url("Card3.jpg");
}

.card4::before {
    background-image: url("Card4.jpg");
}

.card>* {
    position: relative;
    z-index: 2;
}

.card h2 {
    font-weight: bold;
    font-size: 2.5vh;
    margin: 0 0 0.8vh 0;
    display: inline-block;
    border-bottom: 0.50vh solid var(--accent);
    padding-bottom: 0.3vh;
    color: var(--accent);
    font-family: 'Oswald', sans-serif;
}

.card p {
    font-family: 'Oswald', sans-serif;
    font-size: 1.75vh;
    color: white;
    margin: 0.2vh 0;
    line-height: 1.3;
    word-wrap: break-word;
}

.card p::before {
    content: "➤";
    color: var(--accent);
    margin-right: 1vh;
    font-size: 1.75vh;
}

.card span,
.card a {
    font-family: 'Oswald', sans-serif;
    font-size: 1.75vh;
    text-decoration: none;
    color: white;
    transition: 0.5s;
}

.card:hover span,
.card:hover a {
    cursor: pointer;
    color: aqua;
}

.card a:focus-visible,
a.card:focus-visible {
    outline: .3vh solid var(--accent);
    outline-offset: .3vh;
}

.card:hover {
    z-index: 9999;
    transform: scale(1.1);
    box-shadow: 0 0 1vh var(--accent);
    filter: grayscale(0%);
}

.card:hover::before {
    filter: grayscale(0%) brightness(80%);
}


/* ---------- Mobile-only controls (hidden on desktop) ---------- */

.mobile-menu-btn {
    display: none;
    border: 0;
    font-family: inherit;
}

.back-btn {
    display: none;
    border: 0;
    font-family: inherit;
    font-weight: bold;
    cursor: pointer;
}


/* =========================================================
   MOBILE  (phones)  – same look as the original mobile theme.
   Sizes are the original vw / vh values; min(..) only stops them
   from getting huge on wide screens. Desktop is not touched.
   ========================================================= */

@media (max-width: 768px),
(max-height: 500px) and (pointer: coarse) {

    .content.subpage {
        padding: 4%;
    }

    .subpage-inner {
        font-size: min(4vw, 18px);
    }

    .subpage-inner h2 {
        font-size: min(7.5vw, 34px);
    }



    body {
        overscroll-behavior: none;
        -webkit-tap-highlight-color: transparent;
    }

    /* ----- Top bar + bottom bar stay pinned, only the middle scrolls ----- */

    .main {
        margin-left: 0;
        width: 100%;
        height: 100vh;
        height: 100dvh;
    }

    .top,
    .down {
        height: min(10vw, 48px);
    }

    .top h1 {
        font-size: min(5vw, 24px);
    }

    .down p {
        font-size: min(3vw, 14.4px);
    }

    .content {
        flex: 1 1 0;
        min-height: 0;
        display: flex;
        flex-direction: column;
        padding: 2%;
        overflow-y: auto;
        overflow-x: hidden;
        overscroll-behavior: contain;
        -webkit-overflow-scrolling: touch;
        -ms-overflow-style: none;
        scrollbar-width: none;
    }

    .content::-webkit-scrollbar {
        display: none;
    }

    /* ----- ☰ Menu button ----- */

    .mobile-menu-btn {
        display: block;
        position: fixed;
        top: min(1.35vw, 6px);
        left: min(1vw, 5px);
        font-size: min(4vw, 19.2px);
        color: var(--accent);
        background: rgba(0, 0, 0, 0.75);
        padding: min(1vw, 5px) min(2vw, 10px);
        border-radius: 0.4vw;
        z-index: 900;
        cursor: pointer;
        box-shadow: 0 0 10px black;
    }

    .mobile-menu-btn[aria-expanded="true"] {
        display: none;
    }

    /* ----- Sidebar: full screen, translucent, NO scrolling on a normal phone ----- */

    .sidebar,
    .sidebar:hover {
        width: 100%;
        height: 100vh;
        height: 100dvh;
        padding: 2vh 10%;
        align-items: stretch;
        background: rgba(0, 0, 0, 0.75);
        backdrop-filter: blur(25px);
        border-right: none;
        box-shadow: none;
        transform: translateX(-100%);
        visibility: hidden;
        transition: transform 0.3s ease, visibility 0s linear 0.3s;
    }

    .sidebar:has(:focus-visible) {
        width: 100%;
        box-shadow: none;
    }

    .sidebar.active {
        transform: none;
        visibility: visible;
        transition: transform 0.3s ease;
    }

    .sidebar-content {
        flex: 1 1 0;
        height: auto;
        min-height: 0;
        width: 100%;
        max-width: 560px;
        margin: 0 auto;
        gap: 0.8vh;
        overflow-x: hidden;
        overflow-y: auto;
        scrollbar-width: none;
    }

    .sidebar-content::-webkit-scrollbar {
        display: none;
    }

    .menu-gap {
        display: none;
    }

    .menu2 {
        flex-shrink: 0;
        justify-content: center;
        align-items: center;
        padding: 1.2vh;
        color: #000;
        background: #fff;
        border-radius: 1.25vh;
        filter: none !important;
    }

    .menu2 img {
        transform: none !important;
        filter: brightness(0) invert(0);
    }

    .menu-link {
        flex-shrink: 0;
        justify-content: center;
        align-items: center;
        padding: 1.2vh;
        border-radius: 1.25vh;
    }

    .menu-link img {
        width: 3vh;
        height: 3vh;
        filter: brightness(0) invert(1);
    }

    .menu-link .menu-label {
        font-size: 2vh;
    }

    /* touch screens: no sticky hover, only the pressed state lights up */
    .menu-link:hover {
        background: none;
        color: #fff;
    }

    .menu-link:hover img {
        filter: brightness(0) invert(1);
        transform: none;
    }

    .menu-link:active {
        background: var(--accent);
        color: #000;
    }

    .menu-link:active img {
        filter: brightness(0);
    }

    /* YouTube, Instagram, SoundCloud, Beatport, LinkedIn, Discord, Spotify: 2 per row */
    .menu-socials {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 0.8vh;
        flex-shrink: 0;
    }

    .menu-socials .menu-link {
        width: 100%;
        gap: 1vh;
        padding: 1.2vh 0.5vh;
    }

    .menu-socials .menu-link:last-child {
        grid-column: 1 / -1;
    }

    /* Terms of Service + Back stay at the bottom of the menu */
    .menu-terms,
    .sidebar:hover .menu-terms {
        margin-top: auto;
        padding: 0.8vh;
        font-size: 1.9vh;
        opacity: 1;
        visibility: visible;
        transform: none;
        transition: none;
    }

    .sidebar:has(:focus-visible) .menu-terms {
        transition: none;
    }

    .back-btn {
        display: block;
        width: 100%;
        margin: 0;
        padding: 1.5vh;
        flex-shrink: 0;
        font-size: min(5vw, 24px);
        background: var(--accent);
        color: black;
        border-radius: min(2vw, 10px);
    }

    /* ----- Cards (original mobile look) ----- */

    .card {
        filter: none !important;
        transform: none !important;
        box-shadow: none !important;
        transition: none !important;
        padding: 4%;
        width: 100%;
        height: auto;
        min-height: 0;
        overflow: hidden;
        flex-shrink: 0;
        margin-bottom: 2%;
    }

    .card h2 {
        font-size: min(6vw, 28.8px);
        color: var(--accent);
        margin-top: 2.5vh;
    }

    .card p {
        font-size: min(4vw, 19.2px);
        color: white;
        margin: 0.1vh 0;
        line-height: 1.2;
        overflow-wrap: anywhere;
        text-shadow: 0 1px 4px rgba(0, 0, 0, 0.8);
    }

    .card span,
    .card a {
        font-size: min(4vw, 19.2px);
        color: aqua;
    }

    .card:hover span,
    .card:hover a {
        color: aqua;
    }

    .card:hover::before {
        filter: grayscale(100%) brightness(80%) !important;
    }
}

/* phone held sideways: too short to fit every link, so the menu may scroll there */
@media (max-height: 500px) and (pointer: coarse) {

    .menu-link,
    .menu2 {
        min-height: 40px;
    }

    .menu-terms,
    .sidebar:hover .menu-terms {
        min-height: 36px;
        font-size: 14px;
    }

    .back-btn {
        min-height: 44px;
        font-size: 18px;
    }
}

@media (prefers-reduced-motion: reduce) {

    .sidebar,
    .card,
    .menu-terms {
        transition: none !important;
    }
}


/* Footer: the legal copyright line is longer, so let it centre and wrap on small screens */
.down p {
    text-align: center;
    padding: 0 1vw;
    line-height: 1.15;
}

@media (max-width: 768px),
(max-height: 500px) and (pointer: coarse) {
    .down p {
        font-size: min(2.8vw, 13px);
    }
}
