@import "reset.css";
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400..900;1,400..900&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Mona+Sans:ital,wdth,wght@0,75..125,200..900;1,75..125,200..900&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Almarai:wght@300;400;700;800&display=swap');

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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: #FDFDFC;
    overflow-x: hidden;
    scroll-behavior:initial;
}

.page-wrapper {
    position: relative;
    min-height: 100vh;
}

/* Размытие сверху */
.blur-overlay-top {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 120px;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    mask-image: linear-gradient(to bottom, 
        rgba(0, 0, 0, 1) 0%, 
        rgba(0, 0, 0, 0.7) 50%,
        rgba(0, 0, 0, 0) 100%);
    -webkit-mask-image: linear-gradient(to bottom, 
        rgba(0, 0, 0, 1) 0%, 
        rgba(0, 0, 0, 0.7) 50%,
        rgba(0, 0, 0, 0) 100%);
    pointer-events: none;
    z-index: 300;
}

/* Размытие снизу */
.blur-overlay-bottom {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 120px;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    mask-image: linear-gradient(to top, 
        rgba(0, 0, 0, 1) 0%, 
        rgba(0, 0, 0, 0.7) 50%,
        rgba(0, 0, 0, 0) 100%);
    -webkit-mask-image: linear-gradient(to top, 
        rgba(0, 0, 0, 1) 0%, 
        rgba(0, 0, 0, 0.7) 50%,
        rgba(0, 0, 0, 0) 100%);
    pointer-events: none;
    z-index: 300;
}

/* Content styles */
.content {
    max-width: 800px;
    margin: 0 auto;
    padding: 100px 20px 150px 20px;
    position: relative;
    z-index: 1;
}

h1 {
    font-size: 32px;
    margin-bottom: 100px;
    font-family: 'Playfair Display', serif;
    font-weight: 400;
    line-height: 1.2;
    color: #333;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

p {
    font-size: 18px;
    line-height: 1.8;
    margin-bottom: 40px;
    color: #333;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.spacer {
    height: 10vh;
}

.frame .text-wrapper {
    position: relative;
    width: fit-content;
    font-family: 'Almarai', sans-serif;
    font-weight: 300;
    color: rgb(229, 231, 235);
    font-size: 16px;
    letter-spacing: 0;
    line-height: normal;
    text-shadow: 
        24px 0px 24px rgb(0, 0, 0),
        -24px 0px 24px rgb(0, 0, 0);    /* вторая — мягкая основная тень */
    transition: color 2s ease;
}

.frame:hover .text-wrapper {
    color: rgba(255, 255, 255, 0.85);
}

.frame {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 76px;
    position: fixed;
    left: 50%;
    bottom: 30px;
    transform: translateX(-50%) scale(1); /* начальный масштаб */
    z-index: 9999;
    border-radius: 100px;
    cursor: pointer;
    backdrop-filter: blur(3px);
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.60) 0%, rgba(0, 0, 0, 0.60) 50%, rgba(0, 0, 0, 0.50) 100%);
    box-shadow: 0 0 24px 0 rgba(0, 0, 0, 0.15), 0 -4px 8px 0 rgba(255, 255, 255, 0.22) inset, 2px 4px 4px 0 rgba(255, 255, 255, 0) inset, 0.5px -0.5px 0 0 #4141418e, -0.5px -0.5px 0 0 #4141418e, 0.5px 0.5px 0 0 #4141418e, -0.5px 0.5px 0 0 #4141418e, 0 16px 24px 0 rgba(0, 0, 0, 0.10), 0 8px 12px 0 rgba(0, 0, 0, 0.15);
    will-change: transform;
    transition: transform 1s ease; /* плавный переход */
}

.frame:hover {
    transform: translateX(-50%) scale(101%); /* увеличиваем, но сохраняем центр */
}


.frame::before {
    content: "";
    position: absolute;
    inset: 0;
    padding: 1px;
    border-radius: 200px;
    background: linear-gradient(
        180deg,
        rgba(255, 255, 255, 0.2) 0%,
        rgba(43, 43, 43, 0) 50%,
        rgba(255, 255, 255, 0.2) 100%
    );

    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    z-index: 1;
    pointer-events: none;
}

