/* RESET & GLOBAL */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: Arial, Helvetica, sans-serif;
}

html {
  scroll-behavior: smooth;
}

/* HEADER */
.header {
  position: fixed;
  top: 0;
  width: 100%;
  background: #f2f2f2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px clamp(16px, 4vw, 60px);
  gap: 16px;
  z-index: 1000;
}

/* LOGO */
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 22px;
  font-weight: bold;
}

.logo img {
  height: 36px;
  clip-path: circle();
}

.logo .blue { color: #275296; }
.logo .red { color: #BF2026; }

/* MENU */
.menu {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(10px, 2vw, 28px);
  justify-content: flex-end;
}

.menu a {
  text-decoration: none;
  color: #333;
  font-size: clamp(14px, 1.5vw, 16px);
  font-weight: 500;
  transition: color 0.3s ease;
}

.menu a:hover { color: #1e90ff; }

.btn-primary {
  background: #1e90ff;
  color: #fff !important;
  padding: 10px 22px;
  border-radius: 20px;
}

/* HERO */
.hero {
  height: 100vh;
  background: url("assets/images/background.jpg") center/cover no-repeat;
  position: relative;
  margin-top: 70px;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.55);
}

.hero-content {
  position: relative;
  height: 100%;
  color: #fff;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 0 20px;
}

.hero h1 {
  font-size: clamp(36px, 6vw, 60px);
  margin-bottom: 20px;
}

.hero h1 span { color: #4aa3ff; }

.hero p {
  font-size: clamp(18px, 3vw, 25px);
  margin-bottom: 50px;
}

.btn-hero {
  background: #1e90ff;
  color: #fff;
  padding: 14px 30px;
  border-radius: 25px;
  text-decoration: none;
  font-weight: bold;
  transition: background 0.3s ease;
}

.btn-hero:hover { background: #0d6efd; }

/* SECTIONS */
.section {
  display: flex;
  align-items: center;
  padding: clamp(40px, 8vw, 100px) clamp(20px, 6vw, 120px);
  gap: 60px;
  flex-wrap: wrap;
}

.section img {
  flex: 1 1 45%;
  border-radius: 12px;
  max-width: 100%;
}

.section .text {
  flex: 1 1 55%;
}

.section h2 {
  font-size: 32px;
  margin-bottom: 20px;
}

.section p {
  font-size: 18px;
  line-height: 1.6;
}

.section.reverse { flex-direction: row-reverse; }

/* CONTACT */
.contact {
  text-align: center;
  padding: 80px 20px;
  background: #1e90ff;
  color: #fff;
}

.contact h2 {
  font-size: 32px;
  margin-bottom: 10px;
}

/* RESPONSIVE */
@media (max-width: 768px) {
  .section {
    flex-direction: column;
    gap: 30px;
  }
  .section img, .section .text {
    width: 100%;
  }
}

.section {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  padding: 80px 60px;
}

.section img {
  flex: 1 1 45%;
  max-width: 45%;
  border-radius: 12px;
}

.section .text {
  flex: 1 1 55%;
}

.section h2 {
  font-size: 32px;
  margin-bottom: 20px;
}

.section p {
  font-size: 18px;
  line-height: 1.6;
}

/* Responsive cho màn hình nhỏ */
@media (max-width: 768px) {
  .section {
    flex-direction: column;
    text-align: center;
  }
  .section img, .section .text {
    max-width: 100%;
    flex: 1 1 100%;
  }
}

.half-width { max-width: 50%; margin: 5 auto; }

.bim {
    color: #BF2026; /* đỏ */
    font-weight: 700;
}

.tech {
    color: #275296; /* xanh */
    font-weight: 700;
}
  

.services-grid {
  padding: 40px;
  background-color: #f9f9f9;
  text-align: center;
}

.services-grid h2 {
  font-size: 32px;
  margin-bottom: 10px;
}

.services-grid .intro {
  font-size: 18px;
  margin-bottom: 40px;
}

.grid-container {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
}

.service-box img {
  width: 100%;
  height: auto;
  border-radius: 6px;
  margin-bottom: 15px;
}

.service-box h3 {
  font-size: 20px;
  margin-bottom: 10px;
}

.service-box p {
  font-size: 15px;
  line-height: 1.5;
}



/* WHY US */
.why-us-section {
  padding: 40px;
  background-color: #fff;
  text-align: center;
}

/* Container chứa các reason-box */
.why-us-section .grid-container {
  display: flex;
  justify-content: center;   /* căn giữa theo chiều ngang */
  gap: 40px;                 /* khoảng cách giữa các box */
  flex-wrap: wrap;           /* xuống dòng nếu nhiều box */
}

.reason-box {
  max-width: 250px;          /* giới hạn độ rộng mỗi box */
}

.reason-box img {
  width: 60px;
  margin-bottom: 10px;
}

.reason-box h3 {
  font-size: 20px;
  margin-bottom: 8px;
}


/* PROCESS */
.process-section {
  padding: 40px;
  background-color: #f9f9f9;
  text-align: center;
}

.process-section h2 {
  font-size: 32px;
  margin-bottom: 10px;
}

.process-section .intro {
  font-size: 18px;
  margin-bottom: 40px;
}

.step-box {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 30px;
  gap: 20px;
}

.step-box.reverse {
  flex-direction: row-reverse;
}

.step-text {
  flex: 1;
  max-width: 500px;
  background: #fff;
  border: 2px solid #007BFF; /* đường bao nổi */
  border-radius: 8px;
  padding: 20px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.08);
  text-align: left;
}

.step-text h3 {
  font-size: 20px;
  margin-bottom: 10px;
  color: #007BFF;
}

.step-text p {
  font-size: 16px;
  line-height: 1.6;
}

.step-image img {
  width: 120px;   /* ảnh nhỏ gọn */
  height: auto;
  border-radius: 6px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}


/*PROJECT*/
.projects-section {
  padding: 40px;
  background-color: #f9f9f9;
  text-align: center;
}

.projects-section h2 {
  font-size: 32px;
  margin-bottom: 10px;
}

.projects-section .intro {
  font-size: 18px;
  margin-bottom: 30px;
}

.carousel {
  position: relative;
  max-width: 1200px; /* rộng hơn để ảnh to */
  margin: 0 auto;
}

.carousel-viewport {
  overflow: hidden;
  width: 100%;
}

.carousel-track {
  display: flex;
  transition: transform 0.5s ease;
}

.carousel-page {
  flex: 0 0 100%;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: repeat(2, auto);
  gap: 25px;
  padding: 10px;
}

.project-card {
  background-color: #fff;
  border-radius: 10px;
  padding: 12px;
  text-align: center;
  box-shadow: 0 6px 16px rgba(0,0,0,0.08);
}

.project-card img {
  width: 100%;
  height: 220px;       /* ảnh to hơn */
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 10px;
}

.project-card h3 {
  font-size: 20px;
  margin-bottom: 6px;
}

.project-card p {
  font-size: 15px;
  color: #555;
}

.nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background-color: #0A66FF;
  color: #fff;
  border: none;
  font-size: 22px;
  width: 40px;
  height: 40px;
  cursor: pointer;
  z-index: 2;
  border-radius: 50%;
  display: grid;
  place-items: center;
}

.nav.prev { left: -20px; }
.nav.next { right: -20px; }



.section {
  max-width: 1200px;   /* giới hạn chiều rộng tối đa */
  margin: 0 auto;      /* căn giữa nội dung */
  padding: 40px 20px;  /* khoảng cách trong */
}

.section .text,
.section .half-width {
  max-width: 800px;    /* giới hạn chiều rộng cho đoạn văn */
  margin: 0 auto;      /* căn giữa đoạn văn */
}

.grid-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  justify-items: center; /* căn giữa các box */
}

.service-box {
  max-width: 280px;    /* giới hạn chiều rộng mỗi box dịch vụ */
  text-align: center;
}

.services-grid {
  max-width: 1200px;      /* giới hạn chiều rộng toàn bộ */
  margin: 0 auto;         /* căn giữa */
  padding: 40px 20px;
  text-align: center;
}

.services-grid h2 {
  font-size: 32px;
  margin-bottom: 10px;
}

.services-grid .intro {
  font-size: 18px;
  margin-bottom: 40px;
  max-width: 800px;       /* đoạn giới thiệu không quá dài */
  margin-left: auto;
  margin-right: auto;
}

.grid-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); /* tự co giãn */
  gap: 30px;
  justify-items: center;  /* căn giữa các box */
}

