/* ================= HERO ================= */

.hero{
  position: relative;
  overflow: hidden;

  /* co giãn mềm hơn desktop */
  min-height: clamp(520px, 78svh, 860px);
  transition: min-height 0.35s ease;
}

/* viewport */
.slider-viewport{
  position:absolute;
  inset:0;
  overflow:hidden;
  z-index:0;
}

/* track */
.slider-track{
  display:flex;
  height:100%;
  transition: transform 900ms cubic-bezier(0.22,1,0.36,1);
  will-change: transform;
}

/* slide */
.slide{
  flex:0 0 100%;
  height:100%;
  background-size:cover;
  background-repeat:no-repeat;
  background-position:center center;
  transform: scale(1.02);
  transition: transform 1.2s ease;
}

.hero:hover .slide{
  transform: scale(1.05);
}

/* overlay */
.overlay{
  position:absolute;
  inset:0;
  background:linear-gradient(
    to bottom,
    rgba(0,0,0,0.22),
    rgba(0,0,0,0.48)
  );
  z-index:1;
  pointer-events:none;
}

/* ================= CONTENT ================= */

.hero-content{
  position:relative;
  z-index:2;

  max-width:900px;
  margin:0 auto;
  min-height: inherit;

  padding:clamp(88px,10vw,150px) clamp(20px,6vw,60px);

  display:flex;
  flex-direction:column;
  justify-content:center;
  align-items:center;

  text-align:center;

  transition:
    transform 650ms cubic-bezier(0.22,1,0.36,1),
    opacity 650ms cubic-bezier(0.22,1,0.36,1),
    padding 0.35s ease;
}

.hero-content.is-animating{
  transform:translateX(-12px);
  opacity:0.96;
}

/* hiệu ứng load nhẹ */
.hero-content > *{
  animation: heroFadeUp 0.9s cubic-bezier(0.22,1,0.36,1) both;
}

.hero-title{ animation-delay: 0.08s; }
.hero-subtitle{ animation-delay: 0.18s; }
.hero button:not(.arrow){ animation-delay: 0.28s; }
.dots{ animation-delay: 0.38s; }

@keyframes heroFadeUp{
  from{
    opacity:0;
    transform:translateY(22px);
  }
  to{
    opacity:1;
    transform:translateY(0);
  }
}

/* ================= TEXT ================= */

.hero-title{
  font-size:clamp(34px,7vw,72px);
  font-weight:800;
  line-height:1.12;
  margin-bottom:18px;
  letter-spacing:-0.02em;
  text-wrap:balance;
}

.hero-subtitle{
  font-size:clamp(16px,3vw,22px);
  line-height:1.6;
  max-width:620px;
  margin:0 auto;
  opacity:0.95;
  text-wrap:pretty;
}

/* ================= BUTTON ================= */

.hero button{
  margin-top:26px;
  padding:12px 28px;
  border:1px solid rgba(255,255,255,0.9);
  border-radius:30px;
  background:transparent;
  color:#fff;
  font-size:16px;
  cursor:pointer;
  transition:
    transform 0.3s ease,
    background 0.3s ease,
    border-color 0.3s ease;
}

.hero button:hover{
  background:rgba(255,255,255,0.15);
  transform:translateY(-2px);
}

/* ================= ARROWS ================= */

.arrow{
  position:absolute;
  top:50%;
  transform:translateY(-50%);
  width:44px;
  height:44px;
  border-radius:50%;
  background:rgba(0,0,0,0.35);
  border:1px solid rgba(255,255,255,0.6);
  color:#fff;
  font-size:22px;
  display:flex;
  align-items:center;
  justify-content:center;
  cursor:pointer;
  z-index:10;
  transition:
    background .3s ease,
    transform .3s ease,
    opacity .3s ease;
}

.arrow:hover{
  background:rgba(0,0,0,0.6);
}

.arrow.left{
  left:20px;
}

.arrow.right{
  right:20px;
}

/* ================= DOTS ================= */

.dots{
  margin-top:40px;
  text-align:center;
}

