@font-face {
  font-family: "Slasher Film";
  src: url("/assets/fonts/SlasherFilm-ALyOA.woff2") format("woff2");
  font-display: swap;
}

@font-face {
  font-family: "Cormorant Garamond";
  src: url("/assets/fonts/CormorantGaramond-Regular.woff2") format("woff2");
  font-display: swap;
}

@font-face {
  font-family: "Poppins";
  src: url("/assets/fonts/Poppins-Regular.woff2") format("woff2");
  font-display: swap;
}

:root {
  --secondary: #ddd8cb;
  --primary: #141414;
  --accent: pink;
  --eggshell: #f4f1eb;
  --card-text: #191919;

  --ticker-height: 2rem;
  --transition-duration: 1000ms;
  --transition-delay: 1000ms;
}

* {
  box-sizing: border-box;
  scroll-behavior: smooth;
}

/*~~~~~~~~~~SCROLLBAR~~~~~~~~~~*/

/* Firefox */
* {
  scrollbar-width: auto;
  scrollbar-color: var(--secondary) var(--primary);
}

/* Chrome, Edge, and Safari */
*::-webkit-scrollbar {
  width: 10px;
}

*::-webkit-scrollbar-track {
  background: var(--primary);
}

*::-webkit-scrollbar-thumb {
  background-color: var(--secondary);
  border-radius: 10px;
  border: 3px solid var(--primary);
}

/*~~~~~~~~~~MAIN PAGE CODE BEGIN~~~~~~~~~~*/

body {
  background-color: var(--primary);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  margin: 0;
  overflow-x: hidden;
  /* min-height: 100vh; */
  min-height: 100dvh;
  color: var(--secondary);
}

/*~~~~~~~~~~HEADER~~~~~~~~~~*/
header {
  margin: 4rem 0;
  width: 100vw;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.scrollbox {
  max-width: 500px;
  width: 0%;
  overflow: hidden;
  border-radius: 20px;
  height: var(--ticker-height);
  background-color: var(--secondary);
}

@keyframes scale-in-hor-left {
  0% {
    -webkit-transform: scaleX(0);
    transform: scaleX(0);
    -webkit-transform-origin: 0% 0%;
    transform-origin: 0% 0%;
    opacity: 1;
  }
  100% {
    -webkit-transform: scaleX(1);
    transform: scaleX(1);
    -webkit-transform-origin: 0% 0%;
    transform-origin: 0% 0%;
    opacity: 1;
  }
}

.scrollbox.active {
  width: 95%;
  animation: scale-in-hor-left 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275) 1s
    both;
}

.marquee {
  white-space: nowrap;
  overflow: hidden;
  display: inline-block;
  font-family: "Poppins", sans-serif;
  animation: scroll 40s linear infinite;
  height: 100%;
  color: var(--primary);
}

.marquee p {
  display: inline-block;
  margin: 0;
  height: 100%;
  line-height: var(--ticker-height);
  text-transform: uppercase;
  letter-spacing: 2px;
  font-size: 0.75rem;
}

h1 {
  font-family: "Slasher Film", sans-serif;
  color: var(--secondary);
  font-size: 6rem;
  font-weight: 300;
  text-align: center;
  margin: 1rem 0 4rem 0;
  max-width: 90%;
  transform: translate(0, -300%);
  transition: transform 600ms cubic-bezier(0.13, -0.38, 0.01, 1.55);
  transition-delay: calc(var(--transition-delay) * 1.5);
  user-select: none;
}

h1.active {
  transform: translate(0, 0);
}

@keyframes scroll {
  from {
    transform: translate3d(0, 0, 0);
  }
  to {
    transform: translate3d(-50%, 0, 0);
  }
}

#scrollDown {
  display: none;
}
/*~~~~~~~~~~LINKS~~~~~~~~~~*/
#links {
  display: flex;
  flex-direction: column;
  align-items: center;
}

section {
  width: 99%;
  max-width: 700px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.link {
  transition: 900ms cubic-bezier(0.175, 0.885, 0.32, 1.175);
  transition-delay: 2s;
  color: var(--secondary);
}

.link:nth-of-type(1),
.link:nth-of-type(3) {
  transform: translate(-300%);
}

.link:nth-of-type(2) {
  transform: translate(300%);
}

.link.active {
  transform: translate(0);
}

input {
  display: none;
  visibility: hidden;
}
label {
  font-family: "Slasher Film", sans-serif;
  font-size: 6rem;
  font-weight: 200;
  margin: 0;
  width: 90%;
  text-align: center;
  cursor: pointer;
  user-select: none;
  opacity: 1;
  background-color: var(--primary);
}

#aboutExpand,
#portfolioExpand,
#contactExpand {
  height: 0;
  /* width: 100%; */
  width: 100dvw;
  overflow: hidden;
  transition: height 0.7s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  border-top: 3px solid rgba(0, 0, 0, 0.5);
  background-color: var(--primary);

  max-width: 800px;
}

