*{
  cursor: none;
}

html {
  scroll-behavior: smooth; /* Enable smooth scrolling */
}

body {
  margin: 0;
  padding: 0;
  font-family: Arial, Helvetica, sans-serif;
  color: lightgray;
}

.cursor-dot {
  width: 5px;
  height: 5px;
  background-color: #FFBB00;
  z-index: 999;
}

.cursor-outline {
  width: 30px;
  height: 30px;
  border: 2px solid #ffbb0065;
  z-index: 999;
}

.cursor-dot,
.cursor-outline {
  position: fixed;
  top: -30px;
  left: -30px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  z-index: 1;
  pointer-events: none;
  z-index: 999;
}

.container {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 100px;
  background-color: #83681d0a;
}

.back-vid,
.back-fallback {
    position: fixed;
    right: 0;
    bottom: 0;
    z-index: -1;
    object-fit: cover;
    mix-blend-mode: lighten;
}

/* Hide the image by default */
.back-fallback {
    display: none;
}

header{
  display: flex;
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  align-items: center;
  justify-content: space-between;
  height: 70px;
  background-color: #ffbb0011;
  backdrop-filter: blur(10px);
  padding: 0 30px;
  box-shadow: 0 0 15px #ffbb0042;
  z-index: 998;
}

.left{
  display: flex;
  align-items: center;
  margin-left: 3%;
}

.left h1{
  width: 40px;
  margin: 0 15px;
}

header ul{
  display: flex;
  justify-content: space-between;
  padding: 15px 15px;
  margin-right: 3%;
  gap: 25px;
}


header ul li{
  list-style: none;
}

header ul a:hover{
  color: #FFBB00;
}

header ul a{
  text-decoration: none;
  color: white;
  font-weight: 700;
  margin: 0 10px;
}

.box-icons{
  display: flex;
  gap: 40px;
}

.box-icons a{
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  width: 30px;
  height: 30px;
  border: 2px solid #FFBB00;
  text-decoration: none;
  color: lightgray;
  border-radius: 50%;
  transition: 0.3s;
}

.box-icons a:hover{
  z-index: -1;
  background-color: #FFBB00;
  color: black;
  box-shadow: 0 0 15px #ffbb0042;
}

.blackhole-box {
  position: absolute;
  top: 0;
  width: 100%;
  justify-content: center;
  mix-blend-mode: lighten;
  text-align: center; /* Ensure centering */
}

.blackhole-box video,
.blackhole-box img {
  width: 100%;
  margin-top: -23.5%;
}

/* Hide fallback image by default */
.blackhole-fallback {
  display: none;
}

.hero{
  position: relative;
  display: flex;
  width: 100%;
  height: 100vh;
  align-items: center;
  justify-content: space-between;
}

.hero-info{
  position: absolute;
  left: 5%;
}

.hero-info .hero-info-title{
  color: #FFBB00;
  padding: 8px 5px;
  border: 1px solid #ffbb0042;
  width: 240px;
  background-color: #ffbb000a;
  box-shadow: 0 0 5px #ffbb0042;
  border-radius: 50px;
}

.hero-info h1{
  font-size: 60px;
  max-width: 600px;
  font-weight: 700;
  line-height: 70px;
  margin-top: 40px;
  margin-bottom: 30px;
}

.hero-info p{
  max-width: 550px;
  line-height: 25px;
  margin-bottom: 40px;
  font-size: 20px;
}

.hero-info button{
  color: white;
  padding: 15px 35px;
  border-radius: 10px;
  border: 2px solid #ffbb0042;
  background-color: #ffbb000a;
  box-shadow: 0 0 5px #ffbb0042;
  cursor: pointer;
  transition: 0.3s;
}

.hero-info button:hover{
  box-shadow: 0 0 15px #ffbb0042;
}


/*gradient-animation*/

