.container {
    min-width: 100%;
    min-height: 100%;
}

.page {
    height: 100%;
}

.page_25 {
    height: 25%;
}

.page_30 {
    height: 30%;
}

.page_35 {
    height: 35%;
}

.page_40 {
    height: 40%;
}

.page_45 {
    height: 45%;
}

.page_75 {
    height: 75%;
}

.page_90 {
    height: 90%;
}

.page_auto {
    height: auto;
}

.page_min_30 {
    min-height: 30%;
}

.text {
    position: relative;
    top: 0;
    left: 0;
    text-align: center;
    width: 100%;
    height: 100%;
}

.position_absolute {
    position: absolute;
}

.position_relative {
    position: relative;
}

.landing-page {
    position: relative;
    top: 0;
    left: 0;
    align-content: center;
    /* width: 60%; */
    height: 100%;
}

.borderless {
    padding: 0;
    margin: 0;
}


/* Elements */
.left_spec_desc {
    left: 11%
}

.left_20 {
    left: 20%
}

.top_spec_desc {
    top: 21%;
}

.right_spec_desc {
    left: 55%;
}

.left_desc {
    left: 7%
}

.top_desc {
    top: 10%;
}

.right_desc {
    left: 50%
}



/* Elements alignments */
.align_left {
    float: left;
    text-align: left;
}

.align_right {
    float: right;
    text-align: right;
}

.align_text_center {
    text-align: center;
}

.padding_5 {
    padding-left: 5%
}

.padding_10 {
    padding-left: 10%
}

.padding_15 {
    padding-left: 15%
}

.column_20 {
    float: left;
    width: 20%;
    /*padding: 15px;*/
}

.column_25 {
    float: left;
    width: 25%;
    padding: 15px;
}

.column_30 {
    float: left;
    width: 30%;
    padding: 15px;
}

.column_35 {
    float: left;
    width: 35%;
    padding: 15px;
}

.column_40 {
    float: left;
    width: 40%;
    padding: 15px;
}

.column_42 {
    float: left;
    width: 42%;
    padding: 15px;
}

.column_45 {
    float: left;
    width: 45%;
    padding: 15px;
}

.column_50 {
    float: left;
    width: 50vw;
}

.column_65 {
    float: left;
    width: 65%;
    padding: 15px;
}

.column_75 {
    float: left;
    width: 75%;
    padding: 15px;
}

.column_90 {
    float: left;
    width: 90%;
    padding: 15px;
}

.column {
    /*float: left;*/
    width: 100%;
    padding: 15px;
}

.section_row:after {
    content: "";
    display: table;
    clear: both;
}

td {
    vertical-align: top;
}

.td_left {
    width: 50%;
    text-align: right;
    padding: 1em;
}

.td_left_30 {
    width: 30%;
    text-align: right;
    padding: 1em;
}

.td_right {
    width: 50%;
    text-align: left;
    padding: 1em;
}

.form_center {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    -ms-transform: translate(-50%, -50%);
}

.inner_board {
    width: 25vw;
    height: 25vw;
}

.projects-container {
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding: 20px;

    margin-left: 20rem;
    max-width: 70%;
  }

.project-row {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    padding: 12px 16px;
    border-radius: 8px;
    align-items: center;
    gap: 12px;
  }

  /* Left column: fixed square image with overlay */
.project-image-box {
    position: relative;
    width: 23rem;
    height: 23rem;
    flex-shrink: 0; /* do not shrink */
    overflow: hidden;
    border-radius: 8px;

    box-shadow: 0px 0px 50px -10px #a2afb4;
    background-color: white; /* #f5f5f5; */
  }

