/* Google Fonts Import */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600&family=Outfit:wght@300;400;500;600;700;800&family=Cormorant+Garamond:wght@300;400;500;600;700&display=swap');

/* Master Design Tokens */
:root {
  --font-heading: 'Outfit', 'Noto Sans Hebrew', 'Noto Sans Arabic', sans-serif;
  --font-body: 'Inter', 'Noto Sans Hebrew', 'Noto Sans Arabic', sans-serif;
  --bg-main: #000000;
  --bg-surface: #08080A;
  --bg-surface-hover: #0E0E12;
  --bg-glass: rgba(0, 0, 0, 0.82);
  --primary: #D4AF37;
  --primary-hover: #F0CD5D;
  --primary-dark: #A68028;
  --primary-glow: rgba(212, 175, 55, 0.05);
  --primary-glow-heavy: rgba(212, 175, 55, 0.22);
  --text-main: #F4F4F6;
  --text-muted: #9494A1;
  --text-light: #5F5F6E;
  --border: rgba(255, 255, 255, 0.04);
  --border-gold: rgba(212, 175, 55, 0.2);
  --border-hover: rgba(255, 255, 255, 0.09);
  --header-height: 80px;
  --radius-sm: 6px;
  --radius-md: 14px;
  --radius-lg: 24px;
  --transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-fast: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  --shadow-sm: 0 4px 25px rgba(0, 0, 0, 0.6);
  --shadow-lg: 0 32px 80px rgba(0, 0, 0, 0.9);
  --shadow-gold: 0 0 40px rgba(212, 175, 55, 0.25);
  --shadow-btn: 0 12px 30px rgba(212, 175, 55, 0.3);
}

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

html {
  font-size: 16px;
  width: 100%;
  max-width: 100vw;
  overflow-x: hidden !important;
  -webkit-tap-highlight-color: transparent;
}

body {
  background-color: var(--bg-main);
  color: var(--text-main);
  font-family: var(--font-body);
  line-height: 1.6;
  width: 100%;
  max-width: 100vw;
  overflow-x: hidden !important;
  position: relative;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Ambient Glow Blobs */
.ambient-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.glow-blob {
  position: absolute;
  width: min(650px, 85vw);
  height: min(650px, 85vw);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(212, 175, 55, 0.08) 0%, rgba(212, 175, 55, 0) 70%);
  filter: blur(100px);
  pointer-events: none;
  will-change: transform;
  transform: translate3d(0, 0, 0);
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
}

@keyframes drift-1 {
  0% { transform: translate3d(0, 0, 0) scale(1); }
  50% { transform: translate3d(50px, -40px, 0) scale(1.05); }
  100% { transform: translate3d(0, 0, 0) scale(1); }
}

@keyframes drift-2 {
  0% { transform: translate3d(0, 0, 0) scale(1); }
  50% { transform: translate3d(-40px, 40px, 0) scale(0.95); }
  100% { transform: translate3d(0, 0, 0) scale(1); }
}

@keyframes drift-3 {
  0% { transform: translate3d(0, 0, 0) scale(1); }
  50% { transform: translate3d(40px, 35px, 0) scale(1.02); }
  100% { transform: translate3d(0, 0, 0) scale(1); }
}

.glow-1 { top: 8%; left: -15%; animation: drift-1 25s infinite alternate ease-in-out; }
.glow-2 { top: 45%; right: -20%; background: radial-gradient(circle, rgba(235, 195, 71, 0.06) 0%, rgba(235, 195, 71, 0) 70%); animation: drift-2 30s infinite alternate ease-in-out; }
.glow-3 { bottom: 12%; left: 8%; animation: drift-3 28s infinite alternate ease-in-out; }

@media (max-width: 768px) {
  .glow-blob {
    filter: blur(60px) !important;
    animation: none !important;
    opacity: 0.6;
  }
}

