@charset "utf-8";
@import url('https://fonts.googleapis.com/css2?family=Questrial&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Monoton&display=swap');


:root {
 --font-family-body: "Questrial", sans-serif;
 --font-family-title: "Monoton", sans-serif;
 --global-color: #fafafa;
 --background: #1A1A1A;
 --background-white: #fafafa;
}



p{
 font-family: var(--font-family-body);
 font-size: 16px;
 line-height: 1.1;
 color: var(--global-color);
 margin: 0;
 padding: 0;
}


a {
 font-family: var(--font-family-title);
 font-size: 16px;
 color: var(--global-color);
 text-transform: uppercase;
 text-decoration: none;
 margin: 0;
 padding: 0;
}


h1{
 font-family: var(--font-family-title);
 font-size: 40px;
 line-height: 1.1;
 text-transform: uppercase;
 font-weight: normal;
 margin: 0;
 padding: 0;
}

h2{
 font-family: var(--font-family-title);
 font-size: 40px;
 line-height: 1.1;
 text-transform: uppercase;
 margin: 0;
 padding: 0;
 font-weight: normal;
 font-style: normal;

}

h3{
 font-family: var(--font-family-title);
 font-size: 18px;
 line-height: 1.1;
 text-transform: uppercase;
 font-weight: normal;
 margin: 0;
 padding: 0;
}

h4{
 font-family: var(--font-family-title);
 font-size: 30px;
 line-height: 1.1;
 text-transform: uppercase;
 font-weight: normal;
 margin: 0;
 padding: 0;
}

h5{
 font-family: var(--font-family-body);
 font-size: 16px;
 line-height: 1.1;
 text-transform: uppercase;
 font-weight: normal;
 margin: 0;
 padding: 0;
}

strong{
  font-weight: bold;
}

/* Underline styles */
a {
  position: relative;
}

/* Fade in */
a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 0.1em;
  background-color: var(--background);
  transition: opacity 800ms, transform 800ms;
  opacity: 1;
  transform: scale(0);
  transform-origin: left;
}

a:hover::after,
a:focus::after {
  opacity: 1;
  transform: translate3d(0, 0.2em, 0);
  transform: scale(1);
}

/* General layout */
html, body {
 margin: 0;
 padding: 0;
 height: 100vh;
 scroll-behavior: smooth;
 overflow-y: scroll;
 overflow-x: hidden;
 scroll-snap-type: none;
 background-color: var(--background-white);
}

body, a, button {
  cursor: none !important;
}

.custom-cursor {
  position: fixed;
  top: 0;
  left: 0;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: #64E5F8;
  mix-blend-mode: exclusion;
  transform: translate(-50%, -50%);
  transition: transform 0.01s ease-out;
  z-index: 9999;
  pointer-events: none !important;

}


section {
 scroll-snap-align: start;
}


::-webkit-scrollbar {
 width: 0px;
}

body {
 width: 100%;
 min-height: 100vh;
 display: flex;
 flex-direction: column;
 justify-content: space-between;
 box-sizing: border-box;
}

main{
  flex:1;
}

*,
*::before,
*::after {
 box-sizing: border-box;
}

.section-1{
 position: relative;
 height: 100vh;
 top:0;
 left: 0;
}

.slideshow {
 position: relative;
 width: 100%;
 height: 100vh;
 overflow: hidden;
 z-index: 0;
 margin:0;
padding:0;}

.slideshow .slide {
 position: absolute;
 top: 0;
 left: 0;
 width: 100%;
 height: 100%;
 opacity: 0;
 z-index: 1;
 background-repeat: no-repeat;
 background-size: cover;
 background-position: center center;
 transition: opacity 0.8s ease;
}

.slideshow .slide.active {
 opacity: 1;
 z-index: 2;
}

.slideshow .slide .caption {
 position: absolute;
 bottom: 1rem;
 left: 1rem;
 justify-items: start;
}

.slide-zone {
 position: absolute;
 top: 0;
 height: 100vh;
 z-index: 3;
 pointer-events: auto;
 cursor: auto !important;
}

.caption h2{
  font-family: var(--font-family-title);
  margin-bottom: 0.4rem;
}

.left-zone {
  left: 0;
  width: 35%;
  height: 100vh;
  cursor: url("images/Assets/left_white.svg") 0 8, auto !important;
}

.right-zone {
 right: 0;
 width: 35%;
 height: 100vh;
  cursor: url("images/Assets/right_white.svg") 50 8, auto !important;
}

