:root {
  --gray-50: #fafafa;
  --gray-100: #f4f4f5;
  --gray-200: #e4e4e7;
  --gray-300: #d4d4d8;
  --gray-400: #a1a1aa;
  --gray-500: #71717a;
  --gray-600: #52525b;
  --gray-700: #3f3f46;
  --gray-800: #27272a;
  --gray-900: #18181b;
  --gray-950: #09090b;
  --blue-50: #e8f4ff;
  --blue-100: #d4ebff;
  --blue-200: #b2d8ff;
  --blue-300: #84bbff;
  --blue-400: #548fff;
  --blue-500: #2e63ff;
  --blue-600: #0a32ff;
  --blue-700: #0128ff;
  --blue-800: #0528d6;
  --blue-900: #0f2ba0;
  --blue-950: #09175d;
  --pink-50: #fdf2fa;
  --pink-100: #fce7f8;
  --pink-200: #fccef2;
  --pink-300: #fba6e7;
  --pink-400: #f670d4;
  --pink-500: #ef45bf;
  --pink-600: #de24a0;
  --pink-700: #c11582;
  --pink-800: #a0146c;
  --pink-900: #791453;
  --pink-950: #510635;

  font-family: "Barlow Semi Condensed", Inter, system-ui, Avenir, Helvetica,
    Arial, sans-serif;
  font-weight: 300;

  color-scheme: light dark;
  color: var(--gray-200);
  background-color: var(--gray-900);

  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
html {
  scroll-behavior: smooth;
}
h3 {
  font-size: 2rem;
}
.section-heading {
  position: absolute;
  top: -3rem;
  text-transform: uppercase;
  font-weight: 900;
  font-size: 3.2rem;
  letter-spacing: 2px;
}
p {
  font-size: 1.5rem;
  line-height: 1.6;
  margin-bottom: 1rem;
}
ul {
  list-style: none;
  margin-bottom: 1rem;
  padding-left: 1rem;
  border-left: 5px solid;
  border-image: linear-gradient(180deg, var(--blue-600), var(--pink-600)) 1;
}
li {
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
}

strong {
  font-weight: 700;
}
img {
  max-width: 100%;
  height: auto;
}
a:not(.btn) {
  cursor: pointer;
  text-decoration: none;
  background: linear-gradient(90deg, var(--blue-700), var(--pink-700));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  color: transparent;
  border-bottom: 2px solid transparent;
}
a:not(.btn):hover {
  border-bottom: 2px solid;
  border-image: linear-gradient(90deg, var(--blue-600), var(--pink-600)) 1;
}
a.light:not(.btn) {
  background: linear-gradient(90deg, var(--blue-400), var(--pink-400));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  color: transparent;
}
.btn {
  display: flex;
  gap: 0.7rem;
  justify-content: center;
  align-items: center;
  width: fit-content;
  padding: 0.5rem 1rem;
  margin: 1rem;
  background: unset;
  border: 1px solid var(--gray-200);
  color: var(--gray-100);
  border-radius: 0.4rem;
  text-transform: uppercase;
  text-decoration: none;
  font-weight: 700;
  font-size: 1.2rem;
  transition: all 0.3s ease;
}
.btn:hover,
.btn:focus {
  animation: glowing-btn 3s ease infinite;
}
.btn:focus {
  outline: 2px solid var(--pink-600);
  outline-offset: -1px;
}
.btn.pink {
  color: var(--pink-700);
  border: 2px solid var(--pink-600);
}
.btn.pink:hover,
.btn.pink:focus {
  animation: glowing-btn-pink 3s ease infinite;
}
.btn.blue {
  color: var(--blue-700);
  border: 2px solid var(--blue-600);
}
.btn.blue:hover,
.btn.blue:focus {
  animation: glowing-btn-blue 3s ease infinite;
}

/** NAVIGATION **/
nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  width: 100%;
  padding: 1rem;
  position: fixed;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  backdrop-filter: blur(10px);
  z-index: 1000;
}
@media (min-width: 768px) {
  nav {
    justify-content: space-between;
  }
}
nav a:not(.btn) {
  background: unset;
  -webkit-background-clip: unset;
  -webkit-text-fill-color: unset;
  background-clip: unset;
  text-decoration: none;
  color: white;
  border-radius: 0.3rem;
  padding: 0.25rem 0.5rem;
  transition: color 0.3s ease-in-out;
}
nav a:not(.btn):focus {
  outline: 1px solid var(--pink-600);
  outline-offset: 3px;
}
a.home-link {
  font-size: 1.5rem;
  font-weight: 700;
  text-transform: uppercase;
}
.nav-links {
  display: flex;
  gap: 1rem;
  font-size: 1.2rem;
  font-weight: 500;
}
.project-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1400px;
  margin: 6rem auto 0 auto;
}
.next-link {
  text-align: right;
}

