/* 
   Kiara Lifestyle - Premium 3D Gallery & Scrollable Editorial Theme
   High-contrast, luxury Cormorant typography, glowing backdrops, 3D interactive gallery.
*/

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,500;0,600;0,700;1,400&family=Montserrat:wght@300;400;500;600;700&display=swap');

:root {
    --bg-color: #030303;
    --card-bg: #090909;
    --card-hover-bg: #121212;
    --text-color: #ffffff;
    --text-muted: #8e8e93;
    --accent-color: #cda851; /* Antique Gold */
    --accent-hover: #e5c168;
    --border-color: rgba(255, 255, 255, 0.05);
    --glass-bg: rgba(3, 3, 3, 0.85);
    --glass-border: rgba(255, 255, 255, 0.03);
    
    --font-serif: 'Cormorant Garamond', serif;
    --font-sans: 'Montserrat', sans-serif;
    
    --transition-heavy: all 0.8s cubic-bezier(0.25, 1, 0.5, 1);
    --transition-smooth: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
    --transition-medium: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    --transition-fast: all 0.25s ease;
}

body.light-theme {
    --bg-color: #faf8f5; /* Premium Linen White */
    --card-bg: #ffffff;
    --card-hover-bg: #f5f4f0;
    --text-color: #121212;
    --text-muted: #7e7e83;
    --accent-color: #a88448;
    --accent-hover: #8e6d37;
    --border-color: rgba(0, 0, 0, 0.05);
    --glass-bg: rgba(250, 248, 245, 0.85);
    --glass-border: rgba(0, 0, 0, 0.03);
}

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

html {
    scroll-behavior: initial; /* Managed by Lenis smooth scroll */
    -webkit-font-smoothing: antialiased;
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: var(--font-sans);
    line-height: 1.6;
    overflow-x: hidden;
    transition: background-color 0.5s ease, color 0.5s ease;
}

/* Subtle Noise Texture Overlay */
.noise-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 99998;
    pointer-events: none;
    opacity: 0.015;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
}

/* Hide OS Cursor if Custom Cursor Active */
@media (hover: hover) and (pointer: fine) {
    body.custom-cursor-active, 
    body.custom-cursor-active a, 
    body.custom-cursor-active button,
    body.custom-cursor-active .model-card,
    body.custom-cursor-active .circ-btn,
    body.custom-cursor-active .cat-pill,
    body.custom-cursor-active .gallery-nav-arrow {
        cursor: none !important;
    }
}

a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition-fast);
}

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

button {
    background: none;
    border: none;
    cursor: pointer;
    font-family: inherit;
    color: inherit;
}

.no-scrollbar::-webkit-scrollbar {
    display: none;
}
.no-scrollbar {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

/* --- Entrance Splash Pre-loader --- */
.preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #030303;
    z-index: 99999;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: opacity 0.8s cubic-bezier(0.25, 1, 0.5, 1), visibility 0.8s;
}

