/*
 * Shivani Interior CNC Works - Premium Design System (CSS)
 * Custom styles with CSS 3D perspectives, ambient glow animations, and responsive grids.
 */

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&family=Plus+Jakarta+Sans:wght@300;400;500;600;700&display=swap');

/* --- CUSTOM VARIABLES --- */
:root {
  --bg-obsidian: #F9FAFB;
  --bg-slate: #F3F4F6;
  --bg-card: rgba(255, 255, 255, 0.85);
  --border-glass: rgba(0, 0, 0, 0.08);
  --border-active: rgba(244, 162, 97, 0.4);
  
  --color-amber: #E07A5F;
  --color-gold: #F4A261;
  --color-gold-glow: rgba(244, 162, 97, 0.35);
  --color-copper: #E9C46A;
  --color-text-primary: #111827;
  --color-text-secondary: #4B5563;
  
  --font-display: 'Outfit', sans-serif;
  --font-body: 'Plus Jakarta Sans', sans-serif;
  
  --transition-smooth: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
  --transition-fast: all 0.2s ease;
}

/* --- RESET & BASE STYLE --- */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  scroll-behavior: smooth;
}

body {
  background-color: var(--bg-obsidian);
  color: var(--color-text-primary);
  font-family: var(--font-body);
  overflow-x: hidden;
  line-height: 1.6;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: var(--bg-obsidian);
}
::-webkit-scrollbar-thumb {
  background: #D1D5DB;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--color-gold);
}

/* --- REUSABLE UTILITIES --- */
.container {
  max-width: 1800px;
  width: 95%;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.text-gradient {
  background: linear-gradient(135deg, var(--color-text-primary) 30%, var(--color-gold) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.text-gold {
  color: var(--color-gold);
}

.glass-card {
  background: var(--bg-card);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border-glass);
  border-radius: 16px;
  box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
  transition: var(--transition-smooth);
}

.glass-card:hover {
  border-color: var(--border-active);
  box-shadow: 0 12px 40px 0 rgba(244, 162, 97, 0.12);
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.8rem 1.8rem;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.95rem;
  border-radius: 8px;
  text-decoration: none;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.btn-primary {
  background: linear-gradient(135deg, var(--color-amber), var(--color-gold));
  color: #F9FAFB;
  border: none;
  box-shadow: 0 4px 15px var(--color-gold-glow);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(244, 162, 97, 0.6);
}

.btn-secondary {
  background: rgba(244, 162, 97, 0.05);
  color: var(--color-text-primary);
  border: 1px solid rgba(244, 162, 97, 0.4);
  box-shadow: 0 4px 15px rgba(244, 162, 97, 0.08);
}

.btn-secondary:hover {
  background: rgba(244, 162, 97, 0.15);
  border-color: var(--color-gold);
  color: var(--color-gold);
  box-shadow: 0 4px 20px rgba(233, 196, 106, 0.2);
}

/* --- NAVIGATION BAR --- */
.header-nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: rgba(250, 250, 250, 0.8);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-glass);
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 80px;
}

.logo-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: var(--color-text-primary);
}

.logo-icon {
  width: 40px;
  height: 40px;
  fill: var(--color-gold);
  filter: drop-shadow(0 0 8px var(--color-gold-glow));
  animation: pulse-laser 3s infinite ease-in-out;
}

.logo-text {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.4rem;
  letter-spacing: -0.5px;
}

.logo-text span {
  display: block;
  font-size: 0.75rem;
  font-family: var(--font-body);
  font-weight: 500;
  letter-spacing: 2px;
  color: var(--color-amber);
}

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

.nav-item a {
  text-decoration: none;
  color: var(--color-text-secondary);
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 0.95rem;
  transition: var(--transition-fast);
  position: relative;
  padding: 0.25rem 0;
}

.nav-item a:hover,
.nav-item a.active {
  color: var(--color-gold);
}

.nav-item a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--color-gold);
  transition: var(--transition-fast);
}

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

.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 6px;
  background: none;
  border: none;
  cursor: pointer;
}

.menu-toggle span {
  width: 25px;
  height: 2px;
  background: var(--color-text-primary);
  transition: var(--transition-fast);
}

