:root {
  --primary: #0d5bab;
  --secondary: #e63946;
  --accent: #8bd6e9;
  --dark: #2d3748;
  --light: #ffffff;
  --light-bg: #f8f9fa;
  --muted: #6c757d;
  --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  --shadow-hover: 0 10px 15px rgba(0, 0, 0, 0.15);
  --transition: all 0.3s ease;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Poppins", sans-serif;
  color: var(--dark);
  overflow-x: hidden;
  background-color: var(--light-bg);
  line-height: 1.6;
  padding-top: 76px; /* Height of navbar */
}
img {
  -webkit-user-drag: none; /* Prevent drag */
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  user-select: none;
}
/* Improved Navbar */
.navbar {
  background: white;
  transition: all 0.3s ease;
  padding: 0.5rem 0;
  box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
}
.navbar-close {
  display: none;
}
.navbar-brand {
  font-weight: 700;
  color: var(--primary) !important;
  font-size: clamp(1.5rem, 4vw, 1.8rem);
  display: flex;
  align-items: center;
}

.navbar-brand img {
  height: 70px;
}

.nav-link {
  color: var(--dark) !important;
  font-weight: 500;
  padding: 0.5rem 1rem !important;
  border-radius: 4px;
  transition: var(--transition);
}

.nav-link:hover,
.nav-link.active {
  color: var(--light) !important;
  background-color: var(--primary);
}

/* Left side navbar for screens below 790px */
@media (max-width:999px) {
  .navbar {
    padding: 0.5rem 1rem;
  }

  .navbar-collapse {
    position: fixed;
    top: 0;
    left: -100%;
    width: 280px;
    height: 100vh;
    background: white;
    z-index: 1050;
    padding: 2rem 1rem;
    transition: left 0.3s ease;
    box-shadow: 5px 0 15px rgba(0, 0, 0, 0.1);
    overflow-y: auto;
  }

  .navbar-collapse.show {
    left: 0;
  }

  .navbar-nav {
    flex-direction: column !important;
    gap: 0.5rem !important;
  }

  .nav-item {
    width: 100%;
  }

  .nav-link {
    padding: 0.8rem 1rem !important;
    border-radius: 6px;
  }

  /* Overlay when menu is open */
  .navbar-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1040;
  }

  .navbar-overlay.show {
    display: block;
  }

  /* Close button for mobile menu */
  .navbar-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    font-size: 1.5rem;
    background: none;
    border: none;
    color: var(--dark);
    cursor: pointer;
    display: block;
  }

  body.navbar-open {
    overflow: hidden;
  }
}

/* Hero Section */
.hero-section {
  background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)),
    url("./image/home-bg.webp") center/cover no-repeat;
  min-height: 100vh;
  display: flex;
  align-items: center;
  color: var(--light);
  padding: 6rem 0;
  margin-top: -76px; /* Compensate for body padding */
}

.hero-content h1 {
  font-size: 3.5rem;
  font-weight: 800;
  margin-bottom: 1rem;
}

.hero-content .tagline {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--accent);
}

/* Buttons */
.btn-primary {
  background-color: var(--primary);
  border-color: var(--primary);
  padding: 0.75rem 2rem;
  border-radius: 50px;
  font-weight: 600;
  transition: var(--transition);
}

.btn-primary:hover {
  background-color: #0d5bab;
  border-color: #0d5bab;
  transform: translateY(-3px);
  box-shadow: var(--shadow-hover);
}

.btn-outline-primary {
  padding: 0.75rem 2rem;
  border-radius: 50px;
  font-weight: 600;
  transition: var(--transition);
  color: var(--light);
  border-color: var(--light);
}

.btn-outline-primary:hover {
  background-color: var(--light);
  color: var(--primary);
  transform: translateY(-3px);
}

/* Section Styling */
section {
  padding: 5rem 0;
}

.section-title {
  text-align: center;
  margin-bottom: 3rem;
  position: relative;
}

.section-title h2 {
  font-weight: 700;
  color: var(--primary);
  position: relative;
  padding-bottom: 1rem;
  margin-bottom: 1rem;
}

