@import url("https://fonts.googleapis.com/css2?family=Quicksand:wght@400;600&display=swap");

html {
  scroll-behavior: smooth;
}

.body {
  background-color: rgb(0, 0, 0);
  color: white;
  font-family: "Quicksand", system-ui, -apple-system, sans-serif;
  margin: 0;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
}

::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background: rgba(255, 167, 4, 0.5);
  border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 167, 4, 0.8);
}

#home {
  background-image: url(pics/SpectrumFlip.png);
  background-repeat: no-repeat;
  background-size: 160% 100%;
  background-position: right;
  width: 100%;
  min-height: 100vh;
  position: relative;
}

.center {
  display: grid;
  grid-template-columns: 2fr 3fr;
  height: 100vh;
}

.header {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  margin-left: 5rem;
  gap: 1rem;
  /* border: 1px dashed red; */
}

.learn-more {
  position: absolute;
  left: 50%;
  bottom: 2rem;
  display: flex;
  flex-direction: column;
  text-decoration: none;
  align-items: center;
  color: rgba(255, 255, 255, 0.5);
  opacity: 1;

  transform: translateX(-50%);
  transition: transform 0.2s ease, opacity 0.15s linear;
}

.learn-more:hover {
  transform: translateX(-50%) scale(1.2);
}

.chevron {
  width: 30px;
  height: 30px;
  fill: currentColor;
  animation: bounce 3s infinite;
}

.about-me {
  display: grid;
  grid-template-columns: 1fr 2fr;
  align-items: center;
  font-size: 1.5rem;
  line-height: 2.5rem;
  gap: 5rem;
  margin: 0rem 3rem;
  padding: 15rem 8rem;
  /* border: 1px dashed red; */
}

.description {
  margin-left: 5rem;
  font-size: clamp(1rem, 1.5vw, 2.5rem);
}

.description h2 {
  font-size: clamp(2rem, 3vw, 4rem);
}

.profile-wrap {
  position: relative;
  width: clamp(180px, 26vw, 600px);
  height: auto;
  /* border: 1px dashed red; */
}

.profile-pic {
  max-width: 100%;
  width: clamp(180px, 26vw, 600px);
  height: auto;
  object-fit: cover;
  border-radius: 50%;
  transform: none;
  z-index: 1;
}

.ring {
  position: absolute;
  max-width: 100%;
  width: clamp(180px, 26vw, 600px);
  height: clamp(180px, 26vw, 600px);
  z-index: 0;
  inset: 0;
  border-radius: 50%;
}

.inner-ring {
  position: absolute;
  inset: 0;
  border: 3px solid currentColor;
  border-radius: 50%;
  transform-origin: center;
  transform: scale(1);
  animation: rings 2s ease-in-out infinite;
  animation-play-state: paused;
  transition: transform 0.2s ease;
}

.profile-wrap:hover .inner-ring {
  animation-play-state: running;
}

.profile-wrap:not(:hover) .inner-ring {
  animation: none;
  transform: scale(1);
}

.ring-1 {
  transform: scale(1.04);
  color: rgb(72, 72, 255);
}
.ring-2 {
  transform: scale(1.08);
  color: rgb(46, 227, 255);
}
.ring-3 {
  transform: scale(1.12);
  color: rgb(255, 255, 255);
}
.ring-4 {
  transform: scale(1.16);
  color: rgb(253, 212, 76);
}
.ring-5 {
  transform: scale(1.2);
  color: rgb(237, 135, 11);
}
.ring-6 {
  transform: scale(1.24);
  color: rgb(212, 33, 33);
}

.ring-1 .inner-ring {
  animation-delay: 0s;
}
.ring-2 .inner-ring {
  animation-delay: 0.15s;
}
.ring-3 .inner-ring {
  animation-delay: 0.3s;
}
.ring-4 .inner-ring {
  animation-delay: 0.45s;
}
.ring-5 .inner-ring {
  animation-delay: 0.6s;
}
.ring-6 .inner-ring {
  animation-delay: 0.75s;
}

footer {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin: 8rem 0 3rem;
  gap: 1rem;
}

.repo-link {
  text-decoration: none;
  color: rgba(255, 255, 255, 0.3);
  transition: transform 0.2s ease-in-out;
}

.repo-link:hover {
  transform: scale(1.2);
  background: linear-gradient(
    90deg,
    #bd1707 0%,
    #d56021 35%,
    #ffd27d 50%,
    #d56021 65%,
    #bd1707 100%
  );
  background-size: 300% 100%;
  background-position: 300% 50%;
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
  font-weight: bold;
  animation: title-glow 8s linear infinite;
  will-change: text-shadow, background-position;
  cursor: pointer;
}

.social-link {
  width: 30px;
  height: 30px;
  fill: currentColor;
  transition: transform 0.2s ease;
}

.social-links {
  display: flex;
  flex-direction: row;
  align-items: center;
  color: rgba(255, 255, 255, 0.3);
  gap: 2rem;
}