/* --- HERO SECTION --- */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  padding-top: 120px;
  padding-bottom: 6rem;
  overflow-x: hidden;
  background: radial-gradient(circle at 80% 20%, rgba(224, 122, 95, 0.08) 0%, transparent 60%);
}

.hero::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 150px;
  background: linear-gradient(to top, var(--bg-obsidian), transparent);
  pointer-events: none;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 4rem;
  align-items: center;
}

.hero-content {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.badge {
  display: inline-flex;
  align-self: flex-start;
  align-items: center;
  gap: 0.5rem;
  background: rgba(244, 162, 97, 0.1);
  border: 1px solid var(--border-active);
  color: var(--color-gold);
  padding: 0.4rem 1rem;
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.badge span.dot {
  width: 6px;
  height: 6px;
  background: var(--color-gold);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--color-gold);
  animation: pulse-laser 1.5s infinite;
}

.hero-title {
  font-family: var(--font-display);
  font-size: 4rem;
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -1.5px;
}

.hero-subtitle {
  font-size: 1.15rem;
  line-height: 1.6;
  color: var(--color-text-secondary);
  max-width: 650px;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  margin-top: 1rem;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border-glass);
}

.stat-item h3 {
  font-family: var(--font-display);
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--color-gold);
}

.stat-item p {
  font-size: 0.85rem;
  color: var(--color-text-secondary);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-top: 0.25rem;
}

/* Hero 3D Carving Interactive Visualizer */
.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.visual-canvas-container {
  width: 460px;
  height: 460px;
  position: relative;
  border-radius: 28px;
  background: 
    radial-gradient(ellipse at 35% 35%, rgba(45, 30, 10, 0.55) 0%, transparent 60%),
    radial-gradient(circle at center, rgba(20, 15, 8, 0.92) 0%, rgba(5, 6, 8, 0.98) 100%);
  border: 1px solid rgba(200, 140, 40, 0.22);
  box-shadow:
    0 30px 80px rgba(0, 0, 0, 0.75),
    0 0 0 1px rgba(255,255,255,0.03),
    inset 0 1px 0 rgba(255,220,120,0.08);
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: grab;
  overflow: hidden;
  transition: box-shadow 0.4s ease, border-color 0.4s ease;
}

.visual-canvas-container:hover {
  border-color: rgba(233, 196, 106, 0.4);
  box-shadow:
    0 30px 90px rgba(0, 0, 0, 0.8),
    0 0 50px rgba(200, 140, 40, 0.12),
    0 0 0 1px rgba(255,255,255,0.04),
    inset 0 1px 0 rgba(255,220,120,0.12);
}

.visual-canvas-container:active {
  cursor: grabbing;
}

/* Corner accent brackets */
.visual-canvas-container::before,
.visual-canvas-container::after {
  content: '';
  position: absolute;
  width: 28px;
  height: 28px;
  border-color: rgba(233, 196, 106, 0.55);
  border-style: solid;
  border-width: 0;
  z-index: 10;
  pointer-events: none;
  transition: border-color 0.4s ease;
}
.visual-canvas-container::before {
  top: 14px; left: 14px;
  border-top-width: 2px;
  border-left-width: 2px;
  border-radius: 4px 0 0 0;
}
.visual-canvas-container::after {
  bottom: 14px; right: 14px;
  border-bottom-width: 2px;
  border-right-width: 2px;
  border-radius: 0 0 4px 0;
}
.visual-canvas-container:hover::before,
.visual-canvas-container:hover::after {
  border-color: rgba(233, 196, 106, 0.85);
}

.canvas-glow {
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 28px;
  background:
    radial-gradient(ellipse at 50% 0%, rgba(233,196,106,0.06) 0%, transparent 55%),
    radial-gradient(ellipse at 50% 100%, rgba(244,162,97,0.04) 0%, transparent 55%);
  box-shadow:
    inset 0 0 60px rgba(180, 110, 30, 0.10),
    inset 0 0 20px rgba(233, 196, 106, 0.06);
  animation: glow-pulse 5s ease-in-out infinite alternate;
  pointer-events: none;
  z-index: 2;
}