.preloader.fade-out {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.preloader-logo {
    font-family: var(--font-serif);
    font-size: 38px;
    font-weight: 300;
    color: #ffffff;
    letter-spacing: 10px;
    text-transform: uppercase;
    opacity: 0;
    transform: scale(0.96);
    animation: preloaderReveal 1.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.preloader-logo span {
    color: var(--accent-color);
}

.preloader-bar {
    width: 150px;
    height: 1px;
    background-color: rgba(255, 255, 255, 0.08);
    margin: 25px auto 0;
    position: relative;
    overflow: hidden;
}

.preloader-progress {
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background-color: var(--accent-color);
    animation: preloaderProgress 2s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes preloaderReveal {
    0% { opacity: 0; transform: scale(0.93); letter-spacing: 4px; }
    100% { opacity: 1; transform: scale(1); letter-spacing: 10px; }
}

@keyframes preloaderProgress {
    0% { left: -100%; }
    50% { left: -35%; }
    100% { left: 0; }
}

/* --- Custom Inertial Cursor Follower --- */
.custom-cursor-dot {
    width: 5px;
    height: 5px;
    background-color: var(--accent-color);
    border-radius: 50%;
    position: fixed;
    top: 0;
    left: 0;
    pointer-events: none;
    z-index: 10000;
    transform: translate(-50%, -50%);
    display: none;
}

.custom-cursor-ring {
    width: 40px;
    height: 40px;
    border: 1px solid var(--accent-color);
    border-radius: 50%;
    position: fixed;
    top: 0;
    left: 0;
    pointer-events: none;
    z-index: 9999;
    transform: translate(-50%, -50%);
    display: none;
    transition: width 0.4s cubic-bezier(0.25, 1, 0.5, 1), 
                height 0.4s cubic-bezier(0.25, 1, 0.5, 1), 
                background-color 0.4s ease, 
                border-color 0.4s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cursor-text {
    font-size: 8px;
    font-weight: 700;
    font-family: var(--font-sans);
    letter-spacing: 2.5px;
    color: var(--accent-color);
    text-transform: uppercase;
    opacity: 0;
    transition: opacity 0.3s ease;
}

@media (hover: hover) and (pointer: fine) {
    .custom-cursor-dot, .custom-cursor-ring {
        display: block;
    }
}

.custom-cursor-ring.hovered {
    width: 80px;
    height: 80px;
    background-color: rgba(205, 168, 81, 0.06);
    border-color: var(--accent-color);
}

.custom-cursor-ring.hovered .cursor-text {
    opacity: 1;
}

.custom-cursor-ring.difference-mode {
    width: 65px;
    height: 65px;
    background-color: #ffffff;
    border-color: transparent;
    mix-blend-mode: difference;
}

/* --- Navigation Header --- */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    width: 90%;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 32px 0;
    mix-blend-mode: difference; /* Blends navbar content across scrolling backdrops */
}

.nav-logo {
    font-family: var(--font-serif);
    font-size: 24px;
    font-weight: 400;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #ffffff;
}

.nav-logo span {
    color: var(--accent-color);
}

.nav-menu {
    display: flex;
    gap: 50px;
    list-style: none;
    align-items: center;
}

.nav-link {
    font-size: 11px;
    font-family: var(--font-sans);
    text-transform: uppercase;
    letter-spacing: 3px;
    color: #ffffff;
    opacity: 0.75;
    transition: opacity 0.3s;
}

.nav-link:hover, .nav-link.active {
    opacity: 1;
    font-weight: 600;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 20px;
}

.circ-btn {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.25);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    transition: var(--transition-fast);
}

.circ-btn:hover {
    border-color: #ffffff;
    transform: scale(1.06);
}

.circ-btn svg {
    width: 16px;
    height: 16px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.5;
}

.btn-contact {
    font-family: var(--font-sans);
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: #ffffff;
    padding: 8px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.25);
    transition: var(--transition-fast);
}

.btn-contact:hover {
    border-bottom-color: #ffffff;
}

.mobile-menu-toggle {
    display: none;
}

.theme-toggle-btn .sun-icon { display: none; }
body.light-theme .theme-toggle-btn .moon-icon { display: none; }
body.light-theme .theme-toggle-btn .sun-icon { display: block; }

/* --- Hero Showcase (Minimalist Luxury) --- */
.hero-showcase {
    min-height: 125vh;
    padding: 200px 80px 80px;
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
    background-color: var(--bg-color); /* Always stays dark! */
}

.hero-text-grid {
    display: grid;
    grid-template-columns: 1fr 1.4fr;
    gap: 80px;
    align-items: flex-start;
    margin-bottom: 50px;
}

.hero-brand-col {
    display: flex;
    flex-direction: column;
    gap: 24px;
    padding-top: 10px;
}

.hero-brand-name {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 6px;
    text-transform: uppercase;
    color: var(--accent-color);
    display: flex;
    align-items: center;
    gap: 8px;
}

.hero-brand-name::after {
    content: '';
    width: 35px;
    height: 1px;
    background-color: var(--accent-color);
}

.hero-brand-desc {
    font-size: 14px;
    color: var(--text-muted);
    font-weight: 300;
    line-height: 1.9;
    max-width: 420px;
}

.hero-headline-col {
    position: relative;
}

.hero-main-title {
    font-family: var(--font-serif);
    font-size: 80px;
    font-weight: 300;
    line-height: 1.05;
    letter-spacing: -2px;
    text-transform: uppercase;
}

.hero-main-title em {
    font-style: italic;
    font-weight: 300;
    color: var(--accent-color);
}

/* Masked reveals */
.mask-wrapper {
    display: inline-block;
    overflow: hidden;
    vertical-align: bottom;
    line-height: 1.1;
}

.mask-inner {
    display: inline-block;
    transform: translateY(115%) rotate(3deg);
    transform-origin: left bottom;
    transition: transform 1.5s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: transform;
}

.reveal-mask.revealed .mask-inner {
    transform: translateY(0) rotate(0);
}

/* Floating Background Glows */
.hero-shape {
    position: absolute;
    width: 700px;
    height: 700px;
    background: radial-gradient(circle, rgba(205, 168, 81, 0.05) 0%, rgba(0,0,0,0) 70%);
    border-radius: 50%;
    z-index: -2;
    filter: blur(75px);
    pointer-events: none;
    transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

body.light-theme .hero-shape {
    background: radial-gradient(circle, rgba(168, 132, 72, 0.05) 0%, rgba(0,0,0,0) 70%);
}

.hero-shape-1 {
    top: -120px;
    right: -120px;
}

.hero-shape-2 {
    bottom: -180px;
    left: -180px;
}

/* --- Local Showroom Section (Stretches full width, turns white independently) --- */
.gallery-showroom-section {
    width: 100vw;
    margin-left: calc(-50vw + 50%);
    padding: 60px 80px 140px;
    position: relative;
    background-color: transparent;
    transition: background-color 0.8s cubic-bezier(0.25, 1, 0.5, 1);
}

.gallery-showroom-section.shop-active {
    background-color: #ffffff !important;
}

.gallery-showroom-section.shop-active .catalog-header {
    border-color: rgba(0, 0, 0, 0.06);
}

.gallery-showroom-section.shop-active .cat-pill {
    border-color: rgba(0, 0, 0, 0.1);
    color: #000000;
}

.gallery-showroom-section.shop-active .cat-pill:hover,
.gallery-showroom-section.shop-active .cat-pill.active {
    background-color: #000000;
    color: #ffffff;
    border-color: #000000;
}

/* --- Catalog Header with Category Navigation --- */
.catalog-header {
    max-width: 1240px;
    margin: 0 auto 20px;
    display: flex;
    justify-content: flex-start;
    align-items: center;
    padding-bottom: 25px;
    border-bottom: 1px solid var(--border-color);
    transition: opacity 0.6s ease, transform 0.6s ease, border-color 0.5s ease;
    opacity: 0; /* Hidden by default! */
    pointer-events: none;
    transform: translateY(-15px);
}

.gallery-showroom-section.shop-active .catalog-header {
    opacity: 1; /* Revealed on active showroom explore! */
    pointer-events: auto;
    transform: translateY(0);
}

.slider-categories {
    display: flex;
    gap: 15px;
    overflow-x: auto;
    padding-bottom: 5px;
}

.cat-pill {
    padding: 12px 28px;
    border: 1px solid var(--border-color);
    border-radius: 40px;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    transition: var(--transition-medium);
    white-space: nowrap;
}

.cat-pill:hover, .cat-pill.active {
    background-color: var(--text-color);
    color: var(--bg-color);
    border-color: var(--text-color);
}

/* --- 3D Gallery Viewport Showcase --- */
.gallery-container {
    width: 100%;
    max-width: 1240px;
    margin: 0 auto;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 520px;
    position: relative;
}

.gallery {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%; /* FIX: Match parent height instead of fixed 500px, avoiding vertical overflow! */
    width: 100%;
    perspective: 1500px;
    transform-style: preserve-3d;
}

/* Premium Floating Nav Arrows */
.gallery-nav-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 30;
    transition: var(--transition-fast);
}

.gallery-nav-arrow svg {
    width: 22px;
    height: 22px;
    stroke: currentColor;
    fill: none;
    stroke-width: 2;
}

.gallery-nav-arrow:hover {
    background: var(--accent-color);
    border-color: var(--accent-color);
    color: #ffffff;
    transform: translateY(-50%) scale(1.08);
}

.gallery-nav-arrow.prev {
    left: -20px;
}

.gallery-nav-arrow.next {
    right: -20px;
}

/* Active White Showroom Mode styling for Arrows */
.gallery-showroom-section.shop-active .gallery-nav-arrow {
    background: rgba(0, 0, 0, 0.03);
    border-color: rgba(0, 0, 0, 0.08);
    color: #000000;
}

.gallery-showroom-section.shop-active .gallery-nav-arrow:hover {
    background: #000000;
    color: #ffffff;
    border-color: #000000;
}

/* 3D Model Cards */
.model-card {
    position: absolute;
    width: 240px;
    height: 380px;
    background-size: cover;
    background-position: center top;
    border-radius: 120px 120px 20px 20px; /* Tall editorial arches */
    box-shadow: 0 15px 45px rgba(0, 0, 0, 0.7);
    transition: var(--transition-heavy);
    opacity: 0;
    backface-visibility: hidden;
    will-change: transform, opacity;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: flex-end;
    padding-bottom: 25px;
    border: 1px solid var(--border-color);
    overflow: hidden; /* Clips glare overlay sweep within card boundary! */
}

/* Hidden cards (rotated off-screen in infinite scrolling) */
.model-card.hidden-card {
    opacity: 0;
    pointer-events: none;
    transform: translateZ(-500px) scale(0.6);
}

.details-btn {
    background: rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.4);
    color: #ffffff;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 20px;
    font-weight: 300;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 1;
    transform: translateY(0);
    transition: var(--transition-fast);
}

