/* ==========================================================================
   NAVE LASER LTD — Page Layouts & Specific Feature Styles
   Hero Canvas, Laser Lab Simulator, Gallery Grid, About & Contact Views
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Hero Section & Interactive Laser Canvas
   -------------------------------------------------------------------------- */
.hero-section {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: calc(var(--header-height) + 3rem) 0 5rem 0;
  overflow: hidden;
  background: radial-gradient(circle at 50% 20%, rgba(13, 20, 36, 0.8) 0%, var(--bg-primary) 85%);
}

#laser-hero-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: auto;
}

.hero-content-wrapper {
  position: relative;
  z-index: 2;
  max-width: 860px;
  pointer-events: none; /* Let canvas receive mouse movement except on buttons */
}

.hero-content-wrapper * {
  pointer-events: auto;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  background: rgba(13, 17, 26, 0.8);
  border: 1px solid rgba(0, 255, 157, 0.4);
  padding: 0.45rem 1.2rem;
  border-radius: var(--radius-full);
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: var(--laser-emerald);
  margin-bottom: 2rem;
  box-shadow: 0 0 20px rgba(0, 255, 157, 0.15);
  backdrop-filter: blur(10px);
}

.hero-title {
  margin-bottom: 1.5rem;
  line-height: 1.08;
}

.hero-subtitle {
  font-size: clamp(1.1rem, 2vw, 1.35rem);
  line-height: 1.6;
  color: #cbd5e1;
  margin-bottom: 2.5rem;
  max-width: 680px;
}

.hero-cta-group {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  flex-wrap: wrap;
  margin-bottom: 3.5rem;
}

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

.stat-number {
  font-family: var(--font-display);
  font-size: 2.2rem;
  font-weight: 800;
  color: #fff;
  line-height: 1;
  margin-bottom: 0.35rem;
}

.stat-label {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Canvas Interaction Hint */
.canvas-hint {
  position: absolute;
  bottom: 2rem;
  right: 2rem;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--text-muted);
  background: rgba(13, 17, 26, 0.7);
  padding: 0.5rem 1rem;
  border-radius: var(--radius-full);
  border: 1px solid var(--border-subtle);
  pointer-events: none;
}

.canvas-hint-pulse {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--laser-cyan);
  box-shadow: 0 0 10px var(--laser-cyan);
  animation: pulse-dot 1.5s infinite;
}

/* --------------------------------------------------------------------------
   2. Interactive Laser Lab Simulator
   -------------------------------------------------------------------------- */
.simulator-container {
  background: linear-gradient(180deg, rgba(16, 22, 36, 0.9) 0%, rgba(10, 13, 22, 0.95) 100%);
  border: 1px solid rgba(0, 240, 255, 0.3);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.8), 0 0 30px rgba(0, 240, 255, 0.1);
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 2.5rem;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.simulator-canvas-frame {
  position: relative;
  width: 100%;
  height: 440px;
  background: #040508;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
  overflow: hidden;
  box-shadow: inset 0 0 40px rgba(0, 0, 0, 0.9);
}

#sim-canvas {
  width: 100%;
  height: 100%;
  display: block;
}

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

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

.sim-control-label {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: #cbd5e1;
}

.sim-control-val {
  color: var(--laser-cyan);
  font-weight: 700;
}

.sim-range {
  -webkit-appearance: none;
  width: 100%;
  height: 6px;
  background: #1e293b;
  border-radius: 3px;
  outline: none;
}

.sim-range::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--laser-cyan);
  cursor: pointer;
  box-shadow: 0 0 10px var(--laser-cyan);
  transition: transform 0.15s ease;
}

.sim-range::-webkit-slider-thumb:hover {
  transform: scale(1.2);
}

.sim-color-buttons {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.5rem;
  margin-top: 0.25rem;
}

.sim-color-btn {
  padding: 0.5rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  color: #cbd5e1;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  cursor: pointer;
  text-align: center;
  transition: var(--transition-fast);
}