/* Исходное состояние — элемент скрыт и ниже */
.fade-up {
    opacity: var(--opacity, 0);
    transform: translateY(var(--translateY, 60px));
    transition: opacity 1s ease, transform 1s ease;
    will-change: opacity, transform;
    position: relative;
    z-index: 200;
    display: flex;
    justify-content: center; /* центр по горизонтали */
    align-items: center;
}

/* Когда элемент попадает в зону видимости */
.fade-up.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Состояние когда элемент уходит вверх */
.fade-up.fade-out {
    opacity: 0;
    transform: translateY(-60px);
}

.flip-text {
    font-size: 32px;
    margin-bottom: 100px;
    font-family: 'Playfair Display', serif;
    font-weight: 400;
    line-height: 1.2;
    color: #000;
    display: inline;
}

.flip-inner {
    display: inline-block;
    transform-origin: center bottom;
    animation: flipIn 0.6s ease forwards;
}

@keyframes flipOut {
    0% {
        transform: rotateX(0);
        opacity: 1;
    }
    100% {
        transform: rotateX(90deg);
        opacity: 0;
    }
}

@keyframes flipIn {
    0% {
        transform: rotateX(-90deg);
        opacity: 0;
    }
    100% {
        transform: rotateX(0);
        opacity: 1;
    }
}

.word-rotator {
    display: inline-block;
    position: relative;
    font-size: inherit;
    font-weight: bold;
    color: #333;
    font-family: 'Playfair Display', serif;
    font-weight: 400;
    line-height: 1.2;
}

#rotating-word {
    display: inline-block;
    position: relative;
    opacity: 1;
    transform: translateY(0);
    color: #333;
    padding: 2px 5px;
}

.fade-out-up {
    opacity: 0;
    transform: translateY(100%);
}

.fade-in-up {
    opacity: 0;
    transform: translateY(100%);
    animation: fadeInUp 0.6s ease forwards;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(100%);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Параллакс эффекты */
.parallax-element {
    transition: transform 0.1s ease-out;
    will-change: transform;
}

.parallax-slow {
    transform: translateY(0);
}

.parallax-medium {
    transform: translateY(0);
}

.parallax-fast {
    transform: translateY(0);
}

/* Дополнительные эффекты для текста */
.text-float {
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-10px);
    }
}

.text-glow {
    text-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
    transition: text-shadow 0.3s ease;
}

.text-glow:hover {
    text-shadow: 0 0 30px rgba(0, 0, 0, 0.2);
}

/* Эффект волны для заголовка */
.wave-text {
    display: inline-block;
    animation: wave 2s ease-in-out infinite;
}

@keyframes wave {
    0%, 100% {
        transform: rotate(0deg);
    }
    25% {
        transform: rotate(1deg);
    }
    75% {
        transform: rotate(-1deg);
    }
}
.tape-list-center {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
  
    width: 100%;
    height: 100vh; /* чтобы центрировать по экрану */
    overflow: visible;
  
    --global-scale: 1.4;      /* общий масштаб */
    --global-translate-y: 0%; /* общий сдвиг по вертикали */
  }
  


