
.product-title-agv {
  position: relative;
  height: 50vh;
  min-height: 420px;
  background: url("/pictures/AGV.png") center / cover no-repeat;
  display: flex;
  align-items: center ;
  overflow: hidden; /* tránh nội dung tràn khi dịch chuyển */
}

.product-title-agv::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, rgba(0,0,0,0.3), rgba(0,0,0,0.2));
}

.product-title-agv-content {
  position: relative;
  z-index: 1;
  padding-left: 120px;
  max-width: 600px;
  color: #fff;

  opacity: 0;
  transform: translateY(35px);
  animation: fadeUpTitle 1.3s cubic-bezier(0.22, 1, 0.36, 1) forwards;
  animation-delay: 0.4s;
  transition: transform 0.4s ease, text-shadow 0.4s ease;
}

@keyframes fadeUpTitle {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.product-title-agv-content:hover {
  transform: translateX(15px) translateY(-8px);
}

.product-title-agv h1 {
  font-size: 54px;
  margin-bottom: 18px;
  text-shadow: 0 4px 12px rgba(0,0,0,0.5);
  transition: text-shadow 0.4s ease, transform 0.4s ease;
}

.product-title-agv p {
  font-size: 18px;
  line-height: 1.6;
  opacity: 0.95;
  transition: all 0.4s ease;
}

.product-title-agv-content:hover h1 {
  text-shadow: 0 8px 30px rgba(100, 180, 255, 0.7);
  transform: scale(1.02);
}

.product-title-agv-content:hover p {
  opacity: 1;
  text-shadow: 0 2px 10px rgba(255,255,255,0.4);
}

.product-agv {
  padding: 40px 5% 80px;
  background-color: #fff;
}

.product-agv-inner {
  width: 100%;
  padding-left: 5%;
}
/* Container chính */
.product-agv-wrap {
  display: flex;
  align-items: center;
  position: relative; /* Quan trọng để các con đè lên nhau */
  max-width: 1200px;
  margin: 0 auto;
  padding: 50px 0;
}

/* Phần Ảnh (Khối màu đỏ trong hình của bạn) */
.product-agv-image {
  flex: 0 0 60%; /* Ảnh chiếm 60% chiều rộng */
  z-index: 1;    /* Nằm dưới */
}

.product-agv-image img {
  width: 100%;
  display: block;
  border-radius: 8px;
  box-shadow: 10px 10px 30px rgba(0,0,0,0.1);
}

/* Phần Nội dung (Khối màu xanh lá trong hình của bạn) */
.product-agv-content {
  flex: 1.2;
  background: #c5c5c9;
  bottom: -120px;
  width: 900px;        /* ← DÀI HƠN */

  padding: 80px;
  margin-left: -120px;   /* Kéo sang trái để đè lên ảnh */
  margin-top: 150px;    /* Đẩy xuống dưới để tạo hiệu ứng lệch góc */
  z-index: 2;
  position: relative;
}

.product-agv-content h2 {
  text-align: center;      /* CANH GIỮA */
  font-size: 2.4rem;
  color: #022552;
  margin-bottom: 32px;
}

.product-agv-content p {
  font-size: 1.05rem;
  line-height: 1.85;
  color: #1f2937;
  margin-bottom: 22px;
}

/* Electric Title Effect cho h2 Overview */
.electric-title {
  color: #00f0ff;                    /* Màu cyan neon điện chính */
  line-height: 1.6;             /* Tăng nhẹ line-height để dành không gian cho dấu */
  overflow: hidden;
  font-size: 2.8rem;                 /* Giữ kích thước như cũ hoặc chỉnh theo bạn */
  font-weight: 900;
  letter-spacing: 1.5px;
  text-transform: uppercase;         /* Optional: cho vibe công nghệ */
  text-shadow: 
    0 0 8px #00f0ff,
    0 0 16px #00f0ff,
    0 0 32px #00bfff,
    0 0 64px #0099ff,
    0 0 120px #0066ff;               /* Glow mạnh, lan tỏa như điện */

  position: relative;
  display: inline-block;
  padding: 0 10px;                   /* Để tia sét không sát chữ */
  animation: 
    electric-flicker 2.8s infinite linear,
    electric-pulse 5s infinite ease-in-out;
}

/* Electric / Lightning Flow Effect cho h2 Overview */
.electric-title {
  color: #e0ffff;                    /* Cyan nhạt để nổi trên nền */
  font-size: 2.8rem;
  font-weight: 900;
  letter-spacing: 2px;
  text-transform: uppercase;
  text-shadow: 
    0 0 5px #00ffff,
    0 0 10px #00ffff,
    0 0 20px #00bfff,
    0 0 40px #0099ff,
    0 0 80px #0066ff;               /* Glow cơ bản */

  position: relative;
  display: inline-block;
  padding: 0 8px;
  animation: 
    flicker 4s infinite steps(1),     /* Nhấp nháy chập điện ngẫu nhiên hơn */
    glow-pulse 8s infinite ease-in-out; /* Glow pulse + màu chuyển */
  overflow: hidden;                   /* Để spark không tràn */
}

/* Flicker mạnh hơn, giống đèn neon cũ hoặc điện chập */
@keyframes flicker {
  0%, 19%, 21.5%, 23%, 25%, 54%, 56%, 100% { opacity: 1; text-shadow: 0 0 5px #00ffff, 0 0 10px #00ffff, 0 0 20px #00bfff, 0 0 40px #0099ff; }
  20%, 24%, 55% { opacity: 0.4; text-shadow: none; } /* Tắt đột ngột */
}

/* Pulse glow + chuyển màu điện (cyan → tím → xanh) */
@keyframes glow-pulse {
  0%, 100% { text-shadow: 0 0 10px #00ffff, 0 0 20px #00ffff, 0 0 40px #00bfff, 0 0 80px #0099ff; }
  30%      { text-shadow: 0 0 15px #ff00ff, 0 0 30px #ff00ff, 0 0 60px #cc00ff, 0 0 120px #9900ff; }
  60%      { text-shadow: 0 0 12px #00ffcc, 0 0 25px #00ffcc, 0 0 50px #00cc99, 0 0 100px #009966; }
}

/* Tia sét / spark chạy dọc chữ (dùng ::after cho vertical flow) */
.electric-title::after,
.electric-title::before {
  content: '';
  position: absolute;
  left: 0;
  width: 100%;
  
  /* Điều chỉnh lại chiều cao tia sét vừa phải */
  height: 120%; 
  top: -10%; 
  
  /* Giữ nguyên các thuộc tính khác */
  background: linear-gradient(
    to bottom,
    transparent 0%,
    rgba(0, 255, 255, 0.6) 30%,
    rgba(255, 0, 255, 0.4) 50%,
    transparent 70%
  );
  opacity: 0;
  pointer-events: none;
  animation: lightning-flow 5s infinite;
  mix-blend-mode: screen;
}

.electric-title::before {
  animation-delay: 2.5s;        /* Lệch pha cho 2 tia sét */
  background: linear-gradient(
    to bottom,
    transparent 0%,
    rgba(255, 255, 0, 0.5) 40%,
    transparent 80%
  );
}

@keyframes lightning-flow {
  0%   { opacity: 0; transform: translateY(-100%); }
  10%  { opacity: 0.8; transform: translateY(0); }
  20%  { opacity: 0; transform: translateY(100%); }
  100% { opacity: 0; }
}

/* Hover: Điện giật mạnh hơn */
.electric-title:hover {
  animation-duration: 2.5s;     /* Nhanh + mạnh khi hover */
  text-shadow: 0 0 20px #00ffff, 0 0 40px #00ffff, 0 0 80px #00ccff !important;
}

/* title */
/* =========================
   AGV WHITE SCAN EFFECT
========================= */

.agv-scan {
  font-size: 90px;
  font-weight: 900;
  letter-spacing: -1px;
  position: relative;
  display: inline-block;

  color: #ffffff; /* chữ trắng rõ */
  background: linear-gradient(
    120deg,
    rgba(255,255,255,1) 0%,
    rgba(255,255,255,1) 40%,
    rgba(255,255,255,0.3) 50%,
    rgba(255,255,255,1) 60%,
    rgba(255,255,255,1) 100%
  );

  background-size: 200% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;

  animation: cleanScan 3s ease-in-out infinite;
}

@keyframes cleanScan {
  0% {
    background-position: -150% 0;
  }
  100% {
    background-position: 150% 0;
  }
}

/* Responsive cho điện thoại */
@media (max-width: 900px) {
  .product-agv-wrap {
    flex-direction: column; /* Xếp chồng dọc khi màn hình nhỏ */
    padding: 20px;
  }
  
.product-agv-image, 
.product-agv-content {
    flex: 0 0 100%;
    width: 100%;
    margin-left: 0; /* Bỏ phần đè nhau trên mobile để dễ đọc */
  }

  .product-agv-content {
    margin-top: -30px; /* Đè nhẹ theo chiều dọc trên mobile nếu muốn */
    padding: 30px;
  }
}

.agv-working {
  padding: 100px 5%;
  background: #fff;
}

.agv-working-title {
  text-align: center;
  font-size: 3rem;
  color: #0d47a1;
  font-weight: 600;
  margin-bottom: 80px;
}

/* mỗi bước */
.agv-step {
  display: flex;
  align-items: center;
  gap: 60px;
  max-width: 1200px;
  margin: 0 auto 80px;
}

/* đảo chiều block */
.agv-step.reverse {
  flex-direction: row-reverse;
}

.agv-step-text {
  flex: 1;
}

.agv-step-text p {
  font-size: 1.1rem;
  line-height: 1.8;
  color: #333;
  margin-bottom: 20px;
}

.agv-step-image {
  flex: 1;
}

.agv-step-image img {
  width: 100%;
  height: 360px;
  object-fit: cover;
  border-radius: 10px;
  box-shadow: 0 12px 35px rgba(0,0,0,0.12);
}

@media (max-width: 900px) {
  .agv-step,
  .agv-step.reverse {
    flex-direction: column;
  }

  .agv-working-title {
    font-size: 2.2rem;
    margin-bottom: 50px;
  }

  .agv-step-image img {
    height: 260px;
  }
}
.agv-benefits {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
}

/* CỘT TRÁI - nền nhẹ nhàng & sang trọng hơn */
.agv-benefits {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  min-height: 90vh;
  gap: 0; /* không cần khoảng cách giữa 2 cột */
}

/* CỘT TRÁI - Nền nhẹ + chữ fit đẹp */
.agv-benefits-left {
  background: linear-gradient(135deg, 
    #f0f4ff 0%, 
    #f8f0ff 35%, 
    #fff5f8 70%, 
    #f0fff8 100%
  );
  /* Nếu muốn giữ vibe gradient nhẹ của bạn ban đầu thì dùng cái này */
  /* background: 
    radial-gradient(circle at 15% 20%, rgba(154,215,200,0.12) 0%, transparent 50%),
    radial-gradient(circle at 85% 25%, rgba(245,164,216,0.10) 0%, transparent 50%),
    radial-gradient(circle at 50% 85%, rgba(249,178,106,0.08) 0%, transparent 50%),
    #f9faff; */

  display: flex;
  flex-direction: column;
  justify-content: center;     /* căn giữa theo chiều dọc */
  align-items: flex-start;     /* chữ bắt đầu từ trái nhưng không sát mép */
  padding: 80px 100px 80px 12%; /* padding trái rộng hơn → chữ fit tốt */
  position: relative;
}

/* Tiêu đề lớn - trải rộng, nổi bật */
.agv-benefits-left h2 {
  max-width: 720px;            /* tăng max-width để chữ trải rộng hơn */
  font-size: clamp(2.8rem, 5.5vw, 4.2rem);  /* responsive, to đẹp trên mọi màn hình */
  line-height: 1.12;
  font-weight: 800;
  letter-spacing: -0.8px;
  color: #0f1a5e;              /* navy đậm, sang, dễ đọc trên nền sáng */
  margin-bottom: 1.8rem;
  text-shadow: 0 3px 16px rgba(15, 26, 94, 0.12);
}

/* Phần mô tả phụ (nếu có) */
.agv-benefits-left .subtitle {
  max-width: 640px;
  font-size: 1.35rem;
  line-height: 1.5;
  color: #334466;
  margin-bottom: 2.5rem;
  font-weight: 500;
}

/* Nếu bạn muốn thêm hiệu ứng nhẹ cho tiêu đề */
.agv-benefits-left h2 span {
  display: block;
  background: linear-gradient(90deg, #6b48ff, #00d4ff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  font-weight: 900;
}

/* Responsive cho mobile */
@media (max-width: 1024px) {
  .agv-benefits {
    grid-template-columns: 1fr; /* stack trên mobile */
  }
  
@media (pointer: coarse) {
  .agv-benefits {
    grid-template-columns: 1fr;
  }
}
  
  .agv-benefits-left {
    padding: 60px 8%;
    justify-content: center;
    text-align: center; /* căn giữa chữ cho mobile */
  }
  
  .agv-benefits-left h2 {
    max-width: 100%;
    font-size: clamp(2.4rem, 7vw, 3.6rem);
  }
}


/* CỘT PHẢI */
.agv-benefits-right {
  padding: 80px 100px;
  background: #fff;
}

.benefit-item {
  margin-bottom: 50px;
}

.benefit-item h3 {
  font-size: 1.25rem;
  color: #0d47a1;
  margin-bottom: 14px;
  font-weight: 600;
}

.benefit-item ul {
  padding-left: 20px;
}

.benefit-item li {
  font-size: 1.05rem;
  line-height: 1.7;
  margin-bottom: 8px;
  color: #333;
}