.sim-color-btn.active,
.sim-color-btn:hover {
  border-color: currentColor;
  background: rgba(255, 255, 255, 0.1);
  box-shadow: 0 0 12px currentColor;
}

.sim-color-btn[data-color="emerald"] { color: var(--laser-emerald); }
.sim-color-btn[data-color="cyan"] { color: var(--laser-cyan); }
.sim-color-btn[data-color="magenta"] { color: var(--laser-magenta); }
.sim-color-btn[data-color="violet"] { color: var(--laser-violet); }

/* --------------------------------------------------------------------------
   3. Gallery Grid & Portfolio
   -------------------------------------------------------------------------- */
.gallery-filters {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-bottom: 3.5rem;
}

.gallery-filter-btn {
  background: rgba(16, 22, 36, 0.7);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  font-family: var(--font-mono);
  font-size: 0.85rem;
  padding: 0.6rem 1.4rem;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: var(--transition-fast);
}

.gallery-filter-btn:hover,
.gallery-filter-btn.active {
  background: rgba(0, 255, 157, 0.1);
  border-color: var(--laser-emerald);
  color: #fff;
  box-shadow: 0 0 15px rgba(0, 255, 157, 0.3);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
  gap: 2rem;
}

.gallery-item {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  cursor: pointer;
  aspect-ratio: 16 / 10;
  transition: var(--transition-normal);
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.gallery-item:hover {
  transform: translateY(-6px);
  border-color: rgba(0, 255, 157, 0.4);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.8), 0 0 25px rgba(0, 255, 157, 0.2);
}

.gallery-item:hover img {
  transform: scale(1.06);
}

.gallery-item-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 2rem 1.5rem 1.5rem 1.5rem;
  background: linear-gradient(180deg, transparent 0%, rgba(7, 9, 14, 0.95) 80%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  opacity: 0.9;
  transition: opacity var(--transition-fast);
}

.gallery-item-title {
  color: #fff;
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 0.3rem;
}

.gallery-item-category {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--laser-emerald);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.gallery-view-icon {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(7, 9, 14, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transform: scale(0.8);
  transition: var(--transition-fast);
}

.gallery-item:hover .gallery-view-icon {
  opacity: 1;
  transform: scale(1);
  background: var(--laser-emerald);
  color: #000;
  border-color: var(--laser-emerald);
}

/* --------------------------------------------------------------------------
   4. About & Registration Verification
   -------------------------------------------------------------------------- */
.reg-card {
  background: linear-gradient(135deg, rgba(16, 26, 44, 0.7) 0%, rgba(13, 17, 26, 0.9) 100%);
  border: 1px solid rgba(0, 255, 157, 0.3);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  position: relative;
  overflow: hidden;
}

.reg-card::after {
  content: 'CO. NO. 17410911';
  position: absolute;
  bottom: -20px;
  right: 20px;
  font-family: var(--font-display);
  font-size: 5rem;
  font-weight: 900;
  color: rgba(255, 255, 255, 0.02);
  pointer-events: none;
}

.reg-badge-header {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  margin-bottom: 1.5rem;
}

.companies-house-seal {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  border: 2px dashed var(--laser-emerald);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--laser-emerald);
  font-size: 1.8rem;
  box-shadow: 0 0 20px var(--laser-emerald-glow);
}

.spec-list {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.2rem;
  margin-top: 1.5rem;
}

.spec-item {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 1rem 1.2rem;
}

.spec-label {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  margin-bottom: 0.3rem;
}

.spec-value {
  font-weight: 700;
  color: #fff;
  font-size: 1rem;
}

/* --------------------------------------------------------------------------
   5. Contact Page & Map Frame
   -------------------------------------------------------------------------- */
.contact-layout {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 3.5rem;
  align-items: start;
}

.map-container {
  width: 100%;
  height: 380px;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border-subtle);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
  position: relative;
}

.map-container iframe {
  width: 100%;
  height: 100%;
  border: 0;
  filter: invert(90%) hue-rotate(180deg) contrast(1.1);
}

