:root {
  --background-color: #FFEFDD;
  --main-color: #2A2624;
  --secondary-color: #F6E6D5;
  --orange-accent-color: #FF805E;

  --margin-horizontal: 52px;
  --margin-vertical: 32px;
  --gap-64: 64px;
}
*::selection {
  background: var(--orange-accent-color);
  color: var(--background-color);
}

*::-moz-selection {
  background: var(--orange-accent-color);
  color: var(--background-color);
}

*::-webkit-selection {
  background: var(--orange-accent-color);
  color: var(--background-color);
}


::-webkit-scrollbar {
  scrollbar-width: thin;
}

/* Track */
::-webkit-scrollbar-track {
  background: transparent;
}

/* Handle */
::-webkit-scrollbar-thumb {
  background: #CCBFB0;
  border-radius: 6px;
  margin-right: 4px;
  border-right: 4px transparent solid;
  background-clip: padding-box;
}

/* Handle on hover */
::-webkit-scrollbar-thumb:hover {
  border-radius: 24px;
  background: #b0a395;
  cursor: grab;
}

::-webkit-scrollbar-thumb:active {
  cursor: grabbing;
}

img {
  user-select: none;
  -webkit-user-drag: none;
}

@font-face {
  font-family: 'NeutralSans';
  font-weight: 400;
  font-style: normal;
  src: url("/static/font/NeutralSans-Regular.woff2") format('woff2');
}

@font-face {
  font-family: 'NeutralSans';
  font-weight: 500;
  font-style: normal;
  src: url("/static/font/NeutralSans-Meidum.woff2") format('woff2');
}

@font-face {
  font-family: 'NeutralSans';
  font-weight: 700;
  font-style: normal;
  src: url("/static/font/NeutralSans-Bold.woff2") format('woff2');
}

@font-face {
  font-family: 'NeutralSans';
  font-weight: 900;
  font-style: normal;
  src: url("/static/font/NeutralSans-Black.woff2") format('woff2');
}


.flex {
  display: flex;
}

.flex-cl {
  display: flex;
  flex-direction: column;
}

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

.text-left {
  text-align: left !important;
}

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

.flex-between { 
  justify-content: space-between;
}

.gap-64 {
  gap: var(--gap-64);
}
.gap-48 {
  gap: 48px;
}
.gap-32 {
  gap: 32px;
}
.gap-24 {
  gap: 24px;
}
.gap-18 {
  gap: 18px;
}
.gap-12 {
  gap: 12px;
}
.gap-8 {
  gap: 8px;
}
.gap-4 {
  gap: 4px;
}

.vpadding-12{
padding: 0 12px;
}

.vspacer-8 {
  height: 8px;
}
.vspacer-12 {
  height: 12px;
}
.vspacer-24 {
  height: 24px;
}
.hspacer {
  width: 100%;
}


h1,
h2,
h3,
h4,
h5,
h6,
p {
  margin: 0;
  padding: 0;
}

h1 {
  font-size: 82px;
  font-weight: 700;
  line-height: 100%;
}

h2 {
  font-size: 48px;
  font-weight: 700;
}

h3 {
  font-size: 24px;
}

p {
  font-size: 18px;
  font-weight: 400;
}

.text-align-left{
  text-align: left;
}

a {
  text-decoration: none;
  color: initial;
}

a.button-like {
  transition: scale 0.3s, opacity 0.3s;

  display: flex;
  justify-content: center;
  align-items: center;
  align-self: stretch;
  gap: 10px;

  padding: 18px 20px;
  width: fit-content;
  height: fit-content;

  border-radius: 18px;
  border: none;
  background-color: var(--secondary-color);
  color: var(--main-color);

  font-size: 18px;
  font-style: normal;
  font-weight: 600;

  cursor: pointer;

  user-select: none;
  -webkit-user-drag: none;
}

a.button-like.fill {
  background-color: var(--main-color);
  color: var(--background-color);
}

a.button-like.wide {
  padding: 18px 64px;
  width: initial;
}

a.button-like:hover {
  transition: 0.3s;
  scale: 1.05;
  opacity: 0.8;
}

a.button-like:active {
  scale: 0.95;
}

.button-like {
  position: relative;
  overflow: hidden;
  transition: color 0.4s ease;
}

.button-like::before {
  transition: 0.6s;

  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, var(--orange-accent-color), red, var(--orange-accent-color));
  background-size: 200% 200%;
  opacity: 0;
  transition: opacity 0.5s ease;
  z-index: 0;
}
.button-gradient-flash{
  transition: 1s;
  scale: 1.1;
}
.button-gradient-flash::before { 
  opacity: 1;
}

