/* ========================================
   RESET & BASE STYLES
   ======================================== */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  position: relative;
  font-family: "Courier Prime", serif;
  overflow-x: hidden;
  width: 100%;
  background: linear-gradient(
    to right,
    #080c11 10%,
    #121c26 60%,
    #22364a 80%,
    #275075 100%
  );
}

p {
  color: white;
  font-family: "Courier Prime", Courier, monospace;
  line-height: normal;
}

/* ========================================
   LAYOUT
   ======================================== */

.page {
  max-width: 1440px;
  margin: 0 auto;
  padding-inline: 24px;
  overflow-x: hidden;
}

/* ========================================
   BACKGROUND LAYERS
   ======================================== */

.background-clip-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: -21;
  pointer-events: none;
}

.tier-one,
.tier-two,
.tier-three {
  position: absolute;
  left: 0;
  width: 100vw;
  background-repeat: no-repeat;
  background-size: 100%;
  background-position: top center;
}

.tier-one {
  top: -70px;
  height: 981px;
  background-image: url("../img/BgWave01.png");
}

.tier-two {
  top: 170px;
  height: 1878px;
  background-image: url("../img/BigWave02.png");
}

.tier-three {
  top: 1200px;
  height: 3403px;
  background-image: url("../img/BigWave03.png");
}

/* ========================================
   NAVIGATION
   ======================================== */

.site-nav {
  position: fixed;
  top: 50%;
  left: 0;
  transform: translateY(-50%);
  width: fit-content;
  z-index: 100;
}

.site-nav__inner {
  padding-left: 20px;
  font-family: "Advent Pro", sans-serif;
  font-weight: 600;
}

nav ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 25px;
  padding: 0;
  margin: 0;
}

.navi-link {
  position: relative;
  display: block;
  padding-left: 20px;
  font-size: 1.1em;
  color: white;
  text-decoration: none;
  text-shadow: 2px 2px 2px #121c26;
  transition: color 0.2s ease;
}

.navi-link::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 10px;
  height: 10px;
  background-color: white;
  border-radius: 50%;
  box-shadow: 2px 2px 4px #121c26;
  transition: all 0.2s ease;
}

.navi-link.active-nav::before {
  background-color: #24cac9;
  transform: translateY(-50%) scale(1.2);
}

.navi-link:hover {
  color: #24cac9;
}

/* ========================================
   HERO SECTION
   ======================================== */

#hero {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 80vh;
  width: 100%;
}

.name {
  position: absolute;
  margin-left: 348px;
  max-width: 50%;
  font-family: "Advent Pro";
  font-size: 2rem;
  font-weight: 600;
  color: white;
  text-shadow:
    1px 1px 0 #121c26,
    2px 2px 0 #121c26,
    3px 3px 0 #121c26,
    4px 4px 0 #121c26,
    5px 5px 0 #121c26;
  z-index: 2;
}

.title-wrapper {
  display: flex;
  align-items: baseline;
  gap: 40px;
  z-index: 2;
}

.developer {
  font-size: 5.5rem;
  font-family: "Courier Prime", Courier, monospace;
  font-weight: 400;
  color: white;
  text-shadow:
    1px 1px 0 #121c26,
    2px 2px 0 #121c26,
    3px 3px 0 #121c26,
    4px 4px 0 #121c26,
    5px 5px 0 #121c26;
}

.designer {
  font-size: 5rem;
  font-family: "Advent Pro";
  font-weight: 600;
  color: white;
  text-shadow:
    1px 1px 0 #121c26,
    2px 2px 0 #121c26,
    3px 3px 0 #121c26,
    4px 4px 0 #121c26,
    5px 5px 0 #121c26;
}

.slash-wrapper {
  position: absolute;
  top: 17%;
  left: 49%;
  z-index: -10;
}

.slash {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: none;
  text-align: center;
  font-family: "Rubik Mono One", sans-serif;
  font-size: 20vw;
  color: #121c26;
  z-index: -10;
  animation: float-dialed 6s ease-in-out infinite;
}

