
/* =========================================================
   0. FONT CUSTOM KHAI BÁO (Thêm file font của ông ở đây)
   ========================================================= */
@font-face {
  font-family: 'Giaothong2';
  src: url(fonts/giaothong2.ttf) format('truetype'); /* Thay đúng tên file font của ông */
  font-weight: normal;
  font-style: normal;
}
/* =========================================================
       1. GLOBAL & BACKGROUND (Dựa theo ảnh ref background dot grid)
       ========================================================= */
    * {
      box-sizing: border-box;
      margin: 0;
      padding: 0;
    }

    body {
      /* Font chủ đạo theo yêu cầu */
      font-family: 'Giaothong2', serif;
      background-color: #121212;
      /* Họa tiết Dot Grid giống ảnh ref */
      background-image: radial-gradient(#262626 1px, transparent 1px);
      background-size: 20px 20px;
      color: #ffffff;
      min-height: 100vh;
      display: flex;
      flex-direction: column;
      align-items: center;
    }

    /* Biến màu sắc chung cho các card/box (đồng màu) */
    :root {
      --card-bg: #1e1e1e;
      --card-border: #2e2e2e;
      --accent-color: #00ff9d; /* Màu xanh lá .io.vn */
      --text-muted: #a0a0a0;
    }

    /* =========================================================
       2. HEADER
       ========================================================= */
    header {
      width: 100%;
      background-color: rgba(30, 30, 30, 0.8);
      backdrop-filter: blur(10px);
      border-bottom: 1px solid var(--card-border);
      position: sticky;
      top: 0;
      z-index: 100;
    }

    .nav-container {
      max-width: 1200px;
      margin: 0 auto;
      padding: 16px 24px;
      display: flex;
      justify-content: space-between;
      align-items: center;
    }

    .brand-logo {
      font-size: 12px;
      font-weight: bold;
      text-transform: uppercase;
      letter-spacing: 1px;
      color: #ffffff;
    }

    .nav-links {
      display: flex;
      gap: 24px;
      list-style: none;
    }

    .nav-links a {
      color: #ffffff;
      text-decoration: none;
      font-size: 14px;
      text-transform: uppercase;
      font-weight: 600;
      transition: color 0.2s ease;
    }

    /* Hover đổi sang màu xanh lá .io.vn */
    .nav-links a:hover {
      color: var(--accent-color);
    }

    /* =========================================================
       3. MAIN BENTO GRID LAYOUT
       ========================================================= */
    main {
      width: 100%;
      max-width: 1200px;
      padding: 40px 20px;
    }

    /* Box đồng màu chuẩn theo style Bento */
    .bento-card {
      background-color: var(--card-bg);
      border: 1px solid var(--card-border);
      border-radius: 16px;
      padding: 24px;
      display: flex;
      flex-direction: column;
    }

    .bento-card h2 {
      color: #00ff9d;
      margin-bottom: 12px; /* Tiện tay cách nhẹ với đoạn văn bên dưới cho thoáng */
    }

    .card-title {
      font-size: 18px;
      font-weight: bold;
      text-transform: uppercase;
      margin-bottom: 24px;
      letter-spacing: 0.5px;
    }

    /* --- Hàng 1 (Row 1): About Me & PFP --- */
.row-top {
  display: grid;
  grid-template-columns: 1fr 320px; /* Khai báo thẳng 320px ở đây */
  gap: 20px;
  align-items: stretch;
  margin-bottom: 24px;
}

.about-card {
  background-color: var(--card-bg);
  border-radius: 12px;
  padding: 24px;
  line-height: 1.5;
  display: flex;
  flex-direction: column;
  justify-content: flex-start; /* Dồn tất cả nội dung dính lên phía trên */
  gap: 8px;                   /* Khoảng cách giữa các mục cực kỳ đều đặn */
}

.pfp-card {
  background-color: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 16px;
  padding: 12px;
  overflow: hidden;
  display: flex;
}

.pfp-placeholder {
  width: 100%;
  height: 100%;
  object-fit: cover; /* Đã xóa dòng lặp thừa */
  border-radius: 12px;
  display: block;
}

/* --- Hàng 2 (Row 2) --- */
.row-bottom {
  display: grid;
  grid-template-columns: 1fr 1.2fr 1.2fr;
  gap: 24px;
}
    /* Sub-buttons trong Socials Box */
    .social-btn-list {
      display: flex;
      flex-direction: column;
      gap: 12px;
    }

    .social-btn {
      display: flex;
      align-items: center;
      gap: 12px;
      padding: 14px 16px;
      background-color: #2a2a2a;
      border: 1px solid #3a3a3a;
      border-radius: 10px;
      color: #ffffff;
      text-decoration: none;
      font-size: 14px;
      font-weight: bold;
      text-transform: uppercase;
      cursor: pointer;
      transition: all 0.2s ease;
      font-family: inherit;
      line-height: 1;      
      width: 100%;         
      box-sizing: border-box;
    }

    .social-btn:hover {
      background-color: #333333;
      border-color: var(--accent-color);
      color: var(--accent-color);
    }

    .social-btn i {
      font-size: 20px;
      width: 20px;          /* Cố định bề rộng khung chứa icon */
      text-align: center;
    }

    /* Popover/Bubble Discord */
    .discord-wrapper {
      position: relative;
    }

    .discord-bubble {
      display: none;
      position: absolute;
      bottom: 110%;
      left: 50%;
      transform: translateX(-50%);
      background-color: var(--accent-color);
      color: #000000;
      padding: 8px 16px;
      border-radius: 8px;
      font-weight: bold;
      font-size: 13px;
      white-space: nowrap;
      box-shadow: 0 4px 12px rgba(0,0,0,0.3);
      z-index: 10;
    }

    .discord-bubble::after {
      content: '';
      position: absolute;
      top: 100%;
      left: 50%;
      transform: translateX(-50%);
      border-width: 6px;
      border-style: solid;
      border-color: var(--accent-color) transparent transparent transparent;
    }

    .discord-bubble.active {
      display: block;
    }

    /* Content bên trong Works & Achievements */
    .works-card p, .achievements-card p {
      color: var(--text-muted);
      font-size: 14px;
      line-height: 1.5;
    }

    /* Responsive cho màn hình điện thoại */
    /* Responsive cho màn hình điện thoại */
@media (max-width: 850px) {
  .row-top, .row-bottom {
    grid-template-columns: 1fr;
  }

  .menu-toggle {
    display: block; /* Hiện nút 3 gạch trên mobile */
  }

  /* Biến menu ngang thành Popup thả xuống góc phải */
  .nav-links {
    display: none; /* Mặc định ẩn */
    position: absolute;
    top: 120%;
    right: 16px;
    background-color: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 12px;
    padding: 16px 20px;
    flex-direction: column;
    gap: 16px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
    z-index: 200;
    min-width: 150px;
  }

  /* Class active bật menu lên khi click 3 gạch */
  .nav-links.active {
    display: flex;
  }

  /* Mũi tên nhọn chỉ lên nút 3 gạch */
  .nav-links::before {
    content: '';
    position: absolute;
    bottom: 100%;
    right: 12px;
    border-width: 8px;
    border-style: solid;
    border-color: transparent transparent var(--card-border) transparent;
  }

  .nav-links::after {
    content: '';
    position: absolute;
    bottom: 100%;
    right: 13px;
    border-width: 7px;
    border-style: solid;
    border-color: transparent transparent var(--card-bg) transparent;
  }
}
html {
  zoom: 110%;
}
.brand-logo {
  display: flex;
  align-items: center;
  text-decoration: none;
}

.logo-img {
  height: 17px;        /* Độ cao vừa vặn với thanh Header */
  width: auto;
  display: block;
  object-fit: contain;
}

/* Nút 3 gạch (Mặc định ẩn trên PC, trong suốt 100%) */
.menu-toggle {
  display: none;
  background: transparent !important;
  border: none !important;
  outline: none;
  color: #ffffff;
  font-size: 22px;
  cursor: pointer;
  padding: 6px 10px;
  transition: color 0.2s ease, transform 0.2s ease;
}

.menu-toggle:hover {
  color: var(--accent-color);
  transform: scale(1.05);
}