/* ========================================
   MINA LIDYA — HAUTE COUTURE EXPERIENCE
   Premium WebGL Wedding Atelier
   ======================================== */

/* ========== CSS VARIABLES ========== */
:root {
    /* Colors */
    --rose-gold: #B76E79;
    --rose-gold-light: #D4A5A5;
    --copper: #B87333;
    --old-rose: #C08081;
    --pudra: #F5E6E8;
    --pudra-dark: #E8D5D7;
    --white: #FAFAFA;
    --off-white: #F5F5F5;
    --black: #0A0A0A;
    --black-soft: #1A1A1A;
    --gold-accent: #D4AF37;

    /* Typography */
    --font-serif: 'Cormorant Garamond', serif;
    --font-sans: 'Montserrat', sans-serif;

    /* Spacing */
    --container-padding: clamp(20px, 5vw, 80px);
    --section-padding: clamp(60px, 10vh, 150px);

    /* Transitions */
    --ease-smooth: cubic-bezier(0.4, 0.0, 0.2, 1);
    --ease-bounce: cubic-bezier(0.68, -0.55, 0.265, 1.55);

    /* Z-index layers */
    --z-preloader: 10000;
    --z-cursor: 9999;
    --z-nav: 1000;
    --z-lang: 999;
    --z-grain: 9998;
}

/* ========== RESET & BASE ========== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-sans);
    background-color: var(--white);
    color: var(--black);
    overflow-x: hidden;
    cursor: auto;
    /* Changed from none - let custom cursor overlay */
}

body.loading {
    overflow: hidden;
}

img {
    max-width: 100%;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
}

button {
    border: none;
    background: none;
    cursor: pointer;
    /* Changed from none */
    font-family: inherit;
}

/* ========== CUSTOM CURSOR ========== */
.cursor-dot,
.cursor-outline {
    position: fixed;
    top: 0;
    left: 0;
    pointer-events: none;
    border-radius: 50%;
    z-index: var(--z-cursor);
    mix-blend-mode: difference;
}

.cursor-dot {
    width: 8px;
    height: 8px;
    background-color: var(--white);
    transform: translate(-50%, -50%);
}

.cursor-outline {
    width: 40px;
    height: 40px;
    border: 1px solid var(--white);
    transform: translate(-50%, -50%);
    transition: width 0.3s var(--ease-smooth), height 0.3s var(--ease-smooth);
}

.cursor-outline.hover {
    width: 80px;
    height: 80px;
}

#cursor-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: calc(var(--z-cursor) - 1);
}

/* ========== GRAIN OVERLAY ========== */
#grain-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: var(--z-grain);
    opacity: 0.03;
    mix-blend-mode: multiply;
}

/* ========== PRELOADER ========== */
.preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--black);
    z-index: var(--z-preloader);
    display: flex;
    align-items: center;
    justify-content: center;
}

.preloader-content {
    text-align: center;
    color: var(--white);
}

.logo-container {
    margin-bottom: 60px;
    opacity: 0;
    transform: translateY(30px);
}

.preloader-logo {
    font-family: var(--font-serif);
    font-size: clamp(3rem, 8vw, 6rem);
    font-weight: 300;
    letter-spacing: 0.3em;
    margin-bottom: 10px;
}

.preloader-tagline {
    font-family: var(--font-sans);
    font-size: clamp(0.7rem, 1.5vw, 1rem);
    font-weight: 300;
    letter-spacing: 0.5em;
    color: var(--rose-gold-light);
}

.progress-container {
    width: 300px;
    margin: 0 auto;
    opacity: 0;
}

.progress-bar {
    width: 100%;
    height: 1px;
    background-color: rgba(255, 255, 255, 0.2);
    margin-bottom: 15px;
    overflow: hidden;
}

.progress-fill {
    width: 0%;
    height: 100%;
    background-color: var(--rose-gold);
    transition: width 0.3s ease-out;
}

.progress-text {
    font-family: var(--font-sans);
    font-size: 0.9rem;
    font-weight: 300;
    letter-spacing: 0.2em;
}

.curtain {
    position: absolute;
    left: 0;
    width: 100%;
    height: 50%;
    background-color: var(--black);
    z-index: 1;
}

.curtain-top {
    top: 0;
}

.curtain-bottom {
    bottom: 0;
}

/* ========== LANGUAGE SWITCHER ========== */
.language-switcher {
    position: fixed;
    top: 30px;
    right: 30px;
    z-index: var(--z-lang);
    display: none;
    /* User requested removal of 'useless shadow'. Hiding it prevents visual overlap with Contact link. */
    align-items: center;
    gap: 10px;
    /* Removed background/border to remove shadow */
}

.lang-btn {
    font-family: var(--font-sans);
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.1em;
    color: rgba(255, 255, 255, 0.5);
    transition: color 0.3s var(--ease-smooth);
}

.lang-btn:hover,
.lang-btn.active {
    color: var(--rose-gold);
}

.lang-divider {
    color: rgba(255, 255, 255, 0.2);
    font-size: 0.7rem;
}