.details-btn:hover {
    background: #ffffff;
    color: #000000;
    transform: scale(1.1);
}

/* 3D slots positioning */
.pos-1 {
    transform: translateX(-480px) translateZ(-250px) rotateY(40deg) scale(0.85);
    z-index: 1;
    opacity: 1;
    filter: brightness(0.65);
}
.pos-2 {
    transform: translateX(-260px) translateZ(-100px) rotateY(25deg) scale(0.9);
    z-index: 5;
    opacity: 1;
    filter: brightness(0.85);
}
.pos-3 {
    transform: translateZ(0) translateY(0) scale(1.1);
    z-index: 10;
    opacity: 1;
    filter: brightness(1.05);
    box-shadow: 0 25px 55px rgba(0, 0, 0, 0.6);
    border-color: rgba(205, 168, 81, 0.3);
}
.pos-4 {
    transform: translateX(260px) translateZ(-100px) rotateY(-25deg) scale(0.9);
    z-index: 5;
    opacity: 1;
    filter: brightness(0.85);
}
.pos-5 {
    transform: translateX(480px) translateZ(-250px) rotateY(-40deg) scale(0.85);
    z-index: 1;
    opacity: 1;
    filter: brightness(0.65);
}

/* Intro states */
.intro-hidden.m3 {
    transform: translateY(120px) translateZ(0) scale(0.8);
    opacity: 0;
}
.intro-hidden.m2, .intro-hidden.m4 {
    transform: translateY(120px) translateZ(-100px) scale(0.8);
    opacity: 0;
}
.intro-hidden.m1, .intro-hidden.m5 {
    transform: translateY(120px) translateZ(-300px) scale(0.8);
    opacity: 0;
}