.dots span{
  display:inline-block;
  width:10px;
  height:10px;
  border-radius:50%;
  background:rgba(255,255,255,0.45);
  margin:0 6px;
  transition:
    background .3s,
    transform .3s,
    opacity .3s;
}

.dots .active{
  background:#ff3b3b;
  transform:scale(1.3);
}

/* ================= TABLET ================= */
@media (max-width: 1024px){
  .hero{
    min-height: clamp(420px, 68svh, 680px);
  }

  .hero-content{
    padding: clamp(72px, 9vw, 120px) 28px;
  }

  .hero-title{
    font-size: clamp(32px, 6vw, 56px);
  }

  .hero-subtitle{
    font-size: clamp(15px, 2.5vw, 20px);
    max-width: 560px;
  }
}

/* ================= MOBILE HERO FIX ================= */
@media (max-width: 768px) {
  .hero {
    min-height: clamp(320px, 62svh, 520px);
    height: auto !important;
    max-height: none !important;
    overflow: hidden !important;
  }

  .slider-viewport,
  .slider-track,
  .slide {
    height: 100% !important;
  }

  .slide {
    background-size: cover !important;
    background-repeat: no-repeat !important;
    background-position: center 35% !important;
    transform: scale(1.01);
  }

  .overlay {
    background: linear-gradient(
      to bottom,
      rgba(0, 0, 0, 0.18),
      rgba(0, 0, 0, 0.50)
    ) !important;
  }

  .hero-content {
    position: relative;
    z-index: 2;
    min-height: clamp(320px, 62svh, 520px);
    max-width: 100%;
    margin: 0;
    padding: clamp(56px, 10vw, 76px) 16px 22px !important;

    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;

    text-align: left !important;
  }

  .hero-title {
    font-size: clamp(24px, 7vw, 34px) !important;
    line-height: 1.08 !important;
    margin-bottom: 10px !important;
    max-width: min(86vw, 320px);
  }

  .hero-subtitle {
    font-size: clamp(13px, 3.6vw, 15px) !important;
    line-height: 1.45 !important;
    max-width: min(88vw, 320px) !important;
    margin: 0 !important;
  }

  .hero button:not(.arrow) {
    margin-top: 14px !important;
    padding: 9px 16px !important;
    font-size: 12px !important;
    border-radius: 22px !important;
  }

  .arrow {
    width: 32px !important;
    height: 32px !important;
    font-size: 14px !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    opacity: 0.92;
  }

  .arrow.left {
    left: 10px !important;
  }

  .arrow.right {
    right: 10px !important;
  }

  .dots {
    margin-top: 14px !important;
    text-align: left !important;
  }

  .dots span {
    width: 7px !important;
    height: 7px !important;
    margin: 0 6px 0 0 !important;
  }
}

/* ================= SMALL MOBILE ================= */
@media (max-width: 480px){
  .hero{
    min-height: clamp(280px, 56svh, 430px);
  }

  .hero-content{
    min-height: clamp(280px, 56svh, 430px);
    padding: 52px 14px 20px !important;
  }

  .hero-title{
    max-width: 280px;
  }

  .hero-subtitle{
    max-width: 280px !important;
  }

  .arrow{
    width: 30px !important;
    height: 30px !important;
  }
}
/* Trang2 */

/* ================= APPLICATIONS ================= */
.apps{
  position: relative;
  margin: 40px 60px 0;
  padding: 0;
  border-radius: 28px;
}

/* lớp .apps ngoài cùng */
section.apps{
  padding: 64px 72px 42px;
  background: rgba(255,255,255,0.08);
  backdrop-filter: blur(10px) saturate(1.15);
  -webkit-backdrop-filter: blur(10px) saturate(1.15);
  border: 1px solid rgba(255,255,255,0.16);
  box-shadow: 0 10px 32px rgba(0,0,0,0.14);
  overflow: hidden;
}

/* lớp .apps bên trong header wrapper */
section.apps > .apps{
  margin: 0;
  padding: 0;
  background: transparent;
  border: 0;
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border-radius: 0;
}

body{
  background: url('/pictures/Bg_2.jpg') center/cover no-repeat fixed;
}

