/* Normalise css */
html,body{
    background-color: #141414;
    padding:0;
    margin: 0;
    font-family: Helvetica,Arial ,sans-serif;
    overflow-x: hidden; /* Prevent the whole screen from scrolling horizontally */ 
    overflow-y: auto; /* enables vertical scrolling */
    
}
.container{
    width: 100%;
    max-width: 1250px;
    margin: 0 auto;
}
*{
    box-sizing: border-box;
}
/*
*::-webkit-scrollbar{
    display: none;
}
*/
/* Header Css */
.site-header{
    background-color: black;
    color: white;
    position: fixed;
    z-index: 100;
    left:0;
    top: 0;
    width: 100%;
    transition: all ease 600ms;
    padding: 20px;
    background: linear-gradient(to top, 
    rgba(0, 0, 0, 0) 5%,
    rgba(0, 0, 0, 0.05) 10%,
    rgba(0, 0, 0, 0.5) 30%,
    rgba(0, 0, 0, 0.75) 75%,
    rgba(0, 0, 0, 0.9) 90%,
    rgba(0, 0, 0, 1) 100%);
}
header.black-bg{
    background-color: rgb(20, 20, 20);
}
.header-cont{
    display: flex;
    flex-direction: row;
    justify-content: space-between;
}

.left-cont, .right-cont{
    display: flex;
    flex-direction: row;
    align-items: center;
}
.header-brand{
    max-width: 170px;
}
.main-nav{
    list-style: none;
    display: inline-flex;
    flex-direction: row;
}
.nav-item{
    margin-right: 20px;
    color: #ffffff;
    opacity: .83;
}
.nav-item.active{
    color: white;
    opacity: 1;
    font-weight: 500;
}
.right-cont svg,  .right-cont img{
    margin-right: 22px;
    cursor: pointer;
}
.right-cont svg{
    color: white;
}
.right-cont img{
    max-width:40px;
}



/* Movies Section CSS */
.movies-section{
    margin: 41px 0;
}
.movie-section-heading{
    font-size: 20px;
    font-weight: 700;
    line-height: 1.2;
    color: white;
    cursor: pointer;
    margin-bottom: 10px;
}
.explore-nudge{
    color: #54b9c5;
    font-size: 12px;
    display: none;
}
.movie-section-heading:hover .explore-nudge{
    display: inline-block;
}
.movies-row {
    display: -ms-inline-flexbox;
    gap: 10px; /* space between images */
    overflow-x: auto;
    overflow-y: hidden;
    padding: 1rem 0;
    justify-content: flex-start;
    scroll-behavior: smooth; /* optional: smooth scrolling */
    white-space: nowrap; /* optional, for smoother layout */
    -webkit-overflow-scrolling: touch; /* Smooth on iOS */
    touch-action: pan-x; /* Allow only horizontal scroll */
    flex-direction: row;
  }

  /* i added this  */
  .movies-row::-webkit-scrollbar {
  height: 8px;
}

.movies-row::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.3);
  border-radius: 4px;
}

.movie-item {
  flex: 0 0 auto; /* prevents shrinking and keeps width */
  width: 200px; /* adjust to your needs */
  height: auto;
}
/* stops here ^^^*/

  
  .movie-item {
    object-fit: cover; /* crop to fit without stretching */
    border-radius: 8px;
    transition: transform 0.3s;
    cursor: pointer;
  }
  
.move-item-img{
    width: inherit;
}
.movie-item .iframe-wrap{
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10;
    display: none;
    border: none;
    outline: none;
}
.movie-item:hover .iframe-wrap{
    display: block;
}
.movie-item:hover{
    transform: scale(1.4);
    transition: transform linear 300ms;
}






/* i added this */

.image-container {
  position: relative;
  overflow: visible;
  display: inline-block;
  width: 300px;  /* Adjust size */
  height: 200px;
  margin: 10px;
  cursor: pointer;
}

.image-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.overlay-text {
  position: absolute;
  bottom: 0%;
  text-align: center;
  transform: translate(-50%, -50%);
  color: white;
  font-size: 1 rem;
  font-weight: lighter;
  opacity: 0;
  transition: opacity .5s ease;
  text-shadow: 0 0 15px rgba(0, 0, 0, 0.75);
  pointer-events: none;
 /*alter below if the text wrap is fucked*/
  white-space: normal;
  word-wrap: break-wrap;
  background-color: rgba(0, 0, 0, .5);
  left: 50%;
  transform: translateX(-50%);
}

