@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;600;700;800&display=swap');

:root {
  --primary: #4F46E5;
  --primary-light: #818CF8;
  --secondary: #10B981;
  --bg-color: #F8FAFC;
  --card-bg: rgba(255, 255, 255, 0.85);
  --text-main: #1E293B;
  --text-muted: #64748B;
  --glass-border: rgba(255, 255, 255, 0.4);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Inter', sans-serif;
  scroll-behavior: smooth;
  -webkit-print-color-adjust: exact !important;
  print-color-adjust: exact !important;
}

body {
  background-image: 
    radial-gradient(at 0% 0%, hsla(253,16%,7%,1) 0, transparent 50%), 
    radial-gradient(at 50% 0%, hsla(225,39%,30%,1) 0, transparent 50%), 
    radial-gradient(at 100% 0%, hsla(339,49%,30%,1) 0, transparent 50%);
  background-color: #0f172a;
  background-attachment: fixed;
  color: #f8fafc;
  line-height: 1.6;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.glass {
  background: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
  border-radius: 16px;
}

header {
  padding: 20px 0;
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(15, 23, 42, 0.8);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255,255,255,0.05);
}

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

.logo {
  font-size: 1.5rem;
  font-weight: 800;
  background: linear-gradient(to right, #818CF8, #34D399);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

nav ul {
  display: flex;
  list-style: none;
  gap: 24px;
}

nav a {
  text-decoration: none;
  color: #cbd5e1;
  font-weight: 500;
  transition: color 0.3s ease;
}

nav a:hover {
  color: #34D399;
}

.btn-pdf {
  padding: 10px 20px;
  background: linear-gradient(135deg, var(--primary), #3b82f6);
  color: white;
  border: none;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.btn-pdf:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 15px -3px rgba(79, 70, 229, 0.4);
}

.hero {
  padding: 100px 0;
  text-align: center;
  position: relative;
}

.hero h1 {
  font-size: 3.5rem;
  line-height: 1.2;
  margin-bottom: 24px;
  font-weight: 800;
}

.hero h1 span {
  background: linear-gradient(to right, #38bdf8, #818cf8);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero p {
  font-size: 1.2rem;
  color: #94a3b8;
  max-width: 600px;
  margin: 0 auto 40px;
}

.section-title {
  font-size: 2.5rem;
  text-align: center;
  margin-bottom: 50px;
  font-weight: 700;
  color: #f1f5f9;
}

.equipment-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 30px;
  margin-bottom: 80px;
}
.equipment-card {
  width: calc(33.333% - 20px);
  min-width: 300px;
}
@media (max-width: 900px) {
  .equipment-card {
    width: calc(50% - 15px);
  }
}
@media (max-width: 600px) {
  .equipment-card {
    width: 100%;
  }
}

.equipment-card {
  padding: 30px;
  transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  background: #f8fafc;
  border-radius: 16px;
  color: #1e293b;
  box-shadow: 0 10px 25px rgba(0,0,0,0.2);
  border: 2px solid transparent;
  page-break-inside: avoid;
  break-inside: avoid;
  margin-bottom: 20px; /* Thêm margin dưới để phân trang mượt hơn */
}

.equipment-card:hover {
  transform: translateY(-5px) scale(1.02);
  border-color: var(--secondary);
}

.equipment-img {
  width: 100%;
  height: 200px;
  object-fit: contain;
  margin-bottom: 20px;
  filter: drop-shadow(0px 10px 15px rgba(0,0,0,0.3));
  transition: transform 0.3s ease;
  border-radius: 8px;
}

.equipment-card:hover .equipment-img {
  transform: scale(1.05);
}

.equipment-card h3 {
  font-size: 1.25rem;
  margin-bottom: 10px;
  color: #0f172a;
  font-weight: 700;
}

.equipment-card p {
  color: #475569;
  font-size: 0.95rem;
  margin-bottom: 15px;
  flex-grow: 1;
}

.btn-detail {
  display: inline-block;
  padding: 8px 16px;
  background-color: var(--primary);
  color: white;
  text-decoration: none;
  border-radius: 6px;
  font-size: 0.9rem;
  font-weight: 600;
  transition: background-color 0.3s ease;
  margin-top: auto;
}

.btn-detail:hover {
  background-color: var(--primary-light);
}

.micro-links {
  display: flex;
  gap: 10px;
  margin-top: auto;
}

.principle-section {
  padding: 80px 0;
}

.infographic-container {
  max-width: 900px;
  margin: 0 auto;
  padding: 40px;
  background: rgba(15, 23, 42, 0.7);
  border-radius: 24px;
  border: 1px solid rgba(255,255,255,0.1);
  box-shadow: 0 20px 40px rgba(0,0,0,0.4);
}

.info-header {
  text-align: center;
  margin-bottom: 50px;
}

.info-header h3 {
  font-size: 2.5rem;
  font-weight: 800;
  color: #f1f5f9;
  margin-bottom: 15px;
  text-transform: uppercase;
  letter-spacing: 2px;
  border-bottom: 4px solid var(--primary);
  display: inline-block;
  padding-bottom: 10px;
}

.info-header p {
  color: #94a3b8;
  font-size: 1.1rem;
}

.info-path {
  display: flex;
  flex-direction: column;
  position: relative;
}

.info-step {
  display: flex;
  flex-direction: column;
  width: 45%;
  position: relative;
  z-index: 2;
}

.step-left {
  align-self: flex-start;
}

.step-right {
  align-self: flex-end;
}

.step-number {
  background: var(--primary);
  color: white;
  padding: 8px 16px;
  border-radius: 20px;
  font-weight: 800;
  font-size: 0.9rem;
  letter-spacing: 1px;
  display: inline-block;
  margin-bottom: 10px;
  box-shadow: 0 4px 15px rgba(79, 70, 229, 0.4);
  border: 2px solid #818CF8;
}

.step-card {
  background: #f8fafc;
  border-radius: 16px;
  padding: 20px;
  color: #1e293b;
  display: flex;
  gap: 15px;
  align-items: flex-start;
  box-shadow: 0 10px 25px rgba(0,0,0,0.2);
  border: 2px solid transparent;
  transition: transform 0.3s ease, border-color 0.3s ease;
}

.step-card:hover {
  transform: translateY(-5px) scale(1.02);
  border-color: var(--secondary);
}

.step-icon {
  font-size: 2.5rem;
  background: #e0e7ff;
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  flex-shrink: 0;
}

.step-content h4 {
  font-size: 1.2rem;
  color: #0f172a;
  margin-bottom: 8px;
  font-weight: 700;
}

.step-content p {
  font-size: 0.95rem;
  color: #475569;
  line-height: 1.5;
}

.info-arrow {
  width: 100px;
  height: 80px;
  color: var(--secondary);
  align-self: center;
  margin: -20px 0;
  position: relative;
  z-index: 1;
}

.info-arrow svg {
  width: 100%;
  height: 100%;
  drop-shadow: 0 2px 4px rgba(16, 185, 129, 0.4);
}

.arrow-down-right {
  margin-left: 20%;
}

.arrow-down-left {
  margin-right: 20%;
  transform: scaleX(-1);
}

@media (max-width: 768px) {
  .info-step {
    width: 100%;
  }
  .info-arrow {
    display: none;
  }
  .info-path {
    gap: 30px;
  }
}

@media (max-width: 768px) {
  header .container {
    flex-direction: column;
    gap: 15px;
  }
  nav ul {
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
  }
  .hero {
    padding: 60px 0;
  }
  .hero h1 {
    font-size: 2.2rem;
  }
  .section-title {
    font-size: 2rem;
  }
}
@media print {
  .btn-pdf, nav, .btn-detail, .micro-links {
    display: none !important;
  }
}
