@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap");

/*
 Theme Name:   hello-biz child
 Theme URI:    https://ecentura2.tdmthemes.com/
 Description:  Hello Biz Child Theme
 Author:       Pham Huy
 Template:     hello-biz
 Version:      1.0.0
*/
html {
  overflow-x: hidden;
}

body {
  font-family: "Poppins", sans-serif;
  font-weight: 400;
  line-height: 1.6;
  overflow-x: hidden;
}

body,
h1,
h2,
h3,
h4,
h5,
h6,
p,
a,
span,
li,
input,
button,
textarea {
  font-family: "Poppins", sans-serif;
}

/* header */
.custom-header {
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #fff;
  box-shadow: 0 8px 30px rgba(158, 174, 217, 0.2);
}

.header__container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 1280px;
  padding: 20px 20px 20px 10px;
  margin: 10px;
}

.custom-logo {
  width: 250px;
  height: auto;
}

.header-content {
  display: flex;
  align-items: center;
  flex: 1;
}

.header__menu .menu {
  display: flex;
  align-items: center;
  gap: 34px;
  list-style: none;
  margin: 0 auto;
}

.header__menu .menu .menu-item a {
  text-decoration: none;
  color: #575757;
  font-size: 16px;
  font-weight: 400;
  line-height: 53px;
}

.header__menu .menu .menu-item:hover a {
  color: #333;
}

/* header flag */
.lang-switcher {
  position: relative;
  cursor: pointer;
}

.current-lang {
  display: flex;
  align-items: center;
  gap: 4px;
  cursor: pointer;
}

.current-lang::after {
  content: "";
  display: inline-block;
  width: 5px;
  height: 5px;
  border-right: 1px solid #575757;
  border-bottom: 1px solid #575757;
  transform: rotate(45deg);
  margin-left: 8px;
  margin-bottom: 3px;
  cursor: pointer;
}

.flag {
  width: 16px;
  height: auto;
}

.lang-code {
  font-size: 16px;
  color: #575757;
  cursor: pointer;
}

.lang-dropdown {
  display: none;
  position: absolute;
  list-style: none none;
  background: #fff;
  border: 1px solid #bbb;
  margin-top: 4px;
  min-width: 75px;
  z-index: 100;
  box-sizing: border-box;
  box-shadow: 0 3px 3px rgba(0, 0, 0, 0.15);
  padding: 0 15px;
}

.lang-dropdown--item {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px 0;
}

.lang-dropdown--item .flag,
.lang-dropdown--item .lang-code {
  font-size: 14px;
}

.lang-dropdown::before {
  content: "";
  position: absolute;
  border: 8px solid;
  border-color: transparent transparent #bbb;
  z-index: 98;
  left: 15px;
  top: -16px;
  transform: translateX(-50%);
}

.lang-dropdown::after {
  content: "";
  position: absolute;
  border: 7px solid;
  border-color: transparent transparent #fff;
  z-index: 99;
  left: 15px;
  top: -13px;
  transform: translateX(-50%);
}

.lang-dropdown.active {
  display: block;
}

.text-heading {
  color: #00aec7;
  font-weight: 700;
}

/* footer */
.footer__container {
  display: flex;
  align-items: center;
  flex-direction: column;
  justify-content: center;
  width: 1160px;
  margin: 0 auto;
}

.footer__top {
  display: flex;
  justify-content: center;
  gap: 70px;
  margin-top: 100px;
  margin-bottom: 50px;
}

.footer__left p {
  font-size: 16px;
  color: #00aec7;
}

.footer__left-logo {
  width: 208px;
}

.footer__left-brand {
  margin-bottom: 10px;
  font-size: 16px;
  font-weight: 600;
}

.footer__left-address {
  margin-bottom: 10px;
  font-size: 16px;
  color: #00aec7;
}

.footer__middle {
  display: flex;
  gap: 70px;
}

.footer__middle img {
  width: 35px;
}

.footer__middle-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: #333;
  font-size: 16px;
}

