@font-face {
  font-family: "Glosec";
  font-style: normal;
  font-weight: 400;
  src: url("../fonts/Glosec-Regular.woff2") format("woff2");
  font-display: swap;
}

@font-face {
  font-family: "Glosec";
  font-style: normal;
  font-weight: 700;
  src: url("../fonts/Glosec-Medium.woff2") format("woff2");
  font-display: swap;
}

@font-face {
  font-family: "Glosec", Georgia, "Times New Roman", Times, serif;
  font-style: normal;
  font-weight: 900;
  src: url("../fonts/Glosec-Light.woff2") format("woff2");
  font-display: swap;
}

@font-face {
  font-family: "GlosecTitle";
  font-style: normal;
  font-weight: 300;
  src: url("../fonts/Glosec-Title.woff2") format("woff2");
  font-display: swap;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-size: 16px;
  font-family: "Glosec", Georgia, "Times New Roman", Times, serif;
  max-width: 100vw;
  overflow-x: hidden;
}

h1 {
  font-family: "GlosecTitle", Georgia, "Times New Roman", Times, serif !important;
  font-weight: 700;
}

h2,
h3,
p,
span {
  font-family: "Glosec", Georgia, "Times New Roman", Times, serif !important;
  font-weight: 400;
}

.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s cubic-bezier(0.5, 0, 0, 1);
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

.navbar {
  transition: background-color 0.4s ease, padding 0.4s ease,
    box-shadow 0.4s ease;
}

.img-zoom {
  transition: transform 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.limit-text-2 {
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.limit-text-3 {
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
}

.limit-text-4 {
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
}

#nav-links > a {
  position: relative;
  transition: color 0.3s ease;
}
#nav-links > a::after {
  content: "";
  position: absolute;
  width: 0;
  height: 4px;
  bottom: -0;
  left: 0;
  background-color: #d52a1d;
  transition: width 0.3s;
}
#nav-links > a:hover::after {
  width: 100%;
}