/* ========== NAVIGATION ========== */
.main-nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 11000;
    /* Ensure navigation is ABOVE everything else (preloader 10000) */
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 30px var(--container-padding);
    background: linear-gradient(to bottom, rgba(10, 10, 10, 0.8) 0%, transparent 100%);
    backdrop-filter: blur(5px);
    pointer-events: auto;
    /* Force pointer events */
}

.nav-logo-text {
    font-family: var(--font-serif);
    font-size: clamp(1.2rem, 2.5vw, 1.8rem);
    font-weight: 300;
    letter-spacing: 0.2em;
    color: var(--white);
}

.nav-logo-img {
    height: clamp(30px, 4vw, 50px);
    width: auto;
    filter: brightness(0) invert(1);
    /* Make it white */
    transition: transform 0.3s ease;
}

.nav-logo-img:hover {
    transform: scale(1.05);
}

.nav-menu {
    display: flex;
    gap: clamp(20px, 3vw, 40px);
}

.nav-link {
    font-family: var(--font-sans);
    font-size: clamp(0.7rem, 1vw, 0.85rem);
    font-weight: 400;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.7);
    position: relative;
    transition: color 0.3s var(--ease-smooth);
    pointer-events: auto;
    cursor: none;
    /* Keep custom cursor feel but allow interaction */
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 1px;
    background-color: var(--rose-gold);
    transition: width 0.4s var(--ease-smooth);
}

.nav-link:hover {
    color: var(--white);
}

.nav-link:hover::after {
    width: 100%;
}

/* ========== CONTAINER ========== */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 var(--container-padding);
}

.container-fluid {
    padding: 0 var(--container-padding);
}

/* ========== HERO SECTION ========== */

/* ========== FASHION CONCEPT HERO SLIDER ========== */
.fashion-concept-slider {
    position: relative;
    width: 100%;
    height: 100vh;
    min-height: 600px;
    background: #000;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    isolation: isolate;
    /* Fix blend mode for child elements */
}

/* Premium Vignette Overlay - Max Settings */
.fashion-concept-slider::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 18;
    pointer-events: none;
    background:
        radial-gradient(ellipse at center, transparent 0%, transparent 30%, rgba(0, 0, 0, 0.4) 70%, rgba(0, 0, 0, 0.8) 100%),
        radial-gradient(ellipse at center, transparent 0%, rgba(183, 110, 121, 0.15) 100%);
    backdrop-filter: blur(0px);
    mix-blend-mode: normal;
}

/* Additional blur vignette layer */
.fashion-concept-slider::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 17;
    pointer-events: none;
    box-shadow:
        inset 0 0 150px 50px rgba(0, 0, 0, 0.6),
        inset 0 0 250px 100px rgba(183, 110, 121, 0.2);
}

.fashion-concept-slider a {
    color: #fff;
    text-decoration: none;
    mix-blend-mode: difference;
}

/* Slider Inner */
.slider {
    position: absolute;
    left: 0;
    top: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
}

.slider__inner {
    position: absolute;
    left: 0;
    top: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
}

.slider canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* Slides */
.slide {
    position: absolute;
    left: 0;
    top: 0;
    right: 0;
    bottom: 0;
    overflow: hidden;
    pointer-events: none;
    z-index: 10;
}

.slide__content {
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    left: 0;
    top: 0;
    right: 0;
    bottom: 0;
}

.slide__img {
    position: relative;
    width: 25vw;
    height: 70vh;
    padding: 0;
    margin: 0;
    min-width: 12.5rem;
    transform-origin: top;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5);
}

.slide__img:nth-child(1) {
    top: -1.5rem;
}

.slide__img:nth-child(2) {
    bottom: -1.5rem;
}

