/* NKM Enterprises - Theme from logo: vibrant blue, dark gray, light gray, black */
:root {
  --nkm-primary: #2563eb;
  --nkm-primary-dark: #1d4ed8;
  --nkm-secondary: #4b5563;
  --nkm-light: #9ca3af;
  --nkm-dark: #0f172a;
  --nkm-bg: #f8fafc;
}

* {
  scroll-margin-top: 80px;
}

body {
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--nkm-dark);
  background: var(--nkm-bg);
  overflow-x: hidden;
}

/* Header */
.header {
  background: var(--nkm-dark);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.15);
  padding: 0.5rem 0;
}

.header-logo {
  height: 48px;
  width: auto;
  max-width: 220px;
  object-fit: contain;
}

.navbar-dark .nav-link {
  color: rgba(255, 255, 255, 0.9) !important;
  font-weight: 500;
  padding: 0.5rem 0.75rem !important;
  border-radius: 6px;
  transition: color 0.2s, background 0.2s;
}

.navbar-dark .nav-link:hover,
.navbar-dark .nav-link:focus {
  color: #fff !important;
  background: rgba(37, 99, 235, 0.25);
}

.navbar-toggler {
  padding: 0.4rem 0.6rem;
}

.navbar-toggler:focus {
  box-shadow: 0 0 0 2px var(--nkm-primary);
}

/* Mobile sidebar (offcanvas from left) */
.nav-sidebar {
  background: var(--nkm-dark);
  color: var(--nkm-light);
  max-width: 280px;
}

.nav-sidebar .offcanvas-header {
  padding: 1.25rem 1.25rem 1rem;
}

.nav-sidebar-logo {
  height: 50px;
  width: auto;
  max-width: 200px;
  object-fit: contain;
}

.nav-sidebar .btn-close {
  padding: 0.5rem;
  font-size: 0.75rem;
}

.nav-sidebar-links .nav-link {
  color: rgba(255, 255, 255, 0.9);
  font-weight: 500;
  padding: 0.65rem 0.75rem;
  border-radius: 8px;
  font-size: 1rem;
  transition: color 0.2s, background 0.2s;
}

.nav-sidebar-links .nav-link:hover,
.nav-sidebar-links .nav-link:focus {
  color: #fff;
  background: rgba(37, 99, 235, 0.25);
}

.nav-sidebar-links .nav-link.active {
  color: #fff;
  background: rgba(37, 99, 235, 0.3);
}

/* Banner Carousel */
.banner-section {
  margin-top: 80px;
}

.banner-section .carousel,
.banner-section .carousel-inner,
.banner-section .carousel-item {
  min-height: 500px;
  height: 500px;
}

.banner-section .carousel-item {
  overflow: hidden;
}

.banner-slide {
  min-height: 500px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  position: relative;
}

/* First slide: banner image - ensure it displays properly */
.banner-slide-img {
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.banner-slide::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.85) 0%, rgba(15, 23, 42, 0.6) 100%);
  z-index: 0;
}

/* First slide uses banner image - lighter overlay so image is visible */
.banner-slide-img::before {
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.35) 0%, rgba(15, 23, 42, 0.2) 100%);
}