/* Custom Scrollbar */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--bg-main); }
::-webkit-scrollbar-thumb { background: #1B1B1E; border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--primary); }

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--text-main);
  text-wrap: balance;
}

p { color: var(--text-muted); text-wrap: pretty; }

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

.gold-gradient-text {
  background: linear-gradient(135deg, #FFF5D6 0%, #D4AF37 50%, #9C7722 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

/* Grid & Layout Containers - no raw @media used; responsive via tailwind classes on elements */
.container {
  width: 100%;
  max-width: 1340px;
  margin: 0 auto;
  padding: 0 min(2.5rem, 6vw);
  position: relative;
  z-index: 2;
}

.section {
  padding: clamp(3rem, 11vw, 10rem) 0;
  position: relative;
  z-index: 2;
}

.section-header {
  text-align: center;
  margin-bottom: clamp(2rem, 7vw, 5.5rem);
  max-width: 750px;
  margin-inline: auto;
}

.section-subtitle {
  color: var(--primary);
  font-size: clamp(0.65rem, 1.6vw, 0.98rem);
  text-transform: uppercase;
  letter-spacing: 0.25em;
  font-weight: 700;
  margin-bottom: 1.15rem;
  display: block;
}

.section-title {
  font-size: clamp(1.5rem, 4.5vw, 3.4rem);
  line-height: 1.15;
  margin-bottom: 1.5rem;
  font-weight: 800;
}

.section-desc {
  font-size: clamp(0.9rem, 2vw, 1.18rem);
  color: var(--text-muted);
  line-height: 1.6;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 1.05rem 2.5rem;
  font-family: var(--font-heading);
  font-size: 0.98rem;
  font-weight: 800;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: var(--transition);
  gap: 0.65rem;
  border: none;
  outline: none;
  position: relative;
  overflow: hidden;
}

.btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -150%;
  width: 50%;
  height: 100%;
  background: linear-gradient(to right, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.3) 50%, rgba(255, 255, 255, 0) 100%);
  transform: skewX(-25deg);
  transition: 0.75s;
}

.btn:hover::before { left: 150%; }

.btn-primary {
  background-color: var(--primary);
  color: #000;
  box-shadow: 0 4px 15px rgba(212, 175, 55, 0.15);
}

.btn-primary:hover {
  background-color: var(--primary-hover);
  box-shadow: var(--shadow-btn), var(--shadow-gold);
  transform: translateY(-3px);
}

.btn-primary:active { transform: translateY(-1px); }

.btn-secondary {
  background-color: rgba(255, 255, 255, 0.01);
  color: var(--text-main);
  border: 1px solid var(--border);
  backdrop-filter: blur(10px);
}

.btn-secondary:hover {
  background-color: rgba(255, 255, 255, 0.05);
  border-color: var(--text-muted);
  transform: translateY(-3px);
}

/* Floating Navigation Header */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--header-height);
  z-index: 1000;
  background-color: var(--bg-glass);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  transition: var(--transition);
}

