/*=======================================
      1. Global Style
=========================================*/
*,
*::before,
*::after {
  box-sizing: border-box;
}

:root {
  --color-white: #e8e8e8;
  --color-grey: #4a4a4a;
  --color-background: #080808;
  --color-red:  rgba(250, 74, 74, 0.75);

  --font-size-h1: clamp(1rem, 0.516rem + 0.645vw, 1.5rem);; /* clamp(1.75rem, 0.5125rem + 1.5vw, 2.5rem);*/
  --font-size-h1-40: 2.5rem;
  --font-size-h3: 1.5rem;

  --font-line-height: 1.2;

  --border: 1px solid black;
  --border-radius: 20px;
  --border-padding-inl: 1.2rem;
  --border-padding-block: 0.2rem;
  --border-margin-inl: 0.2rem;


  --font-title: "Roboto Mono", monospace;
}

/* TITLE FONT:
.roboto-mono-<uniquifier> {
  font-family: "Roboto Mono", monospace;
  font-optical-sizing: auto;
  font-weight: <weight>;
  font-style: normal;
}
*/

/* BODY FONT:
.montserrat-<uniquifier> {
  font-family: "Montserrat", sans-serif;
  font-optical-sizing: auto;
  font-weight: <weight>;
  font-style: normal;
}
*/

html,
body {
  font-family: "Montserrat", sans-serif;
  font-optical-sizing: auto;
  font-weight: 400;
  font-style: normal;

  height: 100vh;
  max-width: 100vw;
  /*font-family: 'aktiv-grotesk-extended', sans-serif;*/
  
  color: var(--color-white);
  background-color: var(--color-background);

  scroll-behavior: smooth;
}

strong {
  font-weight: bold;
}

em {
  font-weight: 200;
  font-style: italic;
}

.font--special,
h1, h2, h3, a, .tag
{
  font-family: "Roboto Mono", monospace;
  font-optical-sizing: auto;
  font-weight: 400;
  font-style: normal;
}

/*=======================================
       2. Typography
=========================================*/
/*
Aktiv Grotesk Ex Regular
font-family: "aktiv-grotesk-extended", sans-serif;
font-weight: 400;
font-style: normal;

Aktiv Grotesk Ex Bold
font-family: "aktiv-grotesk-extended", sans-serif;
font-weight: 700;
font-style: normal;
*/

/*=======================================
       3.  Layout
=========================================*/

.hidden {
  display: none;
}

a {
  text-decoration: none;
}

p {
  font-size: 1rem;
}

.border {
  border: 1px solid black;
  border-radius: 20px;
}

.underline {
  text-decoration: underline 1.5px var(--color-grey);
  color: var(--color-white);
  text-underline-offset: 0.1rem;
}

.underline:hover {
  text-decoration: underline 1.5px red;
}

.devicon-github-original path {
  fill: #ad1414;
}

.center{
  margin: 0 auto;
}

.glitch-button--selected {
  color: rgba(250, 74, 74, 0.75);
  text-decoration: underline 2px;
  text-underline-offset: 0.3rem;
}

/* 
  ====== TAGS ======== 
*/

.blue {
  background-color: rgb(66, 183, 255, 0.15);
  border: 0.5px solid rgb(66, 183, 255);
  box-shadow: 0 0 0.5px rgb(66, 183, 255), 0 0 3px rgb(66, 183, 255),
    0 0 4px rgb(66, 183, 255);
}
.purple {
  background-color: rgba(179, 80, 255, 0.15);
  border: 0.5px solid rgb(179, 80, 255);
  box-shadow: 0 0 0.5px rgb(179, 80, 255), 0 0 3px rgb(179, 80, 255),
    0 0 4px rgb(179, 80, 255);
}
.orange {
  background-color: rgb(255, 142, 76, 0.15);
  border: 0.5px solid rgb(255, 142, 76);
  box-shadow: 0 0 0.5px rgb(255, 142, 76), 0 0 3px rgb(255, 142, 76),
    0 0 4px rgb(255, 142, 76);
}

