@import url('https://fonts.googleapis.com/css2?family=Caveat:wght@500&family=Montserrat:wght@400;700&family=Open+Sans:wght@300;400;600&display=swap');

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

body { 
    overflow: hidden; 
    background-color: #0c0c0c;
    font-family: 'Open Sans', sans-serif;
    color: #fff;
    width: 100vw;
    height: 100vh;
    height: 100dvh;
    position: relative;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Montserrat', sans-serif;
}

#intro-title {
    position: fixed;
    top: 15%;
    left: 50%;
    transform: translateX(-50%);
    z-index: 9998;
    text-align: center;
    width: 90vw;
    max-width: 800px;
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.title-line1 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 3.5rem;
    letter-spacing: 12px;
    display: block;
    line-height: 1.2;
}

.title-line2 {
    font-family: 'Caveat', cursive, sans-serif;
    font-weight: 500;
    font-size: 2.5rem;
    color: #ff1e1e;
    display: block;
    line-height: 1.2;
    margin-top: 5px;
}

.title-line3 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 1.8rem;
    letter-spacing: 6px;
    text-transform: uppercase;
    display: block;
    line-height: 1.2;
    margin-top: 10px;
}

.title-line4 {
    font-family: 'Open Sans', sans-serif;
    font-weight: 300;
    font-size: 1.1rem;
    color: #888;
    display: block;
    line-height: 1.2;
    margin-top: 8px;
}

#intro-title br {
    display: block;
    content: "";
    margin-top: 20px;
}

body:not(.intro-mode) #intro-title {
    opacity: 0;
    pointer-events: none;
    transform: translate(-50%, -20px);
}

#intro-pulse-line {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: transparent !important;
    background-image: url('../img/djiss-artiste.jpeg') !important;
    background-repeat: no-repeat !important;
    background-position: center center !important;
    background-size: 85% auto !important;
    z-index: 1;
    pointer-events: none;
    transition: opacity 0.4s ease;
    opacity: 0;
}

#central-widget {
    position: fixed;
    left: 50%;
    z-index: 9999;
    width: 260px;
    height: 260px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #141414 !important;
    border: 2px solid #2a2a2a;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.7);
    transition: width 0.85s cubic-bezier(0.25, 1, 0.5, 1), 
                height 0.85s cubic-bezier(0.25, 1, 0.5, 1), 
                border-radius 0.85s cubic-bezier(0.25, 1, 0.5, 1),
                top 0.85s cubic-bezier(0.25, 1, 0.5, 1),
                left 0.85s cubic-bezier(0.25, 1, 0.5, 1),
                transform 0.85s cubic-bezier(0.25, 1, 0.5, 1);
}

body.intro-mode #central-widget {
    top: 66.66%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation: pulseBox 4s ease-in-out infinite;
}

body:not(.intro-mode) #central-widget {
    top: 66.66%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 460px;
    height: 140px;
    border-radius: 24px;
    background: rgba(15, 15, 15, 0.85) !important;
    border: 2px solid rgba(255, 255, 255, 0.15) !important;
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.6) !important;
}

#enter-click-zone {
    position: absolute;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 5;
    transition: opacity 0.4s ease;
}

#logo-btn {
    position: absolute;
    top: 49.5%;
    left: 51.1%;
    width: 320px;
    height: 320px;
    object-fit: contain;
    z-index: 6;
    transform: translate(-50%, -50%) scale(1.1);
    max-width: none;
}

#curved-texts {
    position: absolute;
    width: 330px;
    height: 330px;
    pointer-events: none;
    z-index: 2;
    transition: opacity 0.4s ease, transform 0.4s ease;
}

#curved-texts svg {
    width: 100%;
    height: 100%;
}

#curved-texts text {
    font-weight: 700;
    text-transform: uppercase;
    animation: pulseTexts 4s ease-in-out infinite;
}

#curved-texts text:nth-of-type(1) {
    font-size: 21px;
    letter-spacing: 9px;
}

#curved-texts text:nth-of-type(2) {
    font-size: 31.5px;
    letter-spacing: 13.5px;
}

#textPathBottom {
    dominant-baseline: unset;
}

@keyframes pulseBox {
    0%, 75%, 100% {
        border-color: #2a2a2a;
        box-shadow: 0 15px 35px rgba(0, 0, 0, 0.7);
    }
    87% {
        border-color: #ff1e1e;
        box-shadow: 0 0 30px rgba(255, 30, 30, 0.5);
    }
}

@keyframes pulseTexts {
    0%, 75%, 100% { 
        fill: #555555;
    }
    87% { 
        fill: #ff1e1e;
    }
}

body:not(.intro-mode) #enter-click-zone,
body:not(.intro-mode) #curved-texts,
body:not(.intro-mode) #intro-pulse-line {
    opacity: 0 !important;
    pointer-events: none;
    animation: none;
}

#ui-navigation {
    position: absolute;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 40px;
    opacity: 0;
    pointer-events: none;
    transform: scale(0.95);
    transition: opacity 0.5s ease 0.45s, transform 0.5s ease 0.45s;
    z-index: 10;
}

body:not(.intro-mode) #ui-navigation {
    opacity: 1;
    transform: scale(1);
    pointer-events: auto;
}