.service-box {
  max-width: 280px;       /* mỗi box có độ rộng cố định */
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 12px;
  padding: 20px;
  text-align: center;
  box-shadow: 0 4px 10px rgba(0,0,0,0.08);
}

.service-box img {
  width: 100%;
  height: 160px;          /* ảnh vừa phải, không quá to */
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 15px;
}

.service-box h3 {
  font-size: 20px;
  margin-bottom: 10px;
}

.service-box p {
  font-size: 15px;
  line-height: 1.6;
  color: #555;
}
 /*dichvu */
 .services-section {
  max-width: 1000px;
  margin: 0 auto;
  padding: 40px 20px;
  text-align: center;
}

.services-section h2 {
  font-size: 32px;
  margin-bottom: 10px;
}

.services-section .intro {
  font-size: 18px;
  margin-bottom: 30px;
}

.carousel {
  position: relative;
  overflow: hidden;
}

.carousel-viewport {
  overflow: hidden;
  width: 100%;
}

.carousel-track {
  display: flex;
  transition: transform 0.5s ease;
}

.carousel-page {
  flex: 0 0 100%;
  display: grid;
  grid-template-columns: repeat(3, 1fr); /* 3 dịch vụ mỗi trang */
  gap: 20px;
  padding: 10px;
}

.service-box {
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 12px;
  padding: 20px;
  text-align: center;
  box-shadow: 0 4px 10px rgba(0,0,0,0.08);
}

.service-box img {
  width: 100%;
  height: 160px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 15px;
}

.service-box h3 {
  font-size: 20px;
  margin-bottom: 10px;
}

.service-box p {
  font-size: 15px;
  line-height: 1.6;
  color: #555;
}

.nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background-color: #0A66FF;
  color: #fff;
  border: none;
  font-size: 22px;
  width: 40px;
  height: 40px;
  cursor: pointer;
  z-index: 2;
  border-radius: 50%;
  display: grid;
  place-items: center;
}

.nav.prev { left: -20px; }
.nav.next { right: -20px; }

 
.members-container {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-top: 20px;
}

.member-box {
  flex: 1 1 300px;
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 12px;
  padding: 16px;
  display: flex;
  gap: 16px;
  align-items: center;
}

.member-box img {
  width: 150px;
  height: auto;
  border-radius: 10px;
  object-fit: cover;
  flex-shrink: 0;
}

.tags span {
  background: #e0f2fe;
  padding: 4px 8px;
  border-radius: 999px;
  font-size: 13px;
  margin-right: 6px;
}
