@import url("https://fonts.googleapis.com/css2?family=Inria+Sans:wght@400;700&display=swap");

/* =========================
   HEADER – My_Web_Ver2 (DÙNG CHUNG)
   ========================= */
/* #region Side Gallery */
:root {
  --header-height: 70px;
  --header-bg: rgba(3, 32, 10, 0.5);
  --header-blur: 10px;

  --text-main: #ffffff;
  --text-sub: #c4c4c4;
  --text-accent: #ffffff;

  --font-family-main:
    "Inria Sans", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;

  --transition-fast: 0.2s ease;
}

/* Reset cơ bản + font dùng chung */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-family-main);
  background: #ffffff;
  color: #111111;
  line-height: 1.6;
  font-size: 16px;
}

/* #endregion */

/* ===== Header (overlay trên banner) ===== */
/* #region Side Gallery */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  width: 100%;
  height: var(--header-height);

  display: flex;
  justify-content: center;
  align-items: center;

  background-color: var(--header-bg);
  backdrop-filter: blur(var(--header-blur));
  -webkit-backdrop-filter: blur(var(--header-blur));
}

.header-container {
  width: 100%;
  max-width: 2560px;
  height: 100%;
  margin: 0 auto;
  padding: 0 56px;

  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--text-main);
}

/* Brand */

.brand {
  font-size: 25px;
  letter-spacing: 0.1em;
  font-weight: 400;
  color: var(--text-main);
  text-decoration: none;
  text-transform: uppercase;
  white-space: nowrap;
}

/* Nav */

.primary-nav {
  display: flex;
  gap: 40px;
  align-items: center;
  font-size: 16px;
}

.nav-item {
  position: relative;
  color: var(--text-sub);
  text-decoration: none;
  font-weight: 400;
  transition: color var(--transition-fast);
  white-space: nowrap;
}

.nav-item.active,
.nav-item:hover,
.nav-item:focus-visible {
  color: var(--text-accent);
}

.nav-item.active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -6px;
  height: 1px;
  background-color: rgba(213, 133, 72, 0.8);
}

/* Language switch */

.lang-switch {
  position: relative;
  display: flex;
  align-items: center;
}

.lang-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: transparent;
  border: none;
  color: var(--text-main);
  font-family: var(--font-family-main);
  font-size: 16px;
  font-weight: 400;
  cursor: pointer;
  padding: 4px 0;
}

.lang-btn .arrow {
  display: inline-block;
  width: 0;
  height: 0;
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-top: 7px solid var(--text-main);
}

.lang-menu {
  position: absolute;
  right: 0;
  top: calc(100% + 6px);
  list-style: none;
  margin: 0;
  padding: 6px 0;
  min-width: 80px;

  background-color: rgba(3, 32, 10, 0.9);
  border-radius: 4px;

  opacity: 0;
  transform: translateY(-4px);
  pointer-events: none;
  transition:
    opacity var(--transition-fast),
    transform var(--transition-fast);
}

.lang-menu li a {
  display: block;
  padding: 6px 14px;
  color: var(--text-sub);
  text-decoration: none;
  font-size: 14px;
}

.lang-menu li a:hover,
.lang-menu li a:focus-visible {
  color: var(--text-accent);
  background-color: rgba(255, 255, 255, 0.06);
}

.lang-switch.open .lang-menu {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

/* Responsive */

@media (max-width: 1024px) {
  .header-container {
    padding: 0 24px;
  }

  .primary-nav {
    gap: 24px;
    font-size: 15px;
  }

  .brand {
    font-size: 16px;
    letter-spacing: 0.14em;
  }
}

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

  .brand {
    font-size: 15px;
  }
}
#header_myself {
  color: #ffffff;
}
/* #endregion */

/* ===== FOOTER divider ===== */
/* #region Side Gallery */
.footer__divider {
  margin: 60px 0 24px; /* cách phần nội dung phía trên */
  border: none;
  border-top: 1px solid #cfcfcf;
}

/* ===== Footer ===== */

.site-footer {
  width: 100%;
  padding-bottom: 32px;
  background: #ffffff;
  color: #000000;
  font-family: "Inria Sans", system-ui, sans-serif;
}

/* KHÔNG căn giữa – text nằm trái */
.footer__inner {
  width: 100%;
  padding: 0 24px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  align-items: flex-start; /* Lệch trái */
  text-align: left; /* Lệch trái */
}

/* Dòng 1 – italic */
.footer__credit {
  margin: 0;
  font-size: 14px;
  font-style: italic;
  font-weight: 400;
}

/* Dòng 2 – light italic */
.footer__language {
  margin: 0;
  font-size: 13px;
  font-weight: 300; /* Light */
  font-style: italic;
}

.footer__lang-link {
  color: #626262;
  text-decoration: none;
  margin-left: 4px;
}

.footer__lang-link:hover {
  text-decoration: underline;
}
/* #endregion */

/* =========================
   PAGE – 1_Blog_EN
   ========================= */

/* Banner dưới header, full width */
/* #region Side Gallery */
.hero-banner {
  width: 100%;
}

/* Wrapper giữ tối thiểu 430px chiều cao */
.hero-banner__image-wrapper {
  margin: 0;
  min-height: 430px;
}

/* Ảnh phủ đầy wrapper, luôn ≥ 430px */
.hero-banner__image {
  width: 100%;
  height: 100%; /* cao theo wrapper */
  min-height: 430px; /* đảm bảo tối thiểu 430px nếu wrapper chưa set height */
  display: block;
  object-fit: cover;
}

/* Intro */

.intro-text {
  padding: 40px 0 32px;
  background: #ffffff;
}

