/* Last Update 10/2/2022 */
* {
    transition-duration: 0.3s;
}

html {
  scroll-behavior: smooth;
  position: relative;
}

/* Colors */
:root {
  --primary: #2F2F1F;
  --secondary: #8E8B82;
  --success: #489459;
  --danger: #DC3545;
  --warning: #E1B11F;
  --info: #17A2B8;
  --light: #F3F3F3;
  --dark: #343A40;
  --white: #ffffff;
  --transparent: ;
  --border: #DEE2E6;

  --body: #212529;
  --muted: #6C757D;
}

.border-primary {
  border-color: var(--primary) !important;
}

.text-primary {
  color: var(--primary) !important;
}

.text-secondary,
a.text-secondary,
a.text-secondary:hover {
  color: var(--secondary) !important;
}

.text-success {
  color: var(--success) !important;
}

.text-danger {
  color: var(--danger) !important;
}

.text-warning {
  color: var(--warning) !important;
}

.text-info {
  color: var(--info) !important;
}

.text-light {
  color: var(--light) !important;
}

.text-dark {
  color: var(--dark) !important;
}

.text-body {
  color: var(--body) !important;
}

.text-muted {
    color: var(--muted) !important;
}

.bg-primary {
  background-color: var(--primary) !important;
}

.bg-secondary {
  background-color: var(--secondary) !important;
}

.bg-success {
  background-color: var(--success) !important;
}

.bg-danger {
  background-color: var(--danger) !important;
}

.bg-warning {
  background-color: var(--warning) !important;
}

.bg-info {
  background-color: var(--info) !important;
}

.bg-light {
  background-color: var(--light) !important;
}

.bg-dark {
  background-color: var(--dark) !important;
}

