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

/*=============== VARIABLES CSS ===============*/
:root {
  --header-height: 6rem;

  /*========== Colors ==========*/
  --first-color: hsl(350, 98%, 64%);
  /* --first-color: #1679AB; */
  --title-color: hsl(0, 0%, 100%);
  --text-color: hsl(0, 0%, 77%);
  --body-color: hsl(0, 0%, 6%);
  --container-color: hsl(0, 0%, 10%);
  --border-color: hsla(0, 0%, 100%, 0.2);

  /*========== Font and typography ==========*/
  /* .5rem = 8px | 1rem = 16px ... */
  --body-font:  "Poppins", sans-serif;
  --second-font:  "Montserrat", sans-serif;

  --big-font-size: 4.5rem;
  --h1-font-size: 3.75rem;
  --h2-font-size: 1.75rem;
  --h3-font-size: 1.5rem;
  --normal-font-size: 1.125rem;
  --small-font-size: 1rem;
  --smaller-font-size: 0.875rem;

  /*========== Font weight ==========*/
  --weight-300: 300;
  --weight-400: 400;
  --weight-500: 500;
  --weight-600: 600;
  --weight-700: 700;
  --weight-900: 900;

  /*========== Transition ==========*/
  --transition: cubic-bezier(0.05, 0.2, 0.2, 1);

  /*========== Border Radius ==========*/
  --radius: .5rem;
  --radius-circle: 50%;

  /*========== z index ==========*/
  --z-tooltip: 10;
  --z-fixed: 100;
}

/* Responsive typography */
@media screen and (max-width: 992px) {
  :root {
    --h2-font-size: ;
    --h3-font-size: ;
    --normal-font-size: ;
    --small-font-size: ;
    --smaller-font-size: ;
  }
}

/*=============== BASE ===============*/
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

input,
textarea,
body {
  font-family: var(--body-font);
  color: var(--text-color);
  font-size: var(--normal-font-size);
  font-weight: var(--weight-300);
}

body {
  background-color: var(--body-color);
}

.main {
  max-width: 100vw;
  overflow-x: hidden;
}

h1,
h2,
h3 {
  color: var(--title-color);
  font-weight: var(--weight-700);
}

ul {
  list-style: none;
}

a {
  text-decoration: none;
}

p {
  line-height: 1.67em;
}

img {
  max-width: 100%;
}

textarea,
input {
  background-color: unset;
  border: none;
  outline: none;
}

/* For WebKit-based browsers (Chrome, Safari, Edge, Opera) */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-thumb {
  background-color: var(--first-color);
  border-radius: var(--radius);
}

/* For Firefox */
* {
  scrollbar-width: thin; /* or 'auto' | 'none' */
  scrollbar-color: var(--first-color) transparent; /* thumb color and track color */
}


/*=============== REUSABLE CSS CLASSES ===============*/
.container {
  max-width: 1260px;
  margin-inline: auto;
  padding-inline: .75rem;
}

.grid {
  display: grid;
  gap: 1.75rem;
}

.section {
  padding-block: 8rem;
}

.section__title {
  font-size: var(--h1-font-size);
  margin-bottom: 1rem;
}

.section__title:not(.about .section__title, .contact .section__title),
.section__description {
  text-align: center;
}

.section__description {
  max-width: 600px;
  margin-inline: auto;
}

.btn {
  display: inline-block;
  color: var(--title-color);
  background-color: var(--first-color);
  border: 2px solid var(--first-color);
  padding: 1rem 2.5rem;
  cursor: pointer;
  border-radius: var(--radius);
  font-size: var(--small-font-size);
  font-weight: var(--weight-500);
  letter-spacing: 2px;
  transition:  all .3s var(--transition);
}

.btn.btn--outline {
  background-color: transparent;
  color: var(--first-color);
  border: 2px solid var(--first-color);
}

.btn:hover {
  background-color: transparent;
  color: var(--first-color);
}

.btn.btn--outline:hover {
  background-color: var(--first-color);
  color: var(--title-color);
}

.error__message {
  position: absolute;
  bottom: -12%;
  left: 0;
  font-size: var(--small-font-size);
  font-weight: var(--weight-400);
  /* display: none; */
}

