*{
  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;
}


/*===========================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);
}

/* ===================== 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);
  }  
}


/*============================= 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;
}





/*================================== Hero Section ===============================*/




/* ===== Hero Layout ===== */
.first-block {
  width: 100%;
  height: 99vh;
  background-color: var(--main-bg);
  color: var(--text-color);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  position: relative;
  padding-top: 4rem;
}

.section-title {
  position: absolute;
  top: 1rem;
  left: 2rem;
  margin: 1rem;
  display:none ;
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--main-color);
}

.left, .right {
  width: 50%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.left {
  flex-direction: column;
  padding: 2rem;
  opacity: 0;
  padding-left: 50px;
  align-items: left;
  transition: opacity 0.5s ease-in-out;
}

/* ===== Image Styling ===== */
.right .image-wrapper {
  position: relative;
  width: 42.5%; /* slightly smaller for balance */
  height: 57%; /* fill most of height */
  overflow: hidden;
}

.right img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  clip-path: inset(0 0 100% 0);
  transition: clip-path 3s ease-in-out;
}

.scan-line {
  position: absolute;
  top: 0;
  left: 0;
  height: 5px;
  width: 100%;
  background-color: var(--main-color);
  animation: scanDown 6s forwards;
}
.right{
  /*height: 99%;*/
}
@keyframes scanDown {
  0% { top: 0;}
  50% { top: 50;}
  99%{top:99%; opacity: 1;}
  100% { top: 100%; opacity: 0; }
}

/* ===== Typing Effect Fix ===== */
/*#typed-name, #typed-text {
  border-right: 2px solid var(--main-color);
  overflow: hidden;
  display: inline-block;
  white-space: normal; /* allows wrapping */
}*/

/*#typed-name {
  font-size: 4rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

#typed-text {
  font-size: 1rem;
  font-weight: 400;
  margin-top: 0.5rem;
  line-height: 1.5;
  max-width: 90%;
}*/

/* ===== Buttons ===== */
.buttons {
  display: flex;
  gap: 1.5rem;
  margin-top: 2rem;
  opacity: 0;
  transition: opacity 0.5s ease;
}

.btn-download {
  background-color: var(--main-color);
  color: var(--bg-color);
  padding: 1rem 1.6rem;
  border-radius: 25px;
  border: 3px solid transparent;
  font-weight: 700;
  text-decoration: none;
  font-size: 1.5rem;
  margin: 0.5rem;
  margin-top: 1rem;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: background-color 0.3s, color 0.3s;
}

.btn-download:hover {
  background-color: var(--main-bg);
  color: var(--main-color);
  border: 3px solid var(--main-color);
}

.icon-btn {
  width: 42px;
  height: 42px;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  margin: 0.3rem;
  font-size: 2rem;
  border-radius: 50%;
  font-weight: 800;
  border: 2.5px solid var(--main-color);
  color: var(--main-color);
  background-color: var(--main-bg);
  transition: all 0.3s ease;
  text-decoration: none;
}

.icon-btn:hover {
  background-color: var(--main-color);
  color: var(--bg-color);
}


/* Remove border from #typed-text itself */
#typed-name {
  font-size: 4rem;
  margin-bottom: 1rem;
}
#typed-text {
  font-size: 1.8rem;
  font-weight: 500;
  margin-top: 0.5rem;
  line-height: 1.5;
  text-align: left;
  align-items: left;
  justify-content: left; 
  margin-bottom: 1rem;
  max-width: 90%;
  white-space: normal;
}

/* Apply cursor to span inside p */
#typed-text .cursor-span {
  border-right: 2px solid var(--main-color);
  display: inline;
}