.button-like > * {
  position: relative;
  z-index: 1;
}


a.no-drag {
  user-select: none;
  -webkit-user-drag: none;
}

.animate,
.block {
  transition: 0.3s;
}

.animate:hover {
  transition: 0.3s;
  filter: saturate(2) contrast(0.3) brightness(0.2);
  scale: 1.08;
}

.block:hover {
  background-color: var(--main-color) !important;
  transform: rotate(0) !important;

  scale: 1.08;
}

.browser {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 6px;

  /* height: 32px; */
  padding: 6px 9px;
  padding-right: 12px;
  width: fit-content;
  min-width: fit-content;

  border-radius: 99px;
  background: rgba(255, 255, 255, 0.12);
  border: none;
  color: white;

  font-size: 16px;
  font-weight: 500;
  opacity: 0.6;

  cursor: pointer;

  img {
    max-height: 14px;
    max-width: 15px;
  }
  transition: opacity 0.2s, filter 0.2s;
}
.browser:hover{
  filter: contrast(1.5) brightness(1.5);
  opacity: initial;
}




html {
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;

  box-sizing: border-box;
  text-size-adjust: 100%;
  

  scroll-behavior: smooth;

  overflow-x: hidden;
}

html[lang="ru"] {
  font-family: 'Inter', sans-serif;
}

html[lang="en"] {
  font-family: NeutralSans;
}

body {
  width: 100vw;
  margin: 0;
  padding: 0;

  background-color: var(--background-color);
  color: var(--main-color);

  box-sizing: border-box;
  overflow: hidden;
}



header {
  position: fixed;

  width: 100vw;
  padding-top: 12px;
  padding-bottom: 16px;

  border-bottom: 2px solid #F6E6D5;
  background: rgba(255, 239, 221, 0.85);
  backdrop-filter: blur(18px);

  .content {
    max-width: 680px;
    width: 100%;

    padding: 0 24px;
  }
}

header {
  opacity: 0;
  z-index: -10;
  transform: translatey(-160px);

  transition: transform 0.4s, opacity 0.4s, z-index 0.6s;
}

header.active {
  opacity: initial;
  z-index: 199;
  transform: initial;

}

.lbpage {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  flex: 1;

  padding: var(--margin-horizontal) var(--margin-vertical);

  background-color: var(--background-color);

  text-align: center;
}

.lbpage:nth-of-type(2) {
  padding-top: 86px;
}
.lbpage:last-of-type {
  padding-bottom: 86px;
}

.middle-text {
  flex-shrink: 1;
  width: 100%;

  a {
    background-color: var(--orange-accent-color);
    color: var(--background-color);
    border-radius: 99px;
    padding: 0 6px;
    padding-bottom: 2px;

    cursor: pointer;

    transition: opacity 0.3s;
  }
  a:hover{
    transition: 0.3s;
    transform: scale(1.2) !important;
    opacity: 0.78;
  }
}

.addit-blocks {
  width: 0px;

  flex: 1;
  flex-grow: 1;
  gap: -24px;
}
.block {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: 12px;

  padding: 16px 16px 14px 16px;
  height: fit-content;

  border-radius: 12px;
  background: #F6E6D5;
  color: #CCBFB0;

  text-align: left;
  font-weight: 500;
  white-space: nowrap;

  cursor: pointer;

  user-select: none;
  -webkit-user-drag: none;
}
.block.mobile{
  display: none;
}

.block.rotate1 {
  transform: rotate(-15deg);
}

.block.rotate2 {
  transform: rotate(5.103deg);
  margin-top: 90px;
}

.block.rotate3 {
  transform: rotate(-6.603deg);
}
.block.hidden{
  transition: 0.2s;
  scale: 0.5;
}
.map-block{
  position: absolute;
  display: none;
  top: -50%;
  min-width: 250px;
  width: 250px;
  height: 150px;

  border-radius: 24px;

  overflow: hidden;
  z-index: 100 !important;

  scale: 2;

  .close-map-btn{
    transition: 0.3s;
    position: absolute;
    top: 16px;
    right: 16px;

    align-content: center;
    text-align: center;
    
    width: 32px;
    height: 32px;

    border-radius: 32px;
    background-color: var(--background-color);
    
    cursor: pointer;
    filter: initial !important;
  }
  .close-map-btn:hover{
    transition: 0.4s;
    color: var(--secondary-color);
    background-color: var(--main-color) !important;

    scale: 1.2;
  }
  img{
    width: 100%;
    height: 100%;
    object-fit: cover;
  }
}
.map-block.top{
  top: 20px;
}

