/* Fonts, general formatting for page */
.anek-devanagari {
  font-family: "Anek Devanagari", sans-serif;
  font-optical-sizing: auto;
  font-weight: 200;
  font-style: bold;
  font-variation-settings:
    "width" 100;
}
.epilogue {
  font-family: "Epilogue", sans-serif;
  font-optical-sizing: auto;
  font-weight: 600;
  font-style: normal;
}


html, body {
  margin: 0;
  padding: 0;
  background-color: #202020;
  color: #000000;
  /* font-family: "Raleway", serif; */
  font-family: "Epilogue", sans-serif;
  line-height: 1.6;
}


/* End of fonts, general formatting for page */



/* link styles */
a {
  color: #ffffff;
}

/* header styles */
header {
  /* font-family: "Raleway", sans-serif; */
  font-family: "Anek Devanagari", sans-serif;
  position: sticky;
  top: 0;
  left: 0;
  width: 100vw;
  z-index: 1000;
  background: rgba(15, 15, 15, 0.68);
  backdrop-filter: blur(8px);
  opacity: 1;
  padding: 0.5rem 2rem;
  padding-top: 0.8rem;
  box-sizing: border-box;
}

header ul {
  margin: 0;
  padding: 0;
  display: flex;
  list-style-type: none;
  justify-content: center;
}



header ul li a {
  color: rgb(0, 0, 0);
  font-size: 20px;
  text-decoration: none;
  color: #ffffff;
  padding: 5px 20px;
  margin: 0px 0px;
  position: relative;
  transition: all .5s;
  border-radius: 1.2rem;
}

a:hover {
  color: rgb(0, 157, 255);
  transform: translateY(-3px);
  border-radius: 1.2rem;
}

a::before {
  color: #949494;
  position: absolute;
  bottom: 12px; 
  left: 12px;
  height: 12px;
  width: 12px;
  border-width: 0 0 3px 3px;
  transform: all 0.3s;
}

a::after {
  content: "";
  position: absolute;
  top: 12px; 
  right: 12px;
  height: 12px;
  width: 12px;
  border-width: 3px 3px 0 0;
  transform: all 0.3s;
}
/* end of header styles */






/* hero and about */
.hero {
  display: flex;
  flex-direction: row; 
  align-items: center;  
  justify-content: center; 
  gap: 1rem; 
  min-height: 30vh;
  text-align: left;
  padding: 1rem;
  flex-wrap: wrap; 
  max-width: 800px;
  margin: auto;
  margin-top: 4rem;
  border-radius: 10px;
}


.hero .hero-image {
  width: 200px;
  height: auto;
  max-width: 100%;
  border-radius: 12px;
  margin-left: 2rem;
}

.hero h1 {
  font-size: 2.5em;
  margin: 0;
  font-family: "Anek Devanagari", sans-serif;
  color: #ffffff;
}

.additional-text {
  font-size: 1.2em;
  color: #ccc;
  margin-top: 0rem;
}

.icon-container {
  display: flex;
  gap: 1rem; 
  margin-top: 1rem;
  justify-content: left;
  align-items: center;
  flex-wrap: wrap;
  text-decoration: none;
}

.icon {
  filter: invert(100%);
  width: 32px;
  height: 32px;
  transition: transform 0.2s ease, opacity 0.2s ease;
  cursor: pointer;
}



.github-icon,
.linkedin-icon,
.email-icon {
  filter: brightness(0) invert(1);
  transition: filter 0.4s ease;
}

.github-icon:hover,
.linkedin-icon:hover,
.email-icon:hover {
  filter: invert(46%) sepia(95%) saturate(7478%)
          hue-rotate(191deg) brightness(102%) contrast(102%);
}




.resume-link {
  color: rgb(255, 255, 255);
  text-decoration: none;
  padding: 0.25rem 1rem;
  border: 2px solid rgb(255, 255, 255);
  border-radius: 10px;
  margin-bottom: 0.5rem;
  margin-left: 1rem;
  transition: transform 0.4s ease, opacity 0.4s ease;
}

.resume-link:hover {

  cursor: pointer;
  border: 2px solid rgb(0, 157, 255);
  border-radius: 10px;
  background-color: #3b3b3b;
}

.about {
  width: 100%;
  max-width: 500px;
  margin: 0 auto 0 auto;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;

}

.about p {
  margin-top: 0.4rem;
  margin-bottom: 0.4rem;
  font-size: 0.9rem;
  line-height: 1.6;
  color: #ffffff;
}
/* end of hero and about */









/* education and work */