.canvas-laser-line {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 1.5px;
  background: linear-gradient(90deg, transparent 0%, rgba(233,196,106,0.15) 20%, rgba(244,162,97,0.9) 50%, rgba(233,196,106,0.15) 80%, transparent 100%);
  box-shadow: 0 0 8px rgba(233,196,106,0.5), 0 0 20px rgba(244,162,97,0.2);
  animation: cnc-scan 5s infinite linear;
  pointer-events: none;
  z-index: 3;
}

/* --- SECTION GENERAL --- */
.section {
  padding: 4rem 0;
  position: relative;
}

.section-bg-dark {
  background-color: var(--bg-slate);
}

.section-header {
  text-align: left;
  max-width: 800px;
  margin: 0 0 3rem 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1rem;
}

.section-title {
  font-family: var(--font-display);
  font-size: 2.8rem;
  font-weight: 800;
  letter-spacing: -0.5px;
}

.section-subtitle {
  color: var(--color-text-secondary);
  font-size: 1.05rem;
}

/* --- 3D INTERACTIVE SANDBOX SECTION --- */
.sandbox-layout {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 3.5rem;
  align-items: stretch;
}

.sandbox-controls {
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.control-group h3 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--color-gold);
  border-bottom: 1px solid var(--border-glass);
  padding-bottom: 0.5rem;
}

.control-options {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
}

.control-btn {
  background: rgba(0, 0, 0, 0.03);
  border: 1px solid var(--border-glass);
  color: var(--color-text-secondary);
  padding: 0.75rem 1rem;
  border-radius: 8px;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 0.85rem;
  cursor: pointer;
  transition: var(--transition-fast);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
}

.control-btn:hover {
  background: rgba(0, 0, 0, 0.06);
  border-color: rgba(244, 162, 97, 0.3);
  color: var(--color-text-primary);
}

.control-btn.active {
  background: rgba(244, 162, 97, 0.12);
  border-color: var(--color-gold);
  color: var(--color-gold);
  box-shadow: 0 0 15px rgba(244, 162, 97, 0.1);
}

.control-btn .material-color-dot {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 1px solid rgba(0, 0, 0, 0.2);
}

.control-btn .pattern-preview {
  font-size: 1.5rem;
}

.sandbox-display {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  position: relative;
  min-height: 520px;
}

.sandbox-canvas-wrap {
  width: 100%;
  height: 100%;
  min-height: 450px;
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: 12px;
  overflow: hidden;
  cursor: grab;
}

.sandbox-canvas-wrap:active {
  cursor: grabbing;
}

.sandbox-hint {
  position: absolute;
  bottom: 1.5rem;
  color: var(--color-text-secondary);
  font-size: 0.8rem;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(250, 250, 250, 0.7);
  padding: 0.4rem 1rem;
  border-radius: 50px;
  backdrop-filter: blur(8px);
  border: 1px solid var(--border-glass);
  pointer-events: none;
}

.sandbox-hint svg {
  animation: swing-hand 2s infinite ease-in-out;
}

/* --- PRODUCT & SHOWCASE CATALOG --- */
.gallery-filter-wrap {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 3.5rem;
  flex-wrap: wrap;
}

.filter-btn {
  background: rgba(0, 0, 0, 0.03);
  border: 1px solid var(--border-glass);
  color: var(--color-text-secondary);
  padding: 0.6rem 1.4rem;
  border-radius: 50px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.85rem;
  cursor: pointer;
  transition: var(--transition-fast);
}

.filter-btn:hover {
  background: rgba(0, 0, 0, 0.06);
  border-color: rgba(244, 162, 97, 0.3);
  color: var(--color-text-primary);
}

.filter-btn.active {
  background: var(--color-gold);
  border-color: var(--color-gold);
  color: #F9FAFB;
  box-shadow: 0 4px 15px var(--color-gold-glow);
}

.grid-3d-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
  gap: 2.5rem;
  perspective: 1200px; /* Crucial for 3D card tilts */
}

.card-3d-wrapper {
  transform-style: preserve-3d;
  transition: transform 0.15s cubic-bezier(0.25, 0.8, 0.25, 1);
  border-radius: 16px;
  position: relative;
}

.product-card {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  height: 100%;
}