@keyframes float-dialed {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

/* ========================================
   SECTION HEADERS
   ======================================== */

#project-highlights-title,
#other-projects,
#technologies,
#about {
  font-family: "Advent Pro", sans-serif;
  text-align: center;
  margin-bottom: 30px;
  color: white;
}

/* ========================================
   PROJECT HIGHLIGHT CARDS
   ======================================== */

.card-wrapper-right,
.card-wrapper-left {
  position: relative;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
  margin-bottom: 80px;
  width: 100vw;
  height: 375px;
  display: flex;
}

.card-wrapper-right {
  justify-content: flex-end;
}

.card-wrapper-left {
  justify-content: flex-start;
}

.card-right,
.card-left {
  width: calc(50% + 500px);
  max-width: 100%;
  height: 375px;
  margin-bottom: 80px;
  box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.8);
}

.card-right {
  border-radius: 16px 0 0 16px;
}

.card-left {
  border-radius: 0 16px 16px 0;
}

.card-right-inner {
  display: flex;
  justify-content: flex-start;
  padding: 24px;
  border-radius: 16px 0 0 16px;
  background-image: linear-gradient(to right, #2a4257 25%, transparent 50%);
}

.card-left-inner {
  display: flex;
  justify-content: flex-end;
  padding: 24px;
  border-radius: 0 16px 16px 0;
  background-image: linear-gradient(to left, #2a4257 25%, transparent 50%);
}

.card-data-right {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  margin-left: 10px;
  height: 330px;
}

.card-data-left {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: space-between;
  margin-right: 10px;
  height: 330px;
  text-align: right;
}

.project-title {
  margin-bottom: 20px;
  font-family: "Advent Pro", sans-serif;
  font-size: 1.5em;
  font-weight: 600;
  color: white;
}

.project-description {
  width: 300px;
  font-size: 1em;
}

#card-one {
  background-image: url("../img/DFPhotoIMG.png");
  background-repeat: no-repeat;
  background-size: cover;
  background-position: bottom;
}

#card-two {
  background-image: url("../img/Pokemon.png");
  background-repeat: no-repeat;
  background-size: cover;
  background-position: bottom;
}

/* ========================================
   BUTTONS
   ======================================== */

a.btn {
  display: inline-block;
  align-items: center;
  justify-content: center;
  padding: 8px 35px;
  margin-top: 10px;
  border: none;
  border-radius: 8px;
  background-color: #545b83;
  font-family: "Advent Pro", sans-serif;
  font-weight: 800;
  color: white;
  text-decoration: none;
}

a.btn:hover {
  background-color: #27a0a6;
  color: white;
}

a.btn:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 3px;
}

/* ========================================
   FILTER MENU
   ======================================== */

#filter-menu ul {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px;
  margin: 20px auto;
  padding: 5px 30px;
  width: fit-content;
  background-color: #2a4257;
  border-radius: 40px;
  font-family: "Courier Prime", Courier, monospace;
  color: white;
  list-style: none;
}

.filter-btn {
  position: relative;
  padding: 5px 15px;
  background: none;
  border: none;
  font: inherit;
  color: inherit;
  cursor: pointer;
  z-index: 1;
}

.filter-item {
  flex-shrink: 0;
}

.filter-indicator {
  position: absolute;
  top: 5px;
  bottom: 5px;
  background-color: #27a0a6;
  border-radius: 20px;
  transition:
    left 0.35s ease,
    width 0.35s ease;
  z-index: 0;
}

/* ========================================
   OTHER PROJECTS GRID
   ======================================== */

.project-grid-wrapper {
  margin-bottom: 80px;
}

.project-grid {
  display: flex;
  justify-content: center;
}

.project-grid .row {
  display: flex;
  flex-wrap: wrap;
  width: 100%;
}

.push-intr-cards-down {
  max-width: 1000px;
}