/* Card details slide-up reflections */
.model-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: -150%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, 
        rgba(255,255,255,0) 0%, 
        rgba(255, 255, 255, 0.12) 30%, 
        rgba(205, 168, 81, 0.22) 50%, 
        rgba(255, 255, 255, 0.12) 70%, 
        rgba(255,255,255,0) 100%
    );
    transform: skewX(-20deg);
    pointer-events: none;
}

.model-card:hover::after {
    left: 150%;
    transition: left 1.1s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Explore Controls button */
.nav-controls {
    display: flex;
    justify-content: center;
    margin-top: 40px;
    transition: opacity 0.5s ease;
    position: relative; /* FIX: Renders in flow above container boundaries */
    z-index: 50; /* FIX: Guarantees button is 100% clickable on mobile touch screens! */
}

.gallery-showroom-section.shop-active .nav-controls {
    opacity: 0;
    pointer-events: none;
}

.arrow-btn {
    background: transparent;
    border: 1px solid var(--border-color);
    color: var(--text-color);
    padding: 14px 36px;
    border-radius: 40px;
    cursor: pointer;
    font-size: 11px;
    letter-spacing: 2px;
    text-transform: uppercase;
    font-weight: 600;
    transition: var(--transition-fast);
}

.arrow-btn:hover {
    background: var(--text-color);
    color: var(--bg-color);
    border-color: var(--text-color);
}

/* --- Infinite Paged Thumbnail Strip (Slides up locally) --- */
.product-strip {
    position: absolute;
    bottom: 25px;
    left: 50%;
    transform: translateX(-50%) translateY(20px); /* Centering absolute strip */
    width: 90%;
    max-width: 1240px;
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center; /* Center-aligns thumbnails dynamically! */
    gap: 40px;
    padding: 0 40px;
    overflow-x: auto;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.8s cubic-bezier(0.25, 1, 0.5, 1), transform 0.8s cubic-bezier(0.25, 1, 0.5, 1);
    z-index: 20;
    scroll-behavior: smooth;
}

.gallery-showroom-section.shop-active .product-strip {
    opacity: 1;
    pointer-events: auto;
    transform: translateX(-50%) translateY(0);
}


.product-item {
    display: flex;
    align-items: center;
    gap: 15px;
    cursor: pointer;
    opacity: 0.4;
    transition: var(--transition-fast);
    padding-bottom: 8px;
    border-bottom: 2px solid transparent;
    flex-shrink: 0;
    scroll-snap-align: center;
}

.product-item.active, .product-item:hover {
    opacity: 1;
    border-bottom-color: #000000;
}

.p-thumb {
    width: 50px;
    height: 65px;
    background-size: cover;
    background-position: center top;
    border-radius: 6px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
}

.p-info {
    font-family: var(--font-sans);
}

.p-info h4 {
    margin: 0;
    font-size: 11px;
    color: #121212;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.p-info p {
    margin: 2px 0 0;
    font-weight: 700;
    color: var(--accent-color);
    font-size: 11px;
}

/* --- Scroll reveals --- */
.reveal-on-scroll {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 1.3s cubic-bezier(0.16, 1, 0.3, 1), 
                transform 1.3s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: transform, opacity;
}

.reveal-scale {
    opacity: 0;
    transform: scale(0.97);
    transition: opacity 1.3s cubic-bezier(0.16, 1, 0.3, 1), 
                transform 1.3s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: transform, opacity;
}

.reveal-on-scroll.revealed, .reveal-scale.revealed {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.delay-100 { transition-delay: 0.1s; }
.delay-200 { transition-delay: 0.2s; }
.delay-300 { transition-delay: 0.3s; }

/* --- Details Card Pop-up Modal --- */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1100;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.5s ease;
}

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

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.product-card-popup {
    background-color: #faf8f5;
    background-image: url('../luxury-beige-gradient-card-background.jpg');
    background-size: cover;
    background-position: center;
    width: 380px;
    height: 600px;
    border-radius: 30px;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5);
    border: 1px solid #c9c9c9;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    transform: translateY(50px) scale(0.9);
    transition: transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
    overflow: hidden;
    padding: 0 30px;
    z-index: 10;
}