.product-image-box {
  width: 100%;
  height: 240px;
  border-radius: 10px;
  overflow: hidden;
  position: relative;
  background: radial-gradient(circle, #ffffff 0%, #e5e7eb 100%);
  display: flex;
  justify-content: center;
  align-items: center;
}

.product-real-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 10px;
  transition: var(--transition-smooth);
}

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

.product-image-box svg.fallback-svg {
  width: 80%;
  height: 80%;
  fill: var(--color-text-secondary);
  opacity: 0.8;
  transition: var(--transition-smooth);
}

.product-card:hover .product-image-box svg.fallback-svg {
  transform: scale(1.05) translateZ(30px);
  opacity: 1;
}

.product-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.product-tag {
  font-size: 0.75rem;
  background: rgba(0, 0, 0, 0.05);
  border: 1px solid var(--border-glass);
  padding: 0.25rem 0.6rem;
  border-radius: 4px;
  color: var(--color-gold);
  font-weight: 500;
  text-transform: uppercase;
}

.product-rating {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  color: #E9C46A;
  font-size: 0.85rem;
  font-weight: 600;
}

.product-title {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 700;
  letter-spacing: -0.2px;
  color: var(--color-text-primary);
  transform: translateZ(20px);
}

.product-desc {
  font-size: 0.9rem;
  color: var(--color-text-secondary);
}

.product-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: auto;
  padding-top: 1rem;
  border-top: 1px solid var(--border-glass);
}

.product-price-spec {
  display: flex;
  flex-direction: column;
}

.product-price-spec span.label {
  font-size: 0.7rem;
  color: var(--color-text-secondary);
  text-transform: uppercase;
}

.product-price-spec span.val {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--color-gold);
}

/* --- DUAL WORKING PANELS SECTION --- */
.dual-tabs-wrap {
  display: flex;
  justify-content: flex-start;
  margin-bottom: 3rem;
}

.dual-tabs-container {
  display: flex;
  background: rgba(0, 0, 0, 0.03);
  border: 1px solid var(--border-glass);
  padding: 0.4rem;
  border-radius: 50px;
}

.tab-trigger {
  background: transparent;
  border: none;
  color: var(--color-text-secondary);
  padding: 0.8rem 2.2rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  border-radius: 50px;
  transition: var(--transition-smooth);
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.tab-trigger:hover {
  color: var(--color-text-primary);
}

.tab-trigger.active {
  background: linear-gradient(135deg, var(--color-amber), var(--color-gold));
  color: #F9FAFB;
  box-shadow: 0 4px 15px var(--color-gold-glow);
}

.panel-content {
  display: none;
  animation: fade-in-panel 0.5s ease-out forwards;
}

.panel-content.active {
  display: block;
}

/* Gallery Grid */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
}

.gallery-card {
  height: 260px;
  border-radius: 12px;
  overflow: hidden;
  position: relative;
  cursor: pointer;
  border: 1px solid var(--border-glass);
  background: radial-gradient(circle, #ffffff 0%, #e5e7eb 100%);
  display: flex;
  justify-content: center;
  align-items: center;
}

.gallery-card-glow {
  position: absolute;
  width: 100%;
  height: 100%;
  box-shadow: inset 0 0 30px rgba(0, 0, 0, 0.8);
  z-index: 2;
  transition: var(--transition-smooth);
}

.gallery-card:hover .gallery-card-glow {
  box-shadow: inset 0 0 40px rgba(244, 162, 97, 0.4);
}

.gallery-card svg.gallery-svg {
  width: 70%;
  height: 70%;
  fill: var(--color-text-secondary);
  opacity: 0.6;
  transition: var(--transition-smooth);
}

.gallery-card:hover svg.gallery-svg {
  transform: scale(1.08);
  opacity: 0.95;
}

/* Video specific hover triggers */
.video-play-overlay {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 60px;
  height: 60px;
  background: var(--color-gold);
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 3;
  box-shadow: 0 0 20px var(--color-gold-glow);
  transition: var(--transition-smooth);
}

.video-play-overlay svg {
  fill: #F9FAFB;
  margin-left: 3px; /* visual balance */
}

.gallery-card:hover .video-play-overlay {
  transform: translate(-50%, -50%) scale(1.1);
  box-shadow: 0 0 30px rgba(244, 162, 97, 0.7);
}

.gallery-card-info {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 1.25rem;
  background: linear-gradient(to top, rgba(250, 250, 250, 0.9) 20%, transparent 100%);
  z-index: 3;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.gallery-card-info h4 {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--color-text-primary);
}

.gallery-card-info p {
  font-size: 0.8rem;
  color: var(--color-gold);
  font-weight: 500;
}

/* --- WORKERS & TEAM SECTION --- */
.workers-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 2rem;
}

