/**
 * Laurijn Productions - Custom Styles
 * Bootstrap 5 overrides and brand customizations
 */

/* ==========================================================================
   CSS Variables - Brand Colors
   ========================================================================== */
html,
body {
  overflow-x: hidden;
}

:root {
  --lp-primary: #0000ff;
  --lp-secondary: #ff0000;
  --lp-dark: #1a1a2e;
  --lp-light: #f8f9fa;
  --lp-gray: #6c757d;
  --lp-white: #ffffff;
  --lp-gradient: linear-gradient(135deg, var(--lp-primary) 0%, #0033cc 100%);
  --lp-gradient-dark: linear-gradient(135deg, var(--lp-dark) 0%, #16213e 100%);
}

/* ==========================================================================
   Global Styles
   ========================================================================== */
html {
  scroll-behavior: smooth;
}

body {
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  color: #333;
  line-height: 1.6;
}

/* Selection color */
::selection {
  background-color: var(--lp-primary);
  color: var(--lp-white);
}

/* ==========================================================================
   Typography
   ========================================================================== */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-weight: 700;
  line-height: 1.3;
}

.text-primary {
  color: var(--lp-primary) !important;
}

.text-secondary {
  color: var(--lp-secondary) !important;
}

/* ==========================================================================
   Navbar
   ========================================================================== */
.navbar-lp {
  background-color: transparent;
  transition: all 0.3s ease;
}

.navbar-lp.scrolled {
  background-color: rgba(26, 26, 46, 0.95);
  backdrop-filter: blur(10px);
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
}

.navbar-lp .navbar-brand {
  font-weight: 700;
  font-size: 1.5rem;
  color: var(--lp-white);
}

.navbar-lp .nav-link {
  color: rgba(255, 255, 255, 0.9);
  font-weight: 500;
  padding: 0.5rem 1rem;
  transition: color 0.3s ease;
}

.navbar-lp .nav-link:hover,
.navbar-lp .nav-link.active {
  color: var(--lp-white);
}

.navbar-lp .nav-link.active::after {
  content: "";
  display: block;
  width: 100%;
  height: 2px;
  background-color: var(--lp-secondary);
  margin-top: 2px;
}

/* Navbar logo SVG */
.navbar-logo {
  height: 3rem;
  width: auto;
}

/* Responsive navbar brand - smaller on mobile */
.navbar-lp .navbar-brand span {
  font-size: 1rem;
}

@media (min-width: 576px) {
  .navbar-lp .navbar-brand span {
    font-size: 1.25rem;
  }
}

@media (min-width: 768px) {
  .navbar-lp .navbar-brand span {
    font-size: 1.5rem;
  }
}

/* Responsive navbar logo - smaller on mobile */
@media (max-width: 575.98px) {
  .navbar-logo {
    height: 30px;
  }
  .navbar-lp .navbar-brand {
    max-width: 180px;
  }
}

/* Navbar controls (theme toggle + lang switch on same row) */
.navbar-controls {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-left: 1rem;
}

@media (max-width: 991.98px) {
  .navbar-controls {
    margin: 1rem 0 0;
    justify-content: center;
    margin-left: 0;
  }
}

/* Theme toggle with label */
.theme-toggle-wrapper {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.theme-toggle-label {
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.8rem;
  white-space: nowrap;
}

@media (max-width: 991.98px) {
  .theme-toggle-wrapper {
    margin-top: 0.5rem;
    margin-bottom: 0.5rem;
  }

  /* Hamburger icon in brand blue */
  .navbar-lp .navbar-toggler {
    border-color: var(--lp-primary);
  }
  .navbar-lp .navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='%230000ff' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
  }

  /* Expanded navbar background slightly lighter than scrolled */
  .navbar-lp .navbar-collapse.show,
  .navbar-lp .navbar-collapse.collapsing {
    background-color: rgba(36, 36, 60, 0.98);
    border-radius: 0 0 0.5rem 0.5rem;
    padding: 0.5rem 1rem;
    margin-top: 0.5rem;
  }
}

[data-theme="dark"] .navbar-lp .navbar-collapse.show,
[data-theme="dark"] .navbar-lp .navbar-collapse.collapsing {
  background-color: rgba(30, 30, 30, 0.98);
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero {
  min-height: 100vh;
  background: var(--lp-gradient-dark);
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="50" cy="50" r="1" fill="rgba(255,255,255,0.1)"/></svg>');
  background-size: 50px 50px;
  opacity: 0.5;
}

.hero-content {
  position: relative;
  z-index: 1;
}

.hero h1 {
  font-size: 3rem;
  margin-bottom: 1.5rem;
}

.hero p.lead {
  font-size: 1.25rem;
  opacity: 0.9;
}

@media (min-width: 768px) {
  .hero h1 {
    font-size: 3.5rem;
  }
}

@media (min-width: 992px) {
  .hero h1 {
    font-size: 4rem;
  }
}

/* Hero page-specific (smaller for subpages) */
.hero-sm {
  min-height: 50vh;
  padding-top: 90px;
  padding-bottom: 3rem;
  align-items: flex-start;
}

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn-primary {
  background-color: var(--lp-primary);
  border-color: var(--lp-primary);
}

.btn-primary:hover {
  background-color: #0000cc;
  border-color: #0000cc;
}

.btn-secondary {
  background-color: var(--lp-secondary);
  border-color: var(--lp-secondary);
}

.btn-secondary:hover {
  background-color: #cc0000;
  border-color: #cc0000;
}

.btn-outline-primary {
  color: var(--lp-primary);
  border-color: var(--lp-primary);
}

.btn-outline-primary:hover {
  background-color: var(--lp-primary);
  border-color: var(--lp-primary);
}

.btn-lp {
  padding: 0.75rem 2rem;
  font-weight: 600;
  border-radius: 50px;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: all 0.3s ease;
}

.btn-lp:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 20px rgba(0, 0, 255, 0.3);
}

.btn-lp-white {
  background-color: var(--lp-white);
  color: var(--lp-primary);
}

.btn-lp-white:hover {
  background-color: var(--lp-light);
  color: var(--lp-primary);
}

/* ==========================================================================
   Sections
   ========================================================================== */
.section {
  padding: 5rem 0;
}

.section-dark {
  background: var(--lp-gradient-dark);
  color: var(--lp-white);
}

.section-light {
  background-color: var(--lp-light);
}

.section-primary {
  background: var(--lp-gradient);
  color: var(--lp-white);
}

/* Section headers */
.section-header {
  margin-bottom: 3rem;
}

.section-header h2 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.section-header p {
  font-size: 1.1rem;
  opacity: 0.8;
}

/* Divider */
.divider {
  width: 80px;
  height: 4px;
  background: var(--lp-gradient);
  margin: 1.5rem auto;
  border-radius: 2px;
}

.divider-light {
  background: var(--lp-white);
}

.divider-left {
  margin-left: 0;
}

/* ==========================================================================
   Cards
   ========================================================================== */
.card-lp {
  border: none;
  border-radius: 1rem;
  box-shadow: 0 5px 30px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
  overflow: hidden;
}

.card-lp:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.12);
}

