/* =========================================
   Design System & Variables
   ========================================= */
:root {
    /* Mode Aesthetic Palette - Yohji Yamamoto Inspired */
    --bg-color: #000000;
    --text-primary: #ffffff;
    --text-secondary: #888888;
    --border-color: rgba(255, 255, 255, 0.15);

    /* Typography */
    --font-heading: 'Cormorant Garamond', serif;
    --font-body: 'Inter', sans-serif;

    /* Transitions */
    --ease-out-expo: cubic-bezier(0.19, 1, 0.22, 1);
    --transition-slow: 0.8s var(--ease-out-expo);
    --transition-medium: 0.4s ease;
    --transition-fast: 0.2s ease;
}

/* =========================================
   Intro Splash Screen
   ========================================= */
.intro-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: #000000;
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 1;
    transition: opacity 1.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.intro-overlay.fade-out {
    opacity: 0;
    pointer-events: none;
}

.intro-content {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.intro-logo {
    max-width: 1400px;
    width: 95vw;
    opacity: 0;
    transform: scale(0.95);
    transition: opacity 1.5s ease, transform 1.5s ease;
}

.intro-logo.visible {
    opacity: 1;
    transform: scale(1);
}

/* =========================================
   Reset & Base Styles
   ========================================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    background-color: var(--bg-color);
    color: var(--text-primary);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

::selection {
    background: #ffffff;
    color: #000000;
}

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

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

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 5%;
}

.section {
    padding: 8rem 0;
}

.section-title {
    font-family: var(--font-heading);
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 200;
    margin-bottom: 1.5rem;
    line-height: 1.1;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

/* =========================================
   Custom Cursor
   ========================================= */
.cursor-dot,
.cursor-outline {
    position: fixed;
    top: 0;
    left: 0;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    z-index: 9999;
    pointer-events: none;
}

.cursor-dot {
    width: 3px;
    height: 3px;
    background-color: var(--text-primary);
}

.cursor-outline {
    width: 30px;
    height: 30px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: width 0.2s, height 0.2s, background-color 0.2s, border-color 0.2s;
}

/* Interactive state for cursor */
.cursor-hover .cursor-outline {
    width: 40px;
    height: 40px;
    border-color: rgba(255, 255, 255, 0.5);
}

/* Hide on mobile */
@media (max-width: 768px) {

    .cursor-dot,
    .cursor-outline {
        display: none;
    }
}

/* =========================================
   Navigation
   ========================================= */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 1.8rem 5%;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 100;
    isolation: isolate;
    background: transparent;
    mix-blend-mode: difference;
    box-sizing: border-box;
}

.logo {
    position: absolute;
    left: 5%;
    font-family: 'Inter', sans-serif;
    font-size: 0.85rem;
    font-weight: 400;
    letter-spacing: 0.45em;
    text-transform: uppercase;
    opacity: 1;
    transition: opacity 0.4s ease;
}

.logo:hover {
    opacity: 1;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 3rem;
    align-items: center;
    justify-content: flex-end;
    position: absolute;
    right: 9%;
    pointer-events: none;
}

.nav-links li {
    pointer-events: auto;
}