.worker-card {
  padding: 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 1.25rem;
}

.worker-avatar-box {
  width: 110px;
  height: 110px;
  border-radius: 50%;
  background: radial-gradient(circle, #252a35 0%, #0d0f13 100%);
  display: flex;
  justify-content: center;
  align-items: center;
  border: 2px solid var(--border-glass);
  transition: var(--transition-smooth);
  position: relative;
}

.worker-card:hover .worker-avatar-box {
  border-color: var(--color-gold);
  box-shadow: 0 0 20px var(--color-gold-glow);
}

.worker-avatar-box svg {
  width: 60px;
  height: 60px;
  fill: var(--color-text-secondary);
}

.worker-experience-badge {
  position: absolute;
  bottom: -5px;
  right: -5px;
  background: linear-gradient(135deg, var(--color-amber), var(--color-gold));
  color: #F9FAFB;
  padding: 0.2rem 0.6rem;
  font-size: 0.7rem;
  font-weight: 800;
  border-radius: 50px;
  font-family: var(--font-display);
}

.worker-info h3 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
}

.worker-info p.role {
  font-size: 0.85rem;
  color: var(--color-gold);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.worker-bio {
  font-size: 0.85rem;
  color: var(--color-text-secondary);
}

.worker-skills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  justify-content: center;
  margin-top: auto;
}

.skill-tag {
  font-size: 0.7rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-glass);
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
  color: var(--color-text-secondary);
}

/* --- SEO ENCYCLOPEDIA SECTION --- */
.encyclopedia-header {
  background: rgba(22, 25, 30, 0.4);
  padding: 1.25rem 2rem;
  border-radius: 12px;
  border: 1px solid var(--border-glass);
  margin-bottom: 2.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 2rem;
  flex-wrap: wrap;
}

.seo-search-box {
  position: relative;
  flex: 1;
  min-width: 280px;
}

.seo-search-input {
  width: 100%;
  background: #F9FAFB;
  border: 1px solid var(--border-glass);
  padding: 0.9rem 1rem 0.9rem 2.8rem;
  border-radius: 8px;
  color: var(--color-text-primary);
  font-family: var(--font-body);
  font-size: 0.95rem;
  transition: var(--transition-fast);
}

.seo-search-input:focus {
  outline: none;
  border-color: var(--color-gold);
  box-shadow: 0 0 15px rgba(244, 162, 97, 0.15);
}

.seo-search-icon {
  position: absolute;
  top: 50%;
  left: 1rem;
  transform: translateY(-50%);
  fill: var(--color-text-secondary);
  pointer-events: none;
}

.seo-stats-info {
  display: flex;
  gap: 1.5rem;
}

.seo-stat-box {
  text-align: center;
}

.seo-stat-box h4 {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--color-gold);
}

.seo-stat-box p {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--color-text-secondary);
}

/* Encyclopedia Output Grid */
.encyclopedia-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
  max-height: 600px;
  overflow-y: auto;
  padding-right: 10px;
}

.encyclopedia-grid::-webkit-scrollbar {
  width: 6px;
}
.encyclopedia-grid::-webkit-scrollbar-thumb {
  background: rgba(0, 0, 0, 0.05);
}
.encyclopedia-grid::-webkit-scrollbar-thumb:hover {
  background: var(--color-gold);
}

.seo-card {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.seo-card-category {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--color-amber);
  font-weight: 700;
}

.seo-card-term {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--color-text-primary);
}

.seo-card-desc {
  font-size: 0.85rem;
  color: var(--color-text-secondary);
  line-height: 1.5;
}

