/* ==========================================================================
   1. VARIABLES & RESETS
   ========================================================================== */
:root {
    --color-dark: #000000;
    --color-light: #ffffff;
    --color-accent: #ff0033;
    --color-ui-grey: #a3a3a3;
    --font-main: 'Space Grotesk', sans-serif;

    /* Fluid Typography & Spacing */
    --font-size-base: clamp(0.9rem, 0.8rem + 0.5vw, 1.1rem);
    --font-size-lg: clamp(1rem, 0.9rem + 0.75vw, 1.5rem);
    --font-size-h4: clamp(0.8rem, 0.75rem + 0.25vw, 0.9rem);
    --font-size-logo: clamp(1.2rem, 1rem + 1vw, 1.5rem);
    --space-section-py: clamp(3rem, 1rem + 8vw, 5rem);
    --space-section-px: clamp(1.5rem, 0.5rem + 4vw, 3rem);
    --space-header-py: clamp(1rem, 0.5rem + 2vw, 2rem);
}

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

html.lenis {
    height: auto;
}

.lenis.lenis-smooth {
    scroll-behavior: auto !important;
}

body {
    background-color: var(--color-dark);
    color: var(--color-light);
    font-family: var(--font-main);
    overflow-x: hidden;
    cursor: none;
}

img,
iframe,
video {
    max-width: 100%;
    height: auto;
    display: block;
}

/* ==========================================================================
   2. GLOBAL & UTILITY STYLES
   ========================================================================== */
.container {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
}

.section-title {
    font-size: clamp(2.5rem, 8vw, 4rem);
    font-weight: 700;
    margin-bottom: 3rem;
    text-align: center;
}

/* ==========================================================================
   3. SITE-WIDE COMPONENTS
   ========================================================================== */

/* --- Custom Cursor --- */
.cursor {
    position: fixed;
    width: 12px;
    height: 12px;
    background-color: var(--color-light);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9999;
    mix-blend-mode: difference;
    transform: translate(-50%, -50%);
}

/* --- Canvas Background --- */
#glitch-grid-canvas {
    position: fixed;
    top: 0;
    left: 0;
    z-index: -1;
    width: 100vw !important;
    height: 100vh !important;
}

/* --- Preloader --- */
.preloader {
    position: fixed;
    inset: 0;
    z-index: 10000;
    pointer-events: none;
}

.preloader-gate-top,
.preloader-gate-bottom {
    position: absolute;
    left: 0;
    width: 100%;
    height: 50vh;
    background-color: var(--color-dark);
    will-change: transform;
}

.preloader-gate-top {
    top: 0;
}

.preloader-gate-bottom {
    bottom: 0;
}

.preloader-content {
    position: relative;
    z-index: 1;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-family: var(--font-main);
    font-weight: 700;
}

.preloader-counter {
    font-size: clamp(3rem, 10vw, 6rem);
    color: var(--color-accent);
    transition: opacity 0.3s;
}

.preloader-logo {
    position: absolute;
    font-size: clamp(1.5rem, 5vw, 2.5rem);
    color: var(--color-light);
    opacity: 0;
    left: 50%;
    top: 63%;
    transform: translate(-50%, -50%);
    letter-spacing: 0.08em;
    font-weight: 700;
}

.preloader-doodles {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
}

.preloader-doodles span {
    position: absolute;
    font-size: min(3vw, 1.2rem);
    color: var(--color-ui-grey);
    opacity: 0.22;
    user-select: none;
}

/* --- Main Header --- */
.main-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: var(--space-header-py) var(--space-section-px);
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 100;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    transition: color 0.4s ease;
    color: var(--color-light);
}

.main-header.header-inverted {
    color: var(--color-dark);
}

.logo {
    flex: 1;
    /* Assigns flexible space */
    font-size: var(--font-size-logo);
    font-weight: 700;
    text-decoration: none;
    color: inherit;
}

.header-tagline {
    flex: 1;
    /* Assigns flexible space */
    text-align: right;
    line-height: 1.3;
}

.hub-button {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    text-decoration: none;
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    color: var(--color-ui-grey);
    transition: all 0.4s cubic-bezier(0.2, 1, 0.2, 1);
}

.hub-button:hover {
    color: var(--color-light);
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transform: scale(1.05);
}

.main-header.header-inverted .hub-button {
    background: rgba(0, 0, 0, 0.05);
    border-color: rgba(0, 0, 0, 0.1);
    color: var(--color-dark);
}

.hub-button i {
    font-size: 1.4rem;
}

/* --- Dot Navigation --- */
.dot-nav {
    position: fixed;
    z-index: 100;
    right: 1.5rem;
    top: 0;
    bottom: 0;
    margin-top: auto;
    margin-bottom: auto;
    height: fit-content;
}

.dot-nav ul {
    list-style: none;
}

.dot-nav li {
    margin: 1.5rem 0;
}

.dot-link {
    display: block;
    width: 12px;
    height: 12px;
    background-color: var(--color-ui-grey);
    border-radius: 50%;
    transition: background-color 0.3s, transform 0.3s;
    position: relative;
}