.header.scrolled {
  height: 70px;
  background-color: rgba(0, 0, 0, 0.95);
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.logo-wrapper { display: flex; align-items: center; gap: 0.85rem; }

.brand-logo-img {
  height: 52px;
  width: auto;
  object-fit: contain;
  filter: drop-shadow(0 0 10px rgba(212, 175, 55, 0.25));
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.brand-logo-img-full {
  height: 70px;
  width: auto;
  object-fit: contain;
  mix-blend-mode: screen;
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.logo-wrapper:hover .brand-logo-img,
.logo-wrapper:hover .brand-logo-img-full { transform: scale(1.05) rotate(-2deg); }

.logo-text { display: flex; flex-direction: column; justify-content: center; align-items: center; line-height: 1; }

.logo-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(1.25rem, 3vw, 1.85rem);
  font-weight: 500;
  letter-spacing: 0.12em;
  color: var(--text-main);
  transition: var(--transition);
}

.logo-wrapper:hover .logo-title {
  color: var(--primary);
  text-shadow: 0 0 12px rgba(212, 175, 55, 0.3);
}

.logo-tagline {
  font-family: var(--font-body);
  font-size: clamp(0.45rem, 1vw, 0.58rem);
  letter-spacing: 0.28em;
  color: var(--text-light);
  margin-top: 4px;
  text-transform: uppercase;
}

.logo-email {
  display: flex;
  align-items: center;
  gap: 4px;
  font-family: var(--font-body);
  font-size: clamp(0.5rem, 1.1vw, 0.62rem);
  letter-spacing: 0.05em;
  color: var(--primary);
  margin-top: 5px;
  text-transform: lowercase;
  opacity: 0.85;
  transition: var(--transition);
}

.logo-wrapper:hover .logo-email { opacity: 1; text-shadow: 0 0 8px rgba(212, 175, 55, 0.4); }

.nav-menu { display: flex; align-items: center; gap: clamp(0.5rem, 2.2vw, 2.2rem); }

.nav-link {
  font-family: var(--font-heading);
  font-size: clamp(0.75rem, 1.4vw, 0.92rem);
  font-weight: 700;
  color: var(--text-muted);
  position: relative;
  padding: 0.6rem 0;
  letter-spacing: 0.03em;
}

.nav-link:hover,
.nav-link.active { color: var(--text-main); }

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0%;
  height: 2px;
  background-color: var(--primary);
  transition: var(--transition);
}

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

html[dir="rtl"] .nav-link::after { left: auto; right: 0; }

/* Language Dropdown Switcher */
.lang-selector { position: relative; }

.lang-btn {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  color: var(--text-main);
  padding: 0.55rem 1.25rem;
  border-radius: var(--radius-sm);
  font-family: var(--font-heading);
  font-size: clamp(0.75rem, 1.4vw, 0.92rem);
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: var(--transition);
}

.lang-btn:hover { background: rgba(255, 255, 255, 0.08); border-color: var(--primary-dark); }
.lang-btn svg { color: var(--primary); }

.lang-dropdown {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-lg);
  display: none;
  flex-direction: column;
  min-width: 130px;
  overflow: hidden;
  z-index: 1001;
  transform: translateY(10px);
  transition: var(--transition);
}

html[dir="rtl"] .lang-dropdown { right: auto; left: 0; }
.lang-dropdown.active { display: flex; transform: translateY(0); }

.lang-opt {
  padding: 0.8rem 1.35rem;
  font-size: 0.9rem;
  background: none;
  border: none;
  color: var(--text-muted);
  text-align: left;
  cursor: pointer;
  transition: var(--transition-fast);
  font-family: var(--font-body);
}

html[dir="rtl"] .lang-opt { text-align: right; }
.lang-opt:hover { background: var(--bg-surface-hover); color: var(--primary); }
.lang-opt.selected { color: var(--primary); font-weight: 700; background: rgba(212, 175, 55, 0.04); }

/* Mobile Navigation Dropdown - Tablet & Below (Sliding Down) */
@media (max-width: 1023px) {
  #nav-menu {
    position: fixed;
    top: 70px;
    left: 0;
    width: 100%;
    height: auto;
    max-height: calc(100vh - 70px);
    background: rgba(8, 8, 10, 0.97);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border-bottom: 2px solid var(--border-gold);
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    padding: 1.5rem 2rem 2.5rem;
    gap: 0;
    transform: translateY(-100%);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.45s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease;
    z-index: 999;
    overflow-y: auto;
  }

  @media (min-width: 820px) {
    #nav-menu {
      top: 80px;
      max-height: calc(100vh - 80px);
    }
  }

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

  #nav-menu .nav-link {
    font-size: 1.05rem;
    padding: 1rem 0;
    width: 100%;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    text-align: center;
    display: block;
    transition: color 0.3s ease;
  }

  #nav-menu .nav-link:last-child {
    border-bottom: none;
  }

  #nav-menu .nav-link::after { display: none; }
}