.social-link:hover {
  transform: scale(1.3);
  color: rgba(237, 135, 11);
}

.nav-bar {
  background-color: rgba(40, 40, 40, 0.4);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  width: 100vw;
  align-items: center;
  position: fixed;
  top: 0px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.5);
  transition: transform 0.6s ease-in-out;
  z-index: 2;
}

.nav-bar.hide {
  transform: translateY(-100%);
}

.main-links {
  display: flex;
  justify-content: right;
  align-items: center;
  gap: clamp(0.5rem, 3vw, 2rem);
  padding: 0.5rem 4rem;
}

.main-link-btn {
  font-size: 0.8rem;
  text-decoration: none;
  color: white;
  letter-spacing: 0.2rem;
}

.main-link-btn:hover {
  text-decoration: underline;
}

.logo {
  background-image: url(pics/Eclipse\ Logo.png);
  background-size: cover;
  display: flex;
  height: 70px;
  width: 70px;
  border-radius: 50%;
  margin-right: auto;
  transition: filter 0.2s ease;
}

.logo:hover {
  cursor: pointer;
  filter: drop-shadow(0 0px 15px rgba(255, 255, 255, 0.45));
  box-sizing: border-box;
}

.intro {
  font-size: clamp(0.7rem, 2vw, 1rem);
  position: relative;
  top: 1.5rem;
  right: 12.7rem;
  justify-self: start;
  gap: clamp(-7ch, -6vw, -4ch);
  margin: 0;
  padding: 0;
  cursor: default;
}

.me {
  font-size: clamp(3rem, 9vw, 5rem);
  padding: 0;
  margin: 0;
  cursor: default;
  /* border: 1px dashed red; */
}

.my-title {
  font-size: clamp(2rem, 5.5vw, 3.5rem);
  margin: 0 0 4rem 0;
  background: linear-gradient(
    90deg,
    #bd1707 0%,
    #d56021 35%,
    #ffd27d 50%,
    #d56021 65%,
    #bd1707 100%
  );
  background-size: 300% 100%;
  background-position: 300% 50%;
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
  font-weight: bold;
  transition: opacity 250ms ease;
  animation: title-glow 8s linear infinite;
  will-change: text-shadow, background-position;
  cursor: default;
  /* border: 1px dashed red; */
}

.my-title.is-fading {
  opacity: 0;
}

#portfolio {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
}

.resume {
  text-decoration: none;
  font-size: 1.2rem;
  color: rgba(255, 255, 255, 0.3);
  transition: transform 0.3s ease;
  margin-top: 2rem;
}

.resume:hover {
  transform: scale(1.2);
  color: rgba(237, 135, 11);
}

h1 {
  font-size: 3.5rem;
  background: linear-gradient(
    90deg,
    #bd1707 0%,
    #d56021 35%,
    #ffd27d 50%,
    #d56021 65%,
    #bd1707 100%
  );
  background-size: 300% 100%;
  background-position: 300% 50%;
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
  font-weight: bold;
  animation: title-glow 8s linear infinite;
  will-change: text-shadow, background-position;
  cursor: default;
}

.btn {
  border: 0;
  border-radius: 5rem;
  height: 4rem;
  width: clamp(8rem, 15vw, 10rem);
  background-color: rgba(72, 72, 72, 0.8);
  color: white;
  font-size: 1.5rem;
  letter-spacing: 0.2rem;
  font: inherit;
  transition: 0.2s ease-in-out;
  cursor: pointer;
}

.btn:hover {
  opacity: 80%;
  transform: scale(1.1);
}

.btn:active {
  background-color: rgb(255, 167, 4, 0.738);
  transition: 0s;
}

.card-list {
  display: flex;
  /* border: 1px dashed red; */
}

.card {
  background-color: rgba(72, 72, 72, 0.4);
  border-radius: 10px;
  padding: 1rem;
  margin: 1rem;
  color: white;
  text-decoration: none;
  width: clamp(300px, 22vw, 500px);
  display: flex;
  flex-direction: column;
  justify-items: center;
  align-items: center;
  overflow: hidden;
  transition: transform 0.4s ease, box-shadow 0.2s ease, opacity 0.2s ease;
}

.card:hover {
  box-shadow: 0 0px 25px rgba(255, 167, 4, 0.8);
  transform: scale(1.1);
}

.card-list:hover .card:not(:hover) {
  transform: scale(0.9);
  opacity: 0.7;
}

.card h2 {
  text-align: center;
  text-wrap: balance;
  letter-spacing: 0.2rem;
  font-weight: 300;
  padding: 1rem;
}

.card-link:hover {
  text-decoration: underline;
}

#art {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
}

.grid-container {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.5rem;
  width: 900px;
}

.grid-item {
  aspect-ratio: 1;
  border-radius: 10px;
  transition: transform 0.3s ease;
  transform-origin: center;
  box-shadow: 0px 0px 15px rgba(255, 167, 4, 0.8);
}

.item-1 {
  background-image: url(pics/Stare-Down-Redux-thumbnail.jpg);
  background-size: cover;
}