.pet-block{
  width: 350px;
  height: 250px;
  padding: 0 12px;

  background: var(--secondary-color);
  backdrop-filter: blur(18px) !important;


  overflow: hidden;

  .grid-wrapper {
    overflow-y: scroll;

    .grid {
      column-count: 3;
      column-gap: 4px;

      height: fit-content;
      max-width: 100%;

      padding-top: 12px;

      img {
        display: block;
        object-fit: cover;

        height: fit-content;
        margin-bottom: 4px;
        border-radius: 8px;
      }
    }
  }

  .grid-wrapper::-webkit-scrollbar {
    scrollbar-width: none !important;
  }
}

.overflow {
  opacity: 0;
  transform: scale(1.0);
  transition: opacity 0.2s ease, transform 0.4s ease;
  pointer-events: none;
}

.overflow.visible {
  display: flex;
  opacity: 1;
  transform: scale(1);
  pointer-events: auto;
}




.list-view {
  display: none;
  width: 100%;

  .list-project {
    position: relative;
    display: flex;
    align-items: flex-start;
    gap: 8px;

    width: 100%;
    align-items: left;
    align-self: left;

    border: 2.5px solid transparent;
    border-bottom-color: var(--secondary-color);
    margin: 0 -32px;
    padding: 32px;

    transition: 0.1s;

    .text-left{
      position: relative;
    }
    .overlay-screenshots{
      position: absolute;
      z-index: 32;
      
      display: flex;
      flex-direction: row;
      justify-content: flex-end;
      gap: 4px;

      top: -2vw;
      left: calc(-150% - 12px);
      width: 150%;
      height: 250%;

      border-radius: 12px;

      opacity: 0;
      transform: scale(0.9);
      user-select: none;
      pointer-events: none;

      transition: opacity 0.2s, transform 0.2s;

      img{
        width: fit-content;
        max-width: 100%;
        height: fit-content;
        max-height: 100%;

        object-fit: contain;
        object-position: top;
        border-radius: 12px;

        transition: opacity 0.2s, transform 0.2s;

      }
    }
    .date-p {
      width: 10%;
      min-width: 10%;

      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
      line-clamp: 1;
      -webkit-line-clamp: 1;
      -webkit-box-orient: vertical;

      text-align: right;
    }

    h3 {
      width: 100%;
      height: 100%;

      text-align: left;
      text-align: top;
    }

    .text-left{
      width: 60%;
    }
    div {
      width: 100%;
      p {
        opacity: 0.8;
        width: fit-content;

        font-size: 16px;
        line-height: 170%;
        width: 100%;
      }

      h4{
        margin-bottom: 8px;
      }
      h4:not(:first-child) {
        margin-top: 18px;
      }

      a {
        transition: 0.2s;
        color: black;
        border-bottom: 1.5px solid #2A2624;
        width: fit-content;

        cursor: pointer;
      }

      a::after {
        padding-left: 4px;
        content: url("static/arrow.svg");
      }

      a:hover {
        transition: 0.2s;
        opacity: 0.5;
      }
    }
  }
  .list-project:hover{
    .overlay-screenshots{
      opacity: 1;
      img:nth-child(1){
        transform: rotate(5deg);
      }
      img:nth-child(2){
        transform: rotate(8deg);
        transition: transform 0.4s;
      }
      img:nth-child(3){
        transform: rotate(13deg);
        transition: transform 0.3s;
      }
    }
  }

  .list-project:nth-child(3) {
    border-top-color: var(--secondary-color);
  }

  .list-project.date{
    align-items: center;
    b{
      color: black !important;
    }
  }
  .list-project.list-project:not(.date):hover {
    transition: 0.1s;
    z-index: 2;
    /* border-color: transparent; */
    background-color: var(--secondary-color);
  }
}

.lbpage.projects {
  position: relative;

  h2.absolute {
    position: absolute;
    top: var(--gap-64);
    width: 100%;
  }

  #toggle_fullscreen {
    position: absolute;
    bottom: 98px;

    width: fit-content;
    gap: 12px;
    z-index: 160;
    padding: 12px 12px;
    border-radius: 8px;
    background: rgba(46, 46, 46, 0.6);
    backdrop-filter: blur(12px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.25);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: white;
    transition: all 0.3s ease;

    cursor: pointer;
  }

  #toggle_fullscreen:hover {
    opacity: 0.8;
  }

  .desktop-view {
    width: 100%;
  }

  .desktop {
    width: 100%;

    border-radius: 32px;
    overflow: hidden;
  }
}


.project-wrapper {
  position: relative;
  overflow: hidden;

  height: 95vh;

  background-image: url('/static/background.png');
  background-repeat: no-repeat;
  background-size: cover;
}