.card {
  background-color: #ececec !important;
  border: 0 !important;
  box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.8);
  --bs-card-border-width: 0px !important;
  --bs-card-border-color: transparent !important;
}

.modal-title {
  width: 100%;
  font-family: "Advent Pro", sans-serif;
  font-weight: 600;
  text-align: center;
}

#modalDescription,
#infoModalLabel {
  color: #2a4257;
}

/* ========================================
   ABOUT SECTION
   ======================================== */

.about-wrapper {
  display: flex;
  justify-content: center;
}

.about-image {
  width: 400px;
  padding: 20px;
}

.custom-color {
  background-color: #2a4257 !important;
  box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.8);
}

.contact-info p {
  font-weight: 600;
}

.card-body a {
  color: white;
  text-decoration: underline;
  font-weight: 100;
}

.contact-info a:hover {
  color: rgba(255, 255, 255, 0.8);
}

/* ========================================
   GITHUB HEATMAP
   ======================================== */

.heatmap-wrapper img {
  max-width: 780px;
  width: 100%;
  filter: contrast(1.1) saturate(1.2);
  padding: 0 0 40px 0;
}

/* .calendar-row h6 {
  margin-top: 30px;
  font-size: 1.5em;
  color: white;
}

.heatmap-wrapper {
  display: flex;
  justify-content: center;
  width: 100%;
  padding: 20px;
}

.calendar-row {
  width: 90%;
  max-width: 900px;
}

.calendar-container {
  display: block;
  width: 100%;
  clear: both;
}

.calendar {
  display: block;
  margin: 0 auto;
  width: 100%;
  max-width: 780px;
  height: auto;
  min-height: 120px;
  border: none;
}

.calendar rect {
  width: 11px;
  height: 11px;
  rx: 2;
  ry: 2;
  fill: #242424;
  transition: fill 0.3s;
}

.calendar rect + rect {
  margin-left: 2px;
}

.calendar rect:hover {
  cursor: pointer;
  opacity: 0.8;
}

.calendar rect[data-level="0"] {
  fill: #242424;
}
.calendar rect[data-level="1"] {
  fill: #1b6f73;
}
.calendar rect[data-level="2"] {
  fill: #25989e;
}
.calendar rect[data-level="3"] {
  fill: #30c0c8;
}
.calendar rect[data-level="4"] {
  fill: #3df5ff;
}

.calendar text,
.calendar span {
  font-family: "Courier Prime", monospace !important;
  font-size: 0.6em;
  color: white !important;
  fill: white !important;
}

.calendar-footer {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 8px;
  margin-top: 10px;
  font-family: sans-serif;
  font-size: 12px;
  color: #8b949e;
}

.legend-svg {
  display: inline-block;
  width: 70px;
  height: 11px;
}

.legend-svg rect {
  width: 11px;
  height: 11px;
  rx: 2;
} */

/* Duplicate rect styling for specificity */
rect[data-level="0"] {
  fill: #242424;
}
rect[data-level="1"] {
  fill: #1b6f73;
}
rect[data-level="2"] {
  fill: #25989e;
}
rect[data-level="3"] {
  fill: #30c0c8;
}
rect[data-level="4"] {
  fill: #3df5ff;
}

/* ========================================
   FOOTER
   ======================================== */

footer {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100px;
  width: 100%;
}

.footer-wrapper {
  text-align: center;
}

/* ========================================
   MEDIA QUERIES - MOBILE
   ======================================== */