.nav-btn {
    background: none;
    border: none;
    color: #888;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 2px;
    transition: all 0.4s ease;
    padding: 15px 0;
    position: relative;
}

.nav-btn::after {
    content: '';
    position: absolute;
    bottom: 5px; left: 50%; width: 0; height: 2px;
    background: #fff;
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.nav-btn:hover, .nav-btn.active { color: #fff; }
.nav-btn.active::after { width: 100%; }
body.focus-music #btn-music.active::after { background: #ff1e1e; }

#studio-container {
    position: absolute;
    top: 0; left: 0;
    width: 100vw;
    height: 100vh;
    height: 100dvh;
    display: flex;
    z-index: 1;
}

.studio-pane {
    height: 100%;
    position: relative;
    overflow: hidden;
    transition: width 1.4s cubic-bezier(0.77, 0, 0.175, 1), filter 1.2s ease, opacity 1.2s ease;
}

#pane-paint {
    background-image: url('../img/djiss-graphisme-street-art.png');
    background-size: cover;
    background-position: center center;
    background-attachment: fixed; 
}

#pane-music {
    background-image: url('../img/djiss-production-musicale-mao.png');
    background-size: cover;
    background-position: center center;
    background-attachment: fixed;
}

body.intro-mode #pane-paint,
body.intro-mode #pane-music {
    width: 50%;
    filter: grayscale(100%) brightness(0.5);
    opacity: 0.5;
}

body.split-mode #pane-paint,
body.split-mode #pane-music {
    width: 50%;
    filter: grayscale(0%) brightness(0.75);
    opacity: 0.75;
}

body.focus-paint #pane-paint { width: 100%; filter: grayscale(0%) brightness(1); opacity: 1; }
body.focus-paint #pane-music { width: 0%; opacity: 0; }

body.focus-music #pane-music { width: 100%; filter: grayscale(0%) brightness(1); opacity: 1; }
body.focus-music #pane-paint { width: 0%; opacity: 0; }

#lighting-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    z-index: 3;
    pointer-events: none;
    transition: background 1.5s ease-in-out;
    background: transparent;
    mix-blend-mode: overlay;
}

body.focus-paint #lighting-overlay {
    background: radial-gradient(circle at 50% 10%, rgba(255,255,255,0.15) 0%, rgba(0,0,0,0) 70%);
    mix-blend-mode: overlay;
}

body.focus-music #lighting-overlay {
    background: radial-gradient(circle at 30% 15%, rgba(0, 255, 150, 0.3) 0%, transparent 50%),
                radial-gradient(circle at 70% 15%, rgba(255, 30, 60, 0.35) 0%, transparent 50%);
    mix-blend-mode: screen;
}

@media (max-width: 480px) and (orientation: portrait) {
    #intro-title { top: 8%; }
    .title-line1 { font-size: 2rem; letter-spacing: 6px; }
    .title-line2 { font-size: 1.8rem; }
    .title-line3 { font-size: 1.1rem; letter-spacing: 3px; }
    .title-line4 { font-size: 0.85rem; }
    #intro-title br { margin-top: 10px; }
    
    body.intro-mode #central-widget { top: 66.66%; left: 50%; width: 190px; height: 190px; }
    #logo-btn { top: 49.5%; left: 51.1%; width: 234px; height: 234px; transform: translate(-50%, -50%) scale(1.1); }
    #curved-texts { width: 250px; height: 250px; }
    #curved-texts text:nth-of-type(1) { font-size: 16px; letter-spacing: 6px; }
    #curved-texts text:nth-of-type(2) { font-size: 24px; letter-spacing: 9px; }
    body:not(.intro-mode) #central-widget { width: 300px; height: 110px; border-radius: 16px; top: 66.66%; left: 50%; }
    #ui-navigation { padding: 0 15px; }
    .nav-btn { font-size: 0.75rem; letter-spacing: 1px; }
}

@media (max-height: 500px) and (orientation: landscape) {
    #intro-title {
        position: fixed;
        top: 50%;
        left: 25%;
        transform: translate(-50%, -50%);
        width: 45vw;
        max-width: none;
        margin: 0;
    }
    .title-line1 { font-size: 1.8rem; letter-spacing: 6px; }
    .title-line2 { font-size: 1.5rem; margin-top: 2px; }
    .title-line3 { font-size: 1.1rem; letter-spacing: 3px; margin-top: 3px; }
    .title-line4 { font-size: 0.8rem; margin-top: 3px; }
    #intro-title br { margin-top: 12px; }

    body.intro-mode #central-widget {
        top: 50%;
        left: 75%;
        width: 160px;
        height: 160px;
        transform: translate(-50%, -50%);
    }
    #logo-btn {
        width: 197px;
        height: 197px;
        top: 49.5%;
        left: 51.1%;
    }
    #curved-texts {
        width: 204px;
        height: 204px;
    }
    #curved-texts text:nth-of-type(1) {
        font-size: 13px;
        letter-spacing: 5.5px;
    }
    #curved-texts text:nth-of-type(2) {
        font-size: 19.5px;
        letter-spacing: 8.3px;
    }
    body:not(.intro-mode) #central-widget {
        top: 50%;
        left: 75%;
        width: 280px;
        height: 80px;
        border-radius: 16px;
    }
}
