body {
  font-family: 'Roboto', Arial, sans-serif;
  background: #F5F7FA;
  color: #2F2F2F;
  scroll-behavior: smooth;
}

:root {
  --card-border: rgba(11, 61, 145, 0.14);
  --card-shadow: 0 12px 32px rgba(11, 61, 145, 0.12);
  --card-shadow-hover: 0 24px 48px rgba(11, 61, 145, 0.2);
  --card-bg: linear-gradient(165deg, #ffffff 0%, #f5f9ff 100%);
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 700;
  letter-spacing: 0.5px;
}

/* Anchor link offset for sticky navbar - handled in JS now */

.hero-section {
  position: relative;
  height: 78vh;
  min-height: 620px;
  overflow: hidden;
  background-color: #0B3D91;
  background-image:
    linear-gradient(110deg, rgba(5, 20, 48, 0.94) 0%, rgba(8, 33, 77, 0.82) 38%, rgba(11, 61, 145, 0.24) 62%, rgba(11, 61, 145, 0.08) 100%),
    radial-gradient(circle at 18% 28%, rgba(255, 193, 7, 0.22), rgba(255, 193, 7, 0) 32%),
    var(--hero-slide-image, url('../images/hero-1.jpg'));
  background-repeat: no-repeat;
  background-position: left top, left top, right center;
  background-size: cover, cover, auto 88%;
  display: flex;
  align-items: stretch;
  isolation: isolate;
}

.hero-section::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(4, 16, 38, 0.1) 0%, rgba(4, 16, 38, 0.4) 100%);
  z-index: 0;
}

.hero-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 82% 78%, rgba(255, 193, 7, 0.16), rgba(255, 193, 7, 0) 36%),
    radial-gradient(circle at 22% 18%, rgba(106, 171, 255, 0.2), rgba(106, 171, 255, 0) 42%);
  pointer-events: none;
  z-index: 0;
}

.hero-content-wrap {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: flex-start;
}

.hero-carousel {
  width: 100%;
  max-width: 640px;
  padding-bottom: 2.75rem;
}

.hero-carousel .carousel-inner {
  overflow: visible;
}

.hero-carousel .carousel-item {
  min-height: 1px;
}

.hero-content {
  width: min(100%, 560px);
  max-width: 560px;
  padding: 1.75rem 2rem;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 1.5rem;
  background: linear-gradient(160deg, rgba(7, 26, 60, 0.78) 0%, rgba(7, 26, 60, 0.62) 100%);
  box-shadow: 0 24px 60px rgba(3, 13, 32, 0.32);
  backdrop-filter: blur(6px);
}

.hero-kicker {
  display: inline-block;
  margin-bottom: 1rem;
  padding: 0.45rem 0.85rem;
  border-radius: 999px;
  background: rgba(255, 193, 7, 0.16);
  border: 1px solid rgba(255, 193, 7, 0.4);
  color: #ffe28a;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.hero-overlay {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 78vh;
  min-height: 620px;
  display: flex;
  align-items: center;
  padding: 5rem 0;
}

.hero-overlay h1 {
  font-size: clamp(2.5rem, 4vw, 4rem);
  line-height: 1.02;
  text-wrap: balance;
}

.hero-overlay p {
  font-size: clamp(1rem, 1.35vw, 1.2rem);
  max-width: 40rem;
  color: rgba(255, 255, 255, 0.9);
}

.hero-indicators {
  margin-bottom: 0;
  justify-content: flex-start;
  gap: 0.55rem;
}

.hero-indicators [data-bs-target] {
  width: 0.9rem;
  height: 0.9rem;
  border: 0;
  border-radius: 999px;
  background-color: rgba(255, 255, 255, 0.42);
  opacity: 1;
}

.hero-indicators .active {
  background-color: #FFC107;
}
.animated-crane {
  position: absolute;
  bottom: 0;
  right: 5vw;
  z-index: 3;
  width: 180px;
  height: 180px;
}

.trusted-by img {
  max-height: 48px;
  filter: grayscale(1) contrast(1.2);
  opacity: 0.8;
  transition: filter 0.2s, opacity 0.2s;
}
.trusted-by img:hover {
  filter: none;
  opacity: 1;
}

.card, .service-card, .industry-card {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--card-border);
  border-radius: 1rem;
  background: var(--card-bg);
  box-shadow: var(--card-shadow);
  transition: transform 0.35s cubic-bezier(0.2, 0.7, 0.2, 1), box-shadow 0.35s ease, border-color 0.35s ease;
}