.project::before {
  z-index: 3;
  content: '';
  position: absolute;
  inset: 0;
  box-shadow:
    inset 0 0 0 1px rgba(0, 0, 0, 0.4),
    inset 0 0 0 2px rgba(140,140,140, 0.5);
  pointer-events: none;
  border-radius: 18px;
}

.project {
  position: absolute;
  display: flex;
  flex-direction: column;
  overflow: hidden;

  max-width: 1540px;
  max-height: 1650px;

  background: rgba(46, 46, 46, 0.40);
  /* border: 1px solid rgba(140,140,140,255);
  outline: 1px solid rgba(0, 0, 0, 0.407); */
  
  background-color: rgb(31 41 55 / var(--tw-bg-opacity, 0.5));
  border-radius: 18px;

  backdrop-filter: blur(32px);
  color: white;

  .content-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0px;
  
    width: 100%;
    height: 100%;
    box-sizing: border-box;


    overflow: hidden;

    background-color: transparent;

    /* color: var(--main-color) !important; */


  
    .preview-img{
      position: relative;
      display: inline-block;

      width: 100%;
      height: 100%;

      cursor: pointer;
    }
    .preview-img img {
      width: 100%;
      height: 100%;
      display: block;

      object-fit: cover;
      object-position: center;
  
      user-select: none;
      -webkit-user-drag: none;
  
      border-radius: 0;
    }
  
    .project-info {
      display: flex;
      flex-direction: column;
      align-items: center;
      gap: 4px;
  
      width: 100%;
      max-height: 0;
      opacity: 0;
      transform: translateY(50px);
      pointer-events: none;
      overflow: hidden;
  
      transition: transform 0.6s ease;

      img{
        width: 100%;
        border-radius: 12px;
      }
    }
  
    h4 {
      font-size: 18px;
    }
  
    p {
      font-size: 16px;
    }
  }
  
  .content-wrapper.pressed {
    cursor: initial;

    gap: 6px;
    padding-top: 6px;

    /* background-color: var(--background-color); */
  
    .project-info {
      overflow-y: auto !important;

      width: 100%;
      opacity: 1;
      max-height: initial;
      transform: translateY(0);
      pointer-events: auto;

      padding: 0 32px;
      padding-top: 18px;
      padding-bottom: 18px;

      box-sizing: border-box;
      border-top: 1px solid rgba(180, 180, 180, 0.6);
    }
  

    .preview-img {
      height: fit-content;
      max-width: 50%;
    }
    .preview-img img {
      height: auto;
      border-radius: 12px;
      object-fit: contain;

      transition: opacity 0.2s;
    }
    .preview-img:hover {
      transition: 0.3s;

      opacity: 0.6;
    }
    .preview-img:hover::after {
      content: "✕";
      position: absolute;
      inset: 0;
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 32px;
      font-weight: 200;
      color: rgba(255, 255, 255, 0.5);
    }
  }

  iframe {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top;

    user-select: none;
    -webkit-user-drag: none;
  }

  .head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex: 1;

    padding: 12px 24px 8px 18px;
    max-height: 32px;

    border-bottom: 1px solid black;

    h3 {
      font-size: 18px;

      display: -webkit-box;
      -webkit-box-orient: vertical;
      -webkit-line-clamp: 2;
      line-clamp: 2;
      line-height: 100%;
      overflow: hidden;
      text-overflow: ellipsis;
      min-height: 100%;
      align-content: center;
    }

    a {
      font-size: 16px;
      font-weight: 500;
      opacity: 0.6;
    }
  }
}

.browser-tabs {
  .tab {
    cursor: pointer;
    padding: 6px 12px;
    border-radius: 32px;
    width: 100%;
    height: fit-content;

  }

  .tab:hover {
    background-color: #ffffff0d;
  }

  .tab.active {
    background-color: #ffffff1d;
  }
}



p.clickable{
    padding: 12px 18px;
    backdrop-filter: blur(12px);
}
p.clickable:hover {
  transition: 0.4s;
  background-color: var(--secondary-color);
  border-radius: 99px;
  transform: scale(1.05);
}

.experience-flex{
  img{
    position: fixed;
    z-index: 2;

    left: 0%;
    margin-bottom: 190px;
    width: 100vw;
    height: fit-content;
    object-fit: contain;

    pointer-events: none;

    opacity: 0;
    filter: blur(12px);
    transform: scale(1.05);
    transition: opacity 0.3s, filter 0.2s, transform 0.4s;
  }
}

