html {
  scroll-behavior: smooth;
}

.animate-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition:
    opacity 0.7s ease,
    transform 0.7s ease;
  transition-delay: var(--delay, 0s);
}
.animate-on-scroll.visible {
  opacity: 1;
  transform: translateY(0);
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-20px);
  }
}
@keyframes pulse-particle {
  0%,
  100% {
    opacity: 0.4;
    transform: scale(1);
  }
  50% {
    opacity: 0.8;
    transform: scale(1.1);
  }
}
@keyframes scrollLine {
  0% {
    transform: scaleY(0);
    transform-origin: top;
  }
  50% {
    transform: scaleY(1);
    transform-origin: top;
  }
  51% {
    transform: scaleY(1);
    transform-origin: bottom;
  }
  100% {
    transform: scaleY(0);
    transform-origin: bottom;
  }
}
@keyframes scroll {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

.navbar.scrolled {
  background: rgba(255, 255, 255, 0.98);
  border-bottom-color: #e2e8f0;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
  padding-top: 0.5rem;
  padding-bottom: 0.5rem;
}
.navbar.scrolled .logo-img {
  height: 36px;
}

.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}
.hamburger.active span:nth-child(2) {
  opacity: 0;
}
.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

@media (max-width: 767px) {
  .nav-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    max-width: 320px;
    height: 100vh;
    background: #fff;
    box-shadow: -10px 0 30px rgba(0, 0, 0, 0.1);
    transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 80px 30px 30px;
    z-index: 999;
  }
  .nav-menu.active {
    right: 0;
  }
}

.particle {
  position: absolute;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgba(240, 185, 11, 0.1) 0%,
    transparent 70%
  );
  animation: float 8s ease-in-out infinite;
}
.particle:nth-child(1) {
  top: 10%;
  left: 10%;
  animation-delay: 0s;
}
.particle:nth-child(2) {
  top: 60%;
  right: 10%;
  animation-delay: 2s;
  width: 200px;
  height: 200px;
}
.particle:nth-child(3) {
  bottom: 10%;
  left: 30%;
  animation-delay: 4s;
  width: 250px;
  height: 250px;
}
.particle:nth-child(4) {
  top: 30%;
  right: 30%;
  animation-delay: 1s;
  width: 150px;
  height: 150px;
  animation: pulse-particle 6s ease-in-out infinite;
}
.particle:nth-child(5) {
  bottom: 30%;
  left: 60%;
  animation-delay: 3s;
  width: 180px;
  height: 180px;
}

.scroll-line {
  animation: scrollLine 2s ease-in-out infinite;
}

.hero-stat-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(15, 29, 53, 0.68),
    rgba(15, 29, 53, 0.5)
  );
  z-index: 0;
}
.hero-stat-card > * {
  position: relative;
  z-index: 1;
}
.hero-stat-card:hover::before {
  background: linear-gradient(
    135deg,
    rgba(15, 29, 53, 0.74),
    rgba(15, 29, 53, 0.56)
  );
}
.hero-stat-card-1 {
  background:
    linear-gradient(135deg, rgba(15, 29, 53, 0.22), rgba(15, 29, 53, 0.14)),
    url("/assets/construction_site.jpg") center/cover;
}
.hero-stat-card-2 {
  background:
    linear-gradient(135deg, rgba(15, 29, 53, 0.22), rgba(15, 29, 53, 0.14)),
    url("/assets/industrial_building.jpg") center/cover;
}
.hero-stat-card-3 {
  background:
    linear-gradient(135deg, rgba(15, 29, 53, 0.22), rgba(15, 29, 53, 0.14)),
    url("/assets/warehouse_logistics_truck.jpg") center/cover;
}

.hero-features-bg {
  background:
    linear-gradient(135deg, rgba(15, 29, 53, 0.22), rgba(15, 29, 53, 0.14)),
    url("/assets/steel_structure_industrial.jpg") center/cover;
}
.hero-features-bg::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(15, 29, 53, 0.68),
    rgba(15, 29, 53, 0.5)
  );
  z-index: 0;
}

.about-hero-bg {
  background: url("/assets/construction_site.jpg") center/cover;
}
.about-hero-bg img {
  opacity: 0;
}

.feature-box-1 {
  background: url("/assets/warehouse_logistics_truck.jpg") center/cover;
}
.feature-box-2 {
  background: url("/assets/steel_structure_industrial.jpg") center/cover;
}
.feature-box-1 img,
.feature-box-2 img {
  opacity: 0;
}