.apps-header{
  margin-bottom: 18px;
}

.apps-kicker{
  display:inline-flex;
  align-items:center;
  gap:8px;
  font-size:13px;
  font-weight:700;
  letter-spacing:0.04em;
  padding:7px 14px;
  background: linear-gradient(90deg, #0f2027, #203a43, #2c5364);
  color:#fff;
  border-radius:999px;
  margin-bottom:14px;
}

.apps-title{
  display:block;
  font-size:clamp(38px, 5vw, 64px);
  line-height:1.02;
  color:#fff;
  position:relative;
  margin:0;
}

.apps-title::after{
  content:"";
  position:absolute;
  left:0;
  bottom:-12px;
  width:220px;
  max-width:42vw;
  height:5px;
  background: linear-gradient(90deg, #00c6ff, #0072ff);
  border-radius:999px;
}

.apps-desc{
  max-width:860px;
  color:#f4efef;
  font-size:16px;
  line-height:1.7;
  margin:0 0 30px;
}

.apps-carousel{
  position:relative;
  display:flex;
  align-items:center;
  gap:16px;
}

.apps-arrow{
  width:52px;
  height:52px;
  flex:0 0 52px;
  border-radius:999px;
  border:1px solid rgba(255,255,255,0.35);
  background: rgba(255,255,255,0.92);
  color:#111;
  cursor:pointer;
  display:flex;
  align-items:center;
  justify-content:center;
  font-size:22px;
  box-shadow: 0 10px 24px rgba(0,0,0,0.10);
  transition:
    transform .25s ease,
    background .25s ease,
    box-shadow .25s ease;
}

.apps-arrow:hover{
  transform: translateY(-2px);
  background:#fff;
  box-shadow: 0 14px 28px rgba(0,0,0,0.14);
}

.apps-viewport{
  flex:1;
  min-width:0;
  overflow-x:auto;
  overflow-y:hidden;
  scroll-behavior:smooth;
  scrollbar-width:none;
  -ms-overflow-style:none;
}

.apps-viewport::-webkit-scrollbar{
  display:none;
}

.apps-track{
  display:flex;
  gap:20px;
  padding:8px 2px 10px;
  scroll-snap-type:x mandatory;
}

.apps-card{
  position:relative;
  flex:0 0 320px;
  height:320px;
  border-radius:24px;
  overflow:hidden;
  text-decoration:none;
  scroll-snap-align:start;
  box-shadow: 0 18px 42px rgba(0,0,0,0.14);
  isolation:isolate;
  transition:
    transform .3s ease,
    box-shadow .3s ease;
}

.apps-card:hover{
  transform: translateY(-6px);
  box-shadow: 0 24px 48px rgba(0,0,0,0.18);
}

.apps-img{
  position:absolute;
  inset:0;
  background-size:cover;
  background-position:center;
  transform:scale(1);
  transition: transform .45s ease;
}

.apps-overlay{
  position:absolute;
  inset:0;
  background: linear-gradient(
    to top,
    rgba(0,0,0,0.78),
    rgba(0,0,0,0.18) 48%,
    rgba(0,0,0,0.05)
  );
}

.apps-card:hover .apps-img{
  transform:scale(1.06);
}

.apps-label{
  position:absolute;
  left:16px;
  bottom:16px;
  max-width:calc(100% - 72px);
  padding:9px 14px;
  background: rgba(0,0,0,0.42);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color:#fff;
  font-weight:800;
  font-size:18px;
  line-height:1.2;
  border-radius:14px;
  letter-spacing:0.03em;
}

.apps-open{
  position:absolute;
  right:14px;
  bottom:14px;
  width:42px;
  height:42px;
  border-radius:999px;
  display:flex;
  align-items:center;
  justify-content:center;
  background: rgba(255,255,255,0.9);
  color:#111;
  font-size:18px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.16);
}

.apps-divider{
  margin-top:30px;
  height:1px;
  background: linear-gradient(
    90deg,
    rgba(255,255,255,0),
    rgba(255,255,255,0.5),
    rgba(255,255,255,0)
  );
  opacity:0.9;
}

/* ================= TABLET ================= */
@media (max-width: 1024px){
  .apps{
    margin: 28px 28px 0;
  }

  section.apps{
    padding: 48px 30px 34px;
  }

  .apps-title{
    font-size: clamp(34px, 6vw, 52px);
  }

  .apps-card{
    flex:0 0 280px;
    height:280px;
  }
}

/* ================= MOBILE ================= */
@media (max-width: 768px){
  body{
    background-attachment:scroll;
  }

  .apps{
    margin: 18px 14px 0;
    border-radius: 20px;
  }

  section.apps{
    padding: 26px 14px 24px;
  }

  section.apps > .apps{
    margin: 0;
    padding: 0;
  }

  .apps-header{
    margin-bottom: 12px;
  }

  .apps-kicker{
    font-size:11px;
    padding:5px 10px;
    margin-bottom:10px;
  }

  .apps-title{
    font-size: clamp(28px, 8vw, 36px);
    line-height:1.08;
  }

  .apps-title::after{
    width:120px;
    height:4px;
    bottom:-8px;
  }

  .apps-desc{
    font-size:13px;
    line-height:1.55;
    margin-bottom:18px;
    max-width:100%;
  }

  .apps-carousel{
    gap:10px;
    align-items:center;
  }

  .apps-arrow{
    width:34px;
    height:34px;
    flex:0 0 34px;
    font-size:14px;
    border-radius:999px;
  }

  .apps-viewport{
    overflow-x:auto;
    padding-bottom:2px;
  }

  .apps-track{
    gap:12px;
    padding:4px 2px 8px;
    scroll-snap-type:x proximity;
  }

  .apps-card{
    flex:0 0 74vw;
    max-width:280px;
    height:220px;
    border-radius:18px;
    box-shadow: 0 12px 28px rgba(0,0,0,0.16);
  }

  .apps-label{
    left:12px;
    bottom:12px;
    max-width:calc(100% - 58px);
    font-size:14px;
    padding:7px 10px;
    border-radius:11px;
  }

  .apps-open{
    width:34px;
    height:34px;
    right:10px;
    bottom:10px;
    font-size:15px;
  }

  .apps-divider{
    margin-top:18px;
  }
}

/* ================= SMALL MOBILE ================= */
@media (max-width: 480px){
  .apps{
    margin: 16px 12px 0;
  }

  section.apps{
    padding: 22px 12px 20px;
  }

  .apps-title{
    font-size:26px;
  }

  .apps-desc{
    font-size:12.5px;
  }

  .apps-carousel{
    gap:8px;
  }

  .apps-arrow{
    width:30px;
    height:30px;
    flex:0 0 30px;
    font-size:12px;
  }

  .apps-card{
    flex:0 0 78vw;
    height:200px;
    max-width:250px;
    border-radius:16px;
  }

  .apps-label{
    font-size:13px;
  }
}

/* ================= EXTRA FIT FOR VERY SMALL PHONE ================= */
@media (max-width: 768px){
  body{
    background-attachment:scroll;
  }

  .apps{
    margin: 14px 8px 0;
    border-radius: 20px;
  }

  section.apps{
    padding: 24px 10px 22px;
  }

  section.apps > .apps{
    margin: 0;
    padding: 0;
  }

  .apps-header{
    margin-bottom: 10px;
  }

  .apps-kicker{
    font-size:11px;
    padding:5px 10px;
    margin-bottom:10px;
  }

  .apps-title{
    font-size: clamp(28px, 8vw, 36px);
    line-height:1.08;
  }

  .apps-title::after{
    width:120px;
    height:4px;
    bottom:-8px;
  }

  .apps-desc{
    font-size:13px;
    line-height:1.55;
    margin-bottom:16px;
    max-width:100%;
    padding-right: 4px;
  }

  /* phần carousel thoáng ra */
  .apps-carousel{
    gap:8px;
    align-items:center;
  }

  /* thu nhỏ arrow để đỡ chiếm ngang */
  .apps-arrow{
    width:28px;
    height:28px;
    flex:0 0 28px;
    font-size:12px;
    border-radius:999px;
  }

  .apps-viewport{
    overflow-x:auto;
    padding-bottom:2px;
  }

  .apps-track{
    gap:10px;
    padding:4px 0 8px;
    scroll-snap-type:x proximity;
  }

  /* card rộng hơn rõ rệt */
  .apps-card{
    flex:0 0 82vw;
    max-width:none;
    height:230px;
    border-radius:18px;
    box-shadow: 0 12px 28px rgba(0,0,0,0.16);
  }

  .apps-label{
    left:12px;
    bottom:12px;
    max-width:calc(100% - 56px);
    font-size:14px;
    padding:7px 10px;
    border-radius:11px;
  }

  .apps-open{
    width:32px;
    height:32px;
    right:10px;
    bottom:10px;
    font-size:14px;
  }

  .apps-divider{
    margin-top:18px;
  }
}

/* ảnh tĩnh mặc định */
.product-img{
  position:absolute;
  inset:0;
  background-size:cover;
  background-position:center;
  transition: opacity 0.45s ease;
  z-index: 0;
}

/* PRODUCTS SHOWCASE */
.product-link {
  flex: 1;
  display: block;
  text-decoration: none;
  color: inherit;
}


.products-visual {
  display: flex;
  gap: 24px;
}

.products-visual {
  display: flex;
  gap: 24px;
}

.product-visual {
  position: relative;
  flex: 1;
  height: 700px;
  border-radius: 18px;
  overflow: hidden;
  cursor: pointer;
}

/* video nền */
.product-visual video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.45s ease;
}