.project-image-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;

    transition: transform 0.3s ease;
  }

  .project-video-box {
    position: relative;
    width: 30rem;
    height: auto;
    flex-shrink: 0; /* do not shrink */
    overflow: hidden;
    border-radius: 8px;
    text-align: center;

    box-shadow: 0px 0px 50px -10px #a2afb4;
    background-color: white; /* #f5f5f5; */
  }

  .project-video-box video {
    width: 100%;
    height: auto;
    object-fit: cover;  /* fills the frame like an image */
    border-radius: 8px;
    display: block;
  }

  /* Overlay text */
  .project-image-box .overlay {
    /* position: absolute; */
    /* bottom: 0; */
    /* left: 0; */
    width: 100%;
    background: rgba(0,0,0,0.5); /* semi-transparent overlay */
    /* color: white; */
    text-align: center;
    padding: 0.3rem;
    font-size: 0.8rem;
    box-sizing: border-box;

    /* height: 100%; */
    text-align: center;
    align-content: center;

    opacity: 0;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    background: rgba(8, 14, 40, 0.75);
    color: #fff;
    -moz-transition: all 0.4s ease-in-out 0s;
    -webkit-transition: all 0.4s ease-in-out 0s;
    -ms-transition: all 0.4s ease-in-out 0s;
    transition: all 0.4s ease-in-out 0s;
  }

  .project-image-box:hover .overlay {
    border-radius: 3px;
    visibility: visible;
    opacity: 1;
}

  .project-description {
    flex: 1 1 auto;
    padding: 2rem 3rem;
  }



  .project-image-box:hover img {
    transform: scale(1.05);
  }
  
  /* Floating images container */
  .floating-images {
    position: fixed;
    top: 50%;
    left: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    transform: translate(-50%, -50%) scale(2.5);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease, transform 0.4s ease;
    z-index: 1000;
  }

  .floating-row {
    display: flex;
    gap: 1rem;
  }
  
  /* Visible state */
  .floating-images.active {
    opacity: 1;
    transform: translate(-50%, -50%) scale(2);
    pointer-events: none;
  }
  
  /* Individual floating images */
  .floating-images img {
    width: 180px;
    height: 120px;
    object-fit: cover;
    border-radius: 10px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.4);
    transform: rotate(var(--angle)) translateY(var(--offset));
    transition: transform 0.6s ease;
  }
  
  .floating-images.active img:hover {
    transform: scale(1.1) rotate(var(--angle));
  }


  @media (max-width: 900px) {

    /* General layout */
    .container {
      min-width: 100%;
      padding: 0;
      margin: 0;
    }
  
    .page, .page_25, .page_30, .page_35, .page_40, .page_45, .page_75, .page_90 {
      height: auto; /* let content define height on small screens */
    }
  
    .projects-container {
      /* margin: 0; */
      max-width: 90%;
      padding: 10px;
      gap: 12px;

      margin-left: 5%;
    }
  
    /* Stack project items vertically */
    .project-row {
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      gap: 1.2rem;
      padding: 0.5rem;
    }
  
    /* Reduce image and video sizes */
    .project-image-box,
    .project-video-box {
      width: 90vw;
      height: auto;
      box-shadow: 0 0 25px -8px #a2afb4;
    }
  
    .project-image-box img,
    .project-video-box video {
      width: 100%;
      height: auto;
      border-radius: 6px;
    }
  
    /* Overlay text stays readable */
    .project-image-box .overlay {
      font-size: 0.9rem;
      padding: 0.5rem;
    }
  
    /* Description adjustments */
    .project-description {
      padding: 1rem;
      text-align: left;
      font-size: 0.95rem;
      line-height: 1.4;
    }

    /* .project-description {
        text-align: left;
    } */
  
    /* Column utilities collapse to full width */
    /* .column_20, .column_25, .column_30, .column_35, .column_40,
    .column_42, .column_45, .column_50, .column_65, .column_75, .column_90 {
      width: 100%;
      padding: 10px 0;
      float: none;
    } */
  
    /* Floating images adjustment */
    .floating-images {
      transform: translate(-50%, -50%) scale(1.2);
      flex-direction: column;
      gap: 0.5rem;
    }
  
    .floating-images img {
      width: 100px;
      height: 70px;
      box-shadow: 0 10px 25px rgba(0,0,0,0.3);
    }
  
    /* Hide hover-based effects (mobile has no hover) */
    .project-image-box:hover .overlay {
      opacity: 1;
    }
  
    .project-image-box:hover img {
      transform: none;
    }
  
    /* Tables and form centering */
    .td_left, .td_right, .td_left_30 {
      display: block;
      width: 100%;
      text-align: center;
      padding: 0.5em 0;
    }
  
    .form_center {
      position: static;
      transform: none;
      margin: 1rem auto;
    }
  
    /* Smaller "inner_board" for mobile */
    .inner_board {
      width: 60vw;
      height: 60vw;
    }
  
    /* Text alignment helpers */
    .align_left,
    .align_right,
    .align_text_center {
      text-align: center;
      float: none;
    }
  
    /* Padding tweaks for smaller viewports */
    .padding_5,
    .padding_10,
    .padding_15 {
      padding-left: 0;
    }
  }
  