.footer__middle-item span {
  text-decoration: underline;
}

.footer__middle-item:hover span {
  text-decoration: none;
}

.footer__bottom {
  font-size: 12px;
  color: #333;
  margin-bottom: 30px;
}

.impressum {
  color: #333;
  margin-right: 10px;
  text-decoration: underline;
}

.wave {
  position: absolute;
  bottom: 0;
  width: 6400px;
  height: 128px;
  background-size: auto 100%;
  background-repeat: repeat-x;
  animation: wave 15s cubic-bezier(0.36, 0.45, 0.63, 0.53) infinite;
  background-image: url("assets/images/wave.svg") !important;
}

.wave:nth-last-of-type(2) {
  opacity: 0.5;
  animation: wave 9s cubic-bezier(0.36, 0.45, 0.63, 0.53) -0.125s infinite,
    swell 10s ease -1.25s infinite;
}

/* widget */
.widget {
  position: fixed;
  z-index: 9999;
  right: -235px;
  transition: right 0.5s ease-in-out;
}

.widget:hover {
  right: 0;
}

.customer-img {
  margin-left: -6px;
}

.adobe-certified {
  position: fixed;
  z-index: 9999;
  right: 0;
}

/* whatsapp chat */
.whatsappchat {
  position: fixed;
  z-index: 9999;
  right: 0;
  bottom: 20px;
}

/* nav modal */
.nav__modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.nav__modal.active {
  opacity: 1;
  visibility: visible;
}

.nav__modal-content {
  position: absolute;
  inset: 0;
  background-color: #fff;
  border-radius: 5px;
  max-width: 90vw;
  z-index: 5;
  margin-top: 32px;
  transform: translateX(-100%);
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav__modal.active .nav__modal-content {
  transform: translateX(0);
}

.nav__modal-content-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
}

.nav__modal-content--item {
  padding: 25px;
  cursor: pointer;
  border: solid #dbdbdb;
  border-width: 0 0 1px 1px;
  text-align: center;
  width: 33.33%;
  font-size: 16px;
  background-color: #e8e8e8;
  color: #1979c3;
}
.nav__modal-content--item.active {
  background-color: #fff;
  border-bottom: 0;
}

.nav__modal-section {
  padding: 20px 0;
}

.nav__modal-section-content-menu .menu {
  padding: 8px 40px 8px 15px;
  line-height: 53px;
  list-style: none;
  text-decoration: none;
  padding: 0;
}

.nav__modal-section-content-menu .menu .menu-item {
  border-top: 1px solid #dbdbdb;
  border-bottom: 1px solid #dbdbdb;
  padding: 0 25px;
}

.nav__modal-section-content-menu .menu a {
  color: #656565;
  font-size: 16px;
  font-weight: 600;
  text-transform: uppercase;
  word-wrap: break-word;
}

.nav__modal-section-content-menu .menu .menu-item:first-child a::after {
  content: "FÜR AGENTUR";
  display: inline-block;
  background-color: #ffbb20;
  color: #fff;
  padding: 4px 12px;
  margin-left: 10px;
  font-size: 12px;
  font-weight: 600;
  border-radius: 3px;
  line-height: 1;
}

.menu-icon {
  display: none;
}

/* work-content */
.works-content-item {
  box-shadow: 0px 20px 56px 0px rgba(28, 93, 191, 0.1);
  height: 100%;
}

.works-content-text {
  transform: translateY(60%);
}

.works-content-item:hover {
  display: flex;
  flex-direction: column;
  justify-content: center;
  max-height: 800px;
  height: 100%;
}

.works-content-item:hover .works-content-text {
  transform: translateY(0);
  transition: transform 0.3s ease-in-out;
}

.works-content-item:hover .works-content-img {
  filter: brightness(20%);
  transition: opacity 0.3s ease-in-out;
}

/* mouse trail */
svg#mouseTrails {
  position: fixed;
  width: 100vw;
  height: 100vh;
  top: 0;
  left: 0;
  z-index: 99999;
  pointer-events: none;
  /* Quan trọng: để click xuyên qua */
}

