:root {
  color-scheme: dark;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html,
body {
  /* scroll-snap-type: y mandatory; */
  margin: 0;
  scroll-behavior: smooth;
}

p {
  text-align: justify;
  text-justify: inter-word;
}

.page {
  height: 100vh;
  width: 100%;
  background-color: #18181b;
  /* scroll-snap-align: start;
  scroll-snap-stop: always; */
}

/* Navbar start*/
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 100;
  -webkit-backdrop-filter: blur(5px);
  backdrop-filter: blur(5px);
  background: transparent;
}

.holder {
  width: 900px;
  padding: 10px 50px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

#contact_button_navbar {
  --bg: #ff90e8;
  --hover-bg: #18181b;
  --hover-text: #fff;
  color: #18181b;
  cursor: pointer;
  border: 1px solid var(--bg);
  border-radius: 4px;
  padding: 0.8em 2em;
  background: var(--bg);
  transition: 0.2s;
  text-align: center;
}

#contact_button_navbar:hover {
  color: var(--hover-text);
  transform: translate(-0.25rem, -0.25rem);
  background: var(--hover-bg);
  box-shadow: 0.25rem 0.25rem var(--bg);
}

#contact_button_navbar:active {
  transform: translate(0);
  box-shadow: none;
}

#icon_image {
  width: 30px;
  height: 30px;
}

.social-buttons {
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: transparent;
  padding: 15px 10px;
}

.social-button {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 37px;
  height: 37px;
  border-radius: 50%;
  margin: 0 10px;
  background-color: #fff;
  box-shadow: 0px 0px 4px #00000027;
  transition: 0.3s;
}

.social-button:hover {
  background-color: #f2f2f2;
  box-shadow: 0px 0px 6px 3px #00000027;
}

.social-buttons svg {
  transition: 0.3s;
  height: 20px;
}

.github {
  background-color: #333;
}

.github svg {
  width: 25px;
  height: 25px;
  fill: #f2f2f2;
}

.github:hover svg {
  fill: #333;
}

.linkedin {
  background-color: #0077b5;
}

.linkedin svg {
  fill: #f2f2f2;
}

.linkedin:hover svg {
  fill: #0077b5;
}

/* Page 1 start */
#page_1_content_holder {
  max-width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  margin-top: 60px;
}

#page_1_content_holder p {
  font-size: 20px;
  color: #fff;
  font-family: "Courier New", Courier, monospace;
  max-width: 760px;
  margin: 50px 30px 0px 30px;
  margin-top: 50px;
}

.scroller {
  max-width: 100%;
  overflow: hidden;
  -webkit-mask: linear-gradient(90deg,
      transparent,
      white 3%,
      white 97%,
      transparent);
  mask: linear-gradient(90deg, transparent, white 0%, white 100%, transparent);
}

.scroller__inner {
  width: max-content;
  padding-block: 1rem;
  display: flex;
  gap: 2rem;
  animation: scroll 10s linear infinite;
}

@keyframes scroll {
  to {
    transform: translate(calc(-50% - 1rem));
  }
}

.tag-list {
  list-style: none;
}

.tag-list li {
  color: #fff;
  font-size: 180px;
  font-family: "Saira Condensed", sans-serif;
  font-weight: 600;
  font-style: normal;
}

/* Projects page start */

.project_page {
  height: 100vh;
  width: 100%;
  /* scroll-snap-align: start;
  scroll-snap-stop: normal; */
  background-color: #18181b;
  display: flex;
  align-items: center;
  justify-content: center;
}

.proj_pg_content_holder_right {
  width: 1000px;
  position: relative;
  display: flex;
  justify-content: flex-start;
}

.proj_pg_content_holder_left {
  width: 1000px;
  position: relative;
  display: flex;
  justify-content: flex-end;
}

/*.content_card {
  width: 380px;
  height: 250px;
  border-radius: 20px;
  background: rgb(238, 156, 167, 0.75);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  left: calc(100%);
  transform: translate(-115%, -50%);
  padding: 25px;
  z-index: 10;
}

.content_card h2{
  color: white;
  font-size: 42px;
  font-family: "Saira Condensed", sans-serif;
  margin: 10px;
}

.content_card p {
  color: white;
  max-width: 300px;
  margin: 10px;
  font-family: "Saira Condensed", sans-serif;
  font-size: 16px;
} */

.card_container_right {
  display: flex;
  align-items: center;
  justify-content: center;
  max-width: 70%;
  width: 420px;
  height: 280px;
  background: #333;
  border-radius: 10px;
  position: absolute;
  top: 50%;
  left: calc(100%);
  transform: translate(-100%, -50%);
  z-index: 10;
}

