@import url("https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap");

:root {
  /* Dark theme colors */
  --bg-dark: #101419;
  --text-dark: #f3f5f7;
  --link-dark: #aeb0b1;
  --link-hover-dark: #f3f5f7;
  --btn-hover-dark: #272b2f;
  --text-dark-secondary: #9b9c9d;
  --bg-rgb-dark: 16, 20, 25;

  /* Light theme colors */
  --bg-light: #cfd0d1;
  --text-light: #070707;
  --link-light: #2e2e2e;
  --link-hover-light: #070707;
  --btn-hover-light: #b8b9b9;
  --text-light-secondary: #333333;
  --bg-rgb-light: 207, 208, 209;

  /* Default to dark theme */
  --bg: var(--bg-dark);
  --text: var(--text-dark);
  --link: var(--link-dark);
  --link-hover: var(--link-hover-dark);
  --btn-hover: var(--btn-hover-dark);
  --text-secondary: var(--text-dark-secondary);
  --bg-rgb: var(--bg-rgb-dark);
}

.light-theme {
  --bg: var(--bg-light);
  --text: var(--text-light);
  --link: var(--link-light);
  --link-hover: var(--link-hover-light);
  --btn-hover: var(--btn-hover-light);
  --text-secondary: var(--text-light-secondary);
  --bg-rgb: var(--bg-rgb-light);
}

* {
  font-family: "Poppins", serif;
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  scroll-behavior: smooth;
}

body {
  background-color: var(--bg);
  background-attachment: fixed;
  transition: background-color 0.3s, color 0.3s;
}

header {
  text-align: center;
  padding: 0.6em;
  flex-direction: row;
  display: flex;
  justify-content: space-between;
  margin: 0.1em 14em;
  align-items: center;
  max-width: 900px;
  margin-right: auto;
  margin-left: auto;
  position: sticky;
  top: 0;
  background-color: var(--bg-rgb);
  backdrop-filter: blur(3px);
  z-index: 1000;
  transition: background-color 0.3s, color 0.3s, transform 0.3s;
}

header.hide-on-scroll {
  transform: translateY(-100%);
  transition: transform 0.3s;
}

header a {
  text-decoration: none;
  margin: 0 3.1215em;
  margin-right: 0;
  color: var(--link);
  transition: color 0.3s;
}

header a:hover {
  color: var(--link-hover);
}

#theme-switch {
  background: none;
  border: none;
  cursor: pointer;
  margin: 3.125em;
  margin-left: 1.125em;
  padding: 0;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.3s;
  width: 40px;
  height: 40px;
}

#theme-switch:hover {
  background-color: var(--btn-hover);
}

.icon {
  width: 24px;
  height: 24px;
  fill: var(--text);
  transition: fill 0.3s;
}

.moon-icon {
  display: none;
}

.light-theme .moon-icon {
  display: block;
}

.light-theme .sun-icon {
  display: none;
}

.home {
  flex-direction: column;
  display: flex;
  align-items: center;
  margin: 0;
  padding: 0 10em;
  text-align: center;
}

.pfp {
  height: 250px;
  width: auto;
  border-radius: 50%;
  border: solid 3px var(--text);
  margin-bottom: 0.8em;
  transition: border-color 0.3s;
}

.home h1 {
  color: var(--text);
  font-size: 2.9em;
}

.home p {
  color: var(--text-secondary);
  font-size: 1.25em;
  font-weight: 600;
  margin-top: -0.2em;
}

.age {
  font-size: 1.3em;
  font-weight: 700;
}

.home .second_p {
  margin-top: 0.5em;
}

#status {
  letter-spacing: 0.09em;
  color: var(--text);
}

.resume_and_socials {
  display: flex;
  margin-top: 1em;
}

.socials {
  align-items: center;
}

.resumeBtn {
  color: var(--text);
  padding: 0.5em 1em;
  font-size: 1em;
  font-weight: 600;
  background-color: transparent;
  border-radius: 8px;
  cursor: pointer;
  border: solid 2px var(--link);
  transition: background-color 0.3s;
  margin: 0.3em 0;
  margin-right: 1.2em;
  display: inline-flex;
}

.resumeBtn:hover {
  background-color: var(--link);
  border-color: var(--link);
  color: var(--bg);
}

.BtnText {
  margin: 0.2em 0.8em;
  margin-left: 0.35em;
}

#resumeIcon {
  margin: 0.2em;
  margin-top: 0.3em;
  margin-left: 0.5em;
}

.resume_and_socials a {
  text-decoration: none;
  color: var(--link);
  font-weight: 600;
  margin: 0;
  margin-left: 0.25em;
  transition: color 0.3s;
  font-size: 2.5em;
  text-align: center;
  gap: 0;
  padding: 0;
  line-height: 1;
  align-items: center;
}

.resume_and_socials a svg {
  align-self: center;
  width: auto;
  position: relative;
  top: 0.2em;
}

.resume_and_socials a:hover {
  color: var(--link-hover);
}

.about {
  text-align: left;
  padding: 2em 10em;
  margin: 0;
  margin-top: 8em;
  display: flex;
  flex-direction: column;
  color: var(--text);
  max-width: 75%;
  margin-right: auto;
  margin-left: auto;
  transition: color 0.3s, background-color 0.3s, border-color 0.3s;
}

