/* Hero Component Styles */

.hero {
    position: relative;
    min-height: 964px;
    padding: var(--spacing-2xl) 0;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 10px;
    left: 0;
    right: 0;
    height: 100%;
    z-index: 1;
    pointer-events: none;
}

.hero-background {
    position: absolute;
    right: -80px;
    top: 50%;
    transform: translateY(-50%);
    width: 1933px;
    height: 529.915px;
    z-index: 0;
    overflow: hidden;
}

.hero-media-asset {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 2;
    padding: 175px 0 0;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: var(--spacing-2xl);
}

.hero-text {
    max-width: 609px;
    flex: 0 0 609px;
    position: relative;
    z-index: 3;
}

.hero-side {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: var(--spacing-xl);
    position: relative;
    z-index: 2;
}

.hero-ellipse {
    position: absolute;
    left: -670px;
    top: 60%;
    transform: translate3d(0, -50%, 0);
    width: 480px;
    max-width: 40vw;
    height: auto;
    z-index: 2;
    pointer-events: none;
    opacity: 0.7;
    will-change: transform;
    animation: hero-ellipse-drift 14s ease-in-out infinite alternate;
}

.hero-ellipse--second {
    left: calc(-670px * 1.6);
    opacity: 0.3;
    animation-duration: 18s;
    animation-delay: 1.5s;
}

.hero-ellipse-img {
    display: block;
    width: 100%;
    height: auto;
}

.hero-video {
    flex: 1;
    position: relative;
    max-width: 100%;
    z-index: 1;
    margin-left: 0;
}

.hero-video::after {
    content: '';
    position: absolute;
    top: 0px;
    left: 0px;
    right: 0px;
    bottom: 0px;
    background: linear-gradient(to right,
        rgba(233, 85, 33, 0.8) 0%,
        rgba(233, 85, 33, 0.6) 25%,
        rgba(233, 85, 33, 0.4) 50%,
        rgba(233, 85, 33, 0.2) 75%,
        rgba(233, 85, 33, 0) 100%
    );
    pointer-events: none;
    z-index: 1;
    -webkit-mask-image: url(../../images/mask.svg);
    mask-image: url(../../images/mask.svg);
    -webkit-mask-size: 100% 100%;
    mask-size: 100% 100%;
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    -webkit-mask-position: center;
    mask-position: center;
    margin-left: -250px;
}

.hero-video-element {
    width: 1010px;
    height: auto;
    display: block;
    object-fit: contain;
    -webkit-mask-image: url('../../images/mask.svg');
    mask-image: url('../../images/mask.svg');
    -webkit-mask-size: 100% 100%;
    mask-size: 100% 100%;
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    -webkit-mask-position: center;
    mask-position: center;
    margin-left: -250px;
}

.hero-title {
    font-family: var(--font-family-heading);
    font-size: var(--font-size-h1);
    font-weight: var(--font-weight-normal);
    line-height: var(--line-height-h1);
    color: var(--color-text-light);
    margin-bottom: var(--spacing-xl);
    font-variation-settings: var(--font-variation-settings);
    white-space: pre-wrap;
}

.hero-subtitle {
    color: var(--color-text-light);
    font-family: var(--font-family-body);
    font-size: 20px;
    line-height: 32px;
    margin: 0;
    max-width: 483px;
    letter-spacing: -0.2px;
    margin-top: 20px;
}

/* Responsive */
@media (max-width: 1200px) {
    .hero-background {
        right: -80px;
    }
    
    .hero-content {
        padding: 200px 0 0;
        flex-direction: column;
        align-items: flex-start;
        gap: var(--spacing-xl);
    }
    
    .hero-text {
        flex: 0 0 auto;
        max-width: 100%;
    }

    .hero-side {
        width: 100%;
        max-width: 100%;
    }
    
    .hero-video {
        width: 100%;
        max-width: 100%;
    }

    .hero-video-element {
        width: 100%;
        margin-left: 0;
    }
    
    .hero-title {
        font-size: 64px;
        line-height: 70px;
    }
}

@media (max-width: 768px) {
    .hero {
        min-height: auto;
        padding: var(--spacing-xl) 0;
    }
    
    .hero-background {
        right: -150px;
        width: 1200px;
        height: auto;
        aspect-ratio: 1933 / 529.915;
    }
    
    .hero-content {
        padding: 100px 0 0;
        flex-direction: column;
        align-items: flex-start;
        gap: var(--spacing-xl);
    }
    
    .hero-text {
        max-width: 100%;
        flex: 0 0 auto;
    }

    .hero-side {
        width: 100%;
        max-width: 100%;
    }
    
    .hero-video {
        width: 100%;
        max-width: 100%;
        margin-top: var(--spacing-xl);
    }
    
    .hero-video-element {
        width: 100%;
        margin-left: 0;
    }
    
    .hero-title {
        font-size: 48px;
        line-height: 52px;
        margin-bottom: 24px;
    }
    
    .hero-subtitle {
        font-size: 18px;
        line-height: 28px;
        margin-bottom: 32px;
        max-width: 100%;
    }

    .hero-ellipse {
        left: -80px;
        width: 360px;
    }
}

@keyframes hero-ellipse-drift {
    0% {
        transform: translate3d(60px, -50%, 0);
    }
    100% {
        transform: translate3d(-60px, -50%, 0);
    }
}

@media (prefers-reduced-motion: reduce) {
    .hero-ellipse,
    .hero-ellipse--second {
        animation: none;
        transform: translate3d(0, -50%, 0);
    }
}