.bg-white {
  background-color: var(--white) !important;
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6,
.h1,
.h2,
.h3,
.h4,
.h5,
.h6,
a,
p,
del,
s,
ins,
u,
small,
strong,
em,
.display-1,
.display-2,
.display-3,
.display-4 {
  font-family: 'Montserrat', 'Noto Sans TC', Helvetica, Arial, sans-serif;
  font-size: 1rem;
  color: var(--body) !important;
}

h1,
.h1 {
  font-style: normal;
  font-weight: 500;
  font-size: 40px;
  line-height: 150%;
}

h2,
.h2 {
  font-style: normal;
  font-weight: 500;
  font-size: 32px;
  line-height: 150%;
}

h3,
.h3 {
  font-style: normal;
  font-weight: 500;
  font-size: 28px;
  line-height: 150%;
}

h4,
.h4 {
  font-style: normal;
  font-weight: 500;
  font-size: 24px;
  line-height: 150%;
}

h5,
.h5 {
  font-style: normal;
  font-weight: 500;
  font-size: 20px;
  line-height: 150%;
}

h6,
.h6 {
  font-style: normal;
  font-weight: 500;
  font-size: 16px;
  line-height: 150%;
}

a:hover,
a.text-primary:hover {
    text-decoration: none;
    color: var(--secondary) !important;
}

.display-1 {
  font-style: normal;
  font-weight: 300;
  font-size: 96px;
  line-height: 150%;
}

.display-2 {
  font-style: normal;
  font-weight: 300;
  font-size: 88px;
  line-height: 150%;
}

.display-3 {
  font-style: normal;
  font-weight: 300;
  font-size: 72px;
  line-height: 150%;
}

.display-4 {
  font-style: normal;
  font-weight: 300;
  font-size: 56px;
  line-height: 150%;
}

p {
  font-style: normal;
  font-weight: normal;
  font-size: 16px;
  line-height: 150%;
}

b,
strong {
  font-style: normal;
  font-weight: bold;
  font-size: 16px;
  line-height: 150%;
}

ins,
u {
  font-style: normal;
  font-weight: normal;
  font-size: 16px;
  line-height: 150%;
  text-decoration-line: underline;
}

del,
s {
  font-style: normal;
  font-weight: normal;
  font-size: 16px;
  line-height: 150%;
  text-decoration-line: line-through;
}

small,
.small {
  font-style: normal;
  font-weight: normal;
  font-size: 12.8px;
  line-height: 150%;
}

/* Buttons */
.btn-primary {
  background-color: var(--primary) !important;
  border: none;
}

.btn[class*="btn-outline-"] {
    border-radius: 48px !important;
    padding: 8px 16px;
    font-size: 14px;
}

.btn-outline-primary {
    color: var(--primary) !important;
    border-color: var(--primary) !important;
    font-size: 14px;
    height: fit-content;
}

.btn-outline-primary:hover {
    background-color: var(--primary) !important;
    border-color: var(--primary) !important;
    color: var(--white) !important;
}

.btn-outline-secondary {
  color: var(--secondary) !important;
  border-color: var(--secondary) !important;
  font-size: 14px;
  height: fit-content;
}

.btn-outline-secondary:hover {
  background-color: var(--secondary) !important;
  border-color: var(--secondary) !important;
  color: var(--white) !important;
}

.btn-outline-white {
  color: var(--white) !important;
  border-color: var(--white) !important;
  font-size: 14px;
  height: fit-content;
}

.btn-outline-white:hover {
  background-color: var(--white) !important;
  border-color: var(--white) !important;
  color: var(--secondary) !important;
}

/* Spacing */
.sp-8 {
    padding-top: 8px;
    padding-bottom: 8px;
}

.sp-16 {
    padding-top: 16px;
    padding-bottom: 16px;
}

.sp-24 {
  padding-top: 24px;
  padding-bottom: 24px;
}

.sp-32 {
    padding-top: 32px;
    padding-bottom: 32px;
}

.sp-40 {
  padding-top: 40px;
  padding-bottom: 40px;
}

.sp-48 {
    padding-top: 48px;
    padding-bottom: 48px;
}

.sp-64 {
    padding-top: 64px;
    padding-bottom: 64px;
}

.sp-80 {
  padding-top: 80px;
  padding-bottom: 80px;
}

/* Header */
.hero-header,
.parallax-hero-wrapper {
  height: 62.5vw;
  min-height: 600px;
  max-height: 90vh;
  background-position: center;
  background-size: cover;
}

.hero-header-small,
.parallax-hero-wrapper-small {
  height: 390px;
  background-position: center;
  background-size: cover;
}

.parallax-hero {
  object-fit: cover;
  position: absolute;
  z-index: -1;
  transition-duration: 0ms;
}

.nav-link {
    padding-left: 8px!important;
    padding-right: 8px!important;
}

.navbar-toggler {
    border: none;
}

.navbar-toggler:hover {
  opacity: 0.5;
}

.nav-upper,
.nav-lower {
    margin-left: 0;
    margin-right: 0;
}

.nav-upper {
    display: flex;
    flex-direction: row;
}

.lang-btn {
  font-size: 14px;
  line-height: 150%;
  padding: 2px 4px;
  border-radius: 2px;
  color: var(--white);
}

.lang-btn.active {
  background-color: var(--secondary);
  color: var(--white) !important;
}

@media screen and (max-width: 576px) {
  .hide-on-mobile {
    display: none;
  }
}


.menu {
  position: fixed;
  z-index: 9999;
  top: 0;
  height: 0;
  transition-duration: 0.5s;
}

.menu.active {
  height: 100vh;
}

.menu nav {
  display: none;
}

.menu nav.active {
  display: flex;
}

.menu-item {
  display: none;
  transition-duration: 0ms !important;
}

.navbar.position-fixed {
  z-index: 1;
}

/* Tag line */
.text-tagline {
  font-size: 56px;
  line-height: 67.2px;
  font-weight: 100;
}

/* Parallax */
.hero-parallax {
  min-height: 400px;
  background: transparent;
}

.parallax-mirror,
.parallax-slider {
  transition-duration: 0ms !important;
}

/* Index */
.card {
  border: none;
  border-radius: 4px;
}

.card-content {
  /* display: none; */
  opacity: 0;
}

.card:hover p.card-content{
  display: block;
  opacity: 1;
  color: var(--white) !important;
}

.card:hover .card-title {
  color: var(--white) !important;
}

.card:hover .card-content-overlay {
  background-color: var(--warning);
}

.teammate-wrapper,
.brand-wrapper,
.brand-wrapper img {
  max-width: 174px;
  height: auto;
}

.teammate-wrapper {
  max-width: 160px;
}

.teammate img {
  border-radius: 64px;
}

.teammate img,
.teammate h5,
.teammate small {
  cursor: pointer;
}

/* Footer */
.footer .logo  {
  width: auto;
  max-height: 90px;
}

/* Dash line */
.dash-line {
  border-top: 2px dashed var(--secondary);
  opacity: 0.2;
}

/* Overlay */
.popup-overlay {
  display: none !important;
}

.popup-overlay.active {
  display: flex !important;
}

.overlay-black {
  background-color: rgb(0, 0, 0, 0.25);
}

/* Team Card */
.team-card {
  width: 90vw; 
  height: fit-content;
  max-width: 500px; 
  min-height: 500px;
  transition-duration: 0ms;
}

.close-btn:hover {
  opacity: 0.5;
  cursor: pointer;
}

/* Invert */
.invert {
  filter: invert(1);
}

/* No Scroll */
.no-scroll {
  height: 100vh;
  overflow: hidden;
}

/* Back to top */
.backtotop {
  position: fixed;
  bottom: 32px;
  right: 12px;
  opacity: 0.5;
}

.backtotop:hover {
  opacity: 1;
}