/* Hero block — copied from deadrxse SITE */

/* Adjust hero section */
.hero {
    position: relative;
    height: 100vh;
    width: 100%;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-top: 0;
    top: 0;
    left: 0;
    z-index: 1;
    background: #fff;
    color: #111;
}

/* Layer 1: Background */
.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: white;
    z-index: 1;
}

#matrixCanvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.7;
}

/* Layer 2: Large Centered Text */
.hero-large-text {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
    pointer-events: none;
    margin: 0;
    padding: 0;
}

#textCanvas {
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
    display: block;
}

.hero-large-text span {
    font-size: 200px;
    font-weight: 700;
    letter-spacing: 20px;
    color: rgba(255, 255, 255, 0.1);
    text-transform: uppercase;
    white-space: nowrap;
}

/* Layer 3: Text Content */
.hero-text {
    position: relative;
    z-index: 3;
    width: 100%;
    padding: 0 20px;
    margin-top: 35px;
    text-align: center;
}

.hero-text h1 {
    font-size: 36px;
    font-weight: 400;
    line-height: 1.2;
    letter-spacing: 1px;
    white-space: nowrap;
    text-align: center;
    max-width: 100%;
    margin: 0 auto;
}

.hero-text h1 .normal {
    font-weight: 500;
}

.hero-text h1 .light {
    font-weight: 200;
}

.hero-text h1 .main-title {
    font-size: 36px;
    letter-spacing: 1px;
    white-space: nowrap;
}

.hero-text h1 .secondary-title {
    font-size: 36px;
    letter-spacing: 2px;
    opacity: 0.9;
}

.hero-text .subtitle {
    font-size: 24px;
    margin-bottom: 40px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    font-weight: 400;
    letter-spacing: 1px;
    opacity: 0.9;
}

/* Медиа-запрос для мобильных устройств */
@media (max-width: 768px) {
    .hero {
        padding-top: 0;
    }
    
    .hero-text {
        padding: 0 15px;
        margin-top: 0;
    }
    
    .hero-text h1 {
        font-size: 18px;
    }
    
    .hero-text h1 .main-title {
        font-size: 18px;
    }
}

/* Layer 4: Additional Content */
.hero-content {
    position: relative;
    z-index: 4;
    width: 100%;
    max-width: 100%;
    padding: 40px 20px;
    text-align: left;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: flex-start;
    height: 100vh;
    margin: 0;
    pointer-events: auto;
}

.hero-description {
    text-align: left;
    padding: 0;
    margin-top: 0;
    margin-bottom: 40px;
    width: 100%;
}

.hero-description p {
    font-size: 32px;
    line-height: 1.4;
    color: #fff;
    font-weight: 600;
    max-width: 600px;
    margin: 0;
    padding: 0;
}

/* Mobile adaptations for hero-description */
@media (max-width: 768px) {
    .hero-description p {
        font-size: 24px; /* Adjust font size for mobile */
    }
    .hero-description p span.nowrap {
        white-space: normal; /* Allow text to wrap on mobile */
    }
}

.hero-cta {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    width: 100%;
    margin-top: 40px;
    padding-right: 20px;
    padding-bottom: 20px;
}

.primary-btn {
    background: #FFD700;
    border: none;
    color: #000;
    padding: 15px 40px;
    border-radius: 30px;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-block;
}

.primary-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.burger-menu {
    position: relative;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.burger-icon {
    width: 30px;
    height: 20px;
    position: relative;
    transform: rotate(0deg);
    transition: .5s ease-in-out;
}

.burger-icon span {
    display: block;
    position: absolute;
    height: 1px;
    width: 100%;
    background: #00ff00;
    border-radius: 9px;
    opacity: 1;
    left: 0;
    transform: rotate(0deg);
    transition: .25s ease-in-out;
    box-shadow: 0 0 10px #00ff00;
}

.burger-icon span:nth-child(1) {
    top: 0px;
}

.burger-icon span:nth-child(2) {
    top: 9px;
    width: 75%;
}

.burger-icon span:nth-child(3) {
    top: 18px;
}

.burger-menu:hover .burger-icon span:nth-child(2) {
    width: 100%;
}

.burger-menu:hover .burger-icon span {
    background: #fff;
    box-shadow: 0 0 15px #00ff00;
}

/* Cursor Styles */
#cursor {
    z-index: 9999;
    pointer-events: none;
}

.ink-icon {
    z-index: 9999;
    pointer-events: none;
}

.highlight {
    color: #E9FF71;
    font-weight: 700;
}

.nowrap {
    white-space: nowrap;
}