.green {
  background-color: rgb(105, 255, 105, 0.15);
  border: 0.5px solid rgb(105, 255, 105);
  box-shadow: 0 0 0.5px rgb(105, 255, 105), 0 0 3px rgb(105, 255, 105),
    0 0 4px rgb(105, 255, 105);
}
.yellow {
  background-color: rgb(255, 229, 81, 0.15);
  border: 0.5px solid rgb(255, 229, 81);
  box-shadow: 0 0 0.5px rgb(255, 229, 81), 0 0 3px rgb(255, 229, 81),
    0 0 4px rgb(255, 229, 81);
}
.red {
  background-color: rgb(255, 69, 69, 0.15);
  border: 0.5px solid rgb(255, 69, 69);
  box-shadow: 0 0 0.5px rgb(255, 69, 69), 0 0 3px rgb(255, 69, 69),
    0 0 4px rgb(255, 69, 69);
}
.pink {
  background-color: rgb(250, 74, 150, 0.15);
  border: 0.5px solid rgb(250, 74, 150);
  box-shadow: 0 0 0.5px rgb(250, 74, 150), 0 0 3px rgb(250, 74, 150),
    0 0 4px rgb(250, 74, 150);
}

.darkpink {
  background-color: rgba(179, 63, 113, 0.15);
  border: 0.5px solid rgb(138, 54, 90);
  box-shadow: 0 0 0.5px rgb(163, 55, 102), 0 0 3px rgb(179, 50, 105),
    0 0 4px rgb(170, 47, 101);
}

.cyan {
  background-color: rgb(74, 250, 212, 0.15);
  border: 0.5px solid rgb(74, 250, 212);
  box-shadow: 0 0 0.5px rgb(74, 250, 212), 0 0 3px rgb(74, 250, 212),
    0 0 4px rgb(74, 250, 212);
}

.darkblue {
  background-color: rgb(74, 97, 250, 0.15);
  border: 0.5px solid rgb(74, 97, 250);
  box-shadow: 0 0 0.5px rgb(74, 97, 250), 0 0 3px rgb(74, 97, 250),
    0 0 4px rgb(74, 97, 250);
}

.lightpink {
  background-color: rgb(255, 157, 200, 0.15);
  border: 0.5px solid rgb(255, 157, 200);
  box-shadow: 0 0 0.5px rgb(255, 157, 200), 0 0 3px rgb(255, 157, 200),
    0 0 4px rgb(255, 157, 200);
}

/* 
  ====== END-TAGS ======== 
*/

/*=======================================
       4.  Content
=========================================*/

/*===== BODY-LAYOUT =====*/

.container__header {
  max-width: 100vw;
}

.container__main {
  display: flex;
  flex-direction: column;
  max-height: 100vh;
  max-width: 100vw;
}


/*
  ===== HEADER ===== 
*/

/*===== NAV =====*/

.container__nav {
  max-width: 97%;
}

.container__nav > ul {
  display: flex;
}

.nav {
  list-style: none;
  display: flex;
  padding-block: 1.5rem;
}

.nav > li {
  align-self: center;
}

.nav > li > a {
  list-style: none;
  text-decoration: none;
  margin: 0rem 0.7rem;
  padding: 0rem 0.5rem;
  cursor: pointer;
  color: var(--color-white);
}

.nav li:first-child {
  margin-right: auto;
}

/* ==== remove when using 3d env ==== */
.nav li:first-child {
  display: none;
}

.nav li:nth-child(2) {
  margin-left: auto;
}
/* ==== remove when using 3d env ===== */

.nav li:hover {
  color: rgba(250, 74, 74, 0.75);
  text-decoration: underline 2px;
  text-underline-offset: 0.3rem;
}

.nav li:last-child {
  border-radius: var(--border-radius);
  padding: var(--border-padding-block) 0.2rem;
  background-color: rgba(250, 74, 74, 0.169);
  border: 1px solid rgb(250, 74, 74);
  box-shadow: 0 0 1px rgb(250, 74, 74), 0 0 3px rgb(250, 74, 74),
    0 0 5px rgb(250, 74, 74);
  text-decoration: none;
}