.dot-link.active,
.dot-link:hover {
    background-color: var(--color-accent);
    transform: scale(1.5);
}

.dot-link::after {
    content: attr(data-tooltip);
    position: absolute;
    top: 50%;
    right: 150%;
    transform: translateY(-50%);
    background: var(--color-light);
    color: var(--color-dark);
    padding: 0.3rem 0.8rem;
    border-radius: 4px;
    white-space: nowrap;
    opacity: 0;
    transition: opacity 0.3s, transform 0.3s;
    pointer-events: none;
}

.dot-link:hover::after {
    opacity: 1;
    right: 200%;
}

.dot-link:active {
    transform: scale(1.8);
    background-color: var(--color-light);
}

/* ==========================================================================
   4. PAGE SECTIONS
   ========================================================================== */

/* --- Base Section Styles --- */
section {
    width: 100%;
    min-height: 100vh;
    padding: var(--space-section-py) var(--space-section-px);
    position: relative;
    display: flex;
    border-bottom: 1px solid #222;
}

/* --- Hero Section (#hero) --- */
#hero {
    align-items: flex-end;
    justify-content: flex-end;
}

.hero-bg-image {
    position: absolute;
    inset: 0;
    z-index: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-bg-image img {
    width: auto;
    height: 90%;
    max-width: 100%;
    object-fit: contain;
    filter: grayscale(100%) brightness(1.2);
    opacity: 0.85;
}

.hero-bg-image::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.95) 20%, transparent 60%), radial-gradient(circle at center, transparent 50%, rgba(0, 0, 0, 0.8) 100%);
}

.hero-bg-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 30vw;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.1);
    z-index: 1;
    pointer-events: none;
}

.hero-content {
    position: absolute;
    bottom: 2.5rem;
    left: 0;
    right: 0;
    padding: 0 var(--space-section-px);
    z-index: 2;
    width: 100%;
}

.hero-grid {
    display: flex;
    justify-content: space-between;
    width: 100%;
}

.grid-item h4 {
    color: var(--color-ui-grey);
    margin-bottom: 1.5rem;
    font-size: var(--font-size-h4);
}

.grid-item ul {
    list-style: none;
    font-size: var(--font-size-base);
    font-weight: 500;
    line-height: 1.8;
}

.grid-item:last-child {
    text-align: right;
}

.grid-item:last-child ul {
    text-align: right;
}

.scroll-down-indicator {
    position: absolute;
    bottom: 1.5rem;
    left: 50%;
    transform: translateX(-50%);
    width: 3px;
    height: 38px;
    background: linear-gradient(to bottom, var(--color-light) 60%, var(--color-accent) 100%);
    border-radius: 2px;
    overflow: hidden;
    z-index: 3;
}

@keyframes bounceDot {
    0% {
        bottom: 6px;
        opacity: 0.7;
    }

    50% {
        bottom: -4px;
        opacity: 1;
    }

    100% {
        bottom: 6px;
        opacity: 0.7;
    }
}

@keyframes pulseDot {

    0%,
    100% {
        box-shadow: 0 0 0 0 var(--color-accent);
    }

    50% {
        box-shadow: 0 0 16px 8px var(--color-accent);
    }
}

.scroll-down-indicator::after {
    content: '';
    display: block;
    position: absolute;
    left: 50%;
    bottom: 6px;
    transform: translateX(-50%);
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--color-accent);
    opacity: 0.7;
    animation: bounceDot 1.2s infinite cubic-bezier(.6, .05, .4, .95), pulseDot 2s infinite;
}

/* --- Videos Section (#videos) --- */
#videos {
    flex-direction: column;
    justify-content: center;
    background: var(--color-light);
    color: var(--color-dark);
}

.video-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
}

.video-item iframe {
    width: 100%;
    height: 100%;
    border-radius: 8px;
    border: 1px solid #ddd;
    aspect-ratio: 16 / 9;
}

.video-item h3 {
    margin-top: 1rem;
    font-size: 1.2rem;
    font-weight: 500;
}

/* --- Music Section (#music) --- */
#music {
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding: 0;
}

#music-catalogue {
    position: absolute;
    inset: 0;
    overflow: hidden;
}

.catalogue-wrapper {
    display: flex;
    align-items: center;
    gap: 2rem;
    padding: 0 2rem;
    position: absolute;
    top: 50%;
    left: 0;
    transform: translateY(-50%);
    will-change: transform;
}

.catalogue-item {
    flex-shrink: 0;
    width: 300px;
    height: 300px;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    transition: transform 0.4s cubic-bezier(.6, .05, .4, .95), box-shadow 0.3s, filter 0.3s;
    will-change: transform, box-shadow, filter;
    cursor: pointer;
}

.catalogue-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.catalogue-guidance {
    position: absolute;
    left: 50%;
    bottom: 18px;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 1.2rem;
    z-index: 10;
    pointer-events: none;
    font-weight: 500;
}

.arrow-left,
.arrow-right {
    width: 22px;
    height: 22px;
    border: solid var(--color-accent);
    border-width: 0 4px 4px 0;
    padding: 3px;
}

.arrow-left {
    transform: rotate(135deg);
}

.arrow-right {
    transform: rotate(-45deg);
}