.banner-slide-1 {
  background: linear-gradient(135deg, var(--nkm-dark) 0%, #1e293b 50%, #334155 100%);
}

.banner-slide-2 {
  background: linear-gradient(135deg, #1e3a5f 0%, var(--nkm-dark) 50%, #1e293b 100%);
}

.banner-slide-3 {
  background: linear-gradient(135deg, #334155 0%, #1e3a5f 50%, var(--nkm-dark) 100%);
}

/* Fixed caption position - no moving/jumping when slides change */
.banner-section .carousel-caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  top: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 1;
  padding: 2rem;
  text-align: center;
  transform: none; /* prevent Bootstrap slide transition from moving text */
}

.carousel-caption h1 {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 700;
  color: #fff;
  margin-bottom: 0.5rem;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.carousel-caption .lead {
  color: var(--nkm-light);
  font-size: 1.1rem;
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
  width: 2rem;
  height: 2rem;
  background-color: rgba(37, 99, 235, 0.8);
  border-radius: 50%;
  padding: 0.5rem;
}

.carousel-indicators button {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background-color: var(--nkm-primary);
  opacity: 0.6;
}

.carousel-indicators button.active {
  opacity: 1;
  transform: scale(1.2);
}

.btn-primary {
  background: var(--nkm-primary);
  border-color: var(--nkm-primary);
}

.btn-primary:hover {
  background: var(--nkm-primary-dark);
  border-color: var(--nkm-primary-dark);
}

.btn-outline-light:hover {
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
}

/* Sections */
.section {
  padding: 4rem 0;
}

.section-badge {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--nkm-primary);
  margin-bottom: 0.5rem;
}

.section-title {
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  font-weight: 700;
  color: var(--nkm-dark);
  margin-bottom: 0.75rem;
}

.section-subtitle {
  color: var(--nkm-secondary);
  max-width: 560px;
  margin: 0 auto;
}

/* Products */
/* Product category filter */
.product-filter {
  display: flex;
  gap: 0.5rem;
}

.btn-filter {
  padding: 0.5rem 1rem;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--nkm-secondary);
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  transition: color 0.2s, background 0.2s, border-color 0.2s;
}

.btn-filter:hover {
  color: var(--nkm-primary);
  border-color: var(--nkm-primary);
  background: rgba(37, 99, 235, 0.05);
}

.btn-filter.active {
  color: #fff;
  background: var(--nkm-primary);
  border-color: var(--nkm-primary);
}

.products-section {
  background: #fff;
}

.product-card {
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}

.product-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 24px rgba(15, 23, 42, 0.1);
  border-color: var(--nkm-primary);
}

.product-img-wrap {
  height: 200px;
  overflow: hidden;
  background: #f1f5f9;
}

.product-card .card-img-top {
  height: 100%;
  object-fit: contain;
  transition: transform 0.3s;
  mix-blend-mode: darken;

}

.product-card:hover .card-img-top {
  transform: scale(1.05);
}

.product-card .card-title {
  color: var(--nkm-dark);
  font-weight: 600;
}

/* Show All products */
.product-item-extra {
  display: none;
}

.products-section.show-all .product-item-extra {
  display: block;
}

.btn-show-all {
  min-width: 200px;
}

/* Services */
.services-section {
  background: var(--nkm-bg);
}

.service-card {
  border-radius: 12px;
  transition: transform 0.2s, box-shadow 0.2s;
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 24px rgba(15, 23, 42, 0.1) !important;
}

.service-icon {
  width: 56px;
  height: 56px;
  background: rgba(37, 99, 235, 0.1);
  color: var(--nkm-primary);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
}

.service-card .card-title {
  color: var(--nkm-dark);
  font-weight: 600;
}

/* About */
.about-section {
  background: var(--nkm-bg);
}

.about-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Contact */
.contact-section {
  background: #fff;
}

.contact-card {
  border-radius: 12px;
  transition: transform 0.2s, box-shadow 0.2s;
}

.contact-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.08) !important;
}

.contact-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto;
  background: rgba(37, 99, 235, 0.1);
  color: var(--nkm-primary);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
}

.contact-card .card-title {
  color: var(--nkm-dark);
  font-weight: 600;
}

.contact-card a {
  color: var(--nkm-primary) !important;
}

.contact-card a:hover {
  text-decoration: underline !important;
}

/* Modal */
.modal-content {
  border: none;
  border-radius: 12px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.modal-header {
  padding: 1.25rem 1.5rem 0;
}

.modal-body {
  padding: 0 1.5rem 1.5rem;
}

/* Product modal - full size image only */
#productModal .modal-content {
  box-shadow: none;
  background: transparent;
}

#productModal .modal-body {
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 70vh;
}