@media (max-width: 768px) {
  .first-block {
    flex-direction: column-reverse; /* 👈 Reverses order */
    height: auto;
    padding-top: 5rem;
  }

  .section-title {
    position: static;
    margin-bottom: 1rem;
    text-align: center;
    display: none;
  }

  .left, .right {
    width: 100%;
    height: auto;
    text-align: center;
  }

  .right .image-wrapper {
    width: 50%;
    margin-top: 2rem;
    height: 100%;
  }

  .right img {
    height: auto;
    max-height: 350px;
  }

  #typed-name {
    font-size: 2.5rem;
  }

  #typed-text {
    text-align: left;
    justify-content: left;
    font-size: 1.5rem;
    max-width: 95%;
  }


  .btn-download {
  background-color: var(--main-color);
  color: var(--bg-color);
  padding: 0.5rem 1rem;
  border-radius: 25px;
  border: 2px solid transparent;
  font-weight: 700;
  text-decoration: none;
  font-size: 1.5rem;
  margin: 0.5rem;
  margin-top: 1rem;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: background-color 0.3s, color 0.3s;
}

.btn-download:hover {
  background-color: var(--main-bg);
  color: var(--main-color);
  border: 2px solid var(--main-color);
}

.icon-btn {
  width: 37px;
  height: 37px;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  margin: 0.3rem;
  font-size: 1.5rem;
  border-radius: 50%;
  border: 2px solid var(--main-color);
  color: var(--main-color);
  background-color: var(--main-bg);
  transition: all 0.3s ease;
  text-decoration: none;
}

.icon-btn:hover {
  background-color: var(--main-color);
  color: var(--bg-color);
}
.left{
  padding-left: 20px;
}
}





/*=================== Buttons hide 10s fadein effect========================*/

 /* Fade-in animation */
    @keyframes fadeIn {
        from { opacity: 0; }
        to { opacity: 1; }
    }




/*======================== video section =====================*/

.about-section {
        display: flex;
        height: 80vh;
        width: 100%;
    }
    .video-side {
        flex: 1;
        overflow: hidden;
        position: relative;
    }
    .video-side video {
        position: absolute;
        top: 50%;
        left: 50%;
        width: 70%;
        height: 50%;
        transform: translate(-50%, -50%);
        object-fit: cover;
        filter: brightness(0.7);
    }
    .terminal-side {
        flex: 1;
        background: #000;
        padding: 20px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    .terminal {
        background: #000;
        border: 2px solid var(--main-color);
        width: 90%;
        height: 300px;
        font-size: 2rem;
        width: 500px;
        padding: 15px;
        font-weight: 500;
        box-shadow: 0 0 15px #00ff00;
    }
    .line {
        opacity: 0;
        animation: fadeIn 0.5s forwards;
    }
    @keyframes fadeIn {
        to { opacity: 1; }
    }
    .typing {
        display: inline-block;
        border-right: 10px solid #00ff00;
        white-space: nowrap;
        margin-left: 2px;
        overflow: hidden;
    }
.aboutheading{
  /*padding-top: 200px;*/
  align-items: center;
  padding-bottom: 0px;
  justify-content: center;
  text-align: center;
  font-size:4rem;
  font-weight: bold;
}


.line {
    opacity: 0;
    animation: fadeIn 0.5s forwards;
    padding-left: 25px; /* indent from left */
}

.gap-line {
    height: 0.4em; /* half of normal line height */
}

@keyframes fadeIn {
    to { opacity: 1; }
}

/* ===================== 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);
  }  
}
/* ===================== Responsive Changes for About Section ===================== */
@media (max-width: 768px) {

.scroll-indicator #scrollIndicator{
  display: none;
}


  /* Stack video and terminal vertically */
  .about-section {
    flex-direction: column;
    height: auto;
  }

  .video-side, .terminal-side {
    flex: none;
    width: 100%;
    height: auto;
  }

  /* Make video fit nicely */
  .video-side video {
    position: relative;
    top: auto;
    left: auto;
    transform: none;
    width: 100%;
    height: auto;
    max-height: 300px;
    object-fit: cover;
    filter: brightness(0.7);
  }

  /* Terminal full width with spacing */
  .terminal-side {
    padding: 15px;
    height: 300px;
    justify-content: center;
  }

  .terminal {
    height: 300px;
    width: 90%;
    width: 500px;
    height: auto;
    font-weight: 600;
    font-size: 1.5rem;
  }
  .aboutheading{
  padding-top: 100px;
  align-items: center;
  padding-bottom: 50px;
  justify-content: center;
  text-align: center;
  font-size: 4rem;
  font-weight: bold;
}
}




  #eduheading{
    color: var(--main-color);
    font-size: 4rem;
    text-align: center;
    margin-bottom: -50px;
  }





  /* Section */
  .education-section {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 60vh;
    padding: 20px;
  }

  .edu-container {
    display: flex;
    gap: 30px;
    max-width: 1000px;
    width: 100%;
    align-items: center;
  }

  /* Icon/Image */
  .edu-image {
    flex: 0 0 180px;
    text-align: center;
  }

  .edu-image img {
    width: 200px;
    height: 200px;
    object-fit: contain;
    filter: drop-shadow(0 0 10px var(--main-green));
    animation: float 3s ease-in-out infinite;
  }

  @keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
  }

  /* Details */
  .edu-details {
    flex: 1;
    padding: 10px;
    border-left: 2px solid var(--main-color);
    animation: fadeInUp 1s ease forwards;
    opacity: 0;
    height: 25vh;
    padding-top: 0;
    transform: translateY(20px);
  }

  @keyframes fadeInUp {
    to { opacity: 1; transform: translateY(0); }
  }

  .edu-details h2 {
    font-size: 3rem;
    padding-top: 0;
    margin-top: 0;
    /*text-shadow: 0 0 5px var(--disabled-color);*/
  }

  .edu-details h3 {
    font-size: 2rem;
    font-weight: 600;
    font-style: bold;
    /*margin: 4px 0;*/
    color: var(--main-color);
  }

  .edu-details p {
    font-size: 1.5rem;
    font-weight: 600;
    line-height: 1.4;
    margin-top: 10px;
    color: var(--main-color);
  }

  .status {
    margin-top: 12px;
    font-style: italic;
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--main-color);
  }

  /* Responsive: switch to stacked layout */
  @media (max-width: 768px) {
    .education-section{
      padding: 5px;
      /*border: 2px solid var(--main-color);*/
    }
      .edu-container {
      gap: 0px;
    }
    .edu-image {
      flex: 0 0 90px;
    }
    .edu-image img {
      width: 150px;
      padding-right: 0;
      margin-right: 0;
      height: 150px;
    }

    .edu-details h2 {
      font-size: 1.8rem;
    }
    .edu-details h3 {
      padding-top: 10px;
      font-size: 1.4rem;
    }
    .edu-details{
      height: 20vh;
    }
    .edu-details p {
      font-size: 0.75rem;
      display: none;
    }
      #eduheading{
    color: var(--main-color);
    font-size: 4rem;
    text-align: center;
    /*margin-bottom: -50px;*/
  }