.nav li:last-child:hover,
.nav li:first-child:hover {
  background-color: var(--color-background); /* rgba(250, 74, 74, 0.32); */
  border: 1px solid rgb(250, 74, 74);
  box-shadow: 0 0 2px rgb(250, 74, 74), 0 0 5px rgb(250, 74, 74),
    0 0 10px rgb(250, 74, 74);
  border-radius: var(--border-radius);
  padding: var(--border-padding-block) 0.2rem;
  text-decoration: none;
}

/*
  ===== HEADER =====
*/

.header {
  height: 100vh;
  width: 100vw;
  overflow: hidden;
}

.header__bg-video
{
  pointer-events: none;
  overflow: hidden;
  object-fit: cover;

  position: absolute;
  left: 0;
  top: 0;
  z-index: 0;

  opacity: 0.2;
  width: 100vw;
  height: 100vh;
}

/*===== HEADER-TITLE =====*/

.header__title
{
  max-width: 100vw;
  min-width: max-content;
  width: max-content;
  height: max-content;
  
  margin: 70vh auto;

  font-size: var(--font-size-h1);
  font-weight: 100;

  display: grid;
  grid-template-areas: 
  "greeting name job"
  "refer name passion";

  grid-template-columns: fit-content(10rem) fit-content(10rem) 1fr;
  column-gap: 1rem;
  row-gap: 0.5rem;
}

.title__greeting
{
  grid-area: greeting;
  font-size: 300%;
  align-self: flex-end;
}

.title__refer
{
  grid-area: refer;
  font-size: 150%;
  font-weight: 200;
  align-self: flex-start;
}

.title__name
{
  grid-area: name;
  font-size: 600%;
  font-weight: 400;
  margin: 0 auto;
}

.title__job
{
  grid-area: job;
  font-size: 200%;
  align-self: flex-end;
}

.title__passion
{
  grid-area: passion;
  font-size: 200%;
  align-self: flex-start;
}

.title__job > strong, .title__passion > strong
{
  font-weight: 400;
}

/*
  ===== END-HEADER ===== 
*/


/*
  =========== WORKS ==========
*/

/*==== WORKS LAYOUT ====*/

.container__works {
  max-width: 90vw;
  align-self: center;
}

.works {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-gap: 0.3rem;
  height: auto;
  width: 100%;
}

/*==== WORK HIGHLIGHTS LAYOUT ====*/
.container__works--highlights
{
  padding-bottom: 5%;
  width: 85vw;
}

.container__works--other
{
  width: 80vw;
}

/*====  WORKS CONTENT  =====*/

.works__title
{
  font-size: var(--font-size-h1);
  font-weight: 500;
  max-width: 55%;
  align-self: center;
  line-height: 2.5rem;
  padding-block-start: 3rem;
  z-index: 1;
  margin-bottom: 1%;
}

.work {
  transition: all 0.5s ease;
  background-color: grey;
  height: 28rem;
  width: 100%;
  position: relative;

  background-size: cover;
  background-position: center;
}

.img__arrow--sm {
  display: none;
}

.work__wrapper {
  display: grid;
  grid-template-rows: 38% 12% 50%;
  height: 100%;
  visibility: hidden;
  color: var(--color-white);
  background-color: #000000c5;
}

.work__year,
.work__title {
  margin: 0 auto;
  padding-block: 0.5rem;
  text-align: center;
}

.work__year {
  align-self: end;
  font-size: 1rem;
  font-weight: 300;
}

.work__title {
  font-size: 1.9rem;
  font-weight: 500;
}

.work__title--vertical {
  display: flex;
  flex-flow: column;
}

.work__tags {
  align-self: end;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  padding-block-end: 1.8rem;
}

.tag {
  padding: var(--border-padding-block) var(--border-padding-inl);
  margin: var(--border-margin-inl);
  border-radius: var(--border-radius);
  text-align: center;
  font-size: 0.9rem;
  align-self: center;
}

/*====  WORKS HOVER LOGIC   ====*/

