*{
  margin: 0;
  padding: 0;
  font-family: Quicksand;
  box-sizing: border-box;
  text-decoration: none;
  border: none;
  outline: none;
}

:root{
  --bg-color:black;
  --second-bg-color:#1f242d;
  --main-color: #3CFF15 ;
  --white-color:#fff;
  --disabled-color:#fff3;
}

html {
  font-size: 62.5%;
}

body {
color: var(--main-color);
background: var(--bg-color);
}


header{
  position: fixed;
  top: 0;
  left: 0;
  width:100%;
  padding: 1.5rem 4%;
  background: var(--bg-color);
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 100;
}

.logo{
  font-size: 3.2rem;
  color: var(--main-color);
  font-style: bold;
  font-weight: 700;
}

nav a{
  font-size: 2rem;
  color: var(--main-color);
  font-weight: 700;
  margin-left: 1.5rem;
  transition: 0.3s;
  border: 3px solid transparent;
  border-radius: 30px;
  padding-top: 5px;
  padding-bottom: 5px;
  padding-left: 9px;
  padding-right: 9px;
}

nav a:hover{
  border: 3px solid var(--main-color);
  border-radius: 30px;
  padding-top: 4px;
  padding-bottom: 4px;
  padding-left: 9px;
  padding-right: 9px;
}

nav .home{
   border: 3px solid var(--main-color);
  border-radius: 30px;
  padding-top: 4px;
  padding-bottom: 4px;
  padding-left: 9px;
  padding-right: 9px;
}

#menu-icon {
  font-size: 4rem;
  display: none;
}


section {
  position: absolute;
  width: 100%;
  height: 100%;
  padding: 10rem 9%  2rem;
  background: var(--bg-color);
}

.homesection{
  display: flex;
  align-items: center;
  gap: 5rem;
  height: 98%;
}
.home-detail{
  width: 65%;
}
.home-detail h1{
font-size: clamp(3.5rem , 10vw, 5.5rem);
}

.home-detail h2{
  display: inline-block;
  font-size: 3.2rem;
  margin-top: -0.5rem;
}

.home-detail p{
  font-size: 2rem;
  /*margin: 1rem, 0, 5.5rem;*/
  margin-top: 1rem;
  font-weight: 500;
}


.home-detail .btn-sci{
  display: flex;
  align-items: center;
}


.btn{
  display: inline-block;
  /*padding: 1rem, 3rem;*/
  padding-top: 5px;
  padding-bottom: 5px;
  padding-left: 10px;
  padding-right: 10px;
  background: var(--main-color);
  border: 0.2rem solid var(--main-color);
  border-radius: 4rem;
  box-shadow: 0, 0, 1rem var(--main-color);
  font-size: 1.6rem;
  font-weight: 500;
  margin-top: 15px;
  color: var(--bg-color);
  font-weight: 500;
  transition: 0.5s;
}

.btn:hover{
  background: transparent;
  color: var(--main-color);
  box-shadow:  none;
}

.btn-sci a{
  font-weight: 600;
}

.home-detail .btn-sci .sci{
  margin-left: 2rem;
}

.home-detail .btn-sci .sci a{
  display: inline-flex;
  padding: 1rem;
  border: 0.2rem solid var(--main-color);
  border-radius: 50%;
  font-size: 1rem;
  color: var(--main-color);
  margin: 0, 1rem;
  transition: 0.5s;
}


.home-detail .btn-sci .sci a:hover{
  background: var(--main-color);
  color: var(--bg-color);
  box-shadow: 0, 0, 1rem var(--main-color);
}


.home-img -img-box{
  position: relative;
  width: 32vw;  
  height: 32vw;
  /*border-radius: 50%;*/
  padding: 0.5rem;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
}

.home-img .img-box .img-item{
    position: relative;
    width: 100%;
    height: 100%;
    background: var(--bg-color);
    /*border-radius: 50%;*/
    border: 0.01rem solid var(--bg-color);
    display: flex;
    justify-content: center;
    z-index: 1;
    overflow: hidden;
}
  
.home-img .img-box .img-item img{
  /*position: absolute;*/
  top: 3rem;
  display: block;
  width: 100%;
  object-fit: cover;
  mix-blend-mode: lighten;
}


.homesection .home-detail #greeting{
  font-size: 2rem;
  margin-top: -5rem;
  margin-bottom: 3rem;
}



/*========================= Image animation ===========================*/


.image-reveal-wrapper {
  position: relative;
  overflow: hidden;
  display: inline-block;
}

.image-reveal-wrapper img {
  display: block;
  width: 100%;
  height: auto;
}

.image-reveal-wrapper::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: black;
  transform: translateY(0%);
  transition: transform 5s ease-in-out;
  z-index: 2;
}

.reveal-image::before {
  transform: translateY(100%);
}




/*===========================Navbar Animation =========================*/