.experience-flex:hover{
  img{
    opacity: 1;
    filter: blur(0px);
    transform: scale(1);
    transition: opacity 0.5s, filter 0.6s, transform 0.6s;
  }
}
p.smaller {
  font-size: 16px;
}

.smaller.clickable {
  transition: 0.4s;

  display: flex;
  align-items: baseline;
  width: 250px;
}

.smaller.clickable .dots {
  transition: 0.4s;

  flex-grow: 1;
  height: 1px;
  border-bottom: 2px dotted var(--main-color);

  background-color: unset;
  border-radius: 0;
  margin: 0 8px;
}




#lang-toggle {
  color: #CCBFB0;
  background-color: transparent;
  border: none;

  cursor: pointer;
}

.scroll-page {
  width: 100%;
  overflow: hidden;
  box-sizing: border-box;
}

.scroll-container {
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  overflow-x: auto;
  overflow-y: visible;
  white-space: nowrap;

  width: 100%;
  height: fit-content;
  gap: 32px;

  padding-top: 60px;
  margin-top: -30px;
  margin-bottom: -60px;
  /* mask-image: radial-gradient(closest-side, black 40%, transparent 70%);
  mask-size: 100%;
  mask-position: center;
  mask-repeat: no-repeat; */

  mask-image: linear-gradient(to right, transparent 15%, black 30%, black 70%, transparent 85%);
  mask-size: 100% 100%;
  mask-repeat: no-repeat;

  /* -webkit-mask-image:
  linear-gradient(to top, transparent, black 30%, black 70%, transparent),
  linear-gradient(to left, transparent, black 30%, black 35%, transparent);
  -webkit-mask-composite: intersect;
  mask-composite: intersect;
  -webkit-mask-size: 100% 100%;
  -webkit-mask-position: center;
  -webkit-mask-repeat: no-repeat; */

  scroll-snap-type: x mandatory;
  scroll-padding-left: 50%;

  box-sizing: border-box;
}



.z-index6 {
  z-index: 6;

  * {
    z-index: 6;
  }
}

.card em {
  font-weight: 600;
  /* font-family: 'Times New Roman', Times, serif; */
}

.card h3 {
  font-size: 32px;
}

.scroll-container::-webkit-scrollbar {
  display: none;
}

.scroll-container {
  -ms-overflow-style: none;
  /* IE и Edge */
  scrollbar-width: none;
  /* Firefox */
}

.card:nth-child(odd) {
  margin-bottom: 140px;
}

.what-i-love {
  background: #fef1e1;
  text-align: center;
  padding: 100px 0;
  position: relative;
  overflow: hidden;
}

.what-i-love h2 {
  font-size: 2rem;
  font-weight: 700;
  color: #1f1f1f;
  margin-bottom: 80px;
}

.cards {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 40px;
  transform: perspective(1000px);
  perspective: 1000px;
}

.card {
  background: var(--secondary-color);
  backdrop-filter: blur(10px);
  padding: 20px 30px;
  border-radius: 12px;

  transition: transform 0.3s, background-color 0.3s;
  cursor: default;
}

.card:hover {
  background-color: var(--main-color) !important;
  transform: rotate(0) scale(1.08) !important;
  color: var(--secondary-color);
}


















/* Стили для кнопки скрытия */
.hide-button {
  background: none;
  border: none;
  color: white;
  font-size: 16px;
  cursor: pointer;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-left: 12px;
  padding: 0;
  transition: background-color 0.2s;
}

.hide-button:hover {
  background-color: rgba(255, 255, 255, 0.15);
}

/* Стили для дока с иконками */
.app-dock {
  position: absolute;
  top: 20px;
  right: 20px;
  display: flex;
  flex-direction: row;
  gap: 12px;
  padding: 8px;
  border-radius: 10px;
  background: rgba(46, 46, 46, 0.4);
  backdrop-filter: blur(8px);
}


.app-icon:hover {
  transform: scale(1.1);
  background: rgba(46, 46, 46, 0.8);
}

