/* Universal Selectors */

body {
  margin: 0;
  min-height: 100vh;
  background: transparent;
}

body::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;

  background: linear-gradient(-45deg, #6fbf53, #69c6b1, #a3e08f, #82d8c5);
  background-size: 400% 400%;

  animation: liquidFlow 15s ease infinite;
}

body::after {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  opacity: 0.1;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
}

@keyframes liquidFlow {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

h1,
h2,
h3,
h4,
h5,
h6,
p,
ul {
  font-family: "Reddit Sans", sans-serif;
}

h3,
h4 {
  margin: 20px 40px;
}

p {
  font-weight: 400;
}

li {
  margin-bottom: 20px;
}

hr {
  width: 150px;
  border: 1px solid rgba(0, 0, 0, 0.4);
  margin: 50px auto;
}

.hidden {
  display: none !important;
}

.michroma-regular {
  font-family: "Michroma";
  font-weight: 400;
  font-style: normal;
}

.reddit-sans {
  font-family: "Reddit Sans";
  font-optical-sizing: auto;
  font-weight: <weight>;
  font-style: normal;
}

.reddit-sans-condensed {
  font-family: "Reddit Sans Condensed";
  font-optical-sizing: auto;
  font-weight: <weight>;
  font-style: normal;
}

@font-face {
  font-family: "Eurostar Black";
  src: url("eurostarblackextended.ttf") format("truetype");
  font-weight: normal;
  font-style: normal;
}


/* Header Area */

.badge {
  background-color: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr auto;
  border-radius: 0 60px 0 60px;
  box-shadow: inset 0px 0px 10px rgba(0, 0, 0, 0.3);
  z-index: 1;
  margin: -150px auto 0 auto;
  width: 80%;
  max-width: 800px;
  overflow: hidden;
  align-items: start;
}

.name-and-position {
  display: contents;
}

.name-badge {
  grid-column: 1;
  grid-row: 1;
  margin: 20px 20px 10px 20px;
}

.name-badge h1 {
  background: linear-gradient(to right, #6fbf53, #69c6b1);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  font-family: "Eurostar Black", "Michroma", sans-serif;
  padding: 0;
  font-size: 2.3rem;
  margin: 20px 0 0 0;
}

.image-badge {
  grid-column: 2;
  grid-row: 1 / 3; /* spans both rows, filling the full right half */
  background-image: linear-gradient(90deg, #6fbf53, #69c6b1);
  margin: 20px;
  border-radius: 0 40px 0 40px;
  overflow: hidden;
  aspect-ratio: 1/1;
  align-self: center;
}

.image-badge img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
  display: block;
}

.position-badge {
  grid-column: 1;
  grid-row: 2;
  align-self: end;
  margin: 0 20px 20px 20px;
  font-family: "Reddit Sans Condensed", sans-serif;
  display: flex;
  box-shadow: inset 0px 0px 10px rgba(0, 0, 0, 0.3);
  border-radius: 0 20px 0 20px;
  width: auto;
}

.position-gradient {
  background-image: linear-gradient(90deg, #6fbf53, #69c6b1);
  border-radius: inherit;
  width: 100%;
  align-items: center;
}

.position-gradient h2 {
  margin: 20px auto 0 auto;
}

.position-gradient p {
  margin: 0 auto 20px auto;
}

.position-gradient h2,
.position-gradient p {
  padding: 0 20px;
  text-align: center;
}

.portfolio-button {
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: inherit;
}

.portfolio-button a {
  text-decoration: none;
  color: #231f20;
}

.portfolio-button a:hover {
  color: gray;
  transition: 0.2s ease-in-out;
  cursor: pointer;
}

.portfolio-button p {
  text-align: center;
}

.background {
  width: 100%;
  z-index: 0;
  margin: 0;
}

#black-rectangle {
  height: 200px;
  background-color: #231f20;
}

/* Action Menu */

.action-menu {
  width: 80%;
  max-width: 500px;
  min-height: 50px;
  margin: 0 auto;
  display: flex;
  gap: 10px;
}

.action-menu-item {
  display: flex;
  flex: 1;
  flex-direction: row;
  height: auto;
  min-height: 50px;
  justify-content: center;
  align-items: center;
  gap: 4px;
  padding: 15px 0;
  color: #fff;
}

.action-menu-item p {
  display: block;
  margin: 0;
}

.action-menu-item a {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 4px;
  width: 100%;
  height: 100%;
  text-decoration: none;
  color: #231f20;
}

.action-menu-item a:hover {
  color: white;
  transition: 0.3s ease;
}

.action-menu-item svg {
  background-color: white;
  color: #231f20;
  display: block;
  margin-right: 5px;
  padding: 5px;
  border-radius: 0 5px 0 5px;
}

/* Resume Area */

/* Skills */

.resume {
  max-width: 800px;
  width: 80%;
  height: auto;
  background-color: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  margin: 50px auto 0 auto;
  box-shadow: inset 0px 0px 10px rgba(0, 0, 0, 0.3);
  border-radius: 0 60px 0 60px;
  padding-top: 40px;
  padding-bottom: 20px;
}

.skills h2,
.skills p,
.work-history h2,
.work-history p {
}

.skills h2,
.work-history h2 {
  text-align: center;
  margin-top: 0;
}

.skill-bar {
  width: 50%;
  height: 30px;
  background-color: #231f20;
  margin: 20px auto;
  border-radius: 15px;
}

.skill-bar div {
  height: inherit;
  background-image: linear-gradient(90deg, #6fbf53, #69c6b1);
  border-radius: inherit;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 15px;
}

.skill-bar div > p {
  align-items: center;
  text-align: left;
}

.skill-bar div:hover {
}

/* Specific skill class percentages */

#ps,
#WP {
  width: 80%;
}

#ai,
#html {
  width: 76%;
}

#pr,
#ae {
  width: 70%;
}

