@font-face {
  font-family: "HelveticaNeueLight";
  src: url("./assets/fonts/HelveticaNeueLight.otf");
}

html, body {
   margin: 0;
   height: 100%;
   overflow-y: hidden;
   overflow-x: hidden;
   background-color: black;
   -webkit-tap-highlight-color: transparent;
}

#loading-container {
  position: fixed;
  top: 50%;
  left: 50%;
  width: 50%;
  height: 5px;
  background: #222;
  transform: translate(-50%, -50%);
}

#loading-bar {
  width: 0%;
  height: 100%;
  background: white;
  transition: width 0.2s ease;
}


.container{
  z-index: 1;
}

.menu-bars{
  font-family: "HelveticaNeueLight";
  font-size: 50px;
  color: white;
}
.menu-bars:hover{
  cursor: pointer;
}
.upper-left-text{
  position: absolute;
  left: 5px;
}

.upper-right-text{
  position: absolute;
  transform: rotate(90deg);
  left: 0px;
  top: 5px;
  transform-origin: left top;
  transition: left 0.5s ease-in-out;
}

.lower-right-text{
  position: absolute;
  transform: rotate(180deg);
  right: 5px;
  top: 0px;
  transition: top 0.5s ease-in-out;
}

.lower-left-text{
  position: absolute;;
  transform: rotate(-90deg);
  transform-origin: left top;
  left: 0px;

  top: 0px;
  transition: left 0.5s ease-in-out;
}

/* keep line gap width to 97vw for now */
.upper-line{
  position: absolute;
  top: 5dvh; /* Adjust as needed */
  left: 0;
  width: 0vw; /* 75% of the viewport width */
  height: 2px; /* Line thickness */
  background-color: white; /* Line color */
  transition: width 0.5s ease-in-out;
}

.right-line{
  position: absolute;
  top: 0; /* Start from the top of the page */
  left: 0vw; /* Position at 75% of the page width */
  width: 2px; /* Line thickness */
  height: 0dvh; /* 75% of the viewport height */
  background-color: white; /* Line color */
  transition: left 0.5s ease-in-out;
}

.lower-line{
  position: absolute;
  top: 0dvh; /* Adjust as needed */
  left: 3vw;
  width: 0vw; /* 75% of the viewport width */
  height: 2px; /* Line thickness */
  background-color: white; /* Line color */
  transition: top 0.5s ease-in-out;
}

.left-line{
  position: absolute;
  top: 0dvh; /* Start from the top of the page */
  left: 0vw; /* Position at 75% of the page width */
  width: 2px; /* Line thickness */
  height: 0dvh; /* 75% of the viewport height */
  background-color: white; /* Line color */
  transition: left 0.5s ease-in-out;
}

/* For mobile devices. There should be no transitions initially. */
@media (max-width: 480px) {
  
  
  .upper-right-text{
    
    transition: none;
  }
  
  .lower-right-text{
    
    transition: none;
  }
  
  .lower-left-text{
    
    transition: none;
  }
  
  /* keep line gap width to 97vw for now */
  .upper-line{

    transition: none;
  }
  
  .right-line{
    
    transition: none;
  }
  
  .lower-line{
   
    transition: none;
  }
  
  .left-line{
    
    transition: none;
  }
}


.category-menu-bars{
  position: absolute;
  left: -500px;
  transition: left 0.5s ease-in-out;
}

.category-menu-bars a{
  display: block;
  color: white;
  font-size: 40px;
  font-family: 'HelveticaNeueLight';
  text-decoration: none;
}

/* For mobile devices */
@media (max-width: 480px) {
  .category-menu-bars a{
    display: block;
    color: white;
    font-size: 25px;
    font-family: 'HelveticaNeueLight';
    text-decoration: none;
  }
}

.category.active{
  font-family: 'HelveticaNeueLight';
  font-weight: bold;
}

.grid-container {
  width: 30vw; /* 60% of the right half (50% of the page) */
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
  gap: 10px;
  padding: 20px;
  max-width: 400px; /* Prevents overflow */
}

.grid-container img {
  width: 100%;
  aspect-ratio: 1 / 1; /* Keeps images square */
  object-fit: cover; /* Ensures images cover the square */
  border-radius: 5px; /* Optional for rounded corners */
}

.preview{
 position: absolute;
 
 right: 0;
 bottom: 0;
}

.preview-title{
  font-family: 'HelveticaNeueLight';
  font-weight: bold;
  font-size: 50px;
  justify-content: right;
  text-align: right;
  color: black;
  background-color: white;
}

/* For mobile devices */
@media (max-width: 480px) {
  .preview-title{
    font-family: 'HelveticaNeueLight';
    font-weight: bold;
    font-size: 20px;
    color: black;
    background-color: white;
  }
}

.column {
  /* flex: 1;
  padding: 20px;
  overflow-y: auto;
  height: 100dvh; */
}

.work-info-container{
  display: flex;
  top:100dvh;
  width: 100%;
  height: 100%;
  position: absolute;
  background-color: white;
  /* opacity: 0.9; */
  /* display: none; */
  transition: top 0.5s ease-in-out;
  z-index: 2;
  visibility: hidden;
  /* overflow-y: scroll; */
}

.work-title {
  width: 15%;
  margin: 10px;

  word-wrap: break-word;
  overflow-wrap: break-word;
  white-space: normal;
}

.work-title h1{
  /* position: relative; */
  margin: 0px;
  font-family: 'HelveticaNeueLight';
  font-size: 50px;
}