/* Hamburger Menu Toggle */
.hamburger {
  display: flex !important;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  color: #F4F4F6;
  padding: 0.5rem;
  cursor: pointer;
  z-index: 1001;
  flex-shrink: 0;
  transition: var(--transition-fast);
}

.hamburger:hover {
  color: #D4AF37;
  border-color: rgba(212, 175, 55, 0.5);
}

.hamburger svg {
  width: 22px;
  height: 22px;
  stroke: currentColor;
}

@media (min-width: 1024px) {
  .hamburger {
    display: none !important;
  }
}

/* Mublis Brand Logo Layout */
.logo-wrapper {
  display: flex !important;
  align-items: center !important;
  gap: 0.6rem !important;
  text-decoration: none !important;
  flex-shrink: 0 !important;
}

.brand-logo-img {
  height: 34px !important;
  width: auto !important;
  object-fit: contain !important;
  flex-shrink: 0 !important;
  transition: transform 0.3s ease;
}

@media (min-width: 640px) {
  .brand-logo-img {
    height: 44px !important;
  }
}

.logo-text {
  display: flex !important;
  flex-direction: column !important;
  justify-content: center !important;
  text-align: center !important;
  line-height: 1 !important;
}

.logo-title {
  font-family: 'Cormorant Garamond', serif !important;
  font-size: 1.15rem !important;
  font-weight: 500 !important;
  letter-spacing: 0.14em !important;
  color: #F4F4F6 !important;
  transition: color 0.3s ease;
}

@media (min-width: 640px) {
  .logo-title {
    font-size: 1.45rem !important;
  }
}

.logo-tagline {
  display: block !important;
  font-family: var(--font-body) !important;
  font-size: 0.42rem !important;
  letter-spacing: 0.16em !important;
  color: #848494 !important;
  margin-top: 3px !important;
  text-transform: uppercase !important;
  white-space: nowrap !important;
}

@media (min-width: 640px) {
  .logo-tagline {
    font-size: 0.52rem !important;
    letter-spacing: 0.18em !important;
  }
}

@media (max-width: 480px) {
  .lang-btn {
    padding: 0.35rem 0.6rem !important;
    font-size: 0.72rem !important;
  }
}

/* Hero Section */
.hero {
  min-height: 100vh;
  min-height: 100dvh;
  position: relative;
  display: flex;
  flex-direction: column;
  padding-top: calc(var(--header-height) + 1.5rem);
  padding-bottom: 3rem;
  z-index: 1;
  overflow: hidden;
}

.hero-bg-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  overflow: hidden;
}

.hero-video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
}

.hero-bg-image {
  width: 100%;
  height: 100%;
  background-image: url('assets/about_workshop.png');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  animation: kenburns 32s infinite alternate ease-in-out;
  will-change: transform;
  z-index: 0;
}

@keyframes kenburns {
  0% { transform: scale(1.04) translate(0, 0); }
  50% { transform: scale(1.12) translate(-1%, 0.5%); }
  100% { transform: scale(1.04) translate(0, 0); }
}

.hero::after,
.hero-overlay { display: none; }

.hero .container {
  position: relative;
  z-index: 3;
  margin-top: auto;
  margin-bottom: auto;
}

.hero-content { max-width: 820px; }

.hero-subtitle {
  color: var(--primary);
  font-size: clamp(0.65rem, 2vw, 1.18rem);
  text-transform: uppercase;
  letter-spacing: 0.28em;
  font-weight: 700;
  margin-bottom: 1.5rem;
  display: inline-block;
}

.hero-title {
  font-size: clamp(1.8rem, 6.5vw, 5.4rem);
  font-weight: 800;
  line-height: 1.3;
  margin-bottom: 2.25rem;
}

