/* ==========================================================================
   LUMEN – Custom Stylesheet
   Tailwind CSS handles utilities; this file covers custom components,
   animations, and visual effects.
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. FONTS
   -------------------------------------------------------------------------- */
/* plus-jakarta-sans-300 - latin */
@font-face {
  font-display: swap;
  font-family: 'Plus Jakarta Sans';
  font-style: normal;
  font-weight: 300;
  src: url('./fonts/plus-jakarta-sans-v12-latin-300.woff2') format('woff2'),
       url('./fonts/plus-jakarta-sans-v12-latin-300.woff') format('woff');
}
/* plus-jakarta-sans-regular - latin */
@font-face {
  font-display: swap;
  font-family: 'Plus Jakarta Sans';
  font-style: normal;
  font-weight: 400;
  src: url('./fonts/plus-jakarta-sans-v12-latin-regular.woff2') format('woff2'),
       url('./fonts/plus-jakarta-sans-v12-latin-regular.woff') format('woff');
}
/* plus-jakarta-sans-500 - latin */
@font-face {
  font-display: swap;
  font-family: 'Plus Jakarta Sans';
  font-style: normal;
  font-weight: 500;
  src: url('./fonts/plus-jakarta-sans-v12-latin-500.woff2') format('woff2'),
       url('./fonts/plus-jakarta-sans-v12-latin-500.woff') format('woff');
}
/* plus-jakarta-sans-600 - latin */
@font-face {
  font-display: swap;
  font-family: 'Plus Jakarta Sans';
  font-style: normal;
  font-weight: 600;
  src: url('./fonts/plus-jakarta-sans-v12-latin-600.woff2') format('woff2'),
       url('./fonts/plus-jakarta-sans-v12-latin-600.woff') format('woff');
}
/* plus-jakarta-sans-700 - latin */
@font-face {
  font-display: swap;
  font-family: 'Plus Jakarta Sans';
  font-style: normal;
  font-weight: 700;
  src: url('./fonts/plus-jakarta-sans-v12-latin-700.woff2') format('woff2'),
       url('./fonts/plus-jakarta-sans-v12-latin-700.woff') format('woff');
}

/* cormorant-garamond-regular - latin */
@font-face {
  font-display: swap;
  font-family: 'Cormorant Garamond';
  font-style: normal;
  font-weight: 400;
  src: url('./fonts/cormorant-garamond-v21-latin-regular.woff2') format('woff2'),
       url('./fonts/cormorant-garamond-v21-latin-regular.woff') format('woff');
}

/* --------------------------------------------------------------------------
   2. BASE / GLOBAL
   -------------------------------------------------------------------------- */
html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Plus Jakarta Sans', sans-serif;
    transition: background-color 0.7s cubic-bezier(0.4, 0, 0.2, 1), color 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

h1, h2, h3, .font-serif {
    font-family: 'Cormorant Garamond', serif;
}

/* --------------------------------------------------------------------------
   3. RETRO-GRID DOTTED BACKGROUND
   -------------------------------------------------------------------------- */
.retro-grid {
    background-image: radial-gradient(rgba(188, 163, 116, 0.1) 1px, transparent 1px);
    background-size: 24px 24px;
}
.dark .retro-grid {
    background-image: radial-gradient(rgba(216, 146, 52, 0.05) 1px, transparent 1px);
}

/* --------------------------------------------------------------------------
   4. HERO – DAY / NIGHT IMAGE TRANSITION
   -------------------------------------------------------------------------- */
.hero-image-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    height: 100dvh;
    overflow: hidden;
}

.hero-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    image-rendering: high-quality;
    transition: opacity 1s cubic-bezier(0.4, 0, 0.2, 1);
}

.hero-image.night {
    opacity: 0;
}

.dark .hero-image.night {
    opacity: 1;
}

.dark .hero-image.day {
    opacity: 0;
}

/* --------------------------------------------------------------------------
   5. HERO – TEXT SHADOW (LIGHT / DARK)
   -------------------------------------------------------------------------- */
.hero-text-container {
    text-shadow: 0 2px 20px rgba(0,0,0,0.08);
}
.dark .hero-text-container {
    text-shadow: 0 2px 30px rgba(0,0,0,0.4);
}

/* --------------------------------------------------------------------------
   6. LAMP GLOW (AMBIENT HERO LIGHT)
   -------------------------------------------------------------------------- */
.lamp-glow {
    position: absolute;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(216, 146, 52, 0.25) 0%, rgba(216, 146, 52, 0.05) 50%, rgba(216, 146, 52, 0) 70%);
    top: 40%;
    left: 55%;
    transform: translate(-50%, -50%);
    pointer-events: none;
    opacity: 0;
    filter: blur(20px);
    transition: opacity 1.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.dark .lamp-glow {
    opacity: 1;
}