.work:hover {
  transform: scale(1.04);
  transition: all 0.5s ease;
  z-index: 1;
  filter: drop-shadow(#933 0rem 0rem 1rem);
}

.work:hover .work__wrapper {
  visibility: visible;
  transition: all 2s ease;
  -webkit-transition: all 2s ease;
}

.work:hover ~ .work {
  transform: scale(0.95);
  transition: all 0.5s ease;
  z-index: 0;
  opacity: 20%;
}

.work:has(~ .work:hover)
{
  transform: scale(0.95);
  transition: all 0.5s ease;
  z-index: 1;
  opacity: 20%; 
}

/*
  ======== END-WORKS =========
*/

/* ==== FOOTER ===== */
#footer {
  padding: 10rem 0rem;
  margin-block-start: 1rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
}

#footer > h2 {
  font-size: 2rem;
  font-weight: 500;
  padding-block: 1rem;
  text-align: center;
}

.footer__list > li {
  padding-block: 0.5rem;
}

.footer__list > li > a {
  color: var(--color-white);
}

.footer__list > li > a:hover {
  filter: sepia(100%);
}

.linkdin,
.github {
  padding-inline: 0.4rem;
}

.linkdin:hover,
.github:hover {
  filter: sepia(100%);
}

.footer__list > li:nth-child(2) {
  text-underline-offset: 0.2rem;
  color: var(--color-white);
}

.footer__list > li:nth-child(3) {
  margin-block-start: 0.5rem;
}

/*================= ABOUT PAGE ====================== */
.container__about {
  display: flex;
  flex-direction: row;
  width: 90vw;
  padding-block: 4.5rem;
}

.about__content {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  max-width: 43%;
  padding-inline-start: 3.5rem;
}

.about__content > h1,
.container__skills > h2 {
  font-size: var(--font-size-h1-40);
  font-weight: 500;
  padding-block-start: 1rem;
}

.about__content > p {
  padding-block-start: 1rem;
  line-height: 1.5;
}

/* ==== Skills ==== */
.container__skills {
  display: flex;
  flex-direction: column;
  width: 90vw;
  padding-block: 1rem 5rem;
  margin: 0 auto;
}

.skills__wrapper {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
}

.skills > h3 {
  font-size: 20px;
  font-weight: 500;
  padding-block: 1rem 0.5rem;
}

.skills > ul {
  line-height: 1.5rem;
  font-size: 16px;
}

.skills > ul > li {
  width: 20vw;
  border: 0.1rem solid var(--color-grey) ;
  padding: 1% 2%;
  border-radius: 1vh;
  margin-bottom: 1.5%;
}

.img__about--sm {
  display: none;
  align-self: flex-end;
}

.img__about--m {
  display: none;
}

.img__about {
  max-width: 55%;
  height: 100%;
  align-self: flex-end;
}

.img_gallery {
  display: grid;
  grid-template-columns: 33.33% 33.33% 33.33%;
}

.img_gallery--duo {
  display: grid;
  grid-template-columns: 50% 50%;
}

/*================= ID / DETAIL PAGE ====================== */

.btn__back {
  padding: 0.3rem 1.2rem;
  position: absolute;
  margin-inline-start: -2%;
  margin-block-start: 1.5rem;
  color: var(--color-white);
  border: 1px solid rgb(217, 217, 217);
  box-shadow: 0 0 1px rgb(217, 217, 217), 0 0 2px rgb(217, 217, 217),
    0 0 3px rgb(217, 217, 217);
}

.btn__back:hover {
  transition: all 0.3s ease;
  background-color: var(--color-background);
  -webkit-transition: all 0.3s ease;
 /*  background-color: rgba(217, 217, 217, 0.199); */
  box-shadow: 0 0 2px rgb(217, 217, 217), 0 0 5px rgb(217, 217, 217),
    0 0 10px rgb(217, 217, 217);
}

.material-symbols-outlined {
  font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24;
}

.btn__github {
  margin-block-start: 1.5rem;
  color: var(--color-white);
  text-align: center;
  align-self: end;
  text-decoration: underline 1.5px;
  text-underline-offset: 0.3rem;
}

.btn__github:hover {
  text-decoration: underline 1.5px red;
}

.img__id {
  align-self: end;
}

