@import url('https://fonts.googleapis.com/css2?family=Rowdies:wght@300;400&family=Rubik+Mono+One&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Bebas+Neue&family=Inter:opsz,wght@14..32,100..900&family=PT+Sans:ital,wght@0,400;0,700;1,400;1,700&family=Pacifico&family=Roboto+Condensed:ital,wght@1,100..900&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Permanent+Marker&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Pacifico&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Caveat:wght@400..700&family=Pacifico&display=swap');

:root {
  --text-color: #1a1c20;
  --link-color: #4a76ee;
  --background-color: #eeeff1;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Poppins', sans-serif;
  color: var(--text-color);
  background-color: var(--background-color);
  max-width: 1400px;
  margin: 0 auto;
  text-align: left;
}

a {
  color: var(--link-color);
  text-decoration: none;
}

.font_Sagar{
  font-family: "Pacifico", serif;
  font-weight: 400;
  font-style: normal;
}

/* NAVBAR */
nav {
  display: flex;
  justify-content: space-between;
  align-items: center;

  padding: 0 50px;
  height: 80px;
}

nav .left img {
  height: 62px;
  width: 148px;
  margin-top: 6px;
  margin-left: -12px;
}

nav .right a {
  color: var(--text-color);
  margin: 0 10px;
}

nav .right a:last-child {
  color: var(--background-color);
  background-color: var(--text-color);
  padding: 5px 15px;
  border-radius: 5px;
}

nav .right a span {
  margin-left: 5px;
}

/* SECTION 1: Hero */

.card {
  /* color used to softly clip top and bottom of the .words container */

  padding: 1rem 2rem;
  border-radius: 1.25rem;
}

.loader {
  color: rgb(124, 124, 124);
  font-family: "Poppins", sans-serif;
  font-weight: 500;
  font-size: clamp(20px, 3vw, 25px);
  -webkit-box-sizing: content-box;
  box-sizing: content-box;
  height: auto;
  min-height: 40px;
  padding: 10px;
  display: flex;
  align-items: center;
  gap: 8px;
  border-radius: 8px;
}

.loader p {
  margin: 0;
  white-space: nowrap;
  font-size: 40px;
  font-family: "Caveat", serif;
  font-weight: 200;
}

.words {
  overflow: hidden;
  position: relative;
  height: 1.5em;
}

.words::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    var(--bg-color) 10%,
    transparent 30%,
    transparent 70%,
    var(--bg-color) 90%
  );
  z-index: 20;
}

.word {
  display: block;
  height: 100%;
  padding-left: 6px;
  color: var(--link-color);
  animation: spin_4991 4s infinite;
}

@keyframes spin_4991 {
  10% {
    -webkit-transform: translateY(-102%);
    transform: translateY(-102%);
  }

  25% {
    -webkit-transform: translateY(-100%);
    transform: translateY(-100%);
  }

  35% {
    -webkit-transform: translateY(-202%);
    transform: translateY(-202%);
  }

  50% {
    -webkit-transform: translateY(-200%);
    transform: translateY(-200%);
  }

  60% {
    -webkit-transform: translateY(-302%);
    transform: translateY(-302%);
  }

  75% {
    -webkit-transform: translateY(-300%);
    transform: translateY(-300%);
  }

  85% {
    -webkit-transform: translateY(-402%);
    transform: translateY(-402%);
  }

  100% {
    -webkit-transform: translateY(-400%);
    transform: translateY(-400%);
  }
}

.hero-section {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 50px;
  margin: 50px 0;
  margin-bottom: 100px;
  gap: 40px;
}

.hero-section .text {
  flex: 5;
  text-align: left;
}

.hero-section .text h2 {
  font-size: 40px;
  font-family: "Caveat", serif;
  font-weight: 200;
}

.hero-section .text .links {
  margin-top: 25px;
}

.hero-section .text .links a {
  display: inline-block;
  padding: 5px 10px;
  border: 2px solid var(--link-color);
  border-radius: 5px;
  margin-right: 10px;
  margin-bottom: 10px;
  transition: .1s;
}

.hero-section .text .links a:hover {
  color: var(--text-color);
  border: 2px solid var(--text-color);
}

.hero-section .headshot {
  flex: 2;
  display: flex;
  justify-content: right;
}

