@import url("mobile.css");
:root {
  --background-color: #fafafa;
  --text-color: #333;
  --text-title-color: #111;
  --text-hover-color: #000;
  --light-accent-color: #ccc;
  --accent-color: #abbaab;
  --blue-color: #2980b9;
}
@media (prefers-color-scheme: dark) {
  :root {
    --background-color: #111216;
    --text-color: #999;
    --text-title-color: #eee;
    --text-hover-color: #ddd;
    --light-accent-color: #222;
  }
}

@media (prefers-color-scheme: light) {
  :root {
    --background-color: #fafafa;
    --text-color: #333;
    --text-title-color: #111;
    --text-hover-color: #000;
    --light-accent-color: #ccc;
  }
}
@keyframes first-about-me-animation {
  0% {
    transform: translateY(+10em);
    opacity: 0;
  }
  100% {
    opacity: 1;
    transform: translateY(-1em);
  }
}
@keyframes name {
  0% {
    opacity: 0;
    transform: translateY(+1em);
  }
  70% {
    transform: translateY(-0.1em);
    opacity: 0.7;
  }
  100% {
    opacity: 1;
    transform: translateY(0em);
  }
}
@keyframes slogan {
  0% {
    opacity: 0;
    transform: translateX(-100em);
  }
  100% {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes menu {
  0% {
    opacity: 0;
    transform: translateY(+100em);
  }
  50% {
    opacity: 0.2;
    transform: translateY(+50em);
  }

  100% {
    opacity: 1;
    transform: translateY(0em);
  }
}

@keyframes ldIcon {
  0% {
    opacity: 0;
    transform: translateY(-100em);
  }
  50% {
    opacity: 0.2;
    transform: translateY(-50em);
  }

  100% {
    opacity: 1;
    transform: translateY(0em);
  }
}

@keyframes section {
  0% {
    opacity: 0;
    transform: translateY(20rem);
  }
  100% {
    transform: translateY(0rem);
  }
}
@keyframes skillSection {
  0% {
    opacity: 0;
    transform: translateX(-100px);
  }
  50% {
    transform: translateX(500px);
  }
  100% {
    opacity: 1;
    transform: translateX(+200px);
  }
}

* {
  font-family: "poppins", "helvetica", arial;
}
html {
  background-color: var(--background-color);
}
body {
  color: var(--text-color);
  width: 75%;
  margin: 0em auto;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

a {
  color: inherit;
  text-decoration: none;
}

section {
  background-color: transparent;
}

@keyframes loopAnimation {
  0% { left: 2000px; }
  100% { left: -2000px; }
}


.watermark:first-child {
  position: fixed;
  margin: 0em auto;
  font-size: 10rem;
  font-weight: bolder;
  font-family: nunito;
  opacity: 0.03;
  top: 0;
  left: -2em;
  z-index: -1000;
  animation: loopAnimation 5s infinite linear;
}
.watermark:nth-child(2) {
  position: fixed;
  margin: 0em auto;
  font-size: 27rem;
  font-weight: bolder;
  font-family: nunito;
  opacity: 0.03;
  overflow: hidden;
  bottom: 0em;
  right: -1em;
  z-index: -1000;
  animation: loopAnimation 6s infinite linear;
}
.watermark:nth-child(3) {
  position: fixed;
  margin: 0em auto;
  font-size: 2rem;
  font-weight: bolder;
  font-family: nunito;
  opacity: 0.05;
  overflow: hidden;
  bottom: 0;
  animation: loopAnimation 7s infinite linear;
  left: 0;
  z-index: -1000;
}



#name {
  animation-name: name;
  font-weight: 500;
  font-family: "poppins", helvetica, arial;
  animation-duration: 0.5s;
  animation-timing-function: ease-out;
  color: var(--text-title-color);
}

#name b {
  font-weight: bold;
}

#slogan {
  animation-name: slogan;
  animation-duration: 0.8s;
  animation-timing-function: ease-out;
  font-weight: 520;
  animation-fill-mode: forwards;
}

#menu {
  display: flex;
  flex-direction: row;
  max-width: 50%;
  color: gray;
  margin-top: 10em;
}

#menu p {
  opacity: 0;
  animation: fadeInUp 0.5s ease-out forwards;
}

#menu p:nth-child(1) { animation-delay: 1s; }
#menu p:nth-child(2) { animation-delay: 1.1s; }
#menu p:nth-child(3) { animation-delay: 1.2s; }
#menu p:nth-child(4) { animation-delay: 1.3s; }
#menu p:nth-child(5) { animation-delay: 1.4s; }

#menu a {
  font-family: "roboto mono", monospace;
  font-size: 0.9em;
  font-weight: light;
  margin-right: 2em;
  padding: 5px;
  border: 2px solid var(--light-accent-color);
  box-shadow: 5px 5px 0px 2px var(--light-accent-color);
  white-space: nowrap;
  transition: all 0.4s;
  display: inline-block;
}