/* --- CONTACT & INTEGRATIONS --- */
.contact-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 4rem;
  align-items: stretch;
}

.contact-info-panel {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}

.contact-details {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.contact-item {
  display: flex;
  gap: 1.25rem;
  align-items: flex-start;
}

.contact-icon {
  width: 48px;
  height: 48px;
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.03);
  border: 1px solid var(--border-glass);
  display: flex;
  justify-content: center;
  align-items: center;
  fill: var(--color-gold);
}

.contact-text h4 {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--color-text-primary);
  margin-bottom: 0.25rem;
}

.contact-text p,
.contact-text a {
  font-size: 0.95rem;
  color: var(--color-text-secondary);
  text-decoration: none;
  transition: var(--transition-fast);
}

.contact-text a:hover {
  color: var(--color-gold);
}

.social-panel {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.social-panel h4 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.1rem;
}

.social-icons-row {
  display: flex;
  gap: 0.75rem;
}

.social-btn {
  width: 44px;
  height: 44px;
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.03);
  border: 1px solid var(--border-glass);
  display: flex;
  justify-content: center;
  align-items: center;
  fill: var(--color-text-secondary);
  transition: var(--transition-smooth);
}

.social-btn:hover {
  border-color: var(--color-gold);
  fill: var(--color-gold);
  transform: translateY(-3px);
  box-shadow: 0 4px 15px rgba(244, 162, 97, 0.15);
}

/* Contact Form Grid */
.contact-form {
  padding: 2.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.form-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.form-group label {
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--color-text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.form-input {
  width: 100%;
  background: #F9FAFB;
  border: 1px solid var(--border-glass);
  padding: 0.85rem 1rem;
  border-radius: 8px;
  color: var(--color-text-primary);
  font-family: var(--font-body);
  font-size: 0.95rem;
  transition: var(--transition-fast);
}

.form-input:focus {
  outline: none;
  border-color: var(--color-gold);
  box-shadow: 0 0 15px rgba(244, 162, 97, 0.15);
}

textarea.form-input {
  resize: vertical;
  min-height: 120px;
}

/* Map Canvas */
.map-section {
  height: 400px;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--border-glass);
  position: relative;
  margin-top: 4rem;
}

.map-placeholder {
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at center, #1b1e26 0%, #0d0f13 100%);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 1.25rem;
  text-align: center;
  padding: 2rem;
}

.map-placeholder svg {
  width: 64px;
  height: 64px;
  fill: var(--color-gold);
  filter: drop-shadow(0 0 10px var(--color-gold-glow));
}

.map-placeholder h3 {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 700;
}

.map-placeholder p {
  font-size: 0.9rem;
  color: var(--color-text-secondary);
  max-width: 420px;
}

/* --- LIGHTBOX MODAL --- */
.lightbox-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(5, 6, 8, 0.95);
  backdrop-filter: blur(8px);
  z-index: 2000;
  display: none;
  justify-content: center;
  align-items: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.lightbox-modal.active {
  display: flex;
  opacity: 1;
}

.lightbox-content {
  position: relative;
  max-width: 900px;
  width: 90%;
  max-height: 80vh;
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(0, 0, 0, 0.1);
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.8);
}

.lightbox-content svg.lightbox-visual {
  width: 100%;
  height: 500px;
  background: #0f1115;
}

.lightbox-content video {
  width: 100%;
  height: 100%;
  max-height: 75vh;
  object-fit: cover;
  background: #000;
}

.lightbox-close {
  position: absolute;
  top: -45px;
  right: 0;
  background: none;
  border: none;
  cursor: pointer;
  fill: #fff;
  transition: var(--transition-fast);
}

.lightbox-close:hover {
  fill: var(--color-gold);
}

.lightbox-wrapper {
  position: relative;
}

/* --- FOOTER --- */
.footer-bar {
  background-color: var(--bg-slate);
  border-top: 1px solid var(--border-glass);
  padding: 3rem 0 1.5rem 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 2rem;
}

.footer-column {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.footer-desc {
  font-size: 0.9rem;
  color: var(--color-text-secondary);
  max-width: 320px;
}

.footer-column h4 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--color-text-primary);
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer-links a {
  text-decoration: none;
  font-size: 0.9rem;
  color: var(--color-text-secondary);
  transition: var(--transition-fast);
}

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