.slide__img img {
    display: block;
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Slider Text */
.slider__text {
    position: absolute;
    bottom: calc(2rem + 3vw);
    left: calc(2rem + 3vw);
    z-index: 50;
    /* Above WebGL canvas */
    font-size: clamp(3.5rem, 8vw, 7.5rem);
    text-transform: uppercase;
    transform-origin: top;
    line-height: 1.075;
    font-weight: 700;
    color: #fff;
    font-family: var(--font-serif);
    mix-blend-mode: difference;
    letter-spacing: 2px;
    isolation: isolate;
    /* Create new stacking context */
}

.slider__text-line {
    overflow: hidden;
    isolation: isolate;
    /* Ensure blend mode works */
}

/* Slider Navigation */
.slider__nav {
    position: absolute;
    top: 50%;
    right: 40px;
    transform: translateY(-50%);
    z-index: 25;
    display: flex;
    flex-direction: column;
    gap: 0;
    pointer-events: auto;
}

.slider-bullet {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding: 1rem 0;
    cursor: pointer;
    pointer-events: auto;
    transition: transform 0.3s ease;
}

.slider-bullet:hover {
    transform: translateX(-5px);
}

.slider-bullet__text {
    font-size: 0.65rem;
    margin-right: 1rem;
    color: #fff;
    mix-blend-mode: difference;
    font-family: var(--font-sans);
    font-weight: 600;
    opacity: 0.25;
}

.slider-bullet__line {
    height: 1px;
    width: 1rem;
    background-color: #fff;
    mix-blend-mode: difference;
    transform-origin: right;
    transform: scaleX(0);
}

/* Vertical Text */
.vert-text {
    position: absolute;
    bottom: 2rem;
    right: 2rem;
    width: 15rem;
    display: flex;
    align-items: center;
    z-index: 15;
    pointer-events: none;
}

.vert-text span {
    display: block;
    text-transform: uppercase;
    line-height: 1.1;
    transform: rotate(-90deg) translateY(15rem);
    transform-origin: bottom left;
    font-size: 1.35rem;
    color: #fff;
    mix-blend-mode: difference;
    font-family: var(--font-serif);
    font-weight: 700;
    letter-spacing: 3px;
}

/* Scroll Indicator */
.scroll {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    font-size: calc(0.5rem + 0.35vw);
    z-index: 15;
    color: #fff;
    mix-blend-mode: difference;
    cursor: pointer;
    font-family: var(--font-sans);
    font-weight: 600;
    letter-spacing: 2px;
    pointer-events: auto;
}

/* Logo in Hero Slider */
.fashion-concept-slider .logo {
    mix-blend-mode: difference;
    color: #fff;
}

/* Responsive */
@media (max-width: 1024px) {
    .vert-text {
        display: none;
    }
}

@media (max-width: 768px) {
    .fashion-concept-slider {
        height: 100vh;
    }

    .slide__img {
        width: 35vw;
        height: 50vh;
        min-width: 150px;
    }

    .slider__text {
        bottom: 1rem;
        left: 1rem;
        font-size: calc(0.8rem + 3vw);
    }

    .slider-bullet__text {
        margin-right: 0.5rem;
    }

    .slider-bullet__line {
        width: 0.8rem;
    }

    .slider__nav {
        right: 1rem;
    }

    .scroll {
        bottom: 1rem;
    }
}


/* ========== SECTION TITLES ========== */
.section-title {
    font-family: var(--font-serif);
    font-size: clamp(3rem, 7vw, 6rem);
    font-weight: 300;
    letter-spacing: 0.1em;
    margin-bottom: 60px;
    color: var(--black);
}

.section-title.centered {
    text-align: center;
}

.section-intro {
    font-family: var(--font-sans);
    font-size: clamp(1.1rem, 2.2vw, 1.5rem);
    font-weight: 300;
    letter-spacing: 0.05em;
    text-align: center;
    max-width: 600px;
    margin: -30px auto 80px;
    color: var(--old-rose);
}

/* ========== MANIFESTO SECTION ========== */
.manifesto-section {
    padding: var(--section-padding) 0;
    background-color: var(--pudra);
}

.manifesto-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.manifesto-content {
    max-width: 600px;
}

.manifesto-paragraph {
    font-family: var(--font-sans);
    font-size: clamp(1.15rem, 2vw, 1.4rem);
    font-weight: 300;
    line-height: 1.9;
    letter-spacing: 0.02em;
    color: var(--black-soft);
}

.manifesto-image-wrapper {
    position: relative;
    height: 600px;
}

.parallax-frame {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
    border-radius: 2px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
}

.image-container {
    position: absolute;
    top: -10%;
    left: -10%;
    width: 120%;
    height: 120%;
}

.parallax-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ========== COLLECTIONS SECTION ========== */
.collections-section {
    padding: var(--section-padding) 0;
    background-color: var(--white);
}

.collections-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
}

.collection-card {
    position: relative;
    overflow: hidden;
    background-color: var(--off-white);
    border-radius: 2px;
    transition: transform 0.5s var(--ease-smooth);
}

.collection-card:hover {
    transform: translateY(-10px);
}

.collection-image-wrapper {
    position: relative;
    width: 100%;
    height: 500px;
    overflow: hidden;
}

.webgl-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
}

.collection-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s var(--ease-smooth);
}

.collection-card:hover .collection-image {
    transform: scale(1.05);
}

.collection-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(10, 10, 10, 0.7), transparent);
    opacity: 0;
    transition: opacity 0.5s var(--ease-smooth);
}

.collection-card:hover .collection-overlay {
    opacity: 1;
}

.collection-content {
    padding: 40px;
}

.collection-title {
    font-family: var(--font-serif);
    font-size: clamp(2.2rem, 4vw, 3.5rem);
    font-weight: 400;
    letter-spacing: 0.1em;
    margin-bottom: 10px;
    color: var(--black);
}

.collection-subtitle {
    font-family: var(--font-sans);
    font-size: clamp(0.95rem, 1.8vw, 1.2rem);
    font-weight: 400;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--rose-gold);
    margin-bottom: 20px;
}

.collection-description {
    font-family: var(--font-sans);
    font-size: clamp(1.05rem, 1.9vw, 1.35rem);
    font-weight: 300;
    line-height: 1.8;
    color: var(--black-soft);
    margin-bottom: 30px;
}

