@import url('https://fonts.googleapis.com/css2?family=Barlow:wght@400;700&display=swap');


html{
  scroll-behavior: auto;
  overflow:auto;
}



p{
    color:rgb(red, green, blue);
}
@media (max-width: 768px) {
  #nav {
      flex-direction: column;
      padding: 10px;
  }
  .links {
      flex-direction: column;
      align-items: flex-start;
  }
}



body {
 /*   background-color:rgb(0, 0, 0); /* Text color */
    margin: 0; /* Remove default margin */
    font-family:'Barlow', sans-serif; /* Font style */
    font-weight: 900;
    font-style: normal;
    background: #000000;
 
}

#3d-animation {
     width: 100vw; 
     height: 100vh; 
    /* display: flex; /* Use flexbox for centering the model */
    /* align-items:first baseline; Align model to the top */
    /* justify-content: center; Center model horizontally */ 
    position: absolute;
  top: 0;
  left: 0;
  overflow: hidden;
  z-index:-1;
}

.mesh{
  width:50vw;
  height:50vh;
}

#progress-container {
    display: flex; /* Flexbox for progress container */
    align-items: center; /* Center align items */
    justify-content: center; /* Center content horizontally */
    height: 100%; /* Full height of the 3D animation area */
}

#progress {
    font-size: 1.2em; /* Size for the loading text */
    color: white; /* Text color for loading message */
}


a,
.btn {
    transition: all 300 ms ease;
}

#nav {
  font-size: large;
    position: fixed; /* Fix navigation to the top */
    top: 0; /* Position it at the top of the page */
    width: 95%; /* Full width */
    background-color: black; /* Background color */
    z-index: 1000; /* Ensure it stays on top of other elements */
    padding: 0px 1150px; /* Add padding for spacing */
    display:flex;
    justify-content:space-between;
}
.links{
    display: flex;
   gap:1rem;
    align-items:center;
    justify-content:flex-end;
    height:5vh;
    flex-wrap: wrap;
}
.links a{
    font-size: 0.8;
}

a{
    color:rgb(146, 175, 236);
    text-decoration: none;
}
a:hover{
    color:rgb(252, 252, 252);
    text-underline-offset: 1rem;;
}
#intro {
    text-align: left; /* Align text to the left */
    padding: 0%; /* Add some padding */
    
    background-color: #000000; /* Optional background color */
  }
  
  #intro h1 {
    font-size: 3em; /* Font size */
    margin: 0; /* Remove default margin */
    color:  rgb(146, 175, 236); /* Text color */
    position: relative; /* Position it independently */
    top: 150px; /* Adjust top positioning as needed */
    left: 10px; /* Adjust left positioning as needed */
  }
 



  @keyframes moveBackAndForth {
    0% {
        transform: translateX(0);
    }
    50% {
        transform: translateX(20px); /* Adjust distance as needed */
    }
    100% {
        transform: translateX(0);
    }
}

h1 {
    font-size: 3em; /* Adjust font size as needed */
    color: rgb(146, 175, 236); /* Text color */
    animation: moveBackAndForth 2s ease-in-out infinite; /* Infinite back-and-forth animation */
    font-family:'Barlow', sans-serif;
    font-weight: 900;
     font-style: normal;
}

h2 {
    font-size: 2em; /* Adjust font size as needed */
    color: rgb(146, 175, 236); /* Text color */
    overflow: hidden; /* Hide overflowing text */
    white-space: nowrap; /* Keep text on one line */
    border-right: 3px solid rgba(146, 175, 236, 0.75); /* Blinking cursor effect */
    width: 0; /* Start width for typing effect */
    animation: typing 3s steps(20, end), blink 0.6s step-end infinite; /* Typing and cursor blink */
    font-family:'Barlow', sans-serif;
    font-weight: 900;
     font-style: normal;
}

@keyframes typing {
    from {
        width: 0; /* Start with no text */
    }
    to {
        width: 100%; /* Reveal full text */
    }
}

@keyframes blink {
    50% {
        border-color: transparent; /* Cursor disappears */
    }
}

#intro h2 {
    font-size: 3em; /* Font size */
    margin: 0; /* Remove default margin */
    color: rgb(146, 175, 236); /* Text color */
    position: relative; /* Position it independently */
    top: 200px; /* Adjust top positioning as needed */
    left: 10px; /* Adjust left positioning as needed */
  }
  /* Now we will be using media query for h1 and h2 */
  @media (max-width: 780px) {
    #intro h1 {
      font-size: 1.8em; 
      top: 10px;
    }
  
    #intro h2 {
      font-size: 1.8em;
      top: 20px;
    }
  }
  
  @media (max-width: 480px) {
    #intro h1 {
      font-size: 1em;
      top: 80px;
    }
  
    #intro h2 {
      font-size: 1em;
      top: 100px;
    }
  }












  h2 {
    opacity: 0;
    animation: type 7s alternate infinite; /* Changed forwards to alternate */
    visibility: hidden;
  }
  
  @keyframes type {
    from {
      width: 0;
      opacity: 0;
      visibility: hidden;
    }
   
    50% {
      width: 30%;
      opacity: 1;
      visibility: visible;
    }
    
    to {
      width: 0;
      opacity: 0;
      visibility: hidden;
    }
  }


  
  #about{
    padding-top: 100px;
    justify-content: center;
    display:flex;
    align-items:center;
    flex-direction:column;
    text-align:center;
    height:15vh;
    opacity:0;
    transform:translateY(50px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
  }
  #about.visible{
    opacity:1;
    transform:translateY(0);
  }

 #about h3{
    color:rgb(214, 214, 241);
   font-size: 2rem;
   margin:0;
   font-family:'Barlow', sans-serif;
   font-weight: 900;
    font-style: normal;
   height:18vh;
    
  }





  #about h4{
    color:rgb(214, 214, 241);
   font-size: 2rem;
   margin-top: 0.5rem;
   font-family:'Barlow', sans-serif;
   font-weight: 900;
    font-style: normal;
   
  }

  #experience{
    padding-top: 70px;
    margin-top: 50vh;
    justify-content: center;
    display:flexbox;
    align-items:center;
    flex-direction:column;
    text-align:center;
    height:70vh;
  }

  #projects{
    margin-top: 30vh;
    justify-content: center;
    display:flexbox;
    align-items:center;
    flex-direction:column;
    text-align:center;
    height:0vh;
  
  }

  #contact{
    margin-top: -60px;
    padding-top: 60px;
    justify-content: center;
    display:flexbox;
    align-items:center;
    flex-direction:column;
    text-align:center;
    height:70vh;
  }


  #projects {
    background-color: rgba(1, 0, 17, 0.123);
    color: white;
    padding: 40px;
    text-align: center;
}