.hero-badges {
    margin-top: 0;
    padding-left: 0;
    display: flex;
    gap: 20px;
    justify-content: flex-start;
}

.badge {
    background: #232323;
    color: #bdbdbd;
    font-size: 22px;
    font-weight: 400;
    border-radius: 32px;
    padding: 12px 32px;
    display: inline-block;
    transition: background 0.2s, color 0.2s;
}

.badge:hover {
    background: #E9FF71;
    color: #232323;
}

.circular-text-wrapper {
    position: absolute;
    right: 40px;
    top: 40px;
    bottom: auto;
    width: 200px;
    height: 200px;
    z-index: 5;
}

@media (max-width: 768px) {
    .circular-text-wrapper {
        left: 50%;
        top: 70%; /* Было 45%, теперь ниже */
        transform: translate(-50%, -50%);
        right: auto;
        bottom: auto;
    }
}

.circular-text-html {
    width: 100%;
    height: 100%;
    margin: 0;
    border-radius: 50%;
    position: relative;
    font-weight: bold;
    color: #111;
    font-weight: 900;
    text-align: center;
    cursor: pointer;
    transform-origin: 50% 50%;
    -webkit-transform-origin: 50% 50%;
    transition: color 0.3s ease-in-out;
}

.circular-text-html:hover {
    color: #E9FF71; /* Цвет при наведении */
}

.circular-text-html span {
    position: absolute;
    display: inline-block;
    font-size: 24px;
    transition: all 0.5s cubic-bezier(0, 0, 0, 1);
}

/* Styles for the new center button */
.circular-text-center-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80px; /* Adjust size as needed */
    height: 80px; /* Adjust size as needed */
    background-color: #E9FF71; /* Accent color */
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    z-index: 11; /* Ensure it's above other elements */
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.circular-text-center-button p {
    color: #232323; /* Dark color for text on light background */
    font-size: 18px;
    font-weight: 700;
    margin: 0;
    padding: 0;
}

.circular-text-center-button:hover {
    background-color: #c6e900; /* Slightly darker on hover */
    transform: translate(-50%, -50%) scale(1.05);
}

.cases {
    background-color: black;
    padding: 80px 20px;
    text-align: center;
    color: #fff;
}

.cases h2 {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 60px;
    color: #fff;
}

@font-face {
  font-family: 'Compressa VF';
  src: url('https://res.cloudinary.com/dr6lvwubh/raw/upload/v1529908256/CompressaPRO-GX.woff2');
  font-style: normal;
  font-weight: 100 900; /* Define variable axis range */
  font-stretch: 5% 200%; /* Define variable axis range for width */
}

.text-pressure-title {
  color: #111;
  text-transform: uppercase;
  margin: 0;
  text-align: right; /* Выравнивание по правому краю, как раньше */
  user-select: none;
  white-space: nowrap;
  font-family: 'Compressa VF', sans-serif; /* Используем новый шрифт */
  font-variation-settings: 'wght' 400, 'wdth' 100, 'ital' 0; /* Дефолтные значения */
  font-size: 36px; /* Default font size */
}

.text-pressure-title span {
  display: inline-block;
}

.flex {
  display: flex;
  justify-content: flex-end; /* Выравниваем по правому краю */
  flex-wrap: nowrap; /* Чтобы не переносился текст */
}

.stroke span {
  position: relative;
  color: #FFFFFF;
}
.stroke span::after {
  content: attr(data-char);
  position: absolute;
  left: 0;
  top: 0;
  color: transparent;
  z-index: -1;
  -webkit-text-stroke-width: 3px;
  -webkit-text-stroke-color: #FF0000;
}

.hero-bottom-right-content {
    position: absolute;
    left: 50%;
    bottom: 20px;
    top: auto;
    transform: translateX(-50%);
    align-self: center;
    margin: 0;
    text-align: center;
    padding: 0;
    max-width: 100vw;
    display: flex;
    justify-content: center;
    align-items: center;
    height: auto;
    width: 100vw;
}

.text-pressure-title.flex {
    justify-content: center;
    align-items: center;
    width: 100%;
    font-size: 6.4vw;
    line-height: 1;
}

/* ASCII Text Container */
.ascii-text-container {
  position: absolute;
  bottom: 20px;
  left: 20px;
  width: 300px;
  height: 100px;
  z-index: 5;
}

@media screen and (max-width: 768px) {
    .text-pressure-title {
        font-size: 24px; /* Smaller font size for mobile */
    }
}