.contact-quick-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.2rem;
  margin-top: 2rem;
}

.quick-contact-box {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  transition: var(--transition-fast);
}

.quick-contact-box:hover {
  border-color: var(--laser-cyan);
  box-shadow: 0 0 20px rgba(0, 240, 255, 0.2);
  transform: translateY(-3px);
}

.quick-contact-box svg {
  width: 28px;
  height: 28px;
  color: var(--laser-cyan);
}

.quick-contact-label {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
}

.quick-contact-value {
  font-weight: 700;
  color: #fff;
  font-size: 1.05rem;
}

/* --------------------------------------------------------------------------
   6. Blog & Article Cards
   -------------------------------------------------------------------------- */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 2.2rem;
}

.blog-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: var(--transition-normal);
}

.blog-card:hover {
  transform: translateY(-6px);
  border-color: rgba(0, 255, 157, 0.35);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.7);
}

.blog-thumb {
  height: 200px;
  overflow: hidden;
  position: relative;
}

.blog-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.blog-card:hover .blog-thumb img {
  transform: scale(1.08);
}

.blog-content {
  padding: 2rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.blog-date {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--laser-cyan);
  margin-bottom: 0.6rem;
}

.blog-content h3 {
  font-size: 1.25rem;
  margin-bottom: 0.8rem;
}

.blog-content p {
  font-size: 0.92rem;
  margin-bottom: 1.5rem;
  flex-grow: 1;
}

/* --------------------------------------------------------------------------
   Responsive Adaptations
   -------------------------------------------------------------------------- */
@media (max-width: 1024px) {
  .simulator-container {
    grid-template-columns: 1fr;
  }
  .contact-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .hero-section {
    padding: calc(var(--header-height) + 2rem) 0 3.5rem 0;
    min-height: auto;
  }

  .hero-title {
    font-size: clamp(2.1rem, 8vw, 3rem);
  }

  .hero-subtitle {
    font-size: 1.02rem;
    line-height: 1.65;
    margin-bottom: 2rem;
  }

  .hero-cta-group {
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    gap: 0.9rem;
    margin-bottom: 2.5rem;
  }

  .hero-cta-group .btn {
    width: 100%;
  }

  .hero-stats {
    grid-template-columns: 1fr;
    gap: 1.25rem;
    padding-top: 1.5rem;
  }

  .canvas-hint {
    display: none;
  }

  .simulator-container {
    padding: 1.6rem 1.2rem;
    gap: 1.8rem;
  }

  .simulator-canvas-frame {
    height: 280px;
  }

  .sim-color-buttons {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.6rem;
  }

  .gallery-filters {
    gap: 0.5rem;
    justify-content: flex-start;
    overflow-x: auto;
    flex-wrap: nowrap;
    padding-bottom: 0.8rem;
    -webkit-overflow-scrolling: touch;
    width: 100%;
  }

  .gallery-filter-btn {
    white-space: nowrap;
    flex-shrink: 0;
    padding: 0.5rem 1.1rem;
    font-size: 0.8rem;
  }

  .gallery-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .contact-layout {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .contact-layout form div[style*="display:grid"] {
    grid-template-columns: 1fr !important;
  }

  .map-container {
    height: 280px;
  }

  .contact-quick-cards {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .reg-card {
    padding: 1.8rem 1.3rem;
  }

  .reg-card::after {
    display: none;
  }

  .spec-list {
    grid-template-columns: 1fr;
    gap: 0.8rem;
  }

  .blog-grid {
    grid-template-columns: 1fr;
    gap: 1.8rem;
  }
}

@media (max-width: 480px) {
  .section {
    padding: 4.2rem 0;
  }

  .section-sm {
    padding: 3rem 0;
  }

  .hero-title {
    font-size: 2rem;
  }

  .glass-panel {
    padding: 1.6rem 1.2rem;
  }

  .stat-number {
    font-size: 1.8rem;
  }
}