.card::before,
.service-card::before,
.industry-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #0B3D91 0%, #FFC107 100%);
  transform: scaleX(0.25);
  transform-origin: left;
  transition: transform 0.35s ease;
}

.card::after,
.service-card::after,
.industry-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, rgba(255, 255, 255, 0) 28%, rgba(255, 255, 255, 0.42) 48%, rgba(255, 255, 255, 0) 62%);
  transform: translateX(-120%);
  pointer-events: none;
}

.card:hover,
.service-card:hover,
.industry-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--card-shadow-hover);
  border-color: rgba(11, 61, 145, 0.3);
}

.card:hover::before,
.service-card:hover::before,
.industry-card:hover::before {
  transform: scaleX(1);
}

.card:hover::after,
.service-card:hover::after,
.industry-card:hover::after {
  animation: cardShine 0.9s ease;
}

.card .card-body,
.service-card,
.industry-card {
  z-index: 1;
}

.card-title,
.service-card h5,
.industry-label {
  letter-spacing: 0.2px;
}

.card-text,
.service-card p,
.industry-copy {
  color: #55677f;
}

#industries {
  position: relative;
  background: linear-gradient(180deg, #f7f9fd 0%, #eef3fb 100%);
  overflow: hidden;
}

#industries::before,
#industries::after {
  content: '';
  position: absolute;
  border-radius: 999px;
  pointer-events: none;
  z-index: 1;
}

#industries::before {
  width: 300px;
  height: 300px;
  top: -120px;
  left: -90px;
  background: radial-gradient(circle, rgba(11, 61, 145, 0.16), rgba(11, 61, 145, 0));
}

#industries::after {
  width: 340px;
  height: 340px;
  right: -120px;
  bottom: -140px;
  background: radial-gradient(circle, rgba(255, 193, 7, 0.2), rgba(255, 193, 7, 0));
}

#industries .container {
  position: relative;
  z-index: 2;
}

.industries-intro {
  max-width: 820px;
  margin-left: auto;
  margin-right: auto;
  color: #465b76;
  font-size: 1.05rem;
}

#industries .industry-card {
  background: linear-gradient(165deg, #ffffff 0%, #f4f8ff 100%);
  border: 1px solid rgba(11, 61, 145, 0.12);
  box-shadow: 0 10px 28px rgba(11, 61, 145, 0.1);
  transition: transform 0.32s ease, box-shadow 0.32s ease, border-color 0.32s ease;
}

#industries .industry-card:hover {
  transform: translateY(-7px);
  box-shadow: 0 18px 40px rgba(11, 61, 145, 0.2);
  border-color: rgba(11, 61, 145, 0.24);
}

.industry-label {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 0.7rem;
}

