@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800;900&display=swap');

*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html,body{
  font-family: 'Poppins', sans-serif;
  scroll-behavior: smooth;
}

body::-webkit-scrollbar {
  display: none;
}

#static {
  position: inherit;
}


.logo {
  margin: 3rem;
  padding: 10px;
  position: fixed;
  left: 0;
  top: 0;
}
.logo a {
  cursor: default;
}
.logo  svg {
  width: 2.8rem;
  height: 2.8rem;
}

@media(max-width: 420px){
  .logo {
    margin: 1rem .5rem;
  }

  .logo svg{
    width: 2rem;
    height: 2rem;
  }
}

/* ****************** Loading animation ****************** */
.loader {
  position: fixed;
  height: 100vh;
  width: 100vw;
  z-index: 20;
  top: 0;
  left: 0;
  background: #0d0d0d;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  opacity: 1;
  visibility: 1;
}

.container {
  position: absolute;
  top: 0;
  left: 50%;
  margin-left: -5px;
  animation: inicio 3s ease-in-out forwards;
}

.container::after {
  background: #b7ab98;
  content:"";
  position: absolute;
  top: -1000px;
  left: 50%;
  margin-left: 9px;
  width: 1px;
  height: 1000px;
}

.container::before {
  background: #df1f2d;
  color: #fff;
  font-size: 1.0em;
  content:"";
  border-radius: 100%;
  position: absolute;
  margin-top: -5px;
  margin-left: -1px;
  width: 22px;
  height: 24px;
  z-index: 4;
}

.eye {
  position: absolute;
  background-color: #b7ab98;
  width: 20px;
  height: 8px;  
  border-radius: 30%;
  z-index: 10;
  margin-top: 12px;
}

.eye::before {
  content: ". .";
  text-wrap: nowrap;
  position: absolute;
  font-size: 1.2rem;
  font-weight: 800;
  margin-top: -13px;
  margin-left: 2px;
}

.left {
  position: absolute;
}

.right {
  position: absolute;
  transform: rotateY(180deg);
}

.uno,
.dos,
.tres,
.cuatro {
  background: #b7ab98;
  position: relative;
  width: 20px;
  height: 3px;
}

.uno > .uno,
.dos > .dos,
.tres > .tres,
.cuatro > .cuatro {
  transform-origin: 20px top;
  transform: rotate(-80deg) translateX(20px);
  animation: seg 2.5s ease infinite;
}

.uno > .uno > .uno,
.dos > .dos > .dos,
.tres > .tres > .tres,
.cuatro > .cuatro > .cuatro {
  transform-origin: 20px top;
  transform: rotate(10deg) translateX(20px);
  animation: seg 1.5s ease infinite;
}

.right > .dos > .dos {
  animation-delay: 200ms;
}

.dos > .dos {
  animation-delay: 400ms;
}

.dos > .dos > .dos {
  animation-delay: 200ms;
}

.right >.tres > .tres {
  animation-delay: 400ms;
}

.tres > .tres {
  animation-delay: 600ms;
}

.tres > .tres > .tres {
  animation-delay: 300ms;
}

.right > .cuatro > .cuatro {
  animation-delay: 100ms;
}

.cuatro > .cuatro {
  animation-delay: 800ms;
}

.cuatro > .cuatro > .cuatro {
  animation-delay: 400ms;
}

@keyframes seg {
  50% {
    transform: rotate(55deg) translateX(20px);
  }
}

@keyframes inicio {
  100% {
    top: 50%;
  }
}

.loader > button {
  height: 2.5rem;
  width: 7rem;
  margin-top: 10rem;
  cursor: pointer;
  color: #b7ab98;
  outline: none;
  border: 1px solid #b7ab98;
  font-size: 1rem;
  background-color: transparent;
  border-radius: .4rem;
  text-transform: uppercase;
  transition:all .5s ease;
  text-align: center;
  font-weight: 500;
  letter-spacing: 1px;
  font-family: Avant Garde,sans-serif;
}

.loader > button:hover {
  background-color: #b7ab98;
  color: #0d0d0d;
}


.hide-loader {
  height: 0;
  opacity: 0;
  visibility: 0;
}