/** INTRO **/
.intro-section {
  min-height: 99vh;
  padding-bottom: 3rem;
  background-color: var(--blue-950);
  background: linear-gradient(0deg, var(--gray-950) 0%, var(--blue-900) 100%);
}
.intro-grid {
  display: flex;
  flex-direction: column;
  padding-top: 5rem;
}
.hello {
  margin: 2rem;
  text-align: center;
  font-size: 4rem;
  font-family: "Codystar", sans-serif;
  font-weight: 400;
  font-style: normal;
  animation: glowing-text 3s ease infinite;
}
.profile-image {
  border-radius: 50%;
  max-width: 250px;
  margin: 0 auto 0 auto;
  box-shadow: 1px 7px 15px 5px #00000057;
}
.intro-text {
  font-size: 1.5rem;
  font-weight: 100;
  margin: 2rem;
  text-align: center;
}
@media (min-width: 768px) {
  .intro-grid {
    display: grid;
    grid-template-columns: 4fr 6fr;
    grid-template-rows: auto auto;
    grid-template-areas:
      "hello image"
      "buttons intro";
    max-width: 1222px;
    margin: 0 auto;
    padding-top: 25vh;
  }
  .hello {
    grid-area: hello;
    text-align: right;
    margin: 0;
    font-size: 4rem;
  }
  .profile-image {
    margin: -132px 0 -60px -20px;
  }
  .intro-text {
    position: relative;
    grid-area: intro;
    margin: 0;
    margin-right: 2rem;
    font-size: 2rem;
    line-height: 1.4;
    text-align: left;
  }
  .intro-text span {
    position: absolute;
    left: -4rem;
  }
  .intro-text:first-line,
  .intro-text span {
    font-size: 3rem;
  }
}
@media (min-width: 1024px) and (min-height: 820px) {
  .intro-grid {
    padding-top: 35vh;
  }
}

/** PROJECTS SECTION **/
.projects-section {
  position: relative;
  background-color: var(--gray-200);
  color: var(--gray-800);
  padding: 4rem 2rem;
}
.projects-section .section-heading {
  color: var(--gray-200);
}
@media (min-width: 1600px) {
  .projects-section .section-heading {
    left: 20%;
  }
}
.projects-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  padding: 2rem;
  max-width: 1400px;
  margin: auto;
}
.project-tile {
  text-align: center;
  transform: scale(1);
  filter: brightness(1);
  transition: all 0.3s ease;
  margin: 1rem;
}
.project-tile:hover {
  transform: scale(1.1);
  filter: brightness(1.3);
}
.project-tile:focus {
  transform: scale(1.1);
  filter: brightness(1);
  outline: 2px solid var(--pink-600);
  outline-offset: 0;
}
.project-heading {
  margin-top: 1rem;
  text-transform: uppercase;
}
@media (min-width: 768px) {
  .projects-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}
@media (min-width: 1024px) {
  .projects-grid {
    gap: 3rem;
  }
}

/** ABOUT SECTION **/
.about-section {
  position: relative;
  padding: 4rem 2rem 6rem 2rem;
}
.about-section .section-heading {
  color: var(--gray-900);
  right: 16%;
}
@media (min-width: 1600px) {
  .about-section .section-heading {
    right: 20%;
  }
}
.about-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  padding: 2rem;
  max-width: 1400px;
  margin: auto;
}
.about-ctas {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  justify-content: space-evenly;
  height: 100%;
}
.about-links .btn {
  margin: 1rem auto;
}
@media (min-width: 1200px) {
  .about-section .project-tile {
    margin: 4rem;
  }
}

