@import url('https://fonts.googleapis.com/css2?family=Inter:ital,opsz,wght@0,14..32,100..900;1,14..32,100..900&display=swap');

html{
   --first: #121316;
   --second: #533d47;
   --thered: #796366;
   --foured: #c19787;
   --fived: #ffc783;

   --text-secondary: rgba(0,0,0, 0.8);
}
html._dark{
   --foured: rgba(255,255,255,0.3);
   --first: #fff;
   --fived: #121316;

   --text-secondary: rgba(255,255,255, 0.7);
}

*,
*:before,
*:after{
   box-sizing: border-box;
   margin: 0;
   padding: 0;
}

html, body{
   box-sizing: border-box;
   margin: 0;
   padding: 0;
}

body{
   display: flex;
   flex-direction: column;
   min-height: 100vh;
   font-family: 'Inter', sans-serif;
   background: var(--fived);
   color: var(--first);
   transition: background 0.3s;
}

a{
   text-decoration: none;
   transition: 0.3s;
   color: var(--first);
}

a:hover{
   color: var(--second)
}
html._dark a:hover{
   color: var(--foured)
}

button{
   border: 0;
   margin: 0;
   padding: 0;
   background: transparent;
   cursor: pointer;
}

h1, h2, h3, h4, h5, h6{
   margin-bottom: 0;
}

.title{
   font-size: 24px;
   margin-bottom: 1em;
   font-weight: 700;
   border-bottom: 1px solid var(--foured);
   padding-bottom: 0.5em;
}

@media (max-width: 480px) {
   .title{
      font-size: 20px;
      margin-bottom: 0.8em;
   }
}

.prank-gif {
   position: absolute;
   top: 340px;
   left: 0;
   z-index: 10000;
   transform: translateX(-30%);
}

/* Container */

.container{
   width: 100%;
   max-width: 710px;
   margin: 0 auto;
   padding: 0 16px;
}

html._full .container{
   max-width: 100%;
}

/* Row */

.container .row{
   display: flex;
   flex-wrap: wrap;
   margin: 0 -8px;
}

.container .row > *{
   padding: 0 8px;
}

/* Main */ 

.main{
   padding-top: 90px;
   flex-grow: 1;
}

/* Header */

.header{
   position: fixed;
   top: 0;
   left: 0;
   width: 100%;
   z-index: 1050;
   -webkit-backdrop-filter: blur(24px);
   backdrop-filter: blur(24px);
   transition: background 0.3s;
   background: var(--fived);
}

.header__body{
   padding: 16px 0;
   display: flex;
   align-items: center;
   justify-content: space-between;
   border-bottom: 1px solid var(--foured);
}

.header__logo{
   font-size: 18px;
   font-weight: 700;
   display: flex;
   align-items: center;
   gap: 4px;
}

.header__actions{
   display: flex;
   align-items: center;
   gap: 16px;
}

.mail-send{
   font-size: 0;
}

.btn__nav{
   border-radius: 8px;
   background: var(--foured);
   display: flex;
   align-items: center;
   justify-content: center;
   width: 40px;
   height: 40px;
   color: var(--first);
   position: relative;
   transition: 0.3s;
}

html._dark .btn__nav{
   color: var(--fived);
}

.btn__nav:hover{
   background: var(--thered);
   color: #fff !important;
}

.btn__nav span{
   font-size: 20px;
   position: absolute;
   top: 50%;
   left: 50%;
   transform: translate(-50%, -50%);
   transition: transform 0.3s, opacity 0.3s, visibility 0.3s;
}

.btn__theme ._moon{
   opacity: 0;
   visibility: hidden;
   transform: translate(-50%, 0%);
}

html._dark .btn__theme ._moon{
   opacity: 1;
   visibility: visible;
   transform: translate(-50%, -50%);
}

html._dark .btn__theme ._sun{
   opacity: 0;
   visibility: hidden;
   transform: translate(-50%, 0%);
}

.btn__size span{
   font-size: 22px;
}
@media (max-width: 709px) {
   .btn__size{
      display: none;
   }   
}
.btn__size ._fullscreen-exit{
   opacity: 0;
   visibility: hidden;
   transform: translate(-50%, 0%);
}

html._full .btn__size ._fullscreen-exit{
   opacity: 1;
   visibility: visible;
   transform: translate(-50%, -50%);
}

html._full .btn__size ._fullscreen{
   opacity: 0;
   visibility: hidden;
   transform: translate(-50%, 0%);
}

/* Content */

.case{
   flex: 0 0 50%;
   margin-bottom: 32px;
}

.case._disabled {
   pointer-events: none;
}

.home .row {
   display: grid;
   grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}