.modal.active .product-card-popup {
    transform: translateY(0) scale(1);
}

.modal-close-btn {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 26px;
    cursor: pointer;
    z-index: 120;
    color: #555555;
    background: rgba(255, 255, 255, 0.4);
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    transition: var(--transition-fast);
}

.modal-close-btn:hover {
    background: #ffffff;
    color: #000000;
}

.card-img {
    width: 320px;
    height: 330px;
    background-size: cover;
    background-position: center top;
    border-radius: 12px;
    z-index: 1;
    margin-top: 25px;
    filter: drop-shadow(0 15px 25px rgba(0, 0, 0, 0.12));
    transition: transform 0.4s;
    position: relative;
}

.product-card-popup:hover .card-img {
    transform: scale(1.02);
}

.zoom-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 35px;
    height: 35px;
    background: rgba(255, 255, 255, 0.85);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    font-size: 18px;
    color: #222222;
    transition: transform 0.2s;
    z-index: 10;
}

.zoom-btn:hover {
    transform: scale(1.1);
    background: #ffffff;
}

.card-info {
    z-index: 2;
    text-align: center;
    width: 100%;
    margin-top: 15px;
    color: #222222;
    font-family: var(--font-sans);
}

.card-title {
    font-family: var(--font-serif);
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 4px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #121212;
}