.hero-title span { font-weight: 300; color: #FFF; }

.hero-desc {
  font-size: clamp(0.9rem, 2.2vw, 1.35rem);
  color: var(--text-muted);
  margin-bottom: 3.5rem;
  max-width: 680px;
  line-height: 1.65;
}

.hero-actions { display: flex; gap: 1.5rem; flex-wrap: wrap; }

/* Hero Scroll Down Indicator */
.scroll-indicator {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 5;
  display: flex;
  justify-content: center;
  align-items: center;
  pointer-events: auto;
}

.scroll-indicator-mouse {
  width: 26px;
  height: 42px;
  border: 2px solid rgba(212, 175, 55, 0.4);
  border-radius: 20px;
  display: flex;
  justify-content: center;
  position: relative;
  transition: var(--transition);
}

.scroll-indicator-mouse:hover {
  border-color: var(--primary);
  box-shadow: 0 0 12px rgba(212, 175, 55, 0.3);
}

.mouse-wheel {
  display: block;
  width: 4px;
  height: 8px;
  background-color: var(--primary);
  border-radius: 2px;
  margin-top: 8px;
  animation: scroll-wheel-anim 1.6s infinite ease-in-out;
}

@keyframes scroll-wheel-anim {
  0% { transform: translateY(0); opacity: 0; }
  20% { opacity: 1; }
  60% { transform: translateY(12px); opacity: 0; }
  100% { transform: translateY(0); opacity: 0; }
}

/* Services Section */
.services-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 2.5rem; }

.service-card {
  background-color: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: clamp(1.75rem, 4.5vw, 3.75rem) clamp(1.5rem, 3vw, 2.75rem);
}

/* Marquee styles handled in css/marquee.css */

/* Screen Preloader */
.preloader.fade-out { opacity: 0 !important; visibility: hidden !important; pointer-events: none !important; }

/* Custom Cursor */
.custom-cursor,
.custom-cursor-dot {
  position: fixed;
  top: 0;
  left: 0;
  pointer-events: none !important;
  z-index: 999999;
  user-select: none;
}

/* Portfolio Item Cards */
.portfolio-item {
  position: relative;
  background-color: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  cursor: pointer;
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.45);
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1),
              box-shadow 0.5s cubic-bezier(0.16, 1, 0.3, 1),
              border-color 0.5s cubic-bezier(0.16, 1, 0.3, 1),
              opacity 0.4s ease;
  opacity: 0;
  transform: translateY(30px) scale(0.97);
  will-change: transform, opacity;
}

.portfolio-item.is-visible { opacity: 1; transform: translateY(0) scale(1); }

.portfolio-item:hover {
  transform: translateY(-8px) scale(1.02);
  border-color: rgba(212, 175, 55, 0.5);
  box-shadow: 0 24px 50px rgba(0, 0, 0, 0.8), 0 0 30px rgba(212, 175, 55, 0.2);
}

.portfolio-img-wrapper {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background-color: #040405;
}

.portfolio-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.portfolio-item:hover .portfolio-img { transform: scale(1.09); }

.portfolio-item-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(8, 8, 10, 0.92) 0%, rgba(8, 8, 10, 0.3) 50%, rgba(8, 8, 10, 0) 100%);
  opacity: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1.5rem;
  transition: opacity 0.4s ease;
}

.portfolio-item:hover .portfolio-item-overlay { opacity: 1; }

.portfolio-item-icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(212, 175, 55, 0.95);
  color: #000;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.75rem;
  transform: translateY(12px);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 4px 15px rgba(212, 175, 55, 0.4);
}

.portfolio-item:hover .portfolio-item-icon { transform: translateY(0); }

.portfolio-item-title {
  color: var(--text-main);
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.3;
  transform: translateY(12px);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1) 0.05s;
}

.portfolio-item:hover .portfolio-item-title { transform: translateY(0); }

.portfolio-grid.animating-out { opacity: 0; transform: translateY(12px); }
.portfolio-grid.animating-in { opacity: 1; transform: translateY(0); }

