/**************************************************/
/**         GENERAL RESET & BASE STYLES          **/
/**************************************************/

@import url("https://fonts.googleapis.com/css2?family=Bebas+Neue&family=Dancing+Script:wght@400..700&family=Yarndings+20&display=swap");

* {
  margin: 0;
  padding: 0;
  font-style: normal;
  line-height: normal;
  -webkit-box-sizing: border-box;
  box-sizing: border-box;
  font-size: 24px;
  font-family: "Bebas Neue", sans-serif;
}
.yarndings-20-regular {
  font-family: "Yarndings 20", system-ui;
  font-weight: 400;
  font-style: normal;
}

.bebas-neue-regular {
  font-family: "Bebas Neue", sans-serif;
  font-weight: 400;
  font-style: normal;
}
.dancing-script {
  font-family: "Dancing Script", cursive;
  font-optical-sizing: auto;
  font-weight: 700;
  font-style: normal;
}

*:focus {
  outline: none;
}

html,
body {
  height: 100%;
  width: 100%;
  scroll-behavior: smooth;
}

body {
  display: flex;
  flex-direction: column;
}

main {
  flex: auto;
}

ol,
ul {
  list-style: none;
}

a {
  text-decoration: none;
}

strong {
  font-weight: 700;
}

b {
  font-weight: 500;
}

img {
  width: 100%;
  height: auto;
}

input,
textarea,
select {
  vertical-align: middle;
  padding: 0;
  box-sizing: border-box;
  resize: none;

  border: 1px solid transparent;
  color: #000c49;
  background-color: #fff;
}

textarea::-webkit-input-placeholder,
input::-webkit-input-placeholder {
  color: #000c49;
  font-size: 16px;
}

textarea:focus::-webkit-input-placeholder,
input:focus::-webkit-input-placeholder {
  color: #b9b9b9;
}

input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus,
input:-webkit-autofill:active {
  -webkit-background-clip: text;
  -webkit-text-fill-color: #fff;
  transition: background-color 5000s ease-in-out 0s;
  box-shadow: inset 0 0 20px 20px transparent;
}

.hover {
  transition: opacity 0.4s;
}

.hover:hover {
  opacity: 0.5;
}

/* .container {
  display: block;
  position: relative;
  width: 1200px;
  padding: 0;
  margin: 0 auto;
  height: 100%;
} */

/**************************************************/
/**                 MAIN STYLES                  **/
/**************************************************/
.title {
  color: #fff;
  background: transparent;
  text-align: center;
  text-transform: uppercase;
  font-size: 55px;
  line-height: 20px;
}
.header {
  position: fixed;
  top: 0;
  mix-blend-mode: difference;

  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  width: 100%;
  height: 100vh;
  pointer-events: none;
}
.main {
  background-color: #000;
}
.container {
  display: block;
  position: relative;
}
.header p {
  font-family: "Bebas Neue", sans-serif;
  font-weight: 400;
  font-style: normal;
  font-size: 50px;
  color: #fff;
  text-align: center;
  margin: 15px 0;
}
.header span {
  font-family: "Yarndings 20", system-ui;
  font-weight: 400;
  font-style: normal;
  color: #fff;
  font-size: 50px;
  text-align: center;
  line-height: 10px;
  margin: 15px 0;
}
.header span.span {
  display: flex;
  justify-content: center;
  width: 100%;
  margin: 30px 0;
}
body {
  margin: 0;
  overflow-x: hidden;
}
.grid {
  display: flex;
  width: 100%;
  height: 100%; /* сетка на весь экран */
  position: absolute;
  top: 0;
  left: 0;
  z-index: 1;
}
.column {
  flex: 1;
  display: flex;
  flex-direction: column;
}
.column div {
  flex: 1;
  border: 1px solid rgba(0, 0, 0, 0.05);
  background: transparent;
}
.first-section {
  position: relative;

  height: 100vh;
  width: 100%;
  z-index: 1;
}
.portfolio {
  height: auto;
  width: 100%;
  min-height: 100vh;
  background: #000;
  position: relative;
  z-index: 55;
}

.container {
  width: 1800px;
  margin: 0 auto;
  overflow: hidden;
  background: #000;
}
ul {
  display: flex;
  flex-direction: column;
  list-style: none;
  padding: 0;
  margin: 0;
  cursor: pointer;
  mix-blend-mode: difference;
}
li {
  padding: 0;
  list-style: none;
  transition: 0.1s all;
  padding: 5px 0;
  font-size: 25px;
  border-bottom: 1px solid #fff;
  cursor: pointer;
  color: #fff;
}
li > div {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}
li > div div:nth-child(3) {
  text-align: end;
}
li > div div:nth-child(2) {
  text-align: center;
}
li:hover {
  padding: 5px 10px;
}

li {
  position: relative;
  overflow: hidden;
  color: #fff;
  font-size: 20px;
  border-bottom: 1px solid #fff;
  cursor: pointer;
}

li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background: #fff;
  transform: scaleY(0);
  transform-origin: top;
  z-index: -1;
}
li {
  --scale: 0;
  --origin: top;
}

li::before {
  transform: scaleY(var(--scale));
  transform-origin: var(--origin);
  transition: transform 0.3s ease;
}


.my-project-title{
  pointer-events: none;
}
.top div{
  text-transform: capitalize;
}
.my-project{
  display: grid;
  position: relative;
}
.bottom{
  display: grid;
  grid-template-rows: 0fr;
  overflow: hidden;
  transition: all 0.5s;
}
.bottom>div{
  min-height: 0;
}
.active .bottom{
  grid-template-rows: 1fr;
  overflow: hidden;
}
.active{
  background-color: #fff;
} 
.active *{
  color: #000;
} 
li.active:hover {
  padding: 5px 0;
}
.img{
  margin-top: 20px;
}
.bottom a{
  margin: 10px 0;
  display: block;
  background:transparent;
}