.product-modal-img {
  max-width: 100%;
  width: auto;
  max-height: 90vh;
  height: auto;
  object-fit: contain;
  display: block;
  margin: 0 auto;
}

#productModal .modal-backdrop {
  background-color: rgba(0, 0, 0, 0.85);
}

#productModal .product-modal-close {
  background: rgba(0, 0, 0, 0.5);
  border-radius: 50%;
  padding: 0.5rem;
  opacity: 1;
  display: flex;
    align-items: center;
    justify-content: center;
}

#productModal .product-modal-close:hover {
  background: rgba(0, 0, 0, 0.7);
}

/* Floating WhatsApp button */
.whatsapp-float {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  width: 56px;
  height: 56px;
  background-color: #25d366;
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
  box-shadow: 0 4px 12px rgba(37, 211, 102, 0.4);
  z-index: 999;
  transition: transform 0.2s, box-shadow 0.2s;
}

.whatsapp-float:hover {
  color: #fff;
  transform: scale(1.08);
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.5);
}

/* Footer */
.footer {
  background: var(--nkm-dark);
  color: var(--nkm-light);
}

.footer-brand {
  display: inline-block;
}

.footer-logo {
  height: 48px;
  width: auto;
  max-width: 220px;
  object-fit: contain;
}

.footer-tagline {
  font-weight: 600;
  font-size: 1.05rem;
}

.footer-about {
  line-height: 1.6;
  max-width: 320px;
}

.footer-heading {
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.footer-links li {
  margin-bottom: 0.5rem;
}

.footer-links a {
  color: var(--nkm-light);
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.2s;
}

.footer-links a:hover {
  color: #fff;
  text-decoration: underline;
}

.footer-contact li {
  margin-bottom: 0.75rem;
  font-size: 0.9rem;
  color: var(--nkm-light);
}

.footer-contact a {
  color: var(--nkm-light);
  text-decoration: none;
  transition: color 0.2s;
}

.footer-contact a:hover {
  color: var(--nkm-primary);
}

.footer-contact .bi {
  color: var(--nkm-primary);
  font-size: 1rem;
  flex-shrink: 0;
}

.footer-services li {
  margin-bottom: 0.4rem;
  line-height: 1.5;
}

.footer-services li::before {
  content: "• ";
  color: var(--nkm-primary);
  font-weight: bold;
}

.footer-bottom {
  margin-top: 0;
}

/* Smooth scroll */
html {
  scroll-behavior: smooth;
}

/* Responsive */
@media (max-width: 991.98px) {
  .banner-section .carousel,
  .banner-section .carousel-inner,
  .banner-section .carousel-item,
  .banner-slide {
    min-height: 320px;
    height: 320px;
  }
}

/* Mobile: smaller banner height, image fits without cutting, use mobile banner images */
@media (max-width: 767.98px) {
  .banner-section .carousel,
  .banner-section .carousel-inner,
  .banner-section .carousel-item,
  .banner-slide {
    min-height: 280px;
    height: 280px;
  }

  .banner-section .banner-slide-img {
    background-size: contain;
    background-color: var(--nkm-dark);
  }

  /* Mobile-specific banner images (from assets/banner/) */
  .banner-section .carousel-inner .carousel-item:nth-child(1) {
    background-image: url('../assets/banner/banner-mobile1.png') !important;
  }
  .banner-section .carousel-inner .carousel-item:nth-child(2) {
    background-image: url('../assets/banner/banner-mobile2.png') !important;
  }
  .banner-section .carousel-inner .carousel-item:nth-child(3) {
    background-image: url('../assets/banner/banner-mobile3.png') !important;
  }
}

@media (max-width: 575.98px) {
  .banner-section .carousel,
  .banner-section .carousel-inner,
  .banner-section .carousel-item,
  .banner-slide {
    height: 420px;
  }

  .section {
    padding: 3rem 0;
  }

  .header-logo {
    height: 50px;
  }
}