/* ****************** navigation bar ****************** */
nav {
  position: fixed;
  right: 0;
  display: flex;
  flex-direction: column;
  padding: 3rem 2.5rem 1.5rem 1.5rem;
  z-index: 15;
}

nav > a{
  text-decoration: none;
  font-family: Avant Garde,sans-serif,serif;
  font-weight: 500;
  color: hsla(37, 18%, 66%, 0); 
  overflow: hidden;
  display: flex;
  margin: 2px auto;
  position: relative;
  height: fit-content;
  width: 4rem;
}




nav > .link::after{
  content: attr(data-text);
  position: absolute;
  left: 0;
  top: 0;
  transition: 0.2s;
  color: rgba(184, 172, 153, 0.541);
  transform: translateX(0);
}

nav > .link::before{
  content: attr(data-text);
  position: absolute;
  top: 0;left: 0;
  transition: 0.2s;
  color: hsla(37,18%,66%, 1);
  transform: translateY(100%);
}

nav > .link:hover::before{
  transform: translateY(0);
}
nav > .link:hover::after{
  color: hsla(37,18%,66%, 1);
  transform: translateY(-100%);
}

nav  .link::after > .active {
  color: hsla(37,18%,66%, 1);
}

@media(max-width: 420px){
  nav{
    padding: 1rem .5rem 1.5rem 1.5rem;
  }
}


/* ****************** Music Section ****************** */
.music {
  position: fixed;
  bottom: 0;
  right: 0;
  margin: 0 0 5.5rem 0rem;
  z-index: 15;
}
  
.music > audio {
  display: none;
}

.music > a{
  transform: rotate(270deg);
  display: flex;
  text-decoration: none;
  padding-bottom: 3.5rem;
  cursor: pointer;
} 

.music a h3, .scroll h3 {
  font-family: Avant Garde,sans-serif,serif;
  font-weight: 500;
  font-size: 1.1rem;
  color: #b7ab9898; 
  overflow: hidden;
  position: relative;
  height: fit-content;
  width: fit-content;
  text-align: center;
  transform: translateY(0%);
  cursor:pointer;
  pointer-events: stroke;
  user-select: none;
}

.scroll .up, .scroll .down{
  position: absolute;
  left: 0;
  top: 0;
  color: #b7ab98;
  transition: transform .4s;
  padding-left: 3.5rem;
  overflow-y: hidden;
  height: fit-content;
  width: fit-content;
  cursor: default;
  pointer-events: none;
}

.opac:hover{
  color: #b7ab98;
  transition: color 700ms;
}
/* 
.scroll .down {
  transform: translateY(80%);
  opacity: 0;
}

.scroll .up {
  transform: translateY(0%); 
} */

@media(max-width:420px){
  .music{
    margin: 0 -1.5rem 2.5rem 0rem;
  }

  .opac {
    color: #b7ab98;
  }
}

/* ****************** Intro Section ****************** */
#intro{
  display: grid;
  place-items: center;
}


#intro .content {
  height: 100vh;
  width: 100vw;
  display: grid;
  place-content: center;
}