.card_container_left {
  display: flex;
  align-items: center;
  justify-content: center;
  max-width: 70%;
  width: 420px;
  height: 280px;
  background: #333;
  border-radius: 10px;
  position: absolute;
  top: 50%;
  left: 0;
  transform: translateY(-50%);
  z-index: 10;
}

.card {
  position: relative;
  background: #333;
  width: 100%;
  height: 100%;
  border-radius: 10px;
  padding: 2rem;
  color: #aaa;
  box-shadow: 0 .25rem .25rem rgba(0, 0, 0, 0.2),
    0 0 1rem rgba(0, 0, 0, 0.2);
  overflow: hidden;
}

.card__image-container {
  margin: -2rem -2rem 1rem -2rem;
}

.card__line {
  opacity: 0;
}

.card__line_anim {
  animation: LineFadeIn .8s .1s forwards ease-in;
}

.card__image {
  opacity: 0;
  animation: ImageFadeIn .8s 1.4s forwards;
}

.card__title {
  color: white;
  margin-top: 35px;
  margin-bottom: 10px;
  font-family: 'Franklin Gothic Medium', 'Arial Narrow', Arial, sans-serif;
  font-size: 26px;
}

.card__content {
  margin-top: -1rem;
  opacity: 0;
}

.card__content_anim {
  animation: ContentFadeIn 0.8s 0.2s forwards;
  /* Duration / delay */
}

.card__content__desc {
  font-family: Verdana, Geneva, Tahoma, sans-serif;
  font-size: 15px;
  margin-top: 7px;
}

.card__svg {
  position: absolute;
  left: 0;
  top: 100px;
}

@keyframes LineFadeIn {
  0% {
    opacity: 0;
    d: path("M 0 300 Q 0 300 0 300 Q 0 300 0 300 C 0 300 0 300 0 300 Q 0 300 0 300 ");
    stroke: #fff;
  }

  50% {
    opacity: 1;
    d: path("M 0 300 Q 50 300 100 300 Q 250 300 350 300 C 350 300 500 300 650 300 Q 750 300 800 300");
    stroke: #ff90e8;
  }

  100% {
    opacity: 1;
    d: path("M -2 100 Q 50 200 100 250 Q 250 400 350 300 C 400 250 550 150 650 300 Q 750 450 802 400");
    stroke: #963883;
  }
}

@keyframes ContentFadeIn {
  0% {
    transform: translateY(-1rem);
    opacity: 0;
  }

  100% {
    transform: translateY(0);
    opacity: 1;
  }
}

@keyframes ImageFadeIn {
  0% {
    transform: translate(-.5rem, -.5rem) scale(1.05);
    opacity: 0;
    filter: blur(2px);
  }

  50% {
    opacity: 1;
    filter: blur(2px);
  }

  100% {
    transform: translateY(0) scale(1.0);
    opacity: 1;
    filter: blur(0);
  }
}

.image_holder {
  display: flex;
  justify-content: flex-start;
}

/*TODO: Update opacity from div not image directly */
.proj_image {
  opacity: 75%;
  max-width: 90%;
  width: 850px;
  height: auto;
  border-radius: 10px;
  animation: decreaseSize 0.8s;
}

/*TODO: start playing video */
/*TODO: change mouse out animation using JS */
.proj_image:hover {
  z-index: 50;
  animation: increaseSize 0.6s forwards;
}

@keyframes increaseSize {
  from {
    transform: scale(1);
    opacity: 60%;
  }

  to {
    transform: scale(1.05);
    opacity: 100%;
  }
}

@keyframes decreaseSize {
  from {
    transform: scale(1.05);
    opacity: 100%;
  }

  to {
    transform: scale(1);
    opacity: 60%;
  }
}

.card_screen_500 {
  width: 340px;
  height: 390px;
  background: #333;
  padding: .6em;
  border-radius: 6px;
  display: none;
}

