:root {
  --bg: #ffffff;
  --primary: #084A87;
  --text-dark: #111111;
  --text-gray: #555555;
  --light-blue: #F4F9FF;
  --border: rgba(8, 74, 135, 0.15);
  --font-display: 'Syne', sans-serif;
  --font-body: 'Inter', sans-serif;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  cursor: none;
}

html {
  scroll-behavior: smooth;
}

body {
  background-color: var(--bg);
  color: var(--text-dark);
  font-family: var(--font-body);
  overflow-x: hidden;
  line-height: 1.6;
}

ul,
ol {
  list-style-position: inside;
}

/* --- CUSTOM CURSOR --- */
.cursor-dot,
.cursor-outline {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  z-index: 10000;
  pointer-events: none;
}

.cursor-dot {
  width: 6px;
  height: 6px;
  background-color: var(--primary);
}

.cursor-outline {
  width: 30px;
  height: 30px;
  border: 1px solid var(--primary);
  transition: all 0.2s ease-out;
}

.container {
  max-width: 1300px;
  margin: 0 auto;
  padding: 0 2rem;
}

.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: 1s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

/* --- HEADER --- */
header {
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 1000;
  padding: 1.2rem 0;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

@media (max-width: 992px) {
  header {
    padding: 0.5rem 0;
  }
}

.nav-flex {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo-text {
  font-family: var(--font-display);
  font-size: 1.5rem;
  line-height: 0;
  font-weight: 800;
  color: var(--primary);
  text-decoration: none;
}

.nav-links a {
  margin-left: 2rem;
  text-decoration: none;
  color: var(--text-dark);
  font-weight: 600;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* --- HAMBURGER & MOBILE NAV --- */
.hamburger {
  display: none;
  background: transparent;
  border: none;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  padding: 0;
}

.hamburger-line {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--text-dark);
  margin: 3px 0;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

/* transform hamburger to X when active */
.hamburger.is-active .hamburger-line:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

.hamburger.is-active .hamburger-line:nth-child(2) {
  opacity: 0;
}

.hamburger.is-active .hamburger-line:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

.mobile-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 999;
  display: block;
  min-width: 100vw;
  min-height: 100vh;
}

.mobile-overlay[hidden] {
  display: none;
}

.mobile-overlay.active {
  opacity: 1;
}

.mobile-nav {
  position: fixed;
  top: 0;
  right: 0;
  height: 100vh;
  width: 80%;
  max-width: 320px;
  background: white;
  box-shadow: -20px 0 40px rgba(8, 74, 135, 0.08);
  transform: translateX(100%);
  transition: transform 0.35s cubic-bezier(0.2, 1, 0.3, 1);
  z-index: 1000;
  padding: 6rem 2rem;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.mobile-nav a {
  text-decoration: none;
  color: var(--text-dark);
  font-weight: 700;
  font-size: 1.1rem;
}

.mobile-nav.open {
  transform: translateX(0%);
}

@media (max-width: 992px) {
  .nav-links {
    display: none;
  }

  .hamburger {
    display: flex;
    flex-direction: column;
  }
}

/* --- HERO --- */
.hero {
  padding: 180px 0 100px;
  min-height: 80vh;
  display: flex;
  align-items: center;
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 8vw, 6rem);
  color: var(--primary);
  line-height: 1;
  margin-bottom: 2rem;
}

.hero-p {
  max-width: 650px;
  font-size: 1.25rem;
  color: var(--text-gray);
  border-left: 5px solid var(--primary);
  padding-left: 25px;
}

/* Nâng cấp phần Hero */
.hero {
  position: relative;
  padding: 200px 0 150px;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background-color: #f8f9fa;
  /* Màu nền dự phòng */
}

/* Đây là lớp Background Banner */
.hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  /* Thay link ảnh background của bro vào đây */
  background-image: url('https://images.unsplash.com/photo-1556761175-b413da4baf72?q=80&w=2000');
  background-image: url('https://images.unsplash.com/photo-1497215728101-856f4ea42174?q=80&w=2000');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  /* Tạo hiệu ứng Parallax nhẹ */
  filter: brightness(0.65);
  /* Làm tối ảnh một chút để nổi chữ trắng */
  z-index: 1;
}

/* Lớp phủ Gradient để chuyển mượt từ ảnh sang phần nội dung dưới */
.hero::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 30%;
  background: linear-gradient(to top, rgba(255, 255, 255, 1), rgba(255, 255, 255, 0));
  z-index: 2;
}

.hero .container {
  position: relative;
  z-index: 3;
  /* Đảm bảo chữ nằm trên background */
}

/* Nếu background tối, hãy đổi chữ Hero sang trắng hoặc màu tương phản */
.hero-title {
  font-family: var(--font-display);
  font-size: clamp(3rem, 10vw, 7.5rem);
  color: #ffffff;
  /* Đổi sang trắng để nổi trên nền ảnh */
  line-height: 0.9;
  margin-bottom: 2rem;
  text-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  /* Đổ bóng nhẹ cho dễ đọc */
}

.hero-p {
  max-width: 600px;
  font-size: 1.3rem;
  color: #ffffff;
  /* Đổi sang trắng */
  background: rgba(8, 74, 135, 0.8);
  /* Thêm nền xanh mờ cho đoạn text slogan */
  padding: 20px 30px;
  border-left: 6px solid #ffffff;
  backdrop-filter: blur(5px);
}

/* --- MARQUEE --- */
.marquee {
  background: var(--primary);
  color: white;
  padding: 1.5rem 0;
  overflow: hidden;
  display: flex;
}

.marquee-track {
  display: flex;
  white-space: nowrap;
  animation: scroll 30s linear infinite;
}