.card-sub-category {
    font-size: 11px;
    text-transform: uppercase;
    color: #666666;
    letter-spacing: 2px;
    font-weight: 500;
    margin-bottom: 12px;
    display: block;
}

.label-opt {
    font-size: 10px;
    color: #444444;
    margin-bottom: 6px;
    font-weight: 700;
    letter-spacing: 1px;
}

.size-options {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 15px;
}

.size-box {
    width: 35px;
    height: 35px;
    background: rgba(255, 255, 255, 0.6);
    border: 1px solid #aaaaaa;
    border-radius: 8px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: 700;
    font-size: 12px;
    color: #333333;
    cursor: pointer;
    transition: var(--transition-fast);
}

.size-box:hover, .size-box.selected {
    background: #222222;
    color: #ffffff;
    border-color: #222222;
    transform: translateY(-2px);
}

.color-options {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 20px;
}

.color-circle {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    cursor: pointer;
    border: 2px solid #ffffff;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
    transition: transform 0.2s;
}

.color-circle:hover, .color-circle.selected {
    transform: scale(1.2);
}

.color-circle.selected {
    box-shadow: 0 0 0 2px #222222;
}

.add-btn {
    background: #222222;
    color: #ffffff;
    border: none;
    font-weight: 700;
    font-size: 12px;
    cursor: pointer;
    letter-spacing: 2px;
    padding: 12px 36px;
    border-radius: 30px;
    transition: var(--transition-fast);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
}

.add-btn:hover {
    background: #000000;
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.25);
}

.direct-contact-hint {
    margin-top: 12px;
    font-size: 10px;
    color: #777777;
    font-weight: 500;
}

.direct-contact-hint a {
    color: #222222;
    text-decoration: underline;
}

/* --- Brand Story Section Layout --- */
.brand-story {
    background-color: var(--card-bg);
    border-top: 1px solid var(--border-color);
    padding: 120px 80px;
}

.brand-story-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.brand-story-tag {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: var(--accent-color);
    margin-bottom: 15px;
    display: block;
}

.brand-story-title {
    font-family: var(--font-serif);
    font-size: 42px;
    font-weight: 400;
    margin-bottom: 24px;
    text-transform: uppercase;
    color: #ffffff;
}

.brand-story-desc {
    color: var(--text-muted);
    font-size: 15px;
    line-height: 1.8;
    margin-bottom: 30px;
}