@media (max-width: 480px) {
   .case{
   }
   .home{
      overflow: hidden;
   }
   .home .row{
      flex-wrap: nowrap;
      overflow-x: scroll;
      margin: 0 -16px;
      padding: 0 8px;
   }
}
.case__wrapper {
   position: relative;
}
.case__tags {
   list-style: none;
   padding-left: 0;
   margin-bottom: 0;
   position: absolute;
   right: 0.25rem;
   top: 0.25rem;
   border-radius: 0.5rem;
   z-index: 1;
   display: flex;
   flex-direction: column;
   align-items: flex-end;
   row-gap: .25rem;
   opacity: 0;
   visibility: hidden;
   transform: translateX(0.625rem);
   transition: opacity 0.25s ease-in-out, visibility 0.25s ease-in-out, transform 0.25s ease-in-out;
}
.case:hover .case__tags {
   opacity: 1;
   visibility: visible;
   transform: translateX(0);
}
.case__tags li {
   border-radius: 0.375rem;
   padding: 0.125rem 0.375rem;
   margin-bottom: 0;
   font-size: 0.875rem;
}
.case__tags li._wordpress {
   background: #28799e;
   color: #fff;
}
.case__tags li._frontend {
   background: #f16729;
   color: #fff;
}
.case__tags li._design {
   background: #2965f1;
   color: #fff;
}
.case__tags li._php {
   background: #8993be;
   color: #232531;
   font-style: italic;
   font-weight: 600;
   letter-spacing: 0.02em;
   /* border-radius: 50%; */
}
.case__thumb{
   display: block;
   position: relative;
   overflow: hidden;
   width: 100%;
   padding-top: 56%;
   margin-bottom: 8px;
   border-radius: 8px;
}
.case__thumb:hover img{
   transform: translate(-50%, -50%) scale(1.07);
}
.case__thumb .material-symbols-outlined {
   max-width: 70%;
   max-height: 80%;
   height: 50%;
   object-fit: contain;
   position: absolute;
   top: 50%;
   left: 50%;
   transform: translate(-50%, -50%);
   display: flex;
   align-items: center;
   justify-content: center;
   font-size: 4rem;
   color: #121316;
}
.case__thumb video {
   position: absolute;
   top: 50%;
   left: 50%;
   transform: translate(-50%, -50%);
   width: 200%;
   height: 200%;
   object-fit: cover;
   object-position: center;
}
.case__thumb img{
   max-width: 70%;
   max-height: 80%;
   height: 50%;
   object-fit: contain;
   position: absolute;
   top: 50%;
   left: 50%;
   transform: translate(-50%, -50%);
   transition: 0.5s;
}
._robotics .case__thumb img{
   top: auto;
   bottom: 0;
   transform: translateX(-50%);
   height: 80%;
}
._robotics .case__thumb:hover img{
   transform: translate(-50%, 0%) scale(1.07);
}
.case__title{
   margin-bottom: 4px;
   font-size: 18px;
}
.case__excerpt {
   font-size: 0.875rem;
   line-height: 1.45;
   letter-spacing: -0.02em;
   color: var(--text-secondary);
}

/* Footer */

.footer__body{
   border-top: 1px solid var(--foured);
   padding: 24px 0 32px;
   text-align: center;
}

/* About home */

.about {
   margin-bottom: 30px;
}
.about__body {
   flex-wrap: nowrap !important;
   max-width: 710px;
}
@media (max-width: 709px) {
   .about__body{
      flex-direction: column;
      /* max-width: 360px;
      margin: 0 auto !important; */
   }
   /* .about__body > *{
      padding: 0 !important;
   } */
}
.about-img{
   flex: 0 0 calc(100% / 3);
   width: calc(100% / 3);
}
@media (max-width: 709px) {
   .about-img{
      flex: 0 0 100%;
      width: 100%;
      margin-bottom: 10px;
   }
}
.about-img figure{
   margin-bottom: 0;
   overflow: hidden;
   border-radius: 10px;
   padding-top: 120%;
   position: relative;
}
@media (max-width: 709px) {
   .about-img figure{
      padding-top: 0;
      height: 200px;
   }
}
.about-img figure img{
   position: absolute;
   top: 0;
   left: 0;
   width: 100%;
   height: 100%;
   object-fit: cover;
}
@media (max-width: 709px) {
   .about-img figure img{
      object-position: 0 -60px;
   }
}
.about-text {
   flex-grow: 1;
   align-self: flex-end;
}
.about-text h1{
   margin-bottom: 0.5em;
   font-size: 1.75rem;
   letter-spacing: 0.02em;
}
.about-text p{
   line-height: 1.5;
   font-size: 16px;
   margin-bottom: 1em;
   letter-spacing: 0.02em;
}
@media (max-width: 709px) {
   .about-text p{
      margin-bottom: 0.75em;
   }
}
.about-text p:last-child{
   margin-bottom: 0;
}