.navbar {
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.20) !important;
  z-index: 1030;
}

/* Hamburger Menu Styles */
.hamburger-toggle {
  display: none;
  background: none;
  border: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 30px;
  height: 30px;
  padding: 0;
}

.hamburger-line {
  width: 20px;
  height: 2px;
  background-color: #333;
  margin: 2px 0;
  transition: 0.3s;
}

.hamburger-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  background-color: white;
  border-top: 1px solid #e0e0e0;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  z-index: 1029;
}

.hamburger-nav {
  list-style: none;
  margin: 0;
  padding: 0;
}

.hamburger-nav li {
  border-bottom: 1px solid #f0f0f0;
}

.hamburger-nav li:last-child {
  border-bottom: none;
}

.hamburger-nav a {
  display: block;
  padding: 15px 20px;
  color: #333;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s;
}

.hamburger-nav a:hover {
  background-color: #f8f9fa;
  color: #007bff;
}

/* Show hamburger menu when active */
.hamburger-menu.active {
  display: block;
}

/* Hamburger animation when active */
.hamburger-toggle.active .hamburger-line:nth-child(1) {
  transform: rotate(-45deg) translate(-4px, 4px);
}

.hamburger-toggle.active .hamburger-line:nth-child(2) {
  opacity: 0;
}

.hamburger-toggle.active .hamburger-line:nth-child(3) {
  transform: rotate(45deg) translate(-4px, -4px);
}

/* Mobile breakpoint: show hamburger and hide desktop nav/phone below lg (<= 580px) */
@media (max-width: 580px) {
  .hamburger-toggle {
    display: flex;
  }

  .navbar-nav-container {
    display: none;
  }

  .navbar-phone {
    display: none !important;
  }
}

.container-narrow {
  max-width: 1140px;
  margin: 0 auto;
  padding-left: 12px;
  padding-right: 12px;
}

.container-xl {
  max-width: 1140px;
  margin: 0 auto;
}

.carousel-caption {
  bottom: 20%;
  left: 5%;
  text-align: left;
}

.carousel-caption h2 {
  font-weight: bold;
}

.carousel-caption ul {
  font-size: 1.1rem;
}

.product-button {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  background-color: #f2f2f2;
  border: none;
  padding: 10px 16px;
  border-radius: 12px;
  transition: 0.3s ease;
  width: 100%;
  height: 80px;
  text-align: left;
  gap: 12px;
  overflow: hidden;
  box-sizing: border-box;

  max-width: 360px;
  margin-left: auto;
  margin-right: auto;
}

.product-button:hover {
  background-color: #e0e0e0;
}

.product-img-wrapper {
  width: 50px;
  height: 50px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.product-button img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.product-text {
  font-size: 0.95rem;
  color: #333;
  line-height: 1.2;
}

/*.product-button img {*/
/*  !*height: 48px;*!*/
/*  !*width: auto;*!*/
/*  max-height: 50px;*/
/*  max-width: 50px;*/
/*  object-fit: contain;*/
/*  flex-shrink: 0;*/
/*}*/

.product-button span {
  font-size: 0.95rem;
  color: #333;
  line-height: 1.2;
  display: inline-block;
}

.site-footer {
  font-size: 0.9rem;
  background-color: #f8f9fa;
  color: #333;
  margin-top: 0 !important;
}

.footer-logo {
  max-width: 100px;
  height: auto;
}

.footer-links {
  list-style: none;
  padding-left: 0;
}

.footer-links li {
  margin-bottom: 6px;
}

.footer-links a {
  text-decoration: none;
  color: #333;
}

.footer-links a:hover {
  text-decoration: underline;
}

/*a.phone {*/
/*  color: #000 !important;*/
/*  text-decoration: none !important;*/
/*  font-weight: bold;*/
/*}*/

/*a.phone:hover {*/
/*  text-decoration: none !important;*/
/*}*/

a:visited,
a:active {
  color: #000 !important;
  text-decoration: none !important;
  font-weight: inherit !important;
  font-style: normal !important;
  background: none !important;
  border: none !important;
  outline: none !important;
}

a {
  color: #000;
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover,
a:focus {
  color: #007bff; /* or any hover color you like */
  text-decoration: none; /* optional */
}

.partner-section {
    background-color: #f8f9fa;
    /*background-color: #ffffff;*/
}

.partner-image {
  max-width: 100%;
  height: auto;
  border-radius: 16px;
}

.partner-section h2 {
  font-size: 2rem;
  color: #333;
}

.partner-section .small {
  color: #444;
  line-height: 1.3;
}


.logo-marquee {
  background-color: #f8f9fa; /* or any light bg you want */
  /*overflow: hidden;*/
  /*position: relative;*/
}

.marquee {
  overflow: hidden;
  position: relative;
  width: 100%;
}

.marquee-track {
  display: flex;
  gap: 60px;
  animation: scroll-loop 30s linear infinite;
  width: max-content; /* dynamic width based on actual content */
}

.marquee-track img {
  height: 60px;
  flex-shrink: 0;
  object-fit: contain;
  opacity: 0.9;
  transition: transform 0.3s ease;
}

@keyframes scroll-loop {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-33.333%);
  }
}