.work-info{
  width: 25%;
  border-left: 2px solid black;
  text-align: justify;
  overflow-y: auto;
  scrollbar-width: none;
}

.work-info::-webkit-scrollbar {
  display: none; /* For Chrome, Safari, and Edge */
}

.work-info h2{
  margin-top: 15px;
  margin-left: 15px;
  margin-right: 15px;
  font-family: 'HelveticaNeueLight';
  font-size: 20px;
}

.work-info h2 a{
  color: black;
  text-decoration: black;
  text-decoration-line: underline;
}

.work-info h2 a:visited{
  color: black;
 
}

.work-images{
  width: 60%;
  border-left: 2px solid black;
  display: block;
  overflow-y: auto;
  scrollbar-width: none;
}


.work-images::-webkit-scrollbar {
  display: none; /* For Chrome, Safari, and Edge */
}

.work-images iframe {
  width: 100%;
  height: 50%;
  /* flex-grow: 1; */
}

.work-images img{
  width: 100%; /*Adjust size as needed*/
  /* width: 80vw; */
  /* height: 60dvh; */
  display: block;
  object-fit: contain;
  margin-right: 5px;
  margin-bottom: 1px;
  scroll-snap-align: start;
  scroll-behavior: smooth;
}

.work-images img:last-child{
  margin-bottom: 0px;
}

.exit-button{
  position: absolute;
  width: 30px;
  bottom: 10px;
  left: 10px;
}

.exit-button img{
  width: 50px;
  cursor: pointer;
}

/* For mobile devices */
@media (max-width: 480px) {
  .work-info-container {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    position: fixed; /* Ensure it stays within the viewport */
    top: 0;
    left: 0;
    width: 100%;
    height: 100dvh; /* Adjusted to 100dvh to fit the screen */
    background-color: white;
    transition: top 0.5s ease-in-out;
    z-index: 2;
    visibility: hidden;
    overflow: hidden;
  }

  .work-title {
    order: 1;
    width: 100%;
    flex: 0 0 auto; /* Allow it to adjust to content */
    margin: 5px;
    word-wrap: break-word;
    overflow-wrap: break-word;
    white-space: normal;
  }

  .work-title h1 {
    display: inline-block;
    margin: 0;
    font-family: 'HelveticaNeueLight';
    font-size: 5vw; /* Responsive font size */
  }

  .work-info {
    order: 2;
    width: 100%;
    flex: 0 0 15%; /* Allow it to adjust to content */
    border-top: 1px solid black;
    border-left: none;
    text-align: left;
    overflow: auto;
    overflow-y: auto;
  }

  .work-info h2 {
    margin: 10px;
    font-family: 'HelveticaNeueLight';
    font-size: 4vw;
  }

  .work-images {
    order: 3;
    width: 100%;
    flex: 1; /* This will allow it to take the remaining space */
    border-top: 1px solid black;
    border-left: none;
    overflow-y: auto;
    scrollbar-width: none;
  }

  .work-images::-webkit-scrollbar {
    display: none; /* For Chrome, Safari, and Edge */
  }

  .work-images img {
    width: 100%; /* Ensure images fit container width */
    object-fit: contain;
    margin-bottom: 1px;
    scroll-snap-align: start;
    scroll-behavior: smooth;
  }

  .work-images img:last-child{
    
  }

  .exit-button {
    position: absolute;
    width: 15px;
    left: unset;
    right: 10px;
    top: 5px;
  }

  .exit-button img {
    width: 15px;
    cursor: pointer;
  }
}



.preview-image img{
  width: 20vw;
}

.cv-container {
  position: absolute;
  background-color: transparent;
  width: 100vw;
  height: 100dvh;
  top: 80px;
  left: 80px;
  transition: left 0.5s ease-in-out;
  z-index: 2;
  display: flex;
  visibility: hidden;
}

.cv-text {
  color: white;
  width: 100%;
  font-family: 'HelveticaNeueLight';
  font-weight: bold;
  font-size: 20px;
  margin: 5px;
  margin-right: 5px;
  text-align:left;
}

.contact-container{
  position: absolute;
  background-color: transparent;
  width: 100vw;
  height: 100dvh;
  top: 80px;
  right: 80px;
  transition: right 0.5s ease-in-out;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: center;  /* Centers vertically */
  align-items: center;
  visibility: hidden;
  font-family: 'HelveticaNeueLight';
  gap: 20px;
}

.contact-container a img{
  width: 50px;
}

.about-container{
  position: absolute;
  background-color: transparent;
  width: 100vw;
  height: 100dvh;
  top: 80px;
  left: 80px;
  transition: top 0.5s ease-in-out;
  z-index: 2;
  visibility: hidden;
  display: flex;
  
}

.about-text {
  color: white;
  width: 100%;
  font-family: 'HelveticaNeueLight';
  font-weight: bold;
  font-size: 20px;
  margin: 5px;
  margin-right: 5px;
  text-align: left;
  overflow-y: scroll;
  -ms-overflow-style: none;  /* Internet Explorer 10+ */
  scrollbar-width: none;  /* Firefox */
}

@media (max-width: 480px){
  .cv-text{
    font-size: 15px;
  }
  .about-text{
    font-size: 15px;
  }
}

.about-text::-webkit-scrollbar {
  display: none;
}
#c {
   position: fixed;
   top: 0;
   left: 0;
   width: 100vw;
   height: 100dvh;
   z-index: 0;
}





