/*
===================================================
PROJECT: Nehal Machinery Ltd
COMPONENT STYLES
DEVELOPER: IBNA AQUAR SAHOS (AQUAR) | Dhaka Solutions
===================================================
*/

/* Hero Carousel Slider */
.hero-slider {
  position: relative;
  width: 100%;
  overflow: hidden;
  margin-bottom: 30px;
}

.hero-slider-track {
  display: flex;
  transition: transform 0.6s ease-in-out;
  width: 100%;
}

.hero-slide {
  min-width: 100%;
  position: relative;
  height: 65vh;
  min-height: 480px;
  background-color: #080808;
}

.hero-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.slider-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 50px;
  height: 50px;
  background-color: rgba(0, 0, 0, 0.5);
  color: #ffffff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  transition: background-color 0.2s ease, transform 0.2s ease;
}

.slider-arrow:hover {
  background-color: rgba(0, 0, 0, 0.8);
  transform: translateY(-50%) scale(1.1);
}

.slider-arrow.prev { left: 20px; }
.slider-arrow.next { right: 20px; }

.slider-dots {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
  z-index: 10;
}

.slider-dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  transition: background-color 0.2s ease, transform 0.2s ease;
}

.slider-dot.active {
  background-color: #ffffff;
  transform: scale(1.2);
}

/* Product & Machinery Cards (Exact Reference Match) */
.card {
  background-color: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 3%;
  padding: 24px;
  margin-bottom: 30px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  height: 100%;
}

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

.card img.product-img {
  width: 100%;
  height: 300px;
  object-fit: contain;
  margin-bottom: 20px;
  border-radius: 8px;
  background-color: #fdfdfd;
}

.card-body {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  text-align: center;
}

.card-title,
.card-name,
.blog-title {
  font-family: var(--font-family-primary);
  font-size: 20px;
  font-weight: 700;
  color: #141414;
  margin-bottom: 12px;
  min-height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.card-price {
  font-size: 20px;
  font-weight: 700;
  color: #000000;
  margin-bottom: 15px;
}

.card-actions {
  margin-top: auto;
  text-align: center;
  display: flex;
  justify-content: center;
  gap: 10px;
}

/* Why Choose Us Cards */
.chooseLogo {
  border: 4px solid rgba(0, 0, 0, 0.748);
  border-radius: 50% !important;
  height: 350px;
  width: 350px;
  object-fit: cover;
  margin: 0 auto 24px auto;
}

.choose-card {
  text-align: center;
  margin-top: 30px;
  margin-bottom: 30px;
}

.choose-card h3 {
  font-family: var(--font-family-heading);
  font-size: 30px;
  font-weight: 700;
  margin-top: 20px;
  margin-bottom: 15px;
}

.choose-card p {
  font-family: var(--font-family-desc);
  font-size: 17px;
  line-height: 1.6;
  color: #444;
  padding: 0 15px;
}

/* About Us Section & Stats Counter */
.homeAboutUsBackgroundImage {
  background-attachment: fixed;
  background-image: url('../images/backgrounds/HomeAboutUsBackgroundImage.jpg');
  background-size: cover;
  background-position: center;
  min-height: 30vh;
  padding-top: 50px;
  padding-bottom: 100px;
  position: relative;
  margin-top: 40px;
}

.homeAboutUsCount {
  color: #ffffff;
  font-size: 52px;
  font-weight: 700;
  margin-top: 15px;
  margin-bottom: 8px;
  font-family: var(--font-family-primary);
}

.homeAboutUs {
  color: #ffffff;
  font-size: 18px;
  font-weight: 500;
  margin: 0;
}

.counter-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto;
  fill: #ffffff;
}

/* Contact Page Cards */
.contactCard {
  border: 2px solid #8383831a;
  box-shadow: 0 5px 15px 0 #3e419f1a;
  box-sizing: border-box;
  height: 320px;
  margin-top: 50px;
  padding-top: 40px;
  padding-left: 20px;
  padding-right: 20px;
  text-align: center;
  background-color: #ffffff;
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s ease;
}

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

.contactCardTitle {
  font-family: var(--font-family-heading);
  font-size: 35px;
  margin-top: 15px;
  margin-bottom: 10px;
}

.contactCardDesc {
  font-family: var(--font-family-desc);
  font-size: 18px;
  margin-top: 10px;
  padding: 0 15px;
  color: #333333;
}

.contactCard iframe {
  width: 100%;
  height: 100%;
  border: none;
  border-radius: 6px;
}

.contact-text-1 {
  font-size: 40px;
  font-weight: 700;
  margin-top: 40px;
  margin-bottom: 15px;
  text-align: center;
}

.contact-text-2 {
  font-size: 20px;
  font-weight: 400;
  line-height: 1.6;
  max-width: 800px;
  margin: 0 auto 40px auto;
  text-align: center;
  color: #555;
}

/* Product Detail Page */
.detail-image {
  width: 100%;
  height: 600px;
  object-fit: contain;
  border-radius: 20px;
  background-color: #f8f9fa;
  padding: 20px;
}

.detail-title {
  font-size: 42px;
  font-weight: 700;
  margin-top: 20px;
  margin-bottom: 15px;
  word-wrap: break-word;
}

.detail-price {
  font-size: 28px;
  font-weight: 700;
  color: var(--color-surface-base);
  margin-top: 20px;
  margin-bottom: 15px;
}

.detail-desc {
  font-size: 20px;
  line-height: 1.8;
  text-align: justify;
  word-wrap: break-word;
  color: #333333;
  margin-top: 20px;
}

/* Related Carousel */
.related-slider {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  scroll-behavior: smooth;
  padding-bottom: 20px;
}

.related-slider::-webkit-scrollbar {
  height: 8px;
}

.related-slider::-webkit-scrollbar-thumb {
  background-color: #cccccc;
  border-radius: 4px;
}

.related-card {
  min-width: 320px;
  max-width: 360px;
}

/* Shopping Cart Badge & Toast */
.cart-badge {
  background-color: #dc3545;
  color: #ffffff;
  font-size: 12px;
  font-weight: 700;
  border-radius: 10px;
  padding: 2px 7px;
  margin-left: 6px;
}

/* SweetAlert Style Notifications */
.swal-modal-overlay {
  position: fixed;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

.swal-modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.swal-modal-card {
  background-color: #ffffff;
  border-radius: 8px;
  padding: 30px;
  max-width: 450px;
  width: 90%;
  text-align: center;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  transform: scale(0.9);
  transition: transform 0.2s ease;
}

.swal-modal-overlay.active .swal-modal-card {
  transform: scale(1);
}

.swal-title {
  font-size: 26px;
  font-weight: 700;
  margin-bottom: 12px;
}

.swal-text {
  font-size: 16px;
  color: #555555;
  margin-bottom: 24px;
}

.swal-buttons {
  display: flex;
  justify-content: center;
  gap: 15px;
}
