/* ===================================
   MANIFEST PAGE - SCROLL BASED LAYOUT
   =================================== */

.manifest-container {
    padding-top: 0;
    background-color: var(--color-white);
    scroll-snap-type: y mandatory;
    overflow-y: scroll;
    height: 100vh;
}

.manifest-section {
    min-height: 100vh;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    position: relative;
    scroll-snap-align: start;
    scroll-snap-stop: always;
}

/* Left Side - Sticky Subtitle */
.manifest-left {
    position: sticky;
    top: 50%;
    transform: translateY(-50%);
    width: 35%;
    padding-right: var(--spacing-xl);
    padding-left: var(--spacing-xl);
    align-self: center;
    display: flex;
    align-items: center;
}

.manifest-subtitle {
    font-size: clamp(32px, 4vw, 56px);
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -1px;
    color: var(--color-black);
    margin: 0;
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.manifest-subtitle.hidden {
    display: none;
}

/* Right Side - Scrolling Text */
.manifest-right {
    width: 65%;
    padding-right: var(--spacing-xl);
    padding-left: var(--spacing-md);
    display: flex;
    align-items: center;
    min-height: 100vh;
}

.manifest-text-content {
    font-size: clamp(18px, 2vw, 24px);
    line-height: 1.8;
    color: var(--color-black);
    font-weight: 400;
    text-align: justify;
}

.manifest-text-content.hidden {
    display: none;
}

.manifest-text-content p {
    margin-bottom: var(--spacing-lg);
    opacity: 1;
    transform: translateY(0);
}

.manifest-text-content p:last-child {
    margin-bottom: 0;
}

.manifest-text-content strong {
    font-weight: 700;
    color: var(--color-black);
}

/* Section Transition Animation */
.manifest-section {
    opacity: 0;
    transition: opacity 0.8s ease;
}

.manifest-section.active {
    opacity: 1;
}

/* Slide animations for subtitle and text */
.manifest-left {
    opacity: 0;
    transform: translate(-100px, -50%);
    transition: opacity 0.8s ease 0.2s, transform 0.8s ease 0.2s;
}

.manifest-section.active .manifest-left {
    opacity: 1;
    transform: translate(0, -50%);
}

.manifest-right {
    opacity: 0;
    transform: translateX(100px);
    transition: opacity 0.8s ease 0.4s, transform 0.8s ease 0.4s;
}

.manifest-section.active .manifest-right {
    opacity: 1;
    transform: translateX(0);
}

/* Responsive Design */
@media (max-width: 1024px) {
    .manifest-left {
        width: 40%;
        padding-right: var(--spacing-md);
        padding-left: var(--spacing-md);
    }
    
    .manifest-right {
        width: 60%;
        padding-right: var(--spacing-md);
    }
    
    .manifest-subtitle {
        font-size: clamp(28px, 3.5vw, 42px);
    }
    
    .manifest-text-content {
        font-size: clamp(17px, 1.8vw, 21px);
    }
}

@media (max-width: 768px) {
    .manifest-section {
        flex-direction: column;
        min-height: auto;
        padding: var(--spacing-xl) var(--spacing-md);
    }
    
    .manifest-left {
        position: relative;
        top: 0;
        width: 100%;
        padding: 0 0 var(--spacing-md) 0;
    }
    
    .manifest-right {
        width: 100%;
        padding: 0;
    }
    
    .manifest-subtitle {
        font-size: 32px;
        margin-bottom: var(--spacing-md);
    }
    
    .manifest-text-content {
        font-size: 18px;
        line-height: 1.7;
    }
    
    .manifest-text-content p {
        margin-bottom: var(--spacing-md);
    }
}

/* Divider between sections */
.manifest-section::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80%;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--color-gray-light), transparent);
}

.manifest-section:last-child::after {
    display: none;
}

/* Special styling for first section (intro) */
.manifest-section[data-section="intro"] .manifest-subtitle {
    font-size: clamp(36px, 5vw, 64px);
    line-height: 1.2;
}

.manifest-section[data-section="intro"] .manifest-text-content p:first-child {
    font-size: clamp(18px, 2vw, 24px);
    font-weight: 600;
    margin-bottom: var(--spacing-xl);
}

/* Special styling for last section (poziv) */
.manifest-section[data-section="poziv"] .manifest-text-content p:last-child {
    font-size: clamp(20px, 2.2vw, 28px);
    font-weight: 700;
    margin-top: var(--spacing-lg);
}
