@import url('https://fonts.googleapis.com/css2?family=DM+Sans:ital,opsz,wght@0,9..40,100..1000;1,9..40,100..1000&family=Lato:ital,wght@0,100;0,300;0,400;0,700;0,900;1,100;1,300;1,400;1,700;1,900&family=Manrope:wght@200..800&family=Montserrat:ital,wght@0,100..900;1,100..900&display=swap');

:root {
    --wrapper-width: 1520px;
    --wrapper-padding-x: 16px;

    --main-orange-color: #ff6900;

    --button-text-color: #d15700;
    --button-back-color: #f3f3f7;

    --black-color: #000;
    --white-color: #fff;
    --orange-color: #FF6A00;
    --main-color: #0E0E0E;

    --main-font: 'Montserrat', sans-serif;
}


body {
    font-family: 'Montserrat', sans-serif;
    color: var(--white-color);
    background-color:var(--main-color);
}


.wrapper {
    max-width: calc(var(--wrapper-width) + var(--wrapper-padding-x) * 2);
    margin-inline: auto;
    padding-inline: var(--wrapper-padding-x);
}


.header-nav {
    background-color: var(--orange-color);
    margin-bottom: 180px;
}


.header {
    position: relative;
    background-image:
            url('/img/Grid.png'),
            url('/img/Mask.png');
    background-position: left center, right center, left center, right center;
    background-repeat: no-repeat, no-repeat, no-repeat, no-repeat;
    background-size: 50% 100%, 50% 100%, 50% 100%, 50% 100%;
}


.header-nav-item {
    height: 80px;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    column-gap: 42px;
}


.header-nav-item-link {
    color: var(--white-color);
    font-size: 36px;
    font-weight: 500;
    text-decoration: underline;
    text-underline-offset: 5px;

}

.header-main-title {
    font-weight: 600;
    font-size: 128px;
    padding-bottom: 37px;
}

.software{
    color: var(--orange-color);
}


.header-main-subtitle{
    max-width: 1000px;
    font-size: 28px;
    font-weight: 500;
    padding-bottom: 22px;
    line-height: 1.1;
    opacity: 50%;
}

.header-main-btn {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 276px;
    height: 66px;
    border-radius: 37px;
    color: var(--white-color);
    font-weight: 600;
    font-size: 30px;
    background-color: var(--orange-color);
    text-decoration: none;
    margin-top: 42px;
}


.hero {
    padding-left: 158px;
    padding-top: 280px;
}

.hero-title {
    font-size: 30px;
    font-weight: 500;
    padding-bottom: 41px;
    opacity: 50%;
}

.hero-cards {
    position: relative;
    display: flex;
    flex-wrap: wrap;
    column-gap: 19px;
    row-gap: 59px;
}

.hero-cards::before {
    content: "";
    position: absolute;
    width: 1608px;
    height: 1587px;
    background: rgba(255, 255, 255, 0.06);
    filter: blur(20px);
    border-radius: 20px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: -1;
}

.hero-card {
    width: 388px;
    height: 281px;
}


@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.scroll-animation {
    opacity: 0;
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.scroll-animation.fade-in {
    animation: fadeIn 1s ease-out forwards;
}

.scroll-animation.slide-up {
    animation: slideUp 1s ease-out forwards;
}

@media (prefers-reduced-motion: reduce) {
    .scroll-animation {
        transition: none;
        animation: none;
    }
}

.header-nav-item-link {
    transition: all 0.3s ease;
    position: relative;
}

.header-nav-item-link:hover {
    color: #ff9e64;
}

.header-nav-item-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    top: 37px;
    left: 0;
    background-color: var(--white-color);
    transition: width 0.3s ease;
}

.header-nav-item-link:hover::after {
    width: 100%;
}

.hero-card-link {
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    transform-origin: center;
    display: block;
    overflow: hidden;
    border-radius: 15px;
}

.hero-card-link:hover {
    transform: translateY(-10px) scale(1.05);
    box-shadow: 0 25px 50px -12px rgba(255, 106, 0, 0.25);
}

.hero-card-link:hover .hero-card {
    transform: scale(1.05);
}

.hero-card {
    transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    object-fit: cover;
}

.header-main-btn {
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.header-main-btn:hover {
    background-color: #ff8833;
    transform: translateY(-3px);
    box-shadow: 0 10px 20px -5px rgba(255, 106, 0, 0.3);
}

.header-main-btn::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
            45deg,
            transparent,
            rgba(255, 255, 255, 0.2),
            transparent
    );
    transform: rotate(45deg);
    transition: all 0.5s ease;
}

.header-main-btn:hover::after {
    left: 150%;
}