/* --- Custom CSS Core Styling --- */
:root {
  --primary-color: #1da5f6; /* Custom Requested Blue Accent */
  --dark-color: #192229;
  --light-bg: #f9f9f9;
  --text-muted: #666666;
}

body {
  font-family: "Open Sans", sans-serif;
  color: #444444;
  overflow-x: hidden;
}

/* Smooth Scrolling UI */
html {
  scroll-behavior: smooth;
}

/* Component Section Titles */
.section-title {
  text-align: center;
  padding-bottom: 15px;
}
.section-title h2 {
  font-size: 32px;
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 20px;
  padding-bottom: 8px; /* Adds spacing between text and the line */
  position: relative;
  display: inline-block; /* Shrinks the element boundary to fit only the character words */
}
.section-title h2::after {
  content: "";
  position: absolute;
  display: block;
  width: 100%; /* Dynamically spans exactly 100% of the text width */
  height: 3px;
  background: var(--primary-color);
  bottom: 0;
  left: 0; /* Aligns perfectly with the start of the inline text boundary */
}

/* Fixed Navigation Transitions & Active Clicking Engine */
.navbar {
  transition: all 0.4s;
  background: var(
    --primary-color
  ) !important; /* Forces Solid Blue Layout Background */
  box-shadow: 0px 2px 15px rgba(0, 0, 0, 0.1);
}

/* Dedicated Brand Logo Constraints */
.navbar-brand img {
  height: 65px; /* Adjusted to your requested size */
  max-height: 65px; /* Ensures it locks firmly at 70px */
  width: auto;
  object-fit: contain;
  transition: all 0.3s ease-in-out;
}

/* Tweak navbar padding to give the 70px logo breathing room */
.navbar {
  transition: all 0.4s;
  background: var(--primary-color) !important;
  box-shadow: 0px 2px 15px rgba(0, 0, 0, 0.1);
  padding-top: 5px !important;
  padding-bottom: 5px !important;
  font-size: 15px;
}
.navbar .nav-link {
  --bs-nav-link-color: white /* Default state color */;
}
.navbar-nav .nav-link {
  padding-left: 15px !important;
  padding-right: 15px !important;
}
/* Dynamic styling state colors when links are highlighted or active */
.nav-link:hover,
.nav-link.active {
  color: #fff !important;
  text-underline-offset: 6px;
  font-weight: bold;
  font-size: 18px;
}

/* --- Core Hero Slider Component --- */
#hero-carousel-container {
  width: 100%;
  padding: 0;
  margin: 0;
}

#heroCarousel .carousel-item {
  width: 100%;
  height: 95vh;
  background-position: center center;
  background-repeat: no-repeat;
  background-size: cover;
  position: relative;
  transition: transform 0.6s ease-in-out; /* Keeps fallback transitions smooth */
}

/* --- Mobile Aspect Ratio Optimizer --- */
@media (max-width: 767.98px) {
  #heroCarousel .carousel-item {
    height: 70vh; /* Drops the height slightly so the graphic fits without aggressive left/right shearing */
    background-position: center top; /* Pulls the focal point up so faces/logos don't get cut off */
  }

  /* Gives text descriptions more breathing room on small screens */
  #heroCarousel h1 {
    font-size: 1.8rem !important;
  }
  #heroCarousel p {
    font-size: 0.95rem !important;
    padding: 0 10px;
  }
}

.carousel-caption-centered {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

#heroCarousel h1 span {
  color: var(--primary-color);
}

#heroCarousel .btn-get-started {
  background: var(--primary-color);
  color: #fff;
  padding: 12px 35px;
  border-radius: 4px;
  font-weight: 600;
  text-decoration: none;
  display: inline-block;
  transition: all 0.3s ease;
  box-shadow: 0px 4px 15px rgba(29, 165, 246, 0.3);
}

#heroCarousel .btn-get-started:hover {
  background: #158ecd;
  transform: translateY(-2px);
}

/* About & Content Sizing */
p.nice-reading {
  font-size: 1.1rem;
  line-height: 1.65;
  color: #333d47;
  max-width: 72ch;
}