/* Стили для кнопки перезапуска */
.reset-button {
  width: 40px;
  height: 40px;
  background: rgba(255, 100, 62, 0.5);
  /* Используем оранжевый из ваших переменных */
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 20px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s, background-color 0.2s;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.reset-button:hover {
  transform: scale(1.1) rotate(45deg);
  background: rgba(255, 100, 62, 0.8);
}

/* Анимация для проектов */
.project {
  cursor: default;
  transition: transform 0.3s ease, box-shadow 0.3s ease, opacity 0.3s ease;
}

.project .head {
  cursor: grab;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.project.dragging {
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
  opacity: 0.95;
}

.project.dragging .head {
  cursor: grabbing;
}

/* Скрытие/показ проектов с анимацией */
.project.hidden {
  opacity: 0;
  transform: scale(0.5);
  pointer-events: none;
}

/* Добавляем подсветку заголовка при наведении для удобства */
.project .head:hover {
  background: rgba(255, 255, 255, 0.05);
}

/* Улучшенные стили для проектов чтобы они выглядели как окна ОС */
.project {
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

/* Добавляем небольшой эффект наведения */
.project:hover {
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.2);
}










/* Add these styles to your existing CSS */

/* Dock styling */
.app-dock {
  position: absolute;
  bottom: 16px;
  left: 50%;
  width: fit-content;
  transform: translateX(-50%);
  display: flex;
  flex-direction: row;
  gap: 12px;
  z-index: 150;
  padding: 12px 12px;
  border-radius: 16px;
  background: rgba(46, 46, 46, 0.6);
  backdrop-filter: blur(12px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: all 0.3s ease;
}

/* App icons styling */
.app-icon {
  width: 48px;
  height: 48px;
  background: rgba(46, 46, 46, 0.8);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 20px;
  font-weight: bold;
  cursor: pointer;
  transition: transform 0.2s, background-color 0.2s;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  position: relative;

  img {
    width: 100%;
  }
}

.app-icon:hover {
  transform: scale(1.15);
  background: rgba(56, 56, 56, 0.9);
}

.app-icon:active {
  transform: scale(0.95);
}

/* Dock icon bounce animation */
.app-icon.bounce {
  animation: bounce 0.5s ease;
}

@keyframes bounce {

  0%,
  100% {
    transform: scale(1);
  }

  40% {
    transform: scale(1.25);
  }

  80% {
    transform: scale(1);
  }
}

/* Reset button styling */
.reset-button {
  width: 48px;
  height: 48px;
  background: rgba(255, 100, 62, 0.7);
  color: white;
  border: none;
  border-radius: 12px;
  font-size: 22px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s, background-color 0.2s;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.reset-button:hover {
  transform: scale(1.15) rotate(30deg);
  background: rgba(255, 100, 62, 0.9);
}

.reset-button:active {
  transform: scale(0.95);
}

/* Animation for minimizing projects */
.project.minimizing {
  pointer-events: none;
}

/* Improved project styling to match macOS windows */
.project {
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.2);
  
  will-change: transform, opacity, left, top;
}

.project .head {
  position: relative;
  display: flex;
  align-items: center;
  height: 32px;
  padding: 8px 12px;
  user-select: none;
}

/* Window buttons */
.hide-button {
  width: 16px;
  height: 16px;
  color: rgba(0, 0, 0, 0.6);
  background: #ffffff4d;
  border: none;
  border-radius: 50%;
  color: rgba(0, 0, 0, 0);
  font-size: 10px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-left: 8px;
  transition: all 0.2s;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.1);
}

.hide-button:hover {
  color: rgba(0, 0, 0, 0.12);
  background: #ffbd2e;

}

.head:hover {
  .hide-button {
    color: rgba(0, 0, 0, 0.12);
    background: #ffbd2e;
  }

  .hide-button:before {
    opacity: 1;
  }
}

.hide-button:before {
  content: "";
  position: absolute;
  width: 12px;
  height: 2px;
  background: rgba(0, 0, 0, 0.5);
  opacity: 0;
  transition: opacity 0.2s;
  border-radius: 2px;
}

.hide-button:hover:before {
  opacity: 1;
}

/* Project highlight effect */
.project:hover {
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.25);
}

/* Optimize for mobile
  @media (max-width: 768px) {
    .app-dock {
      padding: 8px 12px;
    }
    
    .app-icon, .reset-button {
      width: 40px;
      height: 40px;
      font-size: 18px;
    }
  } */
#mega {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  background-color: red;
}

#wrapper {
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  position: relative;
  width: 100%;

}

ul {
  display: flex;
  gap: 4px;
}

li {
  height: 90px;
}









html.previewed{
  overflow: hidden;

  header{
    display: none !important;
  }

  /* body{
    *{
      z-index: 100 !important;
    }
  } */

}