#hero-photo {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100vw;
    height: 100vh;
    object-fit: cover;
    aspect-ratio: 16/9;
    transform: translate(-50%, -50%) scale(1.05);
    z-index: 1;
    pointer-events: none;
    user-select: none;
    opacity: 0;
    transition: opacity 0.7s cubic-bezier(.4,0,.2,1), transform 0.7s cubic-bezier(.4,0,.2,1);
}
#hero-photo.photo-visible {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: white;
    z-index: 1;
}

.hero-background::before {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
    pointer-events: none;
    background: linear-gradient(to bottom, rgba(255,255,255,0) 10%, rgba(255,255,255,0.5) 50%, #fff 100%);
}

.hero-background::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 40%;
    z-index: 3;
    pointer-events: none;
    background: linear-gradient(to bottom, rgba(255,255,255,0) 0%, #fff 100%);
} 

.menu-wrapper {
    width: 100vw;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 10000;
    background: none;
    margin-top: 0;
    margin-bottom: 32px;
    pointer-events: auto;
    opacity: 0;
    transform: translateY(-30px);
    pointer-events: none;
    transition: opacity 0.5s cubic-bezier(.4,0,.2,1), transform 0.5s cubic-bezier(.4,0,.2,1);
}
.menu-wrapper.menu-visible {
    opacity: 1;
    transform: none;
    pointer-events: auto;
}

.menu-nav {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    gap: 32px;
    box-sizing: border-box;
}

.menu-group {
    display: flex;
    flex-direction: row;
    gap: 32px;
}

.menu-group-left,
.menu-group-right {
    justify-content: center;
    flex: none;
}

#logo {
    width: 64px;
    height: 64px;
    object-fit: contain;
    margin: 0 32px;
    flex-shrink: 0;
}

.menu-link {
    color: #111;
    text-decoration: none;
    font-size: 20px;
    font-weight: 500;
    letter-spacing: 1px;
    transition: color 0.2s;
}
.menu-link:hover {
    color: #E9FF71;
}

/* Мобильное меню */
.mobile-menu-btn {
    display: none;
    position: fixed;
    top: 16px;
    right: 20px;
    z-index: 10001;
    width: 40px;
    height: 40px;
    background: none;
    border: none;
    cursor: pointer;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}
.mobile-menu-btn span {
    display: block;
    width: 28px;
    height: 4px;
    margin: 4px 0;
    background: #111;
    border-radius: 2px;
    transition: 0.3s;
}

.mobile-menu {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: #fff;
    z-index: 10000;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 40px;
    transform: translateX(100%);
    transition: transform 0.4s cubic-bezier(.4,0,.2,1);
    opacity: 1;
    pointer-events: none;
}
.mobile-menu.active {
    display: flex;
    transform: translateX(0);
    pointer-events: auto;
}
.mobile-menu #logo {
    margin: 0 0 24px 0;
}
.mobile-menu .menu-link {
    font-size: 28px;
    color: #111;
    margin: 16px 0;
    opacity: 0;
    transform: translateX(40px);
    transition: opacity 0.4s cubic-bezier(.4,0,.2,1), transform 0.4s cubic-bezier(.4,0,.2,1);
}
.mobile-menu.active .menu-link {
    opacity: 1;
    transform: none;
}
.mobile-menu.active .menu-link:nth-child(2) { transition-delay: 0.10s; }
.mobile-menu.active .menu-link:nth-child(3) { transition-delay: 0.20s; }
.mobile-menu.active .menu-link:nth-child(4) { transition-delay: 0.30s; }
.mobile-menu.active .menu-link:nth-child(5) { transition-delay: 0.40s; }

@media (max-width: 900px) {
    .menu-wrapper {
        display: flex !important;
        justify-content: center;
        align-items: flex-start;
        width: 100vw;
        position: absolute;
        top: 0;
        left: 0;
        z-index: 10000;
        background: none;
        margin-top: 0;
        margin-bottom: 0;
        pointer-events: auto;
        opacity: 1;
        transform: none;
        height: auto;
        min-height: 0;
    }
    .menu-nav {
        width: 100vw;
        justify-content: center;
        align-items: flex-start;
        display: flex;
        flex-direction: row;
        padding-top: 16px;
        padding-bottom: 16px;
    }
    #logo {
        margin: 0 auto;
        display: block;
        width: 96px;
        height: 96px;
    }
}

/* Portfolio: hide logo while scrolling inside hero */
.menu-wrapper.menu-over-hero,
.menu-wrapper.menu-compact {
    background: transparent;
}

.menu-wrapper.menu-hidden-on-scroll {
    opacity: 0;
    pointer-events: none;
}