/* Initial hidden state */
.nav-hidden {
  opacity: 0;
  transform: translateY(-15px);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

/* Reveal animation */
.nav-reveal {
  opacity: 1;
  transform: translateY(0);
}






.home-img {
  position: fixed; /* Always fixed on screen */
  top: 75%;
  right: 5%; /* adjust as needed */
  transform: translateY(-50%);
  width: 32vw;
  height: 100%;
  z-index: 1;
  display: flex;
  justify-content: center;
  align-items: center;
}

.home-img .img-box {
  width: 100%;
  height: 100%;
  padding: 0rem;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
}

.home-img .img-box .img-item {
  width: 70%;
  height: 90%;
  background: var(--bg-color);
  border: 0.01rem solid var(--bg-color);
  display: flex;
  justify-content: center;
  z-index: 1;
  overflow: hidden;
}

.home-img .img-box .img-item img {
  top: 3rem;
  display: block;
  width: 100%;
  object-fit: cover;
  mix-blend-mode: lighten;
}


.home-img .img-box .img-item img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center; /* center it vertically from top */
  mix-blend-mode: lighten;
}

.btn-sci a{
  cursor: pointer;
}

/*=======================Who am i animation =============================*/
#whoami-btn {
  opacity: 0;
  cursor: pointer;
  transition: opacity 1s ease;
}
.fade-in-btn {
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 1s ease, transform 1s ease;
  pointer-events: none; /* Prevent clicks while hidden */
}

.fade-in-btn.visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}






















/* ===================== Mobile Responsive Styles ===================== */
@media (max-width: 768px) {

  /* Show menu icon */
  #menu-icon {
    display: block;
    color: var(--main-color);
    cursor: pointer;
    z-index: 101;
  }

  /* Hide original navbar on mobile */
  header nav {
    display: none;
  }

  /* Fullscreen menu overlay */
  .mobile-nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3); /* dark blur background */
    backdrop-filter: blur(10px);
    z-index: 100;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transition: right 0.4s ease;
  }

  .mobile-nav.active {
    right: 0;
  }

.mobile-nav .mobone{
  font-size: 2.4rem;
  background: var(--main-color);
    color: var(--bg-color);
    margin: 1.5rem 0;
    font-weight: 700;
    transition: 0.3s;
    padding-top: 5px;
  padding-bottom: 5px;
  padding-left: 10px;
  padding-right: 10px;
  border-radius: 20px;
}
  .mobile-nav a {
    font-size: 2.4rem;
    color: var(--main-color);
    margin: 1.5rem 0;
    font-weight: 700;
    transition: 0.3s;
    padding-top: 5px;
  padding-bottom: 5px;
  padding-left: 10px;
  padding-right: 10px;
  border-radius: 20px;
  }

  .mobile-nav a:hover, .mobone {
    background: var(--main-color);
  color: var(--bg-color);
  padding-top: 5px;
  padding-bottom: 5px;
  padding-left: 10px;
  padding-right: 10px;
  border-radius: 20px;
  box-shadow: 0, 0, 1rem var(--main-color);
  }

  /* Home section layout - vertical stack */
  .homesection {
    flex-direction: column;
    gap: 3rem;
    width: 100%;
    text-align: center;
  }

  .home-img {
    position: static;
    width: 90%;
    height: 60%;
    transform: none;
    margin-bottom: 5rem;
  }

  .home-img .img-box {
    width: 100%;
    padding: 0;
    height: auto;
  }

  .home-detail {
    width: 100%;
    margin-top: -20px;
    align-items: center;
  }

  .home-detail h1,
  .home-detail p {
    text-align: center;
  }

  .home-detail h1{
    margin-top: -20px;
    /*font-size: 3rem;*/
  }
.home-detail h2{
  font-size: 1.8rem;
  width: 100%;
}

.home-detail p{
  font-size: 1.7rem;
}
  #whoami-btn {
    display: block;
    cursor: pointer;
    margin: 2rem auto 0 auto;
  }

/* Reverse order of image and text on mobile */
@media (max-width: 768px) {
  .homesection {
    display: flex;
    flex-direction: column-reverse; /* This flips the order */
    gap: 3rem;
    text-align: center;
  }
  .homesection  {
    margin-top: -10px;
  padding-bottom: 5rem; /* Reduce bottom spacing */
  padding-top: 5rem;     /* Optionally reduce top as well */
}

}



}
/*====================== who am i as pointer for all desktop and mobile*/
.fade-in-btn {
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 1s ease, transform 1s ease;
  pointer-events: none; /* still here by default */
  cursor: default;
}

.fade-in-btn.visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
  cursor: pointer; /* cursor becomes pointer when visible */
}


/*=========== edited========*/
.fade-in-btn {
  opacity: 0;
  transform: translateY(30px) scale(0.95);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
  pointer-events: none;
  cursor: default;
}

.fade-in-btn.visible {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
  cursor: pointer;
}