@keyframes swing-in {
  0% {
    transform: rotateX(70deg);
    transform-origin: top;
    opacity: 0;
  }
  100% {
    transform: rotateX(0deg);
    transform-origin: top;
    opacity: 1;
  }
}

/*~~~~~~~~~~LINK CONTENTS~~~~~~~~~~*/

/*~~~~~~~~~~ABOUT CONTENTS~~~~~~~~~~*/

#aboutExpand h2 {
  padding: 0.75rem;
}

#aboutExpand p {
  font-family: "Poppins", sans-serif;
  text-align: justify;
  user-select: none;
  line-height: 1.5;
  padding: 0 0.75rem;
}

#aboutExpand a {
  font-weight: 600;
  text-decoration: underline dotted;
  color: var(--secondary);
  opacity: 0.5;
}

#aboutExpand p:last-of-type {
  margin-bottom: 1rem;
}

/*~~~~~~~~~~PORTFOLIO CONTENTS~~~~~~~~~~*/

.boxes {
  width: 99%;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  grid-template-rows: 1fr 1fr 1fr;
  gap: 4px;
  place-content: center;
  padding: 1rem 0;
  padding-left: 2px;
}

.boxes a {
  background-size: cover;
  transition: 250ms ease-in;
  border-radius: 3px;
  overflow: hidden;
}
.box {
  border-radius: 3px;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  text-transform: uppercase;
  text-align: center;
  color: var(--primary);
  font-family: "Poppins", sans-serif;
  text-shadow: -1px 1px 0 #333, 1px 1px 0 #333, 1px -1px 0 #333,
    -1px -1px 0 #333;
  text-decoration: none;
}

.box .title {
  color: #ddd8cb;
  padding: 0.25rem;
}

a {
  text-decoration: none;
}

.boxes a:nth-of-type(1) {
  background-image: url(index/img/cc-ops.webp);
}
.boxes a:nth-of-type(2) {
  background-image: url(index/img/sales-dashboard.png);
}
.boxes a:nth-of-type(3) {
  background-image: url(index/img/nps-dashboard.webp);
}
.boxes a:nth-of-type(4) {
  background-image: url(index/img/movie-browser.webp);
}
.boxes a:nth-of-type(5) {
  background-image: url(index/img/weather-app.webp);
}
.boxes a:nth-of-type(6) {
  background-image: url(index/img/recipes2.webp);
}
.boxes a:nth-of-type(7) {
  background-image: url(index/img/restaurant.webp);
}
.boxes a:nth-of-type(8) {
  background-image: url(index/img/wordle-clone.webp);
}
.boxes a:nth-of-type(9) {
  background-image: url(index/img/2048.webp);
}

/*~~~~~~~~~~CONTACT CARD~~~~~~~~~~*/

.container {
  height: fit-content;
  max-width: 500px;
  display: flex;
  align-items: center;
  position: relative;
  perspective: 800px;
  font-size: 12px;
  padding-top: 3rem;
  padding-bottom: 3rem;
}

.container:hover .card,
.container:focus .card {
  transform: rotateY(-180deg) translateZ(1px);
  -webkit-transform: rotateY(-180deg) translateZ(1px);
  -moz-transform: rotateY(-180deg) translateZ(1px);
}

.container:hover .card2,
.container:focus .card2 {
  transform: rotateY(0deg) translateZ(1px);
  -webkit-transform: rotateY(0deg) translateZ(1px);
  -moz-transform: rotateY(0deg) translateZ(1px);
}

.side {
  max-width: 500px;
  width: 100%;
  /* aspect-ratio: 1.75/1; */
  background-color: var(--eggshell);
  color: var(--card-text);
  box-shadow: 10px 10px 10px rgba(0, 0, 0, 0.4);
  transition: 0.6s;
  transform-style: preserve-3d;
  -webkit-transform-style: preserve-3d;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  background-image: url("index/img/paper-fibers.webp");
  margin: 0 auto;
}
.card {
  font-family: "Cormorant Garamond", serif;
  text-transform: uppercase;
  font-size: 75%;
  letter-spacing: 1px;
  text-shadow: 0 0 2px rgba(0, 0, 0, 0.5),
    -1px -1px 1px rgba(179, 179, 179, 0.5), 1px 1px 0 rgba(255, 255, 255, 0.55),
    0 1px 3px white;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background-image: url("index/img/paper-fibers.webp");
  padding: 20px 10px 10px 10px;
}