/* Hero */
.hero {
  position: fixed;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  z-index: 10;
}

.hero h1 {
  font-family: var(--font-family-title);
  font-size: 30px;
}

/* Clients section */

.marquee {
  position: absolute;
  bottom: 0;
  width: 100%;
  overflow: hidden;
  height: fit-content;
  display: flex;
  align-items: center;
  background: transparent;
  z-index: 20;
  pointer-events: none;
  padding-bottom: 2rem;
}

.clients-section {
  width: 100%;
  overflow: hidden;
  display: flex;
  align-items: center;
  cursor: grab;
  user-select: none;
  bottom: 0;
  pointer-events: auto; /* allow children */
}

.clients {
  display: flex;
  width: 100%;
  gap: 1rem;
  width: max-content;    
  transform: translateX(0);
  animation: scroll-left 20s linear infinite;
  pointer-events: auto; /* allow children */
}

@keyframes scroll-left {
  0% {
    transform: translateX(0); /* start fully at left */
  }
  100% {
    transform: translateX(-50%); /* adjust based on content width */
  }
}


.clients:active {
  cursor: grabbing;
}

.clients:hover {
  animation-play-state: paused;
}

.client{
  display: flex;
  flex-direction: column;
  flex: 0 0 auto;  /* fixes width */
  width: auto;
  max-width: 20%;
  opacity: 0.5;
  white-space: normal;
  text-align: left;
  transition: opacity 0.3s ease-in-out;
}

.client:hover, .client:active{
  opacity: 1;
}
.client h3 {
  font-size: 30px;
  font-family: var(--font-family-title);
}

header, footer {
 z-index: 1;
}

/* Header */
header {
 width: 100%;
 position: fixed;
 top:0;
 left: 0;
 display: flex;
 flex-direction: row;
 justify-content: space-between;
 align-items: flex-start; 
 padding: 1rem;
 color: var(--background-white); 
}

header *, .header-works *, .header-aboutme {
 pointer-events: auto; 
}


.back-to-top::after, .click-me::after, .client::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 0.1em;
  background-color: transparent;
  transition: opacity 800ms, transform 800ms;
  opacity: 0;
  transform: scale(0);
  transform-origin: left;
}

.back-to-top:hover::after, .click-me:hover::after, .client:hover::after,
.back-to-top:focus::after, .click-me:focus::after, .client:focus::after{
  opacity: 0;
  transform: translate3d(0, 0, 0);
  transform: scale(0);

}

.back-to-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  color: var(--background);
  mix-blend-mode: difference;
  z-index: 5;
  transform-origin: baseline;
  transition: font-size 0.3s ease;
  transform: rotate(-90deg);
}

.back-to-top h2{
  font-family: var(--font-family-title);
  color: var(--global-color);
}


.name-logo {
 width: 60%;
 display: flex;
 flex-direction: column;
 justify-content: flex-start;
 align-items: flex-start;
 padding: 0;
}

.name-logo p {
  opacity: 0.75;
  line-height: 1.2;
  text-transform: uppercase;
}

.name-logo h2{
  font-family: var(--font-family-title);
}


.header_pages{
 display: flex;
 flex-direction: row;
 gap: 1.5rem;
}

.myBtn, .myBtn-about-me, .myBtn-left-to-right, .myBtn-right-to-left, .myBtn-back-to-homepage {
 cursor: none;
 width: fit-content;
}

.myBtn::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 0.1em;
  background-color: var(--background-white);
  transition: opacity 500ms, transform 500ms;
  opacity: 1;
  transform: scale(0);
  transform-origin: center;
}

.myBtn-about-me::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 0.1em;
  background-color: var(--background);
  transition: opacity 500ms, transform 500ms;
  opacity: 1;
  transform: scale(0);
  transform-origin: center;
}

.myBtn-right-to-left::after, .myBtn-back-to-homepage::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 0.1em;
  background-color: var(--background);
  transition: opacity 500ms, transform 500ms;
  opacity: 1;
  transform: scale(0);
  transform-origin: right;
}

.myBtn-left-to-right::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 0.1em;
  background-color: var(--background);
  transition: opacity 500ms, transform 500ms;
  opacity: 1;
  transform: scale(0);
  transform-origin: left;
}