.service-bg-1 .service-image-wrapper {
  background:
    linear-gradient(135deg, rgba(15, 29, 53, 0.5), rgba(15, 29, 53, 0.35)),
    url("/assets/construction_site.jpg") center/cover;
}
.service-bg-2 .service-image-wrapper {
  background:
    linear-gradient(135deg, rgba(15, 29, 53, 0.5), rgba(15, 29, 53, 0.35)),
    url("/assets/steel_structure_industrial.jpg") center/cover;
}
.service-bg-3 .service-image-wrapper {
  background:
    linear-gradient(135deg, rgba(15, 29, 53, 0.5), rgba(15, 29, 53, 0.35)),
    url("/assets/industrial_building.jpg") center/cover;
}
.service-bg-4 .service-image-wrapper {
  background:
    linear-gradient(135deg, rgba(15, 29, 53, 0.5), rgba(15, 29, 53, 0.35)),
    url("/assets/warehouse_logistics_truck.jpg") center/cover;
}
.service-bg-5 .service-image-wrapper {
  background:
    linear-gradient(135deg, rgba(15, 29, 53, 0.5), rgba(15, 29, 53, 0.35)),
    url("/assets/construction_site.jpg") center/cover;
}

/* Service overlay gradient */
.service-overlay {
  background: linear-gradient(
    to top,
    rgba(15, 29, 53, 0.82) 0%,
    rgba(15, 29, 53, 0.45) 50%,
    rgba(15, 29, 53, 0.18) 100%
  );
  transition: background 0.4s ease;
}
.service-card-new:hover .service-overlay {
  background: linear-gradient(
    to top,
    rgba(15, 29, 53, 0.88) 0%,
    rgba(15, 29, 53, 0.55) 60%,
    rgba(15, 29, 53, 0.25) 100%
  );
}

.detailed-service-item {
  position: relative;
  overflow: hidden;
}
.detailed-service-item::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(15, 29, 53, 0.56),
    rgba(15, 29, 53, 0.42)
  );
  z-index: 1;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.detailed-service-item:hover::before {
  background: linear-gradient(
    135deg,
    rgba(15, 29, 53, 0.5),
    rgba(15, 29, 53, 0.38)
  );
}
.detailed-service-item::after {
  content: "";
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  z-index: 0;
  transition: transform 0.6s ease;
}
.detailed-service-item:hover::after {
  transform: scale(1.1);
}
.detailed-service-item:nth-child(1)::after {
  background-image: url("/assets/construction_site.jpg");
}
.detailed-service-item:nth-child(2)::after {
  background-image: url("/assets/steel_structure_industrial.jpg");
}
.detailed-service-item:nth-child(3)::after {
  background-image: url("/assets/warehouse_logistics_truck.jpg");
}
.detailed-service-item:nth-child(4)::after {
  background-image: url("/assets/industrial_building.jpg");
}
.detailed-service-item:nth-child(5)::after {
  background-image: url("/assets/construction_site.jpg");
}
.detailed-service-item:nth-child(6)::after {
  background-image: url("/assets/warehouse_logistics_truck.jpg");
}
.detailed-service-item:nth-child(7)::after {
  background-image: url("/assets/industrial_building.jpg");
}
.detailed-service-item:nth-child(8)::after {
  background-image: url("/assets/steel_structure_industrial.jpg");
}
.detailed-service-item:nth-child(9)::after {
  background-image: url("/assets/construction_site.jpg");
}
.detailed-service-item:nth-child(10)::after {
  background-image: url("/assets/steel_structure_industrial.jpg");
}
.detailed-service-item:nth-child(11)::after {
  background-image: url("/assets/warehouse_logistics_truck.jpg");
}
.detailed-service-item:nth-child(12)::after {
  background-image: url("/assets/industrial_building.jpg");
}

/* ==============================
   PROCESS CARDS — BG images
   ============================== */
.process-bg-1 {
  background: url("/assets/construction_site.jpg") center/cover;
}
.process-bg-2 {
  background: url("/assets/steel_structure_industrial.jpg") center/cover;
}
.process-bg-3 {
  background: url("/assets/industrial_building.jpg") center/cover;
}
.process-bg-4 {
  background: url("/assets/warehouse_logistics_truck.jpg") center/cover;
}

/* Process card content overlay */
.process-card-overlay {
  background: linear-gradient(
    to top,
    rgba(15, 29, 53, 0.82) 0%,
    rgba(15, 29, 53, 0.6) 60%,
    rgba(15, 29, 53, 0.3) 100%
  );
}
.group:hover .process-card-overlay {
  background: linear-gradient(
    to top,
    rgba(15, 29, 53, 0.88) 0%,
    rgba(15, 29, 53, 0.68) 60%,
    rgba(15, 29, 53, 0.38) 100%
  );
}