.card-lp .card-img-top {
  height: 200px;
  object-fit: cover;
}

.card-lp .card-body {
  padding: 1.5rem;
}

.card-lp .card-title {
  font-weight: 700;
  margin-bottom: 0.75rem;
}

/* Service cards */
.service-card {
  text-align: center;
  padding: 2rem;
}

.icon {
  width: 80px;
  height: 80px;
  background: var(--lp-gradient);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
  font-size: 2rem;
  color: var(--lp-white);
}

.service-card h3 {
  font-size: 1.25rem;
  margin-bottom: 1rem;
}

/* Usecase cards */
.usecase-card {
  height: 100%;
}

.usecase-card .badge {
  font-size: 0.75rem;
  font-weight: 500;
}

/* Inventory cards */
.inventory-card {
  height: 100%;
}

.inventory-card .card-img-top {
  height: 180px;
  object-fit: contain;
  padding: 0.5rem;
  background-color: #ffffff;
}

.inventory-card .specs {
  font-size: 0.875rem;
  color: var(--lp-gray);
}

.inventory-card .availability {
  font-size: 0.875rem;
  font-weight: 600;
}

.inventory-card .availability.available {
  color: #28a745;
}

.inventory-card .availability.limited {
  color: #ffc107;
}

.inventory-card .availability.unavailable {
  color: #dc3545;
}

/* ==========================================================================
   Feature boxes
   ========================================================================== */
.feature-box {
  text-align: center;
  padding: 2rem 1rem;
}