#mouseTrails line {
  stroke: #00aec7;
  /* Màu Cyan */
  stroke-width: 2;
  stroke-linecap: round;
}

@keyframes wave {
  0% {
    background-position-x: 0;
  }
  100% {
    background-position-x: 100%;
  }
}

/* Responsive */

/* 2. Tablet và màn hình lớn hơn (>= 640px) */
@media (min-width: 768px) and (max-width: 1023px) {
  .header__container {
    justify-content: center;
  }

  .header__menu {
    position: relative;
  }

  .header__menu .menu {
    display: none;
  }

  .menu-icon {
    position: absolute;
    font-size: 28px;
    color: #8f8f8f;
    display: inline-block;
    vertical-align: middle;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
  }

  .header-content {
    display: flex;
    align-items: center;
    flex-direction: row-reverse;
    flex: unset;
  }

  .custom-logo {
    margin: 0 15px 0 40px;
  }

  .widget,
  .adobe-certified {
    display: none;
  }

  .footer__container {
    width: 100%;
    padding: 0 30px;
  }

  .footer__middle-item span {
    text-align: center;
  }

  .text-heading {
    font-size: 26px;
  }
}
/* 3. Tablet dọc và Laptop nhỏ (>= 768px) */
@media (max-width: 767px) {
  .header__container {
    justify-content: center;
  }

  .header__menu .menu {
    display: none;
  }

  .header__menu::after {
    content: "☰";
    font-size: 28px;
    color: #8f8f8f;
    display: inline-block;
    vertical-align: middle;
    cursor: pointer;
  }

  .header-content {
    display: flex;
    align-items: center;
    flex-direction: row-reverse;
    flex: unset;
  }

  .custom-logo {
    margin: 0 15px 0 40px;
  }

  .lang-switcher {
    display: none;
  }

  .widget,
  .adobe-certified {
    display: none;
  }

  .text-heading {
    font-size: 26px;
  }

  /* footer */

  .footer__container {
    width: 100%;
    padding: 0 35px;
  }

  .footer__top {
    flex-direction: column;
    align-items: center;
    gap: 40px;
    text-align: center;
  }

  .footer__middle {
    flex-direction: column;
    align-items: center;
    gap: 30px;
  }

  .footer__bottom {
    width: 100%;
  }

  .footer__bottom p {
    display: flex;
    flex-direction: column;
    text-align: center;
  }

  .impressum,
  .footer__bottom p span {
    padding-bottom: 30px;
    margin-bottom: 30px;
    border-bottom: 1px solid #ccc;
  }

  /* works-content */
  .works-content-text {
    transform: translateY(70%);
  }
}

/* 4. Desktop / Laptop (>= 1024px) */

/* Desktop: center menu between logo and flag using flexible layout */
@media (min-width: 1024px) {
  .header__container {
    padding: 0 30px;
  }

  .header-content {
    flex: 1;
  }

  .text-heading {
    font-size: 40px;
  }

  .header__menu {
    position: static;
    margin: 0 auto;
    width: auto;
    max-width: calc(100% - 240px);
    padding: 12px 0;
    display: flex;
    align-items: center;
    transition: 0.1s all ease-in;
  }

  .header__menu .menu .menu-item:first-child a {
    position: relative;
  }

  .header__menu .menu .menu-item:first-child a::after {
    position: absolute;
    font-family: "Poppins", sans-serif;
    content: "für Agentur";
    background-color: #ffbb20;
    color: #fff;
    width: max-content;
    padding: 3px;
    font-size: 10px;
    line-height: 13px !important;
    border: 1px solid #ffbb20;
    border-radius: 2px;
    left: 0;
    top: -25px;
  }

  .works-content-img img {
    height: 100%;
    width: 100%;
    object-fit: cover;
  }
}

/* 5. Màn hình lớn (>= 1280px) */
@media (min-width: 1280px) {
}
