/*
---
--- Файл: /public/assets/css/presentation.css
--- Версия: 4.004 | 14.10.2025 10:00
--- Описание: Стили, специфичные для страницы-презентации проекта "Траект".
--- Изменения:
--- - Добавлены стили для нового класса .image-card с фоновыми изображениями.
--- - Реализован оверлей и hover-эффект для карточек с изображениями.
---
*/

/* 1. Общие стили для секций-экранов */
.presentation-screen {
    min-height: 100vh;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 80px 40px;
    position: relative;
    overflow: hidden;
    scroll-snap-align: start;
    color: #fff; /* Белый текст по умолчанию для всех секций */
}

/* контейнер для плавного скроллинга */
main#presentation-main {
    scroll-snap-type: y mandatory;
    overflow-y: scroll;
    height: 100vh;
}


.presentation-screen .content {
    max-width: 1200px;
    width: 100%;
    text-align: center;
    z-index: 2;
    position: relative;
}

/* 2. Типографика */
.presentation-screen h2 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
    text-shadow: 0 2px 8px rgba(0,0,0,0.7); /* Усиленная тень */
}
.presentation-screen h1 {
    text-shadow: 0 2px 8px rgba(0,0,0,0.7);
}

.presentation-screen .description {
    font-size: 1.25rem;
    max-width: 800px;
    margin: 0 auto 2rem auto;
    line-height: 1.6;
    color: #e5e7eb; /* Светло-серый, хорошо читается на темном */
    text-shadow: 0 1px 4px rgba(0,0,0,0.7);
}

/* Стили для подзаголовка "Презентация" */
.presentation-screen .presentation-subtitle {
    font-style: italic;
    font-weight: 500;
    font-size: 2.0rem; 
    color: #fcd34d;
    text-shadow: 0 2px 6px rgba(0,0,0,0.6);
    margin-top: -1rem;
    margin-bottom: 1rem;
}

/* 3. Анимации */
.reveal {
    opacity: 0;
    transform: translateY(50px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* 4. Стили для сеток (общие) */
.icon-grid, .card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

/* Стили для карточек с иконками */
.icon-item {
    background: rgba(0, 0, 0, 0.4);
    padding: 2rem;
    border-radius: 1rem;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.1);
    display: flex;
    flex-direction: column;
}

.icon-item svg {
    width: 60px;
    height: 60px;
    margin: 0 auto 1rem auto;
    color: #fcd34d; /* Tailwind yellow-400 */
    flex-shrink: 0;
}

.icon-item h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #fff;
}

.icon-item p {
    font-size: 1rem;
    color: #d1d5db; /* Tailwind gray-300 */
    margin: 0;
    flex-grow: 1;
}

/* НОВЫЕ СТИЛИ для карточек с изображениями */
.image-card {
    position: relative;
    height: 250px;
    border-radius: 1rem;
    overflow: hidden;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: flex-end; /* Выравниваем текст по нижнему краю */
    padding: 1.5rem;
    color: #fff;
    transition: transform 0.3s ease-out;
}

.image-card:hover {
    transform: scale(1.05);
}

/* Оверлей для затемнения */
.image-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(180deg, rgba(0,0,0,0) 40%, rgba(0,0,0,0.9) 100%);
    z-index: 1;
    transition: background 0.3s ease-out;
}

.image-card:hover::before {
    background: linear-gradient(180deg, rgba(0,0,0,0.2) 20%, rgba(0,0,0,1) 100%);
}


.image-card h3 {
    position: relative;
    z-index: 2;
    font-size: 1.5rem;
    font-weight: 700;
    text-shadow: 0 2px 4px rgba(0,0,0,0.8);
    width: 100%;
    text-align: center;
}


/* 5. Боковая навигация */
#dot-navigation {
    position: fixed;
    top: 50%;
    right: 20px;
    transform: translateY(-50%);
    z-index: 1001;
}

#dot-navigation ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

#dot-navigation .dot {
    display: block;
    width: 12px;
    height: 12px;
    background-color: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

#dot-navigation .dot:hover {
    background-color: #fff;
}

#dot-navigation .dot.active {
    background-color: #fff;
    transform: scale(1.5);
    border: 2px solid rgba(255, 255, 255, 0.5);
}


/* 6. Стили для фонов и оверлеев */
.background-media {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background-size: cover;
    background-position: center;
    z-index: 0;
}

.background-overlay {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background-color: rgba(0,0,0,0.5); /* Затемняющий оверлей */
    z-index: 1;
}


/* 7. Стили для конкретных секций */

/* Секция 1: Титульный экран */
#pres-hero {
    background-color: #111827; /* Tailwind gray-900 */
}
#pres-hero .background-overlay {
    background-color: rgba(17, 24, 39, 0.7);
}
#pres-hero .trajectory {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    z-index: 1;
    opacity: 0.7;
}

/* Секция 2: Проблема (Дракон) */
#pres-problem .background-overlay {
    background: radial-gradient(circle, rgba(0,0,0,0.4) 0%, rgba(0,0,0,0.8) 90%);
}

.dragon-grid {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

/* Секция 9: Призыв к действию */
.call-to-action-buttons {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    margin-top: 2rem;
    position: relative;
    z-index: 10;
}

#pres-call .main-button {
    font-size: 1.2rem;
    padding: 1rem 2.5rem;
    text-decoration: none;
    border-radius: 0.5rem;
    transition: all 0.2s;
    font-weight: 700;
    background-color: var(--btn-success-bg);
    color: #fff;
    border: none;
    display: inline-block;
}
#pres-call .main-button:hover {
     background-color: var(--btn-success-hover-bg);
     color: #fff;
     transform: scale(1.05);
}

#pres-call .secondary-button {
    font-size: 1.2rem;
    padding: 1rem 2.5rem;
    text-decoration: none;
    border-radius: 0.5rem;
    transition: all 0.3s ease;
    font-weight: 700;
    background-color: transparent;
    color: #fff;
    border: 2px solid #fff;
    display: inline-block;
}

#pres-call .secondary-button:hover {
    background-color: #fff;
    color: #111827;
    transform: scale(1.05);
}

/* 10. Адаптивность для мобильных */
@media (max-width: 768px) {
    #dot-navigation {
        display: none;
    }
    main#presentation-main {
        scroll-snap-type: none; /* Отключаем прилипание на мобильных для естественного скроллинга */
        height: auto;
        overflow-y: auto;
    }
    .presentation-screen {
        padding: 4rem 1.5rem;
        min-height: auto; /* Убираем минимальную высоту, чтобы секции не были слишком большими */
    }
    .presentation-screen h2 {
        font-size: 2.2rem;
    }
    .presentation-screen .description {
        font-size: 1.1rem;
    }
}