/* overlay tối */
.product-visual::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(0,0,0,0.75),
    rgba(0,0,0,0.15)
  );
  opacity: 0;
  transition: opacity 0.45s ease;
  z-index: 1;
}

/* khối chữ */
.product-text {
  position: absolute;
  left: 24px;
  right: 24px;
  bottom: 28px;
  z-index: 2;
  color: #fff;
  transform: translateY(24px);
  opacity: 0;
  transition: all 0.45s ease;
}

.product-text h3 {
  font-size: 22px;
  font-weight: 800;
  margin-bottom: 10px;
  letter-spacing: 1px;
}

.product-text p {
  font-size: 15px;
  line-height: 1.6;
  opacity: 0.9;
}

/* HOVER */
.products-visual-header {
  position: relative;
  max-width: 1140px;
  margin: 0 auto -10px;
  padding: 70px 60px;

  text-align: center;

  /* glass nền */
  background: rgba(8, 12, 28, 0.65);
  backdrop-filter: blur(10px) saturate(1.2);
  -webkit-backdrop-filter: blur(10px) saturate(1.2);

  border-radius: 22px;
  border: 1px solid rgba(255,255,255,0.12);
  box-shadow: 0 25px 60px rgba(0,0,0,0.45);
}

.products-visual-kicker {
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 4px;
  color: #a5b4fc;
  text-transform: uppercase;
  margin-bottom: 18px;
}

