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

:root {
  --green: #008137;
  --yellow: #ffe100;
  --black: #444;
  --white: #fff;
  --light-color: #777;
  --bg-color: #e6e6e6;
  --border: 0.5rem solid rgba(0, 0, 0, 0.2);
  --box-shadow: 0.4rem 0.4rem 1rem #ccc, -0.4rem -0.4rem 1rem #fff;
  --box-shadow-inset: 0.4rem 0.4rem 1rem #ccc inset, -0.4rem -0.4rem 1rem #fff inset;
  --box-shadow-box: 0 0 3px 3px #ddd, 6px 6px 8px 4px rgba(136, 136, 136, 0.7), -6px -6px 8px 4px rgba(244, 244, 244, 0.7);
  --button-shadow: 0 0 2px 2px rgb(255, 225, 0), 0.4rem 0.4rem 1rem #ccc, -0.4rem -0.4rem 1rem #fff;
}

::selection {
  background: #ffe100;
  color: #008137;
  text-shadow: none;
}

* {
  font-family: 'Poppins', sans-serif;
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  outline: none;
  border: none;
  text-decoration: none;
  text-transform: capitalize;
}

html {
  font-size: 62.5%;
  overflow-x: hidden;
  scroll-behavior: smooth;
}

body {
  background: var(--bg-color);
	padding-left: 26rem;
	font-size: 1.5rem;
	color: #444;
}

body.active {
  --green: #00ff6b;
  --yellow: #fbff00;
  --black: #fff;
  --white: #444;
  --light-color: #ddd;
  --bg-color: #232323;

  --border: 0.5rem solid rgba(0, 0, 0, 0.4);
  --box-shadow: 0.4rem 0.4rem 1rem rgba(0, 0, 0, 0.8), -0.4rem -0.4rem 1rem rgba(255, 255, 255, 0.1);
  --box-shadow-inset: 0.4rem 0.4rem 1rem rgba(0, 0, 0, 0.8) inset, -0.4rem -0.4rem 1rem rgba(255, 255, 255, 0.1) inset;
}

audio{
  width: 100%;
}

/* --- global----- */
section {
  min-height: 100vh;
  padding: 2rem;
  display: flex;
  flex-flow: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  margin-top: -5rem;
  margin-bottom: 5rem;
}

.tit {
  font-size: 7rem;
  color: var(--green);
  line-height: 1.1;
  text-shadow: var(--box-shadow);
}

.subtit {
  font-size: 1.9rem;
  line-height: 1.1;
  color: var(--black);
  margin-top: 1rem;
}

a {
  cursor: pointer;
  color: var(--black);
}

/* ---real-time -----*/
.time {
  position: fixed;
  bottom: 20px;
  right: 20px;
  height: 50px;
  padding: 20px 20px;
  width: 140px;
  background: var(--bg-color);
  box-shadow: var(--box-shadow);
  font-size: 1.6rem;
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: 0.5rem;
  color: var(--black);
}
.time i {
  margin-right: 10px;
}

/* ---------Area: Nav menu------ */
.header {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 999;
  width: 26rem;
  height: 100%;

  padding: 2rem;
  text-align: center;
  background: var(--bg-color);
  box-shadow: var(--box-shadow);
}

.header .user_image {
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 1rem auto;
  border: 0.5rem solid var(--green);
  border-right: 50%;
  height: 18rem;
  width: 18rem;
  border-radius: 50%;
  box-shadow: var(--box-shadow);
}
.header .user_img{
  width: 100%;
  object-fit: contain;
}

.header .user_name {
  color: var(--green);
  font-size: 2.5rem;
  text-shadow: var(--box-shadow);
}

.header .user_role {
  color: var(--black);
  font-size: 1.5rem;
}

.header .navbar {
  padding-top: 1rem;
}

.header .navbar a {
  display: block;
  margin: 2.5rem auto;
  padding: 1rem 4rem;
  border-right: 5rem;
  font-weight: 600;
  font-size: 1.8rem;
  box-shadow: var(--box-shadow);
  color: var(--black);
  border-radius: 2.5rem;
  width: 70%;
}

/* -- common event: hover, active */
.header .navbar a.active,
.header .navbar a:hover,
#menu-btn:hover,
#theme-toggle:hover,
.btn:hover,
.home .social-icon a:hover {
  box-shadow: var(--box-shadow-inset);
  color: var(--green);
}

/* --toggle - menu */
#menu-btn,
#theme-toggle {
  position: fixed;
  z-index: 1000;
  top: 1.5rem;
  width: 5rem;
  height: 5rem;
  line-height: 5rem;
  border-radius: 1.2rem;
  box-shadow: var(--box-shadow);

  color: var(--black);
  text-align: center;
  font-size: 2rem;
  cursor: pointer;
}

#menu-btn {
  left: 2rem;
  display: none;
}

#theme-toggle {
  right: 2rem;
}

/* ----- area: home ----- */

.home .social-icon {
  display: flex;
  align-items: center;
  position: relative;
  top: 8rem;
  box-shadow: var(--box-shadow);
  padding: 1rem 1.3rem;
  border-radius: 0.5rem;
}

.home .social-icon a {
  width: 5rem;
  height: 5rem;
  line-height: 5rem;
  font-size: 2.2rem;

  margin: 0.7rem;
  color: var(--black);
  box-shadow: var(--box-shadow);
  border-radius: 0.5rem;
  text-align: center;
}

.home .social-icon a:hover {
  color: #008137;
  background: var(--yellow);
  box-shadow: none;
}

.home .social-icon a.download-cv-btn {
  padding: 1rem 1.2rem;
  font-size: 1.8rem;
  font-weight: 600;
  margin-right: 3rem;
}