.nav-link {
    font-family: 'Inter', sans-serif;
    font-size: 0.6rem;
    font-weight: 300;
    text-transform: uppercase;
    letter-spacing: 0.4em;
    position: relative;
    padding-bottom: 6px;
    opacity: 0.85;
    transition: opacity 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 0.5px;
    background: #fff;
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.nav-link:hover {
    opacity: 1;
}

.nav-link:hover::after {
    transform: scaleX(1);
    transform-origin: left;
}

.menu-btn {
    display: none;
    cursor: pointer;
}

.bar {
    width: 25px;
    height: 1px;
    background-color: white;
    margin: 6px 0;
    transition: 0.3s;
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

    .menu-btn {
        display: block;
        position: fixed;
        top: 1.2rem;
        right: 5%;
        z-index: 1002;
    }
}

/* =========================================
   Avant-Garde Hero Section (Yohji Style)
   ========================================= */
.hero {
    height: 100vh;
    width: 100vw;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-image-wrap {
    position: absolute;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    overflow: hidden;
    z-index: 1;
}

.yohji-hero-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(100%) contrast(1.2);
    opacity: 0.4; /* Darkened slightly so white text pops on the full image */
}

.hero-brand {
    position: absolute;
    z-index: 2;
    text-align: center;
    mix-blend-mode: difference;
}

.yohji-title {
    font-family: var(--font-heading);
    font-size: clamp(4rem, 15vw, 15rem);
    font-weight: 200;
    line-height: 0.85;
    letter-spacing: 0.05em;
    display: flex;
    flex-direction: column;
    text-transform: uppercase;
}

.yohji-subtitle {
    margin-top: 3rem;
    font-family: "Shippori Mincho", "Noto Serif JP", "Yu Mincho", "MS PMincho", serif;
    font-size: 1rem;
    line-height: 2;
    letter-spacing: 0.2em;
    font-weight: 300;
    color: #fff;
    opacity: 0.9;
}

@media (max-width: 768px) {
    .yohji-subtitle {
        font-size: 2.6vw;
        letter-spacing: 0.1em;
        white-space: nowrap;
        padding: 0 3%;
    }
    .yohji-subtitle[data-lang="en"] {
        font-size: 2vw;
        letter-spacing: 0.05em;
    }
}



/* =========================================
   Avant-Garde About Section
   ========================================= */
.yohji-about-layout {
    display: flex;
    align-items: flex-end;
    position: relative;
    min-height: 80vh;
    padding: 10rem 0;
}

.about-image {
    width: 70%;
    height: 90vh;
    position: relative;
    overflow: hidden;
}

.about-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(100%) contrast(1.1);
}

.about-text-content {
    position: absolute;
    right: 5%;
    bottom: 10%;
    width: 40%;
    background: var(--bg-color);
    padding: 3rem;
    border-left: 1px solid rgba(255, 255, 255, 0.1);
}

.yohji-section-title {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 200;
    letter-spacing: 0.3em;
    margin-bottom: 2rem;
}

.yohji-bio {
    font-family: "Shippori Mincho", "Noto Serif JP", "Yu Mincho", "MS PMincho", serif;
    font-size: 0.9rem;
    color: var(--text-color);
    line-height: 2;
    letter-spacing: 0.05em;
}

@media (max-width: 992px) {
    .yohji-about-layout {
        flex-direction: column;
        align-items: center;
        padding: 4rem 0;
    }

    .about-image {
        width: 100%;
        height: 60vh;
    }

    .about-text-content {
        position: relative;
        right: auto;
        bottom: auto;
        width: 90%;
        margin-top: -10vh;
        border-left: none;
        border-top: 1px solid rgba(255, 255, 255, 0.1);
    }
}

/* =========================================
   Collections Section (2x2 Full Screen Grid)
   ========================================= */
.collections {
    padding-bottom: 0;
}

.collection-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 50vh 50vh;
    width: 100vw;
    height: 100vh;
    overflow: hidden;
}

.collection-item {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
    cursor: pointer;
    background: var(--bg-color);
}

.collection-bg {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(100%) brightness(0.5);
    transition: transform var(--transition-slow), filter var(--transition-slow);
}

.collection-item:hover .collection-bg,
.collection-item.in-view .collection-bg {
    transform: scale(1.05);
    filter: grayscale(0%) brightness(0.8);
}

.collection-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    pointer-events: none;
    z-index: 2;
}

.collection-title {
    font-family: var(--font-heading);
    font-size: clamp(1.5rem, 3vw, 2.5rem);
    font-weight: 200;
    letter-spacing: 0.3em;
    color: var(--text-primary);
    text-transform: uppercase;
    margin-bottom: 0.5rem;
    transition: letter-spacing var(--transition-medium);
}

