/* ============================================================
   HERO SECTION & PHOTOREALISTIC 3D LANYARD BADGE (Đúng Ảnh 2)
   ============================================================ */

/* Floating Navigation Header */
.site-header {
  position: fixed;
  top: 18px;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  justify-content: center;
  padding: 0 16px;
}

.nav-glass-bar {
  display: flex;
  align-items: center;
  gap: 24px;
  background: rgba(13, 20, 26, 0.78);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  padding: 8px 20px;
  border-radius: 40px;
  border: 1px solid var(--border-line);
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.55);
}

.brand-pill {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: #fff;
  font-weight: 800;
  font-size: 14.5px;
  letter-spacing: 0.04em;
}

.brand-pill img {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1.5px solid var(--aurora-mint);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 10px;
}

.nav-item {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 13.5px;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 20px;
  transition: all 0.2s ease;
}

.nav-item:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
}

.nav-item.highlight-btn {
  background: var(--aurora-emerald);
  color: #070908;
  font-weight: 700;
}

.nav-item.highlight-btn:hover {
  background: var(--aurora-mint);
  transform: translateY(-1px);
}

.audio-toggle-btn {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--border-line);
  color: #fff;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  transition: all 0.2s;
}

.audio-toggle-btn:hover {
  background: rgba(255, 255, 255, 0.16);
  border-color: var(--aurora-mint);
}

/* Hero Section Layout */
.hero-section {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 120px 0 60px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.18fr 0.82fr;
  align-items: center;
  gap: 48px;
}

.hero-badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 30px;
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(52, 211, 153, 0.25);
  font-size: 12px;
  font-weight: 700;
  color: var(--aurora-mint);
  margin-bottom: 20px;
  letter-spacing: 0.05em;
  font-family: var(--font-mono);
}

.hero-status-pulse {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--aurora-mint);
  box-shadow: 0 0 10px var(--aurora-mint);
  animation: pulseGlow 2s infinite;
}

@keyframes pulseGlow {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(52, 211, 153, 0.7); }
  70% { transform: scale(1); box-shadow: 0 0 0 8px rgba(52, 211, 153, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(52, 211, 153, 0); }
}

.hero-title {
  font-size: clamp(38px, 5.2vw, 64px);
  font-weight: 900;
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin-bottom: 16px;
}

.hero-typewriter-wrap {
  font-family: var(--font-mono);
  font-size: clamp(16px, 1.8vw, 21px);
  color: var(--aurora-mint);
  margin-bottom: 20px;
  min-height: 32px;
  display: flex;
  align-items: center;
}