/* Общий контейнер — масштабируем всё внутри синхронно */
.tape-list-wrapper {
    --tape-scale: 1;           /* масштаб tape */
    --tape-y: 0%;              /* вертикальный сдвиг tape */
    --shadow-scale: 2;         /* масштаб тени */
    --shadow-y: 0%;            /* вертикальный сдвиг тени */
  
    position: relative;
    width: 90%;
    max-width: 800px;
    margin: 80px auto;
    aspect-ratio: 4 / 3;
    display: flex;
    justify-content: center;
    align-items: center;
    transform: translateY(var(--global-translate-y)) scale(var(--global-scale));
    transform-origin: center;
    transition: transform 0.3s ease; /* плавное изменение масштаба */
    
  }

  .tape-list-wrapper.visible {
    transform: translateY(0) scale(1);
    opacity: 1;
  }
  
  
  /* tape-row теперь не завязан на vh/vw, а на % */
  .tape-row {
    position: absolute;
    width: 90%;
    height: auto;
    top: calc(17% + var(--tape-y)); /* сдвиг вверх/вниз */
    transform: scale(var(--tape-scale));
    transform-origin: center;
    z-index: 6;
  }
  
  /* Левый и правый tape теперь адаптивные внутри контейнера */
  .tape-left, .tape-right {
    position: absolute;
    width: 20%; /* вместо vw — пропорционально ширине родителя */
    height: auto;
    pointer-events: none;
    user-select: none;
    background-color: rgba(255,255,255,0.1);
    backdrop-filter: blur(20px);
    z-index: 6;
  }
  
  .tape-left {
    left: 0;
    bottom: 0;
    clip-path: polygon(100% 24.91%, 20.25% 100%, 0% 75.09%, 79.75% 0%, 100% 24.91%);
  }
  
  .tape-right {
    right: 0;
    bottom: 0;
    clip-path: polygon(100% 75.09%, 79.75% 100%, 0% 24.91%, 20.25% 0%, 100% 75.09%);
  }
  
  /* list-stack остаётся тем же, но теперь вписывается в контейнер */
  .list-stack {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 90%;
    margin: 0 auto;
    height: 100%;
    text-align: center;
    z-index: 2;
  }
  
  .list-stack > .text-list-svg {
    position: relative;
    z-index: 3;
    width: 90%;
    margin: 0 auto;
  }
  
  .list-stack > .list-svg {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: auto;
    z-index: 2;
    pointer-events: none;
    user-select: none;
  }
  
  .list-stack > .shadow-list-svg {
    position: absolute;
    top: 55%;
    left: 50%;
    transform: translate(-50%, -50%) scale(var(--shadow-scale));
    width: 59%; /* увеличено, чтобы тень выходила за края листа */
    opacity: 0.6;
    z-index: 1; /* ниже листа, но выше фона */
    pointer-events: none;
    user-select: none;
  }
  
  .fade-up {
    opacity: var(--opacity, 0);
    transform: translateY(var(--translateY, 60px));
    transition: opacity 1s ease, transform 1s ease;
    will-change: opacity, transform;
    position: relative;
    z-index: 200;
}

.fade-up.visible {
    opacity: 1;
    transform: translateY(0);
}





