/* 1. Сброс стилей */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    background-color: black; /* Фон, пока грузится видео */
    color: white;
    min-height: 100vh;
}

/* 2. Видео-фон (Самый нижний слой) */
.backgroundvideo {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2; 
    overflow: hidden;
}

.backgroundvideo video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.5); /* Затемнение видео для читаемости текста */
}

/* 3. Затемняющий оверлей (Между видео и текстом) */
.overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom, 
        rgba(0,0,0,0.4) 0%, 
        rgba(0,0,0,0.2) 50%, 
        rgba(0,0,0,0.6) 100%
    );
    z-index: -1;
}

/* 4. Контейнер страницы */
.welcome-page {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent !important;
}

.content {
    position: relative;
    z-index: 10; /* Текст гарантированно сверху */
    padding: 0 1.5rem;
    text-align: center;
}

/* 5. Логотип и Текст */
.logo-container {
    margin-bottom: 1.5rem;
    display: flex;
    justify-content: center;
}

.chef-icon {
    width: 80px;
    height: 80px;
    color: #fb923c; /* orange-400 */
    stroke-width: 1.5;
    filter: drop-shadow(0 0 20px rgba(251, 146, 60, 0.4));
}

@media (min-width: 768px) {
    .chef-icon {
        width: 110px;
        height: 110px;
    }
}

.title {
    font-size: 2.8rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    text-transform: lowercase;
    letter-spacing: -1px;
}

@media (min-width: 768px) {
    .title { font-size: 5rem; }
}

.subtitle {
    font-size: 1.1rem;
    color: #e5e7eb; /* gray-200 */
    max-width: 32rem;
    margin: 0 auto;
    line-height: 1.5;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5); /* Чтобы текст не терялся на видео */
}

/* 6. Кнопка */
.cta-button {
    margin-top: 2.5rem;
    padding: 1.2rem 3rem;
    background-color: #f97316; /* orange-500 */
    color: white;
    font-size: 1.3rem;
    font-weight: 600;
    border: none;
    border-radius: 9999px;
    cursor: pointer;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.4);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.cta-button:hover {
    background-color: #ea580c; /* orange-600 */
    transform: scale(1.05);
    box-shadow: 0 20px 40px rgba(249, 115, 22, 0.3);
}

.cta-button:active {
    transform: scale(0.98);
}

/* 7. Анимация появления контента */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fadeInUp {
    animation: fadeInUp 1.2s ease-out forwards;
}

/* Настройка анимации для заголовка */
.animate-title {
    display: block;
    animation: fadeInDownBig 1.2s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

/* Сама анимация fadeInDownBig */
@keyframes fadeInDownBig {
    0% {
        opacity: 0;
        transform: translateY(-2000px); /* Прилетает издалека сверху */
    }
    60% {
        opacity: 1;
        transform: translateY(30px); /* Небольшой «перелет» для эффекта пружины */
    }
    100% {
        opacity: 1;
        transform: translateY(0); /* Финальная позиция */
    }
}