.status {
    margin-top: 12px;
    font-style: italic;
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--main-color);
  }
  }



/*=================================== Scroll ================================*/
   .scroll-indicator {
    position: absolute;
    bottom: 20px; /* Adjust as needed */
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    z-index: 10;
  }

  /* Mouse shape */
  .scroll-indicator .mouse {
    width: 30px;
    height: 50px;
    border: 2px solid var(--main-color);
    border-radius: 15px;
    position: relative;
  }

  /* Wheel inside mouse */
  .scroll-indicator .wheel {
    width: 4px;
    height: 8px;
    background: var(--main-color);
    border-radius: 2px;
    position: absolute;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    animation: wheelMove 1.2s infinite ease-in-out;
  }

  @keyframes wheelMove {
    0% { top: 10px; opacity: 1; }
    50% { top: 20px; opacity: 0.5; }
    100% { top: 10px; opacity: 1; }
  }

  /* Text under mouse */
  .scroll-indicator .scroll-text {
    font-size: 2rem;
    color: var(--main-color);
    /*text-shadow: 0 0 5px var(--main-color);*/
    animation: textBlink 1.2s infinite;
  }

  @keyframes textBlink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.6; }
  }


  @media (max-width: 768px) {
  #scrollIndicator {
    display: none !important;
  }
}




/*============================== 200px margin top for credentials ===========*/

/* Only for small screens */
@media (max-width: 786px) {
    .aboutheading {
        transition: margin-top 0.8s ease; /* smooth animation */
    }
}