.item-2 {
  background-image: url(pics/2022-thumbnail.jpg);
  background-size: cover;
}

.item-3 {
  background-image: url(pics/Annex-thumbnail.jpg);
  background-size: cover;
}

.item-4 {
  background-image: url(pics/Angel-thumbnail.jpg);
  background-size: cover;
}

.item-5 {
  background-image: url(pics/Zero-Attack-Fire-thumbnail.jpg);
  background-size: cover;
}

.item-6 {
  background-image: url(pics/Infinity-thumbnail.jpg);
  background-size: cover;
}

.grid-item:hover {
  transform: scale(1.25);
  z-index: 1;
}

.grid-container:hover .grid-item:not(:hover) {
  transform: scale(0.9);
}

#contact {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 5rem 0 0 0;
  min-height: 100vh;
  scroll-margin-top: -80px;
  justify-content: flex-start;
  /* border: 1px dashed red; */
}

.contact-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
}

.contact-content h2 {
  font-size: 3rem;
  margin-bottom: 0;
}

footer {
  margin: 0;
  padding: 2rem;
}

.contact-form {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin-top: 2rem;
  width: 50vw;
  max-width: 800px;
}

.input-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  width: 100%;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  border: none;
  padding: 1.5rem;
  box-sizing: border-box;
}

.contact-form input {
  border-radius: 5rem;
  background-color: rgba(72, 72, 72, 0.6);
  height: 0.5rem;
  font: inherit;
  transition: 0.2s ease-in-out;
}

input:focus {
  outline: none;
  background-color: rgba(78, 63, 36, 0.6);
  border: 2px solid rgba(255, 191, 72, 1);
  box-shadow: 0px 0px 15px rgba(255, 167, 4, 0.8);
  color: white;
}

textarea {
  background-color: rgba(72, 72, 72, 0.6);
  border-radius: 10px;
  margin: 1rem 0rem;
  font: inherit;
  resize: vertical;
  transition: 0.2s ease-in-out;
}

textarea:focus {
  outline: none;
  background-color: rgba(78, 63, 36, 0.6);
  border: 2px solid rgba(255, 191, 72, 1);
  box-shadow: 0px 0px 15px rgba(255, 167, 4, 0.8);
  color: white;
}

@keyframes title-glow {
  0% {
    background-position: 300% 50%;
    text-shadow: 0 0 8px rgba(255, 167, 4, 0.15);
  }
  35% {
    text-shadow: 0 0 28px rgba(255, 167, 4, 0.85);
  }
  50% {
    background-position: 150% 50%;
    text-shadow: 0 0 8px rgba(255, 167, 4, 0.15);
  }
  85% {
    text-shadow: 0 0 28px rgba(255, 167, 4, 0.85);
  }
  100% {
    background-position: 0% 50%;
    text-shadow: 0 0 8px rgba(255, 167, 4, 0.15);
  }
}

@keyframes bounce {
  0% {
    transform: translateY(0px);
  }
  20% {
    transform: translateY(10px);
  }
  40%,
  100% {
    transform: translateY(0px);
  }
}

@keyframes rings {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
  100% {
    transform: scale(1);
  }
}

@media (max-width: 1200px) {
  #home {
    background-size: 200% 100%;
  }

  .center {
    grid-template-columns: 1fr 3fr;
    justify-content: left;
  }

  .header {
    align-items: left;
    margin-left: 2rem;
  }

  .my-title {
    text-align: left;
  }

  .about-me {
    padding: 15rem 3rem;
  }

  .description {
    margin-left: 1rem;
  }

  .card-list {
    flex-direction: column;
    align-items: center;
  }

  .card {
    width: 60vw;
  }

  .contact-form {
    width: 85vw;
  }

  .input-row {
    display: flex;
    flex-direction: column;
  }
}

@media (max-width: 800px) {
  #home {
    background-image: none;
  }

  body {
    max-width: 100%;
    overflow-x: hidden;
  }

  .center {
    grid-template-columns: 1fr;
  }

  .header {
    margin: auto;
  }

  .logo {
    margin-top: 1rem;
    margin-right: 0;
  }

  .main-links {
    gap: 1.5rem;
  }

  .nav-bar {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    top: 60%;
    right: 25px;
    bottom: 0px;
    width: 22vw;
    border-radius: 50px 50px 0 0;
    transition: transform 0.6s ease-in-out, background 0.6s ease-in-out;
  }

  .nav-bar.hide {
    transform: translateY(65%);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    background: none;
    box-shadow: none;
  }

  .about-me {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 8rem 1rem;
  }

  .intro {
    right: 7.1rem;
  }

  .main-links {
    flex-direction: column;
    align-items: center;
  }

  .contact-content p {
    text-align: center;
    text-wrap: balance;
  }

  .grid-container {
    grid-template-columns: repeat(2, 1fr);
    width: 380px;
  }

  input {
    width: 75vw;
  }

  textarea {
    width: 85vw;
  }
}