#menu a:hover {
  border: 2px solid var(--text-color);
  color: var(--text-hover-color);
  background-color: var(--light-accent-color);
  box-shadow: 0px 0px 0px 0px;
  transform: translateY(-3px);
}

@keyframes fallIn {
  0% {
    opacity: 0;
    transform: translateY(-50px);
  }
  70% {
    opacity: 1;
    transform: translateY(3px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

#switch-container {
  opacity: 0;
  animation: fallIn 0.3s ease-out forwards;
  animation-delay: 1.9s; /* This should be slightly longer than the last menu item's animation delay */
}

/* Update the existing styles for the switch container */
#switch-container img {
  width: 2em;
  height: 2em;
  cursor: pointer;
  position: fixed;
  /* top: 1.9vw; */
  /* right: 1.9vw; */
  transition: All 0.3s;
}

#about-me-section {
  line-height: 1.7em;
}

#about-me-section a {
  /* reset */
  padding: 0.5em;
  font-size: 0.9em;
  color: var(--text-hover-color);
}

section h2 {
  color: var(--text-title-color);
}
#about-me-intro-section {
  font-size: 0.8em;
  width: 400px;
  opacity: 0;
  margin-bottom: 2em;
  animation: fadeInSlideUp 0.8s ease-out forwards;
  animation-delay: 0.9s; /* Delay the animation slightly to let other elements load first */
}

#about-me-intro-section p {
  margin-bottom: 2em;
}

#about-me-intro-section a {
  border: 2px solid var(--text-color);
  color: var(--text-hover-color);
  background-color: var(--light-accent-color);
  box-shadow: 0px 0px 0px 0px;
  padding: 0.5em 1.5em;
  transition: all 0.4s;
}
#about-me-intro-section a:hover {
  background-color: var(--text-hover-color);
  font-size: 1em;
  color: var(--background-color);
}

#about-me-section .contact-me-btn {
  border: 2px solid var(--text-color);
  color: var(--text-hover-color);
  background-color: var(--light-accent-color);
  box-shadow: 0px 0px 0px 0px;
  padding: 0.5em 1.5em;
  transition: all 0.4s;
  display: inline-block;
  margin-top: 1em;
  font-size: 0.8em; /* Adjusted to match the intro section button */
  opacity: 0.8; /* Added to match the intro section button */
}

#about-me-section .contact-me-btn:hover {
  background-color: var(--text-hover-color);
  color: var(--background-color);
  font-size: 0.8em; /* Keep the same size on hover */
}

#about-me-section p {
  font-size: 0.8em;
  width: 400px;
  opacity: 0.8;
  margin-bottom: 2em;
}

#about-me-section a {
  font-size: 1em;
  font-weight: bold;
  opacity: 0.8;
  padding: 0;
  margin-bottom: 2em;
}

.section:not(#about-me-intro-section) {
  display: none;
}

.section:first-child {
  animation-name: first-about-me-animation;
  animation-duration: 1s;
  animation-timing-function: ease-in;
  animation-fill-mode: forwards;
  margin-top: 2em;
}
.visible {
  display: block;
}
#header-name-ldm {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: space-between;
}

#skills-section article {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(18rem, 1fr));
  gap: 2em;
}

#skills-section article > section {
  font-family: "roboto mono", monospace;
  font-size: 0.9em;
  font-weight: light;
  padding: 15px;
  border: 2px solid var(--light-accent-color);
  box-shadow: 5px 5px 0px 2px var(--light-accent-color);
  display: flex;
  flex-direction: column;
}

#skills-section article > section h4 {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1em;
}

#skills-section article > section ul {
  list-style-type: none;
  padding: 0;
  margin: 0;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

#skills-section article > section li {
  display: flex;
  align-items: center;
  margin-bottom: 0.5em;
}

#skills-section article > section li object {
  height: 1.5em;
  width: 1.5em;
  margin-right: 0.5em;
}

#links-section > div {
  margin-left: 1em;
}

#links-section > div > * {
  min-width: max-content;
  opacity: 0.5;
  margin-right: 2em;
  font-weight: 700;
  font-size: 1.5em;
}

#links-section > div > *:hover {
  opacity: 1;
}

article {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(18rem, 0.5fr));
  gap: 2em;
}

article section {
  background-color: var(--background-color);
}

article object {
  height: 2.5em;
  width: 1.5em;
  margin-right: 0.5em;
}

article object {
  fill: aqua;
}

article li i {
  font-size: 1.5em;
  color: #ccc;
  margin-right: 0.5em;
}

svg {
  fill: ccc;
}

section h4 {
  display: flex;
  font-size: 0.9rem;
  margin-left: 1em;
  justify-content: space-between;
  font-weight: bolder;
  color: var(--text-hover-color);
  margin-right: 2em;
  margin-bottom: 2em;
}