.hero-section .headshot img {
  width: 300px;
  border-radius: 50%;
}

/* SECTION 2: Skills */
.skills-section {
  padding: 0 50px;
  margin-bottom: 100px;
}

.skills-section h2 {
  text-align: center;
  font-size: 35px;
}

.skills-section .text {
  text-align: left;
  margin: 20px 0;
}

.skills-section .cells {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
}

.skills-section .cells .cell {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  width: 200px;
  padding: 10px 20px;
  margin: 10px;
  border: 1.5px solid #d3d3d3;
  border-radius: 5px;
}

.skills-section .cells .cell img {
  width: 30px;
  height: 30px;
  object-fit: contain;
  border-radius: 2px;
}

.skills-section .cells .cell span {
  font-size: 18px;
}

/*Education Section*/
.education-section {
  padding: 0 20px;
  margin-bottom: 100px;
}

.education-section h2 {
  font-size: 35px;
  margin-bottom: 30px;
  text-align: center;
}

.education-section .education {
  display: flex;
  align-items: center;
  gap: 50px;
}

.education-section .education  {
  text-align: left;
  flex: 2;
}

.education-section .education  p {
  font-weight: 600;
}

.education-section .education  p:last-child {
  font-weight: normal;
}

.education-section .education .text {
  flex: 8;
  text-align: left;
  margin: 20px 0;
}

/* SECTION 3: projects */
.projects-section {
  padding: 0 50px;
  border: #4a76ee;
  border-radius: 20px;
  margin-bottom: 100px;
}

.projects-section h2 {
  font-size: 35px;
  margin-bottom: 30px;
}

.projects-section .group {
  display: flex;
  align-items: center;
  gap: 50px;
}

.projects-section .group .person-details {
  text-align: center;
  flex: 2;
}

.projects-section .group .person-details img {
  width: 200px;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  margin-bottom: 10px;
}

.projects-section .group .person-details p {
  font-weight: 600;
}

.projects-section .group .person-details p:last-child {
  font-weight: normal;
}

.projects-section .group .text {
  flex: 8;
  text-align: left;
}

.projects-section .group2 {
    display: flex;
    align-items: center;
    gap: 50px;
  }
  
  .projects-section .group2 .person-details2 {
    text-align: center;
    flex: 2;
  }
  
  .projects-section .group2 .person-details2 img {
    width: 200px;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    margin-bottom: 10px;
  }
  
  .projects-section .group2 .person-details2 p {
    font-weight: 600;
  }
  
  .projects-section .group2 .person-details2 p:last-child {
    font-weight: normal;
  }
  
  .projects-section .group2 .text2 {
    flex: 8;
    text-align: left;
  }

.projects-section .group3 {
    display: flex;
    align-items: center;
    gap: 50px;
  }
  
  .projects-section .group3 .person-details3 {
    text-align: center;
    flex: 2;
  }
  
  .projects-section .group3 .person-details3 img {
    width: 200px;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    margin-bottom: 10px;
  }
  
  .projects-section .group3 .person-details3 p {
    font-weight: 600;
  }
  
  .projects-section .group3 .person-details3 p:last-child {
    font-weight: normal;
  }
  
  .projects-section .group3 .text3 {
    flex: 8;
    text-align: left;
  }

.projects-section .group4 {
    display: flex;
    align-items: center;
    gap: 50px;
  }
  
  .projects-section .group4 .person-details4 {
    text-align: center;
    flex: 2;
  }
  
  .projects-section .group4 .person-details4 img {
    width: 200px;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    margin-bottom: 10px;
  }
  
  .projects-section .group4 .person-details4 p {
    font-weight: 600;
  }
  
  .projects-section .group4 .person-details4 p:last-child {
    font-weight: normal;
  }

  .projects-section .group4 .text4 {
    flex: 8;
    text-align: left;
  }

.projects-section .group5 {
    display: flex;
    align-items: center;
    gap: 50px;
  }
  
  .projects-section .group5 .person-details5 {
    text-align: center;
    flex: 2;
  }
  
  .projects-section .group5 .person-details5 img {
    width: 200px;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    margin-bottom: 10px;
  }
  
  .projects-section .group5 .person-details5 p {
    font-weight: 600;
  }
  
  .projects-section .group5 .person-details5 p:last-child {
    font-weight: normal;
  }

  .projects-section .group5 .text5 {
    flex: 8;
    text-align: left;
  }