.image-container:hover img {
  transform: scale(1.3);
}

.image-container:hover {
  z-index: 10; /* brings it to the front */
}

.image-container:hover .overlay-text {
  opacity: 1;
}


.image-container:hover .movie-item.move-item-img {
  transform: scale(1.3);
}






/* Banner Section */
.banner-section{
    background-repeat: no-repeat;
    background-size: cover;
    min-height: 98vh;
    padding-top: 80px;
    position: relative;
}
.banner-content{
    display: flex;
    flex-direction: column;
    padding-top: 70px;
}
.banner__title{
    color: white;
    font-size: 84px;
    line-height: 1.1;
    margin: 0;
    margin-bottom: 16px;
    max-width: 40%;
}
.banner__info{
    margin-bottom: 14px;
    font-size: 22px;
    font-weight: 700;
    line-height: 1.5;
    color: white;
}
.banner__overview{
    font-size: 16.4px;
    color: white;
    line-height: 1.3;
    max-width: 40%;
}
.action-buttons-cont{
    display: flex;
    flex-direction: row;
    align-items: center;
}
.action-button{
    border:none;
    background-color: white;
    padding: 8px 23px;
    margin-right: 11px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    flex-direction: row;
    font-size: 16px;
    font-weight: 700;
    cursor:pointer;
}
.action-button:last-child{
    background-color: rgba(109, 109, 110, 0.7);
    color:white;
}
.banner_fadeBottom{
    height: 120px;
    background:linear-gradient(180deg,
        transparent,
        rgba(37,37,37,.61),
        #141414
    ); 
    position: absolute;
    left:0;
    bottom: 0;
    width: 100%;
}





/* RESPONSIVE CSS */
@media (max-width:767px) {
    .main-nav{
        display: none;
    }
    .banner__overview, .banner__title{
        max-width: 100%;
    }
}









/* pop up shit for the more info button */

/* Overlay background */
.popup-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7); /* dark transparent background */
  display: none; /* hidden by default */
  justify-content: center;
  align-items: center;
  z-index: 1000;
}

/* Popup box */
.popup-box {
  width: 50%;
  max-width: 1200px;
  background: #111; /* dark theme */
  color: #fff;
  padding: 2rem;
  border-radius: 10px;
  position: relative;
  box-shadow: 0 0 30px rgba(0, 0, 0, 0.5);
  animation: fadeIn 0.3s ease-in-out;
}

/* Close button */
.close-btn {
  position: absolute;
  top: 10px;
  right: 15px;
  font-size: 24px;
  color: #fff;
  cursor: pointer;
  z-index: 9999; /* bring to front */
}

/* Fade-in animation */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: scale(0.8);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* Popup box styling */
.popup-box {
  width: 50%;
  max-width: 600px;
  background: #111;
  color: #fff;
  border-radius: 15;
  overflow: hidden;
  position: relative;
  animation: fadeIn 0.7s ease-in-out;
  padding: 0;
  margin: auto;
}

/* Image header with gradient fade */
.popup-header {
  position: relative;
  height: 200px;
  background-image: 
    linear-gradient(to bottom, rgba(0, 0, 0, .3) 60%, rgba(0, 0, 0, 0.85) 100%),
    url('Photos/Me/IMG_5579.JPG'); /* Replace with your image path */
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: flex-end;
  padding: 0;
  margin: 0;
}

/* Text overlay in header */
.header-text {
  color: white;
  z-index: 2;
}

/* Content area */
.popup-content {
  padding: 1.5rem;
  background: #111;
}






/* Modal stuff for clickable images*/

.modal {
  display: none; /* Hidden by default */
  position: fixed;
  z-index: 9999; /* Make sure it's on top */
  left: 0;
  top: 0;
  width: 100vw;
  height: 100vh;
  overflow: auto;
  background-color: rgba(0,0,0,0.9); /* Black background with opacity */
  justify-content: center;
  align-items: center;
}

.modal-content {
  max-width: 90vw;
  max-height: 90vh;
  margin: auto;
  display: block;
  border-radius: 10px;
}

.close-modal {
  position: absolute;
  top: 30px;
  right: 40px;
  color: #fff;
  font-size: 40px;
  font-weight: bold;
  cursor: pointer;
}







/* Video stuff */

/* Cropped Thumbnail */
.video-thumbnail video {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 8px;
}