/* Portfolio Slider Styles */
.portfolio-slider-section {
  overflow: hidden;
  background-color: #ffffff;
}

.portfolio-slider-container {
  position: relative;
  overflow: hidden;
}

.portfolio-slider-wrapper {
  position: relative;
  width: 100%;
  padding: 0 80px; /* Fixed padding that ensures consistent space from slider buttons */
}

.portfolio-slide {
  display: none;
  width: 100%;
  opacity: 0;
  transition: opacity 0.5s ease-in-out;
}

.portfolio-slide.active {
  display: block !important;
  opacity: 1;
}

/* Portfolio Layout - Side by Side Sections */

/* All Objects Button Container */
.all-objects-btn-container {
  width: 100%;
  margin-top: -20px; /* Changed from 30px to -20px to move button up by 50px */
  padding-left: 35px; /* Move button 35px to the right */
  text-align: start;
  clear: both;
}

/* Main portfolio image */
.portfolio-main-image {
  padding-top: 30px; /* Increased top padding to fully prevent shadow clipping */
}
.portfolio-main-image img {
  width: 100%;
  height: 350px;
  object-fit: cover;
}

/* Portfolio slide row layout */
.portfolio-slide .row {
  display: flex;
  flex-wrap: nowrap;
  align-items: flex-start;
  justify-content: center; /* Center both sections horizontally */
  margin: 0 auto; /* Center the row between slider buttons */
  max-width: calc(100% - 160px); /* Account for fixed 80px padding on each side */
  gap: 10px; /* Reduced space between info and photos sections to bring them closer */
  position: relative; /* For positioning the all-objects button */
}

/* Info Section Positioning */
.portfolio-info-overlay {
  position: relative;
  width: 70%; /* Increased width for wider text block extending to the right */
  padding: 20px; /* Add padding to prevent shadow clipping */
  max-height: none; /* Remove fixed height constraint */
  overflow: visible; /* Allow shadows to extend outside */
  order: 1; /* Place on left side */
}

/* Photos Section Positioning */
.portfolio-slide .col-lg-7 {
  width: 47%; /* Width for photos section - adjusted to balance wider info section */
  margin: 0; /* Reset margins */
  padding-left: 5px; /* Add slight padding to balance the info section's shadow */
  padding-right: 5px; /* Add slight padding on right side for better visual balance */
  order: 2; /* Place on right side */
}

.portfolio-info-card {
  border-radius: 20px !important;
  border: none !important;
  margin: 5px; /* Reduced margin to improve centering */
  box-shadow: 0 10px 30px rgba(0,0,0,0.1); /* Consistent shadow */
  background: white;
  padding: 2rem;
}

.portfolio-slider-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.9);
  border: none;
  border-radius: 50%;
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 1.5rem;
  color: #333;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  z-index: 10;
}

.portfolio-slider-btn:hover {
  background: white;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  transform: translateY(-50%) scale(1.1);
}

.portfolio-slider-prev {
  left: 20px; /* Fixed positioning to match wrapper padding */
}

.portfolio-slider-next {
  right: 20px; /* Fixed positioning to match wrapper padding */
}

.portfolio-info-card {
  transition: transform 0.3s ease;
}

.portfolio-info-card:hover {
  transform: translateY(-5px);
}

/* Portfolio title - limit to 2 lines with ellipsis */
.portfolio-info-card h3 a {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.4;
  min-height: 2.8em; /* Always reserve space for 2 lines */
  max-height: 2.8em; /* 2 lines * 1.4 line-height */
}

/* Portfolio object type and equipment type - limit to 1 line with ellipsis */
.portfolio-object-type,
.portfolio-equipment-type {
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.4;
  max-height: 1.4em; /* 1 line * 1.4 line-height */
}

.portfolio-thumb {
  cursor: pointer;
  transition: transform 0.3s ease;
  border: 2px solid transparent;
  width: 80px;
  height: 65px;
  object-fit: cover;
}