.absolute-preview {
  z-index: 200 !important;
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100vw;
  height: 100vh;
  padding: var(--gap-64);
  padding-bottom: calc(var(--gap-64) + 64px);

  color: white !important;
  background-color: rgba(253, 253, 253, 0.1);
  backdrop-filter: blur(32px);

  box-sizing: border-box;

  .preview-head{
    width: 100%;
    padding: 28px 18px;

    max-height: 32px;

    border-bottom: 1px solid black;
    border-radius: 24px 24px 0 0;

    background: rgba(46, 46, 46, 0.4);
    
    
    box-sizing: border-box;

    h3{
      font-size: 21px;
    }

    .close-btn{

      min-width: 32px;
      height: 32px;

      padding: 0;
      cursor: pointer;
    }
    .preview-link{
      max-width: 100%;
      width: 100%;
      text-align: center;
    }
  }
  iframe {
    width: 100%;
    height: 100%;
    border-radius: 0 0 24px 24px;
    overflow: hidden;

    box-sizing: border-box;

    background: rgba(46, 46, 46, 0.8);


  }
}

.absolute-preview.hidden{
  display: none;
}






/* .button-like::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, var(--orange-accent-color), red, var(--orange-accent-color));
  background-size: 200% 200%;
  opacity: 0;
  z-index: 0;
  transform: rotate(-15deg);

  transition:
  opacity 0.5s ease,
  background-position 1s ease,
  transform 2s ease;
}
.button-gradient-flash{
  scale: 1.1;
}
.button-gradient-flash::before {
  opacity: 1;
  background-position: 100% 50%;
}

.button-like > * {
  position: relative;
  z-index: 1;
} */





@keyframes gradientShift {
  0% { background-position: 0% 50%; }
  100% { background-position: 100% 50%; }
}




@media (max-width: 768px) {
  :root{
    --margin-horizontal: 48px;
    --gap-64: 32px
  }

  h1{
    font-size: 58px;
  }
  h2{
    font-size: 28px;
  }

  .scroll-container {
    mask-image: linear-gradient(to right, transparent 0%, black 7%, black 93%, transparent 100%);
  }

  .addit-blocks {
    display: none;
  }
  .block.mobile{
    display: flex;
    rotate: 0;
  }

  .projects-head{
    flex-direction: column;
    align-items: center;
    a {
      align-self: initial;
    }
  }
  .list-view{
    box-sizing: border-box;

    .overlay-screenshots{
      position: initial !important;
      transform: initial !important;
      pointer-events: initial !important;
      overflow-x: scroll;

      justify-content: flex-start !important;
      width: 100% !important;
      opacity: initial !important;
      
      img{
        transform: initial !important;
      }
    } 
    .list-project{
      flex-direction: column;
      gap: 24px;

      div{
        width: 100%;
      }
      .date-p{
        width: 100%;
        text-align: left;
      }
    }

  }
}

@media (max-width: 920px) {
  .list-view{
    display: initial;
  }
  .desktop-view{
    display: none;
  }
}

















.blur-wrapper {
  position: absolute;
  width: 100%;
  height: 100%;
  z-index: 5;
  overflow: hidden;
  pointer-events: none;
  display: none;
}


.gradient-blur {
  position: absolute;
  z-index: 5;
  inset: auto 0 0 0;
  height: 100%;
  width: 40%;
  pointer-events: none;
  user-select: none;
  left: 60%;

}

.gradient-blur>div,
.gradient-blur::before,
.gradient-blur::after {
  position: absolute;
  inset: 0;
  margin-left: 150px;

}

.gradient-blur::before {
  content: "";
  z-index: 1;
  backdrop-filter: blur(0.5px);
  mask: linear-gradient(to right,
      rgba(0, 0, 0, 0) 0%,
      rgba(0, 0, 0, 1) 12.5%,
      rgba(0, 0, 0, 1) 25%,
      rgba(0, 0, 0, 0) 37.5%);
}

.gradient-blur>div:nth-of-type(1) {
  z-index: 2;
  backdrop-filter: blur(1px);
  mask: linear-gradient(to right,
      rgba(0, 0, 0, 0) 12.5%,
      rgba(0, 0, 0, 1) 25%,
      rgba(0, 0, 0, 1) 37.5%,
      rgba(0, 0, 0, 0) 50%);
}

.gradient-blur>div:nth-of-type(2) {
  z-index: 3;
  backdrop-filter: blur(2px);
  mask: linear-gradient(to right,
      rgba(0, 0, 0, 0) 25%,
      rgba(0, 0, 0, 1) 37.5%,
      rgba(0, 0, 0, 1) 50%,
      rgba(0, 0, 0, 0) 62.5%);
}

.gradient-blur>div:nth-of-type(3) {
  z-index: 4;
  backdrop-filter: blur(4px);
  mask: linear-gradient(to right,
      rgba(0, 0, 0, 0) 37.5%,
      rgba(0, 0, 0, 1) 50%,
      rgba(0, 0, 0, 1) 62.5%,
      rgba(0, 0, 0, 0) 75%);
}