.section-title h2::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background-color: var(--secondary);
  border-radius: 2px;
}

/* Preview/Product Section */
.preview-section {
  background: var(--light);
  padding: 3rem 0;
}

.preview-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1.5rem;
  margin: 2rem;
  transition: grid-template-columns 0.5s ease;
}
.product-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  margin-bottom: 2rem;
  transition: grid-template-columns 0.5s ease;
}
@media (max-width: 1440px) {
  .preview-grid {
    grid-template-columns: repeat(5, 1fr);
  }
  .product-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

@media (max-width: 1200px) {
  .preview-grid {
    grid-template-columns: repeat(4, 1fr);
  }
  .product-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 992px) {
  .preview-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .product-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .preview-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .product-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 576px) {
  .preview-grid,
  .product-grid {
    grid-template-columns: 1fr;
  }
}
.card {
  background: white;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: all 0.5s ease;
  height: 100%;
  display: flex;
  flex-direction: column;
  cursor: pointer;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-hover);
}

.card-img {
  background-size: cover;
  background-position: center;
  transition: height 0.5s ease;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.preview-card .card-img {
  height: 120px;
}

.product-card .card-img {
  height: 200px;
}

.card-img::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.4);
  opacity: 0;
  transition: opacity 0.3s;
}

.card:hover .card-img::before {
  opacity: 1;
}

.card-content {
  padding: 1rem;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  transition: padding 0.5s ease;
}

.preview-card .card-content {
  justify-content: center;
  text-align: center;
}

.product-card .card-content {
  padding: 1.5rem;
}

.card-title {
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 0.5rem;
  transition: font-size 0.5s ease;
}

.preview-card .card-title {
  font-size: 1rem;
}

.product-card .card-title {
  font-size: 1.2rem;
}

.card-description {
  color: var(--muted);
  font-size: 0.9rem;
  margin-bottom: 0.8rem;
  line-height: 1.5;
  flex-grow: 1;
  transition: max-height 0.5s ease, opacity 0.5s ease;
  overflow: hidden;
}

.card-category {
  color: var(--muted);
  transition: max-height 0.5s ease, opacity 0.5s ease;
  overflow: hidden;
}

.preview-card .card-description,
.preview-card .card-category {
  max-height: 0;
  opacity: 0;
}

.product-card .card-description,
.product-card .card-category {
  max-height: 200px;
  opacity: 1;
}

/* Pillars Section */
.pillar-card {
  background: var(--light);
  border-radius: 12px;
  padding: 0.8rem;
  box-shadow: var(--shadow);
  transition: var(--transition);
  height: 100%;
  text-align: center;
  color: var(--dark);
}

.pillar-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-hover);
}

.pillar-icon-container {
  position: relative;
  width: 80px;
  height: 80px;
  margin: 0 auto 1.5rem;
  border-radius: 50%;
  overflow: hidden;
}

.pillar-icon-bg {
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  transition: var(--transition);
}

.pillar-icon {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: rgba(26, 118, 210, 0.8);
  color: var(--light);
  font-size: 2.5rem;
  transition: var(--transition);
}

.pillar-icon-container:hover .pillar-icon-bg {
  transform: scale(1.1);
}

/* About Section */
.about-section {
  background: var(--primary);
  color: var(--light);
}

.about-section .section-title h2 {
  color: var(--light);
}

.about-section .section-title h2::after {
  background-color: var(--light);
}

.icon-box {
  width: 60px;
  height: 60px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: var(--light);
  flex-shrink: 0;
}

/* Brands Carousel */
.brands-container {
  position: relative;
  overflow: hidden;
  padding: 2rem 0;
  width: 100%;
}

.brands-track {
  display: flex;
  width: max-content; /* Allow track to expand to fit all logos */
  animation: carousel-scroll 60s linear infinite;
}

.brand-item {
  flex: 0 0 auto;
  width: 180px;
  margin: 0 20px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.brand-item:hover {
  transform: scale(1.2);
  transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}
.brand-logo {
  height: 100px;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--light);
  padding: 1.5rem;
  border-radius: 8px;
  box-shadow: var(--shadow);
  transition: var(--transition);
  overflow: hidden;
}