.collection-cta {
    display: inline-flex;
    align-items: center;
    padding: 12px 30px;
    font-family: var(--font-sans);
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--white);
    background-color: var(--black);
    border-radius: 50px;
    transition: all 0.3s var(--ease-smooth);
}

.collection-cta:hover {
    background-color: var(--rose-gold);
    transform: translateX(5px);
}

/* ========== STYLIST SECTION ========== */
.stylist-section {
    padding: var(--section-padding) 0;
    background-color: var(--pudra-dark);
}

.accordion-container {
    max-width: 900px;
    margin: 0 auto;
}

.accordion-item {
    border-bottom: 1px solid rgba(10, 10, 10, 0.1);
    padding: 30px 0;
    transition: all 0.3s var(--ease-smooth);
}

.accordion-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: none;
}

.accordion-title {
    font-family: var(--font-serif);
    font-size: clamp(1.5rem, 3vw, 2.2rem);
    font-weight: 400;
    letter-spacing: 0.05em;
    color: var(--black);
}

.accordion-icon {
    font-size: 2rem;
    font-weight: 300;
    color: var(--rose-gold);
    transition: transform 0.3s var(--ease-smooth);
}

.accordion-item.active .accordion-icon {
    transform: rotate(45deg);
}

.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s var(--ease-smooth), padding 0.5s var(--ease-smooth);
}

.accordion-item.active .accordion-content {
    max-height: 200px;
    padding-top: 20px;
}

.accordion-content p {
    font-family: var(--font-sans);
    font-size: 1rem;
    font-weight: 300;
    line-height: 1.7;
    color: var(--black-soft);
}

/* ========== MAGAZINE SECTION ========== */
.magazine-section {
    position: relative;
    height: 100vh;
    background-color: var(--black);
    overflow: hidden;
}

.magazine-header {
    position: absolute;
    top: 50px;
    left: var(--container-padding);
    z-index: 10;
}

.magazine-header .section-title {
    color: var(--white);
    margin-bottom: 40px;
}

.magazine-container {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.magazine-track {
    display: flex;
    height: 100%;
    will-change: transform;
}

.magazine-page {
    flex-shrink: 0;
    width: 100vw;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 10vw;
}

.magazine-page img {
    max-width: 100%;
    max-height: 80vh;
    object-fit: contain;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5);
}

.magazine-progress {
    position: absolute;
    bottom: 50px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 20px;
    z-index: 10;
}

.page-current,
.page-total {
    font-family: var(--font-sans);
    font-size: 1rem;
    font-weight: 300;
    color: var(--white);
}

.progress-line {
    width: 200px;
    height: 1px;
    background-color: rgba(255, 255, 255, 0.2);
}

.progress-line-fill {
    width: 20%;
    height: 100%;
    background-color: var(--rose-gold);
    transition: width 0.3s var(--ease-smooth);
}

/* ========== CONTACT SECTION ========== */
.contact-section {
    padding: var(--section-padding) 0;
    background-color: var(--white);
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    margin-bottom: 80px;
}

.contact-card {
    text-align: center;
    padding: 60px 40px;
    background-color: var(--pudra);
    border-radius: 2px;
    transition: all 0.4s var(--ease-smooth);
}

.contact-card:hover {
    background-color: var(--rose-gold-light);
    transform: translateY(-5px);
}

.contact-location {
    font-family: var(--font-serif);
    font-size: clamp(1.5rem, 2.5vw, 2rem);
    font-weight: 400;
    letter-spacing: 0.1em;
    margin-bottom: 15px;
    color: var(--black);
}

.contact-address {
    font-family: var(--font-sans);
    font-size: 0.95rem;
    font-weight: 300;
    letter-spacing: 0.05em;
    color: var(--black-soft);
}

.contact-cta-wrapper {
    text-align: center;
}

.contact-cta {
    display: inline-flex;
    align-items: center;
    gap: 15px;
    padding: 20px 50px;
    font-family: var(--font-sans);
    font-size: 0.9rem;
    font-weight: 500;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--white);
    background-color: var(--black);
    border-radius: 50px;
    transition: all 0.4s var(--ease-smooth);
}

.contact-cta:hover {
    background-color: var(--rose-gold);
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(183, 110, 121, 0.3);
}

/* ========== FOOTER ========== */
.main-footer {
    padding: 80px 0 40px;
    background-color: var(--black);
    color: var(--white);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 60px;
}

.footer-logo h3 {
    font-family: var(--font-serif);
    font-size: 2rem;
    font-weight: 300;
    letter-spacing: 0.2em;
    margin-bottom: 10px;
}

.footer-logo p {
    font-family: var(--font-sans);
    font-size: 0.8rem;
    font-weight: 300;
    letter-spacing: 0.15em;
    color: var(--rose-gold-light);
}

.footer-links {
    display: flex;
    gap: 30px;
}

.footer-link {
    font-family: var(--font-sans);
    font-size: 0.85rem;
    font-weight: 400;
    letter-spacing: 0.1em;
    color: rgba(255, 255, 255, 0.6);
    transition: color 0.3s var(--ease-smooth);
}

.footer-link:hover {
    color: var(--rose-gold);
}