/* Page Numbers & Pagination Buttons */
.page-num-btn {
  width: 42px;
  height: 42px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-muted);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition-fast);
}

.page-num-btn:hover { background: rgba(212, 175, 55, 0.15); border-color: var(--primary); color: var(--primary-hover); }

.page-num-btn.active {
  background: var(--primary);
  border-color: var(--primary);
  color: #000;
  box-shadow: 0 0 20px rgba(212, 175, 55, 0.4);
}

/* Lightbox Modal System */
.gallery-lightbox {
  position: fixed;
  inset: 0;
  z-index: 100000;
  background-color: rgba(0, 0, 0, 0.94);
  backdrop-filter: blur(25px);
  -webkit-backdrop-filter: blur(25px);
  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);
  padding: 1.5rem;
}

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

.lightbox-content {
  position: relative;
  max-width: 900px;
  width: 100%;
  max-height: 88vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  transform: scale(0.92);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.gallery-lightbox.active .lightbox-content { transform: scale(1); }

.lightbox-img {
  max-width: 100%;
  max-height: 65vh;
  object-fit: contain;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-gold);
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.9), 0 0 35px rgba(212, 175, 55, 0.2);
}

.lightbox-info { margin-top: 1.25rem; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 0.5rem; }

.lightbox-category {
  display: inline-block;
  padding: 0.25rem 0.85rem;
  border-radius: 20px;
  background: rgba(212, 175, 55, 0.15);
  border: 1px solid rgba(212, 175, 55, 0.3);
  color: var(--primary);
  font-family: var(--font-heading);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.lightbox-title { color: var(--text-main); font-family: var(--font-heading); font-size: 1.25rem; font-weight: 700; }

.lightbox-wa-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.5rem;
  padding: 0.65rem 1.4rem;
  background: #25D366;
  color: #000;
  border-radius: 30px;
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 700;
  box-shadow: 0 4px 15px rgba(37, 211, 102, 0.3);
  transition: var(--transition-fast);
}