.brand-logo img {
  max-width: 100%;
  max-height: 70px;
  width: auto;
  height: auto;
  object-fit: contain;
}

/* Create infinite loop by duplicating content */
.brands-track:before {
  content: "";
  position: absolute;
  top: 0;
  left: 100%;
  width: 100%;
  height: 100%;
  background: inherit;
}

@keyframes carousel-scroll {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%); /* Move half the width for seamless loop */
  }
}

/* Pause animation on hover */
.brands-container:hover .brands-track {
  animation-play-state: paused;
}

/* Image protection styles */
.protected-image {
  pointer-events: none;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
  -webkit-touch-callout: none;
  -webkit-tap-highlight-color: transparent;
}

.image-protection-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  background: transparent;
}

/* Responsive adjustments for carousel */
@media (max-width: 992px) {
  .brand-item {
    width: 150px;
    margin: 0 15px;
  }
}

@media (max-width: 768px) {
  .brand-item {
    width: 120px;
    margin: 0 10px;
  }

  .brand-logo {
    height: 80px;
    padding: 1rem;
  }

  .brand-logo img {
    max-height: 50px;
  }
}

@media (max-width: 576px) {
  .brand-item {
    width: 100px;
    margin: 0 8px;
  }

  .brand-logo {
    height: 70px;
    padding: 0.8rem;
  }

  .brand-logo img {
    max-height: 40px;
  }

  @keyframes carousel-scroll {
    0% {
      transform: translateX(0);
    }
    100% {
      transform: translateX(-50%);
    }
  }
}
/* Contact Section */
.contact-section {
  background: var(--light-bg);
}

.contact-card {
  background: var(--light);
  border-radius: 12px;
  padding: 0.9rem;
  box-shadow: var(--shadow);
}

.contact-item {
  display: flex;
  align-items: flex-start;
  margin-bottom: 1.5rem;
}

.contact-icon {
  width: 50px;
  height: 50px;
  background: var(--primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--light);
  font-size: 1.2rem;
  margin-right: 1rem;
  flex-shrink: 0;
}

.contact-item h4 {
  font-weight: 600;
  font-size: 1.1rem;
  color: var(--primary);
  margin-bottom: 0.25rem;
}

.contact-item p {
  margin-bottom: 0;
  color: var(--muted);
}

/* Contact Form Styling */
.form-control.is-invalid {
  border-color: #dc3545;
  padding-right: calc(1.5em + 0.75rem);
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' width='12' height='12' fill='none' stroke='%23dc3545'%3e%3ccircle cx='6' cy='6' r='4.5'/%3e%3cpath d='M5.8 3.6h.4L6 6.5z'/%3e%3ccircle cx='6' cy='8.2' r='.6' fill='%23dc3545' stroke='none'/%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right calc(0.375em + 0.1875rem) center;
  background-size: calc(0.75em + 0.375rem) calc(0.75em + 0.375rem);
}

.invalid-feedback {
  display: none;
  width: 100%;
  margin-top: 0.25rem;
  font-size: 0.875em;
  color: #dc3545;
}

.was-validated .form-control:invalid ~ .invalid-feedback,
.form-control.is-invalid ~ .invalid-feedback {
  display: block;
}
/* Loading state for product grid */
.preview-grid.loading,
.product-grid.loading {
  opacity: 0.7;
  pointer-events: none;
}
.form-status,
.formStatusSuccess {
  margin-top: 1rem;
  padding: 0.75rem;
  border-radius: 0.375rem;
  display: none;
}

