* {
      box-sizing: border-box;
      margin: 0;
      padding: 0;
      font-family: "Source Code Pro", monospace;
      font-optical-sizing: auto;
      font-style: normal;
    }
    html, body {
      height: 100%;
      background: #f7f7f7;
      color: #111;
      overflow: hidden;
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: space-between;
    }

/* Header */
header {
  width: 100vw; /* phủ toàn màn hình */
  display: flex;
  justify-content: flex-start;
  align-items: flex-start;
  padding: 1.5vw 2.4vw;
  position: relative;
  box-sizing: border-box;
  z-index: 2;
}

.header-left {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1vw;
}

header img.logo {
  width: 5vw;       /* logo nhỏ gọn tỉ lệ theo màn hình */
  min-width: 40px;
  height: auto;
  margin-left: 0;     /* sát lề trái */
  flex-shrink: 0;
  margin: 1.3rem 1.9rem 0 0;
}

header .bio {
  font-size: clamp(1.2rem, 1.2vw, 1.3rem); /* chữ lớn hơn, responsive */
  line-height: 1.3;
  color: #333333;
  text-align: justify;
  letter-spacing: 0.02em;
  max-width: none; /* không giới hạn chiều rộng */
  font-weight: 250;
  flex: 1;
}

.bio .highlight-name {
  font-weight: 450;
  letter-spacing: 0.05em;
  position: relative;
  font-variant-ligatures: none;   /* Giữ nét gãy gọn */
  transition: color 0.3s ease;
}

.highlight-name:hover {                    
  font-weight: 550;
    color: #000;
}


.main-content {
       display: flex;
       width: 100%;
       height: 100vh;
       flex: 1;
       align-items: center;
       justify-content: space-between;
       padding: 0;
       overflow: visible;
     }

     /* Left content block - khối trống */
     .left-content {
       flex: 1;
       height: 100%;
       align-self: flex-start;
        display: flex;
       flex-direction: column;
       align-items: center; /* căn giữa ngang */
       position: relative;
       justify-content: center;
       overflow: visible;
     }


/* Contact Info Block — fixed bottom-left, aligned with header grid */
.contact-info {
  position: fixed;
  bottom: 1.5vw;      /* sát đáy màn hình, responsive */
  left: 3vw;        /* canh trục với logo trên header */
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 3vw;         /* khoảng cách giữa 2 cột */
  font-size: 0.7rem;
  letter-spacing: 0.03em;
  color: #111;
  z-index: 10;
}

/* Cột trái */
.contact-label {
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
  margin-top: 0.03rem;

  position: relative;
  cursor: pointer;
  transition: all 0.3s ease;
}

/* Hover: gạch đỏ mở rộng + chữ giãn */
.contact-label:hover::after {
  width: 100%;
}

.contact-label:hover {
  letter-spacing: 0.3em;
}

/* Cột phải */
.contact-details {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  line-height: 1.4;
  font-weight: 550;
  font-style: italic;
}

.contact-details a {
  color: inherit;
  text-decoration: none;
  transition: opacity 0.3s ease, font-weight 0.3s ease;
  font-style: italic;
}

.contact-details a:hover {
  opacity: 1;
  font-weight: 500;
}