/*============================= hiding scroll bar line ===================*/
/* Hide scrollbar for all elements */
::-webkit-scrollbar {
  width: 0px;
  height: 0px;
}

/* Optional: remove scrollbar track background */
::-webkit-scrollbar-track {
  background: transparent;
}

/* Optional: remove scrollbar thumb */
::-webkit-scrollbar-thumb {
  background: transparent;
}

/* Hide scrollbar for Firefox */
body {
  scrollbar-width: none; /* Firefox */
  -ms-overflow-style: none;  /* IE and Edge */
}

/* Optional: just in case, remove from html tag too */
html {
  scrollbar-width: none;
}













@media (max-width: 768px) {
  .homesection {
    display: flex;
    flex-direction: column;
    align-items: center;
    height: 95%;
    text-align: center;
    margin-top: 2rem;
    gap: 1rem; /* Reduces space between image & text */
  }

  .home-img {
    order: -1;
    margin-top: 8rem;
    padding-bottom: 0;
    margin-bottom: 0; /* Optional: further reduce spacing */
  }

  .home-detail {
    order: 1;
    padding-top: -30px;
    margin-top: 0; /* Reset any top margin that might be adding space */
  }
}



/*===================== Scaning line animation for image on desktop =============*/




.img-item {
  position: relative;
  overflow: hidden;
}

.img-item img {
  width: 100%;
  height: auto;
  display: block;
  clip-path: inset(100% 0 0 0);
  animation: revealImage 1s ease-in-out forwards;
}

/* Scanning line effect on top of image */
.img-item::after {
  content: "";
  position: absolute;
  top: 0%;
  left: 0;
  width: 100%;
  height: 3px;
  background-color: var(--main-color);
  z-index: 5;
  animation: scanLine 8.5s ease-in-out forwards;
}

/* Reveal animation */
@keyframes revealImage {
  0% {
    clip-path: inset(100% 0 0 0);
  }
  100% {
    clip-path: inset(0 0 0 0);
  }
}

/* Scanning line animation */
@keyframes scanLine {
  0% {
    top: 0%;
    opacity: 1;
  }

  47% {
    opacity: 1;
  }
  48% {
    /*top: 46%;*/
    opacity: 0;
  }
  100% {
    top: 100%;
    opacity: 0;
  }
}




/*=================Scaning line animation for image in mobile mode ==============*/


@media (max-width: 768px) {


.img-item {
  position: relative;
  overflow: hidden;
}

.img-item img {
  width: 100%;
  height: auto;
  display: block;
  clip-path: inset(100% 0 0 0);
  animation: revealImage 1s ease-in-out forwards;
}

/* Scanning line effect on top of image */
.img-item::after {
  content: "";
  position: absolute;
  top: 0%;
  left: 0;
  width: 100%;
  height: 3px;
  background-color: var(--main-color);
  z-index: 5;
  animation: scanLine 5.6s ease-in-out forwards;
}

/* Reveal animation */
@keyframes revealImage {
  0% {
    clip-path: inset(100% 0 0 0);
  }

  100% {
    clip-path: inset(0 0 0 0);
  }
}

/* Scanning line animation */
@keyframes scanLine {

  0% {
    top: 0%;
    opacity: 1;
  }

  /*60% {
    top: 60%;
    opacity: 1;
  }*/
  99% {
    top: 99%;
    /*top: 46%;*/
    opacity: 1;
  }
  100% {
    top: 100%;
    opacity: 0;
  }
}


}





/* ===================== Mobile Responsive Styles ===================== */
@media (max-width: 768px) {

  /* Keep header fixed in mobile too */
  header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: var(--bg-color);
    z-index: 1000;
  }

  /* Add top padding to body so content doesn't hide under fixed header */
  body {
    padding-top: 0px; /* matches header height */
  }

  /* Show menu icon */
  #menu-icon {
    display: block;
    color: var(--main-color);
    cursor: pointer;
    z-index: 1010;
  }

  /* Hide original navbar on mobile */
  header nav {
    display: none;
  }

  /* Fullscreen menu overlay */
  .mobile-nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(10px);
    z-index: 999;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transition: right 0.4s ease;
  }

  .mobile-nav.active {
    right: 0;
  }

  .mobile-nav .mobone{
    font-size: 2.4rem;
    background: var(--main-color);
    color: var(--bg-color);
    margin: 1.5rem 0;
    font-weight: 700;
    transition: 0.3s;
    padding: 5px 10px;
    border-radius: 20px;
  }

  .mobile-nav a {
    font-size: 2.4rem;
    color: var(--main-color);
    margin: 1.5rem 0;
    font-weight: 700;
    transition: 0.3s;
    padding: 5px 10px;
    border-radius: 20px;
  }

  .mobile-nav a:hover, .mobone {
    background: var(--main-color);
    color: var(--bg-color);
    padding: 5px 10px;
    border-radius: 20px;
    box-shadow: 0 0 1rem var(--main-color);
  }  
}