.collection-subtitle {
    font-size: 0.8rem;
    letter-spacing: 0.5em;
    color: var(--text-secondary);
    text-transform: uppercase;
    opacity: 0.7;
}

.collection-item:hover .collection-title,
.collection-item.in-view .collection-title {
    letter-spacing: 0.4em;
}

@media (max-width: 768px) {
    .collection-grid {
        grid-template-columns: 1fr;
        grid-template-rows: repeat(4, 90vh);
        height: 360vh;
    }
}

/* =========================================
   Continuous Horizontal Slider
   ========================================= */
.continuous-slider {
    width: 100vw;
    overflow: hidden;
    background: var(--bg-color);
    padding: 10rem 0;
    /* Restored generous padding */
    position: relative;
}

.slider-track {
    display: flex;
    width: max-content;
    animation: scroll-left 100s linear infinite;
    gap: 4rem;
    /* Gap between images */
}

.slider-track:hover {
    animation-play-state: paused;
    /* Pause on hover */
}

.slide-item {
    width: 40vw;
    /* Increased responsive width for larger artwork */
    min-width: 350px;
    max-width: 600px; /* Increased max width to show artwork larger on big screens */
    aspect-ratio: 800 / 1200;
    /* Force exact vertical / portrait ratio requested by user */
    overflow: hidden;
    position: relative;
}

.slide-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(100%) contrast(1.1);
    transition: filter var(--transition-slow), transform var(--transition-slow);
}

.slide-item:hover img {
    filter: grayscale(0%) contrast(1.0);
    transform: scale(1.03);
}

/* 
  Translate X by -50% to scroll through exactly half the track 
  (which is 1 full group of 5 out of the 2 groups we rendered),
  then seamlessly jump back to 0.
*/
@keyframes scroll-left {
    0% {
        transform: translateX(0);
    }

    100% {
        /* gap is 4rem. Total track length = 10 items + 9 gaps + outer padding?
           Since we duplicate 5 items exactly, transform -50% usually works if we subtract half a gap. 
           To be perfectly precise, we translate by minus half the container width. 
           But since flex gap exists: calc(-50% - (4rem / 2))
        */
        transform: translateX(calc(-50% - 2rem));
    }
}

/* =========================================
   Product Continuous Slider (Square)
   ========================================= */
.product-slider {
    padding-top: 5rem;
    padding-bottom: 10rem;
}

.slider-small-title {
    font-family: var(--font-body);
    font-size: 0.8rem;
    font-weight: 300;
    letter-spacing: 0.5em; /* Wide spacing for mode aesthetic */
    text-transform: uppercase;
    color: var(--text-secondary); /* Grey text */
    padding: 0 5%; /* Align with other content sections */
    margin-bottom: 3rem;
}

.product-track {
    display: flex;
    width: max-content;
    animation: scroll-left-product 40s linear infinite;
    gap: 4rem;
}

.product-track:hover {
    animation-play-state: paused;
}

.slide-item-product {
    width: 20vw;
    min-width: 200px;
    max-width: 350px;
    aspect-ratio: 1 / 1;
    /* Square aspect ratio */
    overflow: hidden;
    position: relative;
}

.slide-item-product img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(100%) contrast(1.1);
    transition: filter var(--transition-slow), transform var(--transition-slow);
}

.slide-item-product:hover img {
    filter: grayscale(0%) contrast(1.0);
    transform: scale(1.03);
}

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

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

/* =========================================
   Footer
   ========================================= */
.footer {
    padding: 8rem 0 2rem;
    text-align: center;
    border-top: 1px solid #111;
}

.footer-title {
    font-family: var(--font-heading);
    font-size: clamp(3rem, 6vw, 5rem);
    font-weight: 300;
    margin-bottom: 1rem;
}