.advantage-bg-1 {
  background: url("/assets/construction_site.jpg") center/cover;
}
.advantage-bg-2 {
  background: url("/assets/warehouse_logistics_truck.jpg") center/cover;
}
.advantage-bg-3 {
  background: url("/assets/industrial_building.jpg") center/cover;
}
.advantage-bg-4 {
  background: url("/assets/steel_structure_industrial.jpg") center/cover;
}
.advantage-bg-5 {
  background: url("/assets/construction_site.jpg") center/cover;
}

/* Advantage content overlay */
.advantage-overlay {
  background: linear-gradient(
    to top,
    rgba(15, 29, 53, 0.8) 0%,
    rgba(15, 29, 53, 0.55) 60%,
    rgba(15, 29, 53, 0.2) 100%
  );
  transition: background 0.4s ease;
}
.group:hover .advantage-overlay {
  background: linear-gradient(
    to top,
    rgba(15, 29, 53, 0.86) 0%,
    rgba(15, 29, 53, 0.65) 60%,
    rgba(15, 29, 53, 0.3) 100%
  );
}

.testimonials-track {
  display: flex;
  gap: 24px;
  transition: transform 0.45s cubic-bezier(0.4, 0, 0.2, 1);
}

.clients-track {
  display: flex;
  gap: 60px;
  animation: scroll 40s linear infinite;
  width: max-content;
}
.clients-track:hover {
  animation-play-state: paused;
}

/* Clients carousel fade edges */
.clients-carousel::before,
.clients-carousel::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  width: 100px;
  z-index: 2;
  pointer-events: none;
}
.clients-carousel::before {
  left: 0;
  background: linear-gradient(to right, #f7f8fc, transparent);
}
.clients-carousel::after {
  right: 0;
  background: linear-gradient(to left, #f7f8fc, transparent);
}

.cta-banner::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      135deg,
      rgba(15, 29, 53, 0.95) 0%,
      rgba(15, 29, 53, 0.85) 100%
    ),
    url("/assets/industrial_building.jpg") center/cover;
  z-index: 0;
}
.cta-banner::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
    ellipse at 70% 50%,
    rgba(240, 185, 11, 0.15) 0%,
    transparent 70%
  );
  pointer-events: none;
  z-index: 1;
}

.schedule-toggle svg {
  transition: transform 0.3s;
}
.schedule-wrapper.active .schedule-toggle svg {
  transform: rotate(180deg);
}
.schedule-popup {
  position: absolute;
  bottom: calc(100% + 12px);
  left: 0;
  background: #1a2d4d;
  border: 1px solid rgba(240, 185, 11, 0.2);
  border-radius: 12px;
  padding: 16px 20px;
  min-width: 240px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all 0.3s ease;
  z-index: 10;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}
.schedule-wrapper.active .schedule-popup {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.schedule-popup::after {
  content: "";
  position: absolute;
  bottom: -8px;
  left: 24px;
  width: 14px;
  height: 14px;
  background: #1a2d4d;
  border-right: 1px solid rgba(240, 185, 11, 0.2);
  border-bottom: 1px solid rgba(240, 185, 11, 0.2);
  transform: rotate(45deg);
}

.feature-box-gradient {
  background: linear-gradient(
    to top,
    rgba(15, 29, 53, 0.95) 0%,
    rgba(15, 29, 53, 0.7) 70%,
    transparent 100%
  );
}

@media (max-width: 767px) {
  .clients-track {
    gap: 40px;
  }
}

@keyframes mascot-bounce {
  0%,
  100% {
    transform: translateY(0);
  }
  30% {
    transform: translateY(-18px);
  }
  50% {
    transform: translateY(-6px);
  }
  70% {
    transform: translateY(-12px);
  }
}
@keyframes mascot-wave {
  0%,
  100% {
    transform: rotate(0deg);
  }
  15% {
    transform: rotate(14deg);
  }
  30% {
    transform: rotate(-8deg);
  }
  45% {
    transform: rotate(10deg);
  }
  60% {
    transform: rotate(-4deg);
  }
  75% {
    transform: rotate(6deg);
  }
}
@keyframes mascot-enter {
  0% {
    opacity: 0;
    transform: translateY(80px) scale(0.5);
  }
  60% {
    opacity: 1;
    transform: translateY(-10px) scale(1.05);
  }
  80% {
    transform: translateY(4px) scale(0.98);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* Auto-show bubble then hide it */
@keyframes bubble-auto-show {
  0% {
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px) scale(0.95);
  }
  5% {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
  }
  85% {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
  }
  100% {
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px) scale(0.95);
  }
}

/* Hidden checkbox that controls bubble toggle */
.mascot-checkbox {
  position: fixed;
  opacity: 0;
  pointer-events: none;
  width: 0;
  height: 0;
}

.mascot-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 9999;
  /* Appear after 3s delay */
  opacity: 0;
  animation: mascot-enter 0.8s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
  animation-delay: 3s;
}