.card_image_screen_500 {
  background-color: rgb(236, 236, 236);
  width: 100%;
  height: 180px;
  border-radius: 6px 6px 0 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.project_desc_screen_500 {
  color: white;
  font-size: 14px;
  margin-top: 10px;
  font-family: Verdana, Geneva, Tahoma, sans-serif;
}

.screen_500_image {
  width: 100%;
  height: auto;
  max-height: 200px;
}

.card_image_screen_500:hover {
  transform: scale(0.98);
}

.category {
  text-transform: uppercase;
  font-size: 0.7em;
  font-weight: 600;
  color: rgb(63, 121, 230);
  padding: 10px 7px 0;
  font-family: 'Courier New', Courier, monospace;
}

.category:hover {
  cursor: pointer;
}

.heading {
  font-weight: 600;
  color: white;
  padding: 4px;
  font-size: 22px;
  margin-top: 15px;
  font-family: 'Trebuchet MS', 'Lucida Sans Unicode', 'Lucida Grande', 'Lucida Sans', Arial, sans-serif;
}

.heading:hover {
  cursor: pointer;
}

/* Project page end */

/*About me page start*/
.about_me {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100vh;
  overflow: hidden;
  background-color: #18181b;
}

.about_me_container {
  display: flex;
  flex-direction: row;
  margin: 80px;
}

.about_me_container h2 {
  text-align: center;
  font-family: "Trebuchet MS", "Lucida Sans Unicode", "Lucida Grande",
    "Lucida Sans", Arial, sans-serif;
  color: #fff;
  font-size: 80px;
  margin-right: 50px;
}

.about_me_container p {
  font-size: 18px;
  margin-left: 50px;
  max-width: 500px;
  color: #fff;
  font-family: Verdana, Geneva, Tahoma, sans-serif;
}

mark {
  margin: 0 -0.4em;
  padding: 0.1em 0.4em;
  border-radius: 0.8em 0.3em;
  background: transparent;
  background-image: linear-gradient(to right,
      rgba(255, 225, 0, 0.171),
      rgba(255, 225, 0, 0.7) 4%,
      rgba(255, 225, 0, 0.355));
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}

/*About me page design end*/

/* Contact page design */
#contact_me_page {
  height: 100vh;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-evenly;
  background: linear-gradient(#ffdad5, #fff7f9);
}

#contact_left {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: start;
  gap: 20px;
}

#contact_left_title {
  font-family: "Courier New", Courier, monospace;
  color: #18181b;
  font-size: 40px;
}

#contact_left_title hr {
  border: none;
  width: 120px;
  height: 2px;
  background-color: #18181b;
  border-radius: 3px;
  margin-bottom: 20px;
}

.contact_inputs {
  width: 400px;
  height: 50px;
  border: none;
  outline: none;
  padding-left: 25px;
  font-weight: 500;
  color: #666;
  border-radius: 50px;
}

#contact_left textarea {
  height: 140px;
  padding-top: 15px;
  border-radius: 20px;
  resize: none;
  margin-bottom: 10px;
}

.contact_inputs:focus {
  border: 2px solid #ff994f;
}

.contact_inputs::placeholder {
  color: #a9a9a9;
}

.contact_right img {
  width: 300px;
  height: auto;
}

#submit_button_contact {
  --bg: #18181b;
  --hover-bg: #ff90e8;
  --hover-text: #18181b;
  color: #fff;
  cursor: pointer;
  border: 1px solid var(--bg);
  border-radius: 4px;
  padding: 0.8em 2em;
  background: var(--bg);
  transition: 0.2s;
}

#submit_button_contact:hover {
  color: var(--hover-text);
  transform: translate(-0.25rem, -0.25rem);
  background: var(--hover-bg);
  box-shadow: 0.25rem 0.25rem var(--bg);
}

#submit_button_contact:active {
  transform: translate(0);
  box-shadow: none;
}

/*TODO: change font size dynamically*/

@media (max-width: 1070px) {

  /*.content_card {
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
  } */
  .card_container_right {
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
  }

  .card_container_left {
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
  }

  .proj_pg_content_holder_right {
    justify-content: center;
  }

  .proj_pg_content_holder_left {
    justify-content: center;
  }

  .image_holder {
    justify-content: center;
  }
}

@media (max-width: 800px) {
  .contact_inputs {
    width: 80vw;
  }

  .contact_right {
    display: none;
  }

  .about_me_container {
    flex-direction: column;
  }

  .about_me_container h2 {
    margin-right: 0;
    font-size: 60px;
    margin-bottom: 10px;
  }

  .about_me_container p {
    margin-left: 0;
    font-size: 14px;
    margin-top: 10px;
  }

  .tag-list li {
    font-size: 105px;
  }

  #page_1_content_holder {
    margin-top: 100px;
  }

  #page_1_content_holder p {
    font-size: 14px;
  }

  .card_container_left {
    display: none;
  }

  .card_container_right {
    display: none;
  }

  .proj_image {
    display: none;
  }

  .card_screen_500 {
    display: flex;
    flex-direction: column;
  }

  .project_page{
    height: 70vh;
  }

  .page{
    height: 93vh;
  }
}

@media (max-width: 500px) {
  #contact_button_navbar {
    height: 40px;
  }

  .holder {
    padding: 8px 10px;
  }

  .social-button {
    margin: 0 4px;
  }
  .header {
    -webkit-backdrop-filter: blur(0px);
    backdrop-filter: blur(0px);
  }
}