@media (max-width: 1100px) {
  /* Layout */
  .page {
    position: static;
    padding-inline: 16px;
    max-width: 100%;
    z-index: auto;
    background: transparent;
  }

  .background-clip-container {
    position: absolute;
    inset: 0;
    z-index: 0 !important;
    pointer-events: none;
  }

  /* Background */

  .tier-one {
    top: 40px;
    height: 981px;
    z-index: -1;
  }

  .tier-two {
    top: 470px;
    height: 1878px;
    background-image: url("../img/BigWave02.png");
  }

  .tier-three {
    top: 6200px;
    height: 3403px;
    background-image: url("../img/BigWave03.png");
  }

  /* Navigation */
  .site-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    transform: none;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100vw;
    max-width: 100vw;
    padding: 15px 0;
    background-color: rgba(18, 28, 38, 0.95);
    pointer-events: none;
  }

  .site-nav__inner {
    display: flex;
    justify-content: center;
    width: 100%;
    max-width: 100%;
    padding-left: 0;
  }

  nav ul {
    flex-direction: row;
    justify-content: center;
    flex-wrap: wrap;
    gap: 15px;
    width: auto;
    max-width: 100%;
  }

  .navi-link {
    padding-left: 15px;
    font-size: 0.9em;
    pointer-events: auto;
  }

  section[id] {
    scroll-margin-top: 100px;
  }

  /* Button */
  a.btn:hover,
  a.btn:active {
    background-color: #27a0a6 !important;
    color: white !important;
    transform: scale(0.98);
  }

  /* Hero Section */

  .hero-wrapper {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    z-index: 1;
  }

  #hero {
    min-height: 60vh;
    padding: 20px;
    background: transparent !important;
    z-index: 10;
    position: relative;
  }

  .name,
  .title-wrapper {
    position: relative;
    z-index: 100 !important;
  }

  .title-wrapper {
    flex-direction: column;
    align-items: center;
    gap: 10px;
    text-align: center;
    width: 100%;
  }

  .name {
    position: relative;
    margin-left: 0;
    margin-bottom: 20px;
    max-width: 100%;
    width: 100%;
    text-align: center;
    font-size: 1.5rem;
  }

  .name,
  .designer,
  .developer {
    position: relative !important;
    z-index: 999 !important;
    pointer-events: none;
  }

  .designer,
  .developer {
    font-size: 3.5rem;
    width: 100%;
  }

  .slash-wrapper {
    position: absolute;
    top: -7%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    pointer-events: none;
    z-index: 50 !important;
  }

  .slash {
    z-index: 50 !important;
    position: relative;
    left: auto;
    transform: none;
    color: rgba(39, 80, 117, 1);
    font-size: 18em;
    line-height: 1;
    margin: 0;
    animation: float-dialed 6s ease-in-out infinite;
  }

  /* Filter */
  #filter-menu ul {
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    padding: 15px 20px;
    width: 100%;
    border-radius: 15px;
  }

  #filter-menu li {
    display: inline-flex;
  }

  .filter-btn {
    font-size: 0.9rem;
    padding: 5px 10px;
  }

  .filter-indicator {
    display: none;
  }

  .filter-btn.active {
    background-color: #27a0a6;
    border-radius: 20px;
    color: white;
  }

  /* Project Cards */
  .card-wrapper-right,
  .card-wrapper-left {
    flex-direction: column;
    width: 100%;
    max-width: 100%;
    height: auto;
    margin: 0 0 1px 0;
    left: 0;
    right: 0;
    position: relative;
    transform: none;
    border: none;
    padding: 15px;
  }

  .card-right,
  .card-left {
    width: 100%;
    max-height: 400px;
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 20px;
  }

  .card-right-inner,
  .card-left-inner {
    background-color: rgba(18, 28, 38, 0.3);
    align-items: center;
    justify-content: center;
    text-align: center;
    background-image: none;
    padding: 20px;
  }

  .card-data-right,
  .card-data-left {
    align-items: center;
    margin: 0;
    width: 100%;
    height: auto;
    text-align: center;
    text-shadow: 2px 2px #080c11;
  }

  .project-description {
    width: 100%;
    max-width: 100%;
  }

  /* About Section */
  .about-wrapper {
    flex-direction: column;
    align-items: center;
  }

  .about-image {
    width: 100%;
    max-width: 300px;
  }

  .calendar-row {
    width: 100%;
    overflow-x: auto;
  }

  .calendar text {
    font-size: 10px !important;
  }

  /* Footer */
  .footer-wrapper {
    width: 80%;
  }
}