.feature-box .icon {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.feature-box h4 {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
}

.feature-box p {
  font-size: 0.9rem;
  color: var(--lp-gray);
  margin-bottom: 0;
}

/* ==========================================================================
   CTA Section
   ========================================================================== */
.cta-section {
  background: var(--lp-gradient);
  padding: 4rem 0;
}

.cta-section h2 {
  font-size: 2rem;
  margin-bottom: 1rem;
}

/* ==========================================================================
   Filter buttons
   ========================================================================== */
.filter-buttons .btn {
  margin: 0.25rem;
}

.filter-buttons .btn.active {
  background-color: var(--lp-primary);
  color: var(--lp-white);
}

/* ==========================================================================
   Search and filters
   ========================================================================== */
.search-box {
  position: relative;
}

.search-box .form-control {
  padding-left: 2.5rem;
  border-radius: 50px;
}

.search-box .search-icon {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--lp-gray);
}

/* ==========================================================================
   FAQ Accordion
   ========================================================================== */
.accordion-lp .accordion-button {
  font-weight: 600;
  color: var(--lp-dark);
}

.accordion-lp .accordion-button:not(.collapsed) {
  background-color: rgba(0, 0, 255, 0.05);
  color: var(--lp-primary);
}

.accordion-lp .accordion-button:focus {
  box-shadow: 0 0 0 0.25rem rgba(0, 0, 255, 0.25);
}

/* ==========================================================================
   Forms
   ========================================================================== */
.form-control:focus,
.form-select:focus {
  border-color: var(--lp-primary);
  box-shadow: 0 0 0 0.25rem rgba(0, 0, 255, 0.25);
}

.form-check-input:checked {
  background-color: var(--lp-primary);
  border-color: var(--lp-primary);
}

/* ==========================================================================
   Footer
   ========================================================================== */
.footer {
  background-color: var(--lp-dark);
  color: rgba(255, 255, 255, 0.8);
  padding: 4rem 0 2rem;
}

.footer h5 {
  color: var(--lp-white);
  font-weight: 600;
  margin-bottom: 1.5rem;
}

.footer a {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer a:hover {
  color: var(--lp-white);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 2rem;
  margin-top: 3rem;
}

.social-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  margin-right: 0.5rem;
  font-size: 1.1rem;
  transition: all 0.3s ease;
}

.social-links a:hover {
  background-color: var(--lp-primary);
  color: var(--lp-white);
}

/* ==========================================================================
   Breadcrumb
   ========================================================================== */
.breadcrumb-lp {
  background-color: transparent;
  padding: 0;
  margin-bottom: 0;
}

.breadcrumb-lp .breadcrumb-item a {
  color: rgba(255, 255, 255, 0.7);
}

.breadcrumb-lp .breadcrumb-item.active {
  color: var(--lp-white);
}

.breadcrumb-lp .breadcrumb-item + .breadcrumb-item::before {
  color: rgba(255, 255, 255, 0.5);
}

/* ==========================================================================
   Animations
   ========================================================================== */
.fade-in {
  animation: fadeIn 0.6s ease forwards;
}

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

/* Staggered animation for cards */
.card-lp:nth-child(1) {
  animation-delay: 0.1s;
}
.card-lp:nth-child(2) {
  animation-delay: 0.2s;
}
.card-lp:nth-child(3) {
  animation-delay: 0.3s;
}
.card-lp:nth-child(4) {
  animation-delay: 0.4s;
}
.card-lp:nth-child(5) {
  animation-delay: 0.5s;
}
.card-lp:nth-child(6) {
  animation-delay: 0.6s;
}

/* ==========================================================================
   Utilities
   ========================================================================== */
.bg-gradient-primary {
  background: var(--lp-gradient) !important;
}

.bg-gradient-dark {
  background: var(--lp-gradient-dark) !important;
}