/*education*/
.education {
  display: flex;
  flex-direction: column;   /* stack items vertically */
  align-items: center;      /* center everything horizontally */
  justify-content: center;
  gap: 0.5rem;
  min-height: 30vh;
  text-align: left;
  padding: 1rem;
  max-width: 700px;
  margin: 4rem auto 0 auto; /* centers the section */
  border-radius: 10px;
  margin-top: 0px;
}


.education-header {
  font-size: 2.5rem;
  color: #ccc;
  font-family: "Anek Devanagari", sans-serif;
}

.education-entry {
  display: flex;
  align-items: center;
  width: 100%;
  max-width: 600px;
  margin-bottom: 2rem;
}


.educationicon {
  width: 90px;  
  height: 90px; 
  border-radius: 10px;
  background-color: white;
  margin-right: 1.5rem;
  flex-shrink: 0;
}


.education-text {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.schoolname {
  font-weight: bold;
  font-size: 1.6rem;
  text-decoration: none;
  transition: color 0.25s ease, transform 0.25s ease;
}

.schoolname:hover {
  color: rgb(0, 157, 255);
  transform: translateY(-3px);
  border-radius: 1.2rem;
}


.education-info {
  font-size: 0.95rem;
  color: #ccc;
}
/*end of education*/


.work {  
  display: flex;
  flex-direction: column;   /* stack items vertically */
  align-items: center;      /* center everything horizontally */
  justify-content: center;
  gap: 0.5rem;
  min-height: 30vh;
  text-align: center;
  padding: 1rem;
  max-width: 700px;
  margin: 4rem auto 0 auto; /* centers the section */
  border-radius: 10px;
  margin-top: 0px;
  
}

.work-header {
  font-size: 2.5rem;
  color: #ccc;
  font-family: "Anek Devanagari", sans-serif;
  text-align: center;
}


.work-entry {
  display: flex;
  align-items: center;
  width: 100%;
  max-width: 600px;
  margin-bottom: 3.5rem; 
  margin-left: auto;
  margin-right: auto; 
}

.workicon {
  width: 90px;
  height: 90px;
  border-radius: 10px;
  background-color: white;
  margin-right: 1.5rem;
  flex-shrink: 0;
}

.work-text {
  display: flex;
  flex-direction: column;
  justify-content: center;

}




.h4 {
  font-weight: bold;
  font-size: 1.6rem;
  text-decoration: none;
  transition: color 0.25s ease, transform 0.25s ease;
}

.h4:hover {
  color: rgb(0, 157, 255);
  transform: translateY(-3px);
  border-radius: 1.2rem;
}



.work-text h5 {
  font-size: 0.95rem;
  color: #ccc;
  margin-top: 0px;
  margin-bottom: 0px;
}



.experience-list {
  display: flex;
  flex-wrap: wrap; 
  gap: 0.1rem;      
  padding: 0;
  list-style: none;
  margin-top: 0px;
  margin-bottom: 10px;
}

.experience-list li {
  background: #151515;    
  color: #f1f1f1;               
  padding: 0.1rem 0.4rem;     
  border-radius: 999px;     
  font-size: 0.8rem;
  white-space: nowrap;
  cursor: default;              
  transition: color 0.25s ease, transform 0.25s ease;
}

.experience-list li:hover {
  color: rgb(0, 157, 255);
}



/*end of education and work */


/* carousel styles */
.carousel {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  min-height: 50vh;
  padding: 3rem 1rem;
  max-width: 900px;
  margin: 4rem auto;
}

.carousel::before {
  content: "Featured Projects";
  font-size: 2.5rem;
  color: #ccc;
  font-family: "Anek Devanagari", sans-serif;
  display: block;
  width: 100%;
  text-align: center;
  margin-bottom: 1rem;
}

.carousel-container {
  position: relative;
  width: 100%;
  max-width: 1000px;
  height: 400px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 2rem;
  box-sizing: border-box;
  overflow: hidden;
}

.carousel-slide {
  position: absolute;
  width: 500px;
  height: 400px;
  border-radius: 15px;
  overflow: hidden;
  background-color: #151515;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
  transition: all 0.8s cubic-bezier(0.4, 0.0, 0.2, 1);
  filter: brightness(0.4);
  left: 50%;
  margin-left: -250px;
}

.carousel-slide.active {
  filter: brightness(1);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.5);
  z-index: 3;
}

.carousel-slide img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
}