.img__id--l {
  display: flex;
  max-width: 100%;
  height: auto;
  margin-block: 1rem;
  padding: 1rem;
}

.img__id--m,
.img__id--sm {
  display: none;
  align-self: center;
}

.id__tags {
  display: flex;
  flex-wrap: wrap;
  padding-block: 0.1rem 1rem;
}

.id__tags > .tag {
  margin-inline-end: 0.5rem;
  font-size: 14px;
}

.container__id {
  justify-content: center;
}

.about__id {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  max-width: 43%;
  padding-inline-start: 3.5rem;
  line-height: 1.5;
}

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

.id__titles > h1,
.container__assets > h2 {
  font-size: var(--font-size-h1-40);
  padding-block-end: 0.5rem;
}

.img__details-l {
  display: flex;
  max-width: 100%;
  height: auto;
  align-self: end;
}

.container__details {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem 3rem;
  max-width: 90vw;
  margin: 0 auto;
  padding-block-end: 3rem;
}

.container__details > article {
  align-self: center;
  justify-self: center;
  width: 90%;
  max-width: 60rem;
}

.container__details > .left {
  justify-self: end;
}

.container__details > .right {
  justify-self: left;
}

.container__details > article > h3 {
  font-size: var(--font-size-h3);
  padding-block: 2rem 0rem;
}

.container__details > article > p {
  line-height: 1.5;
}

.about__id > p,
.container__details > article  > p {
  padding-block-start: 1rem;
}

.id__tags > .tag {
  padding-block: 0.01rem;
}

/* ==   video and screenshots   ==*/
.container__assets {
  padding-top: 5vh;
  max-width: 90%;
  margin: 0 auto;
}
.video__id {
  width: 90vw;
  height: auto;
  padding-block-end: 3rem;
}

.about__id > h3 {
  font-size: 1.5rem;
  font-weight: 500;
  padding-block: 1.5rem 0rem;
}

/*=========== EFFECTS - GLITCH =========*/

.glitch-button {
  /*   color: var(--color-white); */
  position: relative;
  /*   width: auto; */
  /*   margin: 0rem auto; */
  /*   background: transparent; */
  /*   border: 0.125rem solid rgb(218, 0, 0); */
  /*  border-radius: var(--border-radius); */
  /*   padding: 0.2rem; */
  cursor: pointer;
}

.glitch-button:after,
.glitch-button:before {
  content: attr(data-text);
  position: absolute;
  color: var(--color-white);
  background: var(--color-background);
  overflow: hidden;
  clip: rect(0, 40rem, 0, 0); /* Equivalent to 900px */
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  pointer-events: none; /* Prevents pseudo-elements from blocking the button click */
  text-align: center;
}

.glitch-button:hover:after,
.glitch-button:hover:before {
  opacity: 1;
}

.glitch-button:hover:after {
  left: 0.6rem;
  text-shadow: -0.05rem 0 rgb(92, 0, 0);
  animation: noise-anim 1s 1 linear alternate-reverse;
}

.glitch-button:hover:before {
  left: -0.9rem;
  text-shadow: 0.3rem 0 rgb(92, 0, 0);
  animation: noise-anim-2 2s 1 linear alternate-reverse;
}

@keyframes noise-anim {
  0% {
    clip: rect(4.25rem, 56.25rem, 0.625rem, 0);
  }
  5% {
    clip: rect(0.75rem, 56.25rem, 5rem, 0);
  }
  15% {
    clip: rect(2rem, 56.25rem, 1.25rem, 0);
  }
  20% {
    clip: rect(0.9375rem, 56.25rem, 5.625rem, 0);
  }
  25% {
    clip: rect(3.4375rem, 56.25rem, 1.875rem, 0);
  }
  30% {
    clip: rect(1.125rem, 56.25rem, 4.375rem, 0);
  }
  40% {
    clip: rect(0.625rem, 56.25rem, 2.5rem, 0);
  }
  45% {
    clip: rect(2.1875rem, 56.25rem, 4.6875rem, 0);
  }
  55% {
    clip: rect(0.75rem, 56.25rem, 4.0625rem, 0);
  }
  65% {
    clip: rect(0.9375rem, 56.25rem, 3.125rem, 0);
  }
  75% {
    clip: rect(1.875rem, 56.25rem, 1.5625rem, 0);
  }
  85% {
    clip: rect(1.375rem, 56.25rem, 2.1875rem, 0);
  }
  95% {
    clip: rect(1.75rem, 56.25rem, 0.625rem, 0);
  }
  100% {
    clip: rect(3.125rem, 56.25rem, 2.5rem, 0);
  }
}