.footer-bottom {
    text-align: center;
    padding-top: 40px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom p {
    font-family: var(--font-sans);
    font-size: 0.75rem;
    font-weight: 300;
    letter-spacing: 0.1em;
    color: rgba(255, 255, 255, 0.4);
}

/* ========== MAGNETIC ELEMENTS ========== */
.magnetic-element {
    transition: transform 0.3s var(--ease-smooth);
}

/* ========== RESPONSIVE ========== */
@media (max-width: 1024px) {

    .manifesto-grid,
    .collections-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .contact-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .nav-menu {
        display: none;
    }
}

@media (max-width: 768px) {
    .language-switcher {
        top: 20px;
        right: 20px;
        padding: 8px 15px;
    }

    .main-nav {
        padding: 20px;
    }

    .hero-title {
        font-size: 3rem;
    }

    .section-title {
        font-size: 2.5rem;
    }

    /* Magazine Section - Mobile Optimizations */
    .magazine-section {
        height: 70vh;
        /* Reduced from 100vh */
        min-height: 500px;
    }

    .magazine-container {
        height: 100%;
    }

    .magazine-page {
        padding: 0 2vw;
        /* Reduced padding for more image space */
        width: 66.67vw;
        /* Show 1.5 images on screen */
    }

    .magazine-page img {
        max-width: 100%;
        max-height: 90%;
        /* Increased from 80vh to fill more space */
        width: 100%;
        height: auto;
        object-fit: cover;
        /* Changed from contain to cover for full display */
    }

    .magazine-header {
        top: 20px;
        left: 20px;
    }

    .magazine-header .section-title {
        font-size: 2rem;
        margin-bottom: 20px;
    }

    .magazine-progress {
        bottom: 20px;
    }

    .footer-content {
        flex-direction: column;
        gap: 40px;
        text-align: center;
    }
}

/* ========================================
   FASHION CONCEPT SLIDER (Reference Port)
   ======================================== */
.fashion-concept-slider {
    position: relative;
    width: 100%;
    height: 100vh;
    min-height: 600px;
    background: #000;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.fashion-concept-slider a {
    color: #fff;
    text-decoration: none;
    mix-blend-mode: difference;
}

/* Slider Inner */
.slider {
    position: absolute;
    left: 0;
    top: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
}

.slider__inner {
    position: absolute;
    left: 0;
    top: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
}

.slider canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* Slides */
.slide {
    position: absolute;
    left: 0;
    top: 0;
    right: 0;
    bottom: 0;
    overflow: hidden;
    pointer-events: none;
    z-index: 10;
}

.slide__content {
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    left: 0;
    top: 0;
    right: 0;
    bottom: 0;
}

.slide__img {
    position: relative;
    width: 25vw;
    height: 70vh;
    padding: 0;
    margin: 0;
    min-width: 12.5rem;
    transform-origin: top;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5);
}

.slide__img:nth-child(1) {
    top: -1.5rem;
}

.slide__img:nth-child(2) {
    bottom: -1.5rem;
}

.slide__img img {
    display: block;
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Slider Text */
.slider__text {
    position: absolute;
    bottom: calc(2rem + 3vw);
    left: calc(2rem + 3vw);
    z-index: 15;
    font-size: calc(1rem + 4vw);
    text-transform: uppercase;
    transform-origin: top;
    line-height: 1.075;
    font-weight: 700;
    color: #fff;
    font-family: 'Cormorant Garamond', serif;
    mix-blend-mode: difference;
    letter-spacing: 2px;
}

.slider__text-line {
    overflow: hidden;
}

/* Slider Navigation */
.slider__nav {
    position: absolute;
    top: 50%;
    right: 40px;
    transform: translateY(-50%);
    z-index: 25;
    display: flex;
    flex-direction: column;
    gap: 0;
    /* Reference CSS might not have gap, handles padding */
}

.slider-bullet {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding: 1rem 0;
    cursor: pointer;
    pointer-events: auto;
}

.slider-bullet__text {
    font-size: 0.65rem;
    margin-right: 1rem;
    color: #fff;
    mix-blend-mode: difference;
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
}

.slider-bullet__line {
    height: 1px;
    width: 1rem;
    background-color: #fff;
    mix-blend-mode: difference;
}

/* Vertical Text */
.vert-text {
    position: absolute;
    bottom: 2rem;
    right: 2rem;
    width: 15rem;
    display: flex;
    align-items: center;
    z-index: 15;
    pointer-events: none;
}

.vert-text span {
    display: block;
    text-transform: uppercase;
    line-height: 1.1;
    transform: rotate(-90deg) translateY(15rem);
    transform-origin: bottom left;
    font-size: 1.35rem;
    color: #fff;
    mix-blend-mode: difference;
    font-family: 'Cormorant Garamond', serif;
    font-weight: 700;
    letter-spacing: 3px;
}

/* Scroll Indicator */
.scroll {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    font-size: calc(0.5rem + 0.35vw);
    z-index: 15;
    color: #fff;
    mix-blend-mode: difference;
    cursor: pointer;
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    letter-spacing: 2px;
    pointer-events: auto;
}

/* Responsive */
@media (max-width: 1024px) {
    .vert-text {
        display: none;
    }
}

@media (max-width: 768px) {
    .fashion-concept-slider {
        height: 100vh;
    }

    .slide__img {
        width: 35vw;
        height: 50vh;
        min-width: 150px;
    }

    .slider__text {
        bottom: 1rem;
        left: 1rem;
        font-size: calc(0.8rem + 3vw);
    }

    .slider__nav {
        right: 10px;
    }

    .scroll {
        bottom: 1rem;
    }
}

/* ========================================
   MAGAZINE READER EXTENSIONS
   ======================================== */

/* Magazine Card Updates */
.magazine-card {
    position: relative;
    width: 28vw;
    /* Proper magazine width */
    min-width: 320px;
    height: 42vw;
    /* 2:3 aspect ratio for magazine */
    max-height: 675px;
    margin: 0 5vw;
    cursor: pointer;
    transition: transform 0.4s var(--ease-smooth);
}

.magazine-card:hover {
    transform: translateY(-20px) scale(1.02);
}

.magazine-cover {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
    border-radius: 2px;
}

.magazine-info {
    position: absolute;
    bottom: -60px;
    left: 0;
    width: 100%;
    text-align: center;
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.4s var(--ease-smooth);
}

.magazine-card:hover .magazine-info {
    opacity: 1;
    transform: translateY(0);
}

.magazine-title {
    color: #fff;
    font-family: var(--font-serif);
    font-size: 1.2rem;
    letter-spacing: 1px;
    margin-bottom: 5px;
}

.read-btn {
    color: var(--rose-gold);
    font-family: var(--font-sans);
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 2px;
}

/* Flipbook Modal */
.magazine-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(10, 10, 10, 0.95);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.5s ease;
}

