html, body {
  margin: 0;
  padding: 0;
  height: 100%;
  font-family: acumin-variable, sans-serif;
  display: flex;
  justify-content: center;   /* horizontal centering */
  align-items: center;       /* vertical centering */
  min-height: 100vh;         /* make sure body fills the screen */
  margin: 0;
}

/* Loading Screen */
#preloader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgb(0, 0, 0);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  transition: opacity 1s ease;
}

.loader-logo {
  width: 10rem; /* Adjust size as needed */
  height: auto;
  animation: pulse 1.5s infinite ease-in-out;
}

@keyframes pulse {
  0%, 100% {
    opacity: 0.2;
  }
  50% {
    opacity: 1;
  }
}
/* End of Loading Screen */

/* ✅ THE GRID & FLEX SYSTEM */
/* Make sure the column and grid are perfect. */
.container {
  max-width: 80%;
  margin: auto;
  padding: 2rem;
}

.two-columns {
  display: flex;
  flex-direction: row;
  width: 100%;
  gap: 5rem;
}

.left-column,
.right-column {
  flex: 1;
}

.left-column {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
  gap: 1.5rem;
}

.right-column {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
  gap: 1.5rem;
}

.inner-grid {
  display: grid;
  grid-template-columns: 1fr; /* Two equal-width columns */
  gap: 1rem;                  /* Space between items */
  width: 100%;
}

.link-grid{
  display: grid;
  grid-template-columns: 2fr 1fr 2fr;   /* Three equal-width columns */
  gap: 0.8rem;                          /* Space between items */
  border-bottom: 1px solid #c0c0c0;
  padding-bottom: 1rem;
  margin-bottom: 0.2rem;
}

.inner-grid a {
  align-self: center;     /* or center */
  justify-self: start;
  width: auto;           /* 🟢 Not 100%! */
}

.inner-grid span {
  align-self: start;     /* or center */
  justify-self: start;
  width: auto;           /* 🟢 Not 100%! */
}

#visit {
  grid-column: 3;
}

#link-icon {
  grid-column: 2;
  justify-self: end;
  width: 1rem;
  align-self: center;
}

#link-icon-address {
  align-self: start;
  justify-self: right;
  height: 1.1rem;
}

.certificate-flex {
  display: flex;
  flex-direction: row;
  gap: 1.5rem;
  width: 100%;
  border-bottom: none;
  padding-bottom: 1rem;
  margin-bottom: 0.2rem;
  justify-content: end;
}

#certificate-icon-1 {
  height: 3rem;
}

#certificate-icon-2 {
  height: 3rem;
}
/* End of THE GRID & FLEX SYSTEM */

.logo {
  width: 15rem;
  height: auto;
}

.welcome {
  display: flex;
  flex-direction: column;
  width: 100%;
  gap: 0rem;                        /* optional spacing */
  border-top: 1px solid #c0c0c0;  /* thickness, style, color */
  padding-top: 1.5rem;              /* optional: space above content */
}

footer {
  margin-top: auto;
  font-size: 0.8rem;
  color: #666;
  align-self: end;
}

.about {
  border-top: 1px solid #c0c0c0; /* thickness, style, color */
  padding-top: 1.5rem;              /* optional: space above content */
}

/* ✅ FONT CSS MANAGEMENT */
/* Make sure the font and styling is right. */
h1 {
  font-variation-settings: "slnt" 0, "wdth" 115, "wght" 700;
  font-size: 1.8rem;
  letter-spacing: -0.085rem;
  line-height: 1.8rem;
}

h2 {
  font-variation-settings: "slnt" 0, "wdth" 100, "wght" 400;
  font-size: 1rem;
  letter-spacing: -0.05rem;
  margin-top: 0;
  margin-bottom: 0.2rem;
}

h3 {
  font-variation-settings: "slnt" 0, "wdth" 115, "wght" 700;
  font-size: 1.4rem;
  letter-spacing: -0.05rem;
  margin-top: 0;
  margin-bottom: 0;
  line-height: 1.2rem;
}

p {
  font-variation-settings: "slnt" 0, "wdth" 100, "wght" 400;
  font-size: 0.9rem;
}

#welcome-text {
  font-variation-settings: "slnt" 0, "wdth" 115, "wght" 700;
  font-size: 1.7rem;
  letter-spacing: -0.05rem;
}

.link {
  font-variation-settings: "slnt" 0, "wdth" 100, "wght" 600;
  font-size: 1.1rem;
  letter-spacing: -0.05rem;
  align-items: start;
}

.underline-link {
  font-variation-settings: "slnt" 0, "wdth" 100, "wght" 500;
  font-size: 1rem;
  letter-spacing: -0.03rem;
  position: relative;
  display: inline-block;     /* 🟢 Keeps it only as wide as the text */
  text-decoration: none;
  color:#5c5c5c;
}

.underline-link:hover {
  color:black;
}

/* 🔽 Animated underline only under the text */
.underline-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px; /* fine-tune based on font size */
  width: 100%;
  height: 1px;
  background-color: currentColor;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}

.underline-link:hover::after {
  transform: scaleX(1);
  color: black;
}
/* End of animating underline */

.address {
  font-variation-settings: "slnt" 0, "wdth" 100, "wght" 400;
  font-size: 1rem;
  line-height: 1rem;
}
/* End of FONT CSS MANAGEMENT */

/* 🖵 RESPONSIVE CSS MANAGEMENT */
/* Make sure the website consistent on all screen. */
@media only screen and (min-width: 0px) and (max-width: 768px) {
  .two-columns {
    flex-direction: column;
    gap: 2.5rem; /* Optional: reduce spacing on smaller screens */
  }

  .container {
    max-width: 90%;
    padding: 2rem;
  }

  .logo {
    margin-top: 1rem;
  }

  .link-grid{
    grid-template-columns: 10% 1fr 1fr;
  }

  .link {
    font-size: 1rem;
  }

  .link-icon{
    height: 0.9rem;
  }

  .underline-link {
    font-size: 0.8rem;
  }

  .address {
    font-size: 0.8rem;
  }

  .certificate-flex {
    padding-top: 1rem;
    justify-content: center;
  }

  footer {
    align-self: center;
  }
}

@media only screen and (min-width: 769px) and (max-width: 960px) {
  .two-columns {
    flex-direction: column;
    gap: 2.5rem; /* Optional: reduce spacing on smaller screens */
  }

  .container {
    max-width: 80%;
    padding: 2rem;
  }

  .logo {
    margin-top: 2.5rem;
  }

  .link-grid {
    grid-template-columns: 40% 1fr 1fr;
  }

  .underline-link {
    font-size: 0.9rem;
  }

  .address {
    font-size: 0.9rem;
  }
  .certificate-flex {
    padding-top: 1rem;
    justify-content: center;
  }

  footer {
    align-self: center;
  }
}
/* End of RESPONSIVE CSS MANAGEMENT */