@keyframes noise-anim-2 {
  0% {
    clip: rect(1.75rem, 56.25rem, 2.8125rem, 0);
  }
  5% {
    clip: rect(0.9375rem, 56.25rem, 2.1875rem, 0);
  }
  10% {
    clip: rect(1.5625rem, 56.25rem, 4.0625rem, 0);
  }
  15% {
    clip: rect(1.25rem, 56.25rem, 3.125rem, 0);
  }
  20% {
    clip: rect(0.625rem, 56.25rem, 4.375rem, 0);
  }
  25% {
    clip: rect(2.1875rem, 56.25rem, 2.5rem, 0);
  }
  30% {
    clip: rect(1.125rem, 56.25rem, 1.25rem, 0);
  }
  40% {
    clip: rect(1.875rem, 56.25rem, 3.4375rem, 0);
  }
  45% {
    clip: rect(0.75rem, 56.25rem, 1.5625rem, 0);
  }
  50% {
    clip: rect(1.25rem, 56.25rem, 0.9375rem, 0);
  }
  60% {
    clip: rect(2.5rem, 56.25rem, 3.125rem, 0);
  }
  65% {
    clip: rect(1.375rem, 56.25rem, 2.1875rem, 0);
  }
  70% {
    clip: rect(1.75rem, 56.25rem, 0.625rem, 0);
  }
  80% {
    clip: rect(0.3125rem, 56.25rem, 3.4375rem, 0);
  }
  85% {
    clip: rect(1.5625rem, 56.25rem, 1.25rem, 0);
  }
  95% {
    clip: rect(1.875rem, 56.25rem, 0.625rem, 0);
  }
  100% {
    clip: rect(0.75rem, 56.25rem, 4.375rem, 0);
  }
}

/*=======================================
    5.  Media Queries
=========================================*/

@media only screen and (min-width: 1900px) {
  .header > h1 {
    max-width: 40%;
  }
}

@media only screen and (max-width: 1450px) {
  /*== MAIN PAGE ==*/
  .header > h1 {
    max-width: 60%;
  }

/*
  ===== HEADER ===== 
*/

.header__title
{
  font-size: var(--font-size-h1-40);
  grid-template-areas: 
  "greeting refer"
  "name name"
  "job job"
  "passion passion";

  grid-template-columns: fit-content(1rem) 1fr;
  grid-template-rows: 10% 40% 20% 30%;

  min-width: 0rem;
  height: max-content;
  margin: 50vh auto;
}

.title__greeting, .title__refer
{
  font-size: 100%;
  align-self: flex-end;
}

.title__name
{
  font-size: 200%;
  align-self: center;
  margin: 0;
}

.title__job, .title__passion
{
  font-size: 100%;
  align-self: flex-end;
}
/*
  ===== END-HEADER ===== 
*/

  /*== ID PAGE ==*/
  .container__id {
    flex-direction: column;
    padding-block-end: 2rem;
  }

  .img__id {
    display: none;
  }

  .img__id--m {
    display: flex;
    max-width: 100%;
    height: auto;
  }

  .about__id {
    max-width: 100%;
  }
  .id__titles {
    flex-direction: column-reverse;
    padding-block-start: 1rem;
  }
  .id__year {
    padding-block: 0rem;
  }

  .about__id > p {
    max-width: 80%;
  }

  .container__details {
    grid-template-columns: 60% 1fr;
    gap: 1rem;
  }

  .header > h1 {
    max-width: 70%;
  }

  .header__img{
    height: 70%;
    position: absolute;
    right: 0;
    z-index: 0;
  }
}