/*=============== HEADER & NAV ===============*/
.header {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  z-index: var(--z-fixed);
}

.nav,
.nav__list,
.nav__socials {
  display: flex;
}

.nav {
  height: calc(var(--header-height) + 1.5rem);
  align-items: center;
  justify-content: space-between;
  column-gap: 3.5rem;
}

.nav__logo {
  color: var(--title-color);
  font-size: 2.5rem;
  font-weight: var(--weight-700);
}

.nav__logo span {
  color: var(--first-color);
}

.nav__list {
  column-gap: 2rem;
}

.nav__toggle,
.nav__close {
  display: none;
}

.nav__link,
.nav__social-link {
  font-size: var(--small-font-size);
  color: var(--title-color);
  transition: all .3s var(--transition);
}

.nav__social-link:hover {
  font-weight: var(--weight-500);
  transform: translateY(-.25rem);
}

.nav__socials {
  column-gap: 1.5rem;
  margin-left: auto;
}

.nav__link {
  font-weight: var(--weight-500);
}



.nav__link-btn {
  font-size: var(--smaller-font-size);
  color: var(--title-color) !important;
  border-color: var(--border-color) !important;
  padding: .625rem 1.25rem;
}

/* Active link */
.nav__link:hover,
.nav__link.nav__link--active {
  color: var(--first-color) !important;
}

/* Change background header */

/*=============== HOME ===============*/
.home {
  padding-block: 16rem 9rem;
  background: rgba(0, 0, 0, .65);
  position: relative;
}
.home::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url('/assets/img/duong__cover--3.jpg') no-repeat center/cover;
  z-index: -1;
}

.home__container {
  grid-template-columns: 7fr 5fr;
  align-items: center;
  z-index: 10;
}

.home__subtitle {
  font-size: var(--small-font-size);
  font-weight: var(--weight-400);
  letter-spacing: .25rem;
  margin-bottom: 1.25rem;
  display: block;
}

.home__title {
  font-family: var(--second-font);
  font-size: var(--big-font-size);
  font-weight: var(--weight-900);
}
.home__title span {
  color: var(--first-color);
}

.home__img {
  width: 420px;
  height: 420px;
  border-radius: var(--radius-circle);
  /* border: .75rem solid var(--container-color); */
  border-bottom: .75rem solid var(--first-color);
  margin-left: auto;
  object-fit: cover;
  /* background-color: var(--body-color); */
  /* background-color: rgba(0, 0, 0, .35); */
}


/*=============== ABOUT ===============*/
.about {
  background-color: var(--container-color);
}

.about__container {
  grid-template-columns: 5fr 7fr;
  align-items: start;
  column-gap: 4rem;
}

.about__img{
  border-radius: var(--radius);
}

.about__description {
  margin-bottom: 2rem;
}

.tabs__btns {
  display: flex;
  column-gap: 2.5rem;
  margin-bottom: 1.25rem;
}

.tabs__btn,
.tabs__description span:first-child {
  font-weight: var(--weight-500);
}

.tabs__btn {
  cursor: pointer;
  color: var(--title-color);
  position: relative;
  padding-bottom: .5rem;
}
.tabs__btn::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 30%;
  height: 2px;
  background-color: var(--text-color);
  transition: all .3s var(--transition);
}

.tabs__data {
  row-gap: 1rem;

}

.tabs__description span:last-child {
  display: block;
}

/* Active tab */
.tabs__btn.tab__active {
  color: var(--first-color);
}

.tabs__btn.tab__active::after {
  background-color: var(--first-color);
  width: 100%;
}

.tabs__item[data-content] {
  display: none;
}

.tab__active[data-content] {
  display: block;
}


/*=============== SERVICES ===============*/
.services__container {
  grid-template-columns: repeat(3, 1fr);
}

.services__item {
  background-color: var(--container-color);
  padding: 3.5rem 2.5rem;
  border-radius: var(--radius);
}

.services__icon {
  color: var(--first-color);
  font-size: 3.25rem;
  line-height: 1;
}

