/* --- FONT CHỮ --- */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;600;900&display=swap');

body {
    font-family: 'Inter', sans-serif;
    background-color: #000; /* Nền đen */
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    color: #fff;
}

/* --- CẤU TRÚC SCROLLYTELLING --- */
.scrolly-container {
    display: flex;
    flex-direction: column;
    width: 100%;
    margin: 0;
    padding: 0;
    background-color: #000;
}

.step {
    height: 100vh; /* Full màn hình */
    width: 100%;
    position: relative;
    display: flex;
    align-items: flex-end; /* Text nằm dưới đáy */
    justify-content: center;
    overflow: hidden;
    
    /* LOẠI BỎ VIỀN ĐEN TUYỆT ĐỐI */
    margin: 0;
    padding: 0;
    border: none;
    outline: none;
    /* Kỹ thuật lề âm để các ảnh chồng khít lên nhau 1px, che lấp khe hở */
    margin-top: -1px;
    /* Box shadow cùng màu đen để trám các lỗi render pixel nhỏ (nếu có) */
    box-shadow: 0 -2px 0 0 #000; 
    z-index: 1;
    
    /* Cấu hình ảnh nền Desktop */
    background-size: cover;
    background-position: center center;
    background-attachment: fixed; /* Parallax trên Desktop */
    background-repeat: no-repeat;
    
    transition: background-image 1s ease-in-out;
}

/* LỚP PHỦ GRADIENT (Hòa quyện) */
.step::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 50%; 
    background: linear-gradient(to top, #000 0%, rgba(0,0,0,0.6) 50%, transparent 100%);
    z-index: 1;
    pointer-events: none;
}

/* Lớp phủ đỉnh để hòa quyện với step trước */
.step::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 20%;
    background: linear-gradient(to bottom, rgba(0,0,0,0.5) 0%, transparent 100%);
    z-index: 1;
    pointer-events: none;
}

/* --- HIỆU ỨNG TEXT --- */
.step-content {
    position: relative;
    z-index: 10;
    max-width: 800px;
    padding: 2rem;
    margin-bottom: 5vh;
    text-align: left;
    
    opacity: 0;
    transform: translateY(50px);
    filter: blur(5px);
    transition: all 1.2s cubic-bezier(0.2, 0.8, 0.2, 1);
}

/* Helper Class thay thế Tailwind 'text-center' nếu cần, 
   tuy nhiên ID selector bên dưới đã xử lý việc căn giữa cho step-1 rồi */
.text-center {
    text-align: center;
}

.step.active .step-content {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0);
}

/* --- TYPOGRAPHY --- */
.step h2 {
    font-size: 3rem;
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    color: #fff;
    text-shadow: 0 10px 30px rgba(0,0,0,0.8);
    letter-spacing: -1px;
    font-family: 'Inter', sans-serif;
    text-transform: none;
}

.step p {
    font-size: 1.25rem;
    line-height: 1.6;
    color: rgba(255,255,255,0.95);
    font-weight: 400;
    margin-bottom: 1rem;
}

.step p strong {
    display: block;
    font-size: 1.5rem;
    font-weight: 800;
    color: #fbbf24;
    margin-bottom: 0.5rem;
    text-shadow: 0 2px 10px rgba(0,0,0,0.8);
    line-height: 1.3;
}

.text-highlight {
    background: transparent;
    text-shadow: 0 2px 4px rgba(0,0,0,1);
}

/* --- FOOTER --- */
.footer-box {
    position: relative;
    z-index: 20;
    width: 100%; 
    margin: 0;
    padding: 1.5rem 1rem;
    background-color: rgba(0, 30, 100, 0.2); 
    backdrop-filter: blur(10px); 
    text-align: center;
    border-top: 1px solid rgba(255,255,255,0.1); 
    margin-top: -2px; /* Kéo lên để dính liền với step cuối */
}

.footer-info {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 1.5rem; 
}

.footer-info p {
    font-size: 0.9rem;
    margin: 0;
    color: rgba(255, 255, 255, 0.7);
}

.footer-info strong {
    display: inline;
    font-size: 0.9rem;
    color: #fff;
    margin-bottom: 0;
}

/* --- CẤU HÌNH ẢNH --- */
#step-1 { background-image: url('https://sohanews.sohacdn.com/160588918557773824/2025/12/17/6bc2e8e7-fbb4-4021-82f6-bc2236e8ab6f-1765939495006178346788.png'); align-items: center; }
#step-1 .step-content { padding-bottom: 0; margin-bottom: 0; text-align: center; }

#step-2 { background-image: url('https://sohanews.sohacdn.com/160588918557773824/2025/12/17/image001-1765621533-9538-1765621676-1-17659395527191621446203.webp'); }
#step-3 { background-image: url('https://sohanews.sohacdn.com//160588918557773824/2025/12/17/edit_photo_euegqmxbnq-1765939743.jpg'); }
#step-4 { background-image: url('https://sohanews.sohacdn.com//160588918557773824/2025/12/17/edit_photo_rfeoapdxxn-1765939703.jpg'); }
#step-5 { background-image: url('https://sohanews.sohacdn.com//160588918557773824/2025/12/17/edit_photo_fakwzlmsmx-1765939764.jpg'); }
#step-6 { background-image: url('https://sohanews.sohacdn.com//160588918557773824/2025/12/17/edit_photo_qvjntjxhrd-1765939724.jpg'); }
#step-7 { background-image: url('https://sohanews.sohacdn.com/160588918557773824/2025/12/17/edit-7408113c-3ebc-442a-a4a6-b77ed0c12adb-17659406605162140948556.png'); }
#step-8 { background-image: url('https://sohanews.sohacdn.com/160588918557773824/2025/12/17/image003-1765621547-2265-1765621676-1765940885083816503047.webp'); }
#step-9 { background-image: url('https://sohanews.sohacdn.com//160588918557773824/2025/12/17/edit_photo_apherogyjl-1765941630.jpg'); }
#step-10 { background-image: url('https://sohanews.sohacdn.com//160588918557773824/2025/12/17/edit_photo_kuwhujcjbv-1765941091.jpg'); }
#step-11 { background-image: url('https://sohanews.sohacdn.com/160588918557773824/2025/12/17/apce-1764648527-3283-1764648978-1-17659408859961167390169.webp'); }

/* --- TÙY BIẾN MOBILE (QUAN TRỌNG) --- */
@media (max-width: 768px) {
    .step { 
        /* Tắt fixed trên mobile để mượt hơn và tránh lỗi hiển thị */
        background-attachment: scroll;
        
        /* Đảm bảo chiều cao luôn full màn hình thiết bị */
        height: 100vh; 
        
        /* TÙY CHỈNH HIỂN THỊ ẢNH MOBILE */
        background-size: cover;
        background-position: center center;
    }
    
    .step-content { 
        padding: 1.5rem; 
        margin-bottom: 8vh; /* Đẩy text lên cao hơn chút để không che mất phần đáy ảnh quá nhiều */
    }
    
    .step h2 { font-size: 2.2rem; }
    .step p strong { font-size: 1.3rem; }
    .step p { font-size: 1.1rem; }
    .footer-info { flex-direction: column; gap: 0.5rem; }
}