/* Responsive điều chỉnh vị trí */
@media (max-width: 800px) {
  .contact-info {
    bottom: 4vw;
    left: 7vw;
    flex-direction: column;
    gap: 0.5rem;
  }

  .contact-label {
    margin-bottom: 0.3rem;
  }
}





    /* Project List Container */
    .project-container {
      flex: 0 0 auto; 
      display: flex;
      align-items: flex-end;
      justify-content: center;
      flex-direction: column;
    }

    .project-list {
      width: 22vw;            /* hẹp lại để gọn khi đặt bên phải */
      min-width: 320px;
      max-width: 420px;
      flex-direction: column;
      align-items: stretch;
      margin-right: 3rem;
    }


    .project-item {
      display: flex;
      align-items: center;
      justify-content: space-between;
      padding: 2px 0;
      border-bottom: 1px solid #90909061;
      min-height: 34px;
      transition: background 0.15s ease;
      position: relative;
      cursor: pointer;
      transition: transform 0.25s ease;
      letter-spacing: 0.05em;
    }


    .project-info {
      display: flex;
      justify-content: space-between;
      align-items: center;
      flex: 1;
    }

    .project-info span {
      flex: 0.8;
      text-align: left;
      font-weight: 600;
      font-size: 0.75rem;
    }

    .project-info span:first-child {
      text-align: left;
      flex: 0.2;
      font-size: 0.60rem;
      color: #111111f5;
    }

    .project-info span:last-child {
      text-align: left;
      flex: 1;
      color: #111111f5;
      font-weight: 400;
      font-size: 0.7rem;
    }



    @media (max-width: 800px) {
      .project-list {
        width: 60%;
      }
      .project-info {
        font-size: 0.75rem;
      }
      header img.logo {
        width: 10vw;       /* tăng nhẹ trên tablet */
        min-width: 60px;
        max-width: 100px;
        height: auto;
      }
    }

        /* Cuộn nội bộ cho danh sách khi màn hình quá nhỏ */
    @media (max-height: 600px) {
      .project-list {
        max-height: 75vh;       /* Chiếm khoảng 60% chiều cao màn hình */
        overflow-y: auto;        /* Cho phép cuộn dọc nội bộ */
        scrollbar-width: thin;   /* Thanh cuộn mảnh (Firefox) */
      }

      /* Tùy chọn: ẩn nhẹ thanh cuộn trên Chrome/Safari */
      .project-list::-webkit-scrollbar {
        width: 6px;
      }
      .project-list::-webkit-scrollbar-thumb {
        background-color: rgba(0, 0, 0, 0.2);
        border-radius: 3px;
      }

    }


    .project-item:hover,
    .project-item.active {
  transform: translateX(-40px); /* Đẩy dòng sang trái */
}

.view-button {
  position: absolute;
  right: -25px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

.view-button img {
  width: 6px;
  height: 7px;
  display: block;
  transition: transform 0.30s ease;
}

.project-item:hover .view-button,
.project-item.active .view-button {
  opacity: 1;
  pointer-events: auto;
}

.view-button:hover img {
  transform: scale(1.1);
}



/* Hàng trống - không border */
.project-spacer {
  min-height: 30px;
  border: none;
}

/* Hàng cuối với button ALL WORKS */
.project-footer {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 30px;
  border: none;
  padding: 0rem 0;
}

/* Button ALL WORKS */
.all-works-btn {
  background: none;
  border: none;
  padding: 0;
  font-family: "Source Code Pro", monospace;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: #111;
  cursor: pointer;
  transition: all 0.3s ease;
  text-transform: uppercase;
  position: relative;
}


.all-works-btn:hover::after {
  width: 100%;
}

.all-works-btn:hover {
  letter-spacing: 0.3em;
}


.floating-image {
  position: absolute;
  width: 27vw; /* kích thước vừa phải, responsive */
  max-width: 480px;  /* ✅ không quá to trên màn 4K */
  max-height: 55vh; 
  height: auto;
  object-fit: contain;
  pointer-events: none; /* không chặn click */
  z-index: 1;
   top: 41%;
  left: 55%;
  transform: translate(-50%, -50%);
  will-change: transform;
  transition: opacity 0.1s ease;
}


.preview-container {
  position: absolute;
  top: 25%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100%;
  height: 70%;
  max-width: 1000px;
  max-height: 70vh;
  pointer-events: none;
  z-index: 30;
  overflow: visible;
}

.preview-container img {
  position: absolute;
  height: auto;
  object-fit: contain;
  opacity: 0;
  transform: scale(0.9) rotate(0deg);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.preview-container img.show {
  opacity: 1;
}

/* === MOBILE BUTTONS === */
.mobile-buttons {
  display: none;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  margin-top: 12px;
  margin-left: 5px;
}

.mobile-btn {
  text-decoration: none;
  color: black;
  font-size: 14px;
  font-weight: 500;
  padding: 7px 0px;
}

/* === RESPONSIVE === */
@media (max-width: 768px) {
  .mobile-buttons {
    display: flex;
  }
  header img.logo {
    margin-left: 5px;
  }
  
  header .bio {
    font-size: 1.1rem;
    padding-right: 10px;
    padding-top: 20px;
  }
}

@media (max-width: 768px) {
  .contact-info {
    flex-direction: column;
    align-items: flex-start;
    font-size: 0.85rem;
    gap: 0.4rem;
  }
}

.mobile-btn.active {
  font-weight: 700;        /* chữ đậm hơn */
  letter-spacing: 0.03em;  /* nhẹ nhàng, không nhảy khung */
}