body {
    background-color: #fafafa;
    color: #334155;
    overflow-x: hidden;
    scroll-behavior: smooth;
}

.reading-progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 4px;
    background: linear-gradient(90deg, #6366f1, #f43f5e);
    z-index: 100;
    transition: width 0.1s;
}

.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.8s cubic-bezier(0.25, 1, 0.5, 1);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

#slide2-img-container {
    transition: all 1.2s cubic-bezier(0.25, 1, 0.5, 1);
    width: 100%;
    height: 40vh;
}

#slide2-cards-wrapper {
    opacity: 0;
    width: 0;
    transition: all 1s ease 0.5s;
}

#slide2.in-view #slide2-img-container {
    width: 35%;
    height: 70vh;
    border-radius: 1rem;
}

#slide2.in-view #slide2-cards-wrapper {
    opacity: 1;
    width: 65%;
    padding-left: 1rem;
}

.swipe-container {
    position: relative;
    width: 100%;
    display: flex;
    align-items: center;
}

.swipe-wrapper {
    display: flex;
    gap: 1.5rem;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding: 1rem 0 2rem 0;
    -webkit-overflow-scrolling: touch;
    scroll-behavior: smooth;
    width: 100%;
}

.swipe-wrapper::-webkit-scrollbar { height: 6px; }
.swipe-wrapper::-webkit-scrollbar-track { background: #e0e7ff; border-radius: 10px; }
.swipe-wrapper::-webkit-scrollbar-thumb { background: #6366f1; border-radius: 10px; }

.slide2-card {
    scroll-snap-align: center;
    opacity: 0;
    transform: translateX(50px);
    transition: all 0.6s ease;
}

#slide2.in-view .slide2-card { opacity: 1; transform: translateX(0); }
#slide2.in-view .slide2-card:nth-child(1) { transition-delay: 0.8s; }
#slide2.in-view .slide2-card:nth-child(2) { transition-delay: 1.0s; }
#slide2.in-view .slide2-card:nth-child(3) { transition-delay: 1.2s; }
#slide2.in-view .slide2-card:nth-child(4) { transition-delay: 1.4s; }
#slide2.in-view .slide2-card:nth-child(5) { transition-delay: 1.6s; }

@media (max-width: 768px) {
    #slide2.in-view #slide2-img-container { width: 100%; height: 35vh; margin-bottom: 2rem; }
    #slide2.in-view #slide2-cards-wrapper { width: 100%; padding-left: 0; }
}

.nav-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 30;
    background-color: rgba(255, 255, 255, 0.9);
    border: 2px solid #6366f1;
    color: #6366f1;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}
.nav-arrow:hover {
    background-color: #6366f1;
    color: white;
    box-shadow: 0 4px 20px rgba(99, 102, 241, 0.4);
}
.nav-arrow-left { left: -15px; }
.nav-arrow-right { right: -15px; }

@keyframes hint-pulse {
    0%, 100% { transform: translateY(-50%) translateX(0); }
    50% { transform: translateY(-50%) translateX(6px); }
}
.animate-hint {
    animation: hint-pulse 2s infinite;
}

@keyframes wobble-highlight {
    0%, 100% { transform: translateY(0); color: #f43f5e; }
    50% { transform: translateY(-3px); color: #e11d48; }
}
.highlight-wobble {
    display: inline-block;
    font-weight: 700;
    color: #f43f5e;
    transition: all 0.3s;
}
#slide3.in-view .highlight-wobble { animation: wobble-highlight 2s ease-in-out infinite; }

.timeline-dot {
    width: 24px;
    height: 24px;
    background: #e0e7ff;
    border: 4px solid white;
    border-radius: 50%;
    position: relative;
    z-index: 10;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 0 0 2px #e0e7ff;
}
.timeline-dot.active {
    background: #f43f5e;
    box-shadow: 0 0 0 4px #fda4af;
    transform: scale(1.2);
}
.timeline-content-box {
    display: none;
    animation: fadeIn 0.5s ease-out forwards;
}
.timeline-content-box.active { display: block; }
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes sail {
    0% { left: -20%; transform: translateY(0); }
    50% { transform: translateY(-15px); }
    100% { left: 120%; transform: translateY(0); }
}
.ship-container {
    position: absolute;
    bottom: 15%;
    left: -20%;
    z-index: 20;
    opacity: 0;
    transition: opacity 1s;
}
#slide5.in-view .ship-container {
    opacity: 1;
    animation: sail 18s linear infinite;
}

.pop-card {
    opacity: 0;
    transform: scale(0.9);
    transition: all 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
#slide6.in-view .pop-card { opacity: 1; transform: scale(1); }
#slide6.in-view .pop-card:nth-child(1) { transition-delay: 0.2s; }
#slide6.in-view .pop-card:nth-child(2) { transition-delay: 0.4s; }
#slide6.in-view .pop-card:nth-child(3) { transition-delay: 0.6s; }
#slide6.in-view .pop-card:nth-child(4) { transition-delay: 0.8s; }

.bg-gradient-dynamic {
    background: linear-gradient(-45deg, #312e81, #6366f1, #f43f5e, #fda4af);
    background-size: 400% 400%;
    animation: gradientBG 15s ease infinite;
}
@keyframes gradientBG {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.invest-card-body {
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transition: all 0.5s ease-in-out;
}
.invest-card.active .invest-card-body {
    max-height: 1200px;
    opacity: 1;
    padding-top: 1.5rem;
    padding-bottom: 1.5rem;
}
.invest-card.active .icon-toggle {
    transform: rotate(180deg);
    color: #f43f5e;
}
.invest-card.active .invest-card-header {
    background-color: #eef2ff;
}