.portfolio-thumb:hover {
  transform: scale(1.05);
  border-color: #007bff;
}

.portfolio-thumb-more {
  cursor: pointer;
  transition: transform 0.3s ease;
  width: 80px;
  height: 65px;
  background: rgba(0,0,0,0.7);
}

.portfolio-thumb-more:hover {
  transform: scale(1.05);
}

/* Performance Button */
.performance-button {
  background: linear-gradient(135deg, #0ea5e9, #0284c7);
  border: none;
}

/* Objects Button */
.objects-button {
  background: linear-gradient(135deg, #0ea5e9, #0284c7);
  border: none;
  width: 220px;
  color: white;
  white-space: nowrap;
}

/* Responsive styles for portfolio slider */
@media (max-width: 992px) {
  .portfolio-slider-btn {
    width: 45px;
    height: 45px;
    font-size: 1.3rem;
  }
  
  .portfolio-slider-prev {
    left: 10px;
  }
  
  .portfolio-slider-next {
    right: 10px;
  }
  
  /* Adjust portfolio layout for medium screens */
  .portfolio-info-overlay {
    width: 350px;
    height: 400px;
    left: -250px;
  }
  
  .portfolio-slide .col-lg-7 {
    margin-left: 350px;
  }
}

/* Mobile layout for screens less than 1000px - Card View */
@media (max-width: 999px) {
  /* Hide the slider layout on mobile */
  .portfolio-slider-container {
    display: none;
  }
  
  /* Show card-based layout instead */
  .portfolio-mobile-cards {
    display: block !important;
    touch-action: pan-y pinch-zoom; /* Allow vertical scrolling but enable horizontal swipe handling */
  }
  
  /* Mobile card wrapper - only show active card */
  .portfolio-mobile-card-wrapper {
    display: none;
  }
  
  .portfolio-mobile-card-wrapper.active {
    display: block !important;
  }
  
  /* Card styling for mobile portfolio */
  .portfolio-mobile-card {
    margin-bottom: 1.5rem;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    background: white;
  }
  
  .portfolio-mobile-card-img {
    width: 100%;
    height: 200px;
    object-fit: cover;
  }
  
  .portfolio-mobile-card-body {
    padding: 1.25rem;
  }
  
  .portfolio-mobile-card-title {
    font-size: 1.25rem;
    font-weight: bold;
    margin-bottom: 0.75rem;
    color: #333;
    text-decoration: none;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.4;
    min-height: 2.8em; /* Always reserve space for 2 lines */
    max-height: 2.8em; /* 2 lines * 1.4 line-height */
  }
  
  .portfolio-mobile-card-title:hover {
    color: #007bff;
  }
  
  .portfolio-mobile-card-info {
    margin-bottom: 0.5rem;
  }
  
  .portfolio-mobile-card-label {
    font-size: 0.875rem;
    color: #6c757d;
    margin-bottom: 0.25rem;
  }
  
  .portfolio-mobile-card-value {
    font-weight: 600;
    margin-bottom: 0.75rem;
    color: #333;
  }
  
  .portfolio-mobile-card-performance {
    display: inline-block;
    background: linear-gradient(135deg, #0ea5e9, #0284c7);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-size: 0.875rem;
    font-weight: 600;
    text-decoration: none;
    border: none;
  }
  
  /* Mobile navigation buttons - Hidden for swipe functionality */
  .portfolio-mobile-btn {
    display: none;
  }
  
  /* Mobile All Objects Button */
  .mobile-all-objects-btn-container {
    padding: 0.75rem 1.25rem 0.25rem;
    margin-top: 0.5rem;
  }
}

@media (max-width: 768px) {
  /* Additional mobile refinements for very small screens */
  .portfolio-slider-wrapper {
    padding: 0 15px;
  }
  
  .portfolio-info-card {
    padding: 1.2rem;
  }
}

/* JAC Info Section Styles */
.jac-info-section {
  position: relative;
}

.jac-info-text {
  top: 50%;
  left: 10%;
  transform: translateY(-50%);
  color: white;
  z-index: 10;
}

.jac-title {
  font-size: 2.5rem;
  font-weight: bold;
  margin-bottom: 0.5rem;
  line-height: 1.2;
}

.jac-subtitle {
  font-size: 1.2rem;
  font-weight: normal;
  margin-bottom: 0;
  opacity: 0.9;
}

/* Responsive styles for JAC Info */
@media (max-width: 768px) {
  .jac-title {
    font-size: 1.8rem;
  }
  
  .jac-subtitle {
    font-size: 1rem;
  }
  
  .jac-info-text {
    left: 5%;
  }
}