@media only screen and (max-width: 1200px) {


  /*== About page ==*/
  .img__about {
    display: none;
  }
  .img__about--sm {
    display: flex;
    max-width: 50%;
    height: 100%;
  }
  .about__content {
    max-width: 100%;
  }

  .container__skills {
    padding-block: 0rem 2rem;
  }

  #footer {
    padding: 6rem;
  }
  .container__id {
    padding-block-end: 1rem;
  }
  .container__details {
    display: flex;
    flex-direction: column;
    margin: 0 auto;
  }

  .container__details > article {
    justify-self: center;
  }

  .img__id--m {
    margin: 0 auto;
  }

  .container__details > article  > h3 {
    padding-block-start: 1.2rem;
  }

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

@media only screen and (max-width: 1100px) {
  .about__id > p {
    max-width: 90%;
  }
}

@media only screen and (max-width: 1000px) {
  /*== About page==*/
  .skills__wrapper {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-gap: 1rem;
  }

  .skills > ul > li {
    width: 40vw;
  }

  .header__img{
    opacity: 50%;
  }
}

@media only screen and (max-width: 930px) {
  .nav li:first-child {
    display: none;
  }
  .nav {
    justify-content: flex-end;
  }

  /*== About page==*/
  .container__about {
    flex-direction: column;
    width: 80vw;
    margin: 0 auto;
  }

  .img__about--sm {
    display: none;
  }

  .img__about--m {
    display: flex;
    max-width: 100%;
    height: 100%;
  }
  .about__content {
    max-width: 100%;
    padding-inline: 0rem;
    justify-self: center;
  }
  .container__skills {
    width: 90vw;
  }

  /*== ID page==*/
  .container__id {
    max-width: 100%;
    margin: 0 auto;
  }

  .about__id {
    max-width: 100%;
    padding-inline: 0rem;
  }
  .about__id > p {
    max-width: 100%;
  }

  /*== Works ==*/
  .works {
    grid-template-columns: repeat(2, 1fr);
  }
  .work__wrapper {
    visibility: visible;
  }

  .works > li {
    max-height: 20rem;
    width: auto;
  }
}

@media only screen and (max-width: 800px) {
/*
  ===== HEADER ===== 
*/
  .header > h1 {
    font-size: 1.5rem;
    max-width: 90%;
  }
/*
  ===== END-HEADER ===== 
*/

  /*== Works ==*/
  .works {
    grid-template-columns: repeat(1, 1fr);
  }

  .work__year,
  .work__title {
    text-align: start;
    margin: 0rem;
  }

  .work__title--vertical {
    display: flex;
    flex-flow: row;
    gap: 0.5rem;
  }

  .work__tags {
    justify-content: flex-start;
    gap: 0.1rem;
  }
}

@media only screen and (max-width: 700px) {
  .btn__cv {
    display: none;
  }

  .img_gallery, .img_gallery--duo {
    grid-template-columns: 1fr;
  }
}

@media only screen and (max-width: 550px) {
  .container__details > article{
    width: 100%;
  }
}

