@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;
  /* Brand colors */
  --linkedin-blue: #0A66C2;
  --glassdoor-green: #0CAA41;
  --email-orange: #FF8A00;
}
@keyframes first-about-me-animation {
  0% {
    transform: translateY(+10em);
    opacity: 0;
  }
  100% {
    opacity: 1;
    transform: translateY(-1em);
  }
}
@keyframes name {
  0% {
    opacity: 0;
    transform: translateY(+100em);
  }
  50% {
    transform: translateY(-1em);
    opacity: 0.3;
  }
  100% {
    opacity: 1;
    transform: translateY(0em);
  }
}
@keyframes slogan {
  0% {
    opacity: 0;
    transform: translateX(-100em);
  }
  60% {
    font-size: 0.8em;
  }
  100% {
    opacity: 1;
    transform: translateY(-2em);
    font-size: 1em;
  }
}

@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: flex-start;
  min-height: 100vh;
}

main { flex: 1; }

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

section {
  background-color: transparent;
}

.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;
}
.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;
}
.watermark:nth-child(3) {
  position: fixed;
  margin: 0em auto;
  font-size: 2rem;
  font-weight: bolder;
  font-family: nunito;
  opacity: 0.03;
  overflow: hidden;
  bottom: 0;
  left: 0;
  z-index: -1000;
}

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

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

#menu {
  display: flex;
  flex-direction: row;
  max-width: 50%;

  color: gray;
  animation-name: menu;
  animation-duration: 0.8s;
  animation-timing-function: ease-out;
  margin-top: 10em;
}

#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;
}

#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;
  transition: all 0.4s;
}

/* Header: contact button next to dark mode switch */
#switch-container {
  position: fixed;
  top: 1.9vw;
  right: 2vw;
  display: flex;
  align-items: center;
  gap: 0.75em;
  z-index: 10;
}

/* Let #contact-top reuse the same visual styling as the About button */
#contact-top { 
  margin: 0 !important; 
}

/* Override previous fixed positioning on the img so it sits inline */
#switch-container img {
  position: static;
  top: auto;
  padding-left: 2em;
}

#switch-container img {
  width: 2em;
  height: 2em;
  cursor: pointer;
  animation: ldIcon;
  animation-duration: 1.5s;
  position: static;
  top: auto;
  transition: All 1s;
}
#about-me-section {
  line-height: 1.7em;
}
section h2 {
  color: var(--text-title-color);
}
/* Make the About section headline ("Hello, I’m Glenn!") orange */
#about-me-section h2 {
  color: var(--email-orange);
  font-size: 3em;
}
#about-me-intro-section {
  font-size: 0.8em;
  width: 400px;
  opacity: 0.8;
  margin-bottom: 2em;
}

#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 a, #contact-top {
  display: inline-block;
  padding: 0.5em;
  font-size: 0.9em;
  color: var(--text-hover-color);
  background-color: var(--light-accent-color);
  box-shadow: 0px 0px 3px 1px var(--light-accent-color);
  margin: 1em 0em 0em 0em;
  opacity: 0.7;
  box-shadow: 5px 5px 0px 3px, 0px 0px 0px 3px;
  border: none;
  border-radius: 8px;
}
#about-me-section a:hover, #contact-top:hover {
  transition: all 0.4s;
  color: var(--background-color);
  background-color: var(--text-color);
  box-shadow: 0px 0px 0px 0px var(--light-accent-color),
    3px 3px 0px 0px var(--light-accent-color);
  opacity: 1;
}

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

#skills-section article > section {
  font-family: "roboto mono", monospace;
  font-size: 0.9em;
  font-weight: light;
  padding: 5px;
  border: 2px solid var(--light-accent-color);
  box-shadow: 5px 5px 0px 2px var(--light-accent-color);
  white-space: nowrap;
}
#links-section {
  margin-top: 4em;
}
#links-section > div {
  margin-left: 1em;
}

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

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

/* Brand-colored links */
#links-section .link-email {
  color: var(--email-orange);
  border-color: var(--email-orange);
  box-shadow: 5px 5px 0px 2px var(--email-orange);
}
#links-section .link-linkedin {
  color: var(--linkedin-blue);
  border-color: var(--linkedin-blue);
  box-shadow: 5px 5px 0px 2px var(--linkedin-blue);
}
#links-section .link-resume {
  color: var(--glassdoor-green);
  border-color: var(--glassdoor-green);
  box-shadow: 5px 5px 0px 2px var(--glassdoor-green);
}

/* Keep brand color on hover */
#links-section .link-email:hover { color: var(--email-orange); border-color: var(--email-orange); }
#links-section .link-linkedin:hover { color: var(--linkedin-blue); border-color: var(--linkedin-blue); }
#links-section .link-resume:hover { color: var(--glassdoor-green); border-color: var(--glassdoor-green); }

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

article section {
  min-width: 22em;
  background-color: var(--background-color);
}

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

svg {
  fill: blue;
}

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;
  /* Two columns on desktop/tablet */
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 3em;
}

#projects-wrapper > div {
  background-color: var(--background-color);
  padding: 0;
  display: flex;
  align-items: stretch;
  /* Stack image on top, then text */
  flex-direction: column;
  overflow: hidden;
  border-radius: 8px;
  box-shadow: 0px 0px 0px 5px var(--light-accent-color),
    15px 15px 0px 5px var(--light-accent-color);
}
#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: 1em;
}
#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 > div > div > h3 {
  font-size: 1.8em;
  margin: 0;
}

#projects-wrapper img {
  /* Keep aspect ratio; sized to fit two-column cards */
  order: -1; /* Show image first in the card */
  display: block;
  width: 100%;
  height: 220px;
  object-fit: cover;
  object-position: bottom center; /* crop from top, show bottom */
  padding: 0;
  margin: 0;
  opacity: 1;
  box-shadow: none;
  border-top-right-radius: 6px;
  border-top-left-radius: 6px;
  border-bottom: 1px solid #f4f4f4;
}

/* Responsive: one column on smaller screens */
@media (max-width: 900px) {
  #projects-wrapper {
    grid-template-columns: 1fr;
  }
  #projects-wrapper > div {
    flex-direction: column;
    align-items: center;
  }
  #projects-wrapper img {
    width: 100%;
    height: auto;
    margin: 0;
  }
}
.tags {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: center;
}
.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 {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: center;
  gap: 1em;
  width: auto;
}

#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);
  border-radius: 8px;
}
#links-section > div > *:hover {
  box-shadow: 0px 0px 0px 0px;
  background-color: transparent;
  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: static;
  margin: 8em 0 4em;
  font-size: 0.8em;
}

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