@font-face {
  font-family: "Sligoil";
  src: url("font/sligoil-main/fonts/web/Sligoil-MicroBold.woff2")
    format("woff2");
  font-weight: 400;
  font-style: normal;
}

.main_info {
  position: fixed;
  top: 20px;

  left: 20px;
  right: 20px;

  max-width: 600px;
  width: calc(100% - 40px);

  margin: 0 auto;

  letter-spacing: 0.05em;
  line-height: 1.2;

  color: #ff3da1;
  font-family: "Sligoil", sans-serif;

  z-index: 10;
  line-height: 22px;

  box-sizing: border-box;
}

body {
  margin-top: 10%;

  background-image: radial-gradient(#beb9ff 1.3px, transparent 1px);
  background-size: 20px 20px;

  font-family: "Sligoil", sans-serif;
}

.main_info a:not(.home-button) {
  color: #ffbb00;
}
.home-button {
  text-decoration: none;
  color: #ff3da1;
}

.home-button:hover {
  opacity: 0.7;
}

.main_info a {
  color: #060071;
  text-decoration: none;
  font-weight: bold;

  font-size: 30px;

  word-break: break-word;
}

.main_info a:hover {
  text-decoration: underline;
  cursor: pointer;
}
/* 1. Reduce the forced height of the About section */
#about-section {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;

  /* Change from 100vh to auto so it only takes the space it needs */
  min-height: auto;
  /* Reduced bottom padding from 100px to 40px */
  padding: 120px 20px 40px 20px;

  text-align: center;
  max-width: 600px;
  margin: 0 auto;
}

.mening {
  font-size: 18px;
  color: #0084ff;
}

#three-canvas {
  display: block;
  width: 100vw;
  height: 100vh;
  filter: saturate(1.1);
  margin-top: -2vh;
}

/* 3. Snapping the footer to the container */
.site-footer {
  position: relative;
  z-index: 10;

  /* Zero top padding to pull text right up to the 3D model */
  padding: 0 20px 60px 20px;
  margin-top: -5vh; /* Slight negative margin makes it look 'merged' */

  font-family: "Sligoil", sans-serif;
  color: #ff3da1;
  background: transparent;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;

  text-align: center;
  font-size: clamp(18px, 2.5vw, 32px);
  letter-spacing: 0.05em;
}

.footer-item {
  mix-blend-mode: difference;
}

/* Ensure the footer line doesn't create unwanted gaps */
.footer-line {
  margin-top: 30px;
  height: 2px;
  width: 100%;
  background: repeating-linear-gradient(
    90deg,
    #ff0184,
    #ff0084 10px,
    transparent 10px,
    transparent 20px
  );
}

#bottom-model-container {
  width: 100%;
  height: 60vh; /* EXACT viewport height */

  display: flex;
  justify-content: center;
  align-items: center; /* center = no cropping bias */

  position: relative;
  overflow: hidden; /* prevent weird overflow scroll */

  z-index: 1;
}

#three-canvas-bottom {
  width: 100%;
  height: 100%;

  display: block;
  pointer-events: none;
}

/* 3. Adjust the footer to overlap the model's legs */
.site-footer {
  position: relative;
  z-index: 10; /* Keeps text above the model */
  padding: 0 20px 60px 20px;

  /* Pull the footer up so it starts while the model is still visible */
  margin-top: -20vh;

  font-family: "Sligoil", sans-serif;
  color: #ff3da1;
  background: transparent;
}

/* 2. Fix canvas sizing */
#three-canvas-bottom {
  display: block;
  width: 100%; /* Changed from auto to 100% to ensure it fills the width */
  height: 100%;
  pointer-events: none;
}

/* =========================================
   📱 MOBILE STYLES (Only applies to phones)
   ========================================= */
@media screen and (max-width: 768px) {
  /* Make all the links (Instagram, mail, about) smaller */
  .main_info a {
    font-size: 18px; /* Changed from desktop's 30px */
  }

  /* Make the main title (Seppe Mathieu) slightly bigger than the links, but smaller than desktop */
  .main_info h1 a.home-button {
    font-size: 24px;
  }

  /* Give the text a little more breathing room since we shrank it */
  .main_info {
    line-height: 1;
    padding: 0px;
  }
}