.magazine-modal.active {
    opacity: 1;
    pointer-events: auto;
}

.modal-close {
    position: absolute;
    top: 30px;
    right: 30px;
    color: #fff;
    font-size: 2rem;
    cursor: pointer;
    z-index: 10002;
    transition: transform 0.3s ease;
}

.modal-close:hover {
    transform: rotate(90deg);
}

.book-container {
    position: relative;
    width: auto;
    height: 80vh;
    display: flex;
    justify-content: center;
    align-items: center;
    /* Flipbook needs defined area */
}

/* The Flipbook Wrapper */
.flip-book {
    box-shadow: 0 0 50px rgba(0, 0, 0, 0.5);
    display: none;
    /* Hidden until loaded */
}

.flip-book.loaded {
    display: block;
}

/* Page Styles (Canvas) */
.flip-book .page {
    background-color: #fdfdfd;
    box-shadow: inset -5px 0 10px rgba(0, 0, 0, 0.05);
    /* Spine shadow effect? */
}

.modal-loader {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: var(--rose-gold);
    font-family: var(--font-sans);
    letter-spacing: 2px;
    text-transform: uppercase;
}


/* 3D Volume Effect for Magazine Card */
.magazine-card {
    /* Existing transition... */
    transform-style: preserve-3d;
    perspective: 1000px;
}

.magazine-cover {
    /* Add depth via box-shadow */
    box-shadow:
        5px 5px 15px rgba(0, 0, 0, 0.5),
        1px 1px 0 #fff inset,
        /* Fake paper edge */
        2px 2px 0 #ddd inset,
        3px 3px 0 #bbb inset;
    transition: transform 0.4s var(--ease-smooth), box-shadow 0.4s var(--ease-smooth);
}

.magazine-card:hover .magazine-cover {
    transform: rotateY(-15deg) rotateX(5deg);
    box-shadow:
        15px 15px 30px rgba(0, 0, 0, 0.6),
        1px 1px 0 #fff inset,
        2px 2px 0 #ddd inset,
        3px 3px 0 #bbb inset,
        4px 4px 0 #999 inset,
        /* Creating 'pages' thickness */
        5px 5px 0 #777 inset;
}

/* Flipbook Hardcover Realism */
.flip-book .page {
    background-color: #fdfdfd;
    backface-visibility: hidden;
    /* Important for clean flip */
}

.flip-book .page.--left {
    border-right: 1px solid rgba(0, 0, 0, 0.1);
    /* Spine shadow */
    background: linear-gradient(to right, #fff 95%, #ddd 100%);
    /* Inner spine shading */
}

.flip-book .page.--right {
    border-left: 1px solid rgba(0, 0, 0, 0.1);
    background: linear-gradient(to left, #fff 95%, #ddd 100%);
}

.flip-book.hardcover {
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.6);
}

/* Fix white flash during flip - add a background to the book container */
.book-container {
    perspective: 2000px;
}


/* ========================================
   ENHANCED MAGAZINE READER & TOOLBAR
   ======================================== */

/* Fixed: Full Screen Size for Modal Content */
.magazine-modal {
    /* Existing settings ok, checking flex alignment */
    align-items: center;
    justify-content: center;
    padding: 2vh 2vw;
    /* Slight padding */
}

.book-container {
    width: 100%;
    height: 100%;
    max-width: 1600px;
    /* Maximize size */
    max-height: 90vh;
    display: flex;
    justify-content: center;
    align-items: center;
    perspective: 2500px;
    /* Increase perspective for better 3D look */
}

/* Ensure Flipbook is Large */
.flip-book {
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6);
}