.myBtn:hover::after, .myBtn:focus::after, .myBtn-about-me:hover::after, .myBtn-about-me:focus::after,
.myBtn-right-to-left:hover::after, .myBtn-right-to-left:focus::after, 
.myBtn-left-to-right:hover::after, .myBtn-left-to-right:focus::after, 
.myBtn-back-to-homepage:hover::after, .myBtn-back-to-homepage:focus::after
 {
  opacity: 1;
  transform: translate3d(0, 0.2em, 0);
  transform: scale(1);
}
/* Footer */

.footer {
 width: auto;
 position: relative;
 display: flex;
 flex-direction: row;
 justify-content: flex-start;
 align-items: flex-end;
 padding: 1rem;
 color: var(--background); 
 scroll-snap-align: start;
}

.footer-right{
 display: flex;
 flex-direction: column;
 justify-content: space-between;
 align-items: start;
}

.footer-right p, .footer-right a {
 display: inline-block;
 color: var(--background);
}


.footer-right p{
  padding-top: 0.3rem;
 text-align: start;
}


.section-2{
 position: relative;
 height: auto;
 padding: 1rem;
 z-index: 3;
}

.grid{
 width: 100%;
 display: flex;
 flex-direction: column;
 justify-content: flex-start;
 background-color: var(--background-white);
 }

.grid-line{
 display: flex;
 flex-direction: row;
 justify-content: flex-start;

}

.grid-line-2{
 display: flex;
 flex-direction: row;
 justify-content: flex-start;
 width: 100%;

}

.grid-image {
 border: none;
 padding: 0;
 margin: 0;
 width: 100%;
 aspect-ratio: 4 / 5;
 overflow: hidden;
 position: relative;
 cursor: none;
}

.grid-image img, .grid-image video  {
 width: 100%;
 height: 100%;
 object-fit: cover;
 display: block;
 opacity: 1;
 transition: opacity 0.6s ease;
}

.grid-image:hover img, .grid-image:hover video {
 opacity: 0.15; 
}

.grid-image a {
 position: absolute;
 display: flex;
 flex-direction: column;
 justify-items: end;
 align-items: start;
 text-align: left;
 gap: 0.4rem;
 bottom: 0rem;
 padding: 1rem;
 color: var(--background);
 opacity: 0;
 pointer-events: none; 
 transition: opacity 0.3s ease;
 color: var(--background);
}

.grid-image a h4, .grid-image a h3, .grid-image a p{
 color: var(--background);
}

.grid-image:hover a {
 opacity: 1;
 pointer-events: auto;
}

header {
  pointer-events: auto; 
}

header * {
  pointer-events: auto;
}

/* WORKS INDIVIDUAL PAGES*/

.header-works {
  position: fixed;
  top:0;
  width: 100%;
  height: auto;
  display: flex;
  justify-content: space-between;
  padding: 1rem;
  isolation: isolate; /* keeps blending local to header */
  z-index: 10;
  background: var(--background-white);
}

.header-works * {
 color: var(--background);
}


.name-logo-works {
 width: 60%;
 display: flex;
 flex-direction: column;
 justify-content: flex-start;
 align-items: flex-start;
 padding: 0;
 color: var(--background);             /* high contrast for difference */
 isolation: isolate;
 z-index: 2;
}

.name-logo-works p {
  opacity: 0.75;
  line-height: 1.2;
  text-transform: uppercase;
}


.name-logo-works *{
  color: var(--background);
  mix-blend-mode: inherit;
}

.work-section {
  position: relative;
  margin-top: 20vh;
  padding: 1rem;
  padding-bottom: 2rem;
  width: 100%;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  overflow: -moz-hidden-unscrollable;
}

.work-section a{
  text-transform: none;
}

.project-left {
  width: calc(((100% - (1rem * 11)) / 12 * 4) + (1rem * 3) - 1rem);
  position: fixed;
  bottom: 1rem;
  display: flex;
  flex-direction: column;
  pointer-events: none; 

}

.project-left *{
  pointer-events: auto;
}