.typewriter-cursor {
  animation: blink 0.8s infinite;
  color: var(--aurora-mint);
  margin-left: 3px;
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

.hero-bio {
  font-size: 16.5px;
  color: var(--text-muted);
  max-width: 540px;
  line-height: 1.7;
  margin-bottom: 32px;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

/* ============================================================
   PHOTOREALISTIC 3D LANYARD BADGE RIG (Đúng Chuẩn Mẫu Ảnh 2)
   - Dây ruy băng màu xanh lam (Royal Blue) buông từ trên xuống
   - Móc kẹp nhựa xám/kim loại chữ T
   - Vỏ nhựa dẻo trong suốt (Clear Plastic Sleeve) dập viền ovan
   - Thẻ hội nghị màu trắng sắc nét bên trong
   - Con lắc vật lý dao động điều hòa tự nhiên
   ============================================================ */

.hero-card-col {
  display: flex;
  justify-content: center;
  perspective: 1400px;
  position: relative;
}

.lanyard-container {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  transform-origin: 50% 0%; /* Tâm xoay con lắc tại điểm treo dây */
  animation: lanyardPhysicSway 5.5s cubic-bezier(0.445, 0.05, 0.55, 0.95) infinite alternate;
  will-change: transform;
}

@keyframes lanyardPhysicSway {
  0% {
    transform: rotate(-2.2deg) translateY(0);
  }
  50% {
    transform: rotate(1.8deg) translateY(-2px);
  }
  100% {
    transform: rotate(-2.2deg) translateY(0);
  }
}

/* 1. DÂY ĐEO VẢI DỆT XANH LAM HOÀNG GIA (Royal Blue Ribbon Strap) */
.lanyard-strap-top {
  width: 36px;
  height: 130px;
  background: linear-gradient(90deg, #1e3a8a 0%, #1d4ed8 25%, #3b82f6 50%, #2563eb 75%, #172554 100%);
  border-radius: 4px 4px 0 0;
  box-shadow: 
    0 10px 25px rgba(0, 0, 0, 0.6), 
    inset 0 0 6px rgba(255, 255, 255, 0.25);
  position: relative;
  overflow: hidden;
  margin-top: -60px;
  z-index: 1;
}

/* Vân dệt chéo của dây ruy băng */
.strap-fabric-pattern {
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(
    60deg,
    rgba(255, 255, 255, 0.12) 0,
    rgba(255, 255, 255, 0.12) 2px,
    transparent 2px,
    transparent 5px
  );
}

/* 2. KHÓA CHỐT VÀ MÓC KẸP CHỮ T BẰNG KIM LOẠI / NHỰA CHẮC CHẮN */
.lanyard-clip-assembly {
  display: flex;
  flex-direction: column;
  align-items: center;
  z-index: 2;
  margin-top: -3px;
}

.strap-anchor-cap {
  width: 44px;
  height: 18px;
  background: linear-gradient(180deg, #e2e8f0 0%, #94a3b8 50%, #64748b 100%);
  border-radius: 4px;
  border: 1px solid #475569;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.5);
}

.metal-swivel-clip {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.clip-loop {
  width: 16px;
  height: 14px;
  border: 3.5px solid #cbd5e1;
  border-radius: 50%;
  margin-top: -3px;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.4);
}

.clip-t-bracket {
  width: 26px;
  height: 22px;
  background: linear-gradient(135deg, #f8fafc 0%, #cbd5e1 50%, #94a3b8 100%);
  clip-path: polygon(20% 0%, 80% 0%, 100% 45%, 70% 100%, 30% 100%, 0% 45%);
  margin-top: -4px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.4);
}

/* 3. BAO BỌC NHỰA DẺO TRONG SUỐT (Clear Flexible Plastic Sleeve) */
.badge-plastic-sleeve {
  width: 100%;
  max-width: 320px;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 2.5px solid rgba(255, 255, 255, 0.5);
  border-radius: 20px;
  padding: 26px 16px 18px;
  box-shadow: 
    0 25px 60px rgba(0, 0, 0, 0.75), 
    0 0 35px rgba(59, 130, 246, 0.22),
    inset 0 0 16px rgba(255, 255, 255, 0.18);
  transition: transform 0.18s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.3s ease;
  transform-style: preserve-3d;
  position: relative;
  margin-top: -8px;
  z-index: 3;
}

.badge-plastic-sleeve:hover {
  box-shadow: 
    0 32px 75px rgba(0, 0, 0, 0.85), 
    0 0 50px rgba(52, 211, 153, 0.35),
    inset 0 0 22px rgba(255, 255, 255, 0.28);
}

/* Lỗ dập ovan trên vỏ nhựa */
.sleeve-hanger-slot {
  position: absolute;
  top: 9px;
  left: 50%;
  transform: translateX(-50%);
  width: 36px;
  height: 9px;
  background: rgba(10, 15, 20, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 10px;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.8);
}

/* Vệt bóng kính phản quang */
.sleeve-reflection-glare {
  position: absolute;
  inset: 0;
  border-radius: 18px;
  background: linear-gradient(
    130deg, 
    rgba(255, 255, 255, 0.28) 0%, 
    rgba(255, 255, 255, 0.05) 35%, 
    transparent 55%
  );
  pointer-events: none;
}

/* 4. RUỘT THẺ DEVELOPER CARD NỀN TRẮNG SẮC NÉT (Mẫu Thẻ Hội Nghị Công Nghệ) */
.badge-card-insert {
  background: #ffffff;
  color: #0f172a;
  border-radius: 12px;
  padding: 18px 16px 14px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
  border: 1px solid #e2e8f0;
}

.card-header-bar {
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 2px solid #0f172a;
}

.card-id-text {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.card-title-main {
  font-family: var(--font-sans);
  font-size: 15px;
  font-weight: 900;
  letter-spacing: 0.04em;
  color: #0f172a;
}

.card-year-badge {
  background: #0f172a;
  color: #ffffff;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: 4px;
}

.card-sub-code {
  font-family: var(--font-mono);
  font-size: 9.5px;
  font-weight: 700;
  color: #475569;
  letter-spacing: 0.05em;
  margin-top: 3px;
}

/* Khung Avatar Thẻ */
.card-avatar-box {
  position: relative;
  width: 98px;
  height: 98px;
  margin: 0 auto 12px;
}

.avatar-frame {
  width: 100%;
  height: 100%;
  border-radius: 12px;
  overflow: hidden;
  background: #0f172a;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
  border: 2px solid #cbd5e1;
}

.badge-avatar-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.badge-status-dot {
  position: absolute;
  bottom: -3px;
  right: -3px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background-color: var(--aurora-emerald);
  border: 2.5px solid #ffffff;
  box-shadow: 0 0 8px rgba(16, 185, 129, 0.8);
}

/* Danh tính */
.card-identity-box {
  text-align: center;
  margin-bottom: 14px;
}

.badge-name {
  font-size: 21px;
  font-weight: 900;
  color: #0f172a;
  letter-spacing: -0.02em;
  margin-bottom: 2px;
}

.badge-title-pill {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 700;
  color: #2563eb;
  letter-spacing: 0.06em;
}

/* Bảng Thông Số Chi Tiết (Specs Table) */
.badge-details-table {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding-top: 8px;
  border-top: 1px solid #e2e8f0;
}

.detail-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 3px 0;
  border-bottom: 1.5px dotted #cbd5e1;
  font-size: 11px;
}

.detail-key {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  color: #64748b;
}

.detail-val {
  font-weight: 800;
  color: #0f172a;
}

.detail-val.highlight-val {
  color: #10b981;
}

/* ============================================================
   CONTACT MODAL POPUP (Aurora Glass)
   ============================================================ */
.contact-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(4, 8, 12, 0.78);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  visibility: hidden;
  transition: opacity 0.3s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.3s;
}

.contact-modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
  visibility: visible;
}

.contact-modal-box {
  width: 100%;
  max-width: 480px;
  background: linear-gradient(160deg, rgba(16, 28, 24, 0.95) 0%, rgba(8, 15, 12, 0.98) 100%);
  border: 1px solid rgba(52, 211, 153, 0.35);
  border-radius: 20px;
  padding: 24px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.8), 0 0 30px rgba(52, 211, 153, 0.15);
  transform: translateY(20px) scale(0.96);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.contact-modal-overlay.active .contact-modal-box {
  transform: translateY(0) scale(1);
}

.modal-header-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border-line);
}

.modal-header-row h3 {
  font-size: 19px;
  font-weight: 800;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 10px;
}

.modal-close-icon {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #fff;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 15px;
  transition: all 0.2s;
}

.modal-close-icon:hover {
  background: rgba(239, 68, 68, 0.2);
  border-color: rgba(239, 68, 68, 0.5);
  color: #f87171;
  transform: rotate(90deg);
}

.modal-links {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.modal-link-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 16px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  text-decoration: none;
  color: #f1f5f9;
  font-size: 14px;
  font-weight: 600;
  transition: all 0.22s ease;
}

.modal-link-item:hover {
  background: rgba(52, 211, 153, 0.12);
  border-color: rgba(52, 211, 153, 0.4);
  color: #fff;
  transform: translateX(4px);
}

.modal-link-item span:last-child {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--aurora-mint, #34d399);
}