/* Toolbar Styling */
.magazine-toolbar {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    padding: 10px 20px;
    border-radius: 30px;
    display: flex;
    gap: 20px;
    align-items: center;
    z-index: 10005;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.toolbar-btn {
    color: #fff;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1.1rem;
    transition: color 0.3s;
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-sans);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.toolbar-btn:hover {
    color: var(--rose-gold);
}

.page-counter {
    color: rgba(255, 255, 255, 0.7);
    font-family: var(--font-sans);
    font-size: 0.8rem;
    padding: 0 10px;
    border-left: 1px solid rgba(255, 255, 255, 0.2);
    border-right: 1px solid rgba(255, 255, 255, 0.2);
}

/* Permanent 3D Volume on Shelf */
.magazine-card {
    /* Keep 3D props with responsive sizing */
    width: 28vw !important;
    min-width: 320px !important;
    max-width: 450px !important;
    height: 42vw !important;
    max-height: 675px !important;
}

.magazine-cover {
    /* Permanent rotation for volume */
    transform: rotateY(-10deg) rotateX(5deg);
    box-shadow:
        10px 10px 20px rgba(0, 0, 0, 0.5),
        2px 2px 0 #ddd inset,
        /* Page thickness constant */
        4px 4px 0 #999 inset;
}

.magazine-info {
    opacity: 1 !important;
    /* Always show title */
    transform: translateY(0) !important;
    bottom: -60px !important;
    width: 100%;
    text-align: center;
}

.magazine-title {
    font-size: 1.1rem !important;
    font-weight: 500;
    margin-top: 20px;
    opacity: 0.9;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: #fff;
}

.read-btn {
    opacity: 0;
    /* Only button shows on hover */
    transform: translateY(-5px);
    transition: all 0.3s ease;
}

.magazine-card:hover .read-btn {
    opacity: 1;
    transform: translateY(0);
}


/* Ensure FontAwesome and Toolbar are Visible */
.magazine-toolbar .fas {
    font-size: 1.2rem;
    pointer-events: none;
    /* Let button handle click */
}

/* Explicit Modal Close Button Style */
.magazine-modal .modal-close {
    position: absolute;
    top: 30px;
    right: 30px;
    font-size: 2rem;
    color: #fff;
    cursor: pointer;
    z-index: 10010;
    transition: transform 0.3s ease;
    background: rgba(0, 0, 0, 0.2);
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.magazine-modal .modal-close:hover {
    transform: rotate(90deg) scale(1.1);
    background: rgba(255, 255, 255, 0.1);
}


/* ========================================
   OPTIMIZED GRAIN & PULSE (CSS ONLY)
   ======================================== */
#grain-canvas {
    /* We will reuse this ID but as a div background */
    display: block;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 9000;
    background-image: url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADIAAAAyBAMAAADsEZWCAAAAGFBMVEUAAAAAAAACAgIBAQEFBQUDAwMEBAQAAAA32vG1AAAACHRSTlMVEgAAVd3d3d0h19kGAAAAJElEQVQ4y2NgAAIGBgYmBgaGDAZ0wAgTY4hIE0IGBwYGFgYGAwA1OQKR53e6OAAAAABJRU5ErkJggg==');
    /* Tiny noise pattern */
    opacity: 0.05;
    animation: grainPulse 8s infinite alternate;
}

@keyframes grainPulse {
    0% {
        opacity: 0.03;
        transform: scale(1);
    }

    100% {
        opacity: 0.06;
        transform: scale(1.02);
    }
}


/* ========== HERO SECTION (TYPOGRAPHY FIX) ========== */
/* Ensure the main title never wraps and scales responsively */
.hero-title-main {
    /* Existing styles might be here, override specifically */
    white-space: nowrap !important;
    overflow: hidden;
    text-overflow: ellipsis;
    /* Just in case */
    font-size: clamp(2rem, 5vw, 6rem) !important;
    /* Min 2rem, Ideal 5vw, Max 6rem */
    width: 100%;
    text-align: center;
    line-height: 1.1;
}

/* Also ensure container doesn't force wrap */
.hero-content {
    max-width: 100% !important;
    padding: 0 5%;
}

/* =======================
   MAGAZINE COMPACT LAYOUT
   ======================= */
.magazine-track {
    /* Reduce gap significantly */
    gap: 2vw !important;
    padding-left: 10vw;
    /* Start with visual gap */
}

.magazine-page {
    /* Allow multiple items */
    flex: 0 0 auto !important;
    width: auto !important;
}

.magazine-card {
    /* Proper magazine proportions - portrait aspect ratio (2:3) */
    width: 28vw !important;
    min-width: 320px !important;
    max-width: 450px !important;
    height: 42vw !important;
    /* 2:3 aspect ratio for magazine look */
    max-height: 675px !important;
    margin: 0 !important;
    /* Remove old large margins */
}

/* Ensure Titles are visible */
.magazine-info {
    bottom: -30px !important;
}

/* Mobile Magazine Cards - Match 5:7 aspect ratio (1000x1400) */
@media (max-width: 768px) {
    .magazine-card {
        width: 50vw !important;
        min-width: 250px !important;
        max-width: 350px !important;
        height: 70vw !important;
        /* 5:7 aspect ratio */
        max-height: 490px !important;
    }
}

/* =======================
   PERFORMANCE TWEAKS 
   ======================= */
/* Hardware accelerate main containers to prevent repaint */
.webgl-container,
canvas {
    will-change: transform;
    transform: translateZ(0);
}


/* ========================================
   LANGUAGE SELECTOR & FLAG HOVER EFFECTS
   ======================================== */
.intro-lang-buttons {
    margin-top: 2rem;
    display: flex;
    gap: 1.5rem;
    align-items: center;
    justify-content: center;
    z-index: 50;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.8s ease 0.5s;
}

.intro-lang-buttons.visible {
    opacity: 1;
    transform: translateY(0);
}

.intro-lang-btn {
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.6);
    font-family: var(--font-sans);
    font-size: 0.8rem;
    cursor: pointer;
    letter-spacing: 2px;
    font-weight: 500;
    position: relative;
    padding-bottom: 5px;
    overflow: hidden;
    transition: color 0.3s ease;
}