/* Executive Profile Cards */
.ceo-section {
  padding: 80px 0;
  background: var(--light-bg);
}
.ceo-card {
  background: #ffffff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  border: 1px solid rgba(0, 0, 0, 0.05);
}
.ceo-img-container {
  position: relative;
  overflow: hidden;
  border-radius: 12px 0 0 12px;
  background: #eef2f5;
}
@media (max-width: 991px) {
  .ceo-img-container {
    border-radius: 12px 12px 0 0;
  }
}
.ceo-info-link {
  color: #333d47;
  text-decoration: none;
  transition: color 0.2s;
}
.ceo-info-link:hover {
  color: var(--primary-color);
}

/* Vision Layout Panel */
.vision-section {
  padding: 80px 0;
  background: #ffffff;
}
.vision-card {
  padding: 40px;
  border-radius: 8px;
  background: var(--light-bg);
  border-left: 4px solid var(--primary-color);
  height: 100%;
}

/* Filterable Portfolio Framework */
.portfolio {
  padding: 80px 0;
  background: var(--light-bg);
}
.portfolio #portfolio-flters {
  padding: 0;
  margin: 0 auto 25px auto;
  list-style: none;
  text-align: center;
  border-radius: 50px;
}
.portfolio #portfolio-flters li {
  cursor: pointer;
  display: inline-block;
  padding: 8px 16px;
  font-size: 14px;
  font-weight: 500;
  line-height: 1;
  color: #444444;
  margin: 0 3px 10px 3px;
  transition: all 0.3s ease-in-out;
  border-radius: 4px;
}
.portfolio #portfolio-flters li:hover,
.portfolio #portfolio-flters li.filter-active {
  background: var(--primary-color);
  color: #fff;
}
.portfolio-item {
  transition: 0.4s ease-in-out;
}
.portfolio-item.hide {
  display: none;
}

/* Clean 6-Column Integrated Map Sizing */
.map-container {
  width: 100%;
  height: 100%;
  min-height: 380px;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 0 29px 0 rgba(0, 0, 0, 0.05);
}
.map-container iframe {
  width: 100%;
  height: 100%;
  min-height: 380px;
  border: 0;
}

/* Custom Requested Blue Footer Layout */
footer {
  background: var(--primary-color); /* Matches Navbar Identity */
  color: #fff;
  padding: 40px 0;
  box-shadow: 0px -2px 15px rgba(0, 0, 0, 0.05);
}

.footer-logo {
  max-height: 50px;
  width: auto;
  object-fit: contain;
}

/* Smooth Hover Micro-interactions */
.product-hover-card {
  transition:
    transform 0.3s cubic-bezier(0.25, 0.8, 0.25, 1),
    box-shadow 0.3s ease;
}
.product-hover-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 15px 30px rgba(29, 165, 246, 0.15) !important;
}

/* Image Zoom Frame Effect */
.img-zoom-wrapper img {
  transition: transform 0.5s ease;
}
.product-hover-card:hover .img-zoom-wrapper img {
  transform: scale(1.08);
}

/* Core Filtering Smooth Transitions */
.portfolio-item {
  transition:
    opacity 0.4s ease,
    transform 0.4s ease,
    visibility 0.4s;
  opacity: 1;
  transform: scale(1);
  visibility: visible;
  display: block; /* Keeps structural integrity */
}

/* Updated hidden state that doesn't break Bootstrap layouts */
.portfolio-item.hide {
  opacity: 0;
  transform: scale(0.8);
  visibility: hidden;
  position: absolute; /* Takes them out of the visual flow beautifully */
  pointer-events: none;
}
/* Capitalizes the first letter of each navigation link word */
.navbar-nav .nav-link {
  text-transform: uppercase !important; /* e.g., "about us" becomes "About Us" */
}
/* Custom utility class for clean text justification */
.text-justify-custom {
  text-align: justify;
  text-justify: inter-word; /* Distributes spaces evenly between words */
  hyphens: auto; /* Breaks exceptionally long words on narrow screens */
  word-break: break-word;
}
/* Links & Row Hovers */
.hover-link {
  transition: color 0.25s ease;
}
.hover-link:hover {
  color: #1da5f6 !important;
}
.transition-row:hover .icon-box {
  background-color: #1da5f6;
  border-color: #1da5f6 !important;
}
.transition-row:hover .icon-box i {
  color: #ffffff !important;
}
.transition-row .icon-box {
  transition: all 0.25s ease;
}