.content-b {
  background: url('/assets/img/bg.png');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.name h3{
  font-family: Avant Garde,sans-serif,serif;
  font-size: 1.2rem;
  font-weight: 400;
  color: #b7ab98;
  letter-spacing: .4rem;
  text-align: center;
  text-transform: uppercase;
  user-select: none;
}

.quote {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.quote h1 {
  position: relative;
  font-family: Avant Garde,sans-serif,serif;
  text-align: center;
  color: rgb(183, 171, 152);
  font-size: 7.5rem;
  letter-spacing: -.5rem;
  font-weight: 600;
  text-transform: uppercase;
  user-select: none;
}

.quote .single:not(:nth-child(5)) {
  margin-bottom: -2.8rem;
}

.quote .differ{
  color: #df1f2d;
}

.overlay {
  position: absolute;
  top: 0;
  left: 0;
  background: #df1f2d;
  clip-path: circle(18px at var(--x, 50%) var(--y, 50%));
  transition: clip-path 100ms;
  pointer-events: none;
  transition-timing-function: ease-out;  
}

.overlaychange {
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  background: #df1f2d;
  clip-path: circle(200px at var(--x, 50%) var(--y, 50%));
  transition: clip-path 130ms;
  pointer-events: none;
  transition-timing-function: ease-out;
  }
  

.opacity{
  opacity: 0;
  transition: clip-path 130ms;
  pointer-events: none;
  transition-timing-function: ease-out;
}

.overlaychange .name h3, .overlaychange h1, .overlaychange .differ, .overlay .name h3, .overlay h1, .overlay .differ {
  color: #0d0d0d;
}

.resbtn {
  display: none;
}

@media(max-width:420px) {

  .name h3{
    font-size: 1rem;
  }

  .quote .single:not(:nth-child(5)) {
    margin-bottom: -1.8rem;
  }

  .quote .single{
    font-size: 5rem;
    letter-spacing: -.3rem;
  }

  .overlay, .overlaychange{
    clip-path: circle(0px at 50% 100%);
  }


  .resbtn {
    position: fixed;
    bottom: 10px;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 19;
  }

  .rotator {
    display: grid;
    place-content: center;
    font-size: 25px;
    font-weight: bold;
    word-spacing: 4px;
    text-transform: uppercase;
  }
  
  @keyframes rotating {
    from {
      transform: rotate(0deg);
    }
    to {
      transform: rotate(360deg);
    }
  }
  .rotating {
    animation: rotating 6s linear infinite;
  }

  .ptr{
    position: absolute;
    fill: #df1f2d;
  }

  .overlay {
    clip-path: circle(0px at 50% 100%);
  }

  .holdChange {
    clip-path: circle(700vh at 50% 100%);
    transition: clip-path 800ms ease;
  }
  
  .rotator svg {
    width: 20vw;
  }
}

/* ******************  Social Media ****************** */


.social {
  position: fixed;
  left: 0;
  bottom: 0;
  margin: 2rem 4rem;
  z-index: 15;
}

.social ul {
  display: flex;
  gap: 10px;
  flex-direction: column;
}

.social ul li {
  list-style-type: none;
  padding: 5px;
  z-index: 15;
}

.social ul li:hover > #social-d{
  fill: #0d0d0d;
}

@media(max-width: 420px){
  .social{
    margin: 2rem .5rem;
    display: none;
  }
}

/* ******************  About ME Section ****************** */

.about {
  height: 100vh;
  width: 100vw;
  background-color: #0d0d0d;
  display: grid;
  grid-template-columns: 15% 20% 60% 10%;
  place-content: center;
  gap: 4rem;
}

.about > * {
  user-select: none;
}

.phead {
  display: grid;
  place-content: center;
}

.phead >  .cimg{
  user-select: none;
}

.cimg > img {
  height: 18rem;
  width: 16rem;
  border-radius: 1rem;
  /* animation: breathe 1500ms ease-in-out alternate infinite; */
  cursor: pointer;
}

.simg {
  scale: .7; opacity: 0;
  animation: fade-in linear forwards 2s;
  animation-timeline: view();
  animation-range: entry;
}

.cimg-d > img {
  animation: breathe-d 1500ms ease-in-out alternate infinite;
}


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

@keyframes breathe-d {
  0%{
    box-shadow: 0px 0px 10px #000000;
    scale: 1;
  }

  100%{
    box-shadow: 0px 0px 40px #000000;
    scale: 1.008;
  }
}


.about-d{
  background-color: #df1f2d;
}


.text-reveal h2 > span {
  font-size: 2rem;
  text-transform: uppercase;
  font-weight: 400;
  text-align: right;
  text-align-last: left;
  letter-spacing: -2px;
  color: #b7ab9839;
  background-image: linear-gradient(#b7ab98, #b7ab98);
  background-clip: text;
  background-size: 0% 100%;
  background-repeat: no-repeat;
  animation: scroll-reveal linear forwards;
  animation-timeline: view();
  animation-range-start: cover 10vh;
  animation-range-end: cover 20vh;
}

.text-reveal h2 > span > span {
  color: #df1f2c3f;
  background-image: linear-gradient(#df1f2d, #df1f2d);
  background-clip: text;
  background-size: 0% 100%;
  background-repeat: no-repeat;
  animation: scroll-reveal linear forwards;
  animation-timeline: view();
  animation-range-start: cover 20vh;
  animation-range-end: cover 30vh;
}


.text-reveal p{
  user-select: none;
}
.text-reveal>p >span{
  font-size: 3.1rem;
  line-height: 103%;
  font-weight: 700;
  /* text-transform: lowercase; */
  color: #b7ab9839;
  background-image: linear-gradient(#b7ab98, #b7ab98);
  background-clip: text;
  background-size: 0% 100%;
  background-repeat: no-repeat;
  animation: scroll-reveal linear forwards;
  animation-timeline: view();
  animation-range-start: cover 30vh;
  animation-range-end: cover 60vh;
}

.text-reveal-d > p>span, .text-reveal-d> h2>span {
  color: #0d0d0d;
}

@keyframes scroll-reveal{
  to{
    background-size: 100% 100%;
  }
}

@media(max-width:420px){

  .about{
    display: grid;   
    grid-template-columns: none;
    grid-template-rows: 0% 40% 30% 0%;
    place-content: center;
    gap: 0rem;
  }

  .stack {
    padding: 0 0.5rem 0 2rem;
  }

  .text-reveal h2> span {
    font-size: 1.5rem;
    animation-range-start: cover 0vh;
    animation-range-end: cover 20vh;
  }

  .text-reveal>p >span{
    font-size: 1.5rem;
    animation-range-start: cover 20vh;
    animation-range-end: cover 40vh;
  }

}


/* ******************  Work Section ****************** */

.work {
  width: 100vw;
  background: #1b1b1b;
}

.work > *{
  user-select: none;
}

.work-d {
  background: #df1f2d;
}

.whead {
  margin: 6% 0% 0% 15%;
}

.whead h2 {
  color: #b7ab98;
  font-size: 2rem;
  font-weight: 400;
}

.work-d h2 {
  color: #0d0d0d;
}

.wk {
  margin: 6% 15% 0% 15%;
  display: flex;
  align-items: end;
  gap: 1rem;
}

.w2 {
  flex-direction: row-reverse;
}

.wk .vidwh {
  width: 38rem;
  height: 22rem;
}

.wk video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 10px;
  z-index: 15;
}

.work-d video {
  opacity: 1;
}

.wk1cont {
  position: relative;
  width: 20rem;
  height: 12rem;
  text-decoration: none;
  background: #b7ab9869;
  color: #000000;
  border-radius: 10px;
  padding: 1.5rem;
  position: relative;
  overflow: hidden;
  border: 2px solid rgb(223, 31, 45, .5);
  cursor: pointer;
}

.wkbef::before {
  position: absolute;
	top: 0;
	left: -75%;
	z-index: 2;
	display: block;
	content: '';
	width: 50%;
	height: 100%;
	background: linear-gradient(to right, rgba(255,255,255,0) 0%, rgb(223, 31, 45, .3) 100%);
	transform: skewX(-25deg);
  opacity: 0;
}

.arrowicon {
  position: absolute;
  bottom: 0;right: 0;
  padding-right: 20px;
  padding-bottom: 10px;
  transform: translateX(0px);
  transition: .4s transform ease-in-out;
}

.arrowicon i {
  font-size: 1.2rem;
}

.work-d .arrowicon {
  transform: translateX(10px);
}

.wkbef:hover::before {
	animation: shine .7s;
}

@keyframes shine {
	100% {
		left: 125%;
    opacity: 1;
	}
}

.work-d .wk1cont {
  background: #0d0d0d;
  color: #b7ab98;
}

.work-d .wk1cont h2, p {
  color: #b7ab98;
}

@media(max-width:420px) {

  .work .whead h2 {
    margin-top: 4rem;
  }
  
  .wk {
    margin: 5rem 0% 5rem 0%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
  }

  .w2 {
    flex-direction: column;
  }

  .wk .vidwh {
    width: 20rem;
    height: 12rem;
  }

  .wk1cont {
    height: 4rem;
    padding: 0;
    display: flex;
    align-items: center;
    padding-left: .5rem;
    background-color: #b7ab98;
  }

  .wk1cont p {
    display: none;
  }
  
}