@media (min-width: 768px) {
  .about-grid {
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
  }
  .about-ctas {
    grid-column: 1;
    grid-row: 1;
  }
  .about-text {
    grid-column: 2;
  }
}
@media (min-width: 1200px) {
  .about-grid {
    grid-template-columns: 2fr 1fr;
    gap: 6rem;
  }
}

/** REVIEWS SECTION **/
.reviews-section {
  position: relative;
  padding: 6rem 2rem 8rem 2rem;
  background: url("../public/fluid-light.jpg");
  background-size: cover;
  background-position: center;
}
.reviews-section .section-heading {
  background: url("../public/fluid-light.jpg") no-repeat center center;
  background-size: auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  color: transparent;
  top: -3.1rem;
  left: 50%;
  translate: -50%;
}
.reviews-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  padding: 2rem;
  max-width: 1400px;
  margin: auto;
}
.reviews-flex {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  max-width: 1400px;
  margin: auto;
}
.review {
  flex: 1 1 300px;
  backdrop-filter: blur(15px);
  background-color: rgba(255, 255, 255, 0.3);
  color: var(--gray-600);
  padding: 2rem;
  border-radius: 0.5rem;
  border: 1px solid var(--gray-200);
  font-weight: 400;
}
@media (min-width: 768px) {
  .reviews-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (min-width: 1024px) {
  .reviews-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 3rem;
  }
}

/** CONTACT SECTION **/
.contact-section {
  position: relative;
  padding: 4rem 2rem;
}
.contact-section .section-heading {
  color: var(--gray-900);
  left: 15%;
}
@media (min-width: 1600px) {
  .contact-section .section-heading {
    left: 20%;
  }
}
.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 4rem;
  padding: 2rem;
  max-width: 1400px;
  margin: auto;
}
@media (min-width: 768px) {
  .contact-grid {
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
  }
}
.contact-form {
  display: flex;
  flex-direction: column;
}
label {
  font-size: 1.5rem;
  margin: 2rem 0 0.25rem 1rem;
}
input,
textarea {
  padding: 0.75rem;
  font-size: 1.2rem;
  background-color: var(--gray-800);
  border: 1px solid var(--gray-600);
  border-radius: 0.4rem;
}
input:focus,
textarea:focus {
  outline: 2px solid var(--pink-600);
  outline-offset: -1px;
}
button[type="submit"] {
  margin: 2rem 0 0 0;
}
#form-status {
  min-height: 3rem;
  margin: 1rem 0;
}
.contact-links > * {
  text-align: center;
  margin: 1rem auto;
}

/** PROJECT PAGES **/
.project-page {
  position: relative;
  padding: 2rem;
  max-width: 1400px;
  margin: 2rem auto;
  background: var(--gray-200);
  color: var(--gray-800);
}
.project-page-heading {
  position: absolute;
  top: -1.9rem;
  left: 0;
  width: 100%;
  text-align: center;
  color: var(--gray-200);
}
.project-page-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  padding: 1rem;
}
@media (min-width: 1024px) {
  .project-page-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
  }
}
.project-info h2 {
  font-size: 1.8rem;
  margin-bottom: 0.5rem;
}
.project-links {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  margin-bottom: 1rem;
}
@media (min-width: 768px) {
  .project-links {
    flex-direction: row;
    gap: 1rem;
  }
}

/** YUMBLE PROJECT PAGE **/
.yumble-images-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}
@media (min-width: 768px) {
  .yumble-images-grid {
    grid-template-columns: 1fr 1fr;
  }
}
.yumble-images-1-2 {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

/** TRIVIAI PROJECT PAGE **/
.triviai-images-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}
@media (min-width: 768px) {
  .triviai-images-grid {
    grid-template-columns: 1fr 1fr 1fr;
  }
  .triviai-image-2 {
    margin-top: 4rem;
  }
  .triviai-image-3 {
    margin-top: 8rem;
  }
}