.intro-text__inner {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 24px;
  text-align: left;
}

.intro-text p {
  margin: 0;
  font-size: 18px;
  line-height: 1.8;
}

/* gạch rộng 90% vùng nội dung, căn giữa trong khối 1140px */

.intro-text__divider {
  margin: 24px auto 0;
  width: 90%;
  max-width: 1140px;
  border: none;
  border-top: 2px solid #03200a;
}

/* #endregion */

/* /// DO MANH HUONG /// */
/* #region Side Gallery */
/* #endregion */

/* Chung cả khối  */
/* #region Side Gallery */
ul {
  margin: 0;
  padding-left: 20px;
}
h1 {
  margin: 0;
}
h3 {
  margin: 0;
}
h4 {
  margin: 0;
}
#huongdm {
  color: #01380e;
}
.work-exp h1 {
  color: #01380e;
}
.work-exp h3 {
  color: #323232;
}
.work-exp h4 {
  color: #575757;
}
.work-exp li {
  color: #575757;
  font-size: 16px;
}
.role {
  font-size: 12px;
  font-style: italic;
}
.myself-section {
  text-align: justify;
  max-width: 800px;
  width: 100%;
  margin: 0 auto;
  overflow: hidden;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 50px;
}
.myself_image {
  margin: 0;
}
/* #endregion */

/* base info  */
/* #region Side Gallery */
.myself_image-skill {
  margin: 0px;
  border-radius: 5px;
}
.base-info {
  margin-top: 30px;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 20px;
}
.base-info > .myself_image {
  border-radius: 20px;
  width: 380px;
  height: 700px;
  overflow: hidden;
  position: relative;
}
.base-info > .myself_image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}
.base-info_main {
  width: 400px;
  height: auto;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: flex-start;
  gap: 20px;
}
.base-info_skill {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: flex-start;
  gap: 10px;
}
.base-info_skill-media {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: flex-start;
  gap: 5px;
}
#media_1 {
  margin-left: 20px;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 10px;
}
#media_1 > .myself_image-skill {
  width: 47px;
  height: 35px;
  overflow: hidden;
  position: relative;
}
#media_1 > .myself_image-skill img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}
#media_2 {
  margin-left: 20px;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 10px;
}
#media_2 > .myself_image-skill {
  width: 46px;
  height: 46px;
  overflow: hidden;
  position: relative;
}
#media_2 > .myself_image-skill img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}
#icon_capcut {
  box-sizing: border-box;
  border: 1px solid #00360e;
}

.base-info_skill-design {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: flex-start;
  gap: 5px;
}
.base-info_skill-design div {
  margin-left: 20px;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 10px;
}
.base-info_skill-design div > .myself_image-skill {
  width: 46px;
  height: 46px;
  overflow: hidden;
  position: relative;
}
.base-info_skill-design div > .myself_image-skill img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.base-info_skill-3D {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: flex-start;
  gap: 5px;
}
.base-info_skill-3D div {
  margin-left: 20px;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 10px;
}
.base-info_skill-3D div > .myself_image-skill {
  width: 46px;
  height: 46px;
  overflow: hidden;
  position: relative;
}
.base-info_skill-3D div > .myself_image-skill img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}
#icon_blender {
  box-sizing: border-box;
  border: 1px solid #00360e;
}

.base-info_skill-dev {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: flex-start;
  gap: 5px;
}
.base-info_skill-dev div {
  margin-left: 20px;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 10px;
}
.base-info_skill-dev div > .myself_image-skill {
  width: 46px;
  height: 46px;
  overflow: hidden;
  position: relative;
}
.base-info_skill-dev div > .myself_image-skill img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.base-info_buttonCV {
  width: 347px;
  height: 30px;
  border-radius: 5px;
  background-color: #768479;
  border: 1px solid #00360e;

  display: flex;
  justify-content: center; /* canh ngang */
  align-items: center; /* canh dọc */
}
.base-info_buttonCV a {
  color: #ffffff;
  text-decoration: none;
}

/* #endregion */

/* Kinh nghiệm làm việc */
/* #region Side Gallery */
.work-exp {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: flex-start;
  gap: 20px;
}
.work-exp_teky {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: flex-start;
  gap: 5px;
}
.work-exp_teky-main {
  margin-bottom: 15px;
}
#teky-project1 {
  margin-left: 15px;
}
#teky-project2 {
  margin-left: 15px;
}
#teky-project3 {
  margin-left: 15px;
}

/* #endregion */

/* Đơn vị hợp tác  */
/* #region Side Gallery */
.cooperation-side {
  margin-left: 20px;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 10px;
}
.cooperation-image {
  margin: 0;
  width: 120px;
  height: 120px;
  overflow: hidden;
  position: relative;
}
.cooperation-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}
.cooperation {
  color: #01380e;
}
/* #endregion */

/* =========================
   IMAGE LIGHTBOX – FIT TO VIEWPORT
   ========================= */
/* #region Side Gallery */
.image-lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 0;
  background: rgba(0, 0, 0, 0.85);
}

.image-lightbox.is-open {
  display: flex;
}

.image-lightbox__inner {
  max-width: 100vw;
  max-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.image-lightbox__image {
  border-radius: 20px;
  display: block;
  width: auto;
  height: auto;
  max-width: 75vw;
  max-height: 75vh;
  object-fit: contain; /* đảm bảo ảnh không bao giờ bị crop */
}

img {
  -webkit-touch-callout: none; /* iOS Safari */
  -webkit-user-select: none;
  user-select: none;
  pointer-events: auto;
}

/* #endregion */