/* Play Button Overlay */
.play-button {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 40px;
  color: white;
  background: rgba(0, 0, 0, 0.4);
  padding: 10px 15px;
  border-radius: 50%;
  cursor: pointer;
  pointer-events: none; /* allows click to pass through to the container */
}

/* Popup Styles */
.video-popup {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0,0,0,0.8);
  justify-content: center;
  align-items: center;
  z-index: 1000;
}

.video-popup-content {
  position: relative;
  width: 80%;
  max-width: 800px;
}

.video-popup video {
  width: 65%;
  height: auto;
  border-radius: 10px;
}

.close-btn {
  position: absolute;
  top: -20px;
  right: -20px;
  font-size: 32px;
  color: white;
  background: rgba(0, 0, 0, 0.6);
  padding: 6px 12px;
  border-radius: 50%;
  cursor: pointer;
  z-index: 1001;
  transition: background 0.3s;
}

.close-btn:hover {
  background: rgba(255, 255, 255, 0.2);
}







/* Hover over text pop up shit */

.hover-container {
  position: relative;
  display: inline-flex;
}

.hover-popup {
  position: absolute;
  top: 100%;
  left: 0;
  width: 480px;
  height: 300px;
  overflow: hidden;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.5s ease;
  z-index: 10;
  border-radius: 8px;
  pointer-events: none;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.322) 30%, rgba(0, 0, 0, 0.8) 100%);
  color: white;
}

.hover-container:hover .hover-popup {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

/* Image inside popup */
.popup-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  position: absolute;
  top: 0;
  left: 0;
}

/* Fading effect at the bottom */
.popup-popup::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 50%;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.524) 0%, rgba(0,0,0,0.8) 100%);
  z-index: 1;
}

/* Text on top of image */
.popup-text {
  position: relative;
  z-index: 2;
  color: white;
  padding: 1rem;
  background-color: rgba(0, 0, 0, 0.6); /* dark translucent background */
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-top-left-radius: 8px;
  border-top-right-radius: 8px;
}







/* Scroll Bar Horizontal*/

/* Webkit (Chrome, Safari, Edge) */
.movies-row::-webkit-scrollbar {
  height: 10px; /* Thin height */
}

.movies-row::-webkit-scrollbar-track {
  background: transparent;
  border-radius: 40px;
}

.movies-row::-webkit-scrollbar-thumb {
  background-color: rgba(0, 0, 0, 0.3); /* Subtle color */
  border-radius: 40px; /* Rounded edges */
}

.movies-row::-webkit-scrollbar-thumb:hover {
  background-color: rgba(0, 0, 0, 0.5); /* Darker on hover */
}

/* Firefox */
.movies-row {
  scrollbar-width: auto;
  scrollbar-color: rgba(255, 255, 255, 0.3) transparent;
}

/*vertical*/

/* Webkit (Chrome, Safari, Edge) */
body::-webkit-scrollbar {
  width: thin; /* Thin width */
}

body::-webkit-scrollbar-track {
  background: transparent;
  border-radius: 1px;
}

body::-webkit-scrollbar-thumb {
  background-color: rgba(0, 0, 0, 0.188); /* Subtle color */
  border-radius: 1px; /* Rounded edges */
}

body::-webkit-scrollbar-thumb:hover {
  background-color: rgba(0, 0, 0, 0.603); /* Darker on hover */
}

/* Firefox */
body {
  scrollbar-width: thin;
  scrollbar-color: rgba(0, 0, 0, 0.606) transparent;
}






/* video background slideshow */

.banner-section {
  position: relative;
  overflow: hidden;
}

.slideshow-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0; /* Put it behind your content */
}

.slideshow-background .slide {
  position: absolute;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 1s ease-in-out;
}

.slideshow-background .slide.active {
  opacity: 1;
}

/* Keep your banner-content on top of the background */
.banner-content {
  position: relative;
  z-index: 1;
}










/* Footer code */

.site-footer {
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0) 0%, #111 20%);
  color: #ccc;
  padding: 20px 0;
  text-align: center;
}

.footer-content {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.footer-logo {
  width: 250px; /* adjust as needed */
  height: auto;
  margin-bottom: 10px;
}

.footer-closing-text {
  font-size: 0.9rem;
  margin: 5px 0;
}

.footer-copy {
  font-size: 0.75rem;
  font-weight: bold;
  margin: 5px 0;
}