/* SECTION 4: Contact */
.contact-section {
  padding: 0 50px;
  margin-bottom: 100px;
}

.contact-section h2 {
  font-size: 35px;
}

.contact-section .group {
  display: flex;
  gap: 50px;
}

.contact-section .group .text {
  flex: 3;
  margin-top: 20px;
  text-align: left;
}

.contact-section .group form {
  flex: 3;
  display: flex;
  flex-direction: column;
}

.contact-section .group form input,
.contact-section .group form textarea {
  font-family: 'Poppins', sans-serif;
  border: 2px solid var(--link-color);
  background-color: transparent;
  padding: 10px;
  margin-bottom: 15px;
  outline: none;
  resize: none;
}

.contact-section .group form button {
  font-size: 16px;
  font-family: 'Poppins', sans-serif;
  color: #fff;
  background-color: var(--link-color);
  border: none;
  height: 50px;
  cursor: pointer;
  transition: .1s;
}

.contact-section .group form button:hover {
  filter: brightness(.9);
}

@media screen and (max-width: 768px) {
  .loader {
    font-size: clamp(18px, 4vw, 22px);
    padding: 8px;
    flex-wrap: wrap;
    justify-content: center;
  }
  
  .loader p {
    text-align: center;
  }
  
  .words {
    min-width: 150px;
  }
}

@media screen and (max-width: 480px) {
  .loader {
    font-size: 30px;
    padding: 6px;
  }
  
  .words {
    width: 100%;
    text-align: center;
  }
}

@media (max-width: 850px) {
  /* SECTION 1: Hero */
  .hero-section .text h2 {
    font-size: 35px;
    text-align: center;
  }
}

@media (max-width: 740px) {
  /* SECTION 1: Hero */
  .hero-section {
    flex-direction: column-reverse;
  }

  .hero-section .headshot img {
    width: 250px;
  }

  /* SECTION 3: projects */
  .projects-section {
    text-align: center;
  }

  .projects-section2 {
    text-align: center;
  }

  .projects-section3 {
    text-align: center;
  }

  .projects-section4 {
    text-align: center;
  }

  .projects-section5 {
    text-align: center;
  }

  .projects-section .group {
    flex-direction: column;
  }

  .projects-section .group2 {
    flex-direction: column;
  }

  .projects-section .group3 {
    flex-direction: column;
  }

  .projects-section .group4 {
    flex-direction: column;
  }

  .projects-section .group5 {
    flex-direction: column;
  }

  /* SECTION 4: Contact */
  .contact-section .group {
    flex-direction: column;
  }
}

@media (max-width: 600px) {
  /* NAVBAR */
  nav {
    padding: 0 20px;
  }

  nav .right a {
    font-size: 22px;
  }

  nav .right a:last-child {
    color: var(--text-color);
    background-color: transparent;
    padding: 0;
  }

  nav .right a span {
    display: none;
  }
}


  /* SECTION 1: Hero */
  .hero-section {
    padding: 0 20px;
  }

  .hero-section .text h2 {
    font-size: 30px;
    font-family: "Caveat", serif;
    font-weight: 400;
  } 

  /* SECTION 2: Skills */
  .skills-section {
    padding: 0 20px;
  }

  .skills-section .cells .cell span {
    font-size: 16px;
  }

  /* SECTION 3: projects */
  .projects-section {
    padding: 0 20px;
  }

  .projects-section2 {
    padding: 0 20px;
  }

  .projects-section3 {
    padding: 0 20px;
  }

  /* SECTION 4: Contact */
  .contact-section {
    padding: 0 20px;
  }

/* Preloader */
#preloader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: #fff;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  transition: opacity 0.5s ease-out;
}

#preloader img {
  max-width: 400px;
  /* Adjust size as needed */
}

#preloader.fade-out {
  opacity: 0;
  pointer-events: none;
}

@media (max-width: 600px) {
  /* NAVBAR */
  nav {
    padding: 0 20px;
  }

  nav .right a {
    font-size: 22px;
  }

  nav .right a:last-child {
    color: var(--text-color);
    background-color: transparent;
    padding: 0;
  }

  nav .right a span {
    display: none;
  }
}