.footer-desc {
    color: var(--text-secondary);
    margin-bottom: 3rem;
}

.contact-email {
    display: inline-block;
    font-family: var(--font-heading);
    font-size: clamp(1rem, 2.5vw, 1.6rem);
    font-weight: 300;
    letter-spacing: 0.35em;
    text-transform: uppercase;
    margin-bottom: 4rem;
    padding: 1.2rem 3.5rem;
    border: 1px solid rgba(255, 255, 255, 0.25);
    position: relative;
    transition: all 0.6s var(--ease-out-expo);
    overflow: hidden;
}

.contact-email::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.04);
    transform: translateY(101%);
    transition: transform 0.6s var(--ease-out-expo);
}

.contact-email:hover {
    border-color: rgba(255, 255, 255, 0.5);
    letter-spacing: 0.45em;
}

.contact-email:hover::before {
    transform: translateY(0);
}

.contact-email::after {
    display: none;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 6rem;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    transition: color var(--transition-fast), transform var(--transition-fast);
}

.social-link:hover {
    color: white;
    transform: scale(1.1);
}

.social-link svg {
    width: 22px;
    height: 22px;
}

.footer-bottom {
    font-size: 0.75rem;
    color: var(--text-secondary);
    padding-top: 2rem;
    border-top: 1px solid #111;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.footer-logo {
    width: 30px;
    height: 30px;
    margin-bottom: 1rem;
}

/* =========================================
   Animations & Reveal Classes
   ========================================= */
.reveal-text span {
    display: block;
    transform: translateY(100%);
    opacity: 0;
    transition: transform 1s cubic-bezier(0.16, 1, 0.3, 1), opacity 1s ease;
}

.reveal-text.active span {
    transform: translateY(0);
    opacity: 1;
}

.reveal-element {
    opacity: 0;
    transform: translateY(60px); /* Increased from 30px for more float */
    transition: opacity 1.5s ease, transform 1.5s cubic-bezier(0.16, 1, 0.3, 1); /* Slower, smoother float */
}

.reveal-element.active {
    opacity: 1;
    transform: translateY(0);
}

.reveal-item {
    opacity: 0;
    transform: translateY(100px); /* Noticeable float from below */
    transition: opacity 1.8s ease, transform 1.8s cubic-bezier(0.19, 1, 0.22, 1); /* Elegant slow float up */
}

.reveal-item.active {
    opacity: 1;
    transform: translateY(0);
}

.delay-1 {
    transition-delay: 0.2s;
}

.delay-1 span {
    transition-delay: 0.2s;
}

.delay-2 {
    transition-delay: 0.4s;
}

.delay-2 span {
    transition-delay: 0.4s;
}

/* =========================================
   Collection Subpages
   ========================================= */
.collection-header {
    padding-top: 15vh; /* Pushes the title safely below the fixed logo and navbar */
    text-align: center;
    padding-left: 5%;
    padding-right: 5%;
    margin-bottom: 4rem;
}

.back-link {
    display: inline-block;
    margin-top: 2rem;
    font-size: 0.8rem;
    letter-spacing: 0.2em;
    color: var(--text-secondary);
    text-decoration: none;
    transition: color var(--transition-fast);
}

.back-link:hover {
    color: white;
}

.collection-gallery {
    padding: 0 4% 10rem;
    max-width: 100%;
    margin: 0 auto;
}

.collection-gallery-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    grid-gap: 4vw;
    align-items: start;
}

.gallery-wrapper {
    width: 100%;
    margin-bottom: 4vw;
    display: block;
}

.gallery-img {
    width: 100%;
    height: auto;
    display: block;
    transition: opacity var(--transition-medium);
}

.gallery-placeholder {
    width: 100%;
    aspect-ratio: 1 / 1;
    background-color: rgba(255, 255, 255, 0.9);
    display: block;
}