.industry-emoji {
  width: 2.2rem;
  height: 2.2rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
  line-height: 1;
  border-radius: 50%;
  background: linear-gradient(135deg, #fff4cf 0%, #ffe08a 100%);
  box-shadow: 0 4px 12px rgba(255, 193, 7, 0.35);
}

.industry-copy {
  color: #57687f;
  font-size: 0.94rem;
  line-height: 1.55;
}
.card-img-top {
  background: #F5F7FA;
  padding: 0;
  height: 240px;
  object-fit: contain;
  display: block;
  width: 100%;
  margin: 0;
  border-radius: 1rem 1rem 0 0;
}

.product-crane-img {
  width: 100%;
  max-width: 100%;
  height: 240px;
  max-height: 240px;
  object-fit: contain;
  display: block;
  margin: 0;
  border-radius: 1rem 1rem 0 0;
  box-shadow: none;
}

.product-detail-img {
  width: 100%;
  max-height: 560px;
  object-fit: contain;
  background: #ffffff;
}

/* Product detail pages: polished content layout and full-image visibility */
.py-5 .container > a.btn-outline-secondary.mb-4 + .row > .col-12:first-child img.img-fluid.rounded.shadow-lg {
  width: 100%;
  height: clamp(260px, 42vw, 560px);
  object-fit: contain;
  background: #ffffff;
  padding: 0.5rem;
  border: 1px solid rgba(11, 61, 145, 0.12);
}

.py-5 .container > a.btn-outline-secondary.mb-4 + .row > .col-12:last-child {
  background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
  border: 1px solid rgba(11, 61, 145, 0.12);
  border-radius: 1rem;
  box-shadow: 0 16px 32px rgba(11, 61, 145, 0.08);
  padding: 2rem 2rem 1.5rem;
}

.py-5 .container > a.btn-outline-secondary.mb-4 + .row > .col-12:last-child h1 {
  margin-bottom: 0.6rem;
  line-height: 1.15;
}

.py-5 .container > a.btn-outline-secondary.mb-4 + .row > .col-12:last-child .text-muted {
  display: inline-block;
  background: #eef4ff;
  border: 1px solid rgba(11, 61, 145, 0.2);
  border-radius: 999px;
  padding: 0.35rem 0.9rem;
}

.py-5 .container > a.btn-outline-secondary.mb-4 + .row > .col-12:last-child h4 {
  border-left: 4px solid #ffc107;
  padding-left: 0.7rem;
  margin-top: 1.5rem;
  margin-bottom: 0.9rem;
}

.py-5 .container > a.btn-outline-secondary.mb-4 + .row > .col-12:last-child ul {
  margin-bottom: 1.2rem;
  padding-left: 1.3rem;
}

.py-5 .container > a.btn-outline-secondary.mb-4 + .row > .col-12:last-child li {
  margin-bottom: 0.35rem;
}

.btn-warning {
  background: #FFC107;
  color: #0B3D91;
  border: none;
  font-weight: 600;
  letter-spacing: 0.5px;
}
.btn-warning:hover {
  background: #e6b200;
  color: #fff;
}

.wa-float-btn {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: #25D366;
  color: white;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  text-decoration: none;
  border: 2px solid rgba(255, 255, 255, 0.9);
  box-shadow: 0 10px 24px rgba(18, 140, 126, 0.35);
  z-index: 999;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background-color 0.25s ease;
}
.wa-float-btn:hover {
  background: #128C7E;
  color: #fff;
  transform: translateY(-2px) scale(1.05);
  box-shadow: 0 14px 28px rgba(18, 140, 126, 0.45);
}

.wa-float-icon {
  display: block;
  width: 32px;
  height: 32px;
}

@media (max-width: 576px) {
  .wa-float-btn {
    width: 52px;
    height: 52px;
    right: 14px;
    bottom: 14px;
  }

  .wa-float-icon {
    width: 28px;
    height: 28px;
  }
}

footer {
  font-size: 1rem;
  letter-spacing: 0.5px;
}

.gallery-img {
  transition: transform 0.3s, box-shadow 0.3s;
  cursor: pointer;
}
.gallery-img:hover {
  transform: scale(1.04);
  box-shadow: 0 8px 32px rgba(11,61,145,0.15);
}

@keyframes cardShine {
  to {
    transform: translateX(120%);
  }
}

@media (prefers-reduced-motion: reduce) {
  .card,
  .service-card,
  .industry-card {
    transition: none;
  }

  .card::after,
  .service-card::after,
  .industry-card::after {
    display: none;
  }

  .card:hover,
  .service-card:hover,
  .industry-card:hover {
    transform: none;
  }
}

@media (max-width: 991px) {
  .hero-section {
    height: auto;
    min-height: 74vh;
    background-image:
      linear-gradient(102deg, rgba(6, 24, 57, 0.92) 0%, rgba(8, 32, 76, 0.82) 47%, rgba(11, 61, 145, 0.26) 100%),
      radial-gradient(circle at 82% 86%, rgba(255, 193, 7, 0.2), rgba(255, 193, 7, 0) 40%),
      var(--hero-slide-image, url('../images/hero-1.jpg'));
    background-position: left top, 82% 86%, center center;
    background-size: cover, 120% 100%, cover;
  }

  .hero-overlay {
    height: auto;
    min-height: 74vh;
    padding: 2.2rem 0 2.7rem;
  }

  .hero-content {
    width: min(100%, 540px);
    background: linear-gradient(160deg, rgba(6, 24, 57, 0.78) 0%, rgba(6, 24, 57, 0.64) 100%);
  }
}

@media (max-width: 768px) {
  .hero-section {
    height: auto;
    min-height: 72vh;
    background-position: left top, 84% 88%, center center;
    background-size: cover, 125% 100%, cover;
  }
  .hero-overlay {
    height: auto;
    min-height: 72vh;
    padding: 2.25rem 0 2.75rem;
  }
  .hero-content {
    max-width: 100%;
    padding: 1.3rem;
  }
  .hero-carousel {
    max-width: 100%;
    padding-bottom: 2rem;
  }
  .hero-overlay h1 {
    font-size: clamp(2rem, 6.8vw, 3rem);
    line-height: 1.1;
  }
  .hero-overlay p {
    font-size: 1rem;
    line-height: 1.45;
  }
  .card-img-top {
    height: 160px;
    padding: 0.35rem 0 0;
  }
  .animated-crane {
    width: 100px;
    height: 100px;
    right: 2vw;
  }
}

/* Additional mobile responsiveness */
@media (max-width: 576px) {
  .hero-section {
    height: auto;
    min-height: 88vh;
    background-image:
      linear-gradient(162deg, rgba(7, 28, 68, 0.9) 0%, rgba(9, 40, 95, 0.74) 50%, rgba(11, 61, 145, 0.3) 100%),
      radial-gradient(circle at 78% 88%, rgba(255, 193, 7, 0.2), rgba(255, 193, 7, 0) 40%),
      var(--hero-slide-image, url('../images/hero-1.jpg'));
    background-position: left top, 76% 88%, center center;
    background-size: cover, 130% 88%, cover;
  }
  .hero-section::after {
    background: linear-gradient(180deg, rgba(4, 16, 38, 0.03) 0%, rgba(4, 16, 38, 0.14) 100%);
  }
  .hero-overlay {
    min-height: 88vh;
    align-items: center;
    padding: 1.75rem 0 2.25rem;
  }
  .hero-overlay h1 {
    font-size: clamp(1.95rem, 8.1vw, 2.5rem);
    line-height: 1.1;
    letter-spacing: 0.01em;
    margin-bottom: 0.85rem;
  }
  .hero-overlay p {
    font-size: 0.96rem;
    line-height: 1.45;
    margin-bottom: 1.05rem;
  }
  .hero-content {
    width: min(100%, calc(100% - 1.25rem));
    margin-inline: auto;
    padding: 1.05rem 0.95rem 1.2rem;
    border-radius: 1.25rem;
    text-align: center;
    background: linear-gradient(160deg, rgba(6, 24, 57, 0.78) 0%, rgba(6, 24, 57, 0.62) 100%);
    border: 1px solid rgba(255, 255, 255, 0.18);
    box-shadow: 0 16px 34px rgba(3, 13, 32, 0.3);
    backdrop-filter: blur(8px);
  }
  .hero-indicators {
    justify-content: center;
    gap: 0.45rem;
  }
  .hero-indicators [data-bs-target] {
    width: 0.78rem;
    height: 0.78rem;
  }
  .hero-kicker {
    font-size: 0.72rem;
    letter-spacing: 0.11em;
    margin-bottom: 0.65rem;
    padding: 0.38rem 0.75rem;
  }
  .btn-lg {
    font-size: 1.02rem;
    padding: 0.56rem 1.05rem;
  }
  .card-img-top, .product-crane-img {
    height: 180px;
    object-fit: contain;
    padding: 0.35rem 0;
  }
  .card .card-body {
    padding: 1.1rem;
  }
  .service-card, .industry-card {
    padding: 1rem;
  }
  .industries-intro {
    font-size: 0.96rem;
  }
  .industry-label {
    font-size: 0.98rem;
    margin-bottom: 0.55rem;
  }
  .industry-emoji {
    width: 1.9rem;
    height: 1.9rem;
    font-size: 1.12rem;
  }
  .industry-copy {
    font-size: 0.86rem;
    line-height: 1.45;
  }
  .gallery-img {
    margin-bottom: 1rem;
  }
  .wa-float-btn {
    bottom: 15px;
    right: 15px;
    width: 52px;
    height: 52px;
  }
  .wa-float-icon {
    width: 28px;
    height: 28px;
  }
  footer .row {
    text-align: center !important;
  }
  footer .col-md-6 {
    margin-bottom: 1rem;
  }
}

/* Modal responsiveness */
@media (max-width: 576px) {
  .modal-dialog {
    margin: 0.5rem;
  }
  .modal-dialog-centered {
    min-height: calc(100% - 1rem);
  }
  .modal-content {
    border-radius: 0.5rem;
  }
}

/* Touch-friendly buttons */
@media (max-width: 576px) {
  .btn {
    min-height: 44px;
    font-size: 1rem;
  }
  .navbar-toggler {
    width: 44px;
    height: 44px;
  }
}

/* Mobile spacing adjustments */
@media (max-width: 576px) {
  .container {
    padding-left: 1rem;
    padding-right: 1rem;
  }
  .py-5 {
    padding-top: 2rem !important;
    padding-bottom: 2rem !important;
  }
  .mb-5 {
    margin-bottom: 2rem !important;
  }
  .g-4 {
    --bs-gutter-x: 1rem;
    --bs-gutter-y: 1rem;
  }
}