.lightbox-wa-btn:hover { transform: translateY(-2px); box-shadow: 0 8px 25px rgba(37, 211, 102, 0.5); background: #22bf5b; }

.lightbox-close,
.lightbox-nav {
  position: absolute;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #FFF;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition-fast);
  z-index: 10;
}

.lightbox-close:hover,
.lightbox-nav:hover { background: var(--primary); border-color: var(--primary); color: #000; box-shadow: 0 0 20px rgba(212, 175, 55, 0.4); }

.lightbox-close { top: 1.5rem; right: 1.5rem; }
.lightbox-nav.prev { left: 1.5rem; top: 50%; transform: translateY(-50%); }
.lightbox-nav.next { right: 1.5rem; top: 50%; transform: translateY(-50%); }

/* 3D Showroom styles */
.showroom-viewport { position: relative; width: 100%; height: clamp(320px, 60vw, 550px); background: #000; overflow: hidden; }
.showroom-controls { padding: clamp(1.5rem, 4vw, 3rem); }

/* 3D Chip Active States */
.showroom-chip.active { background: rgba(212, 175, 55, 0.12) !important; border-color: rgba(212, 175, 55, 0.35) !important; color: #D4AF37 !important; }

[data-3d-product].active > div,
[data-3d-wood].active > div {
  background: rgba(212, 175, 55, 0.08) !important;
  border-color: rgba(212, 175, 55, 0.3) !important;
}

[data-3d-product].active > div svg,
[data-3d-product].active > div span,
[data-3d-wood].active > div span {
  color: #D4AF37 !important;
}

/* Range slider custom styling */
.showroom-range { -webkit-appearance: none; appearance: none; }
.showroom-range::-webkit-slider-thumb { -webkit-appearance: none; appearance: none; width: 16px; height: 16px; border-radius: 50%; background: #D4AF37; cursor: pointer; box-shadow: 0 0 12px rgba(212, 175, 55, 0.4); }
.showroom-range::-moz-range-thumb { width: 16px; height: 16px; border-radius: 50%; background: #D4AF37; cursor: pointer; border: none; box-shadow: 0 0 12px rgba(212, 175, 55, 0.4); }

/* PDF Catalog scrollbar */
.showroom-controls details[open] .overflow-y-auto::-webkit-scrollbar { width: 4px; }
.showroom-controls details[open] .overflow-y-auto::-webkit-scrollbar-track { background: transparent; }
.showroom-controls details[open] .overflow-y-auto::-webkit-scrollbar-thumb { background: rgba(212,175,55,0.3); border-radius: 4px; }

/* Mobile Navigation Overlay Drawer */
body.menu-open {
  overflow: hidden;
}

@media (max-width: 1023px) {
  .nav-menu {
    position: fixed;
    top: 70px;
  }
}

@media (min-width: 820px) and (max-width: 1023px) {
  .nav-menu {
    top: 80px;
  }
}

@media (max-width: 1023px) {
  .nav-menu {
    left: 0;
    width: 100%;
    height: auto;
    background-color: rgba(6, 6, 9, 0.97);
    backdrop-filter: blur(28px);
    -webkit-backdrop-filter: blur(28px);
    border-bottom: 2px solid rgba(212, 175, 55, 0.3);
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    gap: 0;
    padding: 1.2rem 0;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(-20px);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease, visibility 0.3s;
    z-index: 999;
  }

  .nav-menu.active {
    display: flex !important;
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
    transform: translateY(0) !important;
  }

  .nav-menu .nav-link {
    font-size: 1.1rem;
    font-weight: 600;
    width: 100%;
    text-align: center;
    padding: 1rem 0;
    color: #9494A1;
    background: none;
    border: none;
    border-radius: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
    transition: all 0.3s ease;
  }

  .nav-menu .nav-link:last-child {
    border-bottom: none;
  }

  .nav-menu .nav-link:hover,
  .nav-menu .nav-link.active {
    color: #D4AF37;
    background: rgba(212, 175, 55, 0.03);
    border-color: rgba(255, 255, 255, 0.03);
    box-shadow: none;
  }
}

/* Global Performance Acceleration Rules */
img {
  content-visibility: auto;
}

.header,
.contact-card,
.glow-card,
.nav-menu {
  will-change: transform, opacity;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
}

/* Interactive Modal Popup Styles */
#interactive-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: rgba(0, 0, 0, 0.88);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  padding: 1.5rem;
  box-sizing: border-box;
}

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

/* Responsive Pagination Styles */
.pagination-container {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

.pagination-buttons {
  max-width: 100%;
  flex-wrap: wrap;
  justify-content: center;
}

.page-numbers {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  flex-wrap: wrap;
  justify-content: center;
}

.page-num-btn {
  min-width: 36px;
  height: 36px;
  padding: 0 8px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #F4F4F6;
  font-family: var(--font-heading, sans-serif);
  font-weight: 700;
  font-size: 0.85rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.25s ease;
  flex-shrink: 0;
}

.page-num-btn:hover {
  border-color: #D4AF37;
  color: #D4AF37;
  background: rgba(212, 175, 55, 0.08);
}

.page-num-btn.active {
  background: #D4AF37 !important;
  color: #000000 !important;
  border-color: #D4AF37 !important;
  box-shadow: 0 0 15px rgba(212, 175, 55, 0.4);
}

.page-ellipsis {
  color: #9494A1;
  font-weight: 700;
  padding: 0 4px;
  user-select: none;
}

@media (max-width: 480px) {
  .page-num-btn {
    min-width: 32px;
    height: 32px;
    font-size: 0.78rem;
    padding: 0 6px;
  }
  .page-nav-btn {
    padding: 0.5rem 0.75rem !important;
    font-size: 0.7rem !important;
  }
}