.brand-story-image {
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.4);
    position: relative;
    padding-top: 80%;
    background: linear-gradient(135deg, #0a0a0a 0%, #161824 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

/* --- Zoom Lightbox --- */
.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1200;
    background-color: rgba(0,0,0,0.96);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

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

.lightbox-overlay {
    position: absolute;
    width: 100%;
    height: 100%;
    cursor: zoom-out;
}

.lightbox-img-content {
    width: 85%;
    height: 85%;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    position: relative;
    z-index: 10;
}

.lightbox-close {
    position: absolute;
    top: 30px;
    right: 30px;
    font-size: 28px;
    color: #fff;
    cursor: pointer;
    transition: var(--transition-fast);
}

.lightbox-close:hover {
    color: var(--accent-color);
    transform: scale(1.15);
}

/* --- Footer --- */
.footer {
    background-color: #020202;
    border-top: 1px solid var(--border-color);
    color: var(--text-muted);
    padding: 100px 80px 45px;
    position: relative;
}

body.light-theme .footer {
    background-color: #f6f5f1;
}

.footer-container {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.6fr 1fr 1fr;
    gap: 80px;
    margin-bottom: 60px;
}

.footer-brand .footer-logo {
    font-family: var(--font-serif);
    font-size: 22px;
    font-weight: 400;
    text-transform: uppercase;
    color: var(--text-color);
    margin-bottom: 20px;
    letter-spacing: 2px;
}
.footer-brand .footer-logo span {
    color: var(--accent-color);
}

.footer-brand p {
    font-size: 14px;
    max-width: 380px;
    margin-bottom: 25px;
    line-height: 1.8;
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-icon {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    transition: var(--transition-medium);
}

.social-icon svg {
    width: 18px;
    height: 18px;
    fill: currentColor;
}

.social-icon:hover {
    color: var(--text-color);
    border-color: var(--text-color);
    transform: translateY(-3px) scale(1.05);
}

.footer-title {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: var(--text-color);
    margin-bottom: 25px;
}

.footer-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 15px;
    font-size: 13px;
}

.footer-links a:hover {
    color: var(--text-color);
    padding-left: 4px;
}

.footer-contact-info {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 15px;
    font-size: 13px;
}

.footer-contact-info li span {
    color: var(--text-color);
    font-weight: 600;
}

.footer-bottom {
    max-width: 1400px;
    margin: 0 auto;
    border-top: 1px solid var(--border-color);
    padding-top: 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
}

/* Floating admin link */
.floating-admin-link {
    position: fixed;
    bottom: 20px;
    right: 30px;
    z-index: 40;
    font-family: var(--font-sans);
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1px;
    opacity: 0.4;
    transition: opacity 0.3s;
}

.floating-admin-link a {
    color: var(--text-muted);
}

.floating-admin-link:hover {
    opacity: 1;
}

/* --- Mobile / Responsive Breakpoints --- */
@media (max-width: 991px) {
    .navbar-container {
        padding: 24px 40px;
    }
    .hero-showcase {
        padding: 160px 40px 40px;
        min-height: auto;
    }
    .hero-text-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    .hero-main-title {
        font-size: 56px;
    }
    .gallery-showroom-section {
        padding: 40px 24px 80px;
    }
    .gallery-container {
        height: 480px;
    }
    .gallery-nav-arrow.prev { left: 10px; }
    .gallery-nav-arrow.next { right: 10px; }
    .model-card {
        width: 190px;
        height: 300px;
    }
    /* Compact layout on tablets to prevent horizontal overflow */
    .pos-1 { transform: translateX(-310px) translateZ(-200px) rotateY(35deg) scale(0.85); }
    .pos-2 { transform: translateX(-160px) translateZ(-80px) rotateY(20deg) scale(0.9); }
    .pos-3 { transform: translateZ(0) scale(1.05); }
    .pos-4 { transform: translateX(160px) translateZ(-80px) rotateY(-20deg) scale(0.9); }
    .pos-5 { transform: translateX(310px) translateZ(-200px) rotateY(-35deg) scale(0.85); }
    
    .brand-story {
        padding: 80px 40px;
    }
    .brand-story-container {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    .footer {
        padding: 80px 40px 40px;
    }
    .footer-container {
        grid-template-columns: 1fr 1fr;
        gap: 40px;
    }
}

@media (max-width: 768px) {
    .navbar-container {
        padding: 20px 24px;
        width: 95%;
    }
    .nav-menu {
        position: fixed;
        top: 80px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 80px);
        background-color: #030303;
        flex-direction: column;
        padding: 60px 0;
        gap: 35px;
        transition: var(--transition-heavy);
        border-top: 1px solid rgba(255,255,255,0.08);
        z-index: 99;
    }
    .nav-menu.active {
        left: 0;
    }
    body.light-theme .nav-menu {
        background-color: #faf8f5;
        border-top-color: rgba(0, 0, 0, 0.08);
    }
    .mobile-menu-toggle {
        display: flex;
    }
    .hero-showcase {
        padding: 120px 24px 40px;
    }
    .hero-main-title {
        font-size: 38px;
    }
    .gallery-container {
        height: 400px;
    }
    .gallery-nav-arrow {
        width: 44px;
        height: 44px;
    }
    .gallery-nav-arrow.prev { left: 5px; }
    .gallery-nav-arrow.next { right: 5px; }
    
    /* Medium mobile card sizing & translation spacing */
    .model-card {
        width: 160px;
        height: 250px;
    }
    .pos-1 { transform: translateX(-190px) translateZ(-150px) rotateY(25deg) scale(0.85); }
    .pos-2 { transform: translateX(-95px) translateZ(-75px) rotateY(15deg) scale(0.9); }
    .pos-3 { transform: translateZ(0) scale(1.05); }
    .pos-4 { transform: translateX(95px) translateZ(-75px) rotateY(-15deg) scale(0.9); }
    .pos-5 { transform: translateX(190px) translateZ(-150px) rotateY(-25deg) scale(0.85); }
    
    .product-strip {
        padding: 0 20px;
        gap: 20px;
        justify-content: flex-start; /* Horizontal scrollable on smaller screens */
    }
    .product-card-popup {
        width: 90%;
        max-width: 360px;
        height: auto;
        max-height: 90vh; /* Responsive auto-height for short mobile screens */
        overflow-y: auto;
        padding: 20px;
        border-radius: 20px;
    }
    .card-img {
        width: 100%;
        height: 260px;
        margin-top: 10px;
    }
    .footer-container {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    .footer-bottom {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
    .custom-cursor-dot, .custom-cursor-ring {
        display: none !important;
    }
    body.custom-cursor-active, 
    body.custom-cursor-active a, 
    body.custom-cursor-active button {
        cursor: auto !important;
    }
}

@media (max-width: 480px) {
    .hero-main-title {
        font-size: 30px;
    }
    .gallery-container {
        height: 340px;
    }
    /* Compact smartphone card sizing: Hide pos-1 and pos-5 completely to prevent overflows */
    .model-card {
        width: 135px;
        height: 215px;
    }
    .pos-1 { transform: translateX(-160px) translateZ(-300px); opacity: 0; pointer-events: none; }
    .pos-2 { transform: translateX(-80px) translateZ(-100px) rotateY(20deg) scale(0.82); opacity: 0.85; }
    .pos-3 { transform: translateZ(0) scale(1.05); }
    .pos-4 { transform: translateX(80px) translateZ(-100px) rotateY(-20deg) scale(0.82); opacity: 0.85; }
    .pos-5 { transform: translateX(160px) translateZ(-300px); opacity: 0; pointer-events: none; }
    
    .gallery-nav-arrow {
        display: none !important; /* FIX: Hide arrows on small mobile screens to avoid overlap clutter */
    }
    .product-strip {
        gap: 15px;
        padding: 0 10px;
        height: 90px;
    }
    .p-thumb {
        width: 40px;
        height: 55px;
    }
    .p-info h4 {
        font-size: 10px;
    }
    .p-info p {
        font-size: 10px;
    }
}