.about h2 {
  font-size: 2.4em;
  margin-bottom: 0.5em;
}

.about h2::after {
  background-color: var(--text);
  content: "";
  display: inline-block;
  height: 1px;
  position: relative;
  vertical-align: middle;
  width: 35%;
  left: 0.5em;
  margin-right: -50%;
}

.about p {
  color: var(--text-secondary);
  font-size: 1.2em;
  line-height: 1.6em;
  margin-top: 0.5em;
}

.about .about_p2 {
  margin-top: 25px;
}

.about .skills-list {
  color: var(--text-secondary);
  padding: 0;
  margin-top: 1em;
  margin-left: 1.5em;
  font-size: 1.1em;
}

.projects {
  text-align: left;
  padding: 2em 10em;
  margin: 0;
  margin-top: 8em;
  display: flex;
  flex-direction: column;
  color: var(--text);
  max-width: 75%;
  margin-right: auto;
  margin-left: auto;
  transition: color 0.3s, background-color 0.3s, border-color 0.3s;
}

.projects h2 {
  font-size: 2.4em;
  margin-bottom: 0.5em;
}

.projects h2::after {
  background-color: var(--text);
  content: "";
  display: inline-block;
  height: 1px;
  position: relative;
  vertical-align: middle;
  width: 35%;
  left: 0.5em;
  margin-right: -50%;
}

.projectLink {
  text-decoration: none;
  color: var(--link);
  display: inline-flex;
}

.projectLink:hover {
  color: var(--link-hover);
}

#externalLinkIcon {
  margin: 0.2em;
  margin-top: 0.3em;
  margin-left: 0.5em;
}

.WeatherAppProject {
  display: flex;
  padding: 1.7em;
  border: solid 1px var(--text);
  border-radius: 15px;
  flex-direction: column;
  align-items: center;
  margin: 1em 5.5em 2em 5.5em;
}

.projects img {
  width: 100%;
  height: auto;
  border-radius: 12px;
  margin-bottom: 1em;
}

.projectDetails {
  text-align: center;
}

.projects p {
  color: var(--text-secondary);
  font-size: 1.1em;
  line-height: 1.6em;
  margin-top: 0.5em;
}

.usedTechnologies {
  font-size: 0.9em;
}

.tech {
  display: inline-block;
  background-color: var(--bg-rgb);
  color: var(--text);
  padding: 0.3em 0.6em;
  border: solid 2px var(--text);
  border-radius: 8px;
  margin-right: 0.5em;
  margin-top: 0.9em;
}

.contact {
  text-align: left;
  padding: 2em 10em;
  margin: 0;
  margin-top: 8em;
  display: flex;
  flex-direction: column;
  color: var(--text);
  max-width: 75%;
  margin-right: auto;
  margin-left: auto;
  transition: color 0.3s, background-color 0.3s, border-color 0.3s;
}

.contact h2 {
  font-size: 2.4em;
  margin-bottom: 1em;
}

.contact h2::after {
  background-color: var(--text);
  content: "";
  display: inline-block;
  height: 1px;
  position: relative;
  vertical-align: middle;
  width: 35%;
  left: 0.5em;
  margin-right: -50%;
}

.contact-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 90%;
  margin-left: auto;
  margin-right: auto;
}

.contact-container input,
.contact-container textarea {
  width: 100%;
  padding: 0.8em;
  margin-bottom: 1em;
  border: solid 1px var(--text);
  border-radius: 8px;
  background-color: transparent;
  color: var(--text);
  font-size: 1em;
  transition: border-color 0.3s, background-color 0.3s;
}



.submitBtn {
  background-color: var(--link);
  color: var(--bg);
  padding: 0.8em;
  font-size: 1em;
  font-weight: 600;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: background-color 0.3s, color 0.3s;
  margin-top: 1em;
  width: 100%;
}

.submitBtn:hover {
  background-color: var(--link-hover);
  color: var(--bg);
}

.submitBtn svg {
  width: 22px;
  height: 22px;
  margin-left: 0.5em;
  margin-right: 0.5em;
  margin-bottom: -0.3em;
}

footer {
  padding: 1.5em 0;
  color: var(--text-secondary);
  font-size: 1em;
  margin-top: 2em;
  margin-bottom: 5em;
  margin-left: auto;
  margin-right: auto;
  max-width: 500px;
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  transition: color 0.3s;
}

footer a {
  text-decoration: none;
  color: var(--link);
  transition: color 0.3s;
}

footer a:hover {
  color: var(--link-hover);
}

.footersocials {
  display: flex;
  gap: 1em;
}

#emailIcon {
  margin-bottom: -0.25em;
}

.heavy {
  font-weight: 600;
}

@media (max-width: 700px) {
  .about,
  .home {
    padding: 1em 1.5em;
    max-width: 100%;
  }

  header {
    padding: 0.6em 1em;
    margin: 0 1em;
    max-height: 80px;
    margin-left: auto;
    margin-right: auto;
  }

  header a {
    margin: 0.5em;
    font-size: 0.9em;
  }

  #theme-switch {
    margin: 0;
    margin-left: 0.9em;
    margin-right: 0.5em;
    height: 30px;
    width: 30px;
  }

  .icon {
    width: 20px;
    height: 20px;
  }

  .pfp {
    height: 150px;
  }
}

#loadOverlay {
  display: none;
}