/* Premium Horizontal Social Buttons Blueprint */
.social-btn {
  width: 38px;
  height: 38px;
  border: 1px solid #dee2e6;
  color: #495057;
  background-color: transparent;
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  font-size: 1.05rem;
}
.social-btn:hover {
  color: #ffffff;
  background-color: #1da5f6;
  border-color: #1da5f6;
  transform: translateY(-3px);
  box-shadow: 0 4px 10px rgba(29, 165, 246, 0.25);
}
.img-container img {
  transition: transform 0.5s cubic-bezier(0.25, 1, 0.5, 1);
}
.img-container:hover img {
  transform: scale(1.15);
}

/* Decorative Accent Heading Line */
.section-heading::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 65px;
  height: 4px;
  background-color: var(--bs-primary, #0d6efd);
  border-radius: 4px;
}

/* Perfecting Image Scaling Boxes */
.img-zoom-wrapper {
  width: 100%;
  aspect-ratio: 4 / 3; /* Ensures all thumbnail slots have matching dimensions */
  background-color: #f8f9fa;
}

.product-img {
  width: 100%;
  height: 100%;
  object-fit: cover; /* Locks aspect ratio, crops dynamically without squishing image */
  object-position: center;
  transition: transform 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
}

/* Micro-Interaction Animation Overlays */
.product-showcase-card {
  transition:
    transform 0.3s cubic-bezier(0.165, 0.84, 0.44, 1),
    box-shadow 0.3s ease;
  border-radius: 14px !important;
}

.product-showcase-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.08) !important;
}

.product-showcase-card:hover .product-img {
  transform: scale(1.08); /* Slow, premium image enlargement */
}

.product-card-title {
  color: #2c3e50;
  font-size: 1.1rem;
  transition: color 0.2s ease;
}

/* "Quick View" Overlay Banner */
.view-overlay-btn {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -30%);
  background: rgba(255, 255, 255, 0.95);
  color: #111;
  padding: 10px 20px;
  font-weight: 600;
  font-size: 13px;
  border-radius: 50px;
  opacity: 0;
  visibility: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
  transition: all 0.3s ease;
  white-space: nowrap;
}

.product-showcase-card:hover .view-overlay-btn {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, -50%); /* Moves smoothly up into place */
}

.products-section {
  /* Large top padding keeps the heading clear of structural overlaps */
  padding-top: 110px !important;
  padding-bottom: 60px;
}
/* Caps layout aspect proportions on screens */
.slider-img-frame {
  width: 100%;
  max-height: 80vh; /* Limits slideshow scaling past vertical folding dimensions */
  background-color: #0c0c0c;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  position: relative;
}

.slider-img-frame img {
  max-height: 80vh;
  width: 100%;
  object-fit: contain; /* Prevents visual distortions or image dynamic crops */
}

/* Premium Dark Frosted Blur Title Bar Accent Panel Layer */
.slider-caption-bar {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  background: linear-gradient(
    to top,
    rgba(0, 0, 0, 0.85) 0%,
    rgba(0, 0, 0, 0.4) 100%
  );
  backdrop-filter: blur(
    4px
  ); /* Modern frosted-glass aesthetic on backdrop surfaces */
  padding: 14px 20px;
  z-index: 2;
}

/* Enhancing navigation chevron button circles layout aesthetics */
.carousel-control-prev-icon,
.carousel-control-next-icon {
  width: 2.2rem;
  height: 2.2rem;
  background-size: 55%;
  transition: transform 0.2s ease;
}

.carousel-control-prev:hover .carousel-control-prev-icon,
.carousel-control-next:hover .carousel-control-next-icon {
  transform: scale(1.1); /* Soft hover reactive micro-grow dynamics */
}
@media (min-width: 992px) {
  .modal-lg,
  .modal-xl {
    --bs-modal-width: 1000px;
  }
}

.message-row {
  transition: background-color 0.2s ease;
}
.delete-btn-box {
  position: relative;
  z-index: 10;
}