.gradient-blur>div:nth-of-type(4) {
  z-index: 5;
  backdrop-filter: blur(8px);
  mask: linear-gradient(to right,
      rgba(0, 0, 0, 0) 50%,
      rgba(0, 0, 0, 1) 62.5%,
      rgba(0, 0, 0, 1) 75%,
      rgba(0, 0, 0, 0) 87.5%);
}

.gradient-blur>div:nth-of-type(5) {
  z-index: 6;
  backdrop-filter: blur(16px);
  mask: linear-gradient(to right,
      rgba(0, 0, 0, 0) 62.5%,
      rgba(0, 0, 0, 1) 75%,
      rgba(0, 0, 0, 1) 87.5%,
      rgba(0, 0, 0, 0) 100%);
}

.gradient-blur>div:nth-of-type(6) {
  z-index: 7;
  backdrop-filter: blur(32px);
  mask: linear-gradient(to right,
      rgba(0, 0, 0, 0) 75%,
      rgba(0, 0, 0, 1) 87.5%,
      rgba(0, 0, 0, 1) 100%);
}

.gradient-blur::after {
  content: "";
  z-index: 8;
  backdrop-filter: blur(64px);
  mask: linear-gradient(to right,
      rgba(0, 0, 0, 0) 87.5%,
      rgba(0, 0, 0, 1) 100%);
}

.gradient-blur.left {
  position: absolute;
  z-index: 5;
  inset: auto 0 0 0;
  height: 100%;
  pointer-events: none;
  user-select: none;
  margin: 0;
  padding: 0;
  width: 40%;
}

.gradient-blur.left>div,
.gradient-blur.left::before,
.gradient-blur.left::after {
  position: absolute;
  inset: 0;
  margin-left: 0px;
}

.gradient-blur.left::before {
  content: "";
  z-index: 1;
  backdrop-filter: blur(0.5px);
  mask: linear-gradient(to left,
      rgba(0, 0, 0, 0) 0%,
      rgba(0, 0, 0, 1) 12.5%,
      rgba(0, 0, 0, 1) 25%,
      rgba(0, 0, 0, 0) 37.5%);
}

.gradient-blur.left>div:nth-of-type(1) {
  z-index: 2;
  backdrop-filter: blur(1px);
  mask: linear-gradient(to left,
      rgba(0, 0, 0, 0) 12.5%,
      rgba(0, 0, 0, 1) 25%,
      rgba(0, 0, 0, 1) 37.5%,
      rgba(0, 0, 0, 0) 50%);
}

.gradient-blur.left>div:nth-of-type(2) {
  z-index: 3;
  backdrop-filter: blur(2px);
  mask: linear-gradient(to left,
      rgba(0, 0, 0, 0) 25%,
      rgba(0, 0, 0, 1) 37.5%,
      rgba(0, 0, 0, 1) 50%,
      rgba(0, 0, 0, 0) 62.5%);
}

.gradient-blur.left>div:nth-of-type(3) {
  z-index: 4;
  backdrop-filter: blur(4px);
  mask: linear-gradient(to left,
      rgba(0, 0, 0, 0) 37.5%,
      rgba(0, 0, 0, 1) 50%,
      rgba(0, 0, 0, 1) 62.5%,
      rgba(0, 0, 0, 0) 75%);
}

.gradient-blur.left>div:nth-of-type(4) {
  z-index: 5;
  backdrop-filter: blur(8px);
  mask: linear-gradient(to left,
      rgba(0, 0, 0, 0) 50%,
      rgba(0, 0, 0, 1) 62.5%,
      rgba(0, 0, 0, 1) 75%,
      rgba(0, 0, 0, 0) 87.5%);
}

.gradient-blur.left>div:nth-of-type(5) {
  z-index: 6;
  backdrop-filter: blur(16px);
  mask: linear-gradient(to left,
      rgba(0, 0, 0, 0) 62.5%,
      rgba(0, 0, 0, 1) 75%,
      rgba(0, 0, 0, 1) 87.5%,
      rgba(0, 0, 0, 0) 100%);
}

.gradient-blur.left>div:nth-of-type(6) {
  z-index: 7;
  backdrop-filter: blur(32px);
  mask: linear-gradient(to left,
      rgba(0, 0, 0, 0) 75%,
      rgba(0, 0, 0, 1) 87.5%,
      rgba(0, 0, 0, 1) 100%);
}

.gradient-blur.left::after {
  content: "AAAAA";
  z-index: 8;
  backdrop-filter: blur(64px);
  mask: linear-gradient(to left,
      rgba(0, 0, 0, 0) 87.5%,
      rgba(0, 0, 0, 1) 100%);
}