#indd {
  width: 60%;
}

/* Work History */

.work-history {
  width: 100%;
  margin: 0 auto;
}

.work-history-example {
  padding-bottom: 70px;
}

.work-history-example h3,
.work-history-example h4 {
  text-align: center;
  padding: 0;
  margin: 0;
}

.work-history-example h3 {
  font-weight: 500;
}

.work-history-example h4 {
  font-weight: 400;
}

.work-history-example > p,
.work-history-example > ul {
  margin: 20px 80px;
}

#second {
  padding-bottom: 0;
}

#second + hr {
  margin-top: 40px;
}

/* Portfolio */

.portfolio {
  margin: 0 auto;
}

.portfolio h2,
.contact h2 {
  text-align: center;
}

/* Portfolio JS Filters */

.portfolio-filters {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin: 30px 0;
  flex-wrap: wrap;
}

.filter-btn {
  padding: 10px 25px;
  border: 1px solid rgba(35, 31, 3, 0.3);
  background-color: white;
  color: #231f20;
  border-radius: 0 8px 0 8px;
  font-family: "Reddit Sans", sans-serif;
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
}

.filter-btn:hover {
  background-color: #f0f0f0;
  transform: translateY(-2px);
}

.filter-btn.active {
  background-image: linear-gradient(90deg, #6fbf53, #69c6b1);
  color: white;
  border-color: transparent;
}

/* Portfolio Content */

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
  padding: 0 40px;
  margin-bottom: 20px;
  justify-content: center;
}

.portfolio-item.hidden {
  display: none;
}

.portfolio-item {
  background-color: #f0f0f0;
  aspect-ratio: 1 / 1;
  border-radius: 0 15px 0 15px;
  border: 2px solid #ccc;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  position: relative;
  transition: 0.3s ease;
  padding: 10px;
  overflow: hidden;
  height: auto;
}

.portfolio-item a {
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  text-decoration: none;
}

.portfolio-item img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
}

.portfolio-item::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(35, 31, 32, 0.8);
  opacity: 0;
  z-index: 2;
  transition: opacity 0.3s ease;
  border-radius: inherit;
  pointer-events: none;
}

.portfolio-item:hover::after {
  opacity: 1;
}

.portfolio-text {
  color: white;
  font-weight: bold;
  font-family: "Reddit Sans", sans-serif;
  text-align: center;
  position: relative;
  z-index: 3;
  text-shadow: 0 0 5px #000;
  visibility: hidden;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.portfolio-item:hover {
  background-color: rgba(35, 31, 32, 0.5);
  cursor: pointer;
  transition: 0.2s ease;
}

.portfolio-item:hover .portfolio-text {
  visibility: visible;
  display: block;
}

/* Footer */

footer {
  text-align: center;
}

/* Tablet Re-size */

@media (max-width: 940px) {
  .badge {
    width: 90%;
    max-width: none;
    margin-top: -120px;
  }

  .name-badge h1 {
    font-size: 2rem;
  }

  .skill-bar {
    width: 75%;
  }

  .work-history-example > p,
  .work-history-example > ul {
    margin: 20px 40px;
  }

  .portfolio-grid {
    grid-template-columns: repeat(2, 1fr);
    padding: 0 30px;
  }

  .portfolio-item {
    aspect-ratio: 4 / 3;
  }
}

/* Mobile Re-size */

@media (max-width: 600px) {
  .badge {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 90%;
    margin-top: -170px;
    padding-bottom: 0;
  }

  .name-and-position {
    display: flex;
    flex-direction: column;
    width: 100%;
    order: 2;
  }

  .image-badge {
    order: 1;
    aspect-ratio: 1 / 1;
    width: 90%;
    margin: 20px auto 0 auto;
  }

  .name-badge {
    order: 2;
    margin: 10px 30px;
    text-align: left;
  }

  .position-badge {
    width: 100%;
    margin: 0 0 20px 0;
    flex-direction: column;
  }

  .resume {
    width: 90%;
  }

  .skill-bar {
    width: 90%;
  }

  .work-history-example h2,
  .work-history-example h3 {
    margin: 0 20px;
  }

  .work-history-example > p,
  .work-history-example > ul {
    margin: 20px 20px;
  }

  .work-history-example > ul {
    list-style-position: outside;
    padding-inline-start: 20px;
  }

  .portfolio-filters {
    margin: 30px 20px;
    width: auto;
    flex-wrap: nowrap;
    gap: 8px;
    justify-content: flex-start;
    overflow-x: auto;
  }

  .filter-btn {
    padding: 10px 5px;
    font-size: 0.85rem;
    flex: 1;
    white-space: nowrap;
    min-width: 0;
  }

  .portfolio-grid,
  .all,
  .print,
  .digital,
  .branding {
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding: 0 40px;
  }

  .portfolio-item {
    aspect-ratio: 1/1;
  }
}