.footer-bottom {
  border-top: 1px solid var(--border-glass);
  padding-top: 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.footer-bottom p {
  font-size: 0.85rem;
  color: var(--color-text-secondary);
}

/* --- ANIMATIONS KEYFRAMES --- */
@keyframes pulse-laser {
  0%, 100% {
    opacity: 0.8;
    filter: drop-shadow(0 0 4px var(--color-gold-glow));
  }
  50% {
    opacity: 1;
    filter: drop-shadow(0 0 12px rgba(244, 162, 97, 0.75));
  }
}

@keyframes cnc-scan {
  0%   { top: 0%;   opacity: 0; }
  5%   { opacity: 1; }
  95%  { opacity: 1; }
  100% { top: 100%; opacity: 0; }
}

@keyframes glow-pulse {
  0%   { opacity: 0.7; }
  100% { opacity: 1.0; }
}

@keyframes swing-hand {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-5px); }
}

@keyframes fade-in-panel {
  from {
    opacity: 0;
    transform: translateY(15px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* --- RESPONSIVE MEDIA QUERIES --- */
@media (max-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 4rem;
    text-align: center;
  }
  .hero-content {
    align-items: center;
  }
  .hero-stats {
    width: 100%;
    max-width: 600px;
  }
  .sandbox-layout {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 4rem;
  }
}

@media (max-width: 768px) {
  .nav-menu {
    display: none;
    flex-direction: column;
    position: fixed;
    top: 80px;
    left: 0;
    width: 100%;
    height: calc(100vh - 80px);
    background: rgba(7, 8, 10, 0.96);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-glass);
    padding: 4rem 2rem;
    gap: 2.5rem;
    text-align: center;
    justify-content: flex-start;
    z-index: 999;
  }
  .nav-menu.active {
    display: flex;
    animation: fade-in-panel 0.4s ease-out forwards;
  }
  .nav-item a {
    font-size: 1.2rem;
    color: var(--color-text-primary);
  }
  .menu-toggle {
    display: flex;
  }
  .hero-title {
    font-size: 2.8rem;
  }
  .section-title {
    font-size: 2.2rem;
  }
  .form-row {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  .visual-canvas-container {
    width: 100%;
    max-width: 380px;
    height: 380px;
  }
}

/* ==========================================================================
   STAFF PORTAL & ADMIN DASHBOARD STYLES
   ========================================================================== */
.admin-portal-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(5, 6, 8, 0.96);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  z-index: 1500;
  display: none;
  overflow-y: auto;
  padding: 3rem 1.5rem;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.admin-portal-modal.active {
  display: block;
  opacity: 1;
}

.admin-portal-wrapper {
  position: relative;
  width: 100%;
  max-width: 1300px;
  margin: 0 auto;
}

.admin-portal-close {
  position: absolute;
  top: -2rem;
  right: 0;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--color-text-secondary);
  transition: var(--transition-fast);
}

.admin-portal-close:hover {
  color: var(--color-gold);
}

/* 1. Admin Login Panel */
.admin-login-card {
  max-width: 440px;
  margin: 6rem auto;
  padding: 3rem 2.5rem;
}

.admin-login-header {
  text-align: center;
  margin-bottom: 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.admin-login-header h3 {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.admin-login-header p {
  font-size: 0.85rem;
  color: var(--color-text-secondary);
  line-height: 1.5;
}

.admin-login-form {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

/* 2. Main Dashboard Area */
.admin-dashboard-container {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
  animation: fade-in-panel 0.5s ease-out forwards;
}

.admin-dashboard-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 2rem;
  flex-wrap: wrap;
}

.admin-title-block h2 {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 800;
  color: var(--color-gold);
  margin-bottom: 0.25rem;
}

.admin-title-block p {
  font-size: 0.9rem;
  color: var(--color-text-secondary);
}

.admin-stats-grid {
  display: flex;
  gap: 1.25rem;
}

.admin-stat-card {
  padding: 1.25rem 2.2rem;
  text-align: center;
  min-width: 160px;
}

.admin-stat-card h4 {
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--color-gold);
}

.admin-stat-card p {
  font-size: 0.7rem;
  color: var(--color-text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Workspace Panels */
.admin-workspace-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 2.5rem;
  align-items: start;
}

.admin-upload-box {
  padding: 2.2rem;
}

.admin-upload-box h3 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--color-gold);
  margin-bottom: 0.5rem;
}

.admin-upload-form {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.admin-orders-box {
  padding: 2.2rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.admin-orders-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.admin-orders-header h3 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--color-gold);
}

.admin-table-container {
  width: 100%;
  overflow-x: auto;
}

.admin-orders-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}