.intro-lang-btn:hover {
    color: #fff;
}

/* Flag Underline Pulse Effect */
.intro-lang-btn::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    /* Thin elegant line */
    transform: translateX(-101%);
    transition: transform 0.4s var(--ease-smooth);
}

.intro-lang-btn:hover::after {
    transform: translateX(0);
}

/* Specific Flag Gradients */
/* TR: Red - White - Red (Symbolic) */
.intro-lang-btn[data-lang='tr']::after {
    background: linear-gradient(90deg, #E30A17 30%, #fff 50%, #E30A17 70%);
}

/* EN: Blue - Red - White */
.intro-lang-btn[data-lang='en']::after {
    background: linear-gradient(90deg, #00247D 33%, #CF142B 66%, #fff 100%);
}

/* DE: Black - Red - Gold */
.intro-lang-btn[data-lang='de']::after {
    background: linear-gradient(90deg, #000 33%, #DD0000 66%, #FFCC00 100%);
}

/* FR: Blue - White - Red */
.intro-lang-btn[data-lang='fr']::after {
    background: linear-gradient(90deg, #0055A4 33%, #fff 66%, #EF4135 100%);
}

/* NL: Red - White - Blue */
.intro-lang-btn[data-lang='nl']::after {
    background: linear-gradient(90deg, #AE1C28 33%, #fff 66%, #21468B 100%);
}

/* ES: Red - Yellow - Red */
.intro-lang-btn[data-lang='es']::after {
    background: linear-gradient(90deg, #AA151B 33%, #F1BF00 66%, #AA151B 100%);
}

.lang-divider {
    color: rgba(255, 255, 255, 0.2);
    font-size: 0.7rem;
}

/* ========== GLOBAL SEO TEXT STYLES (Copied from Haute) ========== */
.seo-section {
    padding: 10vh 10%;
    background-color: var(--white);
    font-family: var(--font-serif);
    line-height: 1.6;
    color: var(--black-soft);
}

.seo-content {
    max-width: 800px;
    margin: 0 auto;
    font-size: 1.1rem;
    text-align: justify;
}

.seo-content h2 {
    font-size: 2rem;
    text-align: center;
    margin-bottom: 2rem;
    font-weight: 400;
    font-style: italic;
    font-family: var(--font-serif);
}

.seo-content p {
    margin-bottom: 1.5rem;
}

/* Force Difference Blend Mode for Online Slider Texts */
.md-hero-content h1,
.md-hero-content p,
.md-hero-title,
.md-hero-subtitle {
    mix-blend-mode: difference !important;
    color: #fff !important;
}

/* ========================================
   MOBILE RESPONSIVENESS OVERRIDES
   ======================================== */
@media (max-width: 768px) {

    /* Navigation */
    .main-nav {
        padding: 15px 20px;
        background: rgba(10, 10, 10, 0.9);
    }

    .nav-menu {
        display: none;
        /* Usually handled by Burger on mobile */
    }

    /* Section Titles */
    .section-title {
        font-size: 2.5rem;
        margin-bottom: 40px;
    }

    /* Manifesto Grid */
    .manifesto-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .manifesto-image-wrapper {
        height: 400px;
        order: -1;
        /* Image first on mobile */
    }

    /* Collections Grid */
    .collections-grid {
        grid-template-columns: 1fr;
    }

    /* Footer Responsive */
    .md-footer-grid {
        grid-template-columns: 1fr;
        gap: 30px;
        text-align: center;
    }

    .md-footer-address {
        text-align: center;
    }
}

/* Rich Text Utility */
.rich-text {
    line-height: 1.8;
}