﻿html, body {
    height: 100%;
    margin: 0;
    font-family: 'Open Sans', sans-serif;
    background: #F5F6F8;
    direction: rtl;
    overflow: hidden;
}

body {
    color: #000;
}

.container {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100vh;
    position: relative;
    overflow: hidden;
}

.top-bar {
    height: 16px;
    background: #D0DED6;
    position: relative;
   
}

.bottom-bar {
    height: 20vh;
    background: #E5EAE7;
    position: relative;
    
}

.content {
    padding: 0 10%;
    position: relative;
    z-index: 4;
}

.main-text,
.sub-text {
    opacity: 0;
    transform: translateY(24px);
    animation: textReveal 1s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.main-text {
    font-size: 24px;
    line-height: 1.4;
    margin: 0;
    animation-delay: 0.25s;
}

.sub-text {
    font-size: 20px;
    margin: 10px 0 0 0;
    animation-delay: 0.5s;
}

.mobile-content {
    display: none;
}

    .mobile-content .main-text,
    .mobile-content .sub-text {
        text-align: center;
    }

.image-layer {
    position: fixed;
    inset: 0;
    z-index: 9999;
    pointer-events: none;
}

.bg-image,
.bg-image-mobile {
    position: absolute;
    left: 0;
    width: auto;
    max-width: none;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.8s ease 0.15s, transform 1.15s cubic-bezier(0.22, 1, 0.36, 1) 0.15s;
}

.bg-image {
    top: 16px;
    height: calc(100vh - 16px);
    opacity: 0;
    transform: translateX(-120px);
    animation: imageSlideIn 0.6s ease-out forwards;
    animation-delay: 0.2s;
}

@keyframes imageSlideIn {
    from {
        opacity: 0;
        transform: translateX(-120px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.bg-image-mobile {
    opacity: 0;
    transform: translateY(30px) scale(0.97);
}

.main-text .line {
    display: block;
    opacity: 0;
    transform: translateY(18px);
    animation: lineReveal 0.9s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.main-text .line-1 {
    animation-delay: 0.28s;
}

.main-text .line-2 {
    animation-delay: 0.38s;
}

.main-text .line-3 {
    animation-delay: 0.48s;
}

@keyframes textReveal {
    0% {
        opacity: 0;
        transform: translateY(24px);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes lineReveal {
    0% {
        opacity: 0;
        transform: translateY(18px);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 1000px) {
    .bg-image {
        display: none
    }

    .bottom-bar {
        height: 55vh;
        background: #E5EAE7;
    }

    .content {
        display: none;
    }

    .mobile-content {
        display: flex;
        position: fixed;
        top: 75%;
        left: 50%;
        width: 82%;
        transform: translate(-50%, -50%);
        flex-direction: column;
        align-items: center;
        justify-content: center;
        z-index: 10000;
    }

        .mobile-content .main-text {
            font-size: 20px;
            line-height: 1.45;
            margin: 0;
            animation-delay: 0.2s;
        }

        .mobile-content .sub-text {
            font-size: 18px;
            margin-top: 10px;
            animation-delay: 0.45s;
        }

    .bg-image {
        opacity: 0;
        transform: translateY(30px) scale(0.97);
    }

    .bg-image-mobile {
        position: absolute;
        top: 0px;
        left: 0;
        width: 100%;
        height: calc(100vh - 16px);
        object-fit: contain;
        object-position: top; /* מדביק למעלה */

        opacity: 1;
        transform: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    .bg-image,
    .bg-image-mobile,
    .main-text,
    .sub-text,
    .main-text .line {
        animation: none !important;
        transition: none !important;
        opacity: 1 !important;
        transform: none !important;
        filter: none !important;
    }
}