.gradient{
  background: linear-gradient(to right, #FFBB00, #c59b12, #ffd900, #ffd900, #d8ac1d, #b4952f, #FFBB00);
  background-size: 200%;
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: animate-gradient 2.5s linear infinite;
}

@keyframes animate-gradient {
  to{
    background-position: 200%;
  }
}

.hero-vid-box{
  position: absolute;
  right: 2%;
}

.hero-vid-box video,
.hero-vid-box img{
  height: 600px;
  mix-blend-mode: lighten;
}

.hero-fallback {
  display: none;
}

.scroll-down{
  height: 50px;
  width: 30px;
  border: 2px solid lightgray;
  position: absolute;
  left: 49%;
  bottom: 8%;
  border-radius: 50px;
  cursor: pointer;
  box-shadow: 0 0 15px #ffbb0042;
}

.scroll-down::before,
.scroll-down::after {
  content: "";
  position: absolute;
  top: 20%;
  left: 49%;
  height: 10px;
  width: 10px;
  border: 2px solid lightgray;
  transform: translate(-50%, -100%) rotate(45deg);
  border-top: transparent;
  border-left: transparent;
  animation: scroll-down 2s ease-in-out infinite;
}

.scroll-down::before{
  top: 30%;
  animation-delay: 0.5s;
}

@keyframes scroll-down{
  0% {
    opacity: 0;
  }
  30%, 60%{
    opacity: 1;
  }
  100%{
    top: 90%;
    opacity: 0;
  }
}

.info-section{
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 80%;
  margin-top: 100px;
}

.section-title{
  font-size: 40px;
  font-weight: 700;
}

.info-cards{
  display: grid;
  grid-template-columns: auto auto auto;
  gap: 20px;
  width: 100%;
  height: 100%;
  margin-top: 30px;
}

.card{
  display: flex;
  align-items: flex-start;
  justify-content: center;
  position: relative;
  width: auto;
  height: 40vh;
  overflow: hidden;
  border: 1px solid gray;
  background-color: #ffbb000a;
  border-radius: 20px;
  transition: 0.3s;
}

.card img{
  width: 80%;
  height: 50%;
  object-fit: cover;
}

.card h1{
  position: absolute;
  margin: 0;
  bottom: 30%;
  left: 5%;
  font-size: 25px;
  z-index: 1;
  color: lightgray;
}

.card3 img{
  align-self: center;
}

.card p{
  position: absolute;
  bottom: 3%;
  left: 5%;
  z-index: 1;
  max-width: 300px;
  color: gray;
  font-size: 13px;
  line-height: 20px;
}

.card video{
  margin-top: 10%;
  width: 70%;
  height: 50%;
  object-fit: cover;
  mix-blend-mode: lighten;
}

.image-card-five{
  mix-blend-mode: screen;
}

.card button{
  color: white;
  padding: 10px 15px;
  border-radius: 10px;
  border: 2px solid #ffbb0042;
  background-color: #ffbb000a;
  box-shadow: 0 0 5px #ffbb0042;
  cursor: pointer;
  transition: 0.3s;
  position: absolute;
  bottom: 5%;
  left: 5%;
}

.card button:hover{
  box-shadow: 0 0 15px #ffbb007c;
  opacity: 0.7;
}

.card:hover{
  box-shadow: 0 0 15px rgba(211, 211, 211, 0.5);
}

.card:nth-child(3){
  grid-row: span 2;
  height: 83vh;
}

.card:nth-child(3) p{
  bottom: 12%;
}

.card:nth-child(3) h1{
  bottom: 21%;
}

.card:nth-child(4){
  grid-column: span 2;
}

.card:nth-child(4) p{
  max-width: 650px;
}

.card:nth-child(4) h1{
  bottom: 35%;
}

.card:nth-child(5){
  grid-column: span 3;
}

.card:nth-child(5) p{
  max-width: 650px;
}

.card:nth-child(5) h1{
  bottom: 35%;
}

/* My Projects */
.my-projects{
  display: flex;
  flex-direction: column;
  gap: 10%;
  align-items: center;
  position: relative;
  width: 80%;
  height: 100vh;
  margin-top: 200px;
  margin-bottom: 700px;
}

.project-card{
  display: flex;
  width: 100%;
  height: 40%;
  align-items: center;
  gap: 10%;
  justify-content: center;
}

.project-vidbox{
  display: flex;
  align-items: center;
  justify-content: center;
  width: 50%;
  position: relative;
  cursor: pointer;
  min-width: 400px;
  transition: 0.5s;
  mix-blend-mode: exclusion;
}

.project-vidbox video{
  object-fit: cover;
  width: 100%;
  box-shadow: 0 0 10px lightgray;
  border-radius: 20px;
  transition: 0.5s;
}

.project-vidbox video:hover{
  box-shadow: 0 0 20px;
}

.project-info {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  width: 50%;
  padding-left: 10%;
}

.project-info h1{
  width: 90%;
  font-size: 25px;
  font-weight: bold;
  text-wrap: none;
  margin-bottom: 10px;
  margin-top: 0;
  max-width: 450px;
}

.project-info p{
  width: 90%;
  max-width: 400px;
  min-width: 300px;
  margin-bottom: 50px;
  margin-top: 0;
}

.project-info button{
  color: white;
  padding: 10px 15px;
  border-radius: 10px;
  border: 2px solid #ffbb0042;
  background-color: #ffbb000a;
  box-shadow: 0 0 5px #ffbb0042;
  cursor: pointer;
  transition: 0.3s;
}

.project-info button:hover{
  box-shadow: 0 0 15px #ffbb0042;
  opacity: 0.7;
}

.hover-sign{
  position: absolute;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 30%;
  height: 100px;
}

.hover-sign::before,
.hover-sign::after{
  content: " 👆";
  text-align: center;
  position: absolute;
  font-size: 50px;
  top: 20%;
  border-radius: 50%;
  left: 40%;
  animation: hoverAnimation 3s ease-in-out infinite;
}

@keyframes hoverAnimation{
  0%{
    box-shadow: 0 0 5px lightgray;
    transform: translate(100%, 50%) rotate(30deg);
  }
  100%{
    box-shadow: 0 0 15px lightgray;
    transform: translateX(80%, 50%) rotate(0deg);
  }
}

.hover-sign.active{
  display: none;
}

/* Skills Section */

.skills-section{
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
}

.skills-box{
  width: 100%;
  height: 90vh;
  position: relative;
  display: flex;
  align-items: flex-start;
  justify-content: center;
}

.skills-image{
  width: 70%;
  mix-blend-mode: lighten;
  opacity: 0.7;
}

.designer{
  position: absolute;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  top: 25%;
  left: 5%;
  max-width: 300px;
}

.coder{
  position: absolute;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  top: 25%;
  right: 5%;
  max-width: 300px;
}

.skills-box h1{
  font-size: 50px;
  display: flex;
  align-items: center;
}

.skills-box p{
  line-height: 23px;
}

/* SLIDER */
.slider{
  position: absolute;
  bottom: 5%;
  right: 20%;
  width: 60%;
  height: var(--height);
  overflow: hidden;
  mask-image: linear-gradient(
    to right,
    transparent,
    #000 10% 90%,
    transparent
  );
  mix-blend-mode: difference;
  opacity: 0.8;
}

.slider .list{
  display: flex;
  width: 100%;
  min-width: calc(var(--width)* var(--quantity));
  position: relative;
}

.slider .list .item{
  width: var(--width);
  height: var(--height);
  position: absolute;
  left: 100%;
  animation: autoRun 10s linear infinite;
  transition: filter 0.5s;
  animation-delay: calc( (10s / var(--quantity)) * (var(--position) - 1) - 10s)!important;
}

.slider .list .item img{
  width: 100%;
}

@keyframes autoRun {
  from{
    left: 100%;
  }to{
    left: calc(var(--width) * -1);
  }
}

.slider:hover .item{
  animation-play-state: paused!important;
  filter: grayscale(1);
}

.slider .item:hover{
  filter: grayscale(0);
}

.item img {
  width: 100px;
  height: 100px;
  display: block;
}

/* Contact Section */
.contact-section{
  width: 80%;
  height: 100vh;
  display: flex;
  justify-content: center;
  gap: 10%;
  align-items: center;
  position: relative;
}

.contact-section h1{
  position: absolute;
  top: 10%;
  left: 40%;
}

.social-box{
  display: flex;
  flex-direction: column;
  gap: 25px;
}

.social-box a{
  color: lightgray;
  text-decoration: none;
  font-size: 20px;
  text-wrap: none;
}

.social-box i{
  color: #FFBB00;
  font-size: 30px;
  margin-right: 10px;
}

.social-icons a i{
  color: white;
  margin-top: 40px;
}

.contact-box p{
  max-width: 400px;
  margin-top: 30px;
  margin-bottom: 5px;
}

.contact-box input,
.contact-box textarea{
  padding: 7.5px 30px;
  background-color: lightgray;
  width: 80%;
  height: 25px;
  border: none;
  outline: none;
  border-top-right-radius: 10px;
  border-bottom-right-radius: 10px;
}

.contact-box button{
  margin-top: 30px;
  color: white;
  padding: 10px 15px;
  border-radius: 10px;
  border: 2px solid #ffbb0042;
  background-color: #ffbb000a;
  box-shadow: 0 0 5px #ffbb0042;
  cursor: pointer;
  transition: 0.3s;
}

.contact-box button:hover{
  box-shadow: 0 0 15px #ffbb0042;
  opacity: 0.7;
}

footer{
  display: flex;
  position: absolute;
  bottom: 0;
  right: 0;
  left: 0;
  align-items: center;
  justify-content: center;
  height: 70px;
  background-color: rgba(255, 255, 255, 0.128);
  backdrop-filter: blur(10px);
  box-shadow: 0 0 15px rgba(255, 255, 255, 0.356);
  z-index: 999;
}

footer h1{
  font-size: 30px;
}

.menu-icon{
  font-size: 35px;
  cursor: pointer;
  display: none;
}

/* SideBar */

.sidebar{
  position: fixed;
  right: 0;
  top: 0;
  bottom: 70%;
  width: 0%;
  background: #000000b8;
  backdrop-filter: blur(10px);
  z-index: 999;
  box-shadow: 0 0 20px rgba(211, 211, 211, 0.411);
  border-bottom-left-radius: 100%;
  opacity: 0;
}

.close-icon{
  font-size: 50px;
  color: lightgray;
  padding-left: 10px;
  cursor: pointer;
}

.sidebar ul{
  padding-left: 20px;
}

.sidebar ul li{
  list-style: none;
  margin-bottom: 30px;
}

.sidebar ul li a{
  text-decoration: none;
  color: lightgray;
  font-size: 30px;
  font-weight: 700;
  text-shadow: 0 0 15px rgba(128, 128, 128, 0.256);
}

.sidebar .social-icons{
  padding-left: 20px;
  margin-top: 60px;
  text-wrap: none;
}

.sidebar .social-icons a{
  font-size: 35px;
  padding: 5px 5px;
  cursor: pointer;
}

/* Open Sidebar Animation */
.sidebar.open-sidebar{
  animation: openSidebarAnimation 1.5s forwards;
}

@keyframes openSidebarAnimation {
  to{
    width: 80%;
    opacity: 1;
    bottom: 0;
    border-radius: 0;
  }
}

/* Open Sidebar Animation */
.sidebar.close-sidebar{
  animation: closeSidebarAnimation 1.5s forwards;
}

@keyframes closeSidebarAnimation{
  from{
    width: 80%;
    opacity: 1;
    bottom: 0;
    border-radius: 0;
  }
  to{
    width: 0;
    opacity: 0;
    bottom: 70%;
    border-bottom-left-radius: 50%;
  }
}

/* Blur Effect Animation */
.autoBlur {
  opacity: 0; /* Start hidden */
  transition: filter 1s ease-out, opacity 1s ease-out;
}

.autoBlur.visible {
  filter: blur(0);
  opacity: 1;
}

/* AUTO DISPLAY ANIMATION */
.autoDisplay {
  opacity: 0; /* Start hidden */
  filter: blur(10px); /* Start blurred */
  transform: translateY(-200px) scale(0); /* Start off-screen and scaled down */
  transition: filter 1s ease-out, opacity 1s ease-out, transform 1s ease-out; /* Transition effects */
}

.autoDisplay.visible {
  opacity: 1; /* Fully visible */
  filter: blur(0); /* Remove blur */
  transform: translateY(0) scale(1); /* Move to original position and scale to full size */
}

/* FADEIN-RIGHT */
.fadeInRight {
  opacity: 0; /* Start hidden */
  transform: translateX(-500px) scale(0.2); /* Start off-screen to the left and scaled down */
  filter: blur(20px); /* Start blurred */
  transition: filter 1s ease-out, opacity 1s ease-out, transform 1s ease-out; /* Transition effects */
}

.fadeInRight.visible {
  opacity: 1; /* Fully visible */
  transform: translateX(0) scale(1); /* Move to original position and scale to full size */
  filter: blur(0); /* Remove blur */
}

@media (max-aspect-ratio: 16/9) {
  .back-vid, 
  .back-fallback {
      width: auto;
      height: 100%;
  }
}

@media (min-aspect-ratio: 16/9) {
  .back-vid, 
  .back-fallback {
      width: 100%;
      height: auto;
  }
}

/* TABLET RESPONSIVE */
@media screen and (max-width: 1000px){
  header{
    position: fixed;
    height: 50px;
  }

  header ul{
    display: none;
  }

  header .box-icons{
    display: none;
  }

  header h1{
    font-size: 25px;
  }

  .menu-icon{
    display: inline;
  }

  .blackhole-box video{
    margin-top: -20%;
  }

  .hero-info h1{
    font-size: 40px;
    max-width: 400px;
    line-height: 40px;
  }

  .hero-info p{
    max-width: 300px;
  }

  .hero-vid-box{
    right: 5%;
  }

  .hero-vid-box video{
    height: 400px;
  }

  .section-title{
    font-size: 30px;
  }

  .info-cards{
    grid-template-columns: auto;
  }
  .card:nth-child(3){
    grid-column: span 2;
    height: 70vh;
  }

  .info-cards .card h1{
    font-size: 20px;
  }

  .card:nth-child(3) h1{
    bottom: 25%;
  }

  .card video{
    height: 65%;
    margin-top: 5%;
  }

  .my-projects{
    margin-bottom: 300px;
  }

  .project-vidbox video{
    width: 250px;
    margin-left: -100px;
  }

  .project-info{
    padding-left: 0;
    margin-left: -50px;
  }

  .project-info h1{
    font-size: 20px;
    max-width: 200px;
    text-wrap: normal;
  }

  .project-info p{
    font-size: 10px;
    text-wrap: normal;
    max-width: 200px;
    min-width: 0;
  }

  footer h1{
    font-size: 20px;
  }

  .card:nth-child(5){
    grid-column: span 2;
  }
}


/* MOBILE RESPONSIVE */
@media screen and (max-width:768px) {
  .back-vid {
    display: none;
  }
  
  .back-fallback {
      display: block;
  }

  header{
    position: fixed;
    height: 50px;
  }

  header ul{
    display: none;
  }

  header .box-icons{
    display: none;
  }

  header h1{
    font-size: 25px;
  }

  .blackhole-box video{
    margin-top: -16%;
  }

  .blackhole-video {
    display: none;
}

  .blackhole-fallback {
    display: block;
    padding-top: 7%;
    mix-blend-mode: screen;
}

  .hero{
    flex-direction: column;
  }

  .autoBlur{
    animation: none;
  }

  .hero-info{
    bottom: 5%;
  }
  .scroll-down{
    bottom: -10%;
  }

  .hero-info h1{
    line-height: 50px;
  }

  .hero-vid-box{
    height: 200px;
    top: 10%;
    right: 5%;
  }

  .hero-vid-box video{
    display: none;
  }

  .hero-vid-box img{
    display: block;
    height: 350px;
  }

  .card video{
    width: 100%;
  }

  .card h1{
    bottom: 45%;
  }

  .my-projects{
    margin-bottom: 600px;
  }

  .project-card{
    flex-direction: column;
    margin-left: 25%;
    gap: 30px;
  }

  .project-info{
    width: 85%;
  }

  .project-info h1{
    text-wrap: none;
  }

  .project-info p{
    max-width: 300px;
  }

  .designer{
    top: 15%;
    left: 18%;
  }

  .coder{
    top: 50%;
    left: 18%;
  }

  .skills-box h1{
    margin-bottom: 0;
    margin-top: 70px;
  }

  .slider{
    bottom: -80px;
  }

  .slider img{
    width: 60%;
  }

  .contact-section{
    flex-direction: column;
    margin-top: 140px;
    margin-bottom: 120px;
  }

  .contact-section h1{
    top: -100px;
    left: 25%;
  }

  footer h1{
    font-size: 17px;
  }

  .project-vidbox{
    min-width: 200px;
  }

  .menu-icon{
    display: inline;
  }

  .card:nth-child(5){
    grid-column: span 2;
  }
}