@import "./reset.css";
@import "./variables.css";
@import "./fonts.css";

body {
  align-items: center;
  justify-content: center;
  margin: 0;
  background: var(--clr-bg);
  font-family: "Thunder", "PP Pangaia", Helvetica, Arial, sans-serif;
  /* background-image: url(../asset/bg.png);
  background-repeat: no-repeat;
  background-size: cover; */
}

.content {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  width: 100%;
  gap: 0.5rem;
}

.portfolio {
  position: absolute;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100%;
  overflow: hidden;
  font-size: 22rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--clr-white);
  writing-mode: vertical-lr;
  left: -5rem;
  cursor: context-menu;
  transition: color 0.4s;
  animation: zoom 0.5s forwards;
}

@keyframes zoom {
  from {
    scale: 0.1;
  }
  to {
    scale: 1;
  }
}

.portfolio:hover {
  color: var(--clr-black);
  background-color: var(--clr-white);
}

/* .name{
  color: var(--clr-white);
} */

.grid {
  display: grid;
  height: 80%;
  width: 80%;
  gap: 1rem;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr 2fr 2fr;
  grid-template-areas:
    "a a"
    "p d"
    "v d";
}

.brr {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  padding: 1rem;
  background-color: rgba(11, 11, 11, 0.5);
  border-radius: 1rem;
  box-shadow: 0px 1px 4px rgba(11, 11, 11, 0.16);
  overflow: hidden;
  cursor: pointer;
  backdrop-filter: blur(20px);
  transition: all 0.3s;
}

.brr:hover {
  background-color: rgba(11, 11, 11, 0.5);
}

/* BG BLACK */
/* .bbg {
  position: absolute;
  width: 100%;
  height: 100%;
  z-index: 0;
  opacity: 0;
  background-color: var(--clr-white);
  transition: all 0.3s;
} */

/* BG IMG */
.bg {
  position: absolute;
  width: 100%;
  height: 100%;
  z-index: 1;
  opacity: 0;
  object-fit: cover;
  /* filter: brightness(0); */
  transition: all 0.3s;
}

/* LIGHT BG */
.bghover:hover .bg {
  transform: scale(1.1);
  opacity: 0.25;
  /* filter: brightness(0.4); */
}

/* TEXT */
.text {
  display: flex;
  flex-direction: column;
  align-items: center;
  z-index: 5;
  color: var(--clr-white);
  text-shadow: 1px 1px 1px var(--clr-black);
}

.title {
  font-family: "Thunder";
  font-size: 3rem;
  font-weight: 500;
  text-transform: uppercase;
  /* cursor: text; */
}

.subtitle {
  font-family: "PP Pangaia";
  font-size: 1.5rem;
  font-weight: 100;
  letter-spacing: 1px;
  /* cursor: text; */
  text-align: center;
  opacity: 0;
  transition: all 0.2s;
}

.brr:hover .subtitle {
  opacity: 1;
}

/* GRID */
.about {
  grid-area: a;
}

.photo {
  grid-area: p;
}

.video {
  grid-area: v;
}

.design {
  grid-area: d;
}

/* CIRCLE CONTACT */
.circle__size {
  display: flex;
  align-items: end;
  height: 80%;
}

.circle {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  width: 6rem;
  height: 6rem;
  color: var(--clr-white);
  border-radius: 50%;
  font-family: "Thunder";
  font-weight: 500;
  transition: 0.4s;
  overflow: hidden;
  cursor: pointer;
  /* background-color: rgba(11, 11, 11, 0.5); */
}

.circle::before {
  content: "";
  position: absolute;
  left: 0;
  width: 0%;
  height: 0%;
  background: var(--clr-white);
  border-radius: 50%;
  z-index: -1;
  transition: 0.4s;
}

.circle:hover {
  color: var(--clr-black);
}

.circle:hover::before {
  height: 100%;
  width: 100%;
}

.circle__text {
  position: absolute;
  width: 100%;
  height: 100%;
  animation: contact 10s linear infinite;
}

@keyframes contact {
  to {
    transform: rotate(360deg);
  }
}

.circle__text span {
  position: absolute;
  left: 50%;
  font-size: 0.5rem;
  transform-origin: 0 3rem;
  color: var(--clr-white);
  transition: 0.4s;

  /* cursor: text; */
}

svg,
.path__contact {
  height: 1.5rem;
  fill: var(--clr-white);
}

.circle:hover .path__contact {
  fill: var(--clr-black);
  transition: 0.4s;
}

.circle:hover span {
  color: var(--clr-black);
}

@media screen and (max-width: 1200px) {
  .portfolio {
    font-size: 17rem;
    left: -4rem;
  }

  .brr {
    border-radius: 0.5rem;
    padding: 1rem;
  }

  .title {
    font-family: "Thunder";
    font-size: 2.5rem;
    font-weight: 500;
    text-transform: uppercase;
    /* cursor: text; */
  }

  .subtitle {
    font-family: "PP Pangaia";
    font-size: 1rem;
    font-weight: 100;
    letter-spacing: 1px;
    /* cursor: text; */
    text-align: center;
  }
}

@media screen and (max-width: 600px) {
  .portfolio {
    font-size: 11rem;
    left: -3rem;
  }

  .content {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    height: auto;
    padding: 5rem 0;
  }

  .grid {
    display: flex;
    flex-direction: column;
    width: 80%;
    height: auto;
    gap: 1rem;
  }

  .brr {
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .circle__size {
    height: auto;
  }

  .brr .subtitle {
    opacity: 1;
  }
}

/* LANGAGE */
.sticky__lang {
  display: flex;
  position: fixed;

  width: auto;
  /* position */
  right: 7%;
  top: 10%;
  z-index: 9999;
  cursor: default;
}

.flag {
  cursor: default;
}

.flag svg {
  width: 5rem;
  height: auto;
  cursor: pointer;
}

@media screen and (max-width: 1200px) {
  .flag svg {
    width: 3.5rem;
  }
}

@media screen and (max-width: 600px) {
  .sticky__lang {
    right: 10%;
  }

  .flag svg {
    width: 2rem;
  }
}

/* 404 */

.error {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  height: 100%;
  width: 100%;
  gap: 2rem;
  background-color: #310000;
}

.error__clr {
  color: var(--clr-white);
}

.error .text {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  box-shadow: 0px 1px 4px rgba(11, 11, 11, 0.16);
}

.error h1 {
  display: flex;
  flex-direction: column;
  align-items: center;
  font-size: 5rem;
  font-weight: 700;
  text-transform: uppercase;
}

.error h2 {
  font-size: 2rem;
  font-weight: 500;
}

@media screen and (max-width: 600px) {
  .error h1 {
    font-size: 3rem;
  }

  .error h2 {
    font-size: 1rem;
  }
}