.text-gradient {
  background: var(--lp-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Spacing */
.py-6 {
  padding-top: 5rem;
  padding-bottom: 5rem;
}

.py-7 {
  padding-top: 6rem;
  padding-bottom: 6rem;
}

/* ==========================================================================
   Partner page specifics
   ========================================================================== */
.partner-benefit {
  display: flex;
  align-items: flex-start;
  text-align: left;
  margin-bottom: 0;
}

.partner-benefit > div:last-child {
  flex: 1;
  min-width: 0;
}

.partner-benefit .icon {
  flex-shrink: 0;
  width: 50px;
  height: 50px;
  background: var(--lp-gradient);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--lp-white);
  margin-right: 1rem;
}

.partner-benefit h5 {
  font-size: 1.1rem;
  margin-bottom: 0.25rem;
}

.partner-benefit p {
  margin-bottom: 0;
  color: var(--lp-gray);
}

/* ==========================================================================
   Contact info boxes
   ========================================================================== */
.contact-info-box {
  text-align: center;
  padding: 2rem;
}

.contact-info-box .icon {
  font-size: 2.5rem;
  color: var(--lp-primary);
  margin-bottom: 1rem;
}

.contact-info-box h5 {
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.contact-info-box a {
  color: var(--lp-gray);
  text-decoration: none;
}

.contact-info-box a:hover {
  color: var(--lp-primary);
}

/* ==========================================================================
   Responsive adjustments
   ========================================================================== */
@media (max-width: 767.98px) {
  .hero h1 {
    font-size: 2rem;
  }

  .section {
    padding: 3rem 0;
  }

  .section-header h2 {
    font-size: 1.75rem;
  }

  .footer {
    text-align: center;
  }

  .footer .social-links {
    justify-content: center;
  }
}

/* ==========================================================================
   Print styles
   ========================================================================== */
@media print {
  .navbar-lp,
  .footer,
  .btn {
    display: none !important;
  }

  .hero {
    min-height: auto;
    padding: 2rem 0;
  }
}

/* ==========================================================================
   Hero Background Images (Dynamic per page)
   ========================================================================== */
.hero {
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

/* Hero with image overlay for text readability */
.hero.hero-bg::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    135deg,
    rgba(26, 26, 46, 0.85) 0%,
    rgba(0, 0, 51, 0.75) 100%
  );
  z-index: 0;
}

/* ==========================================================================
   Hero Animations
   ========================================================================== */
.hero-content {
  opacity: 0;
}

.hero-content.animate-in {
  animation: heroContentIn 0.8s ease-out forwards;
}

.hero-content h1 {
  opacity: 0;
  transform: translateY(30px);
}

.hero-content.animate-in h1 {
  animation: heroElementIn 0.6s ease-out 0.2s forwards;
}

.hero-content p {
  opacity: 0;
  transform: translateY(20px);
}

.hero-content.animate-in p {
  animation: heroElementIn 0.6s ease-out 0.4s forwards;
}

.hero-content .breadcrumb {
  opacity: 0;
  transform: translateY(10px);
}

.hero-content.animate-in .breadcrumb {
  animation: heroElementIn 0.5s ease-out 0.1s forwards;
}

.hero-content .btn,
.hero-content .d-flex {
  opacity: 0;
  transform: translateY(20px);
}

.hero-content.animate-in .btn,
.hero-content.animate-in .d-flex {
  animation: heroElementIn 0.6s ease-out 0.6s forwards;
}

@keyframes heroContentIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

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

/* ==========================================================================
   Navbar Animations
   ========================================================================== */
.navbar-lp .navbar-brand {
  opacity: 0;
  transform: translateY(-10px);
}

.navbar-lp.animate-in .navbar-brand {
  animation: navItemIn 0.5s ease-out forwards;
}

.navbar-lp .nav-item {
  opacity: 0;
  transform: translateY(-10px);
}

.navbar-lp.animate-in .nav-item:nth-child(1) {
  animation: navItemIn 0.4s ease-out 0.1s forwards;
}
.navbar-lp.animate-in .nav-item:nth-child(2) {
  animation: navItemIn 0.4s ease-out 0.15s forwards;
}
.navbar-lp.animate-in .nav-item:nth-child(3) {
  animation: navItemIn 0.4s ease-out 0.2s forwards;
}
.navbar-lp.animate-in .nav-item:nth-child(4) {
  animation: navItemIn 0.4s ease-out 0.25s forwards;
}
.navbar-lp.animate-in .nav-item:nth-child(5) {
  animation: navItemIn 0.4s ease-out 0.3s forwards;
}
.navbar-lp.animate-in .nav-item:nth-child(6) {
  animation: navItemIn 0.4s ease-out 0.35s forwards;
}
.navbar-lp.animate-in .nav-item:nth-child(7) {
  animation: navItemIn 0.4s ease-out 0.4s forwards;
}
.navbar-lp.animate-in .nav-item:nth-child(8) {
  animation: navItemIn 0.4s ease-out 0.45s forwards;
}

@keyframes navItemIn {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ==========================================================================
   Reduced Motion Support
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .hero-content,
  .hero-content h1,
  .hero-content p,
  .hero-content .breadcrumb,
  .hero-content .btn,
  .hero-content .d-flex,
  .navbar-lp .navbar-brand,
  .navbar-lp .nav-item {
    opacity: 1 !important;
    transform: none !important;
    animation: none !important;
  }
}

/* ==========================================================================
   Theme Switch (button group, same style as lang-switch)
   ========================================================================== */
.theme-switch {
  display: flex;
  align-items: center;
  gap: 0;
}

.theme-switch .btn {
  padding: 0.25rem 0.5rem;
  font-size: 0.8rem;
  font-weight: 600;
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: rgba(255, 255, 255, 0.8);
  background: transparent;
  transition: all 0.3s ease;
}

.theme-switch .btn:hover {
  background: rgba(255, 255, 255, 0.1);
  color: var(--lp-white);
}

.theme-switch .btn.active {
  background: var(--lp-primary);
  border-color: var(--lp-primary);
  color: var(--lp-white);
}

.theme-switch .btn:first-child {
  border-radius: 4px 0 0 4px;
}

.theme-switch .btn:last-child {
  border-radius: 0 4px 4px 0;
  margin-left: -1px;
}

/* Legacy theme-toggle (kept for compatibility) */
.theme-toggle {
  background: transparent;
  border: none;
  color: rgba(255, 255, 255, 0.9);
  cursor: pointer;
  padding: 0.5rem;
  font-size: 1.2rem;
  transition:
    color 0.3s ease,
    transform 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.theme-toggle:hover {
  color: var(--lp-white);
  transform: rotate(15deg);
}

.theme-toggle .bi-sun-fill {
  display: none;
}

.theme-toggle .bi-moon-fill {
  display: inline-block;
}

/* ==========================================================================
   Dark Theme
   ========================================================================== */
[data-theme="dark"] {
  --lp-light: #1a1a2e;
  --lp-white: #f8f9fa;
  --bs-body-bg: #121212;
  --bs-body-color: #e0e0e0;
}

[data-theme="dark"] body {
  background-color: #121212;
  color: #e0e0e0;
}

[data-theme="dark"] .section {
  background-color: #121212;
}

[data-theme="dark"] .section-light {
  background-color: #1a1a2e;
}

[data-theme="dark"] .card-lp {
  background-color: #1e1e2f;
  color: #e0e0e0;
  box-shadow: 0 5px 30px rgba(0, 0, 0, 0.3);
}

[data-theme="dark"] .card-lp:hover {
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4);
}

[data-theme="dark"] .text-muted {
  color: #a0a0a0 !important;
}

[data-theme="dark"] h1,
[data-theme="dark"] h2,
[data-theme="dark"] h3,
[data-theme="dark"] h4,
[data-theme="dark"] h5,
[data-theme="dark"] h6 {
  color: #f0f0f0;
}

[data-theme="dark"] .form-control,
[data-theme="dark"] .form-select {
  background-color: #2a2a3e;
  border-color: #3a3a4e;
  color: #e0e0e0;
}

[data-theme="dark"] .form-control:focus,
[data-theme="dark"] .form-select:focus {
  background-color: #2a2a3e;
  border-color: var(--lp-primary);
  color: #e0e0e0;
}

[data-theme="dark"] .form-control::placeholder {
  color: #808080;
}

[data-theme="dark"] .accordion-item {
  background-color: #1e1e2f;
  border-color: #3a3a4e;
}

[data-theme="dark"] .accordion-button {
  background-color: #1e1e2f;
  color: #e0e0e0;
}

[data-theme="dark"] .accordion-button:not(.collapsed) {
  background-color: rgba(0, 0, 255, 0.1);
  color: var(--lp-primary);
}

[data-theme="dark"] .accordion-body {
  background-color: #1e1e2f;
  color: #c0c0c0;
}

[data-theme="dark"] .bg-light {
  background-color: #1e1e2f !important;
}

[data-theme="dark"] .border-bottom {
  border-color: #3a3a4e !important;
}

[data-theme="dark"] .theme-toggle .bi-sun-fill {
  display: inline-block;
}

[data-theme="dark"] .theme-toggle .bi-moon-fill {
  display: none;
}

[data-theme="dark"] .navbar-lp.scrolled {
  background-color: rgba(18, 18, 18, 0.95);
}

[data-theme="dark"] .feature-box .icon {
  color: #6b8aff;
}

[data-theme="dark"] .product-image-placeholder {
  background: #2a2a3e;
}

[data-theme="dark"] .product-image {
  background: #ffffff;
}

[data-theme="dark"] .inventory-card .card-img-top {
  background-color: #ffffff;
}

[data-theme="dark"] .product-related-card .card-img-top {
  background: #ffffff;
}

[data-theme="dark"] .category-card .card-icon {
  color: #6b8aff;
}

/* ==========================================================================
   Language Switcher
   ========================================================================== */
.lang-switch {
  display: flex;
  align-items: center;
  gap: 0;
}

.lang-switch .btn {
  padding: 0.25rem 0.5rem;
  font-size: 0.8rem;
  font-weight: 600;
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: rgba(255, 255, 255, 0.8);
  background: transparent;
  transition: all 0.3s ease;
}

.lang-switch .btn:hover {
  background: rgba(255, 255, 255, 0.1);
  color: var(--lp-white);
}

.lang-switch .btn.active {
  background: var(--lp-primary);
  border-color: var(--lp-primary);
  color: var(--lp-white);
}

.lang-switch .btn:first-child {
  border-radius: 4px 0 0 4px;
}

.lang-switch .btn:last-child {
  border-radius: 0 4px 4px 0;
  margin-left: -1px;
}

/* ==========================================================================
   Language Visibility (CSS-based i18n)
   ========================================================================== */
/* Hide English text when Dutch is active (default) */
.lang-nl .t.en,
html:not(.lang-en) .t.en {
  display: none !important;
}

/* Hide Dutch text when English is active */
.lang-en .t.nl {
  display: none !important;
}

/* Ensure language text elements don't break layout */
.t {
  /* Inline elements stay inline, block stay block */
}

/* For elements that need block display */
.t-block {
  display: block;
}

.lang-nl .t-block.en,
html:not(.lang-en) .t-block.en {
  display: none !important;
}

.lang-en .t-block.nl {
  display: none !important;
}

/* ==========================================================================
   Filter Buttons Spacing (usecases)
   ========================================================================== */
.usecase-filters .btn {
  margin: 0.25rem 0.35rem;
}
.usecase-hero {
  background: var(--lp-gray);
  padding: 120px 0 60px;
  color: white;
}

/* ==========================================================================
   Usecase Detail Page
   ========================================================================== */

.category-badge {
  display: inline-block;
  padding: 0.35rem 0.75rem;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 2rem;
  font-size: 0.85rem;
  margin-right: 0.5rem;
  margin-bottom: 0.5rem;
}

.usecase-content {
  background: var(--lp-white);
  border-radius: 1rem;
  padding: 2rem;
  margin-top: -40px;
  position: relative;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.usecase-section {
  margin-bottom: 2rem;
}

.usecase-section h2 {
  font-size: 1.5rem;
  color: var(--lp-dark);
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--lp-primary);
  display: inline-block;
}

/* Image gallery */
.image-gallery {
  margin: 2rem 0;
}

.gallery-main {
  border-radius: 0.5rem;
  overflow: hidden;
  margin-bottom: 1rem;
}

.gallery-main img {
  width: 100%;
  height: 400px;
  object-fit: cover;
  cursor: pointer;
}

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

.gallery-thumb {
  aspect-ratio: 1;
  border-radius: 0.25rem;
  overflow: hidden;
  cursor: pointer;
  opacity: 0.7;
  transition: opacity 0.2s;
}

.gallery-thumb:hover,
.gallery-thumb.active {
  opacity: 1;
}

.gallery-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Lightbox */
.lightbox-modal .modal-dialog {
  max-width: 90vw;
}

.lightbox-modal .modal-content {
  background: transparent;
  border: none;
}

.lightbox-modal .modal-body {
  padding: 0;
}

.lightbox-modal img {
  max-height: 85vh;
  max-width: 100%;
  object-fit: contain;
  margin: 0 auto;
  display: block;
}

.lightbox-modal .btn-close {
  position: absolute;
  top: -40px;
  right: 0;
  background-color: white;
  border-radius: 50%;
  padding: 0.5rem;
  opacity: 0.8;
  z-index: 10;
}

.lightbox-caption {
  text-align: center;
  color: white;
  padding: 1rem;
  background: rgba(0, 0, 0, 0.7);
  border-radius: 0.5rem;
  margin-top: 0.5rem;
}

/* Related usecases */
.related-card {
  transition: transform 0.2s;
  text-decoration: none;
  color: inherit;
  display: block;
}

.related-card:hover {
  transform: translateY(-4px);
}

.related-card .card-img-top {
  height: 150px;
  object-fit: cover;
}

.related-placeholder {
  height: 150px;
  background: linear-gradient(135deg, var(--lp-dark), var(--lp-primary));
  display: flex;
  align-items: center;
  justify-content: center;
}

.related-placeholder i {
  font-size: 2.5rem;
  color: rgba(255, 255, 255, 0.5);
}

/* CTA box (used on detail pages) */
.cta-box {
  background: var(--lp-primary);
  color: white;
  padding: 2rem;
  border-radius: 1rem;
  text-align: center;
}

.cta-box h3 {
  margin-bottom: 1rem;
}

.cta-box .btn {
  margin: 0.25rem;
}

[data-theme="dark"] .usecase-content {
  background: #1e1e2f;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

[data-theme="dark"] .usecase-section h2 {
  color: #e0e0e0;
}

[data-theme="dark"] .related-card {
  color: #e0e0e0;
}

/* ==========================================================================
   Product Detail Page
   ========================================================================== */
.product-hero,
.led-showcase {
  background: var(--lp-gray);
  padding: 100px 0 40px;
  color: white;
}

.product-image-container {
  background: var(--lp-white);
  border-radius: 1rem;
  padding: 1rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.product-main-image {
  width: 100%;
  max-height: 400px;
  object-fit: contain;
  cursor: pointer;
  border-radius: 0.5rem;
}

.product-image-placeholder {
  height: 300px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--lp-light);
  border-radius: 0.5rem;
}

.product-image-placeholder i {
  font-size: 4rem;
  color: var(--lp-gray);
}

.product-info {
  background: var(--lp-white);
  border-radius: 1rem;
  padding: 2rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.product-type-badge {
  font-size: 0.85rem;
  padding: 0.5rem 1rem;
}

.product-section {
  margin-top: 2rem;
}

.product-section h2 {
  font-size: 1.25rem;
  color: var(--lp-dark);
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--lp-primary);
  display: inline-block;
}

.bundle-item {
  display: flex;
  align-items: center;
  padding: 0.75rem;
  background: var(--lp-light);
  border-radius: 0.5rem;
  margin-bottom: 0.5rem;
}

.bundle-item img {
  width: 50px;
  height: 50px;
  object-fit: contain;
  margin-right: 1rem;
  border-radius: 0.25rem;
  background: var(--lp-white);
}

.bundle-item-placeholder {
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--lp-light);
  margin-right: 1rem;
  border-radius: 0.25rem;
}

/* Product related cards */
.product-related-card {
  transition: transform 0.2s;
  text-decoration: none;
  color: inherit;
}

.product-related-card:hover {
  transform: translateY(-4px);
}

.product-related-card .card-img-top {
  height: 120px;
  object-fit: contain;
  padding: 0.5rem;
  background: #ffffff;
}

[data-theme="dark"] .product-image-container {
  background: #ffffff;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

[data-theme="dark"] .product-info {
  background: #1e1e2f;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

[data-theme="dark"] .bundle-item {
  background: #2a2a3e;
}

[data-theme="dark"] .bundle-item img,
[data-theme="dark"] .bundle-item-placeholder {
  background: #2a2a3e;
}

[data-theme="dark"] .product-section h2 {
  color: #e0e0e0;
}

[data-theme="dark"] .product-image-placeholder i {
  color: #555;
}

[data-theme="dark"] .product-related-card {
  color: #e0e0e0;
}

[data-theme="dark"] .product-related-card .card-img-top {
  background: #2a2a3e;
}

/* ==========================================================================
   Usecase Preview Card on Homepage
   ========================================================================== */
.usecase-home-card {
  text-decoration: none;
  color: inherit;
  display: block;
  height: 100%;
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease;
}

.usecase-home-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
  color: inherit;
}

.usecase-home-card .card-img-top {
  height: 200px;
  object-fit: cover;
}

.usecase-home-card .card-img-placeholder {
  height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.usecase-home-card .card-img-placeholder i {
  font-size: 4rem;
  opacity: 0.7;
}