.products-visual-header h2 {
  font-size: 44px;
  font-weight: 900;
  color: #ffffff;
  margin-bottom: 24px;
  line-height: 1.12;
  text-shadow: 0 6px 25px rgba(0,0,0,0.6);
}

.products-visual-header h2::after {
  content: "";
  display: block;
  width: 100px;
  height: 5px;
  background: linear-gradient(90deg, #6366f1, #22d3ee);
  margin: 20px auto 0;
  border-radius: 4px;
}

.products-visual-header p {
  font-size: 17.5px;
  line-height: 1.8;
  color: #e5e7eb;
  max-width: 760px;
  margin: 0 auto;
}


.product-visual:hover video {
  opacity: 1;
}

.product-visual:hover::after {
  opacity: 1;
}

.product-visual:hover .product-text {
  transform: translateY(0);
  opacity: 1;
}

.product-visual video,
.product-visual::after,
.product-text {
  pointer-events: none;
}


/* nen */
body.product-body {
  background: #fff;      /* hoặc màu bạn muốn */
  background-image: none;
  color: #111;
}

.products-quote {
  position: relative;
  max-width: 1100px;
  margin: 0 auto -10px;
  padding: 60px 80px;

  background: linear-gradient(
    135deg,
    rgba(15, 23, 42, 0.85),
    rgba(2, 6, 23, 0.85)
  );

  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);

  border-radius: 26px;
  border: 1px solid rgba(255,255,255,0.12);
  box-shadow: 0 30px 80px rgba(0,0,0,0.55);

  text-align: center;
}