.card2 {
  position: absolute;
  transform: rotateY(180deg);
  -webkit-transform: rotateY(180deg);
  display: flex;
  justify-content: flex-start;
  gap: 0;
}

.big {
  font-size: 150%;
}

.med {
  font-size: 100%;
  letter-spacing: 0.5px;
}

.small {
  font-size: 65%;
  letter-spacing: 0.5px;
}

.no-space {
  letter-spacing: 0px;
}

.top-row {
  display: flex;
  justify-content: space-between;
}

.business-name {
  float: right;
  text-align: right;
}

.middle-row {
  text-align: center;
}

.bottom-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.line-two,
.line-three {
  text-transform: lowercase;
}

.line-two i {
  font-size: 0.75rem;
}

p {
  margin: 0;
  text-align: justify;
}

.pfp {
  width: 30%;
  padding: 0.5rem;
  display: flex;
  align-items: center;
  background-color: rgba(179, 179, 179, 0.5);
  border-right: 1px solid rgba(71, 71, 71, 0.8);
}

.pfp img {
  width: 100%;
  height: 100%;
  max-width: 120px;
  max-height: 120px;
  border-radius: 30%;
  border: 2px solid var(--card-text);
}

.link-boxes {
  display: flex;
  align-items: center;
  z-index: 2;
  width: 70%;
}

.link-box {
  font-size: 2rem;
  border: 2px solid var(--card-text);
  color: var(--text);
  margin: 1rem 0.5rem;
  width: 20%;
  height: 20%;
  display: grid;
  place-content: center;
  border-radius: 10%;
  transition: 400ms;
  position: relative;
  z-index: 3;
  cursor: pointer;
}

.link-box::after {
  content: "";
  position: absolute;
  bottom: -40%;
  width: 100%;
  color: rgba(71, 71, 71, 0.8);
  font-size: 0.75rem;
  text-align: center;
}

.link-box:nth-of-type(1)::after {
  content: "Email";
}
.link-box:nth-of-type(2)::after {
  content: "Resume";
}
.link-box:nth-of-type(3)::after {
  content: "LinkedIn";
}
.link-box:nth-of-type(4)::after {
  content: "CodePen";
}

.link-box a {
  color: var(--card-text);
  text-decoration: none;
}

.link-box:hover {
  color: var(--eggshell);
  background-color: var(--card-text);
}

.link-box:hover a {
  color: var(--eggshell);
}

/*~~~~~~~~~~FOOTER~~~~~~~~~~*/
footer {
  width: 100%;
  text-align: center;
  margin-top: auto;
  font-family: "Poppins", sans-serif;
  padding: 1rem;
  user-select: none;
  opacity: 0;
  transition: var(--transition-duration);
  transition-delay: 3s;
}

footer.active {
  opacity: 1;
}

@media (min-width: 500px) {
  header {
    /* max-height: 100vh; */
    height: 100vh;
    justify-content: center;
    align-items: center;
    margin: 0;
    position: relative;
  }

  header h1 {
    font-size: 10rem;
    transform: translate(0, -500%);
  }

  #scrollDown {
    display: block;
    height: 100px;
    width: 100px;
    position: absolute;
    bottom: 5%;
    opacity: 0;
    transition: 1000ms ease-out;
    transition-delay: 2.3s;
    cursor: pointer;
  }

  #scrollDown.active {
    opacity: 1;
  }

  .arrow-down {
    position: absolute;
    left: 50%;
    top: 20%;
    transform: translate(-50%) rotate(45deg);
    -webkit-transform: translate(-50%) rotate(45deg);
    height: 15%;
    width: 15%;
    border-right: 3px solid var(--secondary);
    border-bottom: 3px solid var(--secondary);
    animation: arrowDown 800ms ease-out infinite alternate-reverse;
  }

  .arrow-down:nth-of-type(2) {
    top: 35%;
    animation-delay: 200ms;
  }
  .arrow-down:nth-of-type(3) {
    top: 50%;
    animation-delay: 400ms;
  }

  @keyframes arrowDown {
    0% {
      opacity: 0;
    }
    50% {
      opacity: 0.5;
    }
    100% {
      opacity: 1;
    }
  }

  #links {
    height: 95vh;
    display: flex;
    justify-content: center;
  }

  .boxes a:hover {
    outline: 1px solid rgba(80, 80, 80, 0.8);
    filter: grayscale(0);
    text-decoration: none;
  }

  .box .title {
    user-select: none;
    backdrop-filter: blur(10px);
    padding: 0.5rem 1rem;
    border-radius: 20px;
  }

  #contactExpand {
    padding-top: 1rem;
    padding-left: 22%;
    font-size: 14px;
  }

  .card {
    font-size: 90%;
  }

  .pfp {
    width: 30%;
  }
}
