/* 
  Mina Lidya Elite - Rebranded & Optimized
*/

@import url('https://fonts.googleapis.com/css2?family=Italiana&family=Inter:wght@300;400;700&display=swap');
@import 'show_mobile_patch.css';

html {
    font-size: clamp(8px, 6.94vw, 100px);
    /* Robust rem scaling */
}

:root {
    --main-font: "Inter", sans-serif;
    --title-font: 'Italiana', serif;
    --color-white: #ffffff;
    --color-gold: #c5a059;
}

body,
main {
    margin: 0;
    padding: 0;
    background: #070707;
    overflow: hidden;
    color: var(--color-white);
    font-family: var(--main-font);
    text-transform: uppercase;
}

.hero-section .container {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    position: relative;
    width: 100vw;
}

/* WRAPPER (CENTER) */
.wrapper {
    display: flex;
    width: 7.5rem;
    height: 4.2rem;
    position: absolute;
    /* Absolute centering is more reliable for this layout */
    justify-content: center;
    align-items: center;
    z-index: 10;
}

.description-center {
    display: flex;
    position: absolute;
    top: -2.2rem;
    /* Adjusted for better spacing */
    left: 0;
    justify-content: flex-start;
    width: 100%;
    align-items: flex-end;
    z-index: 20;
    gap: 0.8rem;
    transition: opacity 0.5s ease;
}

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

.intro-visible {
    opacity: 1;
    pointer-events: auto;
}

.grid {
    display: flex;
    flex-direction: column;
    text-align: left;
    /* Left align text */
}

.grid span {
    position: relative;
    overflow: hidden;
    height: 0.45rem;
    /* Increased to prevent clipping */
    padding-left: 0;
}

.grid span p {
    margin: 0;
    font-size: 0.28rem;
    /* Larger, readable text */
    line-height: 0.45rem;
    transform: translateY(110%);
    transition: transform 0.8s cubic-bezier(0.3, 0, 0.1, 1);
    font-family: var(--title-font);
    letter-spacing: 2px;
}

.grid.active span p {
    transform: translateY(0);
}

.grid span:nth-child(2) p,
.grid span:nth-child(3) p {
    font-size: 0.18rem;
    /* Slightly smaller for sub-labels but visible */
    color: var(--color-gold);
}

/* NUMBERS */
.numbers {
    display: flex;
    height: 0.12rem;
    overflow: hidden;
    font-family: var(--main-font);
    font-size: 0.12rem;
}

.numbers .hide-text {
    display: flex;
    transform: translateY(100%);
}

.numbers.active .hide-text {
    transform: translateY(0);
    transition: transform 0.8s cubic-bezier(0.3, 0, 0.1, 1);
}

.try {
    display: flex;
    flex-direction: column;
}

.try p {
    margin: 0;
    line-height: 0.12rem;
}

/* DESCRIPTION BOTTOM */
.description-bottom {
    display: flex;
    position: absolute;
    bottom: -1.75rem;
    justify-content: space-between;
    width: 7.5rem;
    left: 0;
    z-index: 20;
}

.description-bottom .info-col {
    display: flex;
    flex-direction: column;
    width: 2rem;
}

.description-bottom .info-col .hide-text {
    display: flex;
    height: 0.15rem;
    transform: translateY(100%);
    position: relative;
    overflow: hidden;
    flex-direction: column;
    justify-content: center;
}

.description-bottom .info-col .hide-text p {
    position: absolute;
    font-size: 0.12rem;
    line-height: 0.15rem;
    margin: 0;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s cubic-bezier(0.3, 0, 0.1, 1);
}

.description-bottom .info-col .hide-text p.active {
    opacity: 1;
    transform: translateY(0);
}

.description-bottom.active .hide-text {
    transform: translateY(0);
    transition: transform 0.8s cubic-bezier(0.3, 0, 0.1, 1);
}

/* BOXES */
.box {
    display: flex;
    position: absolute;
    width: 4rem;
    height: 2.68rem;
    overflow: hidden;
    z-index: 1;
    clip-path: polygon(0 100%, 100% 100%, 100% 100%, 0 100%);
    transition: height 1s cubic-bezier(0.3, 0, 0.1, 1);
}

.box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.9);
    position: absolute;
}

.box.active {
    height: 4.2rem;
}

/* INTRO COUNTER */
.counter {
    display: flex;
    width: 3.5rem;
    /* Larger to fit the massive numbers */
    height: 3.5rem;
    justify-content: center;
    align-items: center;
    position: relative;
    z-index: 100;
    /* Above everything during load */
}

.counter .current {
    overflow: hidden;
    display: flex;
}

.counter .current p {
    font-family: var(--title-font);
    font-size: 0.8rem;
    /* 3x + extra for impact */
    transform: translateY(100%);
    margin: 0;
    line-height: 0.8rem;
}

.counter .line {
    position: absolute;
    background: #fff;
    opacity: 0.4;
}

.counter .line:nth-child(2) {
    top: 0;
    width: 1px;
    height: 0.93rem;
    transform-origin: bottom center;
}