.gallery-caption {
    margin-top: 1.5rem;
    font-size: 0.85rem;
    color: var(--text-color);
    letter-spacing: 0.15em;
    font-family: "Cormorant Garamond", "Shippori Mincho", "Hiragino Mincho ProN", "Yu Mincho", serif;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.4rem;
}

.gallery-title {
    color: var(--text-color);
    font-weight: 600;
}

.gallery-size {
    font-size: 0.65rem;
    color: var(--text-color);
    opacity: 0.7;
    font-family: "Inter", "Helvetica Neue", Arial, sans-serif;
    font-variant-numeric: lining-nums tabular-nums;
    letter-spacing: 0.05em;
}

/* Mixed 3-column and 2-column scattered arrangement using a 6-column grid */
/* Pattern repeats every 5 items: 3 in the first row, 2 in the second row */

/* 1, 2, 3 -> span 2 columns (3 items per row) */
.gallery-wrapper:nth-child(5n+1),
.gallery-wrapper:nth-child(5n+2),
.gallery-wrapper:nth-child(5n+3) {
    grid-column: span 2;
}

/* 4, 5 -> span 3 columns (2 items per row) */
.gallery-wrapper:nth-child(5n+4),
.gallery-wrapper:nth-child(5n) {
    grid-column: span 3;
}

/* Stagger to create an irregular, artistic scattered look */
.gallery-wrapper:nth-child(5n+1) { margin-top: 0vw; }
.gallery-wrapper:nth-child(5n+2) { margin-top: 8vw; }
.gallery-wrapper:nth-child(5n+3) { margin-top: 2vw; }
.gallery-wrapper:nth-child(5n+4) { margin-top: -6vw; }
.gallery-wrapper:nth-child(5n)   { margin-top: 4vw; }

@media (max-width: 1024px) {
    .collection-gallery-grid {
        grid-template-columns: repeat(4, 1fr);
    }
    
    /* Revert to 2 items per row everywhere */
    .gallery-wrapper {
        grid-column: span 2 !important;
        margin-top: 0 !important;
    }
    .gallery-wrapper:nth-child(even) {
        margin-top: 6vw !important;
    }
}

@media (max-width: 768px) {
    .collection-gallery-grid {
        grid-template-columns: 1fr;
        grid-gap: 0;
    }
    .gallery-wrapper {
        grid-column: span 1 !important;
        margin-bottom: 15vw !important;
        margin-top: 0 !important;
    }
}
/* Profile Button */
.profile-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-family: 'Inter', sans-serif;
    font-size: 0.8rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--text-color);
    text-decoration: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
    padding-bottom: 0.5rem;
    transition: gap 0.4s ease, border-color 0.4s ease;
}

.profile-btn .btn-arrow {
    font-weight: 300;
}

.profile-btn:hover {
    border-bottom-color: var(--text-color);
    gap: 1.5rem;
}

/* Fixed Social Links */
.fixed-socials {
    position: fixed;
    bottom: 2.5rem;
    right: 2.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.2rem;
    z-index: 1000;
}

.fixed-socials .social-link {
    color: var(--text-color);
    opacity: 0.5;
    transition: all 0.3s ease;
    display: flex;
    padding: 0.2rem;
}

.fixed-socials .social-link:hover {
    opacity: 1;
    transform: scale(1.15);
}

@media (max-width: 768px) {
    .fixed-socials {
        bottom: 1.5rem;
        right: 1.5rem;
        gap: 1rem;
    }
    .fixed-socials svg {
        width: 20px;
        height: 20px;
    }
}


/* Mobile Menu Active State */
.nav-links.active {
    display: flex !important;
    flex-direction: column;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: #000000 !important; /* Solid black absolute */
    
    justify-content: center;
    align-items: center;
    gap: 3rem;
    z-index: 999;
    isolation: isolate;
}

.nav-links.active .nav-link {
    font-size: 1.5rem;
    opacity: 1;
}

