/* * Reusable Section Styles for Product and Portfolio Pages 
 * (Previously in homepage.css)
 */

.header-container{
  display: flex;
  align-items: center;
  flex-direction: row;
}

/** Sketchfab 3D*/
.sketchfab-embed-wrapper {
  flex: 1;
  width: 10vw;
  border: solid 0px #fffdfd;
  border-radius: 10px;
  margin: 0px 5vw 0px 0em ;

}

.info-table{

  flex: 1;
  text-align: left;

}


.separator{
  flex: 1;
  margin-left: 50px;
  height: 20px
}

.sep-white{
  background-color: rgb(226, 226, 226);
}

.sep-black{
  background-color: #000000;
}


.black-section{
  background-color: #000000;
  padding: 10vw 15vw 5vw 15vw;
}

.black-section a:link {
text-decoration: none;
}

.black-section h1 {
  color: white;
  padding: 20px 0;
  text-transform: uppercase;
  text-align: left;
  
}

.black-section h2 {
  color: white;
  padding: 20px 0;
  text-transform: uppercase;
  text-align: center;

}

.black-section h3{
    color: #ffffff;
    text-transform: uppercase;
    text-shadow: 2px 2px 10px #0000008f;

}

.black-section h4{
    color: #ffffff;
    text-transform: none;
    font-weight: normal;
    text-align: justify;
    font-size: large;

}

.black-section p {
    color: #ffffff;
    
}

.heropic{
  position: relative;
   background-size: cover; 
   background-position: center -30vw;
   min-height: 70vw;
   
   

}

.bottom-fade {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 300px; /* Make it tall enough to go behind the carousel */
  background: linear-gradient(to top, black, transparent);
  z-index: 1;    /* Lower layer */
  pointer-events: none; 
}

/* The Carousel Wrapper */
.carousel-wrapper {
  position: absolute;
  overflow: hidden;
  
  bottom: 40px;  /* Offset it from the very bottom so it "sits" in the fade */
  left: 0;
  width: 100%;
  z-index: 2;    /* Higher layer - sits on top of the fade */
}



.carousel-track {
  display: flex;
  gap: 5vw;
  overflow: hidden;

  align-items: center;
  padding: 50px 33vw;
 

  cursor: grab;
  scrollbar-width: none; /* Hide scrollbar for Firefox */
  cursor: grab;
  user-select: none;           /* Prevents text/image highlighting */
  -webkit-user-select: none;
  touch-action: pan-y;
  scroll-behavior: auto !important; 
  scroll-snap-type: none !important; 
}

.carousel-track::-webkit-scrollbar {
  display: none; /* Hide scrollbar for Chrome/Safari */
}

.carousel-track:active {
  cursor: grabbing;
}

.carousel-item {
  flex: 0 0 33vw; /* Width of each slide */
  height: 15vw;

  border-radius: 12px;
  overflow: hidden;
  background: #333; /* Fallback color */
  display: flex;
  align-items: top;
  justify-content: center;

  transition: transform 0.2s ease-out, opacity 0.2s ease-out;
  will-change: transform, opacity;
  margin: 0 20px;
}


.carousel-item img {
    pointer-events: none; /* Prevents ghost-image dragging */
    -webkit-user-drag: none;
    width: 100%;
    object-position: center;
    object-fit: cover;
    top: 50%;
}

/* Lightbox Background */
.lightbox {
  display: none; 
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.9);
  justify-content: center;
  align-items: center;
}

/* The Image */
.lightbox-content {
  max-width: 80%;
  max-height: 80%;
  border-radius: 4px;
  box-shadow: 0 0 20px rgba(0,0,0,0.5);
  animation: zoom 0.3s ease;
}

/* Close Button */
.lightbox-close {
  position: absolute;
  top: 20px;
  right: 35px;
  color: white;
  font-size: 40px;
  font-weight: bold;
  cursor: pointer;
}

@keyframes zoom {
  from {transform: scale(0.7); opacity: 0;}
  to {transform: scale(1); opacity: 1;}
}

    /* Navigation Buttons */
.nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  color: white;
  font-size: 50px;
  font-weight: bold;
  padding: 20px;
  cursor: pointer;
  user-select: none;
  transition: color 0.2s;
  z-index: 1001;
}

.nav-btn:hover {
  color: #bbb;
}

.prev { left: 2vw; }
.next { right: 2vw; }


/* Vector Drawing*/

.vector-profile{
  
  height: 50vw;
}

/* White Section - Used for light mode content/headers */
.white-section{
    background-color: #f9f9f9;
      padding: 100px 15vw;
  }

  .white-section h1{
    text-align: left;
    text-transform: uppercase;
    padding: 20px 0;
    color: #000;
  }
  
/* Portfolio Category Styles (Used on the Homepage) */

.portfolio-category{
  margin: 15px 0;
}

.stripes-portfolio {
    height: 100px;
    
    -webkit-background-size: 50px 50px;
    -moz-background-size: 50px 50px;
    background-size: 100px 100px ;
    padding: 5px;
  }
  .deg45-white {
  background-color: transparent;
  background-image: linear-gradient(45deg, #ffffff 25%, transparent 25%, transparent 50%, #ffffff 50%, #ffffff 75%, transparent 75%, transparent);
  }

.portfolio-container {
  position: relative;
  overflow: hidden;

  border-radius: 5px;
  height: 150px;
  background-color: #ffffff10;

  display: flex;
  justify-content: center;
  align-items: center;

  color: white;
  text-decoration: none;
  transition: all .3s ease;
  
  z-index: 1;
}



/* Pseudo-element to hold the background */
.portfolio-container::before {
  content: '';
  position: absolute;
  inset: 0;

  background-image: var(--bg-image);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;

  filter: invert(00%);
  opacity: 0.2;
  
  transition: all .3s ease;

  z-index: 0;

}

.portfolio-container:hover::before {
  opacity: .6; 
  filter: invert(0%);

}

/* Content stays on top */
.portfolio-container > * {
  position: relative;
  z-index: 2;
}


.portfolio-container h2{
  color: white;
  transition: color .3s ease ;
}

.portfolio-container h2:hover {
  color: red;

}

/* About Section Styles (Used on the Homepage) */
.about-container{
  display: flex;
  flex-direction: row;
}

  .profile{
    
    width: 15vw;
    height: 100%;
  }

  .about-text{
    padding-left: 50px;
    text-align: justify;
  }


  .a-text-link:link{
    text-decoration: none;
    color: #D41700;
    font-weight: bold;

  }

/* Contact/Social Media Section Styles (Used on the Homepage) */
.icons-container{
  justify-content: center;
  align-items: center;
  display: flex;
}

.icon{
  fill: white;
  width: 50px;
  margin: 30px;
  transition: all .3s ease-in-out;
}

.icon:hover{
  fill: #D41700;
}


.spacing-product{
  height: 0vw;
}

/* Responsive styles for these sections */
@media (max-width: 1230px) {

    .heropic{
  
  min-height: 80vw;
  background-position: center -20vw;

  }
  .spacing-product{
    height: 0vw ;
  }

}


@media (max-width: 900px) {
  
  .about-container{
    flex-direction: column;
  }

  .about-text{
    padding: 40px 0 0 0;
  }

  .profile{
    align-self: center;
    width: 60%;
 
  }

  .header-container{
  display: flex;
  align-items: center;
  flex-direction: column;
  padding-top: 10vw;
  }

  .vector-profile {
    height: 60vw; 
    margin: auto 0px; /* Add margin below it */
  }
  
.info-table{
  flex: 1;
  text-align: center;
}

.info-table h1{
  text-align: center;
}

  .heropic{
  
  min-height:110vw;
  background-position: center -10vw;

  }

  .spacing-product{
    height: 4vw;
  }

    /** Sketchfab 3D*/
.sketchfab-embed-wrapper {
  flex: 1;
  width: 100%;
  height: 43vw;
  border: solid 0px #fffdfd;
  border-radius: 10px;
  margin: 0px;

}


  /* The Carousel Wrapper */
.carousel-wrapper {
  position: absolute;
  overflow: hidden;
  
  bottom: 0px;  /* Offset it from the very bottom so it "sits" in the fade */
  left: 0;
  width: 100%;
  z-index: 2;    /* Higher layer - sits on top of the fade */
}



.carousel-track {
  display: flex;
  gap: 5vw;
  overflow: hidden;

  align-items: center;
  padding: 50px 5vw;
 

  cursor: grab;
  scrollbar-width: none; /* Hide scrollbar for Firefox */
  cursor: grab;
  user-select: none;           /* Prevents text/image highlighting */
  -webkit-user-select: none;
  touch-action: pan-y;
  scroll-behavior: auto !important; 
  scroll-snap-type: none !important; 
}

.carousel-track::-webkit-scrollbar {
  display: none; /* Hide scrollbar for Chrome/Safari */
}

.carousel-track:active {
  cursor: grabbing;
}

.carousel-item {
  flex: 0 0 25vw; /* Width of each slide */
  height: 20vw;

  border-radius: 12px;
  overflow: hidden;
  background: #333; /* Fallback color */
  display: flex;
  align-items: top;
  justify-content: center;

  transition: transform 0.2s ease-out, opacity 0.2s ease-out;
  will-change: transform, opacity;
  margin: 0 20px;
}


.carousel-item img {
    pointer-events: none; /* Prevents ghost-image dragging */
    -webkit-user-drag: none;
    width: 100%;
    object-position: center;
    object-fit: cover;
    top: 50%;
}

}






@media (max-width: 550px) {

  .header-container{
  padding-top: 10vw;
  }

  
  .heropic{
  
  min-height: 1vw;
  position: relative;
  background-position: center 0vw;
  padding: 5vw 5vw 70vw 5vw;

  }
  .heropic::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  /* Adjust the height to control how "tall" the fade is */
  height: 60px; 
  background: linear-gradient(to top, black, transparent);
}

  .spacing-product{
    height: 10vw;
  }

  
  /** Sketchfab 3D*/
.sketchfab-embed-wrapper {
  flex: 1;
  width: 100%;
  height: 63vw;
  border: solid 0px #fffdfd;
  border-radius: 10px;
  margin: 10px 0vw 0px 0vw ;

}
/* The Carousel Wrapper */
.carousel-wrapper {
  position: absolute;
  overflow: hidden;
  
  bottom: 50px;  /* Offset it from the very bottom so it "sits" in the fade */
  left: 0;
  width: 100%;
  z-index: 2;    /* Higher layer - sits on top of the fade */
}



.carousel-track {
  display: flex;
  gap: 1vw;
  overflow: hidden;

  align-items: center;
  padding: 50px 5vw;
 

  cursor: grab;
  scrollbar-width: none; /* Hide scrollbar for Firefox */
  cursor: grab;
  user-select: none;           /* Prevents text/image highlighting */
  -webkit-user-select: none;
  touch-action: pan-y;
  scroll-behavior: auto !important; 
  scroll-snap-type: none !important; 
}

.carousel-track::-webkit-scrollbar {
  display: none; /* Hide scrollbar for Chrome/Safari */
}

.carousel-track:active {
  cursor: grabbing;
}

.carousel-item {
  flex: 0 0 25vw; /* Width of each slide */
  height: 30vw;

  border-radius: 12px;
  overflow: hidden;
  background: #333; /* Fallback color */
  display: flex;
  align-items: top;
  justify-content: center;

  transition: transform 0.2s ease-out, opacity 0.2s ease-out;
  will-change: transform, opacity;
  margin: 0 20px;
}


.carousel-item img {
    pointer-events: none; /* Prevents ghost-image dragging */
    -webkit-user-drag: none;
    width: 100%;
    object-position: center;
    object-fit: cover;
    top: 50%;
}

}