.carousel-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(0, 0, 0, 0.7);
  color: #ffffff;
  padding: 1.5rem;
  font-size: 1rem;
  font-weight: 600;
  text-align: center;
  font-family: "Anek Devanagari", sans-serif;
  opacity: 0;
  transition: all 0.8s cubic-bezier(0.4, 0.0, 0.2, 1);
  backdrop-filter: blur(2px);
}

.carousel-slide.active .carousel-caption {
  opacity: 1;
  font-size: 1.3rem;
}

.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background-color: rgba(0, 157, 255, 0.7);
  color: #fff;
  border: none;
  font-size: 2rem;
  padding: 0.5rem 1rem;
  cursor: pointer;
  border-radius: 5px;
  transition: background-color 0.3s ease, transform 0.2s ease;
  z-index: 10;
  font-weight: bold;
}

.carousel-btn:hover {
  background-color: rgba(0, 157, 255, 1);
  transform: translateY(-50%) scale(1.1);
}

.carousel-btn.prev {
  left: 0.5rem;
}

.carousel-btn.next {
  right: 0.5rem;
}

.carousel-dots {
  display: flex;
  gap: 0.75rem;
  justify-content: center;
  margin-top: 1.5rem;
}

.dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.4);
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.3s ease;
}

.dot.active {
  background-color: rgb(0, 157, 255);
  transform: scale(1.3);
}

.dot:hover {
  background-color: rgba(255, 255, 255, 0.7);
}

@media (max-width: 768px) {
  .carousel {
    padding: 2rem 1rem;
    min-height: auto;
  }

  .carousel::before {
    font-size: 1.8rem;
    margin-bottom: 1rem;
  }

  .carousel-container {
    height: 280px;
    max-width: 100%;
    padding: 0 0.5rem;
  }

  .carousel-slide {
    width: 280px;
    height: 280px;
    margin-left: -140px;
  }

  .carousel-slide img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
  }

  .carousel-caption {
    font-size: 0.8rem;
    padding: 0.8rem;
  }

  .carousel-slide.active .carousel-caption {
    font-size: 1rem;
  }

  .carousel-btn {
    font-size: 1.5rem;
    padding: 0.3rem 0.7rem;
  }

  .carousel-btn.prev {
    left: 0.5rem;
  }

  .carousel-btn.next {
    right: 0.5rem;
  }
}
/* end of carousel styles */


/* footer */
footer {
  text-align: center;
  bottom: 0;
  left: 0;
  width: 100%;
  box-sizing: border-box;
  color: white;
}
footer p {
  font-size: 0.8em;
  color: rgb(121, 121, 121);
  opacity: 0.6;
  margin: 0;
  padding-bottom: 5rem;
}
footer .contactlinks {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-top: 1rem;
  padding-bottom: 2rem;
}

footer .contactlinks a {
  font-size: 20px;
  text-decoration: none;
  color: #949494;
  padding: 5px 10px;
  margin: 0px 0px;
  position: relative;
  transition: all .5s;
  border-radius: 1.2rem;
}

footer .contactlinks a:hover {
  color: rgb(0, 157, 255);
  transform: translateY(-3px);
  border-radius: 1.2rem;
}

footer .contactlinks a::before {
  color: #949494;
  position: absolute;
  bottom: 12px; 
  left: 12px;
  height: 12px;
  width: 12px;
  border-width: 0 0 3px 3px;
  transform: all 0.3s;
}

footer .contactlinks a::after {
  content: "";
  position: absolute;
  top: 12px; 
  right: 12px;
  height: 12px;
  width: 12px;
  border-width: 3px 3px 0 0;
  transform: all 0.3s;
}


footer .attributions a {
  font-size: 0.2em;
  color: #646464;
  opacity: 0.6;
  text-align: center;
}
/* end of footer */
footer ul {
  margin: 0;
  padding: 0;
  display: flex;
  list-style-type: none;
  justify-content: center;
}






















@media (max-width: 768px) {
  ul {
    margin: 0;
    padding: 0;
    display: flex;
    list-style-type: none;
    justify-content: center;
  }


  .hero {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  .hero .hero-image {
    width: 150px;
    margin-left: 0;
    order: -1;
  }
  .hero .icon-container {
    justify-content: center;
  }

  .about {
    max-width: 90%;
  }

  header ul {
    margin: 0;
    padding: 0;
    display: flex;
    list-style-type: none;
    justify-content: center;

  }


  .tab button {
    width: auto;
    padding-left: 2rem;
    padding-right: 2rem;
    padding-top: 0.25rem;
    padding-bottom: 0.25rem;
    margin: 0.25rem 1px;
    text-align: center;
  }
}