.menu-btn {
    z-index: 1002;
    position: fixed;
    top: 1.2rem;
    right: 5%;
}

.menu-btn.active .bar:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.menu-btn.active .bar:nth-child(2) {
    transform: translateY(-7px) rotate(-45deg);
}

/* Pause Marquee Class */
.slide-track.paused {
    animation-play-state: paused !important;
}


/* Fix: Disable mix-blend-mode on the navbar when the mobile menu is open, 
   because 'difference' mode makes a black background physically invisible. */
.navbar.menu-open {
    mix-blend-mode: normal !important;
}

/* Force single-line display for About name and footer text on mobile */
@media (max-width: 768px) {
    .yohji-bio > p > span:first-child {
        white-space: nowrap !important;
        font-size: clamp(0.7rem, 4.5vw, 1.2rem) !important;
    }
    .footer-desc {
        white-space: nowrap !important;
        font-size: clamp(0.5rem, 2.7vw, 1rem) !important;
        letter-spacing: 0.05em !important;
    }
}

/* Force single-line PORTFOLIO / COLLECTION title on mobile */
@media (max-width: 768px) {
    #works .yohji-section-title {
        white-space: nowrap !important;
        font-size: clamp(0.5rem, 3.5vw, 2rem) !important;
        letter-spacing: 0.1em !important;
    }
}


/* Center section titles and About Content on mobile */
@media (max-width: 768px) {
    .yohji-section-title, .slider-small-title {
        text-align: center !important;
        padding-left: 0 !important;
        padding-right: 0 !important;
    }
    .yohji-bio p {
        text-align: center !important;
    }
}


/* Collection links in mobile menu */
.nav-collection-divider {
    display: none;
}
.nav-collection-link {
    display: none;
}

/* Show collection links only when mobile menu is active */
.nav-links.active .nav-collection-divider {
    display: block;
    width: 40px;
    height: 1px;
    background: rgba(255, 255, 255, 0.3);
    margin: 0.5rem 0;
    list-style: none;
}
.nav-links.active .nav-collection-link {
    display: inline-block !important;
    font-size: 0.85rem !important;
    opacity: 0.6;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    transition: opacity 0.3s ease;
}
.nav-links.active .nav-collection-link:hover {
    opacity: 1;
}
.nav-links.active li:has(.nav-collection-link) {
    list-style: none;
}

/* =========================================
   Language Toggle
   ========================================= */
.lang-toggle {
    font-family: 'Inter', sans-serif;
    font-size: 0.55rem;
    font-weight: 300;
    letter-spacing: 0.25em;
    color: var(--text-secondary);
    cursor: pointer;
    background: none;
    border: none;
    padding: 0.3rem 0;
    transition: all 0.4s ease;
    position: absolute;
    right: 5%;
    z-index: 1001;
    opacity: 0.75;
}

.lang-toggle:hover {
    color: var(--text-primary);
    border-color: rgba(255, 255, 255, 0.4);
}

.lang-toggle .lang-active {
    color: #fff;
    font-weight: 400;
}

/* Language visibility control */
[data-lang="en"] {
    display: none !important;
}

body.lang-en [data-lang="ja"] {
    display: none !important;
}

body.lang-en [data-lang="en"] {
    display: revert !important;
}

/* Fix for inline spans */
body.lang-en span[data-lang="en"],
body.lang-en p[data-lang="en"] {
    display: inline !important;
}

body.lang-en div[data-lang="en"] {
    display: block !important;
}

body.lang-en button[data-lang="en"] {
    display: inline-block !important;
}

body.lang-en label[data-lang="en"] {
    display: block !important;
}

body.lang-en input[data-lang="en"] {
    display: block !important;
}

body.lang-en h2[data-lang="en"] {
    display: block !important;
}

@media (max-width: 768px) {
    .lang-toggle {
        position: fixed;
        top: 1.5rem;
        right: calc(5% + 40px);
        z-index: 1001;
    }
}