section h4 > img {
  height: 3em;
  width: 3em;
  opacity: 0.2;
  display: none;
  margin-top: -1em;
  box-sizing: border-box;
  padding: 0.5em;
  background-color: aliceblue;
}

article > section > ul {
  list-style-type: none;
  font-size: 0.8em;
  padding-left: 1em;
  margin: -1em 0em 1em 0em;
}
article li {
  display: flex;
  align-items: center;
  font-size: 1.1em;
  font-family: roboto mono;
}


#projects-section {
  display: flex;
}

#projects-wrapper {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(30rem, 0.5fr));
  gap: 3em;
}

#projects-wrapper > div {
  background-color: var(--background-color);
  padding: 0 1em;
  display: flex;
  align-items: stretch;
  box-shadow: 0px 0px 0px 5px var(--light-accent-color),
    15px 15px 0px 5px var(--light-accent-color);
    transition: all 0.4s;
}
#projects-wrapper > div:hover {
  box-shadow: 0px 0px 0px 5px, 0px 0px 0px 5px;
  transition: all 0.4s;
}

#projects-wrapper > div > div {
  display: flex;
  flex-direction: column;
  justify-content: space-evenly;
  padding-right: 2em;
}
#projects-wrapper > div h3 em {
  font-size: 0.7em;
  font-weight: 400;
  word-wrap: none;
  white-space: nowrap;
}
#projects-wrapper > div h3 a:hover {
  text-decoration: underline;
  opacity: 0.5;
  position: relative;
  top: -2px;
}
#projects-wrapper img {
  width: 200px;
  height: 300px;
  padding: 1em;
  margin: 1em 1em 1em 2em;
  opacity: 0.8;
  box-shadow: 2px 2px 0px 4px rgba(240, 240, 240, 0.5),
    -2px -2px 0px 0px var(--light-accent-color);
}
.tags {
  display: flex;
  flex-direction: column;
}
.tags > span {
  margin-right: 1em;
  font-size: 0.7em;
  opacity: 0.5;
  padding: 0.3em 0.7em;
  font-family: "roboto mono";
}

.tags > span:hover {
  opacity: 0.9;
}
#projects-wrapper > div > span {
  border: 1px solid #ccc;
  text-align: center;
  width: 50%;
  margin: 1em auto;
}

#links-section > div {
  height: 1em;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  width: 50%;
}

#links-section > div > * {
  margin-top: 1em;
  box-shadow: 5px 5px 0px 2px var(--light-accent-color);
  padding: 0.5em;
  border: 2px solid var(--light-accent-color);
  transition: all 0.4s;
}
#links-section > div > *:hover {
  box-shadow: 0px 0px 0px 0px;
  border: 2px solid var(--text-color);
  color: var(--text-color);
  background-color: var(--light-accent-color);
  transition: all 0.4s;
}

#links-section > div a i {
  color: var(--text-color);
  margin-right: 0.5em;
  opacity: 1;
}

.active > * {
  color: var(--background-color) !important;
  background-color: var(--text-color) !important;
  padding: 0.5em;
  border: 2px solid var(--text-color) !important;
  box-shadow: 1px 1px 0px 2px var(--text-color) !important;
}

.active > *:hover {
  box-sizing: border-box;
  background-color: transparent;
  padding: 0.5em;
}

footer {
  position: absolute;
  bottom: 0px;
}

#go-back-button {
  opacity: 0.8;
  font-family: "roboto mono";
  outline: none;
  background-color: var(--text-color);
  color: var(--background-color);
  position: relative;
  padding: 1em;
  border: none;
  display: none;
  font-size: 0.8em;
  text-align: center;
}

#resume-section {
  width: 100%;
}

#resume-content {
  background-color: var(--background-color);
  padding: 0.5em;
  border: 2px solid var(--light-accent-color);
  box-shadow: 5px 5px 0px 2px var(--light-accent-color);
}

#resume-content object {
  width: 100%;
  height: 80vh;
  max-height: 1000px;
}

/* Custom styles for the PDF viewer */
#resume-content object::before {
  content: "Loading PDF...";
  display: block;
  padding: 20px;
  text-align: center;
  font-family: "roboto mono", monospace;
  color: var(--text-color);
}

/* Style for the fallback link */
#resume-content p {
  text-align: center;
  font-family: "roboto mono", monospace;
  color: var(--text-color);
  padding: 20px;
}

#resume-content a {
  color: var(--text-hover-color);
  text-decoration: underline;
}

#resume-content a:hover {
  color: var(--accent-color);
}

/* Media query for mobile devices */
@media only screen and (max-width: 600px) {
  #resume-content object {
    height: 70vh;
  }
}

/* Add these new keyframes for the menu items */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Add this new keyframe animation */
@keyframes fadeInSlideUp {
  0% {
    opacity: 0;
    transform: translateY(20px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}