.project-title {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.project-title *{
  color: var(--background);
}


.project-title p {
 opacity: 0.25;
}

.div-number-project{
  display: flex;
  flex-direction: row;
}

.number-project {
  width: calc((100% - (0.5rem * 2)) / 3);
  font-size: 50px;
  opacity: 0.25;
}


.number-project * {
  color: var(--background);
}

.previous-next{
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  margin-top: auto;
}

.previous-next a{
  color: var(--background);
  opacity: 0.25;

}


.project-info {
  position: relative;
  width: calc(((100% - (1rem * 11)) / 12 * 8) + (1rem * 7));
  left: calc(((100% - (1rem * 11)) / 12 * 4) + (1rem * 4));
  gap: 2rem;
  display: flex;
  flex-direction: column;
}

.project-title p, .project-info *, .div-project-info-details *{
  color: var(--background);
  font-size: var(--font-family-body);
  line-height: 1.3;
}

.project-info h1 {
  opacity: 0.25;
}

.div-details{
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.div-project-info-details {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  gap: 0.5rem;
}

.project-info-details{
  width: calc(((100% - (1rem * 1)) / 2) * 1);
}

.project-info-details a{
  font-family: var(--font-family-body);
}

.project-info-text{
  width: calc(((100% - (1rem * 1)) / 2) * 2);
}

.project-image-video-general{
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.project-image-video-1 *{
  width: 100%;
  height: auto;
  object-fit: cover;
}


.project-image-video-2 {
  width: 100%;
  display: flex;
  flex-direction: row;
  justify-content: space-between;
}
.project-image-video-2 *{
  width: calc(((100% - (0.5rem)) / 2) * 1);
  height: auto;
  object-fit: cover;
}

.project-image-video-1 video, .project-image-video-2 video{
    cursor: pointer;
}


.video-wrapper {
  width: 100%;
  height: 100%; /* fill parent */
  position: relative;
  display: block;
}

.video-wrapper-2 {
  width: calc(((100% - (0.5rem)) / 2) * 1);
  height: 100%; /* fill parent */
  position: relative;
  display: block;
}

.video-wrapper video, .video-wrapper-2 video {
  width: 100%;
  height: 100%;
  object-fit: cover; /* fills while preserving aspect ratio */
}

/* Play button overlay */
.play-pause-btn {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: transparent;
  border: none;
  cursor: pointer;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: opacity 0.3s ease;
  opacity: 0.8; /* visible initially */
}

/* Icon inside the button */
.play-pause-btn::before {
  content: "▶"; /* always play */
  font-size: 100px;
  color: white;
  pointer-events: none;
}

/* Show button before playing, hide after play */
.video-wrapper.playing .play-pause-btn,
.video-wrapper-2.playing .play-pause-btn {
  display: none;
}


.project-copyright{
  text-align: right;
  color: var(--background);
}

/* ABOUT ME PAGE*/

.header-aboutme {
  position: relative;
  top: 0;
  width: 100%;
  height: auto;
  display: flex;
  justify-content: space-between;
  padding: 1rem;
  padding-bottom:0;
  isolation: isolate; /* keeps blending local to header */
  z-index: 10;
  background: transparent;
}

.header-aboutme * {
 color: var(--background);
}

.aboutme_details{
  height: fit-content;
  min-height: 65vh;
  position: relative;
  display: flex;
  flex-direction: row;  
  gap: 10%;
  padding-top: 1rem;
  padding-left: 5%;
  padding-right: 5%;

}

.aboutme_description_text{
  width: 50%;
  display: flex;
  flex-direction: column;
  justify-content: center;
}


.aboutme_description_text *{
  color: var(--background);
}


.center-wrapper {
  position: relative; 
  top: auto;
  left: auto;
  transform: none;
  display: flex; 
  justify-content: center;
  align-items: center;
  gap: 2rem;
}

.aboutme_details_text {
  width: 450px;
  height: auto;
}

.aboutme_details_text p{
  line-height: 1.3;
}


.aboutme_details h1, .aboutme_details p, .aboutme_details a{
  color: var(--background);
}

.aboutme_details h5, .aboutme_details h3{
  opacity: 0.25;
}

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

.click-me {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) rotate(45deg);
  width: 60px;
  height: 60px;
  color: #ffffff;
  border-radius: 50%;
  background-color: #64E5F8;
  opacity: 0.5;
  z-index: 100;
  display: flex;              /* enables centering */
  justify-content: center;
  align-items: center;
  transition: opacity 0.2s ease;

}

.container-wrapper {
  overflow: hidden;
  position: relative;
}

.split-image-container:active .click-me {
  opacity: 0;
  pointer-events: none;
}



.split-image-container {
  position: relative;
  width: 700px;
  height: 700px;
  transform: rotate(-45deg);
  overflow: hidden;
}

.quadrant {
  position: absolute;
  width: 50%;
  height: 50%;
  background-image: url("images/AboutMe/ProfilePic.png");
  background-size: 700px 700px;
  transition: transform 0.3s ease;
}

.quadrant-1 {
  top: 0;
  left: 0;
  background-position: top left;
}

.quadrant-2 {
  top: 0;
  right: 0;
  background-position: top right;
}

.quadrant-3 {
  bottom: 0;
  left: 0;
  background-position: bottom left;
}

.quadrant-4 {
  bottom: 0;
  right: 0;
  background-position: bottom right;
}

/*.split-image-container:hover .quadrant-1,*/ .split-image-container:active .quadrant-1 {
  transform: translate(-350px, -350px);
}

/*.split-image-container:hover .quadrant-2,*/ .split-image-container:active .quadrant-2 {
  transform: translate(350px, -350px);
}

/*.split-image-container:hover .quadrant-3,*/ .split-image-container:active .quadrant-3 {
  transform: translate(-350px, 350px);
}

/*.split-image-container:hover .quadrant-4,*/ .split-image-container:active .quadrant-4 {
  transform: translate(350px, 350px);
}

.footer-aboutme {
 position: relative;
 bottom: 0;
 left: 0;
 width: 100%;
 display: flex;
 justify-content: flex-start;
 align-items: flex-end;
 padding: 1rem;
 background-color: transparent; /* optional */
 z-index: 1;
}

.copyright {
 font-family: var(--font-family-body);
 mix-blend-mode: exclusion;
 text-align: start;
}


/* Responsive */
@media screen and (max-width: 768px) {
 p, a{
  font-size: 16px;
 }

 h1{
  font-size: 26px;
 }


 h2{
 font-size: 26px;
 }

 h3{
 font-size: 18px;
 }

 h4{
 font-size: 22px;
 }

 h5{
 font-size: 16px;
 }
   /* Restore the default cursor */
  body, a, button {
    cursor: auto !important;
  }

  /* Hide the custom cursor */
  .custom-cursor {
    display: none !important;
  }

 .grid-line{
  flex-direction: column;
 }
.header-works{
  position: relative;
}
.work-section{
 margin-top: 0;
}
 .project-left{
  width: 70%;
  height: auto;
  position: relative;
  background: transparent;
 }

.project-info{
  position: relative;
  width:100%;
  left:0;
  }

.div-details {
  gap:0.5rem;
  margin-top: 1rem;
}
.div-project-info-details{
  flex-direction: column;
  width: 100%;
  }

.project-info-details{
    width: 100%;
}

.aboutme_details{
  display: flex;
  flex-direction: column;
}

.aboutme_description_text{
  width: 100%;
  padding: 0 5%;
}
.aboutme_details_text {
  width: 500px;
  height: auto;
  padding:100px;
}


.split-image-container {
  position: relative;
  width: 600px;
  height: 600px;
  transform: rotate(-45deg);
}

.quadrant {
  position: absolute;
  width: 50%;
  height: 50%;
  background-image: url("images/AboutMe/ProfilePic.png");
  background-size: 600px 600px;
  transition: transform 0.3s ease;
}

}

@media screen and (max-width: 480px) {

  p, a{
  font-size: 14px;
 }

 h1{
  font-size: 22px;
 }


 h2{
 font-size: 22px;
 }

 h3{
 font-size: 16px;
 }

 h4{
 font-size: 20px;
 }

 h5{
 font-size: 14px;
 }


  .grid-line-2{
    flex-direction: column;
  }

  .project-left{
  width: 100%;
  height: auto;
  position: relative;
 }

  .project-image-video-2{
    flex-direction: column;
    gap: 0.5rem;
  }

  .project-image-video-2 img, .project-image-video-2 video{
    width:100%;
    }

  .aboutme_details_text {
    padding: 15%;
  height: auto;
  }

.aboutme_details_text h1, .aboutme_details_text p {
  font-size: 10px;
}


.split-image-container {
  position: relative;
  width: 450px;
  height: 450px;
  transform: rotate(-45deg);
}

.quadrant {
  position: absolute;
  width: 50%;
  height: 50%;
  background-image: url("images/AboutMe/ProfilePic.png");
  background-size: 450px 450px;
  transition: transform 0.3s ease;
}
}

/* Hide Safari and Chrome fullscreen controls completely */
video::-webkit-media-controls-fullscreen-button {
  display: none !important;
}
video::-webkit-media-controls-picture-in-picture-button {
  display: none !important;
}
video::-webkit-media-controls-overlay-play-button {
  display: none !important;
}
video::-webkit-media-controls-enclosure {
  overflow: hidden !important;
}