.form-status.error {
  background-color: #f8d7da;
  color: #721c24;
  display: block;
}
.formStatusSuccess.success {
  background-color: #d7f8de;
  color: #1c723a;
  display: block;
}
/* Toast Notifications */
.toast-container {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.toast {
  background-color: white;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  padding: 16px 20px;
  display: flex;
  align-items: center;
  max-width: 350px;
  animation: toast-in-right 0.7s;
  border-left: 4px solid;
}

.toast.success {
  border-left-color: #28a745;
}

.toast.error {
  border-left-color: #dc3545;
}

.toast-icon {
  margin-right: 15px;
  font-size: 24px;
}

.toast.success .toast-icon {
  color: #28a745;
}

.toast.error .toast-icon {
  color: #dc3545;
}

.toast-content {
  flex-grow: 1;
}

.toast-title {
  font-weight: 600;
  margin-bottom: 4px;
}

.toast-message {
  font-size: 14px;
  color: #6c757d;
}

.toast-close {
  background: none;
  border: none;
  font-size: 20px;
  cursor: pointer;
  color: #6c757d;
  margin-left: 10px;
}

@keyframes toast-in-right {
  from {
    transform: translateX(100%);
  }
  to {
    transform: translateX(0);
  }
}

/* Footer */
footer {
  background: var(--primary);
  color: var(--light);
  padding: 4rem 0 2rem;
}

footer h4 {
  color: var(--light);
  font-weight: 600;
  margin-bottom: 1.5rem;
}

.social-icons {
  display: flex;
  justify-content: start;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}

.social-icon {
  width: 45px;
  height: 45px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--light);
  font-size: 1.2rem;
  transition: var(--transition);
  text-decoration: none;
}

.social-icon:hover {
  background: var(--secondary);
  transform: translateY(-5px);
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  transition: var(--transition);
}

.footer-links a:hover {
  color: var(--light);
  padding-left: 5px;
}

/* Back to top button */
.back-to-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: var(--secondary);
  color: var(--light);
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
  z-index: 1000;
  box-shadow: var(--shadow);
  border: none;
}

.back-to-top.show {
  opacity: 1;
  visibility: visible;
}

.back-to-top:hover {
  background: var(--secondary);
  transform: translateY(-5px);
}

.navbar-toggler:focus {
  box-shadow: none;
}

/* Responsive adjustments */
@media (max-width: 1200px) and (min-width: 541px) {
  .preview-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 992px) {
  .hero-content h1 {
    font-size: 2.5rem;
  }

  .hero-content .tagline {
    font-size: 1.25rem;
  }
}

@media (max-width: 500px) {
  .contact-item {
    display: flex;
    align-items: center;
    width: 100%;
    text-align: center !important;
    flex-direction: column;
  }
  .social-icons {
    justify-content: center;
  }
}
@media (max-width: 768px) {
  section {
    padding: 3rem 0;
  }
  .social-icons {
    justify-content: center;
  }
  .hero-section {
    min-height: 80vh;
    text-align: center;
  }

  .contact-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    text-align: start;
  }

  .contact-icon {
    margin-right: 0;
    margin-bottom: 0.75rem;
  }

  .preview-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 576px) {
  .hero-content h1 {
    font-size: 2rem;
  }

  .btn-primary,
  .btn-outline-primary {
    padding: 0.6rem 1.5rem;
    font-size: 0.9rem;
  }

  .pillar-icon-container {
    width: 80px;
    height: 80px;
  }

  .preview-grid {
    grid-template-columns: 1fr;
  }
}

/* 250px and below → 1 column (for very small devices) */
@media (max-width: 250px) {
  .preview-grid {
    grid-template-columns: 1fr;
  }
}

.product-hidden {
  display: none;
}

.section-hidden {
  display: none;
}

/* Improved brand carousel */
/* .brands-container {
  position: relative;
  overflow: hidden;
  padding: 20px 0;
}

.brands-track {
  display: flex;
  animation: scroll 20s linear infinite;
}

.brand-item {
  flex: 0 0 auto;
  width: 200px;
  margin: 0 15px;
}

@keyframes scroll {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(calc(-200px * 6));
  }
}

.brands-container:hover .brands-track {
  animation-play-state: paused;
}
 
.fade-in {
  animation: fadeIn 0.5s ease-in;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
} */

.product-grid {
  gap: 1.5rem;
}

.card-container {
  width: 100% !important;
}
    .img-placeholder {
      background-color: #f0f0f0;
      display: flex;
      align-items: center;
      justify-content: center;
      color: #999;
      font-size: 14px;
    }