.counter .line:nth-child(3) {
    right: 0;
    height: 1px;
    width: 0.93rem;
    transform-origin: left center;
}

.counter .line:nth-child(4) {
    bottom: 0;
    width: 1px;
    height: 0.93rem;
    transform-origin: top center;
}

.counter .line:nth-child(5) {
    left: 0;
    height: 1px;
    width: 0.93rem;
    transform-origin: right center;
}

.counter .line::after {
    content: "";
    display: block;
    width: 0%;
    height: 0%;
    position: absolute;
    background: var(--color-gold);
    transition: all 0.6s cubic-bezier(0.3, 0, 0.1, 1);
}

.counter .line.active::after {
    width: 100%;
    height: 100%;
}

/* LEFT FILM STRIP */
.wrapper-left {
    position: absolute;
    left: 0;
    top: 0;
    width: 2.84rem;
    display: flex;
    flex-direction: column;
    z-index: 5;
    overflow: hidden;
    background: rgba(0, 0, 0, 0.45);
    backdrop-filter: blur(20px);
    border-right: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 10px 0 30px rgba(0, 0, 0, 0.5);
}

.wrapper-left::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom,
            #070707 0%,
            rgba(7, 7, 7, 0) 15%,
            rgba(7, 7, 7, 0) 85%,
            #070707 100%);
    pointer-events: none;
    z-index: 10;
}

.box-left {
    width: 100%;
    height: 4.4rem;
    margin-bottom: 0.13rem;
    clip-path: polygon(0 0, 0 0, 0 100%, 0 100%);
    overflow: hidden;
    position: relative;
    background: #000;
}

.box-left video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
}

.box-left img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(2.5);
    /* Higher scale for better parallax entry */
    position: absolute;
}

/* RIGHT PREVIEW */
.wrapper-right {
    position: absolute;
    right: 0.5rem;
    bottom: 0.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 1.78rem;
    z-index: 100;
}

.box-right {
    width: 1.78rem;
    height: 2.41rem;
    overflow: hidden;
    clip-path: polygon(100% 100%, 100% 100%, 100% 100%, 100% 100%);
    /* Start from corner */
    position: relative;
    background: #111;
}

.box-right img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
    transform: scale(1.5);
}

.img-preview {
    max-width: 100%;
    height: auto;
}

/* MARQUEE */
.marquee-lux-container {
    position: absolute;
    top: calc(50% + 2.4rem);
    /* Lowered (added ~100px equivalent) */
    width: 100%;
    left: 0;
    border-top: 0.5px solid rgba(255, 255, 255, 0.2);
    border-bottom: 0.5px solid rgba(255, 255, 255, 0.2);
    padding: 0.15rem 0;
    overflow: hidden;
    z-index: 50;
    mix-blend-mode: difference;
    opacity: 0;
    transition: opacity 1s;
}

.marquee-lux-container.active {
    opacity: 1;
}

.marquee-lux-content {
    display: flex;
    white-space: nowrap;
    width: max-content;
    animation: marquee-scroll 20s linear infinite;
    /* Smoother, independent speed */
}

@keyframes marquee-scroll {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

.marquee-lux-content p {
    margin: 0;
    font-family: var(--title-font);
    font-size: 0.35rem;
    letter-spacing: 6px;
    padding-right: 2.4rem;
}

/* ELITE CONTROLS */
.elite-controls-row {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 0.2rem;
    width: 100%;
    position: relative;
    height: 40px;
    /* Fixed height for vertical alignment */
}

.buttons-arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    /* Balanced spacing */
    transform: translateY(110%);
    opacity: 0;
    position: relative;
    z-index: 10;
}

.elite-play-btn {
    cursor: pointer;
    transition: transform 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
}

.arrow-left,
.arrow-right {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
}

.elite-play-btn svg {
    display: block;
}

.buttons-arrow.active {
    opacity: 1;
    transform: translateY(0);
    transition: all 0.6s cubic-bezier(0.3, 0, 0.1, 1);
}

.elite-play-btn.active {
    opacity: 1;
    transform: translateY(0);
}

.arrow-left,
.arrow-right {
    cursor: pointer;
    transition: transform 0.3s;
}

.arrow-left:hover,
.arrow-right:hover {
    transform: scale(1.2);
}

/* FILTERS */
.elite-filters-container {
    position: absolute;
    top: 2.1rem;
    right: 0.5rem;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.2rem;
    z-index: 200;
}

.category-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 0.3rem;
}

.category-list li {
    font-size: 0.14rem;
    letter-spacing: 2px;
    cursor: pointer;
    opacity: 0.5;
    transition: all 0.3s;
}

.category-list li.active,
.category-list li:hover {
    opacity: 1;
}

.attribute-filters .filter-item {
    cursor: pointer;
    font-size: 0.12rem;
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: 0.05rem 0.15rem;
}

.attribute-filters input {
    display: none;
}

.attribute-filters input:checked+span {
    color: var(--color-gold);
}