.admin-orders-table th,
.admin-orders-table td {
  padding: 1rem;
  border-bottom: 1px solid var(--border-glass);
  font-size: 0.85rem;
  vertical-align: middle;
}

.admin-orders-table th {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--color-text-primary);
  text-transform: uppercase;
  font-size: 0.75rem;
  letter-spacing: 0.5px;
  background: rgba(255, 255, 255, 0.02);
}

.admin-orders-table td {
  color: var(--color-text-secondary);
}

.admin-orders-table tr:hover td {
  color: var(--color-text-primary);
  background: rgba(255, 255, 255, 0.01);
}

/* Status Selectors inside Admin panel */
.admin-status-select {
  background: #F9FAFB;
  border: 1px solid var(--border-glass);
  color: var(--color-text-secondary);
  padding: 0.4rem 0.6rem;
  border-radius: 6px;
  font-family: var(--font-body);
  font-size: 0.8rem;
  cursor: pointer;
  transition: var(--transition-fast);
}

.admin-status-select:focus {
  outline: none;
  border-color: var(--color-gold);
}

/* Color Status Chips */
.status-badge {
  display: inline-flex;
  padding: 0.25rem 0.6rem;
  border-radius: 50px;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border: 1px solid transparent;
}

.status-pending {
  background: rgba(224, 122, 95, 0.1);
  color: var(--color-amber);
  border-color: rgba(224, 122, 95, 0.3);
}

.status-approved {
  background: rgba(233, 196, 106, 0.1);
  color: var(--color-copper);
  border-color: rgba(233, 196, 106, 0.3);
}

.status-inproduction {
  background: rgba(244, 162, 97, 0.12);
  color: var(--color-gold);
  border-color: var(--color-gold);
  animation: pulse-laser 2s infinite ease-in-out;
}

.status-completed {
  background: rgba(46, 204, 113, 0.1);
  color: #2ecc71;
  border-color: rgba(46, 204, 113, 0.3);
}

/* ==========================================================================
   REAL-TIME TOASTER NOTIFICATION OVERLAYS
   ========================================================================== */
.notification-toast-container {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 2500;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  max-width: 380px;
  width: 90%;
}

.notification-toast {
  background: rgba(12, 14, 18, 0.95);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--color-gold);
  box-shadow: 0 10px 40px rgba(244, 162, 97, 0.25), 0 0 10px rgba(244, 162, 97, 0.1);
  border-radius: 12px;
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  position: relative;
  overflow: hidden;
  animation: slide-in-toast 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

.notification-toast::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: linear-gradient(to bottom, var(--color-amber), var(--color-gold));
}

.toast-header-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.toast-header-row h4 {
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--color-gold);
}

.toast-header-row span {
  font-size: 0.7rem;
  color: var(--color-text-secondary);
}

.toast-msg {
  font-size: 0.8rem;
  color: var(--color-text-primary);
  line-height: 1.4;
}

/* Animations for Toaster */
@keyframes slide-in-toast {
  from {
    transform: translateY(40px) scale(0.9);
    opacity: 0;
  }
  to {
    transform: translateY(0) scale(1);
    opacity: 1;
  }
}

/* Media Queries for Admin dashboard */
@media (max-width: 1024px) {
  .admin-workspace-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
}

@media (max-width: 768px) {
  .admin-dashboard-header {
    flex-direction: column;
    align-items: flex-start;
  }
  .admin-stats-grid {
    width: 100%;
    justify-content: space-between;
  }
  .admin-stat-card {
    flex: 1;
    min-width: 0;
    padding: 1rem 0.5rem;
  }
}