.services__title {
  font-size: var(--h3-font-size);
  font-weight: var(--weight-500);
  margin-block: 1.75rem
}

.service__description {
  font-weight: var(--weight-400);
}

/*=============== WORK ===============*/
.portfolio {
  background-color: var(--container-color);
}

.portfolio__container {
  grid-template-columns: repeat(3, 1fr);
}

.portfolio__item {
  position: relative;
  cursor: pointer;
  border-radius: var(--radius);
  overflow: hidden;
}

.portfolio__item::after,
.portfolio__data {
  position: absolute;
  transition: all .65s var(--transition);
}

.portfolio__item::after {
  content: '';
  inset: 0;
  background: linear-gradient(180deg, transparent, var(--first-color));
  opacity: 0;
}

.portfolio__img {
  width: 100%;
  vertical-align: middle;
  transition: all 1s var(--transition);
}

.portfolio__data {
  inset-inline: 2rem;
  bottom: 1.25rem;
  text-align: center;
  z-index: var(--z-tooltip);
}

.portfolio__subtitle,
.portfolio__description {
  color: var(--title-color);
  opacity: .7;
}

.portfolio__subtitle {
  font-size: var(--small-font-size);
  margin-bottom: .25rem;
}

.portfolio__title {
  font-size: var(--h2-font-size);
  font-weight: var(--weight-600);
  margin-bottom: .75rem;
}

.portfolio__description {
  font-weight: var(--weight-400);
  display: none;
}

/* Work hover */
.portfolio__item:hover::after {
  opacity: 1;
}

.portfolio__item:hover .portfolio__img {
  transform: scale(1.1);
}

.portfolio__item:hover .portfolio__description {
  display: block;
}

.portfolio__item:hover .portfolio__data {
  transform: translateY(-2rem);
}

/*=============== CONTACT ===============*/
.contact__container {
  grid-template-columns: repeat(2, 1fr);
  align-items: center;
  column-gap: 4rem;
}

.contact__description,
.contact__input {
  font-weight: var(--weight-400);
}

.contact__description {
  margin-bottom: 2rem;
}

.contact__description a {
  color: var(--first-color);
  font-weight: var(--weight-500);
}

.contact__input {
  border: 2px solid var(--border-color);
  padding: .8rem 1.25rem;
  width: 100%;
  border-radius: var(--radius);
  font-size: var(--smaller-font-size);
  margin-bottom: 1.25rem;
}

.textarea {
  height: 120px;
  resize: none;
}

.contact__form {
  position: relative;
}

.contact__img {
  border-radius: var(--radius);
}

/*=============== FOOTER ===============*/
.footer {
  background-color: var(--container-color);
  padding-block: 2rem;

}

.footer__container {
  grid-template-columns: repeat(3, 1fr);
  align-items: center;
}

.footer__logo {
  color: var(--title-color);
  font-size: 2.5rem;
  font-weight: var(--weight-700);
}

.footer__logo span {
  color: var(--first-color);
}

.footer__socials {
  display: flex;
  column-gap: .75rem;
  justify-content: center;
}

.footer__social-link {
  color: var(--text-color);
  font-size: var(--small-font-size);
  border: 2px solid var(--text-color);
  border-radius: var(--radius-circle);
  height: 46px;
  width: 46px;
  display: grid;
  place-items: center;
  transition: all .3s var(--transition);
}

.footer__social-link:hover {
  color: var(--first-color);
  border-color: var(--first-color);
}

.footer__copyright {
  font-size: var(--small-font-size);
  font-weight: var(--weight-400);
  display: flex;
  justify-content: flex-end;
}
/*=============== SCROLL UP ===============*/

/* Show scrollup */

/*=============== ANIMATIONS ===============*/
/* #typing::after {
  content: '|';
  position: absolute;
  right: 0;
  animation: blink 0.7s infinite;
} */

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

/*=============== BREAKPOINTS ===============*/
/* For large devices */
@media screen and (max-width: 1200px) {
}

@media screen and (max-width: 992px) {
}

/* For medium devices */
@media screen and (max-width: 768px) {
}

@media screen and (max-width: 576px) {
}

/* For small devices */
@media screen and (max-width: 350px) {
}