.home .ico-zalo {
  display: inline-block;
  vertical-align: top;
}
.home .ico-zalo:after {
  content: '';
  display: inline-block;
  width: 22px;
  height: 22px;
  background: url(./assets/ico_zalo.png) center / contain no-repeat;
  filter: grayscale(100%);
}
/*--  area: about -- */

.about {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  letter-spacing: 0.5px;
  max-width: 90%;
  width: 90%;
  margin: 0 auto;
}

.about .text-box {
  color: var(--black);
  font-size: 1.3rem;
  line-height: 1.6;
  padding: 3rem;
  margin: 1.5rem auto 0;
  border-radius: 30px;
  box-shadow: var(--box-shadow);
}

.about .text-box h3 {
  font-size: 3.5rem;
  margin-bottom: 1.5rem;
  color: var(--black);
}

.about .text-box > p {
  margin-bottom: 2rem;
  text-transform: initial;
  text-align: justify;
}

.skill {
  margin: 1rem auto 2rem;
  padding: 2rem 4rem;
  box-shadow: var(--box-shadow);
  border-radius: 30px;
}

.skill h4 {
  font-size: 2rem;
  line-height: 2;
  margin-bottom: -0.5rem;
}
.skill > ul {
  margin: 0 auto 0 3rem;
  font-weight: 600;
}
.skill > ul > li {
  margin-top: 0.4rem;
}

.info {
  font-weight: 500;
  text-align: left;
}
.info.row:first-child {
  min-width: 96%;
  width: 96%;
  margin: 0 auto;
}

.detail-info {
  padding: 0 7rem;
}

.detail-info ul {
  list-style: none;
  letter-spacing: 0;
}

.info i {
  font-size: 2rem;
  line-height: 2;
  width: 3rem;
  height: 3rem;
  margin-bottom: 0.4rem;
}

.subAge,
i.far.fa-laugh {
  font-size: 1.1rem;
  color: var(--black);
}

/*---- area: project ----*/
.content-main.row {
  row-gap: 20px;
	align-items: stretch;
}

.content-main {
  margin-top: 50px;
}

.project .layer {
  margin-bottom: 30px;
  z-index: 20;
}

.project {
  max-width: 90%;
  margin: auto;
  color: var(--black);
}
.project-item {
  max-width: 92%;
	height: 100%;
  padding: 30px;
  margin: auto;
  box-shadow: var(--box-shadow);
  border-radius: 20px;
  font-size: 12px;
  line-height: 20px;
  text-align: left;
}

.project-item img {
  display: block;
  width: 100%;
  margin: 15px auto;
  border-radius: 10px;
  border: 3px solid var(--black);
}

.title-item {
  font-size: 18px;
  line-height: 20px;
  margin: 10px 0;
}

.tagLang {
  margin-top: 20px;
  list-style: none;
  display: flex;
  align-items: flex-start;
  flex-direction: column;
  justify-content: space-between;
}

.tagLang span {
  background: var(--black);
  color: var(--white);
  padding: 3px 6px;
  margin-bottom: 8px;
  border-radius: 4px;
  display: inline-block;
  text-align: center;
}

.tagLang span a {
  color: var(--white);
  display: block;
}

/* ----- contact-area ---- */

.contact {
  max-width: 90%;
  width: 90%;
  margin: auto;
}

.contact-box {
  align-items: center;
  justify-content: center;

  margin: 50px 0;
  padding: 40px 10px;

  color: var(--black);
  font-size: 13px;

  border-radius: 30px;
  background: var(--bg-color);
  box-shadow: var(--box-shadow);
}

/*  */

.contact-item {
  flex: 1;
}

.contact-item ul li {
  max-width: 100%;
  list-style: none;

  font-size: 1.5rem;
  word-break: break-all;
  text-transform: initial;

  margin: 20px;
  padding: 18px 10px;
  box-shadow: var(--box-shadow);
  border-radius: 14px;
}
.contact-item ul li:hover {
  box-shadow: var(--box-shadow-inset);
}
.contact-item ul li i {
  margin-right: 5px;
}
.contact-item.img {
  margin: 40px auto;
  max-width: 60%;
  width: 100%;
}
.contact-item.img img {
  max-width: 100%;
  border-radius: 20px;
  box-shadow: var(--box-shadow);
}

/* media queries - responsive */

@media (max-width: 834px) {
  .home .social-icon .download-cv-btn {
    width: 90%;
    height: 90%;
    display: block;
    margin: 0.7rem auto;
    text-align: center;
    font-size: 1.8rem;
    line-height: 1.8;
  }
}

@media (max-width: 780px) {
  html {
    font-size: 55%;
  }
  body {
    padding-left: 0;
  }

  .tit {
    font-size: 5rem;
  }
  #menu-btn {
    display: initial;
  }
  .header {
    left: -110%;
    transition: 0.3s;
  }
  .header.active {
    left: 0;
  }
  .header.active::before {
    content: '';
    position: absolute;
    top: 0;
    margin-left: 50%;
    width: 100vw;
    height: 100vh;
    z-index: -1;
  }
  .header.active .user img {
    margin-top: 4rem;
  }

  .detail-info {
    padding: 0;
  }

  .contact-item.img {
    margin-top: 20px;
    max-width: 50%;
  }

  .contact-item ul li {
    margin: 14px;
    font-size: 1.7rem;
  }
}

@media (max-width: 300px) {
  html {
    font-size: 50%;
  }
  .header {
    width: 100%;
  }
}

/* footer */
.footer{
	text-align: center;
	padding: 10px;
}