/* --------------------------------------------------------------------------
   7. GLASSMORPHISM NAVBAR
   -------------------------------------------------------------------------- */
.navbar-glass {
    backdrop-filter: blur(20px) saturate(1.4);
    -webkit-backdrop-filter: blur(20px) saturate(1.4);
}

/* --------------------------------------------------------------------------
   8. MECHANICAL SWITCH (ROCKER STYLE)
   -------------------------------------------------------------------------- */
.switch-lever-container {
    perspective: 150px;
}

.switch-lever {
    width: 48px;
    height: 80px;
    background: linear-gradient(to bottom, #eeeeee 0%, #aaaaaa 100%);
    border-radius: 8px;
    position: relative;
    cursor: pointer;
    transform-origin: center center;
    transition: transform 0.15s cubic-bezier(0.175, 0.885, 0.32, 1.275), background 0.15s ease;
    box-shadow: 0 8px 15px rgba(0,0,0,0.3), inset 0 2px 3px rgba(255,255,255,0.6);
    border: 2px solid #999;
}

.dark .switch-lever {
    background: linear-gradient(to bottom, #444442 0%, #222220 100%);
    border: 2px solid #111;
    box-shadow: 0 8px 15px rgba(0,0,0,0.6), inset 0 2px 2px rgba(255,255,255,0.1);
}

.switch-lever::before {
    content: '';
    position: absolute;
    top: 3px;
    left: 8px;
    right: 8px;
    height: 40%;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 5px 5px 0 0;
}

.dark .switch-lever::before {
    background: rgba(255, 255, 255, 0.08);
}

/* Switch active states */
.switch-lever.off {
    transform: rotateX(-30deg) translateY(-8px);
    box-shadow: 0 12px 15px rgba(0, 0, 0, 0.2);
}

.switch-lever.on {
    transform: rotateX(30deg) translateY(8px);
    background: linear-gradient(to bottom, #aaaaaa 0%, #dddddd 100%);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
}

.dark .switch-lever.on {
    background: linear-gradient(to bottom, #222220 0%, #555552 100%);
}

/* --------------------------------------------------------------------------
   9. CTA BUTTON – SHIMMER + ARROW
   -------------------------------------------------------------------------- */
.btn-primary {
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.btn-primary::after {
    content: '';
    position: absolute;
    height: 100%;
    top: 0;
    left: -100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: all 0.6s ease;
}

.btn-primary:hover::after {
    left: 100%;
}

.cta-arrow {
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.btn-primary:hover .cta-arrow {
    transform: translateX(4px);
}

/* --------------------------------------------------------------------------
   10. MOBILE MENU
   -------------------------------------------------------------------------- */
html:has(body.mobile-menu-active),
body.mobile-menu-active {
    overflow: hidden !important;
    touch-action: none !important;
}

#mobile-menu.active {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

/* --------------------------------------------------------------------------
   11. SEARCH OVERLAY
   -------------------------------------------------------------------------- */
.search-overlay {
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    transition: opacity 0.4s cubic-bezier(0.16, 1, 0.3, 1), transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.search-overlay.active {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

/* --------------------------------------------------------------------------
   12. CART DRAWER
   -------------------------------------------------------------------------- */
.cart-drawer {
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    transform: translateX(100%);
}
.cart-drawer.active {
    transform: translateX(0);
}

.cart-backdrop {
    transition: opacity 0.4s ease;
}
.cart-backdrop.active {
    opacity: 1;
    pointer-events: auto;
}

/* --------------------------------------------------------------------------
   13. SCROLL REVEAL ANIMATION
   -------------------------------------------------------------------------- */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 1s cubic-bezier(0.16, 1, 0.3, 1);
}

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

/* Staggered children */
.reveal-stagger > *:nth-child(1) { transition-delay: 0ms; }
.reveal-stagger > *:nth-child(2) { transition-delay: 100ms; }
.reveal-stagger > *:nth-child(3) { transition-delay: 200ms; }
.reveal-stagger > *:nth-child(4) { transition-delay: 300ms; }
.reveal-stagger > *:nth-child(5) { transition-delay: 400ms; }
.reveal-stagger > *:nth-child(6) { transition-delay: 500ms; }

/* --------------------------------------------------------------------------
   14. LAMP CARDS – HOVER GLOW
   -------------------------------------------------------------------------- */
.lamp-card {
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.lamp-glow-bg {
    position: absolute;
    inset: 10%;
    border-radius: 50%;
    filter: blur(28px);
    opacity: 0;
    transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    pointer-events: none;
    z-index: 0;
}

.lamp-card:hover .lamp-glow-bg,
.lamp-card.lit .lamp-glow-bg {
    opacity: 0.85;
}

/* Glow color variants */
.glow-orange { background: radial-gradient(circle, rgba(234, 88, 12, 0.45) 0%, rgba(234, 88, 12, 0) 70%); }
.glow-green  { background: radial-gradient(circle, rgba(132, 204, 22, 0.45) 0%, rgba(132, 204, 22, 0) 70%); }
.glow-blue   { background: radial-gradient(circle, rgba(6, 182, 212, 0.45) 0%, rgba(6, 182, 212, 0) 70%); }
.glow-yellow { background: radial-gradient(circle, rgba(234, 179, 8, 0.45) 0%, rgba(234, 179, 8, 0) 70%); }
.glow-red    { background: radial-gradient(circle, rgba(239, 68, 68, 0.45) 0%, rgba(239, 68, 68, 0) 70%); }
.glow-purple { background: radial-gradient(circle, rgba(168, 85, 247, 0.45) 0%, rgba(168, 85, 247, 0) 70%); }
.glow-pink   { background: radial-gradient(circle, rgba(236, 72, 153, 0.45) 0%, rgba(236, 72, 153, 0) 70%); }
.glow-white  { background: radial-gradient(circle, rgba(255, 255, 255, 0.35) 0%, rgba(255, 255, 255, 0) 70%); }

/* Lamp product image filter */
.lamp-img {
    filter: brightness(0.85) contrast(1.05) saturate(0.95);
    transition: filter 0.5s ease, transform 0.5s ease;
    z-index: 10;
}

.lamp-card:hover .lamp-img,
.lamp-card.lit .lamp-img {
    filter: brightness(1.08) contrast(1.08) saturate(1.18);
}

/* --------------------------------------------------------------------------
   15. FILTER PILLS
   -------------------------------------------------------------------------- */
.filter-pill {
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.filter-pill.active {
    background-color: #1a1a18;
    color: #f8f6f0;
    border-color: #1a1a18;
}
.dark .filter-pill.active {
    background-color: #f8f6f0;
    color: #1a1a18;
    border-color: #f8f6f0;
}

/* --------------------------------------------------------------------------
   16. MODAL OVERLAY & CONTENT
   -------------------------------------------------------------------------- */
.modal-overlay {
    backdrop-filter: blur(12px);
    transition: opacity 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.modal-content {
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

/* --------------------------------------------------------------------------
   17. RANGE SLIDER (DIMMER)
   -------------------------------------------------------------------------- */
input[type="range"] {
    -webkit-appearance: none;
    appearance: none;
    background: transparent;
    cursor: pointer;
}

input[type="range"]::-webkit-slider-runnable-track {
    background: #e2e8f0;
    height: 6px;
    border-radius: 3px;
}
.dark input[type="range"]::-webkit-slider-runnable-track {
    background: #334155;
}

input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    margin-top: -5px;
    background-color: #1a1a18;
    height: 16px;
    width: 16px;
    border-radius: 50%;
    border: 2px solid #bca374;
    transition: transform 0.1s ease;
}
.dark input[type="range"]::-webkit-slider-thumb {
    background-color: #f8f6f0;
    border: 2px solid #d89234;
}

input[type="range"]::-webkit-slider-thumb:hover {
    transform: scale(1.2);
}

/* --------------------------------------------------------------------------
   18. PARALLAX IMAGE
   -------------------------------------------------------------------------- */
.parallax-img {
    transition: transform 0.1s linear;
    will-change: transform;
}

/* --------------------------------------------------------------------------
   19. VIDEO SECTION
   -------------------------------------------------------------------------- */
.video-container {
    position: relative;
    overflow: hidden;
}

.video-overlay {
    background: linear-gradient(to bottom, rgba(0,0,0,0.1) 0%, rgba(0,0,0,0.5) 100%);
    transition: opacity 0.5s ease;
}

.video-play-btn {
    transition: transform 0.3s ease, opacity 0.3s ease;
}
.video-play-btn:hover {
    transform: scale(1.1);
}

/* Square video frame */
.square-video-frame {
    aspect-ratio: 1/1;
    max-height: 70dvh;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 25px 50px -12px rgba(0,0,0,0.25);
}
.dark .square-video-frame {
    box-shadow: 0 25px 50px -12px rgba(0,0,0,0.6);
}

/* --------------------------------------------------------------------------
   20. TIMELINE / HANDWERK SECTION
   -------------------------------------------------------------------------- */
.timeline-line {
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(to bottom, transparent, #BCA374, transparent);
    transform: translateX(-50%);
}

@media (max-width: 768px) {
    .timeline-line {
        left: 24px;
    }
}

.timeline-dot {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #BCA374;
    border: 3px solid #FDFCF7;
    position: relative;
    z-index: 10;
    box-shadow: 0 0 0 4px rgba(188, 163, 116, 0.2);
    transition: box-shadow 0.3s ease;
}

.dark .timeline-dot {
    background: #D89234;
    border-color: #10100F;
    box-shadow: 0 0 0 4px rgba(216, 146, 52, 0.2);
}

.timeline-dot.active {
    box-shadow: 0 0 0 8px rgba(188, 163, 116, 0.3);
}
.dark .timeline-dot.active {
    box-shadow: 0 0 0 8px rgba(216, 146, 52, 0.3);
}

/* --------------------------------------------------------------------------
   21. ANIMATED COUNTERS
   -------------------------------------------------------------------------- */
.counter-number {
    font-variant-numeric: tabular-nums;
    font-family: 'Cormorant Garamond', serif;
}

.counter-section {
    background: linear-gradient(135deg, #1A1A18 0%, #10100F 100%);
}

@keyframes countUp {
    from { opacity: 0; transform: translateY(20px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* --------------------------------------------------------------------------
   22. TESTIMONIALS
   -------------------------------------------------------------------------- */
.testimonial-card {
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.5s ease;
}
.testimonial-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 40px -10px rgba(0,0,0,0.15);
}
.dark .testimonial-card:hover {
    box-shadow: 0 20px 40px -10px rgba(0,0,0,0.5);
}

.testimonial-scroll {
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}
.testimonial-scroll::-webkit-scrollbar {
    display: none;
}
.testimonial-scroll > * {
    scroll-snap-align: start;
}

/* Star rating */
.star-filled {
    color: #BCA374;
}
.dark .star-filled {
    color: #D89234;
}

/* Quote icon */
.quote-icon {
    font-family: 'Cormorant Garamond', serif;
    font-size: 4rem;
    line-height: 1;
    opacity: 0.15;
    position: absolute;
    top: -8px;
    left: 8px;
}

/* --------------------------------------------------------------------------
   23. FEATURE ICONS
   -------------------------------------------------------------------------- */
.feature-icon {
    width: 56px;
    height: 56px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(188, 163, 116, 0.15) 0%, rgba(188, 163, 116, 0.05) 100%);
    border: 1px solid rgba(188, 163, 116, 0.2);
    transition: all 0.3s ease;
}
.dark .feature-icon {
    background: linear-gradient(135deg, rgba(216, 146, 52, 0.15) 0%, rgba(216, 146, 52, 0.05) 100%);
    border: 1px solid rgba(216, 146, 52, 0.2);
}
.feature-icon:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 24px rgba(188, 163, 116, 0.2);
}

/* === DEMO BANNER === */
.demo-banner {
  background-color: #D89234;
  color: #fff;
  text-align: center;
  padding: 8px 40px;
  font-size: 0.85rem;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 2000;
  display: flex;
  justify-content: center;
  align-items: center;
  letter-spacing: 0.3px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.demo-banner strong {
  font-weight: 600;
  margin-right: 5px;
}

.demo-banner .close-demo-banner {
  position: absolute;
  right: 15px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: #fff;
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
  opacity: 0.7;
  transition: opacity 0.3s;
}

.demo-banner .close-demo-banner:hover {
  opacity: 1;
}

body.has-demo-banner {
  padding-top: calc(10px + var(--demo-banner-height, 35px));
}

body.has-demo-banner header.navbar-glass {
  top: var(--demo-banner-height, 35px);
}

/* --------------------------------------------------------------------------
   TESTIMONIAL MARQUEE
   -------------------------------------------------------------------------- */
.testimonial-marquee-wrapper {
    position: relative;
    overflow: hidden;
    width: 100%;
    padding-bottom: 1rem;
    padding-top: 1rem;
    /* Create a fade effect on edges */
    -webkit-mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
    mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
}
.testimonial-marquee {
    display: flex;
    gap: 1.5rem;
    width: max-content;
    animation: scroll-marquee 40s linear infinite;
    will-change: transform;
}
@media (hover: hover) and (pointer: fine) {
    .testimonial-marquee:hover {
        animation-play-state: paused;
    }
}
@keyframes scroll-marquee {
    0% { transform: translate3d(0, 0, 0); }
    100% { transform: translate3d(calc(-50% - 0.75rem), 0, 0); }
}

@media (max-width: 767px) {
    .testimonial-marquee-wrapper {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scroll-snap-type: x mandatory;
        mask-image: none;
        -webkit-mask-image: none;
    }
    .testimonial-marquee-wrapper::-webkit-scrollbar {
        display: none;
    }
    .testimonial-marquee {
        animation: none !important;
        /* Ensure there's space after the last item if they scroll */
        padding-right: 1.5rem;
    }
    .testimonial-marquee > div {
        scroll-snap-align: center;
    }
}