.marquee-track span {
  font-family: var(--font-display);
  font-size: 1.8rem;
  text-transform: uppercase;
  margin-right: 4rem;
}

@keyframes scroll {
  0% {
    transform: translateX(0);
  }

  100% {
    transform: translateX(-50%);
  }
}

/* --- ABOUT US --- */
.about {
  padding: 120px 0;
  background: #fff;
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.about-tag {
  color: var(--primary);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  display: block;
  margin-bottom: 20px;
}

.about h2 {
  font-family: var(--font-display);
  font-size: 2.5rem;
  margin-bottom: 20px;
  color: var(--primary);
}

/* --- SERVICES (PRODUCTS) --- */
.services {
  padding: 120px 0;
  background-color: var(--light-blue);
}

.service-card {
  background: white;
  padding: 50px;
  border: 1px solid var(--border);
  margin-bottom: 30px;
  transition: 0.4s;
}

.service-card:hover {
  transform: translateY(-10px);
  border-color: var(--primary);
  box-shadow: 0 20px 40px rgba(8, 74, 135, 0.05);
}

.service-card h3 {
  font-family: var(--font-display);
  font-size: 2rem;
  color: var(--primary);
  margin-bottom: 25px;
}

.service-list {
  list-style: none;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.service-list li {
  position: relative;
  padding-left: 25px;
  color: var(--text-gray);
}

.service-list li::before {
  content: "→";
  position: absolute;
  left: 0;
  color: var(--primary);
  font-weight: bold;
}

/* --- VALUES --- */
.values {
  padding: 100px 0;
}

.values-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  margin-top: 50px;
}

.value-item {
  padding: 40px;
  background: #fff;
  border: 1px solid var(--border);
  transition: 0.3s;
}

.value-item:hover {
  background: var(--primary);
}

.value-item:hover * {
  color: white !important;
}

.value-item h4 {
  font-family: var(--font-display);
  color: var(--primary);
  margin-bottom: 15px;
  font-size: 1.4rem;
}

/* --- PRICE & FORM --- */
.price-section {
  padding: 120px 0;
  background: var(--light-blue);
}

.contact-wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
}

.form-group {
  margin-bottom: 20px;
}

input,
textarea,
select {
  width: 100%;
  padding: 15px;
  border: 1px solid var(--border);
  background: white;
  font-family: inherit;
  font-size: 1rem;
  outline: none;
}

input:focus {
  border-color: var(--primary);
}

.btn-submit {
  background: var(--primary);
  color: white;
  padding: 18px 40px;
  border: none;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  width: 100%;
  transition: 0.3s;
}

.btn-submit[disabled] {
  opacity: 0.7;
  cursor: not-allowed;
}

/* Toast notification */
.toast {
  position: fixed;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%) translateY(40px);
  background: #051a31;
  color: #fff;
  padding: 12px 20px;
  border-radius: 8px;
  box-shadow: 0 10px 30px rgba(8, 74, 135, 0.12);
  opacity: 0;
  transition: transform 0.35s cubic-bezier(0.2, 1, 0.3, 1), opacity 0.3s ease;
  z-index: 11000;
  pointer-events: none;
}

.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
  pointer-events: auto;
}

.toast.success {
  background: var(--primary);
  color: white;
}

.toast.error {
  background: #c53030;
  color: white;
}

/* --- CAREER --- */
.career {
  padding: 120px 0;
  text-align: center;
  background: white;
}

.career-box {
  max-width: 1100px;
  margin: 0 auto;
  padding: 60px;
  border: 2px dashed var(--primary);
  text-align: left;
}

/* Jobs grid & cards */
.jobs-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  margin-top: 24px;
}

.job-card {
  background: white;
  padding: 28px;
  border: 1px solid var(--border);
  transition: 0.3s;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

@media (max-width: 992px) {
  .jobs-grid {
    grid-template-columns: repeat(1, minmax(0, 1fr));
  }

  .job-card {
    padding: 16px;
  }
}

.job-card h3 {
  font-family: var(--font-display);
  color: var(--primary);
  margin-bottom: 6px;
}

.job-meta {
  color: var(--text-gray);
  font-weight: 700;
  font-size: 0.9rem;
}

.job-card p {
  margin-top: 8px;
}

.job-card:hover {
  transform: translateY(-8px);
  border-color: var(--primary);
  box-shadow: 0 20px 40px rgba(8, 74, 135, 0.05);
}

.btn-apply {
  margin-top: auto;
  display: inline-block;
  background: var(--primary);
  color: white;
  padding: 10px 16px;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 700;
  align-self: flex-start;
}

@media (max-width: 992px) {
  .career-box {
    padding: 16px;
  }
}

/* --- FOOTER --- */
footer {
  padding: 100px 0 50px;
  background: #051a31;
  color: #fff;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 50px;
}

.footer-logo {
  font-family: var(--font-display);
  font-size: 2rem;
  margin-bottom: 20px;
}

.footer-links a {
  display: block;
  margin-bottom: 12px;
  color: #cbd5e1;
  text-decoration: none;
  transition: 0.3s;
}

.footer-links a:hover {
  color: white;
  padding-left: 5px;
}

.reveal-title {
  font-family: var(--font-display);
  font-size: 3rem;
  color: var(--primary);
  line-height: 1.1;
  margin-bottom: 30px;
}

@media (max-width: 992px) {
  .reveal-title {
    font-size: 2.5rem;
  }

  .about-grid,
  .contact-wrapper,
  .service-list,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .hero-title {
    font-size: 3.5rem;
  }

  .contact-wrapper {
    display: block;
  }
}



.footer-social {
  margin-top: 16px;
  display: flex;
  gap: 15px;
}

.job-detail {
  padding: 180px 0 120px;
  max-width: 800px;
  margin: 0 auto;
}