@media only screen and (max-width: 450px) {

  .about__content
  {
    width: 90%;
    margin: 0 auto;
  }

  

  .container__works
  {
    border-bottom: 0.2rem inset #ad1414;
    width: 100%;
  }

  .skills > ul > li {
    width: 90vw;
  }

  .works li:first-child {
    background-image: none;
  }

  .work__wrapper {
    background-color: #000000;
    border-bottom: 1px solid var(--color-grey);
    padding-block: 1rem;
  }

  .works {
    height: auto;
  }

  .work__tags {
    padding-block: 1rem;
  }


  .body__home {
    background-image: url('../assets/img/bg_sm.png');
    background-repeat: no-repeat;
    background-size: cover;
  }

  .header {
    min-height: 90vh;
  }
  .img__about--m {
    display: none;
  }

  .img__about--sm {
    display: flex;
    max-width: 100%;
  }

  .header > h1 {
    line-height: 38px;
    align-self: flex-end;
    padding-block-end: 4rem;
  }

  .header__img{
    height: 95%;
    opacity: 20%;
  }

  /*== ID page ==*/

  .container__about,
  .container__nav {
    width: 96%;
    margin: 0 auto;
  }

  .container__home {
    width: 100%;
  }
  .container__about {
    padding-block: 2rem;
  }
  .container__id {
    padding-block: 4rem 1rem;
    width: 95%;
    margin: 0 auto;
  }

  .btn__back {
    margin-inline-start: 0rem;
  }

  .id__titles > h1,
  .container__assets > h2,
  .about__content > h1,
  .container__skills > h2 {
    font-size: 1.7rem;
  }

  .img__id--m {
    display: none;
  }

  .img__id--l {
    display: none;
  }

  .img__id--sm {
    display: flex;
    padding-block-start: 1rem;
    max-width: 90vw;
    height: auto;
  }

  .id__tags {
    margin-block-start: 1rem;
  }

  /*==  works  ==*/
  .works > li {
    max-height: 15.5rem;
    margin-block-end: 0.5rem;
  }

  .work__wrapper {
    display: grid;
    grid-template-columns: 90% 10%;
    grid-template-rows: 10% 20% 1fr;
    padding: 1rem 0.5rem;
  }

  .work__year {
    grid-column: 1/2;
    grid-row: 1/2;
    padding: 0.05rem;
    font-weight: 300;
    color: var(--color-grey);
  }

  .work__title {
    grid-column: 1/2;
    grid-row: 2/3;
    font-size: 1.5rem;
    font-weight: 500;
  }


  .img__arrow--sm {
    display: flex;
    grid-column: 2/3;
    grid-row: 1/3;
    align-self: center;
  }
  .work__tags {
    grid-column: 1/2;
    grid-row: 3/4;
    font-size: 14px;
    padding-block-end: 0rem;
  }

  /* == ABOUT - SKILLS == */
  .skills__wrapper {
    display: flex;
    flex-direction: column;
  }
  .skills > ul > li {
    padding-inline-start: 0.2rem;
  }

  #footer {
    padding: 5rem 0rem;
  }

  #footer > h2 {
    font-size: 1.6rem;
  }

  .hide-phone {
    display: none;
  }
}

@media only screen and (max-width: 395px) {
  .header > h1 {
    margin-block-end: 6rem;
    font-size: 1.6rem;
  }
}

@media only screen and (max-width: 380px) {
  .header > h1 {
    margin-block-end: 3rem;
    font-size: 1.5rem;
  }
}

/*=======================================
       6.  Keyframes
=========================================*/

@media (prefers-reduced-motion: no-preference)
{
  @keyframes move-up {
    from {transform: translateY(10vh);}
    to {transform: translateY(0vh);}
  }
  
  @keyframes move-down {
    from {transform: translateY(-5vh);}
    to {transform: translateY(0vh);}
  }

  @keyframes move-down {
    from {transform: translateY(-5vh);}
    to {transform: translateY(0vh); opacity: 1;}
  }

  @keyframes fade-in {
    from {opacity: 0;}
    to {opacity: 1;}
  }

  @keyframes fade-out-title {
    5% {opacity: 1;}
    90%, 100% {opacity: 0;}
  }

  @keyframes header-video{
    0%{ transform: translateY(0vh); }
    30%, 100%{ opacity: 0; }
    100%{ transform: translateY(100vh); display: none; }
  }
  
  .container__works {
    transform: translateY(-5vh); opacity: 0;
    animation: move-down ease-in-out forwards, fade-in ease-in-out forwards;
    /*animation-timeline: view(20% 0%);*/
    animation-timeline: view();
    animation-range-start: 10%;
    animation-range-end: 40%;
  }
  
  .works {
    transform: translateY(10vh); opacity: 0;
    animation: move-up ease-in-out forwards, fade-in ease-in-out forwards;
    /*animation-timeline: view(20% 0%);*/
    animation-timeline: view();
    animation-range-start: 10%;
    animation-range-end: 40%;
  }

  .header__bg-video
  {
    animation: header-video linear;
    animation-timeline: view();
    animation-range: exit;
    opacity: 0.2;
  }

  .header__title
  {
    animation: fade-out-title linear;
    animation-timeline: view();
    opacity: 1;
  }
}