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: 70vh;
  min-height: 400px;
  overflow: hidden;
  background: #0B3D91;
}
.hero-video {
  width: 100vw;
  height: 100%;
  object-fit: cover;
  position: absolute;
  left: 0;
  top: 0;
  z-index: 1;
}
.hero-overlay {
  position: relative;
  z-index: 2;
  min-height: 70vh;
  background: rgba(11,61,145,0.45);
  padding-top: 5vh;
  padding-bottom: 5vh;
}
.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: 180px;
  object-fit: contain;
  display: block;
  width: 100%;
  margin: 0;
  border-radius: 1rem 1rem 0 0;
}

.product-crane-img {
  width: 100%;
  max-width: 100%;
  height: 180px;
  max-height: 180px;
  object-fit: contain;
  display: block;
  margin: 0;
  border-radius: 1rem 1rem 0 0;
  box-shadow: none;
}

.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: 768px) {
  .hero-section, .hero-overlay {
    height: 40vh;
    min-height: 200px;
    padding: 2rem 0;
  }
  .card-img-top {
    height: 120px;
    padding: 1rem 0 0 0;
  }
  .animated-crane {
    width: 100px;
    height: 100px;
    right: 2vw;
  }
}

/* Additional mobile responsiveness */
@media (max-width: 576px) {
  .hero-overlay h1 {
    font-size: 2rem;
  }
  .hero-overlay p {
    font-size: 1rem;
  }
  .btn-lg {
    font-size: 1rem;
    padding: 0.5rem 1rem;
  }
  .card-img-top, .product-crane-img {
    height: 100px;
  }
  .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;
  }
}