/* Work Timeline Section */
.work-timeline {
    max-width: 800px;
    margin: 0 auto;
    padding: 200px 0 150px 0;
    position: relative;
    z-index: 1;
  }

  .timeline-title {
    font-size: 18px;
    margin-bottom: 40px;
    color: #333;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}
  
  .timeline-item {
    display: flex; /* заменяем grid на flex для устойчивости */
    justify-content: space-between; /* год слева, текст справа */
    align-items: flex-start; /* текст не прыгает при разной высоте */
    gap: 80px;
    margin-bottom: 50px;
    flex-wrap: nowrap; /* запрещаем перенос */
  }
  
  .timeline-year {
    flex-shrink: 0; /* не даём году сжиматься */
    width: 200px; /* фиксированная ширина колонки */
    text-align: left;
    font-size: 18px;
    line-height: 1.8;
    color: #33333380;
    font-weight: 300;
  }
  
  .timeline-content {
    flex: 1; /* правая часть занимает оставшееся место */
    width: 200;
    text-align: right;
    font-size: 18px;
    line-height: 1.8;
    color: #333;
    white-space: nowrap; /* текст не переносится */
    overflow: hidden;
    text-overflow: ellipsis; /* если не помещается, добавляется "..." */
    font-weight: 300;
  }
  
  .company-logo {
    width: 24px;
    height: 24px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    font-weight: 600;
    font-size: 16px;
    flex-shrink: 0;
    opacity: 0.75;
    position: relative;
    top: 0.3vh; /* лёгкое смещение вниз */
  }
  
  /* ————————————————————— */
  /* 📱 Мобильная адаптация */
  @media (max-width: 768px) {
    .work-timeline {
      padding: 40px 20px;
      margin: 80px 20px;
    }
  
    .timeline-item {
      flex-direction: column; /* элементы под друг другом */
      align-items: flex-start;
      gap: 10px;
    }
  
    .timeline-year {
      width: auto;
      font-size: 20px;
    }
  
    .timeline-content {
      text-align: left;
      font-size: 18px;
      white-space: normal; /* на мобильных можно переносить */
    }

    .content {
      padding: 50px 30px 100px 30px;
    }

    .spacer {
      height: 4rem;
    }

    h1 {
      font-size: 28px;
      margin-bottom: 60px;
      text-align: center;
    }

    p {
      font-size: 16px;
      margin-bottom: 30px;
      text-align: center;
    }

    .bg-video {
      height: 40vh;
      border-radius: 5%;
    }

    .tape-list-center {
      height: auto;
    }

    .tape-list-wrapper {
      margin: 40px auto;
    }

    .social-links {
      display: flex;
      justify-content: space-around;
    }

    .social-links a {
      font-size: 16px;
      text-align: center;
    }

    .work-time {
      margin-bottom: 5rem;
    }

    .time-text {
      font-size: 11px;
    }

    .mail-work {
      font-size: 16px;
    }

    .frame {
      bottom: 20px;
      padding: 12px 40px;
    }

    .frame .text-wrapper {
      font-size: 14px;
    }
  }

  .bg-video {
    position: relative;
  width: 100%;
  height: 50vh; /* высота экрана */
  display: flex;
  justify-content: center; /* по горизонтали */
  align-items: center;     /* по вертикали */
  overflow: hidden;
  background-color: #FDFDFC;
  border-radius: 10%;
}
  
.social-links {
    position: relative; /* или fixed, если хочешь центр экрана */
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    width: 100%;
    max-width: 800px;
    margin: 0 auto; /* центр по горизонтали */
    padding: 0;
    pointer-events: auto; /* клики разрешены */
    z-index: 100000; /* выше overlay */
}


.social-links a {
    position: relative;  
    font-family: Helvetica, sans-serif;
    font-weight: 300;
    font-size: 18px;
    color: #333;
    transition: color 0.5s ease;
}

.social-links a::after {
    content: "";
    position: absolute;
    left: 50%;              /* линия стартует из центра */
    bottom: 0;
    height: 1px;
    width: 0;
    background-color: #000000;
    transform: translateX(-50%);
    transition: width 1s ease; /* более плавное затухание */
}

.social-links a:hover {
    color: #000000;
}

.social-links a:hover::after {
    width: 100%;             /* линия растягивается до краёв текста */
}




.social-links a:hover {
    color: #000;
}

.left-link {
    justify-self: start;
}

.center-link {
    justify-self: center;
}

.right-link {
    justify-self: end;
}


.time-text {
    font-size: 12px;
    line-height: 1.8;
    margin-bottom: 40px;
    color: #747474;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    align-items: center;
    justify-content: center;
    display: flex;
    margin: 0;          /* убираем дефолтные отступы p */
    line-height: 1.2;
}

.mail-work {
    position: relative;
    font-family: Helvetica, sans-serif;
    font-weight: 300;
    font-size: 18px;
    color: #333;
    transition: color 0.3s ease;
}

.mail-work::after {
    content: '';
    position: absolute;
    left: 50%;                /* центрируем начало линии */
    bottom: -2px;
    width: 0%;
    height: 1px;
    background-color: #333;
    transform: translateX(-50%); /* линия растёт из центра */
    transition: width 1s ease;
}

.mail-work:hover::after {
    width: 100%;              /* растягиваем на всю ширину */
}

.mail-work:hover {
    color: #000;
}

.work-time {
    display: flex;
    flex-direction: column; /* текст сверху, ссылка снизу */
    align-items: center;
    justify-content: center;
    gap: 0.5rem; /* небольшой отступ между текстом и ссылкой */
    margin-bottom: 10rem; /* можно подстроить отступ от следующего блока */
}