.reveal-stagger .quote-line,
.reveal-stagger .quote-author {
  display: block;
  opacity: 0;
  transform: translateY(24px);
  transition:
    opacity 0.7s ease,
    transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal-stagger.active .quote-line:nth-child(1) {
  transition-delay: 0.15s;
  opacity: 1;
  transform: translateY(0);
}

.reveal-stagger.active .quote-line:nth-child(2) {
  transition-delay: 0.35s;
  opacity: 1;
  transform: translateY(0);
}

.reveal-stagger.active .quote-line:nth-child(3) {
  transition-delay: 0.55s;
  opacity: 1;
  transform: translateY(0);
}

.reveal-stagger.active .quote-author {
  transition-delay: 0.8s;
  opacity: 1;
  transform: translateY(0);
}


.quote-mark {
  position: absolute;
  top: -30px;
  left: 50%;
  transform: translateX(-50%);

  font-size: 90px;
  font-weight: 900;
  color: #60a5fa;

  animation: quotePulse 3s ease-in-out infinite;
}

@keyframes quotePulse {
  0% {
    opacity: 0.5;
    text-shadow: 0 0 10px rgba(96,165,250,0.3);
    transform: translateX(-50%) scale(1);
  }

  50% {
    opacity: 1;
    text-shadow:
      0 0 25px rgba(96,165,250,0.6),
      0 0 45px rgba(59,130,246,0.4);
    transform: translateX(-50%) scale(1.08);
  }

  100% {
    opacity: 0.5;
    text-shadow: 0 0 10px rgba(96,165,250,0.3);
    transform: translateX(-50%) scale(1);
  }
}

.products-quote p {
  font-size: 20px;
  line-height: 1.85;
  color: #e5e7eb;
  font-weight: 400;
  font-style: italic;

  max-width: 860px;
  margin: 0 auto;

  text-shadow: 0 4px 20px rgba(0,0,0,0.6);
}

.quote-author {
  display: block;
  margin-top: 26px;
  font-size: 14px;
  letter-spacing: 2px;
  color: #93c5fd;
  text-transform: uppercase;
}

.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: all 0.9s cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}



@media (max-width: 768px) {
  .products-quote {
    padding: 45px 28px;
    margin-top: 90px;
  }

  .products-quote p {
    font-size: 17px;
  }

  .quote-mark {
    font-size: 70px;
    top: -22px;
  }
}


.news-grid{
  display:grid;
  grid-template-columns:repeat(3, 1fr);
  gap:20px;
}

.news-card{
  display:flex;
  gap:14px;
  padding:16px;
  border:1px solid rgba(255,255,255,0.12);
  border-radius:16px;
  background: rgba(8,12,28,0.55);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color:#fff;
}

.news-thumb{
  width:140px;
  height:95px;
  object-fit:cover;
  border-radius:14px;
  flex:0 0 auto;
}

.news-body{ flex:1; min-width:0; }

.news-link{
  text-decoration:none;
  color:inherit;
}

.news-title{
  margin:0 0 10px;
  font-size:16px;
  line-height:1.35;

  /* giới hạn 2 dòng cho đẹp */
  overflow:hidden;
  display:-webkit-box;
  -webkit-line-clamp:2;
  -webkit-box-orient: vertical;
}

.news-date{
  color:#9ca3af;
}

/* Responsive */
@media (max-width: 992px){
  .news-grid{ grid-template-columns:repeat(2, 1fr); }
}
@media (max-width: 600px){
  .news-grid{ grid-template-columns:1fr; }
}