/* --- Contact Section (#contact) --- */
#contact {
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

.contact-content {
    text-align: center;
}

.contact-headline {
    font-size: clamp(2.5rem, 12vw, 10rem);
    font-weight: 700;
    line-height: 1;
}

.contact-link {
    font-size: var(--font-size-lg);
    margin-top: 2rem;
    text-transform: uppercase;
    text-decoration: none;
    color: inherit;
}

.contact-bottom {
    position: absolute;
    bottom: 3rem;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}

.social-links {
    display: flex;
    gap: 2rem;
}

.social-links a {
    color: var(--color-light);
    transition: color 0.3s;
}

.social-links a:hover {
    color: var(--color-accent);
}

.social-links a:active {
    transform: scale(1.15);
    transition: transform 0.1s ease;
}

.copyright-text {
    font-size: 0.8rem;
    color: var(--color-ui-grey);
    opacity: 0.8;
}

/* ==========================================================================
   5. MEDIA QUERIES (RESPONSIVE)
   ========================================================================== */

/* --- Large Desktops (up to 1200px) --- */
@media (max-width: 1200px) {
    .catalogue-item {
        width: 220px;
        height: 220px;
    }
}

/* --- Desktops & Large Tablets (up to 900px) --- */
@media (max-width: 900px) {
    .video-grid {
        grid-template-columns: 1fr;
    }
}

/* Add this new block to your style.css file */

/* --- Specific Tablet Styles (up to 1024px) --- */
@media (min-width: 601px) and (max-width: 1024px) {
    #music {
        min-height: 60vh;
        /* Reduces the section height to 60% of the screen height */
    }

    .catalogue-item {
        width: 220px;
        height: 220px;
    }
}

/* --- Tablets (up to 768px) --- */
@media (max-width: 768px) {
    .main-header {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }

    .header-tagline {
        display: none;
    }

    .hub-button {
        width: 38px;
        height: 38px;
        margin: 0;
    }

    .hero-grid {
        flex-direction: column;
        align-items: center;
        gap: 2rem;
    }

    .grid-item,
    .grid-item:last-child,
    .grid-item ul,
    .grid-item:last-child ul {
        text-align: center;
    }
}

/* --- Mobile Phones (up to 600px) --- */
@media (max-width: 600px) {
    body {
        cursor: auto;
    }

    .main-header {
        padding: 0.75rem 1rem;
        background-color: transparent;
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
    }

    .logo {
        flex-basis: auto;
        margin-right: 1rem;
    }

    .hub-button {
        flex-shrink: 0;
    }

    section {
        padding-left: 1rem;
        padding-right: 1rem;
    }

    #hero {
        display: flex;
        flex-direction: column;
        justify-content: flex-end;
        text-align: center;
        min-height: 100svh;
        padding-bottom: 7rem;
    }

    .hero-content {
        position: static;
        padding: 0;
        gap: 2.5rem;
    }

    .hero-bg-image img {
        opacity: 0.3;
    }

    .grid-item h4 {
        font-size: 0.8rem;
        letter-spacing: 0.1em;
        text-transform: uppercase;
        color: var(--color-ui-grey);
        margin-bottom: 1rem;
    }

    .grid-item ul {
        padding-left: 0;
    }

    .grid-item ul li {
        font-size: 1rem;
        font-weight: 500;
        line-height: 2;
    }

    .scroll-down-indicator {
        display: none;
    }

    #videos {
        display: block;
        padding: 4rem 0;
        align-items: initial;
    }

    #videos .container {
        width: 85%;
        margin: 0 auto;
        padding: 0;
    }

    .video-grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }

    .video-item iframe {
        border-radius: 8px;
        border: 1px solid #222;
        margin: 0 auto;
    }

    .video-item h3 {
        text-align: center;
        margin-top: 0.75rem;
        padding: 0 5%;
        font-size: 0.9rem;
    }

    #music {
        min-height: 50vh;
        display: flex;
        align-items: center;
    }

    .catalogue-wrapper {
        padding: 0;
        gap: 1rem;
    }

    .catalogue-item {
        width: 65vw;
        height: 65vw;
        max-width: 280px;
        max-height: 280px;
        border-radius: 16px;
    }

    .catalogue-guidance {
        display: none;
    }

    #contact {
        justify-content: center;
    }

    .contact-bottom {
        position: static;
        margin-top: 3rem;
        gap: 2rem;
    }

    .contact-headline {
        font-size: clamp(2rem, 8vw, 2.5rem);
    }

    .contact-link {
        font-size: 1.5rem;
        white-space: nowrap;
    }

    .social-links {
        gap: 2.5rem;
    }

    .social-links a i {
        font-size: 1.5rem;
    }

    .dot-nav {
        top: auto;
        background: transparent;
        backdrop-filter: none;
        bottom: 0;
        right: 0;
        width: 100%;
        transform: none;
        padding: 1.5rem 0;
        margin: 0;
        display: flex;
        justify-content: center;
    }

    .dot-nav ul {
        display: flex;
        flex-direction: row;
        gap: 1.2rem;
    }

    .dot-nav li {
        margin: 0;
    }
}