/** FLASH FOCUS PROJECT PAGE **/
.flash-focus-images-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  height: min-content;
}
@media (min-width: 768px) {
  .flash-focus-images-grid {
    grid-template-columns: 3fr 1fr 3fr;
    grid-template-rows: 4fr 1fr 4fr;
  }
  .flash-focus-image-1 {
    grid-column: 1 / 3;
    grid-row: 1 / 2;
  }
  .flash-focus-image-2 {
    grid-column: 3 / 4;
    grid-row: 1 / 3;
  }
  .flash-focus-image-3 {
    grid-column: 1 / 2;
    grid-row: 2 / 4;
    align-self: end;
  }
  .flash-focus-image-4 {
    grid-column: 2 / 4;
    grid-row: 3 / 4;
    align-self: end;
  }
}

/** ANIMATIONS **/
.slide-up {
  opacity: 0;
  transition: opacity 0.5s ease-out, transform 0.5s ease-out;
}
.slide-up.visible {
  animation: slideUp 0.5s forwards 0.4s;
}
.slide-left {
  opacity: 0;
  transition: opacity 0.5s ease-out, transform 0.5s ease-out;
}
.slide-left.visible {
  animation: slideLeft 0.5s forwards;
}
.slide-right {
  opacity: 0;
  transition: opacity 0.5s ease-out, transform 0.5s ease-out;
}
.slide-right.visible {
  animation: slideRight 0.5s forwards;
}
.slide-down {
  opacity: 0;
  transition: opacity 0.5s ease-out, transform 0.5s ease-out;
}
.slide-down.visible {
  animation: slideDownBounce 0.8s cubic-bezier(0.68, -0.55, 0.27, 1.55) forwards;
}
.scale-in {
  opacity: 0;
  transition: opacity 0.5s ease-out, transform 0.5s ease-out;
}
.scale-in.visible {
  animation: scaleIn 0.5s forwards 0.4s;
}
#confettiCanvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

@keyframes glowing-text {
  0% {
    text-shadow: 0 0 10px var(--gray-300), 0 0 20px var(--gray-300),
      0 0 30px var(--gray-300), 0 0 40px var(--gray-300),
      0 0 70px var(--gray-300), 0 0 80px var(--gray-300);
  }
  50% {
    text-shadow: 0 0 5px var(--gray-300), 0 0 10px var(--gray-300),
      0 0 15px var(--gray-300), 0 0 20px var(--gray-300),
      0 0 35px var(--gray-300), 0 0 40px var(--gray-300),
      0 0 50px var(--gray-300);
  }
  100% {
    text-shadow: 0 0 10px var(--gray-300), 0 0 20px var(--gray-300),
      0 0 30px var(--gray-300), 0 0 40px var(--gray-300),
      0 0 70px var(--gray-300), 0 0 80px var(--gray-300);
  }
}

@keyframes glowing-btn {
  0% {
    box-shadow: 0 0 20px var(--gray-500);
  }
  50% {
    box-shadow: 0 0 7px var(--gray-500);
  }
  100% {
    box-shadow: 0 0 14px var(--gray-500);
  }
}

@keyframes glowing-btn-pink {
  0% {
    box-shadow: 0 0 20px var(--pink-300);
  }
  50% {
    box-shadow: 0 0 7px var(--pink-300);
  }
  100% {
    box-shadow: 0 0 14px var(--pink-300);
  }
}

@keyframes glowing-btn-blue {
  0% {
    box-shadow: 0 0 20px var(--blue-300);
  }
  50% {
    box-shadow: 0 0 7px var(--blue-300);
  }
  100% {
    box-shadow: 0 0 14px var(--blue-300);
  }
}

@keyframes slideUp {
  from {
    transform: translateY(50px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

@keyframes slideLeft {
  from {
    transform: translateX(50px);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}
@keyframes slideRight {
  from {
    transform: translateX(-50px);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

@keyframes slideDownBounce {
  0% {
    transform: translateY(-100px);
    opacity: 0;
  }
  60% {
    transform: translateY(20px);
    opacity: 1;
  }
  80% {
    transform: translateY(-10px);
    opacity: 1;
  }
  100% {
    transform: translateY(0);
    opacity: 1;
  }
}

@keyframes scaleIn {
  from {
    transform: scale(0.5);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}