.project-item {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px; /* Space between image and description */
  margin-bottom: 30px; /* Space between project items */
  /* Scrilling effec*/
  opacity:0;
  transform:translateY(50px);
  transition:opacity 0.6s ease-out, transform 0.6s ease-out;
}

/* .project-item.visible{
  opacity:1;
  transform: translateY(0);
} */
.project-item.visible {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.project-image {
  width: 80%;
  height: auto;
  max-width: 300px;
  /* Set a smaller width for images width: 350px;*/
   /* Maintain aspect ratio height: 350px; */
   border-radius: 8px;
}



.project-description {
  text-align:center;
  max-width:600px;
  font-weight: 600;
}

.project-description h3 {
  font-size: 1.5rem;
  color: rgb(146, 175, 236);
  margin: 0 0 10px;
  font-weight: 600;
}

.project-description p {
  font-size: 1rem;
  color: #d6d6f1;
  margin: 0 0 15px;
}

.btns {
  display: flex;
  gap: 10px;
  justify-content: center;
}

.btn {
  padding: 8px 12px;
  background-color: rgb(146, 175, 236);
  color: white;
  text-decoration: none;
  border-radius: 4px;
  transition: background-color 0.3s;
}

.btn:hover {
  background-color: rgb(196, 236, 255);
  color: black;}

  
  .tech-links {
    margin-top: 15px;
  }

  .tech-btn {
    display: inline-block;
    padding: 10px 20px;
    margin: 5px;
    background-color: #2c3e50;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    font-size: 14px;
    transition: background-color 0.3s;
  }

  .tech-btn:hover {
    background-color: rgb(146, 175, 236);
  }


  /*Social */
  .social-links {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 80px;
  }

  .social-btn {
    display: inline-block;
    border-radius: 5px;
    overflow: hidden;
  }

  .social-icon {
    width: 50px; /* Adjust size of the icons */
    height: 50px;
    transition: transform 0.3s ease;
  }

  .social-btn:hover .social-icon {
    transform: scale(1.1); /* Slight zoom on hover */
  }


  #contact p {
    margin-top: 20px;    /* Add margin on top of the copyright text */
    font-size: 1.2rem;   /* Make the font slightly smaller */
    font-weight: 600;
  }



  #contact {
    padding: 50px 0;
    text-align: center;
}

/* Title Styling */
.title {
    font-size: 36px;
    font-weight: bold;
    margin-bottom: 30px;
}

/* Container for the form */
.contact-container {
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Styling for the contact-left form */
.contact-left {
    display: flex;
    flex-direction: column;
    gap: 20px; /* Space between inputs */
    width: 50%;
    max-width: 500px; /* Set a max-width for the form */
}

/* Style for each input and textarea */
.contact-input {
    width: 100%;
    padding: 15px;
    border: 2px solid #ddd;
    border-radius: 10px; /* Makes the input fields round */
    font-size: 16px;
    outline: none;
    transition: border-color 0.3s ease-in-out;
}
/*text arae*/
.contact-left textarea {
height:70px;
padding-top: 20px;
border-radius: 10px;

}

/* Focus state for input fields */
.contact-input:focus {
    border-color: #6c63ff; /* Highlight border on focus */
  
}
/* Style the submit icon to make it circular */
.submit-icon {
  width: 50px;  /* Set the width */
  height: 50px; /* Set the height to the same as the width for a circle */
  border-radius: 50%; /* Makes the image circular */
  object-fit: cover; /* Ensures the image fits well within the circle */
}
.submit-btn {
  border: none;
  padding: 0;
  background: transparent;
  cursor: pointer;
}

/* Style for the extra navigation link section */
.scroll-nav-button-container {
  position: absolute;  /* Use absolute positioning to ensure precise control */
  top: 90%;  /* Position the button roughly in the middle of the screen vertically */
  left: 50%;  /* Center horizontally */
  transform: translate(-50%, -50%);  /* Adjust to exactly center the button both vertically and horizontally */
  z-index: 100;  /* Ensure it's on top of other content */
}



.scroll-nav-button-container li {
  display: inline-block;
  margin: 3px;  /* Reduce margin between buttons */
}



.scroll-nav-button-container a:hover {
  background-color: #444;
}

/* Optional: Style the GIF */
.scroll-gif {
  width: 30px;  /* Even smaller size for the GIF */
  height: auto;
  cursor: pointer;
  transition: transform 0.3s ease;
}

/* Optional: Hover effect for the GIF */
.scroll-gif:hover {
  transform: scale(1.1);  /* Slightly increase the size on hover */
}