.mascot-figure-label {
  display: block;
  cursor: pointer;
}

.mascot-figure {
  cursor: pointer;
  width: 100px;
  height: auto;
  filter: drop-shadow(0 6px 20px rgba(0, 0, 0, 0.25));
  transition: filter 0.3s ease;
  animation: mascot-bounce 3s ease-in-out infinite;
  animation-delay: 4s;
}
.mascot-figure:hover {
  filter: drop-shadow(0 8px 30px rgba(240, 185, 11, 0.4));
  animation: mascot-wave 1.2s ease-in-out;
}

/* Speech bubble — default hidden */
.mascot-bubble {
  position: absolute;
  bottom: calc(100% + 12px);
  right: 0;
  background: #fff;
  border: 2px solid #f0b90b;
  border-radius: 16px;
  padding: 14px 18px;
  min-width: 220px;
  max-width: 260px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px) scale(0.95);
  transition: all 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
  pointer-events: none;
  /* Auto-show bubble after mascot appears (4.5s = 3s entry + 1.5s wait), lasts ~7s */
  animation: bubble-auto-show 8s ease 4.5s forwards;
}
.mascot-bubble::after {
  content: "";
  position: absolute;
  bottom: -9px;
  right: 36px;
  width: 16px;
  height: 16px;
  background: #fff;
  border-right: 2px solid #f0b90b;
  border-bottom: 2px solid #f0b90b;
  transform: rotate(45deg);
}

/* Checkbox checked → show bubble */
.mascot-checkbox:checked ~ .mascot-container .mascot-bubble {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
  pointer-events: auto;
  animation: none;
}

/* Hover on mascot also shows bubble */
.mascot-container:hover .mascot-bubble {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
  pointer-events: auto;
  animation: none;
}

/* Close button (label that unchecks) */
.mascot-close {
  position: absolute;
  top: -8px;
  right: -8px;
  width: 22px;
  height: 22px;
  background: #0f1d35;
  color: #fff;
  border: none;
  border-radius: 50%;
  font-size: 12px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  line-height: 1;
  text-decoration: none;
}
.mascot-close:hover {
  background: #f0b90b;
  color: #0f1d35;
  transform: scale(1.15);
}

/* LANGUAGE SWITCHER */

.lang-switcher {
  display: flex;
  align-items: center;
  gap: 2px;
  margin-left: 8px;
}

.lang-btn {
  padding: 5px 10px;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  border: 1.5px solid transparent;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s ease;
  color: #64748b;
  background: transparent;
  line-height: 1.4;
}

.lang-btn:hover {
  color: #0f1d35;
  border-color: #0f1d35;
  background: rgba(15, 29, 53, 0.05);
}

.lang-btn.active {
  color: #0f1d35;
  border-color: #f0b90b;
  background: rgba(240, 185, 11, 0.12);
}

@media (max-width: 480px) {
  .mascot-container {
    bottom: 80px;
    right: 16px;
  }
  .mascot-figure {
    width: 75px;
  }
  .mascot-bubble {
    min-width: 180px;
    max-width: 220px;
    right: -10px;
    font-size: 0.85rem;
  }
}

/* ==============================
   MOBILE-ONLY: Service cards
   ============================== */
.mobile-service-card {
  min-height: 100px;
}
.mobile-service-card:active {
  transform: scale(0.97);
  border-color: #f0b90b;
}

/* ==============================
   MOBILE-ONLY: Sticky CTA — offset mascot & add padding to footer
   ============================== */
@media (max-width: 767px) {
  .mascot-container {
    bottom: 80px;
  }
  body {
    padding-bottom: 72px;
  }
  .mobile-sticky-cta {
    animation: slideUpCta 0.5s ease forwards;
    animation-delay: 2s;
    opacity: 0;
    transform: translateY(100%);
  }
}
@keyframes slideUpCta {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
